2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for sudo 1.8.7.
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.7'
574 PACKAGE_STRING='sudo 1.8.7'
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>
616 ac_subst_vars='LTLIBOBJS
794 program_transform_name
807 enable_option_checking
867 with_password_timeout
878 with_ldap_secret_file
887 enable_authentication
895 enable_shell_sets_home
908 enable_gss_krb5_ccache_name
923 enable_kerb5_instance
925 ac_precious_vars='build_alias
938 # Initialize some variables set by options.
940 ac_init_version=false
941 ac_unrecognized_opts=
943 # The variables have the same names as the options, with
944 # dashes changed to underlines.
952 program_transform_name=s,x,x,
960 # Installation directory options.
961 # These are left unexpanded so users can "make install exec_prefix=/foo"
962 # and all the variables that are supposed to be based on exec_prefix
963 # by default will actually change.
964 # Use braces instead of parens because sh, perl, etc. also accept them.
965 # (The list follows the same order as the GNU Coding Standards.)
966 bindir='${exec_prefix}/bin'
967 sbindir='${exec_prefix}/sbin'
968 libexecdir='${exec_prefix}/libexec'
969 datarootdir='${prefix}/share'
970 datadir='${datarootdir}'
971 sysconfdir='${prefix}/etc'
972 sharedstatedir='${prefix}/com'
973 localstatedir='${prefix}/var'
974 includedir='${prefix}/include'
975 oldincludedir='/usr/include'
976 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
977 infodir='${datarootdir}/info'
982 libdir='${exec_prefix}/lib'
983 localedir='${datarootdir}/locale'
984 mandir='${datarootdir}/man'
990 # If the previous option needs an argument, assign it.
991 if test -n "$ac_prev"; then
992 eval $ac_prev=\$ac_option
998 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1003 # Accept the important Cygnus configure options, so we can diagnose typos.
1005 case $ac_dashdash$ac_option in
1009 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1011 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1012 bindir=$ac_optarg ;;
1014 -build | --build | --buil | --bui | --bu)
1015 ac_prev=build_alias ;;
1016 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1017 build_alias=$ac_optarg ;;
1019 -cache-file | --cache-file | --cache-fil | --cache-fi \
1020 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1021 ac_prev=cache_file ;;
1022 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1023 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1024 cache_file=$ac_optarg ;;
1026 --config-cache | -C)
1027 cache_file=config.cache ;;
1029 -datadir | --datadir | --datadi | --datad)
1031 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1032 datadir=$ac_optarg ;;
1034 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1035 | --dataroo | --dataro | --datar)
1036 ac_prev=datarootdir ;;
1037 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1038 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1039 datarootdir=$ac_optarg ;;
1041 -disable-* | --disable-*)
1042 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1043 # Reject names that are not valid shell variable names.
1044 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1045 as_fn_error $? "invalid feature name: $ac_useropt"
1046 ac_useropt_orig=$ac_useropt
1047 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1048 case $ac_user_opts in
1050 "enable_$ac_useropt"
1052 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1053 ac_unrecognized_sep=', ';;
1055 eval enable_$ac_useropt=no ;;
1057 -docdir | --docdir | --docdi | --doc | --do)
1059 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1060 docdir=$ac_optarg ;;
1062 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1064 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1065 dvidir=$ac_optarg ;;
1067 -enable-* | --enable-*)
1068 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1071 as_fn_error $? "invalid feature name: $ac_useropt"
1072 ac_useropt_orig=$ac_useropt
1073 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1074 case $ac_user_opts in
1076 "enable_$ac_useropt"
1078 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1079 ac_unrecognized_sep=', ';;
1081 eval enable_$ac_useropt=\$ac_optarg ;;
1083 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1084 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1085 | --exec | --exe | --ex)
1086 ac_prev=exec_prefix ;;
1087 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1088 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1089 | --exec=* | --exe=* | --ex=*)
1090 exec_prefix=$ac_optarg ;;
1092 -gas | --gas | --ga | --g)
1093 # Obsolete; use --with-gas.
1096 -help | --help | --hel | --he | -h)
1097 ac_init_help=long ;;
1098 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1099 ac_init_help=recursive ;;
1100 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1101 ac_init_help=short ;;
1103 -host | --host | --hos | --ho)
1104 ac_prev=host_alias ;;
1105 -host=* | --host=* | --hos=* | --ho=*)
1106 host_alias=$ac_optarg ;;
1108 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1110 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1112 htmldir=$ac_optarg ;;
1114 -includedir | --includedir | --includedi | --included | --include \
1115 | --includ | --inclu | --incl | --inc)
1116 ac_prev=includedir ;;
1117 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1118 | --includ=* | --inclu=* | --incl=* | --inc=*)
1119 includedir=$ac_optarg ;;
1121 -infodir | --infodir | --infodi | --infod | --info | --inf)
1123 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1124 infodir=$ac_optarg ;;
1126 -libdir | --libdir | --libdi | --libd)
1128 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1129 libdir=$ac_optarg ;;
1131 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1132 | --libexe | --libex | --libe)
1133 ac_prev=libexecdir ;;
1134 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1135 | --libexe=* | --libex=* | --libe=*)
1136 libexecdir=$ac_optarg ;;
1138 -localedir | --localedir | --localedi | --localed | --locale)
1139 ac_prev=localedir ;;
1140 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1141 localedir=$ac_optarg ;;
1143 -localstatedir | --localstatedir | --localstatedi | --localstated \
1144 | --localstate | --localstat | --localsta | --localst | --locals)
1145 ac_prev=localstatedir ;;
1146 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1147 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1148 localstatedir=$ac_optarg ;;
1150 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1152 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1153 mandir=$ac_optarg ;;
1155 -nfp | --nfp | --nf)
1156 # Obsolete; use --without-fp.
1159 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1160 | --no-cr | --no-c | -n)
1163 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1164 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1167 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1168 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1169 | --oldin | --oldi | --old | --ol | --o)
1170 ac_prev=oldincludedir ;;
1171 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1172 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1173 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1174 oldincludedir=$ac_optarg ;;
1176 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1178 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1179 prefix=$ac_optarg ;;
1181 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1182 | --program-pre | --program-pr | --program-p)
1183 ac_prev=program_prefix ;;
1184 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1185 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1186 program_prefix=$ac_optarg ;;
1188 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1189 | --program-suf | --program-su | --program-s)
1190 ac_prev=program_suffix ;;
1191 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1192 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1193 program_suffix=$ac_optarg ;;
1195 -program-transform-name | --program-transform-name \
1196 | --program-transform-nam | --program-transform-na \
1197 | --program-transform-n | --program-transform- \
1198 | --program-transform | --program-transfor \
1199 | --program-transfo | --program-transf \
1200 | --program-trans | --program-tran \
1201 | --progr-tra | --program-tr | --program-t)
1202 ac_prev=program_transform_name ;;
1203 -program-transform-name=* | --program-transform-name=* \
1204 | --program-transform-nam=* | --program-transform-na=* \
1205 | --program-transform-n=* | --program-transform-=* \
1206 | --program-transform=* | --program-transfor=* \
1207 | --program-transfo=* | --program-transf=* \
1208 | --program-trans=* | --program-tran=* \
1209 | --progr-tra=* | --program-tr=* | --program-t=*)
1210 program_transform_name=$ac_optarg ;;
1212 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1214 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1215 pdfdir=$ac_optarg ;;
1217 -psdir | --psdir | --psdi | --psd | --ps)
1219 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1222 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1223 | -silent | --silent | --silen | --sile | --sil)
1226 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1228 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1230 sbindir=$ac_optarg ;;
1232 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1233 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1234 | --sharedst | --shareds | --shared | --share | --shar \
1236 ac_prev=sharedstatedir ;;
1237 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1238 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1239 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1241 sharedstatedir=$ac_optarg ;;
1243 -site | --site | --sit)
1245 -site=* | --site=* | --sit=*)
1248 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1250 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1251 srcdir=$ac_optarg ;;
1253 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1254 | --syscon | --sysco | --sysc | --sys | --sy)
1255 ac_prev=sysconfdir ;;
1256 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1257 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1258 sysconfdir=$ac_optarg ;;
1260 -target | --target | --targe | --targ | --tar | --ta | --t)
1261 ac_prev=target_alias ;;
1262 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1263 target_alias=$ac_optarg ;;
1265 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1268 -version | --version | --versio | --versi | --vers | -V)
1269 ac_init_version=: ;;
1272 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1273 # Reject names that are not valid shell variable names.
1274 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1275 as_fn_error $? "invalid package name: $ac_useropt"
1276 ac_useropt_orig=$ac_useropt
1277 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1278 case $ac_user_opts in
1282 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1283 ac_unrecognized_sep=', ';;
1285 eval with_$ac_useropt=\$ac_optarg ;;
1287 -without-* | --without-*)
1288 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1289 # Reject names that are not valid shell variable names.
1290 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1291 as_fn_error $? "invalid package name: $ac_useropt"
1292 ac_useropt_orig=$ac_useropt
1293 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1294 case $ac_user_opts in
1298 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1299 ac_unrecognized_sep=', ';;
1301 eval with_$ac_useropt=no ;;
1304 # Obsolete; use --with-x.
1307 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1308 | --x-incl | --x-inc | --x-in | --x-i)
1309 ac_prev=x_includes ;;
1310 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1311 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1312 x_includes=$ac_optarg ;;
1314 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1315 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1316 ac_prev=x_libraries ;;
1317 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1318 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1319 x_libraries=$ac_optarg ;;
1321 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1322 Try \`$0 --help' for more information"
1326 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1327 # Reject names that are not valid shell variable names.
1328 case $ac_envvar in #(
1329 '' | [0-9]* | *[!_$as_cr_alnum]* )
1330 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1332 eval $ac_envvar=\$ac_optarg
1333 export $ac_envvar ;;
1336 # FIXME: should be removed in autoconf 3.0.
1337 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1338 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1339 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1340 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1346 if test -n "$ac_prev"; then
1347 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1348 as_fn_error $? "missing argument to $ac_option"
1351 if test -n "$ac_unrecognized_opts"; then
1352 case $enable_option_checking in
1354 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1355 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1359 # Check all directory arguments for consistency.
1360 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1361 datadir sysconfdir sharedstatedir localstatedir includedir \
1362 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1363 libdir localedir mandir
1365 eval ac_val=\$$ac_var
1366 # Remove trailing slashes.
1369 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1370 eval $ac_var=\$ac_val;;
1372 # Be sure to have absolute directory names.
1374 [\\/$]* | ?:[\\/]* ) continue;;
1375 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1377 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1380 # There might be people who depend on the old broken behavior: `$host'
1381 # used to hold the argument of --host etc.
1382 # FIXME: To remove some day.
1385 target=$target_alias
1387 # FIXME: To remove some day.
1388 if test "x$host_alias" != x; then
1389 if test "x$build_alias" = x; then
1390 cross_compiling=maybe
1391 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1392 If a cross compiler is detected then cross compile mode will be used" >&2
1393 elif test "x$build_alias" != "x$host_alias"; then
1399 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1401 test "$silent" = yes && exec 6>/dev/null
1404 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1405 ac_ls_di=`ls -di .` &&
1406 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1407 as_fn_error $? "working directory cannot be determined"
1408 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1409 as_fn_error $? "pwd does not report name of working directory"
1412 # Find the source files, if location was not specified.
1413 if test -z "$srcdir"; then
1414 ac_srcdir_defaulted=yes
1415 # Try the directory containing this script, then the parent directory.
1416 ac_confdir=`$as_dirname -- "$as_myself" ||
1417 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1418 X"$as_myself" : 'X\(//\)[^/]' \| \
1419 X"$as_myself" : 'X\(//\)$' \| \
1420 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1421 $as_echo X"$as_myself" |
1422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1440 if test ! -r "$srcdir/$ac_unique_file"; then
1444 ac_srcdir_defaulted=no
1446 if test ! -r "$srcdir/$ac_unique_file"; then
1447 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1448 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1450 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1452 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1454 # When building in place, set srcdir=.
1455 if test "$ac_abs_confdir" = "$ac_pwd"; then
1458 # Remove unnecessary trailing slashes from srcdir.
1459 # Double slashes in file names in object file debugging info
1460 # mess up M-x gdb in Emacs.
1462 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1464 for ac_var in $ac_precious_vars; do
1465 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1466 eval ac_env_${ac_var}_value=\$${ac_var}
1467 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1468 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1472 # Report the --help message.
1474 if test "$ac_init_help" = "long"; then
1475 # Omit some internal or obsolete options to make the list less imposing.
1476 # This message is too long to be a string in the A/UX 3.1 sh.
1478 \`configure' configures sudo 1.8.7 to adapt to many kinds of systems.
1480 Usage: $0 [OPTION]... [VAR=VALUE]...
1482 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1483 VAR=VALUE. See below for descriptions of some of the useful variables.
1485 Defaults for the options are specified in brackets.
1488 -h, --help display this help and exit
1489 --help=short display options specific to this package
1490 --help=recursive display the short help of all the included packages
1491 -V, --version display version information and exit
1492 -q, --quiet, --silent do not print \`checking ...' messages
1493 --cache-file=FILE cache test results in FILE [disabled]
1494 -C, --config-cache alias for \`--cache-file=config.cache'
1495 -n, --no-create do not create output files
1496 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1498 Installation directories:
1499 --prefix=PREFIX install architecture-independent files in PREFIX
1500 [$ac_default_prefix]
1501 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1504 By default, \`make install' will install all the files in
1505 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1506 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1507 for instance \`--prefix=\$HOME'.
1509 For better control, use the options below.
1511 Fine tuning of the installation directories:
1512 --bindir=DIR user executables [EPREFIX/bin]
1513 --sbindir=DIR system admin executables [EPREFIX/sbin]
1514 --libexecdir=DIR program executables [EPREFIX/libexec]
1515 --sysconfdir=DIR read-only single-machine data [/etc]
1516 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1517 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1518 --libdir=DIR object code libraries [EPREFIX/lib]
1519 --includedir=DIR C header files [PREFIX/include]
1520 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1521 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1522 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1523 --infodir=DIR info documentation [DATAROOTDIR/info]
1524 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1525 --mandir=DIR man documentation [DATAROOTDIR/man]
1526 --docdir=DIR documentation root [DATAROOTDIR/doc/sudo]
1527 --htmldir=DIR html documentation [DOCDIR]
1528 --dvidir=DIR dvi documentation [DOCDIR]
1529 --pdfdir=DIR pdf documentation [DOCDIR]
1530 --psdir=DIR ps documentation [DOCDIR]
1536 --build=BUILD configure for building on BUILD [guessed]
1537 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1541 if test -n "$ac_init_help"; then
1542 case $ac_init_help in
1543 short | recursive ) echo "Configuration of sudo 1.8.7:";;
1548 --disable-option-checking ignore unrecognized --enable/--with options
1549 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1550 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1551 --disable-authentication
1552 Do not require authentication by default
1553 --disable-root-mailer Don't run the mailer as root, run as the user
1554 --disable-setreuid Don't try to use the setreuid() function
1555 --disable-setresuid Don't try to use the setresuid() function
1556 --disable-shadow Never use shadow passwords
1557 --disable-root-sudo Don't allow root to run sudo
1558 --enable-log-host Log the hostname in the log file
1559 --enable-noargs-shell If sudo is given no arguments run a shell
1560 --enable-shell-sets-home
1561 Set $HOME to target user in shell mode
1562 --disable-path-info Print 'command not allowed' not 'command not found'
1563 --enable-env-debug Whether to enable environment debugging.
1564 --enable-zlib[=PATH] Whether to enable or disable zlib
1565 --enable-env-reset Whether to enable environment resetting by default.
1566 --enable-warnings Whether to enable compiler warnings
1567 --enable-werror Whether to enable the -Werror compiler option
1568 --disable-hardening Do not use compiler/linker exploit mitigation
1570 --enable-pie Build sudo as a position independent executable.
1571 --enable-admin-flag Whether to create a Ubuntu-style admin flag file
1572 --disable-nls Disable natural language support using gettext
1573 --disable-rpath Disable passing of -Rpath to the linker
1574 --enable-gss-krb5-ccache-name
1575 Use GSS-API to set the Kerberos V cred cache name
1576 --enable-shared[=PKGS] build shared libraries [default=yes]
1577 --enable-static[=PKGS] build static libraries [default=yes]
1578 --enable-fast-install[=PKGS]
1579 optimize for fast installation [default=yes]
1580 --disable-libtool-lock avoid locking (might break parallel builds)
1581 --disable-sia Disable SIA on Digital UNIX
1582 --disable-largefile omit support for large files
1583 --disable-pam-session Disable PAM session support
1584 --enable-kerb5-instance instance string to append to the username (separated
1588 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1589 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1590 --with-otp-only deprecated
1591 --with-alertmail deprecated
1592 --with-devel add development options
1593 --with-CC C compiler to use
1594 --with-rpath deprecated, use --disable-rpath
1595 --with-blibpath=PATH deprecated
1596 --with-bsm-audit enable BSM audit support
1597 --with-linux-audit enable Linux audit support
1598 --with-sssd enable SSSD support
1599 --with-sssd-lib path to the SSSD library
1600 --with-incpath additional places to look for include files
1601 --with-libpath additional places to look for libraries
1602 --with-libraries additional libraries to link with
1603 --with-efence link with -lefence for malloc() debugging
1604 --with-csops add CSOps standard options
1605 --without-passwd don't use passwd/shadow file for authentication
1606 --with-skey=DIR enable S/Key support
1607 --with-opie=DIR enable OPIE support
1608 --with-long-otp-prompt use a two line OTP (skey/opie) prompt
1609 --with-SecurID[=DIR] enable SecurID support
1610 --with-fwtk[=DIR] enable FWTK AuthSRV support
1611 --with-kerb5[=DIR] enable Kerberos V support
1612 --with-aixauth enable AIX general authentication support
1613 --with-pam enable PAM support
1614 --with-AFS enable AFS support
1615 --with-DCE enable DCE support
1616 --with-logincap enable BSD login class support
1617 --with-bsdauth enable BSD authentication support
1618 --with-project enable Solaris project support
1619 --without-lecture don't print lecture for first-time sudoer
1620 --with-logging log via syslog, file, or both
1621 --with-logfac syslog facility to log with (default is "auth")
1622 --with-goodpri syslog priority for commands (def is "notice")
1623 --with-badpri syslog priority for failures (def is "alert")
1624 --with-logpath path to the sudo log file
1625 --with-loglen maximum length of a log file line (default is 80)
1626 --with-ignore-dot ignore '.' in the PATH
1627 --without-mail-if-no-user
1628 do not send mail if user not in sudoers
1629 --with-mail-if-no-host send mail if user in sudoers but not for this host
1630 --with-mail-if-noperms send mail if user not allowed to run command
1631 --with-mailto who should get sudo mail (default is "root")
1632 --with-mailsubject subject of sudo mail
1633 --with-passprompt default password prompt
1634 --with-badpass-message message the user sees when the password is wrong
1635 --with-fqdn expect fully qualified hosts in sudoers
1636 --with-timedir path to the sudo timestamp dir
1637 --with-iologdir=DIR directory to store sudo I/O log files in
1638 --with-sendmail set path to sendmail
1639 --without-sendmail do not send mail at all
1640 --with-sudoers-mode mode of sudoers file (defaults to 0440)
1641 --with-sudoers-uid uid that owns sudoers file (defaults to 0)
1642 --with-sudoers-gid gid that owns sudoers file (defaults to 0)
1643 --with-umask umask with which the prog should run (default is
1645 --without-umask Preserves the umask of the user invoking sudo.
1646 --with-umask-override Use the umask specified in sudoers even if it is
1647 less restrictive than the user's.
1648 --with-runas-default User to run commands as (default is "root")
1649 --with-exempt=group no passwd needed for users in this group
1650 --with-editor=path Default editor for visudo (defaults to vi)
1651 --with-env-editor Use the environment variable EDITOR for visudo
1652 --with-passwd-tries number of tries to enter password (default is 3)
1653 --with-timeout minutes before sudo asks for passwd again (def is 5
1655 --with-password-timeout passwd prompt timeout in minutes (default is 5
1657 --with-tty-tickets use a different ticket file for each tty
1658 --with-insults insult the user for entering an incorrect password
1659 --with-all-insults include all the sudo insult sets
1660 --with-classic-insults include the insults from the "classic" sudo
1661 --with-csops-insults include CSOps insults
1662 --with-hal-insults include 2001-like insults
1663 --with-goons-insults include the insults from the "Goon Show"
1664 --with-nsswitch[=PATH] path to nsswitch.conf
1665 --with-ldap[=DIR] enable LDAP support
1666 --with-ldap-conf-file path to LDAP configuration file
1667 --with-ldap-secret-file path to LDAP secret password file
1668 --with-pc-insults replace politically incorrect insults with less
1670 --with-secure-path override the user's path with a built-in one
1671 --without-interfaces don't try to read the ip addr of ether interfaces
1672 --with-stow deprecated
1673 --with-askpass=PATH Fully qualified pathname of askpass helper
1674 --with-plugindir set directory to load plugins from
1675 --with-man manual pages use man macros
1676 --with-mdoc manual pages use mdoc macros
1677 --with-selinux enable SELinux support
1678 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1680 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1681 --with-sysroot=DIR Search for dependent libraries within DIR
1682 (or the compiler's sysroot if not specified).
1683 --with-libtool=PATH specify path to libtool
1684 --with-noexec=PATH fully qualified pathname of sudo_noexec.so
1685 --with-netsvc[=PATH] path to netsvc.conf
1686 --with-pam-login enable specific PAM session for sudo -i
1688 Some influential environment variables:
1689 CC C compiler command
1690 CFLAGS C compiler flags
1691 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1692 nonstandard directory <lib dir>
1693 LIBS libraries to pass to the linker, e.g. -l<library>
1694 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1695 you have headers in a nonstandard directory <include dir>
1697 YACC The `Yet Another Compiler Compiler' implementation to use.
1698 Defaults to the first program found out of: `bison -y', `byacc',
1700 YFLAGS The list of arguments that will be passed by default to $YACC.
1701 This script will default YFLAGS to the empty string to avoid a
1702 default value of `-d' given by some make applications.
1704 Use these variables to override the choices made by `configure' or to help
1705 it to find libraries and programs with nonstandard names/locations.
1707 Report bugs to <http://www.sudo.ws/bugs/>.
1712 if test "$ac_init_help" = "recursive"; then
1713 # If there are subdirs, report their specific --help.
1714 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1715 test -d "$ac_dir" ||
1716 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1721 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1723 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1724 # A ".." for each directory in $ac_dir_suffix.
1725 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1726 case $ac_top_builddir_sub in
1727 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1728 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1731 ac_abs_top_builddir=$ac_pwd
1732 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1733 # for backward compatibility:
1734 ac_top_builddir=$ac_top_build_prefix
1737 .) # We are building in place.
1739 ac_top_srcdir=$ac_top_builddir_sub
1740 ac_abs_top_srcdir=$ac_pwd ;;
1741 [\\/]* | ?:[\\/]* ) # Absolute name.
1742 ac_srcdir=$srcdir$ac_dir_suffix;
1743 ac_top_srcdir=$srcdir
1744 ac_abs_top_srcdir=$srcdir ;;
1746 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1747 ac_top_srcdir=$ac_top_build_prefix$srcdir
1748 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1750 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1752 cd "$ac_dir" || { ac_status=$?; continue; }
1753 # Check for guested configure.
1754 if test -f "$ac_srcdir/configure.gnu"; then
1756 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1757 elif test -f "$ac_srcdir/configure"; then
1759 $SHELL "$ac_srcdir/configure" --help=recursive
1761 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1763 cd "$ac_pwd" || { ac_status=$?; break; }
1767 test -n "$ac_init_help" && exit $ac_status
1768 if $ac_init_version; then
1770 sudo configure 1.8.7
1771 generated by GNU Autoconf 2.68
1773 Copyright (C) 2010 Free Software Foundation, Inc.
1774 This configure script is free software; the Free Software Foundation
1775 gives unlimited permission to copy, distribute and modify it.
1780 ## ------------------------ ##
1781 ## Autoconf initialization. ##
1782 ## ------------------------ ##
1784 # ac_fn_c_try_compile LINENO
1785 # --------------------------
1786 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1787 ac_fn_c_try_compile ()
1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790 rm -f conftest.$ac_objext
1791 if { { ac_try="$ac_compile"
1793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1794 *) ac_try_echo=$ac_try;;
1796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797 $as_echo "$ac_try_echo"; } >&5
1798 (eval "$ac_compile") 2>conftest.err
1800 if test -s conftest.err; then
1801 grep -v '^ *+' conftest.err >conftest.er1
1802 cat conftest.er1 >&5
1803 mv -f conftest.er1 conftest.err
1805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1806 test $ac_status = 0; } && {
1807 test -z "$ac_c_werror_flag" ||
1808 test ! -s conftest.err
1809 } && test -s conftest.$ac_objext; then :
1812 $as_echo "$as_me: failed program was:" >&5
1813 sed 's/^/| /' conftest.$ac_ext >&5
1817 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1818 as_fn_set_status $ac_retval
1820 } # ac_fn_c_try_compile
1822 # ac_fn_c_try_link LINENO
1823 # -----------------------
1824 # Try to link conftest.$ac_ext, and return whether this succeeded.
1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828 rm -f conftest.$ac_objext conftest$ac_exeext
1829 if { { ac_try="$ac_link"
1831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832 *) ac_try_echo=$ac_try;;
1834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835 $as_echo "$ac_try_echo"; } >&5
1836 (eval "$ac_link") 2>conftest.err
1838 if test -s conftest.err; then
1839 grep -v '^ *+' conftest.err >conftest.er1
1840 cat conftest.er1 >&5
1841 mv -f conftest.er1 conftest.err
1843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1844 test $ac_status = 0; } && {
1845 test -z "$ac_c_werror_flag" ||
1846 test ! -s conftest.err
1847 } && test -s conftest$ac_exeext && {
1848 test "$cross_compiling" = yes ||
1849 $as_test_x conftest$ac_exeext
1853 $as_echo "$as_me: failed program was:" >&5
1854 sed 's/^/| /' conftest.$ac_ext >&5
1858 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1859 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1860 # interfere with the next link command; also delete a directory that is
1861 # left behind by Apple's compiler. We do this before executing the actions.
1862 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1863 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1864 as_fn_set_status $ac_retval
1866 } # ac_fn_c_try_link
1868 # ac_fn_c_try_cpp LINENO
1869 # ----------------------
1870 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874 if { { ac_try="$ac_cpp conftest.$ac_ext"
1876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877 *) ac_try_echo=$ac_try;;
1879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880 $as_echo "$ac_try_echo"; } >&5
1881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1883 if test -s conftest.err; then
1884 grep -v '^ *+' conftest.err >conftest.er1
1885 cat conftest.er1 >&5
1886 mv -f conftest.er1 conftest.err
1888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889 test $ac_status = 0; } > conftest.i && {
1890 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1891 test ! -s conftest.err
1895 $as_echo "$as_me: failed program was:" >&5
1896 sed 's/^/| /' conftest.$ac_ext >&5
1900 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901 as_fn_set_status $ac_retval
1905 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1906 # -------------------------------------------------------
1907 # Tests whether HEADER exists and can be compiled using the include files in
1908 # INCLUDES, setting the cache variable VAR accordingly.
1909 ac_fn_c_check_header_compile ()
1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1913 $as_echo_n "checking for $2... " >&6; }
1914 if eval \${$3+:} false; then :
1915 $as_echo_n "(cached) " >&6
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h. */
1922 if ac_fn_c_try_compile "$LINENO"; then :
1927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1931 $as_echo "$ac_res" >&6; }
1932 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1934 } # ac_fn_c_check_header_compile
1936 # ac_fn_c_try_run LINENO
1937 # ----------------------
1938 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1939 # that executables *can* be run.
1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943 if { { ac_try="$ac_link"
1945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1946 *) ac_try_echo=$ac_try;;
1948 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1949 $as_echo "$ac_try_echo"; } >&5
1950 (eval "$ac_link") 2>&5
1952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1953 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1954 { { case "(($ac_try" in
1955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1956 *) ac_try_echo=$ac_try;;
1958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1959 $as_echo "$ac_try_echo"; } >&5
1960 (eval "$ac_try") 2>&5
1962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1963 test $ac_status = 0; }; }; then :
1966 $as_echo "$as_me: program exited with status $ac_status" >&5
1967 $as_echo "$as_me: failed program was:" >&5
1968 sed 's/^/| /' conftest.$ac_ext >&5
1970 ac_retval=$ac_status
1972 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1973 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1974 as_fn_set_status $ac_retval
1978 # ac_fn_c_check_func LINENO FUNC VAR
1979 # ----------------------------------
1980 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1981 ac_fn_c_check_func ()
1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1985 $as_echo_n "checking for $2... " >&6; }
1986 if eval \${$3+:} false; then :
1987 $as_echo_n "(cached) " >&6
1989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1990 /* end confdefs.h. */
1991 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1993 #define $2 innocuous_$2
1995 /* System header to define __stub macros and hopefully few prototypes,
1996 which can conflict with char $2 (); below.
1997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1998 <limits.h> exists even on freestanding compilers. */
2001 # include <limits.h>
2003 # include <assert.h>
2008 /* Override any GCC internal prototype to avoid an error.
2009 Use char because int might match the return type of a GCC
2010 builtin and then its argument prototype would still apply. */
2015 /* The GNU C library defines this for functions which it implements
2016 to always fail with ENOSYS. Some functions are actually named
2017 something starting with __ and the normal name is an alias. */
2018 #if defined __stub_$2 || defined __stub___$2
2030 if ac_fn_c_try_link "$LINENO"; then :
2035 rm -f core conftest.err conftest.$ac_objext \
2036 conftest$ac_exeext conftest.$ac_ext
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2040 $as_echo "$ac_res" >&6; }
2041 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2043 } # ac_fn_c_check_func
2045 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2046 # -------------------------------------------
2047 # Tests whether TYPE exists after having included INCLUDES, setting cache
2048 # variable VAR accordingly.
2049 ac_fn_c_check_type ()
2051 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2053 $as_echo_n "checking for $2... " >&6; }
2054 if eval \${$3+:} false; then :
2055 $as_echo_n "(cached) " >&6
2058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2059 /* end confdefs.h. */
2070 if ac_fn_c_try_compile "$LINENO"; then :
2071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h. */
2083 if ac_fn_c_try_compile "$LINENO"; then :
2088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2094 $as_echo "$ac_res" >&6; }
2095 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2097 } # ac_fn_c_check_type
2099 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2100 # -------------------------------------------------------
2101 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2102 # the include files in INCLUDES and setting the cache variable VAR
2104 ac_fn_c_check_header_mongrel ()
2106 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2107 if eval \${$3+:} false; then :
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2109 $as_echo_n "checking for $2... " >&6; }
2110 if eval \${$3+:} false; then :
2111 $as_echo_n "(cached) " >&6
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2115 $as_echo "$ac_res" >&6; }
2117 # Is the header compilable?
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2119 $as_echo_n "checking $2 usability... " >&6; }
2120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2121 /* end confdefs.h. */
2125 if ac_fn_c_try_compile "$LINENO"; then :
2126 ac_header_compiler=yes
2128 ac_header_compiler=no
2130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2132 $as_echo "$ac_header_compiler" >&6; }
2134 # Is the header present?
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2136 $as_echo_n "checking $2 presence... " >&6; }
2137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138 /* end confdefs.h. */
2141 if ac_fn_c_try_cpp "$LINENO"; then :
2142 ac_header_preproc=yes
2144 ac_header_preproc=no
2146 rm -f conftest.err conftest.i conftest.$ac_ext
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2148 $as_echo "$ac_header_preproc" >&6; }
2150 # So? What about this header?
2151 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2154 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2156 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2160 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2162 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2164 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2166 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2168 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2169 ( $as_echo "## --------------------------------------- ##
2170 ## Report this to http://www.sudo.ws/bugs/ ##
2171 ## --------------------------------------- ##"
2172 ) | sed "s/^/$as_me: WARNING: /" >&2
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2176 $as_echo_n "checking for $2... " >&6; }
2177 if eval \${$3+:} false; then :
2178 $as_echo_n "(cached) " >&6
2180 eval "$3=\$ac_header_compiler"
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2184 $as_echo "$ac_res" >&6; }
2186 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2188 } # ac_fn_c_check_header_mongrel
2190 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2191 # ----------------------------------------------------
2192 # Tries to find if the field MEMBER exists in type AGGR, after including
2193 # INCLUDES, setting cache variable VAR accordingly.
2194 ac_fn_c_check_member ()
2196 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2198 $as_echo_n "checking for $2.$3... " >&6; }
2199 if eval \${$4+:} false; then :
2200 $as_echo_n "(cached) " >&6
2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203 /* end confdefs.h. */
2215 if ac_fn_c_try_compile "$LINENO"; then :
2218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219 /* end confdefs.h. */
2225 if (sizeof ac_aggr.$3)
2231 if ac_fn_c_try_compile "$LINENO"; then :
2236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2242 $as_echo "$ac_res" >&6; }
2243 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2245 } # ac_fn_c_check_member
2247 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2248 # --------------------------------------------
2249 # Tries to find the compile-time value of EXPR in a program that includes
2250 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2252 ac_fn_c_compute_int ()
2254 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2255 if test "$cross_compiling" = yes; then
2256 # Depending upon the size, compute the lo and hi bounds.
2257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2258 /* end confdefs.h. */
2263 static int test_array [1 - 2 * !(($2) >= 0)];
2270 if ac_fn_c_try_compile "$LINENO"; then :
2273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2274 /* end confdefs.h. */
2279 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2286 if ac_fn_c_try_compile "$LINENO"; then :
2287 ac_hi=$ac_mid; break
2289 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2290 if test $ac_lo -le $ac_mid; then
2294 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2300 /* end confdefs.h. */
2305 static int test_array [1 - 2 * !(($2) < 0)];
2312 if ac_fn_c_try_compile "$LINENO"; then :
2315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2316 /* end confdefs.h. */
2321 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2328 if ac_fn_c_try_compile "$LINENO"; then :
2329 ac_lo=$ac_mid; break
2331 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2332 if test $ac_mid -le $ac_hi; then
2336 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2346 # Binary search between lo and hi bounds.
2347 while test "x$ac_lo" != "x$ac_hi"; do
2348 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2350 /* end confdefs.h. */
2355 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2362 if ac_fn_c_try_compile "$LINENO"; then :
2365 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2370 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2375 /* end confdefs.h. */
2377 static long int longval () { return $2; }
2378 static unsigned long int ulongval () { return $2; }
2385 FILE *f = fopen ("conftest.val", "w");
2390 long int i = longval ();
2393 fprintf (f, "%ld", i);
2397 unsigned long int i = ulongval ();
2400 fprintf (f, "%lu", i);
2402 /* Do not output a trailing newline, as this causes \r\n confusion
2403 on some platforms. */
2404 return ferror (f) || fclose (f) != 0;
2410 if ac_fn_c_try_run "$LINENO"; then :
2411 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2416 conftest.$ac_objext conftest.beam conftest.$ac_ext
2420 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2421 as_fn_set_status $ac_retval
2423 } # ac_fn_c_compute_int
2425 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2426 # ---------------------------------------------
2427 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2429 ac_fn_c_check_decl ()
2431 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2432 as_decl_name=`echo $2|sed 's/ *(.*//'`
2433 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2435 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2436 if eval \${$3+:} false; then :
2437 $as_echo_n "(cached) " >&6
2439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2440 /* end confdefs.h. */
2445 #ifndef $as_decl_name
2447 (void) $as_decl_use;
2449 (void) $as_decl_name;
2457 if ac_fn_c_try_compile "$LINENO"; then :
2462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2466 $as_echo "$ac_res" >&6; }
2467 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2469 } # ac_fn_c_check_decl
2470 cat >config.log <<_ACEOF
2471 This file contains any messages produced by compilers while
2472 running configure, to aid debugging if configure makes a mistake.
2474 It was created by sudo $as_me 1.8.7, which was
2475 generated by GNU Autoconf 2.68. Invocation command line was
2487 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2488 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2489 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2490 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2491 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2493 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2494 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2496 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2497 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2498 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2499 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2500 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2501 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2502 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 test -z "$as_dir" && as_dir=.
2511 $as_echo "PATH: $as_dir"
2527 # Keep a trace of the command line.
2528 # Strip out --no-create and --no-recursion so they do not pile up.
2529 # Strip out --silent because we don't want to record it for future runs.
2530 # Also quote any args containing shell meta-characters.
2531 # Make two passes to allow for proper duplicate-argument suppression.
2535 ac_must_keep_next=false
2541 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2542 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2543 | -silent | --silent | --silen | --sile | --sil)
2546 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2549 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2551 as_fn_append ac_configure_args1 " '$ac_arg'"
2552 if test $ac_must_keep_next = true; then
2553 ac_must_keep_next=false # Got value, back to normal.
2556 *=* | --config-cache | -C | -disable-* | --disable-* \
2557 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2558 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2559 | -with-* | --with-* | -without-* | --without-* | --x)
2560 case "$ac_configure_args0 " in
2561 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2564 -* ) ac_must_keep_next=true ;;
2567 as_fn_append ac_configure_args " '$ac_arg'"
2572 { ac_configure_args0=; unset ac_configure_args0;}
2573 { ac_configure_args1=; unset ac_configure_args1;}
2575 # When interrupted or exit'd, cleanup temporary files, and complete
2576 # config.log. We remove comments because anyway the quotes in there
2577 # would cause problems or look ugly.
2578 # WARNING: Use '\'' to represent an apostrophe within the trap.
2579 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2580 trap 'exit_status=$?
2581 # Save into config.log some information that might help in debugging.
2585 $as_echo "## ---------------- ##
2586 ## Cache variables. ##
2587 ## ---------------- ##"
2589 # The following way of writing the cache mishandles newlines in values,
2591 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2592 eval ac_val=\$$ac_var
2596 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2597 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2600 _ | IFS | as_nl) ;; #(
2601 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2602 *) { eval $ac_var=; unset $ac_var;} ;;
2607 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2608 *${as_nl}ac_space=\ *)
2610 "s/'\''/'\''\\\\'\'''\''/g;
2611 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2614 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2621 $as_echo "## ----------------- ##
2622 ## Output variables. ##
2623 ## ----------------- ##"
2625 for ac_var in $ac_subst_vars
2627 eval ac_val=\$$ac_var
2629 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2631 $as_echo "$ac_var='\''$ac_val'\''"
2635 if test -n "$ac_subst_files"; then
2636 $as_echo "## ------------------- ##
2637 ## File substitutions. ##
2638 ## ------------------- ##"
2640 for ac_var in $ac_subst_files
2642 eval ac_val=\$$ac_var
2644 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2646 $as_echo "$ac_var='\''$ac_val'\''"
2651 if test -s confdefs.h; then
2652 $as_echo "## ----------- ##
2659 test "$ac_signal" != 0 &&
2660 $as_echo "$as_me: caught signal $ac_signal"
2661 $as_echo "$as_me: exit $exit_status"
2663 rm -f core *.core core.conftest.* &&
2664 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2667 for ac_signal in 1 2 13 15; do
2668 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2672 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2673 rm -f -r conftest* confdefs.h
2675 $as_echo "/* confdefs.h */" > confdefs.h
2677 # Predefined preprocessor variables.
2679 cat >>confdefs.h <<_ACEOF
2680 #define PACKAGE_NAME "$PACKAGE_NAME"
2683 cat >>confdefs.h <<_ACEOF
2684 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2687 cat >>confdefs.h <<_ACEOF
2688 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2691 cat >>confdefs.h <<_ACEOF
2692 #define PACKAGE_STRING "$PACKAGE_STRING"
2695 cat >>confdefs.h <<_ACEOF
2696 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2699 cat >>confdefs.h <<_ACEOF
2700 #define PACKAGE_URL "$PACKAGE_URL"
2704 # Let the site file select an alternate cache file if it wants to.
2705 # Prefer an explicitly selected file to automatically selected ones.
2708 if test -n "$CONFIG_SITE"; then
2709 # We do not want a PATH search for config.site.
2710 case $CONFIG_SITE in #((
2711 -*) ac_site_file1=./$CONFIG_SITE;;
2712 */*) ac_site_file1=$CONFIG_SITE;;
2713 *) ac_site_file1=./$CONFIG_SITE;;
2715 elif test "x$prefix" != xNONE; then
2716 ac_site_file1=$prefix/share/config.site
2717 ac_site_file2=$prefix/etc/config.site
2719 ac_site_file1=$ac_default_prefix/share/config.site
2720 ac_site_file2=$ac_default_prefix/etc/config.site
2722 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2724 test "x$ac_site_file" = xNONE && continue
2725 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2727 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2728 sed 's/^/| /' "$ac_site_file" >&5
2730 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2731 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2732 as_fn_error $? "failed to load site script $ac_site_file
2733 See \`config.log' for more details" "$LINENO" 5; }
2737 if test -r "$cache_file"; then
2738 # Some versions of bash will fail to source /dev/null (special files
2739 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2740 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2742 $as_echo "$as_me: loading cache $cache_file" >&6;}
2744 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2745 *) . "./$cache_file";;
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2750 $as_echo "$as_me: creating cache $cache_file" >&6;}
2754 # Check that the precious variables saved in the cache have kept the same
2756 ac_cache_corrupted=false
2757 for ac_var in $ac_precious_vars; do
2758 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2759 eval ac_new_set=\$ac_env_${ac_var}_set
2760 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2761 eval ac_new_val=\$ac_env_${ac_var}_value
2762 case $ac_old_set,$ac_new_set in
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2765 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2766 ac_cache_corrupted=: ;;
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2769 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2770 ac_cache_corrupted=: ;;
2773 if test "x$ac_old_val" != "x$ac_new_val"; then
2774 # differences in whitespace do not lead to failure.
2775 ac_old_val_w=`echo x $ac_old_val`
2776 ac_new_val_w=`echo x $ac_new_val`
2777 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2779 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2780 ac_cache_corrupted=:
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2783 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2784 eval $ac_var=\$ac_old_val
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2787 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2789 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2792 # Pass precious variables to config.status.
2793 if test "$ac_new_set" = set; then
2795 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2796 *) ac_arg=$ac_var=$ac_new_val ;;
2798 case " $ac_configure_args " in
2799 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2800 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2804 if $ac_cache_corrupted; then
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2806 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2808 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2809 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2811 ## -------------------- ##
2812 ## Main body of script. ##
2813 ## -------------------- ##
2816 ac_cpp='$CPP $CPPFLAGS'
2817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2822 ac_config_headers="$ac_config_headers config.h pathnames.h"
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Sudo version $PACKAGE_VERSION" >&5
2825 $as_echo "$as_me: Configuring Sudo version $PACKAGE_VERSION" >&6;}
2933 # Begin initial values for man page substitution
2935 iolog_dir=/var/log/sudo-io
2936 timedir=/var/adm/sudo
2941 passprompt="Password:"
2953 mailsub="*** SECURITY information for %h ***"
2954 badpass_message="Sorry, try again."
2965 ldap_conf=/etc/ldap.conf
2966 ldap_secret=/etc/ldap.secret
2967 netsvc_conf=/etc/netsvc.conf
2968 noexec_file=/usr/local/libexec/sudo/sudo_noexec.so
2969 sesh_file=/usr/local/libexec/sudo/sesh
2970 nsswitch_conf=/etc/nsswitch.conf
2971 secure_path="not set"
2973 PLUGINDIR=/usr/local/libexec/sudo
2975 # End initial values for man page substitution
2980 : ${MANDIRTYPE='man'}
2982 : ${SHLIB_MODE='0644'}
2983 : ${SUDOERS_MODE='0440'}
2984 : ${SUDOERS_UID='0'}
2985 : ${SUDOERS_GID='0'}
3002 LT_LDEXPORTS="-export-symbols \$(shlib_exp)"
3003 LT_LDDEP="\$(shlib_exp)"
3005 OS_INIT=os_init_common
3011 shadow_libs_optional=
3014 RTLD_PRELOAD_VAR="LD_PRELOAD"
3015 RTLD_PRELOAD_ENABLE_VAR=
3016 RTLD_PRELOAD_DELIM=":"
3017 RTLD_PRELOAD_DEFAULT=
3022 # Prior to sudo 1.8.7, sudo stored libexec files in $libexecdir.
3023 # Starting with sudo 1.8.7, $libexecdir/sudo is used so strip
3024 # off an extraneous "/sudo" from libexecdir.
3026 case "$libexecdir" in
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libexecdir should not include the \"sudo\" subdirectory" >&5
3029 $as_echo "$as_me: WARNING: libexecdir should not include the \"sudo\" subdirectory" >&2;}
3030 libexecdir=`expr "$libexecdir" : '\\(.*\\)/sudo$'`
3036 # Check whether --with-otp-only was given.
3037 if test "${with_otp_only+set}" = set; then :
3038 withval=$with_otp_only; case $with_otp_only in
3039 yes) with_passwd="no"
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-otp-only option deprecated, treating as --without-passwd" >&5
3041 $as_echo "$as_me: --with-otp-only option deprecated, treating as --without-passwd" >&6;}
3048 # Check whether --with-alertmail was given.
3049 if test "${with_alertmail+set}" = set; then :
3050 withval=$with_alertmail; case $with_alertmail in
3051 *) with_mailto="$with_alertmail"
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-alertmail option deprecated, treating as --mailto" >&5
3053 $as_echo "$as_me: --with-alertmail option deprecated, treating as --mailto" >&6;}
3061 # Check whether --with-devel was given.
3062 if test "${with_devel+set}" = set; then :
3063 withval=$with_devel; case $with_devel in
3064 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: Setting up for development: -Wall, flex, yacc" >&5
3065 $as_echo "$as_me: Setting up for development: -Wall, flex, yacc" >&6;}
3066 OSDEFS="${OSDEFS} -DSUDO_DEVEL"
3071 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&5
3072 $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&2;}
3079 # Check whether --with-CC was given.
3080 if test "${with_CC+set}" = set; then :
3081 withval=$with_CC; case $with_CC in
3082 *) as_fn_error $? "the --with-CC option is no longer supported, please set the CC environment variable instead." "$LINENO" 5
3089 # Check whether --with-rpath was given.
3090 if test "${with_rpath+set}" = set; then :
3091 withval=$with_rpath; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-rpath deprecated, rpath is now the default" >&5
3092 $as_echo "$as_me: WARNING: --with-rpath deprecated, rpath is now the default" >&2;}
3097 # Check whether --with-blibpath was given.
3098 if test "${with_blibpath+set}" = set; then :
3099 withval=$with_blibpath; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-blibpath deprecated, use --with-libpath" >&5
3100 $as_echo "$as_me: WARNING: --with-blibpath deprecated, use --with-libpath" >&2;}
3105 # Check whether --with-bsm-audit was given.
3106 if test "${with_bsm_audit+set}" = set; then :
3107 withval=$with_bsm_audit; case $with_bsm_audit in
3108 yes) $as_echo "#define HAVE_BSM_AUDIT 1" >>confdefs.h
3110 SUDOERS_LIBS="${SUDOERS_LIBS} -lbsm"
3111 SUDOERS_OBJS="${SUDOERS_OBJS} bsm_audit.lo"
3114 *) as_fn_error $? "\"--with-bsm-audit does not take an argument.\"" "$LINENO" 5
3121 ac_cpp='$CPP $CPPFLAGS'
3122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3125 if test -n "$ac_tool_prefix"; then
3126 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3127 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3129 $as_echo_n "checking for $ac_word... " >&6; }
3130 if ${ac_cv_prog_CC+:} false; then :
3131 $as_echo_n "(cached) " >&6
3133 if test -n "$CC"; then
3134 ac_cv_prog_CC="$CC" # Let the user override the test.
3136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3140 test -z "$as_dir" && as_dir=.
3141 for ac_exec_ext in '' $ac_executable_extensions; do
3142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3143 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3154 if test -n "$CC"; then
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3156 $as_echo "$CC" >&6; }
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3159 $as_echo "no" >&6; }
3164 if test -z "$ac_cv_prog_CC"; then
3166 # Extract the first word of "gcc", so it can be a program name with args.
3167 set dummy gcc; ac_word=$2
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3169 $as_echo_n "checking for $ac_word... " >&6; }
3170 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3171 $as_echo_n "(cached) " >&6
3173 if test -n "$ac_ct_CC"; then
3174 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3180 test -z "$as_dir" && as_dir=.
3181 for ac_exec_ext in '' $ac_executable_extensions; do
3182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3183 ac_cv_prog_ac_ct_CC="gcc"
3184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3193 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3194 if test -n "$ac_ct_CC"; then
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3196 $as_echo "$ac_ct_CC" >&6; }
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3199 $as_echo "no" >&6; }
3202 if test "x$ac_ct_CC" = x; then
3205 case $cross_compiling:$ac_tool_warned in
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3209 ac_tool_warned=yes ;;
3217 if test -z "$CC"; then
3218 if test -n "$ac_tool_prefix"; then
3219 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3220 set dummy ${ac_tool_prefix}cc; ac_word=$2
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3222 $as_echo_n "checking for $ac_word... " >&6; }
3223 if ${ac_cv_prog_CC+:} false; then :
3224 $as_echo_n "(cached) " >&6
3226 if test -n "$CC"; then
3227 ac_cv_prog_CC="$CC" # Let the user override the test.
3229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3233 test -z "$as_dir" && as_dir=.
3234 for ac_exec_ext in '' $ac_executable_extensions; do
3235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3236 ac_cv_prog_CC="${ac_tool_prefix}cc"
3237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3247 if test -n "$CC"; then
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3249 $as_echo "$CC" >&6; }
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3252 $as_echo "no" >&6; }
3258 if test -z "$CC"; then
3259 # Extract the first word of "cc", so it can be a program name with args.
3260 set dummy cc; ac_word=$2
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3262 $as_echo_n "checking for $ac_word... " >&6; }
3263 if ${ac_cv_prog_CC+:} false; then :
3264 $as_echo_n "(cached) " >&6
3266 if test -n "$CC"; then
3267 ac_cv_prog_CC="$CC" # Let the user override the test.
3270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274 test -z "$as_dir" && as_dir=.
3275 for ac_exec_ext in '' $ac_executable_extensions; do
3276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3277 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3278 ac_prog_rejected=yes
3282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3289 if test $ac_prog_rejected = yes; then
3290 # We found a bogon in the path, so make sure we never use it.
3291 set dummy $ac_cv_prog_CC
3293 if test $# != 0; then
3294 # We chose a different compiler from the bogus one.
3295 # However, it has the same basename, so the bogon will be chosen
3296 # first if we set CC to just the basename; use the full file name.
3298 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3304 if test -n "$CC"; then
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3306 $as_echo "$CC" >&6; }
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3309 $as_echo "no" >&6; }
3314 if test -z "$CC"; then
3315 if test -n "$ac_tool_prefix"; then
3316 for ac_prog in cl.exe
3318 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3319 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3321 $as_echo_n "checking for $ac_word... " >&6; }
3322 if ${ac_cv_prog_CC+:} false; then :
3323 $as_echo_n "(cached) " >&6
3325 if test -n "$CC"; then
3326 ac_cv_prog_CC="$CC" # Let the user override the test.
3328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3332 test -z "$as_dir" && as_dir=.
3333 for ac_exec_ext in '' $ac_executable_extensions; do
3334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3335 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3346 if test -n "$CC"; then
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3348 $as_echo "$CC" >&6; }
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3351 $as_echo "no" >&6; }
3355 test -n "$CC" && break
3358 if test -z "$CC"; then
3360 for ac_prog in cl.exe
3362 # Extract the first word of "$ac_prog", so it can be a program name with args.
3363 set dummy $ac_prog; ac_word=$2
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3365 $as_echo_n "checking for $ac_word... " >&6; }
3366 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3367 $as_echo_n "(cached) " >&6
3369 if test -n "$ac_ct_CC"; then
3370 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3376 test -z "$as_dir" && as_dir=.
3377 for ac_exec_ext in '' $ac_executable_extensions; do
3378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3379 ac_cv_prog_ac_ct_CC="$ac_prog"
3380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3389 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3390 if test -n "$ac_ct_CC"; then
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3392 $as_echo "$ac_ct_CC" >&6; }
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3395 $as_echo "no" >&6; }
3399 test -n "$ac_ct_CC" && break
3402 if test "x$ac_ct_CC" = x; then
3405 case $cross_compiling:$ac_tool_warned in
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3408 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3409 ac_tool_warned=yes ;;
3418 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3419 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3420 as_fn_error $? "no acceptable C compiler found in \$PATH
3421 See \`config.log' for more details" "$LINENO" 5; }
3423 # Provide some information about the compiler.
3424 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3427 for ac_option in --version -v -V -qversion; do
3428 { { ac_try="$ac_compiler $ac_option >&5"
3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431 *) ac_try_echo=$ac_try;;
3433 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3434 $as_echo "$ac_try_echo"; } >&5
3435 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3437 if test -s conftest.err; then
3439 ... rest of stderr output deleted ...
3440 10q' conftest.err >conftest.er1
3441 cat conftest.er1 >&5
3443 rm -f conftest.er1 conftest.err
3444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3445 test $ac_status = 0; }
3448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3449 /* end confdefs.h. */
3459 ac_clean_files_save=$ac_clean_files
3460 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3461 # Try to create an executable without -o first, disregard a.out.
3462 # It will help us diagnose broken compilers, and finding out an intuition
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3465 $as_echo_n "checking whether the C compiler works... " >&6; }
3466 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3468 # The possible output files:
3469 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3472 for ac_file in $ac_files
3475 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3476 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3481 if { { ac_try="$ac_link_default"
3483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484 *) ac_try_echo=$ac_try;;
3486 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3487 $as_echo "$ac_try_echo"; } >&5
3488 (eval "$ac_link_default") 2>&5
3490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3491 test $ac_status = 0; }; then :
3492 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3493 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3494 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3495 # so that the user can short-circuit this test for compilers unknown to
3497 for ac_file in $ac_files ''
3499 test -f "$ac_file" || continue
3501 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3504 # We found the default executable, but exeext='' is most
3508 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3510 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3512 # We set ac_cv_exeext here because the later test for it is not
3513 # safe: cross compilers may not add the suffix if given an `-o'
3514 # argument, so we may need to know it at that point already.
3515 # Even if this section looks crufty: it has the advantage of
3522 test "$ac_cv_exeext" = no && ac_cv_exeext=
3527 if test -z "$ac_file"; then :
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3529 $as_echo "no" >&6; }
3530 $as_echo "$as_me: failed program was:" >&5
3531 sed 's/^/| /' conftest.$ac_ext >&5
3533 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3534 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3535 as_fn_error 77 "C compiler cannot create executables
3536 See \`config.log' for more details" "$LINENO" 5; }
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3539 $as_echo "yes" >&6; }
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3542 $as_echo_n "checking for C compiler default output file name... " >&6; }
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3544 $as_echo "$ac_file" >&6; }
3545 ac_exeext=$ac_cv_exeext
3547 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3548 ac_clean_files=$ac_clean_files_save
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3550 $as_echo_n "checking for suffix of executables... " >&6; }
3551 if { { ac_try="$ac_link"
3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554 *) ac_try_echo=$ac_try;;
3556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3557 $as_echo "$ac_try_echo"; } >&5
3558 (eval "$ac_link") 2>&5
3560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3561 test $ac_status = 0; }; then :
3562 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3563 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3564 # work properly (i.e., refer to `conftest.exe'), while it won't with
3566 for ac_file in conftest.exe conftest conftest.*; do
3567 test -f "$ac_file" || continue
3569 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3570 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3576 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3578 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3579 See \`config.log' for more details" "$LINENO" 5; }
3581 rm -f conftest conftest$ac_cv_exeext
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3583 $as_echo "$ac_cv_exeext" >&6; }
3585 rm -f conftest.$ac_ext
3586 EXEEXT=$ac_cv_exeext
3588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3589 /* end confdefs.h. */
3594 FILE *f = fopen ("conftest.out", "w");
3595 return ferror (f) || fclose (f) != 0;
3601 ac_clean_files="$ac_clean_files conftest.out"
3602 # Check that the compiler produces executables we can run. If not, either
3603 # the compiler is broken, or we cross compile.
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3605 $as_echo_n "checking whether we are cross compiling... " >&6; }
3606 if test "$cross_compiling" != yes; then
3607 { { ac_try="$ac_link"
3609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3610 *) ac_try_echo=$ac_try;;
3612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3613 $as_echo "$ac_try_echo"; } >&5
3614 (eval "$ac_link") 2>&5
3616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3617 test $ac_status = 0; }
3618 if { ac_try='./conftest$ac_cv_exeext'
3619 { { case "(($ac_try" in
3620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3621 *) ac_try_echo=$ac_try;;
3623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3624 $as_echo "$ac_try_echo"; } >&5
3625 (eval "$ac_try") 2>&5
3627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3628 test $ac_status = 0; }; }; then
3631 if test "$cross_compiling" = maybe; then
3634 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3636 as_fn_error $? "cannot run C compiled programs.
3637 If you meant to cross compile, use \`--host'.
3638 See \`config.log' for more details" "$LINENO" 5; }
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3643 $as_echo "$cross_compiling" >&6; }
3645 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3646 ac_clean_files=$ac_clean_files_save
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3648 $as_echo_n "checking for suffix of object files... " >&6; }
3649 if ${ac_cv_objext+:} false; then :
3650 $as_echo_n "(cached) " >&6
3652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3653 /* end confdefs.h. */
3663 rm -f conftest.o conftest.obj
3664 if { { ac_try="$ac_compile"
3666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667 *) ac_try_echo=$ac_try;;
3669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3670 $as_echo "$ac_try_echo"; } >&5
3671 (eval "$ac_compile") 2>&5
3673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3674 test $ac_status = 0; }; then :
3675 for ac_file in conftest.o conftest.obj conftest.*; do
3676 test -f "$ac_file" || continue;
3678 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3679 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3684 $as_echo "$as_me: failed program was:" >&5
3685 sed 's/^/| /' conftest.$ac_ext >&5
3687 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3688 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3689 as_fn_error $? "cannot compute suffix of object files: cannot compile
3690 See \`config.log' for more details" "$LINENO" 5; }
3692 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3695 $as_echo "$ac_cv_objext" >&6; }
3696 OBJEXT=$ac_cv_objext
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3699 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3700 if ${ac_cv_c_compiler_gnu+:} false; then :
3701 $as_echo_n "(cached) " >&6
3703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3704 /* end confdefs.h. */
3717 if ac_fn_c_try_compile "$LINENO"; then :
3722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3723 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3727 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3728 if test $ac_compiler_gnu = yes; then
3733 ac_test_CFLAGS=${CFLAGS+set}
3734 ac_save_CFLAGS=$CFLAGS
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3736 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3737 if ${ac_cv_prog_cc_g+:} false; then :
3738 $as_echo_n "(cached) " >&6
3740 ac_save_c_werror_flag=$ac_c_werror_flag
3741 ac_c_werror_flag=yes
3744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3745 /* end confdefs.h. */
3755 if ac_fn_c_try_compile "$LINENO"; then :
3759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760 /* end confdefs.h. */
3770 if ac_fn_c_try_compile "$LINENO"; then :
3773 ac_c_werror_flag=$ac_save_c_werror_flag
3775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3776 /* end confdefs.h. */
3786 if ac_fn_c_try_compile "$LINENO"; then :
3789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3794 ac_c_werror_flag=$ac_save_c_werror_flag
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3797 $as_echo "$ac_cv_prog_cc_g" >&6; }
3798 if test "$ac_test_CFLAGS" = set; then
3799 CFLAGS=$ac_save_CFLAGS
3800 elif test $ac_cv_prog_cc_g = yes; then
3801 if test "$GCC" = yes; then
3807 if test "$GCC" = yes; then
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3814 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3815 if ${ac_cv_prog_cc_c89+:} false; then :
3816 $as_echo_n "(cached) " >&6
3818 ac_cv_prog_cc_c89=no
3820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821 /* end confdefs.h. */
3824 #include <sys/types.h>
3825 #include <sys/stat.h>
3826 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3827 struct buf { int x; };
3828 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3829 static char *e (p, i)
3835 static char *f (char * (*g) (char **, int), char **p, ...)
3840 s = g (p, va_arg (v,int));
3845 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3846 function prototypes and stuff, but not '\xHH' hex character constants.
3847 These don't provoke an error unfortunately, instead are silently treated
3848 as 'x'. The following induces an error, until -std is added to get
3849 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3850 array size at least. It's necessary to write '\x00'==0 to get something
3851 that's true only with -std. */
3852 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3854 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3855 inside strings and character constants. */
3857 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3859 int test (int i, double x);
3860 struct s1 {int (*f) (int a);};
3861 struct s2 {int (*f) (double a);};
3862 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3868 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3873 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3874 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3876 CC="$ac_save_CC $ac_arg"
3877 if ac_fn_c_try_compile "$LINENO"; then :
3878 ac_cv_prog_cc_c89=$ac_arg
3880 rm -f core conftest.err conftest.$ac_objext
3881 test "x$ac_cv_prog_cc_c89" != "xno" && break
3883 rm -f conftest.$ac_ext
3888 case "x$ac_cv_prog_cc_c89" in
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3891 $as_echo "none needed" >&6; } ;;
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3894 $as_echo "unsupported" >&6; } ;;
3896 CC="$CC $ac_cv_prog_cc_c89"
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3898 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3900 if test "x$ac_cv_prog_cc_c89" != xno; then :
3905 ac_cpp='$CPP $CPPFLAGS'
3906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3912 # Check whether --with-linux-audit was given.
3913 if test "${with_linux_audit+set}" = set; then :
3914 withval=$with_linux_audit; case $with_linux_audit in
3915 yes) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3916 /* end confdefs.h. */
3917 #include <libaudit.h>
3921 int i = AUDIT_USER_CMD; (void)i;
3926 if ac_fn_c_try_compile "$LINENO"; then :
3928 $as_echo "#define HAVE_LINUX_AUDIT 1" >>confdefs.h
3930 SUDO_LIBS="${SUDO_LIBS} -laudit"
3931 SUDOERS_LIBS="${SUDO_LIBS} -laudit"
3932 SUDOERS_OBJS="${SUDOERS_OBJS} linux_audit.lo"
3936 as_fn_error $? "unable to find AUDIT_USER_CMD in libaudit.h for --with-linux-audit" "$LINENO" 5
3939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3942 *) as_fn_error $? "\"--with-linux-audit does not take an argument.\"" "$LINENO" 5
3949 # Check whether --with-sssd was given.
3950 if test "${with_sssd+set}" = set; then :
3951 withval=$with_sssd; case $with_sssd in
3952 yes) SUDOERS_OBJS="${SUDOERS_OBJS} sssd.lo"
3953 $as_echo "#define HAVE_SSSD 1" >>confdefs.h
3957 *) as_fn_error $? "\"--with-sssd does not take an argument.\"" "$LINENO" 5
3964 # Check whether --with-sssd-lib was given.
3965 if test "${with_sssd_lib+set}" = set; then :
3966 withval=$with_sssd_lib;
3969 sssd_lib="\"LIBDIR\""
3970 test -n "$with_sssd_lib" && sssd_lib="$with_sssd_lib"
3971 cat >>confdefs.h <<EOF
3972 #define _PATH_SSSD_LIB "$sssd_lib"
3977 # Check whether --with-incpath was given.
3978 if test "${with_incpath+set}" = set; then :
3979 withval=$with_incpath; case $with_incpath in
3980 yes) as_fn_error $? "\"must give --with-incpath an argument.\"" "$LINENO" 5
3982 no) as_fn_error $? "\"--without-incpath not supported.\"" "$LINENO" 5
3984 *) { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_incpath} to CPPFLAGS" >&5
3985 $as_echo "$as_me: Adding ${with_incpath} to CPPFLAGS" >&6;}
3986 for i in ${with_incpath}; do
3988 case "${CPPFLAGS}" in
3989 *"-I${i}"|*"-I${i} ")
3992 if test X"${CPPFLAGS}" = X""; then
3995 CPPFLAGS="${CPPFLAGS} -I${i}"
4007 # Check whether --with-libpath was given.
4008 if test "${with_libpath+set}" = set; then :
4009 withval=$with_libpath; case $with_libpath in
4010 yes) as_fn_error $? "\"must give --with-libpath an argument.\"" "$LINENO" 5
4012 no) as_fn_error $? "\"--without-libpath not supported.\"" "$LINENO" 5
4014 *) { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_libpath} to LDFLAGS" >&5
4015 $as_echo "$as_me: Adding ${with_libpath} to LDFLAGS" >&6;}
4022 # Check whether --with-libraries was given.
4023 if test "${with_libraries+set}" = set; then :
4024 withval=$with_libraries; case $with_libraries in
4025 yes) as_fn_error $? "\"must give --with-libraries an argument.\"" "$LINENO" 5
4027 no) as_fn_error $? "\"--without-libraries not supported.\"" "$LINENO" 5
4029 *) { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_libraries} to LIBS" >&5
4030 $as_echo "$as_me: Adding ${with_libraries} to LIBS" >&6;}
4037 # Check whether --with-efence was given.
4038 if test "${with_efence+set}" = set; then :
4039 withval=$with_efence; case $with_efence in
4040 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: Sudo will link with -lefence (Electric Fence)" >&5
4041 $as_echo "$as_me: Sudo will link with -lefence (Electric Fence)" >&6;}
4042 LIBS="${LIBS} -lefence"
4043 if test -f /usr/local/lib/libefence.a; then
4044 with_libpath="${with_libpath} /usr/local/lib"
4048 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&5
4049 $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&2;}
4056 # Check whether --with-csops was given.
4057 if test "${with_csops+set}" = set; then :
4058 withval=$with_csops; case $with_csops in
4059 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: Adding CSOps standard options" >&5
4060 $as_echo "$as_me: Adding CSOps standard options" >&6;}
4064 with_classic_insults=yes
4065 with_csops_insults=yes
4068 : ${mansectform='5'}
4071 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&5
4072 $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&2;}
4079 # Check whether --with-passwd was given.
4080 if test "${with_passwd+set}" = set; then :
4081 withval=$with_passwd; case $with_passwd in
4082 yes|no) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use shadow/passwd file authentication" >&5
4083 $as_echo_n "checking whether to use shadow/passwd file authentication... " >&6; }
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_passwd" >&5
4085 $as_echo "$with_passwd" >&6; }
4087 test "$with_passwd" = "yes" && AUTH_REG="$AUTH_REG passwd"
4089 *) as_fn_error $? "\"Sorry, --with-passwd does not take an argument.\"" "$LINENO" 5
4096 # Check whether --with-skey was given.
4097 if test "${with_skey+set}" = set; then :
4098 withval=$with_skey; case $with_skey in
4100 *) $as_echo "#define HAVE_SKEY 1" >>confdefs.h
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try S/Key authentication" >&5
4103 $as_echo_n "checking whether to try S/Key authentication... " >&6; }
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4105 $as_echo "yes" >&6; }
4106 AUTH_REG="$AUTH_REG S/Key"
4113 # Check whether --with-opie was given.
4114 if test "${with_opie+set}" = set; then :
4115 withval=$with_opie; case $with_opie in
4117 *) $as_echo "#define HAVE_OPIE 1" >>confdefs.h
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try NRL OPIE authentication" >&5
4120 $as_echo_n "checking whether to try NRL OPIE authentication... " >&6; }
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4122 $as_echo "yes" >&6; }
4123 AUTH_REG="$AUTH_REG NRL_OPIE"
4130 # Check whether --with-long-otp-prompt was given.
4131 if test "${with_long_otp_prompt+set}" = set; then :
4132 withval=$with_long_otp_prompt; case $with_long_otp_prompt in
4133 yes) $as_echo "#define LONG_OTP_PROMPT 1" >>confdefs.h
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use a two line prompt for OTP authentication" >&5
4136 $as_echo_n "checking whether to use a two line prompt for OTP authentication... " >&6; }
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4138 $as_echo "yes" >&6; }
4141 no) long_otp_prompt=off
4143 *) as_fn_error $? "\"--with-long-otp-prompt does not take an argument.\"" "$LINENO" 5
4150 # Check whether --with-SecurID was given.
4151 if test "${with_SecurID+set}" = set; then :
4152 withval=$with_SecurID; case $with_SecurID in
4154 *) $as_echo "#define HAVE_SECURID 1" >>confdefs.h
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use SecurID for authentication" >&5
4157 $as_echo_n "checking whether to use SecurID for authentication... " >&6; }
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4159 $as_echo "yes" >&6; }
4160 AUTH_EXCL="$AUTH_EXCL SecurID"
4167 # Check whether --with-fwtk was given.
4168 if test "${with_fwtk+set}" = set; then :
4169 withval=$with_fwtk; case $with_fwtk in
4171 *) $as_echo "#define HAVE_FWTK 1" >>confdefs.h
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use FWTK AuthSRV for authentication" >&5
4174 $as_echo_n "checking whether to use FWTK AuthSRV for authentication... " >&6; }
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4176 $as_echo "yes" >&6; }
4177 AUTH_EXCL="$AUTH_EXCL FWTK"
4184 # Check whether --with-kerb5 was given.
4185 if test "${with_kerb5+set}" = set; then :
4186 withval=$with_kerb5; case $with_kerb5 in
4188 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try Kerberos V authentication" >&5
4189 $as_echo_n "checking whether to try Kerberos V authentication... " >&6; }
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4191 $as_echo "yes" >&6; }
4192 AUTH_REG="$AUTH_REG kerb5"
4199 # Check whether --with-aixauth was given.
4200 if test "${with_aixauth+set}" = set; then :
4201 withval=$with_aixauth; case $with_aixauth in
4202 yes) AUTH_EXCL="$AUTH_EXCL AIX_AUTH";;
4204 *) as_fn_error $? "\"--with-aixauth does not take an argument.\"" "$LINENO" 5
4211 # Check whether --with-pam was given.
4212 if test "${with_pam+set}" = set; then :
4213 withval=$with_pam; case $with_pam in
4214 yes) AUTH_EXCL="$AUTH_EXCL PAM";;
4216 *) as_fn_error $? "\"--with-pam does not take an argument.\"" "$LINENO" 5
4223 # Check whether --with-AFS was given.
4224 if test "${with_AFS+set}" = set; then :
4225 withval=$with_AFS; case $with_AFS in
4226 yes) $as_echo "#define HAVE_AFS 1" >>confdefs.h
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try AFS (kerberos) authentication" >&5
4229 $as_echo_n "checking whether to try AFS (kerberos) authentication... " >&6; }
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4231 $as_echo "yes" >&6; }
4232 AUTH_REG="$AUTH_REG AFS"
4235 *) as_fn_error $? "\"--with-AFS does not take an argument.\"" "$LINENO" 5
4242 # Check whether --with-DCE was given.
4243 if test "${with_DCE+set}" = set; then :
4244 withval=$with_DCE; case $with_DCE in
4245 yes) $as_echo "#define HAVE_DCE 1" >>confdefs.h
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try DCE (kerberos) authentication" >&5
4248 $as_echo_n "checking whether to try DCE (kerberos) authentication... " >&6; }
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4250 $as_echo "yes" >&6; }
4251 AUTH_REG="$AUTH_REG DCE"
4254 *) as_fn_error $? "\"--with-DCE does not take an argument.\"" "$LINENO" 5
4261 # Check whether --with-logincap was given.
4262 if test "${with_logincap+set}" = set; then :
4263 withval=$with_logincap; case $with_logincap in
4265 *) as_fn_error $? "\"--with-logincap does not take an argument.\"" "$LINENO" 5
4272 # Check whether --with-bsdauth was given.
4273 if test "${with_bsdauth+set}" = set; then :
4274 withval=$with_bsdauth; case $with_bsdauth in
4275 yes) AUTH_EXCL="$AUTH_EXCL BSD_AUTH";;
4277 *) as_fn_error $? "\"--with-bsdauth does not take an argument.\"" "$LINENO" 5
4284 # Check whether --with-project was given.
4285 if test "${with_project+set}" = set; then :
4286 withval=$with_project; case $with_project in
4289 *) as_fn_error $? "\"--with-project does not take an argument.\"" "$LINENO" 5
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to lecture users the first time they run sudo" >&5
4296 $as_echo_n "checking whether to lecture users the first time they run sudo... " >&6; }
4298 # Check whether --with-lecture was given.
4299 if test "${with_lecture+set}" = set; then :
4300 withval=$with_lecture; case $with_lecture in
4301 yes|short|always) lecture=once
4303 no|none|never) lecture=never
4305 *) as_fn_error $? "\"unknown argument to --with-lecture: $with_lecture\"" "$LINENO" 5
4310 if test "$lecture" = "once"; then
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4312 $as_echo "yes" >&6; }
4314 $as_echo "#define NO_LECTURE 1" >>confdefs.h
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4317 $as_echo "no" >&6; }
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sudo should log via syslog or to a file by default" >&5
4321 $as_echo_n "checking whether sudo should log via syslog or to a file by default... " >&6; }
4323 # Check whether --with-logging was given.
4324 if test "${with_logging+set}" = set; then :
4325 withval=$with_logging; case $with_logging in
4326 yes) as_fn_error $? "\"must give --with-logging an argument.\"" "$LINENO" 5
4328 no) as_fn_error $? "\"--without-logging not supported.\"" "$LINENO" 5
4330 syslog) $as_echo "#define LOGGING SLOG_SYSLOG" >>confdefs.h
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: syslog" >&5
4333 $as_echo "syslog" >&6; }
4335 file) $as_echo "#define LOGGING SLOG_FILE" >>confdefs.h
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file" >&5
4338 $as_echo "file" >&6; }
4340 both) $as_echo "#define LOGGING SLOG_BOTH" >>confdefs.h
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: both" >&5
4343 $as_echo "both" >&6; }
4345 *) as_fn_error $? "\"unknown argument to --with-logging: $with_logging\"" "$LINENO" 5
4349 $as_echo "#define LOGGING SLOG_SYSLOG" >>confdefs.h
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: syslog" >&5
4351 $as_echo "syslog" >&6; }
4356 # Check whether --with-logfac was given.
4357 if test "${with_logfac+set}" = set; then :
4358 withval=$with_logfac; case $with_logfac in
4359 yes) as_fn_error $? "\"must give --with-logfac an argument.\"" "$LINENO" 5
4361 no) as_fn_error $? "\"--without-logfac not supported.\"" "$LINENO" 5
4363 authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7) logfac=$with_logfac
4365 *) as_fn_error $? "\"$with_logfac is not a supported syslog facility.\"" "$LINENO" 5
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking at which syslog priority to log commands" >&5
4372 $as_echo_n "checking at which syslog priority to log commands... " >&6; }
4374 # Check whether --with-goodpri was given.
4375 if test "${with_goodpri+set}" = set; then :
4376 withval=$with_goodpri; case $with_goodpri in
4377 yes) as_fn_error $? "\"must give --with-goodpri an argument.\"" "$LINENO" 5
4379 no) as_fn_error $? "\"--without-goodpri not supported.\"" "$LINENO" 5
4381 alert|crit|debug|emerg|err|info|notice|warning)
4382 goodpri=$with_goodpri
4384 *) as_fn_error $? "\"$with_goodpri is not a supported syslog priority.\"" "$LINENO" 5
4390 cat >>confdefs.h <<_ACEOF
4391 #define PRI_SUCCESS "$goodpri"
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $goodpri" >&5
4395 $as_echo "$goodpri" >&6; }
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking at which syslog priority to log failures" >&5
4398 $as_echo_n "checking at which syslog priority to log failures... " >&6; }
4400 # Check whether --with-badpri was given.
4401 if test "${with_badpri+set}" = set; then :
4402 withval=$with_badpri; case $with_badpri in
4403 yes) as_fn_error $? "\"must give --with-badpri an argument.\"" "$LINENO" 5
4405 no) as_fn_error $? "\"--without-badpri not supported.\"" "$LINENO" 5
4407 alert|crit|debug|emerg|err|info|notice|warning)
4410 *) as_fn_error $? "$with_badpri is not a supported syslog priority." "$LINENO" 5
4416 cat >>confdefs.h <<_ACEOF
4417 #define PRI_FAILURE "$badpri"
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $badpri" >&5
4421 $as_echo "$badpri" >&6; }
4424 # Check whether --with-logpath was given.
4425 if test "${with_logpath+set}" = set; then :
4426 withval=$with_logpath; case $with_logpath in
4427 yes) as_fn_error $? "\"must give --with-logpath an argument.\"" "$LINENO" 5
4429 no) as_fn_error $? "\"--without-logpath not supported.\"" "$LINENO" 5
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how long a line in the log file should be" >&5
4436 $as_echo_n "checking how long a line in the log file should be... " >&6; }
4438 # Check whether --with-loglen was given.
4439 if test "${with_loglen+set}" = set; then :
4440 withval=$with_loglen; case $with_loglen in
4441 yes) as_fn_error $? "\"must give --with-loglen an argument.\"" "$LINENO" 5
4443 no) as_fn_error $? "\"--without-loglen not supported.\"" "$LINENO" 5
4445 [0-9]*) loglen=$with_loglen
4447 *) as_fn_error $? "\"you must enter a number, not $with_loglen\"" "$LINENO" 5
4453 cat >>confdefs.h <<_ACEOF
4454 #define MAXLOGFILELEN $loglen
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $loglen" >&5
4458 $as_echo "$loglen" >&6; }
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sudo should ignore '.' or '' in \$PATH" >&5
4461 $as_echo_n "checking whether sudo should ignore '.' or '' in \$PATH... " >&6; }
4463 # Check whether --with-ignore-dot was given.
4464 if test "${with_ignore_dot+set}" = set; then :
4465 withval=$with_ignore_dot; case $with_ignore_dot in
4470 *) as_fn_error $? "\"--with-ignore-dot does not take an argument.\"" "$LINENO" 5
4475 if test "$ignore_dot" = "on"; then
4476 $as_echo "#define IGNORE_DOT_PATH 1" >>confdefs.h
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4479 $as_echo "yes" >&6; }
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4482 $as_echo "no" >&6; }
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when a user is not in sudoers" >&5
4486 $as_echo_n "checking whether to send mail when a user is not in sudoers... " >&6; }
4488 # Check whether --with-mail-if-no-user was given.
4489 if test "${with_mail_if_no_user+set}" = set; then :
4490 withval=$with_mail_if_no_user; case $with_mail_if_no_user in
4491 yes) mail_no_user=on
4493 no) mail_no_user=off
4495 *) as_fn_error $? "\"--with-mail-if-no-user does not take an argument.\"" "$LINENO" 5
4500 if test "$mail_no_user" = "on"; then
4501 $as_echo "#define SEND_MAIL_WHEN_NO_USER 1" >>confdefs.h
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4504 $as_echo "yes" >&6; }
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4507 $as_echo "no" >&6; }
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when user listed but not for this host" >&5
4511 $as_echo_n "checking whether to send mail when user listed but not for this host... " >&6; }
4513 # Check whether --with-mail-if-no-host was given.
4514 if test "${with_mail_if_no_host+set}" = set; then :
4515 withval=$with_mail_if_no_host; case $with_mail_if_no_host in
4516 yes) mail_no_host=on
4518 no) mail_no_host=off
4520 *) as_fn_error $? "\"--with-mail-if-no-host does not take an argument.\"" "$LINENO" 5
4525 if test "$mail_no_host" = "on"; then
4526 $as_echo "#define SEND_MAIL_WHEN_NO_HOST 1" >>confdefs.h
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4529 $as_echo "yes" >&6; }
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4532 $as_echo "no" >&6; }
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when a user tries a disallowed command" >&5
4536 $as_echo_n "checking whether to send mail when a user tries a disallowed command... " >&6; }
4538 # Check whether --with-mail-if-noperms was given.
4539 if test "${with_mail_if_noperms+set}" = set; then :
4540 withval=$with_mail_if_noperms; case $with_mail_if_noperms in
4541 yes) mail_noperms=on
4543 no) mail_noperms=off
4545 *) as_fn_error $? "\"--with-mail-if-noperms does not take an argument.\"" "$LINENO" 5
4550 if test "$mail_noperms" = "on"; then
4551 $as_echo "#define SEND_MAIL_WHEN_NOT_OK 1" >>confdefs.h
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4554 $as_echo "yes" >&6; }
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4557 $as_echo "no" >&6; }
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking who should get the mail that sudo sends" >&5
4561 $as_echo_n "checking who should get the mail that sudo sends... " >&6; }
4563 # Check whether --with-mailto was given.
4564 if test "${with_mailto+set}" = set; then :
4565 withval=$with_mailto; case $with_mailto in
4566 yes) as_fn_error $? "\"must give --with-mailto an argument.\"" "$LINENO" 5
4568 no) as_fn_error $? "\"--without-mailto not supported.\"" "$LINENO" 5
4570 *) mailto=$with_mailto
4576 cat >>confdefs.h <<_ACEOF
4577 #define MAILTO "$mailto"
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mailto" >&5
4581 $as_echo "$mailto" >&6; }
4584 # Check whether --with-mailsubject was given.
4585 if test "${with_mailsubject+set}" = set; then :
4586 withval=$with_mailsubject; case $with_mailsubject in
4587 yes) as_fn_error $? "\"must give --with-mailsubject an argument.\"" "$LINENO" 5
4589 no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-mailsubject not supported." >&5
4590 $as_echo "$as_me: WARNING: Sorry, --without-mailsubject not supported." >&2;}
4592 *) mailsub="$with_mailsubject"
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sudo mail subject" >&5
4594 $as_echo_n "checking sudo mail subject... " >&6; }
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using alert mail subject: $mailsub" >&5
4596 $as_echo "Using alert mail subject: $mailsub" >&6; }
4602 cat >>confdefs.h <<_ACEOF
4603 #define MAILSUBJECT "$mailsub"
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bad password prompt" >&5
4608 $as_echo_n "checking for bad password prompt... " >&6; }
4610 # Check whether --with-passprompt was given.
4611 if test "${with_passprompt+set}" = set; then :
4612 withval=$with_passprompt; case $with_passprompt in
4613 yes) as_fn_error $? "\"must give --with-passprompt an argument.\"" "$LINENO" 5
4615 no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-passprompt not supported." >&5
4616 $as_echo "$as_me: WARNING: Sorry, --without-passprompt not supported." >&2;}
4618 *) passprompt="$with_passprompt"
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $passprompt" >&5
4623 $as_echo "$passprompt" >&6; }
4625 cat >>confdefs.h <<_ACEOF
4626 #define PASSPROMPT "$passprompt"
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bad password message" >&5
4631 $as_echo_n "checking for bad password message... " >&6; }
4633 # Check whether --with-badpass-message was given.
4634 if test "${with_badpass_message+set}" = set; then :
4635 withval=$with_badpass_message; case $with_badpass_message in
4636 yes) as_fn_error $? "\"Must give --with-badpass-message an argument.\"" "$LINENO" 5
4638 no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-badpass-message not supported." >&5
4639 $as_echo "$as_me: WARNING: Sorry, --without-badpass-message not supported." >&2;}
4641 *) badpass_message="$with_badpass_message"
4647 cat >>confdefs.h <<_ACEOF
4648 #define INCORRECT_PASSWORD "$badpass_message"
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $badpass_message" >&5
4652 $as_echo "$badpass_message" >&6; }
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to expect fully qualified hosts in sudoers" >&5
4655 $as_echo_n "checking whether to expect fully qualified hosts in sudoers... " >&6; }
4657 # Check whether --with-fqdn was given.
4658 if test "${with_fqdn+set}" = set; then :
4659 withval=$with_fqdn; case $with_fqdn in
4664 *) as_fn_error $? "\"--with-fqdn does not take an argument.\"" "$LINENO" 5
4669 if test "$fqdn" = "on"; then
4670 $as_echo "#define FQDN 1" >>confdefs.h
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4673 $as_echo "yes" >&6; }
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4676 $as_echo "no" >&6; }
4680 # Check whether --with-timedir was given.
4681 if test "${with_timedir+set}" = set; then :
4682 withval=$with_timedir; case $with_timedir in
4683 yes) as_fn_error $? "\"must give --with-timedir an argument.\"" "$LINENO" 5
4685 no) as_fn_error $? "\"--without-timedir not supported.\"" "$LINENO" 5
4692 # Check whether --with-iologdir was given.
4693 if test "${with_iologdir+set}" = set; then :
4694 withval=$with_iologdir; case $with_iologdir in
4696 no) as_fn_error $? "\"--without-iologdir not supported.\"" "$LINENO" 5
4703 # Check whether --with-sendmail was given.
4704 if test "${with_sendmail+set}" = set; then :
4705 withval=$with_sendmail; case $with_sendmail in
4706 yes) with_sendmail=""
4709 *) cat >>confdefs.h <<EOF
4710 #define _PATH_SUDO_SENDMAIL "$with_sendmail"
4719 # Check whether --with-sudoers-mode was given.
4720 if test "${with_sudoers_mode+set}" = set; then :
4721 withval=$with_sudoers_mode; case $with_sudoers_mode in
4722 yes) as_fn_error $? "\"must give --with-sudoers-mode an argument.\"" "$LINENO" 5
4724 no) as_fn_error $? "\"--without-sudoers-mode not supported.\"" "$LINENO" 5
4726 [1-9]*) SUDOERS_MODE=0${with_sudoers_mode}
4728 0*) SUDOERS_MODE=$with_sudoers_mode
4730 *) as_fn_error $? "\"you must use an octal mode, not a name.\"" "$LINENO" 5
4737 # Check whether --with-sudoers-uid was given.
4738 if test "${with_sudoers_uid+set}" = set; then :
4739 withval=$with_sudoers_uid; case $with_sudoers_uid in
4740 yes) as_fn_error $? "\"must give --with-sudoers-uid an argument.\"" "$LINENO" 5
4742 no) as_fn_error $? "\"--without-sudoers-uid not supported.\"" "$LINENO" 5
4744 [0-9]*) SUDOERS_UID=$with_sudoers_uid
4746 *) as_fn_error $? "\"you must use an unsigned numeric uid, not a name.\"" "$LINENO" 5
4753 # Check whether --with-sudoers-gid was given.
4754 if test "${with_sudoers_gid+set}" = set; then :
4755 withval=$with_sudoers_gid; case $with_sudoers_gid in
4756 yes) as_fn_error $? "\"must give --with-sudoers-gid an argument.\"" "$LINENO" 5
4758 no) as_fn_error $? "\"--without-sudoers-gid not supported.\"" "$LINENO" 5
4760 [0-9]*) SUDOERS_GID=$with_sudoers_gid
4762 *) as_fn_error $? "\"you must use an unsigned numeric gid, not a name.\"" "$LINENO" 5
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umask programs should be run with" >&5
4769 $as_echo_n "checking for umask programs should be run with... " >&6; }
4771 # Check whether --with-umask was given.
4772 if test "${with_umask+set}" = set; then :
4773 withval=$with_umask; case $with_umask in
4774 yes) as_fn_error $? "\"must give --with-umask an argument.\"" "$LINENO" 5
4778 [0-9]*) sudo_umask=$with_umask
4780 *) as_fn_error $? "\"you must enter a numeric mask.\"" "$LINENO" 5
4786 cat >>confdefs.h <<_ACEOF
4787 #define SUDO_UMASK $sudo_umask
4790 if test "$sudo_umask" = "0777"; then
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: user" >&5
4792 $as_echo "user" >&6; }
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_umask" >&5
4795 $as_echo "$sudo_umask" >&6; }
4799 # Check whether --with-umask-override was given.
4800 if test "${with_umask_override+set}" = set; then :
4801 withval=$with_umask_override; case $with_umask_override in
4802 yes) $as_echo "#define UMASK_OVERRIDE 1" >>confdefs.h
4806 no) umask_override=off
4808 *) as_fn_error $? "\"--with-umask-override does not take an argument.\"" "$LINENO" 5
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default user to run commands as" >&5
4815 $as_echo_n "checking for default user to run commands as... " >&6; }
4817 # Check whether --with-runas-default was given.
4818 if test "${with_runas_default+set}" = set; then :
4819 withval=$with_runas_default; case $with_runas_default in
4820 yes) as_fn_error $? "\"must give --with-runas-default an argument.\"" "$LINENO" 5
4822 no) as_fn_error $? "\"--without-runas-default not supported.\"" "$LINENO" 5
4824 *) runas_default="$with_runas_default"
4830 cat >>confdefs.h <<_ACEOF
4831 #define RUNAS_DEFAULT "$runas_default"
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $runas_default" >&5
4835 $as_echo "$runas_default" >&6; }
4838 # Check whether --with-exempt was given.
4839 if test "${with_exempt+set}" = set; then :
4840 withval=$with_exempt; case $with_exempt in
4841 yes) as_fn_error $? "\"must give --with-exempt an argument.\"" "$LINENO" 5
4843 no) as_fn_error $? "\"--without-exempt not supported.\"" "$LINENO" 5
4846 cat >>confdefs.h <<_ACEOF
4847 #define EXEMPTGROUP "$with_exempt"
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for group to be exempt from password" >&5
4851 $as_echo_n "checking for group to be exempt from password... " >&6; }
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_exempt" >&5
4853 $as_echo "$with_exempt" >&6; }
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for editor that visudo should use" >&5
4860 $as_echo_n "checking for editor that visudo should use... " >&6; }
4862 # Check whether --with-editor was given.
4863 if test "${with_editor+set}" = set; then :
4864 withval=$with_editor; case $with_editor in
4865 yes) as_fn_error $? "\"must give --with-editor an argument.\"" "$LINENO" 5
4867 no) as_fn_error $? "\"--without-editor not supported.\"" "$LINENO" 5
4870 cat >>confdefs.h <<_ACEOF
4871 #define EDITOR "$with_editor"
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_editor" >&5
4875 $as_echo "$with_editor" >&6; }
4876 editor="$with_editor"
4880 $as_echo "#define EDITOR _PATH_VI" >>confdefs.h
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: vi" >&5
4882 $as_echo "vi" >&6; }
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to obey EDITOR and VISUAL environment variables" >&5
4887 $as_echo_n "checking whether to obey EDITOR and VISUAL environment variables... " >&6; }
4889 # Check whether --with-env-editor was given.
4890 if test "${with_env_editor+set}" = set; then :
4891 withval=$with_env_editor; case $with_env_editor in
4896 *) as_fn_error $? "\"--with-env-editor does not take an argument.\"" "$LINENO" 5
4901 if test "$env_editor" = "on"; then
4902 $as_echo "#define ENV_EDITOR 1" >>confdefs.h
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4905 $as_echo "yes" >&6; }
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4908 $as_echo "no" >&6; }
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of tries a user gets to enter their password" >&5
4912 $as_echo_n "checking number of tries a user gets to enter their password... " >&6; }
4914 # Check whether --with-passwd-tries was given.
4915 if test "${with_passwd_tries+set}" = set; then :
4916 withval=$with_passwd_tries; case $with_passwd_tries in
4918 no) as_fn_error $? "\"--without-editor not supported.\"" "$LINENO" 5
4920 [1-9]*) passwd_tries=$with_passwd_tries
4922 *) as_fn_error $? "\"you must enter the numer of tries, > 0\"" "$LINENO" 5
4928 cat >>confdefs.h <<_ACEOF
4929 #define TRIES_FOR_PASSWORD $passwd_tries
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $passwd_tries" >&5
4933 $as_echo "$passwd_tries" >&6; }
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking time in minutes after which sudo will ask for a password again" >&5
4936 $as_echo_n "checking time in minutes after which sudo will ask for a password again... " >&6; }
4938 # Check whether --with-timeout was given.
4939 if test "${with_timeout+set}" = set; then :
4940 withval=$with_timeout; case $with_timeout in
4944 [0-9]*) timeout=$with_timeout
4946 *) as_fn_error $? "\"you must enter the numer of minutes.\"" "$LINENO" 5
4952 cat >>confdefs.h <<_ACEOF
4953 #define TIMEOUT $timeout
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $timeout" >&5
4957 $as_echo "$timeout" >&6; }
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking time in minutes after the password prompt will time out" >&5
4960 $as_echo_n "checking time in minutes after the password prompt will time out... " >&6; }
4962 # Check whether --with-password-timeout was given.
4963 if test "${with_password_timeout+set}" = set; then :
4964 withval=$with_password_timeout; case $with_password_timeout in
4966 no) password_timeout=0
4968 [0-9]*) password_timeout=$with_password_timeout
4970 *) as_fn_error $? "\"you must enter the numer of minutes.\"" "$LINENO" 5
4976 cat >>confdefs.h <<_ACEOF
4977 #define PASSWORD_TIMEOUT $password_timeout
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $password_timeout" >&5
4981 $as_echo "$password_timeout" >&6; }
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use per-tty ticket files" >&5
4984 $as_echo_n "checking whether to use per-tty ticket files... " >&6; }
4986 # Check whether --with-tty-tickets was given.
4987 if test "${with_tty_tickets+set}" = set; then :
4988 withval=$with_tty_tickets; case $with_tty_tickets in
4993 *) as_fn_error $? "\"--with-tty-tickets does not take an argument.\"" "$LINENO" 5
4998 if test "$tty_tickets" = "off"; then
4999 $as_echo "#define NO_TTY_TICKETS 1" >>confdefs.h
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5002 $as_echo "no" >&6; }
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5005 $as_echo "yes" >&6; }
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include insults" >&5
5009 $as_echo_n "checking whether to include insults... " >&6; }
5011 # Check whether --with-insults was given.
5012 if test "${with_insults+set}" = set; then :
5013 withval=$with_insults; case $with_insults in
5015 with_classic_insults=yes
5016 with_csops_insults=yes
5018 disabled) insults=off
5019 with_classic_insults=yes
5020 with_csops_insults=yes
5024 *) as_fn_error $? "\"--with-insults does not take an argument.\"" "$LINENO" 5
5029 if test "$insults" = "on"; then
5030 $as_echo "#define USE_INSULTS 1" >>confdefs.h
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5033 $as_echo "yes" >&6; }
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5036 $as_echo "no" >&6; }
5040 # Check whether --with-all-insults was given.
5041 if test "${with_all_insults+set}" = set; then :
5042 withval=$with_all_insults; case $with_all_insults in
5043 yes) with_classic_insults=yes
5044 with_csops_insults=yes
5045 with_hal_insults=yes
5046 with_goons_insults=yes
5049 *) as_fn_error $? "\"--with-all-insults does not take an argument.\"" "$LINENO" 5
5056 # Check whether --with-classic-insults was given.
5057 if test "${with_classic_insults+set}" = set; then :
5058 withval=$with_classic_insults; case $with_classic_insults in
5059 yes) $as_echo "#define CLASSIC_INSULTS 1" >>confdefs.h
5063 *) as_fn_error $? "\"--with-classic-insults does not take an argument.\"" "$LINENO" 5
5070 # Check whether --with-csops-insults was given.
5071 if test "${with_csops_insults+set}" = set; then :
5072 withval=$with_csops_insults; case $with_csops_insults in
5073 yes) $as_echo "#define CSOPS_INSULTS 1" >>confdefs.h
5077 *) as_fn_error $? "\"--with-csops-insults does not take an argument.\"" "$LINENO" 5
5084 # Check whether --with-hal-insults was given.
5085 if test "${with_hal_insults+set}" = set; then :
5086 withval=$with_hal_insults; case $with_hal_insults in
5087 yes) $as_echo "#define HAL_INSULTS 1" >>confdefs.h
5091 *) as_fn_error $? "\"--with-hal-insults does not take an argument.\"" "$LINENO" 5
5098 # Check whether --with-goons-insults was given.
5099 if test "${with_goons_insults+set}" = set; then :
5100 withval=$with_goons_insults; case $with_goons_insults in
5101 yes) $as_echo "#define GOONS_INSULTS 1" >>confdefs.h
5105 *) as_fn_error $? "\"--with-goons-insults does not take an argument.\"" "$LINENO" 5
5112 # Check whether --with-nsswitch was given.
5113 if test "${with_nsswitch+set}" = set; then :
5114 withval=$with_nsswitch; case $with_nsswitch in
5116 yes) with_nsswitch="/etc/nsswitch.conf"
5124 # Check whether --with-ldap was given.
5125 if test "${with_ldap+set}" = set; then :
5126 withval=$with_ldap; case $with_ldap in
5128 *) $as_echo "#define HAVE_LDAP 1" >>confdefs.h
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sudoers from LDAP" >&5
5131 $as_echo_n "checking whether to use sudoers from LDAP... " >&6; }
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5133 $as_echo "yes" >&6; }
5140 # Check whether --with-ldap-conf-file was given.
5141 if test "${with_ldap_conf_file+set}" = set; then :
5142 withval=$with_ldap_conf_file;
5145 test -n "$with_ldap_conf_file" && ldap_conf="$with_ldap_conf_file"
5146 cat >>confdefs.h <<EOF
5147 #define _PATH_LDAP_CONF "$ldap_conf"
5152 # Check whether --with-ldap-secret-file was given.
5153 if test "${with_ldap_secret_file+set}" = set; then :
5154 withval=$with_ldap_secret_file;
5157 test -n "$with_ldap_secret_file" && ldap_secret="$with_ldap_secret_file"
5158 cat >>confdefs.h <<EOF
5159 #define _PATH_LDAP_SECRET "$ldap_secret"
5164 # Check whether --with-pc-insults was given.
5165 if test "${with_pc_insults+set}" = set; then :
5166 withval=$with_pc_insults; case $with_pc_insults in
5167 yes) $as_echo "#define PC_INSULTS 1" >>confdefs.h
5171 *) as_fn_error $? "\"--with-pc-insults does not take an argument.\"" "$LINENO" 5
5177 if test "$insults" = "on"; then
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which insult sets to include" >&5
5179 $as_echo_n "checking which insult sets to include... " >&6; }
5181 test "$with_goons_insults" = "yes" && i="goons ${i}"
5182 test "$with_hal_insults" = "yes" && i="hal ${i}"
5183 test "$with_csops_insults" = "yes" && i="csops ${i}"
5184 test "$with_classic_insults" = "yes" && i="classic ${i}"
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $i" >&5
5186 $as_echo "$i" >&6; }
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to override the user's path" >&5
5190 $as_echo_n "checking whether to override the user's path... " >&6; }
5192 # Check whether --with-secure-path was given.
5193 if test "${with_secure_path+set}" = set; then :
5194 withval=$with_secure_path; case $with_secure_path in
5195 yes) with_secure_path="/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc"
5196 cat >>confdefs.h <<_ACEOF
5197 #define SECURE_PATH "$with_secure_path"
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_secure_path" >&5
5201 $as_echo "$with_secure_path" >&6; }
5202 secure_path="set to $with_secure_path"
5204 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5205 $as_echo "no" >&6; }
5207 *) cat >>confdefs.h <<_ACEOF
5208 #define SECURE_PATH "$with_secure_path"
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_secure_path" >&5
5212 $as_echo "$with_secure_path" >&6; }
5213 secure_path="set to F<$with_secure_path>"
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5218 $as_echo "no" >&6; }
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to get ip addresses from the network interfaces" >&5
5223 $as_echo_n "checking whether to get ip addresses from the network interfaces... " >&6; }
5225 # Check whether --with-interfaces was given.
5226 if test "${with_interfaces+set}" = set; then :
5227 withval=$with_interfaces; case $with_interfaces in
5228 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5229 $as_echo "yes" >&6; }
5231 no) $as_echo "#define STUB_LOAD_INTERFACES 1" >>confdefs.h
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5234 $as_echo "no" >&6; }
5236 *) as_fn_error $? "\"--with-interfaces does not take an argument.\"" "$LINENO" 5
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5241 $as_echo "yes" >&6; }
5246 # Check whether --with-stow was given.
5247 if test "${with_stow+set}" = set; then :
5248 withval=$with_stow; case $with_stow in
5249 *) { $as_echo "$as_me:${as_lineno-$LINENO}: --with-stow option deprecated, now is defalt behavior" >&5
5250 $as_echo "$as_me: --with-stow option deprecated, now is defalt behavior" >&6;}
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an askpass helper" >&5
5257 $as_echo_n "checking whether to use an askpass helper... " >&6; }
5259 # Check whether --with-askpass was given.
5260 if test "${with_askpass+set}" = set; then :
5261 withval=$with_askpass; case $with_askpass in
5262 yes) as_fn_error $? "\"--with-askpass takes a path as an argument.\"" "$LINENO" 5
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5271 $as_echo "no" >&6; }
5275 if test X"$with_askpass" != X"no"; then
5276 cat >>confdefs.h <<EOF
5277 #define _PATH_SUDO_ASKPASS "$with_askpass"
5281 cat >>confdefs.h <<EOF
5282 #define _PATH_SUDO_ASKPASS NULL
5288 # Check whether --with-plugindir was given.
5289 if test "${with_plugindir+set}" = set; then :
5290 withval=$with_plugindir; case $with_plugindir in
5291 no) as_fn_error $? "\"illegal argument: --without-plugindir.\"" "$LINENO" 5
5296 with_plugindir="$libexecdir/sudo"
5301 # Check whether --with-man was given.
5302 if test "${with_man+set}" = set; then :
5303 withval=$with_man; case $with_man in
5306 no) as_fn_error $? "\"--without-man not supported.\"" "$LINENO" 5
5308 *) as_fn_error $? "\"ignoring unknown argument to --with-man: $with_man.\"" "$LINENO" 5
5315 # Check whether --with-mdoc was given.
5316 if test "${with_mdoc+set}" = set; then :
5317 withval=$with_mdoc; case $with_mdoc in
5320 no) as_fn_error $? "\"--without-mdoc not supported.\"" "$LINENO" 5
5322 *) as_fn_error $? "\"ignoring unknown argument to --with-mdoc: $with_mdoc.\"" "$LINENO" 5
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to do user authentication by default" >&5
5330 $as_echo_n "checking whether to do user authentication by default... " >&6; }
5331 # Check whether --enable-authentication was given.
5332 if test "${enable_authentication+set}" = set; then :
5333 enableval=$enable_authentication; case "$enableval" in
5334 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5335 $as_echo "yes" >&6; }
5337 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5338 $as_echo "no" >&6; }
5339 $as_echo "#define NO_AUTHENTICATION 1" >>confdefs.h
5342 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5343 $as_echo "no" >&6; }
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&5
5345 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&2;}
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5351 $as_echo "yes" >&6; }
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable running the mailer as root" >&5
5356 $as_echo_n "checking whether to disable running the mailer as root... " >&6; }
5357 # Check whether --enable-root-mailer was given.
5358 if test "${enable_root_mailer+set}" = set; then :
5359 enableval=$enable_root_mailer; case "$enableval" in
5360 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5361 $as_echo "no" >&6; }
5363 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5364 $as_echo "yes" >&6; }
5365 $as_echo "#define NO_ROOT_MAILER 1" >>confdefs.h
5368 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5369 $as_echo "no" >&6; }
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&5
5371 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&2;}
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5377 $as_echo "no" >&6; }
5381 # Check whether --enable-setreuid was given.
5382 if test "${enable_setreuid+set}" = set; then :
5383 enableval=$enable_setreuid; case "$enableval" in
5384 no) SKIP_SETREUID=yes
5392 # Check whether --enable-setresuid was given.
5393 if test "${enable_setresuid+set}" = set; then :
5394 enableval=$enable_setresuid; case "$enableval" in
5395 no) SKIP_SETRESUID=yes
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable shadow password support" >&5
5404 $as_echo_n "checking whether to disable shadow password support... " >&6; }
5405 # Check whether --enable-shadow was given.
5406 if test "${enable_shadow+set}" = set; then :
5407 enableval=$enable_shadow; case "$enableval" in
5408 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5409 $as_echo "no" >&6; }
5411 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5412 $as_echo "yes" >&6; }
5415 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5416 $as_echo "no" >&6; }
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&5
5418 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&2;}
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5424 $as_echo "no" >&6; }
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether root should be allowed to use sudo" >&5
5429 $as_echo_n "checking whether root should be allowed to use sudo... " >&6; }
5430 # Check whether --enable-root-sudo was given.
5431 if test "${enable_root_sudo+set}" = set; then :
5432 enableval=$enable_root_sudo; case "$enableval" in
5433 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5434 $as_echo "yes" >&6; }
5436 no) $as_echo "#define NO_ROOT_SUDO 1" >>confdefs.h
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5439 $as_echo "no" >&6; }
5442 *) as_fn_error $? "\"--enable-root-sudo does not take an argument.\"" "$LINENO" 5
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5448 $as_echo "yes" >&6; }
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to log the hostname in the log file" >&5
5453 $as_echo_n "checking whether to log the hostname in the log file... " >&6; }
5454 # Check whether --enable-log-host was given.
5455 if test "${enable_log_host+set}" = set; then :
5456 enableval=$enable_log_host; case "$enableval" in
5457 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5458 $as_echo "yes" >&6; }
5459 $as_echo "#define HOST_IN_LOG 1" >>confdefs.h
5462 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5463 $as_echo "no" >&6; }
5465 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5466 $as_echo "no" >&6; }
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&5
5468 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&2;}
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5474 $as_echo "no" >&6; }
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to invoke a shell if sudo is given no arguments" >&5
5479 $as_echo_n "checking whether to invoke a shell if sudo is given no arguments... " >&6; }
5480 # Check whether --enable-noargs-shell was given.
5481 if test "${enable_noargs_shell+set}" = set; then :
5482 enableval=$enable_noargs_shell; case "$enableval" in
5483 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5484 $as_echo "yes" >&6; }
5485 $as_echo "#define SHELL_IF_NO_ARGS 1" >>confdefs.h
5488 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5489 $as_echo "no" >&6; }
5491 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5492 $as_echo "no" >&6; }
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&5
5494 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&2;}
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5500 $as_echo "no" >&6; }
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to set \$HOME to target user in shell mode" >&5
5505 $as_echo_n "checking whether to set \$HOME to target user in shell mode... " >&6; }
5506 # Check whether --enable-shell-sets-home was given.
5507 if test "${enable_shell_sets_home+set}" = set; then :
5508 enableval=$enable_shell_sets_home; case "$enableval" in
5509 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5510 $as_echo "yes" >&6; }
5511 $as_echo "#define SHELL_SETS_HOME 1" >>confdefs.h
5514 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5515 $as_echo "no" >&6; }
5517 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5518 $as_echo "no" >&6; }
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&5
5520 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&2;}
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5526 $as_echo "no" >&6; }
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable 'command not found' messages" >&5
5531 $as_echo_n "checking whether to disable 'command not found' messages... " >&6; }
5532 # Check whether --enable-path_info was given.
5533 if test "${enable_path_info+set}" = set; then :
5534 enableval=$enable_path_info; case "$enableval" in
5535 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5536 $as_echo "no" >&6; }
5538 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5539 $as_echo "yes" >&6; }
5540 $as_echo "#define DONT_LEAK_PATH_INFO 1" >>confdefs.h
5544 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5545 $as_echo "no" >&6; }
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&5
5547 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&2;}
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5553 $as_echo "no" >&6; }
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable environment debugging" >&5
5558 $as_echo_n "checking whether to enable environment debugging... " >&6; }
5559 # Check whether --enable-env_debug was given.
5560 if test "${enable_env_debug+set}" = set; then :
5561 enableval=$enable_env_debug; case "$enableval" in
5562 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5563 $as_echo "yes" >&6; }
5564 $as_echo "#define ENV_DEBUG 1" >>confdefs.h
5567 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5568 $as_echo "no" >&6; }
5570 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5571 $as_echo "no" >&6; }
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&5
5573 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&2;}
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5579 $as_echo "no" >&6; }
5583 # Check whether --enable-zlib was given.
5584 if test "${enable_zlib+set}" = set; then :
5585 enableval=$enable_zlib;
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable environment resetting by default" >&5
5592 $as_echo_n "checking whether to enable environment resetting by default... " >&6; }
5593 # Check whether --enable-env_reset was given.
5594 if test "${enable_env_reset+set}" = set; then :
5595 enableval=$enable_env_reset; case "$enableval" in
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-env-reset: $enableval" >&5
5602 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-env-reset: $enableval" >&2;}
5608 if test "$env_reset" = "on"; then
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5610 $as_echo "yes" >&6; }
5611 $as_echo "#define ENV_RESET 1" >>confdefs.h
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5615 $as_echo "no" >&6; }
5616 $as_echo "#define ENV_RESET 0" >>confdefs.h
5620 # Check whether --enable-warnings was given.
5621 if test "${enable_warnings+set}" = set; then :
5622 enableval=$enable_warnings; case "$enableval" in
5625 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-warnings: $enableval" >&5
5626 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-warnings: $enableval" >&2;}
5633 # Check whether --enable-werror was given.
5634 if test "${enable_werror+set}" = set; then :
5635 enableval=$enable_werror; case "$enableval" in
5638 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-werror: $enableval" >&5
5639 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-werror: $enableval" >&2;}
5646 # Check whether --enable-hardening was given.
5647 if test "${enable_hardening+set}" = set; then :
5648 enableval=$enable_hardening;
5650 enable_hardening=yes
5654 # Check whether --enable-pie was given.
5655 if test "${enable_pie+set}" = set; then :
5656 enableval=$enable_pie;
5660 # Check whether --enable-admin-flag was given.
5661 if test "${enable_admin_flag+set}" = set; then :
5662 enableval=$enable_admin_flag; case "$enableval" in
5663 yes) $as_echo "#define USE_ADMIN_FLAG 1" >>confdefs.h
5667 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-admin-flag: $enableval" >&5
5668 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-admin-flag: $enableval" >&2;}
5675 # Check whether --enable-nls was given.
5676 if test "${enable_nls+set}" = set; then :
5677 enableval=$enable_nls;
5683 # Check whether --enable-rpath was given.
5684 if test "${enable_rpath+set}" = set; then :
5685 enableval=$enable_rpath;
5692 # Check whether --with-selinux was given.
5693 if test "${with_selinux+set}" = set; then :
5694 withval=$with_selinux; case $with_selinux in
5695 yes) SELINUX_USAGE="[-r role] [-t type] "
5696 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
5698 SUDO_LIBS="${SUDO_LIBS} -lselinux"
5699 SUDO_OBJS="${SUDO_OBJS} selinux.o"
5700 PROGS="${PROGS} sesh"
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkeycreatecon in -lselinux" >&5
5703 $as_echo_n "checking for setkeycreatecon in -lselinux... " >&6; }
5704 if ${ac_cv_lib_selinux_setkeycreatecon+:} false; then :
5705 $as_echo_n "(cached) " >&6
5707 ac_check_lib_save_LIBS=$LIBS
5708 LIBS="-lselinux $LIBS"
5709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5710 /* end confdefs.h. */
5712 /* Override any GCC internal prototype to avoid an error.
5713 Use char because int might match the return type of a GCC
5714 builtin and then its argument prototype would still apply. */
5718 char setkeycreatecon ();
5722 return setkeycreatecon ();
5727 if ac_fn_c_try_link "$LINENO"; then :
5728 ac_cv_lib_selinux_setkeycreatecon=yes
5730 ac_cv_lib_selinux_setkeycreatecon=no
5732 rm -f core conftest.err conftest.$ac_objext \
5733 conftest$ac_exeext conftest.$ac_ext
5734 LIBS=$ac_check_lib_save_LIBS
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setkeycreatecon" >&5
5737 $as_echo "$ac_cv_lib_selinux_setkeycreatecon" >&6; }
5738 if test "x$ac_cv_lib_selinux_setkeycreatecon" = xyes; then :
5739 $as_echo "#define HAVE_SETKEYCREATECON 1" >>confdefs.h
5745 *) as_fn_error $? "\"--with-selinux does not take an argument.\"" "$LINENO" 5
5753 # Check whether --enable-gss_krb5_ccache_name was given.
5754 if test "${enable_gss_krb5_ccache_name+set}" = set; then :
5755 enableval=$enable_gss_krb5_ccache_name; check_gss_krb5_ccache_name=$enableval
5757 check_gss_krb5_ccache_name=no
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
5762 $as_echo_n "checking for library containing strerror... " >&6; }
5763 if ${ac_cv_search_strerror+:} false; then :
5764 $as_echo_n "(cached) " >&6
5766 ac_func_search_save_LIBS=$LIBS
5767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5768 /* end confdefs.h. */
5770 /* Override any GCC internal prototype to avoid an error.
5771 Use char because int might match the return type of a GCC
5772 builtin and then its argument prototype would still apply. */
5785 for ac_lib in '' cposix; do
5786 if test -z "$ac_lib"; then
5787 ac_res="none required"
5790 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5792 if ac_fn_c_try_link "$LINENO"; then :
5793 ac_cv_search_strerror=$ac_res
5795 rm -f core conftest.err conftest.$ac_objext \
5797 if ${ac_cv_search_strerror+:} false; then :
5801 if ${ac_cv_search_strerror+:} false; then :
5804 ac_cv_search_strerror=no
5807 LIBS=$ac_func_search_save_LIBS
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
5810 $as_echo "$ac_cv_search_strerror" >&6; }
5811 ac_res=$ac_cv_search_strerror
5812 if test "$ac_res" != no; then :
5813 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5818 ac_cpp='$CPP $CPPFLAGS'
5819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5823 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5824 # On Suns, sometimes $CPP names a directory.
5825 if test -n "$CPP" && test -d "$CPP"; then
5828 if test -z "$CPP"; then
5829 if ${ac_cv_prog_CPP+:} false; then :
5830 $as_echo_n "(cached) " >&6
5832 # Double quotes because CPP needs to be expanded
5833 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5836 for ac_c_preproc_warn_flag in '' yes
5838 # Use a header file that comes with gcc, so configuring glibc
5839 # with a fresh cross-compiler works.
5840 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5841 # <limits.h> exists even on freestanding compilers.
5842 # On the NeXT, cc -E runs the code through the compiler's parser,
5843 # not just through cpp. "Syntax error" is here to catch this case.
5844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5845 /* end confdefs.h. */
5847 # include <limits.h>
5849 # include <assert.h>
5853 if ac_fn_c_try_cpp "$LINENO"; then :
5856 # Broken: fails on valid input.
5859 rm -f conftest.err conftest.i conftest.$ac_ext
5861 # OK, works on sane cases. Now check whether nonexistent headers
5862 # can be detected and how.
5863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5864 /* end confdefs.h. */
5865 #include <ac_nonexistent.h>
5867 if ac_fn_c_try_cpp "$LINENO"; then :
5868 # Broken: success on invalid input.
5871 # Passes both tests.
5875 rm -f conftest.err conftest.i conftest.$ac_ext
5878 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5879 rm -f conftest.i conftest.err conftest.$ac_ext
5880 if $ac_preproc_ok; then :
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5893 $as_echo "$CPP" >&6; }
5895 for ac_c_preproc_warn_flag in '' yes
5897 # Use a header file that comes with gcc, so configuring glibc
5898 # with a fresh cross-compiler works.
5899 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5900 # <limits.h> exists even on freestanding compilers.
5901 # On the NeXT, cc -E runs the code through the compiler's parser,
5902 # not just through cpp. "Syntax error" is here to catch this case.
5903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5904 /* end confdefs.h. */
5906 # include <limits.h>
5908 # include <assert.h>
5912 if ac_fn_c_try_cpp "$LINENO"; then :
5915 # Broken: fails on valid input.
5918 rm -f conftest.err conftest.i conftest.$ac_ext
5920 # OK, works on sane cases. Now check whether nonexistent headers
5921 # can be detected and how.
5922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5923 /* end confdefs.h. */
5924 #include <ac_nonexistent.h>
5926 if ac_fn_c_try_cpp "$LINENO"; then :
5927 # Broken: success on invalid input.
5930 # Passes both tests.
5934 rm -f conftest.err conftest.i conftest.$ac_ext
5937 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5938 rm -f conftest.i conftest.err conftest.$ac_ext
5939 if $ac_preproc_ok; then :
5942 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5943 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5944 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5945 See \`config.log' for more details" "$LINENO" 5; }
5949 ac_cpp='$CPP $CPPFLAGS'
5950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5954 if test -n "$ac_tool_prefix"; then
5955 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5956 set dummy ${ac_tool_prefix}ar; ac_word=$2
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5958 $as_echo_n "checking for $ac_word... " >&6; }
5959 if ${ac_cv_prog_AR+:} false; then :
5960 $as_echo_n "(cached) " >&6
5962 if test -n "$AR"; then
5963 ac_cv_prog_AR="$AR" # Let the user override the test.
5965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5969 test -z "$as_dir" && as_dir=.
5970 for ac_exec_ext in '' $ac_executable_extensions; do
5971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5972 ac_cv_prog_AR="${ac_tool_prefix}ar"
5973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5983 if test -n "$AR"; then
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5985 $as_echo "$AR" >&6; }
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5988 $as_echo "no" >&6; }
5993 if test -z "$ac_cv_prog_AR"; then
5995 # Extract the first word of "ar", so it can be a program name with args.
5996 set dummy ar; ac_word=$2
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5998 $as_echo_n "checking for $ac_word... " >&6; }
5999 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6000 $as_echo_n "(cached) " >&6
6002 if test -n "$ac_ct_AR"; then
6003 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6009 test -z "$as_dir" && as_dir=.
6010 for ac_exec_ext in '' $ac_executable_extensions; do
6011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6012 ac_cv_prog_ac_ct_AR="ar"
6013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6022 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6023 if test -n "$ac_ct_AR"; then
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6025 $as_echo "$ac_ct_AR" >&6; }
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6028 $as_echo "no" >&6; }
6031 if test "x$ac_ct_AR" = x; then
6034 case $cross_compiling:$ac_tool_warned in
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6038 ac_tool_warned=yes ;;
6046 if test -n "$ac_tool_prefix"; then
6047 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6048 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6050 $as_echo_n "checking for $ac_word... " >&6; }
6051 if ${ac_cv_prog_RANLIB+:} false; then :
6052 $as_echo_n "(cached) " >&6
6054 if test -n "$RANLIB"; then
6055 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061 test -z "$as_dir" && as_dir=.
6062 for ac_exec_ext in '' $ac_executable_extensions; do
6063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6064 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6074 RANLIB=$ac_cv_prog_RANLIB
6075 if test -n "$RANLIB"; then
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6077 $as_echo "$RANLIB" >&6; }
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6080 $as_echo "no" >&6; }
6085 if test -z "$ac_cv_prog_RANLIB"; then
6086 ac_ct_RANLIB=$RANLIB
6087 # Extract the first word of "ranlib", so it can be a program name with args.
6088 set dummy ranlib; ac_word=$2
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6090 $as_echo_n "checking for $ac_word... " >&6; }
6091 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6092 $as_echo_n "(cached) " >&6
6094 if test -n "$ac_ct_RANLIB"; then
6095 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101 test -z "$as_dir" && as_dir=.
6102 for ac_exec_ext in '' $ac_executable_extensions; do
6103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6104 ac_cv_prog_ac_ct_RANLIB="ranlib"
6105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6114 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6115 if test -n "$ac_ct_RANLIB"; then
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6117 $as_echo "$ac_ct_RANLIB" >&6; }
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6120 $as_echo "no" >&6; }
6123 if test "x$ac_ct_RANLIB" = x; then
6126 case $cross_compiling:$ac_tool_warned in
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6129 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6130 ac_tool_warned=yes ;;
6132 RANLIB=$ac_ct_RANLIB
6135 RANLIB="$ac_cv_prog_RANLIB"
6138 if test X"$AR" = X"false"; then
6139 as_fn_error $? "the \"ar\" utility is required to build sudo" "$LINENO" 5
6142 if test "x$ac_cv_prog_cc_c89" = "xno"; then
6143 as_fn_error $? "Sudo version $PACKAGE_VERSION requires an ANSI C compiler to build." "$LINENO" 5
6146 if test "$enable_static" = "no"; then
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring --disable-static, sudo does not install static libs" >&5
6148 $as_echo "$as_me: WARNING: Ignoring --disable-static, sudo does not install static libs" >&2;}
6153 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
6154 if test -f "$ac_dir/install-sh"; then
6156 ac_install_sh="$ac_aux_dir/install-sh -c"
6158 elif test -f "$ac_dir/install.sh"; then
6160 ac_install_sh="$ac_aux_dir/install.sh -c"
6162 elif test -f "$ac_dir/shtool"; then
6164 ac_install_sh="$ac_aux_dir/shtool install -c"
6168 if test -z "$ac_aux_dir"; then
6169 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6172 # These three variables are undocumented and unsupported,
6173 # and are intended to be withdrawn in a future Autoconf release.
6174 # They can cause serious problems if a builder's source tree is in a directory
6175 # whose full name contains unusual characters.
6176 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
6177 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
6178 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
6181 # Make sure we can run config.sub.
6182 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6183 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6186 $as_echo_n "checking build system type... " >&6; }
6187 if ${ac_cv_build+:} false; then :
6188 $as_echo_n "(cached) " >&6
6190 ac_build_alias=$build_alias
6191 test "x$ac_build_alias" = x &&
6192 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6193 test "x$ac_build_alias" = x &&
6194 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6195 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6196 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6200 $as_echo "$ac_cv_build" >&6; }
6201 case $ac_cv_build in
6203 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6206 ac_save_IFS=$IFS; IFS='-'
6212 # Remember, the first character of IFS is used to create $*,
6213 # except with old shells:
6216 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6220 $as_echo_n "checking host system type... " >&6; }
6221 if ${ac_cv_host+:} false; then :
6222 $as_echo_n "(cached) " >&6
6224 if test "x$host_alias" = x; then
6225 ac_cv_host=$ac_cv_build
6227 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6228 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6233 $as_echo "$ac_cv_host" >&6; }
6236 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6239 ac_save_IFS=$IFS; IFS='-'
6245 # Remember, the first character of IFS is used to create $*,
6246 # except with old shells:
6249 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6257 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6262 macro_version='2.4.2'
6263 macro_revision='1.3337'
6277 ltmain="$ac_aux_dir/ltmain.sh"
6279 # Backslashify metacharacters that are still active within
6280 # double-quoted strings.
6281 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6283 # Same as above, but do not quote variable references.
6284 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6286 # Sed substitution to delay expansion of an escaped shell variable in a
6287 # double_quote_subst'ed string.
6288 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6290 # Sed substitution to delay expansion of an escaped single quote.
6291 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6293 # Sed substitution to avoid accidental globbing in evaled expressions
6294 no_glob_subst='s/\*/\\\*/g'
6296 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6297 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6298 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6301 $as_echo_n "checking how to print strings... " >&6; }
6302 # Test print first, because it will be a builtin if present.
6303 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6304 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6306 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6309 # Use this function as a fallback that always works.
6310 func_fallback_echo ()
6312 eval 'cat <<_LTECHO_EOF
6316 ECHO='func_fallback_echo'
6319 # func_echo_all arg...
6320 # Invoke $ECHO with all args, space-separated.
6327 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6328 $as_echo "printf" >&6; } ;;
6329 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6330 $as_echo "print -r" >&6; } ;;
6331 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6332 $as_echo "cat" >&6; } ;;
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6349 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6350 if ${ac_cv_path_SED+:} false; then :
6351 $as_echo_n "(cached) " >&6
6353 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6354 for ac_i in 1 2 3 4 5 6 7; do
6355 ac_script="$ac_script$as_nl$ac_script"
6357 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6358 { ac_script=; unset ac_script;}
6359 if test -z "$SED"; then
6360 ac_path_SED_found=false
6361 # Loop through the user's path and test for each of PROGNAME-LIST
6362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6366 test -z "$as_dir" && as_dir=.
6367 for ac_prog in sed gsed; do
6368 for ac_exec_ext in '' $ac_executable_extensions; do
6369 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6370 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6371 # Check for GNU ac_path_SED and select it if it is found.
6372 # Check for GNU $ac_path_SED
6373 case `"$ac_path_SED" --version 2>&1` in
6375 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6378 $as_echo_n 0123456789 >"conftest.in"
6381 cat "conftest.in" "conftest.in" >"conftest.tmp"
6382 mv "conftest.tmp" "conftest.in"
6383 cp "conftest.in" "conftest.nl"
6384 $as_echo '' >> "conftest.nl"
6385 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6386 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6387 as_fn_arith $ac_count + 1 && ac_count=$as_val
6388 if test $ac_count -gt ${ac_path_SED_max-0}; then
6389 # Best one so far, save it but keep looking for a better one
6390 ac_cv_path_SED="$ac_path_SED"
6391 ac_path_SED_max=$ac_count
6393 # 10*(2^10) chars as input seems more than enough
6394 test $ac_count -gt 10 && break
6396 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6399 $ac_path_SED_found && break 3
6404 if test -z "$ac_cv_path_SED"; then
6405 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6413 $as_echo "$ac_cv_path_SED" >&6; }
6414 SED="$ac_cv_path_SED"
6417 test -z "$SED" && SED=sed
6418 Xsed="$SED -e 1s/^X//"
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6431 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6432 if ${ac_cv_path_GREP+:} false; then :
6433 $as_echo_n "(cached) " >&6
6435 if test -z "$GREP"; then
6436 ac_path_GREP_found=false
6437 # Loop through the user's path and test for each of PROGNAME-LIST
6438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6439 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6442 test -z "$as_dir" && as_dir=.
6443 for ac_prog in grep ggrep; do
6444 for ac_exec_ext in '' $ac_executable_extensions; do
6445 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6446 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6447 # Check for GNU ac_path_GREP and select it if it is found.
6448 # Check for GNU $ac_path_GREP
6449 case `"$ac_path_GREP" --version 2>&1` in
6451 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6454 $as_echo_n 0123456789 >"conftest.in"
6457 cat "conftest.in" "conftest.in" >"conftest.tmp"
6458 mv "conftest.tmp" "conftest.in"
6459 cp "conftest.in" "conftest.nl"
6460 $as_echo 'GREP' >> "conftest.nl"
6461 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6462 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6463 as_fn_arith $ac_count + 1 && ac_count=$as_val
6464 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6465 # Best one so far, save it but keep looking for a better one
6466 ac_cv_path_GREP="$ac_path_GREP"
6467 ac_path_GREP_max=$ac_count
6469 # 10*(2^10) chars as input seems more than enough
6470 test $ac_count -gt 10 && break
6472 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6475 $ac_path_GREP_found && break 3
6480 if test -z "$ac_cv_path_GREP"; then
6481 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6484 ac_cv_path_GREP=$GREP
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6489 $as_echo "$ac_cv_path_GREP" >&6; }
6490 GREP="$ac_cv_path_GREP"
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6494 $as_echo_n "checking for egrep... " >&6; }
6495 if ${ac_cv_path_EGREP+:} false; then :
6496 $as_echo_n "(cached) " >&6
6498 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6499 then ac_cv_path_EGREP="$GREP -E"
6501 if test -z "$EGREP"; then
6502 ac_path_EGREP_found=false
6503 # Loop through the user's path and test for each of PROGNAME-LIST
6504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6505 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6508 test -z "$as_dir" && as_dir=.
6509 for ac_prog in egrep; do
6510 for ac_exec_ext in '' $ac_executable_extensions; do
6511 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6512 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6513 # Check for GNU ac_path_EGREP and select it if it is found.
6514 # Check for GNU $ac_path_EGREP
6515 case `"$ac_path_EGREP" --version 2>&1` in
6517 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6520 $as_echo_n 0123456789 >"conftest.in"
6523 cat "conftest.in" "conftest.in" >"conftest.tmp"
6524 mv "conftest.tmp" "conftest.in"
6525 cp "conftest.in" "conftest.nl"
6526 $as_echo 'EGREP' >> "conftest.nl"
6527 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6528 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6529 as_fn_arith $ac_count + 1 && ac_count=$as_val
6530 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6531 # Best one so far, save it but keep looking for a better one
6532 ac_cv_path_EGREP="$ac_path_EGREP"
6533 ac_path_EGREP_max=$ac_count
6535 # 10*(2^10) chars as input seems more than enough
6536 test $ac_count -gt 10 && break
6538 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6541 $ac_path_EGREP_found && break 3
6546 if test -z "$ac_cv_path_EGREP"; then
6547 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6550 ac_cv_path_EGREP=$EGREP
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6556 $as_echo "$ac_cv_path_EGREP" >&6; }
6557 EGREP="$ac_cv_path_EGREP"
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6561 $as_echo_n "checking for fgrep... " >&6; }
6562 if ${ac_cv_path_FGREP+:} false; then :
6563 $as_echo_n "(cached) " >&6
6565 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6566 then ac_cv_path_FGREP="$GREP -F"
6568 if test -z "$FGREP"; then
6569 ac_path_FGREP_found=false
6570 # Loop through the user's path and test for each of PROGNAME-LIST
6571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6572 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6575 test -z "$as_dir" && as_dir=.
6576 for ac_prog in fgrep; do
6577 for ac_exec_ext in '' $ac_executable_extensions; do
6578 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6579 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6580 # Check for GNU ac_path_FGREP and select it if it is found.
6581 # Check for GNU $ac_path_FGREP
6582 case `"$ac_path_FGREP" --version 2>&1` in
6584 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6587 $as_echo_n 0123456789 >"conftest.in"
6590 cat "conftest.in" "conftest.in" >"conftest.tmp"
6591 mv "conftest.tmp" "conftest.in"
6592 cp "conftest.in" "conftest.nl"
6593 $as_echo 'FGREP' >> "conftest.nl"
6594 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6595 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6596 as_fn_arith $ac_count + 1 && ac_count=$as_val
6597 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6598 # Best one so far, save it but keep looking for a better one
6599 ac_cv_path_FGREP="$ac_path_FGREP"
6600 ac_path_FGREP_max=$ac_count
6602 # 10*(2^10) chars as input seems more than enough
6603 test $ac_count -gt 10 && break
6605 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6608 $ac_path_FGREP_found && break 3
6613 if test -z "$ac_cv_path_FGREP"; then
6614 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6617 ac_cv_path_FGREP=$FGREP
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6623 $as_echo "$ac_cv_path_FGREP" >&6; }
6624 FGREP="$ac_cv_path_FGREP"
6627 test -z "$GREP" && GREP=grep
6647 # Check whether --with-gnu-ld was given.
6648 if test "${with_gnu_ld+set}" = set; then :
6649 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6655 if test "$GCC" = yes; then
6656 # Check if gcc -print-prog-name=ld gives a path.
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6658 $as_echo_n "checking for ld used by $CC... " >&6; }
6661 # gcc leaves a trailing carriage return which upsets mingw
6662 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6664 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6667 # Accept absolute paths.
6669 re_direlt='/[^/][^/]*/\.\./'
6670 # Canonicalize the pathname of ld
6671 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6672 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6673 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6675 test -z "$LD" && LD="$ac_prog"
6678 # If it fails, then pretend we aren't using GCC.
6682 # If it is relative, then search for the first ld in PATH.
6686 elif test "$with_gnu_ld" = yes; then
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6688 $as_echo_n "checking for GNU ld... " >&6; }
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6691 $as_echo_n "checking for non-GNU ld... " >&6; }
6693 if ${lt_cv_path_LD+:} false; then :
6694 $as_echo_n "(cached) " >&6
6696 if test -z "$LD"; then
6697 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6698 for ac_dir in $PATH; do
6700 test -z "$ac_dir" && ac_dir=.
6701 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6702 lt_cv_path_LD="$ac_dir/$ac_prog"
6703 # Check to see if the program is GNU ld. I'd rather use --version,
6704 # but apparently some variants of GNU ld only accept -v.
6705 # Break only if it was the GNU/non-GNU ld that we prefer.
6706 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6707 *GNU* | *'with BFD'*)
6708 test "$with_gnu_ld" != no && break
6711 test "$with_gnu_ld" != yes && break
6718 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6723 if test -n "$LD"; then
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6725 $as_echo "$LD" >&6; }
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6728 $as_echo "no" >&6; }
6730 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6732 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6733 if ${lt_cv_prog_gnu_ld+:} false; then :
6734 $as_echo_n "(cached) " >&6
6736 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6737 case `$LD -v 2>&1 </dev/null` in
6738 *GNU* | *'with BFD'*)
6739 lt_cv_prog_gnu_ld=yes
6742 lt_cv_prog_gnu_ld=no
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6747 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6748 with_gnu_ld=$lt_cv_prog_gnu_ld
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6759 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6760 if ${lt_cv_path_NM+:} false; then :
6761 $as_echo_n "(cached) " >&6
6763 if test -n "$NM"; then
6764 # Let the user override the test.
6767 lt_nm_to_check="${ac_tool_prefix}nm"
6768 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6769 lt_nm_to_check="$lt_nm_to_check nm"
6771 for lt_tmp_nm in $lt_nm_to_check; do
6772 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6773 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6775 test -z "$ac_dir" && ac_dir=.
6776 tmp_nm="$ac_dir/$lt_tmp_nm"
6777 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6778 # Check to see if the nm accepts a BSD-compat flag.
6779 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6780 # nm: unknown option "B" ignored
6781 # Tru64's nm complains that /dev/null is an invalid object file
6782 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6783 */dev/null* | *'Invalid file or object type'*)
6784 lt_cv_path_NM="$tmp_nm -B"
6788 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6790 lt_cv_path_NM="$tmp_nm -p"
6794 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6795 continue # so that we can try to find one that supports BSD flags
6804 : ${lt_cv_path_NM=no}
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6808 $as_echo "$lt_cv_path_NM" >&6; }
6809 if test "$lt_cv_path_NM" != "no"; then
6812 # Didn't find any BSD compatible name lister, look for dumpbin.
6813 if test -n "$DUMPBIN"; then :
6814 # Let the user override the test.
6816 if test -n "$ac_tool_prefix"; then
6817 for ac_prog in dumpbin "link -dump"
6819 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6820 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6822 $as_echo_n "checking for $ac_word... " >&6; }
6823 if ${ac_cv_prog_DUMPBIN+:} false; then :
6824 $as_echo_n "(cached) " >&6
6826 if test -n "$DUMPBIN"; then
6827 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833 test -z "$as_dir" && as_dir=.
6834 for ac_exec_ext in '' $ac_executable_extensions; do
6835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6836 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6846 DUMPBIN=$ac_cv_prog_DUMPBIN
6847 if test -n "$DUMPBIN"; then
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6849 $as_echo "$DUMPBIN" >&6; }
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6852 $as_echo "no" >&6; }
6856 test -n "$DUMPBIN" && break
6859 if test -z "$DUMPBIN"; then
6860 ac_ct_DUMPBIN=$DUMPBIN
6861 for ac_prog in dumpbin "link -dump"
6863 # Extract the first word of "$ac_prog", so it can be a program name with args.
6864 set dummy $ac_prog; ac_word=$2
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6866 $as_echo_n "checking for $ac_word... " >&6; }
6867 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6868 $as_echo_n "(cached) " >&6
6870 if test -n "$ac_ct_DUMPBIN"; then
6871 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6877 test -z "$as_dir" && as_dir=.
6878 for ac_exec_ext in '' $ac_executable_extensions; do
6879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6880 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6890 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6891 if test -n "$ac_ct_DUMPBIN"; then
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6893 $as_echo "$ac_ct_DUMPBIN" >&6; }
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6896 $as_echo "no" >&6; }
6900 test -n "$ac_ct_DUMPBIN" && break
6903 if test "x$ac_ct_DUMPBIN" = x; then
6906 case $cross_compiling:$ac_tool_warned in
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6909 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6910 ac_tool_warned=yes ;;
6912 DUMPBIN=$ac_ct_DUMPBIN
6916 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6918 DUMPBIN="$DUMPBIN -symbols"
6926 if test "$DUMPBIN" != ":"; then
6930 test -z "$NM" && NM=nm
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6938 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6939 if ${lt_cv_nm_interface+:} false; then :
6940 $as_echo_n "(cached) " >&6
6942 lt_cv_nm_interface="BSD nm"
6943 echo "int some_variable = 0;" > conftest.$ac_ext
6944 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6945 (eval "$ac_compile" 2>conftest.err)
6946 cat conftest.err >&5
6947 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6948 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6949 cat conftest.err >&5
6950 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6951 cat conftest.out >&5
6952 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6953 lt_cv_nm_interface="MS dumpbin"
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6958 $as_echo "$lt_cv_nm_interface" >&6; }
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6961 $as_echo_n "checking whether ln -s works... " >&6; }
6963 if test "$LN_S" = "ln -s"; then
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6965 $as_echo "yes" >&6; }
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6968 $as_echo "no, using $LN_S" >&6; }
6971 # find the maximum length of command line arguments
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6973 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6974 if ${lt_cv_sys_max_cmd_len+:} false; then :
6975 $as_echo_n "(cached) " >&6
6982 # On DJGPP, this test can blow up pretty badly due to problems in libc
6983 # (any single argument exceeding 2000 bytes causes a buffer overrun
6984 # during glob expansion). Even if it were fixed, the result of this
6985 # check would be larger than it should be.
6986 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6990 # Under GNU Hurd, this test is not required because there is
6991 # no limit to the length of command line arguments.
6992 # Libtool will interpret -1 as no limit whatsoever
6993 lt_cv_sys_max_cmd_len=-1;
6996 cygwin* | mingw* | cegcc*)
6997 # On Win9x/ME, this test blows up -- it succeeds, but takes
6998 # about 5 minutes as the teststring grows exponentially.
6999 # Worse, since 9x/ME are not pre-emptively multitasking,
7000 # you end up with a "frozen" computer, even though with patience
7001 # the test eventually succeeds (with a max line length of 256k).
7002 # Instead, let's just punt: use the minimum linelength reported by
7003 # all of the supported platforms: 8192 (on NT/2K/XP).
7004 lt_cv_sys_max_cmd_len=8192;
7008 # On MiNT this can take a long time and run out of memory.
7009 lt_cv_sys_max_cmd_len=8192;
7013 # On AmigaOS with pdksh, this test takes hours, literally.
7014 # So we just punt and use a minimum line length of 8192.
7015 lt_cv_sys_max_cmd_len=8192;
7018 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7019 # This has been around since 386BSD, at least. Likely further.
7020 if test -x /sbin/sysctl; then
7021 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7022 elif test -x /usr/sbin/sysctl; then
7023 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7025 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7027 # And add a safety zone
7028 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7029 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7033 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7034 lt_cv_sys_max_cmd_len=196608
7038 # The test takes a long time on OS/2.
7039 lt_cv_sys_max_cmd_len=8192
7043 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7044 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7045 # nice to cause kernel panics so lets avoid the loop below.
7046 # First set a reasonable default.
7047 lt_cv_sys_max_cmd_len=16384
7049 if test -x /sbin/sysconfig; then
7050 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7051 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7056 lt_cv_sys_max_cmd_len=102400
7058 sysv5* | sco5v6* | sysv4.2uw2*)
7059 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7060 if test -n "$kargmax"; then
7061 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7063 lt_cv_sys_max_cmd_len=32768
7067 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7068 if test -n "$lt_cv_sys_max_cmd_len"; then
7069 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7070 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7072 # Make teststring a little bigger before we do anything with it.
7073 # a 1K string should be a reasonable start.
7074 for i in 1 2 3 4 5 6 7 8 ; do
7075 teststring=$teststring$teststring
7077 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7078 # If test is not a shell built-in, we'll probably end up computing a
7079 # maximum length that is only half of the actual maximum length, but
7081 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
7082 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7083 test $i != 17 # 1/2 MB should be enough
7086 teststring=$teststring$teststring
7088 # Only check the string length outside the loop.
7089 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7091 # Add a significant safety factor because C++ compilers can tack on
7092 # massive amounts of additional arguments before passing them to the
7093 # linker. It appears as though 1/2 is a usable value.
7094 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7101 if test -n $lt_cv_sys_max_cmd_len ; then
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7103 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7106 $as_echo "none" >&6; }
7108 max_cmd_len=$lt_cv_sys_max_cmd_len
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7120 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7121 # Try some XSI features
7124 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7126 && eval 'test $(( 1 + 1 )) -eq 2 \
7127 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7130 $as_echo "$xsi_shell" >&6; }
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7134 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7136 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7138 && lt_shell_append=yes
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7140 $as_echo "$lt_shell_append" >&6; }
7143 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7153 # test EBCDIC or ASCII
7154 case `echo X|tr X '\101'` in
7155 A) # ASCII based system
7156 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7157 lt_SP2NL='tr \040 \012'
7158 lt_NL2SP='tr \015\012 \040\040'
7160 *) # EBCDIC based system
7161 lt_SP2NL='tr \100 \n'
7162 lt_NL2SP='tr \r\n \100\100'
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7175 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7176 if ${lt_cv_to_host_file_cmd+:} false; then :
7177 $as_echo_n "(cached) " >&6
7182 *-*-mingw* ) # actually msys
7183 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7186 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7188 * ) # otherwise, assume *nix
7189 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7195 *-*-mingw* ) # actually msys
7196 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7199 lt_cv_to_host_file_cmd=func_convert_file_noop
7201 * ) # otherwise, assume *nix
7202 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7206 * ) # unhandled hosts (and "normal" native builds)
7207 lt_cv_to_host_file_cmd=func_convert_file_noop
7213 to_host_file_cmd=$lt_cv_to_host_file_cmd
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7215 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7222 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7223 if ${lt_cv_to_tool_file_cmd+:} false; then :
7224 $as_echo_n "(cached) " >&6
7226 #assume ordinary cross tools, or native build.
7227 lt_cv_to_tool_file_cmd=func_convert_file_noop
7231 *-*-mingw* ) # actually msys
7232 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7240 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7242 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7249 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7250 if ${lt_cv_ld_reload_flag+:} false; then :
7251 $as_echo_n "(cached) " >&6
7253 lt_cv_ld_reload_flag='-r'
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7256 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7257 reload_flag=$lt_cv_ld_reload_flag
7258 case $reload_flag in
7260 *) reload_flag=" $reload_flag" ;;
7262 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7264 cygwin* | mingw* | pw32* | cegcc*)
7265 if test "$GCC" != yes; then
7270 if test "$GCC" = yes; then
7271 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7273 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7286 if test -n "$ac_tool_prefix"; then
7287 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7288 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7290 $as_echo_n "checking for $ac_word... " >&6; }
7291 if ${ac_cv_prog_OBJDUMP+:} false; then :
7292 $as_echo_n "(cached) " >&6
7294 if test -n "$OBJDUMP"; then
7295 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7301 test -z "$as_dir" && as_dir=.
7302 for ac_exec_ext in '' $ac_executable_extensions; do
7303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7304 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7314 OBJDUMP=$ac_cv_prog_OBJDUMP
7315 if test -n "$OBJDUMP"; then
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7317 $as_echo "$OBJDUMP" >&6; }
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7320 $as_echo "no" >&6; }
7325 if test -z "$ac_cv_prog_OBJDUMP"; then
7326 ac_ct_OBJDUMP=$OBJDUMP
7327 # Extract the first word of "objdump", so it can be a program name with args.
7328 set dummy objdump; ac_word=$2
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7330 $as_echo_n "checking for $ac_word... " >&6; }
7331 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7332 $as_echo_n "(cached) " >&6
7334 if test -n "$ac_ct_OBJDUMP"; then
7335 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7341 test -z "$as_dir" && as_dir=.
7342 for ac_exec_ext in '' $ac_executable_extensions; do
7343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7344 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7354 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7355 if test -n "$ac_ct_OBJDUMP"; then
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7357 $as_echo "$ac_ct_OBJDUMP" >&6; }
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7360 $as_echo "no" >&6; }
7363 if test "x$ac_ct_OBJDUMP" = x; then
7366 case $cross_compiling:$ac_tool_warned in
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7370 ac_tool_warned=yes ;;
7372 OBJDUMP=$ac_ct_OBJDUMP
7375 OBJDUMP="$ac_cv_prog_OBJDUMP"
7378 test -z "$OBJDUMP" && OBJDUMP=objdump
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7389 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7390 if ${lt_cv_deplibs_check_method+:} false; then :
7391 $as_echo_n "(cached) " >&6
7393 lt_cv_file_magic_cmd='$MAGIC_CMD'
7394 lt_cv_file_magic_test_file=
7395 lt_cv_deplibs_check_method='unknown'
7396 # Need to set the preceding variable on all platforms that support
7397 # interlibrary dependencies.
7398 # 'none' -- dependencies not supported.
7399 # `unknown' -- same as none, but documents that we really don't know.
7400 # 'pass_all' -- all dependencies passed with no checks.
7401 # 'test_compile' -- check by making test program.
7402 # 'file_magic [[regex]]' -- check by looking for files in library path
7403 # which responds to the $file_magic_cmd with a given extended regex.
7404 # If you have `file' or equivalent on your system and you're not sure
7405 # whether `pass_all' will *always* work, you probably want this one.
7409 lt_cv_deplibs_check_method=pass_all
7413 lt_cv_deplibs_check_method=pass_all
7417 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7418 lt_cv_file_magic_cmd='/usr/bin/file -L'
7419 lt_cv_file_magic_test_file=/shlib/libc.so
7423 # func_win32_libid is a shell function defined in ltmain.sh
7424 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7425 lt_cv_file_magic_cmd='func_win32_libid'
7429 # Base MSYS/MinGW do not provide the 'file' command needed by
7430 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7431 # unless we find 'file', for example because we are cross-compiling.
7432 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7433 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7434 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7435 lt_cv_file_magic_cmd='func_win32_libid'
7437 # Keep this pattern in sync with the one in func_win32_libid.
7438 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7439 lt_cv_file_magic_cmd='$OBJDUMP -f'
7444 # use the weaker test based on 'objdump'. See mingw*.
7445 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7446 lt_cv_file_magic_cmd='$OBJDUMP -f'
7449 darwin* | rhapsody*)
7450 lt_cv_deplibs_check_method=pass_all
7453 freebsd* | dragonfly*)
7454 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7457 # Not sure whether the presence of OpenBSD here was a mistake.
7458 # Let's accept both of them until this is cleared up.
7459 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7460 lt_cv_file_magic_cmd=/usr/bin/file
7461 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7465 lt_cv_deplibs_check_method=pass_all
7470 lt_cv_deplibs_check_method=pass_all
7474 lt_cv_deplibs_check_method=pass_all
7477 hpux10.20* | hpux11*)
7478 lt_cv_file_magic_cmd=/usr/bin/file
7481 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7482 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7485 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]'
7486 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7489 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7490 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7496 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7497 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7500 irix5* | irix6* | nonstopux*)
7502 *-32|*"-32 ") libmagic=32-bit;;
7503 *-n32|*"-n32 ") libmagic=N32;;
7504 *-64|*"-64 ") libmagic=64-bit;;
7505 *) libmagic=never-match;;
7507 lt_cv_deplibs_check_method=pass_all
7510 # This must be glibc/ELF.
7511 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7512 lt_cv_deplibs_check_method=pass_all
7516 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7517 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7519 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7524 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7525 lt_cv_file_magic_cmd=/usr/bin/file
7526 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7530 lt_cv_deplibs_check_method=pass_all
7534 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7535 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7537 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7541 osf3* | osf4* | osf5*)
7542 lt_cv_deplibs_check_method=pass_all
7546 lt_cv_deplibs_check_method=pass_all
7550 lt_cv_deplibs_check_method=pass_all
7553 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7554 lt_cv_deplibs_check_method=pass_all
7558 case $host_vendor in
7560 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]'
7561 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7564 lt_cv_deplibs_check_method=pass_all
7567 lt_cv_file_magic_cmd='/bin/file'
7568 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7571 lt_cv_file_magic_cmd='/bin/file'
7572 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7573 lt_cv_file_magic_test_file=/lib/libc.so
7576 lt_cv_deplibs_check_method=pass_all
7579 lt_cv_deplibs_check_method=pass_all
7585 lt_cv_deplibs_check_method=pass_all
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7591 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7595 if test "$build" = "$host"; then
7598 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7601 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7607 file_magic_cmd=$lt_cv_file_magic_cmd
7608 deplibs_check_method=$lt_cv_deplibs_check_method
7609 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7632 if test -n "$ac_tool_prefix"; then
7633 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7634 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7636 $as_echo_n "checking for $ac_word... " >&6; }
7637 if ${ac_cv_prog_DLLTOOL+:} false; then :
7638 $as_echo_n "(cached) " >&6
7640 if test -n "$DLLTOOL"; then
7641 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7647 test -z "$as_dir" && as_dir=.
7648 for ac_exec_ext in '' $ac_executable_extensions; do
7649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7650 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7660 DLLTOOL=$ac_cv_prog_DLLTOOL
7661 if test -n "$DLLTOOL"; then
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7663 $as_echo "$DLLTOOL" >&6; }
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7666 $as_echo "no" >&6; }
7671 if test -z "$ac_cv_prog_DLLTOOL"; then
7672 ac_ct_DLLTOOL=$DLLTOOL
7673 # Extract the first word of "dlltool", so it can be a program name with args.
7674 set dummy dlltool; ac_word=$2
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7676 $as_echo_n "checking for $ac_word... " >&6; }
7677 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7678 $as_echo_n "(cached) " >&6
7680 if test -n "$ac_ct_DLLTOOL"; then
7681 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7687 test -z "$as_dir" && as_dir=.
7688 for ac_exec_ext in '' $ac_executable_extensions; do
7689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7690 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7700 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7701 if test -n "$ac_ct_DLLTOOL"; then
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7703 $as_echo "$ac_ct_DLLTOOL" >&6; }
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7706 $as_echo "no" >&6; }
7709 if test "x$ac_ct_DLLTOOL" = x; then
7712 case $cross_compiling:$ac_tool_warned in
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7716 ac_tool_warned=yes ;;
7718 DLLTOOL=$ac_ct_DLLTOOL
7721 DLLTOOL="$ac_cv_prog_DLLTOOL"
7724 test -z "$DLLTOOL" && DLLTOOL=dlltool
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7736 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7737 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7738 $as_echo_n "(cached) " >&6
7740 lt_cv_sharedlib_from_linklib_cmd='unknown'
7743 cygwin* | mingw* | pw32* | cegcc*)
7744 # two different shell functions defined in ltmain.sh
7745 # decide which to use based on capabilities of $DLLTOOL
7746 case `$DLLTOOL --help 2>&1` in
7747 *--identify-strict*)
7748 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7751 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7756 # fallback: assume linklib IS sharedlib
7757 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7763 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7764 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7765 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7773 if test -n "$ac_tool_prefix"; then
7776 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7777 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7779 $as_echo_n "checking for $ac_word... " >&6; }
7780 if ${ac_cv_prog_AR+:} false; then :
7781 $as_echo_n "(cached) " >&6
7783 if test -n "$AR"; then
7784 ac_cv_prog_AR="$AR" # Let the user override the test.
7786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7790 test -z "$as_dir" && as_dir=.
7791 for ac_exec_ext in '' $ac_executable_extensions; do
7792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7793 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7804 if test -n "$AR"; then
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7806 $as_echo "$AR" >&6; }
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7809 $as_echo "no" >&6; }
7813 test -n "$AR" && break
7816 if test -z "$AR"; then
7820 # Extract the first word of "$ac_prog", so it can be a program name with args.
7821 set dummy $ac_prog; ac_word=$2
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7823 $as_echo_n "checking for $ac_word... " >&6; }
7824 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7825 $as_echo_n "(cached) " >&6
7827 if test -n "$ac_ct_AR"; then
7828 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7834 test -z "$as_dir" && as_dir=.
7835 for ac_exec_ext in '' $ac_executable_extensions; do
7836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7837 ac_cv_prog_ac_ct_AR="$ac_prog"
7838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7847 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7848 if test -n "$ac_ct_AR"; then
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7850 $as_echo "$ac_ct_AR" >&6; }
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7853 $as_echo "no" >&6; }
7857 test -n "$ac_ct_AR" && break
7860 if test "x$ac_ct_AR" = x; then
7863 case $cross_compiling:$ac_tool_warned in
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7867 ac_tool_warned=yes ;;
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7887 $as_echo_n "checking for archiver @FILE support... " >&6; }
7888 if ${lt_cv_ar_at_file+:} false; then :
7889 $as_echo_n "(cached) " >&6
7892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7893 /* end confdefs.h. */
7903 if ac_fn_c_try_compile "$LINENO"; then :
7904 echo conftest.$ac_objext > conftest.lst
7905 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7906 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7907 (eval $lt_ar_try) 2>&5
7909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7910 test $ac_status = 0; }
7911 if test "$ac_status" -eq 0; then
7912 # Ensure the archiver fails upon bogus file names.
7913 rm -f conftest.$ac_objext libconftest.a
7914 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7915 (eval $lt_ar_try) 2>&5
7917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7918 test $ac_status = 0; }
7919 if test "$ac_status" -ne 0; then
7923 rm -f conftest.* libconftest.a
7926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7930 $as_echo "$lt_cv_ar_at_file" >&6; }
7932 if test "x$lt_cv_ar_at_file" = xno; then
7935 archiver_list_spec=$lt_cv_ar_at_file
7944 if test -n "$ac_tool_prefix"; then
7945 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7946 set dummy ${ac_tool_prefix}strip; ac_word=$2
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7948 $as_echo_n "checking for $ac_word... " >&6; }
7949 if ${ac_cv_prog_STRIP+:} false; then :
7950 $as_echo_n "(cached) " >&6
7952 if test -n "$STRIP"; then
7953 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959 test -z "$as_dir" && as_dir=.
7960 for ac_exec_ext in '' $ac_executable_extensions; do
7961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7962 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7972 STRIP=$ac_cv_prog_STRIP
7973 if test -n "$STRIP"; then
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7975 $as_echo "$STRIP" >&6; }
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7978 $as_echo "no" >&6; }
7983 if test -z "$ac_cv_prog_STRIP"; then
7985 # Extract the first word of "strip", so it can be a program name with args.
7986 set dummy strip; ac_word=$2
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7988 $as_echo_n "checking for $ac_word... " >&6; }
7989 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7990 $as_echo_n "(cached) " >&6
7992 if test -n "$ac_ct_STRIP"; then
7993 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7999 test -z "$as_dir" && as_dir=.
8000 for ac_exec_ext in '' $ac_executable_extensions; do
8001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8002 ac_cv_prog_ac_ct_STRIP="strip"
8003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8012 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8013 if test -n "$ac_ct_STRIP"; then
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8015 $as_echo "$ac_ct_STRIP" >&6; }
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8018 $as_echo "no" >&6; }
8021 if test "x$ac_ct_STRIP" = x; then
8024 case $cross_compiling:$ac_tool_warned in
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8028 ac_tool_warned=yes ;;
8033 STRIP="$ac_cv_prog_STRIP"
8036 test -z "$STRIP" && STRIP=:
8043 if test -n "$ac_tool_prefix"; then
8044 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8045 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8047 $as_echo_n "checking for $ac_word... " >&6; }
8048 if ${ac_cv_prog_RANLIB+:} false; then :
8049 $as_echo_n "(cached) " >&6
8051 if test -n "$RANLIB"; then
8052 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8058 test -z "$as_dir" && as_dir=.
8059 for ac_exec_ext in '' $ac_executable_extensions; do
8060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8061 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8071 RANLIB=$ac_cv_prog_RANLIB
8072 if test -n "$RANLIB"; then
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8074 $as_echo "$RANLIB" >&6; }
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8077 $as_echo "no" >&6; }
8082 if test -z "$ac_cv_prog_RANLIB"; then
8083 ac_ct_RANLIB=$RANLIB
8084 # Extract the first word of "ranlib", so it can be a program name with args.
8085 set dummy ranlib; ac_word=$2
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8087 $as_echo_n "checking for $ac_word... " >&6; }
8088 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8089 $as_echo_n "(cached) " >&6
8091 if test -n "$ac_ct_RANLIB"; then
8092 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8098 test -z "$as_dir" && as_dir=.
8099 for ac_exec_ext in '' $ac_executable_extensions; do
8100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8101 ac_cv_prog_ac_ct_RANLIB="ranlib"
8102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8111 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8112 if test -n "$ac_ct_RANLIB"; then
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8114 $as_echo "$ac_ct_RANLIB" >&6; }
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8117 $as_echo "no" >&6; }
8120 if test "x$ac_ct_RANLIB" = x; then
8123 case $cross_compiling:$ac_tool_warned in
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8126 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8127 ac_tool_warned=yes ;;
8129 RANLIB=$ac_ct_RANLIB
8132 RANLIB="$ac_cv_prog_RANLIB"
8135 test -z "$RANLIB" && RANLIB=:
8142 # Determine commands to create old-style static archives.
8143 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8144 old_postinstall_cmds='chmod 644 $oldlib'
8145 old_postuninstall_cmds=
8147 if test -n "$RANLIB"; then
8150 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8153 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8156 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8161 lock_old_archive_extraction=yes ;;
8163 lock_old_archive_extraction=no ;;
8186 for ac_prog in gawk mawk nawk awk
8188 # Extract the first word of "$ac_prog", so it can be a program name with args.
8189 set dummy $ac_prog; ac_word=$2
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8191 $as_echo_n "checking for $ac_word... " >&6; }
8192 if ${ac_cv_prog_AWK+:} false; then :
8193 $as_echo_n "(cached) " >&6
8195 if test -n "$AWK"; then
8196 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8202 test -z "$as_dir" && as_dir=.
8203 for ac_exec_ext in '' $ac_executable_extensions; do
8204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8205 ac_cv_prog_AWK="$ac_prog"
8206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8216 if test -n "$AWK"; then
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8218 $as_echo "$AWK" >&6; }
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8221 $as_echo "no" >&6; }
8225 test -n "$AWK" && break
8246 # If no C compiler was specified, use CC.
8249 # If no C compiler flags were specified, use CFLAGS.
8250 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8252 # Allow CC to be a program name with arguments.
8256 # Check for command to grab the raw symbol name followed by C symbol from nm.
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8258 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8259 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8260 $as_echo_n "(cached) " >&6
8263 # These are sane defaults that work on at least a few old systems.
8264 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8266 # Character class describing NM global symbol codes.
8267 symcode='[BCDEGRST]'
8269 # Regexp to match symbols that can be accessed directly from C.
8270 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8272 # Define system-specific variables.
8277 cygwin* | mingw* | pw32* | cegcc*)
8278 symcode='[ABCDGISTW]'
8281 if test "$host_cpu" = ia64; then
8282 symcode='[ABCDEGRST]'
8286 symcode='[BCDEGRST]'
8289 symcode='[BCDEGQRST]'
8300 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8308 # If we're using GNU nm, then use its standard symbol codes.
8309 case `$NM -V 2>&1` in
8310 *GNU* | *'with BFD'*)
8311 symcode='[ABCDGIRSTW]' ;;
8314 # Transform an extracted symbol line into a proper C declaration.
8315 # Some systems (esp. on ia64) link data and code symbols differently,
8316 # so use this general approach.
8317 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8319 # Transform an extracted symbol line into symbol name and symbol address
8320 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8321 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'"
8323 # Handle CRLF in mingw tool chain
8327 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8331 # Try without a prefix underscore, then with it.
8332 for ac_symprfx in "" "_"; do
8334 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8335 symxfrm="\\1 $ac_symprfx\\2 \\2"
8337 # Write the raw and C identifiers.
8338 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8339 # Fake it for dumpbin and say T for any non-static function
8340 # and D for any global variable.
8341 # Also find C++ and __fastcall symbols from MSVC++,
8342 # which start with @ or ?.
8343 lt_cv_sys_global_symbol_pipe="$AWK '"\
8344 " {last_section=section; section=\$ 3};"\
8345 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8346 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8347 " \$ 0!~/External *\|/{next};"\
8348 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8349 " {if(hide[section]) next};"\
8350 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8351 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8352 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8353 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8354 " ' prfx=^$ac_symprfx"
8356 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8358 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8360 # Check to see that the pipe works correctly.
8364 cat > conftest.$ac_ext <<_LT_EOF
8369 void nm_test_func(void);
8370 void nm_test_func(void){}
8374 int main(){nm_test_var='a';nm_test_func();return(0);}
8377 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8378 (eval $ac_compile) 2>&5
8380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8381 test $ac_status = 0; }; then
8382 # Now try to grab the symbols.
8384 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8385 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8388 test $ac_status = 0; } && test -s "$nlist"; then
8389 # Try sorting and uniquifying the output.
8390 if sort "$nlist" | uniq > "$nlist"T; then
8391 mv -f "$nlist"T "$nlist"
8396 # Make sure that we snagged all the symbols we need.
8397 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8398 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8399 cat <<_LT_EOF > conftest.$ac_ext
8400 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8401 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8402 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8403 relocations are performed -- see ld's documentation on pseudo-relocs. */
8404 # define LT_DLSYM_CONST
8405 #elif defined(__osf__)
8406 /* This system does not cope well with relocations in const data. */
8407 # define LT_DLSYM_CONST
8409 # define LT_DLSYM_CONST const
8417 # Now generate the symbol file.
8418 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8420 cat <<_LT_EOF >> conftest.$ac_ext
8422 /* The mapping between symbol names and symbols. */
8423 LT_DLSYM_CONST struct {
8427 lt__PROGRAM__LTX_preloaded_symbols[] =
8429 { "@PROGRAM@", (void *) 0 },
8431 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8432 cat <<\_LT_EOF >> conftest.$ac_ext
8436 /* This works around a problem in FreeBSD linker */
8437 #ifdef FREEBSD_WORKAROUND
8438 static const void *lt_preloaded_setup() {
8439 return lt__PROGRAM__LTX_preloaded_symbols;
8447 # Now try linking the two files.
8448 mv conftest.$ac_objext conftstm.$ac_objext
8449 lt_globsym_save_LIBS=$LIBS
8450 lt_globsym_save_CFLAGS=$CFLAGS
8451 LIBS="conftstm.$ac_objext"
8452 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8453 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8454 (eval $ac_link) 2>&5
8456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8457 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8460 LIBS=$lt_globsym_save_LIBS
8461 CFLAGS=$lt_globsym_save_CFLAGS
8463 echo "cannot find nm_test_func in $nlist" >&5
8466 echo "cannot find nm_test_var in $nlist" >&5
8469 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8472 echo "$progname: failed program was:" >&5
8473 cat conftest.$ac_ext >&5
8475 rm -rf conftest* conftst*
8477 # Do not use the global_symbol_pipe unless it works.
8478 if test "$pipe_works" = yes; then
8481 lt_cv_sys_global_symbol_pipe=
8487 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8488 lt_cv_sys_global_symbol_to_cdecl=
8490 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8492 $as_echo "failed" >&6; }
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8495 $as_echo "ok" >&6; }
8498 # Response file support.
8499 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8500 nm_file_list_spec='@'
8501 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8502 nm_file_list_spec='@'
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8532 $as_echo_n "checking for sysroot... " >&6; }
8534 # Check whether --with-sysroot was given.
8535 if test "${with_sysroot+set}" = set; then :
8536 withval=$with_sysroot;
8543 case ${with_sysroot} in #(
8545 if test "$GCC" = yes; then
8546 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8550 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8556 $as_echo "${with_sysroot}" >&6; }
8557 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8562 $as_echo "${lt_sysroot:-no}" >&6; }
8568 # Check whether --enable-libtool-lock was given.
8569 if test "${enable_libtool_lock+set}" = set; then :
8570 enableval=$enable_libtool_lock;
8573 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8575 # Some flags need to be propagated to the compiler or linker for good
8579 # Find out which ABI we are using.
8580 echo 'int i;' > conftest.$ac_ext
8581 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8582 (eval $ac_compile) 2>&5
8584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8585 test $ac_status = 0; }; then
8586 case `/usr/bin/file conftest.$ac_objext` in
8598 # Find out which ABI we are using.
8599 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8600 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8601 (eval $ac_compile) 2>&5
8603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8604 test $ac_status = 0; }; then
8605 if test "$lt_cv_prog_gnu_ld" = yes; then
8606 case `/usr/bin/file conftest.$ac_objext` in
8608 LD="${LD-ld} -melf32bsmip"
8611 LD="${LD-ld} -melf32bmipn32"
8614 LD="${LD-ld} -melf64bmip"
8618 case `/usr/bin/file conftest.$ac_objext` in
8634 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8635 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8636 # Find out which ABI we are using.
8637 echo 'int i;' > conftest.$ac_ext
8638 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8639 (eval $ac_compile) 2>&5
8641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8642 test $ac_status = 0; }; then
8643 case `/usr/bin/file conftest.o` in
8646 x86_64-*kfreebsd*-gnu)
8647 LD="${LD-ld} -m elf_i386_fbsd"
8650 LD="${LD-ld} -m elf_i386"
8652 ppc64-*linux*|powerpc64-*linux*)
8653 LD="${LD-ld} -m elf32ppclinux"
8656 LD="${LD-ld} -m elf_s390"
8659 LD="${LD-ld} -m elf32_sparc"
8665 x86_64-*kfreebsd*-gnu)
8666 LD="${LD-ld} -m elf_x86_64_fbsd"
8669 LD="${LD-ld} -m elf_x86_64"
8671 ppc*-*linux*|powerpc*-*linux*)
8672 LD="${LD-ld} -m elf64ppc"
8674 s390*-*linux*|s390*-*tpf*)
8675 LD="${LD-ld} -m elf64_s390"
8678 LD="${LD-ld} -m elf64_sparc"
8688 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8689 SAVE_CFLAGS="$CFLAGS"
8690 CFLAGS="$CFLAGS -belf"
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8692 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8693 if ${lt_cv_cc_needs_belf+:} false; then :
8694 $as_echo_n "(cached) " >&6
8697 ac_cpp='$CPP $CPPFLAGS'
8698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8703 /* end confdefs.h. */
8713 if ac_fn_c_try_link "$LINENO"; then :
8714 lt_cv_cc_needs_belf=yes
8716 lt_cv_cc_needs_belf=no
8718 rm -f core conftest.err conftest.$ac_objext \
8719 conftest$ac_exeext conftest.$ac_ext
8721 ac_cpp='$CPP $CPPFLAGS'
8722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8728 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8729 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8730 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8731 CFLAGS="$SAVE_CFLAGS"
8735 # Find out which ABI we are using.
8736 echo 'int i;' > conftest.$ac_ext
8737 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8738 (eval $ac_compile) 2>&5
8740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8741 test $ac_status = 0; }; then
8742 case `/usr/bin/file conftest.o` in
8744 case $lt_cv_prog_gnu_ld in
8748 LD="${LD-ld} -m elf_x86_64"
8751 LD="${LD-ld} -m elf64_sparc"
8754 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8755 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8760 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8772 need_locks="$enable_libtool_lock"
8774 if test -n "$ac_tool_prefix"; then
8775 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8776 set dummy ${ac_tool_prefix}mt; ac_word=$2
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8778 $as_echo_n "checking for $ac_word... " >&6; }
8779 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8780 $as_echo_n "(cached) " >&6
8782 if test -n "$MANIFEST_TOOL"; then
8783 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8789 test -z "$as_dir" && as_dir=.
8790 for ac_exec_ext in '' $ac_executable_extensions; do
8791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8792 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8802 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8803 if test -n "$MANIFEST_TOOL"; then
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8805 $as_echo "$MANIFEST_TOOL" >&6; }
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8808 $as_echo "no" >&6; }
8813 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8814 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8815 # Extract the first word of "mt", so it can be a program name with args.
8816 set dummy mt; ac_word=$2
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8818 $as_echo_n "checking for $ac_word... " >&6; }
8819 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8820 $as_echo_n "(cached) " >&6
8822 if test -n "$ac_ct_MANIFEST_TOOL"; then
8823 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8829 test -z "$as_dir" && as_dir=.
8830 for ac_exec_ext in '' $ac_executable_extensions; do
8831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8832 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8842 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8843 if test -n "$ac_ct_MANIFEST_TOOL"; then
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8845 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8848 $as_echo "no" >&6; }
8851 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8854 case $cross_compiling:$ac_tool_warned in
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8857 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8858 ac_tool_warned=yes ;;
8860 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8863 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8866 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8868 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8869 if ${lt_cv_path_mainfest_tool+:} false; then :
8870 $as_echo_n "(cached) " >&6
8872 lt_cv_path_mainfest_tool=no
8873 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8874 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8875 cat conftest.err >&5
8876 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8877 lt_cv_path_mainfest_tool=yes
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8882 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8883 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8893 rhapsody* | darwin*)
8894 if test -n "$ac_tool_prefix"; then
8895 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8896 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8898 $as_echo_n "checking for $ac_word... " >&6; }
8899 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8900 $as_echo_n "(cached) " >&6
8902 if test -n "$DSYMUTIL"; then
8903 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8909 test -z "$as_dir" && as_dir=.
8910 for ac_exec_ext in '' $ac_executable_extensions; do
8911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8912 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8922 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8923 if test -n "$DSYMUTIL"; then
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8925 $as_echo "$DSYMUTIL" >&6; }
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8928 $as_echo "no" >&6; }
8933 if test -z "$ac_cv_prog_DSYMUTIL"; then
8934 ac_ct_DSYMUTIL=$DSYMUTIL
8935 # Extract the first word of "dsymutil", so it can be a program name with args.
8936 set dummy dsymutil; ac_word=$2
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8938 $as_echo_n "checking for $ac_word... " >&6; }
8939 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8940 $as_echo_n "(cached) " >&6
8942 if test -n "$ac_ct_DSYMUTIL"; then
8943 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8949 test -z "$as_dir" && as_dir=.
8950 for ac_exec_ext in '' $ac_executable_extensions; do
8951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8952 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8962 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8963 if test -n "$ac_ct_DSYMUTIL"; then
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8965 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8968 $as_echo "no" >&6; }
8971 if test "x$ac_ct_DSYMUTIL" = x; then
8974 case $cross_compiling:$ac_tool_warned in
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8977 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8978 ac_tool_warned=yes ;;
8980 DSYMUTIL=$ac_ct_DSYMUTIL
8983 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8986 if test -n "$ac_tool_prefix"; then
8987 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8988 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8990 $as_echo_n "checking for $ac_word... " >&6; }
8991 if ${ac_cv_prog_NMEDIT+:} false; then :
8992 $as_echo_n "(cached) " >&6
8994 if test -n "$NMEDIT"; then
8995 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9001 test -z "$as_dir" && as_dir=.
9002 for ac_exec_ext in '' $ac_executable_extensions; do
9003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9004 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9014 NMEDIT=$ac_cv_prog_NMEDIT
9015 if test -n "$NMEDIT"; then
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9017 $as_echo "$NMEDIT" >&6; }
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9020 $as_echo "no" >&6; }
9025 if test -z "$ac_cv_prog_NMEDIT"; then
9026 ac_ct_NMEDIT=$NMEDIT
9027 # Extract the first word of "nmedit", so it can be a program name with args.
9028 set dummy nmedit; ac_word=$2
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9030 $as_echo_n "checking for $ac_word... " >&6; }
9031 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9032 $as_echo_n "(cached) " >&6
9034 if test -n "$ac_ct_NMEDIT"; then
9035 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9041 test -z "$as_dir" && as_dir=.
9042 for ac_exec_ext in '' $ac_executable_extensions; do
9043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9044 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9054 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9055 if test -n "$ac_ct_NMEDIT"; then
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9057 $as_echo "$ac_ct_NMEDIT" >&6; }
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9060 $as_echo "no" >&6; }
9063 if test "x$ac_ct_NMEDIT" = x; then
9066 case $cross_compiling:$ac_tool_warned in
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9070 ac_tool_warned=yes ;;
9072 NMEDIT=$ac_ct_NMEDIT
9075 NMEDIT="$ac_cv_prog_NMEDIT"
9078 if test -n "$ac_tool_prefix"; then
9079 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9080 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9082 $as_echo_n "checking for $ac_word... " >&6; }
9083 if ${ac_cv_prog_LIPO+:} false; then :
9084 $as_echo_n "(cached) " >&6
9086 if test -n "$LIPO"; then
9087 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9093 test -z "$as_dir" && as_dir=.
9094 for ac_exec_ext in '' $ac_executable_extensions; do
9095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9096 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9106 LIPO=$ac_cv_prog_LIPO
9107 if test -n "$LIPO"; then
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9109 $as_echo "$LIPO" >&6; }
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9112 $as_echo "no" >&6; }
9117 if test -z "$ac_cv_prog_LIPO"; then
9119 # Extract the first word of "lipo", so it can be a program name with args.
9120 set dummy lipo; ac_word=$2
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9122 $as_echo_n "checking for $ac_word... " >&6; }
9123 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9124 $as_echo_n "(cached) " >&6
9126 if test -n "$ac_ct_LIPO"; then
9127 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9133 test -z "$as_dir" && as_dir=.
9134 for ac_exec_ext in '' $ac_executable_extensions; do
9135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9136 ac_cv_prog_ac_ct_LIPO="lipo"
9137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9146 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9147 if test -n "$ac_ct_LIPO"; then
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9149 $as_echo "$ac_ct_LIPO" >&6; }
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9152 $as_echo "no" >&6; }
9155 if test "x$ac_ct_LIPO" = x; then
9158 case $cross_compiling:$ac_tool_warned in
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9162 ac_tool_warned=yes ;;
9167 LIPO="$ac_cv_prog_LIPO"
9170 if test -n "$ac_tool_prefix"; then
9171 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9172 set dummy ${ac_tool_prefix}otool; ac_word=$2
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9174 $as_echo_n "checking for $ac_word... " >&6; }
9175 if ${ac_cv_prog_OTOOL+:} false; then :
9176 $as_echo_n "(cached) " >&6
9178 if test -n "$OTOOL"; then
9179 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9185 test -z "$as_dir" && as_dir=.
9186 for ac_exec_ext in '' $ac_executable_extensions; do
9187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9188 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9198 OTOOL=$ac_cv_prog_OTOOL
9199 if test -n "$OTOOL"; then
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9201 $as_echo "$OTOOL" >&6; }
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9204 $as_echo "no" >&6; }
9209 if test -z "$ac_cv_prog_OTOOL"; then
9211 # Extract the first word of "otool", so it can be a program name with args.
9212 set dummy otool; ac_word=$2
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9214 $as_echo_n "checking for $ac_word... " >&6; }
9215 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9216 $as_echo_n "(cached) " >&6
9218 if test -n "$ac_ct_OTOOL"; then
9219 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9225 test -z "$as_dir" && as_dir=.
9226 for ac_exec_ext in '' $ac_executable_extensions; do
9227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9228 ac_cv_prog_ac_ct_OTOOL="otool"
9229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9238 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9239 if test -n "$ac_ct_OTOOL"; then
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9241 $as_echo "$ac_ct_OTOOL" >&6; }
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9244 $as_echo "no" >&6; }
9247 if test "x$ac_ct_OTOOL" = x; then
9250 case $cross_compiling:$ac_tool_warned in
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9254 ac_tool_warned=yes ;;
9259 OTOOL="$ac_cv_prog_OTOOL"
9262 if test -n "$ac_tool_prefix"; then
9263 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9264 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9266 $as_echo_n "checking for $ac_word... " >&6; }
9267 if ${ac_cv_prog_OTOOL64+:} false; then :
9268 $as_echo_n "(cached) " >&6
9270 if test -n "$OTOOL64"; then
9271 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9277 test -z "$as_dir" && as_dir=.
9278 for ac_exec_ext in '' $ac_executable_extensions; do
9279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9280 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9290 OTOOL64=$ac_cv_prog_OTOOL64
9291 if test -n "$OTOOL64"; then
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9293 $as_echo "$OTOOL64" >&6; }
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9296 $as_echo "no" >&6; }
9301 if test -z "$ac_cv_prog_OTOOL64"; then
9302 ac_ct_OTOOL64=$OTOOL64
9303 # Extract the first word of "otool64", so it can be a program name with args.
9304 set dummy otool64; ac_word=$2
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9306 $as_echo_n "checking for $ac_word... " >&6; }
9307 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9308 $as_echo_n "(cached) " >&6
9310 if test -n "$ac_ct_OTOOL64"; then
9311 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9317 test -z "$as_dir" && as_dir=.
9318 for ac_exec_ext in '' $ac_executable_extensions; do
9319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9320 ac_cv_prog_ac_ct_OTOOL64="otool64"
9321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9330 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9331 if test -n "$ac_ct_OTOOL64"; then
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9333 $as_echo "$ac_ct_OTOOL64" >&6; }
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9336 $as_echo "no" >&6; }
9339 if test "x$ac_ct_OTOOL64" = x; then
9342 case $cross_compiling:$ac_tool_warned in
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9345 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9346 ac_tool_warned=yes ;;
9348 OTOOL64=$ac_ct_OTOOL64
9351 OTOOL64="$ac_cv_prog_OTOOL64"
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9381 $as_echo_n "checking for -single_module linker flag... " >&6; }
9382 if ${lt_cv_apple_cc_single_mod+:} false; then :
9383 $as_echo_n "(cached) " >&6
9385 lt_cv_apple_cc_single_mod=no
9386 if test -z "${LT_MULTI_MODULE}"; then
9387 # By default we will add the -single_module flag. You can override
9388 # by either setting the environment variable LT_MULTI_MODULE
9389 # non-empty at configure time, or by adding -multi_module to the
9391 rm -rf libconftest.dylib*
9392 echo "int foo(void){return 1;}" > conftest.c
9393 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9394 -dynamiclib -Wl,-single_module conftest.c" >&5
9395 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9396 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9398 # If there is a non-empty error log, and "single_module"
9399 # appears in it, assume the flag caused a linker warning
9400 if test -s conftest.err && $GREP single_module conftest.err; then
9401 cat conftest.err >&5
9402 # Otherwise, if the output was created with a 0 exit code from
9403 # the compiler, it worked.
9404 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9405 lt_cv_apple_cc_single_mod=yes
9407 cat conftest.err >&5
9409 rm -rf libconftest.dylib*
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9414 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9417 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9418 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9419 $as_echo_n "(cached) " >&6
9421 lt_cv_ld_exported_symbols_list=no
9422 save_LDFLAGS=$LDFLAGS
9423 echo "_main" > conftest.sym
9424 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9426 /* end confdefs.h. */
9436 if ac_fn_c_try_link "$LINENO"; then :
9437 lt_cv_ld_exported_symbols_list=yes
9439 lt_cv_ld_exported_symbols_list=no
9441 rm -f core conftest.err conftest.$ac_objext \
9442 conftest$ac_exeext conftest.$ac_ext
9443 LDFLAGS="$save_LDFLAGS"
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9447 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9450 $as_echo_n "checking for -force_load linker flag... " >&6; }
9451 if ${lt_cv_ld_force_load+:} false; then :
9452 $as_echo_n "(cached) " >&6
9454 lt_cv_ld_force_load=no
9455 cat > conftest.c << _LT_EOF
9456 int forced_loaded() { return 2;}
9458 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9459 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9460 echo "$AR cru libconftest.a conftest.o" >&5
9461 $AR cru libconftest.a conftest.o 2>&5
9462 echo "$RANLIB libconftest.a" >&5
9463 $RANLIB libconftest.a 2>&5
9464 cat > conftest.c << _LT_EOF
9465 int main() { return 0;}
9467 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9468 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9470 if test -s conftest.err && $GREP force_load conftest.err; then
9471 cat conftest.err >&5
9472 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9473 lt_cv_ld_force_load=yes
9475 cat conftest.err >&5
9477 rm -f conftest.err libconftest.a conftest conftest.c
9478 rm -rf conftest.dSYM
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9482 $as_echo "$lt_cv_ld_force_load" >&6; }
9484 rhapsody* | darwin1.[012])
9485 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9487 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9488 darwin*) # darwin 5.x on
9489 # if running on 10.5 or later, the deployment target defaults
9490 # to the OS version, if on x86, and 10.4, the deployment
9491 # target defaults to 10.4. Don't you love it?
9492 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9493 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9494 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9496 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9498 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9502 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9503 _lt_dar_single_mod='$single_module'
9505 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9506 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9508 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9510 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9511 _lt_dsymutil='~$DSYMUTIL $lib || :'
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9520 $as_echo_n "checking for ANSI C header files... " >&6; }
9521 if ${ac_cv_header_stdc+:} false; then :
9522 $as_echo_n "(cached) " >&6
9524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9525 /* end confdefs.h. */
9539 if ac_fn_c_try_compile "$LINENO"; then :
9540 ac_cv_header_stdc=yes
9542 ac_cv_header_stdc=no
9544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9546 if test $ac_cv_header_stdc = yes; then
9547 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9549 /* end confdefs.h. */
9553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9554 $EGREP "memchr" >/dev/null 2>&1; then :
9557 ac_cv_header_stdc=no
9563 if test $ac_cv_header_stdc = yes; then
9564 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9566 /* end confdefs.h. */
9570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9571 $EGREP "free" >/dev/null 2>&1; then :
9574 ac_cv_header_stdc=no
9580 if test $ac_cv_header_stdc = yes; then
9581 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9582 if test "$cross_compiling" = yes; then :
9585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9586 /* end confdefs.h. */
9589 #if ((' ' & 0x0FF) == 0x020)
9590 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9591 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9593 # define ISLOWER(c) \
9594 (('a' <= (c) && (c) <= 'i') \
9595 || ('j' <= (c) && (c) <= 'r') \
9596 || ('s' <= (c) && (c) <= 'z'))
9597 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9600 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9605 for (i = 0; i < 256; i++)
9606 if (XOR (islower (i), ISLOWER (i))
9607 || toupper (i) != TOUPPER (i))
9612 if ac_fn_c_try_run "$LINENO"; then :
9615 ac_cv_header_stdc=no
9617 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9618 conftest.$ac_objext conftest.beam conftest.$ac_ext
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9624 $as_echo "$ac_cv_header_stdc" >&6; }
9625 if test $ac_cv_header_stdc = yes; then
9627 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9631 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9632 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9633 inttypes.h stdint.h unistd.h
9635 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9636 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9638 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9639 cat >>confdefs.h <<_ACEOF
9640 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9648 for ac_header in dlfcn.h
9650 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9652 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9653 cat >>confdefs.h <<_ACEOF
9654 #define HAVE_DLFCN_H 1
9674 # Check whether --enable-shared was given.
9675 if test "${enable_shared+set}" = set; then :
9676 enableval=$enable_shared; p=${PACKAGE-default}
9678 yes) enable_shared=yes ;;
9679 no) enable_shared=no ;;
9682 # Look at the argument we got. We use all the common list separators.
9683 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9684 for pkg in $enableval; do
9686 if test "X$pkg" = "X$p"; then
9705 # Check whether --enable-static was given.
9706 if test "${enable_static+set}" = set; then :
9707 enableval=$enable_static; p=${PACKAGE-default}
9709 yes) enable_static=yes ;;
9710 no) enable_static=no ;;
9713 # Look at the argument we got. We use all the common list separators.
9714 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9715 for pkg in $enableval; do
9717 if test "X$pkg" = "X$p"; then
9737 # Check whether --with-pic was given.
9738 if test "${with_pic+set}" = set; then :
9739 withval=$with_pic; lt_p=${PACKAGE-default}
9741 yes|no) pic_mode=$withval ;;
9744 # Look at the argument we got. We use all the common list separators.
9745 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9746 for lt_pkg in $withval; do
9748 if test "X$lt_pkg" = "X$lt_p"; then
9760 test -z "$pic_mode" && pic_mode=default
9768 # Check whether --enable-fast-install was given.
9769 if test "${enable_fast_install+set}" = set; then :
9770 enableval=$enable_fast_install; p=${PACKAGE-default}
9772 yes) enable_fast_install=yes ;;
9773 no) enable_fast_install=no ;;
9775 enable_fast_install=no
9776 # Look at the argument we got. We use all the common list separators.
9777 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9778 for pkg in $enableval; do
9780 if test "X$pkg" = "X$p"; then
9781 enable_fast_install=yes
9788 enable_fast_install=yes
9801 # This can be used to rebuild libtool when needed
9802 LIBTOOL_DEPS="$ltmain"
9804 # Always use our own libtool.
9805 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9836 test -z "$LN_S" && LN_S="ln -s"
9851 if test -n "${ZSH_VERSION+set}" ; then
9852 setopt NO_GLOB_SUBST
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9856 $as_echo_n "checking for objdir... " >&6; }
9857 if ${lt_cv_objdir+:} false; then :
9858 $as_echo_n "(cached) " >&6
9860 rm -f .libs 2>/dev/null
9861 mkdir .libs 2>/dev/null
9862 if test -d .libs; then
9865 # MS-DOS does not allow filenames that begin with a dot.
9868 rmdir .libs 2>/dev/null
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9871 $as_echo "$lt_cv_objdir" >&6; }
9872 objdir=$lt_cv_objdir
9878 cat >>confdefs.h <<_ACEOF
9879 #define LT_OBJDIR "$lt_cv_objdir/"
9887 # AIX sometimes has problems with the GCC collect2 program. For some
9888 # reason, if we set the COLLECT_NAMES environment variable, the problems
9889 # vanish in a puff of smoke.
9890 if test "X${COLLECT_NAMES+set}" != Xset; then
9892 export COLLECT_NAMES
9899 can_build_shared=yes
9901 # All known linkers require a `.a' archive for static linking (except MSVC,
9902 # which needs '.lib').
9905 with_gnu_ld="$lt_cv_prog_gnu_ld"
9908 old_CFLAGS="$CFLAGS"
9910 # Set sane defaults for various variables
9911 test -z "$CC" && CC=cc
9912 test -z "$LTCC" && LTCC=$CC
9913 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9914 test -z "$LD" && LD=ld
9915 test -z "$ac_objext" && ac_objext=o
9917 for cc_temp in $compiler""; do
9919 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9920 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9925 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9928 # Only perform the check for file, if the check method requires it
9929 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9930 case $deplibs_check_method in
9932 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9934 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9935 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9936 $as_echo_n "(cached) " >&6
9940 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9943 lt_save_MAGIC_CMD="$MAGIC_CMD"
9944 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9945 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9946 for ac_dir in $ac_dummy; do
9948 test -z "$ac_dir" && ac_dir=.
9949 if test -f $ac_dir/${ac_tool_prefix}file; then
9950 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9951 if test -n "$file_magic_test_file"; then
9952 case $deplibs_check_method in
9954 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9955 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9956 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9957 $EGREP "$file_magic_regex" > /dev/null; then
9962 *** Warning: the command libtool uses to detect shared libraries,
9963 *** $file_magic_cmd, produces output that libtool cannot recognize.
9964 *** The result is that libtool may fail to recognize shared libraries
9965 *** as such. This will affect the creation of libtool libraries that
9966 *** depend on shared libraries, but programs linked with such libtool
9967 *** libraries will work regardless of this problem. Nevertheless, you
9968 *** may want to report the problem to your system manager and/or to
9969 *** bug-libtool@gnu.org
9979 MAGIC_CMD="$lt_save_MAGIC_CMD"
9984 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9985 if test -n "$MAGIC_CMD"; then
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9987 $as_echo "$MAGIC_CMD" >&6; }
9989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9990 $as_echo "no" >&6; }
9997 if test -z "$lt_cv_path_MAGIC_CMD"; then
9998 if test -n "$ac_tool_prefix"; then
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10000 $as_echo_n "checking for file... " >&6; }
10001 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10002 $as_echo_n "(cached) " >&6
10006 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10009 lt_save_MAGIC_CMD="$MAGIC_CMD"
10010 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10011 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10012 for ac_dir in $ac_dummy; do
10014 test -z "$ac_dir" && ac_dir=.
10015 if test -f $ac_dir/file; then
10016 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10017 if test -n "$file_magic_test_file"; then
10018 case $deplibs_check_method in
10020 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10021 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10022 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10023 $EGREP "$file_magic_regex" > /dev/null; then
10028 *** Warning: the command libtool uses to detect shared libraries,
10029 *** $file_magic_cmd, produces output that libtool cannot recognize.
10030 *** The result is that libtool may fail to recognize shared libraries
10031 *** as such. This will affect the creation of libtool libraries that
10032 *** depend on shared libraries, but programs linked with such libtool
10033 *** libraries will work regardless of this problem. Nevertheless, you
10034 *** may want to report the problem to your system manager and/or to
10035 *** bug-libtool@gnu.org
10045 MAGIC_CMD="$lt_save_MAGIC_CMD"
10050 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10051 if test -n "$MAGIC_CMD"; then
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10053 $as_echo "$MAGIC_CMD" >&6; }
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10056 $as_echo "no" >&6; }
10069 # Use C for the default configuration in the libtool script
10073 ac_cpp='$CPP $CPPFLAGS'
10074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10079 # Source file extension for C test sources.
10082 # Object file extension for compiled C test sources.
10086 # Code to be used in simple compile tests
10087 lt_simple_compile_test_code="int some_variable = 0;"
10089 # Code to be used in simple link tests
10090 lt_simple_link_test_code='int main(){return(0);}'
10098 # If no C compiler was specified, use CC.
10101 # If no C compiler flags were specified, use CFLAGS.
10102 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10104 # Allow CC to be a program name with arguments.
10107 # Save the default compiler, since it gets overwritten when the other
10108 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10109 compiler_DEFAULT=$CC
10111 # save warnings/boilerplate of simple test code
10112 ac_outfile=conftest.$ac_objext
10113 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10114 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10115 _lt_compiler_boilerplate=`cat conftest.err`
10118 ac_outfile=conftest.$ac_objext
10119 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10120 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10121 _lt_linker_boilerplate=`cat conftest.err`
10126 ## There is no encapsulation within the following macros, do not change
10127 ## the running order or otherwise move them around unless you know exactly
10128 ## what you are doing...
10129 if test -n "$compiler"; then
10131 lt_prog_compiler_no_builtin_flag=
10133 if test "$GCC" = yes; then
10134 case $cc_basename in
10136 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10138 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10142 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10143 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10144 $as_echo_n "(cached) " >&6
10146 lt_cv_prog_compiler_rtti_exceptions=no
10147 ac_outfile=conftest.$ac_objext
10148 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10149 lt_compiler_flag="-fno-rtti -fno-exceptions"
10150 # Insert the option either (1) after the last *FLAGS variable, or
10151 # (2) before a word containing "conftest.", or (3) at the end.
10152 # Note that $ac_compile itself does not contain backslashes and begins
10153 # with a dollar sign (not a hyphen), so the echo should work correctly.
10154 # The option is referenced via a variable to avoid confusing sed.
10155 lt_compile=`echo "$ac_compile" | $SED \
10156 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10157 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10158 -e 's:$: $lt_compiler_flag:'`
10159 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10160 (eval "$lt_compile" 2>conftest.err)
10162 cat conftest.err >&5
10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 if (exit $ac_status) && test -s "$ac_outfile"; then
10165 # The compiler can only warn and ignore the option if not recognized
10166 # So say no if there are warnings other than the usual output.
10167 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10168 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10169 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10170 lt_cv_prog_compiler_rtti_exceptions=yes
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10177 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10179 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10180 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10192 lt_prog_compiler_wl=
10193 lt_prog_compiler_pic=
10194 lt_prog_compiler_static=
10197 if test "$GCC" = yes; then
10198 lt_prog_compiler_wl='-Wl,'
10199 lt_prog_compiler_static='-static'
10203 # All AIX code is PIC.
10204 if test "$host_cpu" = ia64; then
10205 # AIX 5 now supports IA64 processor
10206 lt_prog_compiler_static='-Bstatic'
10213 # see comment about AmigaOS4 .so support
10214 lt_prog_compiler_pic='-fPIC'
10217 # FIXME: we need at least 68020 code to build shared libraries, but
10218 # adding the `-m68020' flag to GCC prevents building anything better,
10220 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10225 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10226 # PIC is the default for these OSes.
10229 mingw* | cygwin* | pw32* | os2* | cegcc*)
10230 # This hack is so that the source file can tell whether it is being
10231 # built for inclusion in a dll (and should export symbols for example).
10232 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10233 # (--disable-auto-import) libraries
10234 lt_prog_compiler_pic='-DDLL_EXPORT'
10237 darwin* | rhapsody*)
10238 # PIC is the default on this platform
10239 # Common symbols not allowed in MH_DYLIB files
10240 lt_prog_compiler_pic='-fno-common'
10244 # PIC is the default for Haiku.
10245 # The "-static" flag exists, but is broken.
10246 lt_prog_compiler_static=
10250 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10251 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10252 # sets the default TLS model and affects inlining.
10258 lt_prog_compiler_pic='-fPIC'
10264 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10265 # Instead, we relocate shared libraries at runtime.
10269 # Just because we use GCC doesn't mean we suddenly get shared libraries
10270 # on systems that don't support them.
10271 lt_prog_compiler_can_build_shared=no
10276 # QNX uses GNU C++, but need to define -shared option too, otherwise
10277 # it will coredump.
10278 lt_prog_compiler_pic='-fPIC -shared'
10282 if test -d /usr/nec; then
10283 lt_prog_compiler_pic=-Kconform_pic
10288 lt_prog_compiler_pic='-fPIC'
10292 case $cc_basename in
10293 nvcc*) # Cuda Compiler Driver 2.2
10294 lt_prog_compiler_wl='-Xlinker '
10295 if test -n "$lt_prog_compiler_pic"; then
10296 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10301 # PORTME Check for flag to pass linker flags through the system compiler.
10304 lt_prog_compiler_wl='-Wl,'
10305 if test "$host_cpu" = ia64; then
10306 # AIX 5 now supports IA64 processor
10307 lt_prog_compiler_static='-Bstatic'
10309 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10313 mingw* | cygwin* | pw32* | os2* | cegcc*)
10314 # This hack is so that the source file can tell whether it is being
10315 # built for inclusion in a dll (and should export symbols for example).
10316 lt_prog_compiler_pic='-DDLL_EXPORT'
10319 hpux9* | hpux10* | hpux11*)
10320 lt_prog_compiler_wl='-Wl,'
10321 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10322 # not for PA HP-UX.
10328 lt_prog_compiler_pic='+Z'
10331 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10332 lt_prog_compiler_static='${wl}-a ${wl}archive'
10335 irix5* | irix6* | nonstopux*)
10336 lt_prog_compiler_wl='-Wl,'
10337 # PIC (with -KPIC) is the default.
10338 lt_prog_compiler_static='-non_shared'
10341 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10342 case $cc_basename in
10343 # old Intel for x86_64 which still supported -KPIC.
10345 lt_prog_compiler_wl='-Wl,'
10346 lt_prog_compiler_pic='-KPIC'
10347 lt_prog_compiler_static='-static'
10349 # icc used to be incompatible with GCC.
10350 # ICC 10 doesn't accept -KPIC any more.
10352 lt_prog_compiler_wl='-Wl,'
10353 lt_prog_compiler_pic='-fPIC'
10354 lt_prog_compiler_static='-static'
10356 # Lahey Fortran 8.1.
10358 lt_prog_compiler_wl='-Wl,'
10359 lt_prog_compiler_pic='--shared'
10360 lt_prog_compiler_static='--static'
10363 # NAG Fortran compiler
10364 lt_prog_compiler_wl='-Wl,-Wl,,'
10365 lt_prog_compiler_pic='-PIC'
10366 lt_prog_compiler_static='-Bstatic'
10368 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10369 # Portland Group compilers (*not* the Pentium gcc compiler,
10370 # which looks to be a dead project)
10371 lt_prog_compiler_wl='-Wl,'
10372 lt_prog_compiler_pic='-fpic'
10373 lt_prog_compiler_static='-Bstatic'
10376 lt_prog_compiler_wl='-Wl,'
10377 # All Alpha code is PIC.
10378 lt_prog_compiler_static='-non_shared'
10380 xl* | bgxl* | bgf* | mpixl*)
10381 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10382 lt_prog_compiler_wl='-Wl,'
10383 lt_prog_compiler_pic='-qpic'
10384 lt_prog_compiler_static='-qstaticlink'
10387 case `$CC -V 2>&1 | sed 5q` in
10388 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10389 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10390 lt_prog_compiler_pic='-KPIC'
10391 lt_prog_compiler_static='-Bstatic'
10392 lt_prog_compiler_wl=''
10394 *Sun\ F* | *Sun*Fortran*)
10395 lt_prog_compiler_pic='-KPIC'
10396 lt_prog_compiler_static='-Bstatic'
10397 lt_prog_compiler_wl='-Qoption ld '
10401 lt_prog_compiler_pic='-KPIC'
10402 lt_prog_compiler_static='-Bstatic'
10403 lt_prog_compiler_wl='-Wl,'
10405 *Intel*\ [CF]*Compiler*)
10406 lt_prog_compiler_wl='-Wl,'
10407 lt_prog_compiler_pic='-fPIC'
10408 lt_prog_compiler_static='-static'
10411 lt_prog_compiler_wl='-Wl,'
10412 lt_prog_compiler_pic='-fpic'
10413 lt_prog_compiler_static='-Bstatic'
10421 lt_prog_compiler_pic='-KPIC'
10422 lt_prog_compiler_static='-Bstatic'
10426 # QNX uses GNU C++, but need to define -shared option too, otherwise
10427 # it will coredump.
10428 lt_prog_compiler_pic='-fPIC -shared'
10431 osf3* | osf4* | osf5*)
10432 lt_prog_compiler_wl='-Wl,'
10433 # All OSF/1 code is PIC.
10434 lt_prog_compiler_static='-non_shared'
10438 lt_prog_compiler_static='-non_shared'
10442 lt_prog_compiler_pic='-KPIC'
10443 lt_prog_compiler_static='-Bstatic'
10444 case $cc_basename in
10445 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10446 lt_prog_compiler_wl='-Qoption ld ';;
10448 lt_prog_compiler_wl='-Wl,';;
10453 lt_prog_compiler_wl='-Qoption ld '
10454 lt_prog_compiler_pic='-PIC'
10455 lt_prog_compiler_static='-Bstatic'
10458 sysv4 | sysv4.2uw2* | sysv4.3*)
10459 lt_prog_compiler_wl='-Wl,'
10460 lt_prog_compiler_pic='-KPIC'
10461 lt_prog_compiler_static='-Bstatic'
10465 if test -d /usr/nec ;then
10466 lt_prog_compiler_pic='-Kconform_pic'
10467 lt_prog_compiler_static='-Bstatic'
10471 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10472 lt_prog_compiler_wl='-Wl,'
10473 lt_prog_compiler_pic='-KPIC'
10474 lt_prog_compiler_static='-Bstatic'
10478 lt_prog_compiler_wl='-Wl,'
10479 lt_prog_compiler_can_build_shared=no
10483 lt_prog_compiler_pic='-pic'
10484 lt_prog_compiler_static='-Bstatic'
10488 lt_prog_compiler_can_build_shared=no
10494 # For platforms which do not support PIC, -DPIC is meaningless:
10496 lt_prog_compiler_pic=
10499 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10504 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10505 if ${lt_cv_prog_compiler_pic+:} false; then :
10506 $as_echo_n "(cached) " >&6
10508 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10511 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10512 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10515 # Check to make sure the PIC flag actually works.
10517 if test -n "$lt_prog_compiler_pic"; then
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10519 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10520 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10521 $as_echo_n "(cached) " >&6
10523 lt_cv_prog_compiler_pic_works=no
10524 ac_outfile=conftest.$ac_objext
10525 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10526 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
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 # The option is referenced via a variable to avoid confusing sed.
10532 lt_compile=`echo "$ac_compile" | $SED \
10533 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10534 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10535 -e 's:$: $lt_compiler_flag:'`
10536 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10537 (eval "$lt_compile" 2>conftest.err)
10539 cat conftest.err >&5
10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 if (exit $ac_status) && test -s "$ac_outfile"; then
10542 # The compiler can only warn and ignore the option if not recognized
10543 # So say no if there are warnings other than the usual output.
10544 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10545 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10546 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10547 lt_cv_prog_compiler_pic_works=yes
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10554 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10556 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10557 case $lt_prog_compiler_pic in
10559 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10562 lt_prog_compiler_pic=
10563 lt_prog_compiler_can_build_shared=no
10579 # Check to make sure the static flag actually works.
10581 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10583 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10584 if ${lt_cv_prog_compiler_static_works+:} false; then :
10585 $as_echo_n "(cached) " >&6
10587 lt_cv_prog_compiler_static_works=no
10588 save_LDFLAGS="$LDFLAGS"
10589 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10590 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10591 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10592 # The linker can only warn and ignore the option if not recognized
10593 # So say no if there are warnings
10594 if test -s conftest.err; then
10595 # Append any errors to the config.log.
10596 cat conftest.err 1>&5
10597 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10598 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10599 if diff conftest.exp conftest.er2 >/dev/null; then
10600 lt_cv_prog_compiler_static_works=yes
10603 lt_cv_prog_compiler_static_works=yes
10607 LDFLAGS="$save_LDFLAGS"
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10611 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10613 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10616 lt_prog_compiler_static=
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10626 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10627 if ${lt_cv_prog_compiler_c_o+:} false; then :
10628 $as_echo_n "(cached) " >&6
10630 lt_cv_prog_compiler_c_o=no
10631 $RM -r conftest 2>/dev/null
10635 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10637 lt_compiler_flag="-o out/conftest2.$ac_objext"
10638 # Insert the option either (1) after the last *FLAGS variable, or
10639 # (2) before a word containing "conftest.", or (3) at the end.
10640 # Note that $ac_compile itself does not contain backslashes and begins
10641 # with a dollar sign (not a hyphen), so the echo should work correctly.
10642 lt_compile=`echo "$ac_compile" | $SED \
10643 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10644 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10645 -e 's:$: $lt_compiler_flag:'`
10646 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10647 (eval "$lt_compile" 2>out/conftest.err)
10649 cat out/conftest.err >&5
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10653 # The compiler can only warn and ignore the option if not recognized
10654 # So say no if there are warnings
10655 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10656 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10657 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10658 lt_cv_prog_compiler_c_o=yes
10663 # SGI C++ compiler will create directory out/ii_files/ for
10664 # template instantiation
10665 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10666 $RM out/* && rmdir out
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10673 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10681 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10682 if ${lt_cv_prog_compiler_c_o+:} false; then :
10683 $as_echo_n "(cached) " >&6
10685 lt_cv_prog_compiler_c_o=no
10686 $RM -r conftest 2>/dev/null
10690 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10692 lt_compiler_flag="-o out/conftest2.$ac_objext"
10693 # Insert the option either (1) after the last *FLAGS variable, or
10694 # (2) before a word containing "conftest.", or (3) at the end.
10695 # Note that $ac_compile itself does not contain backslashes and begins
10696 # with a dollar sign (not a hyphen), so the echo should work correctly.
10697 lt_compile=`echo "$ac_compile" | $SED \
10698 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10699 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10700 -e 's:$: $lt_compiler_flag:'`
10701 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10702 (eval "$lt_compile" 2>out/conftest.err)
10704 cat out/conftest.err >&5
10705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10708 # The compiler can only warn and ignore the option if not recognized
10709 # So say no if there are warnings
10710 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10711 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10712 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10713 lt_cv_prog_compiler_c_o=yes
10718 # SGI C++ compiler will create directory out/ii_files/ for
10719 # template instantiation
10720 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10721 $RM out/* && rmdir out
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10728 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10733 hard_links="nottested"
10734 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10735 # do not overwrite the value of need_locks provided by the user
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10737 $as_echo_n "checking if we can lock with hard links... " >&6; }
10740 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10742 ln conftest.a conftest.b 2>&5 || hard_links=no
10743 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10745 $as_echo "$hard_links" >&6; }
10746 if test "$hard_links" = no; then
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10748 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10761 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10764 allow_undefined_flag=
10765 always_export_symbols=no
10767 archive_expsym_cmds=
10768 compiler_needs_object=no
10769 enable_shared_with_static_runtimes=no
10770 export_dynamic_flag_spec=
10771 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10772 hardcode_automatic=no
10774 hardcode_direct_absolute=no
10775 hardcode_libdir_flag_spec=
10776 hardcode_libdir_separator=
10777 hardcode_minus_L=no
10778 hardcode_shlibpath_var=unsupported
10780 link_all_deplibs=unknown
10782 module_expsym_cmds=
10783 old_archive_from_new_cmds=
10784 old_archive_from_expsyms_cmds=
10785 thread_safe_flag_spec=
10786 whole_archive_flag_spec=
10787 # include_expsyms should be a list of space-separated symbols to be *always*
10788 # included in the symbol list
10790 # exclude_expsyms can be an extended regexp of symbols to exclude
10791 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10792 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10793 # as well as any symbol that contains `d'.
10794 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10795 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10796 # platforms (ab)use it in PIC code, but their linkers get confused if
10797 # the symbol is explicitly referenced. Since portable code cannot
10798 # rely on this symbol name, it's probably fine to never include it in
10799 # preloaded symbol tables.
10800 # Exclude shared library initialization/finalization symbols.
10801 extract_expsyms_cmds=
10804 cygwin* | mingw* | pw32* | cegcc*)
10805 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10806 # When not using gcc, we currently assume that we are using
10807 # Microsoft Visual C++.
10808 if test "$GCC" != yes; then
10813 # we just hope/assume this is gcc and not c89 (= MSVC++)
10823 # On some targets, GNU ld is compatible enough with the native linker
10824 # that we're better off using the native interface for both.
10825 lt_use_gnu_ld_interface=no
10826 if test "$with_gnu_ld" = yes; then
10829 # The AIX port of GNU ld has always aspired to compatibility
10830 # with the native linker. However, as the warning in the GNU ld
10831 # block says, versions before 2.19.5* couldn't really create working
10832 # shared libraries, regardless of the interface used.
10833 case `$LD -v 2>&1` in
10834 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10835 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10836 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10838 lt_use_gnu_ld_interface=yes
10843 lt_use_gnu_ld_interface=yes
10848 if test "$lt_use_gnu_ld_interface" = yes; then
10849 # If archive_cmds runs LD, not CC, wlarc should be empty
10852 # Set some defaults for GNU ld with shared library support. These
10853 # are reset later if shared libraries are not supported. Putting them
10854 # here allows them to be overridden if necessary.
10855 runpath_var=LD_RUN_PATH
10856 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10857 export_dynamic_flag_spec='${wl}--export-dynamic'
10858 # ancient GNU ld didn't support --whole-archive et. al.
10859 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10860 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10862 whole_archive_flag_spec=
10864 supports_anon_versioning=no
10865 case `$LD -v 2>&1` in
10866 *GNU\ gold*) supports_anon_versioning=yes ;;
10867 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10868 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10869 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10870 *\ 2.11.*) ;; # other 2.11 versions
10871 *) supports_anon_versioning=yes ;;
10874 # See if GNU ld supports shared libraries.
10877 # On AIX/PPC, the GNU linker is very broken
10878 if test "$host_cpu" != ia64; then
10882 *** Warning: the GNU linker, at least up to release 2.19, is reported
10883 *** to be unable to reliably create shared libraries on AIX.
10884 *** Therefore, libtool is disabling shared libraries support. If you
10885 *** really care for shared libraries, you may want to install binutils
10886 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10887 *** You will then need to restart the configuration process.
10896 # see comment about AmigaOS4 .so support
10897 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10898 archive_expsym_cmds=''
10901 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)'
10902 hardcode_libdir_flag_spec='-L$libdir'
10903 hardcode_minus_L=yes
10909 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10910 allow_undefined_flag=unsupported
10911 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10912 # support --undefined. This deserves some investigation. FIXME
10913 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10919 cygwin* | mingw* | pw32* | cegcc*)
10920 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10921 # as there is no search path for DLLs.
10922 hardcode_libdir_flag_spec='-L$libdir'
10923 export_dynamic_flag_spec='${wl}--export-all-symbols'
10924 allow_undefined_flag=unsupported
10925 always_export_symbols=no
10926 enable_shared_with_static_runtimes=yes
10927 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'
10928 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10930 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10931 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10932 # If the export-symbols file already is a .def file (1st line
10933 # is EXPORTS), use it as is; otherwise, prepend...
10934 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10935 cp $export_symbols $output_objdir/$soname.def;
10937 echo EXPORTS > $output_objdir/$soname.def;
10938 cat $export_symbols >> $output_objdir/$soname.def;
10940 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10947 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10948 link_all_deplibs=yes
10953 hardcode_shlibpath_var=no
10954 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10955 export_dynamic_flag_spec='${wl}-E'
10956 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10957 # Instead, shared libraries are loaded at an image base (0x10000000 by
10958 # default) and relocated if they conflict, which is a slow very memory
10959 # consuming and fragmenting process. To avoid this, we pick a random,
10960 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10961 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10962 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10963 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'
10966 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10968 if test "$host_os" = linux-dietlibc; then
10969 case $cc_basename in
10970 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10973 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10974 && test "$tmp_diet" = no
10976 tmp_addflag=' $pic_flag'
10977 tmp_sharedflag='-shared'
10978 case $cc_basename,$host_cpu in
10979 pgcc*) # Portland Group C compiler
10980 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'
10981 tmp_addflag=' $pic_flag'
10983 pgf77* | pgf90* | pgf95* | pgfortran*)
10984 # Portland Group f77 and f90 compilers
10985 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'
10986 tmp_addflag=' $pic_flag -Mnomain' ;;
10987 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10988 tmp_addflag=' -i_dynamic' ;;
10989 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10990 tmp_addflag=' -i_dynamic -nofor_main' ;;
10991 ifc* | ifort*) # Intel Fortran compiler
10992 tmp_addflag=' -nofor_main' ;;
10993 lf95*) # Lahey Fortran 8.1
10994 whole_archive_flag_spec=
10995 tmp_sharedflag='--shared' ;;
10996 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10997 tmp_sharedflag='-qmkshrobj'
10999 nvcc*) # Cuda Compiler Driver 2.2
11000 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'
11001 compiler_needs_object=yes
11004 case `$CC -V 2>&1 | sed 5q` in
11005 *Sun\ C*) # Sun C 5.9
11006 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'
11007 compiler_needs_object=yes
11008 tmp_sharedflag='-G' ;;
11009 *Sun\ F*) # Sun Fortran 8.3
11010 tmp_sharedflag='-G' ;;
11012 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11014 if test "x$supports_anon_versioning" = xyes; then
11015 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11016 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11017 echo "local: *; };" >> $output_objdir/$libname.ver~
11018 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11021 case $cc_basename in
11022 xlf* | bgf* | bgxlf* | mpixlf*)
11023 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11024 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11025 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11026 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11027 if test "x$supports_anon_versioning" = xyes; then
11028 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11029 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11030 echo "local: *; };" >> $output_objdir/$libname.ver~
11031 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11041 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11042 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11045 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11046 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11051 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11055 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11056 *** create shared libraries on Solaris systems. Therefore, libtool
11057 *** is disabling shared libraries support. We urge you to upgrade GNU
11058 *** binutils to release 2.9.1 or newer. Another option is to modify
11059 *** your PATH or compiler configuration so that the native linker is
11060 *** used, and then restart.
11063 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11064 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11065 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11071 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11072 case `$LD -v 2>&1` in
11073 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11077 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11078 *** reliably create shared libraries on SCO systems. Therefore, libtool
11079 *** is disabling shared libraries support. We urge you to upgrade GNU
11080 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11081 *** your PATH or compiler configuration so that the native linker is
11082 *** used, and then restart.
11087 # For security reasons, it is highly recommended that you always
11088 # use absolute paths for naming shared libraries, and exclude the
11089 # DT_RUNPATH tag from executables and libraries. But doing so
11090 # requires that you compile everything twice, which is a pain.
11091 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11092 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11093 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11094 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11103 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11105 hardcode_direct=yes
11106 hardcode_shlibpath_var=no
11110 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11111 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11112 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11119 if test "$ld_shlibs" = no; then
11121 hardcode_libdir_flag_spec=
11122 export_dynamic_flag_spec=
11123 whole_archive_flag_spec=
11126 # PORTME fill in a description of your system's linker (not GNU ld)
11129 allow_undefined_flag=unsupported
11130 always_export_symbols=yes
11131 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'
11132 # Note: this linker hardcodes the directories in LIBPATH if there
11133 # are no directories specified by -L.
11134 hardcode_minus_L=yes
11135 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11136 # Neither direct hardcoding nor static linking is supported with a
11138 hardcode_direct=unsupported
11143 if test "$host_cpu" = ia64; then
11144 # On IA64, the linker does run time linking by default, so we don't
11145 # have to do anything special.
11146 aix_use_runtimelinking=no
11147 exp_sym_flag='-Bexport'
11150 # If we're using GNU nm, then we don't want the "-C" option.
11151 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11152 # Also, AIX nm treats weak defined symbols like other global
11153 # defined symbols, whereas GNU nm marks them as "W".
11154 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11155 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'
11157 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'
11159 aix_use_runtimelinking=no
11161 # Test if we are trying to use run time linking or normal
11162 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11163 # need to do runtime linking.
11164 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11165 for ld_flag in $LDFLAGS; do
11166 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11167 aix_use_runtimelinking=yes
11174 exp_sym_flag='-bexport'
11175 no_entry_flag='-bnoentry'
11178 # When large executables or shared objects are built, AIX ld can
11179 # have problems creating the table of contents. If linking a library
11180 # or program results in "error TOC overflow" add -mminimal-toc to
11181 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11182 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11185 hardcode_direct=yes
11186 hardcode_direct_absolute=yes
11187 hardcode_libdir_separator=':'
11188 link_all_deplibs=yes
11189 file_list_spec='${wl}-f,'
11191 if test "$GCC" = yes; then
11192 case $host_os in aix4.[012]|aix4.[012].*)
11193 # We only want to do this on AIX 4.2 and lower, the check
11194 # below for broken collect2 doesn't work under 4.3+
11195 collect2name=`${CC} -print-prog-name=collect2`
11196 if test -f "$collect2name" &&
11197 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11199 # We have reworked collect2
11202 # We have old collect2
11203 hardcode_direct=unsupported
11204 # It fails to find uninstalled libraries when the uninstalled
11205 # path is not listed in the libpath. Setting hardcode_minus_L
11206 # to unsupported forces relinking
11207 hardcode_minus_L=yes
11208 hardcode_libdir_flag_spec='-L$libdir'
11209 hardcode_libdir_separator=
11213 shared_flag='-shared'
11214 if test "$aix_use_runtimelinking" = yes; then
11215 shared_flag="$shared_flag "'${wl}-G'
11219 if test "$host_cpu" = ia64; then
11220 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11221 # chokes on -Wl,-G. The following line is correct:
11224 if test "$aix_use_runtimelinking" = yes; then
11225 shared_flag='${wl}-G'
11227 shared_flag='${wl}-bM:SRE'
11232 export_dynamic_flag_spec='${wl}-bexpall'
11233 # It seems that -bexpall does not export symbols beginning with
11234 # underscore (_), so it is better to generate a list of symbols to export.
11235 always_export_symbols=yes
11236 if test "$aix_use_runtimelinking" = yes; then
11237 # Warning - without using the other runtime loading flags (-brtl),
11238 # -berok will link without error, but may produce a broken library.
11239 allow_undefined_flag='-berok'
11240 # Determine the default libpath from the value encoded in an
11241 # empty executable.
11242 if test "${lt_cv_aix_libpath+set}" = set; then
11243 aix_libpath=$lt_cv_aix_libpath
11245 if ${lt_cv_aix_libpath_+:} false; then :
11246 $as_echo_n "(cached) " >&6
11248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11249 /* end confdefs.h. */
11259 if ac_fn_c_try_link "$LINENO"; then :
11261 lt_aix_libpath_sed='
11262 /Import File Strings/,/^$/ {
11264 s/^0 *\([^ ]*\) *$/\1/
11268 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11269 # Check for a 64-bit object if we didn't find anything.
11270 if test -z "$lt_cv_aix_libpath_"; then
11271 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11274 rm -f core conftest.err conftest.$ac_objext \
11275 conftest$ac_exeext conftest.$ac_ext
11276 if test -z "$lt_cv_aix_libpath_"; then
11277 lt_cv_aix_libpath_="/usr/lib:/lib"
11282 aix_libpath=$lt_cv_aix_libpath_
11285 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11286 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"
11288 if test "$host_cpu" = ia64; then
11289 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11290 allow_undefined_flag="-z nodefs"
11291 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"
11293 # Determine the default libpath from the value encoded in an
11294 # empty executable.
11295 if test "${lt_cv_aix_libpath+set}" = set; then
11296 aix_libpath=$lt_cv_aix_libpath
11298 if ${lt_cv_aix_libpath_+:} false; then :
11299 $as_echo_n "(cached) " >&6
11301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11302 /* end confdefs.h. */
11312 if ac_fn_c_try_link "$LINENO"; then :
11314 lt_aix_libpath_sed='
11315 /Import File Strings/,/^$/ {
11317 s/^0 *\([^ ]*\) *$/\1/
11321 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11322 # Check for a 64-bit object if we didn't find anything.
11323 if test -z "$lt_cv_aix_libpath_"; then
11324 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11327 rm -f core conftest.err conftest.$ac_objext \
11328 conftest$ac_exeext conftest.$ac_ext
11329 if test -z "$lt_cv_aix_libpath_"; then
11330 lt_cv_aix_libpath_="/usr/lib:/lib"
11335 aix_libpath=$lt_cv_aix_libpath_
11338 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11339 # Warning - without using the other run time loading flags,
11340 # -berok will link without error, but may produce a broken library.
11341 no_undefined_flag=' ${wl}-bernotok'
11342 allow_undefined_flag=' ${wl}-berok'
11343 if test "$with_gnu_ld" = yes; then
11344 # We only use this code for GNU lds that support --whole-archive.
11345 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11347 # Exported symbols can be pulled into shared objects from archives
11348 whole_archive_flag_spec='$convenience'
11350 archive_cmds_need_lc=yes
11351 # This is similar to how AIX traditionally builds its shared libraries.
11352 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'
11360 # see comment about AmigaOS4 .so support
11361 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11362 archive_expsym_cmds=''
11365 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)'
11366 hardcode_libdir_flag_spec='-L$libdir'
11367 hardcode_minus_L=yes
11373 export_dynamic_flag_spec=-rdynamic
11376 cygwin* | mingw* | pw32* | cegcc*)
11377 # When not using gcc, we currently assume that we are using
11378 # Microsoft Visual C++.
11379 # hardcode_libdir_flag_spec is actually meaningless, as there is
11380 # no search path for DLLs.
11381 case $cc_basename in
11384 hardcode_libdir_flag_spec=' '
11385 allow_undefined_flag=unsupported
11386 always_export_symbols=yes
11388 # Tell ltmain to make .lib files, not .a files.
11390 # Tell ltmain to make .dll files, not .so files.
11392 # FIXME: Setting linknames here is a bad hack.
11393 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11394 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11395 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11397 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11399 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11401 # The linker will not automatically build a static lib if we build a DLL.
11402 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11403 enable_shared_with_static_runtimes=yes
11404 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11405 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11407 old_postinstall_cmds='chmod 644 $oldlib'
11408 postlink_cmds='lt_outputfile="@OUTPUT@"~
11409 lt_tool_outputfile="@TOOL_OUTPUT@"~
11410 case $lt_outputfile in
11413 lt_outputfile="$lt_outputfile.exe"
11414 lt_tool_outputfile="$lt_tool_outputfile.exe"
11417 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11418 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11419 $RM "$lt_outputfile.manifest";
11423 # Assume MSVC wrapper
11424 hardcode_libdir_flag_spec=' '
11425 allow_undefined_flag=unsupported
11426 # Tell ltmain to make .lib files, not .a files.
11428 # Tell ltmain to make .dll files, not .so files.
11430 # FIXME: Setting linknames here is a bad hack.
11431 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11432 # The linker will automatically build a .lib file if we build a DLL.
11433 old_archive_from_new_cmds='true'
11434 # FIXME: Should let the user specify the lib program.
11435 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11436 enable_shared_with_static_runtimes=yes
11441 darwin* | rhapsody*)
11444 archive_cmds_need_lc=no
11446 hardcode_automatic=yes
11447 hardcode_shlibpath_var=unsupported
11448 if test "$lt_cv_ld_force_load" = "yes"; then
11449 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\"`'
11452 whole_archive_flag_spec=''
11454 link_all_deplibs=yes
11455 allow_undefined_flag="$_lt_dar_allow_undefined"
11456 case $cc_basename in
11457 ifort*) _lt_dar_can_shared=yes ;;
11458 *) _lt_dar_can_shared=$GCC ;;
11460 if test "$_lt_dar_can_shared" = "yes"; then
11461 output_verbose_link_cmd=func_echo_all
11462 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11463 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11464 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}"
11465 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}"
11474 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11475 hardcode_libdir_flag_spec='-L$libdir'
11476 hardcode_shlibpath_var=no
11479 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11480 # support. Future versions do this automatically, but an explicit c++rt0.o
11481 # does not break anything, and helps significantly (at the cost of a little
11484 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11485 hardcode_libdir_flag_spec='-R$libdir'
11486 hardcode_direct=yes
11487 hardcode_shlibpath_var=no
11490 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11492 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11493 hardcode_direct=yes
11494 hardcode_minus_L=yes
11495 hardcode_shlibpath_var=no
11498 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11499 freebsd* | dragonfly*)
11500 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11501 hardcode_libdir_flag_spec='-R$libdir'
11502 hardcode_direct=yes
11503 hardcode_shlibpath_var=no
11507 if test "$GCC" = yes; then
11508 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'
11510 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'
11512 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11513 hardcode_libdir_separator=:
11514 hardcode_direct=yes
11516 # hardcode_minus_L: Not really in the search PATH,
11517 # but as the default location of the library.
11518 hardcode_minus_L=yes
11519 export_dynamic_flag_spec='${wl}-E'
11523 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11524 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11526 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11528 if test "$with_gnu_ld" = no; then
11529 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11530 hardcode_libdir_separator=:
11531 hardcode_direct=yes
11532 hardcode_direct_absolute=yes
11533 export_dynamic_flag_spec='${wl}-E'
11534 # hardcode_minus_L: Not really in the search PATH,
11535 # but as the default location of the library.
11536 hardcode_minus_L=yes
11541 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11544 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11547 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11550 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11556 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11559 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11563 # Older versions of the 11.00 compiler do not understand -b yet
11564 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11566 $as_echo_n "checking if $CC understands -b... " >&6; }
11567 if ${lt_cv_prog_compiler__b+:} false; then :
11568 $as_echo_n "(cached) " >&6
11570 lt_cv_prog_compiler__b=no
11571 save_LDFLAGS="$LDFLAGS"
11572 LDFLAGS="$LDFLAGS -b"
11573 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11574 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11575 # The linker can only warn and ignore the option if not recognized
11576 # So say no if there are warnings
11577 if test -s conftest.err; then
11578 # Append any errors to the config.log.
11579 cat conftest.err 1>&5
11580 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11581 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11582 if diff conftest.exp conftest.er2 >/dev/null; then
11583 lt_cv_prog_compiler__b=yes
11586 lt_cv_prog_compiler__b=yes
11590 LDFLAGS="$save_LDFLAGS"
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11594 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11596 if test x"$lt_cv_prog_compiler__b" = xyes; then
11597 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11599 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11605 if test "$with_gnu_ld" = no; then
11606 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11607 hardcode_libdir_separator=:
11612 hardcode_shlibpath_var=no
11615 hardcode_direct=yes
11616 hardcode_direct_absolute=yes
11617 export_dynamic_flag_spec='${wl}-E'
11619 # hardcode_minus_L: Not really in the search PATH,
11620 # but as the default location of the library.
11621 hardcode_minus_L=yes
11627 irix5* | irix6* | nonstopux*)
11628 if test "$GCC" = yes; then
11629 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'
11630 # Try to use the -exported_symbol ld option, if it does not
11631 # work, assume that -exports_file does not work either and
11632 # implicitly export all symbols.
11633 # This should be the same for all languages, so no per-tag cache variable.
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11635 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11636 if ${lt_cv_irix_exported_symbol+:} false; then :
11637 $as_echo_n "(cached) " >&6
11639 save_LDFLAGS="$LDFLAGS"
11640 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11642 /* end confdefs.h. */
11643 int foo (void) { return 0; }
11645 if ac_fn_c_try_link "$LINENO"; then :
11646 lt_cv_irix_exported_symbol=yes
11648 lt_cv_irix_exported_symbol=no
11650 rm -f core conftest.err conftest.$ac_objext \
11651 conftest$ac_exeext conftest.$ac_ext
11652 LDFLAGS="$save_LDFLAGS"
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11655 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11656 if test "$lt_cv_irix_exported_symbol" = yes; then
11657 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'
11660 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'
11661 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'
11663 archive_cmds_need_lc='no'
11664 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11665 hardcode_libdir_separator=:
11667 link_all_deplibs=yes
11671 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11672 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11674 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11676 hardcode_libdir_flag_spec='-R$libdir'
11677 hardcode_direct=yes
11678 hardcode_shlibpath_var=no
11682 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11683 hardcode_direct=yes
11684 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11685 hardcode_libdir_separator=:
11686 hardcode_shlibpath_var=no
11693 if test -f /usr/libexec/ld.so; then
11694 hardcode_direct=yes
11695 hardcode_shlibpath_var=no
11696 hardcode_direct_absolute=yes
11697 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11698 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11699 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11700 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11701 export_dynamic_flag_spec='${wl}-E'
11704 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11705 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11706 hardcode_libdir_flag_spec='-R$libdir'
11709 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11710 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11720 hardcode_libdir_flag_spec='-L$libdir'
11721 hardcode_minus_L=yes
11722 allow_undefined_flag=unsupported
11723 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'
11724 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11728 if test "$GCC" = yes; then
11729 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11730 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'
11732 allow_undefined_flag=' -expect_unresolved \*'
11733 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'
11735 archive_cmds_need_lc='no'
11736 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11737 hardcode_libdir_separator=:
11740 osf4* | osf5*) # as osf3* with the addition of -msym flag
11741 if test "$GCC" = yes; then
11742 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11743 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'
11744 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11746 allow_undefined_flag=' -expect_unresolved \*'
11747 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'
11748 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~
11749 $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'
11751 # Both c and cxx compiler support -rpath directly
11752 hardcode_libdir_flag_spec='-rpath $libdir'
11754 archive_cmds_need_lc='no'
11755 hardcode_libdir_separator=:
11759 no_undefined_flag=' -z defs'
11760 if test "$GCC" = yes; then
11762 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11763 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11764 $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'
11766 case `$CC -V 2>&1` in
11769 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11770 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11771 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11775 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11776 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11777 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11781 hardcode_libdir_flag_spec='-R$libdir'
11782 hardcode_shlibpath_var=no
11784 solaris2.[0-5] | solaris2.[0-5].*) ;;
11786 # The compiler driver will combine and reorder linker options,
11787 # but understands `-z linker_flag'. GCC discards it without `$wl',
11788 # but is careful enough not to reorder.
11789 # Supported since Solaris 2.6 (maybe 2.5.1?)
11790 if test "$GCC" = yes; then
11791 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11793 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11797 link_all_deplibs=yes
11801 if test "x$host_vendor" = xsequent; then
11802 # Use $CC to link under sequent, because it throws in some extra .o
11803 # files that make .init and .fini sections work.
11804 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11806 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11808 hardcode_libdir_flag_spec='-L$libdir'
11809 hardcode_direct=yes
11810 hardcode_minus_L=yes
11811 hardcode_shlibpath_var=no
11815 case $host_vendor in
11817 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11818 hardcode_direct=yes # is this really true???
11821 ## LD is ld it makes a PLAMLIB
11822 ## CC just makes a GrossModule.
11823 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11824 reload_cmds='$CC -r -o $output$reload_objs'
11828 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11829 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11832 runpath_var='LD_RUN_PATH'
11833 hardcode_shlibpath_var=no
11837 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11838 hardcode_shlibpath_var=no
11839 export_dynamic_flag_spec='-Bexport'
11843 if test -d /usr/nec; then
11844 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11845 hardcode_shlibpath_var=no
11846 runpath_var=LD_RUN_PATH
11847 hardcode_runpath_var=yes
11852 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11853 no_undefined_flag='${wl}-z,text'
11854 archive_cmds_need_lc=no
11855 hardcode_shlibpath_var=no
11856 runpath_var='LD_RUN_PATH'
11858 if test "$GCC" = yes; then
11859 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11860 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11862 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11863 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11867 sysv5* | sco3.2v5* | sco5v6*)
11868 # Note: We can NOT use -z defs as we might desire, because we do not
11869 # link with -lc, and that would cause any symbols used from libc to
11870 # always be unresolved, which means just about no library would
11871 # ever link correctly. If we're not using GNU ld we use -z text
11872 # though, which does catch some bad symbols but isn't as heavy-handed
11874 no_undefined_flag='${wl}-z,text'
11875 allow_undefined_flag='${wl}-z,nodefs'
11876 archive_cmds_need_lc=no
11877 hardcode_shlibpath_var=no
11878 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11879 hardcode_libdir_separator=':'
11880 link_all_deplibs=yes
11881 export_dynamic_flag_spec='${wl}-Bexport'
11882 runpath_var='LD_RUN_PATH'
11884 if test "$GCC" = yes; then
11885 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11886 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11888 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11889 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11894 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11895 hardcode_libdir_flag_spec='-L$libdir'
11896 hardcode_shlibpath_var=no
11904 if test x$host_vendor = xsni; then
11906 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11907 export_dynamic_flag_spec='${wl}-Blargedynsym'
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11914 $as_echo "$ld_shlibs" >&6; }
11915 test "$ld_shlibs" = no && can_build_shared=no
11917 with_gnu_ld=$with_gnu_ld
11934 # Do we need to explicitly link libc?
11936 case "x$archive_cmds_need_lc" in
11938 # Assume -lc should be added
11939 archive_cmds_need_lc=yes
11941 if test "$enable_shared" = yes && test "$GCC" = yes; then
11942 case $archive_cmds in
11944 # FIXME: we may have to deal with multi-command sequences.
11947 # Test whether the compiler implicitly links with -lc since on some
11948 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11949 # to ld, don't add -lc before -lgcc.
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11951 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11952 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11953 $as_echo_n "(cached) " >&6
11956 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11958 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11959 (eval $ac_compile) 2>&5
11961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11962 test $ac_status = 0; } 2>conftest.err; then
11965 libobjs=conftest.$ac_objext
11967 wl=$lt_prog_compiler_wl
11968 pic_flag=$lt_prog_compiler_pic
11974 lt_save_allow_undefined_flag=$allow_undefined_flag
11975 allow_undefined_flag=
11976 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11977 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11980 test $ac_status = 0; }
11982 lt_cv_archive_cmds_need_lc=no
11984 lt_cv_archive_cmds_need_lc=yes
11986 allow_undefined_flag=$lt_save_allow_undefined_flag
11988 cat conftest.err 1>&5
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11994 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11995 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12154 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12156 if test "$GCC" = yes; then
12158 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12159 *) lt_awk_arg="/^libraries:/" ;;
12162 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12163 *) lt_sed_strip_eq="s,=/,/,g" ;;
12165 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12166 case $lt_search_path_spec in
12168 # if the path contains ";" then we assume it to be the separator
12169 # otherwise default to the standard path separator (i.e. ":") - it is
12170 # assumed that no part of a normal pathname contains ";" but that should
12171 # okay in the real world where ";" in dirpaths is itself problematic.
12172 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12175 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12178 # Ok, now we have the path, separated by spaces, we can step through it
12179 # and add multilib dir if necessary.
12180 lt_tmp_lt_search_path_spec=
12181 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12182 for lt_sys_path in $lt_search_path_spec; do
12183 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12184 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12186 test -d "$lt_sys_path" && \
12187 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12190 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12191 BEGIN {RS=" "; FS="/|\n";} {
12194 for (lt_i = NF; lt_i > 0; lt_i--) {
12195 if ($lt_i != "" && $lt_i != ".") {
12196 if ($lt_i == "..") {
12199 if (lt_count == 0) {
12200 lt_foo="/" $lt_i lt_foo;
12207 if (lt_foo != "") { lt_freq[lt_foo]++; }
12208 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12210 # AWK program above erroneously prepends '/' to C:/dos/paths
12213 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12214 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12216 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12218 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12220 library_names_spec=
12221 libname_spec='lib$name'
12225 postuninstall_cmds=
12229 shlibpath_overrides_runpath=unknown
12231 dynamic_linker="$host_os ld.so"
12232 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12233 need_lib_prefix=unknown
12234 hardcode_into_libs=no
12236 # when you set need_version to no, make sure it does not cause -set_version
12237 # flags to be left without arguments
12238 need_version=unknown
12242 version_type=linux # correct to gnu/linux during the next big refactor
12243 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12244 shlibpath_var=LIBPATH
12246 # AIX 3 has no versioning support, so we append a major version to the name.
12247 soname_spec='${libname}${release}${shared_ext}$major'
12251 version_type=linux # correct to gnu/linux during the next big refactor
12254 hardcode_into_libs=yes
12255 if test "$host_cpu" = ia64; then
12256 # AIX 5 supports IA64
12257 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12258 shlibpath_var=LD_LIBRARY_PATH
12260 # With GCC up to 2.95.x, collect2 would create an import file
12261 # for dependence libraries. The import file would start with
12262 # the line `#! .'. This would cause the generated library to
12263 # depend on `.', always an invalid library. This was fixed in
12264 # development snapshots of GCC prior to 3.0.
12266 aix4 | aix4.[01] | aix4.[01].*)
12267 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12269 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12272 can_build_shared=no
12276 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12277 # soname into executable. Probably we can add versioning support to
12278 # collect2, so additional links can be useful in future.
12279 if test "$aix_use_runtimelinking" = yes; then
12280 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12281 # instead of lib<name>.a to let people know that these are not
12282 # typical AIX shared libraries.
12283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12285 # We preserve .a as extension for shared libraries through AIX4.2
12286 # and later when we are not doing run time linking.
12287 library_names_spec='${libname}${release}.a $libname.a'
12288 soname_spec='${libname}${release}${shared_ext}$major'
12290 shlibpath_var=LIBPATH
12297 # Since July 2007 AmigaOS4 officially supports .so libraries.
12298 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12302 library_names_spec='$libname.ixlibrary $libname.a'
12303 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12304 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'
12310 library_names_spec='${libname}${shared_ext}'
12311 dynamic_linker="$host_os ld.so"
12312 shlibpath_var=LIBRARY_PATH
12316 version_type=linux # correct to gnu/linux during the next big refactor
12318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12319 soname_spec='${libname}${release}${shared_ext}$major'
12320 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12321 shlibpath_var=LD_LIBRARY_PATH
12322 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12323 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12324 # the default ld.so.conf also contains /usr/contrib/lib and
12325 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12326 # libtool to hard-code these into programs
12329 cygwin* | mingw* | pw32* | cegcc*)
12330 version_type=windows
12335 case $GCC,$cc_basename in
12338 library_names_spec='$libname.dll.a'
12339 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12340 postinstall_cmds='base_file=`basename \${file}`~
12341 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12342 dldir=$destdir/`dirname \$dlpath`~
12343 test -d \$dldir || mkdir -p \$dldir~
12344 $install_prog $dir/$dlname \$dldir/$dlname~
12345 chmod a+x \$dldir/$dlname~
12346 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12347 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12349 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12350 dlpath=$dir/\$dldll~
12352 shlibpath_overrides_runpath=yes
12356 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12357 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12359 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12362 # MinGW DLLs use traditional 'lib' prefix
12363 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12366 # pw32 DLLs use 'pw' prefix rather than 'lib'
12367 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12370 dynamic_linker='Win32 ld.exe'
12375 libname_spec='$name'
12376 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12377 library_names_spec='${libname}.dll.lib'
12381 sys_lib_search_path_spec=
12384 for lt_path in $LIB
12387 # Let DOS variable expansion print the short 8.3 style file name.
12388 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12389 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12392 # Convert to MSYS style.
12393 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12396 # Convert to unix form, then to dos form, then back to unix form
12397 # but this time dos style (no spaces!) so that the unix form looks
12398 # like /cygdrive/c/PROGRA~1:/cygdr...
12399 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12400 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12401 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12404 sys_lib_search_path_spec="$LIB"
12405 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12406 # It is most probably a Windows format PATH.
12407 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12409 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12411 # FIXME: find the short name or the path components, as spaces are
12412 # common. (e.g. "Program Files" -> "PROGRA~1")
12416 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12417 postinstall_cmds='base_file=`basename \${file}`~
12418 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12419 dldir=$destdir/`dirname \$dlpath`~
12420 test -d \$dldir || mkdir -p \$dldir~
12421 $install_prog $dir/$dlname \$dldir/$dlname'
12422 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12423 dlpath=$dir/\$dldll~
12425 shlibpath_overrides_runpath=yes
12426 dynamic_linker='Win32 link.exe'
12430 # Assume MSVC wrapper
12431 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12432 dynamic_linker='Win32 ld.exe'
12435 # FIXME: first we should search . and the directory the executable is in
12439 darwin* | rhapsody*)
12440 dynamic_linker="$host_os dyld"
12441 version_type=darwin
12444 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12445 soname_spec='${libname}${release}${major}$shared_ext'
12446 shlibpath_overrides_runpath=yes
12447 shlibpath_var=DYLD_LIBRARY_PATH
12448 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12450 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12451 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12455 version_type=linux # correct to gnu/linux during the next big refactor
12458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12459 soname_spec='${libname}${release}${shared_ext}$major'
12460 shlibpath_var=LD_LIBRARY_PATH
12463 freebsd* | dragonfly*)
12464 # DragonFly does not have aout. When/if they implement a new
12465 # versioning mechanism, adjust this.
12466 if test -x /usr/bin/objformat; then
12467 objformat=`/usr/bin/objformat`
12470 freebsd[23].*) objformat=aout ;;
12471 *) objformat=elf ;;
12474 version_type=freebsd-$objformat
12475 case $version_type in
12477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12482 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12486 shlibpath_var=LD_LIBRARY_PATH
12489 shlibpath_overrides_runpath=yes
12491 freebsd3.[01]* | freebsdelf3.[01]*)
12492 shlibpath_overrides_runpath=yes
12493 hardcode_into_libs=yes
12495 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12496 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12497 shlibpath_overrides_runpath=no
12498 hardcode_into_libs=yes
12500 *) # from 4.6 on, and DragonFly
12501 shlibpath_overrides_runpath=yes
12502 hardcode_into_libs=yes
12508 version_type=linux # correct to gnu/linux during the next big refactor
12511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12512 soname_spec='${libname}${release}${shared_ext}$major'
12513 shlibpath_var=LD_LIBRARY_PATH
12514 shlibpath_overrides_runpath=no
12515 hardcode_into_libs=yes
12519 version_type=linux # correct to gnu/linux during the next big refactor
12522 dynamic_linker="$host_os runtime_loader"
12523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12524 soname_spec='${libname}${release}${shared_ext}$major'
12525 shlibpath_var=LIBRARY_PATH
12526 shlibpath_overrides_runpath=yes
12527 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12528 hardcode_into_libs=yes
12531 hpux9* | hpux10* | hpux11*)
12532 # Give a soname corresponding to the major version so that dld.sl refuses to
12533 # link against other versions.
12540 hardcode_into_libs=yes
12541 dynamic_linker="$host_os dld.so"
12542 shlibpath_var=LD_LIBRARY_PATH
12543 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12545 soname_spec='${libname}${release}${shared_ext}$major'
12546 if test "X$HPUX_IA64_MODE" = X32; then
12547 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12549 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12551 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12555 hardcode_into_libs=yes
12556 dynamic_linker="$host_os dld.sl"
12557 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12558 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12560 soname_spec='${libname}${release}${shared_ext}$major'
12561 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12562 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12566 dynamic_linker="$host_os dld.sl"
12567 shlibpath_var=SHLIB_PATH
12568 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12570 soname_spec='${libname}${release}${shared_ext}$major'
12573 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12574 postinstall_cmds='chmod 555 $lib'
12575 # or fails outright, so override atomically:
12576 install_override_mode=555
12580 version_type=linux # correct to gnu/linux during the next big refactor
12583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12584 soname_spec='${libname}${release}${shared_ext}$major'
12585 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12586 shlibpath_var=LD_LIBRARY_PATH
12587 shlibpath_overrides_runpath=no
12588 hardcode_into_libs=yes
12591 irix5* | irix6* | nonstopux*)
12593 nonstopux*) version_type=nonstopux ;;
12595 if test "$lt_cv_prog_gnu_ld" = yes; then
12596 version_type=linux # correct to gnu/linux during the next big refactor
12603 soname_spec='${libname}${release}${shared_ext}$major'
12604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12606 irix5* | nonstopux*)
12607 libsuff= shlibsuff=
12610 case $LD in # libtool.m4 will add one of these switches to LD
12611 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12612 libsuff= shlibsuff= libmagic=32-bit;;
12613 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12614 libsuff=32 shlibsuff=N32 libmagic=N32;;
12615 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12616 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12617 *) libsuff= shlibsuff= libmagic=never-match;;
12621 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12622 shlibpath_overrides_runpath=no
12623 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12624 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12625 hardcode_into_libs=yes
12628 # No shared lib support for Linux oldld, aout, or coff.
12629 linux*oldld* | linux*aout* | linux*coff*)
12633 # This must be glibc/ELF.
12634 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12635 version_type=linux # correct to gnu/linux during the next big refactor
12638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12639 soname_spec='${libname}${release}${shared_ext}$major'
12640 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12641 shlibpath_var=LD_LIBRARY_PATH
12642 shlibpath_overrides_runpath=no
12644 # Some binutils ld are patched to set DT_RUNPATH
12645 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12646 $as_echo_n "(cached) " >&6
12648 lt_cv_shlibpath_overrides_runpath=no
12649 save_LDFLAGS=$LDFLAGS
12650 save_libdir=$libdir
12651 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12652 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12654 /* end confdefs.h. */
12664 if ac_fn_c_try_link "$LINENO"; then :
12665 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12666 lt_cv_shlibpath_overrides_runpath=yes
12669 rm -f core conftest.err conftest.$ac_objext \
12670 conftest$ac_exeext conftest.$ac_ext
12671 LDFLAGS=$save_LDFLAGS
12672 libdir=$save_libdir
12676 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12678 # This implies no fast_install, which is unacceptable.
12679 # Some rework will be needed to allow for fast_install
12680 # before this can be enabled.
12681 hardcode_into_libs=yes
12683 # Append ld.so.conf contents to the search path
12684 if test -f /etc/ld.so.conf; then
12685 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' ' '`
12686 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12689 # We used to test for /lib/ld.so.1 and disable shared libraries on
12690 # powerpc, because MkLinux only supported shared libraries with the
12691 # GNU dynamic linker. Since this was broken with cross compilers,
12692 # most powerpc-linux boxes support dynamic linking these days and
12693 # people can always --disable-shared, the test was removed, and we
12694 # assume the GNU/Linux dynamic linker is in use.
12695 dynamic_linker='GNU/Linux ld.so'
12702 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12704 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12705 dynamic_linker='NetBSD (a.out) ld.so'
12707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12708 soname_spec='${libname}${release}${shared_ext}$major'
12709 dynamic_linker='NetBSD ld.elf_so'
12711 shlibpath_var=LD_LIBRARY_PATH
12712 shlibpath_overrides_runpath=yes
12713 hardcode_into_libs=yes
12717 version_type=linux # correct to gnu/linux during the next big refactor
12718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12719 shlibpath_var=LD_LIBRARY_PATH
12720 shlibpath_overrides_runpath=yes
12727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12728 soname_spec='${libname}${release}${shared_ext}$major'
12729 shlibpath_var=LD_LIBRARY_PATH
12730 shlibpath_overrides_runpath=no
12731 hardcode_into_libs=yes
12732 dynamic_linker='ldqnx.so'
12737 sys_lib_dlsearch_path_spec="/usr/lib"
12739 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12741 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12742 *) need_version=no ;;
12744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12745 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12746 shlibpath_var=LD_LIBRARY_PATH
12747 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12749 openbsd2.[89] | openbsd2.[89].*)
12750 shlibpath_overrides_runpath=no
12753 shlibpath_overrides_runpath=yes
12757 shlibpath_overrides_runpath=yes
12762 libname_spec='$name'
12765 library_names_spec='$libname${shared_ext} $libname.a'
12766 dynamic_linker='OS/2 ld.exe'
12767 shlibpath_var=LIBPATH
12770 osf3* | osf4* | osf5*)
12774 soname_spec='${libname}${release}${shared_ext}$major'
12775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12776 shlibpath_var=LD_LIBRARY_PATH
12777 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12778 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12786 version_type=linux # correct to gnu/linux during the next big refactor
12789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12790 soname_spec='${libname}${release}${shared_ext}$major'
12791 shlibpath_var=LD_LIBRARY_PATH
12792 shlibpath_overrides_runpath=yes
12793 hardcode_into_libs=yes
12794 # ldd complains unless libraries are executable
12795 postinstall_cmds='chmod +x $lib'
12800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12801 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12802 shlibpath_var=LD_LIBRARY_PATH
12803 shlibpath_overrides_runpath=yes
12804 if test "$with_gnu_ld" = yes; then
12811 version_type=linux # correct to gnu/linux during the next big refactor
12812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12813 soname_spec='${libname}${release}${shared_ext}$major'
12814 shlibpath_var=LD_LIBRARY_PATH
12815 case $host_vendor in
12817 shlibpath_overrides_runpath=no
12819 runpath_var=LD_RUN_PATH
12827 shlibpath_overrides_runpath=no
12828 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12834 if test -d /usr/nec ;then
12835 version_type=linux # correct to gnu/linux during the next big refactor
12836 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12837 soname_spec='$libname${shared_ext}.$major'
12838 shlibpath_var=LD_LIBRARY_PATH
12842 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12843 version_type=freebsd-elf
12846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12847 soname_spec='${libname}${release}${shared_ext}$major'
12848 shlibpath_var=LD_LIBRARY_PATH
12849 shlibpath_overrides_runpath=yes
12850 hardcode_into_libs=yes
12851 if test "$with_gnu_ld" = yes; then
12852 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12854 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12857 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12861 sys_lib_dlsearch_path_spec='/usr/lib'
12865 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12866 version_type=linux # correct to gnu/linux during the next big refactor
12869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12870 shlibpath_var=LD_LIBRARY_PATH
12871 shlibpath_overrides_runpath=no
12872 hardcode_into_libs=yes
12876 version_type=linux # correct to gnu/linux during the next big refactor
12877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12878 soname_spec='${libname}${release}${shared_ext}$major'
12879 shlibpath_var=LD_LIBRARY_PATH
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12887 $as_echo "$dynamic_linker" >&6; }
12888 test "$dynamic_linker" = no && can_build_shared=no
12890 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12891 if test "$GCC" = yes; then
12892 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12895 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12896 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12898 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12899 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12994 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12996 if test -n "$hardcode_libdir_flag_spec" ||
12997 test -n "$runpath_var" ||
12998 test "X$hardcode_automatic" = "Xyes" ; then
13000 # We can hardcode non-existent directories.
13001 if test "$hardcode_direct" != no &&
13002 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13003 # have to relink, otherwise we might link with an installed library
13004 # when we should be linking with a yet-to-be-installed one
13005 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13006 test "$hardcode_minus_L" != no; then
13007 # Linking always hardcodes the temporary library directory.
13008 hardcode_action=relink
13010 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13011 hardcode_action=immediate
13014 # We cannot hardcode anything, or else we can only hardcode existing
13016 hardcode_action=unsupported
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13019 $as_echo "$hardcode_action" >&6; }
13021 if test "$hardcode_action" = relink ||
13022 test "$inherit_rpath" = yes; then
13023 # Fast installation is not supported
13024 enable_fast_install=no
13025 elif test "$shlibpath_overrides_runpath" = yes ||
13026 test "$enable_shared" = no; then
13027 # Fast installation is not necessary
13028 enable_fast_install=needless
13036 if test "x$enable_dlopen" != xyes; then
13037 enable_dlopen=unknown
13038 enable_dlopen_self=unknown
13039 enable_dlopen_self_static=unknown
13046 lt_cv_dlopen="load_add_on"
13048 lt_cv_dlopen_self=yes
13051 mingw* | pw32* | cegcc*)
13052 lt_cv_dlopen="LoadLibrary"
13057 lt_cv_dlopen="dlopen"
13062 # if libdl is installed we need to link against it
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13064 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13065 if ${ac_cv_lib_dl_dlopen+:} false; then :
13066 $as_echo_n "(cached) " >&6
13068 ac_check_lib_save_LIBS=$LIBS
13070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13071 /* end confdefs.h. */
13073 /* Override any GCC internal prototype to avoid an error.
13074 Use char because int might match the return type of a GCC
13075 builtin and then its argument prototype would still apply. */
13088 if ac_fn_c_try_link "$LINENO"; then :
13089 ac_cv_lib_dl_dlopen=yes
13091 ac_cv_lib_dl_dlopen=no
13093 rm -f core conftest.err conftest.$ac_objext \
13094 conftest$ac_exeext conftest.$ac_ext
13095 LIBS=$ac_check_lib_save_LIBS
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13098 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13099 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13100 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13103 lt_cv_dlopen="dyld"
13105 lt_cv_dlopen_self=yes
13112 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13113 if test "x$ac_cv_func_shl_load" = xyes; then :
13114 lt_cv_dlopen="shl_load"
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13117 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13118 if ${ac_cv_lib_dld_shl_load+:} false; then :
13119 $as_echo_n "(cached) " >&6
13121 ac_check_lib_save_LIBS=$LIBS
13123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13124 /* end confdefs.h. */
13126 /* Override any GCC internal prototype to avoid an error.
13127 Use char because int might match the return type of a GCC
13128 builtin and then its argument prototype would still apply. */
13136 return shl_load ();
13141 if ac_fn_c_try_link "$LINENO"; then :
13142 ac_cv_lib_dld_shl_load=yes
13144 ac_cv_lib_dld_shl_load=no
13146 rm -f core conftest.err conftest.$ac_objext \
13147 conftest$ac_exeext conftest.$ac_ext
13148 LIBS=$ac_check_lib_save_LIBS
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13151 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13152 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13153 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13155 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13156 if test "x$ac_cv_func_dlopen" = xyes; then :
13157 lt_cv_dlopen="dlopen"
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13160 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13161 if ${ac_cv_lib_dl_dlopen+:} false; then :
13162 $as_echo_n "(cached) " >&6
13164 ac_check_lib_save_LIBS=$LIBS
13166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13167 /* end confdefs.h. */
13169 /* Override any GCC internal prototype to avoid an error.
13170 Use char because int might match the return type of a GCC
13171 builtin and then its argument prototype would still apply. */
13184 if ac_fn_c_try_link "$LINENO"; then :
13185 ac_cv_lib_dl_dlopen=yes
13187 ac_cv_lib_dl_dlopen=no
13189 rm -f core conftest.err conftest.$ac_objext \
13190 conftest$ac_exeext conftest.$ac_ext
13191 LIBS=$ac_check_lib_save_LIBS
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13194 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13195 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13196 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13199 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13200 if ${ac_cv_lib_svld_dlopen+:} false; then :
13201 $as_echo_n "(cached) " >&6
13203 ac_check_lib_save_LIBS=$LIBS
13204 LIBS="-lsvld $LIBS"
13205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13206 /* end confdefs.h. */
13208 /* Override any GCC internal prototype to avoid an error.
13209 Use char because int might match the return type of a GCC
13210 builtin and then its argument prototype would still apply. */
13223 if ac_fn_c_try_link "$LINENO"; then :
13224 ac_cv_lib_svld_dlopen=yes
13226 ac_cv_lib_svld_dlopen=no
13228 rm -f core conftest.err conftest.$ac_objext \
13229 conftest$ac_exeext conftest.$ac_ext
13230 LIBS=$ac_check_lib_save_LIBS
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13233 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13234 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13235 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13238 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13239 if ${ac_cv_lib_dld_dld_link+:} false; then :
13240 $as_echo_n "(cached) " >&6
13242 ac_check_lib_save_LIBS=$LIBS
13244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13245 /* end confdefs.h. */
13247 /* Override any GCC internal prototype to avoid an error.
13248 Use char because int might match the return type of a GCC
13249 builtin and then its argument prototype would still apply. */
13257 return dld_link ();
13262 if ac_fn_c_try_link "$LINENO"; then :
13263 ac_cv_lib_dld_dld_link=yes
13265 ac_cv_lib_dld_dld_link=no
13267 rm -f core conftest.err conftest.$ac_objext \
13268 conftest$ac_exeext conftest.$ac_ext
13269 LIBS=$ac_check_lib_save_LIBS
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13272 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13273 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13274 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13295 if test "x$lt_cv_dlopen" != xno; then
13301 case $lt_cv_dlopen in
13303 save_CPPFLAGS="$CPPFLAGS"
13304 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13306 save_LDFLAGS="$LDFLAGS"
13307 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13310 LIBS="$lt_cv_dlopen_libs $LIBS"
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13313 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13314 if ${lt_cv_dlopen_self+:} false; then :
13315 $as_echo_n "(cached) " >&6
13317 if test "$cross_compiling" = yes; then :
13318 lt_cv_dlopen_self=cross
13320 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13321 lt_status=$lt_dlunknown
13322 cat > conftest.$ac_ext <<_LT_EOF
13323 #line $LINENO "configure"
13324 #include "confdefs.h"
13333 # define LT_DLGLOBAL RTLD_GLOBAL
13336 # define LT_DLGLOBAL DL_GLOBAL
13338 # define LT_DLGLOBAL 0
13342 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13343 find out it does not work in some platform. */
13344 #ifndef LT_DLLAZY_OR_NOW
13346 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13349 # define LT_DLLAZY_OR_NOW DL_LAZY
13352 # define LT_DLLAZY_OR_NOW RTLD_NOW
13355 # define LT_DLLAZY_OR_NOW DL_NOW
13357 # define LT_DLLAZY_OR_NOW 0
13364 /* When -fvisbility=hidden is used, assume the code has been annotated
13365 correspondingly for the symbols needed. */
13366 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13367 int fnord () __attribute__((visibility("default")));
13370 int fnord () { return 42; }
13373 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13374 int status = $lt_dlunknown;
13378 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13381 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13382 else puts (dlerror ());
13384 /* dlclose (self); */
13392 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13393 (eval $ac_link) 2>&5
13395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13396 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13397 (./conftest; exit; ) >&5 2>/dev/null
13399 case x$lt_status in
13400 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13401 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13402 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13405 # compilation failed
13406 lt_cv_dlopen_self=no
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13414 $as_echo "$lt_cv_dlopen_self" >&6; }
13416 if test "x$lt_cv_dlopen_self" = xyes; then
13417 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13419 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13420 if ${lt_cv_dlopen_self_static+:} false; then :
13421 $as_echo_n "(cached) " >&6
13423 if test "$cross_compiling" = yes; then :
13424 lt_cv_dlopen_self_static=cross
13426 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13427 lt_status=$lt_dlunknown
13428 cat > conftest.$ac_ext <<_LT_EOF
13429 #line $LINENO "configure"
13430 #include "confdefs.h"
13439 # define LT_DLGLOBAL RTLD_GLOBAL
13442 # define LT_DLGLOBAL DL_GLOBAL
13444 # define LT_DLGLOBAL 0
13448 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13449 find out it does not work in some platform. */
13450 #ifndef LT_DLLAZY_OR_NOW
13452 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13455 # define LT_DLLAZY_OR_NOW DL_LAZY
13458 # define LT_DLLAZY_OR_NOW RTLD_NOW
13461 # define LT_DLLAZY_OR_NOW DL_NOW
13463 # define LT_DLLAZY_OR_NOW 0
13470 /* When -fvisbility=hidden is used, assume the code has been annotated
13471 correspondingly for the symbols needed. */
13472 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13473 int fnord () __attribute__((visibility("default")));
13476 int fnord () { return 42; }
13479 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13480 int status = $lt_dlunknown;
13484 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13487 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13488 else puts (dlerror ());
13490 /* dlclose (self); */
13498 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13499 (eval $ac_link) 2>&5
13501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13502 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13503 (./conftest; exit; ) >&5 2>/dev/null
13505 case x$lt_status in
13506 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13507 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13508 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13511 # compilation failed
13512 lt_cv_dlopen_self_static=no
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13520 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13523 CPPFLAGS="$save_CPPFLAGS"
13524 LDFLAGS="$save_LDFLAGS"
13529 case $lt_cv_dlopen_self in
13530 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13531 *) enable_dlopen_self=unknown ;;
13534 case $lt_cv_dlopen_self_static in
13535 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13536 *) enable_dlopen_self_static=unknown ;;
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13559 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13560 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13561 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13562 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13564 $as_echo "yes" >&6; }
13566 # FIXME - insert some real tests, host_os isn't really good enough
13569 if test -n "$STRIP" ; then
13570 striplib="$STRIP -x"
13571 old_striplib="$STRIP -S"
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13573 $as_echo "yes" >&6; }
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13576 $as_echo "no" >&6; }
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13581 $as_echo "no" >&6; }
13597 # Report which library types will actually be built
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13599 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13601 $as_echo "$can_build_shared" >&6; }
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13604 $as_echo_n "checking whether to build shared libraries... " >&6; }
13605 test "$can_build_shared" = "no" && enable_shared=no
13607 # On AIX, shared libraries and static libraries use the same namespace, and
13608 # are all built from PIC.
13611 test "$enable_shared" = yes && enable_static=no
13612 if test -n "$RANLIB"; then
13613 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13614 postinstall_cmds='$RANLIB $lib'
13619 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13620 test "$enable_shared" = yes && enable_static=no
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13625 $as_echo "$enable_shared" >&6; }
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13628 $as_echo_n "checking whether to build static libraries... " >&6; }
13629 # Make sure either enable_shared or enable_static is yes.
13630 test "$enable_shared" = yes || enable_static=yes
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13632 $as_echo "$enable_static" >&6; }
13639 ac_cpp='$CPP $CPPFLAGS'
13640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13660 ac_config_commands="$ac_config_commands libtool"
13665 # Only expand once:
13670 # Check whether --with-libtool was given.
13671 if test "${with_libtool+set}" = set; then :
13672 withval=$with_libtool; case $with_libtool in
13674 no) as_fn_error $? "\"--without-libtool not supported.\"" "$LINENO" 5
13676 system) LIBTOOL=libtool
13678 *) LIBTOOL="$with_libtool"
13684 if test "$enable_shared" = "no"; then
13689 ac_cv_func_dlopen=no
13692 eval _shrext="$shrext_cmds"
13693 # Darwin uses .dylib for libraries but .so for modules
13694 if test X"$_shrext" = X".dylib"; then
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking path to sudo_noexec.so" >&5
13701 $as_echo_n "checking path to sudo_noexec.so... " >&6; }
13703 # Check whether --with-noexec was given.
13704 if test "${with_noexec+set}" = set; then :
13705 withval=$with_noexec; case $with_noexec in
13706 yes) with_noexec="$libexecdir/sudo/sudo_noexec.so"
13712 with_noexec="$libexecdir/sudo/sudo_noexec.so"
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_noexec" >&5
13716 $as_echo "$with_noexec" >&6; }
13717 NOEXECFILE="sudo_noexec.so"
13718 NOEXECDIR="`echo $with_noexec|sed -e 's:^${\([^}]*\)}:$(\1):' -e 's:^\(.*\)/[^/]*:\1:'`"
13720 # Extract the first word of "uname", so it can be a program name with args.
13721 set dummy uname; ac_word=$2
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13723 $as_echo_n "checking for $ac_word... " >&6; }
13724 if ${ac_cv_path_UNAMEPROG+:} false; then :
13725 $as_echo_n "(cached) " >&6
13729 ac_cv_path_UNAMEPROG="$UNAMEPROG" # Let the user override the test with a path.
13732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13733 for as_dir in $PATH
13736 test -z "$as_dir" && as_dir=.
13737 for ac_exec_ext in '' $ac_executable_extensions; do
13738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13739 ac_cv_path_UNAMEPROG="$as_dir/$ac_word$ac_exec_ext"
13740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13747 test -z "$ac_cv_path_UNAMEPROG" && ac_cv_path_UNAMEPROG="uname"
13751 UNAMEPROG=$ac_cv_path_UNAMEPROG
13752 if test -n "$UNAMEPROG"; then
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAMEPROG" >&5
13754 $as_echo "$UNAMEPROG" >&6; }
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13757 $as_echo "no" >&6; }
13761 # Extract the first word of "tr", so it can be a program name with args.
13762 set dummy tr; ac_word=$2
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13764 $as_echo_n "checking for $ac_word... " >&6; }
13765 if ${ac_cv_path_TRPROG+:} false; then :
13766 $as_echo_n "(cached) " >&6
13770 ac_cv_path_TRPROG="$TRPROG" # Let the user override the test with a path.
13773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13774 for as_dir in $PATH
13777 test -z "$as_dir" && as_dir=.
13778 for ac_exec_ext in '' $ac_executable_extensions; do
13779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13780 ac_cv_path_TRPROG="$as_dir/$ac_word$ac_exec_ext"
13781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13788 test -z "$ac_cv_path_TRPROG" && ac_cv_path_TRPROG="tr"
13792 TRPROG=$ac_cv_path_TRPROG
13793 if test -n "$TRPROG"; then
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRPROG" >&5
13795 $as_echo "$TRPROG" >&6; }
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13798 $as_echo "no" >&6; }
13802 # Extract the first word of "mandoc", so it can be a program name with args.
13803 set dummy mandoc; ac_word=$2
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13805 $as_echo_n "checking for $ac_word... " >&6; }
13806 if ${ac_cv_path_MANDOCPROG+:} false; then :
13807 $as_echo_n "(cached) " >&6
13809 case $MANDOCPROG in
13811 ac_cv_path_MANDOCPROG="$MANDOCPROG" # Let the user override the test with a path.
13814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13815 for as_dir in $PATH
13818 test -z "$as_dir" && as_dir=.
13819 for ac_exec_ext in '' $ac_executable_extensions; do
13820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13821 ac_cv_path_MANDOCPROG="$as_dir/$ac_word$ac_exec_ext"
13822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13829 test -z "$ac_cv_path_MANDOCPROG" && ac_cv_path_MANDOCPROG="mandoc"
13833 MANDOCPROG=$ac_cv_path_MANDOCPROG
13834 if test -n "$MANDOCPROG"; then
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDOCPROG" >&5
13836 $as_echo "$MANDOCPROG" >&6; }
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13839 $as_echo "no" >&6; }
13843 if test "$MANDOCPROG" != "mandoc"; then
13844 : ${MANTYPE='mdoc'}
13846 # Extract the first word of "nroff", so it can be a program name with args.
13847 set dummy nroff; ac_word=$2
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13849 $as_echo_n "checking for $ac_word... " >&6; }
13850 if ${ac_cv_path_NROFFPROG+:} false; then :
13851 $as_echo_n "(cached) " >&6
13855 ac_cv_path_NROFFPROG="$NROFFPROG" # Let the user override the test with a path.
13858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13859 for as_dir in $PATH
13862 test -z "$as_dir" && as_dir=.
13863 for ac_exec_ext in '' $ac_executable_extensions; do
13864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13865 ac_cv_path_NROFFPROG="$as_dir/$ac_word$ac_exec_ext"
13866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13876 NROFFPROG=$ac_cv_path_NROFFPROG
13877 if test -n "$NROFFPROG"; then
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFFPROG" >&5
13879 $as_echo "$NROFFPROG" >&6; }
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13882 $as_echo "no" >&6; }
13886 if test -n "$NROFFPROG"; then
13887 test -n "$MANTYPE" && sudo_cv_var_mantype="$MANTYPE"
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which macro set to use for manual pages" >&5
13889 $as_echo_n "checking which macro set to use for manual pages... " >&6; }
13890 if ${sudo_cv_var_mantype+:} false; then :
13891 $as_echo_n "(cached) " >&6
13894 sudo_cv_var_mantype="man"
13895 echo ".Sh NAME" > conftest
13896 echo ".Nm sudo" >> conftest
13897 echo ".Nd sudo" >> conftest
13898 echo ".Sh DESCRIPTION" >> conftest
13899 echo "sudo" >> conftest
13900 if $NROFFPROG -mdoc conftest >/dev/null 2>&1; then
13901 sudo_cv_var_mantype="mdoc"
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_mantype" >&5
13908 $as_echo "$sudo_cv_var_mantype" >&6; }
13909 MANTYPE="$sudo_cv_var_mantype"
13913 mansrcdir='$(srcdir)'
13917 if test -n "$sudo_cv_prev_host"; then
13918 if test "$sudo_cv_prev_host" != "$host"; then
13919 as_fn_error $? "config.cache was created on a different host; remove it and re-run configure." "$LINENO" 5
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking previous host type" >&5
13922 $as_echo_n "checking previous host type... " >&6; }
13923 if ${sudo_cv_prev_host+:} false; then :
13924 $as_echo_n "(cached) " >&6
13926 sudo_cv_prev_host="$host"
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_prev_host" >&5
13930 $as_echo "$sudo_cv_prev_host" >&6; }
13933 # this will produce no output since there is no cached value
13934 if ${sudo_cv_prev_host+:} false; then :
13935 $as_echo_n "(cached) " >&6
13937 sudo_cv_prev_host="$host"
13942 if test -n "$host_os"; then
13943 OS=`echo $host_os | sed 's/[0-9].*//'`
13944 OSREV=`echo $host_os | sed 's/^[^0-9\.]*\([0-9\.]*\).*$/\1/'`
13945 OSMAJOR=`echo $OSREV | sed 's/\..*$//'`
13954 # LD_PRELOAD is space-delimited
13955 RTLD_PRELOAD_DELIM=" "
13957 # getcwd(3) opens a pipe to getpwd(1)!?!
13960 # system headers lack prototypes but gcc helps...
13961 if test -n "$GCC"; then
13962 OSDEFS="${OSDEFS} -D__USE_FIXED_PROTOTYPES__"
13965 shadow_funcs="getpwanam issecure"
13968 # LD_PRELOAD is space-delimited
13969 RTLD_PRELOAD_DELIM=" "
13971 # Solaris-specific initialization
13972 OS_INIT=os_init_solaris
13973 SUDO_OBJS="${SUDO_OBJS} solaris.o"
13975 # To get the crypt(3) prototype (so we pass -Wall)
13976 OSDEFS="${OSDEFS} -D__EXTENSIONS__"
13977 # AFS support needs -lucb
13978 if test "$with_AFS" = "yes"; then
13979 AFS_LIBS="-lc -lucb"
13981 : ${mansectsu='1m'}
13982 : ${mansectform='4'}
13983 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13984 for ac_func in priv_set
13986 ac_fn_c_check_func "$LINENO" "priv_set" "ac_cv_func_priv_set"
13987 if test "x$ac_cv_func_priv_set" = xyes; then :
13988 cat >>confdefs.h <<_ACEOF
13989 #define HAVE_PRIV_SET 1
13997 # To get all prototypes (so we pass -Wall)
13998 OSDEFS="${OSDEFS} -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT"
13999 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp"
14001 # On AIX 6 and higher default to PAM, else default to LAM
14002 if test $OSMAJOR -ge 6; then
14003 if test X"$with_pam" = X""; then
14004 AUTH_EXCL_DEF="PAM"
14007 if test X"$with_aixauth" = X""; then
14008 for ac_func in authenticate
14010 ac_fn_c_check_func "$LINENO" "authenticate" "ac_cv_func_authenticate"
14011 if test "x$ac_cv_func_authenticate" = xyes; then :
14012 cat >>confdefs.h <<_ACEOF
14013 #define HAVE_AUTHENTICATE 1
14015 AUTH_EXCL_DEF="AIX_AUTH"
14022 # AIX analog of nsswitch.conf, enabled by default
14024 # Check whether --with-netsvc was given.
14025 if test "${with_netsvc+set}" = set; then :
14026 withval=$with_netsvc; case $with_netsvc in
14028 yes) with_netsvc="/etc/netsvc.conf"
14034 if test -z "$with_nsswitch" -a -z "$with_netsvc"; then
14035 with_netsvc="/etc/netsvc.conf"
14038 # LDR_PRELOAD is only supported in AIX 5.3 and later
14039 if test $OSMAJOR -lt 5; then
14042 RTLD_PRELOAD_VAR="LDR_PRELOAD"
14045 # AIX-specific functions
14046 for ac_func in getuserattr setauthdb setrlimit64
14048 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14049 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14050 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14051 cat >>confdefs.h <<_ACEOF
14052 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14058 COMMON_OBJS="$COMMON_OBJS aix.lo"
14061 : ${mansectsu='1m'}
14062 : ${mansectform='4'}
14064 # HP-UX shared libs must be executable
14068 # AFS support needs -lBSD
14069 if test "$with_AFS" = "yes"; then
14070 AFS_LIBS="-lc -lBSD"
14072 : ${mansectsu='1m'}
14073 : ${mansectform='4'}
14075 # HP-UX shared libs must be executable
14078 # The HP bundled compiler cannot generate shared libs
14079 if test -z "$GCC"; then
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HP bundled C compiler" >&5
14081 $as_echo_n "checking for HP bundled C compiler... " >&6; }
14082 if ${sudo_cv_var_hpccbundled+:} false; then :
14083 $as_echo_n "(cached) " >&6
14085 if $CC -V 2>&1 | grep '^(Bundled)' >/dev/null 2>&1; then
14086 sudo_cv_var_hpccbundled=yes
14088 sudo_cv_var_hpccbundled=no
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_hpccbundled" >&5
14093 $as_echo "$sudo_cv_var_hpccbundled" >&6; }
14094 if test "$sudo_cv_var_hpccbundled" = "yes"; then
14095 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
14099 # Build PA-RISC1.1 objects for better portability
14100 case "$host_cpu" in
14103 if test -n "$GCC"; then
14104 portable_flag="-march=1.1"
14106 portable_flag="+DAportable"
14108 CFLAGS="$CFLAGS $portable_flag"
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands $portable_flag" >&5
14110 $as_echo_n "checking whether $CC understands $portable_flag... " >&6; }
14111 if ${sudo_cv_var_daportable+:} false; then :
14112 $as_echo_n "(cached) " >&6
14114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14115 /* end confdefs.h. */
14125 if ac_fn_c_try_link "$LINENO"; then :
14126 sudo_cv_var_daportable=yes
14128 sudo_cv_var_daportable=no
14131 rm -f core conftest.err conftest.$ac_objext \
14132 conftest$ac_exeext conftest.$ac_ext
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_daportable" >&5
14137 $as_echo "$sudo_cv_var_daportable" >&6; }
14138 if test X"$sudo_cv_var_daportable" != X"yes"; then
14146 $as_echo "#define BROKEN_SYSLOG 1" >>confdefs.h
14150 $as_echo "#define BROKEN_SYSLOG 1" >>confdefs.h
14153 shadow_funcs="getspwuid"
14155 # DCE support (requires ANSI C compiler)
14156 if test "$with_DCE" = "yes"; then
14157 # order of libs in 9.X is important. -lc_r must be last
14158 SUDOERS_LIBS="${SUDOERS_LIBS} -ldce -lM -lc_r"
14159 LIBS="${LIBS} -ldce -lM -lc_r"
14161 case "${CPPFLAGS}" in
14162 *"-D_REENTRANT"|*"-D_REENTRANT ")
14165 if test X"${CPPFLAGS}" = X""; then
14166 CPPFLAGS="-D_REENTRANT"
14168 CPPFLAGS="${CPPFLAGS} -D_REENTRANT"
14174 case "${CPPFLAGS}" in
14175 *"-I/usr/include/reentrant"|*"-I/usr/include/reentrant ")
14178 if test X"${CPPFLAGS}" = X""; then
14179 CPPFLAGS="-I/usr/include/reentrant"
14181 CPPFLAGS="${CPPFLAGS} -I/usr/include/reentrant"
14189 shadow_funcs="getprpwnam iscomsec"
14190 shadow_libs="-lsec"
14191 # HP-UX 10.20 libc has an incompatible getline
14192 ac_cv_func_getline="no"
14195 shadow_funcs="getspnam iscomsec"
14196 shadow_libs="-lsec"
14197 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14200 for ac_func in pstat_getproc
14202 ac_fn_c_check_func "$LINENO" "pstat_getproc" "ac_cv_func_pstat_getproc"
14203 if test "x$ac_cv_func_pstat_getproc" = xyes; then :
14204 cat >>confdefs.h <<_ACEOF
14205 #define HAVE_PSTAT_GETPROC 1
14213 # ignore envariables wrt dynamic lib path
14214 # XXX - sudo LDFLAGS instead?
14215 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -Wl,-no_library_replacement"
14217 : ${CHECKSIA='true'}
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable sia support on Digital UNIX" >&5
14219 $as_echo_n "checking whether to disable sia support on Digital UNIX... " >&6; }
14220 # Check whether --enable-sia was given.
14221 if test "${enable_sia+set}" = set; then :
14222 enableval=$enable_sia; case "$enableval" in
14223 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14224 $as_echo "no" >&6; }
14227 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14228 $as_echo "yes" >&6; }
14231 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14232 $as_echo "no" >&6; }
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&5
14234 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&2;}
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14240 $as_echo "no" >&6; }
14244 shadow_funcs="getprpwnam dispcrypt"
14245 # OSF/1 4.x and higher need -ldb too
14246 if test $OSMAJOR -lt 4; then
14247 shadow_libs="-lsecurity -laud -lm"
14249 shadow_libs="-lsecurity -ldb -laud -lm"
14252 # use SIA by default, if we have it
14253 test "$CHECKSIA" = "true" && AUTH_EXCL_DEF="SIA"
14256 # Some versions of Digital Unix ship with a broken
14257 # copy of prot.h, which we need for shadow passwords.
14258 # XXX - make should remove this as part of distclean
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken prot.h" >&5
14261 $as_echo_n "checking for broken prot.h... " >&6; }
14262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14263 /* end confdefs.h. */
14265 #include <sys/types.h>
14266 #include <sys/security.h>
14277 if ac_fn_c_try_compile "$LINENO"; then :
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14279 $as_echo "no" >&6; }
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, fixing locally" >&5
14282 $as_echo "yes, fixing locally" >&6; }
14283 sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
14286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14287 # ":DEFAULT" must be appended to _RLD_LIST
14288 RTLD_PRELOAD_VAR="_RLD_LIST"
14289 RTLD_PRELOAD_DEFAULT="DEFAULT"
14291 : ${mansectform='4'}
14294 OSDEFS="${OSDEFS} -D_BSD_TYPES"
14295 if test -z "$NROFFPROG"; then
14296 if test "$prefix" = "/usr/local" -a "$mandir" = '${datarootdir}/man'; then
14297 if test -d /usr/share/catman/local; then
14298 mandir="/usr/share/catman/local"
14300 mandir="/usr/catman/local"
14303 # Compress cat pages with pack
14305 MANCOMPRESSEXT='.z'
14307 if test "$prefix" = "/usr/local" -a "$mandir" = '${datarootdir}/man'; then
14308 if test -d "/usr/share/man/local"; then
14309 mandir="/usr/share/man/local"
14311 mandir="/usr/man/local"
14315 # IRIX <= 4 needs -lsun
14316 if test "$OSMAJOR" -le 4; then
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
14318 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
14319 if ${ac_cv_lib_sun_getpwnam+:} false; then :
14320 $as_echo_n "(cached) " >&6
14322 ac_check_lib_save_LIBS=$LIBS
14324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14325 /* end confdefs.h. */
14327 /* Override any GCC internal prototype to avoid an error.
14328 Use char because int might match the return type of a GCC
14329 builtin and then its argument prototype would still apply. */
14337 return getpwnam ();
14342 if ac_fn_c_try_link "$LINENO"; then :
14343 ac_cv_lib_sun_getpwnam=yes
14345 ac_cv_lib_sun_getpwnam=no
14347 rm -f core conftest.err conftest.$ac_objext \
14348 conftest$ac_exeext conftest.$ac_ext
14349 LIBS=$ac_check_lib_save_LIBS
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
14352 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
14353 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
14354 LIBS="${LIBS} -lsun"
14358 # ":DEFAULT" must be appended to _RLD_LIST
14359 RTLD_PRELOAD_VAR="_RLD_LIST"
14360 RTLD_PRELOAD_DEFAULT="DEFAULT"
14361 : ${mansectsu='1m'}
14362 : ${mansectform='4'}
14364 *-*-linux*|*-*-k*bsd*-gnu)
14365 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
14366 # Some Linux versions need to link with -lshadow
14367 shadow_funcs="getspnam"
14368 shadow_libs_optional="-lshadow"
14369 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14372 OSDEFS="${OSDEFS} -D_CONVEX_SOURCE"
14373 if test -z "$GCC"; then
14374 CFLAGS="${CFLAGS} -D__STDC__"
14377 shadow_defs="-D_AUDIT -D_ACL -DSecureWare"
14378 shadow_funcs="getprpwnam"
14379 shadow_libs="-lprot"
14383 shadow_funcs="getauthuid"
14384 shadow_libs="-lauth"
14387 LIBS="${LIBS} -lsun -lbsd"
14389 case "${CPPFLAGS}" in
14390 *"-I/usr/include"|*"-I/usr/include ")
14393 if test X"${CPPFLAGS}" = X""; then
14394 CPPFLAGS="-I/usr/include"
14396 CPPFLAGS="${CPPFLAGS} -I/usr/include"
14402 case "${CPPFLAGS}" in
14403 *"-I/usr/include/bsd"|*"-I/usr/include/bsd ")
14406 if test X"${CPPFLAGS}" = X""; then
14407 CPPFLAGS="-I/usr/include/bsd"
14409 CPPFLAGS="${CPPFLAGS} -I/usr/include/bsd"
14414 OSDEFS="${OSDEFS} -D_MIPS"
14415 : ${mansectsu='1m'}
14416 : ${mansectform='4'}
14419 OSDEFS="${OSDEFS} -D_ISC"
14421 SUDOERS_LIBS="${SUDOERS_LIBS} -lcrypt"
14423 shadow_funcs="getspnam"
14424 shadow_libs="-lsec"
14426 : ${mansectsu='1m'}
14427 : ${mansectform='4'}
14430 shadow_funcs="getprpwnam"
14431 shadow_libs="-lprot -lx"
14432 : ${mansectsu='1m'}
14433 : ${mansectform='4'}
14435 m88k-motorola-sysv*)
14436 # motorolla's cc (a variant of gcc) does -O but not -O2
14437 CFLAGS=`echo $CFLAGS | sed 's/-O2/-O/g'`
14438 : ${mansectsu='1m'}
14439 : ${mansectform='4'}
14442 shadow_funcs="getspnam"
14443 shadow_libs="-lsec"
14444 : ${mansectsu='1m'}
14445 : ${mansectform='4'}
14447 *-ncr-sysv4*|*-ncr-sysvr4*)
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lc89" >&5
14449 $as_echo_n "checking for strcasecmp in -lc89... " >&6; }
14450 if ${ac_cv_lib_c89_strcasecmp+:} false; then :
14451 $as_echo_n "(cached) " >&6
14453 ac_check_lib_save_LIBS=$LIBS
14455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14456 /* end confdefs.h. */
14458 /* Override any GCC internal prototype to avoid an error.
14459 Use char because int might match the return type of a GCC
14460 builtin and then its argument prototype would still apply. */
14464 char strcasecmp ();
14468 return strcasecmp ();
14473 if ac_fn_c_try_link "$LINENO"; then :
14474 ac_cv_lib_c89_strcasecmp=yes
14476 ac_cv_lib_c89_strcasecmp=no
14478 rm -f core conftest.err conftest.$ac_objext \
14479 conftest$ac_exeext conftest.$ac_ext
14480 LIBS=$ac_check_lib_save_LIBS
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c89_strcasecmp" >&5
14483 $as_echo "$ac_cv_lib_c89_strcasecmp" >&6; }
14484 if test "x$ac_cv_lib_c89_strcasecmp" = xyes; then :
14485 LIBS="${LIBS} -lc89"
14488 : ${mansectsu='1m'}
14489 : ${mansectform='4'}
14491 *-ccur-sysv4*|*-ccur-sysvr4*)
14492 LIBS="${LIBS} -lgen"
14493 : ${mansectsu='1m'}
14494 : ${mansectform='4'}
14498 # Check for newer BSD auth API
14499 if test -z "$with_bsdauth"; then
14500 for ac_func in auth_challenge
14502 ac_fn_c_check_func "$LINENO" "auth_challenge" "ac_cv_func_auth_challenge"
14503 if test "x$ac_cv_func_auth_challenge" = xyes; then :
14504 cat >>confdefs.h <<_ACEOF
14505 #define HAVE_AUTH_CHALLENGE 1
14507 AUTH_EXCL_DEF="BSD_AUTH"
14514 # FreeBSD has a real setreuid(2) starting with 2.1 and
14515 # backported to 2.0.5. We just take 2.1 and above...
14521 OSDEFS="${OSDEFS} -D_BSD_SOURCE"
14522 if test "${with_skey-'no'}" = "yes"; then
14523 SUDOERS_LIBS="${SUDOERS_LIBS} -lmd"
14525 CHECKSHADOW="false"
14526 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14527 : ${with_logincap='maybe'}
14530 # OpenBSD-specific initialization
14531 OS_INIT=os_init_openbsd
14532 SUDO_OBJS="${SUDO_OBJS} openbsd.o"
14534 # OpenBSD has a real setreuid(2) starting with 3.3 but
14535 # we will use setresuid(2) instead.
14537 OSDEFS="${OSDEFS} -D_BSD_SOURCE"
14538 CHECKSHADOW="false"
14539 # OpenBSD >= 3.0 supports BSD auth
14540 if test -z "$with_bsdauth"; then
14541 if test "$OSMAJOR" -ge 3; then
14542 AUTH_EXCL_DEF="BSD_AUTH"
14545 : ${with_logincap='maybe'}
14548 # NetBSD has a real setreuid(2) starting with 1.3.2
14550 0.9*|1.[012]*|1.3|1.3.1)
14554 CHECKSHADOW="false"
14555 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14556 : ${with_logincap='maybe'}
14559 OSDEFS="${OSDEFS} -D_BSD_SOURCE"
14560 if test "${with_skey-'no'}" = "yes"; then
14561 SUDOERS_LIBS="${SUDOERS_LIBS} -lmd"
14563 CHECKSHADOW="false"
14564 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14565 : ${with_logincap='yes'}
14568 CHECKSHADOW="false"
14571 # Darwin has a real setreuid(2) starting with 9.0
14572 if test $OSMAJOR -lt 9; then
14575 CHECKSHADOW="false"
14576 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14577 : ${with_logincap='yes'}
14578 RTLD_PRELOAD_VAR="DYLD_INSERT_LIBRARIES"
14579 RTLD_PRELOAD_ENABLE_VAR="DYLD_FORCE_FLAT_NAMESPACE"
14582 # lockf() on is broken on the NeXT -- use flock instead
14583 ac_cv_func_lockf=no
14584 ac_cv_func_flock=yes
14585 RTLD_PRELOAD_VAR="DYLD_INSERT_LIBRARIES"
14586 RTLD_PRELOAD_ENABLE_VAR="DYLD_FORCE_FLAT_NAMESPACE"
14589 : ${mansectsu='1m'}
14590 : ${mansectform='4'}
14593 : ${mansectsu='1m'}
14594 : ${mansectform='4'}
14597 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
14601 if test -n "$with_noexec"; then
14602 cat >>confdefs.h <<EOF
14603 #define RTLD_PRELOAD_VAR "$RTLD_PRELOAD_VAR"
14606 cat >>confdefs.h <<EOF
14607 #define RTLD_PRELOAD_DELIM "$RTLD_PRELOAD_DELIM"
14610 if test -n "$RTLD_PRELOAD_DEFAULT"; then
14611 cat >>confdefs.h <<EOF
14612 #define RTLD_PRELOAD_DEFAULT "$RTLD_PRELOAD_DEFAULT"
14616 if test -n "$RTLD_PRELOAD_ENABLE_VAR"; then
14617 cat >>confdefs.h <<EOF
14618 #define RTLD_PRELOAD_ENABLE_VAR "$RTLD_PRELOAD_ENABLE_VAR"
14624 AUTH_REG=${AUTH_REG# }
14625 AUTH_EXCL=${AUTH_EXCL# }
14626 if test -n "$AUTH_EXCL"; then
14628 if test $# != 1; then
14629 as_fn_error $? "More than one mutually exclusive authentication method specified: $AUTH_EXCL" "$LINENO" 5
14631 if test -n "$AUTH_REG"; then
14632 as_fn_error $? "Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" "$LINENO" 5
14635 if test X"${with_skey}${with_opie}" = X"yesyes"; then
14636 as_fn_error $? "\"cannot use both S/Key and OPIE\"" "$LINENO" 5
14640 : ${mansectform='5'}
14642 if test -n "$with_libpath"; then
14643 for i in ${with_libpath}; do
14645 case "${LDFLAGS}" in
14649 LDFLAGS="${LDFLAGS} -L$i"
14650 if test X"$enable_rpath" = X"yes"; then
14651 LDFLAGS_R="${LDFLAGS_R} -R$i"
14658 if test -n "$with_libraries"; then
14659 for i in ${with_libraries}; do
14666 LIBS="${LIBS} ${i}"
14670 if test $ac_cv_c_compiler_gnu = yes; then
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
14672 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
14673 if ${ac_cv_prog_gcc_traditional+:} false; then :
14674 $as_echo_n "(cached) " >&6
14676 ac_pattern="Autoconf.*'x'"
14677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14678 /* end confdefs.h. */
14682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14683 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
14684 ac_cv_prog_gcc_traditional=yes
14686 ac_cv_prog_gcc_traditional=no
14691 if test $ac_cv_prog_gcc_traditional = no; then
14692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14693 /* end confdefs.h. */
14694 #include <termio.h>
14697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14698 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
14699 ac_cv_prog_gcc_traditional=yes
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
14706 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
14707 if test $ac_cv_prog_gcc_traditional = yes; then
14708 CC="$CC -traditional"
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14713 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14714 if ${ac_cv_c_const+:} false; then :
14715 $as_echo_n "(cached) " >&6
14717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14718 /* end confdefs.h. */
14723 /* FIXME: Include the comments suggested by Paul. */
14724 #ifndef __cplusplus
14725 /* Ultrix mips cc rejects this. */
14726 typedef int charset[2];
14728 /* SunOS 4.1.1 cc rejects this. */
14729 char const *const *pcpcc;
14731 /* NEC SVR4.0.2 mips cc rejects this. */
14732 struct point {int x, y;};
14733 static struct point const zero = {0,0};
14734 /* AIX XL C 1.02.0.0 rejects this.
14735 It does not let you subtract one const X* pointer from another in
14736 an arm of an if-expression whose if-part is not a constant
14738 const char *g = "string";
14739 pcpcc = &g + (g ? g-g : 0);
14740 /* HPUX 7.0 cc rejects these. */
14742 ppc = (char**) pcpcc;
14743 pcpcc = (char const *const *) ppc;
14744 { /* SCO 3.2v4 cc rejects this. */
14746 char const *s = 0 ? (char *) 0 : (char const *) 0;
14751 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14752 int x[] = {25, 17};
14753 const int *foo = &x[0];
14756 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14757 typedef const int *iptr;
14761 { /* AIX XL C 1.02.0.0 rejects this saying
14762 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14763 struct s { int j; const int *ap[3]; };
14764 struct s *b; b->j = 5;
14766 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14767 const int foo = 10;
14768 if (!foo) return 0;
14770 return !cs[0] && !zero.x;
14777 if ac_fn_c_try_compile "$LINENO"; then :
14782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14785 $as_echo "$ac_cv_c_const" >&6; }
14786 if test $ac_cv_c_const = no; then
14788 $as_echo "#define const /**/" >>confdefs.h
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
14793 $as_echo_n "checking for working volatile... " >&6; }
14794 if ${ac_cv_c_volatile+:} false; then :
14795 $as_echo_n "(cached) " >&6
14797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14798 /* end confdefs.h. */
14805 int * volatile y = (int *) 0;
14811 if ac_fn_c_try_compile "$LINENO"; then :
14812 ac_cv_c_volatile=yes
14814 ac_cv_c_volatile=no
14816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
14819 $as_echo "$ac_cv_c_volatile" >&6; }
14820 if test $ac_cv_c_volatile = no; then
14822 $as_echo "#define volatile /**/" >>confdefs.h
14826 # Check for variadic macro support in cpp
14827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14828 /* end confdefs.h. */
14830 $ac_includes_default
14831 #if defined(__GNUC__) && __GNUC__ == 2
14832 # define sudo_fprintf(fp, fmt...) fprintf((fp), (fmt))
14834 # define sudo_fprintf(fp, ...) fprintf((fp), __VA_ARGS__)
14840 sudo_fprintf(stderr, "a %s", "test");
14845 if ac_fn_c_try_compile "$LINENO"; then :
14848 as_fn_error $? "Your C compiler doesn't support variadic macros, try building with gcc instead" "$LINENO" 5
14850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14852 for ac_prog in 'bison -y' byacc
14854 # Extract the first word of "$ac_prog", so it can be a program name with args.
14855 set dummy $ac_prog; ac_word=$2
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14857 $as_echo_n "checking for $ac_word... " >&6; }
14858 if ${ac_cv_prog_YACC+:} false; then :
14859 $as_echo_n "(cached) " >&6
14861 if test -n "$YACC"; then
14862 ac_cv_prog_YACC="$YACC" # Let the user override the test.
14864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14865 for as_dir in $PATH
14868 test -z "$as_dir" && as_dir=.
14869 for ac_exec_ext in '' $ac_executable_extensions; do
14870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14871 ac_cv_prog_YACC="$ac_prog"
14872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14881 YACC=$ac_cv_prog_YACC
14882 if test -n "$YACC"; then
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
14884 $as_echo "$YACC" >&6; }
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14887 $as_echo "no" >&6; }
14891 test -n "$YACC" && break
14893 test -n "$YACC" || YACC="yacc"
14895 # Extract the first word of "flex", so it can be a program name with args.
14896 set dummy flex; ac_word=$2
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14898 $as_echo_n "checking for $ac_word... " >&6; }
14899 if ${ac_cv_path_FLEX+:} false; then :
14900 $as_echo_n "(cached) " >&6
14904 ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path.
14907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14908 for as_dir in $PATH
14911 test -z "$as_dir" && as_dir=.
14912 for ac_exec_ext in '' $ac_executable_extensions; do
14913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14914 ac_cv_path_FLEX="$as_dir/$ac_word$ac_exec_ext"
14915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14922 test -z "$ac_cv_path_FLEX" && ac_cv_path_FLEX="flex"
14926 FLEX=$ac_cv_path_FLEX
14927 if test -n "$FLEX"; then
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
14929 $as_echo "$FLEX" >&6; }
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14932 $as_echo "no" >&6; }
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mv" >&5
14937 $as_echo_n "checking for mv... " >&6; }
14939 for p in "/usr/bin/mv" "/bin/mv" "/usr/ucb/mv" "/usr/sbin/mv"; do
14940 if test -f "$p"; then
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
14943 $as_echo "$p" >&6; }
14944 cat >>confdefs.h <<EOF
14945 #define _PATH_MV "$p"
14951 if test X"$found" != X"yes"; then
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14953 $as_echo "not found" >&6; }
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bourne shell" >&5
14957 $as_echo_n "checking for bourne shell... " >&6; }
14959 for p in "/bin/sh" "/usr/bin/sh" "/sbin/sh" "/usr/sbin/sh" "/bin/ksh" "/usr/bin/ksh" "/bin/bash" "/usr/bin/bash"; do
14960 if test -f "$p"; then
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
14963 $as_echo "$p" >&6; }
14964 cat >>confdefs.h <<EOF
14965 #define _PATH_BSHELL "$p"
14971 if test X"$found" != X"yes"; then
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14973 $as_echo "not found" >&6; }
14976 if test -z "$with_sendmail"; then
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendmail" >&5
14978 $as_echo_n "checking for sendmail... " >&6; }
14980 for p in "/usr/sbin/sendmail" "/usr/lib/sendmail" "/usr/etc/sendmail" "/usr/ucblib/sendmail" "/usr/local/lib/sendmail" "/usr/local/bin/sendmail"; do
14981 if test -f "$p"; then
14983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
14984 $as_echo "$p" >&6; }
14985 cat >>confdefs.h <<EOF
14986 #define _PATH_SUDO_SENDMAIL "$p"
14992 if test X"$found" != X"yes"; then
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14994 $as_echo "not found" >&6; }
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vi" >&5
14999 $as_echo_n "checking for vi... " >&6; }
15001 for editor in "/usr/bin/vi" "/bin/vi" "/usr/ucb/vi" "/usr/bsd/vi" "/usr/local/bin/vi"; do
15002 if test -f "$editor"; then
15004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $editor" >&5
15005 $as_echo "$editor" >&6; }
15006 cat >>confdefs.h <<EOF
15007 #define _PATH_VI "$editor"
15013 if test X"$found" != X"yes"; then
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15015 $as_echo "not found" >&6; }
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which syslog facility sudo should log with" >&5
15019 $as_echo_n "checking which syslog facility sudo should log with... " >&6; }
15020 if test X"$with_logfac" = X""; then
15021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15022 /* end confdefs.h. */
15023 #include <syslog.h>
15027 int i = LOG_AUTHPRIV; (void)i;
15032 if ac_fn_c_try_compile "$LINENO"; then :
15035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15038 cat >>confdefs.h <<_ACEOF
15039 #define LOGFAC "$logfac"
15042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logfac" >&5
15043 $as_echo "$logfac" >&6; }
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15045 $as_echo_n "checking for ANSI C header files... " >&6; }
15046 if ${ac_cv_header_stdc+:} false; then :
15047 $as_echo_n "(cached) " >&6
15049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15050 /* end confdefs.h. */
15051 #include <stdlib.h>
15052 #include <stdarg.h>
15053 #include <string.h>
15064 if ac_fn_c_try_compile "$LINENO"; then :
15065 ac_cv_header_stdc=yes
15067 ac_cv_header_stdc=no
15069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15071 if test $ac_cv_header_stdc = yes; then
15072 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15074 /* end confdefs.h. */
15075 #include <string.h>
15078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15079 $EGREP "memchr" >/dev/null 2>&1; then :
15082 ac_cv_header_stdc=no
15088 if test $ac_cv_header_stdc = yes; then
15089 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15091 /* end confdefs.h. */
15092 #include <stdlib.h>
15095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15096 $EGREP "free" >/dev/null 2>&1; then :
15099 ac_cv_header_stdc=no
15105 if test $ac_cv_header_stdc = yes; then
15106 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15107 if test "$cross_compiling" = yes; then :
15110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15111 /* end confdefs.h. */
15113 #include <stdlib.h>
15114 #if ((' ' & 0x0FF) == 0x020)
15115 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15116 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15118 # define ISLOWER(c) \
15119 (('a' <= (c) && (c) <= 'i') \
15120 || ('j' <= (c) && (c) <= 'r') \
15121 || ('s' <= (c) && (c) <= 'z'))
15122 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15125 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15130 for (i = 0; i < 256; i++)
15131 if (XOR (islower (i), ISLOWER (i))
15132 || toupper (i) != TOUPPER (i))
15137 if ac_fn_c_try_run "$LINENO"; then :
15140 ac_cv_header_stdc=no
15142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15143 conftest.$ac_objext conftest.beam conftest.$ac_ext
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15149 $as_echo "$ac_cv_header_stdc" >&6; }
15150 if test $ac_cv_header_stdc = yes; then
15152 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15156 ac_header_dirent=no
15157 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15158 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
15160 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
15161 if eval \${$as_ac_Header+:} false; then :
15162 $as_echo_n "(cached) " >&6
15164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15165 /* end confdefs.h. */
15166 #include <sys/types.h>
15178 if ac_fn_c_try_compile "$LINENO"; then :
15179 eval "$as_ac_Header=yes"
15181 eval "$as_ac_Header=no"
15183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15185 eval ac_res=\$$as_ac_Header
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15187 $as_echo "$ac_res" >&6; }
15188 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15189 cat >>confdefs.h <<_ACEOF
15190 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15193 ac_header_dirent=$ac_hdr; break
15197 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15198 if test $ac_header_dirent = dirent.h; then
15199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15200 $as_echo_n "checking for library containing opendir... " >&6; }
15201 if ${ac_cv_search_opendir+:} false; then :
15202 $as_echo_n "(cached) " >&6
15204 ac_func_search_save_LIBS=$LIBS
15205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15206 /* end confdefs.h. */
15208 /* Override any GCC internal prototype to avoid an error.
15209 Use char because int might match the return type of a GCC
15210 builtin and then its argument prototype would still apply. */
15223 for ac_lib in '' dir; do
15224 if test -z "$ac_lib"; then
15225 ac_res="none required"
15228 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15230 if ac_fn_c_try_link "$LINENO"; then :
15231 ac_cv_search_opendir=$ac_res
15233 rm -f core conftest.err conftest.$ac_objext \
15235 if ${ac_cv_search_opendir+:} false; then :
15239 if ${ac_cv_search_opendir+:} false; then :
15242 ac_cv_search_opendir=no
15244 rm conftest.$ac_ext
15245 LIBS=$ac_func_search_save_LIBS
15247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15248 $as_echo "$ac_cv_search_opendir" >&6; }
15249 ac_res=$ac_cv_search_opendir
15250 if test "$ac_res" != no; then :
15251 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15257 $as_echo_n "checking for library containing opendir... " >&6; }
15258 if ${ac_cv_search_opendir+:} false; then :
15259 $as_echo_n "(cached) " >&6
15261 ac_func_search_save_LIBS=$LIBS
15262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15263 /* end confdefs.h. */
15265 /* Override any GCC internal prototype to avoid an error.
15266 Use char because int might match the return type of a GCC
15267 builtin and then its argument prototype would still apply. */
15280 for ac_lib in '' x; do
15281 if test -z "$ac_lib"; then
15282 ac_res="none required"
15285 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15287 if ac_fn_c_try_link "$LINENO"; then :
15288 ac_cv_search_opendir=$ac_res
15290 rm -f core conftest.err conftest.$ac_objext \
15292 if ${ac_cv_search_opendir+:} false; then :
15296 if ${ac_cv_search_opendir+:} false; then :
15299 ac_cv_search_opendir=no
15301 rm conftest.$ac_ext
15302 LIBS=$ac_func_search_save_LIBS
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15305 $as_echo "$ac_cv_search_opendir" >&6; }
15306 ac_res=$ac_cv_search_opendir
15307 if test "$ac_res" != no; then :
15308 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
15315 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
15316 if ${ac_cv_header_time+:} false; then :
15317 $as_echo_n "(cached) " >&6
15319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15320 /* end confdefs.h. */
15321 #include <sys/types.h>
15322 #include <sys/time.h>
15328 if ((struct tm *) 0)
15334 if ac_fn_c_try_compile "$LINENO"; then :
15335 ac_cv_header_time=yes
15337 ac_cv_header_time=no
15339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15342 $as_echo "$ac_cv_header_time" >&6; }
15343 if test $ac_cv_header_time = yes; then
15345 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
15350 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
15351 if ${ac_cv_header_stdbool_h+:} false; then :
15352 $as_echo_n "(cached) " >&6
15354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15355 /* end confdefs.h. */
15357 #include <stdbool.h>
15359 "error: bool is not defined"
15362 "error: false is not defined"
15365 "error: false is not 0"
15368 "error: true is not defined"
15371 "error: true is not 1"
15373 #ifndef __bool_true_false_are_defined
15374 "error: __bool_true_false_are_defined is not defined"
15377 struct s { _Bool s: 1; _Bool t; } s;
15379 char a[true == 1 ? 1 : -1];
15380 char b[false == 0 ? 1 : -1];
15381 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
15382 char d[(bool) 0.5 == true ? 1 : -1];
15383 /* See body of main program for 'e'. */
15384 char f[(_Bool) 0.0 == false ? 1 : -1];
15386 char h[sizeof (_Bool)];
15387 char i[sizeof s.t];
15388 enum { j = false, k = true, l = false * true, m = true * 256 };
15389 /* The following fails for
15390 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
15392 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
15393 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
15394 /* Catch a bug in an HP-UX C compiler. See
15395 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
15396 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
15408 /* Refer to every declared value, to avoid compiler optimizations. */
15409 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
15410 + !m + !n + !o + !p + !q + !pq);
15416 if ac_fn_c_try_compile "$LINENO"; then :
15417 ac_cv_header_stdbool_h=yes
15419 ac_cv_header_stdbool_h=no
15421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
15424 $as_echo "$ac_cv_header_stdbool_h" >&6; }
15425 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
15426 if test "x$ac_cv_type__Bool" = xyes; then :
15428 cat >>confdefs.h <<_ACEOF
15429 #define HAVE__BOOL 1
15435 if test $ac_cv_header_stdbool_h = yes; then
15437 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
15442 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
15443 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
15444 $as_echo_n "(cached) " >&6
15446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15447 /* end confdefs.h. */
15448 #include <sys/types.h>
15452 return makedev(0, 0);
15457 if ac_fn_c_try_link "$LINENO"; then :
15458 ac_cv_header_sys_types_h_makedev=yes
15460 ac_cv_header_sys_types_h_makedev=no
15462 rm -f core conftest.err conftest.$ac_objext \
15463 conftest$ac_exeext conftest.$ac_ext
15466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
15467 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
15469 if test $ac_cv_header_sys_types_h_makedev = no; then
15470 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
15471 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
15473 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
15479 if test $ac_cv_header_sys_mkdev_h = no; then
15480 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
15481 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
15483 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
15491 for ac_header in malloc.h netgroup.h paths.h spawn.h utime.h utmpx.h sys/sockio.h sys/bsdtypes.h sys/select.h sys/stropts.h sys/sysmacros.h
15493 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15494 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15495 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15496 cat >>confdefs.h <<_ACEOF
15497 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15504 for ac_header in endian.h sys/endian.h machine/endian.h
15506 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15507 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15508 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15509 cat >>confdefs.h <<_ACEOF
15510 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15517 for ac_header in procfs.h sys/procfs.h
15519 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15520 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15521 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15522 cat >>confdefs.h <<_ACEOF
15523 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15525 ac_fn_c_check_member "$LINENO" "struct psinfo" "pr_ttydev" "ac_cv_member_struct_psinfo_pr_ttydev" "$ac_includes_default
15526 #ifdef HAVE_PROCFS_H
15527 #include <procfs.h>
15529 #ifdef HAVE_SYS_PROCFS_H
15530 #include <sys/procfs.h>
15534 if test "x$ac_cv_member_struct_psinfo_pr_ttydev" = xyes; then :
15536 cat >>confdefs.h <<_ACEOF
15537 #define HAVE_STRUCT_PSINFO_PR_TTYDEV 1
15540 for ac_func in _ttyname_dev
15542 ac_fn_c_check_func "$LINENO" "_ttyname_dev" "ac_cv_func__ttyname_dev"
15543 if test "x$ac_cv_func__ttyname_dev" = xyes; then :
15544 cat >>confdefs.h <<_ACEOF
15545 #define HAVE__TTYNAME_DEV 1
15558 # Check whether --enable-largefile was given.
15559 if test "${enable_largefile+set}" = set; then :
15560 enableval=$enable_largefile;
15563 if test "$enable_largefile" != no; then
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15566 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15567 if ${ac_cv_sys_largefile_CC+:} false; then :
15568 $as_echo_n "(cached) " >&6
15570 ac_cv_sys_largefile_CC=no
15571 if test "$GCC" != yes; then
15574 # IRIX 6.2 and later do not support large files by default,
15575 # so use the C compiler's -n32 option if that helps.
15576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15577 /* end confdefs.h. */
15578 #include <sys/types.h>
15579 /* Check that off_t can represent 2**63 - 1 correctly.
15580 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15581 since some C++ compilers masquerading as C compilers
15582 incorrectly reject 9223372036854775807. */
15583 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15584 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15585 && LARGE_OFF_T % 2147483647 == 1)
15595 if ac_fn_c_try_compile "$LINENO"; then :
15598 rm -f core conftest.err conftest.$ac_objext
15600 if ac_fn_c_try_compile "$LINENO"; then :
15601 ac_cv_sys_largefile_CC=' -n32'; break
15603 rm -f core conftest.err conftest.$ac_objext
15607 rm -f conftest.$ac_ext
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15611 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15612 if test "$ac_cv_sys_largefile_CC" != no; then
15613 CC=$CC$ac_cv_sys_largefile_CC
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15617 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15618 if ${ac_cv_sys_file_offset_bits+:} false; then :
15619 $as_echo_n "(cached) " >&6
15622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15623 /* end confdefs.h. */
15624 #include <sys/types.h>
15625 /* Check that off_t can represent 2**63 - 1 correctly.
15626 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15627 since some C++ compilers masquerading as C compilers
15628 incorrectly reject 9223372036854775807. */
15629 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15630 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15631 && LARGE_OFF_T % 2147483647 == 1)
15641 if ac_fn_c_try_compile "$LINENO"; then :
15642 ac_cv_sys_file_offset_bits=no; break
15644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15646 /* end confdefs.h. */
15647 #define _FILE_OFFSET_BITS 64
15648 #include <sys/types.h>
15649 /* Check that off_t can represent 2**63 - 1 correctly.
15650 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15651 since some C++ compilers masquerading as C compilers
15652 incorrectly reject 9223372036854775807. */
15653 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15654 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15655 && LARGE_OFF_T % 2147483647 == 1)
15665 if ac_fn_c_try_compile "$LINENO"; then :
15666 ac_cv_sys_file_offset_bits=64; break
15668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15669 ac_cv_sys_file_offset_bits=unknown
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15674 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15675 case $ac_cv_sys_file_offset_bits in #(
15678 cat >>confdefs.h <<_ACEOF
15679 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15684 if test $ac_cv_sys_file_offset_bits = unknown; then
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15686 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15687 if ${ac_cv_sys_large_files+:} false; then :
15688 $as_echo_n "(cached) " >&6
15691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15692 /* end confdefs.h. */
15693 #include <sys/types.h>
15694 /* Check that off_t can represent 2**63 - 1 correctly.
15695 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15696 since some C++ compilers masquerading as C compilers
15697 incorrectly reject 9223372036854775807. */
15698 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15699 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15700 && LARGE_OFF_T % 2147483647 == 1)
15710 if ac_fn_c_try_compile "$LINENO"; then :
15711 ac_cv_sys_large_files=no; break
15713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15715 /* end confdefs.h. */
15716 #define _LARGE_FILES 1
15717 #include <sys/types.h>
15718 /* Check that off_t can represent 2**63 - 1 correctly.
15719 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15720 since some C++ compilers masquerading as C compilers
15721 incorrectly reject 9223372036854775807. */
15722 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15723 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15724 && LARGE_OFF_T % 2147483647 == 1)
15734 if ac_fn_c_try_compile "$LINENO"; then :
15735 ac_cv_sys_large_files=1; break
15737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15738 ac_cv_sys_large_files=unknown
15742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15743 $as_echo "$ac_cv_sys_large_files" >&6; }
15744 case $ac_cv_sys_large_files in #(
15747 cat >>confdefs.h <<_ACEOF
15748 #define _LARGE_FILES $ac_cv_sys_large_files
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h needs _XOPEN_SOURCE_EXTENDED" >&5
15759 $as_echo_n "checking whether sys/types.h needs _XOPEN_SOURCE_EXTENDED... " >&6; }
15760 if ${sudo_cv_xopen_source_extended+:} false; then :
15761 $as_echo_n "(cached) " >&6
15763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15764 /* end confdefs.h. */
15765 $ac_includes_default
15766 #include <sys/socket.h>
15775 if ac_fn_c_try_compile "$LINENO"; then :
15776 sudo_cv_xopen_source_extended=no
15779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15780 /* end confdefs.h. */
15781 #define _XOPEN_SOURCE_EXTENDED
15782 $ac_includes_default
15783 #include <sys/socket.h>
15792 if ac_fn_c_try_compile "$LINENO"; then :
15793 sudo_cv_xopen_source_extended=yes
15795 sudo_cv_xopen_source_extended=error
15797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_xopen_source_extended" >&5
15803 $as_echo "$sudo_cv_xopen_source_extended" >&6; }
15804 if test "$sudo_cv_xopen_source_extended" = "yes"; then
15805 OSDEFS="${OSDEFS} -D_XOPEN_SOURCE_EXTENDED"
15806 cat >>confdefs.h <<\EOF
15807 #define _XOPEN_SOURCE_EXTENDED 1
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX termios" >&5
15814 $as_echo_n "checking POSIX termios... " >&6; }
15815 if ${ac_cv_sys_posix_termios+:} false; then :
15816 $as_echo_n "(cached) " >&6
15818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15819 /* end confdefs.h. */
15820 #include <sys/types.h>
15821 #include <unistd.h>
15822 #include <termios.h>
15827 /* SunOS 4.0.3 has termios.h but not the library calls. */
15833 if ac_fn_c_try_link "$LINENO"; then :
15834 ac_cv_sys_posix_termios=yes
15836 ac_cv_sys_posix_termios=no
15838 rm -f core conftest.err conftest.$ac_objext \
15839 conftest$ac_exeext conftest.$ac_ext
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_posix_termios" >&5
15842 $as_echo "$ac_cv_sys_posix_termios" >&6; }
15844 if test "$ac_cv_sys_posix_termios" != "yes"; then
15845 as_fn_error $? "Must have POSIX termios to build sudo" "$LINENO" 5
15849 if test X"$ac_cv_header_paths_h" = X"yes"; then
15850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15851 /* end confdefs.h. */
15852 $ac_includes_default
15857 char *p = _PATH_MAILDIR;
15862 if ac_fn_c_try_compile "$LINENO"; then :
15865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15867 if test $maildir = no; then
15868 # Solaris has maillock.h which defines MAILDIR
15869 for ac_header in maillock.h
15871 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
15872 if test "x$ac_cv_header_maillock_h" = xyes; then :
15873 cat >>confdefs.h <<_ACEOF
15874 #define HAVE_MAILLOCK_H 1
15877 cat >>confdefs.h <<\EOF
15878 #define _PATH_MAILDIR MAILDIR
15887 if test $maildir = no; then
15888 for d in /var/mail /var/spool/mail /usr/spool/mail; do
15889 if test -d "$d"; then
15891 cat >>confdefs.h <<EOF
15892 #define _PATH_MAILDIR "$d"
15898 if test $maildir = no; then
15899 # unable to find mail dir, hope for the best
15900 cat >>confdefs.h <<EOF
15901 #define _PATH_MAILDIR "/var/mail"
15908 if test ${with_logincap-'no'} != "no"; then
15909 for ac_header in login_cap.h
15911 ac_fn_c_check_header_mongrel "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" "$ac_includes_default"
15912 if test "x$ac_cv_header_login_cap_h" = xyes; then :
15913 cat >>confdefs.h <<_ACEOF
15914 #define HAVE_LOGIN_CAP_H 1
15916 LOGINCAP_USAGE='[-c class|-] '; LCMAN=1
15919 SUDO_LIBS="${SUDO_LIBS} -lutil"
15920 SUDOERS_LIBS="${SUDOERS_LIBS} -lutil"
15929 if test ${with_project-'no'} != "no"; then
15930 ac_fn_c_check_header_mongrel "$LINENO" "project.h" "ac_cv_header_project_h" "$ac_includes_default"
15931 if test "x$ac_cv_header_project_h" = xyes; then :
15933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproject in -lproject" >&5
15934 $as_echo_n "checking for setproject in -lproject... " >&6; }
15935 if ${ac_cv_lib_project_setproject+:} false; then :
15936 $as_echo_n "(cached) " >&6
15938 ac_check_lib_save_LIBS=$LIBS
15939 LIBS="-lproject $LIBS"
15940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15941 /* end confdefs.h. */
15943 /* Override any GCC internal prototype to avoid an error.
15944 Use char because int might match the return type of a GCC
15945 builtin and then its argument prototype would still apply. */
15949 char setproject ();
15953 return setproject ();
15958 if ac_fn_c_try_link "$LINENO"; then :
15959 ac_cv_lib_project_setproject=yes
15961 ac_cv_lib_project_setproject=no
15963 rm -f core conftest.err conftest.$ac_objext \
15964 conftest$ac_exeext conftest.$ac_ext
15965 LIBS=$ac_check_lib_save_LIBS
15967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_project_setproject" >&5
15968 $as_echo "$ac_cv_lib_project_setproject" >&6; }
15969 if test "x$ac_cv_lib_project_setproject" = xyes; then :
15971 $as_echo "#define HAVE_PROJECT_H 1" >>confdefs.h
15973 SUDO_LIBS="${SUDO_LIBS} -lproject"
15982 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
15983 if test "x$ac_cv_type_mode_t" = xyes; then :
15987 cat >>confdefs.h <<_ACEOF
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
15994 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
15995 if ${ac_cv_type_uid_t+:} false; then :
15996 $as_echo_n "(cached) " >&6
15998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15999 /* end confdefs.h. */
16000 #include <sys/types.h>
16003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16004 $EGREP "uid_t" >/dev/null 2>&1; then :
16005 ac_cv_type_uid_t=yes
16007 ac_cv_type_uid_t=no
16012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
16013 $as_echo "$ac_cv_type_uid_t" >&6; }
16014 if test $ac_cv_type_uid_t = no; then
16016 $as_echo "#define uid_t int" >>confdefs.h
16019 $as_echo "#define gid_t int" >>confdefs.h
16023 ac_fn_c_check_type "$LINENO" "__signed char" "ac_cv_type___signed_char" "$ac_includes_default"
16024 if test "x$ac_cv_type___signed_char" = xyes; then :
16027 ac_fn_c_check_type "$LINENO" "signed char" "ac_cv_type_signed_char" "$ac_includes_default"
16028 if test "x$ac_cv_type_signed_char" = xyes; then :
16029 $as_echo "#define __signed signed" >>confdefs.h
16032 $as_echo "#define __signed /**/" >>confdefs.h
16038 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <sys/types.h>
16039 #include <signal.h>
16041 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
16044 $as_echo "#define sig_atomic_t int" >>confdefs.h
16048 ac_fn_c_check_type "$LINENO" "sigaction_t" "ac_cv_type_sigaction_t" "#include <sys/types.h>
16049 #include <signal.h>
16051 if test "x$ac_cv_type_sigaction_t" = xyes; then :
16053 cat >>confdefs.h <<_ACEOF
16054 #define HAVE_SIGACTION_T 1
16060 ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "#include <sys/types.h>
16061 #if TIME_WITH_SYS_TIME
16062 # include <sys/time.h>
16066 if test "x$ac_cv_type_struct_timespec" = xyes; then :
16068 cat >>confdefs.h <<_ACEOF
16069 #define HAVE_STRUCT_TIMESPEC 1
16075 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#include <sys/types.h>
16076 #include <netinet/in.h>
16078 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
16080 cat >>confdefs.h <<_ACEOF
16081 #define HAVE_STRUCT_IN6_ADDR 1
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
16089 $as_echo_n "checking for long long int... " >&6; }
16090 if ${ac_cv_type_long_long_int+:} false; then :
16091 $as_echo_n "(cached) " >&6
16093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16094 /* end confdefs.h. */
16096 /* For now, do not test the preprocessor; as of 2007 there are too many
16097 implementations with broken preprocessors. Perhaps this can
16098 be revisited in 2012. In the meantime, code should not expect
16099 #if to work with literals wider than 32 bits. */
16100 /* Test literals. */
16101 long long int ll = 9223372036854775807ll;
16102 long long int nll = -9223372036854775807LL;
16103 unsigned long long int ull = 18446744073709551615ULL;
16104 /* Test constant expressions. */
16105 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16107 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16113 /* Test availability of runtime routines for shift and division. */
16114 long long int llmax = 9223372036854775807ll;
16115 unsigned long long int ullmax = 18446744073709551615ull;
16116 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16117 | (llmax / ll) | (llmax % ll)
16118 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16119 | (ullmax / ull) | (ullmax % ull));
16125 if ac_fn_c_try_link "$LINENO"; then :
16126 if test "$cross_compiling" = yes; then :
16127 ac_cv_type_long_long_int=yes
16129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16130 /* end confdefs.h. */
16131 #include <limits.h>
16134 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16135 # define LLONG_MAX (HALF - 1 + HALF)
16140 long long int n = 1;
16144 long long int m = n << i;
16147 if (LLONG_MAX / 2 < m)
16155 if ac_fn_c_try_run "$LINENO"; then :
16156 ac_cv_type_long_long_int=yes
16158 ac_cv_type_long_long_int=no
16160 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16161 conftest.$ac_objext conftest.beam conftest.$ac_ext
16165 ac_cv_type_long_long_int=no
16167 rm -f core conftest.err conftest.$ac_objext \
16168 conftest$ac_exeext conftest.$ac_ext
16170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
16171 $as_echo "$ac_cv_type_long_long_int" >&6; }
16172 if test $ac_cv_type_long_long_int = yes; then
16174 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
16178 if test X"$ac_cv_type_long_long_int" != X"yes"; then
16179 as_fn_error $? "\"C compiler does not appear have required long long support\"" "$LINENO" 5
16181 # The cast to long int works around a bug in the HP C Compiler
16182 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16183 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16184 # This bug is HP SR number 8606223364.
16185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
16186 $as_echo_n "checking size of long int... " >&6; }
16187 if ${ac_cv_sizeof_long_int+:} false; then :
16188 $as_echo_n "(cached) " >&6
16190 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
16193 if test "$ac_cv_type_long_int" = yes; then
16194 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16196 as_fn_error 77 "cannot compute sizeof (long int)
16197 See \`config.log' for more details" "$LINENO" 5; }
16199 ac_cv_sizeof_long_int=0
16204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
16205 $as_echo "$ac_cv_sizeof_long_int" >&6; }
16209 cat >>confdefs.h <<_ACEOF
16210 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
16214 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16215 if test "x$ac_cv_type_size_t" = xyes; then :
16219 cat >>confdefs.h <<_ACEOF
16220 #define size_t unsigned int
16225 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
16226 if test "x$ac_cv_type_ssize_t" = xyes; then :
16230 cat >>confdefs.h <<_ACEOF
16231 #define ssize_t int
16236 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
16237 if test "x$ac_cv_type_dev_t" = xyes; then :
16241 cat >>confdefs.h <<_ACEOF
16247 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
16248 if test "x$ac_cv_type_ino_t" = xyes; then :
16252 cat >>confdefs.h <<_ACEOF
16253 #define ino_t unsigned int
16258 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
16259 if test "x$ac_cv_type_uint8_t" = xyes; then :
16263 cat >>confdefs.h <<_ACEOF
16264 #define uint8_t unsigned char
16269 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
16270 if test "x$ac_cv_type_uint32_t" = xyes; then :
16274 cat >>confdefs.h <<_ACEOF
16275 #define uint32_t unsigned int
16280 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
16281 if test "x$ac_cv_type_uint64_t" = xyes; then :
16285 cat >>confdefs.h <<_ACEOF
16286 #define uint64_t unsigned long long
16291 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
16292 $ac_includes_default
16293 #include <sys/socket.h>
16295 if test "x$ac_cv_type_socklen_t" = xyes; then :
16298 $as_echo "#define socklen_t unsigned int" >>confdefs.h
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking max length of uid_t" >&5
16304 $as_echo_n "checking max length of uid_t... " >&6; }
16305 if ${sudo_cv_uid_t_len+:} false; then :
16306 $as_echo_n "(cached) " >&6
16309 if test "$cross_compiling" = yes; then :
16310 sudo_cv_uid_t_len=10
16312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16313 /* end confdefs.h. */
16316 #include <limits.h>
16317 #include <sys/types.h>
16318 #include <sys/param.h>
16322 uid_t u = (uid_t) -1;
16324 if ((f = fopen("conftestdata", "w")) == NULL)
16327 (void) sprintf(b, "%lu", (unsigned long) u);
16328 (void) fprintf(f, "%d\n", strlen(b));
16333 if ac_fn_c_try_run "$LINENO"; then :
16334 sudo_cv_uid_t_len=`cat conftestdata`
16336 sudo_cv_uid_t_len=10
16338 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16339 conftest.$ac_objext conftest.beam conftest.$ac_ext
16346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_uid_t_len" >&5
16347 $as_echo "$sudo_cv_uid_t_len" >&6; }
16349 cat >>confdefs.h <<_ACEOF
16350 #define MAX_UID_T_LEN $sudo_cv_uid_t_len
16355 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" " #include <sys/types.h>
16356 #include <sys/socket.h>
16359 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
16361 $as_echo "#define HAVE_STRUCT_SOCKADDR_SA_LEN 1" >>confdefs.h
16367 CFLAGS="$CFLAGS $OSDEFS"
16368 if test $ac_cv_header_utmpx_h = "yes"; then
16369 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_id" "ac_cv_member_struct_utmpx_ut_id" "
16370 #include <sys/types.h>
16374 if test "x$ac_cv_member_struct_utmpx_ut_id" = xyes; then :
16376 cat >>confdefs.h <<_ACEOF
16377 #define HAVE_STRUCT_UTMPX_UT_ID 1
16382 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_pid" "ac_cv_member_struct_utmpx_ut_pid" "
16383 #include <sys/types.h>
16387 if test "x$ac_cv_member_struct_utmpx_ut_pid" = xyes; then :
16389 cat >>confdefs.h <<_ACEOF
16390 #define HAVE_STRUCT_UTMPX_UT_PID 1
16395 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_tv" "ac_cv_member_struct_utmpx_ut_tv" "
16396 #include <sys/types.h>
16400 if test "x$ac_cv_member_struct_utmpx_ut_tv" = xyes; then :
16402 cat >>confdefs.h <<_ACEOF
16403 #define HAVE_STRUCT_UTMPX_UT_TV 1
16408 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_type" "ac_cv_member_struct_utmpx_ut_type" "
16409 #include <sys/types.h>
16413 if test "x$ac_cv_member_struct_utmpx_ut_type" = xyes; then :
16415 cat >>confdefs.h <<_ACEOF
16416 #define HAVE_STRUCT_UTMPX_UT_TYPE 1
16422 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_exit.__e_termination" "ac_cv_member_struct_utmpx_ut_exit___e_termination" "
16423 #include <sys/types.h>
16427 if test "x$ac_cv_member_struct_utmpx_ut_exit___e_termination" = xyes; then :
16429 cat >>confdefs.h <<_ACEOF
16430 #define HAVE_STRUCT_UTMPX_UT_EXIT___E_TERMINATION 1
16433 $as_echo "#define HAVE_STRUCT_UTMPX_UT_EXIT 1" >>confdefs.h
16437 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_exit.e_termination" "ac_cv_member_struct_utmpx_ut_exit_e_termination" "
16438 #include <sys/types.h>
16442 if test "x$ac_cv_member_struct_utmpx_ut_exit_e_termination" = xyes; then :
16444 cat >>confdefs.h <<_ACEOF
16445 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_TERMINATION 1
16448 $as_echo "#define HAVE_STRUCT_UTMPX_UT_EXIT 1" >>confdefs.h
16456 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_id" "ac_cv_member_struct_utmp_ut_id" "
16457 #include <sys/types.h>
16461 if test "x$ac_cv_member_struct_utmp_ut_id" = xyes; then :
16463 cat >>confdefs.h <<_ACEOF
16464 #define HAVE_STRUCT_UTMP_UT_ID 1
16469 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" "
16470 #include <sys/types.h>
16474 if test "x$ac_cv_member_struct_utmp_ut_pid" = xyes; then :
16476 cat >>confdefs.h <<_ACEOF
16477 #define HAVE_STRUCT_UTMP_UT_PID 1
16482 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_tv" "ac_cv_member_struct_utmp_ut_tv" "
16483 #include <sys/types.h>
16487 if test "x$ac_cv_member_struct_utmp_ut_tv" = xyes; then :
16489 cat >>confdefs.h <<_ACEOF
16490 #define HAVE_STRUCT_UTMP_UT_TV 1
16495 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_type" "ac_cv_member_struct_utmp_ut_type" "
16496 #include <sys/types.h>
16500 if test "x$ac_cv_member_struct_utmp_ut_type" = xyes; then :
16502 cat >>confdefs.h <<_ACEOF
16503 #define HAVE_STRUCT_UTMP_UT_TYPE 1
16508 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_user" "ac_cv_member_struct_utmp_ut_user" "
16509 #include <sys/types.h>
16513 if test "x$ac_cv_member_struct_utmp_ut_user" = xyes; then :
16515 cat >>confdefs.h <<_ACEOF
16516 #define HAVE_STRUCT_UTMP_UT_USER 1
16522 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_exit.__e_termination" "ac_cv_member_struct_utmp_ut_exit___e_termination" "
16523 #include <sys/types.h>
16527 if test "x$ac_cv_member_struct_utmp_ut_exit___e_termination" = xyes; then :
16529 cat >>confdefs.h <<_ACEOF
16530 #define HAVE_STRUCT_UTMP_UT_EXIT___E_TERMINATION 1
16533 $as_echo "#define HAVE_STRUCT_UTMP_UT_EXIT 1" >>confdefs.h
16537 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_exit.e_termination" "ac_cv_member_struct_utmp_ut_exit_e_termination" "
16538 #include <sys/types.h>
16542 if test "x$ac_cv_member_struct_utmp_ut_exit_e_termination" = xyes; then :
16544 cat >>confdefs.h <<_ACEOF
16545 #define HAVE_STRUCT_UTMP_UT_EXIT_E_TERMINATION 1
16548 $as_echo "#define HAVE_STRUCT_UTMP_UT_EXIT 1" >>confdefs.h
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
16559 $as_echo_n "checking type of array argument to getgroups... " >&6; }
16560 if ${ac_cv_type_getgroups+:} false; then :
16561 $as_echo_n "(cached) " >&6
16563 if test "$cross_compiling" = yes; then :
16564 ac_cv_type_getgroups=cross
16566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16567 /* end confdefs.h. */
16568 /* Thanks to Mike Rendell for this test. */
16569 $ac_includes_default
16572 #define MAX(x, y) ((x) > (y) ? (x) : (y))
16577 gid_t gidset[NGID];
16579 union { gid_t gval; long int lval; } val;
16582 for (i = 0; i < NGID; i++)
16583 gidset[i] = val.gval;
16584 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
16586 /* Exit non-zero if getgroups seems to require an array of ints. This
16587 happens when gid_t is short int but getgroups modifies an array
16589 return n > 0 && gidset[n] != val.gval;
16592 if ac_fn_c_try_run "$LINENO"; then :
16593 ac_cv_type_getgroups=gid_t
16595 ac_cv_type_getgroups=int
16597 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16598 conftest.$ac_objext conftest.beam conftest.$ac_ext
16601 if test $ac_cv_type_getgroups = cross; then
16602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16603 /* end confdefs.h. */
16604 #include <unistd.h>
16607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16608 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
16609 ac_cv_type_getgroups=gid_t
16611 ac_cv_type_getgroups=int
16617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
16618 $as_echo "$ac_cv_type_getgroups" >&6; }
16620 cat >>confdefs.h <<_ACEOF
16621 #define GETGROUPS_T $ac_cv_type_getgroups
16625 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16626 if test "x$ac_cv_type_size_t" = xyes; then :
16630 cat >>confdefs.h <<_ACEOF
16631 #define size_t unsigned int
16636 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
16637 if test "x$ac_cv_func_getgroups" = xyes; then :
16642 # If we don't yet have getgroups, see if it's in -lbsd.
16643 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
16645 if test $ac_cv_func_getgroups = no; then
16646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
16647 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
16648 if ${ac_cv_lib_bsd_getgroups+:} false; then :
16649 $as_echo_n "(cached) " >&6
16651 ac_check_lib_save_LIBS=$LIBS
16653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16654 /* end confdefs.h. */
16656 /* Override any GCC internal prototype to avoid an error.
16657 Use char because int might match the return type of a GCC
16658 builtin and then its argument prototype would still apply. */
16666 return getgroups ();
16671 if ac_fn_c_try_link "$LINENO"; then :
16672 ac_cv_lib_bsd_getgroups=yes
16674 ac_cv_lib_bsd_getgroups=no
16676 rm -f core conftest.err conftest.$ac_objext \
16677 conftest$ac_exeext conftest.$ac_ext
16678 LIBS=$ac_check_lib_save_LIBS
16680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
16681 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
16682 if test "x$ac_cv_lib_bsd_getgroups" = xyes; then :
16683 GETGROUPS_LIB=-lbsd
16688 # Run the program to test the functionality of the system-supplied
16689 # getgroups function only if there is such a function.
16690 if test $ac_cv_func_getgroups = yes; then
16691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
16692 $as_echo_n "checking for working getgroups... " >&6; }
16693 if ${ac_cv_func_getgroups_works+:} false; then :
16694 $as_echo_n "(cached) " >&6
16696 if test "$cross_compiling" = yes; then :
16697 ac_cv_func_getgroups_works=no
16699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16700 /* end confdefs.h. */
16701 $ac_includes_default
16705 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
16706 return getgroups (0, 0) == -1;
16711 if ac_fn_c_try_run "$LINENO"; then :
16712 ac_cv_func_getgroups_works=yes
16714 ac_cv_func_getgroups_works=no
16716 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16717 conftest.$ac_objext conftest.beam conftest.$ac_ext
16722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
16723 $as_echo "$ac_cv_func_getgroups_works" >&6; }
16725 ac_cv_func_getgroups_works=no
16727 if test $ac_cv_func_getgroups_works = yes; then
16729 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
16734 for ac_func in glob nl_langinfo regcomp setenv strftime strrchr strtoll \
16737 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16738 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16739 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16740 cat >>confdefs.h <<_ACEOF
16741 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16747 for ac_func in getgrouplist
16749 ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist"
16750 if test "x$ac_cv_func_getgrouplist" = xyes; then :
16751 cat >>confdefs.h <<_ACEOF
16752 #define HAVE_GETGROUPLIST 1
16759 for ac_func in getgrset
16761 ac_fn_c_check_func "$LINENO" "getgrset" "ac_cv_func_getgrset"
16762 if test "x$ac_cv_func_getgrset" = xyes; then :
16763 cat >>confdefs.h <<_ACEOF
16764 #define HAVE_GETGRSET 1
16772 ac_fn_c_check_func "$LINENO" "nss_search" "ac_cv_func_nss_search"
16773 if test "x$ac_cv_func_nss_search" = xyes; then :
16775 ac_fn_c_check_func "$LINENO" "_nss_XbyY_buf_alloc" "ac_cv_func__nss_XbyY_buf_alloc"
16776 if test "x$ac_cv_func__nss_XbyY_buf_alloc" = xyes; then :
16779 ac_fn_c_check_func "$LINENO" "_nss_initf_group" "ac_cv_func__nss_initf_group"
16780 if test "x$ac_cv_func__nss_initf_group" = xyes; then :
16782 for ac_header in nss_dbdefs.h
16784 ac_fn_c_check_header_mongrel "$LINENO" "nss_dbdefs.h" "ac_cv_header_nss_dbdefs_h" "$ac_includes_default"
16785 if test "x$ac_cv_header_nss_dbdefs_h" = xyes; then :
16786 cat >>confdefs.h <<_ACEOF
16787 #define HAVE_NSS_DBDEFS_H 1
16794 $as_echo "#define HAVE_NSS_SEARCH 1" >>confdefs.h
16796 $as_echo "#define HAVE__NSS_XBYY_BUF_ALLOC 1" >>confdefs.h
16798 $as_echo "#define HAVE__NSS_INITF_GROUP 1" >>confdefs.h
16807 ac_fn_c_check_func "$LINENO" "__nss_XbyY_buf_alloc" "ac_cv_func___nss_XbyY_buf_alloc"
16808 if test "x$ac_cv_func___nss_XbyY_buf_alloc" = xyes; then :
16810 ac_fn_c_check_func "$LINENO" "__nss_initf_group" "ac_cv_func___nss_initf_group"
16811 if test "x$ac_cv_func___nss_initf_group" = xyes; then :
16813 for ac_header in nss_dbdefs.h
16815 ac_fn_c_check_header_mongrel "$LINENO" "nss_dbdefs.h" "ac_cv_header_nss_dbdefs_h" "$ac_includes_default"
16816 if test "x$ac_cv_header_nss_dbdefs_h" = xyes; then :
16817 cat >>confdefs.h <<_ACEOF
16818 #define HAVE_NSS_DBDEFS_H 1
16825 $as_echo "#define HAVE_NSS_SEARCH 1" >>confdefs.h
16827 $as_echo "#define HAVE___NSS_XBYY_BUF_ALLOC 1" >>confdefs.h
16829 $as_echo "#define HAVE___NSS_INITF_GROUP 1" >>confdefs.h
16845 case " $LIBOBJS " in
16846 *" getgrouplist.$ac_objext "* ) ;;
16847 *) LIBOBJS="$LIBOBJS getgrouplist.$ac_objext"
16855 for ac_func in getline
16857 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
16858 if test "x$ac_cv_func_getline" = xyes; then :
16859 cat >>confdefs.h <<_ACEOF
16860 #define HAVE_GETLINE 1
16865 case " $LIBOBJS " in
16866 *" getline.$ac_objext "* ) ;;
16867 *) LIBOBJS="$LIBOBJS getline.$ac_objext"
16871 for ac_func in fgetln
16873 ac_fn_c_check_func "$LINENO" "fgetln" "ac_cv_func_fgetln"
16874 if test "x$ac_cv_func_fgetln" = xyes; then :
16875 cat >>confdefs.h <<_ACEOF
16876 #define HAVE_FGETLN 1
16886 if test "$enable_hardening" != "no"; then
16887 O_CPPFLAGS="$CPPFLAGS"
16888 CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2"
16889 ac_fn_c_check_func "$LINENO" "__sprintf_chk" "ac_cv_func___sprintf_chk"
16890 if test "x$ac_cv_func___sprintf_chk" = xyes; then :
16892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16893 /* end confdefs.h. */
16898 char buf[4]; (void)sprintf(buf, "%s", "foo");
16903 if ac_fn_c_try_link "$LINENO"; then :
16904 OSDEFS="${OSDEFS} -D_FORTIFY_SOURCE=2"
16906 rm -f core conftest.err conftest.$ac_objext \
16907 conftest$ac_exeext conftest.$ac_ext
16911 CPPFLAGS="$O_CPPFLAGS"
16915 for ac_func in getutxid getutid
16917 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16918 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16919 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16920 cat >>confdefs.h <<_ACEOF
16921 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16923 utmp_style=POSIX; break
16927 if test "$utmp_style" = "LEGACY"; then
16928 for ac_func in getttyent ttyslot
16930 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16931 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16932 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16933 cat >>confdefs.h <<_ACEOF
16934 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16940 for ac_func in fseeko
16942 ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
16943 if test "x$ac_cv_func_fseeko" = xyes; then :
16944 cat >>confdefs.h <<_ACEOF
16945 #define HAVE_FSEEKO 1
16953 for ac_func in sysctl
16955 ac_fn_c_check_func "$LINENO" "sysctl" "ac_cv_func_sysctl"
16956 if test "x$ac_cv_func_sysctl" = xyes; then :
16957 cat >>confdefs.h <<_ACEOF
16958 #define HAVE_SYSCTL 1
16960 ac_fn_c_check_member "$LINENO" "struct kinfo_proc" "ki_tdev" "ac_cv_member_struct_kinfo_proc_ki_tdev" "
16961 #include <sys/param.h>
16962 #include <sys/sysctl.h>
16963 #include <sys/user.h>
16966 if test "x$ac_cv_member_struct_kinfo_proc_ki_tdev" = xyes; then :
16968 cat >>confdefs.h <<_ACEOF
16969 #define HAVE_STRUCT_KINFO_PROC_KI_TDEV 1
16975 ac_fn_c_check_member "$LINENO" "struct kinfo_proc2" "p_tdev" "ac_cv_member_struct_kinfo_proc2_p_tdev" "
16976 #include <sys/param.h>
16977 #include <sys/sysctl.h>
16980 if test "x$ac_cv_member_struct_kinfo_proc2_p_tdev" = xyes; then :
16982 cat >>confdefs.h <<_ACEOF
16983 #define HAVE_STRUCT_KINFO_PROC2_P_TDEV 1
16989 ac_fn_c_check_member "$LINENO" "struct kinfo_proc" "p_tdev" "ac_cv_member_struct_kinfo_proc_p_tdev" "
16990 #include <sys/param.h>
16991 #include <sys/sysctl.h>
16994 if test "x$ac_cv_member_struct_kinfo_proc_p_tdev" = xyes; then :
16996 cat >>confdefs.h <<_ACEOF
16997 #define HAVE_STRUCT_KINFO_PROC_P_TDEV 1
17003 ac_fn_c_check_member "$LINENO" "struct kinfo_proc" "kp_eproc.e_tdev" "ac_cv_member_struct_kinfo_proc_kp_eproc_e_tdev" "
17004 #include <sys/param.h>
17005 #include <sys/sysctl.h>
17008 if test "x$ac_cv_member_struct_kinfo_proc_kp_eproc_e_tdev" = xyes; then :
17010 cat >>confdefs.h <<_ACEOF
17011 #define HAVE_STRUCT_KINFO_PROC_KP_EPROC_E_TDEV 1
17031 for ac_func in openpty
17033 ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
17034 if test "x$ac_cv_func_openpty" = xyes; then :
17035 cat >>confdefs.h <<_ACEOF
17036 #define HAVE_OPENPTY 1
17038 for ac_header in libutil.h util.h pty.h
17040 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17041 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17042 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17043 cat >>confdefs.h <<_ACEOF
17044 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
17054 $as_echo_n "checking for openpty in -lutil... " >&6; }
17055 if ${ac_cv_lib_util_openpty+:} false; then :
17056 $as_echo_n "(cached) " >&6
17058 ac_check_lib_save_LIBS=$LIBS
17059 LIBS="-lutil $LIBS"
17060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17061 /* end confdefs.h. */
17063 /* Override any GCC internal prototype to avoid an error.
17064 Use char because int might match the return type of a GCC
17065 builtin and then its argument prototype would still apply. */
17078 if ac_fn_c_try_link "$LINENO"; then :
17079 ac_cv_lib_util_openpty=yes
17081 ac_cv_lib_util_openpty=no
17083 rm -f core conftest.err conftest.$ac_objext \
17084 conftest$ac_exeext conftest.$ac_ext
17085 LIBS=$ac_check_lib_save_LIBS
17087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
17088 $as_echo "$ac_cv_lib_util_openpty" >&6; }
17089 if test "x$ac_cv_lib_util_openpty" = xyes; then :
17091 for ac_header in libutil.h util.h pty.h
17093 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17094 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17095 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17096 cat >>confdefs.h <<_ACEOF
17097 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17104 case "$SUDO_LIBS" in
17106 *) SUDO_LIBS="${SUDO_LIBS} -lutil";;
17108 $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
17113 for ac_func in _getpty
17115 ac_fn_c_check_func "$LINENO" "_getpty" "ac_cv_func__getpty"
17116 if test "x$ac_cv_func__getpty" = xyes; then :
17117 cat >>confdefs.h <<_ACEOF
17118 #define HAVE__GETPTY 1
17123 for ac_func in grantpt
17125 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
17126 if test "x$ac_cv_func_grantpt" = xyes; then :
17127 cat >>confdefs.h <<_ACEOF
17128 #define HAVE_GRANTPT 1
17131 for ac_func in posix_openpt
17133 ac_fn_c_check_func "$LINENO" "posix_openpt" "ac_cv_func_posix_openpt"
17134 if test "x$ac_cv_func_posix_openpt" = xyes; then :
17135 cat >>confdefs.h <<_ACEOF
17136 #define HAVE_POSIX_OPENPT 1
17145 for ac_func in revoke
17147 ac_fn_c_check_func "$LINENO" "revoke" "ac_cv_func_revoke"
17148 if test "x$ac_cv_func_revoke" = xyes; then :
17149 cat >>confdefs.h <<_ACEOF
17150 #define HAVE_REVOKE 1
17171 for ac_func in unsetenv
17173 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
17174 if test "x$ac_cv_func_unsetenv" = xyes; then :
17175 cat >>confdefs.h <<_ACEOF
17176 #define HAVE_UNSETENV 1
17178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv returns void" >&5
17179 $as_echo_n "checking whether unsetenv returns void... " >&6; }
17180 if ${sudo_cv_func_unsetenv_void+:} false; then :
17181 $as_echo_n "(cached) " >&6
17183 if test "$cross_compiling" = yes; then :
17184 sudo_cv_func_unsetenv_void=no
17186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17187 /* end confdefs.h. */
17188 $ac_includes_default
17195 return unsetenv("FOO") != 0;
17202 if ac_fn_c_try_run "$LINENO"; then :
17203 sudo_cv_func_unsetenv_void=no
17205 sudo_cv_func_unsetenv_void=yes
17207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17208 conftest.$ac_objext conftest.beam conftest.$ac_ext
17212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_unsetenv_void" >&5
17213 $as_echo "$sudo_cv_func_unsetenv_void" >&6; }
17214 if test $sudo_cv_func_unsetenv_void = yes; then
17216 $as_echo "#define UNSETENV_VOID 1" >>confdefs.h
17223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether putenv takes a const argument" >&5
17224 $as_echo_n "checking whether putenv takes a const argument... " >&6; }
17225 if ${sudo_cv_func_putenv_const+:} false; then :
17226 $as_echo_n "(cached) " >&6
17228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17229 /* end confdefs.h. */
17230 $ac_includes_default
17231 int putenv(const char *string) {return 0;}
17240 if ac_fn_c_try_compile "$LINENO"; then :
17241 sudo_cv_func_putenv_const=yes
17243 sudo_cv_func_putenv_const=no
17245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_putenv_const" >&5
17249 $as_echo "$sudo_cv_func_putenv_const" >&6; }
17250 if test $sudo_cv_func_putenv_const = yes; then
17252 $as_echo "#define PUTENV_CONST const" >>confdefs.h
17255 $as_echo "#define PUTENV_CONST /**/" >>confdefs.h
17259 if test -z "$SKIP_SETRESUID"; then
17260 for ac_func in setresuid
17262 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
17263 if test "x$ac_cv_func_setresuid" = xyes; then :
17264 cat >>confdefs.h <<_ACEOF
17265 #define HAVE_SETRESUID 1
17269 for ac_func in getresuid
17271 ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid"
17272 if test "x$ac_cv_func_getresuid" = xyes; then :
17273 cat >>confdefs.h <<_ACEOF
17274 #define HAVE_GETRESUID 1
17285 if test -z "$SKIP_SETREUID"; then
17286 for ac_func in setreuid
17288 ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
17289 if test "x$ac_cv_func_setreuid" = xyes; then :
17290 cat >>confdefs.h <<_ACEOF
17291 #define HAVE_SETREUID 1
17298 for ac_func in seteuid
17300 ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
17301 if test "x$ac_cv_func_seteuid" = xyes; then :
17302 cat >>confdefs.h <<_ACEOF
17303 #define HAVE_SETEUID 1
17309 if test X"$with_interfaces" != X"no"; then
17310 for ac_func in getifaddrs
17312 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
17313 if test "x$ac_cv_func_getifaddrs" = xyes; then :
17314 cat >>confdefs.h <<_ACEOF
17315 #define HAVE_GETIFADDRS 1
17317 for ac_func in freeifaddrs
17319 ac_fn_c_check_func "$LINENO" "freeifaddrs" "ac_cv_func_freeifaddrs"
17320 if test "x$ac_cv_func_freeifaddrs" = xyes; then :
17321 cat >>confdefs.h <<_ACEOF
17322 #define HAVE_FREEIFADDRS 1
17332 if test -z "$BROKEN_GETCWD"; then
17333 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
17334 if test "x$ac_cv_func_getcwd" = xyes; then :
17335 $as_echo "#define HAVE_GETCWD 1" >>confdefs.h
17338 case " $LIBOBJS " in
17339 *" getcwd.$ac_objext "* ) ;;
17340 *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
17348 for ac_func in lockf flock
17350 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17351 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17352 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17353 cat >>confdefs.h <<_ACEOF
17354 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17360 for ac_func in innetgr _innetgr
17362 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17363 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17364 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17365 cat >>confdefs.h <<_ACEOF
17366 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17368 for ac_func in getdomainname
17370 ac_fn_c_check_func "$LINENO" "getdomainname" "ac_cv_func_getdomainname"
17371 if test "x$ac_cv_func_getdomainname" = xyes; then :
17372 cat >>confdefs.h <<_ACEOF
17373 #define HAVE_GETDOMAINNAME 1
17382 for ac_func in utimes
17384 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
17385 if test "x$ac_cv_func_utimes" = xyes; then :
17386 cat >>confdefs.h <<_ACEOF
17387 #define HAVE_UTIMES 1
17389 for ac_func in futimes futimesat
17391 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17392 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17393 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17394 cat >>confdefs.h <<_ACEOF
17395 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17402 for ac_func in futime
17404 ac_fn_c_check_func "$LINENO" "futime" "ac_cv_func_futime"
17405 if test "x$ac_cv_func_futime" = xyes; then :
17406 cat >>confdefs.h <<_ACEOF
17407 #define HAVE_FUTIME 1
17412 case " $LIBOBJS " in
17413 *" utimes.$ac_objext "* ) ;;
17414 *) LIBOBJS="$LIBOBJS utimes.$ac_objext"
17421 for ac_func in killpg
17423 ac_fn_c_check_func "$LINENO" "killpg" "ac_cv_func_killpg"
17424 if test "x$ac_cv_func_killpg" = xyes; then :
17425 cat >>confdefs.h <<_ACEOF
17426 #define HAVE_KILLPG 1
17430 case " $LIBOBJS " in
17431 *" killpg.$ac_objext "* ) ;;
17432 *) LIBOBJS="$LIBOBJS killpg.$ac_objext"
17439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fnmatch with FNM_CASEFOLD" >&5
17440 $as_echo_n "checking for working fnmatch with FNM_CASEFOLD... " >&6; }
17441 if ${sudo_cv_func_fnmatch+:} false; then :
17442 $as_echo_n "(cached) " >&6
17444 rm -f conftestdata; > conftestdata
17445 if test "$cross_compiling" = yes; then :
17446 sudo_cv_func_fnmatch=no
17448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17449 /* end confdefs.h. */
17450 #include <fnmatch.h>
17451 main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
17453 if ac_fn_c_try_run "$LINENO"; then :
17454 sudo_cv_func_fnmatch=yes
17456 sudo_cv_func_fnmatch=no
17458 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17459 conftest.$ac_objext conftest.beam conftest.$ac_ext
17462 rm -f core core.* *.core
17465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_fnmatch" >&5
17466 $as_echo "$sudo_cv_func_fnmatch" >&6; }
17467 if test $sudo_cv_func_fnmatch = yes; then :
17468 $as_echo "#define HAVE_FNMATCH 1" >>confdefs.h
17471 case " $LIBOBJS " in
17472 *" fnmatch.$ac_objext "* ) ;;
17473 *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
17477 COMPAT_TEST_PROGS="${COMPAT_TEST_PROGS}${COMPAT_TEST_PROGS+ }fnm_test"
17480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isblank" >&5
17481 $as_echo_n "checking for isblank... " >&6; }
17482 if ${sudo_cv_func_isblank+:} false; then :
17483 $as_echo_n "(cached) " >&6
17485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17486 /* end confdefs.h. */
17491 return (isblank('a'));
17496 if ac_fn_c_try_link "$LINENO"; then :
17497 sudo_cv_func_isblank=yes
17499 sudo_cv_func_isblank=no
17501 rm -f core conftest.err conftest.$ac_objext \
17502 conftest$ac_exeext conftest.$ac_ext
17504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_isblank" >&5
17505 $as_echo "$sudo_cv_func_isblank" >&6; }
17507 if test "$sudo_cv_func_isblank" = "yes"; then
17509 $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
17512 case " $LIBOBJS " in
17513 *" isblank.$ac_objext "* ) ;;
17514 *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
17520 ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
17521 if test "x$ac_cv_func_memrchr" = xyes; then :
17522 $as_echo "#define HAVE_MEMRCHR 1" >>confdefs.h
17525 case " $LIBOBJS " in
17526 *" memrchr.$ac_objext "* ) ;;
17527 *) LIBOBJS="$LIBOBJS memrchr.$ac_objext"
17533 ac_fn_c_check_func "$LINENO" "pw_dup" "ac_cv_func_pw_dup"
17534 if test "x$ac_cv_func_pw_dup" = xyes; then :
17535 $as_echo "#define HAVE_PW_DUP 1" >>confdefs.h
17538 case " $LIBOBJS " in
17539 *" pw_dup.$ac_objext "* ) ;;
17540 *) LIBOBJS="$LIBOBJS pw_dup.$ac_objext"
17546 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
17547 if test "x$ac_cv_func_strlcpy" = xyes; then :
17548 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
17551 case " $LIBOBJS " in
17552 *" strlcpy.$ac_objext "* ) ;;
17553 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
17559 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
17560 if test "x$ac_cv_func_strlcat" = xyes; then :
17561 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
17564 case " $LIBOBJS " in
17565 *" strlcat.$ac_objext "* ) ;;
17566 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
17573 for ac_func in nanosleep
17575 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
17576 if test "x$ac_cv_func_nanosleep" = xyes; then :
17577 cat >>confdefs.h <<_ACEOF
17578 #define HAVE_NANOSLEEP 1
17583 # On Solaris, nanosleep is in librt
17584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
17585 $as_echo_n "checking for nanosleep in -lrt... " >&6; }
17586 if ${ac_cv_lib_rt_nanosleep+:} false; then :
17587 $as_echo_n "(cached) " >&6
17589 ac_check_lib_save_LIBS=$LIBS
17591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17592 /* end confdefs.h. */
17594 /* Override any GCC internal prototype to avoid an error.
17595 Use char because int might match the return type of a GCC
17596 builtin and then its argument prototype would still apply. */
17604 return nanosleep ();
17609 if ac_fn_c_try_link "$LINENO"; then :
17610 ac_cv_lib_rt_nanosleep=yes
17612 ac_cv_lib_rt_nanosleep=no
17614 rm -f core conftest.err conftest.$ac_objext \
17615 conftest$ac_exeext conftest.$ac_ext
17616 LIBS=$ac_check_lib_save_LIBS
17618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
17619 $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
17620 if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
17621 REPLAY_LIBS="${REPLAY_LIBS} -lrt"
17623 case " $LIBOBJS " in
17624 *" nanosleep.$ac_objext "* ) ;;
17625 *) LIBOBJS="$LIBOBJS nanosleep.$ac_objext"
17635 for ac_func in closefrom
17637 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
17638 if test "x$ac_cv_func_closefrom" = xyes; then :
17639 cat >>confdefs.h <<_ACEOF
17640 #define HAVE_CLOSEFROM 1
17644 case " $LIBOBJS " in
17645 *" closefrom.$ac_objext "* ) ;;
17646 *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
17650 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" " #include <limits.h>
17653 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
17654 $as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h
17662 for ac_func in mkstemps mkdtemp
17664 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17665 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17666 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17667 cat >>confdefs.h <<_ACEOF
17668 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17673 for ac_func in random lrand48
17675 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17676 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17677 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17678 cat >>confdefs.h <<_ACEOF
17679 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17685 case " $LIBOBJS " in
17686 *" mktemp.$ac_objext "* ) ;;
17687 *) LIBOBJS="$LIBOBJS mktemp.$ac_objext"
17695 for ac_func in snprintf vsnprintf asprintf vasprintf
17697 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17698 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17699 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17700 cat >>confdefs.h <<_ACEOF
17701 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17709 if test X"$ac_cv_type_struct_timespec" != X"no"; then
17710 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
17711 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
17712 $as_echo "#define HAVE_ST_MTIM 1" >>confdefs.h
17714 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.st__tim" "ac_cv_member_struct_stat_st_mtim_st__tim" "$ac_includes_default"
17715 if test "x$ac_cv_member_struct_stat_st_mtim_st__tim" = xyes; then :
17716 $as_echo "#define HAVE_ST__TIM 1" >>confdefs.h
17721 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
17722 if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
17723 $as_echo "#define HAVE_ST_MTIMESPEC 1" >>confdefs.h
17730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17731 /* end confdefs.h. */
17732 #include <sys/types.h>
17733 #include <$ac_header_dirent>
17737 DIR *d; (void)dirfd(d);
17742 if ac_fn_c_try_link "$LINENO"; then :
17743 $as_echo "#define HAVE_DIRFD 1" >>confdefs.h
17746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17747 /* end confdefs.h. */
17748 #include <sys/types.h>
17749 #include <$ac_header_dirent>
17753 DIR d; memset(&d, 0, sizeof(d)); return(d.dd_fd);
17758 if ac_fn_c_try_link "$LINENO"; then :
17759 $as_echo "#define HAVE_DD_FD 1" >>confdefs.h
17762 rm -f core conftest.err conftest.$ac_objext \
17763 conftest$ac_exeext conftest.$ac_ext
17765 rm -f core conftest.err conftest.$ac_objext \
17766 conftest$ac_exeext conftest.$ac_ext
17767 ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "
17768 $ac_includes_default
17769 #include <$ac_header_dirent>
17772 if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then :
17774 cat >>confdefs.h <<_ACEOF
17775 #define HAVE_STRUCT_DIRENT_D_TYPE 1
17781 if test -n "$NEED_SNPRINTF"; then
17782 case " $LIBOBJS " in
17783 *" snprintf.$ac_objext "* ) ;;
17784 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
17789 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
17790 if test "x$ac_cv_func_socket" = xyes; then :
17794 for libs in "-lsocket" "-linet" "-lsocket -lnsl"; do
17796 for lib in $libs; do
17797 case "$NET_LIBS" in
17799 *) _libs="$_libs $lib";;
17803 test -z "$libs" && continue
17804 lib="`echo \"$libs\"|sed -e 's/^-l//' -e 's/ .*$//'`"
17805 extralibs="`echo \"$libs\"|sed 's/^-l[^ ]*//'`"
17807 _sudo_check_lib_extras=`echo "$extralibs"|sed -e 's/ *//g' -e 's/-l/_/g'`
17808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -l$lib${5+ }$extralibs" >&5
17809 $as_echo_n "checking for socket in -l$lib${5+ }$extralibs... " >&6; }
17810 if { as_var=sudo_cv_lib_$lib''_socket$_sudo_check_lib_extras; eval \${$as_var+:} false; }; then :
17811 $as_echo_n "(cached) " >&6
17814 SUDO_CHECK_LIB_OLIBS="$LIBS"
17815 LIBS="$LIBS -l$lib${5+ }$extralibs"
17816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17817 /* end confdefs.h. */
17819 /* Override any GCC internal prototype to avoid an error.
17820 Use char because int might match the return type of a GCC
17821 builtin and then its argument prototype would still apply. */
17834 if ac_fn_c_try_link "$LINENO"; then :
17835 eval sudo_cv_lib_$lib''_socket$_sudo_check_lib_extras=yes
17837 eval sudo_cv_lib_$lib''_socket$_sudo_check_lib_extras=no
17840 rm -f core conftest.err conftest.$ac_objext \
17841 conftest$ac_exeext conftest.$ac_ext
17842 LIBS="$SUDO_CHECK_LIB_OLIBS"
17846 if eval test \$sudo_cv_lib_$lib''_socket$_sudo_check_lib_extras = "yes"; then
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17848 $as_echo "yes" >&6; }
17849 NET_LIBS="${NET_LIBS} $libs"; LIBS="${LIBS} $libs"; break
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17852 $as_echo "no" >&6; }
17860 ac_fn_c_check_func "$LINENO" "inet_addr" "ac_cv_func_inet_addr"
17861 if test "x$ac_cv_func_inet_addr" = xyes; then :
17865 ac_fn_c_check_func "$LINENO" "__inet_addr" "ac_cv_func___inet_addr"
17866 if test "x$ac_cv_func___inet_addr" = xyes; then :
17870 for libs in "-lsocket" "-linet" "-lsocket -lnsl"; do
17872 for lib in $libs; do
17873 case "$NET_LIBS" in
17875 *) _libs="$_libs $lib";;
17879 test -z "$libs" && continue
17880 lib="`echo \"$libs\"|sed -e 's/^-l//' -e 's/ .*$//'`"
17881 extralibs="`echo \"$libs\"|sed 's/^-l[^ ]*//'`"
17883 _sudo_check_lib_extras=`echo "$extralibs"|sed -e 's/ *//g' -e 's/-l/_/g'`
17884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -l$lib${5+ }$extralibs" >&5
17885 $as_echo_n "checking for inet_addr in -l$lib${5+ }$extralibs... " >&6; }
17886 if { as_var=sudo_cv_lib_$lib''_inet_addr$_sudo_check_lib_extras; eval \${$as_var+:} false; }; then :
17887 $as_echo_n "(cached) " >&6
17890 SUDO_CHECK_LIB_OLIBS="$LIBS"
17891 LIBS="$LIBS -l$lib${5+ }$extralibs"
17892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17893 /* end confdefs.h. */
17895 /* Override any GCC internal prototype to avoid an error.
17896 Use char because int might match the return type of a GCC
17897 builtin and then its argument prototype would still apply. */
17905 return inet_addr ();
17910 if ac_fn_c_try_link "$LINENO"; then :
17911 eval sudo_cv_lib_$lib''_inet_addr$_sudo_check_lib_extras=yes
17913 eval sudo_cv_lib_$lib''_inet_addr$_sudo_check_lib_extras=no
17916 rm -f core conftest.err conftest.$ac_objext \
17917 conftest$ac_exeext conftest.$ac_ext
17918 LIBS="$SUDO_CHECK_LIB_OLIBS"
17922 if eval test \$sudo_cv_lib_$lib''_inet_addr$_sudo_check_lib_extras = "yes"; then
17923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17924 $as_echo "yes" >&6; }
17925 NET_LIBS="${NET_LIBS} $libs"; LIBS="${LIBS} $libs"; break
17927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17928 $as_echo "no" >&6; }
17939 ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
17940 if test "x$ac_cv_func_syslog" = xyes; then :
17944 for libs in "-lsocket" "-linet" "-lsocket -lnsl"; do
17946 for lib in $libs; do
17947 case "$NET_LIBS" in
17949 *) _libs="$_libs $lib";;
17953 test -z "$libs" && continue
17954 lib="`echo \"$libs\"|sed -e 's/^-l//' -e 's/ .*$//'`"
17955 extralibs="`echo \"$libs\"|sed 's/^-l[^ ]*//'`"
17957 _sudo_check_lib_extras=`echo "$extralibs"|sed -e 's/ *//g' -e 's/-l/_/g'`
17958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog in -l$lib${5+ }$extralibs" >&5
17959 $as_echo_n "checking for syslog in -l$lib${5+ }$extralibs... " >&6; }
17960 if { as_var=sudo_cv_lib_$lib''_syslog$_sudo_check_lib_extras; eval \${$as_var+:} false; }; then :
17961 $as_echo_n "(cached) " >&6
17964 SUDO_CHECK_LIB_OLIBS="$LIBS"
17965 LIBS="$LIBS -l$lib${5+ }$extralibs"
17966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17967 /* end confdefs.h. */
17969 /* Override any GCC internal prototype to avoid an error.
17970 Use char because int might match the return type of a GCC
17971 builtin and then its argument prototype would still apply. */
17984 if ac_fn_c_try_link "$LINENO"; then :
17985 eval sudo_cv_lib_$lib''_syslog$_sudo_check_lib_extras=yes
17987 eval sudo_cv_lib_$lib''_syslog$_sudo_check_lib_extras=no
17990 rm -f core conftest.err conftest.$ac_objext \
17991 conftest$ac_exeext conftest.$ac_ext
17992 LIBS="$SUDO_CHECK_LIB_OLIBS"
17996 if eval test \$sudo_cv_lib_$lib''_syslog$_sudo_check_lib_extras = "yes"; then
17997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17998 $as_echo "yes" >&6; }
17999 NET_LIBS="${NET_LIBS} $libs"; LIBS="${LIBS} $libs"; break
18001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18002 $as_echo "no" >&6; }
18010 for ac_func in getaddrinfo
18012 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
18013 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
18014 cat >>confdefs.h <<_ACEOF
18015 #define HAVE_GETADDRINFO 1
18021 for libs in "-lsocket" "-linet" "-lsocket -lnsl"; do
18023 for lib in $libs; do
18024 case "$NET_LIBS" in
18026 *) _libs="$_libs $lib";;
18030 test -z "$libs" && continue
18031 lib="`echo \"$libs\"|sed -e 's/^-l//' -e 's/ .*$//'`"
18032 extralibs="`echo \"$libs\"|sed 's/^-l[^ ]*//'`"
18034 _sudo_check_lib_extras=`echo "$extralibs"|sed -e 's/ *//g' -e 's/-l/_/g'`
18035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -l$lib${5+ }$extralibs" >&5
18036 $as_echo_n "checking for getaddrinfo in -l$lib${5+ }$extralibs... " >&6; }
18037 if { as_var=sudo_cv_lib_$lib''_getaddrinfo$_sudo_check_lib_extras; eval \${$as_var+:} false; }; then :
18038 $as_echo_n "(cached) " >&6
18041 SUDO_CHECK_LIB_OLIBS="$LIBS"
18042 LIBS="$LIBS -l$lib${5+ }$extralibs"
18043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18044 /* end confdefs.h. */
18046 /* Override any GCC internal prototype to avoid an error.
18047 Use char because int might match the return type of a GCC
18048 builtin and then its argument prototype would still apply. */
18052 char getaddrinfo ();
18056 return getaddrinfo ();
18061 if ac_fn_c_try_link "$LINENO"; then :
18062 eval sudo_cv_lib_$lib''_getaddrinfo$_sudo_check_lib_extras=yes
18064 eval sudo_cv_lib_$lib''_getaddrinfo$_sudo_check_lib_extras=no
18067 rm -f core conftest.err conftest.$ac_objext \
18068 conftest$ac_exeext conftest.$ac_ext
18069 LIBS="$SUDO_CHECK_LIB_OLIBS"
18073 if eval test \$sudo_cv_lib_$lib''_getaddrinfo$_sudo_check_lib_extras = "yes"; then
18074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18075 $as_echo "yes" >&6; }
18076 NET_LIBS="${NET_LIBS} $libs"; LIBS="${LIBS} $libs"; found=yes; break
18078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18079 $as_echo "no" >&6; }
18084 if test X"$found" != X"no"; then
18085 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
18092 for ac_func in getprogname
18094 ac_fn_c_check_func "$LINENO" "getprogname" "ac_cv_func_getprogname"
18095 if test "x$ac_cv_func_getprogname" = xyes; then :
18096 cat >>confdefs.h <<_ACEOF
18097 #define HAVE_GETPROGNAME 1
18102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __progname" >&5
18103 $as_echo_n "checking for __progname... " >&6; }
18104 if ${sudo_cv___progname+:} false; then :
18105 $as_echo_n "(cached) " >&6
18108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18109 /* end confdefs.h. */
18114 extern char *__progname; (void)puts(__progname);
18119 if ac_fn_c_try_link "$LINENO"; then :
18120 sudo_cv___progname=yes
18122 sudo_cv___progname=no
18124 rm -f core conftest.err conftest.$ac_objext \
18125 conftest$ac_exeext conftest.$ac_ext
18128 if test "$sudo_cv___progname" = "yes"; then
18129 $as_echo "#define HAVE___PROGNAME 1" >>confdefs.h
18132 case " $LIBOBJS " in
18133 *" getprogname.$ac_objext "* ) ;;
18134 *) LIBOBJS="$LIBOBJS getprogname.$ac_objext"
18139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv___progname" >&5
18140 $as_echo "$sudo_cv___progname" >&6; }
18145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __func__" >&5
18146 $as_echo_n "checking for __func__... " >&6; }
18147 if ${sudo_cv___func__+:} false; then :
18148 $as_echo_n "(cached) " >&6
18151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18152 /* end confdefs.h. */
18157 (void)puts(__func__);
18162 if ac_fn_c_try_link "$LINENO"; then :
18163 sudo_cv___func__=yes
18165 sudo_cv___func__=no
18167 rm -f core conftest.err conftest.$ac_objext \
18168 conftest$ac_exeext conftest.$ac_ext
18171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv___func__" >&5
18172 $as_echo "$sudo_cv___func__" >&6; }
18173 if test "$sudo_cv___func__" = "yes"; then
18174 $as_echo "#define HAVE___FUNC__ 1" >>confdefs.h
18176 elif test -n "$GCC"; then
18177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __FUNCTION__" >&5
18178 $as_echo_n "checking for __FUNCTION__... " >&6; }
18179 if ${sudo_cv___FUNCTION__+:} false; then :
18180 $as_echo_n "(cached) " >&6
18183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18184 /* end confdefs.h. */
18189 (void)puts(__FUNCTION__);
18194 if ac_fn_c_try_link "$LINENO"; then :
18195 sudo_cv___FUNCTION__=yes
18197 sudo_cv___FUNCTION__=no
18199 rm -f core conftest.err conftest.$ac_objext \
18200 conftest$ac_exeext conftest.$ac_ext
18203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv___FUNCTION__" >&5
18204 $as_echo "$sudo_cv___FUNCTION__" >&6; }
18205 if test "$sudo_cv___FUNCTION__" = "yes"; then
18206 $as_echo "#define HAVE___FUNC__ 1" >>confdefs.h
18209 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
18214 # gettext() and friends may be located in libc (Linux and Solaris)
18215 # or in libintl. However, it is possible to have libintl installed
18216 # even when gettext() is present in libc. In the case of GNU libintl,
18217 # gettext() will be defined to gettext_libintl in libintl.h.
18218 # Since gcc prefers /usr/local/include to /usr/include, we need to
18219 # make sure we use the gettext() that matches the include file.
18220 if test "$enable_nls" != "no"; then
18221 if test "$enable_nls" != "yes"; then
18223 case "${CPPFLAGS}" in
18224 *"-I${enable_nls}/include"|*"-I${enable_nls}/include ")
18227 if test X"${CPPFLAGS}" = X""; then
18228 CPPFLAGS="-I${enable_nls}/include"
18230 CPPFLAGS="${CPPFLAGS} -I${enable_nls}/include"
18236 case "${LDFLAGS}" in
18237 *"-L$enable_nls/lib"|*"-L$enable_nls/lib ")
18240 LDFLAGS="${LDFLAGS} -L$enable_nls/lib"
18241 if test X"$enable_rpath" = X"yes"; then
18242 LDFLAGS_R="${LDFLAGS_R} -R$enable_nls/lib"
18249 for l in "libc" "-lintl" "-lintl -liconv"; do
18250 if test "$l" = "libc"; then
18251 # If user specified a dir for libintl ignore libc
18252 if test "$enable_nls" != "yes"; then
18255 gettext_name=sudo_cv_gettext
18256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext" >&5
18257 $as_echo_n "checking for gettext... " >&6; }
18260 gettext_name=sudo_cv_gettext"`echo $l|sed -e 's/ //g' -e 's/-/_/g'`"
18261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in $l" >&5
18262 $as_echo_n "checking for gettext in $l... " >&6; }
18264 if eval \${$gettext_name+:} false; then :
18265 $as_echo_n "(cached) " >&6
18268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18269 /* end confdefs.h. */
18271 #include <libintl.h>
18275 (void)gettext((char *)0);
18281 if ac_fn_c_try_link "$LINENO"; then :
18282 eval $gettext_name=yes
18284 eval $gettext_name=no
18287 rm -f core conftest.err conftest.$ac_objext \
18288 conftest$ac_exeext conftest.$ac_ext
18292 eval gettext_result="\$$gettext_name"
18293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gettext_result" >&5
18294 $as_echo "$gettext_result" >&6; }
18295 if test "$gettext_result" = "yes"; then
18296 for ac_func in ngettext
18298 ac_fn_c_check_func "$LINENO" "ngettext" "ac_cv_func_ngettext"
18299 if test "x$ac_cv_func_ngettext" = xyes; then :
18300 cat >>confdefs.h <<_ACEOF
18301 #define HAVE_NGETTEXT 1
18312 if test "$sudo_cv_gettext" = "yes"; then
18313 $as_echo "#define HAVE_LIBINTL_H 1" >>confdefs.h
18316 # For Solaris we need links from lang to lang.UTF-8 in localedir
18318 solaris2*) LOCALEDIR_SUFFIX=".UTF-8";;
18320 elif test "$sudo_cv_gettext_lintl" = "yes"; then
18321 $as_echo "#define HAVE_LIBINTL_H 1" >>confdefs.h
18325 elif test "$sudo_cv_gettext_lintl_liconv" = "yes"; then
18326 $as_echo "#define HAVE_LIBINTL_H 1" >>confdefs.h
18329 LIBINTL="-lintl -liconv"
18333 case "$enable_zlib" in
18335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzdopen in -lz" >&5
18336 $as_echo_n "checking for gzdopen in -lz... " >&6; }
18337 if ${ac_cv_lib_z_gzdopen+:} false; then :
18338 $as_echo_n "(cached) " >&6
18340 ac_check_lib_save_LIBS=$LIBS
18342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18343 /* end confdefs.h. */
18345 /* Override any GCC internal prototype to avoid an error.
18346 Use char because int might match the return type of a GCC
18347 builtin and then its argument prototype would still apply. */
18360 if ac_fn_c_try_link "$LINENO"; then :
18361 ac_cv_lib_z_gzdopen=yes
18363 ac_cv_lib_z_gzdopen=no
18365 rm -f core conftest.err conftest.$ac_objext \
18366 conftest$ac_exeext conftest.$ac_ext
18367 LIBS=$ac_check_lib_save_LIBS
18369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzdopen" >&5
18370 $as_echo "$ac_cv_lib_z_gzdopen" >&6; }
18371 if test "x$ac_cv_lib_z_gzdopen" = xyes; then :
18373 for ac_header in zlib.h
18375 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
18376 if test "x$ac_cv_header_zlib_h" = xyes; then :
18377 cat >>confdefs.h <<_ACEOF
18378 #define HAVE_ZLIB_H 1
18382 enable_zlib=builtin
18394 $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
18402 $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
18405 case "${CPPFLAGS}" in
18406 *"-I${enable_zlib}/include"|*"-I${enable_zlib}/include ")
18409 if test X"${CPPFLAGS}" = X""; then
18410 CPPFLAGS="-I${enable_zlib}/include"
18412 CPPFLAGS="${CPPFLAGS} -I${enable_zlib}/include"
18419 *"-L$enable_zlib/lib"|*"-L$enable_zlib/lib ")
18422 ZLIB="${ZLIB} -L$enable_zlib/lib"
18423 if test X"$enable_rpath" = X"yes"; then
18424 ZLIB_R="${ZLIB_R} -R$enable_zlib/lib"
18432 if test X"$enable_zlib" = X"builtin"; then
18433 $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
18435 CPPFLAGS='-I$(top_builddir)/zlib -I$(top_srcdir)/zlib '"${CPPFLAGS}"
18436 ZLIB="${ZLIB}"' $(top_builddir)/zlib/libz.la'
18438 ac_config_headers="$ac_config_headers zlib/zconf.h"
18440 ac_config_files="$ac_config_files zlib/Makefile"
18444 ac_fn_c_check_decl "$LINENO" "errno" "ac_cv_have_decl_errno" "
18445 $ac_includes_default
18449 if test "x$ac_cv_have_decl_errno" = xyes; then :
18455 cat >>confdefs.h <<_ACEOF
18456 #define HAVE_DECL_ERRNO $ac_have_decl
18460 ac_fn_c_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "
18461 $ac_includes_default
18465 if test "x$ac_cv_have_decl_h_errno" = xyes; then :
18471 cat >>confdefs.h <<_ACEOF
18472 #define HAVE_DECL_H_ERRNO $ac_have_decl
18476 for ac_func in strsignal
18478 ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
18479 if test "x$ac_cv_func_strsignal" = xyes; then :
18480 cat >>confdefs.h <<_ACEOF
18481 #define HAVE_STRSIGNAL 1
18486 case " $LIBOBJS " in
18487 *" strsignal.$ac_objext "* ) ;;
18488 *) LIBOBJS="$LIBOBJS strsignal.$ac_objext"
18492 HAVE_SIGLIST="false"
18493 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "
18494 $ac_includes_default
18495 #include <signal.h>
18498 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
18504 cat >>confdefs.h <<_ACEOF
18505 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
18507 if test $ac_have_decl = 1; then :
18509 HAVE_SIGLIST="true"
18513 ac_fn_c_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "
18514 $ac_includes_default
18515 #include <signal.h>
18518 if test "x$ac_cv_have_decl__sys_siglist" = xyes; then :
18524 cat >>confdefs.h <<_ACEOF
18525 #define HAVE_DECL__SYS_SIGLIST $ac_have_decl
18527 if test $ac_have_decl = 1; then :
18529 HAVE_SIGLIST="true"
18533 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "
18534 $ac_includes_default
18535 #include <signal.h>
18538 if test "x$ac_cv_have_decl___sys_siglist" = xyes; then :
18544 cat >>confdefs.h <<_ACEOF
18545 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
18547 if test $ac_have_decl = 1; then :
18549 HAVE_SIGLIST="true"
18554 if test "$HAVE_SIGLIST" != "true"; then
18555 case " $LIBOBJS " in
18556 *" siglist.$ac_objext "* ) ;;
18557 *) LIBOBJS="$LIBOBJS siglist.$ac_objext"
18567 for ac_func in sig2str
18569 ac_fn_c_check_func "$LINENO" "sig2str" "ac_cv_func_sig2str"
18570 if test "x$ac_cv_func_sig2str" = xyes; then :
18571 cat >>confdefs.h <<_ACEOF
18572 #define HAVE_SIG2STR 1
18577 case " $LIBOBJS " in
18578 *" sig2str.$ac_objext "* ) ;;
18579 *) LIBOBJS="$LIBOBJS sig2str.$ac_objext"
18583 HAVE_SIGNAME="false"
18584 ac_fn_c_check_decl "$LINENO" "sys_signame" "ac_cv_have_decl_sys_signame" "
18585 $ac_includes_default
18586 #include <signal.h>
18589 if test "x$ac_cv_have_decl_sys_signame" = xyes; then :
18595 cat >>confdefs.h <<_ACEOF
18596 #define HAVE_DECL_SYS_SIGNAME $ac_have_decl
18598 if test $ac_have_decl = 1; then :
18600 HAVE_SIGNAME="true"
18604 ac_fn_c_check_decl "$LINENO" "_sys_signame" "ac_cv_have_decl__sys_signame" "
18605 $ac_includes_default
18606 #include <signal.h>
18609 if test "x$ac_cv_have_decl__sys_signame" = xyes; then :
18615 cat >>confdefs.h <<_ACEOF
18616 #define HAVE_DECL__SYS_SIGNAME $ac_have_decl
18618 if test $ac_have_decl = 1; then :
18620 HAVE_SIGNAME="true"
18624 ac_fn_c_check_decl "$LINENO" "__sys_signame" "ac_cv_have_decl___sys_signame" "
18625 $ac_includes_default
18626 #include <signal.h>
18629 if test "x$ac_cv_have_decl___sys_signame" = xyes; then :
18635 cat >>confdefs.h <<_ACEOF
18636 #define HAVE_DECL___SYS_SIGNAME $ac_have_decl
18638 if test $ac_have_decl = 1; then :
18640 HAVE_SIGNAME="true"
18644 ac_fn_c_check_decl "$LINENO" "sys_sigabbrev" "ac_cv_have_decl_sys_sigabbrev" "
18645 $ac_includes_default
18646 #include <signal.h>
18649 if test "x$ac_cv_have_decl_sys_sigabbrev" = xyes; then :
18655 cat >>confdefs.h <<_ACEOF
18656 #define HAVE_DECL_SYS_SIGABBREV $ac_have_decl
18658 if test $ac_have_decl = 1; then :
18660 HAVE_SIGNAME="true"
18665 if test "$HAVE_SIGNAME" != "true"; then
18666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for undeclared sys_sigabbrev" >&5
18667 $as_echo_n "checking for undeclared sys_sigabbrev... " >&6; }
18668 if ${sudo_cv_var_sys_sigabbrev+:} false; then :
18669 $as_echo_n "(cached) " >&6
18671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18672 /* end confdefs.h. */
18673 extern char **sys_sigabbrev;
18677 return sys_sigabbrev[1];
18682 if ac_fn_c_try_link "$LINENO"; then :
18683 sudo_cv_var_sys_sigabbrev=yes
18685 sudo_cv_var_sys_sigabbrev=no
18688 rm -f core conftest.err conftest.$ac_objext \
18689 conftest$ac_exeext conftest.$ac_ext
18693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_sys_sigabbrev" >&5
18694 $as_echo "$sudo_cv_var_sys_sigabbrev" >&6; }
18695 if test "$sudo_cv_var_sys_sigabbrev" = yes; then
18696 $as_echo "#define HAVE_SYS_SIGABBREV 1" >>confdefs.h
18699 case " $LIBOBJS " in
18700 *" signame.$ac_objext "* ) ;;
18701 *) LIBOBJS="$LIBOBJS signame.$ac_objext"
18712 if test ${with_netsvc-"no"} != "no"; then
18713 cat >>confdefs.h <<EOF
18714 #define _PATH_NETSVC_CONF "${with_netsvc-/etc/netsvc.conf}"
18717 netsvc_conf=${with_netsvc-/etc/netsvc.conf}
18718 elif test ${with_nsswitch-"yes"} != "no"; then
18719 cat >>confdefs.h <<EOF
18720 #define _PATH_NSSWITCH_CONF "${with_nsswitch-/etc/nsswitch.conf}"
18723 nsswitch_conf=${with_nsswitch-/etc/nsswitch.conf}
18727 if test -z "${AUTH_EXCL}${AUTH_REG}" -a -n "$AUTH_EXCL_DEF"; then
18728 for auth in $AUTH_EXCL_DEF; do
18730 AIX_AUTH) with_aixauth=maybe;;
18731 BSD_AUTH) with_bsdauth=maybe;;
18732 PAM) with_pam=maybe;;
18733 SIA) CHECKSIA=true;;
18738 if test ${with_pam-"no"} != "no"; then
18740 # Check for pam_start() in libpam first, then for pam_appl.h.
18743 as_ac_Lib=`$as_echo "ac_cv_lib_pam_pam_start$lt_cv_dlopen_libs" | $as_tr_sh`
18744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
18745 $as_echo_n "checking for pam_start in -lpam... " >&6; }
18746 if eval \${$as_ac_Lib+:} false; then :
18747 $as_echo_n "(cached) " >&6
18749 ac_check_lib_save_LIBS=$LIBS
18750 LIBS="-lpam $lt_cv_dlopen_libs $LIBS"
18751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18752 /* end confdefs.h. */
18754 /* Override any GCC internal prototype to avoid an error.
18755 Use char because int might match the return type of a GCC
18756 builtin and then its argument prototype would still apply. */
18764 return pam_start ();
18769 if ac_fn_c_try_link "$LINENO"; then :
18770 eval "$as_ac_Lib=yes"
18772 eval "$as_ac_Lib=no"
18774 rm -f core conftest.err conftest.$ac_objext \
18775 conftest$ac_exeext conftest.$ac_ext
18776 LIBS=$ac_check_lib_save_LIBS
18778 eval ac_res=\$$as_ac_Lib
18779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18780 $as_echo "$ac_res" >&6; }
18781 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18786 # Some PAM implementations (MacOS X for example) put the PAM headers
18787 # in /usr/include/pam instead of /usr/include/security...
18790 for ac_header in security/pam_appl.h pam/pam_appl.h
18792 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18793 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18794 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18795 cat >>confdefs.h <<_ACEOF
18796 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18798 found_pam_hdrs=yes; break
18803 if test "$found_pam_lib" = "yes" -a "$found_pam_hdrs" = "yes"; then
18804 # Found both PAM libs and headers
18806 elif test "$with_pam" = "yes"; then
18807 if test "$found_pam_lib" = "no"; then
18808 as_fn_error $? "\"--with-pam specified but unable to locate PAM development library.\"" "$LINENO" 5
18810 if test "$found_pam_hdrs" = "no"; then
18811 as_fn_error $? "\"--with-pam specified but unable to locate PAM development headers.\"" "$LINENO" 5
18813 elif test "$found_pam_lib" != "$found_pam_hdrs"; then
18814 if test "$found_pam_lib" = "no"; then
18815 as_fn_error $? "\"found PAM headers but no PAM development library; specify --without-pam to build without PAM\"" "$LINENO" 5
18817 if test "$found_pam_hdrs" = "no"; then
18818 as_fn_error $? "\"found PAM library but no PAM development headers; specify --without-pam to build without PAM\"" "$LINENO" 5
18822 if test "$with_pam" = "yes"; then
18823 # Older PAM implementations lack pam_getenvlist
18825 LIBS="$LIBS -lpam $lt_cv_dlopen_libs"
18826 for ac_func in pam_getenvlist
18828 ac_fn_c_check_func "$LINENO" "pam_getenvlist" "ac_cv_func_pam_getenvlist"
18829 if test "x$ac_cv_func_pam_getenvlist" = xyes; then :
18830 cat >>confdefs.h <<_ACEOF
18831 #define HAVE_PAM_GETENVLIST 1
18839 # We already link with -ldl if needed (see LIBDL below)
18840 SUDOERS_LIBS="${SUDOERS_LIBS} -lpam"
18841 $as_echo "#define HAVE_PAM 1" >>confdefs.h
18843 AUTH_OBJS="$AUTH_OBJS pam.lo";
18847 # Check whether --with-pam-login was given.
18848 if test "${with_pam_login+set}" = set; then :
18849 withval=$with_pam_login; case $with_pam_login in
18850 yes) $as_echo "#define HAVE_PAM_LOGIN 1" >>confdefs.h
18852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use PAM login" >&5
18853 $as_echo_n "checking whether to use PAM login... " >&6; }
18854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18855 $as_echo "yes" >&6; }
18858 *) as_fn_error $? "\"--with-pam-login does not take an argument.\"" "$LINENO" 5
18864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use PAM session support" >&5
18865 $as_echo_n "checking whether to use PAM session support... " >&6; }
18866 # Check whether --enable-pam_session was given.
18867 if test "${enable_pam_session+set}" = set; then :
18868 enableval=$enable_pam_session; case "$enableval" in
18869 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18870 $as_echo "yes" >&6; }
18872 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18873 $as_echo "no" >&6; }
18874 $as_echo "#define NO_PAM_SESSION 1" >>confdefs.h
18878 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18879 $as_echo "no" >&6; }
18880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&5
18881 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&2;}
18885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18886 $as_echo "yes" >&6; }
18892 if test ${with_aixauth-'no'} != "no"; then
18893 if test X"$with_aixauth" != X"maybe" -o X"$AUTH_EXCL" = X""; then
18894 { $as_echo "$as_me:${as_lineno-$LINENO}: using AIX general authentication" >&5
18895 $as_echo "$as_me: using AIX general authentication" >&6;}
18896 $as_echo "#define HAVE_AIXAUTH 1" >>confdefs.h
18898 AUTH_OBJS="$AUTH_OBJS aix_auth.lo";
18899 SUDOERS_LIBS="${SUDOERS_LIBS} -ls"
18904 if test ${with_bsdauth-'no'} != "no"; then
18905 ac_fn_c_check_header_mongrel "$LINENO" "bsd_auth.h" "ac_cv_header_bsd_auth_h" "$ac_includes_default"
18906 if test "x$ac_cv_header_bsd_auth_h" = xyes; then :
18907 $as_echo "#define HAVE_BSD_AUTH_H 1" >>confdefs.h
18909 AUTH_OBJS="$AUTH_OBJS bsdauth.lo"
18910 BSDAUTH_USAGE='[-a auth_type] '
18911 AUTH_EXCL=BSD_AUTH; BAMAN=1
18913 as_fn_error $? "BSD authentication was specified but bsd_auth.h could not be found" "$LINENO" 5
18919 if test ${CHECKSIA-'false'} = "true"; then
18920 for ac_func in sia_ses_init
18922 ac_fn_c_check_func "$LINENO" "sia_ses_init" "ac_cv_func_sia_ses_init"
18923 if test "x$ac_cv_func_sia_ses_init" = xyes; then :
18924 cat >>confdefs.h <<_ACEOF
18925 #define HAVE_SIA_SES_INIT 1
18933 if test "$found" = "true"; then
18935 AUTH_OBJS="$AUTH_OBJS sia.lo"
18939 if test ${with_fwtk-'no'} != "no"; then
18940 if test "$with_fwtk" != "yes"; then
18942 case "${SUDOERS_LDFLAGS}" in
18943 *"-L${with_fwtk}"|*"-L${with_fwtk} ")
18946 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_fwtk}"
18947 if test X"$enable_rpath" = X"yes"; then
18948 SUDOERS_LDFLAGS_R="${SUDOERS_LDFLAGS_R} -R${with_fwtk}"
18954 case "${CPPFLAGS}" in
18955 *"-I${with_fwtk}"|*"-I${with_fwtk} ")
18958 if test X"${CPPFLAGS}" = X""; then
18959 CPPFLAGS="-I${with_fwtk}"
18961 CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
18968 SUDOERS_LIBS="${SUDOERS_LIBS} -lauth -lfwall"
18969 AUTH_OBJS="$AUTH_OBJS fwtk.lo"
18972 if test ${with_SecurID-'no'} != "no"; then
18973 if test "$with_SecurID" != "yes"; then
18975 elif test -d /usr/ace/examples; then
18976 with_SecurID=/usr/ace/examples
18978 with_SecurID=/usr/ace
18981 case "${CPPFLAGS}" in
18982 *"-I${with_SecurID}"|*"-I${with_SecurID} ")
18985 if test X"${CPPFLAGS}" = X""; then
18986 CPPFLAGS="-I${with_SecurID}"
18988 CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
18994 case "${SUDOERS_LDFLAGS}" in
18995 *"-L${with_SecurID}"|*"-L${with_SecurID} ")
18998 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_SecurID}"
18999 if test X"$enable_rpath" = X"yes"; then
19000 SUDOERS_LDFLAGS_R="${SUDOERS_LDFLAGS_R} -R${with_SecurID}"
19005 SUDOERS_LIBS="${SUDOERS_LIBS} -laceclnt -lpthread"
19006 AUTH_OBJS="$AUTH_OBJS securid5.lo";
19010 if test -z "${AUTH_EXCL}" -a -n "$AUTH_DEF"; then
19011 for auth in $AUTH_DEF; do
19013 passwd) : ${with_passwd='maybe'};;
19018 if test ${with_kerb5-'no'} != "no"; then
19019 # Extract the first word of "krb5-config", so it can be a program name with args.
19020 set dummy krb5-config; ac_word=$2
19021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19022 $as_echo_n "checking for $ac_word... " >&6; }
19023 if ${ac_cv_prog_KRB5CONFIG+:} false; then :
19024 $as_echo_n "(cached) " >&6
19026 if test -n "$KRB5CONFIG"; then
19027 ac_cv_prog_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test.
19029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19030 for as_dir in $PATH
19033 test -z "$as_dir" && as_dir=.
19034 for ac_exec_ext in '' $ac_executable_extensions; do
19035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19036 ac_cv_prog_KRB5CONFIG="yes"
19037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19044 test -z "$ac_cv_prog_KRB5CONFIG" && ac_cv_prog_KRB5CONFIG=""""
19047 KRB5CONFIG=$ac_cv_prog_KRB5CONFIG
19048 if test -n "$KRB5CONFIG"; then
19049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5
19050 $as_echo "$KRB5CONFIG" >&6; }
19052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19053 $as_echo "no" >&6; }
19057 if test -n "$KRB5CONFIG"; then
19058 $as_echo "#define HAVE_KERB5 1" >>confdefs.h
19060 AUTH_OBJS="$AUTH_OBJS kerb5.lo"
19061 CPPFLAGS="$CPPFLAGS `krb5-config --cflags`"
19062 SUDOERS_LIBS="$SUDOERS_LIBS `krb5-config --libs`"
19063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
19064 $as_echo_n "checking whether we are using Heimdal... " >&6; }
19065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19066 /* end confdefs.h. */
19071 const char *tmp = heimdal_version;
19076 if ac_fn_c_try_compile "$LINENO"; then :
19078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19079 $as_echo "yes" >&6; }
19080 $as_echo "#define HAVE_HEIMDAL 1" >>confdefs.h
19085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19086 $as_echo "no" >&6; }
19090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19092 $as_echo "#define HAVE_KERB5 1" >>confdefs.h
19094 if test "$with_kerb5" = "yes"; then
19096 O_CPPFLAGS="$CPPFLAGS"
19097 for dir in "" "kerberosV/" "krb5/" "kerberos5/" "kerberosv5/"; do
19098 CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
19099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19100 /* end confdefs.h. */
19110 if ac_fn_c_try_cpp "$LINENO"; then :
19113 rm -f conftest.err conftest.i conftest.$ac_ext
19115 if test X"$found" = X"no"; then
19116 CPPFLAGS="$O_CPPFLAGS"
19117 { $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
19118 $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;}
19122 case "${SUDOERS_LDFLAGS}" in
19123 *"-L${with_kerb5}/lib"|*"-L${with_kerb5}/lib ")
19126 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_kerb5}/lib"
19127 if test X"$enable_rpath" = X"yes"; then
19128 SUDOERS_LDFLAGS_R="${SUDOERS_LDFLAGS_R} -R${with_kerb5}/lib"
19134 case "${CPPFLAGS}" in
19135 *"-I${with_kerb5}/include"|*"-I${with_kerb5}/include ")
19138 if test X"${CPPFLAGS}" = X""; then
19139 CPPFLAGS="-I${with_kerb5}/include"
19141 CPPFLAGS="${CPPFLAGS} -I${with_kerb5}/include"
19148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
19149 $as_echo_n "checking whether we are using Heimdal... " >&6; }
19150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19151 /* end confdefs.h. */
19156 const char *tmp = heimdal_version;
19161 if ac_fn_c_try_compile "$LINENO"; then :
19163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19164 $as_echo "yes" >&6; }
19165 $as_echo "#define HAVE_HEIMDAL 1" >>confdefs.h
19167 # XXX - need to check whether -lcrypo is needed!
19168 SUDOERS_LIBS="${SUDOERS_LIBS} -lkrb5 -lcrypto -ldes -lcom_err -lasn1"
19169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lroken" >&5
19170 $as_echo_n "checking for main in -lroken... " >&6; }
19171 if ${ac_cv_lib_roken_main+:} false; then :
19172 $as_echo_n "(cached) " >&6
19174 ac_check_lib_save_LIBS=$LIBS
19175 LIBS="-lroken $LIBS"
19176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19177 /* end confdefs.h. */
19188 if ac_fn_c_try_link "$LINENO"; then :
19189 ac_cv_lib_roken_main=yes
19191 ac_cv_lib_roken_main=no
19193 rm -f core conftest.err conftest.$ac_objext \
19194 conftest$ac_exeext conftest.$ac_ext
19195 LIBS=$ac_check_lib_save_LIBS
19197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_main" >&5
19198 $as_echo "$ac_cv_lib_roken_main" >&6; }
19199 if test "x$ac_cv_lib_roken_main" = xyes; then :
19200 SUDOERS_LIBS="${SUDOERS_LIBS} -lroken"
19206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19207 $as_echo "no" >&6; }
19208 SUDOERS_LIBS="${SUDOERS_LIBS} -lkrb5 -lk5crypto -lcom_err"
19209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5support" >&5
19210 $as_echo_n "checking for main in -lkrb5support... " >&6; }
19211 if ${ac_cv_lib_krb5support_main+:} false; then :
19212 $as_echo_n "(cached) " >&6
19214 ac_check_lib_save_LIBS=$LIBS
19215 LIBS="-lkrb5support $LIBS"
19216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19217 /* end confdefs.h. */
19228 if ac_fn_c_try_link "$LINENO"; then :
19229 ac_cv_lib_krb5support_main=yes
19231 ac_cv_lib_krb5support_main=no
19233 rm -f core conftest.err conftest.$ac_objext \
19234 conftest$ac_exeext conftest.$ac_ext
19235 LIBS=$ac_check_lib_save_LIBS
19237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_main" >&5
19238 $as_echo "$ac_cv_lib_krb5support_main" >&6; }
19239 if test "x$ac_cv_lib_krb5support_main" = xyes; then :
19240 SUDOERS_LIBS="${SUDOERS_LIBS} -lkrb5support"
19245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19246 AUTH_OBJS="$AUTH_OBJS kerb5.lo"
19249 LIBS="${LIBS} ${SUDOERS_LIBS}"
19250 for ac_func in krb5_verify_user krb5_init_secure_context
19252 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19253 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19254 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19255 cat >>confdefs.h <<_ACEOF
19256 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19262 for ac_func in krb5_get_init_creds_opt_alloc
19264 ac_fn_c_check_func "$LINENO" "krb5_get_init_creds_opt_alloc" "ac_cv_func_krb5_get_init_creds_opt_alloc"
19265 if test "x$ac_cv_func_krb5_get_init_creds_opt_alloc" = xyes; then :
19266 cat >>confdefs.h <<_ACEOF
19267 #define HAVE_KRB5_GET_INIT_CREDS_OPT_ALLOC 1
19270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether krb5_get_init_creds_opt_free takes a context" >&5
19271 $as_echo_n "checking whether krb5_get_init_creds_opt_free takes a context... " >&6; }
19272 if ${sudo_cv_krb5_get_init_creds_opt_free_two_args+:} false; then :
19273 $as_echo_n "(cached) " >&6
19276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19277 /* end confdefs.h. */
19282 krb5_get_init_creds_opt_free(NULL, NULL);
19288 if ac_fn_c_try_compile "$LINENO"; then :
19289 sudo_cv_krb5_get_init_creds_opt_free_two_args=yes
19291 sudo_cv_krb5_get_init_creds_opt_free_two_args=no
19294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_krb5_get_init_creds_opt_free_two_args" >&5
19299 $as_echo "$sudo_cv_krb5_get_init_creds_opt_free_two_args" >&6; }
19304 if test X"$sudo_cv_krb5_get_init_creds_opt_free_two_args" = X"yes"; then
19305 $as_echo "#define HAVE_KRB5_GET_INIT_CREDS_OPT_FREE_TWO_ARGS 1" >>confdefs.h
19309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an instance name for Kerberos V" >&5
19310 $as_echo_n "checking whether to use an instance name for Kerberos V... " >&6; }
19311 # Check whether --enable-kerb5-instance was given.
19312 if test "${enable_kerb5_instance+set}" = set; then :
19313 enableval=$enable_kerb5_instance; case "$enableval" in
19314 yes) as_fn_error $? "\"must give --enable-kerb5-instance an argument.\"" "$LINENO" 5
19316 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19317 $as_echo "no" >&6; }
19319 *) cat >>confdefs.h <<EOF
19320 #define SUDO_KRB5_INSTANCE "$enableval"
19323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
19324 $as_echo "$enableval" >&6; }
19328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19329 $as_echo "no" >&6; }
19334 if test ${with_AFS-'no'} = "yes"; then
19336 # looks like the "standard" place for AFS libs is /usr/afsws/lib
19337 AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
19338 for i in $AFSLIBDIRS; do
19339 if test -d ${i}; then
19341 case "${SUDOERS_LDFLAGS}" in
19345 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L$i"
19346 if test X"$enable_rpath" = X"yes"; then
19347 SUDOERS_LDFLAGS_R="${SUDOERS_LDFLAGS_R} -R$i"
19352 FOUND_AFSLIBDIR=true
19355 if test -z "$FOUND_AFSLIBDIR"; then
19356 { $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
19357 $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;}
19360 # Order is important here. Note that we build AFS_LIBS from right to left
19361 # since AFS_LIBS may be initialized with BSD compat libs that must go last
19362 AFS_LIBS="-laudit ${AFS_LIBS}"
19363 for i in $AFSLIBDIRS; do
19364 if test -f ${i}/util.a; then
19365 AFS_LIBS="${i}/util.a ${AFS_LIBS}"
19370 if test -z "$FOUND_UTIL_A"; then
19371 AFS_LIBS="-lutil ${AFS_LIBS}"
19373 AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
19375 # AFS includes may live in /usr/include on some machines...
19376 for i in /usr/afsws/include; do
19377 if test -d ${i}; then
19379 case "${CPPFLAGS}" in
19380 *"-I${i}"|*"-I${i} ")
19383 if test X"${CPPFLAGS}" = X""; then
19386 CPPFLAGS="${CPPFLAGS} -I${i}"
19391 FOUND_AFSINCDIR=true
19395 if test -z "$FOUND_AFSLIBDIR"; then
19396 { $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
19397 $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;}
19400 AUTH_OBJS="$AUTH_OBJS afs.lo"
19403 if test ${with_DCE-'no'} = "yes"; then
19404 DCE_OBJS="${DCE_OBJS} dce_pwent.o"
19405 SUDOERS_LIBS="${SUDOERS_LIBS} -ldce"
19406 AUTH_OBJS="$AUTH_OBJS dce.lo"
19409 if test "${with_skey-'no'}" = "yes"; then
19410 O_LDFLAGS="$LDFLAGS"
19411 if test "$with_skey" != "yes"; then
19413 case "${CPPFLAGS}" in
19414 *"-I${with_skey}/include"|*"-I${with_skey}/include ")
19417 if test X"${CPPFLAGS}" = X""; then
19418 CPPFLAGS="-I${with_skey}/include"
19420 CPPFLAGS="${CPPFLAGS} -I${with_skey}/include"
19425 LDFLAGS="$LDFLAGS -L${with_skey}/lib"
19427 case "${SUDOERS_LDFLAGS}" in
19428 *"-L${with_skey}/lib"|*"-L${with_skey}/lib ")
19431 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_skey}/lib"
19432 if test X"$enable_rpath" = X"yes"; then
19433 SUDOERS_LDFLAGS_R="${SUDOERS_LDFLAGS_R} -R${with_skey}/lib"
19438 ac_fn_c_check_header_compile "$LINENO" "skey.h" "ac_cv_header_skey_h" "#include <stdio.h>
19440 if test "x$ac_cv_header_skey_h" = xyes; then :
19449 O_CPPFLAGS="$CPPFLAGS"
19450 for dir in "" "/usr/local" "/usr/contrib"; do
19451 test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
19452 ac_fn_c_check_header_compile "$LINENO" "skey.h" "ac_cv_header_skey_h" "#include <stdio.h>
19454 if test "x$ac_cv_header_skey_h" = xyes; then :
19460 if test "$found" = "no" -o -z "$dir"; then
19461 CPPFLAGS="$O_CPPFLAGS"
19463 LDFLAGS="$LDFLAGS -L${dir}/lib"
19465 case "${SUDOERS_LDFLAGS}" in
19466 *"-L${dir}/lib"|*"-L${dir}/lib ")
19469 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib"
19470 if test X"$enable_rpath" = X"yes"; then
19471 SUDOERS_LDFLAGS_R="${SUDOERS_LDFLAGS_R} -R${dir}/lib"
19477 if test "$found" = "no"; then
19478 { $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
19479 $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;}
19482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lskey" >&5
19483 $as_echo_n "checking for main in -lskey... " >&6; }
19484 if ${ac_cv_lib_skey_main+:} false; then :
19485 $as_echo_n "(cached) " >&6
19487 ac_check_lib_save_LIBS=$LIBS
19488 LIBS="-lskey $LIBS"
19489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19490 /* end confdefs.h. */
19501 if ac_fn_c_try_link "$LINENO"; then :
19502 ac_cv_lib_skey_main=yes
19504 ac_cv_lib_skey_main=no
19506 rm -f core conftest.err conftest.$ac_objext \
19507 conftest$ac_exeext conftest.$ac_ext
19508 LIBS=$ac_check_lib_save_LIBS
19510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_skey_main" >&5
19511 $as_echo "$ac_cv_lib_skey_main" >&6; }
19512 if test "x$ac_cv_lib_skey_main" = xyes; then :
19515 { $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
19516 $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;}
19519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for skeyaccess in -lskey" >&5
19520 $as_echo_n "checking for skeyaccess in -lskey... " >&6; }
19521 if ${ac_cv_lib_skey_skeyaccess+:} false; then :
19522 $as_echo_n "(cached) " >&6
19524 ac_check_lib_save_LIBS=$LIBS
19525 LIBS="-lskey $LIBS"
19526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19527 /* end confdefs.h. */
19529 /* Override any GCC internal prototype to avoid an error.
19530 Use char because int might match the return type of a GCC
19531 builtin and then its argument prototype would still apply. */
19535 char skeyaccess ();
19539 return skeyaccess ();
19544 if ac_fn_c_try_link "$LINENO"; then :
19545 ac_cv_lib_skey_skeyaccess=yes
19547 ac_cv_lib_skey_skeyaccess=no
19549 rm -f core conftest.err conftest.$ac_objext \
19550 conftest$ac_exeext conftest.$ac_ext
19551 LIBS=$ac_check_lib_save_LIBS
19553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_skey_skeyaccess" >&5
19554 $as_echo "$ac_cv_lib_skey_skeyaccess" >&6; }
19555 if test "x$ac_cv_lib_skey_skeyaccess" = xyes; then :
19556 $as_echo "#define HAVE_SKEYACCESS 1" >>confdefs.h
19561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RFC1938-compliant skeychallenge" >&5
19562 $as_echo_n "checking for RFC1938-compliant skeychallenge... " >&6; }
19563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19564 /* end confdefs.h. */
19570 skeychallenge(NULL, NULL, NULL, 0);
19576 if ac_fn_c_try_compile "$LINENO"; then :
19578 $as_echo "#define HAVE_RFC1938_SKEYCHALLENGE 1" >>confdefs.h
19580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19581 $as_echo "yes" >&6; }
19585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19586 $as_echo "no" >&6; }
19590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19592 LDFLAGS="$O_LDFLAGS"
19593 SUDOERS_LIBS="${SUDOERS_LIBS} -lskey"
19594 AUTH_OBJS="$AUTH_OBJS rfc1938.lo"
19597 if test "${with_opie-'no'}" = "yes"; then
19598 O_LDFLAGS="$LDFLAGS"
19599 if test "$with_opie" != "yes"; then
19601 case "${CPPFLAGS}" in
19602 *"-I${with_opie}/include"|*"-I${with_opie}/include ")
19605 if test X"${CPPFLAGS}" = X""; then
19606 CPPFLAGS="-I${with_opie}/include"
19608 CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
19613 LDFLAGS="$LDFLAGS -L${with_opie}/lib"
19615 case "${SUDOERS_LDFLAGS}" in
19616 *"-L${with_opie}/lib"|*"-L${with_opie}/lib ")
19619 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_opie}/lib"
19620 if test X"$enable_rpath" = X"yes"; then
19621 SUDOERS_LDFLAGS_R="${SUDOERS_LDFLAGS_R} -R${with_opie}/lib"
19626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19627 /* end confdefs.h. */
19637 if ac_fn_c_try_cpp "$LINENO"; then :
19642 rm -f conftest.err conftest.i conftest.$ac_ext
19645 O_CPPFLAGS="$CPPFLAGS"
19646 for dir in "" "/usr/local" "/usr/contrib"; do
19647 test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
19648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19649 /* end confdefs.h. */
19659 if ac_fn_c_try_cpp "$LINENO"; then :
19662 rm -f conftest.err conftest.i conftest.$ac_ext
19664 if test "$found" = "no" -o -z "$dir"; then
19665 CPPFLAGS="$O_CPPFLAGS"
19667 LDFLAGS="$LDFLAGS -L${dir}/lib"
19669 case "${SUDOERS_LDFLAGS}" in
19670 *"-L${dir}/lib"|*"-L${dir}/lib ")
19673 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib"
19674 if test X"$enable_rpath" = X"yes"; then
19675 SUDOERS_LDFLAGS_R="${SUDOERS_LDFLAGS_R} -R${dir}/lib"
19681 if test "$found" = "no"; then
19682 { $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
19683 $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;}
19686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lopie" >&5
19687 $as_echo_n "checking for main in -lopie... " >&6; }
19688 if ${ac_cv_lib_opie_main+:} false; then :
19689 $as_echo_n "(cached) " >&6
19691 ac_check_lib_save_LIBS=$LIBS
19692 LIBS="-lopie $LIBS"
19693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19694 /* end confdefs.h. */
19705 if ac_fn_c_try_link "$LINENO"; then :
19706 ac_cv_lib_opie_main=yes
19708 ac_cv_lib_opie_main=no
19710 rm -f core conftest.err conftest.$ac_objext \
19711 conftest$ac_exeext conftest.$ac_ext
19712 LIBS=$ac_check_lib_save_LIBS
19714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opie_main" >&5
19715 $as_echo "$ac_cv_lib_opie_main" >&6; }
19716 if test "x$ac_cv_lib_opie_main" = xyes; then :
19719 { $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
19720 $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;}
19723 LDFLAGS="$O_LDFLAGS"
19724 SUDOERS_LIBS="${SUDOERS_LIBS} -lopie"
19725 AUTH_OBJS="$AUTH_OBJS rfc1938.lo"
19728 if test ${with_passwd-'no'} != "no"; then
19729 if test -z "$LIB_CRYPT"; then
19731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
19732 $as_echo_n "checking for library containing crypt... " >&6; }
19733 if ${ac_cv_search_crypt+:} false; then :
19734 $as_echo_n "(cached) " >&6
19736 ac_func_search_save_LIBS=$LIBS
19737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19738 /* end confdefs.h. */
19740 /* Override any GCC internal prototype to avoid an error.
19741 Use char because int might match the return type of a GCC
19742 builtin and then its argument prototype would still apply. */
19755 for ac_lib in '' crypt crypt_d ufc; do
19756 if test -z "$ac_lib"; then
19757 ac_res="none required"
19760 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19762 if ac_fn_c_try_link "$LINENO"; then :
19763 ac_cv_search_crypt=$ac_res
19765 rm -f core conftest.err conftest.$ac_objext \
19767 if ${ac_cv_search_crypt+:} false; then :
19771 if ${ac_cv_search_crypt+:} false; then :
19774 ac_cv_search_crypt=no
19776 rm conftest.$ac_ext
19777 LIBS=$ac_func_search_save_LIBS
19779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
19780 $as_echo "$ac_cv_search_crypt" >&6; }
19781 ac_res=$ac_cv_search_crypt
19782 if test "$ac_res" != no; then :
19783 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19784 test -n "$ac_lib" && SUDOERS_LIBS="${SUDOERS_LIBS} $ac_res"
19790 if test "$CHECKSHADOW" = "true" -a -n "$shadow_funcs"; then
19792 LIBS="$LIBS $shadow_libs"
19794 for ac_func in $shadow_funcs
19796 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19797 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19798 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19799 cat >>confdefs.h <<_ACEOF
19800 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19806 if test "$found" = "yes"; then
19807 SUDOERS_LIBS="$SUDOERS_LIBS $shadow_libs"
19808 elif test -n "$shadow_libs_optional"; then
19809 LIBS="$LIBS $shadow_libs_optional"
19810 for ac_func in $shadow_funcs
19812 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19813 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19814 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19815 cat >>confdefs.h <<_ACEOF
19816 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19822 if test "$found" = "yes"; then
19823 SUDOERS_LIBS="$SUDOERS_LIBS $shadow_libs $shadow_libs_optional"
19826 if test "$found" = "yes"; then
19827 case "$shadow_funcs" in
19828 *getprpwnam*) SECUREWARE=1;;
19830 test -n "$shadow_defs" && OSDEFS="${OSDEFS} $shadow_defs"
19836 if test "$CHECKSHADOW" = "true"; then
19837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspnam" >&5
19838 $as_echo_n "checking for library containing getspnam... " >&6; }
19839 if ${ac_cv_search_getspnam+:} false; then :
19840 $as_echo_n "(cached) " >&6
19842 ac_func_search_save_LIBS=$LIBS
19843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19844 /* end confdefs.h. */
19846 /* Override any GCC internal prototype to avoid an error.
19847 Use char because int might match the return type of a GCC
19848 builtin and then its argument prototype would still apply. */
19856 return getspnam ();
19861 for ac_lib in '' gen; do
19862 if test -z "$ac_lib"; then
19863 ac_res="none required"
19866 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19868 if ac_fn_c_try_link "$LINENO"; then :
19869 ac_cv_search_getspnam=$ac_res
19871 rm -f core conftest.err conftest.$ac_objext \
19873 if ${ac_cv_search_getspnam+:} false; then :
19877 if ${ac_cv_search_getspnam+:} false; then :
19880 ac_cv_search_getspnam=no
19882 rm conftest.$ac_ext
19883 LIBS=$ac_func_search_save_LIBS
19885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspnam" >&5
19886 $as_echo "$ac_cv_search_getspnam" >&6; }
19887 ac_res=$ac_cv_search_getspnam
19888 if test "$ac_res" != no; then :
19889 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19890 $as_echo "#define HAVE_GETSPNAM 1" >>confdefs.h
19891 CHECKSHADOW=false; test -n "$ac_lib" && SUDOERS_LIBS="${SUDOERS_LIBS} $ac_res"
19895 if test "$CHECKSHADOW" = "true"; then
19896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getprpwnam" >&5
19897 $as_echo_n "checking for library containing getprpwnam... " >&6; }
19898 if ${ac_cv_search_getprpwnam+:} false; then :
19899 $as_echo_n "(cached) " >&6
19901 ac_func_search_save_LIBS=$LIBS
19902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19903 /* end confdefs.h. */
19905 /* Override any GCC internal prototype to avoid an error.
19906 Use char because int might match the return type of a GCC
19907 builtin and then its argument prototype would still apply. */
19911 char getprpwnam ();
19915 return getprpwnam ();
19920 for ac_lib in '' sec security prot; do
19921 if test -z "$ac_lib"; then
19922 ac_res="none required"
19925 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19927 if ac_fn_c_try_link "$LINENO"; then :
19928 ac_cv_search_getprpwnam=$ac_res
19930 rm -f core conftest.err conftest.$ac_objext \
19932 if ${ac_cv_search_getprpwnam+:} false; then :
19936 if ${ac_cv_search_getprpwnam+:} false; then :
19939 ac_cv_search_getprpwnam=no
19941 rm conftest.$ac_ext
19942 LIBS=$ac_func_search_save_LIBS
19944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getprpwnam" >&5
19945 $as_echo "$ac_cv_search_getprpwnam" >&6; }
19946 ac_res=$ac_cv_search_getprpwnam
19947 if test "$ac_res" != no; then :
19948 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19949 $as_echo "#define HAVE_GETPRPWNAM 1" >>confdefs.h
19950 CHECKSHADOW=false; SECUREWARE=1; test -n "$ac_lib" && SUDOERS_LIBS="${SUDOERS_LIBS} $ac_res"
19954 if test -n "$SECUREWARE"; then
19955 for ac_func in bigcrypt set_auth_parameters initprivs
19957 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19958 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19959 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19960 cat >>confdefs.h <<_ACEOF
19961 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19967 AUTH_OBJS="$AUTH_OBJS secureware.lo"
19971 if test ${with_ldap-'no'} != "no"; then
19972 O_LDFLAGS="$LDFLAGS"
19973 if test "$with_ldap" != "yes"; then
19975 case "${SUDOERS_LDFLAGS}" in
19976 *"-L${with_ldap}/lib"|*"-L${with_ldap}/lib ")
19979 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_ldap}/lib"
19980 if test X"$enable_rpath" = X"yes"; then
19981 SUDOERS_LDFLAGS_R="${SUDOERS_LDFLAGS_R} -R${with_ldap}/lib"
19986 LDFLAGS="$LDFLAGS -L${with_ldap}/lib"
19988 case "${CPPFLAGS}" in
19989 *"-I${with_ldap}/include"|*"-I${with_ldap}/include ")
19992 if test X"${CPPFLAGS}" = X""; then
19993 CPPFLAGS="-I${with_ldap}/include"
19995 CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
20002 SUDOERS_OBJS="${SUDOERS_OBJS} ldap.lo"
20009 # On HP-UX, libibmldap has a hidden dependency on libCsup
20011 hpux*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lCsup" >&5
20012 $as_echo_n "checking for main in -lCsup... " >&6; }
20013 if ${ac_cv_lib_Csup_main+:} false; then :
20014 $as_echo_n "(cached) " >&6
20016 ac_check_lib_save_LIBS=$LIBS
20017 LIBS="-lCsup $LIBS"
20018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20019 /* end confdefs.h. */
20030 if ac_fn_c_try_link "$LINENO"; then :
20031 ac_cv_lib_Csup_main=yes
20033 ac_cv_lib_Csup_main=no
20035 rm -f core conftest.err conftest.$ac_objext \
20036 conftest$ac_exeext conftest.$ac_ext
20037 LIBS=$ac_check_lib_save_LIBS
20039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Csup_main" >&5
20040 $as_echo "$ac_cv_lib_Csup_main" >&6; }
20041 if test "x$ac_cv_lib_Csup_main" = xyes; then :
20042 IBMLDAP_EXTRA=" -lCsup"
20046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_init" >&5
20047 $as_echo_n "checking for library containing ldap_init... " >&6; }
20048 if ${ac_cv_search_ldap_init+:} false; then :
20049 $as_echo_n "(cached) " >&6
20051 ac_func_search_save_LIBS=$LIBS
20052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20053 /* end confdefs.h. */
20055 /* Override any GCC internal prototype to avoid an error.
20056 Use char because int might match the return type of a GCC
20057 builtin and then its argument prototype would still apply. */
20065 return ldap_init ();
20070 for ac_lib in '' "ldap" "ldap -llber" "ldap -llber -lssl -lcrypto" "ibmldap${IBMLDAP_EXTRA}" "ibmldap -lidsldif${IBMLDAP_EXTRA}"; do
20071 if test -z "$ac_lib"; then
20072 ac_res="none required"
20075 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20077 if ac_fn_c_try_link "$LINENO"; then :
20078 ac_cv_search_ldap_init=$ac_res
20080 rm -f core conftest.err conftest.$ac_objext \
20082 if ${ac_cv_search_ldap_init+:} false; then :
20086 if ${ac_cv_search_ldap_init+:} false; then :
20089 ac_cv_search_ldap_init=no
20091 rm conftest.$ac_ext
20092 LIBS=$ac_func_search_save_LIBS
20094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_init" >&5
20095 $as_echo "$ac_cv_search_ldap_init" >&6; }
20096 ac_res=$ac_cv_search_ldap_init
20097 if test "$ac_res" != no; then :
20098 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20100 test "$ac_res" != "none required" && LDAP_LIBS="$ac_res"
20105 # If nothing linked, try -lldap and hope for the best
20106 if test "$found" = "no"; then
20109 LIBS="${_LIBS} ${LDAP_LIBS}"
20111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ber_set_option" >&5
20112 $as_echo_n "checking for library containing ber_set_option... " >&6; }
20113 if ${ac_cv_search_ber_set_option+:} false; then :
20114 $as_echo_n "(cached) " >&6
20116 ac_func_search_save_LIBS=$LIBS
20117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20118 /* end confdefs.h. */
20120 /* Override any GCC internal prototype to avoid an error.
20121 Use char because int might match the return type of a GCC
20122 builtin and then its argument prototype would still apply. */
20126 char ber_set_option ();
20130 return ber_set_option ();
20135 for ac_lib in '' lber; do
20136 if test -z "$ac_lib"; then
20137 ac_res="none required"
20140 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20142 if ac_fn_c_try_link "$LINENO"; then :
20143 ac_cv_search_ber_set_option=$ac_res
20145 rm -f core conftest.err conftest.$ac_objext \
20147 if ${ac_cv_search_ber_set_option+:} false; then :
20151 if ${ac_cv_search_ber_set_option+:} false; then :
20154 ac_cv_search_ber_set_option=no
20156 rm conftest.$ac_ext
20157 LIBS=$ac_func_search_save_LIBS
20159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ber_set_option" >&5
20160 $as_echo "$ac_cv_search_ber_set_option" >&6; }
20161 ac_res=$ac_cv_search_ber_set_option
20162 if test "$ac_res" != no; then :
20163 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20169 if test X"$found" = X"yes" -a X"$LIBS" != X"$OLIBS"; then
20170 LDAP_LIBS="$LDAP_LIBS -llber"
20172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lber.h is needed" >&5
20173 $as_echo_n "checking whether lber.h is needed... " >&6; }
20174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20175 /* end confdefs.h. */
20176 #include <sys/types.h>
20181 (void)ldap_init(0, 0)
20186 if ac_fn_c_try_link "$LINENO"; then :
20187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20188 $as_echo "no" >&6; }
20191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20192 $as_echo "yes" >&6; }
20193 $as_echo "#define HAVE_LBER_H 1" >>confdefs.h
20196 rm -f core conftest.err conftest.$ac_objext \
20197 conftest$ac_exeext conftest.$ac_ext
20199 for ac_header in sasl/sasl.h sasl.h
20201 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20202 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20203 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20204 cat >>confdefs.h <<_ACEOF
20205 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20208 for ac_func in ldap_sasl_interactive_bind_s
20210 ac_fn_c_check_func "$LINENO" "ldap_sasl_interactive_bind_s" "ac_cv_func_ldap_sasl_interactive_bind_s"
20211 if test "x$ac_cv_func_ldap_sasl_interactive_bind_s" = xyes; then :
20212 cat >>confdefs.h <<_ACEOF
20213 #define HAVE_LDAP_SASL_INTERACTIVE_BIND_S 1
20225 for ac_header in ldap_ssl.h mps/ldap_ssl.h
20227 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20228 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <ldap.h>
20230 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20231 cat >>confdefs.h <<_ACEOF
20232 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20239 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_init ldap_ssl_client_init ldap_start_tls_s_np
20241 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20242 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20243 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20244 cat >>confdefs.h <<_ACEOF
20245 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20251 for ac_func in ldap_search_ext_s ldap_search_st
20253 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20254 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20255 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20256 cat >>confdefs.h <<_ACEOF
20257 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20264 if test X"$check_gss_krb5_ccache_name" = X"yes"; then
20265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_ccache_name in -lgssapi" >&5
20266 $as_echo_n "checking for gss_krb5_ccache_name in -lgssapi... " >&6; }
20267 if ${ac_cv_lib_gssapi_gss_krb5_ccache_name+:} false; then :
20268 $as_echo_n "(cached) " >&6
20270 ac_check_lib_save_LIBS=$LIBS
20271 LIBS="-lgssapi $LIBS"
20272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20273 /* end confdefs.h. */
20275 /* Override any GCC internal prototype to avoid an error.
20276 Use char because int might match the return type of a GCC
20277 builtin and then its argument prototype would still apply. */
20281 char gss_krb5_ccache_name ();
20285 return gss_krb5_ccache_name ();
20290 if ac_fn_c_try_link "$LINENO"; then :
20291 ac_cv_lib_gssapi_gss_krb5_ccache_name=yes
20293 ac_cv_lib_gssapi_gss_krb5_ccache_name=no
20295 rm -f core conftest.err conftest.$ac_objext \
20296 conftest$ac_exeext conftest.$ac_ext
20297 LIBS=$ac_check_lib_save_LIBS
20299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_krb5_ccache_name" >&5
20300 $as_echo "$ac_cv_lib_gssapi_gss_krb5_ccache_name" >&6; }
20301 if test "x$ac_cv_lib_gssapi_gss_krb5_ccache_name" = xyes; then :
20302 $as_echo "#define HAVE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
20304 LDAP_LIBS="${LDAP_LIBS} -lgssapi"
20306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_ccache_name in -lgssapi_krb5" >&5
20307 $as_echo_n "checking for gss_krb5_ccache_name in -lgssapi_krb5... " >&6; }
20308 if ${ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name+:} false; then :
20309 $as_echo_n "(cached) " >&6
20311 ac_check_lib_save_LIBS=$LIBS
20312 LIBS="-lgssapi_krb5 $LIBS"
20313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20314 /* end confdefs.h. */
20316 /* Override any GCC internal prototype to avoid an error.
20317 Use char because int might match the return type of a GCC
20318 builtin and then its argument prototype would still apply. */
20322 char gss_krb5_ccache_name ();
20326 return gss_krb5_ccache_name ();
20331 if ac_fn_c_try_link "$LINENO"; then :
20332 ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=yes
20334 ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=no
20336 rm -f core conftest.err conftest.$ac_objext \
20337 conftest$ac_exeext conftest.$ac_ext
20338 LIBS=$ac_check_lib_save_LIBS
20340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&5
20341 $as_echo "$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&6; }
20342 if test "x$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" = xyes; then :
20343 $as_echo "#define HAVE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
20345 LDAP_LIBS="${LDAP_LIBS} -lgssapi_krb5"
20352 # gssapi headers may be separate or part of Kerberos V
20354 O_CPPFLAGS="$CPPFLAGS"
20355 for dir in "" "kerberosV" "krb5" "kerberos5" "kerberosv5"; do
20356 test X"$dir" != X"" && CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
20357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20358 /* end confdefs.h. */
20359 #include <gssapi/gssapi.h>
20368 if ac_fn_c_try_cpp "$LINENO"; then :
20369 found="gssapi/gssapi.h"; break
20371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20372 /* end confdefs.h. */
20373 #include <gssapi.h>
20382 if ac_fn_c_try_cpp "$LINENO"; then :
20383 found="gssapi.h"; break
20385 rm -f conftest.err conftest.i conftest.$ac_ext
20387 rm -f conftest.err conftest.i conftest.$ac_ext
20389 if test X"$found" != X"no"; then
20390 for ac_header in $found
20392 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20393 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20394 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20395 cat >>confdefs.h <<_ACEOF
20396 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20403 if test X"$found" = X"gssapi/gssapi.h"; then
20404 for ac_header in gssapi/gssapi_krb5.h
20406 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_krb5.h" "ac_cv_header_gssapi_gssapi_krb5_h" "$ac_includes_default"
20407 if test "x$ac_cv_header_gssapi_gssapi_krb5_h" = xyes; then :
20408 cat >>confdefs.h <<_ACEOF
20409 #define HAVE_GSSAPI_GSSAPI_KRB5_H 1
20418 CPPFLAGS="$O_CPPFLAGS"
20419 { $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
20420 $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;}
20424 SUDOERS_LIBS="${SUDOERS_LIBS} ${LDAP_LIBS}"
20426 LDFLAGS="$O_LDFLAGS"
20430 # How to do dynamic object loading.
20431 # We support dlopen() and sh_load(), else fall back to static loading.
20433 case "$lt_cv_dlopen" in
20435 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
20437 SUDO_OBJS="$SUDO_OBJS locale_stub.o"
20438 LT_STATIC="--tag=disable-static"
20441 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20443 SUDO_OBJS="$SUDO_OBJS locale_stub.o"
20444 LT_STATIC="--tag=disable-static"
20445 case " $LIBOBJS " in
20446 *" dlopen.$ac_objext "* ) ;;
20447 *) LIBOBJS="$LIBOBJS dlopen.$ac_objext"
20453 if test X"${ac_cv_func_dlopen}" = X"yes"; then
20454 as_fn_error $? "\"dlopen present but libtool doesn't appear to support your platform.\"" "$LINENO" 5
20456 # Preload sudoers module symbols
20457 SUDO_OBJS="${SUDO_OBJS} preload.o"
20458 SUDO_LIBS="${SUDO_LIBS} \$(top_builddir)/plugins/sudoers/sudoers.la"
20460 case " $LIBOBJS " in
20461 *" dlopen.$ac_objext "* ) ;;
20462 *) LIBOBJS="$LIBOBJS dlopen.$ac_objext"
20470 # Add library needed for dynamic loading, if any.
20472 LIBDL="$lt_cv_dlopen_libs"
20473 if test X"$LIBDL" != X""; then
20474 SUDO_LIBS="${SUDO_LIBS} $LIBDL"
20475 SUDOERS_LIBS="${SUDOERS_LIBS} $LIBDL"
20478 # On HP-UX, you cannot dlopen() a shared object that uses pthreads unless
20479 # the main program is linked against -lpthread. We have no knowledge of
20480 # what libraries a plugin may depend on (e.g. HP-UX LDAP which uses pthreads)
20481 # so always link against -lpthread on HP-UX if it is available.
20482 # This check should go after all other libraries tests.
20485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
20486 $as_echo_n "checking for main in -lpthread... " >&6; }
20487 if ${ac_cv_lib_pthread_main+:} false; then :
20488 $as_echo_n "(cached) " >&6
20490 ac_check_lib_save_LIBS=$LIBS
20491 LIBS="-lpthread $LIBS"
20492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20493 /* end confdefs.h. */
20504 if ac_fn_c_try_link "$LINENO"; then :
20505 ac_cv_lib_pthread_main=yes
20507 ac_cv_lib_pthread_main=no
20509 rm -f core conftest.err conftest.$ac_objext \
20510 conftest$ac_exeext conftest.$ac_ext
20511 LIBS=$ac_check_lib_save_LIBS
20513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
20514 $as_echo "$ac_cv_lib_pthread_main" >&6; }
20515 if test "x$ac_cv_lib_pthread_main" = xyes; then :
20516 SUDO_LIBS="${SUDO_LIBS} -lpthread"
20519 OSDEFS="${OSDEFS} -D_REENTRANT"
20523 if test "$utmp_style" = "LEGACY"; then
20524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utmp file path" >&5
20525 $as_echo_n "checking for utmp file path... " >&6; }
20527 for p in "/var/run/utmp" "/var/adm/utmp" "/etc/utmp"; do
20528 if test -r "$p"; then
20530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
20531 $as_echo "$p" >&6; }
20532 cat >>confdefs.h <<EOF
20533 #define _PATH_UTMP "$p"
20539 if test X"$found" != X"yes"; then
20540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20541 $as_echo "not found" >&6; }
20545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log file location" >&5
20546 $as_echo_n "checking for log file location... " >&6; }
20547 if test -n "$with_logpath"; then
20548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_logpath" >&5
20549 $as_echo "$with_logpath" >&6; }
20550 cat >>confdefs.h <<EOF
20551 #define _PATH_SUDO_LOGFILE "$with_logpath"
20554 elif test -d "/var/log"; then
20555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /var/log/sudo.log" >&5
20556 $as_echo "/var/log/sudo.log" >&6; }
20557 cat >>confdefs.h <<\EOF
20558 #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
20561 elif test -d "/var/adm"; then
20562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /var/adm/sudo.log" >&5
20563 $as_echo "/var/adm/sudo.log" >&6; }
20564 cat >>confdefs.h <<\EOF
20565 #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
20568 elif test -d "/usr/adm"; then
20569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /usr/adm/sudo.log" >&5
20570 $as_echo "/usr/adm/sudo.log" >&6; }
20571 cat >>confdefs.h <<\EOF
20572 #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
20576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
20577 $as_echo "unknown" >&6; }
20580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timestamp file location" >&5
20581 $as_echo_n "checking for timestamp file location... " >&6; }
20582 timedir="$with_timedir"
20583 if test -z "$timedir"; then
20584 for d in /var/db /var/lib /var/adm /usr/adm; do
20585 if test -d "$d"; then
20591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $timedir" >&5
20592 $as_echo "$timedir" >&6; }
20593 cat >>confdefs.h <<EOF
20594 #define _PATH_SUDO_TIMEDIR "$timedir"
20599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for I/O log dir location" >&5
20600 $as_echo_n "checking for I/O log dir location... " >&6; }
20601 if test "${with_iologdir-yes}" != "yes"; then
20602 iolog_dir="$with_iologdir"
20603 elif test -d "/var/log"; then
20604 iolog_dir="/var/log/sudo-io"
20605 elif test -d "/var/adm"; then
20606 iolog_dir="/var/adm/sudo-io"
20608 iolog_dir="/usr/adm/sudo-io"
20610 if test "${with_iologdir}" != "no"; then
20611 cat >>confdefs.h <<EOF
20612 #define _PATH_SUDO_IO_LOGDIR "$iolog_dir"
20616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $iolog_dir" >&5
20617 $as_echo "$iolog_dir" >&6; }
20621 ac_c_werror_flag=yes
20623 if test -n "$GCC" -a "$lt_cv_prog_gnu_ld" != "yes" -a -n "$GCC"; then
20624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -static-libgcc" >&5
20625 $as_echo_n "checking whether C compiler accepts -static-libgcc... " >&6; }
20626 if ${ax_cv_check_cflags___static_libgcc+:} false; then :
20627 $as_echo_n "(cached) " >&6
20630 ax_check_save_flags=$CFLAGS
20631 CFLAGS="$CFLAGS -static-libgcc"
20632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20633 /* end confdefs.h. */
20643 if ac_fn_c_try_compile "$LINENO"; then :
20644 ax_cv_check_cflags___static_libgcc=yes
20646 ax_cv_check_cflags___static_libgcc=no
20648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20649 CFLAGS=$ax_check_save_flags
20651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___static_libgcc" >&5
20652 $as_echo "$ax_cv_check_cflags___static_libgcc" >&6; }
20653 if test x"$ax_cv_check_cflags___static_libgcc" = xyes; then :
20654 LT_LDFLAGS="$LT_LDFLAGS -Wc,-static-libgcc"
20661 if test -n "$GCC"; then
20662 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__-fvisibility=hidden" | $as_tr_sh`
20663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fvisibility=hidden" >&5
20664 $as_echo_n "checking whether C compiler accepts -fvisibility=hidden... " >&6; }
20665 if eval \${$as_CACHEVAR+:} false; then :
20666 $as_echo_n "(cached) " >&6
20669 ax_check_save_flags=$CFLAGS
20670 CFLAGS="$CFLAGS -fvisibility=hidden"
20671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20672 /* end confdefs.h. */
20682 if ac_fn_c_try_compile "$LINENO"; then :
20683 eval "$as_CACHEVAR=yes"
20685 eval "$as_CACHEVAR=no"
20687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20688 CFLAGS=$ax_check_save_flags
20690 eval ac_res=\$$as_CACHEVAR
20691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20692 $as_echo "$ac_res" >&6; }
20693 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
20695 $as_echo "#define HAVE_DSO_VISIBILITY 1" >>confdefs.h
20697 CFLAGS="${CFLAGS} -fvisibility=hidden"
20709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Bhidden_def" >&5
20710 $as_echo_n "checking whether C compiler accepts -Bhidden_def... " >&6; }
20711 if ${ax_cv_check_cflags___Bhidden_def+:} false; then :
20712 $as_echo_n "(cached) " >&6
20715 ax_check_save_flags=$CFLAGS
20716 CFLAGS="$CFLAGS -Bhidden_def"
20717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20718 /* end confdefs.h. */
20728 if ac_fn_c_try_compile "$LINENO"; then :
20729 ax_cv_check_cflags___Bhidden_def=yes
20731 ax_cv_check_cflags___Bhidden_def=no
20733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20734 CFLAGS=$ax_check_save_flags
20736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Bhidden_def" >&5
20737 $as_echo "$ax_cv_check_cflags___Bhidden_def" >&6; }
20738 if test x"$ax_cv_check_cflags___Bhidden_def" = xyes; then :
20740 $as_echo "#define HAVE_DSO_VISIBILITY 1" >>confdefs.h
20742 CFLAGS="${CFLAGS} -Bhidden_def"
20752 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__-xldscope=hidden" | $as_tr_sh`
20753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -xldscope=hidden" >&5
20754 $as_echo_n "checking whether C compiler accepts -xldscope=hidden... " >&6; }
20755 if eval \${$as_CACHEVAR+:} false; then :
20756 $as_echo_n "(cached) " >&6
20759 ax_check_save_flags=$CFLAGS
20760 CFLAGS="$CFLAGS -xldscope=hidden"
20761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20762 /* end confdefs.h. */
20772 if ac_fn_c_try_compile "$LINENO"; then :
20773 eval "$as_CACHEVAR=yes"
20775 eval "$as_CACHEVAR=no"
20777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20778 CFLAGS=$ax_check_save_flags
20780 eval ac_res=\$$as_CACHEVAR
20781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20782 $as_echo "$ac_res" >&6; }
20783 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
20785 $as_echo "#define HAVE_DSO_VISIBILITY 1" >>confdefs.h
20787 CFLAGS="${CFLAGS} -xldscope=hidden"
20799 if test -n "$LT_LDEXPORTS"; then
20800 if test "$lt_cv_prog_gnu_ld" = "yes"; then
20801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports anonymous map files" >&5
20802 $as_echo_n "checking whether ld supports anonymous map files... " >&6; }
20803 if ${sudo_cv_var_gnu_ld_anon_map+:} false; then :
20804 $as_echo_n "(cached) " >&6
20807 sudo_cv_var_gnu_ld_anon_map=no
20808 cat > conftest.map <<-EOF
20815 CFLAGS="$CFLAGS $lt_prog_compiler_pic"
20816 _LDFLAGS="$LDFLAGS"
20817 LDFLAGS="$LDFLAGS -fpic -shared -Wl,--version-script,./conftest.map"
20818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20819 /* end confdefs.h. */
20829 if ac_fn_c_try_link "$LINENO"; then :
20830 sudo_cv_var_gnu_ld_anon_map=yes
20832 rm -f core conftest.err conftest.$ac_objext \
20833 conftest$ac_exeext conftest.$ac_ext
20835 LDFLAGS="$_LDFLAGS"
20839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_gnu_ld_anon_map" >&5
20840 $as_echo "$sudo_cv_var_gnu_ld_anon_map" >&6; }
20841 if test "$sudo_cv_var_gnu_ld_anon_map" = "yes"; then
20842 LT_LDEXPORTS=; LT_LDDEP="\$(shlib_map)"; LT_LDMAP="-Wl,--version-script,\$(shlib_map)"
20847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports anonymous map files" >&5
20848 $as_echo_n "checking whether ld supports anonymous map files... " >&6; }
20849 if ${sudo_cv_var_solaris_ld_anon_map+:} false; then :
20850 $as_echo_n "(cached) " >&6
20853 sudo_cv_var_solaris_ld_anon_map=no
20854 cat > conftest.map <<-EOF
20861 CFLAGS="$CFLAGS $lt_prog_compiler_pic"
20862 _LDFLAGS="$LDFLAGS"
20863 LDFLAGS="$LDFLAGS -shared -Wl,-M,./conftest.map"
20864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20865 /* end confdefs.h. */
20875 if ac_fn_c_try_link "$LINENO"; then :
20876 sudo_cv_var_solaris_ld_anon_map=yes
20878 rm -f core conftest.err conftest.$ac_objext \
20879 conftest$ac_exeext conftest.$ac_ext
20881 LDFLAGS="$_LDFLAGS"
20885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_solaris_ld_anon_map" >&5
20886 $as_echo "$sudo_cv_var_solaris_ld_anon_map" >&6; }
20887 if test "$sudo_cv_var_solaris_ld_anon_map" = "yes"; then
20888 LT_LDEXPORTS=; LT_LDDEP="\$(shlib_map)"; LT_LDMAP="-Wl,-M,\$(shlib_map)"
20892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports controlling exported symbols" >&5
20893 $as_echo_n "checking whether ld supports controlling exported symbols... " >&6; }
20894 if ${sudo_cv_var_hpux_ld_symbol_export+:} false; then :
20895 $as_echo_n "(cached) " >&6
20898 sudo_cv_var_hpux_ld_symbol_export=no
20899 echo "+e foo" > conftest.opt
20901 CFLAGS="$CFLAGS $lt_prog_compiler_pic"
20902 _LDFLAGS="$LDFLAGS"
20903 if test -n "$GCC"; then
20904 LDFLAGS="$LDFLAGS -shared -Wl,-c,./conftest.opt"
20906 LDFLAGS="$LDFLAGS -Wl,-b -Wl,-c,./conftest.opt"
20908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20909 /* end confdefs.h. */
20919 if ac_fn_c_try_link "$LINENO"; then :
20920 sudo_cv_var_hpux_ld_symbol_export=yes
20922 rm -f core conftest.err conftest.$ac_objext \
20923 conftest$ac_exeext conftest.$ac_ext
20925 LDFLAGS="$_LDFLAGS"
20930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_hpux_ld_symbol_export" >&5
20931 $as_echo "$sudo_cv_var_hpux_ld_symbol_export" >&6; }
20932 if test "$sudo_cv_var_hpux_ld_symbol_export" = "yes"; then
20933 LT_LDEXPORTS=; LT_LDDEP="\$(shlib_opt)"; LT_LDOPT="-Wl,-c,\$(shlib_opt)"
20940 if test -n "$GCC"; then
20941 if test -z "$enable_pie"; then
20944 # Attempt to build with PIE support
20949 if test -n "$enable_pie"; then
20950 if test "$enable_pie" = "no"; then
20951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-pie" >&5
20952 $as_echo_n "checking whether C compiler accepts -fno-pie... " >&6; }
20953 if ${ax_cv_check_cflags___fno_pie+:} false; then :
20954 $as_echo_n "(cached) " >&6
20957 ax_check_save_flags=$CFLAGS
20958 CFLAGS="$CFLAGS -fno-pie"
20959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20960 /* end confdefs.h. */
20970 if ac_fn_c_try_compile "$LINENO"; then :
20971 ax_cv_check_cflags___fno_pie=yes
20973 ax_cv_check_cflags___fno_pie=no
20975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20976 CFLAGS=$ax_check_save_flags
20978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_pie" >&5
20979 $as_echo "$ax_cv_check_cflags___fno_pie" >&6; }
20980 if test x"$ax_cv_check_cflags___fno_pie" = xyes; then :
20983 CFLAGS="$CFLAGS -fno-pie"
20984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -nopie" >&5
20985 $as_echo_n "checking whether the linker accepts -nopie... " >&6; }
20986 if ${ax_cv_check_ldflags___nopie+:} false; then :
20987 $as_echo_n "(cached) " >&6
20990 ax_check_save_flags=$LDFLAGS
20991 LDFLAGS="$LDFLAGS -nopie"
20992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20993 /* end confdefs.h. */
21003 if ac_fn_c_try_link "$LINENO"; then :
21004 ax_cv_check_ldflags___nopie=yes
21006 ax_cv_check_ldflags___nopie=no
21008 rm -f core conftest.err conftest.$ac_objext \
21009 conftest$ac_exeext conftest.$ac_ext
21010 LDFLAGS=$ax_check_save_flags
21012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___nopie" >&5
21013 $as_echo "$ax_cv_check_ldflags___nopie" >&6; }
21014 if test x"$ax_cv_check_ldflags___nopie" = xyes; then :
21016 PIE_CFLAGS="-fno-pie"
21017 PIE_LDFLAGS="-nopie"
21030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fPIE" >&5
21031 $as_echo_n "checking whether C compiler accepts -fPIE... " >&6; }
21032 if ${ax_cv_check_cflags___fPIE+:} false; then :
21033 $as_echo_n "(cached) " >&6
21036 ax_check_save_flags=$CFLAGS
21037 CFLAGS="$CFLAGS -fPIE"
21038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21039 /* end confdefs.h. */
21049 if ac_fn_c_try_compile "$LINENO"; then :
21050 ax_cv_check_cflags___fPIE=yes
21052 ax_cv_check_cflags___fPIE=no
21054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21055 CFLAGS=$ax_check_save_flags
21057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fPIE" >&5
21058 $as_echo "$ax_cv_check_cflags___fPIE" >&6; }
21059 if test x"$ax_cv_check_cflags___fPIE" = xyes; then :
21062 CFLAGS="$CFLAGS -fPIE"
21063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -pie" >&5
21064 $as_echo_n "checking whether the linker accepts -pie... " >&6; }
21065 if ${ax_cv_check_ldflags___pie+:} false; then :
21066 $as_echo_n "(cached) " >&6
21069 ax_check_save_flags=$LDFLAGS
21070 LDFLAGS="$LDFLAGS -pie"
21071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21072 /* end confdefs.h. */
21082 if ac_fn_c_try_link "$LINENO"; then :
21083 ax_cv_check_ldflags___pie=yes
21085 ax_cv_check_ldflags___pie=no
21087 rm -f core conftest.err conftest.$ac_objext \
21088 conftest$ac_exeext conftest.$ac_ext
21089 LDFLAGS=$ax_check_save_flags
21091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___pie" >&5
21092 $as_echo "$ax_cv_check_ldflags___pie" >&6; }
21093 if test x"$ax_cv_check_ldflags___pie" = xyes; then :
21095 if test "$enable_pie" = "maybe"; then
21096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working PIE support" >&5
21097 $as_echo_n "checking for working PIE support... " >&6; }
21098 if ${sudo_cv_working_pie+:} false; then :
21099 $as_echo_n "(cached) " >&6
21101 rm -f conftestdata; > conftestdata
21102 if test "$cross_compiling" = yes; then :
21103 sudo_cv_working_pie=no
21105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21106 /* end confdefs.h. */
21107 $ac_includes_default
21108 main() { char *p = malloc(1024); if (p == NULL) return 1; memset(p, 0, 1024); return 0; }
21110 if ac_fn_c_try_run "$LINENO"; then :
21111 sudo_cv_working_pie=yes
21113 sudo_cv_working_pie=no
21115 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21116 conftest.$ac_objext conftest.beam conftest.$ac_ext
21119 rm -f core core.* *.core
21122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_working_pie" >&5
21123 $as_echo "$sudo_cv_working_pie" >&6; }
21124 if test $sudo_cv_working_pie = yes; then :
21128 if test "$enable_pie" = "yes"; then
21130 PIE_LDFLAGS="-Wc,-fPIE -pie"
21146 if test "$enable_pie" != "yes"; then
21147 # Solaris 11.1 and higher supports tagging binaries to use ASLR
21149 solaris2.1[1-9]|solaris2.[2-9][0-9])
21150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,aslr" >&5
21151 $as_echo_n "checking whether the linker accepts -Wl,-z,aslr... " >&6; }
21152 if ${ax_cv_check_ldflags___Wl__z_aslr+:} false; then :
21153 $as_echo_n "(cached) " >&6
21156 ax_check_save_flags=$LDFLAGS
21157 LDFLAGS="$LDFLAGS -Wl,-z,aslr"
21158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21159 /* end confdefs.h. */
21169 if ac_fn_c_try_link "$LINENO"; then :
21170 ax_cv_check_ldflags___Wl__z_aslr=yes
21172 ax_cv_check_ldflags___Wl__z_aslr=no
21174 rm -f core conftest.err conftest.$ac_objext \
21175 conftest$ac_exeext conftest.$ac_ext
21176 LDFLAGS=$ax_check_save_flags
21178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_aslr" >&5
21179 $as_echo "$ax_cv_check_ldflags___Wl__z_aslr" >&6; }
21180 if test x"$ax_cv_check_ldflags___Wl__z_aslr" = xyes; then :
21181 PIE_LDFLAGS="${PIE_LDFLAGS}${PIE_LDFLAGS+ }-Wl,-z,aslr"
21190 if test "$enable_hardening" != "no"; then
21191 if test -n "$GCC"; then
21192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstack-protector-all" >&5
21193 $as_echo_n "checking whether C compiler accepts -fstack-protector-all... " >&6; }
21194 if ${ax_cv_check_cflags___fstack_protector_all+:} false; then :
21195 $as_echo_n "(cached) " >&6
21198 ax_check_save_flags=$CFLAGS
21199 CFLAGS="$CFLAGS -fstack-protector-all"
21200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21201 /* end confdefs.h. */
21211 if ac_fn_c_try_compile "$LINENO"; then :
21212 ax_cv_check_cflags___fstack_protector_all=yes
21214 ax_cv_check_cflags___fstack_protector_all=no
21216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21217 CFLAGS=$ax_check_save_flags
21219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstack_protector_all" >&5
21220 $as_echo "$ax_cv_check_cflags___fstack_protector_all" >&6; }
21221 if test x"$ax_cv_check_cflags___fstack_protector_all" = xyes; then :
21223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fstack-protector-all" >&5
21224 $as_echo_n "checking whether the linker accepts -fstack-protector-all... " >&6; }
21225 if ${ax_cv_check_ldflags___fstack_protector_all+:} false; then :
21226 $as_echo_n "(cached) " >&6
21229 ax_check_save_flags=$LDFLAGS
21230 LDFLAGS="$LDFLAGS -fstack-protector-all"
21231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21232 /* end confdefs.h. */
21242 if ac_fn_c_try_link "$LINENO"; then :
21243 ax_cv_check_ldflags___fstack_protector_all=yes
21245 ax_cv_check_ldflags___fstack_protector_all=no
21247 rm -f core conftest.err conftest.$ac_objext \
21248 conftest$ac_exeext conftest.$ac_ext
21249 LDFLAGS=$ax_check_save_flags
21251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fstack_protector_all" >&5
21252 $as_echo "$ax_cv_check_ldflags___fstack_protector_all" >&6; }
21253 if test x"$ax_cv_check_ldflags___fstack_protector_all" = xyes; then :
21255 SSP_CFLAGS="-fstack-protector-all"
21256 SSP_LDFLAGS="-Wc,-fstack-protector-all"
21267 if test -z "$SSP_CFLAGS"; then
21268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstack-protector" >&5
21269 $as_echo_n "checking whether C compiler accepts -fstack-protector... " >&6; }
21270 if ${ax_cv_check_cflags___fstack_protector+:} false; then :
21271 $as_echo_n "(cached) " >&6
21274 ax_check_save_flags=$CFLAGS
21275 CFLAGS="$CFLAGS -fstack-protector"
21276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21277 /* end confdefs.h. */
21287 if ac_fn_c_try_compile "$LINENO"; then :
21288 ax_cv_check_cflags___fstack_protector=yes
21290 ax_cv_check_cflags___fstack_protector=no
21292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21293 CFLAGS=$ax_check_save_flags
21295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstack_protector" >&5
21296 $as_echo "$ax_cv_check_cflags___fstack_protector" >&6; }
21297 if test x"$ax_cv_check_cflags___fstack_protector" = xyes; then :
21299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fstack-protector" >&5
21300 $as_echo_n "checking whether the linker accepts -fstack-protector... " >&6; }
21301 if ${ax_cv_check_ldflags___fstack_protector+:} false; then :
21302 $as_echo_n "(cached) " >&6
21305 ax_check_save_flags=$LDFLAGS
21306 LDFLAGS="$LDFLAGS -fstack-protector"
21307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21308 /* end confdefs.h. */
21318 if ac_fn_c_try_link "$LINENO"; then :
21319 ax_cv_check_ldflags___fstack_protector=yes
21321 ax_cv_check_ldflags___fstack_protector=no
21323 rm -f core conftest.err conftest.$ac_objext \
21324 conftest$ac_exeext conftest.$ac_ext
21325 LDFLAGS=$ax_check_save_flags
21327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fstack_protector" >&5
21328 $as_echo "$ax_cv_check_ldflags___fstack_protector" >&6; }
21329 if test x"$ax_cv_check_ldflags___fstack_protector" = xyes; then :
21331 SSP_CFLAGS="-fstack-protector"
21332 SSP_LDFLAGS="-Wc,-fstack-protector"
21345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,relro" >&5
21346 $as_echo_n "checking whether the linker accepts -Wl,-z,relro... " >&6; }
21347 if ${ax_cv_check_ldflags___Wl__z_relro+:} false; then :
21348 $as_echo_n "(cached) " >&6
21351 ax_check_save_flags=$LDFLAGS
21352 LDFLAGS="$LDFLAGS -Wl,-z,relro"
21353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21354 /* end confdefs.h. */
21364 if ac_fn_c_try_link "$LINENO"; then :
21365 ax_cv_check_ldflags___Wl__z_relro=yes
21367 ax_cv_check_ldflags___Wl__z_relro=no
21369 rm -f core conftest.err conftest.$ac_objext \
21370 conftest$ac_exeext conftest.$ac_ext
21371 LDFLAGS=$ax_check_save_flags
21373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_relro" >&5
21374 $as_echo "$ax_cv_check_ldflags___Wl__z_relro" >&6; }
21375 if test x"$ax_cv_check_ldflags___Wl__z_relro" = xyes; then :
21376 LDFLAGS="${LDFLAGS} -Wl,-z,relro"
21383 case "$with_passwd" in
21385 AUTH_OBJS="$AUTH_OBJS getspwuid.lo passwd.lo"
21388 $as_echo "#define WITHOUT_PASSWD 1" >>confdefs.h
21390 if test -z "$AUTH_OBJS"; then
21391 as_fn_error $? "no authentication methods defined." "$LINENO" 5
21395 AUTH_OBJS=${AUTH_OBJS# }
21396 _AUTH=`echo "$AUTH_OBJS" | sed -e 's/\.lo//g' -e 's/getspwuid *//'`
21397 { $as_echo "$as_me:${as_lineno-$LINENO}: using the following authentication methods: $_AUTH" >&5
21398 $as_echo "$as_me: using the following authentication methods: $_AUTH" >&6;}
21400 if test -n "$LIBS"; then
21405 for sl in ${SUDO_LIBS} ${SUDOERS_LIBS} ${NET_LIBS}; do
21406 test $l = $sl && dupe=1
21408 test $dupe = 0 && LIBS="${LIBS} $l"
21413 cat >>confdefs.h <<_ACEOF
21414 #define os_init $OS_INIT
21418 if test -n "$GCC"; then
21419 if test X"$enable_warnings" = X"yes" -o X"$with_devel" = X"yes"; then
21420 CFLAGS="${CFLAGS} -Wall"
21422 if test X"$enable_werror" = X"yes"; then
21423 CFLAGS="${CFLAGS} -Werror"
21427 CROSS_COMPILING="$cross_compiling"
21429 test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
21431 if test X"$with_noexec" != X"no" -o X"$with_selinux" != X"no" -o "$enabled_shared" != X"no"; then
21432 oexec_prefix="$exec_prefix"
21433 if test "$exec_prefix" = '$(prefix)'; then
21434 if test "$prefix" = "NONE"; then
21435 exec_prefix="$ac_default_prefix"
21437 exec_prefix="$prefix"
21440 if test X"$with_noexec" != X"no"; then
21441 PROGS="${PROGS} libsudo_noexec.la"
21442 INSTALL_NOEXEC="install-noexec"
21444 noexec_file="$with_noexec"
21446 while test X"$noexec_file" != X"$_noexec_file"; do
21447 _noexec_file="$noexec_file"
21448 eval noexec_file="$_noexec_file"
21450 cat >>confdefs.h <<EOF
21451 #define _PATH_SUDO_NOEXEC "$noexec_file"
21455 if test X"$with_selinux" != X"no"; then
21456 sesh_file="$libexecdir/sudo/sesh"
21458 while test X"$sesh_file" != X"$_sesh_file"; do
21459 _sesh_file="$sesh_file"
21460 eval sesh_file="$_sesh_file"
21462 cat >>confdefs.h <<EOF
21463 #define _PATH_SUDO_SESH "$sesh_file"
21467 if test X"$enable_shared" != X"no"; then
21468 PLUGINDIR="$with_plugindir"
21470 while test X"$PLUGINDIR" != X"$_PLUGINDIR"; do
21471 _PLUGINDIR="$PLUGINDIR"
21472 eval PLUGINDIR="$_PLUGINDIR"
21474 cat >>confdefs.h <<EOF
21475 #define _PATH_SUDO_PLUGIN_DIR "$PLUGINDIR/"
21478 cat >>confdefs.h <<EOF
21479 #define SUDOERS_PLUGIN "sudoers.so"
21483 exec_prefix="$oexec_prefix"
21485 if test X"$with_selinux" = X"no"; then
21486 cat >>confdefs.h <<EOF
21487 #define _PATH_SUDO_SESH NULL
21492 if test X"$LDFLAGS_R" != X""; then
21493 LDFLAGS="$LDFLAGS $LDFLAGS_R"
21495 if test X"$SUDOERS_LDFLAGS_R" != X""; then
21496 SUDOERS_LDFLAGS="$SUDOERS_LDFLAGS $SUDOERS_LDFLAGS_R"
21498 if test X"$ZLIB_R" != X""; then
21499 ZLIB="$ZLIB_R $ZLIB"
21502 if test X"$prefix" = X"NONE"; then
21503 test "$mandir" = '${datarootdir}/man' && mandir='$(prefix)/man'
21505 test "$mandir" = '${datarootdir}/man' && mandir='$(datarootdir)/man'
21507 test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
21508 test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
21509 test "$libexecdir" = '${exec_prefix}/libexec' && libexecdir='$(exec_prefix)/libexec'
21510 test "$includedir" = '${prefix}/include' && includedir='$(prefix)/include'
21511 test "$datarootdir" = '${prefix}/share' && datarootdir='$(prefix)/share'
21512 test "$docdir" = '${datarootdir}/doc/${PACKAGE_TARNAME}' && docdir='$(datarootdir)/doc/$(PACKAGE_TARNAME)'
21513 test "$localedir" = '${datarootdir}/locale' && localedir='$(datarootdir)/locale'
21514 test "$localstatedir" = '${prefix}/var' && localstatedir='$(prefix)/var'
21515 test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
21517 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/group_file/Makefile plugins/system_group/Makefile plugins/sudoers/Makefile plugins/sudoers/sudoers"
21519 cat >confcache <<\_ACEOF
21520 # This file is a shell script that caches the results of configure
21521 # tests run on this system so they can be shared between configure
21522 # scripts and configure runs, see configure's option --config-cache.
21523 # It is not useful on other systems. If it contains results you don't
21524 # want to keep, you may remove or edit it.
21526 # config.status only pays attention to the cache file if you give it
21527 # the --recheck option to rerun configure.
21529 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21530 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21531 # following values.
21535 # The following way of writing the cache mishandles newlines in values,
21536 # but we know of no workaround that is simple, portable, and efficient.
21537 # So, we kill variables containing newlines.
21538 # Ultrix sh set writes to stderr and can't be redirected directly,
21539 # and sets the high bit in the cache file unless we assign to the vars.
21541 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21542 eval ac_val=\$$ac_var
21546 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21547 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21550 _ | IFS | as_nl) ;; #(
21551 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21552 *) { eval $ac_var=; unset $ac_var;} ;;
21558 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21559 *${as_nl}ac_space=\ *)
21560 # `set' does not quote correctly, so add quotes: double-quote
21561 # substitution turns \\\\ into \\, and sed turns \\ into \.
21564 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21567 # `set' quotes correctly as required by POSIX, so do not add quotes.
21568 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21577 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21579 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21581 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21582 if test -w "$cache_file"; then
21583 if test "x$cache_file" != "x/dev/null"; then
21584 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21585 $as_echo "$as_me: updating cache $cache_file" >&6;}
21586 if test ! -f "$cache_file" || test -h "$cache_file"; then
21587 cat confcache >"$cache_file"
21589 case $cache_file in #(
21591 mv -f confcache "$cache_file"$$ &&
21592 mv -f "$cache_file"$$ "$cache_file" ;; #(
21594 mv -f confcache "$cache_file" ;;
21599 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21600 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21605 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21606 # Let make expand exec_prefix.
21607 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21609 DEFS=-DHAVE_CONFIG_H
21614 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21615 # 1. Remove the extension, and $U if already installed.
21616 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21617 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21618 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21619 # will be set to the directory where LIBOBJS objects are built.
21620 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21621 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21623 LIBOBJS=$ac_libobjs
21625 LTLIBOBJS=$ac_ltlibobjs
21629 : "${CONFIG_STATUS=./config.status}"
21631 ac_clean_files_save=$ac_clean_files
21632 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21633 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21634 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21636 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21638 # Generated by $as_me.
21639 # Run this file to recreate the current configuration.
21640 # Compiler output produced by configure, useful for debugging
21641 # configure, is in config.log if it exists.
21644 ac_cs_recheck=false
21647 SHELL=\${CONFIG_SHELL-$SHELL}
21650 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21651 ## -------------------- ##
21652 ## M4sh Initialization. ##
21653 ## -------------------- ##
21655 # Be more Bourne compatible
21656 DUALCASE=1; export DUALCASE # for MKS sh
21657 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21660 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21661 # is contrary to our usage. Disable this feature.
21662 alias -g '${1+"$@"}'='"$@"'
21663 setopt NO_GLOB_SUBST
21665 case `(set -o) 2>/dev/null` in #(
21677 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21678 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21679 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21680 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21681 # Prefer a ksh shell builtin over an external printf program on Solaris,
21682 # but without wasting forks for bash or zsh.
21683 if test -z "$BASH_VERSION$ZSH_VERSION" \
21684 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21685 as_echo='print -r --'
21686 as_echo_n='print -rn --'
21687 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21688 as_echo='printf %s\n'
21689 as_echo_n='printf %s'
21691 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21692 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21693 as_echo_n='/usr/ucb/echo -n'
21695 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21696 as_echo_n_body='eval
21700 expr "X$arg" : "X\\(.*\\)$as_nl";
21701 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21703 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21705 export as_echo_n_body
21706 as_echo_n='sh -c $as_echo_n_body as_echo'
21708 export as_echo_body
21709 as_echo='sh -c $as_echo_body as_echo'
21712 # The user is always right.
21713 if test "${PATH_SEPARATOR+set}" != set; then
21715 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21716 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21723 # We need space, tab and new line, in precisely that order. Quoting is
21724 # there to prevent editors from complaining about space-tab.
21725 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21726 # splitting by setting IFS to empty value.)
21729 # Find who we are. Look in the path if we contain no directory separator.
21732 *[\\/]* ) as_myself=$0 ;;
21733 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21734 for as_dir in $PATH
21737 test -z "$as_dir" && as_dir=.
21738 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21744 # We did not find ourselves, most probably we were run as `sh COMMAND'
21745 # in which case we are not to be found in the path.
21746 if test "x$as_myself" = x; then
21749 if test ! -f "$as_myself"; then
21750 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21754 # Unset variables that we do not need and which cause bugs (e.g. in
21755 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
21756 # suppresses any "Segmentation fault" message there. '((' could
21757 # trigger a bug in pdksh 5.2.14.
21758 for as_var in BASH_ENV ENV MAIL MAILPATH
21759 do eval test x\${$as_var+set} = xset \
21760 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21773 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21776 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21777 # ----------------------------------------
21778 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21779 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21780 # script with STATUS, using 1 if that was 0.
21783 as_status=$1; test $as_status -eq 0 && as_status=1
21785 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21786 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21788 $as_echo "$as_me: error: $2" >&2
21789 as_fn_exit $as_status
21793 # as_fn_set_status STATUS
21794 # -----------------------
21795 # Set $? to STATUS, without forking.
21796 as_fn_set_status ()
21799 } # as_fn_set_status
21801 # as_fn_exit STATUS
21802 # -----------------
21803 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21807 as_fn_set_status $1
21813 # Portably unset VAR.
21816 { eval $1=; unset $1;}
21818 as_unset=as_fn_unset
21819 # as_fn_append VAR VALUE
21820 # ----------------------
21821 # Append the text in VALUE to the end of the definition contained in VAR. Take
21822 # advantage of any shell optimizations that allow amortized linear growth over
21823 # repeated appends, instead of the typical quadratic growth present in naive
21825 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21826 eval 'as_fn_append ()
21837 # as_fn_arith ARG...
21838 # ------------------
21839 # Perform arithmetic evaluation on the ARGs, and store the result in the
21840 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21841 # must be portable across $(()) and expr.
21842 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21843 eval 'as_fn_arith ()
21850 as_val=`expr "$@" || test $? -eq 1`
21855 if expr a : '\(a\)' >/dev/null 2>&1 &&
21856 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21862 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21863 as_basename=basename
21868 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21874 as_me=`$as_basename -- "$0" ||
21875 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21876 X"$0" : 'X\(//\)$' \| \
21877 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21879 sed '/^.*\/\([^/][^/]*\)\/*$/{
21893 # Avoid depending upon Character Ranges.
21894 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21895 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21896 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21897 as_cr_digits='0123456789'
21898 as_cr_alnum=$as_cr_Letters$as_cr_digits
21900 ECHO_C= ECHO_N= ECHO_T=
21901 case `echo -n x` in #(((((
21903 case `echo 'xy\c'` in
21904 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21906 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21913 rm -f conf$$ conf$$.exe conf$$.file
21914 if test -d conf$$.dir; then
21915 rm -f conf$$.dir/conf$$.file
21918 mkdir conf$$.dir 2>/dev/null
21920 if (echo >conf$$.file) 2>/dev/null; then
21921 if ln -s conf$$.file conf$$ 2>/dev/null; then
21923 # ... but there are two gotchas:
21924 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21925 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21926 # In both cases, we have to default to `cp -p'.
21927 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21929 elif ln conf$$.file conf$$ 2>/dev/null; then
21937 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21938 rmdir conf$$.dir 2>/dev/null
21943 # Create "$as_dir" as a directory, including parents if necessary.
21948 -*) as_dir=./$as_dir;;
21950 test -d "$as_dir" || eval $as_mkdir_p || {
21954 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21955 *) as_qdir=$as_dir;;
21957 as_dirs="'$as_qdir' $as_dirs"
21958 as_dir=`$as_dirname -- "$as_dir" ||
21959 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21960 X"$as_dir" : 'X\(//\)[^/]' \| \
21961 X"$as_dir" : 'X\(//\)$' \| \
21962 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21963 $as_echo X"$as_dir" |
21964 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21968 /^X\(\/\/\)[^/].*/{
21981 test -d "$as_dir" && break
21983 test -z "$as_dirs" || eval "mkdir $as_dirs"
21984 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21988 if mkdir -p . 2>/dev/null; then
21989 as_mkdir_p='mkdir -p "$as_dir"'
21991 test -d ./-p && rmdir ./-p
21995 if test -x / >/dev/null 2>&1; then
21996 as_test_x='test -x'
21998 if ls -dL / >/dev/null 2>&1; then
22005 if test -d "$1"; then
22011 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
22012 ???[sx]*):;;*)false;;esac;fi
22016 as_executable_p=$as_test_x
22018 # Sed expression to map a string onto a valid CPP name.
22019 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22021 # Sed expression to map a string onto a valid variable name.
22022 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22026 ## ----------------------------------- ##
22027 ## Main body of $CONFIG_STATUS script. ##
22028 ## ----------------------------------- ##
22030 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22033 # Save the log message, to keep $0 and so on meaningful, and to
22034 # report actual input values of CONFIG_FILES etc. instead of their
22035 # values after options handling.
22037 This file was extended by sudo $as_me 1.8.7, which was
22038 generated by GNU Autoconf 2.68. Invocation command line was
22040 CONFIG_FILES = $CONFIG_FILES
22041 CONFIG_HEADERS = $CONFIG_HEADERS
22042 CONFIG_LINKS = $CONFIG_LINKS
22043 CONFIG_COMMANDS = $CONFIG_COMMANDS
22046 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22051 case $ac_config_files in *"
22052 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22055 case $ac_config_headers in *"
22056 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22060 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22061 # Files that config.status was made for.
22062 config_files="$ac_config_files"
22063 config_headers="$ac_config_headers"
22064 config_commands="$ac_config_commands"
22068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22070 \`$as_me' instantiates files and other configuration actions
22071 from templates according to the current configuration. Unless the files
22072 and actions are specified as TAGs, all are instantiated by default.
22074 Usage: $0 [OPTION]... [TAG]...
22076 -h, --help print this help, then exit
22077 -V, --version print version number and configuration settings, then exit
22078 --config print configuration, then exit
22079 -q, --quiet, --silent
22080 do not print progress messages
22081 -d, --debug don't remove temporary files
22082 --recheck update $as_me by reconfiguring in the same conditions
22083 --file=FILE[:TEMPLATE]
22084 instantiate the configuration file FILE
22085 --header=FILE[:TEMPLATE]
22086 instantiate the configuration header FILE
22088 Configuration files:
22091 Configuration headers:
22094 Configuration commands:
22097 Report bugs to <http://www.sudo.ws/bugs/>."
22100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22101 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22103 sudo config.status 1.8.7
22104 configured by $0, generated by GNU Autoconf 2.68,
22105 with options \\"\$ac_cs_config\\"
22107 Copyright (C) 2010 Free Software Foundation, Inc.
22108 This config.status script is free software; the Free Software Foundation
22109 gives unlimited permission to copy, distribute and modify it."
22114 test -n "\$AWK" || AWK=awk
22117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22118 # The default lists apply if the user does not specify any file.
22124 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22125 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22129 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22141 # Handling of the options.
22142 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22144 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22145 $as_echo "$ac_cs_version"; exit ;;
22146 --config | --confi | --conf | --con | --co | --c )
22147 $as_echo "$ac_cs_config"; exit ;;
22148 --debug | --debu | --deb | --de | --d | -d )
22150 --file | --fil | --fi | --f )
22153 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22154 '') as_fn_error $? "missing file argument" ;;
22156 as_fn_append CONFIG_FILES " '$ac_optarg'"
22157 ac_need_defaults=false;;
22158 --header | --heade | --head | --hea )
22161 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22163 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22164 ac_need_defaults=false;;
22166 # Conflict between --help and --header
22167 as_fn_error $? "ambiguous option: \`$1'
22168 Try \`$0 --help' for more information.";;
22169 --help | --hel | -h )
22170 $as_echo "$ac_cs_usage"; exit ;;
22171 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22172 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22175 # This is an error.
22176 -*) as_fn_error $? "unrecognized option: \`$1'
22177 Try \`$0 --help' for more information." ;;
22179 *) as_fn_append ac_config_targets " $1"
22180 ac_need_defaults=false ;;
22186 ac_configure_extra_args=
22188 if $ac_cs_silent; then
22190 ac_configure_extra_args="$ac_configure_extra_args --silent"
22194 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22195 if \$ac_cs_recheck; then
22196 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22198 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22199 CONFIG_SHELL='$SHELL'
22200 export CONFIG_SHELL
22205 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22209 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22210 ## Running $as_me. ##
22216 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22222 # The HP-UX ksh and POSIX shell print the target directory to stdout
22223 # if CDPATH is set.
22224 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22226 sed_quote_subst='$sed_quote_subst'
22227 double_quote_subst='$double_quote_subst'
22228 delay_variable_subst='$delay_variable_subst'
22229 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22230 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22231 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22232 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22233 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22234 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22235 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22236 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22237 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22238 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22239 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22240 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22241 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22242 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22243 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22244 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22245 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22246 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22247 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22248 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22249 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22250 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22251 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22252 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22253 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22254 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22255 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22256 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22257 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22258 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22259 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22260 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22261 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22262 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22263 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22264 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22265 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22266 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22267 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22268 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22269 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22270 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22271 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22272 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22273 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22274 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22275 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22276 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22277 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22278 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22279 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22280 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22281 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22282 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22283 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22284 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22285 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"`'
22286 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22287 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22288 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22289 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22290 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22291 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22292 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22293 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22294 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22295 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22296 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22297 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22298 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22299 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22300 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22301 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22302 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22303 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22304 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22305 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22306 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22307 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22308 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22309 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22310 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22311 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22312 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22313 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22314 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22315 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22316 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22317 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22318 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22319 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22320 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22321 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22322 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22323 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22324 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22325 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22326 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22327 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22328 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22329 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22330 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22331 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22332 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22333 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22334 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22335 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22336 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22337 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22338 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22339 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22340 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22341 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22342 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22343 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22344 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22345 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22346 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22347 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22348 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22349 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22350 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22351 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22352 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
22353 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22354 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22355 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22356 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22357 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22358 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22361 LTCFLAGS='$LTCFLAGS'
22362 compiler='$compiler_DEFAULT'
22364 # A function that is used when there is no print builtin or printf.
22365 func_fallback_echo ()
22367 eval 'cat <<_LTECHO_EOF
22372 # Quote evaled strings.
22387 deplibs_check_method \
22392 sharedlib_from_linklib_cmd \
22395 archiver_list_spec \
22401 lt_cv_sys_global_symbol_pipe \
22402 lt_cv_sys_global_symbol_to_cdecl \
22403 lt_cv_sys_global_symbol_to_c_name_address \
22404 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22405 nm_file_list_spec \
22406 lt_prog_compiler_no_builtin_flag \
22407 lt_prog_compiler_pic \
22408 lt_prog_compiler_wl \
22409 lt_prog_compiler_static \
22410 lt_cv_prog_compiler_c_o \
22419 export_dynamic_flag_spec \
22420 whole_archive_flag_spec \
22421 compiler_needs_object \
22423 allow_undefined_flag \
22424 no_undefined_flag \
22425 hardcode_libdir_flag_spec \
22426 hardcode_libdir_separator \
22430 variables_saved_for_relink \
22432 library_names_spec \
22434 install_override_mode \
22438 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22439 *[\\\\\\\`\\"\\\$]*)
22440 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
22443 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22448 # Double-quote double-evaled strings.
22449 for var in reload_cmds \
22450 old_postinstall_cmds \
22451 old_postuninstall_cmds \
22453 extract_expsyms_cmds \
22454 old_archive_from_new_cmds \
22455 old_archive_from_expsyms_cmds \
22457 archive_expsym_cmds \
22459 module_expsym_cmds \
22460 export_symbols_cmds \
22464 postuninstall_cmds \
22466 sys_lib_search_path_spec \
22467 sys_lib_dlsearch_path_spec; do
22468 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22469 *[\\\\\\\`\\"\\\$]*)
22470 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
22473 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22478 ac_aux_dir='$ac_aux_dir'
22479 xsi_shell='$xsi_shell'
22480 lt_shell_append='$lt_shell_append'
22482 # See if we are running on zsh, and set the options which allow our
22483 # commands through without removal of \ escapes INIT.
22484 if test -n "\${ZSH_VERSION+set}" ; then
22485 setopt NO_GLOB_SUBST
22491 TIMESTAMP='$TIMESTAMP'
22500 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22502 # Handling of arguments.
22503 for ac_config_target in $ac_config_targets
22505 case $ac_config_target in
22506 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22507 "pathnames.h") CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
22508 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22509 "zlib/zconf.h") CONFIG_HEADERS="$CONFIG_HEADERS zlib/zconf.h" ;;
22510 "zlib/Makefile") CONFIG_FILES="$CONFIG_FILES zlib/Makefile" ;;
22511 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22512 "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
22513 "compat/Makefile") CONFIG_FILES="$CONFIG_FILES compat/Makefile" ;;
22514 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22515 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
22516 "src/sudo_usage.h") CONFIG_FILES="$CONFIG_FILES src/sudo_usage.h" ;;
22517 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22518 "plugins/sample/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sample/Makefile" ;;
22519 "plugins/group_file/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/group_file/Makefile" ;;
22520 "plugins/system_group/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/system_group/Makefile" ;;
22521 "plugins/sudoers/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sudoers/Makefile" ;;
22522 "plugins/sudoers/sudoers") CONFIG_FILES="$CONFIG_FILES plugins/sudoers/sudoers" ;;
22524 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22529 # If the user did not use the arguments to specify the items to instantiate,
22530 # then the envvar interface is used. Set only those that are not.
22531 # We use the long form for the default assignment because of an extremely
22532 # bizarre bug on SunOS 4.1.3.
22533 if $ac_need_defaults; then
22534 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22535 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22536 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22539 # Have a temporary directory for convenience. Make it in the build tree
22540 # simply because there is no reason against having it here, and in addition,
22541 # creating and moving files from /tmp can sometimes cause problems.
22542 # Hook for its removal unless debugging.
22543 # Note that there is a small window in which the directory will not be cleaned:
22544 # after its creation but before its name has been assigned to `$tmp'.
22548 trap 'exit_status=$?
22549 : "${ac_tmp:=$tmp}"
22550 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22552 trap 'as_fn_exit 1' 1 2 13 15
22554 # Create a (secure) tmp directory for tmp files.
22557 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22561 tmp=./conf$$-$RANDOM
22562 (umask 077 && mkdir "$tmp")
22563 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22566 # Set up the scripts for CONFIG_FILES section.
22567 # No need to generate them if there are no CONFIG_FILES.
22568 # This happens for instance with `./config.status config.h'.
22569 if test -n "$CONFIG_FILES"; then
22572 ac_cr=`echo X | tr X '\015'`
22573 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22574 # But we know of no other shell where ac_cr would be empty at this
22575 # point, so we can use a bashism as a fallback.
22576 if test "x$ac_cr" = x; then
22577 eval ac_cr=\$\'\\r\'
22579 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22580 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22583 ac_cs_awk_cr=$ac_cr
22586 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22591 echo "cat >conf$$subs.awk <<_ACEOF" &&
22592 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22594 } >conf$$subs.sh ||
22595 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22596 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22598 for ac_last_try in false false false false false :; do
22599 . ./conf$$subs.sh ||
22600 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22602 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22603 if test $ac_delim_n = $ac_delim_num; then
22605 elif $ac_last_try; then
22606 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22608 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22611 rm -f conf$$subs.sh
22613 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22614 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22618 s/^/S["/; s/!.*/"]=/
22628 s/\(.\{148\}\)..*/\1/
22630 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22635 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22642 s/\(.\{148\}\)..*/\1/
22644 s/["\\]/\\&/g; s/^/"/; s/$/"/
22648 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22653 ' <conf$$subs.awk | sed '
22658 ' >>$CONFIG_STATUS || ac_write_fail=1
22659 rm -f conf$$subs.awk
22660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22662 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22663 for (key in S) S_is_set[key] = 1
22669 nfields = split(line, field, "@")
22671 len = length(field[1])
22672 for (i = 2; i < nfields; i++) {
22674 keylen = length(key)
22675 if (S_is_set[key]) {
22677 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22678 len += length(value) + length(field[++i])
22689 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22690 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22691 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22694 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22695 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22698 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22699 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22700 # trailing colons and then remove the whole line if VPATH becomes empty
22701 # (actually we leave an empty line to preserve line numbers).
22702 if test "x$srcdir" = x.; then
22703 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22721 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22722 fi # test -n "$CONFIG_FILES"
22724 # Set up the scripts for CONFIG_HEADERS section.
22725 # No need to generate them if there are no CONFIG_HEADERS.
22726 # This happens for instance with `./config.status Makefile'.
22727 if test -n "$CONFIG_HEADERS"; then
22728 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22732 # Transform confdefs.h into an awk script `defines.awk', embedded as
22733 # here-document in config.status, that substitutes the proper values into
22734 # config.h.in to produce config.h.
22736 # Create a delimiter string that does not exist in confdefs.h, to ease
22737 # handling of long lines.
22739 for ac_last_try in false false :; do
22740 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22741 if test -z "$ac_tt"; then
22743 elif $ac_last_try; then
22744 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22746 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22750 # For the awk script, D is an array of macro values keyed by name,
22751 # likewise P contains macro parameters if any. Preserve backslash
22752 # newline sequences.
22754 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22756 s/.\{148\}/&'"$ac_delim"'/g
22759 s/^[ ]*#[ ]*define[ ][ ]*/ /
22766 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22768 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22772 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22773 D["\1"]=" \3\\\\\\n"\\/p
22775 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22780 s/.\{148\}/&'"$ac_delim"'/g
22785 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22788 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22790 ' <confdefs.h | sed '
22791 s/'"$ac_delim"'/"\\\
22792 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22794 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22795 for (key in D) D_is_set[key] = 1
22798 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22800 split(line, arg, " ")
22801 if (arg[1] == "#") {
22805 defundef = substr(arg[1], 2)
22808 split(mac1, mac2, "(") #)
22810 prefix = substr(line, 1, index(line, defundef) - 1)
22811 if (D_is_set[macro]) {
22812 # Preserve the white space surrounding the "#".
22813 print prefix "define", macro P[macro] D[macro]
22816 # Replace #undef with comments. This is necessary, for example,
22817 # in the case of _POSIX_SOURCE, which is predefined and required
22818 # on some systems where configure will not decide to define it.
22819 if (defundef == "undef") {
22820 print "/*", prefix defundef, macro, "*/"
22828 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22829 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22830 fi # test -n "$CONFIG_HEADERS"
22833 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22838 :[FHLC]) ac_mode=$ac_tag; continue;;
22840 case $ac_mode$ac_tag in
22842 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22843 :[FH]-) ac_tag=-:-;;
22844 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22861 -) ac_f="$ac_tmp/stdin";;
22862 *) # Look for the file first in the build tree, then in the source tree
22863 # (if the path is not absolute). The absolute path cannot be DOS-style,
22864 # because $ac_f cannot contain `:'.
22868 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22870 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22872 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22873 as_fn_append ac_file_inputs " '$ac_f'"
22876 # Let's still pretend it is `configure' which instantiates (i.e., don't
22877 # use $as_me), people would be surprised to read:
22878 # /* config.h. Generated by config.status. */
22879 configure_input='Generated from '`
22880 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22882 if test x"$ac_file" != x-; then
22883 configure_input="$ac_file. $configure_input"
22884 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22885 $as_echo "$as_me: creating $ac_file" >&6;}
22887 # Neutralize special characters interpreted by sed in replacement strings.
22888 case $configure_input in #(
22889 *\&* | *\|* | *\\* )
22890 ac_sed_conf_input=`$as_echo "$configure_input" |
22891 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22892 *) ac_sed_conf_input=$configure_input;;
22896 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22897 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22902 ac_dir=`$as_dirname -- "$ac_file" ||
22903 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22904 X"$ac_file" : 'X\(//\)[^/]' \| \
22905 X"$ac_file" : 'X\(//\)$' \| \
22906 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22907 $as_echo X"$ac_file" |
22908 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22912 /^X\(\/\/\)[^/].*/{
22925 as_dir="$ac_dir"; as_fn_mkdir_p
22929 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22931 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22932 # A ".." for each directory in $ac_dir_suffix.
22933 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22934 case $ac_top_builddir_sub in
22935 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22936 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22939 ac_abs_top_builddir=$ac_pwd
22940 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22941 # for backward compatibility:
22942 ac_top_builddir=$ac_top_build_prefix
22945 .) # We are building in place.
22947 ac_top_srcdir=$ac_top_builddir_sub
22948 ac_abs_top_srcdir=$ac_pwd ;;
22949 [\\/]* | ?:[\\/]* ) # Absolute name.
22950 ac_srcdir=$srcdir$ac_dir_suffix;
22951 ac_top_srcdir=$srcdir
22952 ac_abs_top_srcdir=$srcdir ;;
22953 *) # Relative name.
22954 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22955 ac_top_srcdir=$ac_top_build_prefix$srcdir
22956 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22958 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22970 # If the template does not know about datarootdir, expand it.
22971 # FIXME: This hack should be removed a few years after 2.60.
22972 ac_datarootdir_hack=; ac_datarootdir_seen=
22983 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22984 *datarootdir*) ac_datarootdir_seen=yes;;
22985 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22987 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22990 ac_datarootdir_hack='
22991 s&@datadir@&$datadir&g
22992 s&@docdir@&$docdir&g
22993 s&@infodir@&$infodir&g
22994 s&@localedir@&$localedir&g
22995 s&@mandir@&$mandir&g
22996 s&\\\${datarootdir}&$datarootdir&g' ;;
23000 # Neutralize VPATH when `$srcdir' = `.'.
23001 # Shell code in configure.ac might set extrasub.
23002 # FIXME: do we really want to maintain this feature?
23003 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23004 ac_sed_extra="$ac_vpsub
23007 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23009 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23010 s|@configure_input@|$ac_sed_conf_input|;t t
23011 s&@top_builddir@&$ac_top_builddir_sub&;t t
23012 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23013 s&@srcdir@&$ac_srcdir&;t t
23014 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23015 s&@top_srcdir@&$ac_top_srcdir&;t t
23016 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23017 s&@builddir@&$ac_builddir&;t t
23018 s&@abs_builddir@&$ac_abs_builddir&;t t
23019 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23020 $ac_datarootdir_hack
23022 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23023 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23025 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23026 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23027 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23028 "$ac_tmp/out"`; test -z "$ac_out"; } &&
23029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23030 which seems to be undefined. Please make sure it is defined" >&5
23031 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23032 which seems to be undefined. Please make sure it is defined" >&2;}
23034 rm -f "$ac_tmp/stdin"
23036 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23037 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23039 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23045 if test x"$ac_file" != x-; then
23047 $as_echo "/* $configure_input */" \
23048 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23049 } >"$ac_tmp/config.h" \
23050 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23051 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23052 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23053 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23056 mv "$ac_tmp/config.h" "$ac_file" \
23057 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23060 $as_echo "/* $configure_input */" \
23061 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23062 || as_fn_error $? "could not create -" "$LINENO" 5
23066 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23067 $as_echo "$as_me: executing $ac_file commands" >&6;}
23072 case $ac_file$ac_mode in
23075 # See if we are running on zsh, and set the options which allow our
23076 # commands through without removal of \ escapes.
23077 if test -n "${ZSH_VERSION+set}" ; then
23078 setopt NO_GLOB_SUBST
23081 cfgfile="${ofile}T"
23082 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23085 cat <<_LT_EOF >> "$cfgfile"
23088 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
23089 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
23090 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23091 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23093 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
23094 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
23096 # Written by Gordon Matzigkeit, 1996
23098 # This file is part of GNU Libtool.
23100 # GNU Libtool is free software; you can redistribute it and/or
23101 # modify it under the terms of the GNU General Public License as
23102 # published by the Free Software Foundation; either version 2 of
23103 # the License, or (at your option) any later version.
23105 # As a special exception to the GNU General Public License,
23106 # if you distribute this file as part of a program or library that
23107 # is built using GNU Libtool, you may include this file under the
23108 # same distribution terms that you use for the rest of that program.
23110 # GNU Libtool is distributed in the hope that it will be useful,
23111 # but WITHOUT ANY WARRANTY; without even the implied warranty of
23112 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23113 # GNU General Public License for more details.
23115 # You should have received a copy of the GNU General Public License
23116 # along with GNU Libtool; see the file COPYING. If not, a copy
23117 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
23118 # obtained by writing to the Free Software Foundation, Inc.,
23119 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23122 # The names of the tagged configurations supported by this script.
23125 # ### BEGIN LIBTOOL CONFIG
23127 # Which release of libtool.m4 was used?
23128 macro_version=$macro_version
23129 macro_revision=$macro_revision
23131 # Whether or not to build shared libraries.
23132 build_libtool_libs=$enable_shared
23134 # Whether or not to build static libraries.
23135 build_old_libs=$enable_static
23137 # What type of objects to build.
23140 # Whether or not to optimize for fast installation.
23141 fast_install=$enable_fast_install
23143 # Shell to use when invoking shell scripts.
23146 # An echo program that protects backslashes.
23149 # The PATH separator for the build system.
23150 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23153 host_alias=$host_alias
23157 # The build system.
23158 build_alias=$build_alias
23162 # A sed program that does not truncate output.
23165 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23166 Xsed="\$SED -e 1s/^X//"
23168 # A grep program that handles long lines.
23174 # A literal string matcher.
23177 # A BSD- or MS-compatible name lister.
23180 # Whether we need soft or hard links.
23183 # What is the maximum length of a command?
23184 max_cmd_len=$max_cmd_len
23186 # Object file suffix (normally "o").
23189 # Executable file suffix (normally "").
23192 # whether the shell understands "unset".
23195 # turn spaces into newlines.
23198 # turn newlines into spaces.
23201 # convert \$build file names to \$host format.
23202 to_host_file_cmd=$lt_cv_to_host_file_cmd
23204 # convert \$build files to toolchain format.
23205 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23207 # An object symbol dumper.
23208 OBJDUMP=$lt_OBJDUMP
23210 # Method to check whether dependent libraries are shared objects.
23211 deplibs_check_method=$lt_deplibs_check_method
23213 # Command to use when deplibs_check_method = "file_magic".
23214 file_magic_cmd=$lt_file_magic_cmd
23216 # How to find potential files when deplibs_check_method = "file_magic".
23217 file_magic_glob=$lt_file_magic_glob
23219 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23220 want_nocaseglob=$lt_want_nocaseglob
23222 # DLL creation program.
23223 DLLTOOL=$lt_DLLTOOL
23225 # Command to associate shared and link libraries.
23226 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23231 # Flags to create an archive.
23232 AR_FLAGS=$lt_AR_FLAGS
23234 # How to feed a file listing to the archiver.
23235 archiver_list_spec=$lt_archiver_list_spec
23237 # A symbol stripping program.
23240 # Commands used to install an old-style archive.
23242 old_postinstall_cmds=$lt_old_postinstall_cmds
23243 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23245 # Whether to use a lock for old archive extraction.
23246 lock_old_archive_extraction=$lock_old_archive_extraction
23251 # LTCC compiler flags.
23252 LTCFLAGS=$lt_CFLAGS
23254 # Take the output of nm and produce a listing of raw symbols and C names.
23255 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23257 # Transform the output of nm in a proper C declaration.
23258 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23260 # Transform the output of nm in a C name address pair.
23261 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23263 # Transform the output of nm in a C name address pair when lib prefix is needed.
23264 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23266 # Specify filename containing input files for \$NM.
23267 nm_file_list_spec=$lt_nm_file_list_spec
23269 # The root where to search for dependent libraries,and in which our libraries should be installed.
23270 lt_sysroot=$lt_sysroot
23272 # The name of the directory that contains temporary libtool files.
23275 # Used to examine libraries when file_magic_cmd begins with "file".
23276 MAGIC_CMD=$MAGIC_CMD
23278 # Must we lock files when doing compilation?
23279 need_locks=$lt_need_locks
23282 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23284 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23285 DSYMUTIL=$lt_DSYMUTIL
23287 # Tool to change global to local symbols on Mac OS X.
23290 # Tool to manipulate fat objects and archives on Mac OS X.
23293 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23296 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23297 OTOOL64=$lt_OTOOL64
23299 # Old archive suffix (normally "a").
23302 # Shared library suffix (normally ".so").
23303 shrext_cmds=$lt_shrext_cmds
23305 # The commands to extract the exported symbol list from a shared archive.
23306 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23308 # Variables whose values should be saved in libtool wrapper scripts and
23309 # restored at link time.
23310 variables_saved_for_relink=$lt_variables_saved_for_relink
23312 # Do we need the "lib" prefix for modules?
23313 need_lib_prefix=$need_lib_prefix
23315 # Do we need a version for libraries?
23316 need_version=$need_version
23318 # Library versioning type.
23319 version_type=$version_type
23321 # Shared library runtime path variable.
23322 runpath_var=$runpath_var
23324 # Shared library path variable.
23325 shlibpath_var=$shlibpath_var
23327 # Is shlibpath searched before the hard-coded library search path?
23328 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23330 # Format of library name prefix.
23331 libname_spec=$lt_libname_spec
23333 # List of archive names. First name is the real one, the rest are links.
23334 # The last name is the one that the linker finds with -lNAME
23335 library_names_spec=$lt_library_names_spec
23337 # The coded name of the library, if different from the real name.
23338 soname_spec=$lt_soname_spec
23340 # Permission mode override for installation of shared libraries.
23341 install_override_mode=$lt_install_override_mode
23343 # Command to use after installation of a shared archive.
23344 postinstall_cmds=$lt_postinstall_cmds
23346 # Command to use after uninstallation of a shared archive.
23347 postuninstall_cmds=$lt_postuninstall_cmds
23349 # Commands used to finish a libtool library installation in a directory.
23350 finish_cmds=$lt_finish_cmds
23352 # As "finish_cmds", except a single script fragment to be evaled but
23354 finish_eval=$lt_finish_eval
23356 # Whether we should hardcode library paths into libraries.
23357 hardcode_into_libs=$hardcode_into_libs
23359 # Compile-time system search path for libraries.
23360 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23362 # Run-time system search path for libraries.
23363 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23365 # Whether dlopen is supported.
23366 dlopen_support=$enable_dlopen
23368 # Whether dlopen of programs is supported.
23369 dlopen_self=$enable_dlopen_self
23371 # Whether dlopen of statically linked programs is supported.
23372 dlopen_self_static=$enable_dlopen_self_static
23374 # Commands to strip libraries.
23375 old_striplib=$lt_old_striplib
23376 striplib=$lt_striplib
23379 # The linker used to build libraries.
23382 # How to create reloadable object files.
23383 reload_flag=$lt_reload_flag
23384 reload_cmds=$lt_reload_cmds
23386 # Commands used to build an old-style archive.
23387 old_archive_cmds=$lt_old_archive_cmds
23389 # A language specific compiler.
23392 # Is the compiler the GNU compiler?
23395 # Compiler flag to turn off builtin functions.
23396 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23398 # Additional compiler flags for building library objects.
23399 pic_flag=$lt_lt_prog_compiler_pic
23401 # How to pass a linker flag through the compiler.
23402 wl=$lt_lt_prog_compiler_wl
23404 # Compiler flag to prevent dynamic linking.
23405 link_static_flag=$lt_lt_prog_compiler_static
23407 # Does compiler simultaneously support -c and -o options?
23408 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23410 # Whether or not to add -lc for building shared libraries.
23411 build_libtool_need_lc=$archive_cmds_need_lc
23413 # Whether or not to disallow shared libs when runtime libs are static.
23414 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23416 # Compiler flag to allow reflexive dlopens.
23417 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23419 # Compiler flag to generate shared objects directly from archives.
23420 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23422 # Whether the compiler copes with passing no objects directly.
23423 compiler_needs_object=$lt_compiler_needs_object
23425 # Create an old-style archive from a shared archive.
23426 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23428 # Create a temporary old-style archive to link instead of a shared archive.
23429 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23431 # Commands used to build a shared archive.
23432 archive_cmds=$lt_archive_cmds
23433 archive_expsym_cmds=$lt_archive_expsym_cmds
23435 # Commands used to build a loadable module if different from building
23436 # a shared archive.
23437 module_cmds=$lt_module_cmds
23438 module_expsym_cmds=$lt_module_expsym_cmds
23440 # Whether we are building with GNU ld or not.
23441 with_gnu_ld=$lt_with_gnu_ld
23443 # Flag that allows shared libraries with undefined symbols to be built.
23444 allow_undefined_flag=$lt_allow_undefined_flag
23446 # Flag that enforces no undefined symbols.
23447 no_undefined_flag=$lt_no_undefined_flag
23449 # Flag to hardcode \$libdir into a binary during linking.
23450 # This must work even if \$libdir does not exist
23451 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23453 # Whether we need a single "-rpath" flag with a separated argument.
23454 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23456 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23457 # DIR into the resulting binary.
23458 hardcode_direct=$hardcode_direct
23460 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23461 # DIR into the resulting binary and the resulting library dependency is
23462 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23463 # library is relocated.
23464 hardcode_direct_absolute=$hardcode_direct_absolute
23466 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23467 # into the resulting binary.
23468 hardcode_minus_L=$hardcode_minus_L
23470 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23471 # into the resulting binary.
23472 hardcode_shlibpath_var=$hardcode_shlibpath_var
23474 # Set to "yes" if building a shared library automatically hardcodes DIR
23475 # into the library and all subsequent libraries and executables linked
23477 hardcode_automatic=$hardcode_automatic
23479 # Set to yes if linker adds runtime paths of dependent libraries
23480 # to runtime path list.
23481 inherit_rpath=$inherit_rpath
23483 # Whether libtool must link a program against all its dependency libraries.
23484 link_all_deplibs=$link_all_deplibs
23486 # Set to "yes" if exported symbols are required.
23487 always_export_symbols=$always_export_symbols
23489 # The commands to list exported symbols.
23490 export_symbols_cmds=$lt_export_symbols_cmds
23492 # Symbols that should not be listed in the preloaded symbols.
23493 exclude_expsyms=$lt_exclude_expsyms
23495 # Symbols that must always be exported.
23496 include_expsyms=$lt_include_expsyms
23498 # Commands necessary for linking programs (against libraries) with templates.
23499 prelink_cmds=$lt_prelink_cmds
23501 # Commands necessary for finishing linking programs.
23502 postlink_cmds=$lt_postlink_cmds
23504 # Specify filename containing input files.
23505 file_list_spec=$lt_file_list_spec
23507 # How to hardcode a shared library path into an executable.
23508 hardcode_action=$hardcode_action
23510 # ### END LIBTOOL CONFIG
23516 cat <<\_LT_EOF >> "$cfgfile"
23517 # AIX sometimes has problems with the GCC collect2 program. For some
23518 # reason, if we set the COLLECT_NAMES environment variable, the problems
23519 # vanish in a puff of smoke.
23520 if test "X${COLLECT_NAMES+set}" != Xset; then
23522 export COLLECT_NAMES
23529 ltmain="$ac_aux_dir/ltmain.sh"
23532 # We use sed instead of cat because bash on DJGPP gets confused if
23533 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23534 # text mode, it properly converts lines to CR/LF. This bash problem
23535 # is reportedly fixed, but why not run on old versions too?
23536 sed '$q' "$ltmain" >> "$cfgfile" \
23537 || (rm -f "$cfgfile"; exit 1)
23539 if test x"$xsi_shell" = xyes; then
23540 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
23544 \ */*) func_dirname_result="${1%/*}${2}" ;;\
23545 \ * ) func_dirname_result="${3}" ;;\
23547 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
23548 && mv -f "$cfgfile.tmp" "$cfgfile" \
23549 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23550 test 0 -eq $? || _lt_function_replace_fail=:
23553 sed -e '/^func_basename ()$/,/^} # func_basename /c\
23556 \ func_basename_result="${1##*/}"\
23557 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
23558 && mv -f "$cfgfile.tmp" "$cfgfile" \
23559 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23560 test 0 -eq $? || _lt_function_replace_fail=:
23563 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
23564 func_dirname_and_basename ()\
23567 \ */*) func_dirname_result="${1%/*}${2}" ;;\
23568 \ * ) func_dirname_result="${3}" ;;\
23570 \ func_basename_result="${1##*/}"\
23571 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
23572 && mv -f "$cfgfile.tmp" "$cfgfile" \
23573 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23574 test 0 -eq $? || _lt_function_replace_fail=:
23577 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
23580 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
23581 \ # positional parameters, so assign one to ordinary parameter first.\
23582 \ func_stripname_result=${3}\
23583 \ func_stripname_result=${func_stripname_result#"${1}"}\
23584 \ func_stripname_result=${func_stripname_result%"${2}"}\
23585 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
23586 && mv -f "$cfgfile.tmp" "$cfgfile" \
23587 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23588 test 0 -eq $? || _lt_function_replace_fail=:
23591 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
23592 func_split_long_opt ()\
23594 \ func_split_long_opt_name=${1%%=*}\
23595 \ func_split_long_opt_arg=${1#*=}\
23596 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
23597 && mv -f "$cfgfile.tmp" "$cfgfile" \
23598 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23599 test 0 -eq $? || _lt_function_replace_fail=:
23602 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
23603 func_split_short_opt ()\
23605 \ func_split_short_opt_arg=${1#??}\
23606 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
23607 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
23608 && mv -f "$cfgfile.tmp" "$cfgfile" \
23609 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23610 test 0 -eq $? || _lt_function_replace_fail=:
23613 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
23617 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
23618 \ *) func_lo2o_result=${1} ;;\
23620 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
23621 && mv -f "$cfgfile.tmp" "$cfgfile" \
23622 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23623 test 0 -eq $? || _lt_function_replace_fail=:
23626 sed -e '/^func_xform ()$/,/^} # func_xform /c\
23629 func_xform_result=${1%.*}.lo\
23630 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
23631 && mv -f "$cfgfile.tmp" "$cfgfile" \
23632 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23633 test 0 -eq $? || _lt_function_replace_fail=:
23636 sed -e '/^func_arith ()$/,/^} # func_arith /c\
23639 func_arith_result=$(( $* ))\
23640 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
23641 && mv -f "$cfgfile.tmp" "$cfgfile" \
23642 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23643 test 0 -eq $? || _lt_function_replace_fail=:
23646 sed -e '/^func_len ()$/,/^} # func_len /c\
23649 func_len_result=${#1}\
23650 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
23651 && mv -f "$cfgfile.tmp" "$cfgfile" \
23652 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23653 test 0 -eq $? || _lt_function_replace_fail=:
23657 if test x"$lt_shell_append" = xyes; then
23658 sed -e '/^func_append ()$/,/^} # func_append /c\
23661 eval "${1}+=\\${2}"\
23662 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
23663 && mv -f "$cfgfile.tmp" "$cfgfile" \
23664 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23665 test 0 -eq $? || _lt_function_replace_fail=:
23668 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
23669 func_append_quoted ()\
23671 \ func_quote_for_eval "${2}"\
23672 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
23673 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
23674 && mv -f "$cfgfile.tmp" "$cfgfile" \
23675 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23676 test 0 -eq $? || _lt_function_replace_fail=:
23679 # Save a `func_append' function call where possible by direct use of '+='
23680 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
23681 && mv -f "$cfgfile.tmp" "$cfgfile" \
23682 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23683 test 0 -eq $? || _lt_function_replace_fail=:
23685 # Save a `func_append' function call even when '+=' is not available
23686 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
23687 && mv -f "$cfgfile.tmp" "$cfgfile" \
23688 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23689 test 0 -eq $? || _lt_function_replace_fail=:
23692 if test x"$_lt_function_replace_fail" = x":"; then
23693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
23694 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
23698 mv -f "$cfgfile" "$ofile" ||
23699 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23710 ac_clean_files=$ac_clean_files_save
23712 test $ac_write_fail = 0 ||
23713 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23716 # configure is writing to config.log, and then calls config.status.
23717 # config.status does its own redirection, appending to config.log.
23718 # Unfortunately, on DOS this fails, as config.log is still kept open
23719 # by configure, so config.status won't be able to write to it; its
23720 # output is simply discarded. So we exec the FD to /dev/null,
23721 # effectively closing config.log, so it can be properly (re)opened and
23722 # appended to by config.status. When coming back to configure, we
23723 # need to make the FD available again.
23724 if test "$no_create" != yes; then
23726 ac_config_status_args=
23727 test "$silent" = yes &&
23728 ac_config_status_args="$ac_config_status_args --quiet"
23730 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23732 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23733 # would make configure fail if this is the last instruction.
23734 $ac_cs_success || as_fn_exit 1
23736 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23738 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23742 if test "$with_pam" = "yes"; then
23745 if test -f /usr/lib/security/libpam_hpsec.so.1; then
23746 { $as_echo "$as_me:${as_lineno-$LINENO}: You may wish to add the following line to /etc/pam.conf" >&5
23747 $as_echo "$as_me: You may wish to add the following line to /etc/pam.conf" >&6;}
23748 { $as_echo "$as_me:${as_lineno-$LINENO}: sudo session required libpam_hpsec.so.1 bypass_umask bypass_last_login" >&5
23749 $as_echo "$as_me: sudo session required libpam_hpsec.so.1 bypass_umask bypass_last_login" >&6;}
23753 { $as_echo "$as_me:${as_lineno-$LINENO}: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&5
23754 $as_echo "$as_me: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&6;}