2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for sudo 1.8.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, 2010 Free Software
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.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 test -z "$as_dir" && as_dir=.
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
234 *v*x* | *x*v* ) as_opts=-vx ;;
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: http://www.sudo.ws/bugs/ about your system, including
251 $0: any error possibly output before this message. Then
252 $0: install a modern shell, or manually run the script
253 $0: under such a shell if you do have one."
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
270 # Portably unset VAR.
273 { eval $1=; unset $1;}
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
297 # Create "$as_dir" as a directory, including parents if necessary.
302 -*) as_dir=./$as_dir;;
304 test -d "$as_dir" || eval $as_mkdir_p || {
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
335 test -d "$as_dir" && break
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
373 as_val=`expr "$@" || test $? -eq 1`
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
385 as_status=$1; test $as_status -eq 0 && as_status=1
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390 $as_echo "$as_me: error: $2" >&2
391 as_fn_exit $as_status
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
460 chmod +x "$as_me.lineno" ||
461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
467 # Exit status is that of the last command.
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
474 case `echo 'xy\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
489 mkdir conf$$.dir 2>/dev/null
491 if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 elif ln conf$$.file conf$$ 2>/dev/null; then
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
511 if mkdir -p . 2>/dev/null; then
512 as_mkdir_p='mkdir -p "$as_dir"'
514 test -d ./-p && rmdir ./-p
518 if test -x / >/dev/null 2>&1; then
521 if ls -dL / >/dev/null 2>&1; then
528 if test -d "$1"; then
534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535 ???[sx]*):;;*)false;;esac;fi
539 as_executable_p=$as_test_x
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547 SHELL=${CONFIG_SHELL-/bin/sh}
550 test -n "$DJDIR" || exec 7<&0 </dev/null
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561 ac_default_prefix=/usr/local
563 ac_config_libobj_dir=.
570 # Identity of this package.
572 PACKAGE_TARNAME='sudo'
573 PACKAGE_VERSION='1.8.4p4'
574 PACKAGE_STRING='sudo 1.8.4p4'
575 PACKAGE_BUGREPORT='http://www.sudo.ws/bugs/'
578 ac_config_libobj_dir=compat
579 # Factoring default headers for most tests.
580 ac_includes_default="\
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
592 # ifdef HAVE_STDLIB_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
615 ac_subst_vars='LTLIBOBJS
774 program_transform_name
787 enable_option_checking
845 with_password_timeout
856 with_ldap_secret_file
863 enable_authentication
871 enable_shell_sets_home
881 enable_gss_krb5_ccache_name
895 enable_kerb5_instance
897 ac_precious_vars='build_alias
910 # Initialize some variables set by options.
912 ac_init_version=false
913 ac_unrecognized_opts=
915 # The variables have the same names as the options, with
916 # dashes changed to underlines.
924 program_transform_name=s,x,x,
932 # Installation directory options.
933 # These are left unexpanded so users can "make install exec_prefix=/foo"
934 # and all the variables that are supposed to be based on exec_prefix
935 # by default will actually change.
936 # Use braces instead of parens because sh, perl, etc. also accept them.
937 # (The list follows the same order as the GNU Coding Standards.)
938 bindir='${exec_prefix}/bin'
939 sbindir='${exec_prefix}/sbin'
940 libexecdir='${exec_prefix}/libexec'
941 datarootdir='${prefix}/share'
942 datadir='${datarootdir}'
943 sysconfdir='${prefix}/etc'
944 sharedstatedir='${prefix}/com'
945 localstatedir='${prefix}/var'
946 includedir='${prefix}/include'
947 oldincludedir='/usr/include'
948 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
949 infodir='${datarootdir}/info'
954 libdir='${exec_prefix}/lib'
955 localedir='${datarootdir}/locale'
956 mandir='${datarootdir}/man'
962 # If the previous option needs an argument, assign it.
963 if test -n "$ac_prev"; then
964 eval $ac_prev=\$ac_option
970 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
975 # Accept the important Cygnus configure options, so we can diagnose typos.
977 case $ac_dashdash$ac_option in
981 -bindir | --bindir | --bindi | --bind | --bin | --bi)
983 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
986 -build | --build | --buil | --bui | --bu)
987 ac_prev=build_alias ;;
988 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
989 build_alias=$ac_optarg ;;
991 -cache-file | --cache-file | --cache-fil | --cache-fi \
992 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
993 ac_prev=cache_file ;;
994 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
995 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
996 cache_file=$ac_optarg ;;
999 cache_file=config.cache ;;
1001 -datadir | --datadir | --datadi | --datad)
1003 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1004 datadir=$ac_optarg ;;
1006 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1007 | --dataroo | --dataro | --datar)
1008 ac_prev=datarootdir ;;
1009 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1010 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1011 datarootdir=$ac_optarg ;;
1013 -disable-* | --disable-*)
1014 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1015 # Reject names that are not valid shell variable names.
1016 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1017 as_fn_error $? "invalid feature name: $ac_useropt"
1018 ac_useropt_orig=$ac_useropt
1019 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1020 case $ac_user_opts in
1022 "enable_$ac_useropt"
1024 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1025 ac_unrecognized_sep=', ';;
1027 eval enable_$ac_useropt=no ;;
1029 -docdir | --docdir | --docdi | --doc | --do)
1031 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1032 docdir=$ac_optarg ;;
1034 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1036 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1037 dvidir=$ac_optarg ;;
1039 -enable-* | --enable-*)
1040 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1041 # Reject names that are not valid shell variable names.
1042 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1043 as_fn_error $? "invalid feature name: $ac_useropt"
1044 ac_useropt_orig=$ac_useropt
1045 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1046 case $ac_user_opts in
1048 "enable_$ac_useropt"
1050 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1051 ac_unrecognized_sep=', ';;
1053 eval enable_$ac_useropt=\$ac_optarg ;;
1055 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1056 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1057 | --exec | --exe | --ex)
1058 ac_prev=exec_prefix ;;
1059 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1060 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1061 | --exec=* | --exe=* | --ex=*)
1062 exec_prefix=$ac_optarg ;;
1064 -gas | --gas | --ga | --g)
1065 # Obsolete; use --with-gas.
1068 -help | --help | --hel | --he | -h)
1069 ac_init_help=long ;;
1070 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1071 ac_init_help=recursive ;;
1072 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1073 ac_init_help=short ;;
1075 -host | --host | --hos | --ho)
1076 ac_prev=host_alias ;;
1077 -host=* | --host=* | --hos=* | --ho=*)
1078 host_alias=$ac_optarg ;;
1080 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1082 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1084 htmldir=$ac_optarg ;;
1086 -includedir | --includedir | --includedi | --included | --include \
1087 | --includ | --inclu | --incl | --inc)
1088 ac_prev=includedir ;;
1089 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1090 | --includ=* | --inclu=* | --incl=* | --inc=*)
1091 includedir=$ac_optarg ;;
1093 -infodir | --infodir | --infodi | --infod | --info | --inf)
1095 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1096 infodir=$ac_optarg ;;
1098 -libdir | --libdir | --libdi | --libd)
1100 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1101 libdir=$ac_optarg ;;
1103 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1104 | --libexe | --libex | --libe)
1105 ac_prev=libexecdir ;;
1106 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1107 | --libexe=* | --libex=* | --libe=*)
1108 libexecdir=$ac_optarg ;;
1110 -localedir | --localedir | --localedi | --localed | --locale)
1111 ac_prev=localedir ;;
1112 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1113 localedir=$ac_optarg ;;
1115 -localstatedir | --localstatedir | --localstatedi | --localstated \
1116 | --localstate | --localstat | --localsta | --localst | --locals)
1117 ac_prev=localstatedir ;;
1118 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1119 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1120 localstatedir=$ac_optarg ;;
1122 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1124 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1125 mandir=$ac_optarg ;;
1127 -nfp | --nfp | --nf)
1128 # Obsolete; use --without-fp.
1131 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1132 | --no-cr | --no-c | -n)
1135 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1136 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1139 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1140 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1141 | --oldin | --oldi | --old | --ol | --o)
1142 ac_prev=oldincludedir ;;
1143 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1144 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1145 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1146 oldincludedir=$ac_optarg ;;
1148 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1150 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1151 prefix=$ac_optarg ;;
1153 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1154 | --program-pre | --program-pr | --program-p)
1155 ac_prev=program_prefix ;;
1156 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1157 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1158 program_prefix=$ac_optarg ;;
1160 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1161 | --program-suf | --program-su | --program-s)
1162 ac_prev=program_suffix ;;
1163 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1164 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1165 program_suffix=$ac_optarg ;;
1167 -program-transform-name | --program-transform-name \
1168 | --program-transform-nam | --program-transform-na \
1169 | --program-transform-n | --program-transform- \
1170 | --program-transform | --program-transfor \
1171 | --program-transfo | --program-transf \
1172 | --program-trans | --program-tran \
1173 | --progr-tra | --program-tr | --program-t)
1174 ac_prev=program_transform_name ;;
1175 -program-transform-name=* | --program-transform-name=* \
1176 | --program-transform-nam=* | --program-transform-na=* \
1177 | --program-transform-n=* | --program-transform-=* \
1178 | --program-transform=* | --program-transfor=* \
1179 | --program-transfo=* | --program-transf=* \
1180 | --program-trans=* | --program-tran=* \
1181 | --progr-tra=* | --program-tr=* | --program-t=*)
1182 program_transform_name=$ac_optarg ;;
1184 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1186 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1187 pdfdir=$ac_optarg ;;
1189 -psdir | --psdir | --psdi | --psd | --ps)
1191 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1194 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1195 | -silent | --silent | --silen | --sile | --sil)
1198 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1200 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1202 sbindir=$ac_optarg ;;
1204 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1205 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1206 | --sharedst | --shareds | --shared | --share | --shar \
1208 ac_prev=sharedstatedir ;;
1209 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1210 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1211 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1213 sharedstatedir=$ac_optarg ;;
1215 -site | --site | --sit)
1217 -site=* | --site=* | --sit=*)
1220 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1222 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1223 srcdir=$ac_optarg ;;
1225 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1226 | --syscon | --sysco | --sysc | --sys | --sy)
1227 ac_prev=sysconfdir ;;
1228 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1229 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1230 sysconfdir=$ac_optarg ;;
1232 -target | --target | --targe | --targ | --tar | --ta | --t)
1233 ac_prev=target_alias ;;
1234 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1235 target_alias=$ac_optarg ;;
1237 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1240 -version | --version | --versio | --versi | --vers | -V)
1241 ac_init_version=: ;;
1244 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1245 # Reject names that are not valid shell variable names.
1246 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1247 as_fn_error $? "invalid package name: $ac_useropt"
1248 ac_useropt_orig=$ac_useropt
1249 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1250 case $ac_user_opts in
1254 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1255 ac_unrecognized_sep=', ';;
1257 eval with_$ac_useropt=\$ac_optarg ;;
1259 -without-* | --without-*)
1260 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1261 # Reject names that are not valid shell variable names.
1262 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1263 as_fn_error $? "invalid package name: $ac_useropt"
1264 ac_useropt_orig=$ac_useropt
1265 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1266 case $ac_user_opts in
1270 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1271 ac_unrecognized_sep=', ';;
1273 eval with_$ac_useropt=no ;;
1276 # Obsolete; use --with-x.
1279 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1280 | --x-incl | --x-inc | --x-in | --x-i)
1281 ac_prev=x_includes ;;
1282 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1283 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1284 x_includes=$ac_optarg ;;
1286 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1287 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1288 ac_prev=x_libraries ;;
1289 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1290 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1291 x_libraries=$ac_optarg ;;
1293 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1294 Try \`$0 --help' for more information"
1298 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1299 # Reject names that are not valid shell variable names.
1300 case $ac_envvar in #(
1301 '' | [0-9]* | *[!_$as_cr_alnum]* )
1302 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1304 eval $ac_envvar=\$ac_optarg
1305 export $ac_envvar ;;
1308 # FIXME: should be removed in autoconf 3.0.
1309 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1310 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1311 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1312 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1318 if test -n "$ac_prev"; then
1319 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1320 as_fn_error $? "missing argument to $ac_option"
1323 if test -n "$ac_unrecognized_opts"; then
1324 case $enable_option_checking in
1326 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1327 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1331 # Check all directory arguments for consistency.
1332 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1333 datadir sysconfdir sharedstatedir localstatedir includedir \
1334 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1335 libdir localedir mandir
1337 eval ac_val=\$$ac_var
1338 # Remove trailing slashes.
1341 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1342 eval $ac_var=\$ac_val;;
1344 # Be sure to have absolute directory names.
1346 [\\/$]* | ?:[\\/]* ) continue;;
1347 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1349 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1352 # There might be people who depend on the old broken behavior: `$host'
1353 # used to hold the argument of --host etc.
1354 # FIXME: To remove some day.
1357 target=$target_alias
1359 # FIXME: To remove some day.
1360 if test "x$host_alias" != x; then
1361 if test "x$build_alias" = x; then
1362 cross_compiling=maybe
1363 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1364 If a cross compiler is detected then cross compile mode will be used" >&2
1365 elif test "x$build_alias" != "x$host_alias"; then
1371 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1373 test "$silent" = yes && exec 6>/dev/null
1376 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1377 ac_ls_di=`ls -di .` &&
1378 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1379 as_fn_error $? "working directory cannot be determined"
1380 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1381 as_fn_error $? "pwd does not report name of working directory"
1384 # Find the source files, if location was not specified.
1385 if test -z "$srcdir"; then
1386 ac_srcdir_defaulted=yes
1387 # Try the directory containing this script, then the parent directory.
1388 ac_confdir=`$as_dirname -- "$as_myself" ||
1389 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1390 X"$as_myself" : 'X\(//\)[^/]' \| \
1391 X"$as_myself" : 'X\(//\)$' \| \
1392 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1393 $as_echo X"$as_myself" |
1394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1412 if test ! -r "$srcdir/$ac_unique_file"; then
1416 ac_srcdir_defaulted=no
1418 if test ! -r "$srcdir/$ac_unique_file"; then
1419 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1420 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1422 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1424 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1426 # When building in place, set srcdir=.
1427 if test "$ac_abs_confdir" = "$ac_pwd"; then
1430 # Remove unnecessary trailing slashes from srcdir.
1431 # Double slashes in file names in object file debugging info
1432 # mess up M-x gdb in Emacs.
1434 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1436 for ac_var in $ac_precious_vars; do
1437 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1438 eval ac_env_${ac_var}_value=\$${ac_var}
1439 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1440 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1444 # Report the --help message.
1446 if test "$ac_init_help" = "long"; then
1447 # Omit some internal or obsolete options to make the list less imposing.
1448 # This message is too long to be a string in the A/UX 3.1 sh.
1450 \`configure' configures sudo 1.8.4p4 to adapt to many kinds of systems.
1452 Usage: $0 [OPTION]... [VAR=VALUE]...
1454 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1455 VAR=VALUE. See below for descriptions of some of the useful variables.
1457 Defaults for the options are specified in brackets.
1460 -h, --help display this help and exit
1461 --help=short display options specific to this package
1462 --help=recursive display the short help of all the included packages
1463 -V, --version display version information and exit
1464 -q, --quiet, --silent do not print \`checking ...' messages
1465 --cache-file=FILE cache test results in FILE [disabled]
1466 -C, --config-cache alias for \`--cache-file=config.cache'
1467 -n, --no-create do not create output files
1468 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1470 Installation directories:
1471 --prefix=PREFIX install architecture-independent files in PREFIX
1472 [$ac_default_prefix]
1473 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1476 By default, \`make install' will install all the files in
1477 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1478 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1479 for instance \`--prefix=\$HOME'.
1481 For better control, use the options below.
1483 Fine tuning of the installation directories:
1484 --bindir=DIR user executables [EPREFIX/bin]
1485 --sbindir=DIR system admin executables [EPREFIX/sbin]
1486 --libexecdir=DIR program executables [EPREFIX/libexec]
1487 --sysconfdir=DIR read-only single-machine data [/etc]
1488 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1489 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1490 --libdir=DIR object code libraries [EPREFIX/lib]
1491 --includedir=DIR C header files [PREFIX/include]
1492 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1493 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1494 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1495 --infodir=DIR info documentation [DATAROOTDIR/info]
1496 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1497 --mandir=DIR man documentation [DATAROOTDIR/man]
1498 --docdir=DIR documentation root [DATAROOTDIR/doc/sudo]
1499 --htmldir=DIR html documentation [DOCDIR]
1500 --dvidir=DIR dvi documentation [DOCDIR]
1501 --pdfdir=DIR pdf documentation [DOCDIR]
1502 --psdir=DIR ps documentation [DOCDIR]
1508 --build=BUILD configure for building on BUILD [guessed]
1509 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1513 if test -n "$ac_init_help"; then
1514 case $ac_init_help in
1515 short | recursive ) echo "Configuration of sudo 1.8.4p4:";;
1520 --disable-option-checking ignore unrecognized --enable/--with options
1521 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1522 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1523 --disable-authentication
1524 Do not require authentication by default
1525 --disable-root-mailer Don't run the mailer as root, run as the user
1526 --disable-setreuid Don't try to use the setreuid() function
1527 --disable-setresuid Don't try to use the setresuid() function
1528 --disable-shadow Never use shadow passwords
1529 --disable-root-sudo Don't allow root to run sudo
1530 --enable-log-host Log the hostname in the log file
1531 --enable-noargs-shell If sudo is given no arguments run a shell
1532 --enable-shell-sets-home
1533 Set $HOME to target user in shell mode
1534 --disable-path-info Print 'command not allowed' not 'command not found'
1535 --enable-env-debug Whether to enable environment debugging.
1536 --enable-zlib[=PATH] Whether to enable or disable zlib
1537 --enable-env-reset Whether to enable environment resetting by default.
1538 --enable-warnings Whether to enable compiler warnings
1539 --enable-werror Whether to enable the -Werror compiler option
1540 --enable-admin-flag Whether to create a Ubuntu-style admin flag file
1541 --disable-nls Disable natural language support using gettext
1542 --enable-gss-krb5-ccache-name
1543 Use GSS-API to set the Kerberos V cred cache name
1544 --enable-shared[=PKGS] build shared libraries [default=yes]
1545 --enable-static[=PKGS] build static libraries [default=yes]
1546 --enable-fast-install[=PKGS]
1547 optimize for fast installation [default=yes]
1548 --disable-libtool-lock avoid locking (might break parallel builds)
1549 --disable-sia Disable SIA on Digital UNIX
1550 --disable-largefile omit support for large files
1551 --disable-pam-session Disable PAM session support
1552 --enable-kerb5-instance instance string to append to the username (separated
1556 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1557 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1558 --with-otp-only deprecated
1559 --with-alertmail deprecated
1560 --with-devel add development options
1561 --with-CC C compiler to use
1562 --with-rpath pass -R flag in addition to -L for lib paths
1563 --with-blibpath=PATH pass -blibpath flag to ld for additional lib paths
1564 --with-bsm-audit enable BSM audit support
1565 --with-linux-audit enable Linux audit support
1566 --with-incpath additional places to look for include files
1567 --with-libpath additional places to look for libraries
1568 --with-libraries additional libraries to link with
1569 --with-efence link with -lefence for malloc() debugging
1570 --with-csops add CSOps standard options
1571 --without-passwd don't use passwd/shadow file for authentication
1572 --with-skey=DIR enable S/Key support
1573 --with-opie=DIR enable OPIE support
1574 --with-long-otp-prompt use a two line OTP (skey/opie) prompt
1575 --with-SecurID[=DIR] enable SecurID support
1576 --with-fwtk[=DIR] enable FWTK AuthSRV support
1577 --with-kerb5[=DIR] enable Kerberos V support
1578 --with-aixauth enable AIX general authentication support
1579 --with-pam enable PAM support
1580 --with-AFS enable AFS support
1581 --with-DCE enable DCE support
1582 --with-logincap enable BSD login class support
1583 --with-bsdauth enable BSD authentication support
1584 --with-project enable Solaris project support
1585 --without-lecture don't print lecture for first-time sudoer
1586 --with-logging log via syslog, file, or both
1587 --with-logfac syslog facility to log with (default is "auth")
1588 --with-goodpri syslog priority for commands (def is "notice")
1589 --with-badpri syslog priority for failures (def is "alert")
1590 --with-logpath path to the sudo log file
1591 --with-loglen maximum length of a log file line (default is 80)
1592 --with-ignore-dot ignore '.' in the PATH
1593 --without-mail-if-no-user
1594 do not send mail if user not in sudoers
1595 --with-mail-if-no-host send mail if user in sudoers but not for this host
1596 --with-mail-if-noperms send mail if user not allowed to run command
1597 --with-mailto who should get sudo mail (default is "root")
1598 --with-mailsubject subject of sudo mail
1599 --with-passprompt default password prompt
1600 --with-badpass-message message the user sees when the password is wrong
1601 --with-fqdn expect fully qualified hosts in sudoers
1602 --with-timedir path to the sudo timestamp dir
1603 --with-iologdir=DIR directory to store sudo I/O log files in
1604 --with-sendmail set path to sendmail
1605 --without-sendmail do not send mail at all
1606 --with-sudoers-mode mode of sudoers file (defaults to 0440)
1607 --with-sudoers-uid uid that owns sudoers file (defaults to 0)
1608 --with-sudoers-gid gid that owns sudoers file (defaults to 0)
1609 --with-umask umask with which the prog should run (default is
1611 --without-umask Preserves the umask of the user invoking sudo.
1612 --with-umask-override Use the umask specified in sudoers even if it is
1613 less restrictive than the user's.
1614 --with-runas-default User to run commands as (default is "root")
1615 --with-exempt=group no passwd needed for users in this group
1616 --with-editor=path Default editor for visudo (defaults to vi)
1617 --with-env-editor Use the environment variable EDITOR for visudo
1618 --with-passwd-tries number of tries to enter password (default is 3)
1619 --with-timeout minutes before sudo asks for passwd again (def is 5
1621 --with-password-timeout passwd prompt timeout in minutes (default is 5
1623 --with-tty-tickets use a different ticket file for each tty
1624 --with-insults insult the user for entering an incorrect password
1625 --with-all-insults include all the sudo insult sets
1626 --with-classic-insults include the insults from the "classic" sudo
1627 --with-csops-insults include CSOps insults
1628 --with-hal-insults include 2001-like insults
1629 --with-goons-insults include the insults from the "Goon Show"
1630 --with-nsswitch[=PATH] path to nsswitch.conf
1631 --with-ldap[=DIR] enable LDAP support
1632 --with-ldap-conf-file path to LDAP configuration file
1633 --with-ldap-secret-file path to LDAP secret password file
1634 --with-pc-insults replace politically incorrect insults with less
1636 --with-secure-path override the user's path with a built-in one
1637 --without-interfaces don't try to read the ip addr of ether interfaces
1638 --with-stow properly handle GNU stow packaging
1639 --with-askpass=PATH Fully qualified pathname of askpass helper
1640 --with-plugindir set directory to load plugins from
1641 --with-selinux enable SELinux support
1642 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1644 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1645 --with-sysroot=DIR Search for dependent libraries within DIR
1646 (or the compiler's sysroot if not specified).
1647 --with-noexec=PATH fully qualified pathname of sudo_noexec.so
1648 --with-netsvc[=PATH] path to netsvc.conf
1649 --with-pam-login enable specific PAM session for sudo -i
1651 Some influential environment variables:
1652 CC C compiler command
1653 CFLAGS C compiler flags
1654 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1655 nonstandard directory <lib dir>
1656 LIBS libraries to pass to the linker, e.g. -l<library>
1657 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1658 you have headers in a nonstandard directory <include dir>
1660 YACC The `Yet Another Compiler Compiler' implementation to use.
1661 Defaults to the first program found out of: `bison -y', `byacc',
1663 YFLAGS The list of arguments that will be passed by default to $YACC.
1664 This script will default YFLAGS to the empty string to avoid a
1665 default value of `-d' given by some make applications.
1667 Use these variables to override the choices made by `configure' or to help
1668 it to find libraries and programs with nonstandard names/locations.
1670 Report bugs to <http://www.sudo.ws/bugs/>.
1675 if test "$ac_init_help" = "recursive"; then
1676 # If there are subdirs, report their specific --help.
1677 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1678 test -d "$ac_dir" ||
1679 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1684 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1686 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1687 # A ".." for each directory in $ac_dir_suffix.
1688 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1689 case $ac_top_builddir_sub in
1690 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1691 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1694 ac_abs_top_builddir=$ac_pwd
1695 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1696 # for backward compatibility:
1697 ac_top_builddir=$ac_top_build_prefix
1700 .) # We are building in place.
1702 ac_top_srcdir=$ac_top_builddir_sub
1703 ac_abs_top_srcdir=$ac_pwd ;;
1704 [\\/]* | ?:[\\/]* ) # Absolute name.
1705 ac_srcdir=$srcdir$ac_dir_suffix;
1706 ac_top_srcdir=$srcdir
1707 ac_abs_top_srcdir=$srcdir ;;
1709 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1710 ac_top_srcdir=$ac_top_build_prefix$srcdir
1711 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1713 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1715 cd "$ac_dir" || { ac_status=$?; continue; }
1716 # Check for guested configure.
1717 if test -f "$ac_srcdir/configure.gnu"; then
1719 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1720 elif test -f "$ac_srcdir/configure"; then
1722 $SHELL "$ac_srcdir/configure" --help=recursive
1724 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1726 cd "$ac_pwd" || { ac_status=$?; break; }
1730 test -n "$ac_init_help" && exit $ac_status
1731 if $ac_init_version; then
1733 sudo configure 1.8.4p4
1734 generated by GNU Autoconf 2.68
1736 Copyright (C) 2010 Free Software Foundation, Inc.
1737 This configure script is free software; the Free Software Foundation
1738 gives unlimited permission to copy, distribute and modify it.
1743 ## ------------------------ ##
1744 ## Autoconf initialization. ##
1745 ## ------------------------ ##
1747 # ac_fn_c_try_compile LINENO
1748 # --------------------------
1749 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1750 ac_fn_c_try_compile ()
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 rm -f conftest.$ac_objext
1754 if { { ac_try="$ac_compile"
1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757 *) ac_try_echo=$ac_try;;
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761 (eval "$ac_compile") 2>conftest.err
1763 if test -s conftest.err; then
1764 grep -v '^ *+' conftest.err >conftest.er1
1765 cat conftest.er1 >&5
1766 mv -f conftest.er1 conftest.err
1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769 test $ac_status = 0; } && {
1770 test -z "$ac_c_werror_flag" ||
1771 test ! -s conftest.err
1772 } && test -s conftest.$ac_objext; then :
1775 $as_echo "$as_me: failed program was:" >&5
1776 sed 's/^/| /' conftest.$ac_ext >&5
1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781 as_fn_set_status $ac_retval
1783 } # ac_fn_c_try_compile
1785 # ac_fn_c_try_link LINENO
1786 # -----------------------
1787 # Try to link conftest.$ac_ext, and return whether this succeeded.
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 rm -f conftest.$ac_objext conftest$ac_exeext
1792 if { { ac_try="$ac_link"
1794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1795 *) ac_try_echo=$ac_try;;
1797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1798 $as_echo "$ac_try_echo"; } >&5
1799 (eval "$ac_link") 2>conftest.err
1801 if test -s conftest.err; then
1802 grep -v '^ *+' conftest.err >conftest.er1
1803 cat conftest.er1 >&5
1804 mv -f conftest.er1 conftest.err
1806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1807 test $ac_status = 0; } && {
1808 test -z "$ac_c_werror_flag" ||
1809 test ! -s conftest.err
1810 } && test -s conftest$ac_exeext && {
1811 test "$cross_compiling" = yes ||
1812 $as_test_x conftest$ac_exeext
1816 $as_echo "$as_me: failed program was:" >&5
1817 sed 's/^/| /' conftest.$ac_ext >&5
1821 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1822 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1823 # interfere with the next link command; also delete a directory that is
1824 # left behind by Apple's compiler. We do this before executing the actions.
1825 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827 as_fn_set_status $ac_retval
1829 } # ac_fn_c_try_link
1831 # ac_fn_c_try_cpp LINENO
1832 # ----------------------
1833 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 if { { ac_try="$ac_cpp conftest.$ac_ext"
1839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1840 *) ac_try_echo=$ac_try;;
1842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1843 $as_echo "$ac_try_echo"; } >&5
1844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1846 if test -s conftest.err; then
1847 grep -v '^ *+' conftest.err >conftest.er1
1848 cat conftest.er1 >&5
1849 mv -f conftest.er1 conftest.err
1851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1852 test $ac_status = 0; } > conftest.i && {
1853 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1854 test ! -s conftest.err
1858 $as_echo "$as_me: failed program was:" >&5
1859 sed 's/^/| /' conftest.$ac_ext >&5
1863 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1864 as_fn_set_status $ac_retval
1868 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1869 # -------------------------------------------------------
1870 # Tests whether HEADER exists and can be compiled using the include files in
1871 # INCLUDES, setting the cache variable VAR accordingly.
1872 ac_fn_c_check_header_compile ()
1874 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1876 $as_echo_n "checking for $2... " >&6; }
1877 if eval \${$3+:} false; then :
1878 $as_echo_n "(cached) " >&6
1880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881 /* end confdefs.h. */
1885 if ac_fn_c_try_compile "$LINENO"; then :
1890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1894 $as_echo "$ac_res" >&6; }
1895 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1897 } # ac_fn_c_check_header_compile
1899 # ac_fn_c_try_run LINENO
1900 # ----------------------
1901 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1902 # that executables *can* be run.
1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906 if { { ac_try="$ac_link"
1908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1909 *) ac_try_echo=$ac_try;;
1911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1912 $as_echo "$ac_try_echo"; } >&5
1913 (eval "$ac_link") 2>&5
1915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1916 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1917 { { case "(($ac_try" in
1918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1919 *) ac_try_echo=$ac_try;;
1921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1922 $as_echo "$ac_try_echo"; } >&5
1923 (eval "$ac_try") 2>&5
1925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1926 test $ac_status = 0; }; }; then :
1929 $as_echo "$as_me: program exited with status $ac_status" >&5
1930 $as_echo "$as_me: failed program was:" >&5
1931 sed 's/^/| /' conftest.$ac_ext >&5
1933 ac_retval=$ac_status
1935 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1936 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1937 as_fn_set_status $ac_retval
1941 # ac_fn_c_check_func LINENO FUNC VAR
1942 # ----------------------------------
1943 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1944 ac_fn_c_check_func ()
1946 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1948 $as_echo_n "checking for $2... " >&6; }
1949 if eval \${$3+:} false; then :
1950 $as_echo_n "(cached) " >&6
1952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1953 /* end confdefs.h. */
1954 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1956 #define $2 innocuous_$2
1958 /* System header to define __stub macros and hopefully few prototypes,
1959 which can conflict with char $2 (); below.
1960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1961 <limits.h> exists even on freestanding compilers. */
1964 # include <limits.h>
1966 # include <assert.h>
1971 /* Override any GCC internal prototype to avoid an error.
1972 Use char because int might match the return type of a GCC
1973 builtin and then its argument prototype would still apply. */
1978 /* The GNU C library defines this for functions which it implements
1979 to always fail with ENOSYS. Some functions are actually named
1980 something starting with __ and the normal name is an alias. */
1981 #if defined __stub_$2 || defined __stub___$2
1993 if ac_fn_c_try_link "$LINENO"; then :
1998 rm -f core conftest.err conftest.$ac_objext \
1999 conftest$ac_exeext conftest.$ac_ext
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2003 $as_echo "$ac_res" >&6; }
2004 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2006 } # ac_fn_c_check_func
2008 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2009 # -------------------------------------------
2010 # Tests whether TYPE exists after having included INCLUDES, setting cache
2011 # variable VAR accordingly.
2012 ac_fn_c_check_type ()
2014 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2016 $as_echo_n "checking for $2... " >&6; }
2017 if eval \${$3+:} false; then :
2018 $as_echo_n "(cached) " >&6
2021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h. */
2033 if ac_fn_c_try_compile "$LINENO"; then :
2034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h. */
2046 if ac_fn_c_try_compile "$LINENO"; then :
2051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2057 $as_echo "$ac_res" >&6; }
2058 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2060 } # ac_fn_c_check_type
2062 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2063 # -------------------------------------------------------
2064 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2065 # the include files in INCLUDES and setting the cache variable VAR
2067 ac_fn_c_check_header_mongrel ()
2069 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2070 if eval \${$3+:} false; then :
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2072 $as_echo_n "checking for $2... " >&6; }
2073 if eval \${$3+:} false; then :
2074 $as_echo_n "(cached) " >&6
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2078 $as_echo "$ac_res" >&6; }
2080 # Is the header compilable?
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2082 $as_echo_n "checking $2 usability... " >&6; }
2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h. */
2088 if ac_fn_c_try_compile "$LINENO"; then :
2089 ac_header_compiler=yes
2091 ac_header_compiler=no
2093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2095 $as_echo "$ac_header_compiler" >&6; }
2097 # Is the header present?
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2099 $as_echo_n "checking $2 presence... " >&6; }
2100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101 /* end confdefs.h. */
2104 if ac_fn_c_try_cpp "$LINENO"; then :
2105 ac_header_preproc=yes
2107 ac_header_preproc=no
2109 rm -f conftest.err conftest.i conftest.$ac_ext
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2111 $as_echo "$ac_header_preproc" >&6; }
2113 # So? What about this header?
2114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2117 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2119 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2123 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2125 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2127 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2129 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2131 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2132 ( $as_echo "## --------------------------------------- ##
2133 ## Report this to http://www.sudo.ws/bugs/ ##
2134 ## --------------------------------------- ##"
2135 ) | sed "s/^/$as_me: WARNING: /" >&2
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2139 $as_echo_n "checking for $2... " >&6; }
2140 if eval \${$3+:} false; then :
2141 $as_echo_n "(cached) " >&6
2143 eval "$3=\$ac_header_compiler"
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2147 $as_echo "$ac_res" >&6; }
2149 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2151 } # ac_fn_c_check_header_mongrel
2153 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2154 # --------------------------------------------
2155 # Tries to find the compile-time value of EXPR in a program that includes
2156 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2158 ac_fn_c_compute_int ()
2160 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2161 if test "$cross_compiling" = yes; then
2162 # Depending upon the size, compute the lo and hi bounds.
2163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2164 /* end confdefs.h. */
2169 static int test_array [1 - 2 * !(($2) >= 0)];
2176 if ac_fn_c_try_compile "$LINENO"; then :
2179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180 /* end confdefs.h. */
2185 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2192 if ac_fn_c_try_compile "$LINENO"; then :
2193 ac_hi=$ac_mid; break
2195 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2196 if test $ac_lo -le $ac_mid; then
2200 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2206 /* end confdefs.h. */
2211 static int test_array [1 - 2 * !(($2) < 0)];
2218 if ac_fn_c_try_compile "$LINENO"; then :
2221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2222 /* end confdefs.h. */
2227 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2234 if ac_fn_c_try_compile "$LINENO"; then :
2235 ac_lo=$ac_mid; break
2237 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2238 if test $ac_mid -le $ac_hi; then
2242 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2252 # Binary search between lo and hi bounds.
2253 while test "x$ac_lo" != "x$ac_hi"; do
2254 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2256 /* end confdefs.h. */
2261 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2268 if ac_fn_c_try_compile "$LINENO"; then :
2271 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2276 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2281 /* end confdefs.h. */
2283 static long int longval () { return $2; }
2284 static unsigned long int ulongval () { return $2; }
2291 FILE *f = fopen ("conftest.val", "w");
2296 long int i = longval ();
2299 fprintf (f, "%ld", i);
2303 unsigned long int i = ulongval ();
2306 fprintf (f, "%lu", i);
2308 /* Do not output a trailing newline, as this causes \r\n confusion
2309 on some platforms. */
2310 return ferror (f) || fclose (f) != 0;
2316 if ac_fn_c_try_run "$LINENO"; then :
2317 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2321 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2322 conftest.$ac_objext conftest.beam conftest.$ac_ext
2326 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2327 as_fn_set_status $ac_retval
2329 } # ac_fn_c_compute_int
2331 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2332 # ----------------------------------------------------
2333 # Tries to find if the field MEMBER exists in type AGGR, after including
2334 # INCLUDES, setting cache variable VAR accordingly.
2335 ac_fn_c_check_member ()
2337 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2339 $as_echo_n "checking for $2.$3... " >&6; }
2340 if eval \${$4+:} false; then :
2341 $as_echo_n "(cached) " >&6
2343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2344 /* end confdefs.h. */
2356 if ac_fn_c_try_compile "$LINENO"; then :
2359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2360 /* end confdefs.h. */
2366 if (sizeof ac_aggr.$3)
2372 if ac_fn_c_try_compile "$LINENO"; then :
2377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2383 $as_echo "$ac_res" >&6; }
2384 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2386 } # ac_fn_c_check_member
2388 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2389 # ---------------------------------------------
2390 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2392 ac_fn_c_check_decl ()
2394 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2395 as_decl_name=`echo $2|sed 's/ *(.*//'`
2396 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2398 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2399 if eval \${$3+:} false; then :
2400 $as_echo_n "(cached) " >&6
2402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2403 /* end confdefs.h. */
2408 #ifndef $as_decl_name
2410 (void) $as_decl_use;
2412 (void) $as_decl_name;
2420 if ac_fn_c_try_compile "$LINENO"; then :
2425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2429 $as_echo "$ac_res" >&6; }
2430 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2432 } # ac_fn_c_check_decl
2433 cat >config.log <<_ACEOF
2434 This file contains any messages produced by compilers while
2435 running configure, to aid debugging if configure makes a mistake.
2437 It was created by sudo $as_me 1.8.4p4, which was
2438 generated by GNU Autoconf 2.68. Invocation command line was
2450 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2451 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2452 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2453 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2454 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2456 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2457 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2459 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2460 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2461 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2462 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2463 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2464 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2465 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473 test -z "$as_dir" && as_dir=.
2474 $as_echo "PATH: $as_dir"
2490 # Keep a trace of the command line.
2491 # Strip out --no-create and --no-recursion so they do not pile up.
2492 # Strip out --silent because we don't want to record it for future runs.
2493 # Also quote any args containing shell meta-characters.
2494 # Make two passes to allow for proper duplicate-argument suppression.
2498 ac_must_keep_next=false
2504 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2505 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2506 | -silent | --silent | --silen | --sile | --sil)
2509 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2512 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2514 as_fn_append ac_configure_args1 " '$ac_arg'"
2515 if test $ac_must_keep_next = true; then
2516 ac_must_keep_next=false # Got value, back to normal.
2519 *=* | --config-cache | -C | -disable-* | --disable-* \
2520 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2521 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2522 | -with-* | --with-* | -without-* | --without-* | --x)
2523 case "$ac_configure_args0 " in
2524 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2527 -* ) ac_must_keep_next=true ;;
2530 as_fn_append ac_configure_args " '$ac_arg'"
2535 { ac_configure_args0=; unset ac_configure_args0;}
2536 { ac_configure_args1=; unset ac_configure_args1;}
2538 # When interrupted or exit'd, cleanup temporary files, and complete
2539 # config.log. We remove comments because anyway the quotes in there
2540 # would cause problems or look ugly.
2541 # WARNING: Use '\'' to represent an apostrophe within the trap.
2542 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2543 trap 'exit_status=$?
2544 # Save into config.log some information that might help in debugging.
2548 $as_echo "## ---------------- ##
2549 ## Cache variables. ##
2550 ## ---------------- ##"
2552 # The following way of writing the cache mishandles newlines in values,
2554 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2555 eval ac_val=\$$ac_var
2559 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2560 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2563 _ | IFS | as_nl) ;; #(
2564 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2565 *) { eval $ac_var=; unset $ac_var;} ;;
2570 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2571 *${as_nl}ac_space=\ *)
2573 "s/'\''/'\''\\\\'\'''\''/g;
2574 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2577 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2584 $as_echo "## ----------------- ##
2585 ## Output variables. ##
2586 ## ----------------- ##"
2588 for ac_var in $ac_subst_vars
2590 eval ac_val=\$$ac_var
2592 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2594 $as_echo "$ac_var='\''$ac_val'\''"
2598 if test -n "$ac_subst_files"; then
2599 $as_echo "## ------------------- ##
2600 ## File substitutions. ##
2601 ## ------------------- ##"
2603 for ac_var in $ac_subst_files
2605 eval ac_val=\$$ac_var
2607 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2609 $as_echo "$ac_var='\''$ac_val'\''"
2614 if test -s confdefs.h; then
2615 $as_echo "## ----------- ##
2622 test "$ac_signal" != 0 &&
2623 $as_echo "$as_me: caught signal $ac_signal"
2624 $as_echo "$as_me: exit $exit_status"
2626 rm -f core *.core core.conftest.* &&
2627 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2630 for ac_signal in 1 2 13 15; do
2631 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2635 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2636 rm -f -r conftest* confdefs.h
2638 $as_echo "/* confdefs.h */" > confdefs.h
2640 # Predefined preprocessor variables.
2642 cat >>confdefs.h <<_ACEOF
2643 #define PACKAGE_NAME "$PACKAGE_NAME"
2646 cat >>confdefs.h <<_ACEOF
2647 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2650 cat >>confdefs.h <<_ACEOF
2651 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2654 cat >>confdefs.h <<_ACEOF
2655 #define PACKAGE_STRING "$PACKAGE_STRING"
2658 cat >>confdefs.h <<_ACEOF
2659 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2662 cat >>confdefs.h <<_ACEOF
2663 #define PACKAGE_URL "$PACKAGE_URL"
2667 # Let the site file select an alternate cache file if it wants to.
2668 # Prefer an explicitly selected file to automatically selected ones.
2671 if test -n "$CONFIG_SITE"; then
2672 # We do not want a PATH search for config.site.
2673 case $CONFIG_SITE in #((
2674 -*) ac_site_file1=./$CONFIG_SITE;;
2675 */*) ac_site_file1=$CONFIG_SITE;;
2676 *) ac_site_file1=./$CONFIG_SITE;;
2678 elif test "x$prefix" != xNONE; then
2679 ac_site_file1=$prefix/share/config.site
2680 ac_site_file2=$prefix/etc/config.site
2682 ac_site_file1=$ac_default_prefix/share/config.site
2683 ac_site_file2=$ac_default_prefix/etc/config.site
2685 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2687 test "x$ac_site_file" = xNONE && continue
2688 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2690 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2691 sed 's/^/| /' "$ac_site_file" >&5
2693 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2695 as_fn_error $? "failed to load site script $ac_site_file
2696 See \`config.log' for more details" "$LINENO" 5; }
2700 if test -r "$cache_file"; then
2701 # Some versions of bash will fail to source /dev/null (special files
2702 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2703 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2705 $as_echo "$as_me: loading cache $cache_file" >&6;}
2707 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2708 *) . "./$cache_file";;
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2713 $as_echo "$as_me: creating cache $cache_file" >&6;}
2717 # Check that the precious variables saved in the cache have kept the same
2719 ac_cache_corrupted=false
2720 for ac_var in $ac_precious_vars; do
2721 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2722 eval ac_new_set=\$ac_env_${ac_var}_set
2723 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2724 eval ac_new_val=\$ac_env_${ac_var}_value
2725 case $ac_old_set,$ac_new_set in
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2728 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2729 ac_cache_corrupted=: ;;
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2732 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2733 ac_cache_corrupted=: ;;
2736 if test "x$ac_old_val" != "x$ac_new_val"; then
2737 # differences in whitespace do not lead to failure.
2738 ac_old_val_w=`echo x $ac_old_val`
2739 ac_new_val_w=`echo x $ac_new_val`
2740 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2742 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2743 ac_cache_corrupted=:
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2746 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2747 eval $ac_var=\$ac_old_val
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2750 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2752 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2755 # Pass precious variables to config.status.
2756 if test "$ac_new_set" = set; then
2758 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2759 *) ac_arg=$ac_var=$ac_new_val ;;
2761 case " $ac_configure_args " in
2762 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2763 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2767 if $ac_cache_corrupted; then
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2769 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2771 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2772 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2774 ## -------------------- ##
2775 ## Main body of script. ##
2776 ## -------------------- ##
2779 ac_cpp='$CPP $CPPFLAGS'
2780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2785 ac_config_headers="$ac_config_headers config.h pathnames.h"
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Sudo version $PACKAGE_VERSION" >&5
2788 $as_echo "$as_me: Configuring Sudo version $PACKAGE_VERSION" >&6;}
2878 # Begin initial values for man page substitution
2880 iolog_dir=/var/log/sudo-io
2881 timedir=/var/adm/sudo
2886 passprompt="Password:"
2898 mailsub="*** SECURITY information for %h ***"
2899 badpass_message="Sorry, try again."
2910 ldap_conf=/etc/ldap.conf
2911 ldap_secret=/etc/ldap.secret
2912 netsvc_conf=/etc/netsvc.conf
2913 noexec_file=/usr/local/libexec/sudo_noexec.so
2914 nsswitch_conf=/etc/nsswitch.conf
2915 secure_path="not set"
2917 # End initial values for man page substitution
2924 : ${SUDOERS_MODE='0440'}
2925 : ${SUDOERS_UID='0'}
2926 : ${SUDOERS_GID='0'}
2946 shadow_libs_optional=
2953 # Check whether --with-otp-only was given.
2954 if test "${with_otp_only+set}" = set; then :
2955 withval=$with_otp_only; case $with_otp_only in
2956 yes) with_passwd="no"
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-otp-only option deprecated, treating as --without-passwd" >&5
2958 $as_echo "$as_me: --with-otp-only option deprecated, treating as --without-passwd" >&6;}
2965 # Check whether --with-alertmail was given.
2966 if test "${with_alertmail+set}" = set; then :
2967 withval=$with_alertmail; case $with_alertmail in
2968 *) with_mailto="$with_alertmail"
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-alertmail option deprecated, treating as --mailto" >&5
2970 $as_echo "$as_me: --with-alertmail option deprecated, treating as --mailto" >&6;}
2978 # Check whether --with-devel was given.
2979 if test "${with_devel+set}" = set; then :
2980 withval=$with_devel; case $with_devel in
2981 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: Setting up for development: -Wall, flex, yacc" >&5
2982 $as_echo "$as_me: Setting up for development: -Wall, flex, yacc" >&6;}
2983 OSDEFS="${OSDEFS} -DSUDO_DEVEL"
2988 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&5
2989 $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&2;}
2996 # Check whether --with-CC was given.
2997 if test "${with_CC+set}" = set; then :
2998 withval=$with_CC; case $with_CC in
2999 *) as_fn_error $? "the --with-CC option is no longer supported, please set the CC environment variable instead." "$LINENO" 5
3006 # Check whether --with-rpath was given.
3007 if test "${with_rpath+set}" = set; then :
3008 withval=$with_rpath; case $with_rpath in
3010 *) as_fn_error $? "\"--with-rpath does not take an argument.\"" "$LINENO" 5
3017 # Check whether --with-blibpath was given.
3018 if test "${with_blibpath+set}" = set; then :
3019 withval=$with_blibpath; case $with_blibpath in
3021 *) { $as_echo "$as_me:${as_lineno-$LINENO}: will pass -blibpath:${with_blibpath} to the loader." >&5
3022 $as_echo "$as_me: will pass -blibpath:${with_blibpath} to the loader." >&6;}
3029 # Check whether --with-bsm-audit was given.
3030 if test "${with_bsm_audit+set}" = set; then :
3031 withval=$with_bsm_audit; case $with_bsm_audit in
3032 yes) $as_echo "#define HAVE_BSM_AUDIT 1" >>confdefs.h
3034 SUDOERS_LIBS="${SUDOERS_LIBS} -lbsm"
3035 SUDOERS_OBJS="${SUDOERS_OBJS} bsm_audit.lo"
3038 *) as_fn_error $? "\"--with-bsm-audit does not take an argument.\"" "$LINENO" 5
3045 ac_cpp='$CPP $CPPFLAGS'
3046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3049 if test -n "$ac_tool_prefix"; then
3050 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3051 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3053 $as_echo_n "checking for $ac_word... " >&6; }
3054 if ${ac_cv_prog_CC+:} false; then :
3055 $as_echo_n "(cached) " >&6
3057 if test -n "$CC"; then
3058 ac_cv_prog_CC="$CC" # Let the user override the test.
3060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3064 test -z "$as_dir" && as_dir=.
3065 for ac_exec_ext in '' $ac_executable_extensions; do
3066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3067 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3078 if test -n "$CC"; then
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3080 $as_echo "$CC" >&6; }
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3083 $as_echo "no" >&6; }
3088 if test -z "$ac_cv_prog_CC"; then
3090 # Extract the first word of "gcc", so it can be a program name with args.
3091 set dummy gcc; ac_word=$2
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3093 $as_echo_n "checking for $ac_word... " >&6; }
3094 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3095 $as_echo_n "(cached) " >&6
3097 if test -n "$ac_ct_CC"; then
3098 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3104 test -z "$as_dir" && as_dir=.
3105 for ac_exec_ext in '' $ac_executable_extensions; do
3106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3107 ac_cv_prog_ac_ct_CC="gcc"
3108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3117 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3118 if test -n "$ac_ct_CC"; then
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3120 $as_echo "$ac_ct_CC" >&6; }
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3123 $as_echo "no" >&6; }
3126 if test "x$ac_ct_CC" = x; then
3129 case $cross_compiling:$ac_tool_warned in
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3132 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3133 ac_tool_warned=yes ;;
3141 if test -z "$CC"; then
3142 if test -n "$ac_tool_prefix"; then
3143 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3144 set dummy ${ac_tool_prefix}cc; ac_word=$2
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3146 $as_echo_n "checking for $ac_word... " >&6; }
3147 if ${ac_cv_prog_CC+:} false; then :
3148 $as_echo_n "(cached) " >&6
3150 if test -n "$CC"; then
3151 ac_cv_prog_CC="$CC" # Let the user override the test.
3153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3157 test -z "$as_dir" && as_dir=.
3158 for ac_exec_ext in '' $ac_executable_extensions; do
3159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3160 ac_cv_prog_CC="${ac_tool_prefix}cc"
3161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3171 if test -n "$CC"; then
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3173 $as_echo "$CC" >&6; }
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3176 $as_echo "no" >&6; }
3182 if test -z "$CC"; then
3183 # Extract the first word of "cc", so it can be a program name with args.
3184 set dummy cc; ac_word=$2
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3186 $as_echo_n "checking for $ac_word... " >&6; }
3187 if ${ac_cv_prog_CC+:} false; then :
3188 $as_echo_n "(cached) " >&6
3190 if test -n "$CC"; then
3191 ac_cv_prog_CC="$CC" # Let the user override the test.
3194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198 test -z "$as_dir" && as_dir=.
3199 for ac_exec_ext in '' $ac_executable_extensions; do
3200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3201 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3202 ac_prog_rejected=yes
3206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3213 if test $ac_prog_rejected = yes; then
3214 # We found a bogon in the path, so make sure we never use it.
3215 set dummy $ac_cv_prog_CC
3217 if test $# != 0; then
3218 # We chose a different compiler from the bogus one.
3219 # However, it has the same basename, so the bogon will be chosen
3220 # first if we set CC to just the basename; use the full file name.
3222 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3228 if test -n "$CC"; then
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3230 $as_echo "$CC" >&6; }
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3233 $as_echo "no" >&6; }
3238 if test -z "$CC"; then
3239 if test -n "$ac_tool_prefix"; then
3240 for ac_prog in cl.exe
3242 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3243 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3245 $as_echo_n "checking for $ac_word... " >&6; }
3246 if ${ac_cv_prog_CC+:} false; then :
3247 $as_echo_n "(cached) " >&6
3249 if test -n "$CC"; then
3250 ac_cv_prog_CC="$CC" # Let the user override the test.
3252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256 test -z "$as_dir" && as_dir=.
3257 for ac_exec_ext in '' $ac_executable_extensions; do
3258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3259 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3270 if test -n "$CC"; then
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3272 $as_echo "$CC" >&6; }
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3275 $as_echo "no" >&6; }
3279 test -n "$CC" && break
3282 if test -z "$CC"; then
3284 for ac_prog in cl.exe
3286 # Extract the first word of "$ac_prog", so it can be a program name with args.
3287 set dummy $ac_prog; ac_word=$2
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3289 $as_echo_n "checking for $ac_word... " >&6; }
3290 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3291 $as_echo_n "(cached) " >&6
3293 if test -n "$ac_ct_CC"; then
3294 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300 test -z "$as_dir" && as_dir=.
3301 for ac_exec_ext in '' $ac_executable_extensions; do
3302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3303 ac_cv_prog_ac_ct_CC="$ac_prog"
3304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3313 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3314 if test -n "$ac_ct_CC"; then
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3316 $as_echo "$ac_ct_CC" >&6; }
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3319 $as_echo "no" >&6; }
3323 test -n "$ac_ct_CC" && break
3326 if test "x$ac_ct_CC" = x; then
3329 case $cross_compiling:$ac_tool_warned in
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3332 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3333 ac_tool_warned=yes ;;
3342 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3343 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3344 as_fn_error $? "no acceptable C compiler found in \$PATH
3345 See \`config.log' for more details" "$LINENO" 5; }
3347 # Provide some information about the compiler.
3348 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3351 for ac_option in --version -v -V -qversion; do
3352 { { ac_try="$ac_compiler $ac_option >&5"
3354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3355 *) ac_try_echo=$ac_try;;
3357 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3358 $as_echo "$ac_try_echo"; } >&5
3359 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3361 if test -s conftest.err; then
3363 ... rest of stderr output deleted ...
3364 10q' conftest.err >conftest.er1
3365 cat conftest.er1 >&5
3367 rm -f conftest.er1 conftest.err
3368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3369 test $ac_status = 0; }
3372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3373 /* end confdefs.h. */
3383 ac_clean_files_save=$ac_clean_files
3384 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3385 # Try to create an executable without -o first, disregard a.out.
3386 # It will help us diagnose broken compilers, and finding out an intuition
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3389 $as_echo_n "checking whether the C compiler works... " >&6; }
3390 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3392 # The possible output files:
3393 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3396 for ac_file in $ac_files
3399 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3400 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3405 if { { ac_try="$ac_link_default"
3407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408 *) ac_try_echo=$ac_try;;
3410 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3411 $as_echo "$ac_try_echo"; } >&5
3412 (eval "$ac_link_default") 2>&5
3414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3415 test $ac_status = 0; }; then :
3416 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3417 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3418 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3419 # so that the user can short-circuit this test for compilers unknown to
3421 for ac_file in $ac_files ''
3423 test -f "$ac_file" || continue
3425 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3428 # We found the default executable, but exeext='' is most
3432 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3434 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3436 # We set ac_cv_exeext here because the later test for it is not
3437 # safe: cross compilers may not add the suffix if given an `-o'
3438 # argument, so we may need to know it at that point already.
3439 # Even if this section looks crufty: it has the advantage of
3446 test "$ac_cv_exeext" = no && ac_cv_exeext=
3451 if test -z "$ac_file"; then :
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3453 $as_echo "no" >&6; }
3454 $as_echo "$as_me: failed program was:" >&5
3455 sed 's/^/| /' conftest.$ac_ext >&5
3457 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3459 as_fn_error 77 "C compiler cannot create executables
3460 See \`config.log' for more details" "$LINENO" 5; }
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3463 $as_echo "yes" >&6; }
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3466 $as_echo_n "checking for C compiler default output file name... " >&6; }
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3468 $as_echo "$ac_file" >&6; }
3469 ac_exeext=$ac_cv_exeext
3471 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3472 ac_clean_files=$ac_clean_files_save
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3474 $as_echo_n "checking for suffix of executables... " >&6; }
3475 if { { ac_try="$ac_link"
3477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478 *) ac_try_echo=$ac_try;;
3480 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3481 $as_echo "$ac_try_echo"; } >&5
3482 (eval "$ac_link") 2>&5
3484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3485 test $ac_status = 0; }; then :
3486 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3487 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3488 # work properly (i.e., refer to `conftest.exe'), while it won't with
3490 for ac_file in conftest.exe conftest conftest.*; do
3491 test -f "$ac_file" || continue
3493 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3494 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3500 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3502 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3503 See \`config.log' for more details" "$LINENO" 5; }
3505 rm -f conftest conftest$ac_cv_exeext
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3507 $as_echo "$ac_cv_exeext" >&6; }
3509 rm -f conftest.$ac_ext
3510 EXEEXT=$ac_cv_exeext
3512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513 /* end confdefs.h. */
3518 FILE *f = fopen ("conftest.out", "w");
3519 return ferror (f) || fclose (f) != 0;
3525 ac_clean_files="$ac_clean_files conftest.out"
3526 # Check that the compiler produces executables we can run. If not, either
3527 # the compiler is broken, or we cross compile.
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3529 $as_echo_n "checking whether we are cross compiling... " >&6; }
3530 if test "$cross_compiling" != yes; then
3531 { { ac_try="$ac_link"
3533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3534 *) ac_try_echo=$ac_try;;
3536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3537 $as_echo "$ac_try_echo"; } >&5
3538 (eval "$ac_link") 2>&5
3540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3541 test $ac_status = 0; }
3542 if { ac_try='./conftest$ac_cv_exeext'
3543 { { case "(($ac_try" in
3544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3545 *) ac_try_echo=$ac_try;;
3547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3548 $as_echo "$ac_try_echo"; } >&5
3549 (eval "$ac_try") 2>&5
3551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3552 test $ac_status = 0; }; }; then
3555 if test "$cross_compiling" = maybe; then
3558 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3560 as_fn_error $? "cannot run C compiled programs.
3561 If you meant to cross compile, use \`--host'.
3562 See \`config.log' for more details" "$LINENO" 5; }
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3567 $as_echo "$cross_compiling" >&6; }
3569 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3570 ac_clean_files=$ac_clean_files_save
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3572 $as_echo_n "checking for suffix of object files... " >&6; }
3573 if ${ac_cv_objext+:} false; then :
3574 $as_echo_n "(cached) " >&6
3576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577 /* end confdefs.h. */
3587 rm -f conftest.o conftest.obj
3588 if { { ac_try="$ac_compile"
3590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3591 *) ac_try_echo=$ac_try;;
3593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3594 $as_echo "$ac_try_echo"; } >&5
3595 (eval "$ac_compile") 2>&5
3597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3598 test $ac_status = 0; }; then :
3599 for ac_file in conftest.o conftest.obj conftest.*; do
3600 test -f "$ac_file" || continue;
3602 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3603 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3608 $as_echo "$as_me: failed program was:" >&5
3609 sed 's/^/| /' conftest.$ac_ext >&5
3611 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3612 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3613 as_fn_error $? "cannot compute suffix of object files: cannot compile
3614 See \`config.log' for more details" "$LINENO" 5; }
3616 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3619 $as_echo "$ac_cv_objext" >&6; }
3620 OBJEXT=$ac_cv_objext
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3623 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3624 if ${ac_cv_c_compiler_gnu+:} false; then :
3625 $as_echo_n "(cached) " >&6
3627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3628 /* end confdefs.h. */
3641 if ac_fn_c_try_compile "$LINENO"; then :
3646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3647 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3651 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3652 if test $ac_compiler_gnu = yes; then
3657 ac_test_CFLAGS=${CFLAGS+set}
3658 ac_save_CFLAGS=$CFLAGS
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3660 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3661 if ${ac_cv_prog_cc_g+:} false; then :
3662 $as_echo_n "(cached) " >&6
3664 ac_save_c_werror_flag=$ac_c_werror_flag
3665 ac_c_werror_flag=yes
3668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3669 /* end confdefs.h. */
3679 if ac_fn_c_try_compile "$LINENO"; then :
3683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3684 /* end confdefs.h. */
3694 if ac_fn_c_try_compile "$LINENO"; then :
3697 ac_c_werror_flag=$ac_save_c_werror_flag
3699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3700 /* end confdefs.h. */
3710 if ac_fn_c_try_compile "$LINENO"; then :
3713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3718 ac_c_werror_flag=$ac_save_c_werror_flag
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3721 $as_echo "$ac_cv_prog_cc_g" >&6; }
3722 if test "$ac_test_CFLAGS" = set; then
3723 CFLAGS=$ac_save_CFLAGS
3724 elif test $ac_cv_prog_cc_g = yes; then
3725 if test "$GCC" = yes; then
3731 if test "$GCC" = yes; then
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3738 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3739 if ${ac_cv_prog_cc_c89+:} false; then :
3740 $as_echo_n "(cached) " >&6
3742 ac_cv_prog_cc_c89=no
3744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3745 /* end confdefs.h. */
3748 #include <sys/types.h>
3749 #include <sys/stat.h>
3750 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3751 struct buf { int x; };
3752 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3753 static char *e (p, i)
3759 static char *f (char * (*g) (char **, int), char **p, ...)
3764 s = g (p, va_arg (v,int));
3769 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3770 function prototypes and stuff, but not '\xHH' hex character constants.
3771 These don't provoke an error unfortunately, instead are silently treated
3772 as 'x'. The following induces an error, until -std is added to get
3773 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3774 array size at least. It's necessary to write '\x00'==0 to get something
3775 that's true only with -std. */
3776 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3778 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3779 inside strings and character constants. */
3781 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3783 int test (int i, double x);
3784 struct s1 {int (*f) (int a);};
3785 struct s2 {int (*f) (double a);};
3786 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3792 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3797 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3798 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3800 CC="$ac_save_CC $ac_arg"
3801 if ac_fn_c_try_compile "$LINENO"; then :
3802 ac_cv_prog_cc_c89=$ac_arg
3804 rm -f core conftest.err conftest.$ac_objext
3805 test "x$ac_cv_prog_cc_c89" != "xno" && break
3807 rm -f conftest.$ac_ext
3812 case "x$ac_cv_prog_cc_c89" in
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3815 $as_echo "none needed" >&6; } ;;
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3818 $as_echo "unsupported" >&6; } ;;
3820 CC="$CC $ac_cv_prog_cc_c89"
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3822 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3824 if test "x$ac_cv_prog_cc_c89" != xno; then :
3829 ac_cpp='$CPP $CPPFLAGS'
3830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3836 # Check whether --with-linux-audit was given.
3837 if test "${with_linux_audit+set}" = set; then :
3838 withval=$with_linux_audit; case $with_linux_audit in
3839 yes) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3840 /* end confdefs.h. */
3841 #include <libaudit.h>
3845 int i = AUDIT_USER_CMD; (void)i;
3850 if ac_fn_c_try_compile "$LINENO"; then :
3852 $as_echo "#define HAVE_LINUX_AUDIT 1" >>confdefs.h
3854 SUDO_LIBS="${SUDO_LIBS} -laudit"
3855 SUDOERS_LIBS="${SUDO_LIBS} -laudit"
3856 SUDOERS_OBJS="${SUDOERS_OBJS} linux_audit.lo"
3860 as_fn_error $? "unable to find AUDIT_USER_CMD in libaudit.h for --with-linux-audit" "$LINENO" 5
3863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3866 *) as_fn_error $? "\"--with-linux-audit does not take an argument.\"" "$LINENO" 5
3873 # Check whether --with-incpath was given.
3874 if test "${with_incpath+set}" = set; then :
3875 withval=$with_incpath; case $with_incpath in
3876 yes) as_fn_error $? "\"must give --with-incpath an argument.\"" "$LINENO" 5
3878 no) as_fn_error $? "\"--without-incpath not supported.\"" "$LINENO" 5
3880 *) { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_incpath} to CPPFLAGS" >&5
3881 $as_echo "$as_me: Adding ${with_incpath} to CPPFLAGS" >&6;}
3882 for i in ${with_incpath}; do
3883 CPPFLAGS="${CPPFLAGS} -I${i}"
3891 # Check whether --with-libpath was given.
3892 if test "${with_libpath+set}" = set; then :
3893 withval=$with_libpath; case $with_libpath in
3894 yes) as_fn_error $? "\"must give --with-libpath an argument.\"" "$LINENO" 5
3896 no) as_fn_error $? "\"--without-libpath not supported.\"" "$LINENO" 5
3898 *) { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_libpath} to LDFLAGS" >&5
3899 $as_echo "$as_me: Adding ${with_libpath} to LDFLAGS" >&6;}
3906 # Check whether --with-libraries was given.
3907 if test "${with_libraries+set}" = set; then :
3908 withval=$with_libraries; case $with_libraries in
3909 yes) as_fn_error $? "\"must give --with-libraries an argument.\"" "$LINENO" 5
3911 no) as_fn_error $? "\"--without-libraries not supported.\"" "$LINENO" 5
3913 *) { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_libraries} to LIBS" >&5
3914 $as_echo "$as_me: Adding ${with_libraries} to LIBS" >&6;}
3921 # Check whether --with-efence was given.
3922 if test "${with_efence+set}" = set; then :
3923 withval=$with_efence; case $with_efence in
3924 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: Sudo will link with -lefence (Electric Fence)" >&5
3925 $as_echo "$as_me: Sudo will link with -lefence (Electric Fence)" >&6;}
3926 LIBS="${LIBS} -lefence"
3927 if test -f /usr/local/lib/libefence.a; then
3928 with_libpath="${with_libpath} /usr/local/lib"
3932 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&5
3933 $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&2;}
3940 # Check whether --with-csops was given.
3941 if test "${with_csops+set}" = set; then :
3942 withval=$with_csops; case $with_csops in
3943 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: Adding CSOps standard options" >&5
3944 $as_echo "$as_me: Adding CSOps standard options" >&6;}
3948 with_classic_insults=yes
3949 with_csops_insults=yes
3952 : ${mansectform='5'}
3955 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&5
3956 $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&2;}
3963 # Check whether --with-passwd was given.
3964 if test "${with_passwd+set}" = set; then :
3965 withval=$with_passwd; case $with_passwd in
3966 yes|no) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use shadow/passwd file authentication" >&5
3967 $as_echo_n "checking whether to use shadow/passwd file authentication... " >&6; }
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_passwd" >&5
3969 $as_echo "$with_passwd" >&6; }
3971 test "$with_passwd" = "yes" && AUTH_REG="$AUTH_REG passwd"
3973 *) as_fn_error $? "\"Sorry, --with-passwd does not take an argument.\"" "$LINENO" 5
3980 # Check whether --with-skey was given.
3981 if test "${with_skey+set}" = set; then :
3982 withval=$with_skey; case $with_skey in
3984 *) $as_echo "#define HAVE_SKEY 1" >>confdefs.h
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try S/Key authentication" >&5
3987 $as_echo_n "checking whether to try S/Key authentication... " >&6; }
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3989 $as_echo "yes" >&6; }
3990 AUTH_REG="$AUTH_REG S/Key"
3997 # Check whether --with-opie was given.
3998 if test "${with_opie+set}" = set; then :
3999 withval=$with_opie; case $with_opie in
4001 *) $as_echo "#define HAVE_OPIE 1" >>confdefs.h
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try NRL OPIE authentication" >&5
4004 $as_echo_n "checking whether to try NRL OPIE authentication... " >&6; }
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4006 $as_echo "yes" >&6; }
4007 AUTH_REG="$AUTH_REG NRL_OPIE"
4014 # Check whether --with-long-otp-prompt was given.
4015 if test "${with_long_otp_prompt+set}" = set; then :
4016 withval=$with_long_otp_prompt; case $with_long_otp_prompt in
4017 yes) $as_echo "#define LONG_OTP_PROMPT 1" >>confdefs.h
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use a two line prompt for OTP authentication" >&5
4020 $as_echo_n "checking whether to use a two line prompt for OTP authentication... " >&6; }
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4022 $as_echo "yes" >&6; }
4025 no) long_otp_prompt=off
4027 *) as_fn_error $? "\"--with-long-otp-prompt does not take an argument.\"" "$LINENO" 5
4034 # Check whether --with-SecurID was given.
4035 if test "${with_SecurID+set}" = set; then :
4036 withval=$with_SecurID; case $with_SecurID in
4038 *) $as_echo "#define HAVE_SECURID 1" >>confdefs.h
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use SecurID for authentication" >&5
4041 $as_echo_n "checking whether to use SecurID for authentication... " >&6; }
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4043 $as_echo "yes" >&6; }
4044 AUTH_EXCL="$AUTH_EXCL SecurID"
4051 # Check whether --with-fwtk was given.
4052 if test "${with_fwtk+set}" = set; then :
4053 withval=$with_fwtk; case $with_fwtk in
4055 *) $as_echo "#define HAVE_FWTK 1" >>confdefs.h
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use FWTK AuthSRV for authentication" >&5
4058 $as_echo_n "checking whether to use FWTK AuthSRV for authentication... " >&6; }
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4060 $as_echo "yes" >&6; }
4061 AUTH_EXCL="$AUTH_EXCL FWTK"
4068 # Check whether --with-kerb5 was given.
4069 if test "${with_kerb5+set}" = set; then :
4070 withval=$with_kerb5; case $with_kerb5 in
4072 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try Kerberos V authentication" >&5
4073 $as_echo_n "checking whether to try Kerberos V authentication... " >&6; }
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4075 $as_echo "yes" >&6; }
4076 AUTH_REG="$AUTH_REG kerb5"
4083 # Check whether --with-aixauth was given.
4084 if test "${with_aixauth+set}" = set; then :
4085 withval=$with_aixauth; case $with_aixauth in
4086 yes) AUTH_EXCL="$AUTH_EXCL AIX_AUTH";;
4088 *) as_fn_error $? "\"--with-aixauth does not take an argument.\"" "$LINENO" 5
4095 # Check whether --with-pam was given.
4096 if test "${with_pam+set}" = set; then :
4097 withval=$with_pam; case $with_pam in
4098 yes) AUTH_EXCL="$AUTH_EXCL PAM";;
4100 *) as_fn_error $? "\"--with-pam does not take an argument.\"" "$LINENO" 5
4107 # Check whether --with-AFS was given.
4108 if test "${with_AFS+set}" = set; then :
4109 withval=$with_AFS; case $with_AFS in
4110 yes) $as_echo "#define HAVE_AFS 1" >>confdefs.h
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try AFS (kerberos) authentication" >&5
4113 $as_echo_n "checking whether to try AFS (kerberos) authentication... " >&6; }
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4115 $as_echo "yes" >&6; }
4116 AUTH_REG="$AUTH_REG AFS"
4119 *) as_fn_error $? "\"--with-AFS does not take an argument.\"" "$LINENO" 5
4126 # Check whether --with-DCE was given.
4127 if test "${with_DCE+set}" = set; then :
4128 withval=$with_DCE; case $with_DCE in
4129 yes) $as_echo "#define HAVE_DCE 1" >>confdefs.h
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try DCE (kerberos) authentication" >&5
4132 $as_echo_n "checking whether to try DCE (kerberos) authentication... " >&6; }
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4134 $as_echo "yes" >&6; }
4135 AUTH_REG="$AUTH_REG DCE"
4138 *) as_fn_error $? "\"--with-DCE does not take an argument.\"" "$LINENO" 5
4145 # Check whether --with-logincap was given.
4146 if test "${with_logincap+set}" = set; then :
4147 withval=$with_logincap; case $with_logincap in
4149 *) as_fn_error $? "\"--with-logincap does not take an argument.\"" "$LINENO" 5
4156 # Check whether --with-bsdauth was given.
4157 if test "${with_bsdauth+set}" = set; then :
4158 withval=$with_bsdauth; case $with_bsdauth in
4159 yes) AUTH_EXCL="$AUTH_EXCL BSD_AUTH";;
4161 *) as_fn_error $? "\"--with-bsdauth does not take an argument.\"" "$LINENO" 5
4168 # Check whether --with-project was given.
4169 if test "${with_project+set}" = set; then :
4170 withval=$with_project; case $with_project in
4173 *) as_fn_error $? "\"--with-project does not take an argument.\"" "$LINENO" 5
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to lecture users the first time they run sudo" >&5
4180 $as_echo_n "checking whether to lecture users the first time they run sudo... " >&6; }
4182 # Check whether --with-lecture was given.
4183 if test "${with_lecture+set}" = set; then :
4184 withval=$with_lecture; case $with_lecture in
4185 yes|short|always) lecture=once
4187 no|none|never) lecture=never
4189 *) as_fn_error $? "\"unknown argument to --with-lecture: $with_lecture\"" "$LINENO" 5
4194 if test "$lecture" = "once"; then
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4196 $as_echo "yes" >&6; }
4198 $as_echo "#define NO_LECTURE 1" >>confdefs.h
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4201 $as_echo "no" >&6; }
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sudo should log via syslog or to a file by default" >&5
4205 $as_echo_n "checking whether sudo should log via syslog or to a file by default... " >&6; }
4207 # Check whether --with-logging was given.
4208 if test "${with_logging+set}" = set; then :
4209 withval=$with_logging; case $with_logging in
4210 yes) as_fn_error $? "\"must give --with-logging an argument.\"" "$LINENO" 5
4212 no) as_fn_error $? "\"--without-logging not supported.\"" "$LINENO" 5
4214 syslog) $as_echo "#define LOGGING SLOG_SYSLOG" >>confdefs.h
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: syslog" >&5
4217 $as_echo "syslog" >&6; }
4219 file) $as_echo "#define LOGGING SLOG_FILE" >>confdefs.h
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file" >&5
4222 $as_echo "file" >&6; }
4224 both) $as_echo "#define LOGGING SLOG_BOTH" >>confdefs.h
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: both" >&5
4227 $as_echo "both" >&6; }
4229 *) as_fn_error $? "\"unknown argument to --with-logging: $with_logging\"" "$LINENO" 5
4233 $as_echo "#define LOGGING SLOG_SYSLOG" >>confdefs.h
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: syslog" >&5
4235 $as_echo "syslog" >&6; }
4240 # Check whether --with-logfac was given.
4241 if test "${with_logfac+set}" = set; then :
4242 withval=$with_logfac; case $with_logfac in
4243 yes) as_fn_error $? "\"must give --with-logfac an argument.\"" "$LINENO" 5
4245 no) as_fn_error $? "\"--without-logfac not supported.\"" "$LINENO" 5
4247 authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7) logfac=$with_logfac
4249 *) as_fn_error $? "\"$with_logfac is not a supported syslog facility.\"" "$LINENO" 5
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking at which syslog priority to log commands" >&5
4256 $as_echo_n "checking at which syslog priority to log commands... " >&6; }
4258 # Check whether --with-goodpri was given.
4259 if test "${with_goodpri+set}" = set; then :
4260 withval=$with_goodpri; case $with_goodpri in
4261 yes) as_fn_error $? "\"must give --with-goodpri an argument.\"" "$LINENO" 5
4263 no) as_fn_error $? "\"--without-goodpri not supported.\"" "$LINENO" 5
4265 alert|crit|debug|emerg|err|info|notice|warning)
4266 goodpri=$with_goodpri
4268 *) as_fn_error $? "\"$with_goodpri is not a supported syslog priority.\"" "$LINENO" 5
4274 cat >>confdefs.h <<_ACEOF
4275 #define PRI_SUCCESS "$goodpri"
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $goodpri" >&5
4279 $as_echo "$goodpri" >&6; }
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking at which syslog priority to log failures" >&5
4282 $as_echo_n "checking at which syslog priority to log failures... " >&6; }
4284 # Check whether --with-badpri was given.
4285 if test "${with_badpri+set}" = set; then :
4286 withval=$with_badpri; case $with_badpri in
4287 yes) as_fn_error $? "\"must give --with-badpri an argument.\"" "$LINENO" 5
4289 no) as_fn_error $? "\"--without-badpri not supported.\"" "$LINENO" 5
4291 alert|crit|debug|emerg|err|info|notice|warning)
4294 *) as_fn_error $? "$with_badpri is not a supported syslog priority." "$LINENO" 5
4300 cat >>confdefs.h <<_ACEOF
4301 #define PRI_FAILURE "$badpri"
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $badpri" >&5
4305 $as_echo "$badpri" >&6; }
4308 # Check whether --with-logpath was given.
4309 if test "${with_logpath+set}" = set; then :
4310 withval=$with_logpath; case $with_logpath in
4311 yes) as_fn_error $? "\"must give --with-logpath an argument.\"" "$LINENO" 5
4313 no) as_fn_error $? "\"--without-logpath not supported.\"" "$LINENO" 5
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how long a line in the log file should be" >&5
4320 $as_echo_n "checking how long a line in the log file should be... " >&6; }
4322 # Check whether --with-loglen was given.
4323 if test "${with_loglen+set}" = set; then :
4324 withval=$with_loglen; case $with_loglen in
4325 yes) as_fn_error $? "\"must give --with-loglen an argument.\"" "$LINENO" 5
4327 no) as_fn_error $? "\"--without-loglen not supported.\"" "$LINENO" 5
4329 [0-9]*) loglen=$with_loglen
4331 *) as_fn_error $? "\"you must enter a number, not $with_loglen\"" "$LINENO" 5
4337 cat >>confdefs.h <<_ACEOF
4338 #define MAXLOGFILELEN $loglen
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $loglen" >&5
4342 $as_echo "$loglen" >&6; }
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sudo should ignore '.' or '' in \$PATH" >&5
4345 $as_echo_n "checking whether sudo should ignore '.' or '' in \$PATH... " >&6; }
4347 # Check whether --with-ignore-dot was given.
4348 if test "${with_ignore_dot+set}" = set; then :
4349 withval=$with_ignore_dot; case $with_ignore_dot in
4354 *) as_fn_error $? "\"--with-ignore-dot does not take an argument.\"" "$LINENO" 5
4359 if test "$ignore_dot" = "on"; then
4360 $as_echo "#define IGNORE_DOT_PATH 1" >>confdefs.h
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4363 $as_echo "yes" >&6; }
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4366 $as_echo "no" >&6; }
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when a user is not in sudoers" >&5
4370 $as_echo_n "checking whether to send mail when a user is not in sudoers... " >&6; }
4372 # Check whether --with-mail-if-no-user was given.
4373 if test "${with_mail_if_no_user+set}" = set; then :
4374 withval=$with_mail_if_no_user; case $with_mail_if_no_user in
4375 yes) mail_no_user=on
4377 no) mail_no_user=off
4379 *) as_fn_error $? "\"--with-mail-if-no-user does not take an argument.\"" "$LINENO" 5
4384 if test "$mail_no_user" = "on"; then
4385 $as_echo "#define SEND_MAIL_WHEN_NO_USER 1" >>confdefs.h
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4388 $as_echo "yes" >&6; }
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4391 $as_echo "no" >&6; }
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when user listed but not for this host" >&5
4395 $as_echo_n "checking whether to send mail when user listed but not for this host... " >&6; }
4397 # Check whether --with-mail-if-no-host was given.
4398 if test "${with_mail_if_no_host+set}" = set; then :
4399 withval=$with_mail_if_no_host; case $with_mail_if_no_host in
4400 yes) mail_no_host=on
4402 no) mail_no_host=off
4404 *) as_fn_error $? "\"--with-mail-if-no-host does not take an argument.\"" "$LINENO" 5
4409 if test "$mail_no_host" = "on"; then
4410 $as_echo "#define SEND_MAIL_WHEN_NO_HOST 1" >>confdefs.h
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4413 $as_echo "yes" >&6; }
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4416 $as_echo "no" >&6; }
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when a user tries a disallowed command" >&5
4420 $as_echo_n "checking whether to send mail when a user tries a disallowed command... " >&6; }
4422 # Check whether --with-mail-if-noperms was given.
4423 if test "${with_mail_if_noperms+set}" = set; then :
4424 withval=$with_mail_if_noperms; case $with_mail_if_noperms in
4425 yes) mail_noperms=on
4427 no) mail_noperms=off
4429 *) as_fn_error $? "\"--with-mail-if-noperms does not take an argument.\"" "$LINENO" 5
4434 if test "$mail_noperms" = "on"; then
4435 $as_echo "#define SEND_MAIL_WHEN_NOT_OK 1" >>confdefs.h
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4438 $as_echo "yes" >&6; }
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4441 $as_echo "no" >&6; }
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking who should get the mail that sudo sends" >&5
4445 $as_echo_n "checking who should get the mail that sudo sends... " >&6; }
4447 # Check whether --with-mailto was given.
4448 if test "${with_mailto+set}" = set; then :
4449 withval=$with_mailto; case $with_mailto in
4450 yes) as_fn_error $? "\"must give --with-mailto an argument.\"" "$LINENO" 5
4452 no) as_fn_error $? "\"--without-mailto not supported.\"" "$LINENO" 5
4454 *) mailto=$with_mailto
4460 cat >>confdefs.h <<_ACEOF
4461 #define MAILTO "$mailto"
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mailto" >&5
4465 $as_echo "$mailto" >&6; }
4468 # Check whether --with-mailsubject was given.
4469 if test "${with_mailsubject+set}" = set; then :
4470 withval=$with_mailsubject; case $with_mailsubject in
4471 yes) as_fn_error $? "\"must give --with-mailsubject an argument.\"" "$LINENO" 5
4473 no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-mailsubject not supported." >&5
4474 $as_echo "$as_me: WARNING: Sorry, --without-mailsubject not supported." >&2;}
4476 *) mailsub="$with_mailsubject"
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sudo mail subject" >&5
4478 $as_echo_n "checking sudo mail subject... " >&6; }
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using alert mail subject: $mailsub" >&5
4480 $as_echo "Using alert mail subject: $mailsub" >&6; }
4486 cat >>confdefs.h <<_ACEOF
4487 #define MAILSUBJECT "$mailsub"
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bad password prompt" >&5
4492 $as_echo_n "checking for bad password prompt... " >&6; }
4494 # Check whether --with-passprompt was given.
4495 if test "${with_passprompt+set}" = set; then :
4496 withval=$with_passprompt; case $with_passprompt in
4497 yes) as_fn_error $? "\"must give --with-passprompt an argument.\"" "$LINENO" 5
4499 no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-passprompt not supported." >&5
4500 $as_echo "$as_me: WARNING: Sorry, --without-passprompt not supported." >&2;}
4502 *) passprompt="$with_passprompt"
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $passprompt" >&5
4507 $as_echo "$passprompt" >&6; }
4509 cat >>confdefs.h <<_ACEOF
4510 #define PASSPROMPT "$passprompt"
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bad password message" >&5
4515 $as_echo_n "checking for bad password message... " >&6; }
4517 # Check whether --with-badpass-message was given.
4518 if test "${with_badpass_message+set}" = set; then :
4519 withval=$with_badpass_message; case $with_badpass_message in
4520 yes) as_fn_error $? "\"Must give --with-badpass-message an argument.\"" "$LINENO" 5
4522 no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-badpass-message not supported." >&5
4523 $as_echo "$as_me: WARNING: Sorry, --without-badpass-message not supported." >&2;}
4525 *) badpass_message="$with_badpass_message"
4531 cat >>confdefs.h <<_ACEOF
4532 #define INCORRECT_PASSWORD "$badpass_message"
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $badpass_message" >&5
4536 $as_echo "$badpass_message" >&6; }
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to expect fully qualified hosts in sudoers" >&5
4539 $as_echo_n "checking whether to expect fully qualified hosts in sudoers... " >&6; }
4541 # Check whether --with-fqdn was given.
4542 if test "${with_fqdn+set}" = set; then :
4543 withval=$with_fqdn; case $with_fqdn in
4548 *) as_fn_error $? "\"--with-fqdn does not take an argument.\"" "$LINENO" 5
4553 if test "$fqdn" = "on"; then
4554 $as_echo "#define FQDN 1" >>confdefs.h
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4557 $as_echo "yes" >&6; }
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4560 $as_echo "no" >&6; }
4564 # Check whether --with-timedir was given.
4565 if test "${with_timedir+set}" = set; then :
4566 withval=$with_timedir; case $with_timedir in
4567 yes) as_fn_error $? "\"must give --with-timedir an argument.\"" "$LINENO" 5
4569 no) as_fn_error $? "\"--without-timedir not supported.\"" "$LINENO" 5
4576 # Check whether --with-iologdir was given.
4577 if test "${with_iologdir+set}" = set; then :
4578 withval=$with_iologdir; case $with_iologdir in
4580 no) as_fn_error $? "\"--without-iologdir not supported.\"" "$LINENO" 5
4587 # Check whether --with-sendmail was given.
4588 if test "${with_sendmail+set}" = set; then :
4589 withval=$with_sendmail; case $with_sendmail in
4590 yes) with_sendmail=""
4593 *) cat >>confdefs.h <<EOF
4594 #define _PATH_SUDO_SENDMAIL "$with_sendmail"
4603 # Check whether --with-sudoers-mode was given.
4604 if test "${with_sudoers_mode+set}" = set; then :
4605 withval=$with_sudoers_mode; case $with_sudoers_mode in
4606 yes) as_fn_error $? "\"must give --with-sudoers-mode an argument.\"" "$LINENO" 5
4608 no) as_fn_error $? "\"--without-sudoers-mode not supported.\"" "$LINENO" 5
4610 [1-9]*) SUDOERS_MODE=0${with_sudoers_mode}
4612 0*) SUDOERS_MODE=$with_sudoers_mode
4614 *) as_fn_error $? "\"you must use an octal mode, not a name.\"" "$LINENO" 5
4621 # Check whether --with-sudoers-uid was given.
4622 if test "${with_sudoers_uid+set}" = set; then :
4623 withval=$with_sudoers_uid; case $with_sudoers_uid in
4624 yes) as_fn_error $? "\"must give --with-sudoers-uid an argument.\"" "$LINENO" 5
4626 no) as_fn_error $? "\"--without-sudoers-uid not supported.\"" "$LINENO" 5
4628 [0-9]*) SUDOERS_UID=$with_sudoers_uid
4630 *) as_fn_error $? "\"you must use an unsigned numeric uid, not a name.\"" "$LINENO" 5
4637 # Check whether --with-sudoers-gid was given.
4638 if test "${with_sudoers_gid+set}" = set; then :
4639 withval=$with_sudoers_gid; case $with_sudoers_gid in
4640 yes) as_fn_error $? "\"must give --with-sudoers-gid an argument.\"" "$LINENO" 5
4642 no) as_fn_error $? "\"--without-sudoers-gid not supported.\"" "$LINENO" 5
4644 [0-9]*) SUDOERS_GID=$with_sudoers_gid
4646 *) as_fn_error $? "\"you must use an unsigned numeric gid, not a name.\"" "$LINENO" 5
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umask programs should be run with" >&5
4653 $as_echo_n "checking for umask programs should be run with... " >&6; }
4655 # Check whether --with-umask was given.
4656 if test "${with_umask+set}" = set; then :
4657 withval=$with_umask; case $with_umask in
4658 yes) as_fn_error $? "\"must give --with-umask an argument.\"" "$LINENO" 5
4662 [0-9]*) sudo_umask=$with_umask
4664 *) as_fn_error $? "\"you must enter a numeric mask.\"" "$LINENO" 5
4670 cat >>confdefs.h <<_ACEOF
4671 #define SUDO_UMASK $sudo_umask
4674 if test "$sudo_umask" = "0777"; then
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: user" >&5
4676 $as_echo "user" >&6; }
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_umask" >&5
4679 $as_echo "$sudo_umask" >&6; }
4683 # Check whether --with-umask-override was given.
4684 if test "${with_umask_override+set}" = set; then :
4685 withval=$with_umask_override; case $with_umask_override in
4686 yes) $as_echo "#define UMASK_OVERRIDE 1" >>confdefs.h
4690 no) umask_override=off
4692 *) as_fn_error $? "\"--with-umask-override does not take an argument.\"" "$LINENO" 5
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default user to run commands as" >&5
4699 $as_echo_n "checking for default user to run commands as... " >&6; }
4701 # Check whether --with-runas-default was given.
4702 if test "${with_runas_default+set}" = set; then :
4703 withval=$with_runas_default; case $with_runas_default in
4704 yes) as_fn_error $? "\"must give --with-runas-default an argument.\"" "$LINENO" 5
4706 no) as_fn_error $? "\"--without-runas-default not supported.\"" "$LINENO" 5
4708 *) runas_default="$with_runas_default"
4714 cat >>confdefs.h <<_ACEOF
4715 #define RUNAS_DEFAULT "$runas_default"
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $runas_default" >&5
4719 $as_echo "$runas_default" >&6; }
4722 # Check whether --with-exempt was given.
4723 if test "${with_exempt+set}" = set; then :
4724 withval=$with_exempt; case $with_exempt in
4725 yes) as_fn_error $? "\"must give --with-exempt an argument.\"" "$LINENO" 5
4727 no) as_fn_error $? "\"--without-exempt not supported.\"" "$LINENO" 5
4730 cat >>confdefs.h <<_ACEOF
4731 #define EXEMPTGROUP "$with_exempt"
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for group to be exempt from password" >&5
4735 $as_echo_n "checking for group to be exempt from password... " >&6; }
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_exempt" >&5
4737 $as_echo "$with_exempt" >&6; }
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for editor that visudo should use" >&5
4744 $as_echo_n "checking for editor that visudo should use... " >&6; }
4746 # Check whether --with-editor was given.
4747 if test "${with_editor+set}" = set; then :
4748 withval=$with_editor; case $with_editor in
4749 yes) as_fn_error $? "\"must give --with-editor an argument.\"" "$LINENO" 5
4751 no) as_fn_error $? "\"--without-editor not supported.\"" "$LINENO" 5
4754 cat >>confdefs.h <<_ACEOF
4755 #define EDITOR "$with_editor"
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_editor" >&5
4759 $as_echo "$with_editor" >&6; }
4760 editor="$with_editor"
4764 $as_echo "#define EDITOR _PATH_VI" >>confdefs.h
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: vi" >&5
4766 $as_echo "vi" >&6; }
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to obey EDITOR and VISUAL environment variables" >&5
4771 $as_echo_n "checking whether to obey EDITOR and VISUAL environment variables... " >&6; }
4773 # Check whether --with-env-editor was given.
4774 if test "${with_env_editor+set}" = set; then :
4775 withval=$with_env_editor; case $with_env_editor in
4780 *) as_fn_error $? "\"--with-env-editor does not take an argument.\"" "$LINENO" 5
4785 if test "$env_editor" = "on"; then
4786 $as_echo "#define ENV_EDITOR 1" >>confdefs.h
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4789 $as_echo "yes" >&6; }
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4792 $as_echo "no" >&6; }
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of tries a user gets to enter their password" >&5
4796 $as_echo_n "checking number of tries a user gets to enter their password... " >&6; }
4798 # Check whether --with-passwd-tries was given.
4799 if test "${with_passwd_tries+set}" = set; then :
4800 withval=$with_passwd_tries; case $with_passwd_tries in
4802 no) as_fn_error $? "\"--without-editor not supported.\"" "$LINENO" 5
4804 [1-9]*) passwd_tries=$with_passwd_tries
4806 *) as_fn_error $? "\"you must enter the numer of tries, > 0\"" "$LINENO" 5
4812 cat >>confdefs.h <<_ACEOF
4813 #define TRIES_FOR_PASSWORD $passwd_tries
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $passwd_tries" >&5
4817 $as_echo "$passwd_tries" >&6; }
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking time in minutes after which sudo will ask for a password again" >&5
4820 $as_echo_n "checking time in minutes after which sudo will ask for a password again... " >&6; }
4822 # Check whether --with-timeout was given.
4823 if test "${with_timeout+set}" = set; then :
4824 withval=$with_timeout; case $with_timeout in
4828 [0-9]*) timeout=$with_timeout
4830 *) as_fn_error $? "\"you must enter the numer of minutes.\"" "$LINENO" 5
4836 cat >>confdefs.h <<_ACEOF
4837 #define TIMEOUT $timeout
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $timeout" >&5
4841 $as_echo "$timeout" >&6; }
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking time in minutes after the password prompt will time out" >&5
4844 $as_echo_n "checking time in minutes after the password prompt will time out... " >&6; }
4846 # Check whether --with-password-timeout was given.
4847 if test "${with_password_timeout+set}" = set; then :
4848 withval=$with_password_timeout; case $with_password_timeout in
4850 no) password_timeout=0
4852 [0-9]*) password_timeout=$with_password_timeout
4854 *) as_fn_error $? "\"you must enter the numer of minutes.\"" "$LINENO" 5
4860 cat >>confdefs.h <<_ACEOF
4861 #define PASSWORD_TIMEOUT $password_timeout
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $password_timeout" >&5
4865 $as_echo "$password_timeout" >&6; }
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use per-tty ticket files" >&5
4868 $as_echo_n "checking whether to use per-tty ticket files... " >&6; }
4870 # Check whether --with-tty-tickets was given.
4871 if test "${with_tty_tickets+set}" = set; then :
4872 withval=$with_tty_tickets; case $with_tty_tickets in
4877 *) as_fn_error $? "\"--with-tty-tickets does not take an argument.\"" "$LINENO" 5
4882 if test "$tty_tickets" = "off"; then
4883 $as_echo "#define NO_TTY_TICKETS 1" >>confdefs.h
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4886 $as_echo "no" >&6; }
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4889 $as_echo "yes" >&6; }
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include insults" >&5
4893 $as_echo_n "checking whether to include insults... " >&6; }
4895 # Check whether --with-insults was given.
4896 if test "${with_insults+set}" = set; then :
4897 withval=$with_insults; case $with_insults in
4899 with_classic_insults=yes
4900 with_csops_insults=yes
4902 disabled) insults=off
4903 with_classic_insults=yes
4904 with_csops_insults=yes
4908 *) as_fn_error $? "\"--with-insults does not take an argument.\"" "$LINENO" 5
4913 if test "$insults" = "on"; then
4914 $as_echo "#define USE_INSULTS 1" >>confdefs.h
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4917 $as_echo "yes" >&6; }
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4920 $as_echo "no" >&6; }
4924 # Check whether --with-all-insults was given.
4925 if test "${with_all_insults+set}" = set; then :
4926 withval=$with_all_insults; case $with_all_insults in
4927 yes) with_classic_insults=yes
4928 with_csops_insults=yes
4929 with_hal_insults=yes
4930 with_goons_insults=yes
4933 *) as_fn_error $? "\"--with-all-insults does not take an argument.\"" "$LINENO" 5
4940 # Check whether --with-classic-insults was given.
4941 if test "${with_classic_insults+set}" = set; then :
4942 withval=$with_classic_insults; case $with_classic_insults in
4943 yes) $as_echo "#define CLASSIC_INSULTS 1" >>confdefs.h
4947 *) as_fn_error $? "\"--with-classic-insults does not take an argument.\"" "$LINENO" 5
4954 # Check whether --with-csops-insults was given.
4955 if test "${with_csops_insults+set}" = set; then :
4956 withval=$with_csops_insults; case $with_csops_insults in
4957 yes) $as_echo "#define CSOPS_INSULTS 1" >>confdefs.h
4961 *) as_fn_error $? "\"--with-csops-insults does not take an argument.\"" "$LINENO" 5
4968 # Check whether --with-hal-insults was given.
4969 if test "${with_hal_insults+set}" = set; then :
4970 withval=$with_hal_insults; case $with_hal_insults in
4971 yes) $as_echo "#define HAL_INSULTS 1" >>confdefs.h
4975 *) as_fn_error $? "\"--with-hal-insults does not take an argument.\"" "$LINENO" 5
4982 # Check whether --with-goons-insults was given.
4983 if test "${with_goons_insults+set}" = set; then :
4984 withval=$with_goons_insults; case $with_goons_insults in
4985 yes) $as_echo "#define GOONS_INSULTS 1" >>confdefs.h
4989 *) as_fn_error $? "\"--with-goons-insults does not take an argument.\"" "$LINENO" 5
4996 # Check whether --with-nsswitch was given.
4997 if test "${with_nsswitch+set}" = set; then :
4998 withval=$with_nsswitch; case $with_nsswitch in
5000 yes) with_nsswitch="/etc/nsswitch.conf"
5008 # Check whether --with-ldap was given.
5009 if test "${with_ldap+set}" = set; then :
5010 withval=$with_ldap; case $with_ldap in
5012 *) $as_echo "#define HAVE_LDAP 1" >>confdefs.h
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sudoers from LDAP" >&5
5015 $as_echo_n "checking whether to use sudoers from LDAP... " >&6; }
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5017 $as_echo "yes" >&6; }
5024 # Check whether --with-ldap-conf-file was given.
5025 if test "${with_ldap_conf_file+set}" = set; then :
5026 withval=$with_ldap_conf_file;
5029 test -n "$with_ldap_conf_file" && ldap_conf="$with_ldap_conf_file"
5030 cat >>confdefs.h <<EOF
5031 #define _PATH_LDAP_CONF "$ldap_conf"
5036 # Check whether --with-ldap-secret-file was given.
5037 if test "${with_ldap_secret_file+set}" = set; then :
5038 withval=$with_ldap_secret_file;
5041 test -n "$with_ldap_secret_file" && ldap_secret="$with_ldap_secret_file"
5042 cat >>confdefs.h <<EOF
5043 #define _PATH_LDAP_SECRET "$ldap_secret"
5048 # Check whether --with-pc-insults was given.
5049 if test "${with_pc_insults+set}" = set; then :
5050 withval=$with_pc_insults; case $with_pc_insults in
5051 yes) $as_echo "#define PC_INSULTS 1" >>confdefs.h
5055 *) as_fn_error $? "\"--with-pc-insults does not take an argument.\"" "$LINENO" 5
5061 if test "$insults" = "on"; then
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which insult sets to include" >&5
5063 $as_echo_n "checking which insult sets to include... " >&6; }
5065 test "$with_goons_insults" = "yes" && i="goons ${i}"
5066 test "$with_hal_insults" = "yes" && i="hal ${i}"
5067 test "$with_csops_insults" = "yes" && i="csops ${i}"
5068 test "$with_classic_insults" = "yes" && i="classic ${i}"
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $i" >&5
5070 $as_echo "$i" >&6; }
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to override the user's path" >&5
5074 $as_echo_n "checking whether to override the user's path... " >&6; }
5076 # Check whether --with-secure-path was given.
5077 if test "${with_secure_path+set}" = set; then :
5078 withval=$with_secure_path; case $with_secure_path in
5079 yes) with_secure_path="/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc"
5080 cat >>confdefs.h <<_ACEOF
5081 #define SECURE_PATH "$with_secure_path"
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_secure_path" >&5
5085 $as_echo "$with_secure_path" >&6; }
5086 secure_path="set to $with_secure_path"
5088 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5089 $as_echo "no" >&6; }
5091 *) cat >>confdefs.h <<_ACEOF
5092 #define SECURE_PATH "$with_secure_path"
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_secure_path" >&5
5096 $as_echo "$with_secure_path" >&6; }
5097 secure_path="set to F<$with_secure_path>"
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5102 $as_echo "no" >&6; }
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to get ip addresses from the network interfaces" >&5
5107 $as_echo_n "checking whether to get ip addresses from the network interfaces... " >&6; }
5109 # Check whether --with-interfaces was given.
5110 if test "${with_interfaces+set}" = set; then :
5111 withval=$with_interfaces; case $with_interfaces in
5112 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5113 $as_echo "yes" >&6; }
5115 no) $as_echo "#define STUB_LOAD_INTERFACES 1" >>confdefs.h
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5118 $as_echo "no" >&6; }
5120 *) as_fn_error $? "\"--with-interfaces does not take an argument.\"" "$LINENO" 5
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5125 $as_echo "yes" >&6; }
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stow should be used" >&5
5130 $as_echo_n "checking whether stow should be used... " >&6; }
5132 # Check whether --with-stow was given.
5133 if test "${with_stow+set}" = set; then :
5134 withval=$with_stow; case $with_stow in
5135 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5136 $as_echo "yes" >&6; }
5137 $as_echo "#define USE_STOW 1" >>confdefs.h
5140 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5141 $as_echo "no" >&6; }
5143 *) as_fn_error $? "\"--with-stow does not take an argument.\"" "$LINENO" 5
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5148 $as_echo "no" >&6; }
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an askpass helper" >&5
5153 $as_echo_n "checking whether to use an askpass helper... " >&6; }
5155 # Check whether --with-askpass was given.
5156 if test "${with_askpass+set}" = set; then :
5157 withval=$with_askpass; case $with_askpass in
5158 yes) as_fn_error $? "\"--with-askpass takes a path as an argument.\"" "$LINENO" 5
5161 *) cat >>confdefs.h <<EOF
5162 #define _PATH_SUDO_ASKPASS "$with_askpass"
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5169 $as_echo "no" >&6; }
5174 # Check whether --with-plugindir was given.
5175 if test "${with_plugindir+set}" = set; then :
5176 withval=$with_plugindir; case $with_plugindir in
5177 no) as_fn_error $? "\"illegal argument: --without-plugindir.\"" "$LINENO" 5
5182 with_plugindir="$libexecdir"
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to do user authentication by default" >&5
5188 $as_echo_n "checking whether to do user authentication by default... " >&6; }
5189 # Check whether --enable-authentication was given.
5190 if test "${enable_authentication+set}" = set; then :
5191 enableval=$enable_authentication; case "$enableval" in
5192 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5193 $as_echo "yes" >&6; }
5195 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5196 $as_echo "no" >&6; }
5197 $as_echo "#define NO_AUTHENTICATION 1" >>confdefs.h
5200 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5201 $as_echo "no" >&6; }
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&5
5203 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&2;}
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5209 $as_echo "yes" >&6; }
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable running the mailer as root" >&5
5214 $as_echo_n "checking whether to disable running the mailer as root... " >&6; }
5215 # Check whether --enable-root-mailer was given.
5216 if test "${enable_root_mailer+set}" = set; then :
5217 enableval=$enable_root_mailer; case "$enableval" in
5218 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5219 $as_echo "no" >&6; }
5221 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5222 $as_echo "yes" >&6; }
5223 $as_echo "#define NO_ROOT_MAILER 1" >>confdefs.h
5226 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5227 $as_echo "no" >&6; }
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&5
5229 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&2;}
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5235 $as_echo "no" >&6; }
5239 # Check whether --enable-setreuid was given.
5240 if test "${enable_setreuid+set}" = set; then :
5241 enableval=$enable_setreuid; case "$enableval" in
5242 no) SKIP_SETREUID=yes
5250 # Check whether --enable-setresuid was given.
5251 if test "${enable_setresuid+set}" = set; then :
5252 enableval=$enable_setresuid; case "$enableval" in
5253 no) SKIP_SETRESUID=yes
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable shadow password support" >&5
5262 $as_echo_n "checking whether to disable shadow password support... " >&6; }
5263 # Check whether --enable-shadow was given.
5264 if test "${enable_shadow+set}" = set; then :
5265 enableval=$enable_shadow; case "$enableval" in
5266 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5267 $as_echo "no" >&6; }
5269 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5270 $as_echo "yes" >&6; }
5273 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5274 $as_echo "no" >&6; }
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&5
5276 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&2;}
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5282 $as_echo "no" >&6; }
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether root should be allowed to use sudo" >&5
5287 $as_echo_n "checking whether root should be allowed to use sudo... " >&6; }
5288 # Check whether --enable-root-sudo was given.
5289 if test "${enable_root_sudo+set}" = set; then :
5290 enableval=$enable_root_sudo; case "$enableval" in
5291 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5292 $as_echo "yes" >&6; }
5294 no) $as_echo "#define NO_ROOT_SUDO 1" >>confdefs.h
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5297 $as_echo "no" >&6; }
5300 *) as_fn_error $? "\"--enable-root-sudo does not take an argument.\"" "$LINENO" 5
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5306 $as_echo "yes" >&6; }
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to log the hostname in the log file" >&5
5311 $as_echo_n "checking whether to log the hostname in the log file... " >&6; }
5312 # Check whether --enable-log-host was given.
5313 if test "${enable_log_host+set}" = set; then :
5314 enableval=$enable_log_host; case "$enableval" in
5315 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5316 $as_echo "yes" >&6; }
5317 $as_echo "#define HOST_IN_LOG 1" >>confdefs.h
5320 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5321 $as_echo "no" >&6; }
5323 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5324 $as_echo "no" >&6; }
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&5
5326 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&2;}
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5332 $as_echo "no" >&6; }
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to invoke a shell if sudo is given no arguments" >&5
5337 $as_echo_n "checking whether to invoke a shell if sudo is given no arguments... " >&6; }
5338 # Check whether --enable-noargs-shell was given.
5339 if test "${enable_noargs_shell+set}" = set; then :
5340 enableval=$enable_noargs_shell; case "$enableval" in
5341 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5342 $as_echo "yes" >&6; }
5343 $as_echo "#define SHELL_IF_NO_ARGS 1" >>confdefs.h
5346 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5347 $as_echo "no" >&6; }
5349 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5350 $as_echo "no" >&6; }
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&5
5352 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&2;}
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5358 $as_echo "no" >&6; }
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to set \$HOME to target user in shell mode" >&5
5363 $as_echo_n "checking whether to set \$HOME to target user in shell mode... " >&6; }
5364 # Check whether --enable-shell-sets-home was given.
5365 if test "${enable_shell_sets_home+set}" = set; then :
5366 enableval=$enable_shell_sets_home; case "$enableval" in
5367 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5368 $as_echo "yes" >&6; }
5369 $as_echo "#define SHELL_SETS_HOME 1" >>confdefs.h
5372 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5373 $as_echo "no" >&6; }
5375 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5376 $as_echo "no" >&6; }
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&5
5378 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&2;}
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5384 $as_echo "no" >&6; }
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable 'command not found' messages" >&5
5389 $as_echo_n "checking whether to disable 'command not found' messages... " >&6; }
5390 # Check whether --enable-path_info was given.
5391 if test "${enable_path_info+set}" = set; then :
5392 enableval=$enable_path_info; case "$enableval" in
5393 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5394 $as_echo "no" >&6; }
5396 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5397 $as_echo "yes" >&6; }
5398 $as_echo "#define DONT_LEAK_PATH_INFO 1" >>confdefs.h
5402 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5403 $as_echo "no" >&6; }
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&5
5405 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&2;}
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5411 $as_echo "no" >&6; }
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable environment debugging" >&5
5416 $as_echo_n "checking whether to enable environment debugging... " >&6; }
5417 # Check whether --enable-env_debug was given.
5418 if test "${enable_env_debug+set}" = set; then :
5419 enableval=$enable_env_debug; case "$enableval" in
5420 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5421 $as_echo "yes" >&6; }
5422 $as_echo "#define ENV_DEBUG 1" >>confdefs.h
5425 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5426 $as_echo "no" >&6; }
5428 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5429 $as_echo "no" >&6; }
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&5
5431 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&2;}
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5437 $as_echo "no" >&6; }
5441 # Check whether --enable-zlib was given.
5442 if test "${enable_zlib+set}" = set; then :
5443 enableval=$enable_zlib;
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable environment resetting by default" >&5
5450 $as_echo_n "checking whether to enable environment resetting by default... " >&6; }
5451 # Check whether --enable-env_reset was given.
5452 if test "${enable_env_reset+set}" = set; then :
5453 enableval=$enable_env_reset; case "$enableval" in
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-env-reset: $enableval" >&5
5460 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-env-reset: $enableval" >&2;}
5466 if test "$env_reset" = "on"; then
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5468 $as_echo "yes" >&6; }
5469 $as_echo "#define ENV_RESET 1" >>confdefs.h
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5473 $as_echo "no" >&6; }
5474 $as_echo "#define ENV_RESET 0" >>confdefs.h
5478 # Check whether --enable-warnings was given.
5479 if test "${enable_warnings+set}" = set; then :
5480 enableval=$enable_warnings; case "$enableval" in
5483 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-warnings: $enableval" >&5
5484 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-warnings: $enableval" >&2;}
5491 # Check whether --enable-werror was given.
5492 if test "${enable_werror+set}" = set; then :
5493 enableval=$enable_werror; case "$enableval" in
5496 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-werror: $enableval" >&5
5497 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-werror: $enableval" >&2;}
5504 # Check whether --enable-admin-flag was given.
5505 if test "${enable_admin_flag+set}" = set; then :
5506 enableval=$enable_admin_flag; case "$enableval" in
5507 yes) $as_echo "#define USE_ADMIN_FLAG 1" >>confdefs.h
5511 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-admin-flag: $enableval" >&5
5512 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-admin-flag: $enableval" >&2;}
5519 # Check whether --enable-nls was given.
5520 if test "${enable_nls+set}" = set; then :
5521 enableval=$enable_nls;
5528 # Check whether --with-selinux was given.
5529 if test "${with_selinux+set}" = set; then :
5530 withval=$with_selinux; case $with_selinux in
5531 yes) SELINUX_USAGE="[-r role] [-t type] "
5532 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
5534 SUDO_LIBS="${SUDO_LIBS} -lselinux"
5535 SUDO_OBJS="${SUDO_OBJS} selinux.o"
5536 PROGS="${PROGS} sesh"
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkeycreatecon in -lselinux" >&5
5539 $as_echo_n "checking for setkeycreatecon in -lselinux... " >&6; }
5540 if ${ac_cv_lib_selinux_setkeycreatecon+:} false; then :
5541 $as_echo_n "(cached) " >&6
5543 ac_check_lib_save_LIBS=$LIBS
5544 LIBS="-lselinux $LIBS"
5545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5546 /* end confdefs.h. */
5548 /* Override any GCC internal prototype to avoid an error.
5549 Use char because int might match the return type of a GCC
5550 builtin and then its argument prototype would still apply. */
5554 char setkeycreatecon ();
5558 return setkeycreatecon ();
5563 if ac_fn_c_try_link "$LINENO"; then :
5564 ac_cv_lib_selinux_setkeycreatecon=yes
5566 ac_cv_lib_selinux_setkeycreatecon=no
5568 rm -f core conftest.err conftest.$ac_objext \
5569 conftest$ac_exeext conftest.$ac_ext
5570 LIBS=$ac_check_lib_save_LIBS
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setkeycreatecon" >&5
5573 $as_echo "$ac_cv_lib_selinux_setkeycreatecon" >&6; }
5574 if test "x$ac_cv_lib_selinux_setkeycreatecon" = xyes; then :
5575 $as_echo "#define HAVE_SETKEYCREATECON 1" >>confdefs.h
5581 *) as_fn_error $? "\"--with-selinux does not take an argument.\"" "$LINENO" 5
5587 # Check whether --enable-gss_krb5_ccache_name was given.
5588 if test "${enable_gss_krb5_ccache_name+set}" = set; then :
5589 enableval=$enable_gss_krb5_ccache_name; check_gss_krb5_ccache_name=$enableval
5591 check_gss_krb5_ccache_name=no
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
5596 $as_echo_n "checking for library containing strerror... " >&6; }
5597 if ${ac_cv_search_strerror+:} false; then :
5598 $as_echo_n "(cached) " >&6
5600 ac_func_search_save_LIBS=$LIBS
5601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5602 /* end confdefs.h. */
5604 /* Override any GCC internal prototype to avoid an error.
5605 Use char because int might match the return type of a GCC
5606 builtin and then its argument prototype would still apply. */
5619 for ac_lib in '' cposix; do
5620 if test -z "$ac_lib"; then
5621 ac_res="none required"
5624 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5626 if ac_fn_c_try_link "$LINENO"; then :
5627 ac_cv_search_strerror=$ac_res
5629 rm -f core conftest.err conftest.$ac_objext \
5631 if ${ac_cv_search_strerror+:} false; then :
5635 if ${ac_cv_search_strerror+:} false; then :
5638 ac_cv_search_strerror=no
5641 LIBS=$ac_func_search_save_LIBS
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
5644 $as_echo "$ac_cv_search_strerror" >&6; }
5645 ac_res=$ac_cv_search_strerror
5646 if test "$ac_res" != no; then :
5647 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5652 ac_cpp='$CPP $CPPFLAGS'
5653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5657 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5658 # On Suns, sometimes $CPP names a directory.
5659 if test -n "$CPP" && test -d "$CPP"; then
5662 if test -z "$CPP"; then
5663 if ${ac_cv_prog_CPP+:} false; then :
5664 $as_echo_n "(cached) " >&6
5666 # Double quotes because CPP needs to be expanded
5667 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5670 for ac_c_preproc_warn_flag in '' yes
5672 # Use a header file that comes with gcc, so configuring glibc
5673 # with a fresh cross-compiler works.
5674 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5675 # <limits.h> exists even on freestanding compilers.
5676 # On the NeXT, cc -E runs the code through the compiler's parser,
5677 # not just through cpp. "Syntax error" is here to catch this case.
5678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5679 /* end confdefs.h. */
5681 # include <limits.h>
5683 # include <assert.h>
5687 if ac_fn_c_try_cpp "$LINENO"; then :
5690 # Broken: fails on valid input.
5693 rm -f conftest.err conftest.i conftest.$ac_ext
5695 # OK, works on sane cases. Now check whether nonexistent headers
5696 # can be detected and how.
5697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5698 /* end confdefs.h. */
5699 #include <ac_nonexistent.h>
5701 if ac_fn_c_try_cpp "$LINENO"; then :
5702 # Broken: success on invalid input.
5705 # Passes both tests.
5709 rm -f conftest.err conftest.i conftest.$ac_ext
5712 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5713 rm -f conftest.i conftest.err conftest.$ac_ext
5714 if $ac_preproc_ok; then :
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5727 $as_echo "$CPP" >&6; }
5729 for ac_c_preproc_warn_flag in '' yes
5731 # Use a header file that comes with gcc, so configuring glibc
5732 # with a fresh cross-compiler works.
5733 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5734 # <limits.h> exists even on freestanding compilers.
5735 # On the NeXT, cc -E runs the code through the compiler's parser,
5736 # not just through cpp. "Syntax error" is here to catch this case.
5737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5738 /* end confdefs.h. */
5740 # include <limits.h>
5742 # include <assert.h>
5746 if ac_fn_c_try_cpp "$LINENO"; then :
5749 # Broken: fails on valid input.
5752 rm -f conftest.err conftest.i conftest.$ac_ext
5754 # OK, works on sane cases. Now check whether nonexistent headers
5755 # can be detected and how.
5756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5757 /* end confdefs.h. */
5758 #include <ac_nonexistent.h>
5760 if ac_fn_c_try_cpp "$LINENO"; then :
5761 # Broken: success on invalid input.
5764 # Passes both tests.
5768 rm -f conftest.err conftest.i conftest.$ac_ext
5771 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5772 rm -f conftest.i conftest.err conftest.$ac_ext
5773 if $ac_preproc_ok; then :
5776 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5777 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5778 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5779 See \`config.log' for more details" "$LINENO" 5; }
5783 ac_cpp='$CPP $CPPFLAGS'
5784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5788 if test -n "$ac_tool_prefix"; then
5789 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5790 set dummy ${ac_tool_prefix}ar; ac_word=$2
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5792 $as_echo_n "checking for $ac_word... " >&6; }
5793 if ${ac_cv_prog_AR+:} false; then :
5794 $as_echo_n "(cached) " >&6
5796 if test -n "$AR"; then
5797 ac_cv_prog_AR="$AR" # Let the user override the test.
5799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803 test -z "$as_dir" && as_dir=.
5804 for ac_exec_ext in '' $ac_executable_extensions; do
5805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5806 ac_cv_prog_AR="${ac_tool_prefix}ar"
5807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5817 if test -n "$AR"; then
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5819 $as_echo "$AR" >&6; }
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5822 $as_echo "no" >&6; }
5827 if test -z "$ac_cv_prog_AR"; then
5829 # Extract the first word of "ar", so it can be a program name with args.
5830 set dummy ar; ac_word=$2
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5832 $as_echo_n "checking for $ac_word... " >&6; }
5833 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5834 $as_echo_n "(cached) " >&6
5836 if test -n "$ac_ct_AR"; then
5837 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5843 test -z "$as_dir" && as_dir=.
5844 for ac_exec_ext in '' $ac_executable_extensions; do
5845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5846 ac_cv_prog_ac_ct_AR="ar"
5847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5856 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5857 if test -n "$ac_ct_AR"; then
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5859 $as_echo "$ac_ct_AR" >&6; }
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5862 $as_echo "no" >&6; }
5865 if test "x$ac_ct_AR" = x; then
5868 case $cross_compiling:$ac_tool_warned in
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5871 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5872 ac_tool_warned=yes ;;
5880 if test -n "$ac_tool_prefix"; then
5881 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5882 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5884 $as_echo_n "checking for $ac_word... " >&6; }
5885 if ${ac_cv_prog_RANLIB+:} false; then :
5886 $as_echo_n "(cached) " >&6
5888 if test -n "$RANLIB"; then
5889 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895 test -z "$as_dir" && as_dir=.
5896 for ac_exec_ext in '' $ac_executable_extensions; do
5897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5898 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5908 RANLIB=$ac_cv_prog_RANLIB
5909 if test -n "$RANLIB"; then
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5911 $as_echo "$RANLIB" >&6; }
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5914 $as_echo "no" >&6; }
5919 if test -z "$ac_cv_prog_RANLIB"; then
5920 ac_ct_RANLIB=$RANLIB
5921 # Extract the first word of "ranlib", so it can be a program name with args.
5922 set dummy ranlib; ac_word=$2
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5924 $as_echo_n "checking for $ac_word... " >&6; }
5925 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5926 $as_echo_n "(cached) " >&6
5928 if test -n "$ac_ct_RANLIB"; then
5929 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935 test -z "$as_dir" && as_dir=.
5936 for ac_exec_ext in '' $ac_executable_extensions; do
5937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5938 ac_cv_prog_ac_ct_RANLIB="ranlib"
5939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5948 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5949 if test -n "$ac_ct_RANLIB"; then
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5951 $as_echo "$ac_ct_RANLIB" >&6; }
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5954 $as_echo "no" >&6; }
5957 if test "x$ac_ct_RANLIB" = x; then
5960 case $cross_compiling:$ac_tool_warned in
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5963 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5964 ac_tool_warned=yes ;;
5966 RANLIB=$ac_ct_RANLIB
5969 RANLIB="$ac_cv_prog_RANLIB"
5972 if test X"$AR" = X"false"; then
5973 as_fn_error $? "the \"ar\" utility is required to build sudo" "$LINENO" 5
5976 if test "x$ac_cv_prog_cc_c89" = "xno"; then
5977 as_fn_error $? "Sudo version $PACKAGE_VERSION requires an ANSI C compiler to build." "$LINENO" 5
5980 if test "$enable_static" = "no"; then
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring --disable-static, sudo does not install static libs" >&5
5982 $as_echo "$as_me: WARNING: Ignoring --disable-static, sudo does not install static libs" >&2;}
5987 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5988 if test -f "$ac_dir/install-sh"; then
5990 ac_install_sh="$ac_aux_dir/install-sh -c"
5992 elif test -f "$ac_dir/install.sh"; then
5994 ac_install_sh="$ac_aux_dir/install.sh -c"
5996 elif test -f "$ac_dir/shtool"; then
5998 ac_install_sh="$ac_aux_dir/shtool install -c"
6002 if test -z "$ac_aux_dir"; then
6003 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6006 # These three variables are undocumented and unsupported,
6007 # and are intended to be withdrawn in a future Autoconf release.
6008 # They can cause serious problems if a builder's source tree is in a directory
6009 # whose full name contains unusual characters.
6010 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
6011 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
6012 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
6015 # Make sure we can run config.sub.
6016 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6017 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6020 $as_echo_n "checking build system type... " >&6; }
6021 if ${ac_cv_build+:} false; then :
6022 $as_echo_n "(cached) " >&6
6024 ac_build_alias=$build_alias
6025 test "x$ac_build_alias" = x &&
6026 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6027 test "x$ac_build_alias" = x &&
6028 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6029 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6030 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6034 $as_echo "$ac_cv_build" >&6; }
6035 case $ac_cv_build in
6037 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6040 ac_save_IFS=$IFS; IFS='-'
6046 # Remember, the first character of IFS is used to create $*,
6047 # except with old shells:
6050 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6054 $as_echo_n "checking host system type... " >&6; }
6055 if ${ac_cv_host+:} false; then :
6056 $as_echo_n "(cached) " >&6
6058 if test "x$host_alias" = x; then
6059 ac_cv_host=$ac_cv_build
6061 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6062 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6067 $as_echo "$ac_cv_host" >&6; }
6070 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6073 ac_save_IFS=$IFS; IFS='-'
6079 # Remember, the first character of IFS is used to create $*,
6080 # except with old shells:
6083 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6091 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6096 macro_version='2.4.2'
6097 macro_revision='1.3337'
6111 ltmain="$ac_aux_dir/ltmain.sh"
6113 # Backslashify metacharacters that are still active within
6114 # double-quoted strings.
6115 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6117 # Same as above, but do not quote variable references.
6118 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6120 # Sed substitution to delay expansion of an escaped shell variable in a
6121 # double_quote_subst'ed string.
6122 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6124 # Sed substitution to delay expansion of an escaped single quote.
6125 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6127 # Sed substitution to avoid accidental globbing in evaled expressions
6128 no_glob_subst='s/\*/\\\*/g'
6130 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6131 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6132 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6135 $as_echo_n "checking how to print strings... " >&6; }
6136 # Test print first, because it will be a builtin if present.
6137 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6138 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6140 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6143 # Use this function as a fallback that always works.
6144 func_fallback_echo ()
6146 eval 'cat <<_LTECHO_EOF
6150 ECHO='func_fallback_echo'
6153 # func_echo_all arg...
6154 # Invoke $ECHO with all args, space-separated.
6161 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6162 $as_echo "printf" >&6; } ;;
6163 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6164 $as_echo "print -r" >&6; } ;;
6165 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6166 $as_echo "cat" >&6; } ;;
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6183 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6184 if ${ac_cv_path_SED+:} false; then :
6185 $as_echo_n "(cached) " >&6
6187 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6188 for ac_i in 1 2 3 4 5 6 7; do
6189 ac_script="$ac_script$as_nl$ac_script"
6191 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6192 { ac_script=; unset ac_script;}
6193 if test -z "$SED"; then
6194 ac_path_SED_found=false
6195 # Loop through the user's path and test for each of PROGNAME-LIST
6196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6200 test -z "$as_dir" && as_dir=.
6201 for ac_prog in sed gsed; do
6202 for ac_exec_ext in '' $ac_executable_extensions; do
6203 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6204 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6205 # Check for GNU ac_path_SED and select it if it is found.
6206 # Check for GNU $ac_path_SED
6207 case `"$ac_path_SED" --version 2>&1` in
6209 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6212 $as_echo_n 0123456789 >"conftest.in"
6215 cat "conftest.in" "conftest.in" >"conftest.tmp"
6216 mv "conftest.tmp" "conftest.in"
6217 cp "conftest.in" "conftest.nl"
6218 $as_echo '' >> "conftest.nl"
6219 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6220 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6221 as_fn_arith $ac_count + 1 && ac_count=$as_val
6222 if test $ac_count -gt ${ac_path_SED_max-0}; then
6223 # Best one so far, save it but keep looking for a better one
6224 ac_cv_path_SED="$ac_path_SED"
6225 ac_path_SED_max=$ac_count
6227 # 10*(2^10) chars as input seems more than enough
6228 test $ac_count -gt 10 && break
6230 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6233 $ac_path_SED_found && break 3
6238 if test -z "$ac_cv_path_SED"; then
6239 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6247 $as_echo "$ac_cv_path_SED" >&6; }
6248 SED="$ac_cv_path_SED"
6251 test -z "$SED" && SED=sed
6252 Xsed="$SED -e 1s/^X//"
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6265 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6266 if ${ac_cv_path_GREP+:} false; then :
6267 $as_echo_n "(cached) " >&6
6269 if test -z "$GREP"; then
6270 ac_path_GREP_found=false
6271 # Loop through the user's path and test for each of PROGNAME-LIST
6272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6273 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6276 test -z "$as_dir" && as_dir=.
6277 for ac_prog in grep ggrep; do
6278 for ac_exec_ext in '' $ac_executable_extensions; do
6279 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6280 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6281 # Check for GNU ac_path_GREP and select it if it is found.
6282 # Check for GNU $ac_path_GREP
6283 case `"$ac_path_GREP" --version 2>&1` in
6285 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6288 $as_echo_n 0123456789 >"conftest.in"
6291 cat "conftest.in" "conftest.in" >"conftest.tmp"
6292 mv "conftest.tmp" "conftest.in"
6293 cp "conftest.in" "conftest.nl"
6294 $as_echo 'GREP' >> "conftest.nl"
6295 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6296 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6297 as_fn_arith $ac_count + 1 && ac_count=$as_val
6298 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6299 # Best one so far, save it but keep looking for a better one
6300 ac_cv_path_GREP="$ac_path_GREP"
6301 ac_path_GREP_max=$ac_count
6303 # 10*(2^10) chars as input seems more than enough
6304 test $ac_count -gt 10 && break
6306 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6309 $ac_path_GREP_found && break 3
6314 if test -z "$ac_cv_path_GREP"; then
6315 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6318 ac_cv_path_GREP=$GREP
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6323 $as_echo "$ac_cv_path_GREP" >&6; }
6324 GREP="$ac_cv_path_GREP"
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6328 $as_echo_n "checking for egrep... " >&6; }
6329 if ${ac_cv_path_EGREP+:} false; then :
6330 $as_echo_n "(cached) " >&6
6332 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6333 then ac_cv_path_EGREP="$GREP -E"
6335 if test -z "$EGREP"; then
6336 ac_path_EGREP_found=false
6337 # Loop through the user's path and test for each of PROGNAME-LIST
6338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6342 test -z "$as_dir" && as_dir=.
6343 for ac_prog in egrep; do
6344 for ac_exec_ext in '' $ac_executable_extensions; do
6345 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6346 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6347 # Check for GNU ac_path_EGREP and select it if it is found.
6348 # Check for GNU $ac_path_EGREP
6349 case `"$ac_path_EGREP" --version 2>&1` in
6351 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6354 $as_echo_n 0123456789 >"conftest.in"
6357 cat "conftest.in" "conftest.in" >"conftest.tmp"
6358 mv "conftest.tmp" "conftest.in"
6359 cp "conftest.in" "conftest.nl"
6360 $as_echo 'EGREP' >> "conftest.nl"
6361 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6362 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6363 as_fn_arith $ac_count + 1 && ac_count=$as_val
6364 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6365 # Best one so far, save it but keep looking for a better one
6366 ac_cv_path_EGREP="$ac_path_EGREP"
6367 ac_path_EGREP_max=$ac_count
6369 # 10*(2^10) chars as input seems more than enough
6370 test $ac_count -gt 10 && break
6372 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6375 $ac_path_EGREP_found && break 3
6380 if test -z "$ac_cv_path_EGREP"; then
6381 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6384 ac_cv_path_EGREP=$EGREP
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6390 $as_echo "$ac_cv_path_EGREP" >&6; }
6391 EGREP="$ac_cv_path_EGREP"
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6395 $as_echo_n "checking for fgrep... " >&6; }
6396 if ${ac_cv_path_FGREP+:} false; then :
6397 $as_echo_n "(cached) " >&6
6399 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6400 then ac_cv_path_FGREP="$GREP -F"
6402 if test -z "$FGREP"; then
6403 ac_path_FGREP_found=false
6404 # Loop through the user's path and test for each of PROGNAME-LIST
6405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6406 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6409 test -z "$as_dir" && as_dir=.
6410 for ac_prog in fgrep; do
6411 for ac_exec_ext in '' $ac_executable_extensions; do
6412 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6413 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6414 # Check for GNU ac_path_FGREP and select it if it is found.
6415 # Check for GNU $ac_path_FGREP
6416 case `"$ac_path_FGREP" --version 2>&1` in
6418 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6421 $as_echo_n 0123456789 >"conftest.in"
6424 cat "conftest.in" "conftest.in" >"conftest.tmp"
6425 mv "conftest.tmp" "conftest.in"
6426 cp "conftest.in" "conftest.nl"
6427 $as_echo 'FGREP' >> "conftest.nl"
6428 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6429 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6430 as_fn_arith $ac_count + 1 && ac_count=$as_val
6431 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6432 # Best one so far, save it but keep looking for a better one
6433 ac_cv_path_FGREP="$ac_path_FGREP"
6434 ac_path_FGREP_max=$ac_count
6436 # 10*(2^10) chars as input seems more than enough
6437 test $ac_count -gt 10 && break
6439 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6442 $ac_path_FGREP_found && break 3
6447 if test -z "$ac_cv_path_FGREP"; then
6448 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6451 ac_cv_path_FGREP=$FGREP
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6457 $as_echo "$ac_cv_path_FGREP" >&6; }
6458 FGREP="$ac_cv_path_FGREP"
6461 test -z "$GREP" && GREP=grep
6481 # Check whether --with-gnu-ld was given.
6482 if test "${with_gnu_ld+set}" = set; then :
6483 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6489 if test "$GCC" = yes; then
6490 # Check if gcc -print-prog-name=ld gives a path.
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6492 $as_echo_n "checking for ld used by $CC... " >&6; }
6495 # gcc leaves a trailing carriage return which upsets mingw
6496 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6498 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6501 # Accept absolute paths.
6503 re_direlt='/[^/][^/]*/\.\./'
6504 # Canonicalize the pathname of ld
6505 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6506 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6507 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6509 test -z "$LD" && LD="$ac_prog"
6512 # If it fails, then pretend we aren't using GCC.
6516 # If it is relative, then search for the first ld in PATH.
6520 elif test "$with_gnu_ld" = yes; then
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6522 $as_echo_n "checking for GNU ld... " >&6; }
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6525 $as_echo_n "checking for non-GNU ld... " >&6; }
6527 if ${lt_cv_path_LD+:} false; then :
6528 $as_echo_n "(cached) " >&6
6530 if test -z "$LD"; then
6531 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6532 for ac_dir in $PATH; do
6534 test -z "$ac_dir" && ac_dir=.
6535 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6536 lt_cv_path_LD="$ac_dir/$ac_prog"
6537 # Check to see if the program is GNU ld. I'd rather use --version,
6538 # but apparently some variants of GNU ld only accept -v.
6539 # Break only if it was the GNU/non-GNU ld that we prefer.
6540 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6541 *GNU* | *'with BFD'*)
6542 test "$with_gnu_ld" != no && break
6545 test "$with_gnu_ld" != yes && break
6552 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6557 if test -n "$LD"; then
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6559 $as_echo "$LD" >&6; }
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6562 $as_echo "no" >&6; }
6564 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6566 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6567 if ${lt_cv_prog_gnu_ld+:} false; then :
6568 $as_echo_n "(cached) " >&6
6570 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6571 case `$LD -v 2>&1 </dev/null` in
6572 *GNU* | *'with BFD'*)
6573 lt_cv_prog_gnu_ld=yes
6576 lt_cv_prog_gnu_ld=no
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6581 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6582 with_gnu_ld=$lt_cv_prog_gnu_ld
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6593 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6594 if ${lt_cv_path_NM+:} false; then :
6595 $as_echo_n "(cached) " >&6
6597 if test -n "$NM"; then
6598 # Let the user override the test.
6601 lt_nm_to_check="${ac_tool_prefix}nm"
6602 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6603 lt_nm_to_check="$lt_nm_to_check nm"
6605 for lt_tmp_nm in $lt_nm_to_check; do
6606 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6607 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6609 test -z "$ac_dir" && ac_dir=.
6610 tmp_nm="$ac_dir/$lt_tmp_nm"
6611 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6612 # Check to see if the nm accepts a BSD-compat flag.
6613 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6614 # nm: unknown option "B" ignored
6615 # Tru64's nm complains that /dev/null is an invalid object file
6616 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6617 */dev/null* | *'Invalid file or object type'*)
6618 lt_cv_path_NM="$tmp_nm -B"
6622 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6624 lt_cv_path_NM="$tmp_nm -p"
6628 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6629 continue # so that we can try to find one that supports BSD flags
6638 : ${lt_cv_path_NM=no}
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6642 $as_echo "$lt_cv_path_NM" >&6; }
6643 if test "$lt_cv_path_NM" != "no"; then
6646 # Didn't find any BSD compatible name lister, look for dumpbin.
6647 if test -n "$DUMPBIN"; then :
6648 # Let the user override the test.
6650 if test -n "$ac_tool_prefix"; then
6651 for ac_prog in dumpbin "link -dump"
6653 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6654 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6656 $as_echo_n "checking for $ac_word... " >&6; }
6657 if ${ac_cv_prog_DUMPBIN+:} false; then :
6658 $as_echo_n "(cached) " >&6
6660 if test -n "$DUMPBIN"; then
6661 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667 test -z "$as_dir" && as_dir=.
6668 for ac_exec_ext in '' $ac_executable_extensions; do
6669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6670 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6680 DUMPBIN=$ac_cv_prog_DUMPBIN
6681 if test -n "$DUMPBIN"; then
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6683 $as_echo "$DUMPBIN" >&6; }
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6686 $as_echo "no" >&6; }
6690 test -n "$DUMPBIN" && break
6693 if test -z "$DUMPBIN"; then
6694 ac_ct_DUMPBIN=$DUMPBIN
6695 for ac_prog in dumpbin "link -dump"
6697 # Extract the first word of "$ac_prog", so it can be a program name with args.
6698 set dummy $ac_prog; ac_word=$2
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6700 $as_echo_n "checking for $ac_word... " >&6; }
6701 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6702 $as_echo_n "(cached) " >&6
6704 if test -n "$ac_ct_DUMPBIN"; then
6705 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6711 test -z "$as_dir" && as_dir=.
6712 for ac_exec_ext in '' $ac_executable_extensions; do
6713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6714 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6724 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6725 if test -n "$ac_ct_DUMPBIN"; then
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6727 $as_echo "$ac_ct_DUMPBIN" >&6; }
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6730 $as_echo "no" >&6; }
6734 test -n "$ac_ct_DUMPBIN" && break
6737 if test "x$ac_ct_DUMPBIN" = x; then
6740 case $cross_compiling:$ac_tool_warned in
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6744 ac_tool_warned=yes ;;
6746 DUMPBIN=$ac_ct_DUMPBIN
6750 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6752 DUMPBIN="$DUMPBIN -symbols"
6760 if test "$DUMPBIN" != ":"; then
6764 test -z "$NM" && NM=nm
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6772 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6773 if ${lt_cv_nm_interface+:} false; then :
6774 $as_echo_n "(cached) " >&6
6776 lt_cv_nm_interface="BSD nm"
6777 echo "int some_variable = 0;" > conftest.$ac_ext
6778 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6779 (eval "$ac_compile" 2>conftest.err)
6780 cat conftest.err >&5
6781 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6782 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6783 cat conftest.err >&5
6784 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6785 cat conftest.out >&5
6786 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6787 lt_cv_nm_interface="MS dumpbin"
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6792 $as_echo "$lt_cv_nm_interface" >&6; }
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6795 $as_echo_n "checking whether ln -s works... " >&6; }
6797 if test "$LN_S" = "ln -s"; then
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6799 $as_echo "yes" >&6; }
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6802 $as_echo "no, using $LN_S" >&6; }
6805 # find the maximum length of command line arguments
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6807 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6808 if ${lt_cv_sys_max_cmd_len+:} false; then :
6809 $as_echo_n "(cached) " >&6
6816 # On DJGPP, this test can blow up pretty badly due to problems in libc
6817 # (any single argument exceeding 2000 bytes causes a buffer overrun
6818 # during glob expansion). Even if it were fixed, the result of this
6819 # check would be larger than it should be.
6820 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6824 # Under GNU Hurd, this test is not required because there is
6825 # no limit to the length of command line arguments.
6826 # Libtool will interpret -1 as no limit whatsoever
6827 lt_cv_sys_max_cmd_len=-1;
6830 cygwin* | mingw* | cegcc*)
6831 # On Win9x/ME, this test blows up -- it succeeds, but takes
6832 # about 5 minutes as the teststring grows exponentially.
6833 # Worse, since 9x/ME are not pre-emptively multitasking,
6834 # you end up with a "frozen" computer, even though with patience
6835 # the test eventually succeeds (with a max line length of 256k).
6836 # Instead, let's just punt: use the minimum linelength reported by
6837 # all of the supported platforms: 8192 (on NT/2K/XP).
6838 lt_cv_sys_max_cmd_len=8192;
6842 # On MiNT this can take a long time and run out of memory.
6843 lt_cv_sys_max_cmd_len=8192;
6847 # On AmigaOS with pdksh, this test takes hours, literally.
6848 # So we just punt and use a minimum line length of 8192.
6849 lt_cv_sys_max_cmd_len=8192;
6852 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6853 # This has been around since 386BSD, at least. Likely further.
6854 if test -x /sbin/sysctl; then
6855 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6856 elif test -x /usr/sbin/sysctl; then
6857 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6859 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6861 # And add a safety zone
6862 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6863 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6867 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6868 lt_cv_sys_max_cmd_len=196608
6872 # The test takes a long time on OS/2.
6873 lt_cv_sys_max_cmd_len=8192
6877 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6878 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6879 # nice to cause kernel panics so lets avoid the loop below.
6880 # First set a reasonable default.
6881 lt_cv_sys_max_cmd_len=16384
6883 if test -x /sbin/sysconfig; then
6884 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6885 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6890 lt_cv_sys_max_cmd_len=102400
6892 sysv5* | sco5v6* | sysv4.2uw2*)
6893 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6894 if test -n "$kargmax"; then
6895 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6897 lt_cv_sys_max_cmd_len=32768
6901 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6902 if test -n "$lt_cv_sys_max_cmd_len"; then
6903 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6904 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6906 # Make teststring a little bigger before we do anything with it.
6907 # a 1K string should be a reasonable start.
6908 for i in 1 2 3 4 5 6 7 8 ; do
6909 teststring=$teststring$teststring
6911 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6912 # If test is not a shell built-in, we'll probably end up computing a
6913 # maximum length that is only half of the actual maximum length, but
6915 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6916 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6917 test $i != 17 # 1/2 MB should be enough
6920 teststring=$teststring$teststring
6922 # Only check the string length outside the loop.
6923 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6925 # Add a significant safety factor because C++ compilers can tack on
6926 # massive amounts of additional arguments before passing them to the
6927 # linker. It appears as though 1/2 is a usable value.
6928 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6935 if test -n $lt_cv_sys_max_cmd_len ; then
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6937 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6940 $as_echo "none" >&6; }
6942 max_cmd_len=$lt_cv_sys_max_cmd_len
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6954 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6955 # Try some XSI features
6958 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6960 && eval 'test $(( 1 + 1 )) -eq 2 \
6961 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6964 $as_echo "$xsi_shell" >&6; }
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6968 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6970 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6972 && lt_shell_append=yes
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6974 $as_echo "$lt_shell_append" >&6; }
6977 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6987 # test EBCDIC or ASCII
6988 case `echo X|tr X '\101'` in
6989 A) # ASCII based system
6990 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6991 lt_SP2NL='tr \040 \012'
6992 lt_NL2SP='tr \015\012 \040\040'
6994 *) # EBCDIC based system
6995 lt_SP2NL='tr \100 \n'
6996 lt_NL2SP='tr \r\n \100\100'
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7009 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7010 if ${lt_cv_to_host_file_cmd+:} false; then :
7011 $as_echo_n "(cached) " >&6
7016 *-*-mingw* ) # actually msys
7017 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7020 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7022 * ) # otherwise, assume *nix
7023 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7029 *-*-mingw* ) # actually msys
7030 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7033 lt_cv_to_host_file_cmd=func_convert_file_noop
7035 * ) # otherwise, assume *nix
7036 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7040 * ) # unhandled hosts (and "normal" native builds)
7041 lt_cv_to_host_file_cmd=func_convert_file_noop
7047 to_host_file_cmd=$lt_cv_to_host_file_cmd
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7049 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7056 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7057 if ${lt_cv_to_tool_file_cmd+:} false; then :
7058 $as_echo_n "(cached) " >&6
7060 #assume ordinary cross tools, or native build.
7061 lt_cv_to_tool_file_cmd=func_convert_file_noop
7065 *-*-mingw* ) # actually msys
7066 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7074 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7076 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7083 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7084 if ${lt_cv_ld_reload_flag+:} false; then :
7085 $as_echo_n "(cached) " >&6
7087 lt_cv_ld_reload_flag='-r'
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7090 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7091 reload_flag=$lt_cv_ld_reload_flag
7092 case $reload_flag in
7094 *) reload_flag=" $reload_flag" ;;
7096 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7098 cygwin* | mingw* | pw32* | cegcc*)
7099 if test "$GCC" != yes; then
7104 if test "$GCC" = yes; then
7105 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7107 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7120 if test -n "$ac_tool_prefix"; then
7121 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7122 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7124 $as_echo_n "checking for $ac_word... " >&6; }
7125 if ${ac_cv_prog_OBJDUMP+:} false; then :
7126 $as_echo_n "(cached) " >&6
7128 if test -n "$OBJDUMP"; then
7129 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135 test -z "$as_dir" && as_dir=.
7136 for ac_exec_ext in '' $ac_executable_extensions; do
7137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7138 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7148 OBJDUMP=$ac_cv_prog_OBJDUMP
7149 if test -n "$OBJDUMP"; then
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7151 $as_echo "$OBJDUMP" >&6; }
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7154 $as_echo "no" >&6; }
7159 if test -z "$ac_cv_prog_OBJDUMP"; then
7160 ac_ct_OBJDUMP=$OBJDUMP
7161 # Extract the first word of "objdump", so it can be a program name with args.
7162 set dummy objdump; ac_word=$2
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7164 $as_echo_n "checking for $ac_word... " >&6; }
7165 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7166 $as_echo_n "(cached) " >&6
7168 if test -n "$ac_ct_OBJDUMP"; then
7169 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175 test -z "$as_dir" && as_dir=.
7176 for ac_exec_ext in '' $ac_executable_extensions; do
7177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7178 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7188 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7189 if test -n "$ac_ct_OBJDUMP"; then
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7191 $as_echo "$ac_ct_OBJDUMP" >&6; }
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7194 $as_echo "no" >&6; }
7197 if test "x$ac_ct_OBJDUMP" = x; then
7200 case $cross_compiling:$ac_tool_warned in
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7204 ac_tool_warned=yes ;;
7206 OBJDUMP=$ac_ct_OBJDUMP
7209 OBJDUMP="$ac_cv_prog_OBJDUMP"
7212 test -z "$OBJDUMP" && OBJDUMP=objdump
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7223 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7224 if ${lt_cv_deplibs_check_method+:} false; then :
7225 $as_echo_n "(cached) " >&6
7227 lt_cv_file_magic_cmd='$MAGIC_CMD'
7228 lt_cv_file_magic_test_file=
7229 lt_cv_deplibs_check_method='unknown'
7230 # Need to set the preceding variable on all platforms that support
7231 # interlibrary dependencies.
7232 # 'none' -- dependencies not supported.
7233 # `unknown' -- same as none, but documents that we really don't know.
7234 # 'pass_all' -- all dependencies passed with no checks.
7235 # 'test_compile' -- check by making test program.
7236 # 'file_magic [[regex]]' -- check by looking for files in library path
7237 # which responds to the $file_magic_cmd with a given extended regex.
7238 # If you have `file' or equivalent on your system and you're not sure
7239 # whether `pass_all' will *always* work, you probably want this one.
7243 lt_cv_deplibs_check_method=pass_all
7247 lt_cv_deplibs_check_method=pass_all
7251 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7252 lt_cv_file_magic_cmd='/usr/bin/file -L'
7253 lt_cv_file_magic_test_file=/shlib/libc.so
7257 # func_win32_libid is a shell function defined in ltmain.sh
7258 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7259 lt_cv_file_magic_cmd='func_win32_libid'
7263 # Base MSYS/MinGW do not provide the 'file' command needed by
7264 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7265 # unless we find 'file', for example because we are cross-compiling.
7266 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7267 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7268 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7269 lt_cv_file_magic_cmd='func_win32_libid'
7271 # Keep this pattern in sync with the one in func_win32_libid.
7272 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7273 lt_cv_file_magic_cmd='$OBJDUMP -f'
7278 # use the weaker test based on 'objdump'. See mingw*.
7279 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7280 lt_cv_file_magic_cmd='$OBJDUMP -f'
7283 darwin* | rhapsody*)
7284 lt_cv_deplibs_check_method=pass_all
7287 freebsd* | dragonfly*)
7288 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7291 # Not sure whether the presence of OpenBSD here was a mistake.
7292 # Let's accept both of them until this is cleared up.
7293 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7294 lt_cv_file_magic_cmd=/usr/bin/file
7295 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7299 lt_cv_deplibs_check_method=pass_all
7304 lt_cv_deplibs_check_method=pass_all
7308 lt_cv_deplibs_check_method=pass_all
7311 hpux10.20* | hpux11*)
7312 lt_cv_file_magic_cmd=/usr/bin/file
7315 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7316 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7319 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
7320 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7323 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7324 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7330 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7331 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7334 irix5* | irix6* | nonstopux*)
7336 *-32|*"-32 ") libmagic=32-bit;;
7337 *-n32|*"-n32 ") libmagic=N32;;
7338 *-64|*"-64 ") libmagic=64-bit;;
7339 *) libmagic=never-match;;
7341 lt_cv_deplibs_check_method=pass_all
7344 # This must be glibc/ELF.
7345 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7346 lt_cv_deplibs_check_method=pass_all
7350 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7351 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7353 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7358 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7359 lt_cv_file_magic_cmd=/usr/bin/file
7360 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7364 lt_cv_deplibs_check_method=pass_all
7368 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7369 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7371 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7375 osf3* | osf4* | osf5*)
7376 lt_cv_deplibs_check_method=pass_all
7380 lt_cv_deplibs_check_method=pass_all
7384 lt_cv_deplibs_check_method=pass_all
7387 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7388 lt_cv_deplibs_check_method=pass_all
7392 case $host_vendor in
7394 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]'
7395 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7398 lt_cv_deplibs_check_method=pass_all
7401 lt_cv_file_magic_cmd='/bin/file'
7402 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7405 lt_cv_file_magic_cmd='/bin/file'
7406 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7407 lt_cv_file_magic_test_file=/lib/libc.so
7410 lt_cv_deplibs_check_method=pass_all
7413 lt_cv_deplibs_check_method=pass_all
7419 lt_cv_deplibs_check_method=pass_all
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7425 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7429 if test "$build" = "$host"; then
7432 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7435 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7441 file_magic_cmd=$lt_cv_file_magic_cmd
7442 deplibs_check_method=$lt_cv_deplibs_check_method
7443 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7466 if test -n "$ac_tool_prefix"; then
7467 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7468 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7470 $as_echo_n "checking for $ac_word... " >&6; }
7471 if ${ac_cv_prog_DLLTOOL+:} false; then :
7472 $as_echo_n "(cached) " >&6
7474 if test -n "$DLLTOOL"; then
7475 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7481 test -z "$as_dir" && as_dir=.
7482 for ac_exec_ext in '' $ac_executable_extensions; do
7483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7484 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7494 DLLTOOL=$ac_cv_prog_DLLTOOL
7495 if test -n "$DLLTOOL"; then
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7497 $as_echo "$DLLTOOL" >&6; }
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7500 $as_echo "no" >&6; }
7505 if test -z "$ac_cv_prog_DLLTOOL"; then
7506 ac_ct_DLLTOOL=$DLLTOOL
7507 # Extract the first word of "dlltool", so it can be a program name with args.
7508 set dummy dlltool; ac_word=$2
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7510 $as_echo_n "checking for $ac_word... " >&6; }
7511 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7512 $as_echo_n "(cached) " >&6
7514 if test -n "$ac_ct_DLLTOOL"; then
7515 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7521 test -z "$as_dir" && as_dir=.
7522 for ac_exec_ext in '' $ac_executable_extensions; do
7523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7524 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7534 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7535 if test -n "$ac_ct_DLLTOOL"; then
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7537 $as_echo "$ac_ct_DLLTOOL" >&6; }
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7540 $as_echo "no" >&6; }
7543 if test "x$ac_ct_DLLTOOL" = x; then
7546 case $cross_compiling:$ac_tool_warned in
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7549 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7550 ac_tool_warned=yes ;;
7552 DLLTOOL=$ac_ct_DLLTOOL
7555 DLLTOOL="$ac_cv_prog_DLLTOOL"
7558 test -z "$DLLTOOL" && DLLTOOL=dlltool
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7570 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7571 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7572 $as_echo_n "(cached) " >&6
7574 lt_cv_sharedlib_from_linklib_cmd='unknown'
7577 cygwin* | mingw* | pw32* | cegcc*)
7578 # two different shell functions defined in ltmain.sh
7579 # decide which to use based on capabilities of $DLLTOOL
7580 case `$DLLTOOL --help 2>&1` in
7581 *--identify-strict*)
7582 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7585 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7590 # fallback: assume linklib IS sharedlib
7591 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7597 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7598 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7599 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7607 if test -n "$ac_tool_prefix"; then
7610 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7611 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7613 $as_echo_n "checking for $ac_word... " >&6; }
7614 if ${ac_cv_prog_AR+:} false; then :
7615 $as_echo_n "(cached) " >&6
7617 if test -n "$AR"; then
7618 ac_cv_prog_AR="$AR" # Let the user override the test.
7620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7624 test -z "$as_dir" && as_dir=.
7625 for ac_exec_ext in '' $ac_executable_extensions; do
7626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7627 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7638 if test -n "$AR"; then
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7640 $as_echo "$AR" >&6; }
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7643 $as_echo "no" >&6; }
7647 test -n "$AR" && break
7650 if test -z "$AR"; then
7654 # Extract the first word of "$ac_prog", so it can be a program name with args.
7655 set dummy $ac_prog; ac_word=$2
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7657 $as_echo_n "checking for $ac_word... " >&6; }
7658 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7659 $as_echo_n "(cached) " >&6
7661 if test -n "$ac_ct_AR"; then
7662 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7668 test -z "$as_dir" && as_dir=.
7669 for ac_exec_ext in '' $ac_executable_extensions; do
7670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7671 ac_cv_prog_ac_ct_AR="$ac_prog"
7672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7681 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7682 if test -n "$ac_ct_AR"; then
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7684 $as_echo "$ac_ct_AR" >&6; }
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7687 $as_echo "no" >&6; }
7691 test -n "$ac_ct_AR" && break
7694 if test "x$ac_ct_AR" = x; then
7697 case $cross_compiling:$ac_tool_warned in
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7701 ac_tool_warned=yes ;;
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7721 $as_echo_n "checking for archiver @FILE support... " >&6; }
7722 if ${lt_cv_ar_at_file+:} false; then :
7723 $as_echo_n "(cached) " >&6
7726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7727 /* end confdefs.h. */
7737 if ac_fn_c_try_compile "$LINENO"; then :
7738 echo conftest.$ac_objext > conftest.lst
7739 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7740 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7741 (eval $lt_ar_try) 2>&5
7743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7744 test $ac_status = 0; }
7745 if test "$ac_status" -eq 0; then
7746 # Ensure the archiver fails upon bogus file names.
7747 rm -f conftest.$ac_objext libconftest.a
7748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7749 (eval $lt_ar_try) 2>&5
7751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7752 test $ac_status = 0; }
7753 if test "$ac_status" -ne 0; then
7757 rm -f conftest.* libconftest.a
7760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7764 $as_echo "$lt_cv_ar_at_file" >&6; }
7766 if test "x$lt_cv_ar_at_file" = xno; then
7769 archiver_list_spec=$lt_cv_ar_at_file
7778 if test -n "$ac_tool_prefix"; then
7779 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7780 set dummy ${ac_tool_prefix}strip; ac_word=$2
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7782 $as_echo_n "checking for $ac_word... " >&6; }
7783 if ${ac_cv_prog_STRIP+:} false; then :
7784 $as_echo_n "(cached) " >&6
7786 if test -n "$STRIP"; then
7787 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7793 test -z "$as_dir" && as_dir=.
7794 for ac_exec_ext in '' $ac_executable_extensions; do
7795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7796 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7806 STRIP=$ac_cv_prog_STRIP
7807 if test -n "$STRIP"; then
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7809 $as_echo "$STRIP" >&6; }
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7812 $as_echo "no" >&6; }
7817 if test -z "$ac_cv_prog_STRIP"; then
7819 # Extract the first word of "strip", so it can be a program name with args.
7820 set dummy strip; ac_word=$2
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7822 $as_echo_n "checking for $ac_word... " >&6; }
7823 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7824 $as_echo_n "(cached) " >&6
7826 if test -n "$ac_ct_STRIP"; then
7827 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7833 test -z "$as_dir" && as_dir=.
7834 for ac_exec_ext in '' $ac_executable_extensions; do
7835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7836 ac_cv_prog_ac_ct_STRIP="strip"
7837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7846 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7847 if test -n "$ac_ct_STRIP"; then
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7849 $as_echo "$ac_ct_STRIP" >&6; }
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7852 $as_echo "no" >&6; }
7855 if test "x$ac_ct_STRIP" = x; then
7858 case $cross_compiling:$ac_tool_warned in
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7861 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7862 ac_tool_warned=yes ;;
7867 STRIP="$ac_cv_prog_STRIP"
7870 test -z "$STRIP" && STRIP=:
7877 if test -n "$ac_tool_prefix"; then
7878 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7879 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7881 $as_echo_n "checking for $ac_word... " >&6; }
7882 if ${ac_cv_prog_RANLIB+:} false; then :
7883 $as_echo_n "(cached) " >&6
7885 if test -n "$RANLIB"; then
7886 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7892 test -z "$as_dir" && as_dir=.
7893 for ac_exec_ext in '' $ac_executable_extensions; do
7894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7895 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7905 RANLIB=$ac_cv_prog_RANLIB
7906 if test -n "$RANLIB"; then
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7908 $as_echo "$RANLIB" >&6; }
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7911 $as_echo "no" >&6; }
7916 if test -z "$ac_cv_prog_RANLIB"; then
7917 ac_ct_RANLIB=$RANLIB
7918 # Extract the first word of "ranlib", so it can be a program name with args.
7919 set dummy ranlib; ac_word=$2
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7921 $as_echo_n "checking for $ac_word... " >&6; }
7922 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7923 $as_echo_n "(cached) " >&6
7925 if test -n "$ac_ct_RANLIB"; then
7926 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7932 test -z "$as_dir" && as_dir=.
7933 for ac_exec_ext in '' $ac_executable_extensions; do
7934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7935 ac_cv_prog_ac_ct_RANLIB="ranlib"
7936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7945 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7946 if test -n "$ac_ct_RANLIB"; then
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7948 $as_echo "$ac_ct_RANLIB" >&6; }
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7951 $as_echo "no" >&6; }
7954 if test "x$ac_ct_RANLIB" = x; then
7957 case $cross_compiling:$ac_tool_warned in
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7960 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7961 ac_tool_warned=yes ;;
7963 RANLIB=$ac_ct_RANLIB
7966 RANLIB="$ac_cv_prog_RANLIB"
7969 test -z "$RANLIB" && RANLIB=:
7976 # Determine commands to create old-style static archives.
7977 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7978 old_postinstall_cmds='chmod 644 $oldlib'
7979 old_postuninstall_cmds=
7981 if test -n "$RANLIB"; then
7984 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7987 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7990 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7995 lock_old_archive_extraction=yes ;;
7997 lock_old_archive_extraction=no ;;
8020 for ac_prog in gawk mawk nawk awk
8022 # Extract the first word of "$ac_prog", so it can be a program name with args.
8023 set dummy $ac_prog; ac_word=$2
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8025 $as_echo_n "checking for $ac_word... " >&6; }
8026 if ${ac_cv_prog_AWK+:} false; then :
8027 $as_echo_n "(cached) " >&6
8029 if test -n "$AWK"; then
8030 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8036 test -z "$as_dir" && as_dir=.
8037 for ac_exec_ext in '' $ac_executable_extensions; do
8038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8039 ac_cv_prog_AWK="$ac_prog"
8040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8050 if test -n "$AWK"; then
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8052 $as_echo "$AWK" >&6; }
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8055 $as_echo "no" >&6; }
8059 test -n "$AWK" && break
8080 # If no C compiler was specified, use CC.
8083 # If no C compiler flags were specified, use CFLAGS.
8084 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8086 # Allow CC to be a program name with arguments.
8090 # Check for command to grab the raw symbol name followed by C symbol from nm.
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8092 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8093 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8094 $as_echo_n "(cached) " >&6
8097 # These are sane defaults that work on at least a few old systems.
8098 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8100 # Character class describing NM global symbol codes.
8101 symcode='[BCDEGRST]'
8103 # Regexp to match symbols that can be accessed directly from C.
8104 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8106 # Define system-specific variables.
8111 cygwin* | mingw* | pw32* | cegcc*)
8112 symcode='[ABCDGISTW]'
8115 if test "$host_cpu" = ia64; then
8116 symcode='[ABCDEGRST]'
8120 symcode='[BCDEGRST]'
8123 symcode='[BCDEGQRST]'
8134 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8142 # If we're using GNU nm, then use its standard symbol codes.
8143 case `$NM -V 2>&1` in
8144 *GNU* | *'with BFD'*)
8145 symcode='[ABCDGIRSTW]' ;;
8148 # Transform an extracted symbol line into a proper C declaration.
8149 # Some systems (esp. on ia64) link data and code symbols differently,
8150 # so use this general approach.
8151 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8153 # Transform an extracted symbol line into symbol name and symbol address
8154 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8155 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'"
8157 # Handle CRLF in mingw tool chain
8161 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8165 # Try without a prefix underscore, then with it.
8166 for ac_symprfx in "" "_"; do
8168 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8169 symxfrm="\\1 $ac_symprfx\\2 \\2"
8171 # Write the raw and C identifiers.
8172 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8173 # Fake it for dumpbin and say T for any non-static function
8174 # and D for any global variable.
8175 # Also find C++ and __fastcall symbols from MSVC++,
8176 # which start with @ or ?.
8177 lt_cv_sys_global_symbol_pipe="$AWK '"\
8178 " {last_section=section; section=\$ 3};"\
8179 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8180 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8181 " \$ 0!~/External *\|/{next};"\
8182 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8183 " {if(hide[section]) next};"\
8184 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8185 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8186 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8187 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8188 " ' prfx=^$ac_symprfx"
8190 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8192 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8194 # Check to see that the pipe works correctly.
8198 cat > conftest.$ac_ext <<_LT_EOF
8203 void nm_test_func(void);
8204 void nm_test_func(void){}
8208 int main(){nm_test_var='a';nm_test_func();return(0);}
8211 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8212 (eval $ac_compile) 2>&5
8214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8215 test $ac_status = 0; }; then
8216 # Now try to grab the symbols.
8218 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8219 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8222 test $ac_status = 0; } && test -s "$nlist"; then
8223 # Try sorting and uniquifying the output.
8224 if sort "$nlist" | uniq > "$nlist"T; then
8225 mv -f "$nlist"T "$nlist"
8230 # Make sure that we snagged all the symbols we need.
8231 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8232 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8233 cat <<_LT_EOF > conftest.$ac_ext
8234 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8235 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8236 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8237 relocations are performed -- see ld's documentation on pseudo-relocs. */
8238 # define LT_DLSYM_CONST
8239 #elif defined(__osf__)
8240 /* This system does not cope well with relocations in const data. */
8241 # define LT_DLSYM_CONST
8243 # define LT_DLSYM_CONST const
8251 # Now generate the symbol file.
8252 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8254 cat <<_LT_EOF >> conftest.$ac_ext
8256 /* The mapping between symbol names and symbols. */
8257 LT_DLSYM_CONST struct {
8261 lt__PROGRAM__LTX_preloaded_symbols[] =
8263 { "@PROGRAM@", (void *) 0 },
8265 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8266 cat <<\_LT_EOF >> conftest.$ac_ext
8270 /* This works around a problem in FreeBSD linker */
8271 #ifdef FREEBSD_WORKAROUND
8272 static const void *lt_preloaded_setup() {
8273 return lt__PROGRAM__LTX_preloaded_symbols;
8281 # Now try linking the two files.
8282 mv conftest.$ac_objext conftstm.$ac_objext
8283 lt_globsym_save_LIBS=$LIBS
8284 lt_globsym_save_CFLAGS=$CFLAGS
8285 LIBS="conftstm.$ac_objext"
8286 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8287 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8288 (eval $ac_link) 2>&5
8290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8291 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8294 LIBS=$lt_globsym_save_LIBS
8295 CFLAGS=$lt_globsym_save_CFLAGS
8297 echo "cannot find nm_test_func in $nlist" >&5
8300 echo "cannot find nm_test_var in $nlist" >&5
8303 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8306 echo "$progname: failed program was:" >&5
8307 cat conftest.$ac_ext >&5
8309 rm -rf conftest* conftst*
8311 # Do not use the global_symbol_pipe unless it works.
8312 if test "$pipe_works" = yes; then
8315 lt_cv_sys_global_symbol_pipe=
8321 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8322 lt_cv_sys_global_symbol_to_cdecl=
8324 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8326 $as_echo "failed" >&6; }
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8329 $as_echo "ok" >&6; }
8332 # Response file support.
8333 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8334 nm_file_list_spec='@'
8335 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8336 nm_file_list_spec='@'
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8366 $as_echo_n "checking for sysroot... " >&6; }
8368 # Check whether --with-sysroot was given.
8369 if test "${with_sysroot+set}" = set; then :
8370 withval=$with_sysroot;
8377 case ${with_sysroot} in #(
8379 if test "$GCC" = yes; then
8380 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8384 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8390 $as_echo "${with_sysroot}" >&6; }
8391 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8396 $as_echo "${lt_sysroot:-no}" >&6; }
8402 # Check whether --enable-libtool-lock was given.
8403 if test "${enable_libtool_lock+set}" = set; then :
8404 enableval=$enable_libtool_lock;
8407 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8409 # Some flags need to be propagated to the compiler or linker for good
8413 # Find out which ABI we are using.
8414 echo 'int i;' > conftest.$ac_ext
8415 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8416 (eval $ac_compile) 2>&5
8418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8419 test $ac_status = 0; }; then
8420 case `/usr/bin/file conftest.$ac_objext` in
8432 # Find out which ABI we are using.
8433 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8434 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8435 (eval $ac_compile) 2>&5
8437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8438 test $ac_status = 0; }; then
8439 if test "$lt_cv_prog_gnu_ld" = yes; then
8440 case `/usr/bin/file conftest.$ac_objext` in
8442 LD="${LD-ld} -melf32bsmip"
8445 LD="${LD-ld} -melf32bmipn32"
8448 LD="${LD-ld} -melf64bmip"
8452 case `/usr/bin/file conftest.$ac_objext` in
8468 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8469 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8470 # Find out which ABI we are using.
8471 echo 'int i;' > conftest.$ac_ext
8472 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8473 (eval $ac_compile) 2>&5
8475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8476 test $ac_status = 0; }; then
8477 case `/usr/bin/file conftest.o` in
8480 x86_64-*kfreebsd*-gnu)
8481 LD="${LD-ld} -m elf_i386_fbsd"
8484 LD="${LD-ld} -m elf_i386"
8486 ppc64-*linux*|powerpc64-*linux*)
8487 LD="${LD-ld} -m elf32ppclinux"
8490 LD="${LD-ld} -m elf_s390"
8493 LD="${LD-ld} -m elf32_sparc"
8499 x86_64-*kfreebsd*-gnu)
8500 LD="${LD-ld} -m elf_x86_64_fbsd"
8503 LD="${LD-ld} -m elf_x86_64"
8505 ppc*-*linux*|powerpc*-*linux*)
8506 LD="${LD-ld} -m elf64ppc"
8508 s390*-*linux*|s390*-*tpf*)
8509 LD="${LD-ld} -m elf64_s390"
8512 LD="${LD-ld} -m elf64_sparc"
8522 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8523 SAVE_CFLAGS="$CFLAGS"
8524 CFLAGS="$CFLAGS -belf"
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8526 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8527 if ${lt_cv_cc_needs_belf+:} false; then :
8528 $as_echo_n "(cached) " >&6
8531 ac_cpp='$CPP $CPPFLAGS'
8532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8537 /* end confdefs.h. */
8547 if ac_fn_c_try_link "$LINENO"; then :
8548 lt_cv_cc_needs_belf=yes
8550 lt_cv_cc_needs_belf=no
8552 rm -f core conftest.err conftest.$ac_objext \
8553 conftest$ac_exeext conftest.$ac_ext
8555 ac_cpp='$CPP $CPPFLAGS'
8556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8562 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8563 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8564 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8565 CFLAGS="$SAVE_CFLAGS"
8569 # Find out which ABI we are using.
8570 echo 'int i;' > conftest.$ac_ext
8571 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8572 (eval $ac_compile) 2>&5
8574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8575 test $ac_status = 0; }; then
8576 case `/usr/bin/file conftest.o` in
8578 case $lt_cv_prog_gnu_ld in
8582 LD="${LD-ld} -m elf_x86_64"
8585 LD="${LD-ld} -m elf64_sparc"
8588 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8589 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8594 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8606 need_locks="$enable_libtool_lock"
8608 if test -n "$ac_tool_prefix"; then
8609 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8610 set dummy ${ac_tool_prefix}mt; ac_word=$2
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8612 $as_echo_n "checking for $ac_word... " >&6; }
8613 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8614 $as_echo_n "(cached) " >&6
8616 if test -n "$MANIFEST_TOOL"; then
8617 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8623 test -z "$as_dir" && as_dir=.
8624 for ac_exec_ext in '' $ac_executable_extensions; do
8625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8626 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8636 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8637 if test -n "$MANIFEST_TOOL"; then
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8639 $as_echo "$MANIFEST_TOOL" >&6; }
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8642 $as_echo "no" >&6; }
8647 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8648 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8649 # Extract the first word of "mt", so it can be a program name with args.
8650 set dummy mt; ac_word=$2
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8652 $as_echo_n "checking for $ac_word... " >&6; }
8653 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8654 $as_echo_n "(cached) " >&6
8656 if test -n "$ac_ct_MANIFEST_TOOL"; then
8657 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8663 test -z "$as_dir" && as_dir=.
8664 for ac_exec_ext in '' $ac_executable_extensions; do
8665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8666 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8676 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8677 if test -n "$ac_ct_MANIFEST_TOOL"; then
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8679 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8682 $as_echo "no" >&6; }
8685 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8688 case $cross_compiling:$ac_tool_warned in
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8692 ac_tool_warned=yes ;;
8694 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8697 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8700 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8702 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8703 if ${lt_cv_path_mainfest_tool+:} false; then :
8704 $as_echo_n "(cached) " >&6
8706 lt_cv_path_mainfest_tool=no
8707 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8708 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8709 cat conftest.err >&5
8710 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8711 lt_cv_path_mainfest_tool=yes
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8716 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8717 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8727 rhapsody* | darwin*)
8728 if test -n "$ac_tool_prefix"; then
8729 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8730 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8732 $as_echo_n "checking for $ac_word... " >&6; }
8733 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8734 $as_echo_n "(cached) " >&6
8736 if test -n "$DSYMUTIL"; then
8737 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8743 test -z "$as_dir" && as_dir=.
8744 for ac_exec_ext in '' $ac_executable_extensions; do
8745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8746 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8756 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8757 if test -n "$DSYMUTIL"; then
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8759 $as_echo "$DSYMUTIL" >&6; }
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8762 $as_echo "no" >&6; }
8767 if test -z "$ac_cv_prog_DSYMUTIL"; then
8768 ac_ct_DSYMUTIL=$DSYMUTIL
8769 # Extract the first word of "dsymutil", so it can be a program name with args.
8770 set dummy dsymutil; ac_word=$2
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8772 $as_echo_n "checking for $ac_word... " >&6; }
8773 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8774 $as_echo_n "(cached) " >&6
8776 if test -n "$ac_ct_DSYMUTIL"; then
8777 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8783 test -z "$as_dir" && as_dir=.
8784 for ac_exec_ext in '' $ac_executable_extensions; do
8785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8786 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8796 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8797 if test -n "$ac_ct_DSYMUTIL"; then
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8799 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8802 $as_echo "no" >&6; }
8805 if test "x$ac_ct_DSYMUTIL" = x; then
8808 case $cross_compiling:$ac_tool_warned in
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8811 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8812 ac_tool_warned=yes ;;
8814 DSYMUTIL=$ac_ct_DSYMUTIL
8817 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8820 if test -n "$ac_tool_prefix"; then
8821 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8822 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8824 $as_echo_n "checking for $ac_word... " >&6; }
8825 if ${ac_cv_prog_NMEDIT+:} false; then :
8826 $as_echo_n "(cached) " >&6
8828 if test -n "$NMEDIT"; then
8829 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8835 test -z "$as_dir" && as_dir=.
8836 for ac_exec_ext in '' $ac_executable_extensions; do
8837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8838 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8848 NMEDIT=$ac_cv_prog_NMEDIT
8849 if test -n "$NMEDIT"; then
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8851 $as_echo "$NMEDIT" >&6; }
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8854 $as_echo "no" >&6; }
8859 if test -z "$ac_cv_prog_NMEDIT"; then
8860 ac_ct_NMEDIT=$NMEDIT
8861 # Extract the first word of "nmedit", so it can be a program name with args.
8862 set dummy nmedit; ac_word=$2
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8864 $as_echo_n "checking for $ac_word... " >&6; }
8865 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8866 $as_echo_n "(cached) " >&6
8868 if test -n "$ac_ct_NMEDIT"; then
8869 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8875 test -z "$as_dir" && as_dir=.
8876 for ac_exec_ext in '' $ac_executable_extensions; do
8877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8878 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8888 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8889 if test -n "$ac_ct_NMEDIT"; then
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8891 $as_echo "$ac_ct_NMEDIT" >&6; }
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8894 $as_echo "no" >&6; }
8897 if test "x$ac_ct_NMEDIT" = x; then
8900 case $cross_compiling:$ac_tool_warned in
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8904 ac_tool_warned=yes ;;
8906 NMEDIT=$ac_ct_NMEDIT
8909 NMEDIT="$ac_cv_prog_NMEDIT"
8912 if test -n "$ac_tool_prefix"; then
8913 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8914 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8916 $as_echo_n "checking for $ac_word... " >&6; }
8917 if ${ac_cv_prog_LIPO+:} false; then :
8918 $as_echo_n "(cached) " >&6
8920 if test -n "$LIPO"; then
8921 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8927 test -z "$as_dir" && as_dir=.
8928 for ac_exec_ext in '' $ac_executable_extensions; do
8929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8930 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8940 LIPO=$ac_cv_prog_LIPO
8941 if test -n "$LIPO"; then
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8943 $as_echo "$LIPO" >&6; }
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8946 $as_echo "no" >&6; }
8951 if test -z "$ac_cv_prog_LIPO"; then
8953 # Extract the first word of "lipo", so it can be a program name with args.
8954 set dummy lipo; ac_word=$2
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8956 $as_echo_n "checking for $ac_word... " >&6; }
8957 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8958 $as_echo_n "(cached) " >&6
8960 if test -n "$ac_ct_LIPO"; then
8961 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8967 test -z "$as_dir" && as_dir=.
8968 for ac_exec_ext in '' $ac_executable_extensions; do
8969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8970 ac_cv_prog_ac_ct_LIPO="lipo"
8971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8980 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8981 if test -n "$ac_ct_LIPO"; then
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8983 $as_echo "$ac_ct_LIPO" >&6; }
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8986 $as_echo "no" >&6; }
8989 if test "x$ac_ct_LIPO" = x; then
8992 case $cross_compiling:$ac_tool_warned in
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8996 ac_tool_warned=yes ;;
9001 LIPO="$ac_cv_prog_LIPO"
9004 if test -n "$ac_tool_prefix"; then
9005 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9006 set dummy ${ac_tool_prefix}otool; ac_word=$2
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9008 $as_echo_n "checking for $ac_word... " >&6; }
9009 if ${ac_cv_prog_OTOOL+:} false; then :
9010 $as_echo_n "(cached) " >&6
9012 if test -n "$OTOOL"; then
9013 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9019 test -z "$as_dir" && as_dir=.
9020 for ac_exec_ext in '' $ac_executable_extensions; do
9021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9022 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9032 OTOOL=$ac_cv_prog_OTOOL
9033 if test -n "$OTOOL"; then
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9035 $as_echo "$OTOOL" >&6; }
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9038 $as_echo "no" >&6; }
9043 if test -z "$ac_cv_prog_OTOOL"; then
9045 # Extract the first word of "otool", so it can be a program name with args.
9046 set dummy otool; ac_word=$2
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9048 $as_echo_n "checking for $ac_word... " >&6; }
9049 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9050 $as_echo_n "(cached) " >&6
9052 if test -n "$ac_ct_OTOOL"; then
9053 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9059 test -z "$as_dir" && as_dir=.
9060 for ac_exec_ext in '' $ac_executable_extensions; do
9061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9062 ac_cv_prog_ac_ct_OTOOL="otool"
9063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9072 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9073 if test -n "$ac_ct_OTOOL"; then
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9075 $as_echo "$ac_ct_OTOOL" >&6; }
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9078 $as_echo "no" >&6; }
9081 if test "x$ac_ct_OTOOL" = x; then
9084 case $cross_compiling:$ac_tool_warned in
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9087 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9088 ac_tool_warned=yes ;;
9093 OTOOL="$ac_cv_prog_OTOOL"
9096 if test -n "$ac_tool_prefix"; then
9097 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9098 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9100 $as_echo_n "checking for $ac_word... " >&6; }
9101 if ${ac_cv_prog_OTOOL64+:} false; then :
9102 $as_echo_n "(cached) " >&6
9104 if test -n "$OTOOL64"; then
9105 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9111 test -z "$as_dir" && as_dir=.
9112 for ac_exec_ext in '' $ac_executable_extensions; do
9113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9114 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9124 OTOOL64=$ac_cv_prog_OTOOL64
9125 if test -n "$OTOOL64"; then
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9127 $as_echo "$OTOOL64" >&6; }
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9130 $as_echo "no" >&6; }
9135 if test -z "$ac_cv_prog_OTOOL64"; then
9136 ac_ct_OTOOL64=$OTOOL64
9137 # Extract the first word of "otool64", so it can be a program name with args.
9138 set dummy otool64; ac_word=$2
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9140 $as_echo_n "checking for $ac_word... " >&6; }
9141 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9142 $as_echo_n "(cached) " >&6
9144 if test -n "$ac_ct_OTOOL64"; then
9145 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9151 test -z "$as_dir" && as_dir=.
9152 for ac_exec_ext in '' $ac_executable_extensions; do
9153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9154 ac_cv_prog_ac_ct_OTOOL64="otool64"
9155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9164 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9165 if test -n "$ac_ct_OTOOL64"; then
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9167 $as_echo "$ac_ct_OTOOL64" >&6; }
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9170 $as_echo "no" >&6; }
9173 if test "x$ac_ct_OTOOL64" = x; then
9176 case $cross_compiling:$ac_tool_warned in
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9180 ac_tool_warned=yes ;;
9182 OTOOL64=$ac_ct_OTOOL64
9185 OTOOL64="$ac_cv_prog_OTOOL64"
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9215 $as_echo_n "checking for -single_module linker flag... " >&6; }
9216 if ${lt_cv_apple_cc_single_mod+:} false; then :
9217 $as_echo_n "(cached) " >&6
9219 lt_cv_apple_cc_single_mod=no
9220 if test -z "${LT_MULTI_MODULE}"; then
9221 # By default we will add the -single_module flag. You can override
9222 # by either setting the environment variable LT_MULTI_MODULE
9223 # non-empty at configure time, or by adding -multi_module to the
9225 rm -rf libconftest.dylib*
9226 echo "int foo(void){return 1;}" > conftest.c
9227 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9228 -dynamiclib -Wl,-single_module conftest.c" >&5
9229 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9230 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9232 # If there is a non-empty error log, and "single_module"
9233 # appears in it, assume the flag caused a linker warning
9234 if test -s conftest.err && $GREP single_module conftest.err; then
9235 cat conftest.err >&5
9236 # Otherwise, if the output was created with a 0 exit code from
9237 # the compiler, it worked.
9238 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9239 lt_cv_apple_cc_single_mod=yes
9241 cat conftest.err >&5
9243 rm -rf libconftest.dylib*
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9248 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9251 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9252 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9253 $as_echo_n "(cached) " >&6
9255 lt_cv_ld_exported_symbols_list=no
9256 save_LDFLAGS=$LDFLAGS
9257 echo "_main" > conftest.sym
9258 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9260 /* end confdefs.h. */
9270 if ac_fn_c_try_link "$LINENO"; then :
9271 lt_cv_ld_exported_symbols_list=yes
9273 lt_cv_ld_exported_symbols_list=no
9275 rm -f core conftest.err conftest.$ac_objext \
9276 conftest$ac_exeext conftest.$ac_ext
9277 LDFLAGS="$save_LDFLAGS"
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9281 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9284 $as_echo_n "checking for -force_load linker flag... " >&6; }
9285 if ${lt_cv_ld_force_load+:} false; then :
9286 $as_echo_n "(cached) " >&6
9288 lt_cv_ld_force_load=no
9289 cat > conftest.c << _LT_EOF
9290 int forced_loaded() { return 2;}
9292 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9293 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9294 echo "$AR cru libconftest.a conftest.o" >&5
9295 $AR cru libconftest.a conftest.o 2>&5
9296 echo "$RANLIB libconftest.a" >&5
9297 $RANLIB libconftest.a 2>&5
9298 cat > conftest.c << _LT_EOF
9299 int main() { return 0;}
9301 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9302 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9304 if test -s conftest.err && $GREP force_load conftest.err; then
9305 cat conftest.err >&5
9306 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9307 lt_cv_ld_force_load=yes
9309 cat conftest.err >&5
9311 rm -f conftest.err libconftest.a conftest conftest.c
9312 rm -rf conftest.dSYM
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9316 $as_echo "$lt_cv_ld_force_load" >&6; }
9318 rhapsody* | darwin1.[012])
9319 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9321 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9322 darwin*) # darwin 5.x on
9323 # if running on 10.5 or later, the deployment target defaults
9324 # to the OS version, if on x86, and 10.4, the deployment
9325 # target defaults to 10.4. Don't you love it?
9326 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9327 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9328 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9330 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9332 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9336 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9337 _lt_dar_single_mod='$single_module'
9339 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9340 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9342 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9344 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9345 _lt_dsymutil='~$DSYMUTIL $lib || :'
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9354 $as_echo_n "checking for ANSI C header files... " >&6; }
9355 if ${ac_cv_header_stdc+:} false; then :
9356 $as_echo_n "(cached) " >&6
9358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9359 /* end confdefs.h. */
9373 if ac_fn_c_try_compile "$LINENO"; then :
9374 ac_cv_header_stdc=yes
9376 ac_cv_header_stdc=no
9378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9380 if test $ac_cv_header_stdc = yes; then
9381 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9383 /* end confdefs.h. */
9387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9388 $EGREP "memchr" >/dev/null 2>&1; then :
9391 ac_cv_header_stdc=no
9397 if test $ac_cv_header_stdc = yes; then
9398 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9400 /* end confdefs.h. */
9404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9405 $EGREP "free" >/dev/null 2>&1; then :
9408 ac_cv_header_stdc=no
9414 if test $ac_cv_header_stdc = yes; then
9415 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9416 if test "$cross_compiling" = yes; then :
9419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9420 /* end confdefs.h. */
9423 #if ((' ' & 0x0FF) == 0x020)
9424 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9425 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9427 # define ISLOWER(c) \
9428 (('a' <= (c) && (c) <= 'i') \
9429 || ('j' <= (c) && (c) <= 'r') \
9430 || ('s' <= (c) && (c) <= 'z'))
9431 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9434 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9439 for (i = 0; i < 256; i++)
9440 if (XOR (islower (i), ISLOWER (i))
9441 || toupper (i) != TOUPPER (i))
9446 if ac_fn_c_try_run "$LINENO"; then :
9449 ac_cv_header_stdc=no
9451 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9452 conftest.$ac_objext conftest.beam conftest.$ac_ext
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9458 $as_echo "$ac_cv_header_stdc" >&6; }
9459 if test $ac_cv_header_stdc = yes; then
9461 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9465 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9466 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9467 inttypes.h stdint.h unistd.h
9469 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9470 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9472 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9473 cat >>confdefs.h <<_ACEOF
9474 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9482 for ac_header in dlfcn.h
9484 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9486 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9487 cat >>confdefs.h <<_ACEOF
9488 #define HAVE_DLFCN_H 1
9508 # Check whether --enable-shared was given.
9509 if test "${enable_shared+set}" = set; then :
9510 enableval=$enable_shared; p=${PACKAGE-default}
9512 yes) enable_shared=yes ;;
9513 no) enable_shared=no ;;
9516 # Look at the argument we got. We use all the common list separators.
9517 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9518 for pkg in $enableval; do
9520 if test "X$pkg" = "X$p"; then
9539 # Check whether --enable-static was given.
9540 if test "${enable_static+set}" = set; then :
9541 enableval=$enable_static; p=${PACKAGE-default}
9543 yes) enable_static=yes ;;
9544 no) enable_static=no ;;
9547 # Look at the argument we got. We use all the common list separators.
9548 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9549 for pkg in $enableval; do
9551 if test "X$pkg" = "X$p"; then
9571 # Check whether --with-pic was given.
9572 if test "${with_pic+set}" = set; then :
9573 withval=$with_pic; lt_p=${PACKAGE-default}
9575 yes|no) pic_mode=$withval ;;
9578 # Look at the argument we got. We use all the common list separators.
9579 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9580 for lt_pkg in $withval; do
9582 if test "X$lt_pkg" = "X$lt_p"; then
9594 test -z "$pic_mode" && pic_mode=default
9602 # Check whether --enable-fast-install was given.
9603 if test "${enable_fast_install+set}" = set; then :
9604 enableval=$enable_fast_install; p=${PACKAGE-default}
9606 yes) enable_fast_install=yes ;;
9607 no) enable_fast_install=no ;;
9609 enable_fast_install=no
9610 # Look at the argument we got. We use all the common list separators.
9611 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9612 for pkg in $enableval; do
9614 if test "X$pkg" = "X$p"; then
9615 enable_fast_install=yes
9622 enable_fast_install=yes
9635 # This can be used to rebuild libtool when needed
9636 LIBTOOL_DEPS="$ltmain"
9638 # Always use our own libtool.
9639 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9670 test -z "$LN_S" && LN_S="ln -s"
9685 if test -n "${ZSH_VERSION+set}" ; then
9686 setopt NO_GLOB_SUBST
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9690 $as_echo_n "checking for objdir... " >&6; }
9691 if ${lt_cv_objdir+:} false; then :
9692 $as_echo_n "(cached) " >&6
9694 rm -f .libs 2>/dev/null
9695 mkdir .libs 2>/dev/null
9696 if test -d .libs; then
9699 # MS-DOS does not allow filenames that begin with a dot.
9702 rmdir .libs 2>/dev/null
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9705 $as_echo "$lt_cv_objdir" >&6; }
9706 objdir=$lt_cv_objdir
9712 cat >>confdefs.h <<_ACEOF
9713 #define LT_OBJDIR "$lt_cv_objdir/"
9721 # AIX sometimes has problems with the GCC collect2 program. For some
9722 # reason, if we set the COLLECT_NAMES environment variable, the problems
9723 # vanish in a puff of smoke.
9724 if test "X${COLLECT_NAMES+set}" != Xset; then
9726 export COLLECT_NAMES
9733 can_build_shared=yes
9735 # All known linkers require a `.a' archive for static linking (except MSVC,
9736 # which needs '.lib').
9739 with_gnu_ld="$lt_cv_prog_gnu_ld"
9742 old_CFLAGS="$CFLAGS"
9744 # Set sane defaults for various variables
9745 test -z "$CC" && CC=cc
9746 test -z "$LTCC" && LTCC=$CC
9747 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9748 test -z "$LD" && LD=ld
9749 test -z "$ac_objext" && ac_objext=o
9751 for cc_temp in $compiler""; do
9753 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9754 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9759 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9762 # Only perform the check for file, if the check method requires it
9763 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9764 case $deplibs_check_method in
9766 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9768 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9769 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9770 $as_echo_n "(cached) " >&6
9774 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9777 lt_save_MAGIC_CMD="$MAGIC_CMD"
9778 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9779 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9780 for ac_dir in $ac_dummy; do
9782 test -z "$ac_dir" && ac_dir=.
9783 if test -f $ac_dir/${ac_tool_prefix}file; then
9784 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9785 if test -n "$file_magic_test_file"; then
9786 case $deplibs_check_method in
9788 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9789 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9790 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9791 $EGREP "$file_magic_regex" > /dev/null; then
9796 *** Warning: the command libtool uses to detect shared libraries,
9797 *** $file_magic_cmd, produces output that libtool cannot recognize.
9798 *** The result is that libtool may fail to recognize shared libraries
9799 *** as such. This will affect the creation of libtool libraries that
9800 *** depend on shared libraries, but programs linked with such libtool
9801 *** libraries will work regardless of this problem. Nevertheless, you
9802 *** may want to report the problem to your system manager and/or to
9803 *** bug-libtool@gnu.org
9813 MAGIC_CMD="$lt_save_MAGIC_CMD"
9818 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9819 if test -n "$MAGIC_CMD"; then
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9821 $as_echo "$MAGIC_CMD" >&6; }
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9824 $as_echo "no" >&6; }
9831 if test -z "$lt_cv_path_MAGIC_CMD"; then
9832 if test -n "$ac_tool_prefix"; then
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9834 $as_echo_n "checking for file... " >&6; }
9835 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9836 $as_echo_n "(cached) " >&6
9840 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9843 lt_save_MAGIC_CMD="$MAGIC_CMD"
9844 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9845 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9846 for ac_dir in $ac_dummy; do
9848 test -z "$ac_dir" && ac_dir=.
9849 if test -f $ac_dir/file; then
9850 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9851 if test -n "$file_magic_test_file"; then
9852 case $deplibs_check_method in
9854 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9855 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9856 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9857 $EGREP "$file_magic_regex" > /dev/null; then
9862 *** Warning: the command libtool uses to detect shared libraries,
9863 *** $file_magic_cmd, produces output that libtool cannot recognize.
9864 *** The result is that libtool may fail to recognize shared libraries
9865 *** as such. This will affect the creation of libtool libraries that
9866 *** depend on shared libraries, but programs linked with such libtool
9867 *** libraries will work regardless of this problem. Nevertheless, you
9868 *** may want to report the problem to your system manager and/or to
9869 *** bug-libtool@gnu.org
9879 MAGIC_CMD="$lt_save_MAGIC_CMD"
9884 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9885 if test -n "$MAGIC_CMD"; then
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9887 $as_echo "$MAGIC_CMD" >&6; }
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9890 $as_echo "no" >&6; }
9903 # Use C for the default configuration in the libtool script
9907 ac_cpp='$CPP $CPPFLAGS'
9908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9913 # Source file extension for C test sources.
9916 # Object file extension for compiled C test sources.
9920 # Code to be used in simple compile tests
9921 lt_simple_compile_test_code="int some_variable = 0;"
9923 # Code to be used in simple link tests
9924 lt_simple_link_test_code='int main(){return(0);}'
9932 # If no C compiler was specified, use CC.
9935 # If no C compiler flags were specified, use CFLAGS.
9936 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9938 # Allow CC to be a program name with arguments.
9941 # Save the default compiler, since it gets overwritten when the other
9942 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9943 compiler_DEFAULT=$CC
9945 # save warnings/boilerplate of simple test code
9946 ac_outfile=conftest.$ac_objext
9947 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9948 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9949 _lt_compiler_boilerplate=`cat conftest.err`
9952 ac_outfile=conftest.$ac_objext
9953 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9954 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9955 _lt_linker_boilerplate=`cat conftest.err`
9960 ## There is no encapsulation within the following macros, do not change
9961 ## the running order or otherwise move them around unless you know exactly
9962 ## what you are doing...
9963 if test -n "$compiler"; then
9965 lt_prog_compiler_no_builtin_flag=
9967 if test "$GCC" = yes; then
9968 case $cc_basename in
9970 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9972 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9976 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9977 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9978 $as_echo_n "(cached) " >&6
9980 lt_cv_prog_compiler_rtti_exceptions=no
9981 ac_outfile=conftest.$ac_objext
9982 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9983 lt_compiler_flag="-fno-rtti -fno-exceptions"
9984 # Insert the option either (1) after the last *FLAGS variable, or
9985 # (2) before a word containing "conftest.", or (3) at the end.
9986 # Note that $ac_compile itself does not contain backslashes and begins
9987 # with a dollar sign (not a hyphen), so the echo should work correctly.
9988 # The option is referenced via a variable to avoid confusing sed.
9989 lt_compile=`echo "$ac_compile" | $SED \
9990 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9991 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9992 -e 's:$: $lt_compiler_flag:'`
9993 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9994 (eval "$lt_compile" 2>conftest.err)
9996 cat conftest.err >&5
9997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998 if (exit $ac_status) && test -s "$ac_outfile"; then
9999 # The compiler can only warn and ignore the option if not recognized
10000 # So say no if there are warnings other than the usual output.
10001 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10002 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10003 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10004 lt_cv_prog_compiler_rtti_exceptions=yes
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10011 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10013 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10014 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10026 lt_prog_compiler_wl=
10027 lt_prog_compiler_pic=
10028 lt_prog_compiler_static=
10031 if test "$GCC" = yes; then
10032 lt_prog_compiler_wl='-Wl,'
10033 lt_prog_compiler_static='-static'
10037 # All AIX code is PIC.
10038 if test "$host_cpu" = ia64; then
10039 # AIX 5 now supports IA64 processor
10040 lt_prog_compiler_static='-Bstatic'
10047 # see comment about AmigaOS4 .so support
10048 lt_prog_compiler_pic='-fPIC'
10051 # FIXME: we need at least 68020 code to build shared libraries, but
10052 # adding the `-m68020' flag to GCC prevents building anything better,
10054 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10059 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10060 # PIC is the default for these OSes.
10063 mingw* | cygwin* | pw32* | os2* | cegcc*)
10064 # This hack is so that the source file can tell whether it is being
10065 # built for inclusion in a dll (and should export symbols for example).
10066 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10067 # (--disable-auto-import) libraries
10068 lt_prog_compiler_pic='-DDLL_EXPORT'
10071 darwin* | rhapsody*)
10072 # PIC is the default on this platform
10073 # Common symbols not allowed in MH_DYLIB files
10074 lt_prog_compiler_pic='-fno-common'
10078 # PIC is the default for Haiku.
10079 # The "-static" flag exists, but is broken.
10080 lt_prog_compiler_static=
10084 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10085 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10086 # sets the default TLS model and affects inlining.
10092 lt_prog_compiler_pic='-fPIC'
10098 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10099 # Instead, we relocate shared libraries at runtime.
10103 # Just because we use GCC doesn't mean we suddenly get shared libraries
10104 # on systems that don't support them.
10105 lt_prog_compiler_can_build_shared=no
10110 # QNX uses GNU C++, but need to define -shared option too, otherwise
10111 # it will coredump.
10112 lt_prog_compiler_pic='-fPIC -shared'
10116 if test -d /usr/nec; then
10117 lt_prog_compiler_pic=-Kconform_pic
10122 lt_prog_compiler_pic='-fPIC'
10126 case $cc_basename in
10127 nvcc*) # Cuda Compiler Driver 2.2
10128 lt_prog_compiler_wl='-Xlinker '
10129 if test -n "$lt_prog_compiler_pic"; then
10130 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10135 # PORTME Check for flag to pass linker flags through the system compiler.
10138 lt_prog_compiler_wl='-Wl,'
10139 if test "$host_cpu" = ia64; then
10140 # AIX 5 now supports IA64 processor
10141 lt_prog_compiler_static='-Bstatic'
10143 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10147 mingw* | cygwin* | pw32* | os2* | cegcc*)
10148 # This hack is so that the source file can tell whether it is being
10149 # built for inclusion in a dll (and should export symbols for example).
10150 lt_prog_compiler_pic='-DDLL_EXPORT'
10153 hpux9* | hpux10* | hpux11*)
10154 lt_prog_compiler_wl='-Wl,'
10155 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10156 # not for PA HP-UX.
10162 lt_prog_compiler_pic='+Z'
10165 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10166 lt_prog_compiler_static='${wl}-a ${wl}archive'
10169 irix5* | irix6* | nonstopux*)
10170 lt_prog_compiler_wl='-Wl,'
10171 # PIC (with -KPIC) is the default.
10172 lt_prog_compiler_static='-non_shared'
10175 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10176 case $cc_basename in
10177 # old Intel for x86_64 which still supported -KPIC.
10179 lt_prog_compiler_wl='-Wl,'
10180 lt_prog_compiler_pic='-KPIC'
10181 lt_prog_compiler_static='-static'
10183 # icc used to be incompatible with GCC.
10184 # ICC 10 doesn't accept -KPIC any more.
10186 lt_prog_compiler_wl='-Wl,'
10187 lt_prog_compiler_pic='-fPIC'
10188 lt_prog_compiler_static='-static'
10190 # Lahey Fortran 8.1.
10192 lt_prog_compiler_wl='-Wl,'
10193 lt_prog_compiler_pic='--shared'
10194 lt_prog_compiler_static='--static'
10197 # NAG Fortran compiler
10198 lt_prog_compiler_wl='-Wl,-Wl,,'
10199 lt_prog_compiler_pic='-PIC'
10200 lt_prog_compiler_static='-Bstatic'
10202 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10203 # Portland Group compilers (*not* the Pentium gcc compiler,
10204 # which looks to be a dead project)
10205 lt_prog_compiler_wl='-Wl,'
10206 lt_prog_compiler_pic='-fpic'
10207 lt_prog_compiler_static='-Bstatic'
10210 lt_prog_compiler_wl='-Wl,'
10211 # All Alpha code is PIC.
10212 lt_prog_compiler_static='-non_shared'
10214 xl* | bgxl* | bgf* | mpixl*)
10215 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10216 lt_prog_compiler_wl='-Wl,'
10217 lt_prog_compiler_pic='-qpic'
10218 lt_prog_compiler_static='-qstaticlink'
10221 case `$CC -V 2>&1 | sed 5q` in
10222 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10223 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10224 lt_prog_compiler_pic='-KPIC'
10225 lt_prog_compiler_static='-Bstatic'
10226 lt_prog_compiler_wl=''
10228 *Sun\ F* | *Sun*Fortran*)
10229 lt_prog_compiler_pic='-KPIC'
10230 lt_prog_compiler_static='-Bstatic'
10231 lt_prog_compiler_wl='-Qoption ld '
10235 lt_prog_compiler_pic='-KPIC'
10236 lt_prog_compiler_static='-Bstatic'
10237 lt_prog_compiler_wl='-Wl,'
10239 *Intel*\ [CF]*Compiler*)
10240 lt_prog_compiler_wl='-Wl,'
10241 lt_prog_compiler_pic='-fPIC'
10242 lt_prog_compiler_static='-static'
10245 lt_prog_compiler_wl='-Wl,'
10246 lt_prog_compiler_pic='-fpic'
10247 lt_prog_compiler_static='-Bstatic'
10255 lt_prog_compiler_pic='-KPIC'
10256 lt_prog_compiler_static='-Bstatic'
10260 # QNX uses GNU C++, but need to define -shared option too, otherwise
10261 # it will coredump.
10262 lt_prog_compiler_pic='-fPIC -shared'
10265 osf3* | osf4* | osf5*)
10266 lt_prog_compiler_wl='-Wl,'
10267 # All OSF/1 code is PIC.
10268 lt_prog_compiler_static='-non_shared'
10272 lt_prog_compiler_static='-non_shared'
10276 lt_prog_compiler_pic='-KPIC'
10277 lt_prog_compiler_static='-Bstatic'
10278 case $cc_basename in
10279 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10280 lt_prog_compiler_wl='-Qoption ld ';;
10282 lt_prog_compiler_wl='-Wl,';;
10287 lt_prog_compiler_wl='-Qoption ld '
10288 lt_prog_compiler_pic='-PIC'
10289 lt_prog_compiler_static='-Bstatic'
10292 sysv4 | sysv4.2uw2* | sysv4.3*)
10293 lt_prog_compiler_wl='-Wl,'
10294 lt_prog_compiler_pic='-KPIC'
10295 lt_prog_compiler_static='-Bstatic'
10299 if test -d /usr/nec ;then
10300 lt_prog_compiler_pic='-Kconform_pic'
10301 lt_prog_compiler_static='-Bstatic'
10305 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10306 lt_prog_compiler_wl='-Wl,'
10307 lt_prog_compiler_pic='-KPIC'
10308 lt_prog_compiler_static='-Bstatic'
10312 lt_prog_compiler_wl='-Wl,'
10313 lt_prog_compiler_can_build_shared=no
10317 lt_prog_compiler_pic='-pic'
10318 lt_prog_compiler_static='-Bstatic'
10322 lt_prog_compiler_can_build_shared=no
10328 # For platforms which do not support PIC, -DPIC is meaningless:
10330 lt_prog_compiler_pic=
10333 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10338 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10339 if ${lt_cv_prog_compiler_pic+:} false; then :
10340 $as_echo_n "(cached) " >&6
10342 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10345 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10346 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10349 # Check to make sure the PIC flag actually works.
10351 if test -n "$lt_prog_compiler_pic"; then
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10353 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10354 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10355 $as_echo_n "(cached) " >&6
10357 lt_cv_prog_compiler_pic_works=no
10358 ac_outfile=conftest.$ac_objext
10359 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10360 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10361 # Insert the option either (1) after the last *FLAGS variable, or
10362 # (2) before a word containing "conftest.", or (3) at the end.
10363 # Note that $ac_compile itself does not contain backslashes and begins
10364 # with a dollar sign (not a hyphen), so the echo should work correctly.
10365 # The option is referenced via a variable to avoid confusing sed.
10366 lt_compile=`echo "$ac_compile" | $SED \
10367 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10368 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10369 -e 's:$: $lt_compiler_flag:'`
10370 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10371 (eval "$lt_compile" 2>conftest.err)
10373 cat conftest.err >&5
10374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375 if (exit $ac_status) && test -s "$ac_outfile"; then
10376 # The compiler can only warn and ignore the option if not recognized
10377 # So say no if there are warnings other than the usual output.
10378 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10379 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10380 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10381 lt_cv_prog_compiler_pic_works=yes
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10388 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10390 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10391 case $lt_prog_compiler_pic in
10393 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10396 lt_prog_compiler_pic=
10397 lt_prog_compiler_can_build_shared=no
10413 # Check to make sure the static flag actually works.
10415 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10417 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10418 if ${lt_cv_prog_compiler_static_works+:} false; then :
10419 $as_echo_n "(cached) " >&6
10421 lt_cv_prog_compiler_static_works=no
10422 save_LDFLAGS="$LDFLAGS"
10423 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10424 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10425 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10426 # The linker can only warn and ignore the option if not recognized
10427 # So say no if there are warnings
10428 if test -s conftest.err; then
10429 # Append any errors to the config.log.
10430 cat conftest.err 1>&5
10431 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10432 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10433 if diff conftest.exp conftest.er2 >/dev/null; then
10434 lt_cv_prog_compiler_static_works=yes
10437 lt_cv_prog_compiler_static_works=yes
10441 LDFLAGS="$save_LDFLAGS"
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10445 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10447 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10450 lt_prog_compiler_static=
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10460 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10461 if ${lt_cv_prog_compiler_c_o+:} false; then :
10462 $as_echo_n "(cached) " >&6
10464 lt_cv_prog_compiler_c_o=no
10465 $RM -r conftest 2>/dev/null
10469 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10471 lt_compiler_flag="-o out/conftest2.$ac_objext"
10472 # Insert the option either (1) after the last *FLAGS variable, or
10473 # (2) before a word containing "conftest.", or (3) at the end.
10474 # Note that $ac_compile itself does not contain backslashes and begins
10475 # with a dollar sign (not a hyphen), so the echo should work correctly.
10476 lt_compile=`echo "$ac_compile" | $SED \
10477 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10478 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10479 -e 's:$: $lt_compiler_flag:'`
10480 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10481 (eval "$lt_compile" 2>out/conftest.err)
10483 cat out/conftest.err >&5
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10487 # The compiler can only warn and ignore the option if not recognized
10488 # So say no if there are warnings
10489 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10490 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10491 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10492 lt_cv_prog_compiler_c_o=yes
10497 # SGI C++ compiler will create directory out/ii_files/ for
10498 # template instantiation
10499 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10500 $RM out/* && rmdir out
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10507 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10515 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10516 if ${lt_cv_prog_compiler_c_o+:} false; then :
10517 $as_echo_n "(cached) " >&6
10519 lt_cv_prog_compiler_c_o=no
10520 $RM -r conftest 2>/dev/null
10524 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10526 lt_compiler_flag="-o out/conftest2.$ac_objext"
10527 # Insert the option either (1) after the last *FLAGS variable, or
10528 # (2) before a word containing "conftest.", or (3) at the end.
10529 # Note that $ac_compile itself does not contain backslashes and begins
10530 # with a dollar sign (not a hyphen), so the echo should work correctly.
10531 lt_compile=`echo "$ac_compile" | $SED \
10532 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10533 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10534 -e 's:$: $lt_compiler_flag:'`
10535 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10536 (eval "$lt_compile" 2>out/conftest.err)
10538 cat out/conftest.err >&5
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10542 # The compiler can only warn and ignore the option if not recognized
10543 # So say no if there are warnings
10544 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10545 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10546 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10547 lt_cv_prog_compiler_c_o=yes
10552 # SGI C++ compiler will create directory out/ii_files/ for
10553 # template instantiation
10554 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10555 $RM out/* && rmdir out
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10562 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10567 hard_links="nottested"
10568 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10569 # do not overwrite the value of need_locks provided by the user
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10571 $as_echo_n "checking if we can lock with hard links... " >&6; }
10574 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10576 ln conftest.a conftest.b 2>&5 || hard_links=no
10577 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10579 $as_echo "$hard_links" >&6; }
10580 if test "$hard_links" = no; then
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10582 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10595 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10598 allow_undefined_flag=
10599 always_export_symbols=no
10601 archive_expsym_cmds=
10602 compiler_needs_object=no
10603 enable_shared_with_static_runtimes=no
10604 export_dynamic_flag_spec=
10605 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10606 hardcode_automatic=no
10608 hardcode_direct_absolute=no
10609 hardcode_libdir_flag_spec=
10610 hardcode_libdir_separator=
10611 hardcode_minus_L=no
10612 hardcode_shlibpath_var=unsupported
10614 link_all_deplibs=unknown
10616 module_expsym_cmds=
10617 old_archive_from_new_cmds=
10618 old_archive_from_expsyms_cmds=
10619 thread_safe_flag_spec=
10620 whole_archive_flag_spec=
10621 # include_expsyms should be a list of space-separated symbols to be *always*
10622 # included in the symbol list
10624 # exclude_expsyms can be an extended regexp of symbols to exclude
10625 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10626 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10627 # as well as any symbol that contains `d'.
10628 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10629 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10630 # platforms (ab)use it in PIC code, but their linkers get confused if
10631 # the symbol is explicitly referenced. Since portable code cannot
10632 # rely on this symbol name, it's probably fine to never include it in
10633 # preloaded symbol tables.
10634 # Exclude shared library initialization/finalization symbols.
10635 extract_expsyms_cmds=
10638 cygwin* | mingw* | pw32* | cegcc*)
10639 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10640 # When not using gcc, we currently assume that we are using
10641 # Microsoft Visual C++.
10642 if test "$GCC" != yes; then
10647 # we just hope/assume this is gcc and not c89 (= MSVC++)
10657 # On some targets, GNU ld is compatible enough with the native linker
10658 # that we're better off using the native interface for both.
10659 lt_use_gnu_ld_interface=no
10660 if test "$with_gnu_ld" = yes; then
10663 # The AIX port of GNU ld has always aspired to compatibility
10664 # with the native linker. However, as the warning in the GNU ld
10665 # block says, versions before 2.19.5* couldn't really create working
10666 # shared libraries, regardless of the interface used.
10667 case `$LD -v 2>&1` in
10668 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10669 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10670 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10672 lt_use_gnu_ld_interface=yes
10677 lt_use_gnu_ld_interface=yes
10682 if test "$lt_use_gnu_ld_interface" = yes; then
10683 # If archive_cmds runs LD, not CC, wlarc should be empty
10686 # Set some defaults for GNU ld with shared library support. These
10687 # are reset later if shared libraries are not supported. Putting them
10688 # here allows them to be overridden if necessary.
10689 runpath_var=LD_RUN_PATH
10690 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10691 export_dynamic_flag_spec='${wl}--export-dynamic'
10692 # ancient GNU ld didn't support --whole-archive et. al.
10693 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10694 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10696 whole_archive_flag_spec=
10698 supports_anon_versioning=no
10699 case `$LD -v 2>&1` in
10700 *GNU\ gold*) supports_anon_versioning=yes ;;
10701 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10702 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10703 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10704 *\ 2.11.*) ;; # other 2.11 versions
10705 *) supports_anon_versioning=yes ;;
10708 # See if GNU ld supports shared libraries.
10711 # On AIX/PPC, the GNU linker is very broken
10712 if test "$host_cpu" != ia64; then
10716 *** Warning: the GNU linker, at least up to release 2.19, is reported
10717 *** to be unable to reliably create shared libraries on AIX.
10718 *** Therefore, libtool is disabling shared libraries support. If you
10719 *** really care for shared libraries, you may want to install binutils
10720 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10721 *** You will then need to restart the configuration process.
10730 # see comment about AmigaOS4 .so support
10731 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10732 archive_expsym_cmds=''
10735 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)'
10736 hardcode_libdir_flag_spec='-L$libdir'
10737 hardcode_minus_L=yes
10743 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10744 allow_undefined_flag=unsupported
10745 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10746 # support --undefined. This deserves some investigation. FIXME
10747 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10753 cygwin* | mingw* | pw32* | cegcc*)
10754 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10755 # as there is no search path for DLLs.
10756 hardcode_libdir_flag_spec='-L$libdir'
10757 export_dynamic_flag_spec='${wl}--export-all-symbols'
10758 allow_undefined_flag=unsupported
10759 always_export_symbols=no
10760 enable_shared_with_static_runtimes=yes
10761 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10762 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10764 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10765 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10766 # If the export-symbols file already is a .def file (1st line
10767 # is EXPORTS), use it as is; otherwise, prepend...
10768 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10769 cp $export_symbols $output_objdir/$soname.def;
10771 echo EXPORTS > $output_objdir/$soname.def;
10772 cat $export_symbols >> $output_objdir/$soname.def;
10774 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10781 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10782 link_all_deplibs=yes
10787 hardcode_shlibpath_var=no
10788 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10789 export_dynamic_flag_spec='${wl}-E'
10790 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10791 # Instead, shared libraries are loaded at an image base (0x10000000 by
10792 # default) and relocated if they conflict, which is a slow very memory
10793 # consuming and fragmenting process. To avoid this, we pick a random,
10794 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10795 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10796 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10797 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'
10800 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10802 if test "$host_os" = linux-dietlibc; then
10803 case $cc_basename in
10804 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10807 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10808 && test "$tmp_diet" = no
10810 tmp_addflag=' $pic_flag'
10811 tmp_sharedflag='-shared'
10812 case $cc_basename,$host_cpu in
10813 pgcc*) # Portland Group C compiler
10814 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10815 tmp_addflag=' $pic_flag'
10817 pgf77* | pgf90* | pgf95* | pgfortran*)
10818 # Portland Group f77 and f90 compilers
10819 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10820 tmp_addflag=' $pic_flag -Mnomain' ;;
10821 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10822 tmp_addflag=' -i_dynamic' ;;
10823 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10824 tmp_addflag=' -i_dynamic -nofor_main' ;;
10825 ifc* | ifort*) # Intel Fortran compiler
10826 tmp_addflag=' -nofor_main' ;;
10827 lf95*) # Lahey Fortran 8.1
10828 whole_archive_flag_spec=
10829 tmp_sharedflag='--shared' ;;
10830 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10831 tmp_sharedflag='-qmkshrobj'
10833 nvcc*) # Cuda Compiler Driver 2.2
10834 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10835 compiler_needs_object=yes
10838 case `$CC -V 2>&1 | sed 5q` in
10839 *Sun\ C*) # Sun C 5.9
10840 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10841 compiler_needs_object=yes
10842 tmp_sharedflag='-G' ;;
10843 *Sun\ F*) # Sun Fortran 8.3
10844 tmp_sharedflag='-G' ;;
10846 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10848 if test "x$supports_anon_versioning" = xyes; then
10849 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10850 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10851 echo "local: *; };" >> $output_objdir/$libname.ver~
10852 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10855 case $cc_basename in
10856 xlf* | bgf* | bgxlf* | mpixlf*)
10857 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10858 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10859 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10860 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10861 if test "x$supports_anon_versioning" = xyes; then
10862 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10863 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10864 echo "local: *; };" >> $output_objdir/$libname.ver~
10865 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10875 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10876 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10879 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10880 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10885 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10889 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10890 *** create shared libraries on Solaris systems. Therefore, libtool
10891 *** is disabling shared libraries support. We urge you to upgrade GNU
10892 *** binutils to release 2.9.1 or newer. Another option is to modify
10893 *** your PATH or compiler configuration so that the native linker is
10894 *** used, and then restart.
10897 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10898 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10899 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10905 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10906 case `$LD -v 2>&1` in
10907 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10911 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10912 *** reliably create shared libraries on SCO systems. Therefore, libtool
10913 *** is disabling shared libraries support. We urge you to upgrade GNU
10914 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10915 *** your PATH or compiler configuration so that the native linker is
10916 *** used, and then restart.
10921 # For security reasons, it is highly recommended that you always
10922 # use absolute paths for naming shared libraries, and exclude the
10923 # DT_RUNPATH tag from executables and libraries. But doing so
10924 # requires that you compile everything twice, which is a pain.
10925 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10926 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10927 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10928 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10937 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10939 hardcode_direct=yes
10940 hardcode_shlibpath_var=no
10944 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10945 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10946 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10953 if test "$ld_shlibs" = no; then
10955 hardcode_libdir_flag_spec=
10956 export_dynamic_flag_spec=
10957 whole_archive_flag_spec=
10960 # PORTME fill in a description of your system's linker (not GNU ld)
10963 allow_undefined_flag=unsupported
10964 always_export_symbols=yes
10965 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'
10966 # Note: this linker hardcodes the directories in LIBPATH if there
10967 # are no directories specified by -L.
10968 hardcode_minus_L=yes
10969 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10970 # Neither direct hardcoding nor static linking is supported with a
10972 hardcode_direct=unsupported
10977 if test "$host_cpu" = ia64; then
10978 # On IA64, the linker does run time linking by default, so we don't
10979 # have to do anything special.
10980 aix_use_runtimelinking=no
10981 exp_sym_flag='-Bexport'
10984 # If we're using GNU nm, then we don't want the "-C" option.
10985 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10986 # Also, AIX nm treats weak defined symbols like other global
10987 # defined symbols, whereas GNU nm marks them as "W".
10988 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10989 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10991 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'
10993 aix_use_runtimelinking=no
10995 # Test if we are trying to use run time linking or normal
10996 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10997 # need to do runtime linking.
10998 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10999 for ld_flag in $LDFLAGS; do
11000 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11001 aix_use_runtimelinking=yes
11008 exp_sym_flag='-bexport'
11009 no_entry_flag='-bnoentry'
11012 # When large executables or shared objects are built, AIX ld can
11013 # have problems creating the table of contents. If linking a library
11014 # or program results in "error TOC overflow" add -mminimal-toc to
11015 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11016 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11019 hardcode_direct=yes
11020 hardcode_direct_absolute=yes
11021 hardcode_libdir_separator=':'
11022 link_all_deplibs=yes
11023 file_list_spec='${wl}-f,'
11025 if test "$GCC" = yes; then
11026 case $host_os in aix4.[012]|aix4.[012].*)
11027 # We only want to do this on AIX 4.2 and lower, the check
11028 # below for broken collect2 doesn't work under 4.3+
11029 collect2name=`${CC} -print-prog-name=collect2`
11030 if test -f "$collect2name" &&
11031 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11033 # We have reworked collect2
11036 # We have old collect2
11037 hardcode_direct=unsupported
11038 # It fails to find uninstalled libraries when the uninstalled
11039 # path is not listed in the libpath. Setting hardcode_minus_L
11040 # to unsupported forces relinking
11041 hardcode_minus_L=yes
11042 hardcode_libdir_flag_spec='-L$libdir'
11043 hardcode_libdir_separator=
11047 shared_flag='-shared'
11048 if test "$aix_use_runtimelinking" = yes; then
11049 shared_flag="$shared_flag "'${wl}-G'
11053 if test "$host_cpu" = ia64; then
11054 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11055 # chokes on -Wl,-G. The following line is correct:
11058 if test "$aix_use_runtimelinking" = yes; then
11059 shared_flag='${wl}-G'
11061 shared_flag='${wl}-bM:SRE'
11066 export_dynamic_flag_spec='${wl}-bexpall'
11067 # It seems that -bexpall does not export symbols beginning with
11068 # underscore (_), so it is better to generate a list of symbols to export.
11069 always_export_symbols=yes
11070 if test "$aix_use_runtimelinking" = yes; then
11071 # Warning - without using the other runtime loading flags (-brtl),
11072 # -berok will link without error, but may produce a broken library.
11073 allow_undefined_flag='-berok'
11074 # Determine the default libpath from the value encoded in an
11075 # empty executable.
11076 if test "${lt_cv_aix_libpath+set}" = set; then
11077 aix_libpath=$lt_cv_aix_libpath
11079 if ${lt_cv_aix_libpath_+:} false; then :
11080 $as_echo_n "(cached) " >&6
11082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11083 /* end confdefs.h. */
11093 if ac_fn_c_try_link "$LINENO"; then :
11095 lt_aix_libpath_sed='
11096 /Import File Strings/,/^$/ {
11098 s/^0 *\([^ ]*\) *$/\1/
11102 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11103 # Check for a 64-bit object if we didn't find anything.
11104 if test -z "$lt_cv_aix_libpath_"; then
11105 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11108 rm -f core conftest.err conftest.$ac_objext \
11109 conftest$ac_exeext conftest.$ac_ext
11110 if test -z "$lt_cv_aix_libpath_"; then
11111 lt_cv_aix_libpath_="/usr/lib:/lib"
11116 aix_libpath=$lt_cv_aix_libpath_
11119 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11120 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11122 if test "$host_cpu" = ia64; then
11123 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11124 allow_undefined_flag="-z nodefs"
11125 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"
11127 # Determine the default libpath from the value encoded in an
11128 # empty executable.
11129 if test "${lt_cv_aix_libpath+set}" = set; then
11130 aix_libpath=$lt_cv_aix_libpath
11132 if ${lt_cv_aix_libpath_+:} false; then :
11133 $as_echo_n "(cached) " >&6
11135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11136 /* end confdefs.h. */
11146 if ac_fn_c_try_link "$LINENO"; then :
11148 lt_aix_libpath_sed='
11149 /Import File Strings/,/^$/ {
11151 s/^0 *\([^ ]*\) *$/\1/
11155 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11156 # Check for a 64-bit object if we didn't find anything.
11157 if test -z "$lt_cv_aix_libpath_"; then
11158 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11161 rm -f core conftest.err conftest.$ac_objext \
11162 conftest$ac_exeext conftest.$ac_ext
11163 if test -z "$lt_cv_aix_libpath_"; then
11164 lt_cv_aix_libpath_="/usr/lib:/lib"
11169 aix_libpath=$lt_cv_aix_libpath_
11172 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11173 # Warning - without using the other run time loading flags,
11174 # -berok will link without error, but may produce a broken library.
11175 no_undefined_flag=' ${wl}-bernotok'
11176 allow_undefined_flag=' ${wl}-berok'
11177 if test "$with_gnu_ld" = yes; then
11178 # We only use this code for GNU lds that support --whole-archive.
11179 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11181 # Exported symbols can be pulled into shared objects from archives
11182 whole_archive_flag_spec='$convenience'
11184 archive_cmds_need_lc=yes
11185 # This is similar to how AIX traditionally builds its shared libraries.
11186 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'
11194 # see comment about AmigaOS4 .so support
11195 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11196 archive_expsym_cmds=''
11199 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)'
11200 hardcode_libdir_flag_spec='-L$libdir'
11201 hardcode_minus_L=yes
11207 export_dynamic_flag_spec=-rdynamic
11210 cygwin* | mingw* | pw32* | cegcc*)
11211 # When not using gcc, we currently assume that we are using
11212 # Microsoft Visual C++.
11213 # hardcode_libdir_flag_spec is actually meaningless, as there is
11214 # no search path for DLLs.
11215 case $cc_basename in
11218 hardcode_libdir_flag_spec=' '
11219 allow_undefined_flag=unsupported
11220 always_export_symbols=yes
11222 # Tell ltmain to make .lib files, not .a files.
11224 # Tell ltmain to make .dll files, not .so files.
11226 # FIXME: Setting linknames here is a bad hack.
11227 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11228 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11229 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11231 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11233 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11235 # The linker will not automatically build a static lib if we build a DLL.
11236 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11237 enable_shared_with_static_runtimes=yes
11238 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11239 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11241 old_postinstall_cmds='chmod 644 $oldlib'
11242 postlink_cmds='lt_outputfile="@OUTPUT@"~
11243 lt_tool_outputfile="@TOOL_OUTPUT@"~
11244 case $lt_outputfile in
11247 lt_outputfile="$lt_outputfile.exe"
11248 lt_tool_outputfile="$lt_tool_outputfile.exe"
11251 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11252 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11253 $RM "$lt_outputfile.manifest";
11257 # Assume MSVC wrapper
11258 hardcode_libdir_flag_spec=' '
11259 allow_undefined_flag=unsupported
11260 # Tell ltmain to make .lib files, not .a files.
11262 # Tell ltmain to make .dll files, not .so files.
11264 # FIXME: Setting linknames here is a bad hack.
11265 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11266 # The linker will automatically build a .lib file if we build a DLL.
11267 old_archive_from_new_cmds='true'
11268 # FIXME: Should let the user specify the lib program.
11269 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11270 enable_shared_with_static_runtimes=yes
11275 darwin* | rhapsody*)
11278 archive_cmds_need_lc=no
11280 hardcode_automatic=yes
11281 hardcode_shlibpath_var=unsupported
11282 if test "$lt_cv_ld_force_load" = "yes"; then
11283 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
11286 whole_archive_flag_spec=''
11288 link_all_deplibs=yes
11289 allow_undefined_flag="$_lt_dar_allow_undefined"
11290 case $cc_basename in
11291 ifort*) _lt_dar_can_shared=yes ;;
11292 *) _lt_dar_can_shared=$GCC ;;
11294 if test "$_lt_dar_can_shared" = "yes"; then
11295 output_verbose_link_cmd=func_echo_all
11296 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11297 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11298 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}"
11299 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}"
11308 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11309 hardcode_libdir_flag_spec='-L$libdir'
11310 hardcode_shlibpath_var=no
11313 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11314 # support. Future versions do this automatically, but an explicit c++rt0.o
11315 # does not break anything, and helps significantly (at the cost of a little
11318 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11319 hardcode_libdir_flag_spec='-R$libdir'
11320 hardcode_direct=yes
11321 hardcode_shlibpath_var=no
11324 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11326 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11327 hardcode_direct=yes
11328 hardcode_minus_L=yes
11329 hardcode_shlibpath_var=no
11332 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11333 freebsd* | dragonfly*)
11334 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11335 hardcode_libdir_flag_spec='-R$libdir'
11336 hardcode_direct=yes
11337 hardcode_shlibpath_var=no
11341 if test "$GCC" = yes; then
11342 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11344 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'
11346 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11347 hardcode_libdir_separator=:
11348 hardcode_direct=yes
11350 # hardcode_minus_L: Not really in the search PATH,
11351 # but as the default location of the library.
11352 hardcode_minus_L=yes
11353 export_dynamic_flag_spec='${wl}-E'
11357 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11358 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11360 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11362 if test "$with_gnu_ld" = no; then
11363 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11364 hardcode_libdir_separator=:
11365 hardcode_direct=yes
11366 hardcode_direct_absolute=yes
11367 export_dynamic_flag_spec='${wl}-E'
11368 # hardcode_minus_L: Not really in the search PATH,
11369 # but as the default location of the library.
11370 hardcode_minus_L=yes
11375 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11378 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11381 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11384 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11390 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11393 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11397 # Older versions of the 11.00 compiler do not understand -b yet
11398 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11400 $as_echo_n "checking if $CC understands -b... " >&6; }
11401 if ${lt_cv_prog_compiler__b+:} false; then :
11402 $as_echo_n "(cached) " >&6
11404 lt_cv_prog_compiler__b=no
11405 save_LDFLAGS="$LDFLAGS"
11406 LDFLAGS="$LDFLAGS -b"
11407 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11408 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11409 # The linker can only warn and ignore the option if not recognized
11410 # So say no if there are warnings
11411 if test -s conftest.err; then
11412 # Append any errors to the config.log.
11413 cat conftest.err 1>&5
11414 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11415 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11416 if diff conftest.exp conftest.er2 >/dev/null; then
11417 lt_cv_prog_compiler__b=yes
11420 lt_cv_prog_compiler__b=yes
11424 LDFLAGS="$save_LDFLAGS"
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11428 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11430 if test x"$lt_cv_prog_compiler__b" = xyes; then
11431 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11433 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11439 if test "$with_gnu_ld" = no; then
11440 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11441 hardcode_libdir_separator=:
11446 hardcode_shlibpath_var=no
11449 hardcode_direct=yes
11450 hardcode_direct_absolute=yes
11451 export_dynamic_flag_spec='${wl}-E'
11453 # hardcode_minus_L: Not really in the search PATH,
11454 # but as the default location of the library.
11455 hardcode_minus_L=yes
11461 irix5* | irix6* | nonstopux*)
11462 if test "$GCC" = yes; then
11463 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11464 # Try to use the -exported_symbol ld option, if it does not
11465 # work, assume that -exports_file does not work either and
11466 # implicitly export all symbols.
11467 # This should be the same for all languages, so no per-tag cache variable.
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11469 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11470 if ${lt_cv_irix_exported_symbol+:} false; then :
11471 $as_echo_n "(cached) " >&6
11473 save_LDFLAGS="$LDFLAGS"
11474 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11476 /* end confdefs.h. */
11477 int foo (void) { return 0; }
11479 if ac_fn_c_try_link "$LINENO"; then :
11480 lt_cv_irix_exported_symbol=yes
11482 lt_cv_irix_exported_symbol=no
11484 rm -f core conftest.err conftest.$ac_objext \
11485 conftest$ac_exeext conftest.$ac_ext
11486 LDFLAGS="$save_LDFLAGS"
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11489 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11490 if test "$lt_cv_irix_exported_symbol" = yes; then
11491 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11494 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11495 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
11497 archive_cmds_need_lc='no'
11498 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11499 hardcode_libdir_separator=:
11501 link_all_deplibs=yes
11505 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11506 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11508 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11510 hardcode_libdir_flag_spec='-R$libdir'
11511 hardcode_direct=yes
11512 hardcode_shlibpath_var=no
11516 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11517 hardcode_direct=yes
11518 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11519 hardcode_libdir_separator=:
11520 hardcode_shlibpath_var=no
11527 if test -f /usr/libexec/ld.so; then
11528 hardcode_direct=yes
11529 hardcode_shlibpath_var=no
11530 hardcode_direct_absolute=yes
11531 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11532 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11533 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11534 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11535 export_dynamic_flag_spec='${wl}-E'
11538 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11539 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11540 hardcode_libdir_flag_spec='-R$libdir'
11543 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11544 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11554 hardcode_libdir_flag_spec='-L$libdir'
11555 hardcode_minus_L=yes
11556 allow_undefined_flag=unsupported
11557 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'
11558 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11562 if test "$GCC" = yes; then
11563 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11564 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11566 allow_undefined_flag=' -expect_unresolved \*'
11567 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11569 archive_cmds_need_lc='no'
11570 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11571 hardcode_libdir_separator=:
11574 osf4* | osf5*) # as osf3* with the addition of -msym flag
11575 if test "$GCC" = yes; then
11576 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11577 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11578 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11580 allow_undefined_flag=' -expect_unresolved \*'
11581 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11582 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~
11583 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
11585 # Both c and cxx compiler support -rpath directly
11586 hardcode_libdir_flag_spec='-rpath $libdir'
11588 archive_cmds_need_lc='no'
11589 hardcode_libdir_separator=:
11593 no_undefined_flag=' -z defs'
11594 if test "$GCC" = yes; then
11596 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11597 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11598 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11600 case `$CC -V 2>&1` in
11603 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11604 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11605 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11609 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11610 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11611 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11615 hardcode_libdir_flag_spec='-R$libdir'
11616 hardcode_shlibpath_var=no
11618 solaris2.[0-5] | solaris2.[0-5].*) ;;
11620 # The compiler driver will combine and reorder linker options,
11621 # but understands `-z linker_flag'. GCC discards it without `$wl',
11622 # but is careful enough not to reorder.
11623 # Supported since Solaris 2.6 (maybe 2.5.1?)
11624 if test "$GCC" = yes; then
11625 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11627 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11631 link_all_deplibs=yes
11635 if test "x$host_vendor" = xsequent; then
11636 # Use $CC to link under sequent, because it throws in some extra .o
11637 # files that make .init and .fini sections work.
11638 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11640 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11642 hardcode_libdir_flag_spec='-L$libdir'
11643 hardcode_direct=yes
11644 hardcode_minus_L=yes
11645 hardcode_shlibpath_var=no
11649 case $host_vendor in
11651 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11652 hardcode_direct=yes # is this really true???
11655 ## LD is ld it makes a PLAMLIB
11656 ## CC just makes a GrossModule.
11657 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11658 reload_cmds='$CC -r -o $output$reload_objs'
11662 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11663 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11666 runpath_var='LD_RUN_PATH'
11667 hardcode_shlibpath_var=no
11671 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11672 hardcode_shlibpath_var=no
11673 export_dynamic_flag_spec='-Bexport'
11677 if test -d /usr/nec; then
11678 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11679 hardcode_shlibpath_var=no
11680 runpath_var=LD_RUN_PATH
11681 hardcode_runpath_var=yes
11686 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11687 no_undefined_flag='${wl}-z,text'
11688 archive_cmds_need_lc=no
11689 hardcode_shlibpath_var=no
11690 runpath_var='LD_RUN_PATH'
11692 if test "$GCC" = yes; then
11693 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11694 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11696 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11697 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11701 sysv5* | sco3.2v5* | sco5v6*)
11702 # Note: We can NOT use -z defs as we might desire, because we do not
11703 # link with -lc, and that would cause any symbols used from libc to
11704 # always be unresolved, which means just about no library would
11705 # ever link correctly. If we're not using GNU ld we use -z text
11706 # though, which does catch some bad symbols but isn't as heavy-handed
11708 no_undefined_flag='${wl}-z,text'
11709 allow_undefined_flag='${wl}-z,nodefs'
11710 archive_cmds_need_lc=no
11711 hardcode_shlibpath_var=no
11712 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11713 hardcode_libdir_separator=':'
11714 link_all_deplibs=yes
11715 export_dynamic_flag_spec='${wl}-Bexport'
11716 runpath_var='LD_RUN_PATH'
11718 if test "$GCC" = yes; then
11719 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11720 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11722 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11723 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11728 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11729 hardcode_libdir_flag_spec='-L$libdir'
11730 hardcode_shlibpath_var=no
11738 if test x$host_vendor = xsni; then
11740 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11741 export_dynamic_flag_spec='${wl}-Blargedynsym'
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11748 $as_echo "$ld_shlibs" >&6; }
11749 test "$ld_shlibs" = no && can_build_shared=no
11751 with_gnu_ld=$with_gnu_ld
11768 # Do we need to explicitly link libc?
11770 case "x$archive_cmds_need_lc" in
11772 # Assume -lc should be added
11773 archive_cmds_need_lc=yes
11775 if test "$enable_shared" = yes && test "$GCC" = yes; then
11776 case $archive_cmds in
11778 # FIXME: we may have to deal with multi-command sequences.
11781 # Test whether the compiler implicitly links with -lc since on some
11782 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11783 # to ld, don't add -lc before -lgcc.
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11785 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11786 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11787 $as_echo_n "(cached) " >&6
11790 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11792 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11793 (eval $ac_compile) 2>&5
11795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11796 test $ac_status = 0; } 2>conftest.err; then
11799 libobjs=conftest.$ac_objext
11801 wl=$lt_prog_compiler_wl
11802 pic_flag=$lt_prog_compiler_pic
11808 lt_save_allow_undefined_flag=$allow_undefined_flag
11809 allow_undefined_flag=
11810 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11811 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11814 test $ac_status = 0; }
11816 lt_cv_archive_cmds_need_lc=no
11818 lt_cv_archive_cmds_need_lc=yes
11820 allow_undefined_flag=$lt_save_allow_undefined_flag
11822 cat conftest.err 1>&5
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11828 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11829 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11988 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11990 if test "$GCC" = yes; then
11992 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11993 *) lt_awk_arg="/^libraries:/" ;;
11996 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11997 *) lt_sed_strip_eq="s,=/,/,g" ;;
11999 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12000 case $lt_search_path_spec in
12002 # if the path contains ";" then we assume it to be the separator
12003 # otherwise default to the standard path separator (i.e. ":") - it is
12004 # assumed that no part of a normal pathname contains ";" but that should
12005 # okay in the real world where ";" in dirpaths is itself problematic.
12006 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12009 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12012 # Ok, now we have the path, separated by spaces, we can step through it
12013 # and add multilib dir if necessary.
12014 lt_tmp_lt_search_path_spec=
12015 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12016 for lt_sys_path in $lt_search_path_spec; do
12017 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12018 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12020 test -d "$lt_sys_path" && \
12021 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12024 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12025 BEGIN {RS=" "; FS="/|\n";} {
12028 for (lt_i = NF; lt_i > 0; lt_i--) {
12029 if ($lt_i != "" && $lt_i != ".") {
12030 if ($lt_i == "..") {
12033 if (lt_count == 0) {
12034 lt_foo="/" $lt_i lt_foo;
12041 if (lt_foo != "") { lt_freq[lt_foo]++; }
12042 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12044 # AWK program above erroneously prepends '/' to C:/dos/paths
12047 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12048 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12050 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12052 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12054 library_names_spec=
12055 libname_spec='lib$name'
12059 postuninstall_cmds=
12063 shlibpath_overrides_runpath=unknown
12065 dynamic_linker="$host_os ld.so"
12066 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12067 need_lib_prefix=unknown
12068 hardcode_into_libs=no
12070 # when you set need_version to no, make sure it does not cause -set_version
12071 # flags to be left without arguments
12072 need_version=unknown
12076 version_type=linux # correct to gnu/linux during the next big refactor
12077 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12078 shlibpath_var=LIBPATH
12080 # AIX 3 has no versioning support, so we append a major version to the name.
12081 soname_spec='${libname}${release}${shared_ext}$major'
12085 version_type=linux # correct to gnu/linux during the next big refactor
12088 hardcode_into_libs=yes
12089 if test "$host_cpu" = ia64; then
12090 # AIX 5 supports IA64
12091 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12092 shlibpath_var=LD_LIBRARY_PATH
12094 # With GCC up to 2.95.x, collect2 would create an import file
12095 # for dependence libraries. The import file would start with
12096 # the line `#! .'. This would cause the generated library to
12097 # depend on `.', always an invalid library. This was fixed in
12098 # development snapshots of GCC prior to 3.0.
12100 aix4 | aix4.[01] | aix4.[01].*)
12101 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12103 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12106 can_build_shared=no
12110 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12111 # soname into executable. Probably we can add versioning support to
12112 # collect2, so additional links can be useful in future.
12113 if test "$aix_use_runtimelinking" = yes; then
12114 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12115 # instead of lib<name>.a to let people know that these are not
12116 # typical AIX shared libraries.
12117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12119 # We preserve .a as extension for shared libraries through AIX4.2
12120 # and later when we are not doing run time linking.
12121 library_names_spec='${libname}${release}.a $libname.a'
12122 soname_spec='${libname}${release}${shared_ext}$major'
12124 shlibpath_var=LIBPATH
12131 # Since July 2007 AmigaOS4 officially supports .so libraries.
12132 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12136 library_names_spec='$libname.ixlibrary $libname.a'
12137 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12138 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
12144 library_names_spec='${libname}${shared_ext}'
12145 dynamic_linker="$host_os ld.so"
12146 shlibpath_var=LIBRARY_PATH
12150 version_type=linux # correct to gnu/linux during the next big refactor
12152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12153 soname_spec='${libname}${release}${shared_ext}$major'
12154 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12155 shlibpath_var=LD_LIBRARY_PATH
12156 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12157 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12158 # the default ld.so.conf also contains /usr/contrib/lib and
12159 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12160 # libtool to hard-code these into programs
12163 cygwin* | mingw* | pw32* | cegcc*)
12164 version_type=windows
12169 case $GCC,$cc_basename in
12172 library_names_spec='$libname.dll.a'
12173 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12174 postinstall_cmds='base_file=`basename \${file}`~
12175 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12176 dldir=$destdir/`dirname \$dlpath`~
12177 test -d \$dldir || mkdir -p \$dldir~
12178 $install_prog $dir/$dlname \$dldir/$dlname~
12179 chmod a+x \$dldir/$dlname~
12180 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12181 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12183 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12184 dlpath=$dir/\$dldll~
12186 shlibpath_overrides_runpath=yes
12190 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12191 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12193 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12196 # MinGW DLLs use traditional 'lib' prefix
12197 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12200 # pw32 DLLs use 'pw' prefix rather than 'lib'
12201 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12204 dynamic_linker='Win32 ld.exe'
12209 libname_spec='$name'
12210 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12211 library_names_spec='${libname}.dll.lib'
12215 sys_lib_search_path_spec=
12218 for lt_path in $LIB
12221 # Let DOS variable expansion print the short 8.3 style file name.
12222 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12223 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12226 # Convert to MSYS style.
12227 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12230 # Convert to unix form, then to dos form, then back to unix form
12231 # but this time dos style (no spaces!) so that the unix form looks
12232 # like /cygdrive/c/PROGRA~1:/cygdr...
12233 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12234 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12235 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12238 sys_lib_search_path_spec="$LIB"
12239 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12240 # It is most probably a Windows format PATH.
12241 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12243 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12245 # FIXME: find the short name or the path components, as spaces are
12246 # common. (e.g. "Program Files" -> "PROGRA~1")
12250 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12251 postinstall_cmds='base_file=`basename \${file}`~
12252 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12253 dldir=$destdir/`dirname \$dlpath`~
12254 test -d \$dldir || mkdir -p \$dldir~
12255 $install_prog $dir/$dlname \$dldir/$dlname'
12256 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12257 dlpath=$dir/\$dldll~
12259 shlibpath_overrides_runpath=yes
12260 dynamic_linker='Win32 link.exe'
12264 # Assume MSVC wrapper
12265 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12266 dynamic_linker='Win32 ld.exe'
12269 # FIXME: first we should search . and the directory the executable is in
12273 darwin* | rhapsody*)
12274 dynamic_linker="$host_os dyld"
12275 version_type=darwin
12278 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12279 soname_spec='${libname}${release}${major}$shared_ext'
12280 shlibpath_overrides_runpath=yes
12281 shlibpath_var=DYLD_LIBRARY_PATH
12282 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12284 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12285 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12289 version_type=linux # correct to gnu/linux during the next big refactor
12292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12293 soname_spec='${libname}${release}${shared_ext}$major'
12294 shlibpath_var=LD_LIBRARY_PATH
12297 freebsd* | dragonfly*)
12298 # DragonFly does not have aout. When/if they implement a new
12299 # versioning mechanism, adjust this.
12300 if test -x /usr/bin/objformat; then
12301 objformat=`/usr/bin/objformat`
12304 freebsd[23].*) objformat=aout ;;
12305 *) objformat=elf ;;
12308 version_type=freebsd-$objformat
12309 case $version_type in
12311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12316 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12320 shlibpath_var=LD_LIBRARY_PATH
12323 shlibpath_overrides_runpath=yes
12325 freebsd3.[01]* | freebsdelf3.[01]*)
12326 shlibpath_overrides_runpath=yes
12327 hardcode_into_libs=yes
12329 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12330 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12331 shlibpath_overrides_runpath=no
12332 hardcode_into_libs=yes
12334 *) # from 4.6 on, and DragonFly
12335 shlibpath_overrides_runpath=yes
12336 hardcode_into_libs=yes
12342 version_type=linux # correct to gnu/linux during the next big refactor
12345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12346 soname_spec='${libname}${release}${shared_ext}$major'
12347 shlibpath_var=LD_LIBRARY_PATH
12348 shlibpath_overrides_runpath=no
12349 hardcode_into_libs=yes
12353 version_type=linux # correct to gnu/linux during the next big refactor
12356 dynamic_linker="$host_os runtime_loader"
12357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12358 soname_spec='${libname}${release}${shared_ext}$major'
12359 shlibpath_var=LIBRARY_PATH
12360 shlibpath_overrides_runpath=yes
12361 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12362 hardcode_into_libs=yes
12365 hpux9* | hpux10* | hpux11*)
12366 # Give a soname corresponding to the major version so that dld.sl refuses to
12367 # link against other versions.
12374 hardcode_into_libs=yes
12375 dynamic_linker="$host_os dld.so"
12376 shlibpath_var=LD_LIBRARY_PATH
12377 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12379 soname_spec='${libname}${release}${shared_ext}$major'
12380 if test "X$HPUX_IA64_MODE" = X32; then
12381 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12383 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12385 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12389 hardcode_into_libs=yes
12390 dynamic_linker="$host_os dld.sl"
12391 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12392 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12394 soname_spec='${libname}${release}${shared_ext}$major'
12395 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12396 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12400 dynamic_linker="$host_os dld.sl"
12401 shlibpath_var=SHLIB_PATH
12402 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12404 soname_spec='${libname}${release}${shared_ext}$major'
12407 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12408 postinstall_cmds='chmod 555 $lib'
12409 # or fails outright, so override atomically:
12410 install_override_mode=555
12414 version_type=linux # correct to gnu/linux during the next big refactor
12417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12418 soname_spec='${libname}${release}${shared_ext}$major'
12419 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12420 shlibpath_var=LD_LIBRARY_PATH
12421 shlibpath_overrides_runpath=no
12422 hardcode_into_libs=yes
12425 irix5* | irix6* | nonstopux*)
12427 nonstopux*) version_type=nonstopux ;;
12429 if test "$lt_cv_prog_gnu_ld" = yes; then
12430 version_type=linux # correct to gnu/linux during the next big refactor
12437 soname_spec='${libname}${release}${shared_ext}$major'
12438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12440 irix5* | nonstopux*)
12441 libsuff= shlibsuff=
12444 case $LD in # libtool.m4 will add one of these switches to LD
12445 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12446 libsuff= shlibsuff= libmagic=32-bit;;
12447 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12448 libsuff=32 shlibsuff=N32 libmagic=N32;;
12449 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12450 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12451 *) libsuff= shlibsuff= libmagic=never-match;;
12455 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12456 shlibpath_overrides_runpath=no
12457 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12458 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12459 hardcode_into_libs=yes
12462 # No shared lib support for Linux oldld, aout, or coff.
12463 linux*oldld* | linux*aout* | linux*coff*)
12467 # This must be glibc/ELF.
12468 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12469 version_type=linux # correct to gnu/linux during the next big refactor
12472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12473 soname_spec='${libname}${release}${shared_ext}$major'
12474 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12475 shlibpath_var=LD_LIBRARY_PATH
12476 shlibpath_overrides_runpath=no
12478 # Some binutils ld are patched to set DT_RUNPATH
12479 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12480 $as_echo_n "(cached) " >&6
12482 lt_cv_shlibpath_overrides_runpath=no
12483 save_LDFLAGS=$LDFLAGS
12484 save_libdir=$libdir
12485 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12486 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12488 /* end confdefs.h. */
12498 if ac_fn_c_try_link "$LINENO"; then :
12499 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12500 lt_cv_shlibpath_overrides_runpath=yes
12503 rm -f core conftest.err conftest.$ac_objext \
12504 conftest$ac_exeext conftest.$ac_ext
12505 LDFLAGS=$save_LDFLAGS
12506 libdir=$save_libdir
12510 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12512 # This implies no fast_install, which is unacceptable.
12513 # Some rework will be needed to allow for fast_install
12514 # before this can be enabled.
12515 hardcode_into_libs=yes
12517 # Append ld.so.conf contents to the search path
12518 if test -f /etc/ld.so.conf; then
12519 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;s/"//g;/^$/d' | tr '\n' ' '`
12520 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12523 # We used to test for /lib/ld.so.1 and disable shared libraries on
12524 # powerpc, because MkLinux only supported shared libraries with the
12525 # GNU dynamic linker. Since this was broken with cross compilers,
12526 # most powerpc-linux boxes support dynamic linking these days and
12527 # people can always --disable-shared, the test was removed, and we
12528 # assume the GNU/Linux dynamic linker is in use.
12529 dynamic_linker='GNU/Linux ld.so'
12536 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12538 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12539 dynamic_linker='NetBSD (a.out) ld.so'
12541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12542 soname_spec='${libname}${release}${shared_ext}$major'
12543 dynamic_linker='NetBSD ld.elf_so'
12545 shlibpath_var=LD_LIBRARY_PATH
12546 shlibpath_overrides_runpath=yes
12547 hardcode_into_libs=yes
12551 version_type=linux # correct to gnu/linux during the next big refactor
12552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12553 shlibpath_var=LD_LIBRARY_PATH
12554 shlibpath_overrides_runpath=yes
12561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12562 soname_spec='${libname}${release}${shared_ext}$major'
12563 shlibpath_var=LD_LIBRARY_PATH
12564 shlibpath_overrides_runpath=no
12565 hardcode_into_libs=yes
12566 dynamic_linker='ldqnx.so'
12571 sys_lib_dlsearch_path_spec="/usr/lib"
12573 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12575 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12576 *) need_version=no ;;
12578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12579 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12580 shlibpath_var=LD_LIBRARY_PATH
12581 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12583 openbsd2.[89] | openbsd2.[89].*)
12584 shlibpath_overrides_runpath=no
12587 shlibpath_overrides_runpath=yes
12591 shlibpath_overrides_runpath=yes
12596 libname_spec='$name'
12599 library_names_spec='$libname${shared_ext} $libname.a'
12600 dynamic_linker='OS/2 ld.exe'
12601 shlibpath_var=LIBPATH
12604 osf3* | osf4* | osf5*)
12608 soname_spec='${libname}${release}${shared_ext}$major'
12609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12610 shlibpath_var=LD_LIBRARY_PATH
12611 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12612 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12620 version_type=linux # correct to gnu/linux during the next big refactor
12623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12624 soname_spec='${libname}${release}${shared_ext}$major'
12625 shlibpath_var=LD_LIBRARY_PATH
12626 shlibpath_overrides_runpath=yes
12627 hardcode_into_libs=yes
12628 # ldd complains unless libraries are executable
12629 postinstall_cmds='chmod +x $lib'
12634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12635 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12636 shlibpath_var=LD_LIBRARY_PATH
12637 shlibpath_overrides_runpath=yes
12638 if test "$with_gnu_ld" = yes; then
12645 version_type=linux # correct to gnu/linux during the next big refactor
12646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12647 soname_spec='${libname}${release}${shared_ext}$major'
12648 shlibpath_var=LD_LIBRARY_PATH
12649 case $host_vendor in
12651 shlibpath_overrides_runpath=no
12653 runpath_var=LD_RUN_PATH
12661 shlibpath_overrides_runpath=no
12662 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12668 if test -d /usr/nec ;then
12669 version_type=linux # correct to gnu/linux during the next big refactor
12670 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12671 soname_spec='$libname${shared_ext}.$major'
12672 shlibpath_var=LD_LIBRARY_PATH
12676 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12677 version_type=freebsd-elf
12680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12681 soname_spec='${libname}${release}${shared_ext}$major'
12682 shlibpath_var=LD_LIBRARY_PATH
12683 shlibpath_overrides_runpath=yes
12684 hardcode_into_libs=yes
12685 if test "$with_gnu_ld" = yes; then
12686 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12688 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12691 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12695 sys_lib_dlsearch_path_spec='/usr/lib'
12699 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12700 version_type=linux # correct to gnu/linux during the next big refactor
12703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12704 shlibpath_var=LD_LIBRARY_PATH
12705 shlibpath_overrides_runpath=no
12706 hardcode_into_libs=yes
12710 version_type=linux # correct to gnu/linux during the next big refactor
12711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12712 soname_spec='${libname}${release}${shared_ext}$major'
12713 shlibpath_var=LD_LIBRARY_PATH
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12721 $as_echo "$dynamic_linker" >&6; }
12722 test "$dynamic_linker" = no && can_build_shared=no
12724 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12725 if test "$GCC" = yes; then
12726 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12729 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12730 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12732 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12733 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12828 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12830 if test -n "$hardcode_libdir_flag_spec" ||
12831 test -n "$runpath_var" ||
12832 test "X$hardcode_automatic" = "Xyes" ; then
12834 # We can hardcode non-existent directories.
12835 if test "$hardcode_direct" != no &&
12836 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12837 # have to relink, otherwise we might link with an installed library
12838 # when we should be linking with a yet-to-be-installed one
12839 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12840 test "$hardcode_minus_L" != no; then
12841 # Linking always hardcodes the temporary library directory.
12842 hardcode_action=relink
12844 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12845 hardcode_action=immediate
12848 # We cannot hardcode anything, or else we can only hardcode existing
12850 hardcode_action=unsupported
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12853 $as_echo "$hardcode_action" >&6; }
12855 if test "$hardcode_action" = relink ||
12856 test "$inherit_rpath" = yes; then
12857 # Fast installation is not supported
12858 enable_fast_install=no
12859 elif test "$shlibpath_overrides_runpath" = yes ||
12860 test "$enable_shared" = no; then
12861 # Fast installation is not necessary
12862 enable_fast_install=needless
12870 if test "x$enable_dlopen" != xyes; then
12871 enable_dlopen=unknown
12872 enable_dlopen_self=unknown
12873 enable_dlopen_self_static=unknown
12880 lt_cv_dlopen="load_add_on"
12882 lt_cv_dlopen_self=yes
12885 mingw* | pw32* | cegcc*)
12886 lt_cv_dlopen="LoadLibrary"
12891 lt_cv_dlopen="dlopen"
12896 # if libdl is installed we need to link against it
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12898 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12899 if ${ac_cv_lib_dl_dlopen+:} false; then :
12900 $as_echo_n "(cached) " >&6
12902 ac_check_lib_save_LIBS=$LIBS
12904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12905 /* end confdefs.h. */
12907 /* Override any GCC internal prototype to avoid an error.
12908 Use char because int might match the return type of a GCC
12909 builtin and then its argument prototype would still apply. */
12922 if ac_fn_c_try_link "$LINENO"; then :
12923 ac_cv_lib_dl_dlopen=yes
12925 ac_cv_lib_dl_dlopen=no
12927 rm -f core conftest.err conftest.$ac_objext \
12928 conftest$ac_exeext conftest.$ac_ext
12929 LIBS=$ac_check_lib_save_LIBS
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12932 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12933 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12934 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12937 lt_cv_dlopen="dyld"
12939 lt_cv_dlopen_self=yes
12946 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12947 if test "x$ac_cv_func_shl_load" = xyes; then :
12948 lt_cv_dlopen="shl_load"
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12951 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12952 if ${ac_cv_lib_dld_shl_load+:} false; then :
12953 $as_echo_n "(cached) " >&6
12955 ac_check_lib_save_LIBS=$LIBS
12957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12958 /* end confdefs.h. */
12960 /* Override any GCC internal prototype to avoid an error.
12961 Use char because int might match the return type of a GCC
12962 builtin and then its argument prototype would still apply. */
12970 return shl_load ();
12975 if ac_fn_c_try_link "$LINENO"; then :
12976 ac_cv_lib_dld_shl_load=yes
12978 ac_cv_lib_dld_shl_load=no
12980 rm -f core conftest.err conftest.$ac_objext \
12981 conftest$ac_exeext conftest.$ac_ext
12982 LIBS=$ac_check_lib_save_LIBS
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12985 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12986 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12987 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12989 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12990 if test "x$ac_cv_func_dlopen" = xyes; then :
12991 lt_cv_dlopen="dlopen"
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12994 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12995 if ${ac_cv_lib_dl_dlopen+:} false; then :
12996 $as_echo_n "(cached) " >&6
12998 ac_check_lib_save_LIBS=$LIBS
13000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13001 /* end confdefs.h. */
13003 /* Override any GCC internal prototype to avoid an error.
13004 Use char because int might match the return type of a GCC
13005 builtin and then its argument prototype would still apply. */
13018 if ac_fn_c_try_link "$LINENO"; then :
13019 ac_cv_lib_dl_dlopen=yes
13021 ac_cv_lib_dl_dlopen=no
13023 rm -f core conftest.err conftest.$ac_objext \
13024 conftest$ac_exeext conftest.$ac_ext
13025 LIBS=$ac_check_lib_save_LIBS
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13028 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13029 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13030 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13033 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13034 if ${ac_cv_lib_svld_dlopen+:} false; then :
13035 $as_echo_n "(cached) " >&6
13037 ac_check_lib_save_LIBS=$LIBS
13038 LIBS="-lsvld $LIBS"
13039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13040 /* end confdefs.h. */
13042 /* Override any GCC internal prototype to avoid an error.
13043 Use char because int might match the return type of a GCC
13044 builtin and then its argument prototype would still apply. */
13057 if ac_fn_c_try_link "$LINENO"; then :
13058 ac_cv_lib_svld_dlopen=yes
13060 ac_cv_lib_svld_dlopen=no
13062 rm -f core conftest.err conftest.$ac_objext \
13063 conftest$ac_exeext conftest.$ac_ext
13064 LIBS=$ac_check_lib_save_LIBS
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13067 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13068 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13069 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13072 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13073 if ${ac_cv_lib_dld_dld_link+:} false; then :
13074 $as_echo_n "(cached) " >&6
13076 ac_check_lib_save_LIBS=$LIBS
13078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13079 /* end confdefs.h. */
13081 /* Override any GCC internal prototype to avoid an error.
13082 Use char because int might match the return type of a GCC
13083 builtin and then its argument prototype would still apply. */
13091 return dld_link ();
13096 if ac_fn_c_try_link "$LINENO"; then :
13097 ac_cv_lib_dld_dld_link=yes
13099 ac_cv_lib_dld_dld_link=no
13101 rm -f core conftest.err conftest.$ac_objext \
13102 conftest$ac_exeext conftest.$ac_ext
13103 LIBS=$ac_check_lib_save_LIBS
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13106 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13107 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13108 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13129 if test "x$lt_cv_dlopen" != xno; then
13135 case $lt_cv_dlopen in
13137 save_CPPFLAGS="$CPPFLAGS"
13138 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13140 save_LDFLAGS="$LDFLAGS"
13141 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13144 LIBS="$lt_cv_dlopen_libs $LIBS"
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13147 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13148 if ${lt_cv_dlopen_self+:} false; then :
13149 $as_echo_n "(cached) " >&6
13151 if test "$cross_compiling" = yes; then :
13152 lt_cv_dlopen_self=cross
13154 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13155 lt_status=$lt_dlunknown
13156 cat > conftest.$ac_ext <<_LT_EOF
13157 #line $LINENO "configure"
13158 #include "confdefs.h"
13167 # define LT_DLGLOBAL RTLD_GLOBAL
13170 # define LT_DLGLOBAL DL_GLOBAL
13172 # define LT_DLGLOBAL 0
13176 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13177 find out it does not work in some platform. */
13178 #ifndef LT_DLLAZY_OR_NOW
13180 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13183 # define LT_DLLAZY_OR_NOW DL_LAZY
13186 # define LT_DLLAZY_OR_NOW RTLD_NOW
13189 # define LT_DLLAZY_OR_NOW DL_NOW
13191 # define LT_DLLAZY_OR_NOW 0
13198 /* When -fvisbility=hidden is used, assume the code has been annotated
13199 correspondingly for the symbols needed. */
13200 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13201 int fnord () __attribute__((visibility("default")));
13204 int fnord () { return 42; }
13207 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13208 int status = $lt_dlunknown;
13212 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13215 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13216 else puts (dlerror ());
13218 /* dlclose (self); */
13226 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13227 (eval $ac_link) 2>&5
13229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13230 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13231 (./conftest; exit; ) >&5 2>/dev/null
13233 case x$lt_status in
13234 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13235 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13236 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13239 # compilation failed
13240 lt_cv_dlopen_self=no
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13248 $as_echo "$lt_cv_dlopen_self" >&6; }
13250 if test "x$lt_cv_dlopen_self" = xyes; then
13251 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13253 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13254 if ${lt_cv_dlopen_self_static+:} false; then :
13255 $as_echo_n "(cached) " >&6
13257 if test "$cross_compiling" = yes; then :
13258 lt_cv_dlopen_self_static=cross
13260 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13261 lt_status=$lt_dlunknown
13262 cat > conftest.$ac_ext <<_LT_EOF
13263 #line $LINENO "configure"
13264 #include "confdefs.h"
13273 # define LT_DLGLOBAL RTLD_GLOBAL
13276 # define LT_DLGLOBAL DL_GLOBAL
13278 # define LT_DLGLOBAL 0
13282 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13283 find out it does not work in some platform. */
13284 #ifndef LT_DLLAZY_OR_NOW
13286 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13289 # define LT_DLLAZY_OR_NOW DL_LAZY
13292 # define LT_DLLAZY_OR_NOW RTLD_NOW
13295 # define LT_DLLAZY_OR_NOW DL_NOW
13297 # define LT_DLLAZY_OR_NOW 0
13304 /* When -fvisbility=hidden is used, assume the code has been annotated
13305 correspondingly for the symbols needed. */
13306 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13307 int fnord () __attribute__((visibility("default")));
13310 int fnord () { return 42; }
13313 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13314 int status = $lt_dlunknown;
13318 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13321 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13322 else puts (dlerror ());
13324 /* dlclose (self); */
13332 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13333 (eval $ac_link) 2>&5
13335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13336 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13337 (./conftest; exit; ) >&5 2>/dev/null
13339 case x$lt_status in
13340 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13341 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13342 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13345 # compilation failed
13346 lt_cv_dlopen_self_static=no
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13354 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13357 CPPFLAGS="$save_CPPFLAGS"
13358 LDFLAGS="$save_LDFLAGS"
13363 case $lt_cv_dlopen_self in
13364 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13365 *) enable_dlopen_self=unknown ;;
13368 case $lt_cv_dlopen_self_static in
13369 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13370 *) enable_dlopen_self_static=unknown ;;
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13393 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13394 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13395 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13396 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13398 $as_echo "yes" >&6; }
13400 # FIXME - insert some real tests, host_os isn't really good enough
13403 if test -n "$STRIP" ; then
13404 striplib="$STRIP -x"
13405 old_striplib="$STRIP -S"
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13407 $as_echo "yes" >&6; }
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13410 $as_echo "no" >&6; }
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13415 $as_echo "no" >&6; }
13431 # Report which library types will actually be built
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13433 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13435 $as_echo "$can_build_shared" >&6; }
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13438 $as_echo_n "checking whether to build shared libraries... " >&6; }
13439 test "$can_build_shared" = "no" && enable_shared=no
13441 # On AIX, shared libraries and static libraries use the same namespace, and
13442 # are all built from PIC.
13445 test "$enable_shared" = yes && enable_static=no
13446 if test -n "$RANLIB"; then
13447 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13448 postinstall_cmds='$RANLIB $lib'
13453 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13454 test "$enable_shared" = yes && enable_static=no
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13459 $as_echo "$enable_shared" >&6; }
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13462 $as_echo_n "checking whether to build static libraries... " >&6; }
13463 # Make sure either enable_shared or enable_static is yes.
13464 test "$enable_shared" = yes || enable_static=yes
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13466 $as_echo "$enable_static" >&6; }
13473 ac_cpp='$CPP $CPPFLAGS'
13474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13494 ac_config_commands="$ac_config_commands libtool"
13499 # Only expand once:
13503 if test "$enable_shared" = "no"; then
13508 ac_cv_func_dlopen=no
13510 eval _shrext="$shrext_cmds"
13511 # Darwin uses .dylib for libraries but .so for modules
13512 if test X"$_shrext" = X".dylib"; then
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking path to sudo_noexec.so" >&5
13519 $as_echo_n "checking path to sudo_noexec.so... " >&6; }
13521 # Check whether --with-noexec was given.
13522 if test "${with_noexec+set}" = set; then :
13523 withval=$with_noexec; case $with_noexec in
13524 yes) with_noexec="$libexecdir/sudo_noexec$_shrext"
13530 with_noexec="$libexecdir/sudo_noexec$_shrext"
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_noexec" >&5
13534 $as_echo "$with_noexec" >&6; }
13535 NOEXECFILE="sudo_noexec$_shrext"
13536 NOEXECDIR="`echo $with_noexec|sed 's:^\(.*\)/[^/]*:\1:'`"
13538 # Extract the first word of "uname", so it can be a program name with args.
13539 set dummy uname; ac_word=$2
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13541 $as_echo_n "checking for $ac_word... " >&6; }
13542 if ${ac_cv_prog_UNAMEPROG+:} false; then :
13543 $as_echo_n "(cached) " >&6
13545 if test -n "$UNAMEPROG"; then
13546 ac_cv_prog_UNAMEPROG="$UNAMEPROG" # Let the user override the test.
13548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13549 for as_dir in $PATH
13552 test -z "$as_dir" && as_dir=.
13553 for ac_exec_ext in '' $ac_executable_extensions; do
13554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13555 ac_cv_prog_UNAMEPROG="uname"
13556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13565 UNAMEPROG=$ac_cv_prog_UNAMEPROG
13566 if test -n "$UNAMEPROG"; then
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAMEPROG" >&5
13568 $as_echo "$UNAMEPROG" >&6; }
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13571 $as_echo "no" >&6; }
13575 # Extract the first word of "tr", so it can be a program name with args.
13576 set dummy tr; ac_word=$2
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13578 $as_echo_n "checking for $ac_word... " >&6; }
13579 if ${ac_cv_prog_TRPROG+:} false; then :
13580 $as_echo_n "(cached) " >&6
13582 if test -n "$TRPROG"; then
13583 ac_cv_prog_TRPROG="$TRPROG" # Let the user override the test.
13585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13586 for as_dir in $PATH
13589 test -z "$as_dir" && as_dir=.
13590 for ac_exec_ext in '' $ac_executable_extensions; do
13591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13592 ac_cv_prog_TRPROG="tr"
13593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13602 TRPROG=$ac_cv_prog_TRPROG
13603 if test -n "$TRPROG"; then
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRPROG" >&5
13605 $as_echo "$TRPROG" >&6; }
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13608 $as_echo "no" >&6; }
13612 for ac_prog in nroff mandoc
13614 # Extract the first word of "$ac_prog", so it can be a program name with args.
13615 set dummy $ac_prog; ac_word=$2
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13617 $as_echo_n "checking for $ac_word... " >&6; }
13618 if ${ac_cv_prog_NROFFPROG+:} false; then :
13619 $as_echo_n "(cached) " >&6
13621 if test -n "$NROFFPROG"; then
13622 ac_cv_prog_NROFFPROG="$NROFFPROG" # Let the user override the test.
13624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13625 for as_dir in $PATH
13628 test -z "$as_dir" && as_dir=.
13629 for ac_exec_ext in '' $ac_executable_extensions; do
13630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13631 ac_cv_prog_NROFFPROG="$ac_prog"
13632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13641 NROFFPROG=$ac_cv_prog_NROFFPROG
13642 if test -n "$NROFFPROG"; then
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFFPROG" >&5
13644 $as_echo "$NROFFPROG" >&6; }
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13647 $as_echo "no" >&6; }
13651 test -n "$NROFFPROG" && break
13654 if test -n "$NROFFPROG"; then
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $NROFFPROG supports the -c option" >&5
13656 $as_echo_n "checking whether $NROFFPROG supports the -c option... " >&6; }
13657 if ${sudo_cv_var_nroff_opt_c+:} false; then :
13658 $as_echo_n "(cached) " >&6
13660 if $NROFFPROG -c </dev/null >/dev/null 2>&1; then
13661 sudo_cv_var_nroff_opt_c=yes
13663 sudo_cv_var_nroff_opt_c=no
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_nroff_opt_c" >&5
13668 $as_echo "$sudo_cv_var_nroff_opt_c" >&6; }
13669 if test "$sudo_cv_var_nroff_opt_c" = "yes"; then
13670 NROFFPROG="$NROFFPROG -c"
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $NROFFPROG supports the -Tascii option" >&5
13673 $as_echo_n "checking whether $NROFFPROG supports the -Tascii option... " >&6; }
13674 if ${sudo_cv_var_nroff_opt_Tascii+:} false; then :
13675 $as_echo_n "(cached) " >&6
13677 if $NROFFPROG -Tascii </dev/null >/dev/null 2>&1; then
13678 sudo_cv_var_nroff_opt_Tascii=yes
13680 sudo_cv_var_nroff_opt_Tascii=no
13682 if test "$sudo_cv_var_nroff_opt_Tascii" = "yes"; then
13683 NROFFPROG="$NROFFPROG -Tascii"
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_nroff_opt_Tascii" >&5
13688 $as_echo "$sudo_cv_var_nroff_opt_Tascii" >&6; }
13691 mansrcdir='$(srcdir)'
13694 if test -n "$sudo_cv_prev_host"; then
13695 if test "$sudo_cv_prev_host" != "$host"; then
13696 as_fn_error $? "config.cache was created on a different host; remove it and re-run configure." "$LINENO" 5
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking previous host type" >&5
13699 $as_echo_n "checking previous host type... " >&6; }
13700 if ${sudo_cv_prev_host+:} false; then :
13701 $as_echo_n "(cached) " >&6
13703 sudo_cv_prev_host="$host"
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_prev_host" >&5
13707 $as_echo "$sudo_cv_prev_host" >&6; }
13710 # this will produce no output since there is no cached value
13711 if ${sudo_cv_prev_host+:} false; then :
13712 $as_echo_n "(cached) " >&6
13714 sudo_cv_prev_host="$host"
13719 if test -n "$host_os"; then
13720 OS=`echo $host_os | sed 's/[0-9].*//'`
13721 OSREV=`echo $host_os | sed 's/^[^0-9\.]*\([0-9\.]*\).*$/\1/'`
13722 OSMAJOR=`echo $OSREV | sed 's/\..*$//'`
13731 # getcwd(3) opens a pipe to getpwd(1)!?!
13734 # system headers lack prototypes but gcc helps...
13735 if test -n "$GCC"; then
13736 OSDEFS="${OSDEFS} -D__USE_FIXED_PROTOTYPES__"
13739 shadow_funcs="getpwanam issecure"
13742 # To get the crypt(3) prototype (so we pass -Wall)
13743 OSDEFS="${OSDEFS} -D__EXTENSIONS__"
13744 # AFS support needs -lucb
13745 if test "$with_AFS" = "yes"; then
13746 AFS_LIBS="-lc -lucb"
13748 : ${mansectsu='1m'}
13749 : ${mansectform='4'}
13750 : ${with_rpath='yes'}
13751 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13752 for ac_func in priv_set
13754 ac_fn_c_check_func "$LINENO" "priv_set" "ac_cv_func_priv_set"
13755 if test "x$ac_cv_func_priv_set" = xyes; then :
13756 cat >>confdefs.h <<_ACEOF
13757 #define HAVE_PRIV_SET 1
13765 # To get all prototypes (so we pass -Wall)
13766 OSDEFS="${OSDEFS} -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT"
13767 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp"
13768 if test X"$with_blibpath" != X"no"; then
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker accepts -Wl,-blibpath" >&5
13770 $as_echo_n "checking if linker accepts -Wl,-blibpath... " >&6; }
13771 O_LDFLAGS="$LDFLAGS"
13772 LDFLAGS="$O_LDFLAGS -Wl,-blibpath:/usr/lib:/lib"
13773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13774 /* end confdefs.h. */
13784 if ac_fn_c_try_link "$LINENO"; then :
13786 if test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
13787 blibpath="$with_blibpath"
13788 elif test -n "$GCC"; then
13789 blibpath="/usr/lib:/lib:/usr/local/lib"
13791 blibpath="/usr/lib:/lib"
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13794 $as_echo "yes" >&6; }
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13798 $as_echo "no" >&6; }
13800 rm -f core conftest.err conftest.$ac_objext \
13801 conftest$ac_exeext conftest.$ac_ext
13803 LDFLAGS="$O_LDFLAGS"
13805 # On AIX 6 and higher default to PAM, else default to LAM
13806 if test $OSMAJOR -ge 6; then
13807 if test X"$with_pam" = X""; then
13808 AUTH_EXCL_DEF="PAM"
13811 if test X"$with_aixauth" = X""; then
13812 for ac_func in authenticate
13814 ac_fn_c_check_func "$LINENO" "authenticate" "ac_cv_func_authenticate"
13815 if test "x$ac_cv_func_authenticate" = xyes; then :
13816 cat >>confdefs.h <<_ACEOF
13817 #define HAVE_AUTHENTICATE 1
13819 AUTH_EXCL_DEF="AIX_AUTH"
13826 # AIX analog of nsswitch.conf, enabled by default
13828 # Check whether --with-netsvc was given.
13829 if test "${with_netsvc+set}" = set; then :
13830 withval=$with_netsvc; case $with_netsvc in
13832 yes) with_netsvc="/etc/netsvc.conf"
13838 if test -z "$with_nsswitch" -a -z "$with_netsvc"; then
13839 with_netsvc="/etc/netsvc.conf"
13842 # For implementing getgrouplist()
13843 for ac_func in getgrset
13845 ac_fn_c_check_func "$LINENO" "getgrset" "ac_cv_func_getgrset"
13846 if test "x$ac_cv_func_getgrset" = xyes; then :
13847 cat >>confdefs.h <<_ACEOF
13848 #define HAVE_GETGRSET 1
13855 # LDR_PRELOAD is only supported in AIX 5.3 and later
13856 if test $OSMAJOR -lt 5; then
13860 # AIX-specific functions
13861 for ac_func in getuserattr setauthdb
13863 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13864 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13865 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13866 cat >>confdefs.h <<_ACEOF
13867 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13873 COMMON_OBJS="$COMMON_OBJS aix.lo"
13876 : ${mansectsu='1m'}
13877 : ${mansectform='4'}
13880 # AFS support needs -lBSD
13881 if test "$with_AFS" = "yes"; then
13882 AFS_LIBS="-lc -lBSD"
13884 : ${mansectsu='1m'}
13885 : ${mansectform='4'}
13887 # The HP bundled compiler cannot generate shared libs
13888 if test -z "$GCC"; then
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HP bundled C compiler" >&5
13890 $as_echo_n "checking for HP bundled C compiler... " >&6; }
13891 if ${sudo_cv_var_hpccbundled+:} false; then :
13892 $as_echo_n "(cached) " >&6
13894 if $CC -V 2>&1 | grep '^(Bundled)' >/dev/null 2>&1; then
13895 sudo_cv_var_hpccbundled=yes
13897 sudo_cv_var_hpccbundled=no
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_hpccbundled" >&5
13902 $as_echo "$sudo_cv_var_hpccbundled" >&6; }
13903 if test "$sudo_cv_var_hpccbundled" = "yes"; then
13904 as_fn_error $? "The HP bundled C compiler is unable to build Sudo, you must use gcc or the HP ANSI C compiler instead." "$LINENO" 5
13908 # Build PA-RISC1.1 objects for better portability
13909 case "$host_cpu" in
13912 if test -n "$GCC"; then
13913 portable_flag="-march=1.1"
13915 portable_flag="+DAportable"
13917 CFLAGS="$CFLAGS $portable_flag"
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands $portable_flag" >&5
13919 $as_echo_n "checking whether $CC understands $portable_flag... " >&6; }
13920 if ${sudo_cv_var_daportable+:} false; then :
13921 $as_echo_n "(cached) " >&6
13923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13924 /* end confdefs.h. */
13934 if ac_fn_c_try_link "$LINENO"; then :
13935 sudo_cv_var_daportable=yes
13937 sudo_cv_var_daportable=no
13940 rm -f core conftest.err conftest.$ac_objext \
13941 conftest$ac_exeext conftest.$ac_ext
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_daportable" >&5
13946 $as_echo "$sudo_cv_var_daportable" >&6; }
13947 if test X"$sudo_cv_var_daportable" != X"yes"; then
13955 $as_echo "#define BROKEN_SYSLOG 1" >>confdefs.h
13959 $as_echo "#define BROKEN_SYSLOG 1" >>confdefs.h
13962 shadow_funcs="getspwuid"
13964 # DCE support (requires ANSI C compiler)
13965 if test "$with_DCE" = "yes"; then
13966 # order of libs in 9.X is important. -lc_r must be last
13967 SUDOERS_LIBS="${SUDOERS_LIBS} -ldce -lM -lc_r"
13968 LIBS="${LIBS} -ldce -lM -lc_r"
13969 CPPFLAGS="${CPPFLAGS} -D_REENTRANT -I/usr/include/reentrant"
13973 shadow_funcs="getprpwnam iscomsec"
13974 shadow_libs="-lsec"
13975 # HP-UX 10.20 libc has an incompatible getline
13976 ac_cv_func_getline="no"
13979 shadow_funcs="getspnam iscomsec"
13980 shadow_libs="-lsec"
13981 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13986 # ignore envariables wrt dynamic lib path
13987 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -Wl,-no_library_replacement"
13989 : ${CHECKSIA='true'}
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable sia support on Digital UNIX" >&5
13991 $as_echo_n "checking whether to disable sia support on Digital UNIX... " >&6; }
13992 # Check whether --enable-sia was given.
13993 if test "${enable_sia+set}" = set; then :
13994 enableval=$enable_sia; case "$enableval" in
13995 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13996 $as_echo "no" >&6; }
13999 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14000 $as_echo "yes" >&6; }
14003 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14004 $as_echo "no" >&6; }
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&5
14006 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&2;}
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14012 $as_echo "no" >&6; }
14016 shadow_funcs="getprpwnam dispcrypt"
14017 # OSF/1 4.x and higher need -ldb too
14018 if test $OSMAJOR -lt 4; then
14019 shadow_libs="-lsecurity -laud -lm"
14021 shadow_libs="-lsecurity -ldb -laud -lm"
14024 # use SIA by default, if we have it
14025 test "$CHECKSIA" = "true" && AUTH_EXCL_DEF="SIA"
14028 # Some versions of Digital Unix ship with a broken
14029 # copy of prot.h, which we need for shadow passwords.
14030 # XXX - make should remove this as part of distclean
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken prot.h" >&5
14033 $as_echo_n "checking for broken prot.h... " >&6; }
14034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14035 /* end confdefs.h. */
14037 #include <sys/types.h>
14038 #include <sys/security.h>
14049 if ac_fn_c_try_compile "$LINENO"; then :
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14051 $as_echo "no" >&6; }
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, fixing locally" >&5
14054 $as_echo "yes, fixing locally" >&6; }
14055 sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
14058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14060 : ${mansectform='4'}
14063 OSDEFS="${OSDEFS} -D_BSD_TYPES"
14064 if test -z "$NROFFPROG"; then
14065 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)'
14066 if test "$prefix" = "/usr/local" -a "$mandir" = '${datarootdir}/man'; then
14067 if test -d /usr/share/catman/local; then
14068 mandir="/usr/share/catman/local"
14070 mandir="/usr/catman/local"
14074 if test "$prefix" = "/usr/local" -a "$mandir" = '${datarootdir}/man'; then
14075 if test -d "/usr/share/man/local"; then
14076 mandir="/usr/share/man/local"
14078 mandir="/usr/man/local"
14082 # IRIX <= 4 needs -lsun
14083 if test "$OSMAJOR" -le 4; then
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
14085 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
14086 if ${ac_cv_lib_sun_getpwnam+:} false; then :
14087 $as_echo_n "(cached) " >&6
14089 ac_check_lib_save_LIBS=$LIBS
14091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14092 /* end confdefs.h. */
14094 /* Override any GCC internal prototype to avoid an error.
14095 Use char because int might match the return type of a GCC
14096 builtin and then its argument prototype would still apply. */
14104 return getpwnam ();
14109 if ac_fn_c_try_link "$LINENO"; then :
14110 ac_cv_lib_sun_getpwnam=yes
14112 ac_cv_lib_sun_getpwnam=no
14114 rm -f core conftest.err conftest.$ac_objext \
14115 conftest$ac_exeext conftest.$ac_ext
14116 LIBS=$ac_check_lib_save_LIBS
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
14119 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
14120 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
14121 LIBS="${LIBS} -lsun"
14125 : ${mansectsu='1m'}
14126 : ${mansectform='4'}
14128 *-*-linux*|*-*-k*bsd*-gnu)
14129 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
14130 # Some Linux versions need to link with -lshadow
14131 shadow_funcs="getspnam"
14132 shadow_libs_optional="-lshadow"
14133 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14136 OSDEFS="${OSDEFS} -D_CONVEX_SOURCE"
14137 if test -z "$GCC"; then
14138 CFLAGS="${CFLAGS} -D__STDC__"
14141 shadow_defs="-D_AUDIT -D_ACL -DSecureWare"
14142 shadow_funcs="getprpwnam"
14143 shadow_libs="-lprot"
14147 shadow_funcs="getauthuid"
14148 shadow_libs="-lauth"
14151 LIBS="${LIBS} -lsun -lbsd"
14152 CPPFLAGS="${CPPFLAGS} -I/usr/include -I/usr/include/bsd"
14153 OSDEFS="${OSDEFS} -D_MIPS"
14154 : ${mansectsu='1m'}
14155 : ${mansectform='4'}
14158 OSDEFS="${OSDEFS} -D_ISC"
14160 SUDOERS_LIBS="${SUDOERS_LIBS} -lcrypt"
14162 shadow_funcs="getspnam"
14163 shadow_libs="-lsec"
14165 : ${mansectsu='1m'}
14166 : ${mansectform='4'}
14169 shadow_funcs="getprpwnam"
14170 shadow_libs="-lprot -lx"
14171 : ${mansectsu='1m'}
14172 : ${mansectform='4'}
14174 m88k-motorola-sysv*)
14175 # motorolla's cc (a variant of gcc) does -O but not -O2
14176 CFLAGS=`echo $CFLAGS | sed 's/-O2/-O/g'`
14177 : ${mansectsu='1m'}
14178 : ${mansectform='4'}
14181 shadow_funcs="getspnam"
14182 shadow_libs="-lsec"
14183 : ${mansectsu='1m'}
14184 : ${mansectform='4'}
14185 : ${with_rpath='yes'}
14187 *-ncr-sysv4*|*-ncr-sysvr4*)
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lc89" >&5
14189 $as_echo_n "checking for strcasecmp in -lc89... " >&6; }
14190 if ${ac_cv_lib_c89_strcasecmp+:} false; then :
14191 $as_echo_n "(cached) " >&6
14193 ac_check_lib_save_LIBS=$LIBS
14195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14196 /* end confdefs.h. */
14198 /* Override any GCC internal prototype to avoid an error.
14199 Use char because int might match the return type of a GCC
14200 builtin and then its argument prototype would still apply. */
14204 char strcasecmp ();
14208 return strcasecmp ();
14213 if ac_fn_c_try_link "$LINENO"; then :
14214 ac_cv_lib_c89_strcasecmp=yes
14216 ac_cv_lib_c89_strcasecmp=no
14218 rm -f core conftest.err conftest.$ac_objext \
14219 conftest$ac_exeext conftest.$ac_ext
14220 LIBS=$ac_check_lib_save_LIBS
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c89_strcasecmp" >&5
14223 $as_echo "$ac_cv_lib_c89_strcasecmp" >&6; }
14224 if test "x$ac_cv_lib_c89_strcasecmp" = xyes; then :
14225 LIBS="${LIBS} -lc89"
14228 : ${mansectsu='1m'}
14229 : ${mansectform='4'}
14230 : ${with_rpath='yes'}
14232 *-ccur-sysv4*|*-ccur-sysvr4*)
14233 LIBS="${LIBS} -lgen"
14234 : ${mansectsu='1m'}
14235 : ${mansectform='4'}
14236 : ${with_rpath='yes'}
14240 # Check for newer BSD auth API
14241 if test -z "$with_bsdauth"; then
14242 for ac_func in auth_challenge
14244 ac_fn_c_check_func "$LINENO" "auth_challenge" "ac_cv_func_auth_challenge"
14245 if test "x$ac_cv_func_auth_challenge" = xyes; then :
14246 cat >>confdefs.h <<_ACEOF
14247 #define HAVE_AUTH_CHALLENGE 1
14249 AUTH_EXCL_DEF="BSD_AUTH"
14256 # FreeBSD has a real setreuid(2) starting with 2.1 and
14257 # backported to 2.0.5. We just take 2.1 and above...
14263 OSDEFS="${OSDEFS} -D_BSD_SOURCE"
14264 if test "${with_skey-'no'}" = "yes"; then
14265 SUDOERS_LIBS="${SUDOERS_LIBS} -lmd"
14267 CHECKSHADOW="false"
14268 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14269 : ${with_logincap='maybe'}
14272 # OpenBSD has a real setreuid(2) starting with 3.3 but
14273 # we will use setresuid(2) instead.
14275 OSDEFS="${OSDEFS} -D_BSD_SOURCE"
14276 CHECKSHADOW="false"
14277 # OpenBSD >= 3.0 supports BSD auth
14278 if test -z "$with_bsdauth"; then
14279 if test "$OSMAJOR" -ge 3; then
14280 AUTH_EXCL_DEF="BSD_AUTH"
14283 : ${with_logincap='maybe'}
14286 # NetBSD has a real setreuid(2) starting with 1.3.2
14288 0.9*|1.[012]*|1.3|1.3.1)
14292 CHECKSHADOW="false"
14293 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14294 : ${with_logincap='maybe'}
14297 OSDEFS="${OSDEFS} -D_BSD_SOURCE"
14298 if test "${with_skey-'no'}" = "yes"; then
14299 SUDOERS_LIBS="${SUDOERS_LIBS} -lmd"
14301 CHECKSHADOW="false"
14302 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14303 : ${with_logincap='yes'}
14306 CHECKSHADOW="false"
14309 # Darwin has a real setreuid(2) starting with 9.0
14310 if test $OSMAJOR -lt 9; then
14313 CHECKSHADOW="false"
14314 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14315 : ${with_logincap='yes'}
14318 # lockf() on is broken on the NeXT -- use flock instead
14319 ac_cv_func_lockf=no
14320 ac_cv_func_flock=yes
14323 : ${mansectsu='1m'}
14324 : ${mansectform='4'}
14325 : ${with_rpath='yes'}
14328 : ${mansectsu='1m'}
14329 : ${mansectform='4'}
14332 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
14336 AUTH_REG=${AUTH_REG# }
14337 AUTH_EXCL=${AUTH_EXCL# }
14338 if test -n "$AUTH_EXCL"; then
14340 if test $# != 1; then
14341 as_fn_error $? "More than one mutually exclusive authentication method specified: $AUTH_EXCL" "$LINENO" 5
14343 if test -n "$AUTH_REG"; then
14344 as_fn_error $? "Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" "$LINENO" 5
14347 if test X"${with_skey}${with_opie}" = X"yesyes"; then
14348 as_fn_error $? "\"cannot use both S/Key and OPIE\"" "$LINENO" 5
14352 : ${mansectform='5'}
14354 if test -n "$with_libpath"; then
14355 for i in ${with_libpath}; do
14357 if test X"$with_rpath" = X"yes"; then
14359 *-*-hpux*) LDFLAGS="${LDFLAGS} -L$i -Wl,+b,$i"
14361 *) LDFLAGS="${LDFLAGS} -L$i -Wl,-R$i"
14365 LDFLAGS="${LDFLAGS} -L$i"
14367 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
14368 blibpath_add="${blibpath_add}:$i"
14373 if test -n "$with_libraries"; then
14374 for i in ${with_libraries}; do
14381 LIBS="${LIBS} ${i}"
14385 if test $ac_cv_c_compiler_gnu = yes; then
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
14387 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
14388 if ${ac_cv_prog_gcc_traditional+:} false; then :
14389 $as_echo_n "(cached) " >&6
14391 ac_pattern="Autoconf.*'x'"
14392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14393 /* end confdefs.h. */
14397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14398 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
14399 ac_cv_prog_gcc_traditional=yes
14401 ac_cv_prog_gcc_traditional=no
14406 if test $ac_cv_prog_gcc_traditional = no; then
14407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14408 /* end confdefs.h. */
14409 #include <termio.h>
14412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14413 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
14414 ac_cv_prog_gcc_traditional=yes
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
14421 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
14422 if test $ac_cv_prog_gcc_traditional = yes; then
14423 CC="$CC -traditional"
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14428 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14429 if ${ac_cv_c_const+:} false; then :
14430 $as_echo_n "(cached) " >&6
14432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14433 /* end confdefs.h. */
14438 /* FIXME: Include the comments suggested by Paul. */
14439 #ifndef __cplusplus
14440 /* Ultrix mips cc rejects this. */
14441 typedef int charset[2];
14443 /* SunOS 4.1.1 cc rejects this. */
14444 char const *const *pcpcc;
14446 /* NEC SVR4.0.2 mips cc rejects this. */
14447 struct point {int x, y;};
14448 static struct point const zero = {0,0};
14449 /* AIX XL C 1.02.0.0 rejects this.
14450 It does not let you subtract one const X* pointer from another in
14451 an arm of an if-expression whose if-part is not a constant
14453 const char *g = "string";
14454 pcpcc = &g + (g ? g-g : 0);
14455 /* HPUX 7.0 cc rejects these. */
14457 ppc = (char**) pcpcc;
14458 pcpcc = (char const *const *) ppc;
14459 { /* SCO 3.2v4 cc rejects this. */
14461 char const *s = 0 ? (char *) 0 : (char const *) 0;
14466 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14467 int x[] = {25, 17};
14468 const int *foo = &x[0];
14471 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14472 typedef const int *iptr;
14476 { /* AIX XL C 1.02.0.0 rejects this saying
14477 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14478 struct s { int j; const int *ap[3]; };
14479 struct s *b; b->j = 5;
14481 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14482 const int foo = 10;
14483 if (!foo) return 0;
14485 return !cs[0] && !zero.x;
14492 if ac_fn_c_try_compile "$LINENO"; then :
14497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14500 $as_echo "$ac_cv_c_const" >&6; }
14501 if test $ac_cv_c_const = no; then
14503 $as_echo "#define const /**/" >>confdefs.h
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
14508 $as_echo_n "checking for working volatile... " >&6; }
14509 if ${ac_cv_c_volatile+:} false; then :
14510 $as_echo_n "(cached) " >&6
14512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14513 /* end confdefs.h. */
14520 int * volatile y = (int *) 0;
14526 if ac_fn_c_try_compile "$LINENO"; then :
14527 ac_cv_c_volatile=yes
14529 ac_cv_c_volatile=no
14531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
14534 $as_echo "$ac_cv_c_volatile" >&6; }
14535 if test $ac_cv_c_volatile = no; then
14537 $as_echo "#define volatile /**/" >>confdefs.h
14541 # Check for variadic macro support in cpp
14542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14543 /* end confdefs.h. */
14545 $ac_includes_default
14546 #if defined(__GNUC__) && __GNUC__ == 2
14547 # define sudo_fprintf(fp, fmt...) fprintf((fp), (fmt))
14549 # define sudo_fprintf(fp, ...) fprintf((fp), __VA_ARGS__)
14555 sudo_fprintf(stderr, "a %s", "test");
14560 if ac_fn_c_try_compile "$LINENO"; then :
14563 as_fn_error $? "Your C compiler doesn't support variadic macros, try building with gcc instead" "$LINENO" 5
14565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14566 if test X"$with_gnu_ld" != "yes" -a -n "$GCC"; then
14568 CFLAGS="$CFLAGS -static-libgcc"
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -static-libgcc" >&5
14570 $as_echo_n "checking whether $CC understands -static-libgcc... " >&6; }
14571 if ${sudo_cv_var_gcc_static_libgcc+:} false; then :
14572 $as_echo_n "(cached) " >&6
14574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14575 /* end confdefs.h. */
14585 if ac_fn_c_try_link "$LINENO"; then :
14586 sudo_cv_var_gcc_static_libgcc=yes
14588 sudo_cv_var_gcc_static_libgcc=no
14591 rm -f core conftest.err conftest.$ac_objext \
14592 conftest$ac_exeext conftest.$ac_ext
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_gcc_static_libgcc" >&5
14597 $as_echo "$sudo_cv_var_gcc_static_libgcc" >&6; }
14599 if test "$sudo_cv_var_gcc_static_libgcc" = "yes"; then
14600 LTLDFLAGS="$LTLDFLAGS -Wc,-static-libgcc"
14603 for ac_prog in 'bison -y' byacc
14605 # Extract the first word of "$ac_prog", so it can be a program name with args.
14606 set dummy $ac_prog; ac_word=$2
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14608 $as_echo_n "checking for $ac_word... " >&6; }
14609 if ${ac_cv_prog_YACC+:} false; then :
14610 $as_echo_n "(cached) " >&6
14612 if test -n "$YACC"; then
14613 ac_cv_prog_YACC="$YACC" # Let the user override the test.
14615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14616 for as_dir in $PATH
14619 test -z "$as_dir" && as_dir=.
14620 for ac_exec_ext in '' $ac_executable_extensions; do
14621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14622 ac_cv_prog_YACC="$ac_prog"
14623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14632 YACC=$ac_cv_prog_YACC
14633 if test -n "$YACC"; then
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
14635 $as_echo "$YACC" >&6; }
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14638 $as_echo "no" >&6; }
14642 test -n "$YACC" && break
14644 test -n "$YACC" || YACC="yacc"
14646 # Extract the first word of "flex", so it can be a program name with args.
14647 set dummy flex; ac_word=$2
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14649 $as_echo_n "checking for $ac_word... " >&6; }
14650 if ${ac_cv_path_FLEX+:} false; then :
14651 $as_echo_n "(cached) " >&6
14655 ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path.
14658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14659 for as_dir in $PATH
14662 test -z "$as_dir" && as_dir=.
14663 for ac_exec_ext in '' $ac_executable_extensions; do
14664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14665 ac_cv_path_FLEX="$as_dir/$ac_word$ac_exec_ext"
14666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14673 test -z "$ac_cv_path_FLEX" && ac_cv_path_FLEX="flex"
14677 FLEX=$ac_cv_path_FLEX
14678 if test -n "$FLEX"; then
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
14680 $as_echo "$FLEX" >&6; }
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14683 $as_echo "no" >&6; }
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mv" >&5
14688 $as_echo_n "checking for mv... " >&6; }
14690 for p in "/usr/bin/mv" "/bin/mv" "/usr/ucb/mv" "/usr/sbin/mv"; do
14691 if test -f "$p"; then
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
14694 $as_echo "$p" >&6; }
14695 cat >>confdefs.h <<EOF
14696 #define _PATH_MV "$p"
14702 if test X"$found" != X"yes"; then
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14704 $as_echo "not found" >&6; }
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bourne shell" >&5
14708 $as_echo_n "checking for bourne shell... " >&6; }
14710 for p in "/bin/sh" "/usr/bin/sh" "/sbin/sh" "/usr/sbin/sh" "/bin/ksh" "/usr/bin/ksh" "/bin/bash" "/usr/bin/bash"; do
14711 if test -f "$p"; then
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
14714 $as_echo "$p" >&6; }
14715 cat >>confdefs.h <<EOF
14716 #define _PATH_BSHELL "$p"
14722 if test X"$found" != X"yes"; then
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14724 $as_echo "not found" >&6; }
14727 if test -z "$with_sendmail"; then
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendmail" >&5
14729 $as_echo_n "checking for sendmail... " >&6; }
14731 for p in "/usr/sbin/sendmail" "/usr/lib/sendmail" "/usr/etc/sendmail" "/usr/ucblib/sendmail" "/usr/local/lib/sendmail" "/usr/local/bin/sendmail"; do
14732 if test -f "$p"; then
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
14735 $as_echo "$p" >&6; }
14736 cat >>confdefs.h <<EOF
14737 #define _PATH_SUDO_SENDMAIL "$p"
14743 if test X"$found" != X"yes"; then
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14745 $as_echo "not found" >&6; }
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vi" >&5
14750 $as_echo_n "checking for vi... " >&6; }
14752 for editor in "/usr/bin/vi" "/bin/vi" "/usr/ucb/vi" "/usr/bsd/vi" "/usr/local/bin/vi"; do
14753 if test -f "$editor"; then
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $editor" >&5
14756 $as_echo "$editor" >&6; }
14757 cat >>confdefs.h <<EOF
14758 #define _PATH_VI "$editor"
14764 if test X"$found" != X"yes"; then
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14766 $as_echo "not found" >&6; }
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which syslog facility sudo should log with" >&5
14770 $as_echo_n "checking which syslog facility sudo should log with... " >&6; }
14771 if test X"$with_logfac" = X""; then
14772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14773 /* end confdefs.h. */
14774 #include <syslog.h>
14778 int i = LOG_AUTHPRIV; (void)i;
14783 if ac_fn_c_try_compile "$LINENO"; then :
14786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14789 cat >>confdefs.h <<_ACEOF
14790 #define LOGFAC "$logfac"
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logfac" >&5
14794 $as_echo "$logfac" >&6; }
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14796 $as_echo_n "checking for ANSI C header files... " >&6; }
14797 if ${ac_cv_header_stdc+:} false; then :
14798 $as_echo_n "(cached) " >&6
14800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14801 /* end confdefs.h. */
14802 #include <stdlib.h>
14803 #include <stdarg.h>
14804 #include <string.h>
14815 if ac_fn_c_try_compile "$LINENO"; then :
14816 ac_cv_header_stdc=yes
14818 ac_cv_header_stdc=no
14820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14822 if test $ac_cv_header_stdc = yes; then
14823 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14825 /* end confdefs.h. */
14826 #include <string.h>
14829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14830 $EGREP "memchr" >/dev/null 2>&1; then :
14833 ac_cv_header_stdc=no
14839 if test $ac_cv_header_stdc = yes; then
14840 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14842 /* end confdefs.h. */
14843 #include <stdlib.h>
14846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14847 $EGREP "free" >/dev/null 2>&1; then :
14850 ac_cv_header_stdc=no
14856 if test $ac_cv_header_stdc = yes; then
14857 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14858 if test "$cross_compiling" = yes; then :
14861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14862 /* end confdefs.h. */
14864 #include <stdlib.h>
14865 #if ((' ' & 0x0FF) == 0x020)
14866 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14867 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14869 # define ISLOWER(c) \
14870 (('a' <= (c) && (c) <= 'i') \
14871 || ('j' <= (c) && (c) <= 'r') \
14872 || ('s' <= (c) && (c) <= 'z'))
14873 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14876 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14881 for (i = 0; i < 256; i++)
14882 if (XOR (islower (i), ISLOWER (i))
14883 || toupper (i) != TOUPPER (i))
14888 if ac_fn_c_try_run "$LINENO"; then :
14891 ac_cv_header_stdc=no
14893 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14894 conftest.$ac_objext conftest.beam conftest.$ac_ext
14899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14900 $as_echo "$ac_cv_header_stdc" >&6; }
14901 if test $ac_cv_header_stdc = yes; then
14903 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14907 ac_header_dirent=no
14908 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14909 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
14911 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
14912 if eval \${$as_ac_Header+:} false; then :
14913 $as_echo_n "(cached) " >&6
14915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14916 /* end confdefs.h. */
14917 #include <sys/types.h>
14929 if ac_fn_c_try_compile "$LINENO"; then :
14930 eval "$as_ac_Header=yes"
14932 eval "$as_ac_Header=no"
14934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14936 eval ac_res=\$$as_ac_Header
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14938 $as_echo "$ac_res" >&6; }
14939 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14940 cat >>confdefs.h <<_ACEOF
14941 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14944 ac_header_dirent=$ac_hdr; break
14948 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14949 if test $ac_header_dirent = dirent.h; then
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
14951 $as_echo_n "checking for library containing opendir... " >&6; }
14952 if ${ac_cv_search_opendir+:} false; then :
14953 $as_echo_n "(cached) " >&6
14955 ac_func_search_save_LIBS=$LIBS
14956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14957 /* end confdefs.h. */
14959 /* Override any GCC internal prototype to avoid an error.
14960 Use char because int might match the return type of a GCC
14961 builtin and then its argument prototype would still apply. */
14974 for ac_lib in '' dir; do
14975 if test -z "$ac_lib"; then
14976 ac_res="none required"
14979 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14981 if ac_fn_c_try_link "$LINENO"; then :
14982 ac_cv_search_opendir=$ac_res
14984 rm -f core conftest.err conftest.$ac_objext \
14986 if ${ac_cv_search_opendir+:} false; then :
14990 if ${ac_cv_search_opendir+:} false; then :
14993 ac_cv_search_opendir=no
14995 rm conftest.$ac_ext
14996 LIBS=$ac_func_search_save_LIBS
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
14999 $as_echo "$ac_cv_search_opendir" >&6; }
15000 ac_res=$ac_cv_search_opendir
15001 if test "$ac_res" != no; then :
15002 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15008 $as_echo_n "checking for library containing opendir... " >&6; }
15009 if ${ac_cv_search_opendir+:} false; then :
15010 $as_echo_n "(cached) " >&6
15012 ac_func_search_save_LIBS=$LIBS
15013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15014 /* end confdefs.h. */
15016 /* Override any GCC internal prototype to avoid an error.
15017 Use char because int might match the return type of a GCC
15018 builtin and then its argument prototype would still apply. */
15031 for ac_lib in '' x; do
15032 if test -z "$ac_lib"; then
15033 ac_res="none required"
15036 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15038 if ac_fn_c_try_link "$LINENO"; then :
15039 ac_cv_search_opendir=$ac_res
15041 rm -f core conftest.err conftest.$ac_objext \
15043 if ${ac_cv_search_opendir+:} false; then :
15047 if ${ac_cv_search_opendir+:} false; then :
15050 ac_cv_search_opendir=no
15052 rm conftest.$ac_ext
15053 LIBS=$ac_func_search_save_LIBS
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15056 $as_echo "$ac_cv_search_opendir" >&6; }
15057 ac_res=$ac_cv_search_opendir
15058 if test "$ac_res" != no; then :
15059 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
15066 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
15067 if ${ac_cv_header_time+:} false; then :
15068 $as_echo_n "(cached) " >&6
15070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15071 /* end confdefs.h. */
15072 #include <sys/types.h>
15073 #include <sys/time.h>
15079 if ((struct tm *) 0)
15085 if ac_fn_c_try_compile "$LINENO"; then :
15086 ac_cv_header_time=yes
15088 ac_cv_header_time=no
15090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15093 $as_echo "$ac_cv_header_time" >&6; }
15094 if test $ac_cv_header_time = yes; then
15096 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
15101 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
15102 if ${ac_cv_header_stdbool_h+:} false; then :
15103 $as_echo_n "(cached) " >&6
15105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15106 /* end confdefs.h. */
15108 #include <stdbool.h>
15110 "error: bool is not defined"
15113 "error: false is not defined"
15116 "error: false is not 0"
15119 "error: true is not defined"
15122 "error: true is not 1"
15124 #ifndef __bool_true_false_are_defined
15125 "error: __bool_true_false_are_defined is not defined"
15128 struct s { _Bool s: 1; _Bool t; } s;
15130 char a[true == 1 ? 1 : -1];
15131 char b[false == 0 ? 1 : -1];
15132 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
15133 char d[(bool) 0.5 == true ? 1 : -1];
15134 /* See body of main program for 'e'. */
15135 char f[(_Bool) 0.0 == false ? 1 : -1];
15137 char h[sizeof (_Bool)];
15138 char i[sizeof s.t];
15139 enum { j = false, k = true, l = false * true, m = true * 256 };
15140 /* The following fails for
15141 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
15143 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
15144 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
15145 /* Catch a bug in an HP-UX C compiler. See
15146 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
15147 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
15159 /* Refer to every declared value, to avoid compiler optimizations. */
15160 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
15161 + !m + !n + !o + !p + !q + !pq);
15167 if ac_fn_c_try_compile "$LINENO"; then :
15168 ac_cv_header_stdbool_h=yes
15170 ac_cv_header_stdbool_h=no
15172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
15175 $as_echo "$ac_cv_header_stdbool_h" >&6; }
15176 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
15177 if test "x$ac_cv_type__Bool" = xyes; then :
15179 cat >>confdefs.h <<_ACEOF
15180 #define HAVE__BOOL 1
15186 if test $ac_cv_header_stdbool_h = yes; then
15188 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
15192 for ac_header in malloc.h paths.h utime.h netgroup.h utmpx.h sys/sockio.h sys/bsdtypes.h sys/select.h sys/stropts.h sys/sysmacros.h
15194 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15195 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15196 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15197 cat >>confdefs.h <<_ACEOF
15198 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15205 # Check whether --enable-largefile was given.
15206 if test "${enable_largefile+set}" = set; then :
15207 enableval=$enable_largefile;
15210 if test "$enable_largefile" != no; then
15212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15213 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15214 if ${ac_cv_sys_largefile_CC+:} false; then :
15215 $as_echo_n "(cached) " >&6
15217 ac_cv_sys_largefile_CC=no
15218 if test "$GCC" != yes; then
15221 # IRIX 6.2 and later do not support large files by default,
15222 # so use the C compiler's -n32 option if that helps.
15223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15224 /* end confdefs.h. */
15225 #include <sys/types.h>
15226 /* Check that off_t can represent 2**63 - 1 correctly.
15227 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15228 since some C++ compilers masquerading as C compilers
15229 incorrectly reject 9223372036854775807. */
15230 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15231 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15232 && LARGE_OFF_T % 2147483647 == 1)
15242 if ac_fn_c_try_compile "$LINENO"; then :
15245 rm -f core conftest.err conftest.$ac_objext
15247 if ac_fn_c_try_compile "$LINENO"; then :
15248 ac_cv_sys_largefile_CC=' -n32'; break
15250 rm -f core conftest.err conftest.$ac_objext
15254 rm -f conftest.$ac_ext
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15258 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15259 if test "$ac_cv_sys_largefile_CC" != no; then
15260 CC=$CC$ac_cv_sys_largefile_CC
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15264 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15265 if ${ac_cv_sys_file_offset_bits+:} false; then :
15266 $as_echo_n "(cached) " >&6
15269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15270 /* end confdefs.h. */
15271 #include <sys/types.h>
15272 /* Check that off_t can represent 2**63 - 1 correctly.
15273 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15274 since some C++ compilers masquerading as C compilers
15275 incorrectly reject 9223372036854775807. */
15276 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15277 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15278 && LARGE_OFF_T % 2147483647 == 1)
15288 if ac_fn_c_try_compile "$LINENO"; then :
15289 ac_cv_sys_file_offset_bits=no; break
15291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15293 /* end confdefs.h. */
15294 #define _FILE_OFFSET_BITS 64
15295 #include <sys/types.h>
15296 /* Check that off_t can represent 2**63 - 1 correctly.
15297 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15298 since some C++ compilers masquerading as C compilers
15299 incorrectly reject 9223372036854775807. */
15300 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15301 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15302 && LARGE_OFF_T % 2147483647 == 1)
15312 if ac_fn_c_try_compile "$LINENO"; then :
15313 ac_cv_sys_file_offset_bits=64; break
15315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15316 ac_cv_sys_file_offset_bits=unknown
15320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15321 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15322 case $ac_cv_sys_file_offset_bits in #(
15325 cat >>confdefs.h <<_ACEOF
15326 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15331 if test $ac_cv_sys_file_offset_bits = unknown; then
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15333 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15334 if ${ac_cv_sys_large_files+:} false; then :
15335 $as_echo_n "(cached) " >&6
15338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15339 /* end confdefs.h. */
15340 #include <sys/types.h>
15341 /* Check that off_t can represent 2**63 - 1 correctly.
15342 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15343 since some C++ compilers masquerading as C compilers
15344 incorrectly reject 9223372036854775807. */
15345 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15346 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15347 && LARGE_OFF_T % 2147483647 == 1)
15357 if ac_fn_c_try_compile "$LINENO"; then :
15358 ac_cv_sys_large_files=no; break
15360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15362 /* end confdefs.h. */
15363 #define _LARGE_FILES 1
15364 #include <sys/types.h>
15365 /* Check that off_t can represent 2**63 - 1 correctly.
15366 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15367 since some C++ compilers masquerading as C compilers
15368 incorrectly reject 9223372036854775807. */
15369 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15370 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15371 && LARGE_OFF_T % 2147483647 == 1)
15381 if ac_fn_c_try_compile "$LINENO"; then :
15382 ac_cv_sys_large_files=1; break
15384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15385 ac_cv_sys_large_files=unknown
15389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15390 $as_echo "$ac_cv_sys_large_files" >&6; }
15391 case $ac_cv_sys_large_files in #(
15394 cat >>confdefs.h <<_ACEOF
15395 #define _LARGE_FILES $ac_cv_sys_large_files
15405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h needs _XOPEN_SOURCE_EXTENDED" >&5
15406 $as_echo_n "checking whether sys/types.h needs _XOPEN_SOURCE_EXTENDED... " >&6; }
15407 if ${sudo_cv_xopen_source_extended+:} false; then :
15408 $as_echo_n "(cached) " >&6
15410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15411 /* end confdefs.h. */
15412 $ac_includes_default
15413 #include <sys/socket.h>
15422 if ac_fn_c_try_compile "$LINENO"; then :
15423 sudo_cv_xopen_source_extended=no
15426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15427 /* end confdefs.h. */
15428 #define _XOPEN_SOURCE_EXTENDED
15429 $ac_includes_default
15430 #include <sys/socket.h>
15439 if ac_fn_c_try_compile "$LINENO"; then :
15440 sudo_cv_xopen_source_extended=yes
15442 sudo_cv_xopen_source_extended=error
15444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_xopen_source_extended" >&5
15450 $as_echo "$sudo_cv_xopen_source_extended" >&6; }
15451 if test "$sudo_cv_xopen_source_extended" = "yes"; then
15452 OSDEFS="${OSDEFS} -D_XOPEN_SOURCE_EXTENDED"
15453 cat >>confdefs.h <<\EOF
15454 #define _XOPEN_SOURCE_EXTENDED 1
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX termios" >&5
15461 $as_echo_n "checking POSIX termios... " >&6; }
15462 if ${ac_cv_sys_posix_termios+:} false; then :
15463 $as_echo_n "(cached) " >&6
15465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15466 /* end confdefs.h. */
15467 #include <sys/types.h>
15468 #include <unistd.h>
15469 #include <termios.h>
15474 /* SunOS 4.0.3 has termios.h but not the library calls. */
15480 if ac_fn_c_try_link "$LINENO"; then :
15481 ac_cv_sys_posix_termios=yes
15483 ac_cv_sys_posix_termios=no
15485 rm -f core conftest.err conftest.$ac_objext \
15486 conftest$ac_exeext conftest.$ac_ext
15488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_posix_termios" >&5
15489 $as_echo "$ac_cv_sys_posix_termios" >&6; }
15491 if test "$ac_cv_sys_posix_termios" != "yes"; then
15492 as_fn_error $? "Must have POSIX termios to build sudo" "$LINENO" 5
15496 if test X"$ac_cv_header_paths_h" = X"yes"; then
15497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15498 /* end confdefs.h. */
15499 $ac_includes_default
15504 char *p = _PATH_MAILDIR;
15509 if ac_fn_c_try_compile "$LINENO"; then :
15512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15514 if test $maildir = no; then
15515 # Solaris has maillock.h which defines MAILDIR
15516 for ac_header in maillock.h
15518 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
15519 if test "x$ac_cv_header_maillock_h" = xyes; then :
15520 cat >>confdefs.h <<_ACEOF
15521 #define HAVE_MAILLOCK_H 1
15524 cat >>confdefs.h <<\EOF
15525 #define _PATH_MAILDIR MAILDIR
15534 if test $maildir = no; then
15535 for d in /var/mail /var/spool/mail /usr/spool/mail; do
15536 if test -d "$d"; then
15538 cat >>confdefs.h <<EOF
15539 #define _PATH_MAILDIR "$d"
15545 if test $maildir = no; then
15546 # unable to find mail dir, hope for the best
15547 cat >>confdefs.h <<EOF
15548 #define _PATH_MAILDIR "/var/mail"
15555 if test ${with_logincap-'no'} != "no"; then
15556 for ac_header in login_cap.h
15558 ac_fn_c_check_header_mongrel "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" "$ac_includes_default"
15559 if test "x$ac_cv_header_login_cap_h" = xyes; then :
15560 cat >>confdefs.h <<_ACEOF
15561 #define HAVE_LOGIN_CAP_H 1
15563 LOGINCAP_USAGE='[-c class|-] '; LCMAN=1
15566 SUDO_LIBS="${SUDO_LIBS} -lutil"
15567 SUDOERS_LIBS="${SUDOERS_LIBS} -lutil"
15576 if test ${with_project-'no'} != "no"; then
15577 ac_fn_c_check_header_mongrel "$LINENO" "project.h" "ac_cv_header_project_h" "$ac_includes_default"
15578 if test "x$ac_cv_header_project_h" = xyes; then :
15580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproject in -lproject" >&5
15581 $as_echo_n "checking for setproject in -lproject... " >&6; }
15582 if ${ac_cv_lib_project_setproject+:} false; then :
15583 $as_echo_n "(cached) " >&6
15585 ac_check_lib_save_LIBS=$LIBS
15586 LIBS="-lproject $LIBS"
15587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15588 /* end confdefs.h. */
15590 /* Override any GCC internal prototype to avoid an error.
15591 Use char because int might match the return type of a GCC
15592 builtin and then its argument prototype would still apply. */
15596 char setproject ();
15600 return setproject ();
15605 if ac_fn_c_try_link "$LINENO"; then :
15606 ac_cv_lib_project_setproject=yes
15608 ac_cv_lib_project_setproject=no
15610 rm -f core conftest.err conftest.$ac_objext \
15611 conftest$ac_exeext conftest.$ac_ext
15612 LIBS=$ac_check_lib_save_LIBS
15614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_project_setproject" >&5
15615 $as_echo "$ac_cv_lib_project_setproject" >&6; }
15616 if test "x$ac_cv_lib_project_setproject" = xyes; then :
15618 $as_echo "#define HAVE_PROJECT_H 1" >>confdefs.h
15620 SUDO_LIBS="${SUDO_LIBS} -lproject"
15629 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
15630 if test "x$ac_cv_type_mode_t" = xyes; then :
15634 cat >>confdefs.h <<_ACEOF
15640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
15641 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
15642 if ${ac_cv_type_uid_t+:} false; then :
15643 $as_echo_n "(cached) " >&6
15645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15646 /* end confdefs.h. */
15647 #include <sys/types.h>
15650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15651 $EGREP "uid_t" >/dev/null 2>&1; then :
15652 ac_cv_type_uid_t=yes
15654 ac_cv_type_uid_t=no
15659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
15660 $as_echo "$ac_cv_type_uid_t" >&6; }
15661 if test $ac_cv_type_uid_t = no; then
15663 $as_echo "#define uid_t int" >>confdefs.h
15666 $as_echo "#define gid_t int" >>confdefs.h
15670 ac_fn_c_check_type "$LINENO" "__signed char" "ac_cv_type___signed_char" "$ac_includes_default"
15671 if test "x$ac_cv_type___signed_char" = xyes; then :
15674 ac_fn_c_check_type "$LINENO" "signed char" "ac_cv_type_signed_char" "$ac_includes_default"
15675 if test "x$ac_cv_type_signed_char" = xyes; then :
15676 $as_echo "#define __signed signed" >>confdefs.h
15679 $as_echo "#define __signed /**/" >>confdefs.h
15685 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <sys/types.h>
15686 #include <signal.h>
15688 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
15691 $as_echo "#define sig_atomic_t int" >>confdefs.h
15695 ac_fn_c_check_type "$LINENO" "sigaction_t" "ac_cv_type_sigaction_t" "#include <sys/types.h>
15696 #include <signal.h>
15698 if test "x$ac_cv_type_sigaction_t" = xyes; then :
15700 cat >>confdefs.h <<_ACEOF
15701 #define HAVE_SIGACTION_T 1
15707 ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "#include <sys/types.h>
15708 #if TIME_WITH_SYS_TIME
15709 # include <sys/time.h>
15713 if test "x$ac_cv_type_struct_timespec" = xyes; then :
15715 cat >>confdefs.h <<_ACEOF
15716 #define HAVE_STRUCT_TIMESPEC 1
15722 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#include <sys/types.h>
15723 #include <netinet/in.h>
15725 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
15727 cat >>confdefs.h <<_ACEOF
15728 #define HAVE_STRUCT_IN6_ADDR 1
15735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
15736 $as_echo_n "checking for long long int... " >&6; }
15737 if ${ac_cv_type_long_long_int+:} false; then :
15738 $as_echo_n "(cached) " >&6
15740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15741 /* end confdefs.h. */
15743 /* For now, do not test the preprocessor; as of 2007 there are too many
15744 implementations with broken preprocessors. Perhaps this can
15745 be revisited in 2012. In the meantime, code should not expect
15746 #if to work with literals wider than 32 bits. */
15747 /* Test literals. */
15748 long long int ll = 9223372036854775807ll;
15749 long long int nll = -9223372036854775807LL;
15750 unsigned long long int ull = 18446744073709551615ULL;
15751 /* Test constant expressions. */
15752 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
15754 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
15760 /* Test availability of runtime routines for shift and division. */
15761 long long int llmax = 9223372036854775807ll;
15762 unsigned long long int ullmax = 18446744073709551615ull;
15763 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
15764 | (llmax / ll) | (llmax % ll)
15765 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
15766 | (ullmax / ull) | (ullmax % ull));
15772 if ac_fn_c_try_link "$LINENO"; then :
15773 if test "$cross_compiling" = yes; then :
15774 ac_cv_type_long_long_int=yes
15776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15777 /* end confdefs.h. */
15778 #include <limits.h>
15781 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
15782 # define LLONG_MAX (HALF - 1 + HALF)
15787 long long int n = 1;
15791 long long int m = n << i;
15794 if (LLONG_MAX / 2 < m)
15802 if ac_fn_c_try_run "$LINENO"; then :
15803 ac_cv_type_long_long_int=yes
15805 ac_cv_type_long_long_int=no
15807 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15808 conftest.$ac_objext conftest.beam conftest.$ac_ext
15812 ac_cv_type_long_long_int=no
15814 rm -f core conftest.err conftest.$ac_objext \
15815 conftest$ac_exeext conftest.$ac_ext
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
15818 $as_echo "$ac_cv_type_long_long_int" >&6; }
15819 if test $ac_cv_type_long_long_int = yes; then
15821 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
15825 # The cast to long int works around a bug in the HP C Compiler
15826 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15827 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15828 # This bug is HP SR number 8606223364.
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
15830 $as_echo_n "checking size of long int... " >&6; }
15831 if ${ac_cv_sizeof_long_int+:} false; then :
15832 $as_echo_n "(cached) " >&6
15834 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
15837 if test "$ac_cv_type_long_int" = yes; then
15838 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15839 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15840 as_fn_error 77 "cannot compute sizeof (long int)
15841 See \`config.log' for more details" "$LINENO" 5; }
15843 ac_cv_sizeof_long_int=0
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
15849 $as_echo "$ac_cv_sizeof_long_int" >&6; }
15853 cat >>confdefs.h <<_ACEOF
15854 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
15858 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15859 if test "x$ac_cv_type_size_t" = xyes; then :
15863 cat >>confdefs.h <<_ACEOF
15864 #define size_t unsigned int
15869 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
15870 if test "x$ac_cv_type_ssize_t" = xyes; then :
15874 cat >>confdefs.h <<_ACEOF
15875 #define ssize_t int
15880 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
15881 if test "x$ac_cv_type_dev_t" = xyes; then :
15885 cat >>confdefs.h <<_ACEOF
15891 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
15892 if test "x$ac_cv_type_ino_t" = xyes; then :
15896 cat >>confdefs.h <<_ACEOF
15897 #define ino_t unsigned int
15902 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
15903 $ac_includes_default
15904 #include <sys/socket.h>
15906 if test "x$ac_cv_type_socklen_t" = xyes; then :
15909 $as_echo "#define socklen_t unsigned int" >>confdefs.h
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking max length of uid_t" >&5
15915 $as_echo_n "checking max length of uid_t... " >&6; }
15916 if ${sudo_cv_uid_t_len+:} false; then :
15917 $as_echo_n "(cached) " >&6
15920 if test "$cross_compiling" = yes; then :
15921 sudo_cv_uid_t_len=10
15923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15924 /* end confdefs.h. */
15927 #include <limits.h>
15928 #include <sys/types.h>
15929 #include <sys/param.h>
15933 uid_t u = (uid_t) -1;
15935 if ((f = fopen("conftestdata", "w")) == NULL)
15938 (void) sprintf(b, "%lu", (unsigned long) u);
15939 (void) fprintf(f, "%d\n", strlen(b));
15944 if ac_fn_c_try_run "$LINENO"; then :
15945 sudo_cv_uid_t_len=`cat conftestdata`
15947 sudo_cv_uid_t_len=10
15949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15950 conftest.$ac_objext conftest.beam conftest.$ac_ext
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_uid_t_len" >&5
15958 $as_echo "$sudo_cv_uid_t_len" >&6; }
15960 cat >>confdefs.h <<_ACEOF
15961 #define MAX_UID_T_LEN $sudo_cv_uid_t_len
15966 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" " #include <sys/types.h>
15967 #include <sys/socket.h>
15970 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
15972 $as_echo "#define HAVE_STRUCT_SOCKADDR_SA_LEN 1" >>confdefs.h
15978 CFLAGS="$CFLAGS $OSDEFS"
15979 if test $ac_cv_header_utmpx_h = "yes"; then
15980 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_id" "ac_cv_member_struct_utmpx_ut_id" "
15981 #include <sys/types.h>
15985 if test "x$ac_cv_member_struct_utmpx_ut_id" = xyes; then :
15987 cat >>confdefs.h <<_ACEOF
15988 #define HAVE_STRUCT_UTMPX_UT_ID 1
15993 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_pid" "ac_cv_member_struct_utmpx_ut_pid" "
15994 #include <sys/types.h>
15998 if test "x$ac_cv_member_struct_utmpx_ut_pid" = xyes; then :
16000 cat >>confdefs.h <<_ACEOF
16001 #define HAVE_STRUCT_UTMPX_UT_PID 1
16006 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_tv" "ac_cv_member_struct_utmpx_ut_tv" "
16007 #include <sys/types.h>
16011 if test "x$ac_cv_member_struct_utmpx_ut_tv" = xyes; then :
16013 cat >>confdefs.h <<_ACEOF
16014 #define HAVE_STRUCT_UTMPX_UT_TV 1
16019 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_type" "ac_cv_member_struct_utmpx_ut_type" "
16020 #include <sys/types.h>
16024 if test "x$ac_cv_member_struct_utmpx_ut_type" = xyes; then :
16026 cat >>confdefs.h <<_ACEOF
16027 #define HAVE_STRUCT_UTMPX_UT_TYPE 1
16033 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_exit.__e_termination" "ac_cv_member_struct_utmpx_ut_exit___e_termination" "
16034 #include <sys/types.h>
16038 if test "x$ac_cv_member_struct_utmpx_ut_exit___e_termination" = xyes; then :
16040 cat >>confdefs.h <<_ACEOF
16041 #define HAVE_STRUCT_UTMPX_UT_EXIT___E_TERMINATION 1
16044 $as_echo "#define HAVE_STRUCT_UTMPX_UT_EXIT 1" >>confdefs.h
16048 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_exit.e_termination" "ac_cv_member_struct_utmpx_ut_exit_e_termination" "
16049 #include <sys/types.h>
16053 if test "x$ac_cv_member_struct_utmpx_ut_exit_e_termination" = xyes; then :
16055 cat >>confdefs.h <<_ACEOF
16056 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_TERMINATION 1
16059 $as_echo "#define HAVE_STRUCT_UTMPX_UT_EXIT 1" >>confdefs.h
16067 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_id" "ac_cv_member_struct_utmp_ut_id" "
16068 #include <sys/types.h>
16072 if test "x$ac_cv_member_struct_utmp_ut_id" = xyes; then :
16074 cat >>confdefs.h <<_ACEOF
16075 #define HAVE_STRUCT_UTMP_UT_ID 1
16080 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" "
16081 #include <sys/types.h>
16085 if test "x$ac_cv_member_struct_utmp_ut_pid" = xyes; then :
16087 cat >>confdefs.h <<_ACEOF
16088 #define HAVE_STRUCT_UTMP_UT_PID 1
16093 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_tv" "ac_cv_member_struct_utmp_ut_tv" "
16094 #include <sys/types.h>
16098 if test "x$ac_cv_member_struct_utmp_ut_tv" = xyes; then :
16100 cat >>confdefs.h <<_ACEOF
16101 #define HAVE_STRUCT_UTMP_UT_TV 1
16106 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_type" "ac_cv_member_struct_utmp_ut_type" "
16107 #include <sys/types.h>
16111 if test "x$ac_cv_member_struct_utmp_ut_type" = xyes; then :
16113 cat >>confdefs.h <<_ACEOF
16114 #define HAVE_STRUCT_UTMP_UT_TYPE 1
16119 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_user" "ac_cv_member_struct_utmp_ut_user" "
16120 #include <sys/types.h>
16124 if test "x$ac_cv_member_struct_utmp_ut_user" = xyes; then :
16126 cat >>confdefs.h <<_ACEOF
16127 #define HAVE_STRUCT_UTMP_UT_USER 1
16133 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_exit.__e_termination" "ac_cv_member_struct_utmp_ut_exit___e_termination" "
16134 #include <sys/types.h>
16138 if test "x$ac_cv_member_struct_utmp_ut_exit___e_termination" = xyes; then :
16140 cat >>confdefs.h <<_ACEOF
16141 #define HAVE_STRUCT_UTMP_UT_EXIT___E_TERMINATION 1
16144 $as_echo "#define HAVE_STRUCT_UTMP_UT_EXIT 1" >>confdefs.h
16148 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_exit.e_termination" "ac_cv_member_struct_utmp_ut_exit_e_termination" "
16149 #include <sys/types.h>
16153 if test "x$ac_cv_member_struct_utmp_ut_exit_e_termination" = xyes; then :
16155 cat >>confdefs.h <<_ACEOF
16156 #define HAVE_STRUCT_UTMP_UT_EXIT_E_TERMINATION 1
16159 $as_echo "#define HAVE_STRUCT_UTMP_UT_EXIT 1" >>confdefs.h
16169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
16170 $as_echo_n "checking type of array argument to getgroups... " >&6; }
16171 if ${ac_cv_type_getgroups+:} false; then :
16172 $as_echo_n "(cached) " >&6
16174 if test "$cross_compiling" = yes; then :
16175 ac_cv_type_getgroups=cross
16177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16178 /* end confdefs.h. */
16179 /* Thanks to Mike Rendell for this test. */
16180 $ac_includes_default
16183 #define MAX(x, y) ((x) > (y) ? (x) : (y))
16188 gid_t gidset[NGID];
16190 union { gid_t gval; long int lval; } val;
16193 for (i = 0; i < NGID; i++)
16194 gidset[i] = val.gval;
16195 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
16197 /* Exit non-zero if getgroups seems to require an array of ints. This
16198 happens when gid_t is short int but getgroups modifies an array
16200 return n > 0 && gidset[n] != val.gval;
16203 if ac_fn_c_try_run "$LINENO"; then :
16204 ac_cv_type_getgroups=gid_t
16206 ac_cv_type_getgroups=int
16208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16209 conftest.$ac_objext conftest.beam conftest.$ac_ext
16212 if test $ac_cv_type_getgroups = cross; then
16213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16214 /* end confdefs.h. */
16215 #include <unistd.h>
16218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16219 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
16220 ac_cv_type_getgroups=gid_t
16222 ac_cv_type_getgroups=int
16228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
16229 $as_echo "$ac_cv_type_getgroups" >&6; }
16231 cat >>confdefs.h <<_ACEOF
16232 #define GETGROUPS_T $ac_cv_type_getgroups
16236 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16237 if test "x$ac_cv_type_size_t" = xyes; then :
16241 cat >>confdefs.h <<_ACEOF
16242 #define size_t unsigned int
16247 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
16248 if test "x$ac_cv_func_getgroups" = xyes; then :
16253 # If we don't yet have getgroups, see if it's in -lbsd.
16254 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
16256 if test $ac_cv_func_getgroups = no; then
16257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
16258 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
16259 if ${ac_cv_lib_bsd_getgroups+:} false; then :
16260 $as_echo_n "(cached) " >&6
16262 ac_check_lib_save_LIBS=$LIBS
16264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16265 /* end confdefs.h. */
16267 /* Override any GCC internal prototype to avoid an error.
16268 Use char because int might match the return type of a GCC
16269 builtin and then its argument prototype would still apply. */
16277 return getgroups ();
16282 if ac_fn_c_try_link "$LINENO"; then :
16283 ac_cv_lib_bsd_getgroups=yes
16285 ac_cv_lib_bsd_getgroups=no
16287 rm -f core conftest.err conftest.$ac_objext \
16288 conftest$ac_exeext conftest.$ac_ext
16289 LIBS=$ac_check_lib_save_LIBS
16291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
16292 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
16293 if test "x$ac_cv_lib_bsd_getgroups" = xyes; then :
16294 GETGROUPS_LIB=-lbsd
16299 # Run the program to test the functionality of the system-supplied
16300 # getgroups function only if there is such a function.
16301 if test $ac_cv_func_getgroups = yes; then
16302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
16303 $as_echo_n "checking for working getgroups... " >&6; }
16304 if ${ac_cv_func_getgroups_works+:} false; then :
16305 $as_echo_n "(cached) " >&6
16307 if test "$cross_compiling" = yes; then :
16308 ac_cv_func_getgroups_works=no
16310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16311 /* end confdefs.h. */
16312 $ac_includes_default
16316 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
16317 return getgroups (0, 0) == -1;
16322 if ac_fn_c_try_run "$LINENO"; then :
16323 ac_cv_func_getgroups_works=yes
16325 ac_cv_func_getgroups_works=no
16327 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16328 conftest.$ac_objext conftest.beam conftest.$ac_ext
16333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
16334 $as_echo "$ac_cv_func_getgroups_works" >&6; }
16336 ac_cv_func_getgroups_works=no
16338 if test $ac_cv_func_getgroups_works = yes; then
16340 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
16345 for ac_func in strrchr sysconf tzset strftime \
16346 regcomp setlocale nl_langinfo mbr_check_membership \
16349 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16350 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16351 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16352 cat >>confdefs.h <<_ACEOF
16353 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16359 ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist"
16360 if test "x$ac_cv_func_getgrouplist" = xyes; then :
16361 $as_echo "#define HAVE_GETGROUPLIST 1" >>confdefs.h
16364 case " $LIBOBJS " in
16365 *" getgrouplist.$ac_objext "* ) ;;
16366 *) LIBOBJS="$LIBOBJS getgrouplist.$ac_objext"
16373 for ac_func in getline
16375 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
16376 if test "x$ac_cv_func_getline" = xyes; then :
16377 cat >>confdefs.h <<_ACEOF
16378 #define HAVE_GETLINE 1
16383 case " $LIBOBJS " in
16384 *" getline.$ac_objext "* ) ;;
16385 *) LIBOBJS="$LIBOBJS getline.$ac_objext"
16389 for ac_func in fgetln
16391 ac_fn_c_check_func "$LINENO" "fgetln" "ac_cv_func_fgetln"
16392 if test "x$ac_cv_func_fgetln" = xyes; then :
16393 cat >>confdefs.h <<_ACEOF
16394 #define HAVE_FGETLN 1
16404 O_CPPFLAGS="$CPPFLAGS"
16405 CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2"
16406 ac_fn_c_check_func "$LINENO" "__sprintf_chk" "ac_cv_func___sprintf_chk"
16407 if test "x$ac_cv_func___sprintf_chk" = xyes; then :
16409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16410 /* end confdefs.h. */
16415 char buf[4]; (void)sprintf(buf, "%s", "foo");
16420 if ac_fn_c_try_link "$LINENO"; then :
16421 OSDEFS="${OSDEFS} -D_FORTIFY_SOURCE=2"
16423 rm -f core conftest.err conftest.$ac_objext \
16424 conftest$ac_exeext conftest.$ac_ext
16428 CPPFLAGS="$O_CPPFLAGS"
16431 for ac_func in getutxid getutid
16433 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16434 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16435 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16436 cat >>confdefs.h <<_ACEOF
16437 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16439 utmp_style=POSIX; break
16443 if test "$utmp_style" = "LEGACY"; then
16444 for ac_func in getttyent ttyslot
16446 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16447 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16448 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16449 cat >>confdefs.h <<_ACEOF
16450 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16458 for ac_func in sysctl
16460 ac_fn_c_check_func "$LINENO" "sysctl" "ac_cv_func_sysctl"
16461 if test "x$ac_cv_func_sysctl" = xyes; then :
16462 cat >>confdefs.h <<_ACEOF
16463 #define HAVE_SYSCTL 1
16465 ac_fn_c_check_member "$LINENO" "struct kinfo_proc" "ki_tdev" "ac_cv_member_struct_kinfo_proc_ki_tdev" "
16466 #include <sys/param.h>
16467 #include <sys/sysctl.h>
16468 #include <sys/user.h>
16471 if test "x$ac_cv_member_struct_kinfo_proc_ki_tdev" = xyes; then :
16473 cat >>confdefs.h <<_ACEOF
16474 #define HAVE_STRUCT_KINFO_PROC_KI_TDEV 1
16480 ac_fn_c_check_member "$LINENO" "struct kinfo_proc2" "p_tdev" "ac_cv_member_struct_kinfo_proc2_p_tdev" "
16481 #include <sys/param.h>
16482 #include <sys/sysctl.h>
16485 if test "x$ac_cv_member_struct_kinfo_proc2_p_tdev" = xyes; then :
16487 cat >>confdefs.h <<_ACEOF
16488 #define HAVE_STRUCT_KINFO_PROC2_P_TDEV 1
16494 ac_fn_c_check_member "$LINENO" "struct kinfo_proc" "p_tdev" "ac_cv_member_struct_kinfo_proc_p_tdev" "
16495 #include <sys/param.h>
16496 #include <sys/sysctl.h>
16499 if test "x$ac_cv_member_struct_kinfo_proc_p_tdev" = xyes; then :
16501 cat >>confdefs.h <<_ACEOF
16502 #define HAVE_STRUCT_KINFO_PROC_P_TDEV 1
16508 ac_fn_c_check_member "$LINENO" "struct kinfo_proc" "kp_eproc.e_tdev" "ac_cv_member_struct_kinfo_proc_kp_eproc_e_tdev" "
16509 #include <sys/param.h>
16510 #include <sys/sysctl.h>
16513 if test "x$ac_cv_member_struct_kinfo_proc_kp_eproc_e_tdev" = xyes; then :
16515 cat >>confdefs.h <<_ACEOF
16516 #define HAVE_STRUCT_KINFO_PROC_KP_EPROC_E_TDEV 1
16536 for ac_func in openpty
16538 ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
16539 if test "x$ac_cv_func_openpty" = xyes; then :
16540 cat >>confdefs.h <<_ACEOF
16541 #define HAVE_OPENPTY 1
16543 for ac_header in libutil.h util.h pty.h
16545 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16546 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16547 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16548 cat >>confdefs.h <<_ACEOF
16549 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
16559 $as_echo_n "checking for openpty in -lutil... " >&6; }
16560 if ${ac_cv_lib_util_openpty+:} false; then :
16561 $as_echo_n "(cached) " >&6
16563 ac_check_lib_save_LIBS=$LIBS
16564 LIBS="-lutil $LIBS"
16565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16566 /* end confdefs.h. */
16568 /* Override any GCC internal prototype to avoid an error.
16569 Use char because int might match the return type of a GCC
16570 builtin and then its argument prototype would still apply. */
16583 if ac_fn_c_try_link "$LINENO"; then :
16584 ac_cv_lib_util_openpty=yes
16586 ac_cv_lib_util_openpty=no
16588 rm -f core conftest.err conftest.$ac_objext \
16589 conftest$ac_exeext conftest.$ac_ext
16590 LIBS=$ac_check_lib_save_LIBS
16592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
16593 $as_echo "$ac_cv_lib_util_openpty" >&6; }
16594 if test "x$ac_cv_lib_util_openpty" = xyes; then :
16596 for ac_header in libutil.h util.h pty.h
16598 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16599 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16600 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16601 cat >>confdefs.h <<_ACEOF
16602 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16609 case "$SUDO_LIBS" in
16611 *) SUDO_LIBS="${SUDO_LIBS} -lutil";;
16613 $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
16618 for ac_func in _getpty
16620 ac_fn_c_check_func "$LINENO" "_getpty" "ac_cv_func__getpty"
16621 if test "x$ac_cv_func__getpty" = xyes; then :
16622 cat >>confdefs.h <<_ACEOF
16623 #define HAVE__GETPTY 1
16628 for ac_func in grantpt
16630 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
16631 if test "x$ac_cv_func_grantpt" = xyes; then :
16632 cat >>confdefs.h <<_ACEOF
16633 #define HAVE_GRANTPT 1
16636 for ac_func in posix_openpt
16638 ac_fn_c_check_func "$LINENO" "posix_openpt" "ac_cv_func_posix_openpt"
16639 if test "x$ac_cv_func_posix_openpt" = xyes; then :
16640 cat >>confdefs.h <<_ACEOF
16641 #define HAVE_POSIX_OPENPT 1
16650 for ac_func in revoke
16652 ac_fn_c_check_func "$LINENO" "revoke" "ac_cv_func_revoke"
16653 if test "x$ac_cv_func_revoke" = xyes; then :
16654 cat >>confdefs.h <<_ACEOF
16655 #define HAVE_REVOKE 1
16676 for ac_func in unsetenv
16678 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
16679 if test "x$ac_cv_func_unsetenv" = xyes; then :
16680 cat >>confdefs.h <<_ACEOF
16681 #define HAVE_UNSETENV 1
16683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv returns void" >&5
16684 $as_echo_n "checking whether unsetenv returns void... " >&6; }
16685 if ${sudo_cv_func_unsetenv_void+:} false; then :
16686 $as_echo_n "(cached) " >&6
16688 if test "$cross_compiling" = yes; then :
16689 sudo_cv_func_unsetenv_void=no
16691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16692 /* end confdefs.h. */
16693 $ac_includes_default
16700 return unsetenv("FOO") != 0;
16707 if ac_fn_c_try_run "$LINENO"; then :
16708 sudo_cv_func_unsetenv_void=no
16710 sudo_cv_func_unsetenv_void=yes
16712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16713 conftest.$ac_objext conftest.beam conftest.$ac_ext
16717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_unsetenv_void" >&5
16718 $as_echo "$sudo_cv_func_unsetenv_void" >&6; }
16719 if test $sudo_cv_func_unsetenv_void = yes; then
16721 $as_echo "#define UNSETENV_VOID 1" >>confdefs.h
16726 case " $LIBOBJS " in
16727 *" unsetenv.$ac_objext "* ) ;;
16728 *) LIBOBJS="$LIBOBJS unsetenv.$ac_objext"
16735 if test -z "$SKIP_SETRESUID"; then
16736 for ac_func in setresuid
16738 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
16739 if test "x$ac_cv_func_setresuid" = xyes; then :
16740 cat >>confdefs.h <<_ACEOF
16741 #define HAVE_SETRESUID 1
16745 for ac_func in getresuid
16747 ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid"
16748 if test "x$ac_cv_func_getresuid" = xyes; then :
16749 cat >>confdefs.h <<_ACEOF
16750 #define HAVE_GETRESUID 1
16761 if test -z "$SKIP_SETREUID"; then
16762 for ac_func in setreuid
16764 ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
16765 if test "x$ac_cv_func_setreuid" = xyes; then :
16766 cat >>confdefs.h <<_ACEOF
16767 #define HAVE_SETREUID 1
16774 if test -z "$SKIP_SETEUID"; then
16775 for ac_func in seteuid
16777 ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
16778 if test "x$ac_cv_func_seteuid" = xyes; then :
16779 cat >>confdefs.h <<_ACEOF
16780 #define HAVE_SETEUID 1
16787 if test X"$with_interfaces" != X"no"; then
16788 for ac_func in getifaddrs
16790 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
16791 if test "x$ac_cv_func_getifaddrs" = xyes; then :
16792 cat >>confdefs.h <<_ACEOF
16793 #define HAVE_GETIFADDRS 1
16795 for ac_func in freeifaddrs
16797 ac_fn_c_check_func "$LINENO" "freeifaddrs" "ac_cv_func_freeifaddrs"
16798 if test "x$ac_cv_func_freeifaddrs" = xyes; then :
16799 cat >>confdefs.h <<_ACEOF
16800 #define HAVE_FREEIFADDRS 1
16810 if test -z "$BROKEN_GETCWD"; then
16811 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
16812 if test "x$ac_cv_func_getcwd" = xyes; then :
16813 $as_echo "#define HAVE_GETCWD 1" >>confdefs.h
16816 case " $LIBOBJS " in
16817 *" getcwd.$ac_objext "* ) ;;
16818 *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
16826 for ac_func in glob
16828 ac_fn_c_check_func "$LINENO" "glob" "ac_cv_func_glob"
16829 if test "x$ac_cv_func_glob" = xyes; then :
16830 cat >>confdefs.h <<_ACEOF
16831 #define HAVE_GLOB 1
16833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_BRACE and GLOB_TILDE in glob.h" >&5
16834 $as_echo_n "checking for GLOB_BRACE and GLOB_TILDE in glob.h... " >&6; }
16835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16836 /* end confdefs.h. */
16841 int i = GLOB_BRACE | GLOB_TILDE; (void)i;
16846 if ac_fn_c_try_compile "$LINENO"; then :
16847 $as_echo "#define HAVE_EXTENDED_GLOB 1" >>confdefs.h
16849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16850 $as_echo "yes" >&6; }
16852 case " $LIBOBJS " in
16853 *" glob.$ac_objext "* ) ;;
16854 *) LIBOBJS="$LIBOBJS glob.$ac_objext"
16858 COMPAT_TEST_PROGS="${COMPAT_TEST_PROGS}${COMPAT_TEST_PROGS+ }globtest"
16859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16860 $as_echo "no" >&6; }
16862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16864 case " $LIBOBJS " in
16865 *" glob.$ac_objext "* ) ;;
16866 *) LIBOBJS="$LIBOBJS glob.$ac_objext"
16870 COMPAT_TEST_PROGS="${COMPAT_TEST_PROGS}${COMPAT_TEST_PROGS+ }globtest"
16875 for ac_func in lockf flock
16877 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16878 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16879 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16880 cat >>confdefs.h <<_ACEOF
16881 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16887 for ac_func in innetgr _innetgr
16889 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16890 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16891 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16892 cat >>confdefs.h <<_ACEOF
16893 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16895 for ac_func in getdomainname
16897 ac_fn_c_check_func "$LINENO" "getdomainname" "ac_cv_func_getdomainname"
16898 if test "x$ac_cv_func_getdomainname" = xyes; then :
16899 cat >>confdefs.h <<_ACEOF
16900 #define HAVE_GETDOMAINNAME 1
16909 for ac_func in utimes
16911 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
16912 if test "x$ac_cv_func_utimes" = xyes; then :
16913 cat >>confdefs.h <<_ACEOF
16914 #define HAVE_UTIMES 1
16916 for ac_func in futimes futimesat
16918 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16919 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16920 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16921 cat >>confdefs.h <<_ACEOF
16922 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16929 for ac_func in futime
16931 ac_fn_c_check_func "$LINENO" "futime" "ac_cv_func_futime"
16932 if test "x$ac_cv_func_futime" = xyes; then :
16933 cat >>confdefs.h <<_ACEOF
16934 #define HAVE_FUTIME 1
16939 case " $LIBOBJS " in
16940 *" utimes.$ac_objext "* ) ;;
16941 *) LIBOBJS="$LIBOBJS utimes.$ac_objext"
16948 for ac_func in killpg
16950 ac_fn_c_check_func "$LINENO" "killpg" "ac_cv_func_killpg"
16951 if test "x$ac_cv_func_killpg" = xyes; then :
16952 cat >>confdefs.h <<_ACEOF
16953 #define HAVE_KILLPG 1
16957 case " $LIBOBJS " in
16958 *" killpg.$ac_objext "* ) ;;
16959 *) LIBOBJS="$LIBOBJS killpg.$ac_objext"
16966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fnmatch with FNM_CASEFOLD" >&5
16967 $as_echo_n "checking for working fnmatch with FNM_CASEFOLD... " >&6; }
16968 if ${sudo_cv_func_fnmatch+:} false; then :
16969 $as_echo_n "(cached) " >&6
16971 rm -f conftestdata; > conftestdata
16972 if test "$cross_compiling" = yes; then :
16973 sudo_cv_func_fnmatch=no
16975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16976 /* end confdefs.h. */
16977 #include <fnmatch.h>
16978 main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
16980 if ac_fn_c_try_run "$LINENO"; then :
16981 sudo_cv_func_fnmatch=yes
16983 sudo_cv_func_fnmatch=no
16985 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16986 conftest.$ac_objext conftest.beam conftest.$ac_ext
16989 rm -f core core.* *.core
16992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_fnmatch" >&5
16993 $as_echo "$sudo_cv_func_fnmatch" >&6; }
16994 if test $sudo_cv_func_fnmatch = yes; then :
16995 $as_echo "#define HAVE_FNMATCH 1" >>confdefs.h
16998 case " $LIBOBJS " in
16999 *" fnmatch.$ac_objext "* ) ;;
17000 *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
17004 COMPAT_TEST_PROGS="${COMPAT_TEST_PROGS}${COMPAT_TEST_PROGS+ }fnm_test"
17007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isblank" >&5
17008 $as_echo_n "checking for isblank... " >&6; }
17009 if ${sudo_cv_func_isblank+:} false; then :
17010 $as_echo_n "(cached) " >&6
17012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17013 /* end confdefs.h. */
17018 return (isblank('a'));
17023 if ac_fn_c_try_link "$LINENO"; then :
17024 sudo_cv_func_isblank=yes
17026 sudo_cv_func_isblank=no
17028 rm -f core conftest.err conftest.$ac_objext \
17029 conftest$ac_exeext conftest.$ac_ext
17031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_isblank" >&5
17032 $as_echo "$sudo_cv_func_isblank" >&6; }
17034 if test "$sudo_cv_func_isblank" = "yes"; then
17036 $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
17039 case " $LIBOBJS " in
17040 *" isblank.$ac_objext "* ) ;;
17041 *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
17047 ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
17048 if test "x$ac_cv_func_memrchr" = xyes; then :
17049 $as_echo "#define HAVE_MEMRCHR 1" >>confdefs.h
17052 case " $LIBOBJS " in
17053 *" memrchr.$ac_objext "* ) ;;
17054 *) LIBOBJS="$LIBOBJS memrchr.$ac_objext"
17060 ac_fn_c_check_func "$LINENO" "pw_dup" "ac_cv_func_pw_dup"
17061 if test "x$ac_cv_func_pw_dup" = xyes; then :
17062 $as_echo "#define HAVE_PW_DUP 1" >>confdefs.h
17065 case " $LIBOBJS " in
17066 *" pw_dup.$ac_objext "* ) ;;
17067 *) LIBOBJS="$LIBOBJS pw_dup.$ac_objext"
17073 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
17074 if test "x$ac_cv_func_strlcpy" = xyes; then :
17075 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
17078 case " $LIBOBJS " in
17079 *" strlcpy.$ac_objext "* ) ;;
17080 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
17086 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
17087 if test "x$ac_cv_func_strlcat" = xyes; then :
17088 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
17091 case " $LIBOBJS " in
17092 *" strlcat.$ac_objext "* ) ;;
17093 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
17099 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
17100 if test "x$ac_cv_func_setenv" = xyes; then :
17101 $as_echo "#define HAVE_SETENV 1" >>confdefs.h
17104 case " $LIBOBJS " in
17105 *" setenv.$ac_objext "* ) ;;
17106 *) LIBOBJS="$LIBOBJS setenv.$ac_objext"
17113 for ac_func in nanosleep
17115 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
17116 if test "x$ac_cv_func_nanosleep" = xyes; then :
17117 cat >>confdefs.h <<_ACEOF
17118 #define HAVE_NANOSLEEP 1
17123 # On Solaris, nanosleep is in librt
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
17125 $as_echo_n "checking for nanosleep in -lrt... " >&6; }
17126 if ${ac_cv_lib_rt_nanosleep+:} false; then :
17127 $as_echo_n "(cached) " >&6
17129 ac_check_lib_save_LIBS=$LIBS
17131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17132 /* end confdefs.h. */
17134 /* Override any GCC internal prototype to avoid an error.
17135 Use char because int might match the return type of a GCC
17136 builtin and then its argument prototype would still apply. */
17144 return nanosleep ();
17149 if ac_fn_c_try_link "$LINENO"; then :
17150 ac_cv_lib_rt_nanosleep=yes
17152 ac_cv_lib_rt_nanosleep=no
17154 rm -f core conftest.err conftest.$ac_objext \
17155 conftest$ac_exeext conftest.$ac_ext
17156 LIBS=$ac_check_lib_save_LIBS
17158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
17159 $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
17160 if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
17161 REPLAY_LIBS="${REPLAY_LIBS} -lrt"
17163 case " $LIBOBJS " in
17164 *" nanosleep.$ac_objext "* ) ;;
17165 *) LIBOBJS="$LIBOBJS nanosleep.$ac_objext"
17175 for ac_func in closefrom
17177 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
17178 if test "x$ac_cv_func_closefrom" = xyes; then :
17179 cat >>confdefs.h <<_ACEOF
17180 #define HAVE_CLOSEFROM 1
17184 case " $LIBOBJS " in
17185 *" closefrom.$ac_objext "* ) ;;
17186 *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
17190 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" " #include <limits.h>
17193 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
17194 $as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h
17202 for ac_func in mkstemps mkdtemp
17204 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17205 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17206 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17207 cat >>confdefs.h <<_ACEOF
17208 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17213 for ac_func in random lrand48
17215 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17216 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17217 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17218 cat >>confdefs.h <<_ACEOF
17219 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17225 case " $LIBOBJS " in
17226 *" mktemp.$ac_objext "* ) ;;
17227 *) LIBOBJS="$LIBOBJS mktemp.$ac_objext"
17235 for ac_func in snprintf vsnprintf asprintf vasprintf
17237 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17238 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17239 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17240 cat >>confdefs.h <<_ACEOF
17241 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17249 if test X"$ac_cv_type_struct_timespec" != X"no"; then
17250 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
17251 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
17252 $as_echo "#define HAVE_ST_MTIM 1" >>confdefs.h
17254 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.st__tim" "ac_cv_member_struct_stat_st_mtim_st__tim" "$ac_includes_default"
17255 if test "x$ac_cv_member_struct_stat_st_mtim_st__tim" = xyes; then :
17256 $as_echo "#define HAVE_ST__TIM 1" >>confdefs.h
17261 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
17262 if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
17263 $as_echo "#define HAVE_ST_MTIMESPEC 1" >>confdefs.h
17270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17271 /* end confdefs.h. */
17272 #include <sys/types.h>
17273 #include <$ac_header_dirent>
17277 DIR *d; (void)dirfd(d);
17282 if ac_fn_c_try_link "$LINENO"; then :
17283 $as_echo "#define HAVE_DIRFD 1" >>confdefs.h
17286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17287 /* end confdefs.h. */
17288 #include <sys/types.h>
17289 #include <$ac_header_dirent>
17293 DIR d; memset(&d, 0, sizeof(d)); return(d.dd_fd);
17298 if ac_fn_c_try_link "$LINENO"; then :
17299 $as_echo "#define HAVE_DD_FD 1" >>confdefs.h
17302 rm -f core conftest.err conftest.$ac_objext \
17303 conftest$ac_exeext conftest.$ac_ext
17305 rm -f core conftest.err conftest.$ac_objext \
17306 conftest$ac_exeext conftest.$ac_ext
17307 if test -n "$NEED_SNPRINTF"; then
17308 case " $LIBOBJS " in
17309 *" snprintf.$ac_objext "* ) ;;
17310 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
17315 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
17316 if test "x$ac_cv_func_socket" = xyes; then :
17320 for libs in "-lsocket" "-linet" "-lsocket -lnsl"; do
17322 for lib in $libs; do
17323 case "$NET_LIBS" in
17325 *) _libs="$_libs $lib";;
17329 test -z "$libs" && continue
17330 lib="`echo \"$libs\"|sed -e 's/^-l//' -e 's/ .*$//'`"
17331 extralibs="`echo \"$libs\"|sed 's/^-l[^ ]*//'`"
17333 _sudo_check_lib_extras=`echo "$extralibs"|sed -e 's/ *//g' -e 's/-l/_/g'`
17334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -l$lib${5+ }$extralibs" >&5
17335 $as_echo_n "checking for socket in -l$lib${5+ }$extralibs... " >&6; }
17336 if { as_var=sudo_cv_lib_$lib''_socket$_sudo_check_lib_extras; eval \${$as_var+:} false; }; then :
17337 $as_echo_n "(cached) " >&6
17340 SUDO_CHECK_LIB_OLIBS="$LIBS"
17341 LIBS="$LIBS -l$lib${5+ }$extralibs"
17342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17343 /* end confdefs.h. */
17345 /* Override any GCC internal prototype to avoid an error.
17346 Use char because int might match the return type of a GCC
17347 builtin and then its argument prototype would still apply. */
17360 if ac_fn_c_try_link "$LINENO"; then :
17361 eval sudo_cv_lib_$lib''_socket$_sudo_check_lib_extras=yes
17363 eval sudo_cv_lib_$lib''_socket$_sudo_check_lib_extras=no
17366 rm -f core conftest.err conftest.$ac_objext \
17367 conftest$ac_exeext conftest.$ac_ext
17368 LIBS="$SUDO_CHECK_LIB_OLIBS"
17372 if eval test \$sudo_cv_lib_$lib''_socket$_sudo_check_lib_extras = "yes"; then
17373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17374 $as_echo "yes" >&6; }
17375 NET_LIBS="${NET_LIBS} $libs"; LIBS="${LIBS} $libs"; break
17377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17378 $as_echo "no" >&6; }
17386 ac_fn_c_check_func "$LINENO" "inet_addr" "ac_cv_func_inet_addr"
17387 if test "x$ac_cv_func_inet_addr" = xyes; then :
17391 ac_fn_c_check_func "$LINENO" "__inet_addr" "ac_cv_func___inet_addr"
17392 if test "x$ac_cv_func___inet_addr" = xyes; then :
17396 for libs in "-lsocket" "-linet" "-lsocket -lnsl"; do
17398 for lib in $libs; do
17399 case "$NET_LIBS" in
17401 *) _libs="$_libs $lib";;
17405 test -z "$libs" && continue
17406 lib="`echo \"$libs\"|sed -e 's/^-l//' -e 's/ .*$//'`"
17407 extralibs="`echo \"$libs\"|sed 's/^-l[^ ]*//'`"
17409 _sudo_check_lib_extras=`echo "$extralibs"|sed -e 's/ *//g' -e 's/-l/_/g'`
17410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -l$lib${5+ }$extralibs" >&5
17411 $as_echo_n "checking for inet_addr in -l$lib${5+ }$extralibs... " >&6; }
17412 if { as_var=sudo_cv_lib_$lib''_inet_addr$_sudo_check_lib_extras; eval \${$as_var+:} false; }; then :
17413 $as_echo_n "(cached) " >&6
17416 SUDO_CHECK_LIB_OLIBS="$LIBS"
17417 LIBS="$LIBS -l$lib${5+ }$extralibs"
17418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17419 /* end confdefs.h. */
17421 /* Override any GCC internal prototype to avoid an error.
17422 Use char because int might match the return type of a GCC
17423 builtin and then its argument prototype would still apply. */
17431 return inet_addr ();
17436 if ac_fn_c_try_link "$LINENO"; then :
17437 eval sudo_cv_lib_$lib''_inet_addr$_sudo_check_lib_extras=yes
17439 eval sudo_cv_lib_$lib''_inet_addr$_sudo_check_lib_extras=no
17442 rm -f core conftest.err conftest.$ac_objext \
17443 conftest$ac_exeext conftest.$ac_ext
17444 LIBS="$SUDO_CHECK_LIB_OLIBS"
17448 if eval test \$sudo_cv_lib_$lib''_inet_addr$_sudo_check_lib_extras = "yes"; then
17449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17450 $as_echo "yes" >&6; }
17451 NET_LIBS="${NET_LIBS} $libs"; LIBS="${LIBS} $libs"; break
17453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17454 $as_echo "no" >&6; }
17465 ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
17466 if test "x$ac_cv_func_syslog" = xyes; then :
17470 for libs in "-lsocket" "-linet" "-lsocket -lnsl"; do
17472 for lib in $libs; do
17473 case "$NET_LIBS" in
17475 *) _libs="$_libs $lib";;
17479 test -z "$libs" && continue
17480 lib="`echo \"$libs\"|sed -e 's/^-l//' -e 's/ .*$//'`"
17481 extralibs="`echo \"$libs\"|sed 's/^-l[^ ]*//'`"
17483 _sudo_check_lib_extras=`echo "$extralibs"|sed -e 's/ *//g' -e 's/-l/_/g'`
17484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog in -l$lib${5+ }$extralibs" >&5
17485 $as_echo_n "checking for syslog in -l$lib${5+ }$extralibs... " >&6; }
17486 if { as_var=sudo_cv_lib_$lib''_syslog$_sudo_check_lib_extras; eval \${$as_var+:} false; }; then :
17487 $as_echo_n "(cached) " >&6
17490 SUDO_CHECK_LIB_OLIBS="$LIBS"
17491 LIBS="$LIBS -l$lib${5+ }$extralibs"
17492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17493 /* end confdefs.h. */
17495 /* Override any GCC internal prototype to avoid an error.
17496 Use char because int might match the return type of a GCC
17497 builtin and then its argument prototype would still apply. */
17510 if ac_fn_c_try_link "$LINENO"; then :
17511 eval sudo_cv_lib_$lib''_syslog$_sudo_check_lib_extras=yes
17513 eval sudo_cv_lib_$lib''_syslog$_sudo_check_lib_extras=no
17516 rm -f core conftest.err conftest.$ac_objext \
17517 conftest$ac_exeext conftest.$ac_ext
17518 LIBS="$SUDO_CHECK_LIB_OLIBS"
17522 if eval test \$sudo_cv_lib_$lib''_syslog$_sudo_check_lib_extras = "yes"; then
17523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17524 $as_echo "yes" >&6; }
17525 NET_LIBS="${NET_LIBS} $libs"; LIBS="${LIBS} $libs"; break
17527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17528 $as_echo "no" >&6; }
17536 for ac_func in getaddrinfo
17538 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
17539 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
17540 cat >>confdefs.h <<_ACEOF
17541 #define HAVE_GETADDRINFO 1
17547 for libs in "-lsocket" "-linet" "-lsocket -lnsl"; do
17549 for lib in $libs; do
17550 case "$NET_LIBS" in
17552 *) _libs="$_libs $lib";;
17556 test -z "$libs" && continue
17557 lib="`echo \"$libs\"|sed -e 's/^-l//' -e 's/ .*$//'`"
17558 extralibs="`echo \"$libs\"|sed 's/^-l[^ ]*//'`"
17560 _sudo_check_lib_extras=`echo "$extralibs"|sed -e 's/ *//g' -e 's/-l/_/g'`
17561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -l$lib${5+ }$extralibs" >&5
17562 $as_echo_n "checking for getaddrinfo in -l$lib${5+ }$extralibs... " >&6; }
17563 if { as_var=sudo_cv_lib_$lib''_getaddrinfo$_sudo_check_lib_extras; eval \${$as_var+:} false; }; then :
17564 $as_echo_n "(cached) " >&6
17567 SUDO_CHECK_LIB_OLIBS="$LIBS"
17568 LIBS="$LIBS -l$lib${5+ }$extralibs"
17569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17570 /* end confdefs.h. */
17572 /* Override any GCC internal prototype to avoid an error.
17573 Use char because int might match the return type of a GCC
17574 builtin and then its argument prototype would still apply. */
17578 char getaddrinfo ();
17582 return getaddrinfo ();
17587 if ac_fn_c_try_link "$LINENO"; then :
17588 eval sudo_cv_lib_$lib''_getaddrinfo$_sudo_check_lib_extras=yes
17590 eval sudo_cv_lib_$lib''_getaddrinfo$_sudo_check_lib_extras=no
17593 rm -f core conftest.err conftest.$ac_objext \
17594 conftest$ac_exeext conftest.$ac_ext
17595 LIBS="$SUDO_CHECK_LIB_OLIBS"
17599 if eval test \$sudo_cv_lib_$lib''_getaddrinfo$_sudo_check_lib_extras = "yes"; then
17600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17601 $as_echo "yes" >&6; }
17602 NET_LIBS="${NET_LIBS} $libs"; LIBS="${LIBS} $libs"; found=yes; break
17604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17605 $as_echo "no" >&6; }
17610 if test X"$found" != X"no"; then
17611 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
17618 for ac_func in getprogname
17620 ac_fn_c_check_func "$LINENO" "getprogname" "ac_cv_func_getprogname"
17621 if test "x$ac_cv_func_getprogname" = xyes; then :
17622 cat >>confdefs.h <<_ACEOF
17623 #define HAVE_GETPROGNAME 1
17628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __progname" >&5
17629 $as_echo_n "checking for __progname... " >&6; }
17630 if ${sudo_cv___progname+:} false; then :
17631 $as_echo_n "(cached) " >&6
17634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17635 /* end confdefs.h. */
17640 extern char *__progname; (void)puts(__progname);
17645 if ac_fn_c_try_link "$LINENO"; then :
17646 sudo_cv___progname=yes
17648 sudo_cv___progname=no
17650 rm -f core conftest.err conftest.$ac_objext \
17651 conftest$ac_exeext conftest.$ac_ext
17654 if test "$sudo_cv___progname" = "yes"; then
17655 $as_echo "#define HAVE___PROGNAME 1" >>confdefs.h
17658 case " $LIBOBJS " in
17659 *" getprogname.$ac_objext "* ) ;;
17660 *) LIBOBJS="$LIBOBJS getprogname.$ac_objext"
17665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv___progname" >&5
17666 $as_echo "$sudo_cv___progname" >&6; }
17671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __func__" >&5
17672 $as_echo_n "checking for __func__... " >&6; }
17673 if ${sudo_cv___func__+:} false; then :
17674 $as_echo_n "(cached) " >&6
17677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17678 /* end confdefs.h. */
17683 (void)puts(__func__);
17688 if ac_fn_c_try_link "$LINENO"; then :
17689 sudo_cv___func__=yes
17691 sudo_cv___func__=no
17693 rm -f core conftest.err conftest.$ac_objext \
17694 conftest$ac_exeext conftest.$ac_ext
17697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv___func__" >&5
17698 $as_echo "$sudo_cv___func__" >&6; }
17699 if test "$sudo_cv___func__" = "yes"; then
17700 $as_echo "#define HAVE___FUNC__ 1" >>confdefs.h
17702 elif test -n "$GCC"; then
17703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __FUNCTION__" >&5
17704 $as_echo_n "checking for __FUNCTION__... " >&6; }
17705 if ${sudo_cv___FUNCTION__+:} false; then :
17706 $as_echo_n "(cached) " >&6
17709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17710 /* end confdefs.h. */
17715 (void)puts(__FUNCTION__);
17720 if ac_fn_c_try_link "$LINENO"; then :
17721 sudo_cv___FUNCTION__=yes
17723 sudo_cv___FUNCTION__=no
17725 rm -f core conftest.err conftest.$ac_objext \
17726 conftest$ac_exeext conftest.$ac_ext
17729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv___FUNCTION__" >&5
17730 $as_echo "$sudo_cv___FUNCTION__" >&6; }
17731 if test "$sudo_cv___FUNCTION__" = "yes"; then
17732 $as_echo "#define HAVE___FUNC__ 1" >>confdefs.h
17735 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
17740 # gettext() and friends may be located in libc (Linux and Solaris)
17741 # or in libintl. However, it is possible to have libintl installed
17742 # even when gettext() is present in libc. In the case of GNU libintl,
17743 # gettext() will be defined to gettext_libintl in libintl.h.
17744 # Since gcc prefers /usr/local/include to /usr/include, we need to
17745 # make sure we use the gettext() that matches the include file.
17746 if test "$enable_nls" != "no"; then
17747 if test "$enable_nls" != "yes"; then
17748 CPPFLAGS="${CPPFLAGS} -I${enable_nls}/include"
17750 if test X"$with_rpath" = X"yes"; then
17752 *-*-hpux*) LDFLAGS="${LDFLAGS} -L$enable_nls/lib -Wl,+b,$enable_nls/lib"
17754 *) LDFLAGS="${LDFLAGS} -L$enable_nls/lib -Wl,-R$enable_nls/lib"
17758 LDFLAGS="${LDFLAGS} -L$enable_nls/lib"
17760 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
17761 blibpath_add="${blibpath_add}:$enable_nls/lib"
17766 for l in "libc" "-lintl" "-lintl -liconv"; do
17767 if test "$l" = "libc"; then
17768 # If user specified a dir for libintl ignore libc
17769 if test "$enable_nls" != "yes"; then
17772 gettext_name=sudo_cv_gettext
17773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext" >&5
17774 $as_echo_n "checking for gettext... " >&6; }
17777 gettext_name=sudo_cv_gettext"`echo $l|sed -e 's/ //g' -e 's/-/_/g'`"
17778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in $l" >&5
17779 $as_echo_n "checking for gettext in $l... " >&6; }
17781 if eval \${$gettext_name+:} false; then :
17782 $as_echo_n "(cached) " >&6
17785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17786 /* end confdefs.h. */
17788 #include <libintl.h>
17792 (void)gettext((char *)0);
17798 if ac_fn_c_try_link "$LINENO"; then :
17799 eval $gettext_name=yes
17801 eval $gettext_name=no
17804 rm -f core conftest.err conftest.$ac_objext \
17805 conftest$ac_exeext conftest.$ac_ext
17809 eval gettext_result="\$$gettext_name"
17810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gettext_result" >&5
17811 $as_echo "$gettext_result" >&6; }
17812 test "$gettext_result" = "yes" && break
17816 if test "$sudo_cv_gettext" = "yes"; then
17817 $as_echo "#define HAVE_LIBINTL_H 1" >>confdefs.h
17820 elif test "$sudo_cv_gettext_lintl" = "yes"; then
17821 $as_echo "#define HAVE_LIBINTL_H 1" >>confdefs.h
17825 elif test "$sudo_cv_gettext_lintl_liconv" = "yes"; then
17826 $as_echo "#define HAVE_LIBINTL_H 1" >>confdefs.h
17829 LIBINTL="-lintl -liconv"
17833 case "$enable_zlib" in
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzdopen in -lz" >&5
17836 $as_echo_n "checking for gzdopen in -lz... " >&6; }
17837 if ${ac_cv_lib_z_gzdopen+:} false; then :
17838 $as_echo_n "(cached) " >&6
17840 ac_check_lib_save_LIBS=$LIBS
17842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17843 /* end confdefs.h. */
17845 /* Override any GCC internal prototype to avoid an error.
17846 Use char because int might match the return type of a GCC
17847 builtin and then its argument prototype would still apply. */
17860 if ac_fn_c_try_link "$LINENO"; then :
17861 ac_cv_lib_z_gzdopen=yes
17863 ac_cv_lib_z_gzdopen=no
17865 rm -f core conftest.err conftest.$ac_objext \
17866 conftest$ac_exeext conftest.$ac_ext
17867 LIBS=$ac_check_lib_save_LIBS
17869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzdopen" >&5
17870 $as_echo "$ac_cv_lib_z_gzdopen" >&6; }
17871 if test "x$ac_cv_lib_z_gzdopen" = xyes; then :
17873 for ac_header in zlib.h
17875 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
17876 if test "x$ac_cv_header_zlib_h" = xyes; then :
17877 cat >>confdefs.h <<_ACEOF
17878 #define HAVE_ZLIB_H 1
17882 enable_zlib=builtin
17894 $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
17902 $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
17904 CPPFLAGS="${CPPFLAGS} -I${enable_zlib}/include"
17906 if test X"$with_rpath" = X"yes"; then
17908 *-*-hpux*) ZLIB="${ZLIB} -L$enable_zlib/lib -Wl,+b,$enable_zlib/lib"
17910 *) ZLIB="${ZLIB} -L$enable_zlib/lib -Wl,-R$enable_zlib/lib"
17914 ZLIB="${ZLIB} -L$enable_zlib/lib"
17916 if test X"$blibpath" != X"" -a "ZLIB" = "SUDO_LDFLAGS"; then
17917 blibpath_add="${blibpath_add}:$enable_zlib/lib"
17923 if test X"$enable_zlib" = X"builtin"; then
17924 $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
17926 CPPFLAGS="${CPPFLAGS}"' -I$(top_srcdir)/zlib'
17927 ZLIB="${ZLIB}"' $(top_builddir)/zlib/libz.la'
17929 ac_config_headers="$ac_config_headers zlib/zconf.h"
17931 ac_config_files="$ac_config_files zlib/Makefile"
17935 ac_fn_c_check_decl "$LINENO" "errno" "ac_cv_have_decl_errno" "
17936 $ac_includes_default
17940 if test "x$ac_cv_have_decl_errno" = xyes; then :
17946 cat >>confdefs.h <<_ACEOF
17947 #define HAVE_DECL_ERRNO $ac_have_decl
17951 ac_fn_c_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "
17952 $ac_includes_default
17956 if test "x$ac_cv_have_decl_h_errno" = xyes; then :
17962 cat >>confdefs.h <<_ACEOF
17963 #define HAVE_DECL_H_ERRNO $ac_have_decl
17967 for ac_func in strsignal
17969 ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
17970 if test "x$ac_cv_func_strsignal" = xyes; then :
17971 cat >>confdefs.h <<_ACEOF
17972 #define HAVE_STRSIGNAL 1
17977 case " $LIBOBJS " in
17978 *" strsignal.$ac_objext "* ) ;;
17979 *) LIBOBJS="$LIBOBJS strsignal.$ac_objext"
17983 HAVE_SIGLIST="false"
17984 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "
17985 $ac_includes_default
17986 #include <signal.h>
17989 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
17995 cat >>confdefs.h <<_ACEOF
17996 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
17998 if test $ac_have_decl = 1; then :
18000 HAVE_SIGLIST="true"
18004 ac_fn_c_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "
18005 $ac_includes_default
18006 #include <signal.h>
18009 if test "x$ac_cv_have_decl__sys_siglist" = xyes; then :
18015 cat >>confdefs.h <<_ACEOF
18016 #define HAVE_DECL__SYS_SIGLIST $ac_have_decl
18018 if test $ac_have_decl = 1; then :
18020 HAVE_SIGLIST="true"
18024 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "
18025 $ac_includes_default
18026 #include <signal.h>
18029 if test "x$ac_cv_have_decl___sys_siglist" = xyes; then :
18035 cat >>confdefs.h <<_ACEOF
18036 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
18038 if test $ac_have_decl = 1; then :
18040 HAVE_SIGLIST="true"
18045 if test "$HAVE_SIGLIST" != "true"; then
18046 case " $LIBOBJS " in
18047 *" siglist.$ac_objext "* ) ;;
18048 *) LIBOBJS="$LIBOBJS siglist.$ac_objext"
18058 if test ${with_netsvc-"no"} != "no"; then
18059 cat >>confdefs.h <<EOF
18060 #define _PATH_NETSVC_CONF "${with_netsvc-/etc/netsvc.conf}"
18063 netsvc_conf=${with_netsvc-/etc/netsvc.conf}
18064 elif test ${with_nsswitch-"yes"} != "no"; then
18065 cat >>confdefs.h <<EOF
18066 #define _PATH_NSSWITCH_CONF "${with_nsswitch-/etc/nsswitch.conf}"
18069 nsswitch_conf=${with_nsswitch-/etc/nsswitch.conf}
18073 if test -z "${AUTH_EXCL}${AUTH_REG}" -a -n "$AUTH_EXCL_DEF"; then
18074 for auth in $AUTH_EXCL_DEF; do
18076 AIX_AUTH) with_aixauth=maybe;;
18077 BSD_AUTH) with_bsdauth=maybe;;
18078 PAM) with_pam=maybe;;
18079 SIA) CHECKSIA=true;;
18084 if test ${with_pam-"no"} != "no"; then
18086 # Check for pam_start() in libpam first, then for pam_appl.h.
18089 as_ac_Lib=`$as_echo "ac_cv_lib_pam_pam_start$lt_cv_dlopen_libs" | $as_tr_sh`
18090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
18091 $as_echo_n "checking for pam_start in -lpam... " >&6; }
18092 if eval \${$as_ac_Lib+:} false; then :
18093 $as_echo_n "(cached) " >&6
18095 ac_check_lib_save_LIBS=$LIBS
18096 LIBS="-lpam $lt_cv_dlopen_libs $LIBS"
18097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18098 /* end confdefs.h. */
18100 /* Override any GCC internal prototype to avoid an error.
18101 Use char because int might match the return type of a GCC
18102 builtin and then its argument prototype would still apply. */
18110 return pam_start ();
18115 if ac_fn_c_try_link "$LINENO"; then :
18116 eval "$as_ac_Lib=yes"
18118 eval "$as_ac_Lib=no"
18120 rm -f core conftest.err conftest.$ac_objext \
18121 conftest$ac_exeext conftest.$ac_ext
18122 LIBS=$ac_check_lib_save_LIBS
18124 eval ac_res=\$$as_ac_Lib
18125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18126 $as_echo "$ac_res" >&6; }
18127 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18132 # Some PAM implementations (MacOS X for example) put the PAM headers
18133 # in /usr/include/pam instead of /usr/include/security...
18136 for ac_header in security/pam_appl.h pam/pam_appl.h
18138 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18139 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18140 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18141 cat >>confdefs.h <<_ACEOF
18142 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18144 found_pam_hdrs=yes; break
18149 if test "$found_pam_lib" = "yes" -a "$found_pam_hdrs" = "yes"; then
18150 # Found both PAM libs and headers
18152 elif test "$with_pam" = "yes"; then
18153 if test "$found_pam_lib" = "no"; then
18154 as_fn_error $? "\"--with-pam specified but unable to locate PAM development library.\"" "$LINENO" 5
18156 if test "$found_pam_hdrs" = "no"; then
18157 as_fn_error $? "\"--with-pam specified but unable to locate PAM development headers.\"" "$LINENO" 5
18159 elif test "$found_pam_lib" != "$found_pam_hdrs"; then
18160 if test "$found_pam_lib" = "no"; then
18161 as_fn_error $? "\"found PAM headers but no PAM development library; specify --without-pam to build without PAM\"" "$LINENO" 5
18163 if test "$found_pam_hdrs" = "no"; then
18164 as_fn_error $? "\"found PAM library but no PAM development headers; specify --without-pam to build without PAM\"" "$LINENO" 5
18168 if test "$with_pam" = "yes"; then
18169 # We already link with -ldl if needed (see LIBDL below)
18170 SUDOERS_LIBS="${SUDOERS_LIBS} -lpam"
18171 $as_echo "#define HAVE_PAM 1" >>confdefs.h
18173 AUTH_OBJS="$AUTH_OBJS pam.lo";
18177 # Check whether --with-pam-login was given.
18178 if test "${with_pam_login+set}" = set; then :
18179 withval=$with_pam_login; case $with_pam_login in
18180 yes) $as_echo "#define HAVE_PAM_LOGIN 1" >>confdefs.h
18182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use PAM login" >&5
18183 $as_echo_n "checking whether to use PAM login... " >&6; }
18184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18185 $as_echo "yes" >&6; }
18188 *) as_fn_error $? "\"--with-pam-login does not take an argument.\"" "$LINENO" 5
18194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use PAM session support" >&5
18195 $as_echo_n "checking whether to use PAM session support... " >&6; }
18196 # Check whether --enable-pam_session was given.
18197 if test "${enable_pam_session+set}" = set; then :
18198 enableval=$enable_pam_session; case "$enableval" in
18199 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18200 $as_echo "yes" >&6; }
18202 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18203 $as_echo "no" >&6; }
18204 $as_echo "#define NO_PAM_SESSION 1" >>confdefs.h
18207 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18208 $as_echo "no" >&6; }
18209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&5
18210 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&2;}
18214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18215 $as_echo "yes" >&6; }
18221 if test ${with_aixauth-'no'} != "no"; then
18222 if test X"$with_aixauth" != X"maybe" -o X"$AUTH_EXCL" = X""; then
18223 { $as_echo "$as_me:${as_lineno-$LINENO}: using AIX general authentication" >&5
18224 $as_echo "$as_me: using AIX general authentication" >&6;}
18225 $as_echo "#define HAVE_AIXAUTH 1" >>confdefs.h
18227 AUTH_OBJS="$AUTH_OBJS aix_auth.lo";
18228 SUDOERS_LIBS="${SUDOERS_LIBS} -ls"
18233 if test ${with_bsdauth-'no'} != "no"; then
18234 ac_fn_c_check_header_mongrel "$LINENO" "bsd_auth.h" "ac_cv_header_bsd_auth_h" "$ac_includes_default"
18235 if test "x$ac_cv_header_bsd_auth_h" = xyes; then :
18236 $as_echo "#define HAVE_BSD_AUTH_H 1" >>confdefs.h
18238 AUTH_OBJS="$AUTH_OBJS bsdauth.lo"
18239 BSDAUTH_USAGE='[-a auth_type] '
18240 AUTH_EXCL=BSD_AUTH; BAMAN=1
18242 as_fn_error $? "BSD authentication was specified but bsd_auth.h could not be found" "$LINENO" 5
18248 if test ${CHECKSIA-'false'} = "true"; then
18249 for ac_func in sia_ses_init
18251 ac_fn_c_check_func "$LINENO" "sia_ses_init" "ac_cv_func_sia_ses_init"
18252 if test "x$ac_cv_func_sia_ses_init" = xyes; then :
18253 cat >>confdefs.h <<_ACEOF
18254 #define HAVE_SIA_SES_INIT 1
18262 if test "$found" = "true"; then
18264 AUTH_OBJS="$AUTH_OBJS sia.lo"
18268 if test ${with_fwtk-'no'} != "no"; then
18269 if test "$with_fwtk" != "yes"; then
18271 if test X"$with_rpath" = X"yes"; then
18273 *-*-hpux*) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_fwtk} -Wl,+b,${with_fwtk}"
18275 *) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_fwtk} -Wl,-R${with_fwtk}"
18279 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_fwtk}"
18281 if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
18282 blibpath_add="${blibpath_add}:${with_fwtk}"
18285 CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
18288 SUDOERS_LIBS="${SUDOERS_LIBS} -lauth -lfwall"
18289 AUTH_OBJS="$AUTH_OBJS fwtk.lo"
18292 if test ${with_SecurID-'no'} != "no"; then
18293 if test "$with_SecurID" != "yes"; then
18295 elif test -d /usr/ace/examples; then
18296 with_SecurID=/usr/ace/examples
18298 with_SecurID=/usr/ace
18300 CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
18302 if test X"$with_rpath" = X"yes"; then
18304 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${with_SecurID} -Wl,+b,${with_SecurID}"
18306 *) LDFLAGS="${LDFLAGS} -L${with_SecurID} -Wl,-R${with_SecurID}"
18310 LDFLAGS="${LDFLAGS} -L${with_SecurID}"
18312 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
18313 blibpath_add="${blibpath_add}:${with_SecurID}"
18316 SUDOERS_LIBS="${SUDOERS_LIBS} -laceclnt -lpthread"
18317 AUTH_OBJS="$AUTH_OBJS securid5.lo";
18321 if test -z "${AUTH_EXCL}" -a -n "$AUTH_DEF"; then
18322 for auth in $AUTH_DEF; do
18324 passwd) : ${with_passwd='maybe'};;
18329 if test ${with_kerb5-'no'} != "no"; then
18330 # Extract the first word of "krb5-config", so it can be a program name with args.
18331 set dummy krb5-config; ac_word=$2
18332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18333 $as_echo_n "checking for $ac_word... " >&6; }
18334 if ${ac_cv_prog_KRB5CONFIG+:} false; then :
18335 $as_echo_n "(cached) " >&6
18337 if test -n "$KRB5CONFIG"; then
18338 ac_cv_prog_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test.
18340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18341 for as_dir in $PATH
18344 test -z "$as_dir" && as_dir=.
18345 for ac_exec_ext in '' $ac_executable_extensions; do
18346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18347 ac_cv_prog_KRB5CONFIG="yes"
18348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18355 test -z "$ac_cv_prog_KRB5CONFIG" && ac_cv_prog_KRB5CONFIG=""""
18358 KRB5CONFIG=$ac_cv_prog_KRB5CONFIG
18359 if test -n "$KRB5CONFIG"; then
18360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5
18361 $as_echo "$KRB5CONFIG" >&6; }
18363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18364 $as_echo "no" >&6; }
18368 if test -n "$KRB5CONFIG"; then
18369 $as_echo "#define HAVE_KERB5 1" >>confdefs.h
18371 AUTH_OBJS="$AUTH_OBJS kerb5.lo"
18372 CPPFLAGS="$CPPFLAGS `krb5-config --cflags`"
18373 SUDOERS_LIBS="$SUDOERS_LIBS `krb5-config --libs`"
18374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
18375 $as_echo_n "checking whether we are using Heimdal... " >&6; }
18376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18377 /* end confdefs.h. */
18382 const char *tmp = heimdal_version;
18387 if ac_fn_c_try_compile "$LINENO"; then :
18389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18390 $as_echo "yes" >&6; }
18391 $as_echo "#define HAVE_HEIMDAL 1" >>confdefs.h
18396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18397 $as_echo "no" >&6; }
18401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18403 $as_echo "#define HAVE_KERB5 1" >>confdefs.h
18405 if test "$with_kerb5" = "yes"; then
18407 O_CPPFLAGS="$CPPFLAGS"
18408 for dir in "" "kerberosV/" "krb5/" "kerberos5/" "kerberosv5/"; do
18409 CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
18410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18411 /* end confdefs.h. */
18421 if ac_fn_c_try_cpp "$LINENO"; then :
18424 rm -f conftest.err conftest.i conftest.$ac_ext
18426 if test X"$found" = X"no"; then
18427 CPPFLAGS="$O_CPPFLAGS"
18428 { $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
18429 $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;}
18433 if test X"$with_rpath" = X"yes"; then
18435 *-*-hpux*) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_kerb5}/lib -Wl,+b,${with_kerb5}/lib"
18437 *) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_kerb5}/lib -Wl,-R${with_kerb5}/lib"
18441 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_kerb5}/lib"
18443 if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
18444 blibpath_add="${blibpath_add}:${with_kerb5}/lib"
18447 CPPFLAGS="$CPPFLAGS -I${with_kerb5}/include"
18450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
18451 $as_echo_n "checking whether we are using Heimdal... " >&6; }
18452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18453 /* end confdefs.h. */
18458 const char *tmp = heimdal_version;
18463 if ac_fn_c_try_compile "$LINENO"; then :
18465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18466 $as_echo "yes" >&6; }
18467 $as_echo "#define HAVE_HEIMDAL 1" >>confdefs.h
18469 # XXX - need to check whether -lcrypo is needed!
18470 SUDOERS_LIBS="${SUDOERS_LIBS} -lkrb5 -lcrypto -ldes -lcom_err -lasn1"
18471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lroken" >&5
18472 $as_echo_n "checking for main in -lroken... " >&6; }
18473 if ${ac_cv_lib_roken_main+:} false; then :
18474 $as_echo_n "(cached) " >&6
18476 ac_check_lib_save_LIBS=$LIBS
18477 LIBS="-lroken $LIBS"
18478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18479 /* end confdefs.h. */
18490 if ac_fn_c_try_link "$LINENO"; then :
18491 ac_cv_lib_roken_main=yes
18493 ac_cv_lib_roken_main=no
18495 rm -f core conftest.err conftest.$ac_objext \
18496 conftest$ac_exeext conftest.$ac_ext
18497 LIBS=$ac_check_lib_save_LIBS
18499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_main" >&5
18500 $as_echo "$ac_cv_lib_roken_main" >&6; }
18501 if test "x$ac_cv_lib_roken_main" = xyes; then :
18502 SUDOERS_LIBS="${SUDOERS_LIBS} -lroken"
18508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18509 $as_echo "no" >&6; }
18510 SUDOERS_LIBS="${SUDOERS_LIBS} -lkrb5 -lk5crypto -lcom_err"
18511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5support" >&5
18512 $as_echo_n "checking for main in -lkrb5support... " >&6; }
18513 if ${ac_cv_lib_krb5support_main+:} false; then :
18514 $as_echo_n "(cached) " >&6
18516 ac_check_lib_save_LIBS=$LIBS
18517 LIBS="-lkrb5support $LIBS"
18518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18519 /* end confdefs.h. */
18530 if ac_fn_c_try_link "$LINENO"; then :
18531 ac_cv_lib_krb5support_main=yes
18533 ac_cv_lib_krb5support_main=no
18535 rm -f core conftest.err conftest.$ac_objext \
18536 conftest$ac_exeext conftest.$ac_ext
18537 LIBS=$ac_check_lib_save_LIBS
18539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_main" >&5
18540 $as_echo "$ac_cv_lib_krb5support_main" >&6; }
18541 if test "x$ac_cv_lib_krb5support_main" = xyes; then :
18542 SUDOERS_LIBS="${SUDOERS_LIBS} -lkrb5support"
18547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18548 AUTH_OBJS="$AUTH_OBJS kerb5.lo"
18551 LIBS="${LIBS} ${SUDOERS_LIBS}"
18552 for ac_func in krb5_verify_user krb5_init_secure_context
18554 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18555 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18556 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18557 cat >>confdefs.h <<_ACEOF
18558 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18564 for ac_func in krb5_get_init_creds_opt_alloc
18566 ac_fn_c_check_func "$LINENO" "krb5_get_init_creds_opt_alloc" "ac_cv_func_krb5_get_init_creds_opt_alloc"
18567 if test "x$ac_cv_func_krb5_get_init_creds_opt_alloc" = xyes; then :
18568 cat >>confdefs.h <<_ACEOF
18569 #define HAVE_KRB5_GET_INIT_CREDS_OPT_ALLOC 1
18572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether krb5_get_init_creds_opt_free takes a context" >&5
18573 $as_echo_n "checking whether krb5_get_init_creds_opt_free takes a context... " >&6; }
18574 if ${sudo_cv_krb5_get_init_creds_opt_free_two_args+:} false; then :
18575 $as_echo_n "(cached) " >&6
18578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18579 /* end confdefs.h. */
18584 krb5_get_init_creds_opt_free(NULL, NULL);
18590 if ac_fn_c_try_compile "$LINENO"; then :
18591 sudo_cv_krb5_get_init_creds_opt_free_two_args=yes
18593 sudo_cv_krb5_get_init_creds_opt_free_two_args=no
18596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_krb5_get_init_creds_opt_free_two_args" >&5
18601 $as_echo "$sudo_cv_krb5_get_init_creds_opt_free_two_args" >&6; }
18606 if test X"$sudo_cv_krb5_get_init_creds_opt_free_two_args" = X"yes"; then
18607 $as_echo "#define HAVE_KRB5_GET_INIT_CREDS_OPT_FREE_TWO_ARGS 1" >>confdefs.h
18611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an instance name for Kerberos V" >&5
18612 $as_echo_n "checking whether to use an instance name for Kerberos V... " >&6; }
18613 # Check whether --enable-kerb5-instance was given.
18614 if test "${enable_kerb5_instance+set}" = set; then :
18615 enableval=$enable_kerb5_instance; case "$enableval" in
18616 yes) as_fn_error $? "\"must give --enable-kerb5-instance an argument.\"" "$LINENO" 5
18618 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18619 $as_echo "no" >&6; }
18621 *) cat >>confdefs.h <<EOF
18622 #define SUDO_KRB5_INSTANCE "$enableval"
18625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
18626 $as_echo "$enableval" >&6; }
18630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18631 $as_echo "no" >&6; }
18636 if test ${with_AFS-'no'} = "yes"; then
18638 # looks like the "standard" place for AFS libs is /usr/afsws/lib
18639 AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
18640 for i in $AFSLIBDIRS; do
18641 if test -d ${i}; then
18643 if test X"$with_rpath" = X"yes"; then
18645 *-*-hpux*) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L$i -Wl,+b,$i"
18647 *) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L$i -Wl,-R$i"
18651 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L$i"
18653 if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
18654 blibpath_add="${blibpath_add}:$i"
18657 FOUND_AFSLIBDIR=true
18660 if test -z "$FOUND_AFSLIBDIR"; then
18661 { $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 SUDOERS_LDFLAGS or rerun configure with the --with-libpath options." >&5
18662 $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 SUDOERS_LDFLAGS or rerun configure with the --with-libpath options." >&2;}
18665 # Order is important here. Note that we build AFS_LIBS from right to left
18666 # since AFS_LIBS may be initialized with BSD compat libs that must go last
18667 AFS_LIBS="-laudit ${AFS_LIBS}"
18668 for i in $AFSLIBDIRS; do
18669 if test -f ${i}/util.a; then
18670 AFS_LIBS="${i}/util.a ${AFS_LIBS}"
18675 if test -z "$FOUND_UTIL_A"; then
18676 AFS_LIBS="-lutil ${AFS_LIBS}"
18678 AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
18680 # AFS includes may live in /usr/include on some machines...
18681 for i in /usr/afsws/include; do
18682 if test -d ${i}; then
18683 CPPFLAGS="${CPPFLAGS} -I${i}"
18684 FOUND_AFSINCDIR=true
18688 if test -z "$FOUND_AFSLIBDIR"; then
18689 { $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
18690 $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;}
18693 AUTH_OBJS="$AUTH_OBJS afs.lo"
18696 if test ${with_DCE-'no'} = "yes"; then
18697 DCE_OBJS="${DCE_OBJS} dce_pwent.o"
18698 SUDOERS_LIBS="${SUDOERS_LIBS} -ldce"
18699 AUTH_OBJS="$AUTH_OBJS dce.lo"
18702 if test "${with_skey-'no'}" = "yes"; then
18703 O_LDFLAGS="$LDFLAGS"
18704 if test "$with_skey" != "yes"; then
18705 CPPFLAGS="${CPPFLAGS} -I${with_skey}/include"
18707 if test X"$with_rpath" = X"yes"; then
18709 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${with_skey}/lib -Wl,+b,${with_skey}/lib"
18711 *) LDFLAGS="${LDFLAGS} -L${with_skey}/lib -Wl,-R${with_skey}/lib"
18715 LDFLAGS="${LDFLAGS} -L${with_skey}/lib"
18717 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
18718 blibpath_add="${blibpath_add}:${with_skey}/lib"
18722 if test X"$with_rpath" = X"yes"; then
18724 *-*-hpux*) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_skey}/lib -Wl,+b,${with_skey}/lib"
18726 *) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_skey}/lib -Wl,-R${with_skey}/lib"
18730 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_skey}/lib"
18732 if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
18733 blibpath_add="${blibpath_add}:${with_skey}/lib"
18736 ac_fn_c_check_header_compile "$LINENO" "skey.h" "ac_cv_header_skey_h" "#include <stdio.h>
18738 if test "x$ac_cv_header_skey_h" = xyes; then :
18747 O_CPPFLAGS="$CPPFLAGS"
18748 for dir in "" "/usr/local" "/usr/contrib"; do
18749 test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
18750 ac_fn_c_check_header_compile "$LINENO" "skey.h" "ac_cv_header_skey_h" "#include <stdio.h>
18752 if test "x$ac_cv_header_skey_h" = xyes; then :
18758 if test "$found" = "no" -o -z "$dir"; then
18759 CPPFLAGS="$O_CPPFLAGS"
18762 if test X"$with_rpath" = X"yes"; then
18764 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
18766 *) LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
18770 LDFLAGS="${LDFLAGS} -L${dir}/lib"
18772 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
18773 blibpath_add="${blibpath_add}:${dir}/lib"
18777 if test X"$with_rpath" = X"yes"; then
18779 *-*-hpux*) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
18781 *) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
18785 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib"
18787 if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
18788 blibpath_add="${blibpath_add}:${dir}/lib"
18792 if test "$found" = "no"; then
18793 { $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
18794 $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;}
18797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lskey" >&5
18798 $as_echo_n "checking for main in -lskey... " >&6; }
18799 if ${ac_cv_lib_skey_main+:} false; then :
18800 $as_echo_n "(cached) " >&6
18802 ac_check_lib_save_LIBS=$LIBS
18803 LIBS="-lskey $LIBS"
18804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18805 /* end confdefs.h. */
18816 if ac_fn_c_try_link "$LINENO"; then :
18817 ac_cv_lib_skey_main=yes
18819 ac_cv_lib_skey_main=no
18821 rm -f core conftest.err conftest.$ac_objext \
18822 conftest$ac_exeext conftest.$ac_ext
18823 LIBS=$ac_check_lib_save_LIBS
18825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_skey_main" >&5
18826 $as_echo "$ac_cv_lib_skey_main" >&6; }
18827 if test "x$ac_cv_lib_skey_main" = xyes; then :
18830 { $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 SUDOERS_LDFLAGS" >&5
18831 $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 SUDOERS_LDFLAGS" >&2;}
18834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for skeyaccess in -lskey" >&5
18835 $as_echo_n "checking for skeyaccess in -lskey... " >&6; }
18836 if ${ac_cv_lib_skey_skeyaccess+:} false; then :
18837 $as_echo_n "(cached) " >&6
18839 ac_check_lib_save_LIBS=$LIBS
18840 LIBS="-lskey $LIBS"
18841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18842 /* end confdefs.h. */
18844 /* Override any GCC internal prototype to avoid an error.
18845 Use char because int might match the return type of a GCC
18846 builtin and then its argument prototype would still apply. */
18850 char skeyaccess ();
18854 return skeyaccess ();
18859 if ac_fn_c_try_link "$LINENO"; then :
18860 ac_cv_lib_skey_skeyaccess=yes
18862 ac_cv_lib_skey_skeyaccess=no
18864 rm -f core conftest.err conftest.$ac_objext \
18865 conftest$ac_exeext conftest.$ac_ext
18866 LIBS=$ac_check_lib_save_LIBS
18868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_skey_skeyaccess" >&5
18869 $as_echo "$ac_cv_lib_skey_skeyaccess" >&6; }
18870 if test "x$ac_cv_lib_skey_skeyaccess" = xyes; then :
18871 $as_echo "#define HAVE_SKEYACCESS 1" >>confdefs.h
18876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RFC1938-compliant skeychallenge" >&5
18877 $as_echo_n "checking for RFC1938-compliant skeychallenge... " >&6; }
18878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18879 /* end confdefs.h. */
18885 skeychallenge(NULL, NULL, NULL, 0);
18891 if ac_fn_c_try_compile "$LINENO"; then :
18893 $as_echo "#define HAVE_RFC1938_SKEYCHALLENGE 1" >>confdefs.h
18895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18896 $as_echo "yes" >&6; }
18900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18901 $as_echo "no" >&6; }
18905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18907 LDFLAGS="$O_LDFLAGS"
18908 SUDOERS_LIBS="${SUDOERS_LIBS} -lskey"
18909 AUTH_OBJS="$AUTH_OBJS rfc1938.lo"
18912 if test "${with_opie-'no'}" = "yes"; then
18913 O_LDFLAGS="$LDFLAGS"
18914 if test "$with_opie" != "yes"; then
18915 CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
18917 if test X"$with_rpath" = X"yes"; then
18919 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${with_opie}/lib -Wl,+b,${with_opie}/lib"
18921 *) LDFLAGS="${LDFLAGS} -L${with_opie}/lib -Wl,-R${with_opie}/lib"
18925 LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
18927 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
18928 blibpath_add="${blibpath_add}:${with_opie}/lib"
18932 if test X"$with_rpath" = X"yes"; then
18934 *-*-hpux*) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_opie}/lib -Wl,+b,${with_opie}/lib"
18936 *) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_opie}/lib -Wl,-R${with_opie}/lib"
18940 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_opie}/lib"
18942 if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
18943 blibpath_add="${blibpath_add}:${with_opie}/lib"
18946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18947 /* end confdefs.h. */
18957 if ac_fn_c_try_cpp "$LINENO"; then :
18962 rm -f conftest.err conftest.i conftest.$ac_ext
18965 O_CPPFLAGS="$CPPFLAGS"
18966 for dir in "" "/usr/local" "/usr/contrib"; do
18967 test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
18968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18969 /* end confdefs.h. */
18979 if ac_fn_c_try_cpp "$LINENO"; then :
18982 rm -f conftest.err conftest.i conftest.$ac_ext
18984 if test "$found" = "no" -o -z "$dir"; then
18985 CPPFLAGS="$O_CPPFLAGS"
18988 if test X"$with_rpath" = X"yes"; then
18990 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
18992 *) LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
18996 LDFLAGS="${LDFLAGS} -L${dir}/lib"
18998 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
18999 blibpath_add="${blibpath_add}:${dir}/lib"
19003 if test X"$with_rpath" = X"yes"; then
19005 *-*-hpux*) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
19007 *) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
19011 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib"
19013 if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
19014 blibpath_add="${blibpath_add}:${dir}/lib"
19018 if test "$found" = "no"; then
19019 { $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
19020 $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;}
19023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lopie" >&5
19024 $as_echo_n "checking for main in -lopie... " >&6; }
19025 if ${ac_cv_lib_opie_main+:} false; then :
19026 $as_echo_n "(cached) " >&6
19028 ac_check_lib_save_LIBS=$LIBS
19029 LIBS="-lopie $LIBS"
19030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19031 /* end confdefs.h. */
19042 if ac_fn_c_try_link "$LINENO"; then :
19043 ac_cv_lib_opie_main=yes
19045 ac_cv_lib_opie_main=no
19047 rm -f core conftest.err conftest.$ac_objext \
19048 conftest$ac_exeext conftest.$ac_ext
19049 LIBS=$ac_check_lib_save_LIBS
19051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opie_main" >&5
19052 $as_echo "$ac_cv_lib_opie_main" >&6; }
19053 if test "x$ac_cv_lib_opie_main" = xyes; then :
19056 { $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 SUDOERS_LDFLAGS" >&5
19057 $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 SUDOERS_LDFLAGS" >&2;}
19060 LDFLAGS="$O_LDFLAGS"
19061 SUDOERS_LIBS="${SUDOERS_LIBS} -lopie"
19062 AUTH_OBJS="$AUTH_OBJS rfc1938.lo"
19065 if test ${with_passwd-'no'} != "no"; then
19066 if test -z "$LIB_CRYPT"; then
19068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
19069 $as_echo_n "checking for library containing crypt... " >&6; }
19070 if ${ac_cv_search_crypt+:} false; then :
19071 $as_echo_n "(cached) " >&6
19073 ac_func_search_save_LIBS=$LIBS
19074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19075 /* end confdefs.h. */
19077 /* Override any GCC internal prototype to avoid an error.
19078 Use char because int might match the return type of a GCC
19079 builtin and then its argument prototype would still apply. */
19092 for ac_lib in '' crypt crypt_d ufc; do
19093 if test -z "$ac_lib"; then
19094 ac_res="none required"
19097 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19099 if ac_fn_c_try_link "$LINENO"; then :
19100 ac_cv_search_crypt=$ac_res
19102 rm -f core conftest.err conftest.$ac_objext \
19104 if ${ac_cv_search_crypt+:} false; then :
19108 if ${ac_cv_search_crypt+:} false; then :
19111 ac_cv_search_crypt=no
19113 rm conftest.$ac_ext
19114 LIBS=$ac_func_search_save_LIBS
19116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
19117 $as_echo "$ac_cv_search_crypt" >&6; }
19118 ac_res=$ac_cv_search_crypt
19119 if test "$ac_res" != no; then :
19120 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19121 test -n "$ac_lib" && SUDOERS_LIBS="${SUDOERS_LIBS} $ac_res"
19127 if test "$CHECKSHADOW" = "true" -a -n "$shadow_funcs"; then
19129 LIBS="$LIBS $shadow_libs"
19131 for ac_func in $shadow_funcs
19133 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19134 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19135 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19136 cat >>confdefs.h <<_ACEOF
19137 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19143 if test "$found" = "yes"; then
19144 SUDOERS_LIBS="$SUDOERS_LIBS $shadow_libs"
19145 elif test -n "$shadow_libs_optional"; then
19146 LIBS="$LIBS $shadow_libs_optional"
19147 for ac_func in $shadow_funcs
19149 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19150 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19151 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19152 cat >>confdefs.h <<_ACEOF
19153 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19159 if test "$found" = "yes"; then
19160 SUDOERS_LIBS="$SUDOERS_LIBS $shadow_libs $shadow_libs_optional"
19163 if test "$found" = "yes"; then
19164 case "$shadow_funcs" in
19165 *getprpwnam*) SECUREWARE=1;;
19167 test -n "$shadow_defs" && OSDEFS="${OSDEFS} $shadow_defs"
19173 if test "$CHECKSHADOW" = "true"; then
19174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspnam" >&5
19175 $as_echo_n "checking for library containing getspnam... " >&6; }
19176 if ${ac_cv_search_getspnam+:} false; then :
19177 $as_echo_n "(cached) " >&6
19179 ac_func_search_save_LIBS=$LIBS
19180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19181 /* end confdefs.h. */
19183 /* Override any GCC internal prototype to avoid an error.
19184 Use char because int might match the return type of a GCC
19185 builtin and then its argument prototype would still apply. */
19193 return getspnam ();
19198 for ac_lib in '' gen; do
19199 if test -z "$ac_lib"; then
19200 ac_res="none required"
19203 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19205 if ac_fn_c_try_link "$LINENO"; then :
19206 ac_cv_search_getspnam=$ac_res
19208 rm -f core conftest.err conftest.$ac_objext \
19210 if ${ac_cv_search_getspnam+:} false; then :
19214 if ${ac_cv_search_getspnam+:} false; then :
19217 ac_cv_search_getspnam=no
19219 rm conftest.$ac_ext
19220 LIBS=$ac_func_search_save_LIBS
19222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspnam" >&5
19223 $as_echo "$ac_cv_search_getspnam" >&6; }
19224 ac_res=$ac_cv_search_getspnam
19225 if test "$ac_res" != no; then :
19226 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19227 $as_echo "#define HAVE_GETSPNAM 1" >>confdefs.h
19228 CHECKSHADOW=false; test -n "$ac_lib" && SUDOERS_LIBS="${SUDOERS_LIBS} $ac_res"
19232 if test "$CHECKSHADOW" = "true"; then
19233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getprpwnam" >&5
19234 $as_echo_n "checking for library containing getprpwnam... " >&6; }
19235 if ${ac_cv_search_getprpwnam+:} false; then :
19236 $as_echo_n "(cached) " >&6
19238 ac_func_search_save_LIBS=$LIBS
19239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19240 /* end confdefs.h. */
19242 /* Override any GCC internal prototype to avoid an error.
19243 Use char because int might match the return type of a GCC
19244 builtin and then its argument prototype would still apply. */
19248 char getprpwnam ();
19252 return getprpwnam ();
19257 for ac_lib in '' sec security prot; do
19258 if test -z "$ac_lib"; then
19259 ac_res="none required"
19262 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19264 if ac_fn_c_try_link "$LINENO"; then :
19265 ac_cv_search_getprpwnam=$ac_res
19267 rm -f core conftest.err conftest.$ac_objext \
19269 if ${ac_cv_search_getprpwnam+:} false; then :
19273 if ${ac_cv_search_getprpwnam+:} false; then :
19276 ac_cv_search_getprpwnam=no
19278 rm conftest.$ac_ext
19279 LIBS=$ac_func_search_save_LIBS
19281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getprpwnam" >&5
19282 $as_echo "$ac_cv_search_getprpwnam" >&6; }
19283 ac_res=$ac_cv_search_getprpwnam
19284 if test "$ac_res" != no; then :
19285 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19286 $as_echo "#define HAVE_GETPRPWNAM 1" >>confdefs.h
19287 CHECKSHADOW=false; SECUREWARE=1; test -n "$ac_lib" && SUDOERS_LIBS="${SUDOERS_LIBS} $ac_res"
19291 if test -n "$SECUREWARE"; then
19292 for ac_func in bigcrypt set_auth_parameters initprivs
19294 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19295 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19296 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19297 cat >>confdefs.h <<_ACEOF
19298 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19304 AUTH_OBJS="$AUTH_OBJS secureware.lo"
19308 if test ${with_ldap-'no'} != "no"; then
19309 _LDFLAGS="$LDFLAGS"
19310 if test "$with_ldap" != "yes"; then
19312 if test X"$with_rpath" = X"yes"; then
19314 *-*-hpux*) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_ldap}/lib -Wl,+b,${with_ldap}/lib"
19316 *) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_ldap}/lib -Wl,-R${with_ldap}/lib"
19320 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_ldap}/lib"
19322 if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
19323 blibpath_add="${blibpath_add}:${with_ldap}/lib"
19327 if test X"$with_rpath" = X"yes"; then
19329 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -Wl,+b,${with_ldap}/lib"
19331 *) LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -Wl,-R${with_ldap}/lib"
19335 LDFLAGS="${LDFLAGS} -L${with_ldap}/lib"
19337 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
19338 blibpath_add="${blibpath_add}:${with_ldap}/lib"
19341 CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
19344 SUDOERS_OBJS="${SUDOERS_OBJS} ldap.lo"
19347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
19348 $as_echo_n "checking for LDAP libraries... " >&6; }
19352 for l in -lldap -llber '-lssl -lcrypto'; do
19354 LDAP_LIBS="${LDAP_LIBS} $l"
19355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19356 /* end confdefs.h. */
19357 #include <sys/types.h>
19363 (void)ldap_init(0, 0)
19368 if ac_fn_c_try_link "$LINENO"; then :
19371 rm -f core conftest.err conftest.$ac_objext \
19372 conftest$ac_exeext conftest.$ac_ext
19374 if test "$found" = "no"; then
19377 for l in -libmldap -lidsldif; do
19379 LDAP_LIBS="${LDAP_LIBS} $l"
19380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19381 /* end confdefs.h. */
19382 #include <sys/types.h>
19388 (void)ldap_init(0, 0)
19393 if ac_fn_c_try_link "$LINENO"; then :
19396 rm -f core conftest.err conftest.$ac_objext \
19397 conftest$ac_exeext conftest.$ac_ext
19400 if test "$found" = "no"; then
19401 LIBS="${_LIBS} -lldap"
19403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using -lldap" >&5
19404 $as_echo "not found, using -lldap" >&6; }
19406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDAP_LIBS" >&5
19407 $as_echo "$LDAP_LIBS" >&6; }
19410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ber_set_option" >&5
19411 $as_echo_n "checking for library containing ber_set_option... " >&6; }
19412 if ${ac_cv_search_ber_set_option+:} false; then :
19413 $as_echo_n "(cached) " >&6
19415 ac_func_search_save_LIBS=$LIBS
19416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19417 /* end confdefs.h. */
19419 /* Override any GCC internal prototype to avoid an error.
19420 Use char because int might match the return type of a GCC
19421 builtin and then its argument prototype would still apply. */
19425 char ber_set_option ();
19429 return ber_set_option ();
19434 for ac_lib in '' lber; do
19435 if test -z "$ac_lib"; then
19436 ac_res="none required"
19439 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19441 if ac_fn_c_try_link "$LINENO"; then :
19442 ac_cv_search_ber_set_option=$ac_res
19444 rm -f core conftest.err conftest.$ac_objext \
19446 if ${ac_cv_search_ber_set_option+:} false; then :
19450 if ${ac_cv_search_ber_set_option+:} false; then :
19453 ac_cv_search_ber_set_option=no
19455 rm conftest.$ac_ext
19456 LIBS=$ac_func_search_save_LIBS
19458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ber_set_option" >&5
19459 $as_echo "$ac_cv_search_ber_set_option" >&6; }
19460 ac_res=$ac_cv_search_ber_set_option
19461 if test "$ac_res" != no; then :
19462 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19468 if test X"$found" = X"yes" -a X"$LIBS" != X"$OLIBS"; then
19469 LDAP_LIBS="$LDAP_LIBS -llber"
19471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lber.h is needed" >&5
19472 $as_echo_n "checking whether lber.h is needed... " >&6; }
19473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19474 /* end confdefs.h. */
19475 #include <sys/types.h>
19480 (void)ldap_init(0, 0)
19485 if ac_fn_c_try_link "$LINENO"; then :
19486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19487 $as_echo "no" >&6; }
19490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19491 $as_echo "yes" >&6; }
19492 $as_echo "#define HAVE_LBER_H 1" >>confdefs.h
19495 rm -f core conftest.err conftest.$ac_objext \
19496 conftest$ac_exeext conftest.$ac_ext
19498 for ac_header in sasl/sasl.h sasl.h
19500 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19501 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19502 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19503 cat >>confdefs.h <<_ACEOF
19504 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19506 for ac_func in ldap_sasl_interactive_bind_s
19508 ac_fn_c_check_func "$LINENO" "ldap_sasl_interactive_bind_s" "ac_cv_func_ldap_sasl_interactive_bind_s"
19509 if test "x$ac_cv_func_ldap_sasl_interactive_bind_s" = xyes; then :
19510 cat >>confdefs.h <<_ACEOF
19511 #define HAVE_LDAP_SASL_INTERACTIVE_BIND_S 1
19523 for ac_header in ldap_ssl.h mps/ldap_ssl.h
19525 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19526 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <ldap.h>
19528 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19529 cat >>confdefs.h <<_ACEOF
19530 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19537 for ac_func in ldap_initialize ldap_start_tls_s ldapssl_init ldapssl_set_strength ldap_unbind_ext_s ldap_str2dn ldap_create ldap_sasl_bind_s ldap_ssl_client_init ldap_start_tls_s_np
19539 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19540 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19541 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19542 cat >>confdefs.h <<_ACEOF
19543 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19549 for ac_func in ldap_search_ext_s ldap_search_st
19551 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19552 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19553 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19554 cat >>confdefs.h <<_ACEOF
19555 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19562 if test X"$check_gss_krb5_ccache_name" = X"yes"; then
19563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_ccache_name in -lgssapi" >&5
19564 $as_echo_n "checking for gss_krb5_ccache_name in -lgssapi... " >&6; }
19565 if ${ac_cv_lib_gssapi_gss_krb5_ccache_name+:} false; then :
19566 $as_echo_n "(cached) " >&6
19568 ac_check_lib_save_LIBS=$LIBS
19569 LIBS="-lgssapi $LIBS"
19570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19571 /* end confdefs.h. */
19573 /* Override any GCC internal prototype to avoid an error.
19574 Use char because int might match the return type of a GCC
19575 builtin and then its argument prototype would still apply. */
19579 char gss_krb5_ccache_name ();
19583 return gss_krb5_ccache_name ();
19588 if ac_fn_c_try_link "$LINENO"; then :
19589 ac_cv_lib_gssapi_gss_krb5_ccache_name=yes
19591 ac_cv_lib_gssapi_gss_krb5_ccache_name=no
19593 rm -f core conftest.err conftest.$ac_objext \
19594 conftest$ac_exeext conftest.$ac_ext
19595 LIBS=$ac_check_lib_save_LIBS
19597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_krb5_ccache_name" >&5
19598 $as_echo "$ac_cv_lib_gssapi_gss_krb5_ccache_name" >&6; }
19599 if test "x$ac_cv_lib_gssapi_gss_krb5_ccache_name" = xyes; then :
19600 $as_echo "#define HAVE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
19602 LDAP_LIBS="${LDAP_LIBS} -lgssapi"
19604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_ccache_name in -lgssapi_krb5" >&5
19605 $as_echo_n "checking for gss_krb5_ccache_name in -lgssapi_krb5... " >&6; }
19606 if ${ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name+:} false; then :
19607 $as_echo_n "(cached) " >&6
19609 ac_check_lib_save_LIBS=$LIBS
19610 LIBS="-lgssapi_krb5 $LIBS"
19611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19612 /* end confdefs.h. */
19614 /* Override any GCC internal prototype to avoid an error.
19615 Use char because int might match the return type of a GCC
19616 builtin and then its argument prototype would still apply. */
19620 char gss_krb5_ccache_name ();
19624 return gss_krb5_ccache_name ();
19629 if ac_fn_c_try_link "$LINENO"; then :
19630 ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=yes
19632 ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=no
19634 rm -f core conftest.err conftest.$ac_objext \
19635 conftest$ac_exeext conftest.$ac_ext
19636 LIBS=$ac_check_lib_save_LIBS
19638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&5
19639 $as_echo "$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&6; }
19640 if test "x$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" = xyes; then :
19641 $as_echo "#define HAVE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
19643 LDAP_LIBS="${LDAP_LIBS} -lgssapi_krb5"
19650 # gssapi headers may be separate or part of Kerberos V
19652 O_CPPFLAGS="$CPPFLAGS"
19653 for dir in "" "kerberosV" "krb5" "kerberos5" "kerberosv5"; do
19654 test X"$dir" != X"" && CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
19655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19656 /* end confdefs.h. */
19657 #include <gssapi/gssapi.h>
19666 if ac_fn_c_try_cpp "$LINENO"; then :
19667 found="gssapi/gssapi.h"; break
19669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19670 /* end confdefs.h. */
19671 #include <gssapi.h>
19680 if ac_fn_c_try_cpp "$LINENO"; then :
19681 found="gssapi.h"; break
19683 rm -f conftest.err conftest.i conftest.$ac_ext
19685 rm -f conftest.err conftest.i conftest.$ac_ext
19687 if test X"$found" != X"no"; then
19688 for ac_header in $found
19690 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19691 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19692 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19693 cat >>confdefs.h <<_ACEOF
19694 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19701 if test X"$found" = X"gssapi/gssapi.h"; then
19702 for ac_header in gssapi/gssapi_krb5.h
19704 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_krb5.h" "ac_cv_header_gssapi_gssapi_krb5_h" "$ac_includes_default"
19705 if test "x$ac_cv_header_gssapi_gssapi_krb5_h" = xyes; then :
19706 cat >>confdefs.h <<_ACEOF
19707 #define HAVE_GSSAPI_GSSAPI_KRB5_H 1
19716 CPPFLAGS="$O_CPPFLAGS"
19717 { $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
19718 $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;}
19722 SUDOERS_LIBS="${SUDOERS_LIBS} ${LDAP_LIBS}"
19724 LDFLAGS="$_LDFLAGS"
19728 # How to do dynamic object loading.
19729 # We support dlopen() and sh_load(), else fall back to static loading.
19731 case "$lt_cv_dlopen" in
19733 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
19735 SUDOERS_OBJS="$SUDOERS_OBJS plugin_error.lo"
19736 LT_STATIC="--tag=disable-static"
19739 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19741 SUDOERS_OBJS="$SUDOERS_OBJS plugin_error.lo"
19742 LT_STATIC="--tag=disable-static"
19743 case " $LIBOBJS " in
19744 *" dlopen.$ac_objext "* ) ;;
19745 *) LIBOBJS="$LIBOBJS dlopen.$ac_objext"
19751 if test X"${ac_cv_func_dlopen}" = X"yes"; then
19752 as_fn_error $? "\"dlopen present but libtool doesn't appear to support your platform.\"" "$LINENO" 5
19754 # Preload sudoers module symbols
19755 SUDO_OBJS="${SUDO_OBJS} preload.o"
19756 SUDO_LIBS="${SUDO_LIBS} \$(top_builddir)/plugins/sudoers/sudoers.la"
19758 case " $LIBOBJS " in
19759 *" dlopen.$ac_objext "* ) ;;
19760 *) LIBOBJS="$LIBOBJS dlopen.$ac_objext"
19768 # Add library needed for dynamic loading, if any.
19770 LIBDL="$lt_cv_dlopen_libs"
19771 if test X"$LIBDL" != X""; then
19772 SUDO_LIBS="${SUDO_LIBS} $LIBDL"
19773 SUDOERS_LIBS="${SUDOERS_LIBS} $LIBDL"
19776 # On HP-UX, you cannot dlopen() a shared object that uses pthreads
19777 # unless the main program is linked against -lpthread. Since we
19778 # have no knowledge what libraries a plugin may depend on, we always
19779 # link against -lpthread on HP-UX if it is available.
19780 # This check should go after all other libraries tests.
19783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
19784 $as_echo_n "checking for main in -lpthread... " >&6; }
19785 if ${ac_cv_lib_pthread_main+:} false; then :
19786 $as_echo_n "(cached) " >&6
19788 ac_check_lib_save_LIBS=$LIBS
19789 LIBS="-lpthread $LIBS"
19790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19791 /* end confdefs.h. */
19802 if ac_fn_c_try_link "$LINENO"; then :
19803 ac_cv_lib_pthread_main=yes
19805 ac_cv_lib_pthread_main=no
19807 rm -f core conftest.err conftest.$ac_objext \
19808 conftest$ac_exeext conftest.$ac_ext
19809 LIBS=$ac_check_lib_save_LIBS
19811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
19812 $as_echo "$ac_cv_lib_pthread_main" >&6; }
19813 if test "x$ac_cv_lib_pthread_main" = xyes; then :
19814 SUDO_LIBS="${SUDO_LIBS} -lpthread"
19820 if test -n "$blibpath"; then
19821 if test -n "$blibpath_add"; then
19822 SUDOERS_LDFLAGS="$SUDOERS_LDFLAGS -Wl,-blibpath:${blibpath}${blibpath_add}"
19823 elif test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
19824 SUDOERS_LDFLAGS="$SUDOERS_LDFLAGS -Wl,-blibpath:${blibpath}"
19828 if test "$utmp_style" = "LEGACY"; then
19829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utmp file path" >&5
19830 $as_echo_n "checking for utmp file path... " >&6; }
19832 for p in "/var/run/utmp" "/var/adm/utmp" "/etc/utmp"; do
19833 if test -r "$p"; then
19835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
19836 $as_echo "$p" >&6; }
19837 cat >>confdefs.h <<EOF
19838 #define _PATH_UTMP "$p"
19844 if test X"$found" != X"yes"; then
19845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19846 $as_echo "not found" >&6; }
19850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log file location" >&5
19851 $as_echo_n "checking for log file location... " >&6; }
19852 if test -n "$with_logpath"; then
19853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_logpath" >&5
19854 $as_echo "$with_logpath" >&6; }
19855 cat >>confdefs.h <<EOF
19856 #define _PATH_SUDO_LOGFILE "$with_logpath"
19859 elif test -d "/var/log"; then
19860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /var/log/sudo.log" >&5
19861 $as_echo "/var/log/sudo.log" >&6; }
19862 cat >>confdefs.h <<\EOF
19863 #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
19866 elif test -d "/var/adm"; then
19867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /var/adm/sudo.log" >&5
19868 $as_echo "/var/adm/sudo.log" >&6; }
19869 cat >>confdefs.h <<\EOF
19870 #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
19873 elif test -d "/usr/adm"; then
19874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /usr/adm/sudo.log" >&5
19875 $as_echo "/usr/adm/sudo.log" >&6; }
19876 cat >>confdefs.h <<\EOF
19877 #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
19881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
19882 $as_echo "unknown" >&6; }
19885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timestamp file location" >&5
19886 $as_echo_n "checking for timestamp file location... " >&6; }
19887 timedir="$with_timedir"
19888 if test -z "$timedir"; then
19889 for d in /var/db /var/lib /var/adm /usr/adm; do
19890 if test -d "$d"; then
19896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $timedir" >&5
19897 $as_echo "$timedir" >&6; }
19898 cat >>confdefs.h <<EOF
19899 #define _PATH_SUDO_TIMEDIR "$timedir"
19904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for I/O log dir location" >&5
19905 $as_echo_n "checking for I/O log dir location... " >&6; }
19906 if test "${with_iologdir-yes}" != "yes"; then
19907 iolog_dir="$with_iologdir"
19908 elif test -d "/var/log"; then
19909 iolog_dir="/var/log/sudo-io"
19910 elif test -d "/var/adm"; then
19911 iolog_dir="/var/adm/sudo-io"
19913 iolog_dir="/usr/adm/sudo-io"
19915 if test "${with_iologdir}" != "no"; then
19916 cat >>confdefs.h <<EOF
19917 #define _PATH_SUDO_IO_LOGDIR "$iolog_dir"
19921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $iolog_dir" >&5
19922 $as_echo "$iolog_dir" >&6; }
19925 case "$with_passwd" in
19927 AUTH_OBJS="$AUTH_OBJS getspwuid.lo passwd.lo"
19930 $as_echo "#define WITHOUT_PASSWD 1" >>confdefs.h
19932 if test -z "$AUTH_OBJS"; then
19933 as_fn_error $? "no authentication methods defined." "$LINENO" 5
19937 AUTH_OBJS=${AUTH_OBJS# }
19938 _AUTH=`echo "$AUTH_OBJS" | sed -e 's/\.lo//g' -e 's/getspwuid *//'`
19939 { $as_echo "$as_me:${as_lineno-$LINENO}: using the following authentication methods: $_AUTH" >&5
19940 $as_echo "$as_me: using the following authentication methods: $_AUTH" >&6;}
19942 if test -n "$LIBS"; then
19947 for sl in ${SUDO_LIBS} ${SUDOERS_LIBS} ${NET_LIBS}; do
19948 test $l = $sl && dupe=1
19950 test $dupe = 0 && LIBS="${LIBS} $l"
19954 if test -n "$GCC"; then
19955 if test X"$enable_warnings" = X"yes" -o X"$with_devel" = X"yes"; then
19956 CFLAGS="${CFLAGS} -Wall"
19958 if test X"$enable_werror" = X"yes"; then
19959 CFLAGS="${CFLAGS} -Werror"
19963 test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
19965 if test X"$with_noexec" != X"no" -o X"$with_selinux" != X"no"; then
19966 oexec_prefix="$exec_prefix"
19967 if test "$exec_prefix" = '$(prefix)'; then
19968 if test "$prefix" = "NONE"; then
19969 exec_prefix="$ac_default_prefix"
19971 exec_prefix="$prefix"
19974 if test X"$with_noexec" != X"no"; then
19975 PROGS="${PROGS} libsudo_noexec.la"
19976 INSTALL_NOEXEC="install-noexec"
19978 noexec_file="$with_noexec"
19980 while test X"$noexec_file" != X"$_noexec_file"; do
19981 _noexec_file="$noexec_file"
19982 eval noexec_file="$_noexec_file"
19984 cat >>confdefs.h <<EOF
19985 #define _PATH_SUDO_NOEXEC "$noexec_file"
19989 if test X"$with_selinux" != X"no"; then
19990 sesh_file="$libexecdir/sesh"
19992 while test X"$sesh_file" != X"$_sesh_file"; do
19993 _sesh_file="$sesh_file"
19994 eval sesh_file="$_sesh_file"
19996 cat >>confdefs.h <<EOF
19997 #define _PATH_SUDO_SESH "$sesh_file"
20001 PLUGINDIR="$with_plugindir"
20003 while test X"$PLUGINDIR" != X"$_PLUGINDIR"; do
20004 _PLUGINDIR="$PLUGINDIR"
20005 eval PLUGINDIR="$_PLUGINDIR"
20007 cat >>confdefs.h <<EOF
20008 #define _PATH_SUDO_PLUGIN_DIR "$PLUGINDIR/"
20011 cat >>confdefs.h <<EOF
20012 #define SUDOERS_PLUGIN "sudoers${SOEXT}"
20015 exec_prefix="$oexec_prefix"
20018 if test X"$prefix" = X"NONE"; then
20019 test "$mandir" = '${datarootdir}/man' && mandir='$(prefix)/man'
20021 test "$mandir" = '${datarootdir}/man' && mandir='$(datarootdir)/man'
20023 test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
20024 test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
20025 test "$libexecdir" = '${exec_prefix}/libexec' && libexecdir='$(exec_prefix)/libexec'
20026 test "$includedir" = '${prefix}/include' && includedir='$(prefix)/include'
20027 test "$datarootdir" = '${prefix}/share' && datarootdir='$(prefix)/share'
20028 test "$docdir" = '${datarootdir}/doc/${PACKAGE_TARNAME}' && docdir='$(datarootdir)/doc/$(PACKAGE_TARNAME)'
20029 test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
20031 ac_config_files="$ac_config_files Makefile common/Makefile compat/Makefile doc/Makefile include/Makefile src/sudo_usage.h src/Makefile plugins/sample/Makefile plugins/sample_group/Makefile plugins/sudoers/Makefile plugins/sudoers/sudoers"
20033 cat >confcache <<\_ACEOF
20034 # This file is a shell script that caches the results of configure
20035 # tests run on this system so they can be shared between configure
20036 # scripts and configure runs, see configure's option --config-cache.
20037 # It is not useful on other systems. If it contains results you don't
20038 # want to keep, you may remove or edit it.
20040 # config.status only pays attention to the cache file if you give it
20041 # the --recheck option to rerun configure.
20043 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20044 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20045 # following values.
20049 # The following way of writing the cache mishandles newlines in values,
20050 # but we know of no workaround that is simple, portable, and efficient.
20051 # So, we kill variables containing newlines.
20052 # Ultrix sh set writes to stderr and can't be redirected directly,
20053 # and sets the high bit in the cache file unless we assign to the vars.
20055 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20056 eval ac_val=\$$ac_var
20060 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20061 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20064 _ | IFS | as_nl) ;; #(
20065 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20066 *) { eval $ac_var=; unset $ac_var;} ;;
20072 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20073 *${as_nl}ac_space=\ *)
20074 # `set' does not quote correctly, so add quotes: double-quote
20075 # substitution turns \\\\ into \\, and sed turns \\ into \.
20078 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20081 # `set' quotes correctly as required by POSIX, so do not add quotes.
20082 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20091 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20093 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20095 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20096 if test -w "$cache_file"; then
20097 if test "x$cache_file" != "x/dev/null"; then
20098 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20099 $as_echo "$as_me: updating cache $cache_file" >&6;}
20100 if test ! -f "$cache_file" || test -h "$cache_file"; then
20101 cat confcache >"$cache_file"
20103 case $cache_file in #(
20105 mv -f confcache "$cache_file"$$ &&
20106 mv -f "$cache_file"$$ "$cache_file" ;; #(
20108 mv -f confcache "$cache_file" ;;
20113 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20114 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20119 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20120 # Let make expand exec_prefix.
20121 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20123 DEFS=-DHAVE_CONFIG_H
20128 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20129 # 1. Remove the extension, and $U if already installed.
20130 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20131 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20132 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20133 # will be set to the directory where LIBOBJS objects are built.
20134 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20135 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20137 LIBOBJS=$ac_libobjs
20139 LTLIBOBJS=$ac_ltlibobjs
20143 : "${CONFIG_STATUS=./config.status}"
20145 ac_clean_files_save=$ac_clean_files
20146 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20147 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20148 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20150 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20152 # Generated by $as_me.
20153 # Run this file to recreate the current configuration.
20154 # Compiler output produced by configure, useful for debugging
20155 # configure, is in config.log if it exists.
20158 ac_cs_recheck=false
20161 SHELL=\${CONFIG_SHELL-$SHELL}
20164 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20165 ## -------------------- ##
20166 ## M4sh Initialization. ##
20167 ## -------------------- ##
20169 # Be more Bourne compatible
20170 DUALCASE=1; export DUALCASE # for MKS sh
20171 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20174 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20175 # is contrary to our usage. Disable this feature.
20176 alias -g '${1+"$@"}'='"$@"'
20177 setopt NO_GLOB_SUBST
20179 case `(set -o) 2>/dev/null` in #(
20191 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20192 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20193 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20194 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20195 # Prefer a ksh shell builtin over an external printf program on Solaris,
20196 # but without wasting forks for bash or zsh.
20197 if test -z "$BASH_VERSION$ZSH_VERSION" \
20198 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20199 as_echo='print -r --'
20200 as_echo_n='print -rn --'
20201 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20202 as_echo='printf %s\n'
20203 as_echo_n='printf %s'
20205 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20206 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20207 as_echo_n='/usr/ucb/echo -n'
20209 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20210 as_echo_n_body='eval
20214 expr "X$arg" : "X\\(.*\\)$as_nl";
20215 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20217 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20219 export as_echo_n_body
20220 as_echo_n='sh -c $as_echo_n_body as_echo'
20222 export as_echo_body
20223 as_echo='sh -c $as_echo_body as_echo'
20226 # The user is always right.
20227 if test "${PATH_SEPARATOR+set}" != set; then
20229 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20230 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20237 # We need space, tab and new line, in precisely that order. Quoting is
20238 # there to prevent editors from complaining about space-tab.
20239 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20240 # splitting by setting IFS to empty value.)
20243 # Find who we are. Look in the path if we contain no directory separator.
20246 *[\\/]* ) as_myself=$0 ;;
20247 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20248 for as_dir in $PATH
20251 test -z "$as_dir" && as_dir=.
20252 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20258 # We did not find ourselves, most probably we were run as `sh COMMAND'
20259 # in which case we are not to be found in the path.
20260 if test "x$as_myself" = x; then
20263 if test ! -f "$as_myself"; then
20264 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20268 # Unset variables that we do not need and which cause bugs (e.g. in
20269 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20270 # suppresses any "Segmentation fault" message there. '((' could
20271 # trigger a bug in pdksh 5.2.14.
20272 for as_var in BASH_ENV ENV MAIL MAILPATH
20273 do eval test x\${$as_var+set} = xset \
20274 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20287 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20290 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20291 # ----------------------------------------
20292 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20293 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20294 # script with STATUS, using 1 if that was 0.
20297 as_status=$1; test $as_status -eq 0 && as_status=1
20299 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20300 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20302 $as_echo "$as_me: error: $2" >&2
20303 as_fn_exit $as_status
20307 # as_fn_set_status STATUS
20308 # -----------------------
20309 # Set $? to STATUS, without forking.
20310 as_fn_set_status ()
20313 } # as_fn_set_status
20315 # as_fn_exit STATUS
20316 # -----------------
20317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20321 as_fn_set_status $1
20327 # Portably unset VAR.
20330 { eval $1=; unset $1;}
20332 as_unset=as_fn_unset
20333 # as_fn_append VAR VALUE
20334 # ----------------------
20335 # Append the text in VALUE to the end of the definition contained in VAR. Take
20336 # advantage of any shell optimizations that allow amortized linear growth over
20337 # repeated appends, instead of the typical quadratic growth present in naive
20339 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20340 eval 'as_fn_append ()
20351 # as_fn_arith ARG...
20352 # ------------------
20353 # Perform arithmetic evaluation on the ARGs, and store the result in the
20354 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20355 # must be portable across $(()) and expr.
20356 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20357 eval 'as_fn_arith ()
20364 as_val=`expr "$@" || test $? -eq 1`
20369 if expr a : '\(a\)' >/dev/null 2>&1 &&
20370 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20376 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20377 as_basename=basename
20382 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20388 as_me=`$as_basename -- "$0" ||
20389 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20390 X"$0" : 'X\(//\)$' \| \
20391 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20393 sed '/^.*\/\([^/][^/]*\)\/*$/{
20407 # Avoid depending upon Character Ranges.
20408 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20409 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20410 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20411 as_cr_digits='0123456789'
20412 as_cr_alnum=$as_cr_Letters$as_cr_digits
20414 ECHO_C= ECHO_N= ECHO_T=
20415 case `echo -n x` in #(((((
20417 case `echo 'xy\c'` in
20418 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20420 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20427 rm -f conf$$ conf$$.exe conf$$.file
20428 if test -d conf$$.dir; then
20429 rm -f conf$$.dir/conf$$.file
20432 mkdir conf$$.dir 2>/dev/null
20434 if (echo >conf$$.file) 2>/dev/null; then
20435 if ln -s conf$$.file conf$$ 2>/dev/null; then
20437 # ... but there are two gotchas:
20438 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20439 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20440 # In both cases, we have to default to `cp -p'.
20441 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20443 elif ln conf$$.file conf$$ 2>/dev/null; then
20451 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20452 rmdir conf$$.dir 2>/dev/null
20457 # Create "$as_dir" as a directory, including parents if necessary.
20462 -*) as_dir=./$as_dir;;
20464 test -d "$as_dir" || eval $as_mkdir_p || {
20468 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20469 *) as_qdir=$as_dir;;
20471 as_dirs="'$as_qdir' $as_dirs"
20472 as_dir=`$as_dirname -- "$as_dir" ||
20473 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20474 X"$as_dir" : 'X\(//\)[^/]' \| \
20475 X"$as_dir" : 'X\(//\)$' \| \
20476 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20477 $as_echo X"$as_dir" |
20478 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20482 /^X\(\/\/\)[^/].*/{
20495 test -d "$as_dir" && break
20497 test -z "$as_dirs" || eval "mkdir $as_dirs"
20498 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20502 if mkdir -p . 2>/dev/null; then
20503 as_mkdir_p='mkdir -p "$as_dir"'
20505 test -d ./-p && rmdir ./-p
20509 if test -x / >/dev/null 2>&1; then
20510 as_test_x='test -x'
20512 if ls -dL / >/dev/null 2>&1; then
20519 if test -d "$1"; then
20525 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20526 ???[sx]*):;;*)false;;esac;fi
20530 as_executable_p=$as_test_x
20532 # Sed expression to map a string onto a valid CPP name.
20533 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20535 # Sed expression to map a string onto a valid variable name.
20536 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20540 ## ----------------------------------- ##
20541 ## Main body of $CONFIG_STATUS script. ##
20542 ## ----------------------------------- ##
20544 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20546 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20547 # Save the log message, to keep $0 and so on meaningful, and to
20548 # report actual input values of CONFIG_FILES etc. instead of their
20549 # values after options handling.
20551 This file was extended by sudo $as_me 1.8.4p4, which was
20552 generated by GNU Autoconf 2.68. Invocation command line was
20554 CONFIG_FILES = $CONFIG_FILES
20555 CONFIG_HEADERS = $CONFIG_HEADERS
20556 CONFIG_LINKS = $CONFIG_LINKS
20557 CONFIG_COMMANDS = $CONFIG_COMMANDS
20560 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20565 case $ac_config_files in *"
20566 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20569 case $ac_config_headers in *"
20570 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20574 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20575 # Files that config.status was made for.
20576 config_files="$ac_config_files"
20577 config_headers="$ac_config_headers"
20578 config_commands="$ac_config_commands"
20582 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20584 \`$as_me' instantiates files and other configuration actions
20585 from templates according to the current configuration. Unless the files
20586 and actions are specified as TAGs, all are instantiated by default.
20588 Usage: $0 [OPTION]... [TAG]...
20590 -h, --help print this help, then exit
20591 -V, --version print version number and configuration settings, then exit
20592 --config print configuration, then exit
20593 -q, --quiet, --silent
20594 do not print progress messages
20595 -d, --debug don't remove temporary files
20596 --recheck update $as_me by reconfiguring in the same conditions
20597 --file=FILE[:TEMPLATE]
20598 instantiate the configuration file FILE
20599 --header=FILE[:TEMPLATE]
20600 instantiate the configuration header FILE
20602 Configuration files:
20605 Configuration headers:
20608 Configuration commands:
20611 Report bugs to <http://www.sudo.ws/bugs/>."
20614 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20615 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20617 sudo config.status 1.8.4p4
20618 configured by $0, generated by GNU Autoconf 2.68,
20619 with options \\"\$ac_cs_config\\"
20621 Copyright (C) 2010 Free Software Foundation, Inc.
20622 This config.status script is free software; the Free Software Foundation
20623 gives unlimited permission to copy, distribute and modify it."
20628 test -n "\$AWK" || AWK=awk
20631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20632 # The default lists apply if the user does not specify any file.
20638 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20639 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20643 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20655 # Handling of the options.
20656 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20658 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20659 $as_echo "$ac_cs_version"; exit ;;
20660 --config | --confi | --conf | --con | --co | --c )
20661 $as_echo "$ac_cs_config"; exit ;;
20662 --debug | --debu | --deb | --de | --d | -d )
20664 --file | --fil | --fi | --f )
20667 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20668 '') as_fn_error $? "missing file argument" ;;
20670 as_fn_append CONFIG_FILES " '$ac_optarg'"
20671 ac_need_defaults=false;;
20672 --header | --heade | --head | --hea )
20675 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20677 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20678 ac_need_defaults=false;;
20680 # Conflict between --help and --header
20681 as_fn_error $? "ambiguous option: \`$1'
20682 Try \`$0 --help' for more information.";;
20683 --help | --hel | -h )
20684 $as_echo "$ac_cs_usage"; exit ;;
20685 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20686 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20689 # This is an error.
20690 -*) as_fn_error $? "unrecognized option: \`$1'
20691 Try \`$0 --help' for more information." ;;
20693 *) as_fn_append ac_config_targets " $1"
20694 ac_need_defaults=false ;;
20700 ac_configure_extra_args=
20702 if $ac_cs_silent; then
20704 ac_configure_extra_args="$ac_configure_extra_args --silent"
20708 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20709 if \$ac_cs_recheck; then
20710 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20712 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20713 CONFIG_SHELL='$SHELL'
20714 export CONFIG_SHELL
20719 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20723 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20724 ## Running $as_me. ##
20730 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20736 # The HP-UX ksh and POSIX shell print the target directory to stdout
20737 # if CDPATH is set.
20738 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20740 sed_quote_subst='$sed_quote_subst'
20741 double_quote_subst='$double_quote_subst'
20742 delay_variable_subst='$delay_variable_subst'
20743 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20744 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20745 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20746 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20747 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20748 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20749 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20750 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20751 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20752 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20753 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20754 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20755 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20756 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20757 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20758 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20759 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20760 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20761 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20762 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20763 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20764 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20765 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20766 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20767 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20768 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20769 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20770 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20771 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20772 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20773 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20774 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20775 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20776 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20777 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20778 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20779 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20780 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20781 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20782 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20783 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20784 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20785 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20786 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20787 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20788 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20789 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20790 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20791 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20792 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20793 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20794 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20795 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20796 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20797 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20798 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20799 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
20800 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20801 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20802 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20803 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20804 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20805 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20806 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20807 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20808 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20809 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20810 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20811 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20812 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20813 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20814 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20815 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20816 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20817 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20818 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20819 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20820 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20821 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20822 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20823 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20824 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20825 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20826 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20827 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20828 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20829 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20830 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20831 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20832 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20833 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20834 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20835 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20836 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20837 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20838 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20839 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20840 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20841 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20842 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20843 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20844 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20845 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20846 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20847 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20848 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20849 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20850 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20851 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20852 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20853 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20854 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20855 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20856 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20857 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20858 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20859 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20860 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20861 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20862 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20863 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20864 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20865 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20866 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20867 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20868 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20869 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20870 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20871 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20872 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20875 LTCFLAGS='$LTCFLAGS'
20876 compiler='$compiler_DEFAULT'
20878 # A function that is used when there is no print builtin or printf.
20879 func_fallback_echo ()
20881 eval 'cat <<_LTECHO_EOF
20886 # Quote evaled strings.
20901 deplibs_check_method \
20906 sharedlib_from_linklib_cmd \
20909 archiver_list_spec \
20915 lt_cv_sys_global_symbol_pipe \
20916 lt_cv_sys_global_symbol_to_cdecl \
20917 lt_cv_sys_global_symbol_to_c_name_address \
20918 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20919 nm_file_list_spec \
20920 lt_prog_compiler_no_builtin_flag \
20921 lt_prog_compiler_pic \
20922 lt_prog_compiler_wl \
20923 lt_prog_compiler_static \
20924 lt_cv_prog_compiler_c_o \
20933 export_dynamic_flag_spec \
20934 whole_archive_flag_spec \
20935 compiler_needs_object \
20937 allow_undefined_flag \
20938 no_undefined_flag \
20939 hardcode_libdir_flag_spec \
20940 hardcode_libdir_separator \
20944 variables_saved_for_relink \
20946 library_names_spec \
20948 install_override_mode \
20952 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20953 *[\\\\\\\`\\"\\\$]*)
20954 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20957 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20962 # Double-quote double-evaled strings.
20963 for var in reload_cmds \
20964 old_postinstall_cmds \
20965 old_postuninstall_cmds \
20967 extract_expsyms_cmds \
20968 old_archive_from_new_cmds \
20969 old_archive_from_expsyms_cmds \
20971 archive_expsym_cmds \
20973 module_expsym_cmds \
20974 export_symbols_cmds \
20978 postuninstall_cmds \
20980 sys_lib_search_path_spec \
20981 sys_lib_dlsearch_path_spec; do
20982 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20983 *[\\\\\\\`\\"\\\$]*)
20984 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20987 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20992 ac_aux_dir='$ac_aux_dir'
20993 xsi_shell='$xsi_shell'
20994 lt_shell_append='$lt_shell_append'
20996 # See if we are running on zsh, and set the options which allow our
20997 # commands through without removal of \ escapes INIT.
20998 if test -n "\${ZSH_VERSION+set}" ; then
20999 setopt NO_GLOB_SUBST
21005 TIMESTAMP='$TIMESTAMP'
21014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21016 # Handling of arguments.
21017 for ac_config_target in $ac_config_targets
21019 case $ac_config_target in
21020 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21021 "pathnames.h") CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
21022 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21023 "zlib/zconf.h") CONFIG_HEADERS="$CONFIG_HEADERS zlib/zconf.h" ;;
21024 "zlib/Makefile") CONFIG_FILES="$CONFIG_FILES zlib/Makefile" ;;
21025 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21026 "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
21027 "compat/Makefile") CONFIG_FILES="$CONFIG_FILES compat/Makefile" ;;
21028 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21029 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21030 "src/sudo_usage.h") CONFIG_FILES="$CONFIG_FILES src/sudo_usage.h" ;;
21031 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21032 "plugins/sample/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sample/Makefile" ;;
21033 "plugins/sample_group/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sample_group/Makefile" ;;
21034 "plugins/sudoers/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sudoers/Makefile" ;;
21035 "plugins/sudoers/sudoers") CONFIG_FILES="$CONFIG_FILES plugins/sudoers/sudoers" ;;
21037 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21042 # If the user did not use the arguments to specify the items to instantiate,
21043 # then the envvar interface is used. Set only those that are not.
21044 # We use the long form for the default assignment because of an extremely
21045 # bizarre bug on SunOS 4.1.3.
21046 if $ac_need_defaults; then
21047 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21048 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21049 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21052 # Have a temporary directory for convenience. Make it in the build tree
21053 # simply because there is no reason against having it here, and in addition,
21054 # creating and moving files from /tmp can sometimes cause problems.
21055 # Hook for its removal unless debugging.
21056 # Note that there is a small window in which the directory will not be cleaned:
21057 # after its creation but before its name has been assigned to `$tmp'.
21061 trap 'exit_status=$?
21062 : "${ac_tmp:=$tmp}"
21063 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21065 trap 'as_fn_exit 1' 1 2 13 15
21067 # Create a (secure) tmp directory for tmp files.
21070 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21074 tmp=./conf$$-$RANDOM
21075 (umask 077 && mkdir "$tmp")
21076 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21079 # Set up the scripts for CONFIG_FILES section.
21080 # No need to generate them if there are no CONFIG_FILES.
21081 # This happens for instance with `./config.status config.h'.
21082 if test -n "$CONFIG_FILES"; then
21085 ac_cr=`echo X | tr X '\015'`
21086 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21087 # But we know of no other shell where ac_cr would be empty at this
21088 # point, so we can use a bashism as a fallback.
21089 if test "x$ac_cr" = x; then
21090 eval ac_cr=\$\'\\r\'
21092 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21093 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21096 ac_cs_awk_cr=$ac_cr
21099 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21104 echo "cat >conf$$subs.awk <<_ACEOF" &&
21105 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21107 } >conf$$subs.sh ||
21108 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21109 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21111 for ac_last_try in false false false false false :; do
21112 . ./conf$$subs.sh ||
21113 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21115 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21116 if test $ac_delim_n = $ac_delim_num; then
21118 elif $ac_last_try; then
21119 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21121 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21124 rm -f conf$$subs.sh
21126 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21127 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21131 s/^/S["/; s/!.*/"]=/
21141 s/\(.\{148\}\)..*/\1/
21143 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21148 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21155 s/\(.\{148\}\)..*/\1/
21157 s/["\\]/\\&/g; s/^/"/; s/$/"/
21161 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21166 ' <conf$$subs.awk | sed '
21171 ' >>$CONFIG_STATUS || ac_write_fail=1
21172 rm -f conf$$subs.awk
21173 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21175 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21176 for (key in S) S_is_set[key] = 1
21182 nfields = split(line, field, "@")
21184 len = length(field[1])
21185 for (i = 2; i < nfields; i++) {
21187 keylen = length(key)
21188 if (S_is_set[key]) {
21190 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21191 len += length(value) + length(field[++i])
21202 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21203 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21204 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21207 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21208 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21211 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21212 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21213 # trailing colons and then remove the whole line if VPATH becomes empty
21214 # (actually we leave an empty line to preserve line numbers).
21215 if test "x$srcdir" = x.; then
21216 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21234 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21235 fi # test -n "$CONFIG_FILES"
21237 # Set up the scripts for CONFIG_HEADERS section.
21238 # No need to generate them if there are no CONFIG_HEADERS.
21239 # This happens for instance with `./config.status Makefile'.
21240 if test -n "$CONFIG_HEADERS"; then
21241 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21245 # Transform confdefs.h into an awk script `defines.awk', embedded as
21246 # here-document in config.status, that substitutes the proper values into
21247 # config.h.in to produce config.h.
21249 # Create a delimiter string that does not exist in confdefs.h, to ease
21250 # handling of long lines.
21252 for ac_last_try in false false :; do
21253 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21254 if test -z "$ac_tt"; then
21256 elif $ac_last_try; then
21257 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21259 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21263 # For the awk script, D is an array of macro values keyed by name,
21264 # likewise P contains macro parameters if any. Preserve backslash
21265 # newline sequences.
21267 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21269 s/.\{148\}/&'"$ac_delim"'/g
21272 s/^[ ]*#[ ]*define[ ][ ]*/ /
21279 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21281 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21285 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21286 D["\1"]=" \3\\\\\\n"\\/p
21288 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21293 s/.\{148\}/&'"$ac_delim"'/g
21298 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21301 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21303 ' <confdefs.h | sed '
21304 s/'"$ac_delim"'/"\\\
21305 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21307 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21308 for (key in D) D_is_set[key] = 1
21311 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21313 split(line, arg, " ")
21314 if (arg[1] == "#") {
21318 defundef = substr(arg[1], 2)
21321 split(mac1, mac2, "(") #)
21323 prefix = substr(line, 1, index(line, defundef) - 1)
21324 if (D_is_set[macro]) {
21325 # Preserve the white space surrounding the "#".
21326 print prefix "define", macro P[macro] D[macro]
21329 # Replace #undef with comments. This is necessary, for example,
21330 # in the case of _POSIX_SOURCE, which is predefined and required
21331 # on some systems where configure will not decide to define it.
21332 if (defundef == "undef") {
21333 print "/*", prefix defundef, macro, "*/"
21341 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21342 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21343 fi # test -n "$CONFIG_HEADERS"
21346 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21351 :[FHLC]) ac_mode=$ac_tag; continue;;
21353 case $ac_mode$ac_tag in
21355 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21356 :[FH]-) ac_tag=-:-;;
21357 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21374 -) ac_f="$ac_tmp/stdin";;
21375 *) # Look for the file first in the build tree, then in the source tree
21376 # (if the path is not absolute). The absolute path cannot be DOS-style,
21377 # because $ac_f cannot contain `:'.
21381 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21383 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21385 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21386 as_fn_append ac_file_inputs " '$ac_f'"
21389 # Let's still pretend it is `configure' which instantiates (i.e., don't
21390 # use $as_me), people would be surprised to read:
21391 # /* config.h. Generated by config.status. */
21392 configure_input='Generated from '`
21393 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21395 if test x"$ac_file" != x-; then
21396 configure_input="$ac_file. $configure_input"
21397 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21398 $as_echo "$as_me: creating $ac_file" >&6;}
21400 # Neutralize special characters interpreted by sed in replacement strings.
21401 case $configure_input in #(
21402 *\&* | *\|* | *\\* )
21403 ac_sed_conf_input=`$as_echo "$configure_input" |
21404 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21405 *) ac_sed_conf_input=$configure_input;;
21409 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21410 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21415 ac_dir=`$as_dirname -- "$ac_file" ||
21416 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21417 X"$ac_file" : 'X\(//\)[^/]' \| \
21418 X"$ac_file" : 'X\(//\)$' \| \
21419 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21420 $as_echo X"$ac_file" |
21421 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21425 /^X\(\/\/\)[^/].*/{
21438 as_dir="$ac_dir"; as_fn_mkdir_p
21442 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21444 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21445 # A ".." for each directory in $ac_dir_suffix.
21446 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21447 case $ac_top_builddir_sub in
21448 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21449 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21452 ac_abs_top_builddir=$ac_pwd
21453 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21454 # for backward compatibility:
21455 ac_top_builddir=$ac_top_build_prefix
21458 .) # We are building in place.
21460 ac_top_srcdir=$ac_top_builddir_sub
21461 ac_abs_top_srcdir=$ac_pwd ;;
21462 [\\/]* | ?:[\\/]* ) # Absolute name.
21463 ac_srcdir=$srcdir$ac_dir_suffix;
21464 ac_top_srcdir=$srcdir
21465 ac_abs_top_srcdir=$srcdir ;;
21466 *) # Relative name.
21467 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21468 ac_top_srcdir=$ac_top_build_prefix$srcdir
21469 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21471 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21482 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21483 # If the template does not know about datarootdir, expand it.
21484 # FIXME: This hack should be removed a few years after 2.60.
21485 ac_datarootdir_hack=; ac_datarootdir_seen=
21496 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21497 *datarootdir*) ac_datarootdir_seen=yes;;
21498 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21500 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21502 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21503 ac_datarootdir_hack='
21504 s&@datadir@&$datadir&g
21505 s&@docdir@&$docdir&g
21506 s&@infodir@&$infodir&g
21507 s&@localedir@&$localedir&g
21508 s&@mandir@&$mandir&g
21509 s&\\\${datarootdir}&$datarootdir&g' ;;
21513 # Neutralize VPATH when `$srcdir' = `.'.
21514 # Shell code in configure.ac might set extrasub.
21515 # FIXME: do we really want to maintain this feature?
21516 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21517 ac_sed_extra="$ac_vpsub
21520 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21522 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21523 s|@configure_input@|$ac_sed_conf_input|;t t
21524 s&@top_builddir@&$ac_top_builddir_sub&;t t
21525 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21526 s&@srcdir@&$ac_srcdir&;t t
21527 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21528 s&@top_srcdir@&$ac_top_srcdir&;t t
21529 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21530 s&@builddir@&$ac_builddir&;t t
21531 s&@abs_builddir@&$ac_abs_builddir&;t t
21532 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21533 $ac_datarootdir_hack
21535 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21536 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21538 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21539 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21540 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21541 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21543 which seems to be undefined. Please make sure it is defined" >&5
21544 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21545 which seems to be undefined. Please make sure it is defined" >&2;}
21547 rm -f "$ac_tmp/stdin"
21549 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21550 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21552 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21558 if test x"$ac_file" != x-; then
21560 $as_echo "/* $configure_input */" \
21561 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21562 } >"$ac_tmp/config.h" \
21563 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21564 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21565 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21566 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21569 mv "$ac_tmp/config.h" "$ac_file" \
21570 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21573 $as_echo "/* $configure_input */" \
21574 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21575 || as_fn_error $? "could not create -" "$LINENO" 5
21579 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21580 $as_echo "$as_me: executing $ac_file commands" >&6;}
21585 case $ac_file$ac_mode in
21588 # See if we are running on zsh, and set the options which allow our
21589 # commands through without removal of \ escapes.
21590 if test -n "${ZSH_VERSION+set}" ; then
21591 setopt NO_GLOB_SUBST
21594 cfgfile="${ofile}T"
21595 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21598 cat <<_LT_EOF >> "$cfgfile"
21601 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21602 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21603 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21604 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21606 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21607 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
21609 # Written by Gordon Matzigkeit, 1996
21611 # This file is part of GNU Libtool.
21613 # GNU Libtool is free software; you can redistribute it and/or
21614 # modify it under the terms of the GNU General Public License as
21615 # published by the Free Software Foundation; either version 2 of
21616 # the License, or (at your option) any later version.
21618 # As a special exception to the GNU General Public License,
21619 # if you distribute this file as part of a program or library that
21620 # is built using GNU Libtool, you may include this file under the
21621 # same distribution terms that you use for the rest of that program.
21623 # GNU Libtool is distributed in the hope that it will be useful,
21624 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21625 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21626 # GNU General Public License for more details.
21628 # You should have received a copy of the GNU General Public License
21629 # along with GNU Libtool; see the file COPYING. If not, a copy
21630 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21631 # obtained by writing to the Free Software Foundation, Inc.,
21632 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21635 # The names of the tagged configurations supported by this script.
21638 # ### BEGIN LIBTOOL CONFIG
21640 # Which release of libtool.m4 was used?
21641 macro_version=$macro_version
21642 macro_revision=$macro_revision
21644 # Whether or not to build shared libraries.
21645 build_libtool_libs=$enable_shared
21647 # Whether or not to build static libraries.
21648 build_old_libs=$enable_static
21650 # What type of objects to build.
21653 # Whether or not to optimize for fast installation.
21654 fast_install=$enable_fast_install
21656 # Shell to use when invoking shell scripts.
21659 # An echo program that protects backslashes.
21662 # The PATH separator for the build system.
21663 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21666 host_alias=$host_alias
21670 # The build system.
21671 build_alias=$build_alias
21675 # A sed program that does not truncate output.
21678 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21679 Xsed="\$SED -e 1s/^X//"
21681 # A grep program that handles long lines.
21687 # A literal string matcher.
21690 # A BSD- or MS-compatible name lister.
21693 # Whether we need soft or hard links.
21696 # What is the maximum length of a command?
21697 max_cmd_len=$max_cmd_len
21699 # Object file suffix (normally "o").
21702 # Executable file suffix (normally "").
21705 # whether the shell understands "unset".
21708 # turn spaces into newlines.
21711 # turn newlines into spaces.
21714 # convert \$build file names to \$host format.
21715 to_host_file_cmd=$lt_cv_to_host_file_cmd
21717 # convert \$build files to toolchain format.
21718 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21720 # An object symbol dumper.
21721 OBJDUMP=$lt_OBJDUMP
21723 # Method to check whether dependent libraries are shared objects.
21724 deplibs_check_method=$lt_deplibs_check_method
21726 # Command to use when deplibs_check_method = "file_magic".
21727 file_magic_cmd=$lt_file_magic_cmd
21729 # How to find potential files when deplibs_check_method = "file_magic".
21730 file_magic_glob=$lt_file_magic_glob
21732 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21733 want_nocaseglob=$lt_want_nocaseglob
21735 # DLL creation program.
21736 DLLTOOL=$lt_DLLTOOL
21738 # Command to associate shared and link libraries.
21739 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21744 # Flags to create an archive.
21745 AR_FLAGS=$lt_AR_FLAGS
21747 # How to feed a file listing to the archiver.
21748 archiver_list_spec=$lt_archiver_list_spec
21750 # A symbol stripping program.
21753 # Commands used to install an old-style archive.
21755 old_postinstall_cmds=$lt_old_postinstall_cmds
21756 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21758 # Whether to use a lock for old archive extraction.
21759 lock_old_archive_extraction=$lock_old_archive_extraction
21764 # LTCC compiler flags.
21765 LTCFLAGS=$lt_CFLAGS
21767 # Take the output of nm and produce a listing of raw symbols and C names.
21768 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21770 # Transform the output of nm in a proper C declaration.
21771 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21773 # Transform the output of nm in a C name address pair.
21774 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21776 # Transform the output of nm in a C name address pair when lib prefix is needed.
21777 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21779 # Specify filename containing input files for \$NM.
21780 nm_file_list_spec=$lt_nm_file_list_spec
21782 # The root where to search for dependent libraries,and in which our libraries should be installed.
21783 lt_sysroot=$lt_sysroot
21785 # The name of the directory that contains temporary libtool files.
21788 # Used to examine libraries when file_magic_cmd begins with "file".
21789 MAGIC_CMD=$MAGIC_CMD
21791 # Must we lock files when doing compilation?
21792 need_locks=$lt_need_locks
21795 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21797 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21798 DSYMUTIL=$lt_DSYMUTIL
21800 # Tool to change global to local symbols on Mac OS X.
21803 # Tool to manipulate fat objects and archives on Mac OS X.
21806 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21809 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21810 OTOOL64=$lt_OTOOL64
21812 # Old archive suffix (normally "a").
21815 # Shared library suffix (normally ".so").
21816 shrext_cmds=$lt_shrext_cmds
21818 # The commands to extract the exported symbol list from a shared archive.
21819 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21821 # Variables whose values should be saved in libtool wrapper scripts and
21822 # restored at link time.
21823 variables_saved_for_relink=$lt_variables_saved_for_relink
21825 # Do we need the "lib" prefix for modules?
21826 need_lib_prefix=$need_lib_prefix
21828 # Do we need a version for libraries?
21829 need_version=$need_version
21831 # Library versioning type.
21832 version_type=$version_type
21834 # Shared library runtime path variable.
21835 runpath_var=$runpath_var
21837 # Shared library path variable.
21838 shlibpath_var=$shlibpath_var
21840 # Is shlibpath searched before the hard-coded library search path?
21841 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21843 # Format of library name prefix.
21844 libname_spec=$lt_libname_spec
21846 # List of archive names. First name is the real one, the rest are links.
21847 # The last name is the one that the linker finds with -lNAME
21848 library_names_spec=$lt_library_names_spec
21850 # The coded name of the library, if different from the real name.
21851 soname_spec=$lt_soname_spec
21853 # Permission mode override for installation of shared libraries.
21854 install_override_mode=$lt_install_override_mode
21856 # Command to use after installation of a shared archive.
21857 postinstall_cmds=$lt_postinstall_cmds
21859 # Command to use after uninstallation of a shared archive.
21860 postuninstall_cmds=$lt_postuninstall_cmds
21862 # Commands used to finish a libtool library installation in a directory.
21863 finish_cmds=$lt_finish_cmds
21865 # As "finish_cmds", except a single script fragment to be evaled but
21867 finish_eval=$lt_finish_eval
21869 # Whether we should hardcode library paths into libraries.
21870 hardcode_into_libs=$hardcode_into_libs
21872 # Compile-time system search path for libraries.
21873 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21875 # Run-time system search path for libraries.
21876 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21878 # Whether dlopen is supported.
21879 dlopen_support=$enable_dlopen
21881 # Whether dlopen of programs is supported.
21882 dlopen_self=$enable_dlopen_self
21884 # Whether dlopen of statically linked programs is supported.
21885 dlopen_self_static=$enable_dlopen_self_static
21887 # Commands to strip libraries.
21888 old_striplib=$lt_old_striplib
21889 striplib=$lt_striplib
21892 # The linker used to build libraries.
21895 # How to create reloadable object files.
21896 reload_flag=$lt_reload_flag
21897 reload_cmds=$lt_reload_cmds
21899 # Commands used to build an old-style archive.
21900 old_archive_cmds=$lt_old_archive_cmds
21902 # A language specific compiler.
21905 # Is the compiler the GNU compiler?
21908 # Compiler flag to turn off builtin functions.
21909 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21911 # Additional compiler flags for building library objects.
21912 pic_flag=$lt_lt_prog_compiler_pic
21914 # How to pass a linker flag through the compiler.
21915 wl=$lt_lt_prog_compiler_wl
21917 # Compiler flag to prevent dynamic linking.
21918 link_static_flag=$lt_lt_prog_compiler_static
21920 # Does compiler simultaneously support -c and -o options?
21921 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21923 # Whether or not to add -lc for building shared libraries.
21924 build_libtool_need_lc=$archive_cmds_need_lc
21926 # Whether or not to disallow shared libs when runtime libs are static.
21927 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21929 # Compiler flag to allow reflexive dlopens.
21930 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21932 # Compiler flag to generate shared objects directly from archives.
21933 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21935 # Whether the compiler copes with passing no objects directly.
21936 compiler_needs_object=$lt_compiler_needs_object
21938 # Create an old-style archive from a shared archive.
21939 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21941 # Create a temporary old-style archive to link instead of a shared archive.
21942 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21944 # Commands used to build a shared archive.
21945 archive_cmds=$lt_archive_cmds
21946 archive_expsym_cmds=$lt_archive_expsym_cmds
21948 # Commands used to build a loadable module if different from building
21949 # a shared archive.
21950 module_cmds=$lt_module_cmds
21951 module_expsym_cmds=$lt_module_expsym_cmds
21953 # Whether we are building with GNU ld or not.
21954 with_gnu_ld=$lt_with_gnu_ld
21956 # Flag that allows shared libraries with undefined symbols to be built.
21957 allow_undefined_flag=$lt_allow_undefined_flag
21959 # Flag that enforces no undefined symbols.
21960 no_undefined_flag=$lt_no_undefined_flag
21962 # Flag to hardcode \$libdir into a binary during linking.
21963 # This must work even if \$libdir does not exist
21964 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21966 # Whether we need a single "-rpath" flag with a separated argument.
21967 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21969 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21970 # DIR into the resulting binary.
21971 hardcode_direct=$hardcode_direct
21973 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21974 # DIR into the resulting binary and the resulting library dependency is
21975 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21976 # library is relocated.
21977 hardcode_direct_absolute=$hardcode_direct_absolute
21979 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21980 # into the resulting binary.
21981 hardcode_minus_L=$hardcode_minus_L
21983 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21984 # into the resulting binary.
21985 hardcode_shlibpath_var=$hardcode_shlibpath_var
21987 # Set to "yes" if building a shared library automatically hardcodes DIR
21988 # into the library and all subsequent libraries and executables linked
21990 hardcode_automatic=$hardcode_automatic
21992 # Set to yes if linker adds runtime paths of dependent libraries
21993 # to runtime path list.
21994 inherit_rpath=$inherit_rpath
21996 # Whether libtool must link a program against all its dependency libraries.
21997 link_all_deplibs=$link_all_deplibs
21999 # Set to "yes" if exported symbols are required.
22000 always_export_symbols=$always_export_symbols
22002 # The commands to list exported symbols.
22003 export_symbols_cmds=$lt_export_symbols_cmds
22005 # Symbols that should not be listed in the preloaded symbols.
22006 exclude_expsyms=$lt_exclude_expsyms
22008 # Symbols that must always be exported.
22009 include_expsyms=$lt_include_expsyms
22011 # Commands necessary for linking programs (against libraries) with templates.
22012 prelink_cmds=$lt_prelink_cmds
22014 # Commands necessary for finishing linking programs.
22015 postlink_cmds=$lt_postlink_cmds
22017 # Specify filename containing input files.
22018 file_list_spec=$lt_file_list_spec
22020 # How to hardcode a shared library path into an executable.
22021 hardcode_action=$hardcode_action
22023 # ### END LIBTOOL CONFIG
22029 cat <<\_LT_EOF >> "$cfgfile"
22030 # AIX sometimes has problems with the GCC collect2 program. For some
22031 # reason, if we set the COLLECT_NAMES environment variable, the problems
22032 # vanish in a puff of smoke.
22033 if test "X${COLLECT_NAMES+set}" != Xset; then
22035 export COLLECT_NAMES
22042 ltmain="$ac_aux_dir/ltmain.sh"
22045 # We use sed instead of cat because bash on DJGPP gets confused if
22046 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22047 # text mode, it properly converts lines to CR/LF. This bash problem
22048 # is reportedly fixed, but why not run on old versions too?
22049 sed '$q' "$ltmain" >> "$cfgfile" \
22050 || (rm -f "$cfgfile"; exit 1)
22052 if test x"$xsi_shell" = xyes; then
22053 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
22057 \ */*) func_dirname_result="${1%/*}${2}" ;;\
22058 \ * ) func_dirname_result="${3}" ;;\
22060 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
22061 && mv -f "$cfgfile.tmp" "$cfgfile" \
22062 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22063 test 0 -eq $? || _lt_function_replace_fail=:
22066 sed -e '/^func_basename ()$/,/^} # func_basename /c\
22069 \ func_basename_result="${1##*/}"\
22070 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
22071 && mv -f "$cfgfile.tmp" "$cfgfile" \
22072 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22073 test 0 -eq $? || _lt_function_replace_fail=:
22076 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
22077 func_dirname_and_basename ()\
22080 \ */*) func_dirname_result="${1%/*}${2}" ;;\
22081 \ * ) func_dirname_result="${3}" ;;\
22083 \ func_basename_result="${1##*/}"\
22084 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
22085 && mv -f "$cfgfile.tmp" "$cfgfile" \
22086 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22087 test 0 -eq $? || _lt_function_replace_fail=:
22090 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
22093 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
22094 \ # positional parameters, so assign one to ordinary parameter first.\
22095 \ func_stripname_result=${3}\
22096 \ func_stripname_result=${func_stripname_result#"${1}"}\
22097 \ func_stripname_result=${func_stripname_result%"${2}"}\
22098 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
22099 && mv -f "$cfgfile.tmp" "$cfgfile" \
22100 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22101 test 0 -eq $? || _lt_function_replace_fail=:
22104 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
22105 func_split_long_opt ()\
22107 \ func_split_long_opt_name=${1%%=*}\
22108 \ func_split_long_opt_arg=${1#*=}\
22109 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
22110 && mv -f "$cfgfile.tmp" "$cfgfile" \
22111 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22112 test 0 -eq $? || _lt_function_replace_fail=:
22115 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
22116 func_split_short_opt ()\
22118 \ func_split_short_opt_arg=${1#??}\
22119 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
22120 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
22121 && mv -f "$cfgfile.tmp" "$cfgfile" \
22122 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22123 test 0 -eq $? || _lt_function_replace_fail=:
22126 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
22130 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
22131 \ *) func_lo2o_result=${1} ;;\
22133 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
22134 && mv -f "$cfgfile.tmp" "$cfgfile" \
22135 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22136 test 0 -eq $? || _lt_function_replace_fail=:
22139 sed -e '/^func_xform ()$/,/^} # func_xform /c\
22142 func_xform_result=${1%.*}.lo\
22143 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
22144 && mv -f "$cfgfile.tmp" "$cfgfile" \
22145 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22146 test 0 -eq $? || _lt_function_replace_fail=:
22149 sed -e '/^func_arith ()$/,/^} # func_arith /c\
22152 func_arith_result=$(( $* ))\
22153 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
22154 && mv -f "$cfgfile.tmp" "$cfgfile" \
22155 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22156 test 0 -eq $? || _lt_function_replace_fail=:
22159 sed -e '/^func_len ()$/,/^} # func_len /c\
22162 func_len_result=${#1}\
22163 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
22164 && mv -f "$cfgfile.tmp" "$cfgfile" \
22165 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22166 test 0 -eq $? || _lt_function_replace_fail=:
22170 if test x"$lt_shell_append" = xyes; then
22171 sed -e '/^func_append ()$/,/^} # func_append /c\
22174 eval "${1}+=\\${2}"\
22175 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
22176 && mv -f "$cfgfile.tmp" "$cfgfile" \
22177 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22178 test 0 -eq $? || _lt_function_replace_fail=:
22181 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
22182 func_append_quoted ()\
22184 \ func_quote_for_eval "${2}"\
22185 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
22186 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
22187 && mv -f "$cfgfile.tmp" "$cfgfile" \
22188 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22189 test 0 -eq $? || _lt_function_replace_fail=:
22192 # Save a `func_append' function call where possible by direct use of '+='
22193 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22194 && mv -f "$cfgfile.tmp" "$cfgfile" \
22195 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22196 test 0 -eq $? || _lt_function_replace_fail=:
22198 # Save a `func_append' function call even when '+=' is not available
22199 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22200 && mv -f "$cfgfile.tmp" "$cfgfile" \
22201 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22202 test 0 -eq $? || _lt_function_replace_fail=:
22205 if test x"$_lt_function_replace_fail" = x":"; then
22206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22207 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22211 mv -f "$cfgfile" "$ofile" ||
22212 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22223 ac_clean_files=$ac_clean_files_save
22225 test $ac_write_fail = 0 ||
22226 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22229 # configure is writing to config.log, and then calls config.status.
22230 # config.status does its own redirection, appending to config.log.
22231 # Unfortunately, on DOS this fails, as config.log is still kept open
22232 # by configure, so config.status won't be able to write to it; its
22233 # output is simply discarded. So we exec the FD to /dev/null,
22234 # effectively closing config.log, so it can be properly (re)opened and
22235 # appended to by config.status. When coming back to configure, we
22236 # need to make the FD available again.
22237 if test "$no_create" != yes; then
22239 ac_config_status_args=
22240 test "$silent" = yes &&
22241 ac_config_status_args="$ac_config_status_args --quiet"
22243 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22245 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22246 # would make configure fail if this is the last instruction.
22247 $ac_cs_success || as_fn_exit 1
22249 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22251 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22255 if test "$with_pam" = "yes"; then
22258 if test -f /usr/lib/security/libpam_hpsec.so.1; then
22259 { $as_echo "$as_me:${as_lineno-$LINENO}: You may wish to add the following line to /etc/pam.conf" >&5
22260 $as_echo "$as_me: You may wish to add the following line to /etc/pam.conf" >&6;}
22261 { $as_echo "$as_me:${as_lineno-$LINENO}: sudo session required libpam_hpsec.so.1 bypass_umask bypass_last_login" >&5
22262 $as_echo "$as_me: sudo session required libpam_hpsec.so.1 bypass_umask bypass_last_login" >&6;}
22266 { $as_echo "$as_me:${as_lineno-$LINENO}: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&5
22267 $as_echo "$as_me: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&6;}