2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for sudo 1.8.3p2.
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.3p2'
574 PACKAGE_STRING='sudo 1.8.3p2'
575 PACKAGE_BUGREPORT='http://www.sudo.ws/bugs/'
578 ac_config_libobj_dir=compat
579 # Factoring default headers for most tests.
580 ac_includes_default="\
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
592 # ifdef HAVE_STDLIB_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
615 ac_subst_vars='LTLIBOBJS
773 program_transform_name
786 enable_option_checking
845 with_password_timeout
856 with_ldap_secret_file
863 enable_authentication
871 enable_shell_sets_home
881 enable_gss_krb5_ccache_name
896 ac_precious_vars='build_alias
909 # Initialize some variables set by options.
911 ac_init_version=false
912 ac_unrecognized_opts=
914 # The variables have the same names as the options, with
915 # dashes changed to underlines.
923 program_transform_name=s,x,x,
931 # Installation directory options.
932 # These are left unexpanded so users can "make install exec_prefix=/foo"
933 # and all the variables that are supposed to be based on exec_prefix
934 # by default will actually change.
935 # Use braces instead of parens because sh, perl, etc. also accept them.
936 # (The list follows the same order as the GNU Coding Standards.)
937 bindir='${exec_prefix}/bin'
938 sbindir='${exec_prefix}/sbin'
939 libexecdir='${exec_prefix}/libexec'
940 datarootdir='${prefix}/share'
941 datadir='${datarootdir}'
942 sysconfdir='${prefix}/etc'
943 sharedstatedir='${prefix}/com'
944 localstatedir='${prefix}/var'
945 includedir='${prefix}/include'
946 oldincludedir='/usr/include'
947 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
948 infodir='${datarootdir}/info'
953 libdir='${exec_prefix}/lib'
954 localedir='${datarootdir}/locale'
955 mandir='${datarootdir}/man'
961 # If the previous option needs an argument, assign it.
962 if test -n "$ac_prev"; then
963 eval $ac_prev=\$ac_option
969 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
974 # Accept the important Cygnus configure options, so we can diagnose typos.
976 case $ac_dashdash$ac_option in
980 -bindir | --bindir | --bindi | --bind | --bin | --bi)
982 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
985 -build | --build | --buil | --bui | --bu)
986 ac_prev=build_alias ;;
987 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
988 build_alias=$ac_optarg ;;
990 -cache-file | --cache-file | --cache-fil | --cache-fi \
991 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
992 ac_prev=cache_file ;;
993 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
994 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
995 cache_file=$ac_optarg ;;
998 cache_file=config.cache ;;
1000 -datadir | --datadir | --datadi | --datad)
1002 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1003 datadir=$ac_optarg ;;
1005 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1006 | --dataroo | --dataro | --datar)
1007 ac_prev=datarootdir ;;
1008 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1009 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1010 datarootdir=$ac_optarg ;;
1012 -disable-* | --disable-*)
1013 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1014 # Reject names that are not valid shell variable names.
1015 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1016 as_fn_error $? "invalid feature name: $ac_useropt"
1017 ac_useropt_orig=$ac_useropt
1018 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1019 case $ac_user_opts in
1021 "enable_$ac_useropt"
1023 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1024 ac_unrecognized_sep=', ';;
1026 eval enable_$ac_useropt=no ;;
1028 -docdir | --docdir | --docdi | --doc | --do)
1030 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1031 docdir=$ac_optarg ;;
1033 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1035 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1036 dvidir=$ac_optarg ;;
1038 -enable-* | --enable-*)
1039 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1040 # Reject names that are not valid shell variable names.
1041 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1042 as_fn_error $? "invalid feature name: $ac_useropt"
1043 ac_useropt_orig=$ac_useropt
1044 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1045 case $ac_user_opts in
1047 "enable_$ac_useropt"
1049 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1050 ac_unrecognized_sep=', ';;
1052 eval enable_$ac_useropt=\$ac_optarg ;;
1054 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1055 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1056 | --exec | --exe | --ex)
1057 ac_prev=exec_prefix ;;
1058 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1059 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1060 | --exec=* | --exe=* | --ex=*)
1061 exec_prefix=$ac_optarg ;;
1063 -gas | --gas | --ga | --g)
1064 # Obsolete; use --with-gas.
1067 -help | --help | --hel | --he | -h)
1068 ac_init_help=long ;;
1069 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1070 ac_init_help=recursive ;;
1071 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1072 ac_init_help=short ;;
1074 -host | --host | --hos | --ho)
1075 ac_prev=host_alias ;;
1076 -host=* | --host=* | --hos=* | --ho=*)
1077 host_alias=$ac_optarg ;;
1079 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1081 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1083 htmldir=$ac_optarg ;;
1085 -includedir | --includedir | --includedi | --included | --include \
1086 | --includ | --inclu | --incl | --inc)
1087 ac_prev=includedir ;;
1088 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1089 | --includ=* | --inclu=* | --incl=* | --inc=*)
1090 includedir=$ac_optarg ;;
1092 -infodir | --infodir | --infodi | --infod | --info | --inf)
1094 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1095 infodir=$ac_optarg ;;
1097 -libdir | --libdir | --libdi | --libd)
1099 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1100 libdir=$ac_optarg ;;
1102 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1103 | --libexe | --libex | --libe)
1104 ac_prev=libexecdir ;;
1105 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1106 | --libexe=* | --libex=* | --libe=*)
1107 libexecdir=$ac_optarg ;;
1109 -localedir | --localedir | --localedi | --localed | --locale)
1110 ac_prev=localedir ;;
1111 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1112 localedir=$ac_optarg ;;
1114 -localstatedir | --localstatedir | --localstatedi | --localstated \
1115 | --localstate | --localstat | --localsta | --localst | --locals)
1116 ac_prev=localstatedir ;;
1117 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1118 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1119 localstatedir=$ac_optarg ;;
1121 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1123 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1124 mandir=$ac_optarg ;;
1126 -nfp | --nfp | --nf)
1127 # Obsolete; use --without-fp.
1130 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1131 | --no-cr | --no-c | -n)
1134 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1135 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1138 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1139 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1140 | --oldin | --oldi | --old | --ol | --o)
1141 ac_prev=oldincludedir ;;
1142 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1143 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1144 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1145 oldincludedir=$ac_optarg ;;
1147 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1149 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1150 prefix=$ac_optarg ;;
1152 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1153 | --program-pre | --program-pr | --program-p)
1154 ac_prev=program_prefix ;;
1155 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1156 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1157 program_prefix=$ac_optarg ;;
1159 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1160 | --program-suf | --program-su | --program-s)
1161 ac_prev=program_suffix ;;
1162 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1163 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1164 program_suffix=$ac_optarg ;;
1166 -program-transform-name | --program-transform-name \
1167 | --program-transform-nam | --program-transform-na \
1168 | --program-transform-n | --program-transform- \
1169 | --program-transform | --program-transfor \
1170 | --program-transfo | --program-transf \
1171 | --program-trans | --program-tran \
1172 | --progr-tra | --program-tr | --program-t)
1173 ac_prev=program_transform_name ;;
1174 -program-transform-name=* | --program-transform-name=* \
1175 | --program-transform-nam=* | --program-transform-na=* \
1176 | --program-transform-n=* | --program-transform-=* \
1177 | --program-transform=* | --program-transfor=* \
1178 | --program-transfo=* | --program-transf=* \
1179 | --program-trans=* | --program-tran=* \
1180 | --progr-tra=* | --program-tr=* | --program-t=*)
1181 program_transform_name=$ac_optarg ;;
1183 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1185 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1186 pdfdir=$ac_optarg ;;
1188 -psdir | --psdir | --psdi | --psd | --ps)
1190 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1193 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1194 | -silent | --silent | --silen | --sile | --sil)
1197 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1199 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1201 sbindir=$ac_optarg ;;
1203 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1204 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1205 | --sharedst | --shareds | --shared | --share | --shar \
1207 ac_prev=sharedstatedir ;;
1208 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1209 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1210 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1212 sharedstatedir=$ac_optarg ;;
1214 -site | --site | --sit)
1216 -site=* | --site=* | --sit=*)
1219 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1221 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1222 srcdir=$ac_optarg ;;
1224 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1225 | --syscon | --sysco | --sysc | --sys | --sy)
1226 ac_prev=sysconfdir ;;
1227 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1228 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1229 sysconfdir=$ac_optarg ;;
1231 -target | --target | --targe | --targ | --tar | --ta | --t)
1232 ac_prev=target_alias ;;
1233 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1234 target_alias=$ac_optarg ;;
1236 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1239 -version | --version | --versio | --versi | --vers | -V)
1240 ac_init_version=: ;;
1243 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1244 # Reject names that are not valid shell variable names.
1245 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1246 as_fn_error $? "invalid package name: $ac_useropt"
1247 ac_useropt_orig=$ac_useropt
1248 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1249 case $ac_user_opts in
1253 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1254 ac_unrecognized_sep=', ';;
1256 eval with_$ac_useropt=\$ac_optarg ;;
1258 -without-* | --without-*)
1259 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1260 # Reject names that are not valid shell variable names.
1261 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1262 as_fn_error $? "invalid package name: $ac_useropt"
1263 ac_useropt_orig=$ac_useropt
1264 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1265 case $ac_user_opts in
1269 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1270 ac_unrecognized_sep=', ';;
1272 eval with_$ac_useropt=no ;;
1275 # Obsolete; use --with-x.
1278 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1279 | --x-incl | --x-inc | --x-in | --x-i)
1280 ac_prev=x_includes ;;
1281 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1282 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1283 x_includes=$ac_optarg ;;
1285 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1286 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1287 ac_prev=x_libraries ;;
1288 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1289 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1290 x_libraries=$ac_optarg ;;
1292 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1293 Try \`$0 --help' for more information"
1297 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1298 # Reject names that are not valid shell variable names.
1299 case $ac_envvar in #(
1300 '' | [0-9]* | *[!_$as_cr_alnum]* )
1301 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1303 eval $ac_envvar=\$ac_optarg
1304 export $ac_envvar ;;
1307 # FIXME: should be removed in autoconf 3.0.
1308 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1309 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1310 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1311 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1317 if test -n "$ac_prev"; then
1318 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1319 as_fn_error $? "missing argument to $ac_option"
1322 if test -n "$ac_unrecognized_opts"; then
1323 case $enable_option_checking in
1325 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1326 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1330 # Check all directory arguments for consistency.
1331 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1332 datadir sysconfdir sharedstatedir localstatedir includedir \
1333 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1334 libdir localedir mandir
1336 eval ac_val=\$$ac_var
1337 # Remove trailing slashes.
1340 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1341 eval $ac_var=\$ac_val;;
1343 # Be sure to have absolute directory names.
1345 [\\/$]* | ?:[\\/]* ) continue;;
1346 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1348 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1351 # There might be people who depend on the old broken behavior: `$host'
1352 # used to hold the argument of --host etc.
1353 # FIXME: To remove some day.
1356 target=$target_alias
1358 # FIXME: To remove some day.
1359 if test "x$host_alias" != x; then
1360 if test "x$build_alias" = x; then
1361 cross_compiling=maybe
1362 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1363 If a cross compiler is detected then cross compile mode will be used" >&2
1364 elif test "x$build_alias" != "x$host_alias"; then
1370 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1372 test "$silent" = yes && exec 6>/dev/null
1375 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1376 ac_ls_di=`ls -di .` &&
1377 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1378 as_fn_error $? "working directory cannot be determined"
1379 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1380 as_fn_error $? "pwd does not report name of working directory"
1383 # Find the source files, if location was not specified.
1384 if test -z "$srcdir"; then
1385 ac_srcdir_defaulted=yes
1386 # Try the directory containing this script, then the parent directory.
1387 ac_confdir=`$as_dirname -- "$as_myself" ||
1388 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1389 X"$as_myself" : 'X\(//\)[^/]' \| \
1390 X"$as_myself" : 'X\(//\)$' \| \
1391 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1392 $as_echo X"$as_myself" |
1393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1411 if test ! -r "$srcdir/$ac_unique_file"; then
1415 ac_srcdir_defaulted=no
1417 if test ! -r "$srcdir/$ac_unique_file"; then
1418 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1419 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1421 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1423 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1425 # When building in place, set srcdir=.
1426 if test "$ac_abs_confdir" = "$ac_pwd"; then
1429 # Remove unnecessary trailing slashes from srcdir.
1430 # Double slashes in file names in object file debugging info
1431 # mess up M-x gdb in Emacs.
1433 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1435 for ac_var in $ac_precious_vars; do
1436 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1437 eval ac_env_${ac_var}_value=\$${ac_var}
1438 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1439 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1443 # Report the --help message.
1445 if test "$ac_init_help" = "long"; then
1446 # Omit some internal or obsolete options to make the list less imposing.
1447 # This message is too long to be a string in the A/UX 3.1 sh.
1449 \`configure' configures sudo 1.8.3p2 to adapt to many kinds of systems.
1451 Usage: $0 [OPTION]... [VAR=VALUE]...
1453 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1454 VAR=VALUE. See below for descriptions of some of the useful variables.
1456 Defaults for the options are specified in brackets.
1459 -h, --help display this help and exit
1460 --help=short display options specific to this package
1461 --help=recursive display the short help of all the included packages
1462 -V, --version display version information and exit
1463 -q, --quiet, --silent do not print \`checking ...' messages
1464 --cache-file=FILE cache test results in FILE [disabled]
1465 -C, --config-cache alias for \`--cache-file=config.cache'
1466 -n, --no-create do not create output files
1467 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1469 Installation directories:
1470 --prefix=PREFIX install architecture-independent files in PREFIX
1471 [$ac_default_prefix]
1472 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1475 By default, \`make install' will install all the files in
1476 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1477 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1478 for instance \`--prefix=\$HOME'.
1480 For better control, use the options below.
1482 Fine tuning of the installation directories:
1483 --bindir=DIR user executables [EPREFIX/bin]
1484 --sbindir=DIR system admin executables [EPREFIX/sbin]
1485 --libexecdir=DIR program executables [EPREFIX/libexec]
1486 --sysconfdir=DIR read-only single-machine data [/etc]
1487 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1488 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1489 --libdir=DIR object code libraries [EPREFIX/lib]
1490 --includedir=DIR C header files [PREFIX/include]
1491 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1492 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1493 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1494 --infodir=DIR info documentation [DATAROOTDIR/info]
1495 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1496 --mandir=DIR man documentation [DATAROOTDIR/man]
1497 --docdir=DIR documentation root [DATAROOTDIR/doc/sudo]
1498 --htmldir=DIR html documentation [DOCDIR]
1499 --dvidir=DIR dvi documentation [DOCDIR]
1500 --pdfdir=DIR pdf documentation [DOCDIR]
1501 --psdir=DIR ps documentation [DOCDIR]
1507 --build=BUILD configure for building on BUILD [guessed]
1508 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1512 if test -n "$ac_init_help"; then
1513 case $ac_init_help in
1514 short | recursive ) echo "Configuration of sudo 1.8.3p2:";;
1519 --disable-option-checking ignore unrecognized --enable/--with options
1520 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1521 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1522 --disable-authentication
1523 Do not require authentication by default
1524 --disable-root-mailer Don't run the mailer as root, run as the user
1525 --disable-setreuid Don't try to use the setreuid() function
1526 --disable-setresuid Don't try to use the setresuid() function
1527 --disable-shadow Never use shadow passwords
1528 --disable-root-sudo Don't allow root to run sudo
1529 --enable-log-host Log the hostname in the log file
1530 --enable-noargs-shell If sudo is given no arguments run a shell
1531 --enable-shell-sets-home
1532 Set $HOME to target user in shell mode
1533 --disable-path-info Print 'command not allowed' not 'command not found'
1534 --enable-env-debug Whether to enable environment debugging.
1535 --enable-zlib[=PATH] Whether to enable or disable zlib
1536 --enable-env-reset Whether to enable environment resetting by default.
1537 --enable-warnings Whether to enable compiler warnings
1538 --enable-werror Whether to enable the -Werror compiler option
1539 --enable-admin-flag Whether to create a Ubuntu-style admin flag file
1540 --disable-nls Disable natural language support using gettext
1541 --enable-gss-krb5-ccache-name
1542 Use GSS-API to set the Kerberos V cred cache name
1543 --enable-shared[=PKGS] build shared libraries [default=yes]
1544 --enable-static[=PKGS] build static libraries [default=yes]
1545 --enable-fast-install[=PKGS]
1546 optimize for fast installation [default=yes]
1547 --disable-libtool-lock avoid locking (might break parallel builds)
1548 --disable-sia Disable SIA on Digital UNIX
1549 --disable-largefile omit support for large files
1550 --disable-pam-session Disable PAM session support
1553 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1554 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1555 --with-otp-only deprecated
1556 --with-alertmail deprecated
1557 --with-devel add development options
1558 --with-CC C compiler to use
1559 --with-rpath pass -R flag in addition to -L for lib paths
1560 --with-blibpath=PATH pass -blibpath flag to ld for additional lib paths
1561 --with-bsm-audit enable BSM audit support
1562 --with-linux-audit enable Linux audit support
1563 --with-incpath additional places to look for include files
1564 --with-libpath additional places to look for libraries
1565 --with-libraries additional libraries to link with
1566 --with-efence link with -lefence for malloc() debugging
1567 --with-csops add CSOps standard options
1568 --without-passwd don't use passwd/shadow file for authentication
1569 --with-skey=DIR enable S/Key support
1570 --with-opie=DIR enable OPIE support
1571 --with-long-otp-prompt use a two line OTP (skey/opie) prompt
1572 --with-SecurID[=DIR] enable SecurID support
1573 --with-fwtk[=DIR] enable FWTK AuthSRV support
1574 --with-kerb4[=DIR] enable Kerberos IV support
1575 --with-kerb5[=DIR] enable Kerberos V support
1576 --with-aixauth enable AIX general authentication support
1577 --with-pam enable PAM support
1578 --with-AFS enable AFS support
1579 --with-DCE enable DCE support
1580 --with-logincap enable BSD login class support
1581 --with-bsdauth enable BSD authentication support
1582 --with-project enable Solaris project support
1583 --without-lecture don't print lecture for first-time sudoer
1584 --with-logging log via syslog, file, or both
1585 --with-logfac syslog facility to log with (default is "auth")
1586 --with-goodpri syslog priority for commands (def is "notice")
1587 --with-badpri syslog priority for failures (def is "alert")
1588 --with-logpath path to the sudo log file
1589 --with-loglen maximum length of a log file line (default is 80)
1590 --with-ignore-dot ignore '.' in the PATH
1591 --without-mail-if-no-user
1592 do not send mail if user not in sudoers
1593 --with-mail-if-no-host send mail if user in sudoers but not for this host
1594 --with-mail-if-noperms send mail if user not allowed to run command
1595 --with-mailto who should get sudo mail (default is "root")
1596 --with-mailsubject subject of sudo mail
1597 --with-passprompt default password prompt
1598 --with-badpass-message message the user sees when the password is wrong
1599 --with-fqdn expect fully qualified hosts in sudoers
1600 --with-timedir path to the sudo timestamp dir
1601 --with-iologdir=DIR directory to store sudo I/O log files in
1602 --with-sendmail set path to sendmail
1603 --without-sendmail do not send mail at all
1604 --with-sudoers-mode mode of sudoers file (defaults to 0440)
1605 --with-sudoers-uid uid that owns sudoers file (defaults to 0)
1606 --with-sudoers-gid gid that owns sudoers file (defaults to 0)
1607 --with-umask umask with which the prog should run (default is
1609 --without-umask Preserves the umask of the user invoking sudo.
1610 --with-umask-override Use the umask specified in sudoers even if it is
1611 less restrictive than the user's.
1612 --with-runas-default User to run commands as (default is "root")
1613 --with-exempt=group no passwd needed for users in this group
1614 --with-editor=path Default editor for visudo (defaults to vi)
1615 --with-env-editor Use the environment variable EDITOR for visudo
1616 --with-passwd-tries number of tries to enter password (default is 3)
1617 --with-timeout minutes before sudo asks for passwd again (def is 5
1619 --with-password-timeout passwd prompt timeout in minutes (default is 5
1621 --with-tty-tickets use a different ticket file for each tty
1622 --with-insults insult the user for entering an incorrect password
1623 --with-all-insults include all the sudo insult sets
1624 --with-classic-insults include the insults from the "classic" sudo
1625 --with-csops-insults include CSOps insults
1626 --with-hal-insults include 2001-like insults
1627 --with-goons-insults include the insults from the "Goon Show"
1628 --with-nsswitch[=PATH] path to nsswitch.conf
1629 --with-ldap[=DIR] enable LDAP support
1630 --with-ldap-conf-file path to LDAP configuration file
1631 --with-ldap-secret-file path to LDAP secret password file
1632 --with-pc-insults replace politically incorrect insults with less
1634 --with-secure-path override the user's path with a built-in one
1635 --without-interfaces don't try to read the ip addr of ether interfaces
1636 --with-stow properly handle GNU stow packaging
1637 --with-askpass=PATH Fully qualified pathname of askpass helper
1638 --with-plugindir set directory to load plugins from
1639 --with-selinux enable SELinux support
1640 --with-pic try to use only PIC/non-PIC objects [default=use
1642 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1643 --with-sysroot=DIR Search for dependent libraries within DIR
1644 (or the compiler's sysroot if not specified).
1645 --with-noexec=PATH fully qualified pathname of sudo_noexec.so
1646 --with-netsvc[=PATH] path to netsvc.conf
1647 --with-pam-login enable specific PAM session for sudo -i
1649 Some influential environment variables:
1650 CC C compiler command
1651 CFLAGS C compiler flags
1652 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1653 nonstandard directory <lib dir>
1654 LIBS libraries to pass to the linker, e.g. -l<library>
1655 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1656 you have headers in a nonstandard directory <include dir>
1658 YACC The `Yet Another Compiler Compiler' implementation to use.
1659 Defaults to the first program found out of: `bison -y', `byacc',
1661 YFLAGS The list of arguments that will be passed by default to $YACC.
1662 This script will default YFLAGS to the empty string to avoid a
1663 default value of `-d' given by some make applications.
1665 Use these variables to override the choices made by `configure' or to help
1666 it to find libraries and programs with nonstandard names/locations.
1668 Report bugs to <http://www.sudo.ws/bugs/>.
1673 if test "$ac_init_help" = "recursive"; then
1674 # If there are subdirs, report their specific --help.
1675 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1676 test -d "$ac_dir" ||
1677 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1682 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1684 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1685 # A ".." for each directory in $ac_dir_suffix.
1686 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1687 case $ac_top_builddir_sub in
1688 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1689 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1692 ac_abs_top_builddir=$ac_pwd
1693 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1694 # for backward compatibility:
1695 ac_top_builddir=$ac_top_build_prefix
1698 .) # We are building in place.
1700 ac_top_srcdir=$ac_top_builddir_sub
1701 ac_abs_top_srcdir=$ac_pwd ;;
1702 [\\/]* | ?:[\\/]* ) # Absolute name.
1703 ac_srcdir=$srcdir$ac_dir_suffix;
1704 ac_top_srcdir=$srcdir
1705 ac_abs_top_srcdir=$srcdir ;;
1707 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1708 ac_top_srcdir=$ac_top_build_prefix$srcdir
1709 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1711 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1713 cd "$ac_dir" || { ac_status=$?; continue; }
1714 # Check for guested configure.
1715 if test -f "$ac_srcdir/configure.gnu"; then
1717 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1718 elif test -f "$ac_srcdir/configure"; then
1720 $SHELL "$ac_srcdir/configure" --help=recursive
1722 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1724 cd "$ac_pwd" || { ac_status=$?; break; }
1728 test -n "$ac_init_help" && exit $ac_status
1729 if $ac_init_version; then
1731 sudo configure 1.8.3p2
1732 generated by GNU Autoconf 2.68
1734 Copyright (C) 2010 Free Software Foundation, Inc.
1735 This configure script is free software; the Free Software Foundation
1736 gives unlimited permission to copy, distribute and modify it.
1741 ## ------------------------ ##
1742 ## Autoconf initialization. ##
1743 ## ------------------------ ##
1745 # ac_fn_c_try_compile LINENO
1746 # --------------------------
1747 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1748 ac_fn_c_try_compile ()
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 rm -f conftest.$ac_objext
1752 if { { ac_try="$ac_compile"
1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755 *) ac_try_echo=$ac_try;;
1757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758 $as_echo "$ac_try_echo"; } >&5
1759 (eval "$ac_compile") 2>conftest.err
1761 if test -s conftest.err; then
1762 grep -v '^ *+' conftest.err >conftest.er1
1763 cat conftest.er1 >&5
1764 mv -f conftest.er1 conftest.err
1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767 test $ac_status = 0; } && {
1768 test -z "$ac_c_werror_flag" ||
1769 test ! -s conftest.err
1770 } && test -s conftest.$ac_objext; then :
1773 $as_echo "$as_me: failed program was:" >&5
1774 sed 's/^/| /' conftest.$ac_ext >&5
1778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1779 as_fn_set_status $ac_retval
1781 } # ac_fn_c_try_compile
1783 # ac_fn_c_try_link LINENO
1784 # -----------------------
1785 # Try to link conftest.$ac_ext, and return whether this succeeded.
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 rm -f conftest.$ac_objext conftest$ac_exeext
1790 if { { ac_try="$ac_link"
1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793 *) ac_try_echo=$ac_try;;
1795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796 $as_echo "$ac_try_echo"; } >&5
1797 (eval "$ac_link") 2>conftest.err
1799 if test -s conftest.err; then
1800 grep -v '^ *+' conftest.err >conftest.er1
1801 cat conftest.er1 >&5
1802 mv -f conftest.er1 conftest.err
1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805 test $ac_status = 0; } && {
1806 test -z "$ac_c_werror_flag" ||
1807 test ! -s conftest.err
1808 } && test -s conftest$ac_exeext && {
1809 test "$cross_compiling" = yes ||
1810 $as_test_x conftest$ac_exeext
1814 $as_echo "$as_me: failed program was:" >&5
1815 sed 's/^/| /' conftest.$ac_ext >&5
1819 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1820 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1821 # interfere with the next link command; also delete a directory that is
1822 # left behind by Apple's compiler. We do this before executing the actions.
1823 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825 as_fn_set_status $ac_retval
1827 } # ac_fn_c_try_link
1829 # ac_fn_c_try_cpp LINENO
1830 # ----------------------
1831 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 if { { ac_try="$ac_cpp conftest.$ac_ext"
1837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1838 *) ac_try_echo=$ac_try;;
1840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1841 $as_echo "$ac_try_echo"; } >&5
1842 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1844 if test -s conftest.err; then
1845 grep -v '^ *+' conftest.err >conftest.er1
1846 cat conftest.er1 >&5
1847 mv -f conftest.er1 conftest.err
1849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850 test $ac_status = 0; } > conftest.i && {
1851 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1852 test ! -s conftest.err
1856 $as_echo "$as_me: failed program was:" >&5
1857 sed 's/^/| /' conftest.$ac_ext >&5
1861 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1862 as_fn_set_status $ac_retval
1866 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1867 # -------------------------------------------------------
1868 # Tests whether HEADER exists and can be compiled using the include files in
1869 # INCLUDES, setting the cache variable VAR accordingly.
1870 ac_fn_c_check_header_compile ()
1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1874 $as_echo_n "checking for $2... " >&6; }
1875 if eval \${$3+:} false; then :
1876 $as_echo_n "(cached) " >&6
1878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1879 /* end confdefs.h. */
1883 if ac_fn_c_try_compile "$LINENO"; then :
1888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1892 $as_echo "$ac_res" >&6; }
1893 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895 } # ac_fn_c_check_header_compile
1897 # ac_fn_c_try_run LINENO
1898 # ----------------------
1899 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1900 # that executables *can* be run.
1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904 if { { ac_try="$ac_link"
1906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1907 *) ac_try_echo=$ac_try;;
1909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1910 $as_echo "$ac_try_echo"; } >&5
1911 (eval "$ac_link") 2>&5
1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1915 { { case "(($ac_try" in
1916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1917 *) ac_try_echo=$ac_try;;
1919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1920 $as_echo "$ac_try_echo"; } >&5
1921 (eval "$ac_try") 2>&5
1923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1924 test $ac_status = 0; }; }; then :
1927 $as_echo "$as_me: program exited with status $ac_status" >&5
1928 $as_echo "$as_me: failed program was:" >&5
1929 sed 's/^/| /' conftest.$ac_ext >&5
1931 ac_retval=$ac_status
1933 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935 as_fn_set_status $ac_retval
1939 # ac_fn_c_check_func LINENO FUNC VAR
1940 # ----------------------------------
1941 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1942 ac_fn_c_check_func ()
1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1946 $as_echo_n "checking for $2... " >&6; }
1947 if eval \${$3+:} false; then :
1948 $as_echo_n "(cached) " >&6
1950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951 /* end confdefs.h. */
1952 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1954 #define $2 innocuous_$2
1956 /* System header to define __stub macros and hopefully few prototypes,
1957 which can conflict with char $2 (); below.
1958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1959 <limits.h> exists even on freestanding compilers. */
1962 # include <limits.h>
1964 # include <assert.h>
1969 /* Override any GCC internal prototype to avoid an error.
1970 Use char because int might match the return type of a GCC
1971 builtin and then its argument prototype would still apply. */
1976 /* The GNU C library defines this for functions which it implements
1977 to always fail with ENOSYS. Some functions are actually named
1978 something starting with __ and the normal name is an alias. */
1979 #if defined __stub_$2 || defined __stub___$2
1991 if ac_fn_c_try_link "$LINENO"; then :
1996 rm -f core conftest.err conftest.$ac_objext \
1997 conftest$ac_exeext conftest.$ac_ext
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001 $as_echo "$ac_res" >&6; }
2002 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2004 } # ac_fn_c_check_func
2006 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2007 # -------------------------------------------------------
2008 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2009 # the include files in INCLUDES and setting the cache variable VAR
2011 ac_fn_c_check_header_mongrel ()
2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014 if eval \${$3+:} false; then :
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2016 $as_echo_n "checking for $2... " >&6; }
2017 if eval \${$3+:} false; then :
2018 $as_echo_n "(cached) " >&6
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2022 $as_echo "$ac_res" >&6; }
2024 # Is the header compilable?
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2026 $as_echo_n "checking $2 usability... " >&6; }
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2032 if ac_fn_c_try_compile "$LINENO"; then :
2033 ac_header_compiler=yes
2035 ac_header_compiler=no
2037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2039 $as_echo "$ac_header_compiler" >&6; }
2041 # Is the header present?
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2043 $as_echo_n "checking $2 presence... " >&6; }
2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045 /* end confdefs.h. */
2048 if ac_fn_c_try_cpp "$LINENO"; then :
2049 ac_header_preproc=yes
2051 ac_header_preproc=no
2053 rm -f conftest.err conftest.i conftest.$ac_ext
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2055 $as_echo "$ac_header_preproc" >&6; }
2057 # So? What about this header?
2058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2061 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2063 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2067 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2069 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2071 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2073 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2075 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2076 ( $as_echo "## --------------------------------------- ##
2077 ## Report this to http://www.sudo.ws/bugs/ ##
2078 ## --------------------------------------- ##"
2079 ) | sed "s/^/$as_me: WARNING: /" >&2
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2083 $as_echo_n "checking for $2... " >&6; }
2084 if eval \${$3+:} false; then :
2085 $as_echo_n "(cached) " >&6
2087 eval "$3=\$ac_header_compiler"
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2091 $as_echo "$ac_res" >&6; }
2093 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2095 } # ac_fn_c_check_header_mongrel
2097 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2098 # -------------------------------------------
2099 # Tests whether TYPE exists after having included INCLUDES, setting cache
2100 # variable VAR accordingly.
2101 ac_fn_c_check_type ()
2103 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2105 $as_echo_n "checking for $2... " >&6; }
2106 if eval \${$3+:} false; then :
2107 $as_echo_n "(cached) " >&6
2110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2111 /* end confdefs.h. */
2122 if ac_fn_c_try_compile "$LINENO"; then :
2123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124 /* end confdefs.h. */
2135 if ac_fn_c_try_compile "$LINENO"; then :
2140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2146 $as_echo "$ac_res" >&6; }
2147 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2149 } # ac_fn_c_check_type
2151 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2152 # --------------------------------------------
2153 # Tries to find the compile-time value of EXPR in a program that includes
2154 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2156 ac_fn_c_compute_int ()
2158 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2159 if test "$cross_compiling" = yes; then
2160 # Depending upon the size, compute the lo and hi bounds.
2161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h. */
2167 static int test_array [1 - 2 * !(($2) >= 0)];
2174 if ac_fn_c_try_compile "$LINENO"; then :
2177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2178 /* end confdefs.h. */
2183 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2190 if ac_fn_c_try_compile "$LINENO"; then :
2191 ac_hi=$ac_mid; break
2193 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2194 if test $ac_lo -le $ac_mid; then
2198 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2204 /* end confdefs.h. */
2209 static int test_array [1 - 2 * !(($2) < 0)];
2216 if ac_fn_c_try_compile "$LINENO"; then :
2219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2220 /* end confdefs.h. */
2225 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2232 if ac_fn_c_try_compile "$LINENO"; then :
2233 ac_lo=$ac_mid; break
2235 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2236 if test $ac_mid -le $ac_hi; then
2240 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2250 # Binary search between lo and hi bounds.
2251 while test "x$ac_lo" != "x$ac_hi"; do
2252 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2254 /* end confdefs.h. */
2259 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2266 if ac_fn_c_try_compile "$LINENO"; then :
2269 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2274 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2279 /* end confdefs.h. */
2281 static long int longval () { return $2; }
2282 static unsigned long int ulongval () { return $2; }
2289 FILE *f = fopen ("conftest.val", "w");
2294 long int i = longval ();
2297 fprintf (f, "%ld", i);
2301 unsigned long int i = ulongval ();
2304 fprintf (f, "%lu", i);
2306 /* Do not output a trailing newline, as this causes \r\n confusion
2307 on some platforms. */
2308 return ferror (f) || fclose (f) != 0;
2314 if ac_fn_c_try_run "$LINENO"; then :
2315 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2319 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2320 conftest.$ac_objext conftest.beam conftest.$ac_ext
2324 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2325 as_fn_set_status $ac_retval
2327 } # ac_fn_c_compute_int
2329 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2330 # ----------------------------------------------------
2331 # Tries to find if the field MEMBER exists in type AGGR, after including
2332 # INCLUDES, setting cache variable VAR accordingly.
2333 ac_fn_c_check_member ()
2335 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2337 $as_echo_n "checking for $2.$3... " >&6; }
2338 if eval \${$4+:} false; then :
2339 $as_echo_n "(cached) " >&6
2341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2342 /* end confdefs.h. */
2354 if ac_fn_c_try_compile "$LINENO"; then :
2357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2358 /* end confdefs.h. */
2364 if (sizeof ac_aggr.$3)
2370 if ac_fn_c_try_compile "$LINENO"; then :
2375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2381 $as_echo "$ac_res" >&6; }
2382 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2384 } # ac_fn_c_check_member
2386 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2387 # ---------------------------------------------
2388 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2390 ac_fn_c_check_decl ()
2392 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2393 as_decl_name=`echo $2|sed 's/ *(.*//'`
2394 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2396 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2397 if eval \${$3+:} false; then :
2398 $as_echo_n "(cached) " >&6
2400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2401 /* end confdefs.h. */
2406 #ifndef $as_decl_name
2408 (void) $as_decl_use;
2410 (void) $as_decl_name;
2418 if ac_fn_c_try_compile "$LINENO"; then :
2423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2427 $as_echo "$ac_res" >&6; }
2428 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2430 } # ac_fn_c_check_decl
2431 cat >config.log <<_ACEOF
2432 This file contains any messages produced by compilers while
2433 running configure, to aid debugging if configure makes a mistake.
2435 It was created by sudo $as_me 1.8.3p2, which was
2436 generated by GNU Autoconf 2.68. Invocation command line was
2448 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2449 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2450 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2451 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2452 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2454 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2455 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2457 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2458 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2459 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2460 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2461 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2462 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2463 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471 test -z "$as_dir" && as_dir=.
2472 $as_echo "PATH: $as_dir"
2488 # Keep a trace of the command line.
2489 # Strip out --no-create and --no-recursion so they do not pile up.
2490 # Strip out --silent because we don't want to record it for future runs.
2491 # Also quote any args containing shell meta-characters.
2492 # Make two passes to allow for proper duplicate-argument suppression.
2496 ac_must_keep_next=false
2502 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2503 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2504 | -silent | --silent | --silen | --sile | --sil)
2507 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2510 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2512 as_fn_append ac_configure_args1 " '$ac_arg'"
2513 if test $ac_must_keep_next = true; then
2514 ac_must_keep_next=false # Got value, back to normal.
2517 *=* | --config-cache | -C | -disable-* | --disable-* \
2518 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2519 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2520 | -with-* | --with-* | -without-* | --without-* | --x)
2521 case "$ac_configure_args0 " in
2522 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2525 -* ) ac_must_keep_next=true ;;
2528 as_fn_append ac_configure_args " '$ac_arg'"
2533 { ac_configure_args0=; unset ac_configure_args0;}
2534 { ac_configure_args1=; unset ac_configure_args1;}
2536 # When interrupted or exit'd, cleanup temporary files, and complete
2537 # config.log. We remove comments because anyway the quotes in there
2538 # would cause problems or look ugly.
2539 # WARNING: Use '\'' to represent an apostrophe within the trap.
2540 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2541 trap 'exit_status=$?
2542 # Save into config.log some information that might help in debugging.
2546 $as_echo "## ---------------- ##
2547 ## Cache variables. ##
2548 ## ---------------- ##"
2550 # The following way of writing the cache mishandles newlines in values,
2552 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2553 eval ac_val=\$$ac_var
2557 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2558 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2561 _ | IFS | as_nl) ;; #(
2562 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2563 *) { eval $ac_var=; unset $ac_var;} ;;
2568 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2569 *${as_nl}ac_space=\ *)
2571 "s/'\''/'\''\\\\'\'''\''/g;
2572 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2575 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2582 $as_echo "## ----------------- ##
2583 ## Output variables. ##
2584 ## ----------------- ##"
2586 for ac_var in $ac_subst_vars
2588 eval ac_val=\$$ac_var
2590 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2592 $as_echo "$ac_var='\''$ac_val'\''"
2596 if test -n "$ac_subst_files"; then
2597 $as_echo "## ------------------- ##
2598 ## File substitutions. ##
2599 ## ------------------- ##"
2601 for ac_var in $ac_subst_files
2603 eval ac_val=\$$ac_var
2605 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2607 $as_echo "$ac_var='\''$ac_val'\''"
2612 if test -s confdefs.h; then
2613 $as_echo "## ----------- ##
2620 test "$ac_signal" != 0 &&
2621 $as_echo "$as_me: caught signal $ac_signal"
2622 $as_echo "$as_me: exit $exit_status"
2624 rm -f core *.core core.conftest.* &&
2625 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2628 for ac_signal in 1 2 13 15; do
2629 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2633 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2634 rm -f -r conftest* confdefs.h
2636 $as_echo "/* confdefs.h */" > confdefs.h
2638 # Predefined preprocessor variables.
2640 cat >>confdefs.h <<_ACEOF
2641 #define PACKAGE_NAME "$PACKAGE_NAME"
2644 cat >>confdefs.h <<_ACEOF
2645 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2648 cat >>confdefs.h <<_ACEOF
2649 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2652 cat >>confdefs.h <<_ACEOF
2653 #define PACKAGE_STRING "$PACKAGE_STRING"
2656 cat >>confdefs.h <<_ACEOF
2657 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2660 cat >>confdefs.h <<_ACEOF
2661 #define PACKAGE_URL "$PACKAGE_URL"
2665 # Let the site file select an alternate cache file if it wants to.
2666 # Prefer an explicitly selected file to automatically selected ones.
2669 if test -n "$CONFIG_SITE"; then
2670 # We do not want a PATH search for config.site.
2671 case $CONFIG_SITE in #((
2672 -*) ac_site_file1=./$CONFIG_SITE;;
2673 */*) ac_site_file1=$CONFIG_SITE;;
2674 *) ac_site_file1=./$CONFIG_SITE;;
2676 elif test "x$prefix" != xNONE; then
2677 ac_site_file1=$prefix/share/config.site
2678 ac_site_file2=$prefix/etc/config.site
2680 ac_site_file1=$ac_default_prefix/share/config.site
2681 ac_site_file2=$ac_default_prefix/etc/config.site
2683 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2685 test "x$ac_site_file" = xNONE && continue
2686 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2688 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2689 sed 's/^/| /' "$ac_site_file" >&5
2691 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2692 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2693 as_fn_error $? "failed to load site script $ac_site_file
2694 See \`config.log' for more details" "$LINENO" 5; }
2698 if test -r "$cache_file"; then
2699 # Some versions of bash will fail to source /dev/null (special files
2700 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2701 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2703 $as_echo "$as_me: loading cache $cache_file" >&6;}
2705 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2706 *) . "./$cache_file";;
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2711 $as_echo "$as_me: creating cache $cache_file" >&6;}
2715 # Check that the precious variables saved in the cache have kept the same
2717 ac_cache_corrupted=false
2718 for ac_var in $ac_precious_vars; do
2719 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2720 eval ac_new_set=\$ac_env_${ac_var}_set
2721 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2722 eval ac_new_val=\$ac_env_${ac_var}_value
2723 case $ac_old_set,$ac_new_set in
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2726 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2727 ac_cache_corrupted=: ;;
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2730 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2731 ac_cache_corrupted=: ;;
2734 if test "x$ac_old_val" != "x$ac_new_val"; then
2735 # differences in whitespace do not lead to failure.
2736 ac_old_val_w=`echo x $ac_old_val`
2737 ac_new_val_w=`echo x $ac_new_val`
2738 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2740 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2741 ac_cache_corrupted=:
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2744 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2745 eval $ac_var=\$ac_old_val
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2748 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2750 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2753 # Pass precious variables to config.status.
2754 if test "$ac_new_set" = set; then
2756 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2757 *) ac_arg=$ac_var=$ac_new_val ;;
2759 case " $ac_configure_args " in
2760 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2761 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2765 if $ac_cache_corrupted; then
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2767 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2769 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2770 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2772 ## -------------------- ##
2773 ## Main body of script. ##
2774 ## -------------------- ##
2777 ac_cpp='$CPP $CPPFLAGS'
2778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2783 ac_config_headers="$ac_config_headers config.h pathnames.h"
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Sudo version $PACKAGE_VERSION" >&5
2786 $as_echo "$as_me: Configuring Sudo version $PACKAGE_VERSION" >&6;}
2875 # Begin initial values for man page substitution
2877 iolog_dir=/var/log/sudo-io
2878 timedir=/var/adm/sudo
2883 passprompt="Password:"
2895 mailsub="*** SECURITY information for %h ***"
2896 badpass_message="Sorry, try again."
2907 ldap_conf=/etc/ldap.conf
2908 ldap_secret=/etc/ldap.secret
2909 netsvc_conf=/etc/netsvc.conf
2910 noexec_file=/usr/local/libexec/sudo_noexec.so
2911 nsswitch_conf=/etc/nsswitch.conf
2912 secure_path="not set"
2914 # End initial values for man page substitution
2921 : ${SUDOERS_MODE='0440'}
2922 : ${SUDOERS_UID='0'}
2923 : ${SUDOERS_GID='0'}
2943 shadow_libs_optional=
2950 # Check whether --with-otp-only was given.
2951 if test "${with_otp_only+set}" = set; then :
2952 withval=$with_otp_only; case $with_otp_only in
2953 yes) with_passwd="no"
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-otp-only option deprecated, treating as --without-passwd" >&5
2955 $as_echo "$as_me: --with-otp-only option deprecated, treating as --without-passwd" >&6;}
2962 # Check whether --with-alertmail was given.
2963 if test "${with_alertmail+set}" = set; then :
2964 withval=$with_alertmail; case $with_alertmail in
2965 *) with_mailto="$with_alertmail"
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-alertmail option deprecated, treating as --mailto" >&5
2967 $as_echo "$as_me: --with-alertmail option deprecated, treating as --mailto" >&6;}
2975 # Check whether --with-devel was given.
2976 if test "${with_devel+set}" = set; then :
2977 withval=$with_devel; case $with_devel in
2978 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: Setting up for development: -Wall, flex, yacc" >&5
2979 $as_echo "$as_me: Setting up for development: -Wall, flex, yacc" >&6;}
2980 OSDEFS="${OSDEFS} -DSUDO_DEVEL"
2985 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&5
2986 $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&2;}
2993 # Check whether --with-CC was given.
2994 if test "${with_CC+set}" = set; then :
2995 withval=$with_CC; case $with_CC in
2996 *) as_fn_error $? "the --with-CC option is no longer supported, please set the CC environment variable instead." "$LINENO" 5
3003 # Check whether --with-rpath was given.
3004 if test "${with_rpath+set}" = set; then :
3005 withval=$with_rpath; case $with_rpath in
3007 *) as_fn_error $? "\"--with-rpath does not take an argument.\"" "$LINENO" 5
3014 # Check whether --with-blibpath was given.
3015 if test "${with_blibpath+set}" = set; then :
3016 withval=$with_blibpath; case $with_blibpath in
3018 *) { $as_echo "$as_me:${as_lineno-$LINENO}: will pass -blibpath:${with_blibpath} to the loader." >&5
3019 $as_echo "$as_me: will pass -blibpath:${with_blibpath} to the loader." >&6;}
3026 # Check whether --with-bsm-audit was given.
3027 if test "${with_bsm_audit+set}" = set; then :
3028 withval=$with_bsm_audit; case $with_bsm_audit in
3029 yes) $as_echo "#define HAVE_BSM_AUDIT 1" >>confdefs.h
3031 SUDOERS_LIBS="${SUDOERS_LIBS} -lbsm"
3032 SUDOERS_OBJS="${SUDOERS_OBJS} bsm_audit.lo"
3035 *) as_fn_error $? "\"--with-bsm-audit does not take an argument.\"" "$LINENO" 5
3042 ac_cpp='$CPP $CPPFLAGS'
3043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3046 if test -n "$ac_tool_prefix"; then
3047 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3048 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3050 $as_echo_n "checking for $ac_word... " >&6; }
3051 if ${ac_cv_prog_CC+:} false; then :
3052 $as_echo_n "(cached) " >&6
3054 if test -n "$CC"; then
3055 ac_cv_prog_CC="$CC" # Let the user override the test.
3057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061 test -z "$as_dir" && as_dir=.
3062 for ac_exec_ext in '' $ac_executable_extensions; do
3063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3064 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3075 if test -n "$CC"; then
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3077 $as_echo "$CC" >&6; }
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3080 $as_echo "no" >&6; }
3085 if test -z "$ac_cv_prog_CC"; then
3087 # Extract the first word of "gcc", so it can be a program name with args.
3088 set dummy gcc; ac_word=$2
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3090 $as_echo_n "checking for $ac_word... " >&6; }
3091 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3092 $as_echo_n "(cached) " >&6
3094 if test -n "$ac_ct_CC"; then
3095 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3101 test -z "$as_dir" && as_dir=.
3102 for ac_exec_ext in '' $ac_executable_extensions; do
3103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3104 ac_cv_prog_ac_ct_CC="gcc"
3105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3114 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3115 if test -n "$ac_ct_CC"; then
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3117 $as_echo "$ac_ct_CC" >&6; }
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3120 $as_echo "no" >&6; }
3123 if test "x$ac_ct_CC" = x; then
3126 case $cross_compiling:$ac_tool_warned in
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3129 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3130 ac_tool_warned=yes ;;
3138 if test -z "$CC"; then
3139 if test -n "$ac_tool_prefix"; then
3140 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3141 set dummy ${ac_tool_prefix}cc; ac_word=$2
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3143 $as_echo_n "checking for $ac_word... " >&6; }
3144 if ${ac_cv_prog_CC+:} false; then :
3145 $as_echo_n "(cached) " >&6
3147 if test -n "$CC"; then
3148 ac_cv_prog_CC="$CC" # Let the user override the test.
3150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154 test -z "$as_dir" && as_dir=.
3155 for ac_exec_ext in '' $ac_executable_extensions; do
3156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3157 ac_cv_prog_CC="${ac_tool_prefix}cc"
3158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3168 if test -n "$CC"; then
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3170 $as_echo "$CC" >&6; }
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3173 $as_echo "no" >&6; }
3179 if test -z "$CC"; then
3180 # Extract the first word of "cc", so it can be a program name with args.
3181 set dummy cc; ac_word=$2
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3183 $as_echo_n "checking for $ac_word... " >&6; }
3184 if ${ac_cv_prog_CC+:} false; then :
3185 $as_echo_n "(cached) " >&6
3187 if test -n "$CC"; then
3188 ac_cv_prog_CC="$CC" # Let the user override the test.
3191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3195 test -z "$as_dir" && as_dir=.
3196 for ac_exec_ext in '' $ac_executable_extensions; do
3197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3198 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3199 ac_prog_rejected=yes
3203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3210 if test $ac_prog_rejected = yes; then
3211 # We found a bogon in the path, so make sure we never use it.
3212 set dummy $ac_cv_prog_CC
3214 if test $# != 0; then
3215 # We chose a different compiler from the bogus one.
3216 # However, it has the same basename, so the bogon will be chosen
3217 # first if we set CC to just the basename; use the full file name.
3219 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3225 if test -n "$CC"; then
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3227 $as_echo "$CC" >&6; }
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3230 $as_echo "no" >&6; }
3235 if test -z "$CC"; then
3236 if test -n "$ac_tool_prefix"; then
3237 for ac_prog in cl.exe
3239 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3240 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3242 $as_echo_n "checking for $ac_word... " >&6; }
3243 if ${ac_cv_prog_CC+:} false; then :
3244 $as_echo_n "(cached) " >&6
3246 if test -n "$CC"; then
3247 ac_cv_prog_CC="$CC" # Let the user override the test.
3249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253 test -z "$as_dir" && as_dir=.
3254 for ac_exec_ext in '' $ac_executable_extensions; do
3255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3256 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3267 if test -n "$CC"; then
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3269 $as_echo "$CC" >&6; }
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3272 $as_echo "no" >&6; }
3276 test -n "$CC" && break
3279 if test -z "$CC"; then
3281 for ac_prog in cl.exe
3283 # Extract the first word of "$ac_prog", so it can be a program name with args.
3284 set dummy $ac_prog; ac_word=$2
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3286 $as_echo_n "checking for $ac_word... " >&6; }
3287 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3288 $as_echo_n "(cached) " >&6
3290 if test -n "$ac_ct_CC"; then
3291 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297 test -z "$as_dir" && as_dir=.
3298 for ac_exec_ext in '' $ac_executable_extensions; do
3299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3300 ac_cv_prog_ac_ct_CC="$ac_prog"
3301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3310 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3311 if test -n "$ac_ct_CC"; then
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3313 $as_echo "$ac_ct_CC" >&6; }
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3316 $as_echo "no" >&6; }
3320 test -n "$ac_ct_CC" && break
3323 if test "x$ac_ct_CC" = x; then
3326 case $cross_compiling:$ac_tool_warned in
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3329 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3330 ac_tool_warned=yes ;;
3339 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3341 as_fn_error $? "no acceptable C compiler found in \$PATH
3342 See \`config.log' for more details" "$LINENO" 5; }
3344 # Provide some information about the compiler.
3345 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3348 for ac_option in --version -v -V -qversion; do
3349 { { ac_try="$ac_compiler $ac_option >&5"
3351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352 *) ac_try_echo=$ac_try;;
3354 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3355 $as_echo "$ac_try_echo"; } >&5
3356 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3358 if test -s conftest.err; then
3360 ... rest of stderr output deleted ...
3361 10q' conftest.err >conftest.er1
3362 cat conftest.er1 >&5
3364 rm -f conftest.er1 conftest.err
3365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3366 test $ac_status = 0; }
3369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3370 /* end confdefs.h. */
3380 ac_clean_files_save=$ac_clean_files
3381 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3382 # Try to create an executable without -o first, disregard a.out.
3383 # It will help us diagnose broken compilers, and finding out an intuition
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3386 $as_echo_n "checking whether the C compiler works... " >&6; }
3387 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3389 # The possible output files:
3390 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3393 for ac_file in $ac_files
3396 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3397 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3402 if { { ac_try="$ac_link_default"
3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405 *) ac_try_echo=$ac_try;;
3407 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3408 $as_echo "$ac_try_echo"; } >&5
3409 (eval "$ac_link_default") 2>&5
3411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3412 test $ac_status = 0; }; then :
3413 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3414 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3415 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3416 # so that the user can short-circuit this test for compilers unknown to
3418 for ac_file in $ac_files ''
3420 test -f "$ac_file" || continue
3422 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3425 # We found the default executable, but exeext='' is most
3429 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3431 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3433 # We set ac_cv_exeext here because the later test for it is not
3434 # safe: cross compilers may not add the suffix if given an `-o'
3435 # argument, so we may need to know it at that point already.
3436 # Even if this section looks crufty: it has the advantage of
3443 test "$ac_cv_exeext" = no && ac_cv_exeext=
3448 if test -z "$ac_file"; then :
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3450 $as_echo "no" >&6; }
3451 $as_echo "$as_me: failed program was:" >&5
3452 sed 's/^/| /' conftest.$ac_ext >&5
3454 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3455 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3456 as_fn_error 77 "C compiler cannot create executables
3457 See \`config.log' for more details" "$LINENO" 5; }
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3460 $as_echo "yes" >&6; }
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3463 $as_echo_n "checking for C compiler default output file name... " >&6; }
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3465 $as_echo "$ac_file" >&6; }
3466 ac_exeext=$ac_cv_exeext
3468 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3469 ac_clean_files=$ac_clean_files_save
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3471 $as_echo_n "checking for suffix of executables... " >&6; }
3472 if { { ac_try="$ac_link"
3474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475 *) ac_try_echo=$ac_try;;
3477 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3478 $as_echo "$ac_try_echo"; } >&5
3479 (eval "$ac_link") 2>&5
3481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3482 test $ac_status = 0; }; then :
3483 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3484 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3485 # work properly (i.e., refer to `conftest.exe'), while it won't with
3487 for ac_file in conftest.exe conftest conftest.*; do
3488 test -f "$ac_file" || continue
3490 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3491 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3497 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3498 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3499 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3500 See \`config.log' for more details" "$LINENO" 5; }
3502 rm -f conftest conftest$ac_cv_exeext
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3504 $as_echo "$ac_cv_exeext" >&6; }
3506 rm -f conftest.$ac_ext
3507 EXEEXT=$ac_cv_exeext
3509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3510 /* end confdefs.h. */
3515 FILE *f = fopen ("conftest.out", "w");
3516 return ferror (f) || fclose (f) != 0;
3522 ac_clean_files="$ac_clean_files conftest.out"
3523 # Check that the compiler produces executables we can run. If not, either
3524 # the compiler is broken, or we cross compile.
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3526 $as_echo_n "checking whether we are cross compiling... " >&6; }
3527 if test "$cross_compiling" != yes; then
3528 { { ac_try="$ac_link"
3530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3531 *) ac_try_echo=$ac_try;;
3533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3534 $as_echo "$ac_try_echo"; } >&5
3535 (eval "$ac_link") 2>&5
3537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3538 test $ac_status = 0; }
3539 if { ac_try='./conftest$ac_cv_exeext'
3540 { { case "(($ac_try" in
3541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3542 *) ac_try_echo=$ac_try;;
3544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3545 $as_echo "$ac_try_echo"; } >&5
3546 (eval "$ac_try") 2>&5
3548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3549 test $ac_status = 0; }; }; then
3552 if test "$cross_compiling" = maybe; then
3555 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3556 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3557 as_fn_error $? "cannot run C compiled programs.
3558 If you meant to cross compile, use \`--host'.
3559 See \`config.log' for more details" "$LINENO" 5; }
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3564 $as_echo "$cross_compiling" >&6; }
3566 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3567 ac_clean_files=$ac_clean_files_save
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3569 $as_echo_n "checking for suffix of object files... " >&6; }
3570 if ${ac_cv_objext+:} false; then :
3571 $as_echo_n "(cached) " >&6
3573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574 /* end confdefs.h. */
3584 rm -f conftest.o conftest.obj
3585 if { { ac_try="$ac_compile"
3587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3588 *) ac_try_echo=$ac_try;;
3590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3591 $as_echo "$ac_try_echo"; } >&5
3592 (eval "$ac_compile") 2>&5
3594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3595 test $ac_status = 0; }; then :
3596 for ac_file in conftest.o conftest.obj conftest.*; do
3597 test -f "$ac_file" || continue;
3599 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3600 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3605 $as_echo "$as_me: failed program was:" >&5
3606 sed 's/^/| /' conftest.$ac_ext >&5
3608 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3610 as_fn_error $? "cannot compute suffix of object files: cannot compile
3611 See \`config.log' for more details" "$LINENO" 5; }
3613 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3616 $as_echo "$ac_cv_objext" >&6; }
3617 OBJEXT=$ac_cv_objext
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3620 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3621 if ${ac_cv_c_compiler_gnu+:} false; then :
3622 $as_echo_n "(cached) " >&6
3624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3625 /* end confdefs.h. */
3638 if ac_fn_c_try_compile "$LINENO"; then :
3643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3644 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3648 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3649 if test $ac_compiler_gnu = yes; then
3654 ac_test_CFLAGS=${CFLAGS+set}
3655 ac_save_CFLAGS=$CFLAGS
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3657 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3658 if ${ac_cv_prog_cc_g+:} false; then :
3659 $as_echo_n "(cached) " >&6
3661 ac_save_c_werror_flag=$ac_c_werror_flag
3662 ac_c_werror_flag=yes
3665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3666 /* end confdefs.h. */
3676 if ac_fn_c_try_compile "$LINENO"; then :
3680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3681 /* end confdefs.h. */
3691 if ac_fn_c_try_compile "$LINENO"; then :
3694 ac_c_werror_flag=$ac_save_c_werror_flag
3696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3697 /* end confdefs.h. */
3707 if ac_fn_c_try_compile "$LINENO"; then :
3710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3715 ac_c_werror_flag=$ac_save_c_werror_flag
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3718 $as_echo "$ac_cv_prog_cc_g" >&6; }
3719 if test "$ac_test_CFLAGS" = set; then
3720 CFLAGS=$ac_save_CFLAGS
3721 elif test $ac_cv_prog_cc_g = yes; then
3722 if test "$GCC" = yes; then
3728 if test "$GCC" = yes; then
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3735 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3736 if ${ac_cv_prog_cc_c89+:} false; then :
3737 $as_echo_n "(cached) " >&6
3739 ac_cv_prog_cc_c89=no
3741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3742 /* end confdefs.h. */
3745 #include <sys/types.h>
3746 #include <sys/stat.h>
3747 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3748 struct buf { int x; };
3749 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3750 static char *e (p, i)
3756 static char *f (char * (*g) (char **, int), char **p, ...)
3761 s = g (p, va_arg (v,int));
3766 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3767 function prototypes and stuff, but not '\xHH' hex character constants.
3768 These don't provoke an error unfortunately, instead are silently treated
3769 as 'x'. The following induces an error, until -std is added to get
3770 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3771 array size at least. It's necessary to write '\x00'==0 to get something
3772 that's true only with -std. */
3773 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3775 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3776 inside strings and character constants. */
3778 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3780 int test (int i, double x);
3781 struct s1 {int (*f) (int a);};
3782 struct s2 {int (*f) (double a);};
3783 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3789 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3794 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3795 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3797 CC="$ac_save_CC $ac_arg"
3798 if ac_fn_c_try_compile "$LINENO"; then :
3799 ac_cv_prog_cc_c89=$ac_arg
3801 rm -f core conftest.err conftest.$ac_objext
3802 test "x$ac_cv_prog_cc_c89" != "xno" && break
3804 rm -f conftest.$ac_ext
3809 case "x$ac_cv_prog_cc_c89" in
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3812 $as_echo "none needed" >&6; } ;;
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3815 $as_echo "unsupported" >&6; } ;;
3817 CC="$CC $ac_cv_prog_cc_c89"
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3819 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3821 if test "x$ac_cv_prog_cc_c89" != xno; then :
3826 ac_cpp='$CPP $CPPFLAGS'
3827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3833 # Check whether --with-linux-audit was given.
3834 if test "${with_linux_audit+set}" = set; then :
3835 withval=$with_linux_audit; case $with_linux_audit in
3836 yes) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837 /* end confdefs.h. */
3838 #include <libaudit.h>
3842 int i = AUDIT_USER_CMD; (void)i;
3847 if ac_fn_c_try_compile "$LINENO"; then :
3849 $as_echo "#define HAVE_LINUX_AUDIT 1" >>confdefs.h
3851 SUDO_LIBS="${SUDO_LIBS} -laudit"
3852 SUDOERS_LIBS="${SUDO_LIBS} -laudit"
3853 SUDOERS_OBJS="${SUDOERS_OBJS} linux_audit.lo"
3857 as_fn_error $? "unable to find AUDIT_USER_CMD in libaudit.h for --with-linux-audit" "$LINENO" 5
3860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3863 *) as_fn_error $? "\"--with-linux-audit does not take an argument.\"" "$LINENO" 5
3870 # Check whether --with-incpath was given.
3871 if test "${with_incpath+set}" = set; then :
3872 withval=$with_incpath; case $with_incpath in
3873 yes) as_fn_error $? "\"must give --with-incpath an argument.\"" "$LINENO" 5
3875 no) as_fn_error $? "\"--without-incpath not supported.\"" "$LINENO" 5
3877 *) { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_incpath} to CPPFLAGS" >&5
3878 $as_echo "$as_me: Adding ${with_incpath} to CPPFLAGS" >&6;}
3879 for i in ${with_incpath}; do
3880 CPPFLAGS="${CPPFLAGS} -I${i}"
3888 # Check whether --with-libpath was given.
3889 if test "${with_libpath+set}" = set; then :
3890 withval=$with_libpath; case $with_libpath in
3891 yes) as_fn_error $? "\"must give --with-libpath an argument.\"" "$LINENO" 5
3893 no) as_fn_error $? "\"--without-libpath not supported.\"" "$LINENO" 5
3895 *) { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_libpath} to LDFLAGS" >&5
3896 $as_echo "$as_me: Adding ${with_libpath} to LDFLAGS" >&6;}
3903 # Check whether --with-libraries was given.
3904 if test "${with_libraries+set}" = set; then :
3905 withval=$with_libraries; case $with_libraries in
3906 yes) as_fn_error $? "\"must give --with-libraries an argument.\"" "$LINENO" 5
3908 no) as_fn_error $? "\"--without-libraries not supported.\"" "$LINENO" 5
3910 *) { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_libraries} to LIBS" >&5
3911 $as_echo "$as_me: Adding ${with_libraries} to LIBS" >&6;}
3918 # Check whether --with-efence was given.
3919 if test "${with_efence+set}" = set; then :
3920 withval=$with_efence; case $with_efence in
3921 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: Sudo will link with -lefence (Electric Fence)" >&5
3922 $as_echo "$as_me: Sudo will link with -lefence (Electric Fence)" >&6;}
3923 LIBS="${LIBS} -lefence"
3924 if test -f /usr/local/lib/libefence.a; then
3925 with_libpath="${with_libpath} /usr/local/lib"
3929 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&5
3930 $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&2;}
3937 # Check whether --with-csops was given.
3938 if test "${with_csops+set}" = set; then :
3939 withval=$with_csops; case $with_csops in
3940 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: Adding CSOps standard options" >&5
3941 $as_echo "$as_me: Adding CSOps standard options" >&6;}
3945 with_classic_insults=yes
3946 with_csops_insults=yes
3949 : ${mansectform='5'}
3952 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&5
3953 $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&2;}
3960 # Check whether --with-passwd was given.
3961 if test "${with_passwd+set}" = set; then :
3962 withval=$with_passwd; case $with_passwd in
3963 yes|no) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use shadow/passwd file authentication" >&5
3964 $as_echo_n "checking whether to use shadow/passwd file authentication... " >&6; }
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_passwd" >&5
3966 $as_echo "$with_passwd" >&6; }
3968 test "$with_passwd" = "yes" && AUTH_REG="$AUTH_REG passwd"
3970 *) as_fn_error $? "\"Sorry, --with-passwd does not take an argument.\"" "$LINENO" 5
3977 # Check whether --with-skey was given.
3978 if test "${with_skey+set}" = set; then :
3979 withval=$with_skey; case $with_skey in
3981 *) $as_echo "#define HAVE_SKEY 1" >>confdefs.h
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try S/Key authentication" >&5
3984 $as_echo_n "checking whether to try S/Key authentication... " >&6; }
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3986 $as_echo "yes" >&6; }
3987 AUTH_REG="$AUTH_REG S/Key"
3994 # Check whether --with-opie was given.
3995 if test "${with_opie+set}" = set; then :
3996 withval=$with_opie; case $with_opie in
3998 *) $as_echo "#define HAVE_OPIE 1" >>confdefs.h
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try NRL OPIE authentication" >&5
4001 $as_echo_n "checking whether to try NRL OPIE authentication... " >&6; }
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4003 $as_echo "yes" >&6; }
4004 AUTH_REG="$AUTH_REG NRL_OPIE"
4011 # Check whether --with-long-otp-prompt was given.
4012 if test "${with_long_otp_prompt+set}" = set; then :
4013 withval=$with_long_otp_prompt; case $with_long_otp_prompt in
4014 yes) $as_echo "#define LONG_OTP_PROMPT 1" >>confdefs.h
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use a two line prompt for OTP authentication" >&5
4017 $as_echo_n "checking whether to use a two line prompt for OTP authentication... " >&6; }
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4019 $as_echo "yes" >&6; }
4022 no) long_otp_prompt=off
4024 *) as_fn_error $? "\"--with-long-otp-prompt does not take an argument.\"" "$LINENO" 5
4031 # Check whether --with-SecurID was given.
4032 if test "${with_SecurID+set}" = set; then :
4033 withval=$with_SecurID; case $with_SecurID in
4035 *) $as_echo "#define HAVE_SECURID 1" >>confdefs.h
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use SecurID for authentication" >&5
4038 $as_echo_n "checking whether to use SecurID for authentication... " >&6; }
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4040 $as_echo "yes" >&6; }
4041 AUTH_EXCL="$AUTH_EXCL SecurID"
4048 # Check whether --with-fwtk was given.
4049 if test "${with_fwtk+set}" = set; then :
4050 withval=$with_fwtk; case $with_fwtk in
4052 *) $as_echo "#define HAVE_FWTK 1" >>confdefs.h
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use FWTK AuthSRV for authentication" >&5
4055 $as_echo_n "checking whether to use FWTK AuthSRV for authentication... " >&6; }
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4057 $as_echo "yes" >&6; }
4058 AUTH_EXCL="$AUTH_EXCL FWTK"
4065 # Check whether --with-kerb4 was given.
4066 if test "${with_kerb4+set}" = set; then :
4067 withval=$with_kerb4; case $with_kerb4 in
4069 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try kerberos IV authentication" >&5
4070 $as_echo_n "checking whether to try kerberos IV authentication... " >&6; }
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4072 $as_echo "yes" >&6; }
4073 AUTH_REG="$AUTH_REG kerb4"
4080 # Check whether --with-kerb5 was given.
4081 if test "${with_kerb5+set}" = set; then :
4082 withval=$with_kerb5; case $with_kerb5 in
4084 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try Kerberos V authentication" >&5
4085 $as_echo_n "checking whether to try Kerberos V authentication... " >&6; }
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4087 $as_echo "yes" >&6; }
4088 AUTH_REG="$AUTH_REG kerb5"
4095 # Check whether --with-aixauth was given.
4096 if test "${with_aixauth+set}" = set; then :
4097 withval=$with_aixauth; case $with_aixauth in
4098 yes) AUTH_EXCL="$AUTH_EXCL AIX_AUTH";;
4100 *) as_fn_error $? "\"--with-aixauth does not take an argument.\"" "$LINENO" 5
4107 # Check whether --with-pam was given.
4108 if test "${with_pam+set}" = set; then :
4109 withval=$with_pam; case $with_pam in
4110 yes) AUTH_EXCL="$AUTH_EXCL PAM";;
4112 *) as_fn_error $? "\"--with-pam does not take an argument.\"" "$LINENO" 5
4119 # Check whether --with-AFS was given.
4120 if test "${with_AFS+set}" = set; then :
4121 withval=$with_AFS; case $with_AFS in
4122 yes) $as_echo "#define HAVE_AFS 1" >>confdefs.h
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try AFS (kerberos) authentication" >&5
4125 $as_echo_n "checking whether to try AFS (kerberos) authentication... " >&6; }
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4127 $as_echo "yes" >&6; }
4128 AUTH_REG="$AUTH_REG AFS"
4131 *) as_fn_error $? "\"--with-AFS does not take an argument.\"" "$LINENO" 5
4138 # Check whether --with-DCE was given.
4139 if test "${with_DCE+set}" = set; then :
4140 withval=$with_DCE; case $with_DCE in
4141 yes) $as_echo "#define HAVE_DCE 1" >>confdefs.h
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try DCE (kerberos) authentication" >&5
4144 $as_echo_n "checking whether to try DCE (kerberos) authentication... " >&6; }
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4146 $as_echo "yes" >&6; }
4147 AUTH_REG="$AUTH_REG DCE"
4150 *) as_fn_error $? "\"--with-DCE does not take an argument.\"" "$LINENO" 5
4157 # Check whether --with-logincap was given.
4158 if test "${with_logincap+set}" = set; then :
4159 withval=$with_logincap; case $with_logincap in
4161 *) as_fn_error $? "\"--with-logincap does not take an argument.\"" "$LINENO" 5
4168 # Check whether --with-bsdauth was given.
4169 if test "${with_bsdauth+set}" = set; then :
4170 withval=$with_bsdauth; case $with_bsdauth in
4171 yes) AUTH_EXCL="$AUTH_EXCL BSD_AUTH";;
4173 *) as_fn_error $? "\"--with-bsdauth does not take an argument.\"" "$LINENO" 5
4180 # Check whether --with-project was given.
4181 if test "${with_project+set}" = set; then :
4182 withval=$with_project; case $with_project in
4185 *) as_fn_error $? "\"--with-project does not take an argument.\"" "$LINENO" 5
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to lecture users the first time they run sudo" >&5
4192 $as_echo_n "checking whether to lecture users the first time they run sudo... " >&6; }
4194 # Check whether --with-lecture was given.
4195 if test "${with_lecture+set}" = set; then :
4196 withval=$with_lecture; case $with_lecture in
4197 yes|short|always) lecture=once
4199 no|none|never) lecture=never
4201 *) as_fn_error $? "\"unknown argument to --with-lecture: $with_lecture\"" "$LINENO" 5
4206 if test "$lecture" = "once"; then
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4208 $as_echo "yes" >&6; }
4210 $as_echo "#define NO_LECTURE 1" >>confdefs.h
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4213 $as_echo "no" >&6; }
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sudo should log via syslog or to a file by default" >&5
4217 $as_echo_n "checking whether sudo should log via syslog or to a file by default... " >&6; }
4219 # Check whether --with-logging was given.
4220 if test "${with_logging+set}" = set; then :
4221 withval=$with_logging; case $with_logging in
4222 yes) as_fn_error $? "\"must give --with-logging an argument.\"" "$LINENO" 5
4224 no) as_fn_error $? "\"--without-logging not supported.\"" "$LINENO" 5
4226 syslog) $as_echo "#define LOGGING SLOG_SYSLOG" >>confdefs.h
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: syslog" >&5
4229 $as_echo "syslog" >&6; }
4231 file) $as_echo "#define LOGGING SLOG_FILE" >>confdefs.h
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file" >&5
4234 $as_echo "file" >&6; }
4236 both) $as_echo "#define LOGGING SLOG_BOTH" >>confdefs.h
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: both" >&5
4239 $as_echo "both" >&6; }
4241 *) as_fn_error $? "\"unknown argument to --with-logging: $with_logging\"" "$LINENO" 5
4245 $as_echo "#define LOGGING SLOG_SYSLOG" >>confdefs.h
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: syslog" >&5
4247 $as_echo "syslog" >&6; }
4252 # Check whether --with-logfac was given.
4253 if test "${with_logfac+set}" = set; then :
4254 withval=$with_logfac; case $with_logfac in
4255 yes) as_fn_error $? "\"must give --with-logfac an argument.\"" "$LINENO" 5
4257 no) as_fn_error $? "\"--without-logfac not supported.\"" "$LINENO" 5
4259 authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7) logfac=$with_logfac
4261 *) as_fn_error $? "\"$with_logfac is not a supported syslog facility.\"" "$LINENO" 5
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking at which syslog priority to log commands" >&5
4268 $as_echo_n "checking at which syslog priority to log commands... " >&6; }
4270 # Check whether --with-goodpri was given.
4271 if test "${with_goodpri+set}" = set; then :
4272 withval=$with_goodpri; case $with_goodpri in
4273 yes) as_fn_error $? "\"must give --with-goodpri an argument.\"" "$LINENO" 5
4275 no) as_fn_error $? "\"--without-goodpri not supported.\"" "$LINENO" 5
4277 alert|crit|debug|emerg|err|info|notice|warning)
4278 goodpri=$with_goodpri
4280 *) as_fn_error $? "\"$with_goodpri is not a supported syslog priority.\"" "$LINENO" 5
4286 cat >>confdefs.h <<_ACEOF
4287 #define PRI_SUCCESS "$goodpri"
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $goodpri" >&5
4291 $as_echo "$goodpri" >&6; }
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking at which syslog priority to log failures" >&5
4294 $as_echo_n "checking at which syslog priority to log failures... " >&6; }
4296 # Check whether --with-badpri was given.
4297 if test "${with_badpri+set}" = set; then :
4298 withval=$with_badpri; case $with_badpri in
4299 yes) as_fn_error $? "\"must give --with-badpri an argument.\"" "$LINENO" 5
4301 no) as_fn_error $? "\"--without-badpri not supported.\"" "$LINENO" 5
4303 alert|crit|debug|emerg|err|info|notice|warning)
4306 *) as_fn_error $? "$with_badpri is not a supported syslog priority." "$LINENO" 5
4312 cat >>confdefs.h <<_ACEOF
4313 #define PRI_FAILURE "$badpri"
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $badpri" >&5
4317 $as_echo "$badpri" >&6; }
4320 # Check whether --with-logpath was given.
4321 if test "${with_logpath+set}" = set; then :
4322 withval=$with_logpath; case $with_logpath in
4323 yes) as_fn_error $? "\"must give --with-logpath an argument.\"" "$LINENO" 5
4325 no) as_fn_error $? "\"--without-logpath not supported.\"" "$LINENO" 5
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how long a line in the log file should be" >&5
4332 $as_echo_n "checking how long a line in the log file should be... " >&6; }
4334 # Check whether --with-loglen was given.
4335 if test "${with_loglen+set}" = set; then :
4336 withval=$with_loglen; case $with_loglen in
4337 yes) as_fn_error $? "\"must give --with-loglen an argument.\"" "$LINENO" 5
4339 no) as_fn_error $? "\"--without-loglen not supported.\"" "$LINENO" 5
4341 [0-9]*) loglen=$with_loglen
4343 *) as_fn_error $? "\"you must enter a number, not $with_loglen\"" "$LINENO" 5
4349 cat >>confdefs.h <<_ACEOF
4350 #define MAXLOGFILELEN $loglen
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $loglen" >&5
4354 $as_echo "$loglen" >&6; }
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sudo should ignore '.' or '' in \$PATH" >&5
4357 $as_echo_n "checking whether sudo should ignore '.' or '' in \$PATH... " >&6; }
4359 # Check whether --with-ignore-dot was given.
4360 if test "${with_ignore_dot+set}" = set; then :
4361 withval=$with_ignore_dot; case $with_ignore_dot in
4366 *) as_fn_error $? "\"--with-ignore-dot does not take an argument.\"" "$LINENO" 5
4371 if test "$ignore_dot" = "on"; then
4372 $as_echo "#define IGNORE_DOT_PATH 1" >>confdefs.h
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4375 $as_echo "yes" >&6; }
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4378 $as_echo "no" >&6; }
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when a user is not in sudoers" >&5
4382 $as_echo_n "checking whether to send mail when a user is not in sudoers... " >&6; }
4384 # Check whether --with-mail-if-no-user was given.
4385 if test "${with_mail_if_no_user+set}" = set; then :
4386 withval=$with_mail_if_no_user; case $with_mail_if_no_user in
4387 yes) mail_no_user=on
4389 no) mail_no_user=off
4391 *) as_fn_error $? "\"--with-mail-if-no-user does not take an argument.\"" "$LINENO" 5
4396 if test "$mail_no_user" = "on"; then
4397 $as_echo "#define SEND_MAIL_WHEN_NO_USER 1" >>confdefs.h
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4400 $as_echo "yes" >&6; }
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4403 $as_echo "no" >&6; }
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when user listed but not for this host" >&5
4407 $as_echo_n "checking whether to send mail when user listed but not for this host... " >&6; }
4409 # Check whether --with-mail-if-no-host was given.
4410 if test "${with_mail_if_no_host+set}" = set; then :
4411 withval=$with_mail_if_no_host; case $with_mail_if_no_host in
4412 yes) mail_no_host=on
4414 no) mail_no_host=off
4416 *) as_fn_error $? "\"--with-mail-if-no-host does not take an argument.\"" "$LINENO" 5
4421 if test "$mail_no_host" = "on"; then
4422 $as_echo "#define SEND_MAIL_WHEN_NO_HOST 1" >>confdefs.h
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4425 $as_echo "yes" >&6; }
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4428 $as_echo "no" >&6; }
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when a user tries a disallowed command" >&5
4432 $as_echo_n "checking whether to send mail when a user tries a disallowed command... " >&6; }
4434 # Check whether --with-mail-if-noperms was given.
4435 if test "${with_mail_if_noperms+set}" = set; then :
4436 withval=$with_mail_if_noperms; case $with_mail_if_noperms in
4437 yes) mail_noperms=on
4439 no) mail_noperms=off
4441 *) as_fn_error $? "\"--with-mail-if-noperms does not take an argument.\"" "$LINENO" 5
4446 if test "$mail_noperms" = "on"; then
4447 $as_echo "#define SEND_MAIL_WHEN_NOT_OK 1" >>confdefs.h
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4450 $as_echo "yes" >&6; }
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4453 $as_echo "no" >&6; }
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking who should get the mail that sudo sends" >&5
4457 $as_echo_n "checking who should get the mail that sudo sends... " >&6; }
4459 # Check whether --with-mailto was given.
4460 if test "${with_mailto+set}" = set; then :
4461 withval=$with_mailto; case $with_mailto in
4462 yes) as_fn_error $? "\"must give --with-mailto an argument.\"" "$LINENO" 5
4464 no) as_fn_error $? "\"--without-mailto not supported.\"" "$LINENO" 5
4466 *) mailto=$with_mailto
4472 cat >>confdefs.h <<_ACEOF
4473 #define MAILTO "$mailto"
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mailto" >&5
4477 $as_echo "$mailto" >&6; }
4480 # Check whether --with-mailsubject was given.
4481 if test "${with_mailsubject+set}" = set; then :
4482 withval=$with_mailsubject; case $with_mailsubject in
4483 yes) as_fn_error $? "\"must give --with-mailsubject an argument.\"" "$LINENO" 5
4485 no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-mailsubject not supported." >&5
4486 $as_echo "$as_me: WARNING: Sorry, --without-mailsubject not supported." >&2;}
4488 *) mailsub="$with_mailsubject"
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sudo mail subject" >&5
4490 $as_echo_n "checking sudo mail subject... " >&6; }
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using alert mail subject: $mailsub" >&5
4492 $as_echo "Using alert mail subject: $mailsub" >&6; }
4498 cat >>confdefs.h <<_ACEOF
4499 #define MAILSUBJECT "$mailsub"
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bad password prompt" >&5
4504 $as_echo_n "checking for bad password prompt... " >&6; }
4506 # Check whether --with-passprompt was given.
4507 if test "${with_passprompt+set}" = set; then :
4508 withval=$with_passprompt; case $with_passprompt in
4509 yes) as_fn_error $? "\"must give --with-passprompt an argument.\"" "$LINENO" 5
4511 no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-passprompt not supported." >&5
4512 $as_echo "$as_me: WARNING: Sorry, --without-passprompt not supported." >&2;}
4514 *) passprompt="$with_passprompt"
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $passprompt" >&5
4519 $as_echo "$passprompt" >&6; }
4521 cat >>confdefs.h <<_ACEOF
4522 #define PASSPROMPT "$passprompt"
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bad password message" >&5
4527 $as_echo_n "checking for bad password message... " >&6; }
4529 # Check whether --with-badpass-message was given.
4530 if test "${with_badpass_message+set}" = set; then :
4531 withval=$with_badpass_message; case $with_badpass_message in
4532 yes) as_fn_error $? "\"Must give --with-badpass-message an argument.\"" "$LINENO" 5
4534 no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-badpass-message not supported." >&5
4535 $as_echo "$as_me: WARNING: Sorry, --without-badpass-message not supported." >&2;}
4537 *) badpass_message="$with_badpass_message"
4543 cat >>confdefs.h <<_ACEOF
4544 #define INCORRECT_PASSWORD "$badpass_message"
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $badpass_message" >&5
4548 $as_echo "$badpass_message" >&6; }
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to expect fully qualified hosts in sudoers" >&5
4551 $as_echo_n "checking whether to expect fully qualified hosts in sudoers... " >&6; }
4553 # Check whether --with-fqdn was given.
4554 if test "${with_fqdn+set}" = set; then :
4555 withval=$with_fqdn; case $with_fqdn in
4560 *) as_fn_error $? "\"--with-fqdn does not take an argument.\"" "$LINENO" 5
4565 if test "$fqdn" = "on"; then
4566 $as_echo "#define FQDN 1" >>confdefs.h
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4569 $as_echo "yes" >&6; }
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4572 $as_echo "no" >&6; }
4576 # Check whether --with-timedir was given.
4577 if test "${with_timedir+set}" = set; then :
4578 withval=$with_timedir; case $with_timedir in
4579 yes) as_fn_error $? "\"must give --with-timedir an argument.\"" "$LINENO" 5
4581 no) as_fn_error $? "\"--without-timedir not supported.\"" "$LINENO" 5
4588 # Check whether --with-iologdir was given.
4589 if test "${with_iologdir+set}" = set; then :
4590 withval=$with_iologdir; case $with_iologdir in
4592 no) as_fn_error $? "\"--without-iologdir not supported.\"" "$LINENO" 5
4599 # Check whether --with-sendmail was given.
4600 if test "${with_sendmail+set}" = set; then :
4601 withval=$with_sendmail; case $with_sendmail in
4602 yes) with_sendmail=""
4605 *) cat >>confdefs.h <<EOF
4606 #define _PATH_SUDO_SENDMAIL "$with_sendmail"
4615 # Check whether --with-sudoers-mode was given.
4616 if test "${with_sudoers_mode+set}" = set; then :
4617 withval=$with_sudoers_mode; case $with_sudoers_mode in
4618 yes) as_fn_error $? "\"must give --with-sudoers-mode an argument.\"" "$LINENO" 5
4620 no) as_fn_error $? "\"--without-sudoers-mode not supported.\"" "$LINENO" 5
4622 [1-9]*) SUDOERS_MODE=0${with_sudoers_mode}
4624 0*) SUDOERS_MODE=$with_sudoers_mode
4626 *) as_fn_error $? "\"you must use an octal mode, not a name.\"" "$LINENO" 5
4633 # Check whether --with-sudoers-uid was given.
4634 if test "${with_sudoers_uid+set}" = set; then :
4635 withval=$with_sudoers_uid; case $with_sudoers_uid in
4636 yes) as_fn_error $? "\"must give --with-sudoers-uid an argument.\"" "$LINENO" 5
4638 no) as_fn_error $? "\"--without-sudoers-uid not supported.\"" "$LINENO" 5
4640 [0-9]*) SUDOERS_UID=$with_sudoers_uid
4642 *) as_fn_error $? "\"you must use an unsigned numeric uid, not a name.\"" "$LINENO" 5
4649 # Check whether --with-sudoers-gid was given.
4650 if test "${with_sudoers_gid+set}" = set; then :
4651 withval=$with_sudoers_gid; case $with_sudoers_gid in
4652 yes) as_fn_error $? "\"must give --with-sudoers-gid an argument.\"" "$LINENO" 5
4654 no) as_fn_error $? "\"--without-sudoers-gid not supported.\"" "$LINENO" 5
4656 [0-9]*) SUDOERS_GID=$with_sudoers_gid
4658 *) as_fn_error $? "\"you must use an unsigned numeric gid, not a name.\"" "$LINENO" 5
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umask programs should be run with" >&5
4665 $as_echo_n "checking for umask programs should be run with... " >&6; }
4667 # Check whether --with-umask was given.
4668 if test "${with_umask+set}" = set; then :
4669 withval=$with_umask; case $with_umask in
4670 yes) as_fn_error $? "\"must give --with-umask an argument.\"" "$LINENO" 5
4674 [0-9]*) sudo_umask=$with_umask
4676 *) as_fn_error $? "\"you must enter a numeric mask.\"" "$LINENO" 5
4682 cat >>confdefs.h <<_ACEOF
4683 #define SUDO_UMASK $sudo_umask
4686 if test "$sudo_umask" = "0777"; then
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: user" >&5
4688 $as_echo "user" >&6; }
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_umask" >&5
4691 $as_echo "$sudo_umask" >&6; }
4695 # Check whether --with-umask-override was given.
4696 if test "${with_umask_override+set}" = set; then :
4697 withval=$with_umask_override; case $with_umask_override in
4698 yes) $as_echo "#define UMASK_OVERRIDE 1" >>confdefs.h
4702 no) umask_override=off
4704 *) as_fn_error $? "\"--with-umask-override does not take an argument.\"" "$LINENO" 5
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default user to run commands as" >&5
4711 $as_echo_n "checking for default user to run commands as... " >&6; }
4713 # Check whether --with-runas-default was given.
4714 if test "${with_runas_default+set}" = set; then :
4715 withval=$with_runas_default; case $with_runas_default in
4716 yes) as_fn_error $? "\"must give --with-runas-default an argument.\"" "$LINENO" 5
4718 no) as_fn_error $? "\"--without-runas-default not supported.\"" "$LINENO" 5
4720 *) runas_default="$with_runas_default"
4726 cat >>confdefs.h <<_ACEOF
4727 #define RUNAS_DEFAULT "$runas_default"
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $runas_default" >&5
4731 $as_echo "$runas_default" >&6; }
4734 # Check whether --with-exempt was given.
4735 if test "${with_exempt+set}" = set; then :
4736 withval=$with_exempt; case $with_exempt in
4737 yes) as_fn_error $? "\"must give --with-exempt an argument.\"" "$LINENO" 5
4739 no) as_fn_error $? "\"--without-exempt not supported.\"" "$LINENO" 5
4742 cat >>confdefs.h <<_ACEOF
4743 #define EXEMPTGROUP "$with_exempt"
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for group to be exempt from password" >&5
4747 $as_echo_n "checking for group to be exempt from password... " >&6; }
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_exempt" >&5
4749 $as_echo "$with_exempt" >&6; }
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for editor that visudo should use" >&5
4756 $as_echo_n "checking for editor that visudo should use... " >&6; }
4758 # Check whether --with-editor was given.
4759 if test "${with_editor+set}" = set; then :
4760 withval=$with_editor; case $with_editor in
4761 yes) as_fn_error $? "\"must give --with-editor an argument.\"" "$LINENO" 5
4763 no) as_fn_error $? "\"--without-editor not supported.\"" "$LINENO" 5
4766 cat >>confdefs.h <<_ACEOF
4767 #define EDITOR "$with_editor"
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_editor" >&5
4771 $as_echo "$with_editor" >&6; }
4772 editor="$with_editor"
4776 $as_echo "#define EDITOR _PATH_VI" >>confdefs.h
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: vi" >&5
4778 $as_echo "vi" >&6; }
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to obey EDITOR and VISUAL environment variables" >&5
4783 $as_echo_n "checking whether to obey EDITOR and VISUAL environment variables... " >&6; }
4785 # Check whether --with-env-editor was given.
4786 if test "${with_env_editor+set}" = set; then :
4787 withval=$with_env_editor; case $with_env_editor in
4792 *) as_fn_error $? "\"--with-env-editor does not take an argument.\"" "$LINENO" 5
4797 if test "$env_editor" = "on"; then
4798 $as_echo "#define ENV_EDITOR 1" >>confdefs.h
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4801 $as_echo "yes" >&6; }
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4804 $as_echo "no" >&6; }
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of tries a user gets to enter their password" >&5
4808 $as_echo_n "checking number of tries a user gets to enter their password... " >&6; }
4810 # Check whether --with-passwd-tries was given.
4811 if test "${with_passwd_tries+set}" = set; then :
4812 withval=$with_passwd_tries; case $with_passwd_tries in
4814 no) as_fn_error $? "\"--without-editor not supported.\"" "$LINENO" 5
4816 [1-9]*) passwd_tries=$with_passwd_tries
4818 *) as_fn_error $? "\"you must enter the numer of tries, > 0\"" "$LINENO" 5
4824 cat >>confdefs.h <<_ACEOF
4825 #define TRIES_FOR_PASSWORD $passwd_tries
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $passwd_tries" >&5
4829 $as_echo "$passwd_tries" >&6; }
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking time in minutes after which sudo will ask for a password again" >&5
4832 $as_echo_n "checking time in minutes after which sudo will ask for a password again... " >&6; }
4834 # Check whether --with-timeout was given.
4835 if test "${with_timeout+set}" = set; then :
4836 withval=$with_timeout; case $with_timeout in
4840 [0-9]*) timeout=$with_timeout
4842 *) as_fn_error $? "\"you must enter the numer of minutes.\"" "$LINENO" 5
4848 cat >>confdefs.h <<_ACEOF
4849 #define TIMEOUT $timeout
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $timeout" >&5
4853 $as_echo "$timeout" >&6; }
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking time in minutes after the password prompt will time out" >&5
4856 $as_echo_n "checking time in minutes after the password prompt will time out... " >&6; }
4858 # Check whether --with-password-timeout was given.
4859 if test "${with_password_timeout+set}" = set; then :
4860 withval=$with_password_timeout; case $with_password_timeout in
4862 no) password_timeout=0
4864 [0-9]*) password_timeout=$with_password_timeout
4866 *) as_fn_error $? "\"you must enter the numer of minutes.\"" "$LINENO" 5
4872 cat >>confdefs.h <<_ACEOF
4873 #define PASSWORD_TIMEOUT $password_timeout
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $password_timeout" >&5
4877 $as_echo "$password_timeout" >&6; }
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use per-tty ticket files" >&5
4880 $as_echo_n "checking whether to use per-tty ticket files... " >&6; }
4882 # Check whether --with-tty-tickets was given.
4883 if test "${with_tty_tickets+set}" = set; then :
4884 withval=$with_tty_tickets; case $with_tty_tickets in
4889 *) as_fn_error $? "\"--with-tty-tickets does not take an argument.\"" "$LINENO" 5
4894 if test "$tty_tickets" = "off"; then
4895 $as_echo "#define NO_TTY_TICKETS 1" >>confdefs.h
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4898 $as_echo "no" >&6; }
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4901 $as_echo "yes" >&6; }
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include insults" >&5
4905 $as_echo_n "checking whether to include insults... " >&6; }
4907 # Check whether --with-insults was given.
4908 if test "${with_insults+set}" = set; then :
4909 withval=$with_insults; case $with_insults in
4911 with_classic_insults=yes
4912 with_csops_insults=yes
4914 disabled) insults=off
4915 with_classic_insults=yes
4916 with_csops_insults=yes
4920 *) as_fn_error $? "\"--with-insults does not take an argument.\"" "$LINENO" 5
4925 if test "$insults" = "on"; then
4926 $as_echo "#define USE_INSULTS 1" >>confdefs.h
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4929 $as_echo "yes" >&6; }
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4932 $as_echo "no" >&6; }
4936 # Check whether --with-all-insults was given.
4937 if test "${with_all_insults+set}" = set; then :
4938 withval=$with_all_insults; case $with_all_insults in
4939 yes) with_classic_insults=yes
4940 with_csops_insults=yes
4941 with_hal_insults=yes
4942 with_goons_insults=yes
4945 *) as_fn_error $? "\"--with-all-insults does not take an argument.\"" "$LINENO" 5
4952 # Check whether --with-classic-insults was given.
4953 if test "${with_classic_insults+set}" = set; then :
4954 withval=$with_classic_insults; case $with_classic_insults in
4955 yes) $as_echo "#define CLASSIC_INSULTS 1" >>confdefs.h
4959 *) as_fn_error $? "\"--with-classic-insults does not take an argument.\"" "$LINENO" 5
4966 # Check whether --with-csops-insults was given.
4967 if test "${with_csops_insults+set}" = set; then :
4968 withval=$with_csops_insults; case $with_csops_insults in
4969 yes) $as_echo "#define CSOPS_INSULTS 1" >>confdefs.h
4973 *) as_fn_error $? "\"--with-csops-insults does not take an argument.\"" "$LINENO" 5
4980 # Check whether --with-hal-insults was given.
4981 if test "${with_hal_insults+set}" = set; then :
4982 withval=$with_hal_insults; case $with_hal_insults in
4983 yes) $as_echo "#define HAL_INSULTS 1" >>confdefs.h
4987 *) as_fn_error $? "\"--with-hal-insults does not take an argument.\"" "$LINENO" 5
4994 # Check whether --with-goons-insults was given.
4995 if test "${with_goons_insults+set}" = set; then :
4996 withval=$with_goons_insults; case $with_goons_insults in
4997 yes) $as_echo "#define GOONS_INSULTS 1" >>confdefs.h
5001 *) as_fn_error $? "\"--with-goons-insults does not take an argument.\"" "$LINENO" 5
5008 # Check whether --with-nsswitch was given.
5009 if test "${with_nsswitch+set}" = set; then :
5010 withval=$with_nsswitch; case $with_nsswitch in
5012 yes) with_nsswitch="/etc/nsswitch.conf"
5020 # Check whether --with-ldap was given.
5021 if test "${with_ldap+set}" = set; then :
5022 withval=$with_ldap; case $with_ldap in
5024 *) $as_echo "#define HAVE_LDAP 1" >>confdefs.h
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sudoers from LDAP" >&5
5027 $as_echo_n "checking whether to use sudoers from LDAP... " >&6; }
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5029 $as_echo "yes" >&6; }
5036 # Check whether --with-ldap-conf-file was given.
5037 if test "${with_ldap_conf_file+set}" = set; then :
5038 withval=$with_ldap_conf_file;
5041 test -n "$with_ldap_conf_file" && ldap_conf="$with_ldap_conf_file"
5042 cat >>confdefs.h <<EOF
5043 #define _PATH_LDAP_CONF "$ldap_conf"
5048 # Check whether --with-ldap-secret-file was given.
5049 if test "${with_ldap_secret_file+set}" = set; then :
5050 withval=$with_ldap_secret_file;
5053 test -n "$with_ldap_secret_file" && ldap_secret="$with_ldap_secret_file"
5054 cat >>confdefs.h <<EOF
5055 #define _PATH_LDAP_SECRET "$ldap_secret"
5060 # Check whether --with-pc-insults was given.
5061 if test "${with_pc_insults+set}" = set; then :
5062 withval=$with_pc_insults; case $with_pc_insults in
5063 yes) $as_echo "#define PC_INSULTS 1" >>confdefs.h
5067 *) as_fn_error $? "\"--with-pc-insults does not take an argument.\"" "$LINENO" 5
5073 if test "$insults" = "on"; then
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which insult sets to include" >&5
5075 $as_echo_n "checking which insult sets to include... " >&6; }
5077 test "$with_goons_insults" = "yes" && i="goons ${i}"
5078 test "$with_hal_insults" = "yes" && i="hal ${i}"
5079 test "$with_csops_insults" = "yes" && i="csops ${i}"
5080 test "$with_classic_insults" = "yes" && i="classic ${i}"
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $i" >&5
5082 $as_echo "$i" >&6; }
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to override the user's path" >&5
5086 $as_echo_n "checking whether to override the user's path... " >&6; }
5088 # Check whether --with-secure-path was given.
5089 if test "${with_secure_path+set}" = set; then :
5090 withval=$with_secure_path; case $with_secure_path in
5091 yes) with_secure_path="/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc"
5092 cat >>confdefs.h <<_ACEOF
5093 #define SECURE_PATH "$with_secure_path"
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_secure_path" >&5
5097 $as_echo "$with_secure_path" >&6; }
5098 secure_path="set to $with_secure_path"
5100 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5101 $as_echo "no" >&6; }
5103 *) cat >>confdefs.h <<_ACEOF
5104 #define SECURE_PATH "$with_secure_path"
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_secure_path" >&5
5108 $as_echo "$with_secure_path" >&6; }
5109 secure_path="set to F<$with_secure_path>"
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5114 $as_echo "no" >&6; }
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to get ip addresses from the network interfaces" >&5
5119 $as_echo_n "checking whether to get ip addresses from the network interfaces... " >&6; }
5121 # Check whether --with-interfaces was given.
5122 if test "${with_interfaces+set}" = set; then :
5123 withval=$with_interfaces; case $with_interfaces in
5124 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5125 $as_echo "yes" >&6; }
5127 no) $as_echo "#define STUB_LOAD_INTERFACES 1" >>confdefs.h
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5130 $as_echo "no" >&6; }
5132 *) as_fn_error $? "\"--with-interfaces does not take an argument.\"" "$LINENO" 5
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5137 $as_echo "yes" >&6; }
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stow should be used" >&5
5142 $as_echo_n "checking whether stow should be used... " >&6; }
5144 # Check whether --with-stow was given.
5145 if test "${with_stow+set}" = set; then :
5146 withval=$with_stow; case $with_stow in
5147 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5148 $as_echo "yes" >&6; }
5149 $as_echo "#define USE_STOW 1" >>confdefs.h
5152 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5153 $as_echo "no" >&6; }
5155 *) as_fn_error $? "\"--with-stow does not take an argument.\"" "$LINENO" 5
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5160 $as_echo "no" >&6; }
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an askpass helper" >&5
5165 $as_echo_n "checking whether to use an askpass helper... " >&6; }
5167 # Check whether --with-askpass was given.
5168 if test "${with_askpass+set}" = set; then :
5169 withval=$with_askpass; case $with_askpass in
5170 yes) as_fn_error $? "\"--with-askpass takes a path as an argument.\"" "$LINENO" 5
5173 *) cat >>confdefs.h <<EOF
5174 #define _PATH_SUDO_ASKPASS "$with_askpass"
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5181 $as_echo "no" >&6; }
5186 # Check whether --with-plugindir was given.
5187 if test "${with_plugindir+set}" = set; then :
5188 withval=$with_plugindir; case $with_plugindir in
5189 no) as_fn_error $? "\"illegal argument: --without-plugindir.\"" "$LINENO" 5
5194 with_plugindir="$libexecdir"
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to do user authentication by default" >&5
5200 $as_echo_n "checking whether to do user authentication by default... " >&6; }
5201 # Check whether --enable-authentication was given.
5202 if test "${enable_authentication+set}" = set; then :
5203 enableval=$enable_authentication; case "$enableval" in
5204 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5205 $as_echo "yes" >&6; }
5207 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5208 $as_echo "no" >&6; }
5209 $as_echo "#define NO_AUTHENTICATION 1" >>confdefs.h
5212 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5213 $as_echo "no" >&6; }
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&5
5215 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&2;}
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5221 $as_echo "yes" >&6; }
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable running the mailer as root" >&5
5226 $as_echo_n "checking whether to disable running the mailer as root... " >&6; }
5227 # Check whether --enable-root-mailer was given.
5228 if test "${enable_root_mailer+set}" = set; then :
5229 enableval=$enable_root_mailer; case "$enableval" in
5230 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5231 $as_echo "no" >&6; }
5233 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5234 $as_echo "yes" >&6; }
5235 $as_echo "#define NO_ROOT_MAILER 1" >>confdefs.h
5238 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5239 $as_echo "no" >&6; }
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&5
5241 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&2;}
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5247 $as_echo "no" >&6; }
5251 # Check whether --enable-setreuid was given.
5252 if test "${enable_setreuid+set}" = set; then :
5253 enableval=$enable_setreuid; case "$enableval" in
5254 no) SKIP_SETREUID=yes
5262 # Check whether --enable-setresuid was given.
5263 if test "${enable_setresuid+set}" = set; then :
5264 enableval=$enable_setresuid; case "$enableval" in
5265 no) SKIP_SETRESUID=yes
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable shadow password support" >&5
5274 $as_echo_n "checking whether to disable shadow password support... " >&6; }
5275 # Check whether --enable-shadow was given.
5276 if test "${enable_shadow+set}" = set; then :
5277 enableval=$enable_shadow; case "$enableval" in
5278 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5279 $as_echo "no" >&6; }
5281 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5282 $as_echo "yes" >&6; }
5285 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5286 $as_echo "no" >&6; }
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&5
5288 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&2;}
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5294 $as_echo "no" >&6; }
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether root should be allowed to use sudo" >&5
5299 $as_echo_n "checking whether root should be allowed to use sudo... " >&6; }
5300 # Check whether --enable-root-sudo was given.
5301 if test "${enable_root_sudo+set}" = set; then :
5302 enableval=$enable_root_sudo; case "$enableval" in
5303 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5304 $as_echo "yes" >&6; }
5306 no) $as_echo "#define NO_ROOT_SUDO 1" >>confdefs.h
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5309 $as_echo "no" >&6; }
5312 *) as_fn_error $? "\"--enable-root-sudo does not take an argument.\"" "$LINENO" 5
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5318 $as_echo "yes" >&6; }
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to log the hostname in the log file" >&5
5323 $as_echo_n "checking whether to log the hostname in the log file... " >&6; }
5324 # Check whether --enable-log-host was given.
5325 if test "${enable_log_host+set}" = set; then :
5326 enableval=$enable_log_host; case "$enableval" in
5327 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5328 $as_echo "yes" >&6; }
5329 $as_echo "#define HOST_IN_LOG 1" >>confdefs.h
5332 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5333 $as_echo "no" >&6; }
5335 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5336 $as_echo "no" >&6; }
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&5
5338 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&2;}
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5344 $as_echo "no" >&6; }
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to invoke a shell if sudo is given no arguments" >&5
5349 $as_echo_n "checking whether to invoke a shell if sudo is given no arguments... " >&6; }
5350 # Check whether --enable-noargs-shell was given.
5351 if test "${enable_noargs_shell+set}" = set; then :
5352 enableval=$enable_noargs_shell; case "$enableval" in
5353 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5354 $as_echo "yes" >&6; }
5355 $as_echo "#define SHELL_IF_NO_ARGS 1" >>confdefs.h
5358 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5359 $as_echo "no" >&6; }
5361 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5362 $as_echo "no" >&6; }
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&5
5364 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&2;}
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5370 $as_echo "no" >&6; }
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to set \$HOME to target user in shell mode" >&5
5375 $as_echo_n "checking whether to set \$HOME to target user in shell mode... " >&6; }
5376 # Check whether --enable-shell-sets-home was given.
5377 if test "${enable_shell_sets_home+set}" = set; then :
5378 enableval=$enable_shell_sets_home; case "$enableval" in
5379 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5380 $as_echo "yes" >&6; }
5381 $as_echo "#define SHELL_SETS_HOME 1" >>confdefs.h
5384 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5385 $as_echo "no" >&6; }
5387 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5388 $as_echo "no" >&6; }
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&5
5390 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&2;}
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5396 $as_echo "no" >&6; }
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable 'command not found' messages" >&5
5401 $as_echo_n "checking whether to disable 'command not found' messages... " >&6; }
5402 # Check whether --enable-path_info was given.
5403 if test "${enable_path_info+set}" = set; then :
5404 enableval=$enable_path_info; case "$enableval" in
5405 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5406 $as_echo "no" >&6; }
5408 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5409 $as_echo "yes" >&6; }
5410 $as_echo "#define DONT_LEAK_PATH_INFO 1" >>confdefs.h
5414 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5415 $as_echo "no" >&6; }
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&5
5417 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&2;}
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5423 $as_echo "no" >&6; }
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable environment debugging" >&5
5428 $as_echo_n "checking whether to enable environment debugging... " >&6; }
5429 # Check whether --enable-env_debug was given.
5430 if test "${enable_env_debug+set}" = set; then :
5431 enableval=$enable_env_debug; case "$enableval" in
5432 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5433 $as_echo "yes" >&6; }
5434 $as_echo "#define ENV_DEBUG 1" >>confdefs.h
5437 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5438 $as_echo "no" >&6; }
5440 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5441 $as_echo "no" >&6; }
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&5
5443 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&2;}
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5449 $as_echo "no" >&6; }
5453 # Check whether --enable-zlib was given.
5454 if test "${enable_zlib+set}" = set; then :
5455 enableval=$enable_zlib;
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable environment resetting by default" >&5
5462 $as_echo_n "checking whether to enable environment resetting by default... " >&6; }
5463 # Check whether --enable-env_reset was given.
5464 if test "${enable_env_reset+set}" = set; then :
5465 enableval=$enable_env_reset; case "$enableval" in
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-env-reset: $enableval" >&5
5472 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-env-reset: $enableval" >&2;}
5478 if test "$env_reset" = "on"; then
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5480 $as_echo "yes" >&6; }
5481 $as_echo "#define ENV_RESET TRUE" >>confdefs.h
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5485 $as_echo "no" >&6; }
5486 $as_echo "#define ENV_RESET FALSE" >>confdefs.h
5490 # Check whether --enable-warnings was given.
5491 if test "${enable_warnings+set}" = set; then :
5492 enableval=$enable_warnings; case "$enableval" in
5495 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-warnings: $enableval" >&5
5496 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-warnings: $enableval" >&2;}
5503 # Check whether --enable-werror was given.
5504 if test "${enable_werror+set}" = set; then :
5505 enableval=$enable_werror; case "$enableval" in
5508 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-werror: $enableval" >&5
5509 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-werror: $enableval" >&2;}
5516 # Check whether --enable-admin-flag was given.
5517 if test "${enable_admin_flag+set}" = set; then :
5518 enableval=$enable_admin_flag; case "$enableval" in
5519 yes) $as_echo "#define USE_ADMIN_FLAG 1" >>confdefs.h
5523 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-admin-flag: $enableval" >&5
5524 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-admin-flag: $enableval" >&2;}
5531 # Check whether --enable-nls was given.
5532 if test "${enable_nls+set}" = set; then :
5533 enableval=$enable_nls;
5540 # Check whether --with-selinux was given.
5541 if test "${with_selinux+set}" = set; then :
5542 withval=$with_selinux; case $with_selinux in
5543 yes) SELINUX_USAGE="[-r role] [-t type] "
5544 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
5546 SUDO_LIBS="${SUDO_LIBS} -lselinux"
5547 SUDO_OBJS="${SUDO_OBJS} selinux.o"
5548 PROGS="${PROGS} sesh"
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkeycreatecon in -lselinux" >&5
5551 $as_echo_n "checking for setkeycreatecon in -lselinux... " >&6; }
5552 if ${ac_cv_lib_selinux_setkeycreatecon+:} false; then :
5553 $as_echo_n "(cached) " >&6
5555 ac_check_lib_save_LIBS=$LIBS
5556 LIBS="-lselinux $LIBS"
5557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5558 /* end confdefs.h. */
5560 /* Override any GCC internal prototype to avoid an error.
5561 Use char because int might match the return type of a GCC
5562 builtin and then its argument prototype would still apply. */
5566 char setkeycreatecon ();
5570 return setkeycreatecon ();
5575 if ac_fn_c_try_link "$LINENO"; then :
5576 ac_cv_lib_selinux_setkeycreatecon=yes
5578 ac_cv_lib_selinux_setkeycreatecon=no
5580 rm -f core conftest.err conftest.$ac_objext \
5581 conftest$ac_exeext conftest.$ac_ext
5582 LIBS=$ac_check_lib_save_LIBS
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setkeycreatecon" >&5
5585 $as_echo "$ac_cv_lib_selinux_setkeycreatecon" >&6; }
5586 if test "x$ac_cv_lib_selinux_setkeycreatecon" = xyes; then :
5587 $as_echo "#define HAVE_SETKEYCREATECON 1" >>confdefs.h
5593 *) as_fn_error $? "\"--with-selinux does not take an argument.\"" "$LINENO" 5
5599 # Check whether --enable-gss_krb5_ccache_name was given.
5600 if test "${enable_gss_krb5_ccache_name+set}" = set; then :
5601 enableval=$enable_gss_krb5_ccache_name; check_gss_krb5_ccache_name=$enableval
5603 check_gss_krb5_ccache_name=no
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
5608 $as_echo_n "checking for library containing strerror... " >&6; }
5609 if ${ac_cv_search_strerror+:} false; then :
5610 $as_echo_n "(cached) " >&6
5612 ac_func_search_save_LIBS=$LIBS
5613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5614 /* end confdefs.h. */
5616 /* Override any GCC internal prototype to avoid an error.
5617 Use char because int might match the return type of a GCC
5618 builtin and then its argument prototype would still apply. */
5631 for ac_lib in '' cposix; do
5632 if test -z "$ac_lib"; then
5633 ac_res="none required"
5636 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5638 if ac_fn_c_try_link "$LINENO"; then :
5639 ac_cv_search_strerror=$ac_res
5641 rm -f core conftest.err conftest.$ac_objext \
5643 if ${ac_cv_search_strerror+:} false; then :
5647 if ${ac_cv_search_strerror+:} false; then :
5650 ac_cv_search_strerror=no
5653 LIBS=$ac_func_search_save_LIBS
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
5656 $as_echo "$ac_cv_search_strerror" >&6; }
5657 ac_res=$ac_cv_search_strerror
5658 if test "$ac_res" != no; then :
5659 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5664 ac_cpp='$CPP $CPPFLAGS'
5665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5669 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5670 # On Suns, sometimes $CPP names a directory.
5671 if test -n "$CPP" && test -d "$CPP"; then
5674 if test -z "$CPP"; then
5675 if ${ac_cv_prog_CPP+:} false; then :
5676 $as_echo_n "(cached) " >&6
5678 # Double quotes because CPP needs to be expanded
5679 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5682 for ac_c_preproc_warn_flag in '' yes
5684 # Use a header file that comes with gcc, so configuring glibc
5685 # with a fresh cross-compiler works.
5686 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5687 # <limits.h> exists even on freestanding compilers.
5688 # On the NeXT, cc -E runs the code through the compiler's parser,
5689 # not just through cpp. "Syntax error" is here to catch this case.
5690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5691 /* end confdefs.h. */
5693 # include <limits.h>
5695 # include <assert.h>
5699 if ac_fn_c_try_cpp "$LINENO"; then :
5702 # Broken: fails on valid input.
5705 rm -f conftest.err conftest.i conftest.$ac_ext
5707 # OK, works on sane cases. Now check whether nonexistent headers
5708 # can be detected and how.
5709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5710 /* end confdefs.h. */
5711 #include <ac_nonexistent.h>
5713 if ac_fn_c_try_cpp "$LINENO"; then :
5714 # Broken: success on invalid input.
5717 # Passes both tests.
5721 rm -f conftest.err conftest.i conftest.$ac_ext
5724 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5725 rm -f conftest.i conftest.err conftest.$ac_ext
5726 if $ac_preproc_ok; then :
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5739 $as_echo "$CPP" >&6; }
5741 for ac_c_preproc_warn_flag in '' yes
5743 # Use a header file that comes with gcc, so configuring glibc
5744 # with a fresh cross-compiler works.
5745 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5746 # <limits.h> exists even on freestanding compilers.
5747 # On the NeXT, cc -E runs the code through the compiler's parser,
5748 # not just through cpp. "Syntax error" is here to catch this case.
5749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5750 /* end confdefs.h. */
5752 # include <limits.h>
5754 # include <assert.h>
5758 if ac_fn_c_try_cpp "$LINENO"; then :
5761 # Broken: fails on valid input.
5764 rm -f conftest.err conftest.i conftest.$ac_ext
5766 # OK, works on sane cases. Now check whether nonexistent headers
5767 # can be detected and how.
5768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5769 /* end confdefs.h. */
5770 #include <ac_nonexistent.h>
5772 if ac_fn_c_try_cpp "$LINENO"; then :
5773 # Broken: success on invalid input.
5776 # Passes both tests.
5780 rm -f conftest.err conftest.i conftest.$ac_ext
5783 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5784 rm -f conftest.i conftest.err conftest.$ac_ext
5785 if $ac_preproc_ok; then :
5788 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5789 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5790 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5791 See \`config.log' for more details" "$LINENO" 5; }
5795 ac_cpp='$CPP $CPPFLAGS'
5796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5800 if test -n "$ac_tool_prefix"; then
5801 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5802 set dummy ${ac_tool_prefix}ar; ac_word=$2
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5804 $as_echo_n "checking for $ac_word... " >&6; }
5805 if ${ac_cv_prog_AR+:} false; then :
5806 $as_echo_n "(cached) " >&6
5808 if test -n "$AR"; then
5809 ac_cv_prog_AR="$AR" # Let the user override the test.
5811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815 test -z "$as_dir" && as_dir=.
5816 for ac_exec_ext in '' $ac_executable_extensions; do
5817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5818 ac_cv_prog_AR="${ac_tool_prefix}ar"
5819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5829 if test -n "$AR"; then
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5831 $as_echo "$AR" >&6; }
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5834 $as_echo "no" >&6; }
5839 if test -z "$ac_cv_prog_AR"; then
5841 # Extract the first word of "ar", so it can be a program name with args.
5842 set dummy ar; ac_word=$2
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5844 $as_echo_n "checking for $ac_word... " >&6; }
5845 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5846 $as_echo_n "(cached) " >&6
5848 if test -n "$ac_ct_AR"; then
5849 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5855 test -z "$as_dir" && as_dir=.
5856 for ac_exec_ext in '' $ac_executable_extensions; do
5857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5858 ac_cv_prog_ac_ct_AR="ar"
5859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5868 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5869 if test -n "$ac_ct_AR"; then
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5871 $as_echo "$ac_ct_AR" >&6; }
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5874 $as_echo "no" >&6; }
5877 if test "x$ac_ct_AR" = x; then
5880 case $cross_compiling:$ac_tool_warned in
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5884 ac_tool_warned=yes ;;
5892 if test -n "$ac_tool_prefix"; then
5893 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5894 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5896 $as_echo_n "checking for $ac_word... " >&6; }
5897 if ${ac_cv_prog_RANLIB+:} false; then :
5898 $as_echo_n "(cached) " >&6
5900 if test -n "$RANLIB"; then
5901 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5907 test -z "$as_dir" && as_dir=.
5908 for ac_exec_ext in '' $ac_executable_extensions; do
5909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5910 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5920 RANLIB=$ac_cv_prog_RANLIB
5921 if test -n "$RANLIB"; then
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5923 $as_echo "$RANLIB" >&6; }
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5926 $as_echo "no" >&6; }
5931 if test -z "$ac_cv_prog_RANLIB"; then
5932 ac_ct_RANLIB=$RANLIB
5933 # Extract the first word of "ranlib", so it can be a program name with args.
5934 set dummy ranlib; ac_word=$2
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5936 $as_echo_n "checking for $ac_word... " >&6; }
5937 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5938 $as_echo_n "(cached) " >&6
5940 if test -n "$ac_ct_RANLIB"; then
5941 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5947 test -z "$as_dir" && as_dir=.
5948 for ac_exec_ext in '' $ac_executable_extensions; do
5949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5950 ac_cv_prog_ac_ct_RANLIB="ranlib"
5951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5960 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5961 if test -n "$ac_ct_RANLIB"; then
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5963 $as_echo "$ac_ct_RANLIB" >&6; }
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5966 $as_echo "no" >&6; }
5969 if test "x$ac_ct_RANLIB" = x; then
5972 case $cross_compiling:$ac_tool_warned in
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5975 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5976 ac_tool_warned=yes ;;
5978 RANLIB=$ac_ct_RANLIB
5981 RANLIB="$ac_cv_prog_RANLIB"
5984 if test X"$AR" = X"false"; then
5985 as_fn_error $? "the \"ar\" utility is required to build sudo" "$LINENO" 5
5988 if test "x$ac_cv_prog_cc_c89" = "xno"; then
5989 as_fn_error $? "Sudo version $PACKAGE_VERSION requires an ANSI C compiler to build." "$LINENO" 5
5992 if test "$enable_static" = "no"; then
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring --disable-static, sudo does not install static libs" >&5
5994 $as_echo "$as_me: WARNING: Ignoring --disable-static, sudo does not install static libs" >&2;}
5999 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
6000 if test -f "$ac_dir/install-sh"; then
6002 ac_install_sh="$ac_aux_dir/install-sh -c"
6004 elif test -f "$ac_dir/install.sh"; then
6006 ac_install_sh="$ac_aux_dir/install.sh -c"
6008 elif test -f "$ac_dir/shtool"; then
6010 ac_install_sh="$ac_aux_dir/shtool install -c"
6014 if test -z "$ac_aux_dir"; then
6015 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6018 # These three variables are undocumented and unsupported,
6019 # and are intended to be withdrawn in a future Autoconf release.
6020 # They can cause serious problems if a builder's source tree is in a directory
6021 # whose full name contains unusual characters.
6022 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
6023 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
6024 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
6027 # Make sure we can run config.sub.
6028 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6029 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6032 $as_echo_n "checking build system type... " >&6; }
6033 if ${ac_cv_build+:} false; then :
6034 $as_echo_n "(cached) " >&6
6036 ac_build_alias=$build_alias
6037 test "x$ac_build_alias" = x &&
6038 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6039 test "x$ac_build_alias" = x &&
6040 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6041 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6042 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6046 $as_echo "$ac_cv_build" >&6; }
6047 case $ac_cv_build in
6049 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6052 ac_save_IFS=$IFS; IFS='-'
6058 # Remember, the first character of IFS is used to create $*,
6059 # except with old shells:
6062 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6066 $as_echo_n "checking host system type... " >&6; }
6067 if ${ac_cv_host+:} false; then :
6068 $as_echo_n "(cached) " >&6
6070 if test "x$host_alias" = x; then
6071 ac_cv_host=$ac_cv_build
6073 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6074 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6079 $as_echo "$ac_cv_host" >&6; }
6082 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6085 ac_save_IFS=$IFS; IFS='-'
6091 # Remember, the first character of IFS is used to create $*,
6092 # except with old shells:
6095 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6103 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6109 macro_revision='1.3293'
6123 ltmain="$ac_aux_dir/ltmain.sh"
6125 # Backslashify metacharacters that are still active within
6126 # double-quoted strings.
6127 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6129 # Same as above, but do not quote variable references.
6130 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6132 # Sed substitution to delay expansion of an escaped shell variable in a
6133 # double_quote_subst'ed string.
6134 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6136 # Sed substitution to delay expansion of an escaped single quote.
6137 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6139 # Sed substitution to avoid accidental globbing in evaled expressions
6140 no_glob_subst='s/\*/\\\*/g'
6142 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6143 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6144 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6147 $as_echo_n "checking how to print strings... " >&6; }
6148 # Test print first, because it will be a builtin if present.
6149 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6150 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6152 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6155 # Use this function as a fallback that always works.
6156 func_fallback_echo ()
6158 eval 'cat <<_LTECHO_EOF
6162 ECHO='func_fallback_echo'
6165 # func_echo_all arg...
6166 # Invoke $ECHO with all args, space-separated.
6173 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6174 $as_echo "printf" >&6; } ;;
6175 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6176 $as_echo "print -r" >&6; } ;;
6177 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6178 $as_echo "cat" >&6; } ;;
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6195 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6196 if ${ac_cv_path_SED+:} false; then :
6197 $as_echo_n "(cached) " >&6
6199 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6200 for ac_i in 1 2 3 4 5 6 7; do
6201 ac_script="$ac_script$as_nl$ac_script"
6203 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6204 { ac_script=; unset ac_script;}
6205 if test -z "$SED"; then
6206 ac_path_SED_found=false
6207 # Loop through the user's path and test for each of PROGNAME-LIST
6208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6212 test -z "$as_dir" && as_dir=.
6213 for ac_prog in sed gsed; do
6214 for ac_exec_ext in '' $ac_executable_extensions; do
6215 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6216 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6217 # Check for GNU ac_path_SED and select it if it is found.
6218 # Check for GNU $ac_path_SED
6219 case `"$ac_path_SED" --version 2>&1` in
6221 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6224 $as_echo_n 0123456789 >"conftest.in"
6227 cat "conftest.in" "conftest.in" >"conftest.tmp"
6228 mv "conftest.tmp" "conftest.in"
6229 cp "conftest.in" "conftest.nl"
6230 $as_echo '' >> "conftest.nl"
6231 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6232 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6233 as_fn_arith $ac_count + 1 && ac_count=$as_val
6234 if test $ac_count -gt ${ac_path_SED_max-0}; then
6235 # Best one so far, save it but keep looking for a better one
6236 ac_cv_path_SED="$ac_path_SED"
6237 ac_path_SED_max=$ac_count
6239 # 10*(2^10) chars as input seems more than enough
6240 test $ac_count -gt 10 && break
6242 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6245 $ac_path_SED_found && break 3
6250 if test -z "$ac_cv_path_SED"; then
6251 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6259 $as_echo "$ac_cv_path_SED" >&6; }
6260 SED="$ac_cv_path_SED"
6263 test -z "$SED" && SED=sed
6264 Xsed="$SED -e 1s/^X//"
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6277 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6278 if ${ac_cv_path_GREP+:} false; then :
6279 $as_echo_n "(cached) " >&6
6281 if test -z "$GREP"; then
6282 ac_path_GREP_found=false
6283 # Loop through the user's path and test for each of PROGNAME-LIST
6284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6288 test -z "$as_dir" && as_dir=.
6289 for ac_prog in grep ggrep; do
6290 for ac_exec_ext in '' $ac_executable_extensions; do
6291 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6292 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6293 # Check for GNU ac_path_GREP and select it if it is found.
6294 # Check for GNU $ac_path_GREP
6295 case `"$ac_path_GREP" --version 2>&1` in
6297 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6300 $as_echo_n 0123456789 >"conftest.in"
6303 cat "conftest.in" "conftest.in" >"conftest.tmp"
6304 mv "conftest.tmp" "conftest.in"
6305 cp "conftest.in" "conftest.nl"
6306 $as_echo 'GREP' >> "conftest.nl"
6307 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6308 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6309 as_fn_arith $ac_count + 1 && ac_count=$as_val
6310 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6311 # Best one so far, save it but keep looking for a better one
6312 ac_cv_path_GREP="$ac_path_GREP"
6313 ac_path_GREP_max=$ac_count
6315 # 10*(2^10) chars as input seems more than enough
6316 test $ac_count -gt 10 && break
6318 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6321 $ac_path_GREP_found && break 3
6326 if test -z "$ac_cv_path_GREP"; then
6327 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6330 ac_cv_path_GREP=$GREP
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6335 $as_echo "$ac_cv_path_GREP" >&6; }
6336 GREP="$ac_cv_path_GREP"
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6340 $as_echo_n "checking for egrep... " >&6; }
6341 if ${ac_cv_path_EGREP+:} false; then :
6342 $as_echo_n "(cached) " >&6
6344 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6345 then ac_cv_path_EGREP="$GREP -E"
6347 if test -z "$EGREP"; then
6348 ac_path_EGREP_found=false
6349 # Loop through the user's path and test for each of PROGNAME-LIST
6350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6354 test -z "$as_dir" && as_dir=.
6355 for ac_prog in egrep; do
6356 for ac_exec_ext in '' $ac_executable_extensions; do
6357 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6358 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6359 # Check for GNU ac_path_EGREP and select it if it is found.
6360 # Check for GNU $ac_path_EGREP
6361 case `"$ac_path_EGREP" --version 2>&1` in
6363 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6366 $as_echo_n 0123456789 >"conftest.in"
6369 cat "conftest.in" "conftest.in" >"conftest.tmp"
6370 mv "conftest.tmp" "conftest.in"
6371 cp "conftest.in" "conftest.nl"
6372 $as_echo 'EGREP' >> "conftest.nl"
6373 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6374 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6375 as_fn_arith $ac_count + 1 && ac_count=$as_val
6376 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6377 # Best one so far, save it but keep looking for a better one
6378 ac_cv_path_EGREP="$ac_path_EGREP"
6379 ac_path_EGREP_max=$ac_count
6381 # 10*(2^10) chars as input seems more than enough
6382 test $ac_count -gt 10 && break
6384 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6387 $ac_path_EGREP_found && break 3
6392 if test -z "$ac_cv_path_EGREP"; then
6393 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6396 ac_cv_path_EGREP=$EGREP
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6402 $as_echo "$ac_cv_path_EGREP" >&6; }
6403 EGREP="$ac_cv_path_EGREP"
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6407 $as_echo_n "checking for fgrep... " >&6; }
6408 if ${ac_cv_path_FGREP+:} false; then :
6409 $as_echo_n "(cached) " >&6
6411 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6412 then ac_cv_path_FGREP="$GREP -F"
6414 if test -z "$FGREP"; then
6415 ac_path_FGREP_found=false
6416 # Loop through the user's path and test for each of PROGNAME-LIST
6417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6418 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6421 test -z "$as_dir" && as_dir=.
6422 for ac_prog in fgrep; do
6423 for ac_exec_ext in '' $ac_executable_extensions; do
6424 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6425 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6426 # Check for GNU ac_path_FGREP and select it if it is found.
6427 # Check for GNU $ac_path_FGREP
6428 case `"$ac_path_FGREP" --version 2>&1` in
6430 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6433 $as_echo_n 0123456789 >"conftest.in"
6436 cat "conftest.in" "conftest.in" >"conftest.tmp"
6437 mv "conftest.tmp" "conftest.in"
6438 cp "conftest.in" "conftest.nl"
6439 $as_echo 'FGREP' >> "conftest.nl"
6440 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6441 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6442 as_fn_arith $ac_count + 1 && ac_count=$as_val
6443 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6444 # Best one so far, save it but keep looking for a better one
6445 ac_cv_path_FGREP="$ac_path_FGREP"
6446 ac_path_FGREP_max=$ac_count
6448 # 10*(2^10) chars as input seems more than enough
6449 test $ac_count -gt 10 && break
6451 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6454 $ac_path_FGREP_found && break 3
6459 if test -z "$ac_cv_path_FGREP"; then
6460 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6463 ac_cv_path_FGREP=$FGREP
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6469 $as_echo "$ac_cv_path_FGREP" >&6; }
6470 FGREP="$ac_cv_path_FGREP"
6473 test -z "$GREP" && GREP=grep
6493 # Check whether --with-gnu-ld was given.
6494 if test "${with_gnu_ld+set}" = set; then :
6495 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6501 if test "$GCC" = yes; then
6502 # Check if gcc -print-prog-name=ld gives a path.
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6504 $as_echo_n "checking for ld used by $CC... " >&6; }
6507 # gcc leaves a trailing carriage return which upsets mingw
6508 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6510 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6513 # Accept absolute paths.
6515 re_direlt='/[^/][^/]*/\.\./'
6516 # Canonicalize the pathname of ld
6517 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6518 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6519 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6521 test -z "$LD" && LD="$ac_prog"
6524 # If it fails, then pretend we aren't using GCC.
6528 # If it is relative, then search for the first ld in PATH.
6532 elif test "$with_gnu_ld" = yes; then
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6534 $as_echo_n "checking for GNU ld... " >&6; }
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6537 $as_echo_n "checking for non-GNU ld... " >&6; }
6539 if ${lt_cv_path_LD+:} false; then :
6540 $as_echo_n "(cached) " >&6
6542 if test -z "$LD"; then
6543 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6544 for ac_dir in $PATH; do
6546 test -z "$ac_dir" && ac_dir=.
6547 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6548 lt_cv_path_LD="$ac_dir/$ac_prog"
6549 # Check to see if the program is GNU ld. I'd rather use --version,
6550 # but apparently some variants of GNU ld only accept -v.
6551 # Break only if it was the GNU/non-GNU ld that we prefer.
6552 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6553 *GNU* | *'with BFD'*)
6554 test "$with_gnu_ld" != no && break
6557 test "$with_gnu_ld" != yes && break
6564 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6569 if test -n "$LD"; then
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6571 $as_echo "$LD" >&6; }
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6574 $as_echo "no" >&6; }
6576 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6578 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6579 if ${lt_cv_prog_gnu_ld+:} false; then :
6580 $as_echo_n "(cached) " >&6
6582 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6583 case `$LD -v 2>&1 </dev/null` in
6584 *GNU* | *'with BFD'*)
6585 lt_cv_prog_gnu_ld=yes
6588 lt_cv_prog_gnu_ld=no
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6593 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6594 with_gnu_ld=$lt_cv_prog_gnu_ld
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6605 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6606 if ${lt_cv_path_NM+:} false; then :
6607 $as_echo_n "(cached) " >&6
6609 if test -n "$NM"; then
6610 # Let the user override the test.
6613 lt_nm_to_check="${ac_tool_prefix}nm"
6614 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6615 lt_nm_to_check="$lt_nm_to_check nm"
6617 for lt_tmp_nm in $lt_nm_to_check; do
6618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6619 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6621 test -z "$ac_dir" && ac_dir=.
6622 tmp_nm="$ac_dir/$lt_tmp_nm"
6623 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6624 # Check to see if the nm accepts a BSD-compat flag.
6625 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6626 # nm: unknown option "B" ignored
6627 # Tru64's nm complains that /dev/null is an invalid object file
6628 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6629 */dev/null* | *'Invalid file or object type'*)
6630 lt_cv_path_NM="$tmp_nm -B"
6634 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6636 lt_cv_path_NM="$tmp_nm -p"
6640 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6641 continue # so that we can try to find one that supports BSD flags
6650 : ${lt_cv_path_NM=no}
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6654 $as_echo "$lt_cv_path_NM" >&6; }
6655 if test "$lt_cv_path_NM" != "no"; then
6658 # Didn't find any BSD compatible name lister, look for dumpbin.
6659 if test -n "$DUMPBIN"; then :
6660 # Let the user override the test.
6662 if test -n "$ac_tool_prefix"; then
6663 for ac_prog in dumpbin "link -dump"
6665 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6666 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6668 $as_echo_n "checking for $ac_word... " >&6; }
6669 if ${ac_cv_prog_DUMPBIN+:} false; then :
6670 $as_echo_n "(cached) " >&6
6672 if test -n "$DUMPBIN"; then
6673 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679 test -z "$as_dir" && as_dir=.
6680 for ac_exec_ext in '' $ac_executable_extensions; do
6681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6682 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6692 DUMPBIN=$ac_cv_prog_DUMPBIN
6693 if test -n "$DUMPBIN"; then
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6695 $as_echo "$DUMPBIN" >&6; }
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6698 $as_echo "no" >&6; }
6702 test -n "$DUMPBIN" && break
6705 if test -z "$DUMPBIN"; then
6706 ac_ct_DUMPBIN=$DUMPBIN
6707 for ac_prog in dumpbin "link -dump"
6709 # Extract the first word of "$ac_prog", so it can be a program name with args.
6710 set dummy $ac_prog; ac_word=$2
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6712 $as_echo_n "checking for $ac_word... " >&6; }
6713 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6714 $as_echo_n "(cached) " >&6
6716 if test -n "$ac_ct_DUMPBIN"; then
6717 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723 test -z "$as_dir" && as_dir=.
6724 for ac_exec_ext in '' $ac_executable_extensions; do
6725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6726 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6736 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6737 if test -n "$ac_ct_DUMPBIN"; then
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6739 $as_echo "$ac_ct_DUMPBIN" >&6; }
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6742 $as_echo "no" >&6; }
6746 test -n "$ac_ct_DUMPBIN" && break
6749 if test "x$ac_ct_DUMPBIN" = x; then
6752 case $cross_compiling:$ac_tool_warned in
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6755 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6756 ac_tool_warned=yes ;;
6758 DUMPBIN=$ac_ct_DUMPBIN
6762 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6764 DUMPBIN="$DUMPBIN -symbols"
6772 if test "$DUMPBIN" != ":"; then
6776 test -z "$NM" && NM=nm
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6784 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6785 if ${lt_cv_nm_interface+:} false; then :
6786 $as_echo_n "(cached) " >&6
6788 lt_cv_nm_interface="BSD nm"
6789 echo "int some_variable = 0;" > conftest.$ac_ext
6790 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6791 (eval "$ac_compile" 2>conftest.err)
6792 cat conftest.err >&5
6793 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6794 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6795 cat conftest.err >&5
6796 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6797 cat conftest.out >&5
6798 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6799 lt_cv_nm_interface="MS dumpbin"
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6804 $as_echo "$lt_cv_nm_interface" >&6; }
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6807 $as_echo_n "checking whether ln -s works... " >&6; }
6809 if test "$LN_S" = "ln -s"; then
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6811 $as_echo "yes" >&6; }
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6814 $as_echo "no, using $LN_S" >&6; }
6817 # find the maximum length of command line arguments
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6819 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6820 if ${lt_cv_sys_max_cmd_len+:} false; then :
6821 $as_echo_n "(cached) " >&6
6828 # On DJGPP, this test can blow up pretty badly due to problems in libc
6829 # (any single argument exceeding 2000 bytes causes a buffer overrun
6830 # during glob expansion). Even if it were fixed, the result of this
6831 # check would be larger than it should be.
6832 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6836 # Under GNU Hurd, this test is not required because there is
6837 # no limit to the length of command line arguments.
6838 # Libtool will interpret -1 as no limit whatsoever
6839 lt_cv_sys_max_cmd_len=-1;
6842 cygwin* | mingw* | cegcc*)
6843 # On Win9x/ME, this test blows up -- it succeeds, but takes
6844 # about 5 minutes as the teststring grows exponentially.
6845 # Worse, since 9x/ME are not pre-emptively multitasking,
6846 # you end up with a "frozen" computer, even though with patience
6847 # the test eventually succeeds (with a max line length of 256k).
6848 # Instead, let's just punt: use the minimum linelength reported by
6849 # all of the supported platforms: 8192 (on NT/2K/XP).
6850 lt_cv_sys_max_cmd_len=8192;
6854 # On MiNT this can take a long time and run out of memory.
6855 lt_cv_sys_max_cmd_len=8192;
6859 # On AmigaOS with pdksh, this test takes hours, literally.
6860 # So we just punt and use a minimum line length of 8192.
6861 lt_cv_sys_max_cmd_len=8192;
6864 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6865 # This has been around since 386BSD, at least. Likely further.
6866 if test -x /sbin/sysctl; then
6867 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6868 elif test -x /usr/sbin/sysctl; then
6869 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6871 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6873 # And add a safety zone
6874 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6875 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6879 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6880 lt_cv_sys_max_cmd_len=196608
6884 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6885 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6886 # nice to cause kernel panics so lets avoid the loop below.
6887 # First set a reasonable default.
6888 lt_cv_sys_max_cmd_len=16384
6890 if test -x /sbin/sysconfig; then
6891 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6892 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6897 lt_cv_sys_max_cmd_len=102400
6899 sysv5* | sco5v6* | sysv4.2uw2*)
6900 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6901 if test -n "$kargmax"; then
6902 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6904 lt_cv_sys_max_cmd_len=32768
6908 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6909 if test -n "$lt_cv_sys_max_cmd_len"; then
6910 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6911 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6913 # Make teststring a little bigger before we do anything with it.
6914 # a 1K string should be a reasonable start.
6915 for i in 1 2 3 4 5 6 7 8 ; do
6916 teststring=$teststring$teststring
6918 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6919 # If test is not a shell built-in, we'll probably end up computing a
6920 # maximum length that is only half of the actual maximum length, but
6922 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6923 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6924 test $i != 17 # 1/2 MB should be enough
6927 teststring=$teststring$teststring
6929 # Only check the string length outside the loop.
6930 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6932 # Add a significant safety factor because C++ compilers can tack on
6933 # massive amounts of additional arguments before passing them to the
6934 # linker. It appears as though 1/2 is a usable value.
6935 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6942 if test -n $lt_cv_sys_max_cmd_len ; then
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6944 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6947 $as_echo "none" >&6; }
6949 max_cmd_len=$lt_cv_sys_max_cmd_len
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6961 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6962 # Try some XSI features
6965 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6967 && eval 'test $(( 1 + 1 )) -eq 2 \
6968 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6971 $as_echo "$xsi_shell" >&6; }
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6975 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6977 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6979 && lt_shell_append=yes
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6981 $as_echo "$lt_shell_append" >&6; }
6984 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6994 # test EBCDIC or ASCII
6995 case `echo X|tr X '\101'` in
6996 A) # ASCII based system
6997 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6998 lt_SP2NL='tr \040 \012'
6999 lt_NL2SP='tr \015\012 \040\040'
7001 *) # EBCDIC based system
7002 lt_SP2NL='tr \100 \n'
7003 lt_NL2SP='tr \r\n \100\100'
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7016 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7017 if ${lt_cv_to_host_file_cmd+:} false; then :
7018 $as_echo_n "(cached) " >&6
7023 *-*-mingw* ) # actually msys
7024 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7027 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7029 * ) # otherwise, assume *nix
7030 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7036 *-*-mingw* ) # actually msys
7037 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7040 lt_cv_to_host_file_cmd=func_convert_file_noop
7042 * ) # otherwise, assume *nix
7043 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7047 * ) # unhandled hosts (and "normal" native builds)
7048 lt_cv_to_host_file_cmd=func_convert_file_noop
7054 to_host_file_cmd=$lt_cv_to_host_file_cmd
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7056 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7063 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7064 if ${lt_cv_to_tool_file_cmd+:} false; then :
7065 $as_echo_n "(cached) " >&6
7067 #assume ordinary cross tools, or native build.
7068 lt_cv_to_tool_file_cmd=func_convert_file_noop
7072 *-*-mingw* ) # actually msys
7073 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7081 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7083 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7090 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7091 if ${lt_cv_ld_reload_flag+:} false; then :
7092 $as_echo_n "(cached) " >&6
7094 lt_cv_ld_reload_flag='-r'
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7097 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7098 reload_flag=$lt_cv_ld_reload_flag
7099 case $reload_flag in
7101 *) reload_flag=" $reload_flag" ;;
7103 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7105 cygwin* | mingw* | pw32* | cegcc*)
7106 if test "$GCC" != yes; then
7111 if test "$GCC" = yes; then
7112 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7114 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7127 if test -n "$ac_tool_prefix"; then
7128 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7129 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7131 $as_echo_n "checking for $ac_word... " >&6; }
7132 if ${ac_cv_prog_OBJDUMP+:} false; then :
7133 $as_echo_n "(cached) " >&6
7135 if test -n "$OBJDUMP"; then
7136 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7142 test -z "$as_dir" && as_dir=.
7143 for ac_exec_ext in '' $ac_executable_extensions; do
7144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7145 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7155 OBJDUMP=$ac_cv_prog_OBJDUMP
7156 if test -n "$OBJDUMP"; then
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7158 $as_echo "$OBJDUMP" >&6; }
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7161 $as_echo "no" >&6; }
7166 if test -z "$ac_cv_prog_OBJDUMP"; then
7167 ac_ct_OBJDUMP=$OBJDUMP
7168 # Extract the first word of "objdump", so it can be a program name with args.
7169 set dummy objdump; ac_word=$2
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7171 $as_echo_n "checking for $ac_word... " >&6; }
7172 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7173 $as_echo_n "(cached) " >&6
7175 if test -n "$ac_ct_OBJDUMP"; then
7176 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7182 test -z "$as_dir" && as_dir=.
7183 for ac_exec_ext in '' $ac_executable_extensions; do
7184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7185 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7195 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7196 if test -n "$ac_ct_OBJDUMP"; then
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7198 $as_echo "$ac_ct_OBJDUMP" >&6; }
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7201 $as_echo "no" >&6; }
7204 if test "x$ac_ct_OBJDUMP" = x; then
7207 case $cross_compiling:$ac_tool_warned in
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7210 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7211 ac_tool_warned=yes ;;
7213 OBJDUMP=$ac_ct_OBJDUMP
7216 OBJDUMP="$ac_cv_prog_OBJDUMP"
7219 test -z "$OBJDUMP" && OBJDUMP=objdump
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7230 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7231 if ${lt_cv_deplibs_check_method+:} false; then :
7232 $as_echo_n "(cached) " >&6
7234 lt_cv_file_magic_cmd='$MAGIC_CMD'
7235 lt_cv_file_magic_test_file=
7236 lt_cv_deplibs_check_method='unknown'
7237 # Need to set the preceding variable on all platforms that support
7238 # interlibrary dependencies.
7239 # 'none' -- dependencies not supported.
7240 # `unknown' -- same as none, but documents that we really don't know.
7241 # 'pass_all' -- all dependencies passed with no checks.
7242 # 'test_compile' -- check by making test program.
7243 # 'file_magic [[regex]]' -- check by looking for files in library path
7244 # which responds to the $file_magic_cmd with a given extended regex.
7245 # If you have `file' or equivalent on your system and you're not sure
7246 # whether `pass_all' will *always* work, you probably want this one.
7250 lt_cv_deplibs_check_method=pass_all
7254 lt_cv_deplibs_check_method=pass_all
7258 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7259 lt_cv_file_magic_cmd='/usr/bin/file -L'
7260 lt_cv_file_magic_test_file=/shlib/libc.so
7264 # func_win32_libid is a shell function defined in ltmain.sh
7265 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7266 lt_cv_file_magic_cmd='func_win32_libid'
7270 # Base MSYS/MinGW do not provide the 'file' command needed by
7271 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7272 # unless we find 'file', for example because we are cross-compiling.
7273 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7274 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7275 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7276 lt_cv_file_magic_cmd='func_win32_libid'
7278 # Keep this pattern in sync with the one in func_win32_libid.
7279 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7280 lt_cv_file_magic_cmd='$OBJDUMP -f'
7285 # use the weaker test based on 'objdump'. See mingw*.
7286 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7287 lt_cv_file_magic_cmd='$OBJDUMP -f'
7290 darwin* | rhapsody*)
7291 lt_cv_deplibs_check_method=pass_all
7294 freebsd* | dragonfly*)
7295 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7298 # Not sure whether the presence of OpenBSD here was a mistake.
7299 # Let's accept both of them until this is cleared up.
7300 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7301 lt_cv_file_magic_cmd=/usr/bin/file
7302 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7306 lt_cv_deplibs_check_method=pass_all
7311 lt_cv_deplibs_check_method=pass_all
7315 lt_cv_deplibs_check_method=pass_all
7318 hpux10.20* | hpux11*)
7319 lt_cv_file_magic_cmd=/usr/bin/file
7322 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7323 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7326 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]'
7327 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7330 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7331 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7337 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7338 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7341 irix5* | irix6* | nonstopux*)
7343 *-32|*"-32 ") libmagic=32-bit;;
7344 *-n32|*"-n32 ") libmagic=N32;;
7345 *-64|*"-64 ") libmagic=64-bit;;
7346 *) libmagic=never-match;;
7348 lt_cv_deplibs_check_method=pass_all
7351 # This must be Linux ELF.
7352 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7353 lt_cv_deplibs_check_method=pass_all
7357 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7358 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7360 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7365 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7366 lt_cv_file_magic_cmd=/usr/bin/file
7367 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7371 lt_cv_deplibs_check_method=pass_all
7375 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7376 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7378 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7382 osf3* | osf4* | osf5*)
7383 lt_cv_deplibs_check_method=pass_all
7387 lt_cv_deplibs_check_method=pass_all
7391 lt_cv_deplibs_check_method=pass_all
7394 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7395 lt_cv_deplibs_check_method=pass_all
7399 case $host_vendor in
7401 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]'
7402 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7405 lt_cv_deplibs_check_method=pass_all
7408 lt_cv_file_magic_cmd='/bin/file'
7409 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7412 lt_cv_file_magic_cmd='/bin/file'
7413 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7414 lt_cv_file_magic_test_file=/lib/libc.so
7417 lt_cv_deplibs_check_method=pass_all
7420 lt_cv_deplibs_check_method=pass_all
7426 lt_cv_deplibs_check_method=pass_all
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7432 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7436 if test "$build" = "$host"; then
7439 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7442 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7448 file_magic_cmd=$lt_cv_file_magic_cmd
7449 deplibs_check_method=$lt_cv_deplibs_check_method
7450 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7473 if test -n "$ac_tool_prefix"; then
7474 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7475 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7477 $as_echo_n "checking for $ac_word... " >&6; }
7478 if ${ac_cv_prog_DLLTOOL+:} false; then :
7479 $as_echo_n "(cached) " >&6
7481 if test -n "$DLLTOOL"; then
7482 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7488 test -z "$as_dir" && as_dir=.
7489 for ac_exec_ext in '' $ac_executable_extensions; do
7490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7491 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7501 DLLTOOL=$ac_cv_prog_DLLTOOL
7502 if test -n "$DLLTOOL"; then
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7504 $as_echo "$DLLTOOL" >&6; }
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7507 $as_echo "no" >&6; }
7512 if test -z "$ac_cv_prog_DLLTOOL"; then
7513 ac_ct_DLLTOOL=$DLLTOOL
7514 # Extract the first word of "dlltool", so it can be a program name with args.
7515 set dummy dlltool; ac_word=$2
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7517 $as_echo_n "checking for $ac_word... " >&6; }
7518 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7519 $as_echo_n "(cached) " >&6
7521 if test -n "$ac_ct_DLLTOOL"; then
7522 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7528 test -z "$as_dir" && as_dir=.
7529 for ac_exec_ext in '' $ac_executable_extensions; do
7530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7531 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7541 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7542 if test -n "$ac_ct_DLLTOOL"; then
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7544 $as_echo "$ac_ct_DLLTOOL" >&6; }
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7547 $as_echo "no" >&6; }
7550 if test "x$ac_ct_DLLTOOL" = x; then
7553 case $cross_compiling:$ac_tool_warned in
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7557 ac_tool_warned=yes ;;
7559 DLLTOOL=$ac_ct_DLLTOOL
7562 DLLTOOL="$ac_cv_prog_DLLTOOL"
7565 test -z "$DLLTOOL" && DLLTOOL=dlltool
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7577 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7578 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7579 $as_echo_n "(cached) " >&6
7581 lt_cv_sharedlib_from_linklib_cmd='unknown'
7584 cygwin* | mingw* | pw32* | cegcc*)
7585 # two different shell functions defined in ltmain.sh
7586 # decide which to use based on capabilities of $DLLTOOL
7587 case `$DLLTOOL --help 2>&1` in
7588 *--identify-strict*)
7589 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7592 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7597 # fallback: assume linklib IS sharedlib
7598 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7604 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7605 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7606 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7614 if test -n "$ac_tool_prefix"; then
7617 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7618 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7620 $as_echo_n "checking for $ac_word... " >&6; }
7621 if ${ac_cv_prog_AR+:} false; then :
7622 $as_echo_n "(cached) " >&6
7624 if test -n "$AR"; then
7625 ac_cv_prog_AR="$AR" # Let the user override the test.
7627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7631 test -z "$as_dir" && as_dir=.
7632 for ac_exec_ext in '' $ac_executable_extensions; do
7633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7634 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7645 if test -n "$AR"; then
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7647 $as_echo "$AR" >&6; }
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7650 $as_echo "no" >&6; }
7654 test -n "$AR" && break
7657 if test -z "$AR"; then
7661 # Extract the first word of "$ac_prog", so it can be a program name with args.
7662 set dummy $ac_prog; ac_word=$2
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7664 $as_echo_n "checking for $ac_word... " >&6; }
7665 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7666 $as_echo_n "(cached) " >&6
7668 if test -n "$ac_ct_AR"; then
7669 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7675 test -z "$as_dir" && as_dir=.
7676 for ac_exec_ext in '' $ac_executable_extensions; do
7677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7678 ac_cv_prog_ac_ct_AR="$ac_prog"
7679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7688 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7689 if test -n "$ac_ct_AR"; then
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7691 $as_echo "$ac_ct_AR" >&6; }
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7694 $as_echo "no" >&6; }
7698 test -n "$ac_ct_AR" && break
7701 if test "x$ac_ct_AR" = x; then
7704 case $cross_compiling:$ac_tool_warned in
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7707 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7708 ac_tool_warned=yes ;;
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7728 $as_echo_n "checking for archiver @FILE support... " >&6; }
7729 if ${lt_cv_ar_at_file+:} false; then :
7730 $as_echo_n "(cached) " >&6
7733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7734 /* end confdefs.h. */
7744 if ac_fn_c_try_compile "$LINENO"; then :
7745 echo conftest.$ac_objext > conftest.lst
7746 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7748 (eval $lt_ar_try) 2>&5
7750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7751 test $ac_status = 0; }
7752 if test "$ac_status" -eq 0; then
7753 # Ensure the archiver fails upon bogus file names.
7754 rm -f conftest.$ac_objext libconftest.a
7755 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7756 (eval $lt_ar_try) 2>&5
7758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7759 test $ac_status = 0; }
7760 if test "$ac_status" -ne 0; then
7764 rm -f conftest.* libconftest.a
7767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7771 $as_echo "$lt_cv_ar_at_file" >&6; }
7773 if test "x$lt_cv_ar_at_file" = xno; then
7776 archiver_list_spec=$lt_cv_ar_at_file
7785 if test -n "$ac_tool_prefix"; then
7786 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7787 set dummy ${ac_tool_prefix}strip; ac_word=$2
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7789 $as_echo_n "checking for $ac_word... " >&6; }
7790 if ${ac_cv_prog_STRIP+:} false; then :
7791 $as_echo_n "(cached) " >&6
7793 if test -n "$STRIP"; then
7794 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7800 test -z "$as_dir" && as_dir=.
7801 for ac_exec_ext in '' $ac_executable_extensions; do
7802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7803 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7813 STRIP=$ac_cv_prog_STRIP
7814 if test -n "$STRIP"; then
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7816 $as_echo "$STRIP" >&6; }
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7819 $as_echo "no" >&6; }
7824 if test -z "$ac_cv_prog_STRIP"; then
7826 # Extract the first word of "strip", so it can be a program name with args.
7827 set dummy strip; ac_word=$2
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7829 $as_echo_n "checking for $ac_word... " >&6; }
7830 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7831 $as_echo_n "(cached) " >&6
7833 if test -n "$ac_ct_STRIP"; then
7834 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7840 test -z "$as_dir" && as_dir=.
7841 for ac_exec_ext in '' $ac_executable_extensions; do
7842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7843 ac_cv_prog_ac_ct_STRIP="strip"
7844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7853 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7854 if test -n "$ac_ct_STRIP"; then
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7856 $as_echo "$ac_ct_STRIP" >&6; }
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7859 $as_echo "no" >&6; }
7862 if test "x$ac_ct_STRIP" = x; then
7865 case $cross_compiling:$ac_tool_warned in
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7868 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7869 ac_tool_warned=yes ;;
7874 STRIP="$ac_cv_prog_STRIP"
7877 test -z "$STRIP" && STRIP=:
7884 if test -n "$ac_tool_prefix"; then
7885 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7886 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7888 $as_echo_n "checking for $ac_word... " >&6; }
7889 if ${ac_cv_prog_RANLIB+:} false; then :
7890 $as_echo_n "(cached) " >&6
7892 if test -n "$RANLIB"; then
7893 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7899 test -z "$as_dir" && as_dir=.
7900 for ac_exec_ext in '' $ac_executable_extensions; do
7901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7902 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7912 RANLIB=$ac_cv_prog_RANLIB
7913 if test -n "$RANLIB"; then
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7915 $as_echo "$RANLIB" >&6; }
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7918 $as_echo "no" >&6; }
7923 if test -z "$ac_cv_prog_RANLIB"; then
7924 ac_ct_RANLIB=$RANLIB
7925 # Extract the first word of "ranlib", so it can be a program name with args.
7926 set dummy ranlib; ac_word=$2
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7928 $as_echo_n "checking for $ac_word... " >&6; }
7929 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7930 $as_echo_n "(cached) " >&6
7932 if test -n "$ac_ct_RANLIB"; then
7933 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7939 test -z "$as_dir" && as_dir=.
7940 for ac_exec_ext in '' $ac_executable_extensions; do
7941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7942 ac_cv_prog_ac_ct_RANLIB="ranlib"
7943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7952 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7953 if test -n "$ac_ct_RANLIB"; then
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7955 $as_echo "$ac_ct_RANLIB" >&6; }
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7958 $as_echo "no" >&6; }
7961 if test "x$ac_ct_RANLIB" = x; then
7964 case $cross_compiling:$ac_tool_warned in
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7967 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7968 ac_tool_warned=yes ;;
7970 RANLIB=$ac_ct_RANLIB
7973 RANLIB="$ac_cv_prog_RANLIB"
7976 test -z "$RANLIB" && RANLIB=:
7983 # Determine commands to create old-style static archives.
7984 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7985 old_postinstall_cmds='chmod 644 $oldlib'
7986 old_postuninstall_cmds=
7988 if test -n "$RANLIB"; then
7991 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7994 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7997 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8002 lock_old_archive_extraction=yes ;;
8004 lock_old_archive_extraction=no ;;
8027 for ac_prog in gawk mawk nawk awk
8029 # Extract the first word of "$ac_prog", so it can be a program name with args.
8030 set dummy $ac_prog; ac_word=$2
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8032 $as_echo_n "checking for $ac_word... " >&6; }
8033 if ${ac_cv_prog_AWK+:} false; then :
8034 $as_echo_n "(cached) " >&6
8036 if test -n "$AWK"; then
8037 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8043 test -z "$as_dir" && as_dir=.
8044 for ac_exec_ext in '' $ac_executable_extensions; do
8045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8046 ac_cv_prog_AWK="$ac_prog"
8047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8057 if test -n "$AWK"; then
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8059 $as_echo "$AWK" >&6; }
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8062 $as_echo "no" >&6; }
8066 test -n "$AWK" && break
8087 # If no C compiler was specified, use CC.
8090 # If no C compiler flags were specified, use CFLAGS.
8091 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8093 # Allow CC to be a program name with arguments.
8097 # Check for command to grab the raw symbol name followed by C symbol from nm.
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8099 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8100 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8101 $as_echo_n "(cached) " >&6
8104 # These are sane defaults that work on at least a few old systems.
8105 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8107 # Character class describing NM global symbol codes.
8108 symcode='[BCDEGRST]'
8110 # Regexp to match symbols that can be accessed directly from C.
8111 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8113 # Define system-specific variables.
8118 cygwin* | mingw* | pw32* | cegcc*)
8119 symcode='[ABCDGISTW]'
8122 if test "$host_cpu" = ia64; then
8123 symcode='[ABCDEGRST]'
8127 symcode='[BCDEGRST]'
8130 symcode='[BCDEGQRST]'
8141 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8149 # If we're using GNU nm, then use its standard symbol codes.
8150 case `$NM -V 2>&1` in
8151 *GNU* | *'with BFD'*)
8152 symcode='[ABCDGIRSTW]' ;;
8155 # Transform an extracted symbol line into a proper C declaration.
8156 # Some systems (esp. on ia64) link data and code symbols differently,
8157 # so use this general approach.
8158 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8160 # Transform an extracted symbol line into symbol name and symbol address
8161 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8162 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'"
8164 # Handle CRLF in mingw tool chain
8168 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8172 # Try without a prefix underscore, then with it.
8173 for ac_symprfx in "" "_"; do
8175 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8176 symxfrm="\\1 $ac_symprfx\\2 \\2"
8178 # Write the raw and C identifiers.
8179 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8180 # Fake it for dumpbin and say T for any non-static function
8181 # and D for any global variable.
8182 # Also find C++ and __fastcall symbols from MSVC++,
8183 # which start with @ or ?.
8184 lt_cv_sys_global_symbol_pipe="$AWK '"\
8185 " {last_section=section; section=\$ 3};"\
8186 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8187 " \$ 0!~/External *\|/{next};"\
8188 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8189 " {if(hide[section]) next};"\
8190 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8191 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8192 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8193 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8194 " ' prfx=^$ac_symprfx"
8196 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8198 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8200 # Check to see that the pipe works correctly.
8204 cat > conftest.$ac_ext <<_LT_EOF
8209 void nm_test_func(void);
8210 void nm_test_func(void){}
8214 int main(){nm_test_var='a';nm_test_func();return(0);}
8217 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8218 (eval $ac_compile) 2>&5
8220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8221 test $ac_status = 0; }; then
8222 # Now try to grab the symbols.
8224 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8225 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8228 test $ac_status = 0; } && test -s "$nlist"; then
8229 # Try sorting and uniquifying the output.
8230 if sort "$nlist" | uniq > "$nlist"T; then
8231 mv -f "$nlist"T "$nlist"
8236 # Make sure that we snagged all the symbols we need.
8237 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8238 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8239 cat <<_LT_EOF > conftest.$ac_ext
8240 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8241 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8242 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8243 relocations are performed -- see ld's documentation on pseudo-relocs. */
8244 # define LT_DLSYM_CONST
8245 #elif defined(__osf__)
8246 /* This system does not cope well with relocations in const data. */
8247 # define LT_DLSYM_CONST
8249 # define LT_DLSYM_CONST const
8257 # Now generate the symbol file.
8258 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8260 cat <<_LT_EOF >> conftest.$ac_ext
8262 /* The mapping between symbol names and symbols. */
8263 LT_DLSYM_CONST struct {
8267 lt__PROGRAM__LTX_preloaded_symbols[] =
8269 { "@PROGRAM@", (void *) 0 },
8271 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8272 cat <<\_LT_EOF >> conftest.$ac_ext
8276 /* This works around a problem in FreeBSD linker */
8277 #ifdef FREEBSD_WORKAROUND
8278 static const void *lt_preloaded_setup() {
8279 return lt__PROGRAM__LTX_preloaded_symbols;
8287 # Now try linking the two files.
8288 mv conftest.$ac_objext conftstm.$ac_objext
8289 lt_globsym_save_LIBS=$LIBS
8290 lt_globsym_save_CFLAGS=$CFLAGS
8291 LIBS="conftstm.$ac_objext"
8292 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8293 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8294 (eval $ac_link) 2>&5
8296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8297 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8300 LIBS=$lt_globsym_save_LIBS
8301 CFLAGS=$lt_globsym_save_CFLAGS
8303 echo "cannot find nm_test_func in $nlist" >&5
8306 echo "cannot find nm_test_var in $nlist" >&5
8309 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8312 echo "$progname: failed program was:" >&5
8313 cat conftest.$ac_ext >&5
8315 rm -rf conftest* conftst*
8317 # Do not use the global_symbol_pipe unless it works.
8318 if test "$pipe_works" = yes; then
8321 lt_cv_sys_global_symbol_pipe=
8327 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8328 lt_cv_sys_global_symbol_to_cdecl=
8330 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8332 $as_echo "failed" >&6; }
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8335 $as_echo "ok" >&6; }
8338 # Response file support.
8339 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8340 nm_file_list_spec='@'
8341 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8342 nm_file_list_spec='@'
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8372 $as_echo_n "checking for sysroot... " >&6; }
8374 # Check whether --with-sysroot was given.
8375 if test "${with_sysroot+set}" = set; then :
8376 withval=$with_sysroot;
8383 case ${with_sysroot} in #(
8385 if test "$GCC" = yes; then
8386 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8390 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8396 $as_echo "${with_sysroot}" >&6; }
8397 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8402 $as_echo "${lt_sysroot:-no}" >&6; }
8408 # Check whether --enable-libtool-lock was given.
8409 if test "${enable_libtool_lock+set}" = set; then :
8410 enableval=$enable_libtool_lock;
8413 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8415 # Some flags need to be propagated to the compiler or linker for good
8419 # Find out which ABI we are using.
8420 echo 'int i;' > conftest.$ac_ext
8421 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8422 (eval $ac_compile) 2>&5
8424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8425 test $ac_status = 0; }; then
8426 case `/usr/bin/file conftest.$ac_objext` in
8438 # Find out which ABI we are using.
8439 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8440 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8441 (eval $ac_compile) 2>&5
8443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8444 test $ac_status = 0; }; then
8445 if test "$lt_cv_prog_gnu_ld" = yes; then
8446 case `/usr/bin/file conftest.$ac_objext` in
8448 LD="${LD-ld} -melf32bsmip"
8451 LD="${LD-ld} -melf32bmipn32"
8454 LD="${LD-ld} -melf64bmip"
8458 case `/usr/bin/file conftest.$ac_objext` in
8474 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8475 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8476 # Find out which ABI we are using.
8477 echo 'int i;' > conftest.$ac_ext
8478 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8479 (eval $ac_compile) 2>&5
8481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8482 test $ac_status = 0; }; then
8483 case `/usr/bin/file conftest.o` in
8486 x86_64-*kfreebsd*-gnu)
8487 LD="${LD-ld} -m elf_i386_fbsd"
8490 LD="${LD-ld} -m elf_i386"
8492 ppc64-*linux*|powerpc64-*linux*)
8493 LD="${LD-ld} -m elf32ppclinux"
8496 LD="${LD-ld} -m elf_s390"
8499 LD="${LD-ld} -m elf32_sparc"
8505 x86_64-*kfreebsd*-gnu)
8506 LD="${LD-ld} -m elf_x86_64_fbsd"
8509 LD="${LD-ld} -m elf_x86_64"
8511 ppc*-*linux*|powerpc*-*linux*)
8512 LD="${LD-ld} -m elf64ppc"
8514 s390*-*linux*|s390*-*tpf*)
8515 LD="${LD-ld} -m elf64_s390"
8518 LD="${LD-ld} -m elf64_sparc"
8528 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8529 SAVE_CFLAGS="$CFLAGS"
8530 CFLAGS="$CFLAGS -belf"
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8532 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8533 if ${lt_cv_cc_needs_belf+:} false; then :
8534 $as_echo_n "(cached) " >&6
8537 ac_cpp='$CPP $CPPFLAGS'
8538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8543 /* end confdefs.h. */
8553 if ac_fn_c_try_link "$LINENO"; then :
8554 lt_cv_cc_needs_belf=yes
8556 lt_cv_cc_needs_belf=no
8558 rm -f core conftest.err conftest.$ac_objext \
8559 conftest$ac_exeext conftest.$ac_ext
8561 ac_cpp='$CPP $CPPFLAGS'
8562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8568 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8569 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8570 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8571 CFLAGS="$SAVE_CFLAGS"
8575 # Find out which ABI we are using.
8576 echo 'int i;' > conftest.$ac_ext
8577 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8578 (eval $ac_compile) 2>&5
8580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8581 test $ac_status = 0; }; then
8582 case `/usr/bin/file conftest.o` in
8584 case $lt_cv_prog_gnu_ld in
8585 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8587 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8599 need_locks="$enable_libtool_lock"
8601 if test -n "$ac_tool_prefix"; then
8602 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8603 set dummy ${ac_tool_prefix}mt; ac_word=$2
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8605 $as_echo_n "checking for $ac_word... " >&6; }
8606 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8607 $as_echo_n "(cached) " >&6
8609 if test -n "$MANIFEST_TOOL"; then
8610 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8616 test -z "$as_dir" && as_dir=.
8617 for ac_exec_ext in '' $ac_executable_extensions; do
8618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8619 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8629 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8630 if test -n "$MANIFEST_TOOL"; then
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8632 $as_echo "$MANIFEST_TOOL" >&6; }
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8635 $as_echo "no" >&6; }
8640 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8641 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8642 # Extract the first word of "mt", so it can be a program name with args.
8643 set dummy mt; ac_word=$2
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8645 $as_echo_n "checking for $ac_word... " >&6; }
8646 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8647 $as_echo_n "(cached) " >&6
8649 if test -n "$ac_ct_MANIFEST_TOOL"; then
8650 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8656 test -z "$as_dir" && as_dir=.
8657 for ac_exec_ext in '' $ac_executable_extensions; do
8658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8659 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8669 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8670 if test -n "$ac_ct_MANIFEST_TOOL"; then
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8672 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8675 $as_echo "no" >&6; }
8678 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8681 case $cross_compiling:$ac_tool_warned in
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8684 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8685 ac_tool_warned=yes ;;
8687 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8690 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8693 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8695 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8696 if ${lt_cv_path_mainfest_tool+:} false; then :
8697 $as_echo_n "(cached) " >&6
8699 lt_cv_path_mainfest_tool=no
8700 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8701 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8702 cat conftest.err >&5
8703 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8704 lt_cv_path_mainfest_tool=yes
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8709 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8710 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8720 rhapsody* | darwin*)
8721 if test -n "$ac_tool_prefix"; then
8722 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8723 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8725 $as_echo_n "checking for $ac_word... " >&6; }
8726 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8727 $as_echo_n "(cached) " >&6
8729 if test -n "$DSYMUTIL"; then
8730 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8736 test -z "$as_dir" && as_dir=.
8737 for ac_exec_ext in '' $ac_executable_extensions; do
8738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8739 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8749 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8750 if test -n "$DSYMUTIL"; then
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8752 $as_echo "$DSYMUTIL" >&6; }
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8755 $as_echo "no" >&6; }
8760 if test -z "$ac_cv_prog_DSYMUTIL"; then
8761 ac_ct_DSYMUTIL=$DSYMUTIL
8762 # Extract the first word of "dsymutil", so it can be a program name with args.
8763 set dummy dsymutil; ac_word=$2
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8765 $as_echo_n "checking for $ac_word... " >&6; }
8766 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8767 $as_echo_n "(cached) " >&6
8769 if test -n "$ac_ct_DSYMUTIL"; then
8770 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8776 test -z "$as_dir" && as_dir=.
8777 for ac_exec_ext in '' $ac_executable_extensions; do
8778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8779 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8789 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8790 if test -n "$ac_ct_DSYMUTIL"; then
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8792 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8795 $as_echo "no" >&6; }
8798 if test "x$ac_ct_DSYMUTIL" = x; then
8801 case $cross_compiling:$ac_tool_warned in
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8805 ac_tool_warned=yes ;;
8807 DSYMUTIL=$ac_ct_DSYMUTIL
8810 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8813 if test -n "$ac_tool_prefix"; then
8814 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8815 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8817 $as_echo_n "checking for $ac_word... " >&6; }
8818 if ${ac_cv_prog_NMEDIT+:} false; then :
8819 $as_echo_n "(cached) " >&6
8821 if test -n "$NMEDIT"; then
8822 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8828 test -z "$as_dir" && as_dir=.
8829 for ac_exec_ext in '' $ac_executable_extensions; do
8830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8831 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8841 NMEDIT=$ac_cv_prog_NMEDIT
8842 if test -n "$NMEDIT"; then
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8844 $as_echo "$NMEDIT" >&6; }
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8847 $as_echo "no" >&6; }
8852 if test -z "$ac_cv_prog_NMEDIT"; then
8853 ac_ct_NMEDIT=$NMEDIT
8854 # Extract the first word of "nmedit", so it can be a program name with args.
8855 set dummy nmedit; ac_word=$2
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8857 $as_echo_n "checking for $ac_word... " >&6; }
8858 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8859 $as_echo_n "(cached) " >&6
8861 if test -n "$ac_ct_NMEDIT"; then
8862 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8868 test -z "$as_dir" && as_dir=.
8869 for ac_exec_ext in '' $ac_executable_extensions; do
8870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8871 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8881 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8882 if test -n "$ac_ct_NMEDIT"; then
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8884 $as_echo "$ac_ct_NMEDIT" >&6; }
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8887 $as_echo "no" >&6; }
8890 if test "x$ac_ct_NMEDIT" = x; then
8893 case $cross_compiling:$ac_tool_warned in
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8897 ac_tool_warned=yes ;;
8899 NMEDIT=$ac_ct_NMEDIT
8902 NMEDIT="$ac_cv_prog_NMEDIT"
8905 if test -n "$ac_tool_prefix"; then
8906 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8907 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8909 $as_echo_n "checking for $ac_word... " >&6; }
8910 if ${ac_cv_prog_LIPO+:} false; then :
8911 $as_echo_n "(cached) " >&6
8913 if test -n "$LIPO"; then
8914 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8920 test -z "$as_dir" && as_dir=.
8921 for ac_exec_ext in '' $ac_executable_extensions; do
8922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8923 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8933 LIPO=$ac_cv_prog_LIPO
8934 if test -n "$LIPO"; then
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8936 $as_echo "$LIPO" >&6; }
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8939 $as_echo "no" >&6; }
8944 if test -z "$ac_cv_prog_LIPO"; then
8946 # Extract the first word of "lipo", so it can be a program name with args.
8947 set dummy lipo; ac_word=$2
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8949 $as_echo_n "checking for $ac_word... " >&6; }
8950 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8951 $as_echo_n "(cached) " >&6
8953 if test -n "$ac_ct_LIPO"; then
8954 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8960 test -z "$as_dir" && as_dir=.
8961 for ac_exec_ext in '' $ac_executable_extensions; do
8962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8963 ac_cv_prog_ac_ct_LIPO="lipo"
8964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8973 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8974 if test -n "$ac_ct_LIPO"; then
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8976 $as_echo "$ac_ct_LIPO" >&6; }
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8979 $as_echo "no" >&6; }
8982 if test "x$ac_ct_LIPO" = x; then
8985 case $cross_compiling:$ac_tool_warned in
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8989 ac_tool_warned=yes ;;
8994 LIPO="$ac_cv_prog_LIPO"
8997 if test -n "$ac_tool_prefix"; then
8998 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8999 set dummy ${ac_tool_prefix}otool; ac_word=$2
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9001 $as_echo_n "checking for $ac_word... " >&6; }
9002 if ${ac_cv_prog_OTOOL+:} false; then :
9003 $as_echo_n "(cached) " >&6
9005 if test -n "$OTOOL"; then
9006 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9012 test -z "$as_dir" && as_dir=.
9013 for ac_exec_ext in '' $ac_executable_extensions; do
9014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9015 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9025 OTOOL=$ac_cv_prog_OTOOL
9026 if test -n "$OTOOL"; then
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9028 $as_echo "$OTOOL" >&6; }
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9031 $as_echo "no" >&6; }
9036 if test -z "$ac_cv_prog_OTOOL"; then
9038 # Extract the first word of "otool", so it can be a program name with args.
9039 set dummy otool; ac_word=$2
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9041 $as_echo_n "checking for $ac_word... " >&6; }
9042 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9043 $as_echo_n "(cached) " >&6
9045 if test -n "$ac_ct_OTOOL"; then
9046 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9052 test -z "$as_dir" && as_dir=.
9053 for ac_exec_ext in '' $ac_executable_extensions; do
9054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9055 ac_cv_prog_ac_ct_OTOOL="otool"
9056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9065 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9066 if test -n "$ac_ct_OTOOL"; then
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9068 $as_echo "$ac_ct_OTOOL" >&6; }
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9071 $as_echo "no" >&6; }
9074 if test "x$ac_ct_OTOOL" = x; then
9077 case $cross_compiling:$ac_tool_warned in
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9080 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9081 ac_tool_warned=yes ;;
9086 OTOOL="$ac_cv_prog_OTOOL"
9089 if test -n "$ac_tool_prefix"; then
9090 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9091 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9093 $as_echo_n "checking for $ac_word... " >&6; }
9094 if ${ac_cv_prog_OTOOL64+:} false; then :
9095 $as_echo_n "(cached) " >&6
9097 if test -n "$OTOOL64"; then
9098 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9104 test -z "$as_dir" && as_dir=.
9105 for ac_exec_ext in '' $ac_executable_extensions; do
9106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9107 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9117 OTOOL64=$ac_cv_prog_OTOOL64
9118 if test -n "$OTOOL64"; then
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9120 $as_echo "$OTOOL64" >&6; }
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9123 $as_echo "no" >&6; }
9128 if test -z "$ac_cv_prog_OTOOL64"; then
9129 ac_ct_OTOOL64=$OTOOL64
9130 # Extract the first word of "otool64", so it can be a program name with args.
9131 set dummy otool64; ac_word=$2
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9133 $as_echo_n "checking for $ac_word... " >&6; }
9134 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9135 $as_echo_n "(cached) " >&6
9137 if test -n "$ac_ct_OTOOL64"; then
9138 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9144 test -z "$as_dir" && as_dir=.
9145 for ac_exec_ext in '' $ac_executable_extensions; do
9146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9147 ac_cv_prog_ac_ct_OTOOL64="otool64"
9148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9157 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9158 if test -n "$ac_ct_OTOOL64"; then
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9160 $as_echo "$ac_ct_OTOOL64" >&6; }
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9163 $as_echo "no" >&6; }
9166 if test "x$ac_ct_OTOOL64" = x; then
9169 case $cross_compiling:$ac_tool_warned in
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9173 ac_tool_warned=yes ;;
9175 OTOOL64=$ac_ct_OTOOL64
9178 OTOOL64="$ac_cv_prog_OTOOL64"
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9208 $as_echo_n "checking for -single_module linker flag... " >&6; }
9209 if ${lt_cv_apple_cc_single_mod+:} false; then :
9210 $as_echo_n "(cached) " >&6
9212 lt_cv_apple_cc_single_mod=no
9213 if test -z "${LT_MULTI_MODULE}"; then
9214 # By default we will add the -single_module flag. You can override
9215 # by either setting the environment variable LT_MULTI_MODULE
9216 # non-empty at configure time, or by adding -multi_module to the
9218 rm -rf libconftest.dylib*
9219 echo "int foo(void){return 1;}" > conftest.c
9220 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9221 -dynamiclib -Wl,-single_module conftest.c" >&5
9222 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9223 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9225 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9226 lt_cv_apple_cc_single_mod=yes
9228 cat conftest.err >&5
9230 rm -rf libconftest.dylib*
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9235 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9237 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9238 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9239 $as_echo_n "(cached) " >&6
9241 lt_cv_ld_exported_symbols_list=no
9242 save_LDFLAGS=$LDFLAGS
9243 echo "_main" > conftest.sym
9244 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9246 /* end confdefs.h. */
9256 if ac_fn_c_try_link "$LINENO"; then :
9257 lt_cv_ld_exported_symbols_list=yes
9259 lt_cv_ld_exported_symbols_list=no
9261 rm -f core conftest.err conftest.$ac_objext \
9262 conftest$ac_exeext conftest.$ac_ext
9263 LDFLAGS="$save_LDFLAGS"
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9267 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9269 $as_echo_n "checking for -force_load linker flag... " >&6; }
9270 if ${lt_cv_ld_force_load+:} false; then :
9271 $as_echo_n "(cached) " >&6
9273 lt_cv_ld_force_load=no
9274 cat > conftest.c << _LT_EOF
9275 int forced_loaded() { return 2;}
9277 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9278 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9279 echo "$AR cru libconftest.a conftest.o" >&5
9280 $AR cru libconftest.a conftest.o 2>&5
9281 echo "$RANLIB libconftest.a" >&5
9282 $RANLIB libconftest.a 2>&5
9283 cat > conftest.c << _LT_EOF
9284 int main() { return 0;}
9286 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9287 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9289 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9290 lt_cv_ld_force_load=yes
9292 cat conftest.err >&5
9294 rm -f conftest.err libconftest.a conftest conftest.c
9295 rm -rf conftest.dSYM
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9299 $as_echo "$lt_cv_ld_force_load" >&6; }
9301 rhapsody* | darwin1.[012])
9302 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9304 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9305 darwin*) # darwin 5.x on
9306 # if running on 10.5 or later, the deployment target defaults
9307 # to the OS version, if on x86, and 10.4, the deployment
9308 # target defaults to 10.4. Don't you love it?
9309 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9310 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9311 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9313 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9315 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9319 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9320 _lt_dar_single_mod='$single_module'
9322 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9323 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9325 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9327 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9328 _lt_dsymutil='~$DSYMUTIL $lib || :'
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9337 $as_echo_n "checking for ANSI C header files... " >&6; }
9338 if ${ac_cv_header_stdc+:} false; then :
9339 $as_echo_n "(cached) " >&6
9341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9342 /* end confdefs.h. */
9356 if ac_fn_c_try_compile "$LINENO"; then :
9357 ac_cv_header_stdc=yes
9359 ac_cv_header_stdc=no
9361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9363 if test $ac_cv_header_stdc = yes; then
9364 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9366 /* end confdefs.h. */
9370 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9371 $EGREP "memchr" >/dev/null 2>&1; then :
9374 ac_cv_header_stdc=no
9380 if test $ac_cv_header_stdc = yes; then
9381 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9383 /* end confdefs.h. */
9387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9388 $EGREP "free" >/dev/null 2>&1; then :
9391 ac_cv_header_stdc=no
9397 if test $ac_cv_header_stdc = yes; then
9398 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9399 if test "$cross_compiling" = yes; then :
9402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9403 /* end confdefs.h. */
9406 #if ((' ' & 0x0FF) == 0x020)
9407 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9408 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9410 # define ISLOWER(c) \
9411 (('a' <= (c) && (c) <= 'i') \
9412 || ('j' <= (c) && (c) <= 'r') \
9413 || ('s' <= (c) && (c) <= 'z'))
9414 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9417 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9422 for (i = 0; i < 256; i++)
9423 if (XOR (islower (i), ISLOWER (i))
9424 || toupper (i) != TOUPPER (i))
9429 if ac_fn_c_try_run "$LINENO"; then :
9432 ac_cv_header_stdc=no
9434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9435 conftest.$ac_objext conftest.beam conftest.$ac_ext
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9441 $as_echo "$ac_cv_header_stdc" >&6; }
9442 if test $ac_cv_header_stdc = yes; then
9444 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9448 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9449 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9450 inttypes.h stdint.h unistd.h
9452 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9453 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9455 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9456 cat >>confdefs.h <<_ACEOF
9457 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9465 for ac_header in dlfcn.h
9467 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9469 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9470 cat >>confdefs.h <<_ACEOF
9471 #define HAVE_DLFCN_H 1
9491 # Check whether --enable-shared was given.
9492 if test "${enable_shared+set}" = set; then :
9493 enableval=$enable_shared; p=${PACKAGE-default}
9495 yes) enable_shared=yes ;;
9496 no) enable_shared=no ;;
9499 # Look at the argument we got. We use all the common list separators.
9500 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9501 for pkg in $enableval; do
9503 if test "X$pkg" = "X$p"; then
9522 # Check whether --enable-static was given.
9523 if test "${enable_static+set}" = set; then :
9524 enableval=$enable_static; p=${PACKAGE-default}
9526 yes) enable_static=yes ;;
9527 no) enable_static=no ;;
9530 # Look at the argument we got. We use all the common list separators.
9531 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9532 for pkg in $enableval; do
9534 if test "X$pkg" = "X$p"; then
9554 # Check whether --with-pic was given.
9555 if test "${with_pic+set}" = set; then :
9556 withval=$with_pic; pic_mode="$withval"
9562 test -z "$pic_mode" && pic_mode=default
9570 # Check whether --enable-fast-install was given.
9571 if test "${enable_fast_install+set}" = set; then :
9572 enableval=$enable_fast_install; p=${PACKAGE-default}
9574 yes) enable_fast_install=yes ;;
9575 no) enable_fast_install=no ;;
9577 enable_fast_install=no
9578 # Look at the argument we got. We use all the common list separators.
9579 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9580 for pkg in $enableval; do
9582 if test "X$pkg" = "X$p"; then
9583 enable_fast_install=yes
9590 enable_fast_install=yes
9603 # This can be used to rebuild libtool when needed
9604 LIBTOOL_DEPS="$ltmain"
9606 # Always use our own libtool.
9607 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9634 test -z "$LN_S" && LN_S="ln -s"
9649 if test -n "${ZSH_VERSION+set}" ; then
9650 setopt NO_GLOB_SUBST
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9654 $as_echo_n "checking for objdir... " >&6; }
9655 if ${lt_cv_objdir+:} false; then :
9656 $as_echo_n "(cached) " >&6
9658 rm -f .libs 2>/dev/null
9659 mkdir .libs 2>/dev/null
9660 if test -d .libs; then
9663 # MS-DOS does not allow filenames that begin with a dot.
9666 rmdir .libs 2>/dev/null
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9669 $as_echo "$lt_cv_objdir" >&6; }
9670 objdir=$lt_cv_objdir
9676 cat >>confdefs.h <<_ACEOF
9677 #define LT_OBJDIR "$lt_cv_objdir/"
9685 # AIX sometimes has problems with the GCC collect2 program. For some
9686 # reason, if we set the COLLECT_NAMES environment variable, the problems
9687 # vanish in a puff of smoke.
9688 if test "X${COLLECT_NAMES+set}" != Xset; then
9690 export COLLECT_NAMES
9697 can_build_shared=yes
9699 # All known linkers require a `.a' archive for static linking (except MSVC,
9700 # which needs '.lib').
9703 with_gnu_ld="$lt_cv_prog_gnu_ld"
9706 old_CFLAGS="$CFLAGS"
9708 # Set sane defaults for various variables
9709 test -z "$CC" && CC=cc
9710 test -z "$LTCC" && LTCC=$CC
9711 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9712 test -z "$LD" && LD=ld
9713 test -z "$ac_objext" && ac_objext=o
9715 for cc_temp in $compiler""; do
9717 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9718 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9723 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9726 # Only perform the check for file, if the check method requires it
9727 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9728 case $deplibs_check_method in
9730 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9732 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9733 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9734 $as_echo_n "(cached) " >&6
9738 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9741 lt_save_MAGIC_CMD="$MAGIC_CMD"
9742 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9743 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9744 for ac_dir in $ac_dummy; do
9746 test -z "$ac_dir" && ac_dir=.
9747 if test -f $ac_dir/${ac_tool_prefix}file; then
9748 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9749 if test -n "$file_magic_test_file"; then
9750 case $deplibs_check_method in
9752 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9753 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9754 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9755 $EGREP "$file_magic_regex" > /dev/null; then
9760 *** Warning: the command libtool uses to detect shared libraries,
9761 *** $file_magic_cmd, produces output that libtool cannot recognize.
9762 *** The result is that libtool may fail to recognize shared libraries
9763 *** as such. This will affect the creation of libtool libraries that
9764 *** depend on shared libraries, but programs linked with such libtool
9765 *** libraries will work regardless of this problem. Nevertheless, you
9766 *** may want to report the problem to your system manager and/or to
9767 *** bug-libtool@gnu.org
9777 MAGIC_CMD="$lt_save_MAGIC_CMD"
9782 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9783 if test -n "$MAGIC_CMD"; then
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9785 $as_echo "$MAGIC_CMD" >&6; }
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9788 $as_echo "no" >&6; }
9795 if test -z "$lt_cv_path_MAGIC_CMD"; then
9796 if test -n "$ac_tool_prefix"; then
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9798 $as_echo_n "checking for file... " >&6; }
9799 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9800 $as_echo_n "(cached) " >&6
9804 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9807 lt_save_MAGIC_CMD="$MAGIC_CMD"
9808 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9809 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9810 for ac_dir in $ac_dummy; do
9812 test -z "$ac_dir" && ac_dir=.
9813 if test -f $ac_dir/file; then
9814 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9815 if test -n "$file_magic_test_file"; then
9816 case $deplibs_check_method in
9818 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9819 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9820 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9821 $EGREP "$file_magic_regex" > /dev/null; then
9826 *** Warning: the command libtool uses to detect shared libraries,
9827 *** $file_magic_cmd, produces output that libtool cannot recognize.
9828 *** The result is that libtool may fail to recognize shared libraries
9829 *** as such. This will affect the creation of libtool libraries that
9830 *** depend on shared libraries, but programs linked with such libtool
9831 *** libraries will work regardless of this problem. Nevertheless, you
9832 *** may want to report the problem to your system manager and/or to
9833 *** bug-libtool@gnu.org
9843 MAGIC_CMD="$lt_save_MAGIC_CMD"
9848 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9849 if test -n "$MAGIC_CMD"; then
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9851 $as_echo "$MAGIC_CMD" >&6; }
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9854 $as_echo "no" >&6; }
9867 # Use C for the default configuration in the libtool script
9871 ac_cpp='$CPP $CPPFLAGS'
9872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9877 # Source file extension for C test sources.
9880 # Object file extension for compiled C test sources.
9884 # Code to be used in simple compile tests
9885 lt_simple_compile_test_code="int some_variable = 0;"
9887 # Code to be used in simple link tests
9888 lt_simple_link_test_code='int main(){return(0);}'
9896 # If no C compiler was specified, use CC.
9899 # If no C compiler flags were specified, use CFLAGS.
9900 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9902 # Allow CC to be a program name with arguments.
9905 # Save the default compiler, since it gets overwritten when the other
9906 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9907 compiler_DEFAULT=$CC
9909 # save warnings/boilerplate of simple test code
9910 ac_outfile=conftest.$ac_objext
9911 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9912 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9913 _lt_compiler_boilerplate=`cat conftest.err`
9916 ac_outfile=conftest.$ac_objext
9917 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9918 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9919 _lt_linker_boilerplate=`cat conftest.err`
9924 ## There is no encapsulation within the following macros, do not change
9925 ## the running order or otherwise move them around unless you know exactly
9926 ## what you are doing...
9927 if test -n "$compiler"; then
9929 lt_prog_compiler_no_builtin_flag=
9931 if test "$GCC" = yes; then
9932 case $cc_basename in
9934 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9936 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9940 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9941 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9942 $as_echo_n "(cached) " >&6
9944 lt_cv_prog_compiler_rtti_exceptions=no
9945 ac_outfile=conftest.$ac_objext
9946 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9947 lt_compiler_flag="-fno-rtti -fno-exceptions"
9948 # Insert the option either (1) after the last *FLAGS variable, or
9949 # (2) before a word containing "conftest.", or (3) at the end.
9950 # Note that $ac_compile itself does not contain backslashes and begins
9951 # with a dollar sign (not a hyphen), so the echo should work correctly.
9952 # The option is referenced via a variable to avoid confusing sed.
9953 lt_compile=`echo "$ac_compile" | $SED \
9954 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9955 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9956 -e 's:$: $lt_compiler_flag:'`
9957 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9958 (eval "$lt_compile" 2>conftest.err)
9960 cat conftest.err >&5
9961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962 if (exit $ac_status) && test -s "$ac_outfile"; then
9963 # The compiler can only warn and ignore the option if not recognized
9964 # So say no if there are warnings other than the usual output.
9965 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9966 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9967 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9968 lt_cv_prog_compiler_rtti_exceptions=yes
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9975 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9977 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9978 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9990 lt_prog_compiler_wl=
9991 lt_prog_compiler_pic=
9992 lt_prog_compiler_static=
9995 if test "$GCC" = yes; then
9996 lt_prog_compiler_wl='-Wl,'
9997 lt_prog_compiler_static='-static'
10001 # All AIX code is PIC.
10002 if test "$host_cpu" = ia64; then
10003 # AIX 5 now supports IA64 processor
10004 lt_prog_compiler_static='-Bstatic'
10011 # see comment about AmigaOS4 .so support
10012 lt_prog_compiler_pic='-fPIC'
10015 # FIXME: we need at least 68020 code to build shared libraries, but
10016 # adding the `-m68020' flag to GCC prevents building anything better,
10018 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10023 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10024 # PIC is the default for these OSes.
10027 mingw* | cygwin* | pw32* | os2* | cegcc*)
10028 # This hack is so that the source file can tell whether it is being
10029 # built for inclusion in a dll (and should export symbols for example).
10030 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10031 # (--disable-auto-import) libraries
10032 lt_prog_compiler_pic='-DDLL_EXPORT'
10035 darwin* | rhapsody*)
10036 # PIC is the default on this platform
10037 # Common symbols not allowed in MH_DYLIB files
10038 lt_prog_compiler_pic='-fno-common'
10042 # PIC is the default for Haiku.
10043 # The "-static" flag exists, but is broken.
10044 lt_prog_compiler_static=
10048 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10049 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10050 # sets the default TLS model and affects inlining.
10056 lt_prog_compiler_pic='-fPIC'
10062 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10063 # Instead, we relocate shared libraries at runtime.
10067 # Just because we use GCC doesn't mean we suddenly get shared libraries
10068 # on systems that don't support them.
10069 lt_prog_compiler_can_build_shared=no
10074 # QNX uses GNU C++, but need to define -shared option too, otherwise
10075 # it will coredump.
10076 lt_prog_compiler_pic='-fPIC -shared'
10080 if test -d /usr/nec; then
10081 lt_prog_compiler_pic=-Kconform_pic
10086 lt_prog_compiler_pic='-fPIC'
10090 case $cc_basename in
10091 nvcc*) # Cuda Compiler Driver 2.2
10092 lt_prog_compiler_wl='-Xlinker '
10093 lt_prog_compiler_pic='-Xcompiler -fPIC'
10097 # PORTME Check for flag to pass linker flags through the system compiler.
10100 lt_prog_compiler_wl='-Wl,'
10101 if test "$host_cpu" = ia64; then
10102 # AIX 5 now supports IA64 processor
10103 lt_prog_compiler_static='-Bstatic'
10105 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10109 mingw* | cygwin* | pw32* | os2* | cegcc*)
10110 # This hack is so that the source file can tell whether it is being
10111 # built for inclusion in a dll (and should export symbols for example).
10112 lt_prog_compiler_pic='-DDLL_EXPORT'
10115 hpux9* | hpux10* | hpux11*)
10116 lt_prog_compiler_wl='-Wl,'
10117 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10118 # not for PA HP-UX.
10124 lt_prog_compiler_pic='+Z'
10127 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10128 lt_prog_compiler_static='${wl}-a ${wl}archive'
10131 irix5* | irix6* | nonstopux*)
10132 lt_prog_compiler_wl='-Wl,'
10133 # PIC (with -KPIC) is the default.
10134 lt_prog_compiler_static='-non_shared'
10137 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10138 case $cc_basename in
10139 # old Intel for x86_64 which still supported -KPIC.
10141 lt_prog_compiler_wl='-Wl,'
10142 lt_prog_compiler_pic='-KPIC'
10143 lt_prog_compiler_static='-static'
10145 # icc used to be incompatible with GCC.
10146 # ICC 10 doesn't accept -KPIC any more.
10148 lt_prog_compiler_wl='-Wl,'
10149 lt_prog_compiler_pic='-fPIC'
10150 lt_prog_compiler_static='-static'
10152 # Lahey Fortran 8.1.
10154 lt_prog_compiler_wl='-Wl,'
10155 lt_prog_compiler_pic='--shared'
10156 lt_prog_compiler_static='--static'
10159 # NAG Fortran compiler
10160 lt_prog_compiler_wl='-Wl,-Wl,,'
10161 lt_prog_compiler_pic='-PIC'
10162 lt_prog_compiler_static='-Bstatic'
10164 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10165 # Portland Group compilers (*not* the Pentium gcc compiler,
10166 # which looks to be a dead project)
10167 lt_prog_compiler_wl='-Wl,'
10168 lt_prog_compiler_pic='-fpic'
10169 lt_prog_compiler_static='-Bstatic'
10172 lt_prog_compiler_wl='-Wl,'
10173 # All Alpha code is PIC.
10174 lt_prog_compiler_static='-non_shared'
10176 xl* | bgxl* | bgf* | mpixl*)
10177 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10178 lt_prog_compiler_wl='-Wl,'
10179 lt_prog_compiler_pic='-qpic'
10180 lt_prog_compiler_static='-qstaticlink'
10183 case `$CC -V 2>&1 | sed 5q` in
10184 *Sun\ F* | *Sun*Fortran*)
10185 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10186 lt_prog_compiler_pic='-KPIC'
10187 lt_prog_compiler_static='-Bstatic'
10188 lt_prog_compiler_wl=''
10192 lt_prog_compiler_pic='-KPIC'
10193 lt_prog_compiler_static='-Bstatic'
10194 lt_prog_compiler_wl='-Wl,'
10202 lt_prog_compiler_pic='-KPIC'
10203 lt_prog_compiler_static='-Bstatic'
10207 # QNX uses GNU C++, but need to define -shared option too, otherwise
10208 # it will coredump.
10209 lt_prog_compiler_pic='-fPIC -shared'
10212 osf3* | osf4* | osf5*)
10213 lt_prog_compiler_wl='-Wl,'
10214 # All OSF/1 code is PIC.
10215 lt_prog_compiler_static='-non_shared'
10219 lt_prog_compiler_static='-non_shared'
10223 lt_prog_compiler_pic='-KPIC'
10224 lt_prog_compiler_static='-Bstatic'
10225 case $cc_basename in
10226 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10227 lt_prog_compiler_wl='-Qoption ld ';;
10229 lt_prog_compiler_wl='-Wl,';;
10234 lt_prog_compiler_wl='-Qoption ld '
10235 lt_prog_compiler_pic='-PIC'
10236 lt_prog_compiler_static='-Bstatic'
10239 sysv4 | sysv4.2uw2* | sysv4.3*)
10240 lt_prog_compiler_wl='-Wl,'
10241 lt_prog_compiler_pic='-KPIC'
10242 lt_prog_compiler_static='-Bstatic'
10246 if test -d /usr/nec ;then
10247 lt_prog_compiler_pic='-Kconform_pic'
10248 lt_prog_compiler_static='-Bstatic'
10252 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10253 lt_prog_compiler_wl='-Wl,'
10254 lt_prog_compiler_pic='-KPIC'
10255 lt_prog_compiler_static='-Bstatic'
10259 lt_prog_compiler_wl='-Wl,'
10260 lt_prog_compiler_can_build_shared=no
10264 lt_prog_compiler_pic='-pic'
10265 lt_prog_compiler_static='-Bstatic'
10269 lt_prog_compiler_can_build_shared=no
10275 # For platforms which do not support PIC, -DPIC is meaningless:
10277 lt_prog_compiler_pic=
10280 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10285 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10286 if ${lt_cv_prog_compiler_pic+:} false; then :
10287 $as_echo_n "(cached) " >&6
10289 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10292 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10293 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10296 # Check to make sure the PIC flag actually works.
10298 if test -n "$lt_prog_compiler_pic"; then
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10300 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10301 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10302 $as_echo_n "(cached) " >&6
10304 lt_cv_prog_compiler_pic_works=no
10305 ac_outfile=conftest.$ac_objext
10306 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10307 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10308 # Insert the option either (1) after the last *FLAGS variable, or
10309 # (2) before a word containing "conftest.", or (3) at the end.
10310 # Note that $ac_compile itself does not contain backslashes and begins
10311 # with a dollar sign (not a hyphen), so the echo should work correctly.
10312 # The option is referenced via a variable to avoid confusing sed.
10313 lt_compile=`echo "$ac_compile" | $SED \
10314 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10315 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10316 -e 's:$: $lt_compiler_flag:'`
10317 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10318 (eval "$lt_compile" 2>conftest.err)
10320 cat conftest.err >&5
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 if (exit $ac_status) && test -s "$ac_outfile"; then
10323 # The compiler can only warn and ignore the option if not recognized
10324 # So say no if there are warnings other than the usual output.
10325 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10326 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10327 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10328 lt_cv_prog_compiler_pic_works=yes
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10335 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10337 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10338 case $lt_prog_compiler_pic in
10340 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10343 lt_prog_compiler_pic=
10344 lt_prog_compiler_can_build_shared=no
10360 # Check to make sure the static flag actually works.
10362 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10364 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10365 if ${lt_cv_prog_compiler_static_works+:} false; then :
10366 $as_echo_n "(cached) " >&6
10368 lt_cv_prog_compiler_static_works=no
10369 save_LDFLAGS="$LDFLAGS"
10370 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10371 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10372 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10373 # The linker can only warn and ignore the option if not recognized
10374 # So say no if there are warnings
10375 if test -s conftest.err; then
10376 # Append any errors to the config.log.
10377 cat conftest.err 1>&5
10378 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10379 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10380 if diff conftest.exp conftest.er2 >/dev/null; then
10381 lt_cv_prog_compiler_static_works=yes
10384 lt_cv_prog_compiler_static_works=yes
10388 LDFLAGS="$save_LDFLAGS"
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10392 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10394 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10397 lt_prog_compiler_static=
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10407 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10408 if ${lt_cv_prog_compiler_c_o+:} false; then :
10409 $as_echo_n "(cached) " >&6
10411 lt_cv_prog_compiler_c_o=no
10412 $RM -r conftest 2>/dev/null
10416 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10418 lt_compiler_flag="-o out/conftest2.$ac_objext"
10419 # Insert the option either (1) after the last *FLAGS variable, or
10420 # (2) before a word containing "conftest.", or (3) at the end.
10421 # Note that $ac_compile itself does not contain backslashes and begins
10422 # with a dollar sign (not a hyphen), so the echo should work correctly.
10423 lt_compile=`echo "$ac_compile" | $SED \
10424 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10425 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10426 -e 's:$: $lt_compiler_flag:'`
10427 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10428 (eval "$lt_compile" 2>out/conftest.err)
10430 cat out/conftest.err >&5
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10434 # The compiler can only warn and ignore the option if not recognized
10435 # So say no if there are warnings
10436 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10437 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10438 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10439 lt_cv_prog_compiler_c_o=yes
10444 # SGI C++ compiler will create directory out/ii_files/ for
10445 # template instantiation
10446 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10447 $RM out/* && rmdir out
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10454 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10462 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10463 if ${lt_cv_prog_compiler_c_o+:} false; then :
10464 $as_echo_n "(cached) " >&6
10466 lt_cv_prog_compiler_c_o=no
10467 $RM -r conftest 2>/dev/null
10471 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10473 lt_compiler_flag="-o out/conftest2.$ac_objext"
10474 # Insert the option either (1) after the last *FLAGS variable, or
10475 # (2) before a word containing "conftest.", or (3) at the end.
10476 # Note that $ac_compile itself does not contain backslashes and begins
10477 # with a dollar sign (not a hyphen), so the echo should work correctly.
10478 lt_compile=`echo "$ac_compile" | $SED \
10479 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10480 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10481 -e 's:$: $lt_compiler_flag:'`
10482 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10483 (eval "$lt_compile" 2>out/conftest.err)
10485 cat out/conftest.err >&5
10486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10489 # The compiler can only warn and ignore the option if not recognized
10490 # So say no if there are warnings
10491 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10492 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10493 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10494 lt_cv_prog_compiler_c_o=yes
10499 # SGI C++ compiler will create directory out/ii_files/ for
10500 # template instantiation
10501 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10502 $RM out/* && rmdir out
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10509 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10514 hard_links="nottested"
10515 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10516 # do not overwrite the value of need_locks provided by the user
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10518 $as_echo_n "checking if we can lock with hard links... " >&6; }
10521 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10523 ln conftest.a conftest.b 2>&5 || hard_links=no
10524 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10526 $as_echo "$hard_links" >&6; }
10527 if test "$hard_links" = no; then
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10529 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10542 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10545 allow_undefined_flag=
10546 always_export_symbols=no
10548 archive_expsym_cmds=
10549 compiler_needs_object=no
10550 enable_shared_with_static_runtimes=no
10551 export_dynamic_flag_spec=
10552 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10553 hardcode_automatic=no
10555 hardcode_direct_absolute=no
10556 hardcode_libdir_flag_spec=
10557 hardcode_libdir_flag_spec_ld=
10558 hardcode_libdir_separator=
10559 hardcode_minus_L=no
10560 hardcode_shlibpath_var=unsupported
10562 link_all_deplibs=unknown
10564 module_expsym_cmds=
10565 old_archive_from_new_cmds=
10566 old_archive_from_expsyms_cmds=
10567 thread_safe_flag_spec=
10568 whole_archive_flag_spec=
10569 # include_expsyms should be a list of space-separated symbols to be *always*
10570 # included in the symbol list
10572 # exclude_expsyms can be an extended regexp of symbols to exclude
10573 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10574 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10575 # as well as any symbol that contains `d'.
10576 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10577 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10578 # platforms (ab)use it in PIC code, but their linkers get confused if
10579 # the symbol is explicitly referenced. Since portable code cannot
10580 # rely on this symbol name, it's probably fine to never include it in
10581 # preloaded symbol tables.
10582 # Exclude shared library initialization/finalization symbols.
10583 extract_expsyms_cmds=
10586 cygwin* | mingw* | pw32* | cegcc*)
10587 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10588 # When not using gcc, we currently assume that we are using
10589 # Microsoft Visual C++.
10590 if test "$GCC" != yes; then
10595 # we just hope/assume this is gcc and not c89 (= MSVC++)
10605 # On some targets, GNU ld is compatible enough with the native linker
10606 # that we're better off using the native interface for both.
10607 lt_use_gnu_ld_interface=no
10608 if test "$with_gnu_ld" = yes; then
10611 # The AIX port of GNU ld has always aspired to compatibility
10612 # with the native linker. However, as the warning in the GNU ld
10613 # block says, versions before 2.19.5* couldn't really create working
10614 # shared libraries, regardless of the interface used.
10615 case `$LD -v 2>&1` in
10616 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10617 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10618 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10620 lt_use_gnu_ld_interface=yes
10625 lt_use_gnu_ld_interface=yes
10630 if test "$lt_use_gnu_ld_interface" = yes; then
10631 # If archive_cmds runs LD, not CC, wlarc should be empty
10634 # Set some defaults for GNU ld with shared library support. These
10635 # are reset later if shared libraries are not supported. Putting them
10636 # here allows them to be overridden if necessary.
10637 runpath_var=LD_RUN_PATH
10638 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10639 export_dynamic_flag_spec='${wl}--export-dynamic'
10640 # ancient GNU ld didn't support --whole-archive et. al.
10641 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10642 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10644 whole_archive_flag_spec=
10646 supports_anon_versioning=no
10647 case `$LD -v 2>&1` in
10648 *GNU\ gold*) supports_anon_versioning=yes ;;
10649 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10650 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10651 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10652 *\ 2.11.*) ;; # other 2.11 versions
10653 *) supports_anon_versioning=yes ;;
10656 # See if GNU ld supports shared libraries.
10659 # On AIX/PPC, the GNU linker is very broken
10660 if test "$host_cpu" != ia64; then
10664 *** Warning: the GNU linker, at least up to release 2.19, is reported
10665 *** to be unable to reliably create shared libraries on AIX.
10666 *** Therefore, libtool is disabling shared libraries support. If you
10667 *** really care for shared libraries, you may want to install binutils
10668 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10669 *** You will then need to restart the configuration process.
10678 # see comment about AmigaOS4 .so support
10679 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10680 archive_expsym_cmds=''
10683 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)'
10684 hardcode_libdir_flag_spec='-L$libdir'
10685 hardcode_minus_L=yes
10691 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10692 allow_undefined_flag=unsupported
10693 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10694 # support --undefined. This deserves some investigation. FIXME
10695 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10701 cygwin* | mingw* | pw32* | cegcc*)
10702 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10703 # as there is no search path for DLLs.
10704 hardcode_libdir_flag_spec='-L$libdir'
10705 export_dynamic_flag_spec='${wl}--export-all-symbols'
10706 allow_undefined_flag=unsupported
10707 always_export_symbols=no
10708 enable_shared_with_static_runtimes=yes
10709 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'
10710 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10712 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10713 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10714 # If the export-symbols file already is a .def file (1st line
10715 # is EXPORTS), use it as is; otherwise, prepend...
10716 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10717 cp $export_symbols $output_objdir/$soname.def;
10719 echo EXPORTS > $output_objdir/$soname.def;
10720 cat $export_symbols >> $output_objdir/$soname.def;
10722 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10729 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10730 link_all_deplibs=yes
10735 hardcode_shlibpath_var=no
10736 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10737 export_dynamic_flag_spec='${wl}-E'
10738 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10739 # Instead, shared libraries are loaded at an image base (0x10000000 by
10740 # default) and relocated if they conflict, which is a slow very memory
10741 # consuming and fragmenting process. To avoid this, we pick a random,
10742 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10743 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10744 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10745 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'
10748 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10750 if test "$host_os" = linux-dietlibc; then
10751 case $cc_basename in
10752 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10755 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10756 && test "$tmp_diet" = no
10758 tmp_addflag=' $pic_flag'
10759 tmp_sharedflag='-shared'
10760 case $cc_basename,$host_cpu in
10761 pgcc*) # Portland Group C compiler
10762 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'
10763 tmp_addflag=' $pic_flag'
10765 pgf77* | pgf90* | pgf95* | pgfortran*)
10766 # Portland Group f77 and f90 compilers
10767 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'
10768 tmp_addflag=' $pic_flag -Mnomain' ;;
10769 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10770 tmp_addflag=' -i_dynamic' ;;
10771 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10772 tmp_addflag=' -i_dynamic -nofor_main' ;;
10773 ifc* | ifort*) # Intel Fortran compiler
10774 tmp_addflag=' -nofor_main' ;;
10775 lf95*) # Lahey Fortran 8.1
10776 whole_archive_flag_spec=
10777 tmp_sharedflag='--shared' ;;
10778 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10779 tmp_sharedflag='-qmkshrobj'
10781 nvcc*) # Cuda Compiler Driver 2.2
10782 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'
10783 compiler_needs_object=yes
10786 case `$CC -V 2>&1 | sed 5q` in
10787 *Sun\ C*) # Sun C 5.9
10788 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'
10789 compiler_needs_object=yes
10790 tmp_sharedflag='-G' ;;
10791 *Sun\ F*) # Sun Fortran 8.3
10792 tmp_sharedflag='-G' ;;
10794 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10796 if test "x$supports_anon_versioning" = xyes; then
10797 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10798 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10799 echo "local: *; };" >> $output_objdir/$libname.ver~
10800 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10803 case $cc_basename in
10804 xlf* | bgf* | bgxlf* | mpixlf*)
10805 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10806 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10807 hardcode_libdir_flag_spec=
10808 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10809 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10810 if test "x$supports_anon_versioning" = xyes; then
10811 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10812 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10813 echo "local: *; };" >> $output_objdir/$libname.ver~
10814 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10824 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10825 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10828 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10829 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10834 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10838 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10839 *** create shared libraries on Solaris systems. Therefore, libtool
10840 *** is disabling shared libraries support. We urge you to upgrade GNU
10841 *** binutils to release 2.9.1 or newer. Another option is to modify
10842 *** your PATH or compiler configuration so that the native linker is
10843 *** used, and then restart.
10846 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10847 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10848 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10854 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10855 case `$LD -v 2>&1` in
10856 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10860 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10861 *** reliably create shared libraries on SCO systems. Therefore, libtool
10862 *** is disabling shared libraries support. We urge you to upgrade GNU
10863 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10864 *** your PATH or compiler configuration so that the native linker is
10865 *** used, and then restart.
10870 # For security reasons, it is highly recommended that you always
10871 # use absolute paths for naming shared libraries, and exclude the
10872 # DT_RUNPATH tag from executables and libraries. But doing so
10873 # requires that you compile everything twice, which is a pain.
10874 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10875 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10876 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10877 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10886 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10888 hardcode_direct=yes
10889 hardcode_shlibpath_var=no
10893 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10894 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10895 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10902 if test "$ld_shlibs" = no; then
10904 hardcode_libdir_flag_spec=
10905 export_dynamic_flag_spec=
10906 whole_archive_flag_spec=
10909 # PORTME fill in a description of your system's linker (not GNU ld)
10912 allow_undefined_flag=unsupported
10913 always_export_symbols=yes
10914 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'
10915 # Note: this linker hardcodes the directories in LIBPATH if there
10916 # are no directories specified by -L.
10917 hardcode_minus_L=yes
10918 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10919 # Neither direct hardcoding nor static linking is supported with a
10921 hardcode_direct=unsupported
10926 if test "$host_cpu" = ia64; then
10927 # On IA64, the linker does run time linking by default, so we don't
10928 # have to do anything special.
10929 aix_use_runtimelinking=no
10930 exp_sym_flag='-Bexport'
10933 # If we're using GNU nm, then we don't want the "-C" option.
10934 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10935 # Also, AIX nm treats weak defined symbols like other global
10936 # defined symbols, whereas GNU nm marks them as "W".
10937 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10938 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'
10940 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'
10942 aix_use_runtimelinking=no
10944 # Test if we are trying to use run time linking or normal
10945 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10946 # need to do runtime linking.
10947 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10948 for ld_flag in $LDFLAGS; do
10949 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10950 aix_use_runtimelinking=yes
10957 exp_sym_flag='-bexport'
10958 no_entry_flag='-bnoentry'
10961 # When large executables or shared objects are built, AIX ld can
10962 # have problems creating the table of contents. If linking a library
10963 # or program results in "error TOC overflow" add -mminimal-toc to
10964 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10965 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10968 hardcode_direct=yes
10969 hardcode_direct_absolute=yes
10970 hardcode_libdir_separator=':'
10971 link_all_deplibs=yes
10972 file_list_spec='${wl}-f,'
10974 if test "$GCC" = yes; then
10975 case $host_os in aix4.[012]|aix4.[012].*)
10976 # We only want to do this on AIX 4.2 and lower, the check
10977 # below for broken collect2 doesn't work under 4.3+
10978 collect2name=`${CC} -print-prog-name=collect2`
10979 if test -f "$collect2name" &&
10980 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10982 # We have reworked collect2
10985 # We have old collect2
10986 hardcode_direct=unsupported
10987 # It fails to find uninstalled libraries when the uninstalled
10988 # path is not listed in the libpath. Setting hardcode_minus_L
10989 # to unsupported forces relinking
10990 hardcode_minus_L=yes
10991 hardcode_libdir_flag_spec='-L$libdir'
10992 hardcode_libdir_separator=
10996 shared_flag='-shared'
10997 if test "$aix_use_runtimelinking" = yes; then
10998 shared_flag="$shared_flag "'${wl}-G'
11002 if test "$host_cpu" = ia64; then
11003 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11004 # chokes on -Wl,-G. The following line is correct:
11007 if test "$aix_use_runtimelinking" = yes; then
11008 shared_flag='${wl}-G'
11010 shared_flag='${wl}-bM:SRE'
11015 export_dynamic_flag_spec='${wl}-bexpall'
11016 # It seems that -bexpall does not export symbols beginning with
11017 # underscore (_), so it is better to generate a list of symbols to export.
11018 always_export_symbols=yes
11019 if test "$aix_use_runtimelinking" = yes; then
11020 # Warning - without using the other runtime loading flags (-brtl),
11021 # -berok will link without error, but may produce a broken library.
11022 allow_undefined_flag='-berok'
11023 # Determine the default libpath from the value encoded in an
11024 # empty executable.
11025 if test "${lt_cv_aix_libpath+set}" = set; then
11026 aix_libpath=$lt_cv_aix_libpath
11028 if ${lt_cv_aix_libpath_+:} false; then :
11029 $as_echo_n "(cached) " >&6
11031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11032 /* end confdefs.h. */
11042 if ac_fn_c_try_link "$LINENO"; then :
11044 lt_aix_libpath_sed='
11045 /Import File Strings/,/^$/ {
11047 s/^0 *\([^ ]*\) *$/\1/
11051 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11052 # Check for a 64-bit object if we didn't find anything.
11053 if test -z "$lt_cv_aix_libpath_"; then
11054 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11057 rm -f core conftest.err conftest.$ac_objext \
11058 conftest$ac_exeext conftest.$ac_ext
11059 if test -z "$lt_cv_aix_libpath_"; then
11060 lt_cv_aix_libpath_="/usr/lib:/lib"
11065 aix_libpath=$lt_cv_aix_libpath_
11068 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11069 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"
11071 if test "$host_cpu" = ia64; then
11072 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11073 allow_undefined_flag="-z nodefs"
11074 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"
11076 # Determine the default libpath from the value encoded in an
11077 # empty executable.
11078 if test "${lt_cv_aix_libpath+set}" = set; then
11079 aix_libpath=$lt_cv_aix_libpath
11081 if ${lt_cv_aix_libpath_+:} false; then :
11082 $as_echo_n "(cached) " >&6
11084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11085 /* end confdefs.h. */
11095 if ac_fn_c_try_link "$LINENO"; then :
11097 lt_aix_libpath_sed='
11098 /Import File Strings/,/^$/ {
11100 s/^0 *\([^ ]*\) *$/\1/
11104 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11105 # Check for a 64-bit object if we didn't find anything.
11106 if test -z "$lt_cv_aix_libpath_"; then
11107 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11110 rm -f core conftest.err conftest.$ac_objext \
11111 conftest$ac_exeext conftest.$ac_ext
11112 if test -z "$lt_cv_aix_libpath_"; then
11113 lt_cv_aix_libpath_="/usr/lib:/lib"
11118 aix_libpath=$lt_cv_aix_libpath_
11121 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11122 # Warning - without using the other run time loading flags,
11123 # -berok will link without error, but may produce a broken library.
11124 no_undefined_flag=' ${wl}-bernotok'
11125 allow_undefined_flag=' ${wl}-berok'
11126 if test "$with_gnu_ld" = yes; then
11127 # We only use this code for GNU lds that support --whole-archive.
11128 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11130 # Exported symbols can be pulled into shared objects from archives
11131 whole_archive_flag_spec='$convenience'
11133 archive_cmds_need_lc=yes
11134 # This is similar to how AIX traditionally builds its shared libraries.
11135 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'
11143 # see comment about AmigaOS4 .so support
11144 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11145 archive_expsym_cmds=''
11148 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)'
11149 hardcode_libdir_flag_spec='-L$libdir'
11150 hardcode_minus_L=yes
11156 export_dynamic_flag_spec=-rdynamic
11159 cygwin* | mingw* | pw32* | cegcc*)
11160 # When not using gcc, we currently assume that we are using
11161 # Microsoft Visual C++.
11162 # hardcode_libdir_flag_spec is actually meaningless, as there is
11163 # no search path for DLLs.
11164 case $cc_basename in
11167 hardcode_libdir_flag_spec=' '
11168 allow_undefined_flag=unsupported
11169 always_export_symbols=yes
11171 # Tell ltmain to make .lib files, not .a files.
11173 # Tell ltmain to make .dll files, not .so files.
11175 # FIXME: Setting linknames here is a bad hack.
11176 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11177 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11178 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11180 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11182 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11184 # The linker will not automatically build a static lib if we build a DLL.
11185 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11186 enable_shared_with_static_runtimes=yes
11187 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11189 old_postinstall_cmds='chmod 644 $oldlib'
11190 postlink_cmds='lt_outputfile="@OUTPUT@"~
11191 lt_tool_outputfile="@TOOL_OUTPUT@"~
11192 case $lt_outputfile in
11195 lt_outputfile="$lt_outputfile.exe"
11196 lt_tool_outputfile="$lt_tool_outputfile.exe"
11199 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11200 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11201 $RM "$lt_outputfile.manifest";
11205 # Assume MSVC wrapper
11206 hardcode_libdir_flag_spec=' '
11207 allow_undefined_flag=unsupported
11208 # Tell ltmain to make .lib files, not .a files.
11210 # Tell ltmain to make .dll files, not .so files.
11212 # FIXME: Setting linknames here is a bad hack.
11213 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11214 # The linker will automatically build a .lib file if we build a DLL.
11215 old_archive_from_new_cmds='true'
11216 # FIXME: Should let the user specify the lib program.
11217 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11218 enable_shared_with_static_runtimes=yes
11223 darwin* | rhapsody*)
11226 archive_cmds_need_lc=no
11228 hardcode_automatic=yes
11229 hardcode_shlibpath_var=unsupported
11230 if test "$lt_cv_ld_force_load" = "yes"; then
11231 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\"`'
11233 whole_archive_flag_spec=''
11235 link_all_deplibs=yes
11236 allow_undefined_flag="$_lt_dar_allow_undefined"
11237 case $cc_basename in
11238 ifort*) _lt_dar_can_shared=yes ;;
11239 *) _lt_dar_can_shared=$GCC ;;
11241 if test "$_lt_dar_can_shared" = "yes"; then
11242 output_verbose_link_cmd=func_echo_all
11243 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11244 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11245 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}"
11246 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}"
11255 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11256 hardcode_libdir_flag_spec='-L$libdir'
11257 hardcode_shlibpath_var=no
11264 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11265 # support. Future versions do this automatically, but an explicit c++rt0.o
11266 # does not break anything, and helps significantly (at the cost of a little
11269 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11270 hardcode_libdir_flag_spec='-R$libdir'
11271 hardcode_direct=yes
11272 hardcode_shlibpath_var=no
11275 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11277 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11278 hardcode_direct=yes
11279 hardcode_minus_L=yes
11280 hardcode_shlibpath_var=no
11283 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11284 freebsd* | dragonfly*)
11285 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11286 hardcode_libdir_flag_spec='-R$libdir'
11287 hardcode_direct=yes
11288 hardcode_shlibpath_var=no
11292 if test "$GCC" = yes; then
11293 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'
11295 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'
11297 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11298 hardcode_libdir_separator=:
11299 hardcode_direct=yes
11301 # hardcode_minus_L: Not really in the search PATH,
11302 # but as the default location of the library.
11303 hardcode_minus_L=yes
11304 export_dynamic_flag_spec='${wl}-E'
11308 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11309 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11311 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11313 if test "$with_gnu_ld" = no; then
11314 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11315 hardcode_libdir_flag_spec_ld='+b $libdir'
11316 hardcode_libdir_separator=:
11317 hardcode_direct=yes
11318 hardcode_direct_absolute=yes
11319 export_dynamic_flag_spec='${wl}-E'
11320 # hardcode_minus_L: Not really in the search PATH,
11321 # but as the default location of the library.
11322 hardcode_minus_L=yes
11327 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11330 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11333 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11336 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11342 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11345 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11349 # Older versions of the 11.00 compiler do not understand -b yet
11350 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11352 $as_echo_n "checking if $CC understands -b... " >&6; }
11353 if ${lt_cv_prog_compiler__b+:} false; then :
11354 $as_echo_n "(cached) " >&6
11356 lt_cv_prog_compiler__b=no
11357 save_LDFLAGS="$LDFLAGS"
11358 LDFLAGS="$LDFLAGS -b"
11359 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11360 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11361 # The linker can only warn and ignore the option if not recognized
11362 # So say no if there are warnings
11363 if test -s conftest.err; then
11364 # Append any errors to the config.log.
11365 cat conftest.err 1>&5
11366 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11367 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11368 if diff conftest.exp conftest.er2 >/dev/null; then
11369 lt_cv_prog_compiler__b=yes
11372 lt_cv_prog_compiler__b=yes
11376 LDFLAGS="$save_LDFLAGS"
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11380 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11382 if test x"$lt_cv_prog_compiler__b" = xyes; then
11383 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11385 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11391 if test "$with_gnu_ld" = no; then
11392 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11393 hardcode_libdir_separator=:
11398 hardcode_shlibpath_var=no
11401 hardcode_direct=yes
11402 hardcode_direct_absolute=yes
11403 export_dynamic_flag_spec='${wl}-E'
11405 # hardcode_minus_L: Not really in the search PATH,
11406 # but as the default location of the library.
11407 hardcode_minus_L=yes
11413 irix5* | irix6* | nonstopux*)
11414 if test "$GCC" = yes; then
11415 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'
11416 # Try to use the -exported_symbol ld option, if it does not
11417 # work, assume that -exports_file does not work either and
11418 # implicitly export all symbols.
11419 # This should be the same for all languages, so no per-tag cache variable.
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11421 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11422 if ${lt_cv_irix_exported_symbol+:} false; then :
11423 $as_echo_n "(cached) " >&6
11425 save_LDFLAGS="$LDFLAGS"
11426 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11428 /* end confdefs.h. */
11429 int foo (void) { return 0; }
11431 if ac_fn_c_try_link "$LINENO"; then :
11432 lt_cv_irix_exported_symbol=yes
11434 lt_cv_irix_exported_symbol=no
11436 rm -f core conftest.err conftest.$ac_objext \
11437 conftest$ac_exeext conftest.$ac_ext
11438 LDFLAGS="$save_LDFLAGS"
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11441 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11442 if test "$lt_cv_irix_exported_symbol" = yes; then
11443 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'
11446 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'
11447 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'
11449 archive_cmds_need_lc='no'
11450 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11451 hardcode_libdir_separator=:
11453 link_all_deplibs=yes
11457 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11458 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11460 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11462 hardcode_libdir_flag_spec='-R$libdir'
11463 hardcode_direct=yes
11464 hardcode_shlibpath_var=no
11468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11469 hardcode_direct=yes
11470 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11471 hardcode_libdir_separator=:
11472 hardcode_shlibpath_var=no
11479 if test -f /usr/libexec/ld.so; then
11480 hardcode_direct=yes
11481 hardcode_shlibpath_var=no
11482 hardcode_direct_absolute=yes
11483 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11484 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11485 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11486 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11487 export_dynamic_flag_spec='${wl}-E'
11490 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11491 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11492 hardcode_libdir_flag_spec='-R$libdir'
11495 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11496 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11506 hardcode_libdir_flag_spec='-L$libdir'
11507 hardcode_minus_L=yes
11508 allow_undefined_flag=unsupported
11509 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'
11510 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11514 if test "$GCC" = yes; then
11515 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11516 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'
11518 allow_undefined_flag=' -expect_unresolved \*'
11519 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'
11521 archive_cmds_need_lc='no'
11522 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11523 hardcode_libdir_separator=:
11526 osf4* | osf5*) # as osf3* with the addition of -msym flag
11527 if test "$GCC" = yes; then
11528 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11529 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'
11530 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11532 allow_undefined_flag=' -expect_unresolved \*'
11533 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'
11534 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~
11535 $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'
11537 # Both c and cxx compiler support -rpath directly
11538 hardcode_libdir_flag_spec='-rpath $libdir'
11540 archive_cmds_need_lc='no'
11541 hardcode_libdir_separator=:
11545 no_undefined_flag=' -z defs'
11546 if test "$GCC" = yes; then
11548 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11549 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11550 $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'
11552 case `$CC -V 2>&1` in
11555 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11556 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11557 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11561 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11562 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11563 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11567 hardcode_libdir_flag_spec='-R$libdir'
11568 hardcode_shlibpath_var=no
11570 solaris2.[0-5] | solaris2.[0-5].*) ;;
11572 # The compiler driver will combine and reorder linker options,
11573 # but understands `-z linker_flag'. GCC discards it without `$wl',
11574 # but is careful enough not to reorder.
11575 # Supported since Solaris 2.6 (maybe 2.5.1?)
11576 if test "$GCC" = yes; then
11577 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11579 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11583 link_all_deplibs=yes
11587 if test "x$host_vendor" = xsequent; then
11588 # Use $CC to link under sequent, because it throws in some extra .o
11589 # files that make .init and .fini sections work.
11590 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11592 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11594 hardcode_libdir_flag_spec='-L$libdir'
11595 hardcode_direct=yes
11596 hardcode_minus_L=yes
11597 hardcode_shlibpath_var=no
11601 case $host_vendor in
11603 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11604 hardcode_direct=yes # is this really true???
11607 ## LD is ld it makes a PLAMLIB
11608 ## CC just makes a GrossModule.
11609 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11610 reload_cmds='$CC -r -o $output$reload_objs'
11614 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11615 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11618 runpath_var='LD_RUN_PATH'
11619 hardcode_shlibpath_var=no
11623 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11624 hardcode_shlibpath_var=no
11625 export_dynamic_flag_spec='-Bexport'
11629 if test -d /usr/nec; then
11630 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11631 hardcode_shlibpath_var=no
11632 runpath_var=LD_RUN_PATH
11633 hardcode_runpath_var=yes
11638 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11639 no_undefined_flag='${wl}-z,text'
11640 archive_cmds_need_lc=no
11641 hardcode_shlibpath_var=no
11642 runpath_var='LD_RUN_PATH'
11644 if test "$GCC" = yes; then
11645 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11646 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11648 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11649 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11653 sysv5* | sco3.2v5* | sco5v6*)
11654 # Note: We can NOT use -z defs as we might desire, because we do not
11655 # link with -lc, and that would cause any symbols used from libc to
11656 # always be unresolved, which means just about no library would
11657 # ever link correctly. If we're not using GNU ld we use -z text
11658 # though, which does catch some bad symbols but isn't as heavy-handed
11660 no_undefined_flag='${wl}-z,text'
11661 allow_undefined_flag='${wl}-z,nodefs'
11662 archive_cmds_need_lc=no
11663 hardcode_shlibpath_var=no
11664 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11665 hardcode_libdir_separator=':'
11666 link_all_deplibs=yes
11667 export_dynamic_flag_spec='${wl}-Bexport'
11668 runpath_var='LD_RUN_PATH'
11670 if test "$GCC" = yes; then
11671 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11672 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11674 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11675 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11680 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11681 hardcode_libdir_flag_spec='-L$libdir'
11682 hardcode_shlibpath_var=no
11690 if test x$host_vendor = xsni; then
11692 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11693 export_dynamic_flag_spec='${wl}-Blargedynsym'
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11700 $as_echo "$ld_shlibs" >&6; }
11701 test "$ld_shlibs" = no && can_build_shared=no
11703 with_gnu_ld=$with_gnu_ld
11720 # Do we need to explicitly link libc?
11722 case "x$archive_cmds_need_lc" in
11724 # Assume -lc should be added
11725 archive_cmds_need_lc=yes
11727 if test "$enable_shared" = yes && test "$GCC" = yes; then
11728 case $archive_cmds in
11730 # FIXME: we may have to deal with multi-command sequences.
11733 # Test whether the compiler implicitly links with -lc since on some
11734 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11735 # to ld, don't add -lc before -lgcc.
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11737 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11738 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11739 $as_echo_n "(cached) " >&6
11742 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11744 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11745 (eval $ac_compile) 2>&5
11747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11748 test $ac_status = 0; } 2>conftest.err; then
11751 libobjs=conftest.$ac_objext
11753 wl=$lt_prog_compiler_wl
11754 pic_flag=$lt_prog_compiler_pic
11760 lt_save_allow_undefined_flag=$allow_undefined_flag
11761 allow_undefined_flag=
11762 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11763 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11766 test $ac_status = 0; }
11768 lt_cv_archive_cmds_need_lc=no
11770 lt_cv_archive_cmds_need_lc=yes
11772 allow_undefined_flag=$lt_save_allow_undefined_flag
11774 cat conftest.err 1>&5
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11780 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11781 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11945 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11947 if test "$GCC" = yes; then
11949 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11950 *) lt_awk_arg="/^libraries:/" ;;
11953 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11954 *) lt_sed_strip_eq="s,=/,/,g" ;;
11956 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11957 case $lt_search_path_spec in
11959 # if the path contains ";" then we assume it to be the separator
11960 # otherwise default to the standard path separator (i.e. ":") - it is
11961 # assumed that no part of a normal pathname contains ";" but that should
11962 # okay in the real world where ";" in dirpaths is itself problematic.
11963 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11966 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11969 # Ok, now we have the path, separated by spaces, we can step through it
11970 # and add multilib dir if necessary.
11971 lt_tmp_lt_search_path_spec=
11972 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11973 for lt_sys_path in $lt_search_path_spec; do
11974 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11975 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11977 test -d "$lt_sys_path" && \
11978 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11981 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11982 BEGIN {RS=" "; FS="/|\n";} {
11985 for (lt_i = NF; lt_i > 0; lt_i--) {
11986 if ($lt_i != "" && $lt_i != ".") {
11987 if ($lt_i == "..") {
11990 if (lt_count == 0) {
11991 lt_foo="/" $lt_i lt_foo;
11998 if (lt_foo != "") { lt_freq[lt_foo]++; }
11999 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12001 # AWK program above erroneously prepends '/' to C:/dos/paths
12004 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12005 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12007 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12009 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12011 library_names_spec=
12012 libname_spec='lib$name'
12016 postuninstall_cmds=
12020 shlibpath_overrides_runpath=unknown
12022 dynamic_linker="$host_os ld.so"
12023 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12024 need_lib_prefix=unknown
12025 hardcode_into_libs=no
12027 # when you set need_version to no, make sure it does not cause -set_version
12028 # flags to be left without arguments
12029 need_version=unknown
12034 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12035 shlibpath_var=LIBPATH
12037 # AIX 3 has no versioning support, so we append a major version to the name.
12038 soname_spec='${libname}${release}${shared_ext}$major'
12045 hardcode_into_libs=yes
12046 if test "$host_cpu" = ia64; then
12047 # AIX 5 supports IA64
12048 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12049 shlibpath_var=LD_LIBRARY_PATH
12051 # With GCC up to 2.95.x, collect2 would create an import file
12052 # for dependence libraries. The import file would start with
12053 # the line `#! .'. This would cause the generated library to
12054 # depend on `.', always an invalid library. This was fixed in
12055 # development snapshots of GCC prior to 3.0.
12057 aix4 | aix4.[01] | aix4.[01].*)
12058 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12060 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12063 can_build_shared=no
12067 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12068 # soname into executable. Probably we can add versioning support to
12069 # collect2, so additional links can be useful in future.
12070 if test "$aix_use_runtimelinking" = yes; then
12071 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12072 # instead of lib<name>.a to let people know that these are not
12073 # typical AIX shared libraries.
12074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12076 # We preserve .a as extension for shared libraries through AIX4.2
12077 # and later when we are not doing run time linking.
12078 library_names_spec='${libname}${release}.a $libname.a'
12079 soname_spec='${libname}${release}${shared_ext}$major'
12081 shlibpath_var=LIBPATH
12088 # Since July 2007 AmigaOS4 officially supports .so libraries.
12089 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12093 library_names_spec='$libname.ixlibrary $libname.a'
12094 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12095 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'
12101 library_names_spec='${libname}${shared_ext}'
12102 dynamic_linker="$host_os ld.so"
12103 shlibpath_var=LIBRARY_PATH
12109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12110 soname_spec='${libname}${release}${shared_ext}$major'
12111 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12112 shlibpath_var=LD_LIBRARY_PATH
12113 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12114 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12115 # the default ld.so.conf also contains /usr/contrib/lib and
12116 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12117 # libtool to hard-code these into programs
12120 cygwin* | mingw* | pw32* | cegcc*)
12121 version_type=windows
12126 case $GCC,$cc_basename in
12129 library_names_spec='$libname.dll.a'
12130 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12131 postinstall_cmds='base_file=`basename \${file}`~
12132 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12133 dldir=$destdir/`dirname \$dlpath`~
12134 test -d \$dldir || mkdir -p \$dldir~
12135 $install_prog $dir/$dlname \$dldir/$dlname~
12136 chmod a+x \$dldir/$dlname~
12137 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12138 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12140 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12141 dlpath=$dir/\$dldll~
12143 shlibpath_overrides_runpath=yes
12147 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12148 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12150 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12153 # MinGW DLLs use traditional 'lib' prefix
12154 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12157 # pw32 DLLs use 'pw' prefix rather than 'lib'
12158 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12161 dynamic_linker='Win32 ld.exe'
12166 libname_spec='$name'
12167 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12168 library_names_spec='${libname}.dll.lib'
12172 sys_lib_search_path_spec=
12175 for lt_path in $LIB
12178 # Let DOS variable expansion print the short 8.3 style file name.
12179 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12180 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12183 # Convert to MSYS style.
12184 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12187 # Convert to unix form, then to dos form, then back to unix form
12188 # but this time dos style (no spaces!) so that the unix form looks
12189 # like /cygdrive/c/PROGRA~1:/cygdr...
12190 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12191 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12192 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12195 sys_lib_search_path_spec="$LIB"
12196 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12197 # It is most probably a Windows format PATH.
12198 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12200 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12202 # FIXME: find the short name or the path components, as spaces are
12203 # common. (e.g. "Program Files" -> "PROGRA~1")
12207 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12208 postinstall_cmds='base_file=`basename \${file}`~
12209 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12210 dldir=$destdir/`dirname \$dlpath`~
12211 test -d \$dldir || mkdir -p \$dldir~
12212 $install_prog $dir/$dlname \$dldir/$dlname'
12213 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12214 dlpath=$dir/\$dldll~
12216 shlibpath_overrides_runpath=yes
12217 dynamic_linker='Win32 link.exe'
12221 # Assume MSVC wrapper
12222 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12223 dynamic_linker='Win32 ld.exe'
12226 # FIXME: first we should search . and the directory the executable is in
12230 darwin* | rhapsody*)
12231 dynamic_linker="$host_os dyld"
12232 version_type=darwin
12235 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12236 soname_spec='${libname}${release}${major}$shared_ext'
12237 shlibpath_overrides_runpath=yes
12238 shlibpath_var=DYLD_LIBRARY_PATH
12239 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12241 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12242 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12250 soname_spec='${libname}${release}${shared_ext}$major'
12251 shlibpath_var=LD_LIBRARY_PATH
12258 freebsd* | dragonfly*)
12259 # DragonFly does not have aout. When/if they implement a new
12260 # versioning mechanism, adjust this.
12261 if test -x /usr/bin/objformat; then
12262 objformat=`/usr/bin/objformat`
12265 freebsd[123]*) objformat=aout ;;
12266 *) objformat=elf ;;
12269 version_type=freebsd-$objformat
12270 case $version_type in
12272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12277 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12281 shlibpath_var=LD_LIBRARY_PATH
12284 shlibpath_overrides_runpath=yes
12286 freebsd3.[01]* | freebsdelf3.[01]*)
12287 shlibpath_overrides_runpath=yes
12288 hardcode_into_libs=yes
12290 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12291 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12292 shlibpath_overrides_runpath=no
12293 hardcode_into_libs=yes
12295 *) # from 4.6 on, and DragonFly
12296 shlibpath_overrides_runpath=yes
12297 hardcode_into_libs=yes
12306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12307 soname_spec='${libname}${release}${shared_ext}$major'
12308 shlibpath_var=LD_LIBRARY_PATH
12309 hardcode_into_libs=yes
12316 dynamic_linker="$host_os runtime_loader"
12317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12318 soname_spec='${libname}${release}${shared_ext}$major'
12319 shlibpath_var=LIBRARY_PATH
12320 shlibpath_overrides_runpath=yes
12321 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12322 hardcode_into_libs=yes
12325 hpux9* | hpux10* | hpux11*)
12326 # Give a soname corresponding to the major version so that dld.sl refuses to
12327 # link against other versions.
12334 hardcode_into_libs=yes
12335 dynamic_linker="$host_os dld.so"
12336 shlibpath_var=LD_LIBRARY_PATH
12337 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12339 soname_spec='${libname}${release}${shared_ext}$major'
12340 if test "X$HPUX_IA64_MODE" = X32; then
12341 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12343 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12345 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12349 hardcode_into_libs=yes
12350 dynamic_linker="$host_os dld.sl"
12351 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12352 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12354 soname_spec='${libname}${release}${shared_ext}$major'
12355 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12356 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12360 dynamic_linker="$host_os dld.sl"
12361 shlibpath_var=SHLIB_PATH
12362 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12364 soname_spec='${libname}${release}${shared_ext}$major'
12367 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12368 postinstall_cmds='chmod 555 $lib'
12369 # or fails outright, so override atomically:
12370 install_override_mode=555
12377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12378 soname_spec='${libname}${release}${shared_ext}$major'
12379 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12380 shlibpath_var=LD_LIBRARY_PATH
12381 shlibpath_overrides_runpath=no
12382 hardcode_into_libs=yes
12385 irix5* | irix6* | nonstopux*)
12387 nonstopux*) version_type=nonstopux ;;
12389 if test "$lt_cv_prog_gnu_ld" = yes; then
12397 soname_spec='${libname}${release}${shared_ext}$major'
12398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12400 irix5* | nonstopux*)
12401 libsuff= shlibsuff=
12404 case $LD in # libtool.m4 will add one of these switches to LD
12405 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12406 libsuff= shlibsuff= libmagic=32-bit;;
12407 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12408 libsuff=32 shlibsuff=N32 libmagic=N32;;
12409 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12410 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12411 *) libsuff= shlibsuff= libmagic=never-match;;
12415 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12416 shlibpath_overrides_runpath=no
12417 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12418 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12419 hardcode_into_libs=yes
12422 # No shared lib support for Linux oldld, aout, or coff.
12423 linux*oldld* | linux*aout* | linux*coff*)
12427 # This must be Linux ELF.
12428 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12433 soname_spec='${libname}${release}${shared_ext}$major'
12434 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12435 shlibpath_var=LD_LIBRARY_PATH
12436 shlibpath_overrides_runpath=no
12438 # Some binutils ld are patched to set DT_RUNPATH
12439 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12440 $as_echo_n "(cached) " >&6
12442 lt_cv_shlibpath_overrides_runpath=no
12443 save_LDFLAGS=$LDFLAGS
12444 save_libdir=$libdir
12445 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12446 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12448 /* end confdefs.h. */
12458 if ac_fn_c_try_link "$LINENO"; then :
12459 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12460 lt_cv_shlibpath_overrides_runpath=yes
12463 rm -f core conftest.err conftest.$ac_objext \
12464 conftest$ac_exeext conftest.$ac_ext
12465 LDFLAGS=$save_LDFLAGS
12466 libdir=$save_libdir
12470 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12472 # This implies no fast_install, which is unacceptable.
12473 # Some rework will be needed to allow for fast_install
12474 # before this can be enabled.
12475 hardcode_into_libs=yes
12477 # Append ld.so.conf contents to the search path
12478 if test -f /etc/ld.so.conf; then
12479 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' ' '`
12480 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12483 # We used to test for /lib/ld.so.1 and disable shared libraries on
12484 # powerpc, because MkLinux only supported shared libraries with the
12485 # GNU dynamic linker. Since this was broken with cross compilers,
12486 # most powerpc-linux boxes support dynamic linking these days and
12487 # people can always --disable-shared, the test was removed, and we
12488 # assume the GNU/Linux dynamic linker is in use.
12489 dynamic_linker='GNU/Linux ld.so'
12496 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12498 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12499 dynamic_linker='NetBSD (a.out) ld.so'
12501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12502 soname_spec='${libname}${release}${shared_ext}$major'
12503 dynamic_linker='NetBSD ld.elf_so'
12505 shlibpath_var=LD_LIBRARY_PATH
12506 shlibpath_overrides_runpath=yes
12507 hardcode_into_libs=yes
12512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12513 shlibpath_var=LD_LIBRARY_PATH
12514 shlibpath_overrides_runpath=yes
12521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12522 soname_spec='${libname}${release}${shared_ext}$major'
12523 shlibpath_var=LD_LIBRARY_PATH
12524 shlibpath_overrides_runpath=no
12525 hardcode_into_libs=yes
12526 dynamic_linker='ldqnx.so'
12531 sys_lib_dlsearch_path_spec="/usr/lib"
12533 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12535 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12536 *) need_version=no ;;
12538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12539 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12540 shlibpath_var=LD_LIBRARY_PATH
12541 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12543 openbsd2.[89] | openbsd2.[89].*)
12544 shlibpath_overrides_runpath=no
12547 shlibpath_overrides_runpath=yes
12551 shlibpath_overrides_runpath=yes
12556 libname_spec='$name'
12559 library_names_spec='$libname${shared_ext} $libname.a'
12560 dynamic_linker='OS/2 ld.exe'
12561 shlibpath_var=LIBPATH
12564 osf3* | osf4* | osf5*)
12568 soname_spec='${libname}${release}${shared_ext}$major'
12569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12570 shlibpath_var=LD_LIBRARY_PATH
12571 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12572 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
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 shlibpath_var=LD_LIBRARY_PATH
12586 shlibpath_overrides_runpath=yes
12587 hardcode_into_libs=yes
12588 # ldd complains unless libraries are executable
12589 postinstall_cmds='chmod +x $lib'
12594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12595 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12596 shlibpath_var=LD_LIBRARY_PATH
12597 shlibpath_overrides_runpath=yes
12598 if test "$with_gnu_ld" = yes; then
12606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12607 soname_spec='${libname}${release}${shared_ext}$major'
12608 shlibpath_var=LD_LIBRARY_PATH
12609 case $host_vendor in
12611 shlibpath_overrides_runpath=no
12613 runpath_var=LD_RUN_PATH
12621 shlibpath_overrides_runpath=no
12622 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12628 if test -d /usr/nec ;then
12630 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12631 soname_spec='$libname${shared_ext}.$major'
12632 shlibpath_var=LD_LIBRARY_PATH
12636 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12637 version_type=freebsd-elf
12640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12641 soname_spec='${libname}${release}${shared_ext}$major'
12642 shlibpath_var=LD_LIBRARY_PATH
12643 shlibpath_overrides_runpath=yes
12644 hardcode_into_libs=yes
12645 if test "$with_gnu_ld" = yes; then
12646 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12648 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12651 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12655 sys_lib_dlsearch_path_spec='/usr/lib'
12659 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12664 shlibpath_var=LD_LIBRARY_PATH
12665 shlibpath_overrides_runpath=no
12666 hardcode_into_libs=yes
12671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12672 soname_spec='${libname}${release}${shared_ext}$major'
12673 shlibpath_var=LD_LIBRARY_PATH
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12681 $as_echo "$dynamic_linker" >&6; }
12682 test "$dynamic_linker" = no && can_build_shared=no
12684 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12685 if test "$GCC" = yes; then
12686 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12689 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12690 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12692 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12693 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12788 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12790 if test -n "$hardcode_libdir_flag_spec" ||
12791 test -n "$runpath_var" ||
12792 test "X$hardcode_automatic" = "Xyes" ; then
12794 # We can hardcode non-existent directories.
12795 if test "$hardcode_direct" != no &&
12796 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12797 # have to relink, otherwise we might link with an installed library
12798 # when we should be linking with a yet-to-be-installed one
12799 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12800 test "$hardcode_minus_L" != no; then
12801 # Linking always hardcodes the temporary library directory.
12802 hardcode_action=relink
12804 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12805 hardcode_action=immediate
12808 # We cannot hardcode anything, or else we can only hardcode existing
12810 hardcode_action=unsupported
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12813 $as_echo "$hardcode_action" >&6; }
12815 if test "$hardcode_action" = relink ||
12816 test "$inherit_rpath" = yes; then
12817 # Fast installation is not supported
12818 enable_fast_install=no
12819 elif test "$shlibpath_overrides_runpath" = yes ||
12820 test "$enable_shared" = no; then
12821 # Fast installation is not necessary
12822 enable_fast_install=needless
12830 if test "x$enable_dlopen" != xyes; then
12831 enable_dlopen=unknown
12832 enable_dlopen_self=unknown
12833 enable_dlopen_self_static=unknown
12840 lt_cv_dlopen="load_add_on"
12842 lt_cv_dlopen_self=yes
12845 mingw* | pw32* | cegcc*)
12846 lt_cv_dlopen="LoadLibrary"
12851 lt_cv_dlopen="dlopen"
12856 # if libdl is installed we need to link against it
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12858 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12859 if ${ac_cv_lib_dl_dlopen+:} false; then :
12860 $as_echo_n "(cached) " >&6
12862 ac_check_lib_save_LIBS=$LIBS
12864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12865 /* end confdefs.h. */
12867 /* Override any GCC internal prototype to avoid an error.
12868 Use char because int might match the return type of a GCC
12869 builtin and then its argument prototype would still apply. */
12882 if ac_fn_c_try_link "$LINENO"; then :
12883 ac_cv_lib_dl_dlopen=yes
12885 ac_cv_lib_dl_dlopen=no
12887 rm -f core conftest.err conftest.$ac_objext \
12888 conftest$ac_exeext conftest.$ac_ext
12889 LIBS=$ac_check_lib_save_LIBS
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12892 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12893 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12894 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12897 lt_cv_dlopen="dyld"
12899 lt_cv_dlopen_self=yes
12906 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12907 if test "x$ac_cv_func_shl_load" = xyes; then :
12908 lt_cv_dlopen="shl_load"
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12911 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12912 if ${ac_cv_lib_dld_shl_load+:} false; then :
12913 $as_echo_n "(cached) " >&6
12915 ac_check_lib_save_LIBS=$LIBS
12917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12918 /* end confdefs.h. */
12920 /* Override any GCC internal prototype to avoid an error.
12921 Use char because int might match the return type of a GCC
12922 builtin and then its argument prototype would still apply. */
12930 return shl_load ();
12935 if ac_fn_c_try_link "$LINENO"; then :
12936 ac_cv_lib_dld_shl_load=yes
12938 ac_cv_lib_dld_shl_load=no
12940 rm -f core conftest.err conftest.$ac_objext \
12941 conftest$ac_exeext conftest.$ac_ext
12942 LIBS=$ac_check_lib_save_LIBS
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12945 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12946 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12947 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12949 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12950 if test "x$ac_cv_func_dlopen" = xyes; then :
12951 lt_cv_dlopen="dlopen"
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12954 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12955 if ${ac_cv_lib_dl_dlopen+:} false; then :
12956 $as_echo_n "(cached) " >&6
12958 ac_check_lib_save_LIBS=$LIBS
12960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12961 /* end confdefs.h. */
12963 /* Override any GCC internal prototype to avoid an error.
12964 Use char because int might match the return type of a GCC
12965 builtin and then its argument prototype would still apply. */
12978 if ac_fn_c_try_link "$LINENO"; then :
12979 ac_cv_lib_dl_dlopen=yes
12981 ac_cv_lib_dl_dlopen=no
12983 rm -f core conftest.err conftest.$ac_objext \
12984 conftest$ac_exeext conftest.$ac_ext
12985 LIBS=$ac_check_lib_save_LIBS
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12988 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12989 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12990 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12993 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12994 if ${ac_cv_lib_svld_dlopen+:} false; then :
12995 $as_echo_n "(cached) " >&6
12997 ac_check_lib_save_LIBS=$LIBS
12998 LIBS="-lsvld $LIBS"
12999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13000 /* end confdefs.h. */
13002 /* Override any GCC internal prototype to avoid an error.
13003 Use char because int might match the return type of a GCC
13004 builtin and then its argument prototype would still apply. */
13017 if ac_fn_c_try_link "$LINENO"; then :
13018 ac_cv_lib_svld_dlopen=yes
13020 ac_cv_lib_svld_dlopen=no
13022 rm -f core conftest.err conftest.$ac_objext \
13023 conftest$ac_exeext conftest.$ac_ext
13024 LIBS=$ac_check_lib_save_LIBS
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13027 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13028 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13029 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13032 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13033 if ${ac_cv_lib_dld_dld_link+:} false; then :
13034 $as_echo_n "(cached) " >&6
13036 ac_check_lib_save_LIBS=$LIBS
13038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13039 /* end confdefs.h. */
13041 /* Override any GCC internal prototype to avoid an error.
13042 Use char because int might match the return type of a GCC
13043 builtin and then its argument prototype would still apply. */
13051 return dld_link ();
13056 if ac_fn_c_try_link "$LINENO"; then :
13057 ac_cv_lib_dld_dld_link=yes
13059 ac_cv_lib_dld_dld_link=no
13061 rm -f core conftest.err conftest.$ac_objext \
13062 conftest$ac_exeext conftest.$ac_ext
13063 LIBS=$ac_check_lib_save_LIBS
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13066 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13067 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13068 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13089 if test "x$lt_cv_dlopen" != xno; then
13095 case $lt_cv_dlopen in
13097 save_CPPFLAGS="$CPPFLAGS"
13098 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13100 save_LDFLAGS="$LDFLAGS"
13101 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13104 LIBS="$lt_cv_dlopen_libs $LIBS"
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13107 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13108 if ${lt_cv_dlopen_self+:} false; then :
13109 $as_echo_n "(cached) " >&6
13111 if test "$cross_compiling" = yes; then :
13112 lt_cv_dlopen_self=cross
13114 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13115 lt_status=$lt_dlunknown
13116 cat > conftest.$ac_ext <<_LT_EOF
13117 #line $LINENO "configure"
13118 #include "confdefs.h"
13127 # define LT_DLGLOBAL RTLD_GLOBAL
13130 # define LT_DLGLOBAL DL_GLOBAL
13132 # define LT_DLGLOBAL 0
13136 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13137 find out it does not work in some platform. */
13138 #ifndef LT_DLLAZY_OR_NOW
13140 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13143 # define LT_DLLAZY_OR_NOW DL_LAZY
13146 # define LT_DLLAZY_OR_NOW RTLD_NOW
13149 # define LT_DLLAZY_OR_NOW DL_NOW
13151 # define LT_DLLAZY_OR_NOW 0
13158 /* When -fvisbility=hidden is used, assume the code has been annotated
13159 correspondingly for the symbols needed. */
13160 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13161 int fnord () __attribute__((visibility("default")));
13164 int fnord () { return 42; }
13167 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13168 int status = $lt_dlunknown;
13172 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13175 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13176 else puts (dlerror ());
13178 /* dlclose (self); */
13186 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13187 (eval $ac_link) 2>&5
13189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13190 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13191 (./conftest; exit; ) >&5 2>/dev/null
13193 case x$lt_status in
13194 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13195 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13196 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13199 # compilation failed
13200 lt_cv_dlopen_self=no
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13208 $as_echo "$lt_cv_dlopen_self" >&6; }
13210 if test "x$lt_cv_dlopen_self" = xyes; then
13211 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13213 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13214 if ${lt_cv_dlopen_self_static+:} false; then :
13215 $as_echo_n "(cached) " >&6
13217 if test "$cross_compiling" = yes; then :
13218 lt_cv_dlopen_self_static=cross
13220 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13221 lt_status=$lt_dlunknown
13222 cat > conftest.$ac_ext <<_LT_EOF
13223 #line $LINENO "configure"
13224 #include "confdefs.h"
13233 # define LT_DLGLOBAL RTLD_GLOBAL
13236 # define LT_DLGLOBAL DL_GLOBAL
13238 # define LT_DLGLOBAL 0
13242 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13243 find out it does not work in some platform. */
13244 #ifndef LT_DLLAZY_OR_NOW
13246 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13249 # define LT_DLLAZY_OR_NOW DL_LAZY
13252 # define LT_DLLAZY_OR_NOW RTLD_NOW
13255 # define LT_DLLAZY_OR_NOW DL_NOW
13257 # define LT_DLLAZY_OR_NOW 0
13264 /* When -fvisbility=hidden is used, assume the code has been annotated
13265 correspondingly for the symbols needed. */
13266 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13267 int fnord () __attribute__((visibility("default")));
13270 int fnord () { return 42; }
13273 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13274 int status = $lt_dlunknown;
13278 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13281 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13282 else puts (dlerror ());
13284 /* dlclose (self); */
13292 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13293 (eval $ac_link) 2>&5
13295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13296 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13297 (./conftest; exit; ) >&5 2>/dev/null
13299 case x$lt_status in
13300 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13301 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13302 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13305 # compilation failed
13306 lt_cv_dlopen_self_static=no
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13314 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13317 CPPFLAGS="$save_CPPFLAGS"
13318 LDFLAGS="$save_LDFLAGS"
13323 case $lt_cv_dlopen_self in
13324 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13325 *) enable_dlopen_self=unknown ;;
13328 case $lt_cv_dlopen_self_static in
13329 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13330 *) enable_dlopen_self_static=unknown ;;
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13353 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13354 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13355 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13356 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13358 $as_echo "yes" >&6; }
13360 # FIXME - insert some real tests, host_os isn't really good enough
13363 if test -n "$STRIP" ; then
13364 striplib="$STRIP -x"
13365 old_striplib="$STRIP -S"
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13367 $as_echo "yes" >&6; }
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13370 $as_echo "no" >&6; }
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13375 $as_echo "no" >&6; }
13391 # Report which library types will actually be built
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13393 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13395 $as_echo "$can_build_shared" >&6; }
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13398 $as_echo_n "checking whether to build shared libraries... " >&6; }
13399 test "$can_build_shared" = "no" && enable_shared=no
13401 # On AIX, shared libraries and static libraries use the same namespace, and
13402 # are all built from PIC.
13405 test "$enable_shared" = yes && enable_static=no
13406 if test -n "$RANLIB"; then
13407 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13408 postinstall_cmds='$RANLIB $lib'
13413 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13414 test "$enable_shared" = yes && enable_static=no
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13419 $as_echo "$enable_shared" >&6; }
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13422 $as_echo_n "checking whether to build static libraries... " >&6; }
13423 # Make sure either enable_shared or enable_static is yes.
13424 test "$enable_shared" = yes || enable_static=yes
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13426 $as_echo "$enable_static" >&6; }
13433 ac_cpp='$CPP $CPPFLAGS'
13434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13452 ac_config_commands="$ac_config_commands libtool"
13457 # Only expand once:
13461 if test "$enable_shared" = "no"; then
13467 eval _shrext="$shrext_cmds"
13468 # Darwin uses .dylib for libraries but .so for modules
13469 if test X"$_shrext" = X".dylib"; then
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking path to sudo_noexec.so" >&5
13476 $as_echo_n "checking path to sudo_noexec.so... " >&6; }
13478 # Check whether --with-noexec was given.
13479 if test "${with_noexec+set}" = set; then :
13480 withval=$with_noexec; case $with_noexec in
13481 yes) with_noexec="$libexecdir/sudo_noexec$_shrext"
13487 with_noexec="$libexecdir/sudo_noexec$_shrext"
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_noexec" >&5
13491 $as_echo "$with_noexec" >&6; }
13492 NOEXECFILE="sudo_noexec$_shrext"
13493 NOEXECDIR="`echo $with_noexec|sed 's:^\(.*\)/[^/]*:\1:'`"
13495 # Extract the first word of "uname", so it can be a program name with args.
13496 set dummy uname; ac_word=$2
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13498 $as_echo_n "checking for $ac_word... " >&6; }
13499 if ${ac_cv_prog_UNAMEPROG+:} false; then :
13500 $as_echo_n "(cached) " >&6
13502 if test -n "$UNAMEPROG"; then
13503 ac_cv_prog_UNAMEPROG="$UNAMEPROG" # Let the user override the test.
13505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13506 for as_dir in $PATH
13509 test -z "$as_dir" && as_dir=.
13510 for ac_exec_ext in '' $ac_executable_extensions; do
13511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13512 ac_cv_prog_UNAMEPROG="uname"
13513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13522 UNAMEPROG=$ac_cv_prog_UNAMEPROG
13523 if test -n "$UNAMEPROG"; then
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAMEPROG" >&5
13525 $as_echo "$UNAMEPROG" >&6; }
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13528 $as_echo "no" >&6; }
13532 # Extract the first word of "tr", so it can be a program name with args.
13533 set dummy tr; ac_word=$2
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13535 $as_echo_n "checking for $ac_word... " >&6; }
13536 if ${ac_cv_prog_TRPROG+:} false; then :
13537 $as_echo_n "(cached) " >&6
13539 if test -n "$TRPROG"; then
13540 ac_cv_prog_TRPROG="$TRPROG" # Let the user override the test.
13542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13543 for as_dir in $PATH
13546 test -z "$as_dir" && as_dir=.
13547 for ac_exec_ext in '' $ac_executable_extensions; do
13548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13549 ac_cv_prog_TRPROG="tr"
13550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13559 TRPROG=$ac_cv_prog_TRPROG
13560 if test -n "$TRPROG"; then
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRPROG" >&5
13562 $as_echo "$TRPROG" >&6; }
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13565 $as_echo "no" >&6; }
13569 for ac_prog in nroff mandoc
13571 # Extract the first word of "$ac_prog", so it can be a program name with args.
13572 set dummy $ac_prog; ac_word=$2
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13574 $as_echo_n "checking for $ac_word... " >&6; }
13575 if ${ac_cv_prog_NROFFPROG+:} false; then :
13576 $as_echo_n "(cached) " >&6
13578 if test -n "$NROFFPROG"; then
13579 ac_cv_prog_NROFFPROG="$NROFFPROG" # Let the user override the test.
13581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13582 for as_dir in $PATH
13585 test -z "$as_dir" && as_dir=.
13586 for ac_exec_ext in '' $ac_executable_extensions; do
13587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13588 ac_cv_prog_NROFFPROG="$ac_prog"
13589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13598 NROFFPROG=$ac_cv_prog_NROFFPROG
13599 if test -n "$NROFFPROG"; then
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFFPROG" >&5
13601 $as_echo "$NROFFPROG" >&6; }
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13604 $as_echo "no" >&6; }
13608 test -n "$NROFFPROG" && break
13611 if test -n "$NROFFPROG"; then
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $NROFFPROG supports the -c option" >&5
13613 $as_echo_n "checking whether $NROFFPROG supports the -c option... " >&6; }
13614 if ${sudo_cv_var_nroff_opt_c+:} false; then :
13615 $as_echo_n "(cached) " >&6
13617 if $NROFFPROG -c </dev/null >/dev/null 2>&1; then
13618 sudo_cv_var_nroff_opt_c=yes
13620 sudo_cv_var_nroff_opt_c=no
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_nroff_opt_c" >&5
13625 $as_echo "$sudo_cv_var_nroff_opt_c" >&6; }
13626 if test "$sudo_cv_var_nroff_opt_c" = "yes"; then
13627 NROFFPROG="$NROFFPROG -c"
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $NROFFPROG supports the -Tascii option" >&5
13630 $as_echo_n "checking whether $NROFFPROG supports the -Tascii option... " >&6; }
13631 if ${sudo_cv_var_nroff_opt_Tascii+:} false; then :
13632 $as_echo_n "(cached) " >&6
13634 if $NROFFPROG -Tascii </dev/null >/dev/null 2>&1; then
13635 sudo_cv_var_nroff_opt_Tascii=yes
13637 sudo_cv_var_nroff_opt_Tascii=no
13639 if test "$sudo_cv_var_nroff_opt_Tascii" = "yes"; then
13640 NROFFPROG="$NROFFPROG -Tascii"
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_nroff_opt_Tascii" >&5
13645 $as_echo "$sudo_cv_var_nroff_opt_Tascii" >&6; }
13648 mansrcdir='$(srcdir)'
13651 if test -n "$sudo_cv_prev_host"; then
13652 if test "$sudo_cv_prev_host" != "$host"; then
13653 as_fn_error $? "config.cache was created on a different host; remove it and re-run configure." "$LINENO" 5
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking previous host type" >&5
13656 $as_echo_n "checking previous host type... " >&6; }
13657 if ${sudo_cv_prev_host+:} false; then :
13658 $as_echo_n "(cached) " >&6
13660 sudo_cv_prev_host="$host"
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_prev_host" >&5
13664 $as_echo "$sudo_cv_prev_host" >&6; }
13667 # this will produce no output since there is no cached value
13668 if ${sudo_cv_prev_host+:} false; then :
13669 $as_echo_n "(cached) " >&6
13671 sudo_cv_prev_host="$host"
13676 if test -n "$host_os"; then
13677 OS=`echo $host_os | sed 's/[0-9].*//'`
13678 OSREV=`echo $host_os | sed 's/^[^0-9\.]*\([0-9\.]*\).*$/\1/'`
13679 OSMAJOR=`echo $OSREV | sed 's/\..*$//'`
13688 # getcwd(3) opens a pipe to getpwd(1)!?!
13691 # system headers lack prototypes but gcc helps...
13692 if test -n "$GCC"; then
13693 OSDEFS="${OSDEFS} -D__USE_FIXED_PROTOTYPES__"
13696 shadow_funcs="getpwanam issecure"
13699 # To get the crypt(3) prototype (so we pass -Wall)
13700 OSDEFS="${OSDEFS} -D__EXTENSIONS__"
13701 # AFS support needs -lucb
13702 if test "$with_AFS" = "yes"; then
13703 AFS_LIBS="-lc -lucb"
13705 : ${mansectsu='1m'}
13706 : ${mansectform='4'}
13707 : ${with_rpath='yes'}
13708 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13709 for ac_func in priv_set
13711 ac_fn_c_check_func "$LINENO" "priv_set" "ac_cv_func_priv_set"
13712 if test "x$ac_cv_func_priv_set" = xyes; then :
13713 cat >>confdefs.h <<_ACEOF
13714 #define HAVE_PRIV_SET 1
13722 # To get all prototypes (so we pass -Wall)
13723 OSDEFS="${OSDEFS} -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT"
13724 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp"
13725 if test X"$with_blibpath" != X"no"; then
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker accepts -Wl,-blibpath" >&5
13727 $as_echo_n "checking if linker accepts -Wl,-blibpath... " >&6; }
13728 O_LDFLAGS="$LDFLAGS"
13729 LDFLAGS="$O_LDFLAGS -Wl,-blibpath:/usr/lib:/lib"
13730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13731 /* end confdefs.h. */
13741 if ac_fn_c_try_link "$LINENO"; then :
13743 if test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
13744 blibpath="$with_blibpath"
13745 elif test -n "$GCC"; then
13746 blibpath="/usr/lib:/lib:/usr/local/lib"
13748 blibpath="/usr/lib:/lib"
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13751 $as_echo "yes" >&6; }
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13755 $as_echo "no" >&6; }
13757 rm -f core conftest.err conftest.$ac_objext \
13758 conftest$ac_exeext conftest.$ac_ext
13760 LDFLAGS="$O_LDFLAGS"
13762 # On AIX 6 and higher default to PAM, else default to LAM
13763 if test $OSMAJOR -ge 6; then
13764 if test X"$with_pam" = X""; then
13765 AUTH_EXCL_DEF="PAM"
13768 if test X"$with_aixauth" = X""; then
13769 for ac_func in authenticate
13771 ac_fn_c_check_func "$LINENO" "authenticate" "ac_cv_func_authenticate"
13772 if test "x$ac_cv_func_authenticate" = xyes; then :
13773 cat >>confdefs.h <<_ACEOF
13774 #define HAVE_AUTHENTICATE 1
13776 AUTH_EXCL_DEF="AIX_AUTH"
13783 # AIX analog of nsswitch.conf, enabled by default
13785 # Check whether --with-netsvc was given.
13786 if test "${with_netsvc+set}" = set; then :
13787 withval=$with_netsvc; case $with_netsvc in
13789 yes) with_netsvc="/etc/netsvc.conf"
13795 if test -z "$with_nsswitch" -a -z "$with_netsvc"; then
13796 with_netsvc="/etc/netsvc.conf"
13799 # For implementing getgrouplist()
13800 for ac_func in getgrset
13802 ac_fn_c_check_func "$LINENO" "getgrset" "ac_cv_func_getgrset"
13803 if test "x$ac_cv_func_getgrset" = xyes; then :
13804 cat >>confdefs.h <<_ACEOF
13805 #define HAVE_GETGRSET 1
13812 # LDR_PRELOAD is only supported in AIX 5.3 and later
13813 if test $OSMAJOR -lt 5; then
13817 # AIX-specific functions
13818 for ac_func in getuserattr setauthdb
13820 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13821 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13822 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13823 cat >>confdefs.h <<_ACEOF
13824 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13830 COMMON_OBJS="$COMMON_OBJS aix.lo"
13833 : ${mansectsu='1m'}
13834 : ${mansectform='4'}
13837 # AFS support needs -lBSD
13838 if test "$with_AFS" = "yes"; then
13839 AFS_LIBS="-lc -lBSD"
13841 : ${mansectsu='1m'}
13842 : ${mansectform='4'}
13844 # The HP bundled compiler cannot generate shared libs
13845 if test -z "$GCC"; then
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HP bundled C compiler" >&5
13847 $as_echo_n "checking for HP bundled C compiler... " >&6; }
13848 if ${sudo_cv_var_hpccbundled+:} false; then :
13849 $as_echo_n "(cached) " >&6
13851 if $CC -V 2>&1 | grep '^(Bundled)' >/dev/null 2>&1; then
13852 sudo_cv_var_hpccbundled=yes
13854 sudo_cv_var_hpccbundled=no
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_hpccbundled" >&5
13859 $as_echo "$sudo_cv_var_hpccbundled" >&6; }
13860 if test "$sudo_cv_var_hpccbundled" = "yes"; then
13861 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
13865 # Build PA-RISC1.1 objects for better portability
13866 case "$host_cpu" in
13869 if test -n "$GCC"; then
13870 portable_flag="-march=1.1"
13872 portable_flag="+DAportable"
13874 CFLAGS="$CFLAGS $portable_flag"
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands $portable_flag" >&5
13876 $as_echo_n "checking whether $CC understands $portable_flag... " >&6; }
13877 if ${sudo_cv_var_daportable+:} false; then :
13878 $as_echo_n "(cached) " >&6
13880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13881 /* end confdefs.h. */
13891 if ac_fn_c_try_link "$LINENO"; then :
13892 sudo_cv_var_daportable=yes
13894 sudo_cv_var_daportable=no
13897 rm -f core conftest.err conftest.$ac_objext \
13898 conftest$ac_exeext conftest.$ac_ext
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_daportable" >&5
13903 $as_echo "$sudo_cv_var_daportable" >&6; }
13904 if test X"$sudo_cv_var_daportable" != X"yes"; then
13912 $as_echo "#define BROKEN_SYSLOG 1" >>confdefs.h
13916 $as_echo "#define BROKEN_SYSLOG 1" >>confdefs.h
13919 shadow_funcs="getspwuid"
13921 # DCE support (requires ANSI C compiler)
13922 if test "$with_DCE" = "yes"; then
13923 # order of libs in 9.X is important. -lc_r must be last
13924 SUDOERS_LIBS="${SUDOERS_LIBS} -ldce -lM -lc_r"
13925 LIBS="${LIBS} -ldce -lM -lc_r"
13926 CPPFLAGS="${CPPFLAGS} -D_REENTRANT -I/usr/include/reentrant"
13930 shadow_funcs="getprpwnam iscomsec"
13931 shadow_libs="-lsec"
13932 # HP-UX 10.20 libc has an incompatible getline
13933 ac_cv_func_getline="no"
13936 shadow_funcs="getspnam iscomsec"
13937 shadow_libs="-lsec"
13938 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13943 # ignore envariables wrt dynamic lib path
13944 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -Wl,-no_library_replacement"
13946 : ${CHECKSIA='true'}
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable sia support on Digital UNIX" >&5
13948 $as_echo_n "checking whether to disable sia support on Digital UNIX... " >&6; }
13949 # Check whether --enable-sia was given.
13950 if test "${enable_sia+set}" = set; then :
13951 enableval=$enable_sia; case "$enableval" in
13952 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13953 $as_echo "no" >&6; }
13956 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13957 $as_echo "yes" >&6; }
13960 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13961 $as_echo "no" >&6; }
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&5
13963 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&2;}
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13969 $as_echo "no" >&6; }
13973 shadow_funcs="getprpwnam dispcrypt"
13974 # OSF/1 4.x and higher need -ldb too
13975 if test $OSMAJOR -lt 4; then
13976 shadow_libs="-lsecurity -laud -lm"
13978 shadow_libs="-lsecurity -ldb -laud -lm"
13981 # use SIA by default, if we have it
13982 test "$CHECKSIA" = "true" && AUTH_EXCL_DEF="SIA"
13985 # Some versions of Digital Unix ship with a broken
13986 # copy of prot.h, which we need for shadow passwords.
13987 # XXX - make should remove this as part of distclean
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken prot.h" >&5
13990 $as_echo_n "checking for broken prot.h... " >&6; }
13991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13992 /* end confdefs.h. */
13994 #include <sys/types.h>
13995 #include <sys/security.h>
14006 if ac_fn_c_try_compile "$LINENO"; then :
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14008 $as_echo "no" >&6; }
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, fixing locally" >&5
14011 $as_echo "yes, fixing locally" >&6; }
14012 sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
14015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14017 : ${mansectform='4'}
14020 OSDEFS="${OSDEFS} -D_BSD_TYPES"
14021 if test -z "$NROFFPROG"; then
14022 MAN_POSTINSTALL=' /bin/rm -f $(mandirsu)/sudo.$(mansectsu).z $(mandirsu)/visudo.$(mansectsu).z $(mandirform)/sudoers.$(mansectform).z ; /usr/bin/pack $(mandirsu)/sudo.$(mansectsu) $(mandirsu)/visudo.$(mansectsu) $(mandirform)/sudoers.$(mansectform)'
14023 if test "$prefix" = "/usr/local" -a "$mandir" = '${datarootdir}/man'; then
14024 if test -d /usr/share/catman/local; then
14025 mandir="/usr/share/catman/local"
14027 mandir="/usr/catman/local"
14031 if test "$prefix" = "/usr/local" -a "$mandir" = '${datarootdir}/man'; then
14032 if test -d "/usr/share/man/local"; then
14033 mandir="/usr/share/man/local"
14035 mandir="/usr/man/local"
14039 # IRIX <= 4 needs -lsun
14040 if test "$OSMAJOR" -le 4; then
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
14042 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
14043 if ${ac_cv_lib_sun_getpwnam+:} false; then :
14044 $as_echo_n "(cached) " >&6
14046 ac_check_lib_save_LIBS=$LIBS
14048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14049 /* end confdefs.h. */
14051 /* Override any GCC internal prototype to avoid an error.
14052 Use char because int might match the return type of a GCC
14053 builtin and then its argument prototype would still apply. */
14061 return getpwnam ();
14066 if ac_fn_c_try_link "$LINENO"; then :
14067 ac_cv_lib_sun_getpwnam=yes
14069 ac_cv_lib_sun_getpwnam=no
14071 rm -f core conftest.err conftest.$ac_objext \
14072 conftest$ac_exeext conftest.$ac_ext
14073 LIBS=$ac_check_lib_save_LIBS
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
14076 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
14077 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
14078 LIBS="${LIBS} -lsun"
14082 : ${mansectsu='1m'}
14083 : ${mansectform='4'}
14085 *-*-linux*|*-*-k*bsd*-gnu)
14086 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
14087 # Some Linux versions need to link with -lshadow
14088 shadow_funcs="getspnam"
14089 shadow_libs_optional="-lshadow"
14090 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14093 OSDEFS="${OSDEFS} -D_CONVEX_SOURCE"
14094 if test -z "$GCC"; then
14095 CFLAGS="${CFLAGS} -D__STDC__"
14098 shadow_defs="-D_AUDIT -D_ACL -DSecureWare"
14099 shadow_funcs="getprpwnam"
14100 shadow_libs="-lprot"
14104 shadow_funcs="getauthuid"
14105 shadow_libs="-lauth"
14108 LIBS="${LIBS} -lsun -lbsd"
14109 CPPFLAGS="${CPPFLAGS} -I/usr/include -I/usr/include/bsd"
14110 OSDEFS="${OSDEFS} -D_MIPS"
14111 : ${mansectsu='1m'}
14112 : ${mansectform='4'}
14115 OSDEFS="${OSDEFS} -D_ISC"
14117 SUDOERS_LIBS="${SUDOERS_LIBS} -lcrypt"
14119 shadow_funcs="getspnam"
14120 shadow_libs="-lsec"
14122 : ${mansectsu='1m'}
14123 : ${mansectform='4'}
14126 shadow_funcs="getprpwnam"
14127 shadow_libs="-lprot -lx"
14128 : ${mansectsu='1m'}
14129 : ${mansectform='4'}
14131 m88k-motorola-sysv*)
14132 # motorolla's cc (a variant of gcc) does -O but not -O2
14133 CFLAGS=`echo $CFLAGS | sed 's/-O2/-O/g'`
14134 : ${mansectsu='1m'}
14135 : ${mansectform='4'}
14138 shadow_funcs="getspnam"
14139 shadow_libs="-lsec"
14140 : ${mansectsu='1m'}
14141 : ${mansectform='4'}
14142 : ${with_rpath='yes'}
14144 *-ncr-sysv4*|*-ncr-sysvr4*)
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lc89" >&5
14146 $as_echo_n "checking for strcasecmp in -lc89... " >&6; }
14147 if ${ac_cv_lib_c89_strcasecmp+:} false; then :
14148 $as_echo_n "(cached) " >&6
14150 ac_check_lib_save_LIBS=$LIBS
14152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14153 /* end confdefs.h. */
14155 /* Override any GCC internal prototype to avoid an error.
14156 Use char because int might match the return type of a GCC
14157 builtin and then its argument prototype would still apply. */
14161 char strcasecmp ();
14165 return strcasecmp ();
14170 if ac_fn_c_try_link "$LINENO"; then :
14171 ac_cv_lib_c89_strcasecmp=yes
14173 ac_cv_lib_c89_strcasecmp=no
14175 rm -f core conftest.err conftest.$ac_objext \
14176 conftest$ac_exeext conftest.$ac_ext
14177 LIBS=$ac_check_lib_save_LIBS
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c89_strcasecmp" >&5
14180 $as_echo "$ac_cv_lib_c89_strcasecmp" >&6; }
14181 if test "x$ac_cv_lib_c89_strcasecmp" = xyes; then :
14182 LIBS="${LIBS} -lc89"
14185 : ${mansectsu='1m'}
14186 : ${mansectform='4'}
14187 : ${with_rpath='yes'}
14189 *-ccur-sysv4*|*-ccur-sysvr4*)
14190 LIBS="${LIBS} -lgen"
14191 : ${mansectsu='1m'}
14192 : ${mansectform='4'}
14193 : ${with_rpath='yes'}
14197 # Check for newer BSD auth API
14198 if test -z "$with_bsdauth"; then
14199 for ac_func in auth_challenge
14201 ac_fn_c_check_func "$LINENO" "auth_challenge" "ac_cv_func_auth_challenge"
14202 if test "x$ac_cv_func_auth_challenge" = xyes; then :
14203 cat >>confdefs.h <<_ACEOF
14204 #define HAVE_AUTH_CHALLENGE 1
14206 AUTH_EXCL_DEF="BSD_AUTH"
14213 # FreeBSD has a real setreuid(2) starting with 2.1 and
14214 # backported to 2.0.5. We just take 2.1 and above...
14220 OSDEFS="${OSDEFS} -D_BSD_SOURCE"
14221 if test "${with_skey-'no'}" = "yes"; then
14222 SUDOERS_LIBS="${SUDOERS_LIBS} -lmd"
14224 CHECKSHADOW="false"
14225 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14226 : ${with_logincap='maybe'}
14229 # OpenBSD has a real setreuid(2) starting with 3.3 but
14230 # we will use setresuid(2) instead.
14232 OSDEFS="${OSDEFS} -D_BSD_SOURCE"
14233 CHECKSHADOW="false"
14234 # OpenBSD >= 3.0 supports BSD auth
14235 if test -z "$with_bsdauth"; then
14236 if test "$OSMAJOR" -ge 3; then
14237 AUTH_EXCL_DEF="BSD_AUTH"
14240 : ${with_logincap='maybe'}
14243 # NetBSD has a real setreuid(2) starting with 1.3.2
14245 0.9*|1.[012]*|1.3|1.3.1)
14249 CHECKSHADOW="false"
14250 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14251 : ${with_logincap='maybe'}
14254 OSDEFS="${OSDEFS} -D_BSD_SOURCE"
14255 if test "${with_skey-'no'}" = "yes"; then
14256 SUDOERS_LIBS="${SUDOERS_LIBS} -lmd"
14258 CHECKSHADOW="false"
14259 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14260 : ${with_logincap='yes'}
14263 CHECKSHADOW="false"
14266 # Darwin has a real setreuid(2) starting with 9.0
14267 if test $OSMAJOR -lt 9; then
14270 CHECKSHADOW="false"
14271 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14272 : ${with_logincap='yes'}
14275 # lockf() on is broken on the NeXT -- use flock instead
14276 ac_cv_func_lockf=no
14277 ac_cv_func_flock=yes
14280 : ${mansectsu='1m'}
14281 : ${mansectform='4'}
14282 : ${with_rpath='yes'}
14285 : ${mansectsu='1m'}
14286 : ${mansectform='4'}
14289 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
14293 AUTH_REG=${AUTH_REG# }
14294 AUTH_EXCL=${AUTH_EXCL# }
14295 if test -n "$AUTH_EXCL"; then
14297 if test $# != 1; then
14298 as_fn_error $? "More than one mutually exclusive authentication method specified: $AUTH_EXCL" "$LINENO" 5
14300 if test -n "$AUTH_REG"; then
14301 as_fn_error $? "Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" "$LINENO" 5
14304 if test X"${with_skey}${with_opie}" = X"yesyes"; then
14305 as_fn_error $? "\"cannot use both S/Key and OPIE\"" "$LINENO" 5
14309 : ${mansectform='5'}
14311 if test -n "$with_libpath"; then
14312 for i in ${with_libpath}; do
14314 if test X"$with_rpath" = X"yes"; then
14316 *-*-hpux*) LDFLAGS="${LDFLAGS} -L$i -Wl,+b,$i"
14318 *) LDFLAGS="${LDFLAGS} -L$i -Wl,-R$i"
14322 LDFLAGS="${LDFLAGS} -L$i"
14324 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
14325 blibpath_add="${blibpath_add}:$i"
14330 if test -n "$with_libraries"; then
14331 for i in ${with_libraries}; do
14338 LIBS="${LIBS} ${i}"
14342 if test $ac_cv_c_compiler_gnu = yes; then
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
14344 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
14345 if ${ac_cv_prog_gcc_traditional+:} false; then :
14346 $as_echo_n "(cached) " >&6
14348 ac_pattern="Autoconf.*'x'"
14349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14350 /* end confdefs.h. */
14354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14355 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
14356 ac_cv_prog_gcc_traditional=yes
14358 ac_cv_prog_gcc_traditional=no
14363 if test $ac_cv_prog_gcc_traditional = no; then
14364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14365 /* end confdefs.h. */
14366 #include <termio.h>
14369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14370 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
14371 ac_cv_prog_gcc_traditional=yes
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
14378 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
14379 if test $ac_cv_prog_gcc_traditional = yes; then
14380 CC="$CC -traditional"
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14385 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14386 if ${ac_cv_c_const+:} false; then :
14387 $as_echo_n "(cached) " >&6
14389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14390 /* end confdefs.h. */
14395 /* FIXME: Include the comments suggested by Paul. */
14396 #ifndef __cplusplus
14397 /* Ultrix mips cc rejects this. */
14398 typedef int charset[2];
14400 /* SunOS 4.1.1 cc rejects this. */
14401 char const *const *pcpcc;
14403 /* NEC SVR4.0.2 mips cc rejects this. */
14404 struct point {int x, y;};
14405 static struct point const zero = {0,0};
14406 /* AIX XL C 1.02.0.0 rejects this.
14407 It does not let you subtract one const X* pointer from another in
14408 an arm of an if-expression whose if-part is not a constant
14410 const char *g = "string";
14411 pcpcc = &g + (g ? g-g : 0);
14412 /* HPUX 7.0 cc rejects these. */
14414 ppc = (char**) pcpcc;
14415 pcpcc = (char const *const *) ppc;
14416 { /* SCO 3.2v4 cc rejects this. */
14418 char const *s = 0 ? (char *) 0 : (char const *) 0;
14423 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14424 int x[] = {25, 17};
14425 const int *foo = &x[0];
14428 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14429 typedef const int *iptr;
14433 { /* AIX XL C 1.02.0.0 rejects this saying
14434 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14435 struct s { int j; const int *ap[3]; };
14436 struct s *b; b->j = 5;
14438 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14439 const int foo = 10;
14440 if (!foo) return 0;
14442 return !cs[0] && !zero.x;
14449 if ac_fn_c_try_compile "$LINENO"; then :
14454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14457 $as_echo "$ac_cv_c_const" >&6; }
14458 if test $ac_cv_c_const = no; then
14460 $as_echo "#define const /**/" >>confdefs.h
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
14465 $as_echo_n "checking for working volatile... " >&6; }
14466 if ${ac_cv_c_volatile+:} false; then :
14467 $as_echo_n "(cached) " >&6
14469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14470 /* end confdefs.h. */
14477 int * volatile y = (int *) 0;
14483 if ac_fn_c_try_compile "$LINENO"; then :
14484 ac_cv_c_volatile=yes
14486 ac_cv_c_volatile=no
14488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
14491 $as_echo "$ac_cv_c_volatile" >&6; }
14492 if test $ac_cv_c_volatile = no; then
14494 $as_echo "#define volatile /**/" >>confdefs.h
14498 if test X"$with_gnu_ld" != "yes" -a -n "$GCC"; then
14500 CFLAGS="$CFLAGS -static-libgcc"
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -static-libgcc" >&5
14502 $as_echo_n "checking whether $CC understands -static-libgcc... " >&6; }
14503 if ${sudo_cv_var_gcc_static_libgcc+:} false; then :
14504 $as_echo_n "(cached) " >&6
14506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14507 /* end confdefs.h. */
14517 if ac_fn_c_try_link "$LINENO"; then :
14518 sudo_cv_var_gcc_static_libgcc=yes
14520 sudo_cv_var_gcc_static_libgcc=no
14523 rm -f core conftest.err conftest.$ac_objext \
14524 conftest$ac_exeext conftest.$ac_ext
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_gcc_static_libgcc" >&5
14529 $as_echo "$sudo_cv_var_gcc_static_libgcc" >&6; }
14531 if test "$sudo_cv_var_gcc_static_libgcc" = "yes"; then
14532 LTLDFLAGS="$LTLDFLAGS -Wc,-static-libgcc"
14535 for ac_prog in 'bison -y' byacc
14537 # Extract the first word of "$ac_prog", so it can be a program name with args.
14538 set dummy $ac_prog; ac_word=$2
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14540 $as_echo_n "checking for $ac_word... " >&6; }
14541 if ${ac_cv_prog_YACC+:} false; then :
14542 $as_echo_n "(cached) " >&6
14544 if test -n "$YACC"; then
14545 ac_cv_prog_YACC="$YACC" # Let the user override the test.
14547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14548 for as_dir in $PATH
14551 test -z "$as_dir" && as_dir=.
14552 for ac_exec_ext in '' $ac_executable_extensions; do
14553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14554 ac_cv_prog_YACC="$ac_prog"
14555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14564 YACC=$ac_cv_prog_YACC
14565 if test -n "$YACC"; then
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
14567 $as_echo "$YACC" >&6; }
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14570 $as_echo "no" >&6; }
14574 test -n "$YACC" && break
14576 test -n "$YACC" || YACC="yacc"
14578 # Extract the first word of "flex", so it can be a program name with args.
14579 set dummy flex; ac_word=$2
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14581 $as_echo_n "checking for $ac_word... " >&6; }
14582 if ${ac_cv_path_FLEX+:} false; then :
14583 $as_echo_n "(cached) " >&6
14587 ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path.
14590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14591 for as_dir in $PATH
14594 test -z "$as_dir" && as_dir=.
14595 for ac_exec_ext in '' $ac_executable_extensions; do
14596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14597 ac_cv_path_FLEX="$as_dir/$ac_word$ac_exec_ext"
14598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14605 test -z "$ac_cv_path_FLEX" && ac_cv_path_FLEX="flex"
14609 FLEX=$ac_cv_path_FLEX
14610 if test -n "$FLEX"; then
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
14612 $as_echo "$FLEX" >&6; }
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14615 $as_echo "no" >&6; }
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mv" >&5
14620 $as_echo_n "checking for mv... " >&6; }
14622 for p in "/usr/bin/mv" "/bin/mv" "/usr/ucb/mv" "/usr/sbin/mv"; do
14623 if test -f "$p"; then
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
14626 $as_echo "$p" >&6; }
14627 cat >>confdefs.h <<EOF
14628 #define _PATH_MV "$p"
14634 if test X"$found" != X"yes"; then
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14636 $as_echo "not found" >&6; }
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bourne shell" >&5
14640 $as_echo_n "checking for bourne shell... " >&6; }
14642 for p in "/bin/sh" "/usr/bin/sh" "/sbin/sh" "/usr/sbin/sh" "/bin/ksh" "/usr/bin/ksh" "/bin/bash" "/usr/bin/bash"; do
14643 if test -f "$p"; then
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
14646 $as_echo "$p" >&6; }
14647 cat >>confdefs.h <<EOF
14648 #define _PATH_BSHELL "$p"
14654 if test X"$found" != X"yes"; then
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14656 $as_echo "not found" >&6; }
14659 if test -z "$with_sendmail"; then
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendmail" >&5
14661 $as_echo_n "checking for sendmail... " >&6; }
14663 for p in "/usr/sbin/sendmail" "/usr/lib/sendmail" "/usr/etc/sendmail" "/usr/ucblib/sendmail" "/usr/local/lib/sendmail" "/usr/local/bin/sendmail"; do
14664 if test -f "$p"; then
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
14667 $as_echo "$p" >&6; }
14668 cat >>confdefs.h <<EOF
14669 #define _PATH_SUDO_SENDMAIL "$p"
14675 if test X"$found" != X"yes"; then
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14677 $as_echo "not found" >&6; }
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vi" >&5
14682 $as_echo_n "checking for vi... " >&6; }
14684 for editor in "/usr/bin/vi" "/bin/vi" "/usr/ucb/vi" "/usr/bsd/vi" "/usr/local/bin/vi"; do
14685 if test -f "$editor"; then
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $editor" >&5
14688 $as_echo "$editor" >&6; }
14689 cat >>confdefs.h <<EOF
14690 #define _PATH_VI "$editor"
14696 if test X"$found" != X"yes"; then
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14698 $as_echo "not found" >&6; }
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which syslog facility sudo should log with" >&5
14702 $as_echo_n "checking which syslog facility sudo should log with... " >&6; }
14703 if test X"$with_logfac" = X""; then
14704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14705 /* end confdefs.h. */
14706 #include <syslog.h>
14710 int i = LOG_AUTHPRIV; (void)i;
14715 if ac_fn_c_try_compile "$LINENO"; then :
14718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14721 cat >>confdefs.h <<_ACEOF
14722 #define LOGFAC "$logfac"
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logfac" >&5
14726 $as_echo "$logfac" >&6; }
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14728 $as_echo_n "checking for ANSI C header files... " >&6; }
14729 if ${ac_cv_header_stdc+:} false; then :
14730 $as_echo_n "(cached) " >&6
14732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14733 /* end confdefs.h. */
14734 #include <stdlib.h>
14735 #include <stdarg.h>
14736 #include <string.h>
14747 if ac_fn_c_try_compile "$LINENO"; then :
14748 ac_cv_header_stdc=yes
14750 ac_cv_header_stdc=no
14752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14754 if test $ac_cv_header_stdc = yes; then
14755 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14757 /* end confdefs.h. */
14758 #include <string.h>
14761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14762 $EGREP "memchr" >/dev/null 2>&1; then :
14765 ac_cv_header_stdc=no
14771 if test $ac_cv_header_stdc = yes; then
14772 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14774 /* end confdefs.h. */
14775 #include <stdlib.h>
14778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14779 $EGREP "free" >/dev/null 2>&1; then :
14782 ac_cv_header_stdc=no
14788 if test $ac_cv_header_stdc = yes; then
14789 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14790 if test "$cross_compiling" = yes; then :
14793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14794 /* end confdefs.h. */
14796 #include <stdlib.h>
14797 #if ((' ' & 0x0FF) == 0x020)
14798 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14799 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14801 # define ISLOWER(c) \
14802 (('a' <= (c) && (c) <= 'i') \
14803 || ('j' <= (c) && (c) <= 'r') \
14804 || ('s' <= (c) && (c) <= 'z'))
14805 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14808 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14813 for (i = 0; i < 256; i++)
14814 if (XOR (islower (i), ISLOWER (i))
14815 || toupper (i) != TOUPPER (i))
14820 if ac_fn_c_try_run "$LINENO"; then :
14823 ac_cv_header_stdc=no
14825 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14826 conftest.$ac_objext conftest.beam conftest.$ac_ext
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14832 $as_echo "$ac_cv_header_stdc" >&6; }
14833 if test $ac_cv_header_stdc = yes; then
14835 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14839 ac_header_dirent=no
14840 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14841 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
14843 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
14844 if eval \${$as_ac_Header+:} false; then :
14845 $as_echo_n "(cached) " >&6
14847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14848 /* end confdefs.h. */
14849 #include <sys/types.h>
14861 if ac_fn_c_try_compile "$LINENO"; then :
14862 eval "$as_ac_Header=yes"
14864 eval "$as_ac_Header=no"
14866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14868 eval ac_res=\$$as_ac_Header
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14870 $as_echo "$ac_res" >&6; }
14871 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14872 cat >>confdefs.h <<_ACEOF
14873 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14876 ac_header_dirent=$ac_hdr; break
14880 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14881 if test $ac_header_dirent = dirent.h; then
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
14883 $as_echo_n "checking for library containing opendir... " >&6; }
14884 if ${ac_cv_search_opendir+:} false; then :
14885 $as_echo_n "(cached) " >&6
14887 ac_func_search_save_LIBS=$LIBS
14888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14889 /* end confdefs.h. */
14891 /* Override any GCC internal prototype to avoid an error.
14892 Use char because int might match the return type of a GCC
14893 builtin and then its argument prototype would still apply. */
14906 for ac_lib in '' dir; do
14907 if test -z "$ac_lib"; then
14908 ac_res="none required"
14911 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14913 if ac_fn_c_try_link "$LINENO"; then :
14914 ac_cv_search_opendir=$ac_res
14916 rm -f core conftest.err conftest.$ac_objext \
14918 if ${ac_cv_search_opendir+:} false; then :
14922 if ${ac_cv_search_opendir+:} false; then :
14925 ac_cv_search_opendir=no
14927 rm conftest.$ac_ext
14928 LIBS=$ac_func_search_save_LIBS
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
14931 $as_echo "$ac_cv_search_opendir" >&6; }
14932 ac_res=$ac_cv_search_opendir
14933 if test "$ac_res" != no; then :
14934 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
14940 $as_echo_n "checking for library containing opendir... " >&6; }
14941 if ${ac_cv_search_opendir+:} false; then :
14942 $as_echo_n "(cached) " >&6
14944 ac_func_search_save_LIBS=$LIBS
14945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14946 /* end confdefs.h. */
14948 /* Override any GCC internal prototype to avoid an error.
14949 Use char because int might match the return type of a GCC
14950 builtin and then its argument prototype would still apply. */
14963 for ac_lib in '' x; do
14964 if test -z "$ac_lib"; then
14965 ac_res="none required"
14968 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14970 if ac_fn_c_try_link "$LINENO"; then :
14971 ac_cv_search_opendir=$ac_res
14973 rm -f core conftest.err conftest.$ac_objext \
14975 if ${ac_cv_search_opendir+:} false; then :
14979 if ${ac_cv_search_opendir+:} false; then :
14982 ac_cv_search_opendir=no
14984 rm conftest.$ac_ext
14985 LIBS=$ac_func_search_save_LIBS
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
14988 $as_echo "$ac_cv_search_opendir" >&6; }
14989 ac_res=$ac_cv_search_opendir
14990 if test "$ac_res" != no; then :
14991 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14998 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14999 if ${ac_cv_header_time+:} false; then :
15000 $as_echo_n "(cached) " >&6
15002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15003 /* end confdefs.h. */
15004 #include <sys/types.h>
15005 #include <sys/time.h>
15011 if ((struct tm *) 0)
15017 if ac_fn_c_try_compile "$LINENO"; then :
15018 ac_cv_header_time=yes
15020 ac_cv_header_time=no
15022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15025 $as_echo "$ac_cv_header_time" >&6; }
15026 if test $ac_cv_header_time = yes; then
15028 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15032 for ac_header in malloc.h paths.h utime.h netgroup.h utmpx.h sys/sockio.h sys/bsdtypes.h sys/select.h sys/stropts.h sys/sysmacros.h
15034 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15035 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15036 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15037 cat >>confdefs.h <<_ACEOF
15038 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15045 # Check whether --enable-largefile was given.
15046 if test "${enable_largefile+set}" = set; then :
15047 enableval=$enable_largefile;
15050 if test "$enable_largefile" != no; then
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15053 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15054 if ${ac_cv_sys_largefile_CC+:} false; then :
15055 $as_echo_n "(cached) " >&6
15057 ac_cv_sys_largefile_CC=no
15058 if test "$GCC" != yes; then
15061 # IRIX 6.2 and later do not support large files by default,
15062 # so use the C compiler's -n32 option if that helps.
15063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15064 /* end confdefs.h. */
15065 #include <sys/types.h>
15066 /* Check that off_t can represent 2**63 - 1 correctly.
15067 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15068 since some C++ compilers masquerading as C compilers
15069 incorrectly reject 9223372036854775807. */
15070 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15071 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15072 && LARGE_OFF_T % 2147483647 == 1)
15082 if ac_fn_c_try_compile "$LINENO"; then :
15085 rm -f core conftest.err conftest.$ac_objext
15087 if ac_fn_c_try_compile "$LINENO"; then :
15088 ac_cv_sys_largefile_CC=' -n32'; break
15090 rm -f core conftest.err conftest.$ac_objext
15094 rm -f conftest.$ac_ext
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15098 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15099 if test "$ac_cv_sys_largefile_CC" != no; then
15100 CC=$CC$ac_cv_sys_largefile_CC
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15104 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15105 if ${ac_cv_sys_file_offset_bits+:} false; then :
15106 $as_echo_n "(cached) " >&6
15109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15110 /* end confdefs.h. */
15111 #include <sys/types.h>
15112 /* Check that off_t can represent 2**63 - 1 correctly.
15113 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15114 since some C++ compilers masquerading as C compilers
15115 incorrectly reject 9223372036854775807. */
15116 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15117 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15118 && LARGE_OFF_T % 2147483647 == 1)
15128 if ac_fn_c_try_compile "$LINENO"; then :
15129 ac_cv_sys_file_offset_bits=no; break
15131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15133 /* end confdefs.h. */
15134 #define _FILE_OFFSET_BITS 64
15135 #include <sys/types.h>
15136 /* Check that off_t can represent 2**63 - 1 correctly.
15137 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15138 since some C++ compilers masquerading as C compilers
15139 incorrectly reject 9223372036854775807. */
15140 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15141 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15142 && LARGE_OFF_T % 2147483647 == 1)
15152 if ac_fn_c_try_compile "$LINENO"; then :
15153 ac_cv_sys_file_offset_bits=64; break
15155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15156 ac_cv_sys_file_offset_bits=unknown
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15161 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15162 case $ac_cv_sys_file_offset_bits in #(
15165 cat >>confdefs.h <<_ACEOF
15166 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15171 if test $ac_cv_sys_file_offset_bits = unknown; then
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15173 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15174 if ${ac_cv_sys_large_files+:} false; then :
15175 $as_echo_n "(cached) " >&6
15178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15179 /* end confdefs.h. */
15180 #include <sys/types.h>
15181 /* Check that off_t can represent 2**63 - 1 correctly.
15182 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15183 since some C++ compilers masquerading as C compilers
15184 incorrectly reject 9223372036854775807. */
15185 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15186 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15187 && LARGE_OFF_T % 2147483647 == 1)
15197 if ac_fn_c_try_compile "$LINENO"; then :
15198 ac_cv_sys_large_files=no; break
15200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15202 /* end confdefs.h. */
15203 #define _LARGE_FILES 1
15204 #include <sys/types.h>
15205 /* Check that off_t can represent 2**63 - 1 correctly.
15206 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15207 since some C++ compilers masquerading as C compilers
15208 incorrectly reject 9223372036854775807. */
15209 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15210 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15211 && LARGE_OFF_T % 2147483647 == 1)
15221 if ac_fn_c_try_compile "$LINENO"; then :
15222 ac_cv_sys_large_files=1; break
15224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15225 ac_cv_sys_large_files=unknown
15229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15230 $as_echo "$ac_cv_sys_large_files" >&6; }
15231 case $ac_cv_sys_large_files in #(
15234 cat >>confdefs.h <<_ACEOF
15235 #define _LARGE_FILES $ac_cv_sys_large_files
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h needs _XOPEN_SOURCE_EXTENDED" >&5
15246 $as_echo_n "checking whether sys/types.h needs _XOPEN_SOURCE_EXTENDED... " >&6; }
15247 if ${sudo_cv_xopen_source_extended+:} false; then :
15248 $as_echo_n "(cached) " >&6
15250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15251 /* end confdefs.h. */
15252 $ac_includes_default
15253 #include <sys/socket.h>
15262 if ac_fn_c_try_compile "$LINENO"; then :
15263 sudo_cv_xopen_source_extended=no
15266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15267 /* end confdefs.h. */
15268 #define _XOPEN_SOURCE_EXTENDED
15269 $ac_includes_default
15270 #include <sys/socket.h>
15279 if ac_fn_c_try_compile "$LINENO"; then :
15280 sudo_cv_xopen_source_extended=yes
15282 sudo_cv_xopen_source_extended=error
15284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_xopen_source_extended" >&5
15290 $as_echo "$sudo_cv_xopen_source_extended" >&6; }
15291 if test "$sudo_cv_xopen_source_extended" = "yes"; then
15292 OSDEFS="${OSDEFS} -D_XOPEN_SOURCE_EXTENDED"
15293 cat >>confdefs.h <<\EOF
15294 #define _XOPEN_SOURCE_EXTENDED 1
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX termios" >&5
15301 $as_echo_n "checking POSIX termios... " >&6; }
15302 if ${ac_cv_sys_posix_termios+:} false; then :
15303 $as_echo_n "(cached) " >&6
15305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15306 /* end confdefs.h. */
15307 #include <sys/types.h>
15308 #include <unistd.h>
15309 #include <termios.h>
15314 /* SunOS 4.0.3 has termios.h but not the library calls. */
15320 if ac_fn_c_try_link "$LINENO"; then :
15321 ac_cv_sys_posix_termios=yes
15323 ac_cv_sys_posix_termios=no
15325 rm -f core conftest.err conftest.$ac_objext \
15326 conftest$ac_exeext conftest.$ac_ext
15328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_posix_termios" >&5
15329 $as_echo "$ac_cv_sys_posix_termios" >&6; }
15331 if test "$ac_cv_sys_posix_termios" != "yes"; then
15332 as_fn_error $? "Must have POSIX termios to build sudo" "$LINENO" 5
15336 if test X"$ac_cv_header_paths_h" = X"yes"; then
15337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15338 /* end confdefs.h. */
15339 $ac_includes_default
15344 char *p = _PATH_MAILDIR;
15349 if ac_fn_c_try_compile "$LINENO"; then :
15352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15354 if test $maildir = no; then
15355 # Solaris has maillock.h which defines MAILDIR
15356 for ac_header in maillock.h
15358 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
15359 if test "x$ac_cv_header_maillock_h" = xyes; then :
15360 cat >>confdefs.h <<_ACEOF
15361 #define HAVE_MAILLOCK_H 1
15364 cat >>confdefs.h <<\EOF
15365 #define _PATH_MAILDIR MAILDIR
15374 if test $maildir = no; then
15375 for d in /var/mail /var/spool/mail /usr/spool/mail; do
15376 if test -d "$d"; then
15378 cat >>confdefs.h <<EOF
15379 #define _PATH_MAILDIR "$d"
15385 if test $maildir = no; then
15386 # unable to find mail dir, hope for the best
15387 cat >>confdefs.h <<EOF
15388 #define _PATH_MAILDIR "/var/mail"
15395 if test ${with_logincap-'no'} != "no"; then
15396 for ac_header in login_cap.h
15398 ac_fn_c_check_header_mongrel "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" "$ac_includes_default"
15399 if test "x$ac_cv_header_login_cap_h" = xyes; then :
15400 cat >>confdefs.h <<_ACEOF
15401 #define HAVE_LOGIN_CAP_H 1
15403 LOGINCAP_USAGE='[-c class|-] '; LCMAN=1
15406 SUDO_LIBS="${SUDO_LIBS} -lutil"
15407 SUDOERS_LIBS="${SUDOERS_LIBS} -lutil"
15416 if test ${with_project-'no'} != "no"; then
15417 ac_fn_c_check_header_mongrel "$LINENO" "project.h" "ac_cv_header_project_h" "$ac_includes_default"
15418 if test "x$ac_cv_header_project_h" = xyes; then :
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproject in -lproject" >&5
15421 $as_echo_n "checking for setproject in -lproject... " >&6; }
15422 if ${ac_cv_lib_project_setproject+:} false; then :
15423 $as_echo_n "(cached) " >&6
15425 ac_check_lib_save_LIBS=$LIBS
15426 LIBS="-lproject $LIBS"
15427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15428 /* end confdefs.h. */
15430 /* Override any GCC internal prototype to avoid an error.
15431 Use char because int might match the return type of a GCC
15432 builtin and then its argument prototype would still apply. */
15436 char setproject ();
15440 return setproject ();
15445 if ac_fn_c_try_link "$LINENO"; then :
15446 ac_cv_lib_project_setproject=yes
15448 ac_cv_lib_project_setproject=no
15450 rm -f core conftest.err conftest.$ac_objext \
15451 conftest$ac_exeext conftest.$ac_ext
15452 LIBS=$ac_check_lib_save_LIBS
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_project_setproject" >&5
15455 $as_echo "$ac_cv_lib_project_setproject" >&6; }
15456 if test "x$ac_cv_lib_project_setproject" = xyes; then :
15458 $as_echo "#define HAVE_PROJECT_H 1" >>confdefs.h
15460 SUDO_LIBS="${SUDO_LIBS} -lproject"
15469 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
15470 if test "x$ac_cv_type_mode_t" = xyes; then :
15474 cat >>confdefs.h <<_ACEOF
15480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
15481 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
15482 if ${ac_cv_type_uid_t+:} false; then :
15483 $as_echo_n "(cached) " >&6
15485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15486 /* end confdefs.h. */
15487 #include <sys/types.h>
15490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15491 $EGREP "uid_t" >/dev/null 2>&1; then :
15492 ac_cv_type_uid_t=yes
15494 ac_cv_type_uid_t=no
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
15500 $as_echo "$ac_cv_type_uid_t" >&6; }
15501 if test $ac_cv_type_uid_t = no; then
15503 $as_echo "#define uid_t int" >>confdefs.h
15506 $as_echo "#define gid_t int" >>confdefs.h
15510 ac_fn_c_check_type "$LINENO" "__signed char" "ac_cv_type___signed_char" "$ac_includes_default"
15511 if test "x$ac_cv_type___signed_char" = xyes; then :
15514 ac_fn_c_check_type "$LINENO" "signed char" "ac_cv_type_signed_char" "$ac_includes_default"
15515 if test "x$ac_cv_type_signed_char" = xyes; then :
15516 $as_echo "#define __signed signed" >>confdefs.h
15519 $as_echo "#define __signed /**/" >>confdefs.h
15525 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <sys/types.h>
15526 #include <signal.h>
15528 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
15531 $as_echo "#define sig_atomic_t int" >>confdefs.h
15535 ac_fn_c_check_type "$LINENO" "sigaction_t" "ac_cv_type_sigaction_t" "#include <sys/types.h>
15536 #include <signal.h>
15538 if test "x$ac_cv_type_sigaction_t" = xyes; then :
15540 cat >>confdefs.h <<_ACEOF
15541 #define HAVE_SIGACTION_T 1
15544 $as_echo "#define HAVE_SIGACTION_T 1" >>confdefs.h
15548 ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "#include <sys/types.h>
15549 #if TIME_WITH_SYS_TIME
15550 # include <sys/time.h>
15554 if test "x$ac_cv_type_struct_timespec" = xyes; then :
15555 $as_echo "#define HAVE_TIMESPEC 1" >>confdefs.h
15559 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#include <sys/types.h>
15560 #include <netinet/in.h>
15562 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
15564 cat >>confdefs.h <<_ACEOF
15565 #define HAVE_STRUCT_IN6_ADDR 1
15568 $as_echo "#define HAVE_IN6_ADDR 1" >>confdefs.h
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
15574 $as_echo_n "checking for long long int... " >&6; }
15575 if ${ac_cv_type_long_long_int+:} false; then :
15576 $as_echo_n "(cached) " >&6
15578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15579 /* end confdefs.h. */
15581 /* For now, do not test the preprocessor; as of 2007 there are too many
15582 implementations with broken preprocessors. Perhaps this can
15583 be revisited in 2012. In the meantime, code should not expect
15584 #if to work with literals wider than 32 bits. */
15585 /* Test literals. */
15586 long long int ll = 9223372036854775807ll;
15587 long long int nll = -9223372036854775807LL;
15588 unsigned long long int ull = 18446744073709551615ULL;
15589 /* Test constant expressions. */
15590 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
15592 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
15598 /* Test availability of runtime routines for shift and division. */
15599 long long int llmax = 9223372036854775807ll;
15600 unsigned long long int ullmax = 18446744073709551615ull;
15601 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
15602 | (llmax / ll) | (llmax % ll)
15603 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
15604 | (ullmax / ull) | (ullmax % ull));
15610 if ac_fn_c_try_link "$LINENO"; then :
15611 if test "$cross_compiling" = yes; then :
15612 ac_cv_type_long_long_int=yes
15614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15615 /* end confdefs.h. */
15616 #include <limits.h>
15619 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
15620 # define LLONG_MAX (HALF - 1 + HALF)
15625 long long int n = 1;
15629 long long int m = n << i;
15632 if (LLONG_MAX / 2 < m)
15640 if ac_fn_c_try_run "$LINENO"; then :
15641 ac_cv_type_long_long_int=yes
15643 ac_cv_type_long_long_int=no
15645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15646 conftest.$ac_objext conftest.beam conftest.$ac_ext
15650 ac_cv_type_long_long_int=no
15652 rm -f core conftest.err conftest.$ac_objext \
15653 conftest$ac_exeext conftest.$ac_ext
15655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
15656 $as_echo "$ac_cv_type_long_long_int" >&6; }
15657 if test $ac_cv_type_long_long_int = yes; then
15659 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
15663 # The cast to long int works around a bug in the HP C Compiler
15664 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15665 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15666 # This bug is HP SR number 8606223364.
15667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
15668 $as_echo_n "checking size of long int... " >&6; }
15669 if ${ac_cv_sizeof_long_int+:} false; then :
15670 $as_echo_n "(cached) " >&6
15672 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
15675 if test "$ac_cv_type_long_int" = yes; then
15676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15678 as_fn_error 77 "cannot compute sizeof (long int)
15679 See \`config.log' for more details" "$LINENO" 5; }
15681 ac_cv_sizeof_long_int=0
15686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
15687 $as_echo "$ac_cv_sizeof_long_int" >&6; }
15691 cat >>confdefs.h <<_ACEOF
15692 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
15696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5
15697 $as_echo_n "checking for size_t... " >&6; }
15698 if ${sudo_cv_type_size_t+:} false; then :
15699 $as_echo_n "(cached) " >&6
15701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15702 /* end confdefs.h. */
15703 #include <sys/types.h>
15706 #include <stdlib.h>
15709 #include <unistd.h>
15712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15713 $EGREP "size_t" >/dev/null 2>&1; then :
15714 sudo_cv_type_size_t=yes
15716 sudo_cv_type_size_t=no
15721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_type_size_t" >&5
15722 $as_echo "$sudo_cv_type_size_t" >&6; }
15723 if test $sudo_cv_type_size_t = no; then
15725 $as_echo "#define size_t int" >>confdefs.h
15729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
15730 $as_echo_n "checking for ssize_t... " >&6; }
15731 if ${sudo_cv_type_ssize_t+:} false; then :
15732 $as_echo_n "(cached) " >&6
15734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15735 /* end confdefs.h. */
15736 #include <sys/types.h>
15739 #include <stdlib.h>
15742 #include <unistd.h>
15745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15746 $EGREP "ssize_t" >/dev/null 2>&1; then :
15747 sudo_cv_type_ssize_t=yes
15749 sudo_cv_type_ssize_t=no
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_type_ssize_t" >&5
15755 $as_echo "$sudo_cv_type_ssize_t" >&6; }
15756 if test $sudo_cv_type_ssize_t = no; then
15758 $as_echo "#define ssize_t int" >>confdefs.h
15762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dev_t" >&5
15763 $as_echo_n "checking for dev_t... " >&6; }
15764 if ${sudo_cv_type_dev_t+:} false; then :
15765 $as_echo_n "(cached) " >&6
15767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15768 /* end confdefs.h. */
15769 #include <sys/types.h>
15772 #include <stdlib.h>
15775 #include <unistd.h>
15778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15779 $EGREP "dev_t" >/dev/null 2>&1; then :
15780 sudo_cv_type_dev_t=yes
15782 sudo_cv_type_dev_t=no
15787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_type_dev_t" >&5
15788 $as_echo "$sudo_cv_type_dev_t" >&6; }
15789 if test $sudo_cv_type_dev_t = no; then
15791 $as_echo "#define dev_t int" >>confdefs.h
15795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ino_t" >&5
15796 $as_echo_n "checking for ino_t... " >&6; }
15797 if ${sudo_cv_type_ino_t+:} false; then :
15798 $as_echo_n "(cached) " >&6
15800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15801 /* end confdefs.h. */
15802 #include <sys/types.h>
15805 #include <stdlib.h>
15808 #include <unistd.h>
15811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15812 $EGREP "ino_t" >/dev/null 2>&1; then :
15813 sudo_cv_type_ino_t=yes
15815 sudo_cv_type_ino_t=no
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_type_ino_t" >&5
15821 $as_echo "$sudo_cv_type_ino_t" >&6; }
15822 if test $sudo_cv_type_ino_t = no; then
15824 $as_echo "#define ino_t unsigned int" >>confdefs.h
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking max length of uid_t" >&5
15830 $as_echo_n "checking max length of uid_t... " >&6; }
15831 if ${sudo_cv_uid_t_len+:} false; then :
15832 $as_echo_n "(cached) " >&6
15835 if test "$cross_compiling" = yes; then :
15836 sudo_cv_uid_t_len=10
15838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15839 /* end confdefs.h. */
15842 #include <limits.h>
15843 #include <sys/types.h>
15844 #include <sys/param.h>
15848 uid_t u = (uid_t) -1;
15850 if ((f = fopen("conftestdata", "w")) == NULL)
15853 (void) sprintf(b, "%lu", (unsigned long) u);
15854 (void) fprintf(f, "%d\n", strlen(b));
15859 if ac_fn_c_try_run "$LINENO"; then :
15860 sudo_cv_uid_t_len=`cat conftestdata`
15862 sudo_cv_uid_t_len=10
15864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15865 conftest.$ac_objext conftest.beam conftest.$ac_ext
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_uid_t_len" >&5
15873 $as_echo "$sudo_cv_uid_t_len" >&6; }
15875 cat >>confdefs.h <<_ACEOF
15876 #define MAX_UID_T_LEN $sudo_cv_uid_t_len
15881 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" " #include <sys/types.h>
15882 #include <sys/socket.h>
15885 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
15887 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
15893 CFLAGS="$CFLAGS $OSDEFS"
15894 if test $ac_cv_header_utmpx_h = "yes"; then
15895 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_id" "ac_cv_member_struct_utmpx_ut_id" "
15896 #include <sys/types.h>
15900 if test "x$ac_cv_member_struct_utmpx_ut_id" = xyes; then :
15902 cat >>confdefs.h <<_ACEOF
15903 #define HAVE_STRUCT_UTMPX_UT_ID 1
15908 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_pid" "ac_cv_member_struct_utmpx_ut_pid" "
15909 #include <sys/types.h>
15913 if test "x$ac_cv_member_struct_utmpx_ut_pid" = xyes; then :
15915 cat >>confdefs.h <<_ACEOF
15916 #define HAVE_STRUCT_UTMPX_UT_PID 1
15921 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_tv" "ac_cv_member_struct_utmpx_ut_tv" "
15922 #include <sys/types.h>
15926 if test "x$ac_cv_member_struct_utmpx_ut_tv" = xyes; then :
15928 cat >>confdefs.h <<_ACEOF
15929 #define HAVE_STRUCT_UTMPX_UT_TV 1
15934 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_type" "ac_cv_member_struct_utmpx_ut_type" "
15935 #include <sys/types.h>
15939 if test "x$ac_cv_member_struct_utmpx_ut_type" = xyes; then :
15941 cat >>confdefs.h <<_ACEOF
15942 #define HAVE_STRUCT_UTMPX_UT_TYPE 1
15948 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_exit.__e_termination" "ac_cv_member_struct_utmpx_ut_exit___e_termination" "
15949 #include <sys/types.h>
15953 if test "x$ac_cv_member_struct_utmpx_ut_exit___e_termination" = xyes; then :
15955 cat >>confdefs.h <<_ACEOF
15956 #define HAVE_STRUCT_UTMPX_UT_EXIT___E_TERMINATION 1
15959 $as_echo "#define HAVE_STRUCT_UTMPX_UT_EXIT 1" >>confdefs.h
15963 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_exit.e_termination" "ac_cv_member_struct_utmpx_ut_exit_e_termination" "
15964 #include <sys/types.h>
15968 if test "x$ac_cv_member_struct_utmpx_ut_exit_e_termination" = xyes; then :
15970 cat >>confdefs.h <<_ACEOF
15971 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_TERMINATION 1
15974 $as_echo "#define HAVE_STRUCT_UTMPX_UT_EXIT 1" >>confdefs.h
15982 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_id" "ac_cv_member_struct_utmp_ut_id" "
15983 #include <sys/types.h>
15987 if test "x$ac_cv_member_struct_utmp_ut_id" = xyes; then :
15989 cat >>confdefs.h <<_ACEOF
15990 #define HAVE_STRUCT_UTMP_UT_ID 1
15995 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" "
15996 #include <sys/types.h>
16000 if test "x$ac_cv_member_struct_utmp_ut_pid" = xyes; then :
16002 cat >>confdefs.h <<_ACEOF
16003 #define HAVE_STRUCT_UTMP_UT_PID 1
16008 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_tv" "ac_cv_member_struct_utmp_ut_tv" "
16009 #include <sys/types.h>
16013 if test "x$ac_cv_member_struct_utmp_ut_tv" = xyes; then :
16015 cat >>confdefs.h <<_ACEOF
16016 #define HAVE_STRUCT_UTMP_UT_TV 1
16021 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_type" "ac_cv_member_struct_utmp_ut_type" "
16022 #include <sys/types.h>
16026 if test "x$ac_cv_member_struct_utmp_ut_type" = xyes; then :
16028 cat >>confdefs.h <<_ACEOF
16029 #define HAVE_STRUCT_UTMP_UT_TYPE 1
16034 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_user" "ac_cv_member_struct_utmp_ut_user" "
16035 #include <sys/types.h>
16039 if test "x$ac_cv_member_struct_utmp_ut_user" = xyes; then :
16041 cat >>confdefs.h <<_ACEOF
16042 #define HAVE_STRUCT_UTMP_UT_USER 1
16048 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_exit.__e_termination" "ac_cv_member_struct_utmp_ut_exit___e_termination" "
16049 #include <sys/types.h>
16053 if test "x$ac_cv_member_struct_utmp_ut_exit___e_termination" = xyes; then :
16055 cat >>confdefs.h <<_ACEOF
16056 #define HAVE_STRUCT_UTMP_UT_EXIT___E_TERMINATION 1
16059 $as_echo "#define HAVE_STRUCT_UTMP_UT_EXIT 1" >>confdefs.h
16063 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_exit.e_termination" "ac_cv_member_struct_utmp_ut_exit_e_termination" "
16064 #include <sys/types.h>
16068 if test "x$ac_cv_member_struct_utmp_ut_exit_e_termination" = xyes; then :
16070 cat >>confdefs.h <<_ACEOF
16071 #define HAVE_STRUCT_UTMP_UT_EXIT_E_TERMINATION 1
16074 $as_echo "#define HAVE_STRUCT_UTMP_UT_EXIT 1" >>confdefs.h
16084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
16085 $as_echo_n "checking type of array argument to getgroups... " >&6; }
16086 if ${ac_cv_type_getgroups+:} false; then :
16087 $as_echo_n "(cached) " >&6
16089 if test "$cross_compiling" = yes; then :
16090 ac_cv_type_getgroups=cross
16092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16093 /* end confdefs.h. */
16094 /* Thanks to Mike Rendell for this test. */
16095 $ac_includes_default
16098 #define MAX(x, y) ((x) > (y) ? (x) : (y))
16103 gid_t gidset[NGID];
16105 union { gid_t gval; long int lval; } val;
16108 for (i = 0; i < NGID; i++)
16109 gidset[i] = val.gval;
16110 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
16112 /* Exit non-zero if getgroups seems to require an array of ints. This
16113 happens when gid_t is short int but getgroups modifies an array
16115 return n > 0 && gidset[n] != val.gval;
16118 if ac_fn_c_try_run "$LINENO"; then :
16119 ac_cv_type_getgroups=gid_t
16121 ac_cv_type_getgroups=int
16123 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16124 conftest.$ac_objext conftest.beam conftest.$ac_ext
16127 if test $ac_cv_type_getgroups = cross; then
16128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16129 /* end confdefs.h. */
16130 #include <unistd.h>
16133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16134 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
16135 ac_cv_type_getgroups=gid_t
16137 ac_cv_type_getgroups=int
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
16144 $as_echo "$ac_cv_type_getgroups" >&6; }
16146 cat >>confdefs.h <<_ACEOF
16147 #define GETGROUPS_T $ac_cv_type_getgroups
16151 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16152 if test "x$ac_cv_type_size_t" = xyes; then :
16156 cat >>confdefs.h <<_ACEOF
16157 #define size_t unsigned int
16162 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
16163 if test "x$ac_cv_func_getgroups" = xyes; then :
16168 # If we don't yet have getgroups, see if it's in -lbsd.
16169 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
16171 if test $ac_cv_func_getgroups = no; then
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
16173 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
16174 if ${ac_cv_lib_bsd_getgroups+:} false; then :
16175 $as_echo_n "(cached) " >&6
16177 ac_check_lib_save_LIBS=$LIBS
16179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16180 /* end confdefs.h. */
16182 /* Override any GCC internal prototype to avoid an error.
16183 Use char because int might match the return type of a GCC
16184 builtin and then its argument prototype would still apply. */
16192 return getgroups ();
16197 if ac_fn_c_try_link "$LINENO"; then :
16198 ac_cv_lib_bsd_getgroups=yes
16200 ac_cv_lib_bsd_getgroups=no
16202 rm -f core conftest.err conftest.$ac_objext \
16203 conftest$ac_exeext conftest.$ac_ext
16204 LIBS=$ac_check_lib_save_LIBS
16206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
16207 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
16208 if test "x$ac_cv_lib_bsd_getgroups" = xyes; then :
16209 GETGROUPS_LIB=-lbsd
16214 # Run the program to test the functionality of the system-supplied
16215 # getgroups function only if there is such a function.
16216 if test $ac_cv_func_getgroups = yes; then
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
16218 $as_echo_n "checking for working getgroups... " >&6; }
16219 if ${ac_cv_func_getgroups_works+:} false; then :
16220 $as_echo_n "(cached) " >&6
16222 if test "$cross_compiling" = yes; then :
16223 ac_cv_func_getgroups_works=no
16225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16226 /* end confdefs.h. */
16227 $ac_includes_default
16231 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
16232 return getgroups (0, 0) == -1;
16237 if ac_fn_c_try_run "$LINENO"; then :
16238 ac_cv_func_getgroups_works=yes
16240 ac_cv_func_getgroups_works=no
16242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16243 conftest.$ac_objext conftest.beam conftest.$ac_ext
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
16249 $as_echo "$ac_cv_func_getgroups_works" >&6; }
16251 ac_cv_func_getgroups_works=no
16253 if test $ac_cv_func_getgroups_works = yes; then
16255 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
16260 for ac_func in strrchr sysconf tzset strftime \
16261 regcomp setlocale nl_langinfo getaddrinfo mbr_check_membership \
16264 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16265 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16266 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16267 cat >>confdefs.h <<_ACEOF
16268 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16274 ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist"
16275 if test "x$ac_cv_func_getgrouplist" = xyes; then :
16276 $as_echo "#define HAVE_GETGROUPLIST 1" >>confdefs.h
16279 case " $LIBOBJS " in
16280 *" getgrouplist.$ac_objext "* ) ;;
16281 *) LIBOBJS="$LIBOBJS getgrouplist.$ac_objext"
16288 for ac_func in getline
16290 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
16291 if test "x$ac_cv_func_getline" = xyes; then :
16292 cat >>confdefs.h <<_ACEOF
16293 #define HAVE_GETLINE 1
16298 case " $LIBOBJS " in
16299 *" getline.$ac_objext "* ) ;;
16300 *) LIBOBJS="$LIBOBJS getline.$ac_objext"
16304 for ac_func in fgetln
16306 ac_fn_c_check_func "$LINENO" "fgetln" "ac_cv_func_fgetln"
16307 if test "x$ac_cv_func_fgetln" = xyes; then :
16308 cat >>confdefs.h <<_ACEOF
16309 #define HAVE_FGETLN 1
16320 for ac_func in getutxid getutid
16322 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16323 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16324 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16325 cat >>confdefs.h <<_ACEOF
16326 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16328 utmp_style=POSIX; break
16332 if test "$utmp_style" = "LEGACY"; then
16333 for ac_func in getttyent ttyslot
16335 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16336 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16337 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16338 cat >>confdefs.h <<_ACEOF
16339 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16347 for ac_func in openpty
16349 ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
16350 if test "x$ac_cv_func_openpty" = xyes; then :
16351 cat >>confdefs.h <<_ACEOF
16352 #define HAVE_OPENPTY 1
16354 for ac_header in libutil.h util.h pty.h
16356 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16357 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16358 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16359 cat >>confdefs.h <<_ACEOF
16360 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
16370 $as_echo_n "checking for openpty in -lutil... " >&6; }
16371 if ${ac_cv_lib_util_openpty+:} false; then :
16372 $as_echo_n "(cached) " >&6
16374 ac_check_lib_save_LIBS=$LIBS
16375 LIBS="-lutil $LIBS"
16376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16377 /* end confdefs.h. */
16379 /* Override any GCC internal prototype to avoid an error.
16380 Use char because int might match the return type of a GCC
16381 builtin and then its argument prototype would still apply. */
16394 if ac_fn_c_try_link "$LINENO"; then :
16395 ac_cv_lib_util_openpty=yes
16397 ac_cv_lib_util_openpty=no
16399 rm -f core conftest.err conftest.$ac_objext \
16400 conftest$ac_exeext conftest.$ac_ext
16401 LIBS=$ac_check_lib_save_LIBS
16403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
16404 $as_echo "$ac_cv_lib_util_openpty" >&6; }
16405 if test "x$ac_cv_lib_util_openpty" = xyes; then :
16407 for ac_header in libutil.h util.h pty.h
16409 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16410 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16411 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16412 cat >>confdefs.h <<_ACEOF
16413 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16420 case "$SUDO_LIBS" in
16422 *) SUDO_LIBS="${SUDO_LIBS} -lutil";;
16424 $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
16429 for ac_func in _getpty
16431 ac_fn_c_check_func "$LINENO" "_getpty" "ac_cv_func__getpty"
16432 if test "x$ac_cv_func__getpty" = xyes; then :
16433 cat >>confdefs.h <<_ACEOF
16434 #define HAVE__GETPTY 1
16439 for ac_func in grantpt
16441 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
16442 if test "x$ac_cv_func_grantpt" = xyes; then :
16443 cat >>confdefs.h <<_ACEOF
16444 #define HAVE_GRANTPT 1
16447 for ac_func in posix_openpt
16449 ac_fn_c_check_func "$LINENO" "posix_openpt" "ac_cv_func_posix_openpt"
16450 if test "x$ac_cv_func_posix_openpt" = xyes; then :
16451 cat >>confdefs.h <<_ACEOF
16452 #define HAVE_POSIX_OPENPT 1
16461 for ac_func in revoke
16463 ac_fn_c_check_func "$LINENO" "revoke" "ac_cv_func_revoke"
16464 if test "x$ac_cv_func_revoke" = xyes; then :
16465 cat >>confdefs.h <<_ACEOF
16466 #define HAVE_REVOKE 1
16487 for ac_func in unsetenv
16489 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
16490 if test "x$ac_cv_func_unsetenv" = xyes; then :
16491 cat >>confdefs.h <<_ACEOF
16492 #define HAVE_UNSETENV 1
16494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv returns void" >&5
16495 $as_echo_n "checking whether unsetenv returns void... " >&6; }
16496 if ${sudo_cv_func_unsetenv_void+:} false; then :
16497 $as_echo_n "(cached) " >&6
16499 if test "$cross_compiling" = yes; then :
16500 sudo_cv_func_unsetenv_void=no
16502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16503 /* end confdefs.h. */
16504 $ac_includes_default
16511 return unsetenv("FOO") != 0;
16518 if ac_fn_c_try_run "$LINENO"; then :
16519 sudo_cv_func_unsetenv_void=no
16521 sudo_cv_func_unsetenv_void=yes
16523 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16524 conftest.$ac_objext conftest.beam conftest.$ac_ext
16528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_unsetenv_void" >&5
16529 $as_echo "$sudo_cv_func_unsetenv_void" >&6; }
16530 if test $sudo_cv_func_unsetenv_void = yes; then
16532 $as_echo "#define UNSETENV_VOID 1" >>confdefs.h
16537 case " $LIBOBJS " in
16538 *" unsetenv.$ac_objext "* ) ;;
16539 *) LIBOBJS="$LIBOBJS unsetenv.$ac_objext"
16546 if test -z "$SKIP_SETRESUID"; then
16547 for ac_func in setresuid
16549 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
16550 if test "x$ac_cv_func_setresuid" = xyes; then :
16551 cat >>confdefs.h <<_ACEOF
16552 #define HAVE_SETRESUID 1
16556 for ac_func in getresuid
16558 ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid"
16559 if test "x$ac_cv_func_getresuid" = xyes; then :
16560 cat >>confdefs.h <<_ACEOF
16561 #define HAVE_GETRESUID 1
16572 if test -z "$SKIP_SETREUID"; then
16573 for ac_func in setreuid
16575 ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
16576 if test "x$ac_cv_func_setreuid" = xyes; then :
16577 cat >>confdefs.h <<_ACEOF
16578 #define HAVE_SETREUID 1
16585 if test -z "$SKIP_SETEUID"; then
16586 for ac_func in seteuid
16588 ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
16589 if test "x$ac_cv_func_seteuid" = xyes; then :
16590 cat >>confdefs.h <<_ACEOF
16591 #define HAVE_SETEUID 1
16598 if test X"$with_interfaces" != X"no"; then
16599 for ac_func in getifaddrs
16601 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
16602 if test "x$ac_cv_func_getifaddrs" = xyes; then :
16603 cat >>confdefs.h <<_ACEOF
16604 #define HAVE_GETIFADDRS 1
16606 for ac_func in freeifaddrs
16608 ac_fn_c_check_func "$LINENO" "freeifaddrs" "ac_cv_func_freeifaddrs"
16609 if test "x$ac_cv_func_freeifaddrs" = xyes; then :
16610 cat >>confdefs.h <<_ACEOF
16611 #define HAVE_FREEIFADDRS 1
16621 if test -z "$BROKEN_GETCWD"; then
16622 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
16623 if test "x$ac_cv_func_getcwd" = xyes; then :
16624 $as_echo "#define HAVE_GETCWD 1" >>confdefs.h
16627 case " $LIBOBJS " in
16628 *" getcwd.$ac_objext "* ) ;;
16629 *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
16637 for ac_func in glob
16639 ac_fn_c_check_func "$LINENO" "glob" "ac_cv_func_glob"
16640 if test "x$ac_cv_func_glob" = xyes; then :
16641 cat >>confdefs.h <<_ACEOF
16642 #define HAVE_GLOB 1
16644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_BRACE and GLOB_TILDE in glob.h" >&5
16645 $as_echo_n "checking for GLOB_BRACE and GLOB_TILDE in glob.h... " >&6; }
16646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16647 /* end confdefs.h. */
16652 int i = GLOB_BRACE | GLOB_TILDE; (void)i;
16657 if ac_fn_c_try_compile "$LINENO"; then :
16658 $as_echo "#define HAVE_EXTENDED_GLOB 1" >>confdefs.h
16660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16661 $as_echo "yes" >&6; }
16663 case " $LIBOBJS " in
16664 *" glob.$ac_objext "* ) ;;
16665 *) LIBOBJS="$LIBOBJS glob.$ac_objext"
16669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16670 $as_echo "no" >&6; }
16672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16674 case " $LIBOBJS " in
16675 *" glob.$ac_objext "* ) ;;
16676 *) LIBOBJS="$LIBOBJS glob.$ac_objext"
16683 for ac_func in lockf flock
16685 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16686 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16687 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16688 cat >>confdefs.h <<_ACEOF
16689 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16695 for ac_func in innetgr _innetgr
16697 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16698 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16699 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16700 cat >>confdefs.h <<_ACEOF
16701 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16703 for ac_func in getdomainname
16705 ac_fn_c_check_func "$LINENO" "getdomainname" "ac_cv_func_getdomainname"
16706 if test "x$ac_cv_func_getdomainname" = xyes; then :
16707 cat >>confdefs.h <<_ACEOF
16708 #define HAVE_GETDOMAINNAME 1
16717 for ac_func in utimes
16719 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
16720 if test "x$ac_cv_func_utimes" = xyes; then :
16721 cat >>confdefs.h <<_ACEOF
16722 #define HAVE_UTIMES 1
16724 for ac_func in futimes futimesat
16726 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16727 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16728 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16729 cat >>confdefs.h <<_ACEOF
16730 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16737 for ac_func in futime
16739 ac_fn_c_check_func "$LINENO" "futime" "ac_cv_func_futime"
16740 if test "x$ac_cv_func_futime" = xyes; then :
16741 cat >>confdefs.h <<_ACEOF
16742 #define HAVE_FUTIME 1
16747 case " $LIBOBJS " in
16748 *" utimes.$ac_objext "* ) ;;
16749 *) LIBOBJS="$LIBOBJS utimes.$ac_objext"
16756 for ac_func in killpg
16758 ac_fn_c_check_func "$LINENO" "killpg" "ac_cv_func_killpg"
16759 if test "x$ac_cv_func_killpg" = xyes; then :
16760 cat >>confdefs.h <<_ACEOF
16761 #define HAVE_KILLPG 1
16765 case " $LIBOBJS " in
16766 *" killpg.$ac_objext "* ) ;;
16767 *) LIBOBJS="$LIBOBJS killpg.$ac_objext"
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fnmatch with FNM_CASEFOLD" >&5
16775 $as_echo_n "checking for working fnmatch with FNM_CASEFOLD... " >&6; }
16776 if ${sudo_cv_func_fnmatch+:} false; then :
16777 $as_echo_n "(cached) " >&6
16779 rm -f conftestdata; > conftestdata
16780 if test "$cross_compiling" = yes; then :
16781 sudo_cv_func_fnmatch=no
16783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16784 /* end confdefs.h. */
16785 #include <fnmatch.h>
16786 main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
16788 if ac_fn_c_try_run "$LINENO"; then :
16789 sudo_cv_func_fnmatch=yes
16791 sudo_cv_func_fnmatch=no
16793 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16794 conftest.$ac_objext conftest.beam conftest.$ac_ext
16797 rm -f core core.* *.core
16800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_fnmatch" >&5
16801 $as_echo "$sudo_cv_func_fnmatch" >&6; }
16802 if test $sudo_cv_func_fnmatch = yes; then :
16803 $as_echo "#define HAVE_FNMATCH 1" >>confdefs.h
16806 case " $LIBOBJS " in
16807 *" fnmatch.$ac_objext "* ) ;;
16808 *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
16813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isblank" >&5
16814 $as_echo_n "checking for isblank... " >&6; }
16815 if ${sudo_cv_func_isblank+:} false; then :
16816 $as_echo_n "(cached) " >&6
16818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16819 /* end confdefs.h. */
16824 return (isblank('a'));
16829 if ac_fn_c_try_link "$LINENO"; then :
16830 sudo_cv_func_isblank=yes
16832 sudo_cv_func_isblank=no
16834 rm -f core conftest.err conftest.$ac_objext \
16835 conftest$ac_exeext conftest.$ac_ext
16837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_isblank" >&5
16838 $as_echo "$sudo_cv_func_isblank" >&6; }
16840 if test "$sudo_cv_func_isblank" = "yes"; then
16842 $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
16845 case " $LIBOBJS " in
16846 *" isblank.$ac_objext "* ) ;;
16847 *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
16853 ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
16854 if test "x$ac_cv_func_memrchr" = xyes; then :
16855 $as_echo "#define HAVE_MEMRCHR 1" >>confdefs.h
16858 case " $LIBOBJS " in
16859 *" memrchr.$ac_objext "* ) ;;
16860 *) LIBOBJS="$LIBOBJS memrchr.$ac_objext"
16866 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
16867 if test "x$ac_cv_func_strlcpy" = xyes; then :
16868 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
16871 case " $LIBOBJS " in
16872 *" strlcpy.$ac_objext "* ) ;;
16873 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
16879 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
16880 if test "x$ac_cv_func_strlcat" = xyes; then :
16881 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
16884 case " $LIBOBJS " in
16885 *" strlcat.$ac_objext "* ) ;;
16886 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
16892 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
16893 if test "x$ac_cv_func_setenv" = xyes; then :
16894 $as_echo "#define HAVE_SETENV 1" >>confdefs.h
16897 case " $LIBOBJS " in
16898 *" setenv.$ac_objext "* ) ;;
16899 *) LIBOBJS="$LIBOBJS setenv.$ac_objext"
16906 for ac_func in nanosleep
16908 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
16909 if test "x$ac_cv_func_nanosleep" = xyes; then :
16910 cat >>confdefs.h <<_ACEOF
16911 #define HAVE_NANOSLEEP 1
16916 # On Solaris, nanosleep is in librt
16917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
16918 $as_echo_n "checking for nanosleep in -lrt... " >&6; }
16919 if ${ac_cv_lib_rt_nanosleep+:} false; then :
16920 $as_echo_n "(cached) " >&6
16922 ac_check_lib_save_LIBS=$LIBS
16924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16925 /* end confdefs.h. */
16927 /* Override any GCC internal prototype to avoid an error.
16928 Use char because int might match the return type of a GCC
16929 builtin and then its argument prototype would still apply. */
16937 return nanosleep ();
16942 if ac_fn_c_try_link "$LINENO"; then :
16943 ac_cv_lib_rt_nanosleep=yes
16945 ac_cv_lib_rt_nanosleep=no
16947 rm -f core conftest.err conftest.$ac_objext \
16948 conftest$ac_exeext conftest.$ac_ext
16949 LIBS=$ac_check_lib_save_LIBS
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
16952 $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
16953 if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
16954 REPLAY_LIBS="${REPLAY_LIBS} -lrt"
16956 case " $LIBOBJS " in
16957 *" nanosleep.$ac_objext "* ) ;;
16958 *) LIBOBJS="$LIBOBJS nanosleep.$ac_objext"
16968 for ac_func in closefrom
16970 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
16971 if test "x$ac_cv_func_closefrom" = xyes; then :
16972 cat >>confdefs.h <<_ACEOF
16973 #define HAVE_CLOSEFROM 1
16977 case " $LIBOBJS " in
16978 *" closefrom.$ac_objext "* ) ;;
16979 *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
16983 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" " #include <limits.h>
16986 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
16987 $as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h
16995 for ac_func in mkstemps mkdtemp
16997 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16998 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16999 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17000 cat >>confdefs.h <<_ACEOF
17001 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17006 for ac_func in random lrand48
17008 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17009 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17010 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17011 cat >>confdefs.h <<_ACEOF
17012 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17018 case " $LIBOBJS " in
17019 *" mktemp.$ac_objext "* ) ;;
17020 *) LIBOBJS="$LIBOBJS mktemp.$ac_objext"
17028 for ac_func in snprintf vsnprintf asprintf vasprintf
17030 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17031 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17032 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17033 cat >>confdefs.h <<_ACEOF
17034 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17042 if test X"$ac_cv_type_struct_timespec" != X"no"; then
17043 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
17044 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
17045 $as_echo "#define HAVE_ST_MTIM 1" >>confdefs.h
17047 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.st__tim" "ac_cv_member_struct_stat_st_mtim_st__tim" "$ac_includes_default"
17048 if test "x$ac_cv_member_struct_stat_st_mtim_st__tim" = xyes; then :
17049 $as_echo "#define HAVE_ST__TIM 1" >>confdefs.h
17054 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
17055 if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
17056 $as_echo "#define HAVE_ST_MTIMESPEC 1" >>confdefs.h
17063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17064 /* end confdefs.h. */
17065 #include <sys/types.h>
17066 #include <$ac_header_dirent>
17070 DIR *d; (void)dirfd(d);
17075 if ac_fn_c_try_link "$LINENO"; then :
17076 $as_echo "#define HAVE_DIRFD 1" >>confdefs.h
17079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17080 /* end confdefs.h. */
17081 #include <sys/types.h>
17082 #include <$ac_header_dirent>
17086 DIR d; memset(&d, 0, sizeof(d)); return(d.dd_fd);
17091 if ac_fn_c_try_link "$LINENO"; then :
17092 $as_echo "#define HAVE_DD_FD 1" >>confdefs.h
17095 rm -f core conftest.err conftest.$ac_objext \
17096 conftest$ac_exeext conftest.$ac_ext
17098 rm -f core conftest.err conftest.$ac_objext \
17099 conftest$ac_exeext conftest.$ac_ext
17100 if test -n "$NEED_SNPRINTF"; then
17101 case " $LIBOBJS " in
17102 *" snprintf.$ac_objext "* ) ;;
17103 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
17108 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
17109 if test "x$ac_cv_func_socket" = xyes; then :
17112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
17113 $as_echo_n "checking for socket in -lsocket... " >&6; }
17114 if ${ac_cv_lib_socket_socket+:} false; then :
17115 $as_echo_n "(cached) " >&6
17117 ac_check_lib_save_LIBS=$LIBS
17118 LIBS="-lsocket $LIBS"
17119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17120 /* end confdefs.h. */
17122 /* Override any GCC internal prototype to avoid an error.
17123 Use char because int might match the return type of a GCC
17124 builtin and then its argument prototype would still apply. */
17137 if ac_fn_c_try_link "$LINENO"; then :
17138 ac_cv_lib_socket_socket=yes
17140 ac_cv_lib_socket_socket=no
17142 rm -f core conftest.err conftest.$ac_objext \
17143 conftest$ac_exeext conftest.$ac_ext
17144 LIBS=$ac_check_lib_save_LIBS
17146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
17147 $as_echo "$ac_cv_lib_socket_socket" >&6; }
17148 if test "x$ac_cv_lib_socket_socket" = xyes; then :
17149 NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
17151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
17152 $as_echo_n "checking for socket in -linet... " >&6; }
17153 if ${ac_cv_lib_inet_socket+:} false; then :
17154 $as_echo_n "(cached) " >&6
17156 ac_check_lib_save_LIBS=$LIBS
17157 LIBS="-linet $LIBS"
17158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17159 /* end confdefs.h. */
17161 /* Override any GCC internal prototype to avoid an error.
17162 Use char because int might match the return type of a GCC
17163 builtin and then its argument prototype would still apply. */
17176 if ac_fn_c_try_link "$LINENO"; then :
17177 ac_cv_lib_inet_socket=yes
17179 ac_cv_lib_inet_socket=no
17181 rm -f core conftest.err conftest.$ac_objext \
17182 conftest$ac_exeext conftest.$ac_ext
17183 LIBS=$ac_check_lib_save_LIBS
17185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
17186 $as_echo "$ac_cv_lib_inet_socket" >&6; }
17187 if test "x$ac_cv_lib_inet_socket" = xyes; then :
17188 NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
17190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to find socket() trying -lsocket -lnsl" >&5
17191 $as_echo "$as_me: WARNING: unable to find socket() trying -lsocket -lnsl" >&2;}
17192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
17193 $as_echo_n "checking for socket in -lsocket... " >&6; }
17194 if ${ac_cv_lib_socket_socket_lnsl+:} false; then :
17195 $as_echo_n "(cached) " >&6
17197 ac_check_lib_save_LIBS=$LIBS
17198 LIBS="-lsocket -lnsl $LIBS"
17199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17200 /* end confdefs.h. */
17202 /* Override any GCC internal prototype to avoid an error.
17203 Use char because int might match the return type of a GCC
17204 builtin and then its argument prototype would still apply. */
17217 if ac_fn_c_try_link "$LINENO"; then :
17218 ac_cv_lib_socket_socket_lnsl=yes
17220 ac_cv_lib_socket_socket_lnsl=no
17222 rm -f core conftest.err conftest.$ac_objext \
17223 conftest$ac_exeext conftest.$ac_ext
17224 LIBS=$ac_check_lib_save_LIBS
17226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket_lnsl" >&5
17227 $as_echo "$ac_cv_lib_socket_socket_lnsl" >&6; }
17228 if test "x$ac_cv_lib_socket_socket_lnsl" = xyes; then :
17229 NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
17238 ac_fn_c_check_func "$LINENO" "inet_addr" "ac_cv_func_inet_addr"
17239 if test "x$ac_cv_func_inet_addr" = xyes; then :
17242 ac_fn_c_check_func "$LINENO" "__inet_addr" "ac_cv_func___inet_addr"
17243 if test "x$ac_cv_func___inet_addr" = xyes; then :
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lnsl" >&5
17247 $as_echo_n "checking for inet_addr in -lnsl... " >&6; }
17248 if ${ac_cv_lib_nsl_inet_addr+:} false; then :
17249 $as_echo_n "(cached) " >&6
17251 ac_check_lib_save_LIBS=$LIBS
17253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17254 /* end confdefs.h. */
17256 /* Override any GCC internal prototype to avoid an error.
17257 Use char because int might match the return type of a GCC
17258 builtin and then its argument prototype would still apply. */
17266 return inet_addr ();
17271 if ac_fn_c_try_link "$LINENO"; then :
17272 ac_cv_lib_nsl_inet_addr=yes
17274 ac_cv_lib_nsl_inet_addr=no
17276 rm -f core conftest.err conftest.$ac_objext \
17277 conftest$ac_exeext conftest.$ac_ext
17278 LIBS=$ac_check_lib_save_LIBS
17280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_addr" >&5
17281 $as_echo "$ac_cv_lib_nsl_inet_addr" >&6; }
17282 if test "x$ac_cv_lib_nsl_inet_addr" = xyes; then :
17283 NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
17285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -linet" >&5
17286 $as_echo_n "checking for inet_addr in -linet... " >&6; }
17287 if ${ac_cv_lib_inet_inet_addr+:} false; then :
17288 $as_echo_n "(cached) " >&6
17290 ac_check_lib_save_LIBS=$LIBS
17291 LIBS="-linet $LIBS"
17292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17293 /* end confdefs.h. */
17295 /* Override any GCC internal prototype to avoid an error.
17296 Use char because int might match the return type of a GCC
17297 builtin and then its argument prototype would still apply. */
17305 return inet_addr ();
17310 if ac_fn_c_try_link "$LINENO"; then :
17311 ac_cv_lib_inet_inet_addr=yes
17313 ac_cv_lib_inet_inet_addr=no
17315 rm -f core conftest.err conftest.$ac_objext \
17316 conftest$ac_exeext conftest.$ac_ext
17317 LIBS=$ac_check_lib_save_LIBS
17319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_inet_addr" >&5
17320 $as_echo "$ac_cv_lib_inet_inet_addr" >&6; }
17321 if test "x$ac_cv_lib_inet_inet_addr" = xyes; then :
17322 NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
17324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&5
17325 $as_echo "$as_me: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&2;}
17326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lsocket" >&5
17327 $as_echo_n "checking for inet_addr in -lsocket... " >&6; }
17328 if ${ac_cv_lib_socket_inet_addr_lnsl+:} false; then :
17329 $as_echo_n "(cached) " >&6
17331 ac_check_lib_save_LIBS=$LIBS
17332 LIBS="-lsocket -lnsl $LIBS"
17333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17334 /* end confdefs.h. */
17336 /* Override any GCC internal prototype to avoid an error.
17337 Use char because int might match the return type of a GCC
17338 builtin and then its argument prototype would still apply. */
17346 return inet_addr ();
17351 if ac_fn_c_try_link "$LINENO"; then :
17352 ac_cv_lib_socket_inet_addr_lnsl=yes
17354 ac_cv_lib_socket_inet_addr_lnsl=no
17356 rm -f core conftest.err conftest.$ac_objext \
17357 conftest$ac_exeext conftest.$ac_ext
17358 LIBS=$ac_check_lib_save_LIBS
17360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_inet_addr_lnsl" >&5
17361 $as_echo "$ac_cv_lib_socket_inet_addr_lnsl" >&6; }
17362 if test "x$ac_cv_lib_socket_inet_addr_lnsl" = xyes; then :
17363 NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
17374 ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
17375 if test "x$ac_cv_func_syslog" = xyes; then :
17378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog in -lsocket" >&5
17379 $as_echo_n "checking for syslog in -lsocket... " >&6; }
17380 if ${ac_cv_lib_socket_syslog+:} false; then :
17381 $as_echo_n "(cached) " >&6
17383 ac_check_lib_save_LIBS=$LIBS
17384 LIBS="-lsocket $LIBS"
17385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17386 /* end confdefs.h. */
17388 /* Override any GCC internal prototype to avoid an error.
17389 Use char because int might match the return type of a GCC
17390 builtin and then its argument prototype would still apply. */
17403 if ac_fn_c_try_link "$LINENO"; then :
17404 ac_cv_lib_socket_syslog=yes
17406 ac_cv_lib_socket_syslog=no
17408 rm -f core conftest.err conftest.$ac_objext \
17409 conftest$ac_exeext conftest.$ac_ext
17410 LIBS=$ac_check_lib_save_LIBS
17412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_syslog" >&5
17413 $as_echo "$ac_cv_lib_socket_syslog" >&6; }
17414 if test "x$ac_cv_lib_socket_syslog" = xyes; then :
17415 NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
17417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog in -lnsl" >&5
17418 $as_echo_n "checking for syslog in -lnsl... " >&6; }
17419 if ${ac_cv_lib_nsl_syslog+:} false; then :
17420 $as_echo_n "(cached) " >&6
17422 ac_check_lib_save_LIBS=$LIBS
17424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17425 /* end confdefs.h. */
17427 /* Override any GCC internal prototype to avoid an error.
17428 Use char because int might match the return type of a GCC
17429 builtin and then its argument prototype would still apply. */
17442 if ac_fn_c_try_link "$LINENO"; then :
17443 ac_cv_lib_nsl_syslog=yes
17445 ac_cv_lib_nsl_syslog=no
17447 rm -f core conftest.err conftest.$ac_objext \
17448 conftest$ac_exeext conftest.$ac_ext
17449 LIBS=$ac_check_lib_save_LIBS
17451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_syslog" >&5
17452 $as_echo "$ac_cv_lib_nsl_syslog" >&6; }
17453 if test "x$ac_cv_lib_nsl_syslog" = xyes; then :
17454 NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
17456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog in -linet" >&5
17457 $as_echo_n "checking for syslog in -linet... " >&6; }
17458 if ${ac_cv_lib_inet_syslog+:} false; then :
17459 $as_echo_n "(cached) " >&6
17461 ac_check_lib_save_LIBS=$LIBS
17462 LIBS="-linet $LIBS"
17463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17464 /* end confdefs.h. */
17466 /* Override any GCC internal prototype to avoid an error.
17467 Use char because int might match the return type of a GCC
17468 builtin and then its argument prototype would still apply. */
17481 if ac_fn_c_try_link "$LINENO"; then :
17482 ac_cv_lib_inet_syslog=yes
17484 ac_cv_lib_inet_syslog=no
17486 rm -f core conftest.err conftest.$ac_objext \
17487 conftest$ac_exeext conftest.$ac_ext
17488 LIBS=$ac_check_lib_save_LIBS
17490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_syslog" >&5
17491 $as_echo "$ac_cv_lib_inet_syslog" >&6; }
17492 if test "x$ac_cv_lib_inet_syslog" = xyes; then :
17493 NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
17502 for ac_func in getprogname
17504 ac_fn_c_check_func "$LINENO" "getprogname" "ac_cv_func_getprogname"
17505 if test "x$ac_cv_func_getprogname" = xyes; then :
17506 cat >>confdefs.h <<_ACEOF
17507 #define HAVE_GETPROGNAME 1
17512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __progname" >&5
17513 $as_echo_n "checking for __progname... " >&6; }
17514 if ${sudo_cv___progname+:} false; then :
17515 $as_echo_n "(cached) " >&6
17518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17519 /* end confdefs.h. */
17524 extern char *__progname; (void)puts(__progname);
17529 if ac_fn_c_try_link "$LINENO"; then :
17530 sudo_cv___progname=yes
17532 sudo_cv___progname=no
17534 rm -f core conftest.err conftest.$ac_objext \
17535 conftest$ac_exeext conftest.$ac_ext
17538 if test "$sudo_cv___progname" = "yes"; then
17539 $as_echo "#define HAVE___PROGNAME 1" >>confdefs.h
17542 case " $LIBOBJS " in
17543 *" getprogname.$ac_objext "* ) ;;
17544 *) LIBOBJS="$LIBOBJS getprogname.$ac_objext"
17549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv___progname" >&5
17550 $as_echo "$sudo_cv___progname" >&6; }
17556 # gettext() and friends may be located in libc (Linux and Solaris)
17557 # or in libintl. However, it is possible to have libintl installed
17558 # even when gettext() is present in libc. In the case of GNU libintl,
17559 # gettext() will be defined to gettext_libintl in libintl.h.
17560 # Since gcc prefers /usr/local/include to /usr/include, we need to
17561 # make sure we use the gettext() that matches the include file.
17562 if test "$enable_nls" != "no"; then
17563 if test "$enable_nls" != "yes"; then
17564 CPPFLAGS="${CPPFLAGS} -I${enable_nls}/include"
17566 if test X"$with_rpath" = X"yes"; then
17568 *-*-hpux*) LDFLAGS="${LDFLAGS} -L$enable_nls/lib -Wl,+b,$enable_nls/lib"
17570 *) LDFLAGS="${LDFLAGS} -L$enable_nls/lib -Wl,-R$enable_nls/lib"
17574 LDFLAGS="${LDFLAGS} -L$enable_nls/lib"
17576 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
17577 blibpath_add="${blibpath_add}:$enable_nls/lib"
17582 for l in "libc" "-lintl" "-lintl -liconv"; do
17583 if test "$l" = "libc"; then
17584 # If user specified a dir for libintl ignore libc
17585 if test "$enable_nls" != "yes"; then
17588 gettext_name=sudo_cv_gettext
17589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext" >&5
17590 $as_echo_n "checking for gettext... " >&6; }
17593 gettext_name=sudo_cv_gettext"`echo $l|sed -e 's/ //g' -e 's/-/_/g'`"
17594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in $l" >&5
17595 $as_echo_n "checking for gettext in $l... " >&6; }
17597 if eval \${$gettext_name+:} false; then :
17598 $as_echo_n "(cached) " >&6
17601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17602 /* end confdefs.h. */
17604 #include <libintl.h>
17608 (void)gettext((char *)0);
17614 if ac_fn_c_try_link "$LINENO"; then :
17615 eval $gettext_name=yes
17617 eval $gettext_name=no
17620 rm -f core conftest.err conftest.$ac_objext \
17621 conftest$ac_exeext conftest.$ac_ext
17625 eval gettext_result="\$$gettext_name"
17626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gettext_result" >&5
17627 $as_echo "$gettext_result" >&6; }
17628 test "$gettext_result" = "yes" && break
17632 if test "$sudo_cv_gettext" = "yes"; then
17633 $as_echo "#define HAVE_LIBINTL_H 1" >>confdefs.h
17636 elif test "$sudo_cv_gettext_lintl" = "yes"; then
17637 $as_echo "#define HAVE_LIBINTL_H 1" >>confdefs.h
17641 elif test "$sudo_cv_gettext_lintl_liconv" = "yes"; then
17642 $as_echo "#define HAVE_LIBINTL_H 1" >>confdefs.h
17645 LIBINTL="-lintl -liconv"
17649 case "$enable_zlib" in
17651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzdopen in -lz" >&5
17652 $as_echo_n "checking for gzdopen in -lz... " >&6; }
17653 if ${ac_cv_lib_z_gzdopen+:} false; then :
17654 $as_echo_n "(cached) " >&6
17656 ac_check_lib_save_LIBS=$LIBS
17658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17659 /* end confdefs.h. */
17661 /* Override any GCC internal prototype to avoid an error.
17662 Use char because int might match the return type of a GCC
17663 builtin and then its argument prototype would still apply. */
17676 if ac_fn_c_try_link "$LINENO"; then :
17677 ac_cv_lib_z_gzdopen=yes
17679 ac_cv_lib_z_gzdopen=no
17681 rm -f core conftest.err conftest.$ac_objext \
17682 conftest$ac_exeext conftest.$ac_ext
17683 LIBS=$ac_check_lib_save_LIBS
17685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzdopen" >&5
17686 $as_echo "$ac_cv_lib_z_gzdopen" >&6; }
17687 if test "x$ac_cv_lib_z_gzdopen" = xyes; then :
17689 for ac_header in zlib.h
17691 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
17692 if test "x$ac_cv_header_zlib_h" = xyes; then :
17693 cat >>confdefs.h <<_ACEOF
17694 #define HAVE_ZLIB_H 1
17698 enable_zlib=builtin
17710 $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
17718 $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
17720 CPPFLAGS="${CPPFLAGS} -I${enable_zlib}/include"
17722 if test X"$with_rpath" = X"yes"; then
17724 *-*-hpux*) ZLIB="${ZLIB} -L$enable_zlib/lib -Wl,+b,$enable_zlib/lib"
17726 *) ZLIB="${ZLIB} -L$enable_zlib/lib -Wl,-R$enable_zlib/lib"
17730 ZLIB="${ZLIB} -L$enable_zlib/lib"
17732 if test X"$blibpath" != X"" -a "ZLIB" = "SUDO_LDFLAGS"; then
17733 blibpath_add="${blibpath_add}:$enable_zlib/lib"
17739 if test X"$enable_zlib" = X"builtin"; then
17740 $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
17742 CPPFLAGS="${CPPFLAGS}"' -I$(top_srcdir)/zlib'
17743 ZLIB="${ZLIB}"' $(top_builddir)/zlib/libz.la'
17745 ac_config_headers="$ac_config_headers zlib/zconf.h"
17747 ac_config_files="$ac_config_files zlib/Makefile"
17751 ac_fn_c_check_decl "$LINENO" "errno" "ac_cv_have_decl_errno" "
17752 $ac_includes_default
17756 if test "x$ac_cv_have_decl_errno" = xyes; then :
17762 cat >>confdefs.h <<_ACEOF
17763 #define HAVE_DECL_ERRNO $ac_have_decl
17767 for ac_func in strsignal
17769 ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
17770 if test "x$ac_cv_func_strsignal" = xyes; then :
17771 cat >>confdefs.h <<_ACEOF
17772 #define HAVE_STRSIGNAL 1
17777 case " $LIBOBJS " in
17778 *" strsignal.$ac_objext "* ) ;;
17779 *) LIBOBJS="$LIBOBJS strsignal.$ac_objext"
17783 HAVE_SIGLIST="false"
17784 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "
17785 $ac_includes_default
17786 #include <signal.h>
17789 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
17795 cat >>confdefs.h <<_ACEOF
17796 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
17798 if test $ac_have_decl = 1; then :
17800 HAVE_SIGLIST="true"
17804 ac_fn_c_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "
17805 $ac_includes_default
17806 #include <signal.h>
17809 if test "x$ac_cv_have_decl__sys_siglist" = xyes; then :
17815 cat >>confdefs.h <<_ACEOF
17816 #define HAVE_DECL__SYS_SIGLIST $ac_have_decl
17818 if test $ac_have_decl = 1; then :
17820 HAVE_SIGLIST="true"
17824 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "
17825 $ac_includes_default
17826 #include <signal.h>
17829 if test "x$ac_cv_have_decl___sys_siglist" = xyes; then :
17835 cat >>confdefs.h <<_ACEOF
17836 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
17838 if test $ac_have_decl = 1; then :
17840 HAVE_SIGLIST="true"
17845 if test "$HAVE_SIGLIST" != "true"; then
17846 case " $LIBOBJS " in
17847 *" siglist.$ac_objext "* ) ;;
17848 *) LIBOBJS="$LIBOBJS siglist.$ac_objext"
17858 if test ${with_netsvc-"no"} != "no"; then
17859 cat >>confdefs.h <<EOF
17860 #define _PATH_NETSVC_CONF "${with_netsvc-/etc/netsvc.conf}"
17863 netsvc_conf=${with_netsvc-/etc/netsvc.conf}
17864 elif test ${with_nsswitch-"yes"} != "no"; then
17865 cat >>confdefs.h <<EOF
17866 #define _PATH_NSSWITCH_CONF "${with_nsswitch-/etc/nsswitch.conf}"
17869 nsswitch_conf=${with_nsswitch-/etc/nsswitch.conf}
17873 if test -z "${AUTH_EXCL}${AUTH_REG}" -a -n "$AUTH_EXCL_DEF"; then
17874 for auth in $AUTH_EXCL_DEF; do
17876 AIX_AUTH) with_aixauth=maybe;;
17877 BSD_AUTH) with_bsdauth=maybe;;
17878 PAM) with_pam=maybe;;
17879 SIA) CHECKSIA=true;;
17884 if test ${with_pam-"no"} != "no"; then
17885 # We already link with -ldl (see LIBDL below) so no need for that here.
17886 SUDOERS_LIBS="${SUDOERS_LIBS} -lpam"
17888 for ac_header in security/pam_appl.h pam/pam_appl.h
17890 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17891 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17892 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17893 cat >>confdefs.h <<_ACEOF
17894 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17896 with_pam=yes; break
17901 if test "$with_pam" = "yes"; then
17902 $as_echo "#define HAVE_PAM 1" >>confdefs.h
17904 AUTH_OBJS="$AUTH_OBJS pam.lo";
17908 # Check whether --with-pam-login was given.
17909 if test "${with_pam_login+set}" = set; then :
17910 withval=$with_pam_login; case $with_pam_login in
17911 yes) $as_echo "#define HAVE_PAM_LOGIN 1" >>confdefs.h
17913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use PAM login" >&5
17914 $as_echo_n "checking whether to use PAM login... " >&6; }
17915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17916 $as_echo "yes" >&6; }
17919 *) as_fn_error $? "\"--with-pam-login does not take an argument.\"" "$LINENO" 5
17925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use PAM session support" >&5
17926 $as_echo_n "checking whether to use PAM session support... " >&6; }
17927 # Check whether --enable-pam_session was given.
17928 if test "${enable_pam_session+set}" = set; then :
17929 enableval=$enable_pam_session; case "$enableval" in
17930 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17931 $as_echo "yes" >&6; }
17933 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17934 $as_echo "no" >&6; }
17935 $as_echo "#define NO_PAM_SESSION 1" >>confdefs.h
17938 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17939 $as_echo "no" >&6; }
17940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&5
17941 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&2;}
17945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17946 $as_echo "yes" >&6; }
17952 if test ${with_aixauth-'no'} != "no"; then
17953 if test X"$with_aixauth" != X"maybe" -o X"$AUTH_EXCL" = X""; then
17954 { $as_echo "$as_me:${as_lineno-$LINENO}: using AIX general authentication" >&5
17955 $as_echo "$as_me: using AIX general authentication" >&6;}
17956 $as_echo "#define HAVE_AIXAUTH 1" >>confdefs.h
17958 AUTH_OBJS="$AUTH_OBJS aix_auth.lo";
17959 SUDOERS_LIBS="${SUDOERS_LIBS} -ls"
17964 if test ${with_bsdauth-'no'} != "no"; then
17965 ac_fn_c_check_header_mongrel "$LINENO" "bsd_auth.h" "ac_cv_header_bsd_auth_h" "$ac_includes_default"
17966 if test "x$ac_cv_header_bsd_auth_h" = xyes; then :
17967 $as_echo "#define HAVE_BSD_AUTH_H 1" >>confdefs.h
17969 AUTH_OBJS="$AUTH_OBJS bsdauth.lo"
17970 BSDAUTH_USAGE='[-a auth_type] '
17971 AUTH_EXCL=BSD_AUTH; BAMAN=1
17973 as_fn_error $? "BSD authentication was specified but bsd_auth.h could not be found" "$LINENO" 5
17979 if test ${CHECKSIA-'false'} = "true"; then
17980 for ac_func in sia_ses_init
17982 ac_fn_c_check_func "$LINENO" "sia_ses_init" "ac_cv_func_sia_ses_init"
17983 if test "x$ac_cv_func_sia_ses_init" = xyes; then :
17984 cat >>confdefs.h <<_ACEOF
17985 #define HAVE_SIA_SES_INIT 1
17993 if test "$found" = "true"; then
17995 AUTH_OBJS="$AUTH_OBJS sia.lo"
17999 if test ${with_fwtk-'no'} != "no"; then
18000 if test "$with_fwtk" != "yes"; then
18002 if test X"$with_rpath" = X"yes"; then
18004 *-*-hpux*) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_fwtk} -Wl,+b,${with_fwtk}"
18006 *) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_fwtk} -Wl,-R${with_fwtk}"
18010 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_fwtk}"
18012 if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
18013 blibpath_add="${blibpath_add}:${with_fwtk}"
18016 CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
18019 SUDOERS_LIBS="${SUDOERS_LIBS} -lauth -lfwall"
18020 AUTH_OBJS="$AUTH_OBJS fwtk.lo"
18023 if test ${with_SecurID-'no'} != "no"; then
18024 if test "$with_SecurID" != "yes"; then
18026 elif test -d /usr/ace/examples; then
18027 with_SecurID=/usr/ace/examples
18029 with_SecurID=/usr/ace
18031 CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
18032 _LDFLAGS="${LDFLAGS}"
18034 if test X"$with_rpath" = X"yes"; then
18036 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${with_SecurID} -Wl,+b,${with_SecurID}"
18038 *) LDFLAGS="${LDFLAGS} -L${with_SecurID} -Wl,-R${with_SecurID}"
18042 LDFLAGS="${LDFLAGS} -L${with_SecurID}"
18044 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
18045 blibpath_add="${blibpath_add}:${with_SecurID}"
18049 # Determine whether to use the new or old SecurID API
18051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SD_Init in -laceclnt" >&5
18052 $as_echo_n "checking for SD_Init in -laceclnt... " >&6; }
18053 if ${ac_cv_lib_aceclnt_SD_Init_______lpthread_______+:} false; then :
18054 $as_echo_n "(cached) " >&6
18056 ac_check_lib_save_LIBS=$LIBS
18061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18062 /* end confdefs.h. */
18064 /* Override any GCC internal prototype to avoid an error.
18065 Use char because int might match the return type of a GCC
18066 builtin and then its argument prototype would still apply. */
18079 if ac_fn_c_try_link "$LINENO"; then :
18080 ac_cv_lib_aceclnt_SD_Init_______lpthread_______=yes
18082 ac_cv_lib_aceclnt_SD_Init_______lpthread_______=no
18084 rm -f core conftest.err conftest.$ac_objext \
18085 conftest$ac_exeext conftest.$ac_ext
18086 LIBS=$ac_check_lib_save_LIBS
18088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&5
18089 $as_echo "$ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&6; }
18090 if test "x$ac_cv_lib_aceclnt_SD_Init_______lpthread_______" = xyes; then :
18092 AUTH_OBJS="$AUTH_OBJS securid5.lo";
18093 SUDOERS_LIBS="${SUDOERS_LIBS} -laceclnt -lpthread"
18097 if test X"$with_rpath" = X"yes"; then
18099 *-*-hpux*) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_SecurID} -Wl,+b,${with_SecurID}"
18101 *) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_SecurID} -Wl,-R${with_SecurID}"
18105 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_SecurID}"
18107 if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
18108 blibpath_add="${blibpath_add}:${with_SecurID}"
18114 AUTH_OBJS="$AUTH_OBJS securid.lo";
18115 SUDOERS_LIBS="${SUDOERS_LIBS} ${with_SecurID}/sdiclient.a"
18119 LDFLAGS="${_LDFLAGS}"
18123 if test -z "${AUTH_EXCL}" -a -n "$AUTH_DEF"; then
18124 for auth in $AUTH_DEF; do
18126 passwd) : ${with_passwd='maybe'};;
18131 if test ${with_kerb4-'no'} != "no"; then
18132 $as_echo "#define HAVE_KERB4 1" >>confdefs.h
18134 O_LDFLAGS="$LDFLAGS"
18135 if test "$with_kerb4" = "yes"; then
18137 O_CPPFLAGS="$CPPFLAGS"
18138 for dir in "" "kerberosIV/" "krb4/" "kerberos4/" "kerberosv4/"; do
18139 CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
18140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18141 /* end confdefs.h. */
18151 if ac_fn_c_try_cpp "$LINENO"; then :
18154 rm -f conftest.err conftest.i conftest.$ac_ext
18156 test X"$found" = X"no" && CPPFLAGS="$O_CPPFLAGS"
18159 if test X"$with_rpath" = X"yes"; then
18161 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib -Wl,+b,${with_kerb4}/lib"
18163 *) LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib -Wl,-R${with_kerb4}/lib"
18167 LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib"
18169 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
18170 blibpath_add="${blibpath_add}:${with_kerb4}/lib"
18174 if test X"$with_rpath" = X"yes"; then
18176 *-*-hpux*) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_kerb4}/lib -Wl,+b,${with_kerb4}/lib"
18178 *) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_kerb4}/lib -Wl,-R${with_kerb4}/lib"
18182 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_kerb4}/lib"
18184 if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
18185 blibpath_add="${blibpath_add}:${with_kerb4}/lib"
18188 CPPFLAGS="$CPPFLAGS -I${with_kerb4}/include"
18189 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
18190 if test "x$ac_cv_header_krb_h" = xyes; then :
18198 if test X"$found" = X"no"; then
18199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to locate Kerberos IV include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS" >&5
18200 $as_echo "$as_me: WARNING: Unable to locate Kerberos IV include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS" >&2;}
18203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
18204 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
18205 if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then :
18206 $as_echo_n "(cached) " >&6
18208 ac_check_lib_save_LIBS=$LIBS
18210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18211 /* end confdefs.h. */
18213 /* Override any GCC internal prototype to avoid an error.
18214 Use char because int might match the return type of a GCC
18215 builtin and then its argument prototype would still apply. */
18219 char des_cbc_encrypt ();
18223 return des_cbc_encrypt ();
18228 if ac_fn_c_try_link "$LINENO"; then :
18229 ac_cv_lib_des_des_cbc_encrypt=yes
18231 ac_cv_lib_des_des_cbc_encrypt=no
18233 rm -f core conftest.err conftest.$ac_objext \
18234 conftest$ac_exeext conftest.$ac_ext
18235 LIBS=$ac_check_lib_save_LIBS
18237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
18238 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
18239 if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then :
18243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
18244 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
18245 if ${ac_cv_lib_des425_des_cbc_encrypt+:} false; then :
18246 $as_echo_n "(cached) " >&6
18248 ac_check_lib_save_LIBS=$LIBS
18249 LIBS="-ldes425 $LIBS"
18250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18251 /* end confdefs.h. */
18253 /* Override any GCC internal prototype to avoid an error.
18254 Use char because int might match the return type of a GCC
18255 builtin and then its argument prototype would still apply. */
18259 char des_cbc_encrypt ();
18263 return des_cbc_encrypt ();
18268 if ac_fn_c_try_link "$LINENO"; then :
18269 ac_cv_lib_des425_des_cbc_encrypt=yes
18271 ac_cv_lib_des425_des_cbc_encrypt=no
18273 rm -f core conftest.err conftest.$ac_objext \
18274 conftest$ac_exeext conftest.$ac_ext
18275 LIBS=$ac_check_lib_save_LIBS
18277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
18278 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
18279 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = xyes; then :
18288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using KTH Kerberos IV" >&5
18289 $as_echo_n "checking whether we are using KTH Kerberos IV... " >&6; }
18290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18291 /* end confdefs.h. */
18296 const char *tmp = krb4_version;
18301 if ac_fn_c_try_compile "$LINENO"; then :
18303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18304 $as_echo "yes" >&6; }
18305 K4LIBS="${K4LIBS} -lcom_err"
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lroken" >&5
18307 $as_echo_n "checking for main in -lroken... " >&6; }
18308 if ${ac_cv_lib_roken_main+:} false; then :
18309 $as_echo_n "(cached) " >&6
18311 ac_check_lib_save_LIBS=$LIBS
18312 LIBS="-lroken $LIBS"
18313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18314 /* end confdefs.h. */
18325 if ac_fn_c_try_link "$LINENO"; then :
18326 ac_cv_lib_roken_main=yes
18328 ac_cv_lib_roken_main=no
18330 rm -f core conftest.err conftest.$ac_objext \
18331 conftest$ac_exeext conftest.$ac_ext
18332 LIBS=$ac_check_lib_save_LIBS
18334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_main" >&5
18335 $as_echo "$ac_cv_lib_roken_main" >&6; }
18336 if test "x$ac_cv_lib_roken_main" = xyes; then :
18337 K4LIBS="${K4LIBS} -lroken"
18343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18344 $as_echo "no" >&6; }
18348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18349 as_ac_Lib=`$as_echo "ac_cv_lib_krb_main$K4LIBS" | $as_tr_sh`
18350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb" >&5
18351 $as_echo_n "checking for main in -lkrb... " >&6; }
18352 if eval \${$as_ac_Lib+:} false; then :
18353 $as_echo_n "(cached) " >&6
18355 ac_check_lib_save_LIBS=$LIBS
18356 LIBS="-lkrb $K4LIBS $LIBS"
18357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18358 /* end confdefs.h. */
18369 if ac_fn_c_try_link "$LINENO"; then :
18370 eval "$as_ac_Lib=yes"
18372 eval "$as_ac_Lib=no"
18374 rm -f core conftest.err conftest.$ac_objext \
18375 conftest$ac_exeext conftest.$ac_ext
18376 LIBS=$ac_check_lib_save_LIBS
18378 eval ac_res=\$$as_ac_Lib
18379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18380 $as_echo "$ac_res" >&6; }
18381 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18382 K4LIBS="-lkrb $K4LIBS"
18385 as_ac_Lib=`$as_echo "ac_cv_lib_krb4_main$K4LIBS" | $as_tr_sh`
18386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb4" >&5
18387 $as_echo_n "checking for main in -lkrb4... " >&6; }
18388 if eval \${$as_ac_Lib+:} false; then :
18389 $as_echo_n "(cached) " >&6
18391 ac_check_lib_save_LIBS=$LIBS
18392 LIBS="-lkrb4 $K4LIBS $LIBS"
18393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18394 /* end confdefs.h. */
18405 if ac_fn_c_try_link "$LINENO"; then :
18406 eval "$as_ac_Lib=yes"
18408 eval "$as_ac_Lib=no"
18410 rm -f core conftest.err conftest.$ac_objext \
18411 conftest$ac_exeext conftest.$ac_ext
18412 LIBS=$ac_check_lib_save_LIBS
18414 eval ac_res=\$$as_ac_Lib
18415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18416 $as_echo "$ac_res" >&6; }
18417 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18418 K4LIBS="-lkrb4 $K4LIBS"
18420 K4LIBS="-lkrb $K4LIBS"
18421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to locate Kerberos IV libraries, you will have to edit the Makefile and add -L/path/to/krb/libs to SUDOERS_LDFLAGS and possibly add Kerberos libs to SUDOERS_LIBS" >&5
18422 $as_echo "$as_me: WARNING: Unable to locate Kerberos IV libraries, you will have to edit the Makefile and add -L/path/to/krb/libs to SUDOERS_LDFLAGS and possibly add Kerberos libs to SUDOERS_LIBS" >&2;}
18429 LDFLAGS="$O_LDFLAGS"
18430 SUDOERS_LIBS="${SUDOERS_LIBS} $K4LIBS"
18431 AUTH_OBJS="$AUTH_OBJS kerb4.lo"
18434 if test ${with_kerb5-'no'} != "no"; then
18435 # Extract the first word of "krb5-config", so it can be a program name with args.
18436 set dummy krb5-config; ac_word=$2
18437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18438 $as_echo_n "checking for $ac_word... " >&6; }
18439 if ${ac_cv_prog_KRB5CONFIG+:} false; then :
18440 $as_echo_n "(cached) " >&6
18442 if test -n "$KRB5CONFIG"; then
18443 ac_cv_prog_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test.
18445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18446 for as_dir in $PATH
18449 test -z "$as_dir" && as_dir=.
18450 for ac_exec_ext in '' $ac_executable_extensions; do
18451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18452 ac_cv_prog_KRB5CONFIG="yes"
18453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18460 test -z "$ac_cv_prog_KRB5CONFIG" && ac_cv_prog_KRB5CONFIG=""""
18463 KRB5CONFIG=$ac_cv_prog_KRB5CONFIG
18464 if test -n "$KRB5CONFIG"; then
18465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5
18466 $as_echo "$KRB5CONFIG" >&6; }
18468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18469 $as_echo "no" >&6; }
18473 if test -n "$KRB5CONFIG"; then
18474 $as_echo "#define HAVE_KERB5 1" >>confdefs.h
18476 AUTH_OBJS="$AUTH_OBJS kerb5.lo"
18477 CPPFLAGS="$CPPFLAGS `krb5-config --cflags`"
18478 SUDOERS_LIBS="$SUDOERS_LIBS `krb5-config --libs`"
18479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
18480 $as_echo_n "checking whether we are using Heimdal... " >&6; }
18481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18482 /* end confdefs.h. */
18487 const char *tmp = heimdal_version;
18492 if ac_fn_c_try_compile "$LINENO"; then :
18494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18495 $as_echo "yes" >&6; }
18496 $as_echo "#define HAVE_HEIMDAL 1" >>confdefs.h
18501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18502 $as_echo "no" >&6; }
18506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18508 $as_echo "#define HAVE_KERB5 1" >>confdefs.h
18510 if test "$with_kerb5" = "yes"; then
18512 O_CPPFLAGS="$CPPFLAGS"
18513 for dir in "" "kerberosV/" "krb5/" "kerberos5/" "kerberosv5/"; do
18514 CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
18515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18516 /* end confdefs.h. */
18526 if ac_fn_c_try_cpp "$LINENO"; then :
18529 rm -f conftest.err conftest.i conftest.$ac_ext
18531 if test X"$found" = X"no"; then
18532 CPPFLAGS="$O_CPPFLAGS"
18533 { $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
18534 $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;}
18538 if test X"$with_rpath" = X"yes"; then
18540 *-*-hpux*) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_kerb5}/lib -Wl,+b,${with_kerb5}/lib"
18542 *) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_kerb5}/lib -Wl,-R${with_kerb5}/lib"
18546 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_kerb5}/lib"
18548 if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
18549 blibpath_add="${blibpath_add}:${with_kerb5}/lib"
18552 CPPFLAGS="$CPPFLAGS -I${with_kerb5}/include"
18555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
18556 $as_echo_n "checking whether we are using Heimdal... " >&6; }
18557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18558 /* end confdefs.h. */
18563 const char *tmp = heimdal_version;
18568 if ac_fn_c_try_compile "$LINENO"; then :
18570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18571 $as_echo "yes" >&6; }
18572 $as_echo "#define HAVE_HEIMDAL 1" >>confdefs.h
18574 # XXX - need to check whether -lcrypo is needed!
18575 SUDOERS_LIBS="${SUDOERS_LIBS} -lkrb5 -lcrypto -ldes -lcom_err -lasn1"
18576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lroken" >&5
18577 $as_echo_n "checking for main in -lroken... " >&6; }
18578 if ${ac_cv_lib_roken_main+:} false; then :
18579 $as_echo_n "(cached) " >&6
18581 ac_check_lib_save_LIBS=$LIBS
18582 LIBS="-lroken $LIBS"
18583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18584 /* end confdefs.h. */
18595 if ac_fn_c_try_link "$LINENO"; then :
18596 ac_cv_lib_roken_main=yes
18598 ac_cv_lib_roken_main=no
18600 rm -f core conftest.err conftest.$ac_objext \
18601 conftest$ac_exeext conftest.$ac_ext
18602 LIBS=$ac_check_lib_save_LIBS
18604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_main" >&5
18605 $as_echo "$ac_cv_lib_roken_main" >&6; }
18606 if test "x$ac_cv_lib_roken_main" = xyes; then :
18607 SUDOERS_LIBS="${SUDOERS_LIBS} -lroken"
18613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18614 $as_echo "no" >&6; }
18615 SUDOERS_LIBS="${SUDOERS_LIBS} -lkrb5 -lk5crypto -lcom_err"
18616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5support" >&5
18617 $as_echo_n "checking for main in -lkrb5support... " >&6; }
18618 if ${ac_cv_lib_krb5support_main+:} false; then :
18619 $as_echo_n "(cached) " >&6
18621 ac_check_lib_save_LIBS=$LIBS
18622 LIBS="-lkrb5support $LIBS"
18623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18624 /* end confdefs.h. */
18635 if ac_fn_c_try_link "$LINENO"; then :
18636 ac_cv_lib_krb5support_main=yes
18638 ac_cv_lib_krb5support_main=no
18640 rm -f core conftest.err conftest.$ac_objext \
18641 conftest$ac_exeext conftest.$ac_ext
18642 LIBS=$ac_check_lib_save_LIBS
18644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_main" >&5
18645 $as_echo "$ac_cv_lib_krb5support_main" >&6; }
18646 if test "x$ac_cv_lib_krb5support_main" = xyes; then :
18647 SUDOERS_LIBS="${SUDOERS_LIBS} -lkrb5support"
18652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18653 AUTH_OBJS="$AUTH_OBJS kerb5.lo"
18656 LIBS="${LIBS} ${SUDOERS_LIBS}"
18657 for ac_func in krb5_verify_user krb5_init_secure_context
18659 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18660 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18661 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18662 cat >>confdefs.h <<_ACEOF
18663 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18669 for ac_func in krb5_get_init_creds_opt_alloc
18671 ac_fn_c_check_func "$LINENO" "krb5_get_init_creds_opt_alloc" "ac_cv_func_krb5_get_init_creds_opt_alloc"
18672 if test "x$ac_cv_func_krb5_get_init_creds_opt_alloc" = xyes; then :
18673 cat >>confdefs.h <<_ACEOF
18674 #define HAVE_KRB5_GET_INIT_CREDS_OPT_ALLOC 1
18677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether krb5_get_init_creds_opt_free takes a context" >&5
18678 $as_echo_n "checking whether krb5_get_init_creds_opt_free takes a context... " >&6; }
18679 if ${sudo_cv_krb5_get_init_creds_opt_free_two_args+:} false; then :
18680 $as_echo_n "(cached) " >&6
18683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18684 /* end confdefs.h. */
18689 krb5_get_init_creds_opt_free(NULL, NULL);
18695 if ac_fn_c_try_compile "$LINENO"; then :
18696 sudo_cv_krb5_get_init_creds_opt_free_two_args=yes
18698 sudo_cv_krb5_get_init_creds_opt_free_two_args=no
18701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_krb5_get_init_creds_opt_free_two_args" >&5
18706 $as_echo "$sudo_cv_krb5_get_init_creds_opt_free_two_args" >&6; }
18711 if test X"$sudo_cv_krb5_get_init_creds_opt_free_two_args" = X"yes"; then
18712 $as_echo "#define HAVE_KRB5_GET_INIT_CREDS_OPT_FREE_TWO_ARGS 1" >>confdefs.h
18718 if test ${with_AFS-'no'} = "yes"; then
18720 # looks like the "standard" place for AFS libs is /usr/afsws/lib
18721 AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
18722 for i in $AFSLIBDIRS; do
18723 if test -d ${i}; then
18725 if test X"$with_rpath" = X"yes"; then
18727 *-*-hpux*) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L$i -Wl,+b,$i"
18729 *) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L$i -Wl,-R$i"
18733 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L$i"
18735 if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
18736 blibpath_add="${blibpath_add}:$i"
18739 FOUND_AFSLIBDIR=true
18742 if test -z "$FOUND_AFSLIBDIR"; then
18743 { $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
18744 $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;}
18747 # Order is important here. Note that we build AFS_LIBS from right to left
18748 # since AFS_LIBS may be initialized with BSD compat libs that must go last
18749 AFS_LIBS="-laudit ${AFS_LIBS}"
18750 for i in $AFSLIBDIRS; do
18751 if test -f ${i}/util.a; then
18752 AFS_LIBS="${i}/util.a ${AFS_LIBS}"
18757 if test -z "$FOUND_UTIL_A"; then
18758 AFS_LIBS="-lutil ${AFS_LIBS}"
18760 AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
18762 # AFS includes may live in /usr/include on some machines...
18763 for i in /usr/afsws/include; do
18764 if test -d ${i}; then
18765 CPPFLAGS="${CPPFLAGS} -I${i}"
18766 FOUND_AFSINCDIR=true
18770 if test -z "$FOUND_AFSLIBDIR"; then
18771 { $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
18772 $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;}
18775 AUTH_OBJS="$AUTH_OBJS afs.lo"
18778 if test ${with_DCE-'no'} = "yes"; then
18779 DCE_OBJS="${DCE_OBJS} dce_pwent.o"
18780 SUDOERS_LIBS="${SUDOERS_LIBS} -ldce"
18781 AUTH_OBJS="$AUTH_OBJS dce.lo"
18784 if test "${with_skey-'no'}" = "yes"; then
18785 O_LDFLAGS="$LDFLAGS"
18786 if test "$with_skey" != "yes"; then
18787 CPPFLAGS="${CPPFLAGS} -I${with_skey}/include"
18789 if test X"$with_rpath" = X"yes"; then
18791 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${with_skey}/lib -Wl,+b,${with_skey}/lib"
18793 *) LDFLAGS="${LDFLAGS} -L${with_skey}/lib -Wl,-R${with_skey}/lib"
18797 LDFLAGS="${LDFLAGS} -L${with_skey}/lib"
18799 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
18800 blibpath_add="${blibpath_add}:${with_skey}/lib"
18804 if test X"$with_rpath" = X"yes"; then
18806 *-*-hpux*) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_skey}/lib -Wl,+b,${with_skey}/lib"
18808 *) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_skey}/lib -Wl,-R${with_skey}/lib"
18812 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_skey}/lib"
18814 if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
18815 blibpath_add="${blibpath_add}:${with_skey}/lib"
18818 ac_fn_c_check_header_compile "$LINENO" "skey.h" "ac_cv_header_skey_h" "#include <stdio.h>
18820 if test "x$ac_cv_header_skey_h" = xyes; then :
18829 O_CPPFLAGS="$CPPFLAGS"
18830 for dir in "" "/usr/local" "/usr/contrib"; do
18831 test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
18832 ac_fn_c_check_header_compile "$LINENO" "skey.h" "ac_cv_header_skey_h" "#include <stdio.h>
18834 if test "x$ac_cv_header_skey_h" = xyes; then :
18840 if test "$found" = "no" -o -z "$dir"; then
18841 CPPFLAGS="$O_CPPFLAGS"
18844 if test X"$with_rpath" = X"yes"; then
18846 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
18848 *) LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
18852 LDFLAGS="${LDFLAGS} -L${dir}/lib"
18854 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
18855 blibpath_add="${blibpath_add}:${dir}/lib"
18859 if test X"$with_rpath" = X"yes"; then
18861 *-*-hpux*) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
18863 *) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
18867 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib"
18869 if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
18870 blibpath_add="${blibpath_add}:${dir}/lib"
18874 if test "$found" = "no"; then
18875 { $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
18876 $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;}
18879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lskey" >&5
18880 $as_echo_n "checking for main in -lskey... " >&6; }
18881 if ${ac_cv_lib_skey_main+:} false; then :
18882 $as_echo_n "(cached) " >&6
18884 ac_check_lib_save_LIBS=$LIBS
18885 LIBS="-lskey $LIBS"
18886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18887 /* end confdefs.h. */
18898 if ac_fn_c_try_link "$LINENO"; then :
18899 ac_cv_lib_skey_main=yes
18901 ac_cv_lib_skey_main=no
18903 rm -f core conftest.err conftest.$ac_objext \
18904 conftest$ac_exeext conftest.$ac_ext
18905 LIBS=$ac_check_lib_save_LIBS
18907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_skey_main" >&5
18908 $as_echo "$ac_cv_lib_skey_main" >&6; }
18909 if test "x$ac_cv_lib_skey_main" = xyes; then :
18912 { $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
18913 $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;}
18916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for skeyaccess in -lskey" >&5
18917 $as_echo_n "checking for skeyaccess in -lskey... " >&6; }
18918 if ${ac_cv_lib_skey_skeyaccess+:} false; then :
18919 $as_echo_n "(cached) " >&6
18921 ac_check_lib_save_LIBS=$LIBS
18922 LIBS="-lskey $LIBS"
18923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18924 /* end confdefs.h. */
18926 /* Override any GCC internal prototype to avoid an error.
18927 Use char because int might match the return type of a GCC
18928 builtin and then its argument prototype would still apply. */
18932 char skeyaccess ();
18936 return skeyaccess ();
18941 if ac_fn_c_try_link "$LINENO"; then :
18942 ac_cv_lib_skey_skeyaccess=yes
18944 ac_cv_lib_skey_skeyaccess=no
18946 rm -f core conftest.err conftest.$ac_objext \
18947 conftest$ac_exeext conftest.$ac_ext
18948 LIBS=$ac_check_lib_save_LIBS
18950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_skey_skeyaccess" >&5
18951 $as_echo "$ac_cv_lib_skey_skeyaccess" >&6; }
18952 if test "x$ac_cv_lib_skey_skeyaccess" = xyes; then :
18953 $as_echo "#define HAVE_SKEYACCESS 1" >>confdefs.h
18958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RFC1938-compliant skeychallenge" >&5
18959 $as_echo_n "checking for RFC1938-compliant skeychallenge... " >&6; }
18960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18961 /* end confdefs.h. */
18967 skeychallenge(NULL, NULL, NULL, 0);
18973 if ac_fn_c_try_compile "$LINENO"; then :
18975 $as_echo "#define HAVE_RFC1938_SKEYCHALLENGE 1" >>confdefs.h
18977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18978 $as_echo "yes" >&6; }
18982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18983 $as_echo "no" >&6; }
18987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18989 LDFLAGS="$O_LDFLAGS"
18990 SUDOERS_LIBS="${SUDOERS_LIBS} -lskey"
18991 AUTH_OBJS="$AUTH_OBJS rfc1938.lo"
18994 if test "${with_opie-'no'}" = "yes"; then
18995 O_LDFLAGS="$LDFLAGS"
18996 if test "$with_opie" != "yes"; then
18997 CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
18999 if test X"$with_rpath" = X"yes"; then
19001 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${with_opie}/lib -Wl,+b,${with_opie}/lib"
19003 *) LDFLAGS="${LDFLAGS} -L${with_opie}/lib -Wl,-R${with_opie}/lib"
19007 LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
19009 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
19010 blibpath_add="${blibpath_add}:${with_opie}/lib"
19014 if test X"$with_rpath" = X"yes"; then
19016 *-*-hpux*) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_opie}/lib -Wl,+b,${with_opie}/lib"
19018 *) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_opie}/lib -Wl,-R${with_opie}/lib"
19022 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_opie}/lib"
19024 if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
19025 blibpath_add="${blibpath_add}:${with_opie}/lib"
19028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19029 /* end confdefs.h. */
19039 if ac_fn_c_try_cpp "$LINENO"; then :
19044 rm -f conftest.err conftest.i conftest.$ac_ext
19047 O_CPPFLAGS="$CPPFLAGS"
19048 for dir in "" "/usr/local" "/usr/contrib"; do
19049 test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
19050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19051 /* end confdefs.h. */
19061 if ac_fn_c_try_cpp "$LINENO"; then :
19064 rm -f conftest.err conftest.i conftest.$ac_ext
19066 if test "$found" = "no" -o -z "$dir"; then
19067 CPPFLAGS="$O_CPPFLAGS"
19070 if test X"$with_rpath" = X"yes"; then
19072 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
19074 *) LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
19078 LDFLAGS="${LDFLAGS} -L${dir}/lib"
19080 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
19081 blibpath_add="${blibpath_add}:${dir}/lib"
19085 if test X"$with_rpath" = X"yes"; then
19087 *-*-hpux*) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
19089 *) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
19093 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib"
19095 if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
19096 blibpath_add="${blibpath_add}:${dir}/lib"
19100 if test "$found" = "no"; then
19101 { $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
19102 $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;}
19105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lopie" >&5
19106 $as_echo_n "checking for main in -lopie... " >&6; }
19107 if ${ac_cv_lib_opie_main+:} false; then :
19108 $as_echo_n "(cached) " >&6
19110 ac_check_lib_save_LIBS=$LIBS
19111 LIBS="-lopie $LIBS"
19112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19113 /* end confdefs.h. */
19124 if ac_fn_c_try_link "$LINENO"; then :
19125 ac_cv_lib_opie_main=yes
19127 ac_cv_lib_opie_main=no
19129 rm -f core conftest.err conftest.$ac_objext \
19130 conftest$ac_exeext conftest.$ac_ext
19131 LIBS=$ac_check_lib_save_LIBS
19133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opie_main" >&5
19134 $as_echo "$ac_cv_lib_opie_main" >&6; }
19135 if test "x$ac_cv_lib_opie_main" = xyes; then :
19138 { $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
19139 $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;}
19142 LDFLAGS="$O_LDFLAGS"
19143 SUDOERS_LIBS="${SUDOERS_LIBS} -lopie"
19144 AUTH_OBJS="$AUTH_OBJS rfc1938.lo"
19147 if test ${with_passwd-'no'} != "no"; then
19148 if test -z "$LIB_CRYPT"; then
19150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
19151 $as_echo_n "checking for library containing crypt... " >&6; }
19152 if ${ac_cv_search_crypt+:} false; then :
19153 $as_echo_n "(cached) " >&6
19155 ac_func_search_save_LIBS=$LIBS
19156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19157 /* end confdefs.h. */
19159 /* Override any GCC internal prototype to avoid an error.
19160 Use char because int might match the return type of a GCC
19161 builtin and then its argument prototype would still apply. */
19174 for ac_lib in '' crypt crypt_d ufc; do
19175 if test -z "$ac_lib"; then
19176 ac_res="none required"
19179 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19181 if ac_fn_c_try_link "$LINENO"; then :
19182 ac_cv_search_crypt=$ac_res
19184 rm -f core conftest.err conftest.$ac_objext \
19186 if ${ac_cv_search_crypt+:} false; then :
19190 if ${ac_cv_search_crypt+:} false; then :
19193 ac_cv_search_crypt=no
19195 rm conftest.$ac_ext
19196 LIBS=$ac_func_search_save_LIBS
19198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
19199 $as_echo "$ac_cv_search_crypt" >&6; }
19200 ac_res=$ac_cv_search_crypt
19201 if test "$ac_res" != no; then :
19202 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19203 test -n "$ac_lib" && SUDOERS_LIBS="${SUDOERS_LIBS} $ac_res"
19209 if test "$CHECKSHADOW" = "true" -a -n "$shadow_funcs"; then
19211 LIBS="$LIBS $shadow_libs"
19213 for ac_func in $shadow_funcs
19215 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19216 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19217 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19218 cat >>confdefs.h <<_ACEOF
19219 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19225 if test "$found" = "yes"; then
19226 SUDOERS_LIBS="$SUDOERS_LIBS $shadow_libs"
19227 elif test -n "$shadow_libs_optional"; then
19228 LIBS="$LIBS $shadow_libs_optional"
19229 for ac_func in $shadow_funcs
19231 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19232 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19233 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19234 cat >>confdefs.h <<_ACEOF
19235 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19241 if test "$found" = "yes"; then
19242 SUDOERS_LIBS="$SUDOERS_LIBS $shadow_libs $shadow_libs_optional"
19245 if test "$found" = "yes"; then
19246 case "$shadow_funcs" in
19247 *getprpwnam*) SECUREWARE=1;;
19249 test -n "$shadow_defs" && OSDEFS="${OSDEFS} $shadow_defs"
19255 if test "$CHECKSHADOW" = "true"; then
19256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspnam" >&5
19257 $as_echo_n "checking for library containing getspnam... " >&6; }
19258 if ${ac_cv_search_getspnam+:} false; then :
19259 $as_echo_n "(cached) " >&6
19261 ac_func_search_save_LIBS=$LIBS
19262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19263 /* end confdefs.h. */
19265 /* Override any GCC internal prototype to avoid an error.
19266 Use char because int might match the return type of a GCC
19267 builtin and then its argument prototype would still apply. */
19275 return getspnam ();
19280 for ac_lib in '' gen; do
19281 if test -z "$ac_lib"; then
19282 ac_res="none required"
19285 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19287 if ac_fn_c_try_link "$LINENO"; then :
19288 ac_cv_search_getspnam=$ac_res
19290 rm -f core conftest.err conftest.$ac_objext \
19292 if ${ac_cv_search_getspnam+:} false; then :
19296 if ${ac_cv_search_getspnam+:} false; then :
19299 ac_cv_search_getspnam=no
19301 rm conftest.$ac_ext
19302 LIBS=$ac_func_search_save_LIBS
19304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspnam" >&5
19305 $as_echo "$ac_cv_search_getspnam" >&6; }
19306 ac_res=$ac_cv_search_getspnam
19307 if test "$ac_res" != no; then :
19308 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19309 $as_echo "#define HAVE_GETSPNAM 1" >>confdefs.h
19310 CHECKSHADOW=false; test -n "$ac_lib" && SUDOERS_LIBS="${SUDOERS_LIBS} $ac_res"
19314 if test "$CHECKSHADOW" = "true"; then
19315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getprpwnam" >&5
19316 $as_echo_n "checking for library containing getprpwnam... " >&6; }
19317 if ${ac_cv_search_getprpwnam+:} false; then :
19318 $as_echo_n "(cached) " >&6
19320 ac_func_search_save_LIBS=$LIBS
19321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19322 /* end confdefs.h. */
19324 /* Override any GCC internal prototype to avoid an error.
19325 Use char because int might match the return type of a GCC
19326 builtin and then its argument prototype would still apply. */
19330 char getprpwnam ();
19334 return getprpwnam ();
19339 for ac_lib in '' sec security prot; do
19340 if test -z "$ac_lib"; then
19341 ac_res="none required"
19344 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19346 if ac_fn_c_try_link "$LINENO"; then :
19347 ac_cv_search_getprpwnam=$ac_res
19349 rm -f core conftest.err conftest.$ac_objext \
19351 if ${ac_cv_search_getprpwnam+:} false; then :
19355 if ${ac_cv_search_getprpwnam+:} false; then :
19358 ac_cv_search_getprpwnam=no
19360 rm conftest.$ac_ext
19361 LIBS=$ac_func_search_save_LIBS
19363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getprpwnam" >&5
19364 $as_echo "$ac_cv_search_getprpwnam" >&6; }
19365 ac_res=$ac_cv_search_getprpwnam
19366 if test "$ac_res" != no; then :
19367 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19368 $as_echo "#define HAVE_GETPRPWNAM 1" >>confdefs.h
19369 CHECKSHADOW=false; SECUREWARE=1; test -n "$ac_lib" && SUDOERS_LIBS="${SUDOERS_LIBS} $ac_res"
19373 if test -n "$SECUREWARE"; then
19374 for ac_func in bigcrypt set_auth_parameters initprivs
19376 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19377 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19378 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19379 cat >>confdefs.h <<_ACEOF
19380 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19386 AUTH_OBJS="$AUTH_OBJS secureware.lo"
19390 if test ${with_ldap-'no'} != "no"; then
19391 _LDFLAGS="$LDFLAGS"
19392 if test "$with_ldap" != "yes"; then
19394 if test X"$with_rpath" = X"yes"; then
19396 *-*-hpux*) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_ldap}/lib -Wl,+b,${with_ldap}/lib"
19398 *) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_ldap}/lib -Wl,-R${with_ldap}/lib"
19402 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_ldap}/lib"
19404 if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
19405 blibpath_add="${blibpath_add}:${with_ldap}/lib"
19409 if test X"$with_rpath" = X"yes"; then
19411 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -Wl,+b,${with_ldap}/lib"
19413 *) LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -Wl,-R${with_ldap}/lib"
19417 LDFLAGS="${LDFLAGS} -L${with_ldap}/lib"
19419 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
19420 blibpath_add="${blibpath_add}:${with_ldap}/lib"
19423 CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
19426 SUDOERS_OBJS="${SUDOERS_OBJS} ldap.lo"
19429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
19430 $as_echo_n "checking for LDAP libraries... " >&6; }
19434 for l in -lldap -llber '-lssl -lcrypto'; do
19436 LDAP_LIBS="${LDAP_LIBS} $l"
19437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19438 /* end confdefs.h. */
19439 #include <sys/types.h>
19445 (void)ldap_init(0, 0)
19450 if ac_fn_c_try_link "$LINENO"; then :
19453 rm -f core conftest.err conftest.$ac_objext \
19454 conftest$ac_exeext conftest.$ac_ext
19456 if test "$found" = "no"; then
19459 for l in -libmldap -lidsldif; do
19461 LDAP_LIBS="${LDAP_LIBS} $l"
19462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19463 /* end confdefs.h. */
19464 #include <sys/types.h>
19470 (void)ldap_init(0, 0)
19475 if ac_fn_c_try_link "$LINENO"; then :
19478 rm -f core conftest.err conftest.$ac_objext \
19479 conftest$ac_exeext conftest.$ac_ext
19482 if test "$found" = "no"; then
19483 LIBS="${_LIBS} -lldap"
19485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using -lldap" >&5
19486 $as_echo "not found, using -lldap" >&6; }
19488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDAP_LIBS" >&5
19489 $as_echo "$LDAP_LIBS" >&6; }
19492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ber_set_option" >&5
19493 $as_echo_n "checking for library containing ber_set_option... " >&6; }
19494 if ${ac_cv_search_ber_set_option+:} false; then :
19495 $as_echo_n "(cached) " >&6
19497 ac_func_search_save_LIBS=$LIBS
19498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19499 /* end confdefs.h. */
19501 /* Override any GCC internal prototype to avoid an error.
19502 Use char because int might match the return type of a GCC
19503 builtin and then its argument prototype would still apply. */
19507 char ber_set_option ();
19511 return ber_set_option ();
19516 for ac_lib in '' lber; do
19517 if test -z "$ac_lib"; then
19518 ac_res="none required"
19521 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19523 if ac_fn_c_try_link "$LINENO"; then :
19524 ac_cv_search_ber_set_option=$ac_res
19526 rm -f core conftest.err conftest.$ac_objext \
19528 if ${ac_cv_search_ber_set_option+:} false; then :
19532 if ${ac_cv_search_ber_set_option+:} false; then :
19535 ac_cv_search_ber_set_option=no
19537 rm conftest.$ac_ext
19538 LIBS=$ac_func_search_save_LIBS
19540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ber_set_option" >&5
19541 $as_echo "$ac_cv_search_ber_set_option" >&6; }
19542 ac_res=$ac_cv_search_ber_set_option
19543 if test "$ac_res" != no; then :
19544 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19550 if test X"$found" = X"yes" -a X"$LIBS" != X"$OLIBS"; then
19551 LDAP_LIBS="$LDAP_LIBS -llber"
19553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lber.h is needed" >&5
19554 $as_echo_n "checking whether lber.h is needed... " >&6; }
19555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19556 /* end confdefs.h. */
19557 #include <sys/types.h>
19562 (void)ldap_init(0, 0)
19567 if ac_fn_c_try_link "$LINENO"; then :
19568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19569 $as_echo "no" >&6; }
19572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19573 $as_echo "yes" >&6; }
19574 $as_echo "#define HAVE_LBER_H 1" >>confdefs.h
19577 rm -f core conftest.err conftest.$ac_objext \
19578 conftest$ac_exeext conftest.$ac_ext
19580 for ac_header in sasl/sasl.h sasl.h
19582 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19583 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19584 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19585 cat >>confdefs.h <<_ACEOF
19586 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19588 for ac_func in ldap_sasl_interactive_bind_s
19590 ac_fn_c_check_func "$LINENO" "ldap_sasl_interactive_bind_s" "ac_cv_func_ldap_sasl_interactive_bind_s"
19591 if test "x$ac_cv_func_ldap_sasl_interactive_bind_s" = xyes; then :
19592 cat >>confdefs.h <<_ACEOF
19593 #define HAVE_LDAP_SASL_INTERACTIVE_BIND_S 1
19605 for ac_header in ldap_ssl.h mps/ldap_ssl.h
19607 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19608 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <ldap.h>
19610 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19611 cat >>confdefs.h <<_ACEOF
19612 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19619 for ac_func in ldap_initialize ldap_start_tls_s ldapssl_init ldapssl_set_strength ldap_unbind_ext_s ldap_str2dn ldap_create ldap_sasl_bind_s ldap_ssl_client_init ldap_start_tls_s_np
19621 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19622 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19623 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19624 cat >>confdefs.h <<_ACEOF
19625 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19631 for ac_func in ldap_search_ext_s ldap_search_st
19633 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19634 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19635 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19636 cat >>confdefs.h <<_ACEOF
19637 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19644 if test X"$check_gss_krb5_ccache_name" = X"yes"; then
19645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_ccache_name in -lgssapi" >&5
19646 $as_echo_n "checking for gss_krb5_ccache_name in -lgssapi... " >&6; }
19647 if ${ac_cv_lib_gssapi_gss_krb5_ccache_name+:} false; then :
19648 $as_echo_n "(cached) " >&6
19650 ac_check_lib_save_LIBS=$LIBS
19651 LIBS="-lgssapi $LIBS"
19652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19653 /* end confdefs.h. */
19655 /* Override any GCC internal prototype to avoid an error.
19656 Use char because int might match the return type of a GCC
19657 builtin and then its argument prototype would still apply. */
19661 char gss_krb5_ccache_name ();
19665 return gss_krb5_ccache_name ();
19670 if ac_fn_c_try_link "$LINENO"; then :
19671 ac_cv_lib_gssapi_gss_krb5_ccache_name=yes
19673 ac_cv_lib_gssapi_gss_krb5_ccache_name=no
19675 rm -f core conftest.err conftest.$ac_objext \
19676 conftest$ac_exeext conftest.$ac_ext
19677 LIBS=$ac_check_lib_save_LIBS
19679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_krb5_ccache_name" >&5
19680 $as_echo "$ac_cv_lib_gssapi_gss_krb5_ccache_name" >&6; }
19681 if test "x$ac_cv_lib_gssapi_gss_krb5_ccache_name" = xyes; then :
19682 $as_echo "#define HAVE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
19684 LDAP_LIBS="${LDAP_LIBS} -lgssapi"
19686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_ccache_name in -lgssapi_krb5" >&5
19687 $as_echo_n "checking for gss_krb5_ccache_name in -lgssapi_krb5... " >&6; }
19688 if ${ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name+:} false; then :
19689 $as_echo_n "(cached) " >&6
19691 ac_check_lib_save_LIBS=$LIBS
19692 LIBS="-lgssapi_krb5 $LIBS"
19693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19694 /* end confdefs.h. */
19696 /* Override any GCC internal prototype to avoid an error.
19697 Use char because int might match the return type of a GCC
19698 builtin and then its argument prototype would still apply. */
19702 char gss_krb5_ccache_name ();
19706 return gss_krb5_ccache_name ();
19711 if ac_fn_c_try_link "$LINENO"; then :
19712 ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=yes
19714 ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=no
19716 rm -f core conftest.err conftest.$ac_objext \
19717 conftest$ac_exeext conftest.$ac_ext
19718 LIBS=$ac_check_lib_save_LIBS
19720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&5
19721 $as_echo "$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&6; }
19722 if test "x$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" = xyes; then :
19723 $as_echo "#define HAVE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
19725 LDAP_LIBS="${LDAP_LIBS} -lgssapi_krb5"
19732 # gssapi headers may be separate or part of Kerberos V
19734 O_CPPFLAGS="$CPPFLAGS"
19735 for dir in "" "kerberosV" "krb5" "kerberos5" "kerberosv5"; do
19736 test X"$dir" != X"" && CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
19737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19738 /* end confdefs.h. */
19739 #include <gssapi/gssapi.h>
19748 if ac_fn_c_try_cpp "$LINENO"; then :
19749 found="gssapi/gssapi.h"; break
19751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19752 /* end confdefs.h. */
19753 #include <gssapi.h>
19762 if ac_fn_c_try_cpp "$LINENO"; then :
19763 found="gssapi.h"; break
19765 rm -f conftest.err conftest.i conftest.$ac_ext
19767 rm -f conftest.err conftest.i conftest.$ac_ext
19769 if test X"$found" != X"no"; then
19770 for ac_header in $found
19772 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19773 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19774 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19775 cat >>confdefs.h <<_ACEOF
19776 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19783 if test X"$found" = X"gssapi/gssapi.h"; then
19784 for ac_header in gssapi/gssapi_krb5.h
19786 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_krb5.h" "ac_cv_header_gssapi_gssapi_krb5_h" "$ac_includes_default"
19787 if test "x$ac_cv_header_gssapi_gssapi_krb5_h" = xyes; then :
19788 cat >>confdefs.h <<_ACEOF
19789 #define HAVE_GSSAPI_GSSAPI_KRB5_H 1
19798 CPPFLAGS="$O_CPPFLAGS"
19799 { $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
19800 $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;}
19804 SUDOERS_LIBS="${SUDOERS_LIBS} ${LDAP_LIBS}"
19806 LDFLAGS="$_LDFLAGS"
19810 # How to do dynamic object loading.
19811 # We support dlopen() and sh_load(), else fall back to static loading.
19813 case "$lt_cv_dlopen" in
19815 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
19817 SUDOERS_OBJS="$SUDOERS_OBJS plugin_error.lo"
19818 LT_STATIC="--tag=disable-static"
19821 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19823 SUDOERS_OBJS="$SUDOERS_OBJS plugin_error.lo"
19824 LT_STATIC="--tag=disable-static"
19825 case " $LIBOBJS " in
19826 *" dlopen.$ac_objext "* ) ;;
19827 *) LIBOBJS="$LIBOBJS dlopen.$ac_objext"
19833 if test X"${ac_cv_func_dlopen}" = X"yes"; then
19834 as_fn_error $? "\"dlopen present but libtool doesn't appear to support your platform.\"" "$LINENO" 5
19836 # Preload sudoers module symbols
19837 SUDO_OBJS="${SUDO_OBJS} preload.o"
19838 SUDO_LIBS="${SUDO_LIBS} \$(top_builddir)/plugins/sudoers/sudoers.la"
19840 case " $LIBOBJS " in
19841 *" dlopen.$ac_objext "* ) ;;
19842 *) LIBOBJS="$LIBOBJS dlopen.$ac_objext"
19850 # Add library needed for dynamic loading, if any.
19852 LIBDL="$lt_cv_dlopen_libs"
19853 if test X"$LIBDL" != X""; then
19854 SUDO_LIBS="${SUDO_LIBS} $LIBDL"
19855 SUDOERS_LIBS="${SUDOERS_LIBS} $LIBDL"
19858 # On HP-UX, you cannot dlopen() a shared object that uses pthreads
19859 # unless the main program is linked against -lpthread. Since we
19860 # have no knowledge what libraries a plugin may depend on, we always
19861 # link against -lpthread on HP-UX if it is available.
19862 # This check should go after all other libraries tests.
19865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
19866 $as_echo_n "checking for main in -lpthread... " >&6; }
19867 if ${ac_cv_lib_pthread_main+:} false; then :
19868 $as_echo_n "(cached) " >&6
19870 ac_check_lib_save_LIBS=$LIBS
19871 LIBS="-lpthread $LIBS"
19872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19873 /* end confdefs.h. */
19884 if ac_fn_c_try_link "$LINENO"; then :
19885 ac_cv_lib_pthread_main=yes
19887 ac_cv_lib_pthread_main=no
19889 rm -f core conftest.err conftest.$ac_objext \
19890 conftest$ac_exeext conftest.$ac_ext
19891 LIBS=$ac_check_lib_save_LIBS
19893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
19894 $as_echo "$ac_cv_lib_pthread_main" >&6; }
19895 if test "x$ac_cv_lib_pthread_main" = xyes; then :
19896 SUDO_LIBS="${SUDO_LIBS} -lpthread"
19902 if test -n "$blibpath"; then
19903 if test -n "$blibpath_add"; then
19904 SUDOERS_LDFLAGS="$SUDOERS_LDFLAGS -Wl,-blibpath:${blibpath}${blibpath_add}"
19905 elif test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
19906 SUDOERS_LDFLAGS="$SUDOERS_LDFLAGS -Wl,-blibpath:${blibpath}"
19910 if test "$utmp_style" = "LEGACY"; then
19911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utmp file path" >&5
19912 $as_echo_n "checking for utmp file path... " >&6; }
19914 for p in "/var/run/utmp" "/var/adm/utmp" "/etc/utmp"; do
19915 if test -r "$p"; then
19917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
19918 $as_echo "$p" >&6; }
19919 cat >>confdefs.h <<EOF
19920 #define _PATH_UTMP "$p"
19926 if test X"$found" != X"yes"; then
19927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19928 $as_echo "not found" >&6; }
19932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log file location" >&5
19933 $as_echo_n "checking for log file location... " >&6; }
19934 if test -n "$with_logpath"; then
19935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_logpath" >&5
19936 $as_echo "$with_logpath" >&6; }
19937 cat >>confdefs.h <<EOF
19938 #define _PATH_SUDO_LOGFILE "$with_logpath"
19941 elif test -d "/var/log"; then
19942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /var/log/sudo.log" >&5
19943 $as_echo "/var/log/sudo.log" >&6; }
19944 cat >>confdefs.h <<\EOF
19945 #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
19948 elif test -d "/var/adm"; then
19949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /var/adm/sudo.log" >&5
19950 $as_echo "/var/adm/sudo.log" >&6; }
19951 cat >>confdefs.h <<\EOF
19952 #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
19955 elif test -d "/usr/adm"; then
19956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /usr/adm/sudo.log" >&5
19957 $as_echo "/usr/adm/sudo.log" >&6; }
19958 cat >>confdefs.h <<\EOF
19959 #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
19963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
19964 $as_echo "unknown" >&6; }
19967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timestamp file location" >&5
19968 $as_echo_n "checking for timestamp file location... " >&6; }
19969 timedir="$with_timedir"
19970 if test -z "$timedir"; then
19971 for d in /var/db /var/lib /var/adm /usr/adm; do
19972 if test -d "$d"; then
19978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $timedir" >&5
19979 $as_echo "$timedir" >&6; }
19980 cat >>confdefs.h <<EOF
19981 #define _PATH_SUDO_TIMEDIR "$timedir"
19986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for I/O log dir location" >&5
19987 $as_echo_n "checking for I/O log dir location... " >&6; }
19988 if test "${with_iologdir-yes}" != "yes"; then
19989 iolog_dir="$with_iologdir"
19990 elif test -d "/var/log"; then
19991 iolog_dir="/var/log/sudo-io"
19992 elif test -d "/var/adm"; then
19993 iolog_dir="/var/adm/sudo-io"
19995 iolog_dir="/usr/adm/sudo-io"
19997 if test "${with_iologdir}" != "no"; then
19998 cat >>confdefs.h <<EOF
19999 #define _PATH_SUDO_IO_LOGDIR "$iolog_dir"
20003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $iolog_dir" >&5
20004 $as_echo "$iolog_dir" >&6; }
20007 case "$with_passwd" in
20009 AUTH_OBJS="$AUTH_OBJS getspwuid.lo passwd.lo"
20012 $as_echo "#define WITHOUT_PASSWD 1" >>confdefs.h
20014 if test -z "$AUTH_OBJS"; then
20015 as_fn_error $? "no authentication methods defined." "$LINENO" 5
20019 AUTH_OBJS=${AUTH_OBJS# }
20020 _AUTH=`echo "$AUTH_OBJS" | sed -e 's/\.lo//g' -e 's/getspwuid *//'`
20021 { $as_echo "$as_me:${as_lineno-$LINENO}: using the following authentication methods: $_AUTH" >&5
20022 $as_echo "$as_me: using the following authentication methods: $_AUTH" >&6;}
20024 if test -n "$LIBS"; then
20029 for sl in ${SUDO_LIBS} ${SUDOERS_LIBS} ${NET_LIBS}; do
20030 test $l = $sl && dupe=1
20032 test $dupe = 0 && LIBS="${LIBS} $l"
20036 if test -n "$GCC"; then
20037 if test X"$enable_warnings" = X"yes" -o X"$with_devel" = X"yes"; then
20038 CFLAGS="${CFLAGS} -Wall"
20040 if test X"$enable_werror" = X"yes"; then
20041 CFLAGS="${CFLAGS} -Werror"
20045 test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
20047 if test X"$with_noexec" != X"no" -o X"$with_selinux" != X"no"; then
20048 oexec_prefix="$exec_prefix"
20049 if test "$exec_prefix" = '$(prefix)'; then
20050 if test "$prefix" = "NONE"; then
20051 exec_prefix="$ac_default_prefix"
20053 exec_prefix="$prefix"
20056 if test X"$with_noexec" != X"no"; then
20057 PROGS="${PROGS} libsudo_noexec.la"
20058 INSTALL_NOEXEC="install-noexec"
20060 eval noexec_file="$with_noexec"
20061 cat >>confdefs.h <<EOF
20062 #define _PATH_SUDO_NOEXEC "$noexec_file"
20066 if test X"$with_selinux" != X"no"; then
20067 eval sesh_file="$libexecdir/sesh"
20068 cat >>confdefs.h <<EOF
20069 #define _PATH_SUDO_SESH "$sesh_file"
20073 eval PLUGINDIR="$with_plugindir"
20074 cat >>confdefs.h <<EOF
20075 #define _PATH_SUDO_PLUGIN_DIR "$PLUGINDIR/"
20078 cat >>confdefs.h <<EOF
20079 #define SUDOERS_PLUGIN "sudoers${SOEXT}"
20082 exec_prefix="$oexec_prefix"
20085 if test X"$prefix" = X"NONE"; then
20086 test "$mandir" = '${datarootdir}/man' && mandir='$(prefix)/man'
20088 test "$mandir" = '${datarootdir}/man' && mandir='$(datarootdir)/man'
20090 test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
20091 test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
20092 test "$libexecdir" = '${exec_prefix}/libexec' && libexecdir='$(exec_prefix)/libexec'
20093 test "$includedir" = '${prefix}/include' && includedir='$(prefix)/include'
20094 test "$datarootdir" = '${prefix}/share' && datarootdir='$(prefix)/share'
20095 test "$docdir" = '${datarootdir}/doc/${PACKAGE_TARNAME}' && docdir='$(datarootdir)/doc/$(PACKAGE_TARNAME)'
20096 test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
20098 ac_config_files="$ac_config_files Makefile common/Makefile compat/Makefile doc/Makefile include/Makefile src/sudo_usage.h src/Makefile plugins/sample/Makefile plugins/sample_group/Makefile plugins/sudoers/Makefile plugins/sudoers/sudoers"
20100 cat >confcache <<\_ACEOF
20101 # This file is a shell script that caches the results of configure
20102 # tests run on this system so they can be shared between configure
20103 # scripts and configure runs, see configure's option --config-cache.
20104 # It is not useful on other systems. If it contains results you don't
20105 # want to keep, you may remove or edit it.
20107 # config.status only pays attention to the cache file if you give it
20108 # the --recheck option to rerun configure.
20110 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20111 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20112 # following values.
20116 # The following way of writing the cache mishandles newlines in values,
20117 # but we know of no workaround that is simple, portable, and efficient.
20118 # So, we kill variables containing newlines.
20119 # Ultrix sh set writes to stderr and can't be redirected directly,
20120 # and sets the high bit in the cache file unless we assign to the vars.
20122 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20123 eval ac_val=\$$ac_var
20127 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20128 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20131 _ | IFS | as_nl) ;; #(
20132 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20133 *) { eval $ac_var=; unset $ac_var;} ;;
20139 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20140 *${as_nl}ac_space=\ *)
20141 # `set' does not quote correctly, so add quotes: double-quote
20142 # substitution turns \\\\ into \\, and sed turns \\ into \.
20145 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20148 # `set' quotes correctly as required by POSIX, so do not add quotes.
20149 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20158 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20160 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20162 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20163 if test -w "$cache_file"; then
20164 if test "x$cache_file" != "x/dev/null"; then
20165 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20166 $as_echo "$as_me: updating cache $cache_file" >&6;}
20167 if test ! -f "$cache_file" || test -h "$cache_file"; then
20168 cat confcache >"$cache_file"
20170 case $cache_file in #(
20172 mv -f confcache "$cache_file"$$ &&
20173 mv -f "$cache_file"$$ "$cache_file" ;; #(
20175 mv -f confcache "$cache_file" ;;
20180 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20181 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20186 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20187 # Let make expand exec_prefix.
20188 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20190 DEFS=-DHAVE_CONFIG_H
20195 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20196 # 1. Remove the extension, and $U if already installed.
20197 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20198 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20199 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20200 # will be set to the directory where LIBOBJS objects are built.
20201 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20202 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20204 LIBOBJS=$ac_libobjs
20206 LTLIBOBJS=$ac_ltlibobjs
20210 : "${CONFIG_STATUS=./config.status}"
20212 ac_clean_files_save=$ac_clean_files
20213 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20214 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20215 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20217 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20219 # Generated by $as_me.
20220 # Run this file to recreate the current configuration.
20221 # Compiler output produced by configure, useful for debugging
20222 # configure, is in config.log if it exists.
20225 ac_cs_recheck=false
20228 SHELL=\${CONFIG_SHELL-$SHELL}
20231 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20232 ## -------------------- ##
20233 ## M4sh Initialization. ##
20234 ## -------------------- ##
20236 # Be more Bourne compatible
20237 DUALCASE=1; export DUALCASE # for MKS sh
20238 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20241 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20242 # is contrary to our usage. Disable this feature.
20243 alias -g '${1+"$@"}'='"$@"'
20244 setopt NO_GLOB_SUBST
20246 case `(set -o) 2>/dev/null` in #(
20258 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20259 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20260 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20261 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20262 # Prefer a ksh shell builtin over an external printf program on Solaris,
20263 # but without wasting forks for bash or zsh.
20264 if test -z "$BASH_VERSION$ZSH_VERSION" \
20265 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20266 as_echo='print -r --'
20267 as_echo_n='print -rn --'
20268 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20269 as_echo='printf %s\n'
20270 as_echo_n='printf %s'
20272 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20273 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20274 as_echo_n='/usr/ucb/echo -n'
20276 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20277 as_echo_n_body='eval
20281 expr "X$arg" : "X\\(.*\\)$as_nl";
20282 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20284 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20286 export as_echo_n_body
20287 as_echo_n='sh -c $as_echo_n_body as_echo'
20289 export as_echo_body
20290 as_echo='sh -c $as_echo_body as_echo'
20293 # The user is always right.
20294 if test "${PATH_SEPARATOR+set}" != set; then
20296 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20297 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20304 # We need space, tab and new line, in precisely that order. Quoting is
20305 # there to prevent editors from complaining about space-tab.
20306 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20307 # splitting by setting IFS to empty value.)
20310 # Find who we are. Look in the path if we contain no directory separator.
20313 *[\\/]* ) as_myself=$0 ;;
20314 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20315 for as_dir in $PATH
20318 test -z "$as_dir" && as_dir=.
20319 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20325 # We did not find ourselves, most probably we were run as `sh COMMAND'
20326 # in which case we are not to be found in the path.
20327 if test "x$as_myself" = x; then
20330 if test ! -f "$as_myself"; then
20331 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20335 # Unset variables that we do not need and which cause bugs (e.g. in
20336 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20337 # suppresses any "Segmentation fault" message there. '((' could
20338 # trigger a bug in pdksh 5.2.14.
20339 for as_var in BASH_ENV ENV MAIL MAILPATH
20340 do eval test x\${$as_var+set} = xset \
20341 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20354 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20357 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20358 # ----------------------------------------
20359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20361 # script with STATUS, using 1 if that was 0.
20364 as_status=$1; test $as_status -eq 0 && as_status=1
20366 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20369 $as_echo "$as_me: error: $2" >&2
20370 as_fn_exit $as_status
20374 # as_fn_set_status STATUS
20375 # -----------------------
20376 # Set $? to STATUS, without forking.
20377 as_fn_set_status ()
20380 } # as_fn_set_status
20382 # as_fn_exit STATUS
20383 # -----------------
20384 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20388 as_fn_set_status $1
20394 # Portably unset VAR.
20397 { eval $1=; unset $1;}
20399 as_unset=as_fn_unset
20400 # as_fn_append VAR VALUE
20401 # ----------------------
20402 # Append the text in VALUE to the end of the definition contained in VAR. Take
20403 # advantage of any shell optimizations that allow amortized linear growth over
20404 # repeated appends, instead of the typical quadratic growth present in naive
20406 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20407 eval 'as_fn_append ()
20418 # as_fn_arith ARG...
20419 # ------------------
20420 # Perform arithmetic evaluation on the ARGs, and store the result in the
20421 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20422 # must be portable across $(()) and expr.
20423 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20424 eval 'as_fn_arith ()
20431 as_val=`expr "$@" || test $? -eq 1`
20436 if expr a : '\(a\)' >/dev/null 2>&1 &&
20437 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20443 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20444 as_basename=basename
20449 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20455 as_me=`$as_basename -- "$0" ||
20456 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20457 X"$0" : 'X\(//\)$' \| \
20458 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20460 sed '/^.*\/\([^/][^/]*\)\/*$/{
20474 # Avoid depending upon Character Ranges.
20475 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20476 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20477 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20478 as_cr_digits='0123456789'
20479 as_cr_alnum=$as_cr_Letters$as_cr_digits
20481 ECHO_C= ECHO_N= ECHO_T=
20482 case `echo -n x` in #(((((
20484 case `echo 'xy\c'` in
20485 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20487 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20494 rm -f conf$$ conf$$.exe conf$$.file
20495 if test -d conf$$.dir; then
20496 rm -f conf$$.dir/conf$$.file
20499 mkdir conf$$.dir 2>/dev/null
20501 if (echo >conf$$.file) 2>/dev/null; then
20502 if ln -s conf$$.file conf$$ 2>/dev/null; then
20504 # ... but there are two gotchas:
20505 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20506 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20507 # In both cases, we have to default to `cp -p'.
20508 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20510 elif ln conf$$.file conf$$ 2>/dev/null; then
20518 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20519 rmdir conf$$.dir 2>/dev/null
20524 # Create "$as_dir" as a directory, including parents if necessary.
20529 -*) as_dir=./$as_dir;;
20531 test -d "$as_dir" || eval $as_mkdir_p || {
20535 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20536 *) as_qdir=$as_dir;;
20538 as_dirs="'$as_qdir' $as_dirs"
20539 as_dir=`$as_dirname -- "$as_dir" ||
20540 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20541 X"$as_dir" : 'X\(//\)[^/]' \| \
20542 X"$as_dir" : 'X\(//\)$' \| \
20543 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20544 $as_echo X"$as_dir" |
20545 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20549 /^X\(\/\/\)[^/].*/{
20562 test -d "$as_dir" && break
20564 test -z "$as_dirs" || eval "mkdir $as_dirs"
20565 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20569 if mkdir -p . 2>/dev/null; then
20570 as_mkdir_p='mkdir -p "$as_dir"'
20572 test -d ./-p && rmdir ./-p
20576 if test -x / >/dev/null 2>&1; then
20577 as_test_x='test -x'
20579 if ls -dL / >/dev/null 2>&1; then
20586 if test -d "$1"; then
20592 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20593 ???[sx]*):;;*)false;;esac;fi
20597 as_executable_p=$as_test_x
20599 # Sed expression to map a string onto a valid CPP name.
20600 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20602 # Sed expression to map a string onto a valid variable name.
20603 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20607 ## ----------------------------------- ##
20608 ## Main body of $CONFIG_STATUS script. ##
20609 ## ----------------------------------- ##
20611 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20613 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20614 # Save the log message, to keep $0 and so on meaningful, and to
20615 # report actual input values of CONFIG_FILES etc. instead of their
20616 # values after options handling.
20618 This file was extended by sudo $as_me 1.8.3p2, which was
20619 generated by GNU Autoconf 2.68. Invocation command line was
20621 CONFIG_FILES = $CONFIG_FILES
20622 CONFIG_HEADERS = $CONFIG_HEADERS
20623 CONFIG_LINKS = $CONFIG_LINKS
20624 CONFIG_COMMANDS = $CONFIG_COMMANDS
20627 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20632 case $ac_config_files in *"
20633 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20636 case $ac_config_headers in *"
20637 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20641 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20642 # Files that config.status was made for.
20643 config_files="$ac_config_files"
20644 config_headers="$ac_config_headers"
20645 config_commands="$ac_config_commands"
20649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20651 \`$as_me' instantiates files and other configuration actions
20652 from templates according to the current configuration. Unless the files
20653 and actions are specified as TAGs, all are instantiated by default.
20655 Usage: $0 [OPTION]... [TAG]...
20657 -h, --help print this help, then exit
20658 -V, --version print version number and configuration settings, then exit
20659 --config print configuration, then exit
20660 -q, --quiet, --silent
20661 do not print progress messages
20662 -d, --debug don't remove temporary files
20663 --recheck update $as_me by reconfiguring in the same conditions
20664 --file=FILE[:TEMPLATE]
20665 instantiate the configuration file FILE
20666 --header=FILE[:TEMPLATE]
20667 instantiate the configuration header FILE
20669 Configuration files:
20672 Configuration headers:
20675 Configuration commands:
20678 Report bugs to <http://www.sudo.ws/bugs/>."
20681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20682 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20684 sudo config.status 1.8.3p2
20685 configured by $0, generated by GNU Autoconf 2.68,
20686 with options \\"\$ac_cs_config\\"
20688 Copyright (C) 2010 Free Software Foundation, Inc.
20689 This config.status script is free software; the Free Software Foundation
20690 gives unlimited permission to copy, distribute and modify it."
20695 test -n "\$AWK" || AWK=awk
20698 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20699 # The default lists apply if the user does not specify any file.
20705 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20706 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20710 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20722 # Handling of the options.
20723 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20725 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20726 $as_echo "$ac_cs_version"; exit ;;
20727 --config | --confi | --conf | --con | --co | --c )
20728 $as_echo "$ac_cs_config"; exit ;;
20729 --debug | --debu | --deb | --de | --d | -d )
20731 --file | --fil | --fi | --f )
20734 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20735 '') as_fn_error $? "missing file argument" ;;
20737 as_fn_append CONFIG_FILES " '$ac_optarg'"
20738 ac_need_defaults=false;;
20739 --header | --heade | --head | --hea )
20742 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20744 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20745 ac_need_defaults=false;;
20747 # Conflict between --help and --header
20748 as_fn_error $? "ambiguous option: \`$1'
20749 Try \`$0 --help' for more information.";;
20750 --help | --hel | -h )
20751 $as_echo "$ac_cs_usage"; exit ;;
20752 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20753 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20756 # This is an error.
20757 -*) as_fn_error $? "unrecognized option: \`$1'
20758 Try \`$0 --help' for more information." ;;
20760 *) as_fn_append ac_config_targets " $1"
20761 ac_need_defaults=false ;;
20767 ac_configure_extra_args=
20769 if $ac_cs_silent; then
20771 ac_configure_extra_args="$ac_configure_extra_args --silent"
20775 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20776 if \$ac_cs_recheck; then
20777 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20779 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20780 CONFIG_SHELL='$SHELL'
20781 export CONFIG_SHELL
20786 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20790 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20791 ## Running $as_me. ##
20797 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20803 # The HP-UX ksh and POSIX shell print the target directory to stdout
20804 # if CDPATH is set.
20805 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20807 sed_quote_subst='$sed_quote_subst'
20808 double_quote_subst='$double_quote_subst'
20809 delay_variable_subst='$delay_variable_subst'
20810 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20811 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20812 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20813 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20814 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20815 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20816 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20817 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20818 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20819 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20820 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20821 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20822 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20823 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20824 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20825 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20826 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20827 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20828 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20829 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20830 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20831 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20832 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20833 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20834 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20835 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20836 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20837 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20838 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20839 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20840 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20841 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20842 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20843 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20844 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20845 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20846 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20847 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20848 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20849 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20850 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20851 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20852 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20853 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20854 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20855 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20856 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20857 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20858 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20859 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20860 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20861 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20862 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20863 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20864 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20865 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"`'
20866 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20867 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20868 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20869 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20870 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20871 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20872 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20873 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20874 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20875 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20876 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20877 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20878 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20879 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20880 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20881 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20882 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20883 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20884 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20885 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20886 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20887 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20888 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20889 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20890 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20891 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20892 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20893 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20894 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20895 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20896 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20897 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20898 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20899 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20900 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
20901 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20902 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20903 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20904 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20905 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20906 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20907 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20908 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20909 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20910 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20911 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20912 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20913 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20914 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20915 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20916 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20917 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20918 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20919 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20920 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20921 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20922 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20923 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20924 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20925 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20926 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20927 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20928 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20929 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20930 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20931 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20932 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20933 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20934 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20935 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20936 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20937 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20938 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20939 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20942 LTCFLAGS='$LTCFLAGS'
20943 compiler='$compiler_DEFAULT'
20945 # A function that is used when there is no print builtin or printf.
20946 func_fallback_echo ()
20948 eval 'cat <<_LTECHO_EOF
20953 # Quote evaled strings.
20967 deplibs_check_method \
20972 sharedlib_from_linklib_cmd \
20975 archiver_list_spec \
20981 lt_cv_sys_global_symbol_pipe \
20982 lt_cv_sys_global_symbol_to_cdecl \
20983 lt_cv_sys_global_symbol_to_c_name_address \
20984 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20985 nm_file_list_spec \
20986 lt_prog_compiler_no_builtin_flag \
20987 lt_prog_compiler_pic \
20988 lt_prog_compiler_wl \
20989 lt_prog_compiler_static \
20990 lt_cv_prog_compiler_c_o \
20999 export_dynamic_flag_spec \
21000 whole_archive_flag_spec \
21001 compiler_needs_object \
21003 allow_undefined_flag \
21004 no_undefined_flag \
21005 hardcode_libdir_flag_spec \
21006 hardcode_libdir_flag_spec_ld \
21007 hardcode_libdir_separator \
21011 variables_saved_for_relink \
21013 library_names_spec \
21015 install_override_mode \
21019 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21020 *[\\\\\\\`\\"\\\$]*)
21021 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21024 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21029 # Double-quote double-evaled strings.
21030 for var in reload_cmds \
21031 old_postinstall_cmds \
21032 old_postuninstall_cmds \
21034 extract_expsyms_cmds \
21035 old_archive_from_new_cmds \
21036 old_archive_from_expsyms_cmds \
21038 archive_expsym_cmds \
21040 module_expsym_cmds \
21041 export_symbols_cmds \
21045 postuninstall_cmds \
21047 sys_lib_search_path_spec \
21048 sys_lib_dlsearch_path_spec; do
21049 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21050 *[\\\\\\\`\\"\\\$]*)
21051 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21054 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21059 ac_aux_dir='$ac_aux_dir'
21060 xsi_shell='$xsi_shell'
21061 lt_shell_append='$lt_shell_append'
21063 # See if we are running on zsh, and set the options which allow our
21064 # commands through without removal of \ escapes INIT.
21065 if test -n "\${ZSH_VERSION+set}" ; then
21066 setopt NO_GLOB_SUBST
21072 TIMESTAMP='$TIMESTAMP'
21081 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21083 # Handling of arguments.
21084 for ac_config_target in $ac_config_targets
21086 case $ac_config_target in
21087 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21088 "pathnames.h") CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
21089 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21090 "zlib/zconf.h") CONFIG_HEADERS="$CONFIG_HEADERS zlib/zconf.h" ;;
21091 "zlib/Makefile") CONFIG_FILES="$CONFIG_FILES zlib/Makefile" ;;
21092 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21093 "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
21094 "compat/Makefile") CONFIG_FILES="$CONFIG_FILES compat/Makefile" ;;
21095 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21096 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21097 "src/sudo_usage.h") CONFIG_FILES="$CONFIG_FILES src/sudo_usage.h" ;;
21098 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21099 "plugins/sample/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sample/Makefile" ;;
21100 "plugins/sample_group/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sample_group/Makefile" ;;
21101 "plugins/sudoers/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sudoers/Makefile" ;;
21102 "plugins/sudoers/sudoers") CONFIG_FILES="$CONFIG_FILES plugins/sudoers/sudoers" ;;
21104 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21109 # If the user did not use the arguments to specify the items to instantiate,
21110 # then the envvar interface is used. Set only those that are not.
21111 # We use the long form for the default assignment because of an extremely
21112 # bizarre bug on SunOS 4.1.3.
21113 if $ac_need_defaults; then
21114 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21115 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21116 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21119 # Have a temporary directory for convenience. Make it in the build tree
21120 # simply because there is no reason against having it here, and in addition,
21121 # creating and moving files from /tmp can sometimes cause problems.
21122 # Hook for its removal unless debugging.
21123 # Note that there is a small window in which the directory will not be cleaned:
21124 # after its creation but before its name has been assigned to `$tmp'.
21128 trap 'exit_status=$?
21129 : "${ac_tmp:=$tmp}"
21130 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21132 trap 'as_fn_exit 1' 1 2 13 15
21134 # Create a (secure) tmp directory for tmp files.
21137 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21141 tmp=./conf$$-$RANDOM
21142 (umask 077 && mkdir "$tmp")
21143 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21146 # Set up the scripts for CONFIG_FILES section.
21147 # No need to generate them if there are no CONFIG_FILES.
21148 # This happens for instance with `./config.status config.h'.
21149 if test -n "$CONFIG_FILES"; then
21152 ac_cr=`echo X | tr X '\015'`
21153 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21154 # But we know of no other shell where ac_cr would be empty at this
21155 # point, so we can use a bashism as a fallback.
21156 if test "x$ac_cr" = x; then
21157 eval ac_cr=\$\'\\r\'
21159 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21160 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21163 ac_cs_awk_cr=$ac_cr
21166 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21171 echo "cat >conf$$subs.awk <<_ACEOF" &&
21172 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21174 } >conf$$subs.sh ||
21175 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21176 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21178 for ac_last_try in false false false false false :; do
21179 . ./conf$$subs.sh ||
21180 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21182 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21183 if test $ac_delim_n = $ac_delim_num; then
21185 elif $ac_last_try; then
21186 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21188 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21191 rm -f conf$$subs.sh
21193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21194 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21198 s/^/S["/; s/!.*/"]=/
21208 s/\(.\{148\}\)..*/\1/
21210 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21215 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21222 s/\(.\{148\}\)..*/\1/
21224 s/["\\]/\\&/g; s/^/"/; s/$/"/
21228 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21233 ' <conf$$subs.awk | sed '
21238 ' >>$CONFIG_STATUS || ac_write_fail=1
21239 rm -f conf$$subs.awk
21240 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21242 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21243 for (key in S) S_is_set[key] = 1
21249 nfields = split(line, field, "@")
21251 len = length(field[1])
21252 for (i = 2; i < nfields; i++) {
21254 keylen = length(key)
21255 if (S_is_set[key]) {
21257 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21258 len += length(value) + length(field[++i])
21269 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21270 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21271 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21274 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21275 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21278 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21279 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21280 # trailing colons and then remove the whole line if VPATH becomes empty
21281 # (actually we leave an empty line to preserve line numbers).
21282 if test "x$srcdir" = x.; then
21283 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21301 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21302 fi # test -n "$CONFIG_FILES"
21304 # Set up the scripts for CONFIG_HEADERS section.
21305 # No need to generate them if there are no CONFIG_HEADERS.
21306 # This happens for instance with `./config.status Makefile'.
21307 if test -n "$CONFIG_HEADERS"; then
21308 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21312 # Transform confdefs.h into an awk script `defines.awk', embedded as
21313 # here-document in config.status, that substitutes the proper values into
21314 # config.h.in to produce config.h.
21316 # Create a delimiter string that does not exist in confdefs.h, to ease
21317 # handling of long lines.
21319 for ac_last_try in false false :; do
21320 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21321 if test -z "$ac_tt"; then
21323 elif $ac_last_try; then
21324 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21326 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21330 # For the awk script, D is an array of macro values keyed by name,
21331 # likewise P contains macro parameters if any. Preserve backslash
21332 # newline sequences.
21334 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21336 s/.\{148\}/&'"$ac_delim"'/g
21339 s/^[ ]*#[ ]*define[ ][ ]*/ /
21346 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21348 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21352 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21353 D["\1"]=" \3\\\\\\n"\\/p
21355 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21360 s/.\{148\}/&'"$ac_delim"'/g
21365 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21368 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21370 ' <confdefs.h | sed '
21371 s/'"$ac_delim"'/"\\\
21372 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21374 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21375 for (key in D) D_is_set[key] = 1
21378 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21380 split(line, arg, " ")
21381 if (arg[1] == "#") {
21385 defundef = substr(arg[1], 2)
21388 split(mac1, mac2, "(") #)
21390 prefix = substr(line, 1, index(line, defundef) - 1)
21391 if (D_is_set[macro]) {
21392 # Preserve the white space surrounding the "#".
21393 print prefix "define", macro P[macro] D[macro]
21396 # Replace #undef with comments. This is necessary, for example,
21397 # in the case of _POSIX_SOURCE, which is predefined and required
21398 # on some systems where configure will not decide to define it.
21399 if (defundef == "undef") {
21400 print "/*", prefix defundef, macro, "*/"
21408 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21409 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21410 fi # test -n "$CONFIG_HEADERS"
21413 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21418 :[FHLC]) ac_mode=$ac_tag; continue;;
21420 case $ac_mode$ac_tag in
21422 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21423 :[FH]-) ac_tag=-:-;;
21424 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21441 -) ac_f="$ac_tmp/stdin";;
21442 *) # Look for the file first in the build tree, then in the source tree
21443 # (if the path is not absolute). The absolute path cannot be DOS-style,
21444 # because $ac_f cannot contain `:'.
21448 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21450 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21452 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21453 as_fn_append ac_file_inputs " '$ac_f'"
21456 # Let's still pretend it is `configure' which instantiates (i.e., don't
21457 # use $as_me), people would be surprised to read:
21458 # /* config.h. Generated by config.status. */
21459 configure_input='Generated from '`
21460 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21462 if test x"$ac_file" != x-; then
21463 configure_input="$ac_file. $configure_input"
21464 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21465 $as_echo "$as_me: creating $ac_file" >&6;}
21467 # Neutralize special characters interpreted by sed in replacement strings.
21468 case $configure_input in #(
21469 *\&* | *\|* | *\\* )
21470 ac_sed_conf_input=`$as_echo "$configure_input" |
21471 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21472 *) ac_sed_conf_input=$configure_input;;
21476 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21477 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21482 ac_dir=`$as_dirname -- "$ac_file" ||
21483 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21484 X"$ac_file" : 'X\(//\)[^/]' \| \
21485 X"$ac_file" : 'X\(//\)$' \| \
21486 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21487 $as_echo X"$ac_file" |
21488 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21492 /^X\(\/\/\)[^/].*/{
21505 as_dir="$ac_dir"; as_fn_mkdir_p
21509 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21511 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21512 # A ".." for each directory in $ac_dir_suffix.
21513 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21514 case $ac_top_builddir_sub in
21515 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21516 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21519 ac_abs_top_builddir=$ac_pwd
21520 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21521 # for backward compatibility:
21522 ac_top_builddir=$ac_top_build_prefix
21525 .) # We are building in place.
21527 ac_top_srcdir=$ac_top_builddir_sub
21528 ac_abs_top_srcdir=$ac_pwd ;;
21529 [\\/]* | ?:[\\/]* ) # Absolute name.
21530 ac_srcdir=$srcdir$ac_dir_suffix;
21531 ac_top_srcdir=$srcdir
21532 ac_abs_top_srcdir=$srcdir ;;
21533 *) # Relative name.
21534 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21535 ac_top_srcdir=$ac_top_build_prefix$srcdir
21536 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21538 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21549 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21550 # If the template does not know about datarootdir, expand it.
21551 # FIXME: This hack should be removed a few years after 2.60.
21552 ac_datarootdir_hack=; ac_datarootdir_seen=
21563 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21564 *datarootdir*) ac_datarootdir_seen=yes;;
21565 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21567 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21569 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21570 ac_datarootdir_hack='
21571 s&@datadir@&$datadir&g
21572 s&@docdir@&$docdir&g
21573 s&@infodir@&$infodir&g
21574 s&@localedir@&$localedir&g
21575 s&@mandir@&$mandir&g
21576 s&\\\${datarootdir}&$datarootdir&g' ;;
21580 # Neutralize VPATH when `$srcdir' = `.'.
21581 # Shell code in configure.ac might set extrasub.
21582 # FIXME: do we really want to maintain this feature?
21583 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21584 ac_sed_extra="$ac_vpsub
21587 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21589 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21590 s|@configure_input@|$ac_sed_conf_input|;t t
21591 s&@top_builddir@&$ac_top_builddir_sub&;t t
21592 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21593 s&@srcdir@&$ac_srcdir&;t t
21594 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21595 s&@top_srcdir@&$ac_top_srcdir&;t t
21596 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21597 s&@builddir@&$ac_builddir&;t t
21598 s&@abs_builddir@&$ac_abs_builddir&;t t
21599 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21600 $ac_datarootdir_hack
21602 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21603 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21605 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21606 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21607 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21608 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21610 which seems to be undefined. Please make sure it is defined" >&5
21611 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21612 which seems to be undefined. Please make sure it is defined" >&2;}
21614 rm -f "$ac_tmp/stdin"
21616 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21617 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21619 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21625 if test x"$ac_file" != x-; then
21627 $as_echo "/* $configure_input */" \
21628 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21629 } >"$ac_tmp/config.h" \
21630 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21631 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21632 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21633 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21636 mv "$ac_tmp/config.h" "$ac_file" \
21637 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21640 $as_echo "/* $configure_input */" \
21641 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21642 || as_fn_error $? "could not create -" "$LINENO" 5
21646 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21647 $as_echo "$as_me: executing $ac_file commands" >&6;}
21652 case $ac_file$ac_mode in
21655 # See if we are running on zsh, and set the options which allow our
21656 # commands through without removal of \ escapes.
21657 if test -n "${ZSH_VERSION+set}" ; then
21658 setopt NO_GLOB_SUBST
21661 cfgfile="${ofile}T"
21662 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21665 cat <<_LT_EOF >> "$cfgfile"
21668 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21669 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21670 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21671 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21673 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21674 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
21676 # Written by Gordon Matzigkeit, 1996
21678 # This file is part of GNU Libtool.
21680 # GNU Libtool is free software; you can redistribute it and/or
21681 # modify it under the terms of the GNU General Public License as
21682 # published by the Free Software Foundation; either version 2 of
21683 # the License, or (at your option) any later version.
21685 # As a special exception to the GNU General Public License,
21686 # if you distribute this file as part of a program or library that
21687 # is built using GNU Libtool, you may include this file under the
21688 # same distribution terms that you use for the rest of that program.
21690 # GNU Libtool is distributed in the hope that it will be useful,
21691 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21692 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21693 # GNU General Public License for more details.
21695 # You should have received a copy of the GNU General Public License
21696 # along with GNU Libtool; see the file COPYING. If not, a copy
21697 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21698 # obtained by writing to the Free Software Foundation, Inc.,
21699 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21702 # The names of the tagged configurations supported by this script.
21705 # ### BEGIN LIBTOOL CONFIG
21707 # Which release of libtool.m4 was used?
21708 macro_version=$macro_version
21709 macro_revision=$macro_revision
21711 # Whether or not to build shared libraries.
21712 build_libtool_libs=$enable_shared
21714 # Whether or not to build static libraries.
21715 build_old_libs=$enable_static
21717 # What type of objects to build.
21720 # Whether or not to optimize for fast installation.
21721 fast_install=$enable_fast_install
21723 # Shell to use when invoking shell scripts.
21726 # An echo program that protects backslashes.
21730 host_alias=$host_alias
21734 # The build system.
21735 build_alias=$build_alias
21739 # A sed program that does not truncate output.
21742 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21743 Xsed="\$SED -e 1s/^X//"
21745 # A grep program that handles long lines.
21751 # A literal string matcher.
21754 # A BSD- or MS-compatible name lister.
21757 # Whether we need soft or hard links.
21760 # What is the maximum length of a command?
21761 max_cmd_len=$max_cmd_len
21763 # Object file suffix (normally "o").
21766 # Executable file suffix (normally "").
21769 # whether the shell understands "unset".
21772 # turn spaces into newlines.
21775 # turn newlines into spaces.
21778 # convert \$build file names to \$host format.
21779 to_host_file_cmd=$lt_cv_to_host_file_cmd
21781 # convert \$build files to toolchain format.
21782 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21784 # An object symbol dumper.
21785 OBJDUMP=$lt_OBJDUMP
21787 # Method to check whether dependent libraries are shared objects.
21788 deplibs_check_method=$lt_deplibs_check_method
21790 # Command to use when deplibs_check_method = "file_magic".
21791 file_magic_cmd=$lt_file_magic_cmd
21793 # How to find potential files when deplibs_check_method = "file_magic".
21794 file_magic_glob=$lt_file_magic_glob
21796 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21797 want_nocaseglob=$lt_want_nocaseglob
21799 # DLL creation program.
21800 DLLTOOL=$lt_DLLTOOL
21802 # Command to associate shared and link libraries.
21803 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21808 # Flags to create an archive.
21809 AR_FLAGS=$lt_AR_FLAGS
21811 # How to feed a file listing to the archiver.
21812 archiver_list_spec=$lt_archiver_list_spec
21814 # A symbol stripping program.
21817 # Commands used to install an old-style archive.
21819 old_postinstall_cmds=$lt_old_postinstall_cmds
21820 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21822 # Whether to use a lock for old archive extraction.
21823 lock_old_archive_extraction=$lock_old_archive_extraction
21828 # LTCC compiler flags.
21829 LTCFLAGS=$lt_CFLAGS
21831 # Take the output of nm and produce a listing of raw symbols and C names.
21832 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21834 # Transform the output of nm in a proper C declaration.
21835 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21837 # Transform the output of nm in a C name address pair.
21838 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21840 # Transform the output of nm in a C name address pair when lib prefix is needed.
21841 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21843 # Specify filename containing input files for \$NM.
21844 nm_file_list_spec=$lt_nm_file_list_spec
21846 # The root where to search for dependent libraries,and in which our libraries should be installed.
21847 lt_sysroot=$lt_sysroot
21849 # The name of the directory that contains temporary libtool files.
21852 # Used to examine libraries when file_magic_cmd begins with "file".
21853 MAGIC_CMD=$MAGIC_CMD
21855 # Must we lock files when doing compilation?
21856 need_locks=$lt_need_locks
21859 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21861 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21862 DSYMUTIL=$lt_DSYMUTIL
21864 # Tool to change global to local symbols on Mac OS X.
21867 # Tool to manipulate fat objects and archives on Mac OS X.
21870 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21873 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21874 OTOOL64=$lt_OTOOL64
21876 # Old archive suffix (normally "a").
21879 # Shared library suffix (normally ".so").
21880 shrext_cmds=$lt_shrext_cmds
21882 # The commands to extract the exported symbol list from a shared archive.
21883 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21885 # Variables whose values should be saved in libtool wrapper scripts and
21886 # restored at link time.
21887 variables_saved_for_relink=$lt_variables_saved_for_relink
21889 # Do we need the "lib" prefix for modules?
21890 need_lib_prefix=$need_lib_prefix
21892 # Do we need a version for libraries?
21893 need_version=$need_version
21895 # Library versioning type.
21896 version_type=$version_type
21898 # Shared library runtime path variable.
21899 runpath_var=$runpath_var
21901 # Shared library path variable.
21902 shlibpath_var=$shlibpath_var
21904 # Is shlibpath searched before the hard-coded library search path?
21905 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21907 # Format of library name prefix.
21908 libname_spec=$lt_libname_spec
21910 # List of archive names. First name is the real one, the rest are links.
21911 # The last name is the one that the linker finds with -lNAME
21912 library_names_spec=$lt_library_names_spec
21914 # The coded name of the library, if different from the real name.
21915 soname_spec=$lt_soname_spec
21917 # Permission mode override for installation of shared libraries.
21918 install_override_mode=$lt_install_override_mode
21920 # Command to use after installation of a shared archive.
21921 postinstall_cmds=$lt_postinstall_cmds
21923 # Command to use after uninstallation of a shared archive.
21924 postuninstall_cmds=$lt_postuninstall_cmds
21926 # Commands used to finish a libtool library installation in a directory.
21927 finish_cmds=$lt_finish_cmds
21929 # As "finish_cmds", except a single script fragment to be evaled but
21931 finish_eval=$lt_finish_eval
21933 # Whether we should hardcode library paths into libraries.
21934 hardcode_into_libs=$hardcode_into_libs
21936 # Compile-time system search path for libraries.
21937 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21939 # Run-time system search path for libraries.
21940 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21942 # Whether dlopen is supported.
21943 dlopen_support=$enable_dlopen
21945 # Whether dlopen of programs is supported.
21946 dlopen_self=$enable_dlopen_self
21948 # Whether dlopen of statically linked programs is supported.
21949 dlopen_self_static=$enable_dlopen_self_static
21951 # Commands to strip libraries.
21952 old_striplib=$lt_old_striplib
21953 striplib=$lt_striplib
21956 # The linker used to build libraries.
21959 # How to create reloadable object files.
21960 reload_flag=$lt_reload_flag
21961 reload_cmds=$lt_reload_cmds
21963 # Commands used to build an old-style archive.
21964 old_archive_cmds=$lt_old_archive_cmds
21966 # A language specific compiler.
21969 # Is the compiler the GNU compiler?
21972 # Compiler flag to turn off builtin functions.
21973 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21975 # Additional compiler flags for building library objects.
21976 pic_flag=$lt_lt_prog_compiler_pic
21978 # How to pass a linker flag through the compiler.
21979 wl=$lt_lt_prog_compiler_wl
21981 # Compiler flag to prevent dynamic linking.
21982 link_static_flag=$lt_lt_prog_compiler_static
21984 # Does compiler simultaneously support -c and -o options?
21985 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21987 # Whether or not to add -lc for building shared libraries.
21988 build_libtool_need_lc=$archive_cmds_need_lc
21990 # Whether or not to disallow shared libs when runtime libs are static.
21991 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21993 # Compiler flag to allow reflexive dlopens.
21994 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21996 # Compiler flag to generate shared objects directly from archives.
21997 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21999 # Whether the compiler copes with passing no objects directly.
22000 compiler_needs_object=$lt_compiler_needs_object
22002 # Create an old-style archive from a shared archive.
22003 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22005 # Create a temporary old-style archive to link instead of a shared archive.
22006 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22008 # Commands used to build a shared archive.
22009 archive_cmds=$lt_archive_cmds
22010 archive_expsym_cmds=$lt_archive_expsym_cmds
22012 # Commands used to build a loadable module if different from building
22013 # a shared archive.
22014 module_cmds=$lt_module_cmds
22015 module_expsym_cmds=$lt_module_expsym_cmds
22017 # Whether we are building with GNU ld or not.
22018 with_gnu_ld=$lt_with_gnu_ld
22020 # Flag that allows shared libraries with undefined symbols to be built.
22021 allow_undefined_flag=$lt_allow_undefined_flag
22023 # Flag that enforces no undefined symbols.
22024 no_undefined_flag=$lt_no_undefined_flag
22026 # Flag to hardcode \$libdir into a binary during linking.
22027 # This must work even if \$libdir does not exist
22028 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22030 # If ld is used when linking, flag to hardcode \$libdir into a binary
22031 # during linking. This must work even if \$libdir does not exist.
22032 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22034 # Whether we need a single "-rpath" flag with a separated argument.
22035 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22037 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22038 # DIR into the resulting binary.
22039 hardcode_direct=$hardcode_direct
22041 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22042 # DIR into the resulting binary and the resulting library dependency is
22043 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22044 # library is relocated.
22045 hardcode_direct_absolute=$hardcode_direct_absolute
22047 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22048 # into the resulting binary.
22049 hardcode_minus_L=$hardcode_minus_L
22051 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22052 # into the resulting binary.
22053 hardcode_shlibpath_var=$hardcode_shlibpath_var
22055 # Set to "yes" if building a shared library automatically hardcodes DIR
22056 # into the library and all subsequent libraries and executables linked
22058 hardcode_automatic=$hardcode_automatic
22060 # Set to yes if linker adds runtime paths of dependent libraries
22061 # to runtime path list.
22062 inherit_rpath=$inherit_rpath
22064 # Whether libtool must link a program against all its dependency libraries.
22065 link_all_deplibs=$link_all_deplibs
22067 # Set to "yes" if exported symbols are required.
22068 always_export_symbols=$always_export_symbols
22070 # The commands to list exported symbols.
22071 export_symbols_cmds=$lt_export_symbols_cmds
22073 # Symbols that should not be listed in the preloaded symbols.
22074 exclude_expsyms=$lt_exclude_expsyms
22076 # Symbols that must always be exported.
22077 include_expsyms=$lt_include_expsyms
22079 # Commands necessary for linking programs (against libraries) with templates.
22080 prelink_cmds=$lt_prelink_cmds
22082 # Commands necessary for finishing linking programs.
22083 postlink_cmds=$lt_postlink_cmds
22085 # Specify filename containing input files.
22086 file_list_spec=$lt_file_list_spec
22088 # How to hardcode a shared library path into an executable.
22089 hardcode_action=$hardcode_action
22091 # ### END LIBTOOL CONFIG
22097 cat <<\_LT_EOF >> "$cfgfile"
22098 # AIX sometimes has problems with the GCC collect2 program. For some
22099 # reason, if we set the COLLECT_NAMES environment variable, the problems
22100 # vanish in a puff of smoke.
22101 if test "X${COLLECT_NAMES+set}" != Xset; then
22103 export COLLECT_NAMES
22110 ltmain="$ac_aux_dir/ltmain.sh"
22113 # We use sed instead of cat because bash on DJGPP gets confused if
22114 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22115 # text mode, it properly converts lines to CR/LF. This bash problem
22116 # is reportedly fixed, but why not run on old versions too?
22117 sed '$q' "$ltmain" >> "$cfgfile" \
22118 || (rm -f "$cfgfile"; exit 1)
22120 if test x"$xsi_shell" = xyes; then
22121 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
22125 \ */*) func_dirname_result="${1%/*}${2}" ;;\
22126 \ * ) func_dirname_result="${3}" ;;\
22128 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
22129 && mv -f "$cfgfile.tmp" "$cfgfile" \
22130 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22131 test 0 -eq $? || _lt_function_replace_fail=:
22134 sed -e '/^func_basename ()$/,/^} # func_basename /c\
22137 \ func_basename_result="${1##*/}"\
22138 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
22139 && mv -f "$cfgfile.tmp" "$cfgfile" \
22140 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22141 test 0 -eq $? || _lt_function_replace_fail=:
22144 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
22145 func_dirname_and_basename ()\
22148 \ */*) func_dirname_result="${1%/*}${2}" ;;\
22149 \ * ) func_dirname_result="${3}" ;;\
22151 \ func_basename_result="${1##*/}"\
22152 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
22153 && mv -f "$cfgfile.tmp" "$cfgfile" \
22154 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22155 test 0 -eq $? || _lt_function_replace_fail=:
22158 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
22161 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
22162 \ # positional parameters, so assign one to ordinary parameter first.\
22163 \ func_stripname_result=${3}\
22164 \ func_stripname_result=${func_stripname_result#"${1}"}\
22165 \ func_stripname_result=${func_stripname_result%"${2}"}\
22166 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
22167 && mv -f "$cfgfile.tmp" "$cfgfile" \
22168 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22169 test 0 -eq $? || _lt_function_replace_fail=:
22172 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
22173 func_split_long_opt ()\
22175 \ func_split_long_opt_name=${1%%=*}\
22176 \ func_split_long_opt_arg=${1#*=}\
22177 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
22178 && mv -f "$cfgfile.tmp" "$cfgfile" \
22179 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22180 test 0 -eq $? || _lt_function_replace_fail=:
22183 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
22184 func_split_short_opt ()\
22186 \ func_split_short_opt_arg=${1#??}\
22187 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
22188 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
22189 && mv -f "$cfgfile.tmp" "$cfgfile" \
22190 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22191 test 0 -eq $? || _lt_function_replace_fail=:
22194 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
22198 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
22199 \ *) func_lo2o_result=${1} ;;\
22201 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
22202 && mv -f "$cfgfile.tmp" "$cfgfile" \
22203 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22204 test 0 -eq $? || _lt_function_replace_fail=:
22207 sed -e '/^func_xform ()$/,/^} # func_xform /c\
22210 func_xform_result=${1%.*}.lo\
22211 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
22212 && mv -f "$cfgfile.tmp" "$cfgfile" \
22213 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22214 test 0 -eq $? || _lt_function_replace_fail=:
22217 sed -e '/^func_arith ()$/,/^} # func_arith /c\
22220 func_arith_result=$(( $* ))\
22221 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
22222 && mv -f "$cfgfile.tmp" "$cfgfile" \
22223 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22224 test 0 -eq $? || _lt_function_replace_fail=:
22227 sed -e '/^func_len ()$/,/^} # func_len /c\
22230 func_len_result=${#1}\
22231 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
22232 && mv -f "$cfgfile.tmp" "$cfgfile" \
22233 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22234 test 0 -eq $? || _lt_function_replace_fail=:
22238 if test x"$lt_shell_append" = xyes; then
22239 sed -e '/^func_append ()$/,/^} # func_append /c\
22242 eval "${1}+=\\${2}"\
22243 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
22244 && mv -f "$cfgfile.tmp" "$cfgfile" \
22245 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22246 test 0 -eq $? || _lt_function_replace_fail=:
22249 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
22250 func_append_quoted ()\
22252 \ func_quote_for_eval "${2}"\
22253 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
22254 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
22255 && mv -f "$cfgfile.tmp" "$cfgfile" \
22256 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22257 test 0 -eq $? || _lt_function_replace_fail=:
22260 # Save a `func_append' function call where possible by direct use of '+='
22261 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22262 && mv -f "$cfgfile.tmp" "$cfgfile" \
22263 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22264 test 0 -eq $? || _lt_function_replace_fail=:
22266 # Save a `func_append' function call even when '+=' is not available
22267 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22268 && mv -f "$cfgfile.tmp" "$cfgfile" \
22269 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22270 test 0 -eq $? || _lt_function_replace_fail=:
22273 if test x"$_lt_function_replace_fail" = x":"; then
22274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22275 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22279 mv -f "$cfgfile" "$ofile" ||
22280 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22291 ac_clean_files=$ac_clean_files_save
22293 test $ac_write_fail = 0 ||
22294 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22297 # configure is writing to config.log, and then calls config.status.
22298 # config.status does its own redirection, appending to config.log.
22299 # Unfortunately, on DOS this fails, as config.log is still kept open
22300 # by configure, so config.status won't be able to write to it; its
22301 # output is simply discarded. So we exec the FD to /dev/null,
22302 # effectively closing config.log, so it can be properly (re)opened and
22303 # appended to by config.status. When coming back to configure, we
22304 # need to make the FD available again.
22305 if test "$no_create" != yes; then
22307 ac_config_status_args=
22308 test "$silent" = yes &&
22309 ac_config_status_args="$ac_config_status_args --quiet"
22311 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22313 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22314 # would make configure fail if this is the last instruction.
22315 $ac_cs_success || as_fn_exit 1
22317 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22319 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22323 if test "$with_pam" = "yes"; then
22326 { $as_echo "$as_me:${as_lineno-$LINENO}: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&5
22327 $as_echo "$as_me: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&6;}