2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for sudo 1.8.1p2.
5 # Report bugs to <http://www.sudo.ws/bugs/>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
147 case \`(set -o) 2>/dev/null\` in #(
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 PATH=/empty FPATH=/empty; export PATH FPATH
182 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
184 test \$(( 1 + 1 )) = 2 || exit 1"
185 if (eval "$as_required") 2>/dev/null; then :
190 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
198 test -z "$as_dir" && as_dir=.
202 for as_base in sh bash ksh sh5; do
203 # Try only shells that exist, to save several forks.
204 as_shell=$as_dir/$as_base
205 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
206 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 CONFIG_SHELL=$as_shell as_have_required=yes
208 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
216 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
217 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
218 CONFIG_SHELL=$SHELL as_have_required=yes
223 if test "x$CONFIG_SHELL" != x; then :
224 # We cannot yet assume a decent shell, so we have to provide a
225 # neutralization value for shells without unset; and this also
226 # works around shells that cannot unset nonexistent variables.
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
231 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: http://www.sudo.ws/bugs/ about your system, including
243 $0: any error possibly output before this message. Then
244 $0: install a modern shell, or manually run the script
245 $0: under such a shell if you do have one."
251 SHELL=${CONFIG_SHELL-/bin/sh}
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
262 # Portably unset VAR.
265 { eval $1=; unset $1;}
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 # Create "$as_dir" as a directory, including parents if necessary.
294 -*) as_dir=./$as_dir;;
296 test -d "$as_dir" || eval $as_mkdir_p || {
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
327 test -d "$as_dir" && break
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
330 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
365 as_val=`expr "$@" || test $? -eq 1`
370 # as_fn_error ERROR [LINENO LOG_FD]
371 # ---------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with status $?, using 1 if that was 0.
377 as_status=$?; test $as_status -eq 0 && as_status=1
379 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
382 $as_echo "$as_me: error: $1" >&2
383 as_fn_exit $as_status
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 chmod +x "$as_me.lineno" ||
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
466 case `echo 'xy\c'` in
467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
481 mkdir conf$$.dir 2>/dev/null
483 if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492 elif ln conf$$.file conf$$ 2>/dev/null; then
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
503 if mkdir -p . 2>/dev/null; then
504 as_mkdir_p='mkdir -p "$as_dir"'
506 test -d ./-p && rmdir ./-p
510 if test -x / >/dev/null 2>&1; then
513 if ls -dL / >/dev/null 2>&1; then
520 if test -d "$1"; then
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 ???[sx]*):;;*)false;;esac;fi
531 as_executable_p=$as_test_x
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539 SHELL=${CONFIG_SHELL-/bin/sh}
542 test -n "$DJDIR" || exec 7<&0 </dev/null
546 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
547 # so uname gets run too.
548 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
553 ac_default_prefix=/usr/local
555 ac_config_libobj_dir=.
562 # Identity of this package.
564 PACKAGE_TARNAME='sudo'
565 PACKAGE_VERSION='1.8.1p2'
566 PACKAGE_STRING='sudo 1.8.1p2'
567 PACKAGE_BUGREPORT='http://www.sudo.ws/bugs/'
570 ac_config_libobj_dir=compat
571 # Factoring default headers for most tests.
572 ac_includes_default="\
574 #ifdef HAVE_SYS_TYPES_H
575 # include <sys/types.h>
577 #ifdef HAVE_SYS_STAT_H
578 # include <sys/stat.h>
584 # ifdef HAVE_STDLIB_H
589 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
594 #ifdef HAVE_STRINGS_H
595 # include <strings.h>
597 #ifdef HAVE_INTTYPES_H
598 # include <inttypes.h>
607 ac_subst_vars='LTLIBOBJS
760 program_transform_name
773 enable_option_checking
832 with_password_timeout
843 with_ldap_secret_file
850 enable_authentication
858 enable_shell_sets_home
866 enable_gss_krb5_ccache_name
880 ac_precious_vars='build_alias
893 # Initialize some variables set by options.
895 ac_init_version=false
896 ac_unrecognized_opts=
898 # The variables have the same names as the options, with
899 # dashes changed to underlines.
907 program_transform_name=s,x,x,
915 # Installation directory options.
916 # These are left unexpanded so users can "make install exec_prefix=/foo"
917 # and all the variables that are supposed to be based on exec_prefix
918 # by default will actually change.
919 # Use braces instead of parens because sh, perl, etc. also accept them.
920 # (The list follows the same order as the GNU Coding Standards.)
921 bindir='${exec_prefix}/bin'
922 sbindir='${exec_prefix}/sbin'
923 libexecdir='${exec_prefix}/libexec'
924 datarootdir='${prefix}/share'
925 datadir='${datarootdir}'
926 sysconfdir='${prefix}/etc'
927 sharedstatedir='${prefix}/com'
928 localstatedir='${prefix}/var'
929 includedir='${prefix}/include'
930 oldincludedir='/usr/include'
931 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
932 infodir='${datarootdir}/info'
937 libdir='${exec_prefix}/lib'
938 localedir='${datarootdir}/locale'
939 mandir='${datarootdir}/man'
945 # If the previous option needs an argument, assign it.
946 if test -n "$ac_prev"; then
947 eval $ac_prev=\$ac_option
953 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
957 # Accept the important Cygnus configure options, so we can diagnose typos.
959 case $ac_dashdash$ac_option in
963 -bindir | --bindir | --bindi | --bind | --bin | --bi)
965 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
968 -build | --build | --buil | --bui | --bu)
969 ac_prev=build_alias ;;
970 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
971 build_alias=$ac_optarg ;;
973 -cache-file | --cache-file | --cache-fil | --cache-fi \
974 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
975 ac_prev=cache_file ;;
976 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
977 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
978 cache_file=$ac_optarg ;;
981 cache_file=config.cache ;;
983 -datadir | --datadir | --datadi | --datad)
985 -datadir=* | --datadir=* | --datadi=* | --datad=*)
986 datadir=$ac_optarg ;;
988 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
989 | --dataroo | --dataro | --datar)
990 ac_prev=datarootdir ;;
991 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
992 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
993 datarootdir=$ac_optarg ;;
995 -disable-* | --disable-*)
996 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
997 # Reject names that are not valid shell variable names.
998 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
999 as_fn_error "invalid feature name: $ac_useropt"
1000 ac_useropt_orig=$ac_useropt
1001 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1002 case $ac_user_opts in
1004 "enable_$ac_useropt"
1006 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1007 ac_unrecognized_sep=', ';;
1009 eval enable_$ac_useropt=no ;;
1011 -docdir | --docdir | --docdi | --doc | --do)
1013 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1014 docdir=$ac_optarg ;;
1016 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1018 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1019 dvidir=$ac_optarg ;;
1021 -enable-* | --enable-*)
1022 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1023 # Reject names that are not valid shell variable names.
1024 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1025 as_fn_error "invalid feature name: $ac_useropt"
1026 ac_useropt_orig=$ac_useropt
1027 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1028 case $ac_user_opts in
1030 "enable_$ac_useropt"
1032 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1033 ac_unrecognized_sep=', ';;
1035 eval enable_$ac_useropt=\$ac_optarg ;;
1037 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1038 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1039 | --exec | --exe | --ex)
1040 ac_prev=exec_prefix ;;
1041 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1042 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1043 | --exec=* | --exe=* | --ex=*)
1044 exec_prefix=$ac_optarg ;;
1046 -gas | --gas | --ga | --g)
1047 # Obsolete; use --with-gas.
1050 -help | --help | --hel | --he | -h)
1051 ac_init_help=long ;;
1052 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1053 ac_init_help=recursive ;;
1054 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1055 ac_init_help=short ;;
1057 -host | --host | --hos | --ho)
1058 ac_prev=host_alias ;;
1059 -host=* | --host=* | --hos=* | --ho=*)
1060 host_alias=$ac_optarg ;;
1062 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1064 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1066 htmldir=$ac_optarg ;;
1068 -includedir | --includedir | --includedi | --included | --include \
1069 | --includ | --inclu | --incl | --inc)
1070 ac_prev=includedir ;;
1071 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1072 | --includ=* | --inclu=* | --incl=* | --inc=*)
1073 includedir=$ac_optarg ;;
1075 -infodir | --infodir | --infodi | --infod | --info | --inf)
1077 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1078 infodir=$ac_optarg ;;
1080 -libdir | --libdir | --libdi | --libd)
1082 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1083 libdir=$ac_optarg ;;
1085 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1086 | --libexe | --libex | --libe)
1087 ac_prev=libexecdir ;;
1088 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1089 | --libexe=* | --libex=* | --libe=*)
1090 libexecdir=$ac_optarg ;;
1092 -localedir | --localedir | --localedi | --localed | --locale)
1093 ac_prev=localedir ;;
1094 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1095 localedir=$ac_optarg ;;
1097 -localstatedir | --localstatedir | --localstatedi | --localstated \
1098 | --localstate | --localstat | --localsta | --localst | --locals)
1099 ac_prev=localstatedir ;;
1100 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1101 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1102 localstatedir=$ac_optarg ;;
1104 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1106 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1107 mandir=$ac_optarg ;;
1109 -nfp | --nfp | --nf)
1110 # Obsolete; use --without-fp.
1113 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1114 | --no-cr | --no-c | -n)
1117 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1118 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1121 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1122 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1123 | --oldin | --oldi | --old | --ol | --o)
1124 ac_prev=oldincludedir ;;
1125 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1126 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1127 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1128 oldincludedir=$ac_optarg ;;
1130 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1132 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1133 prefix=$ac_optarg ;;
1135 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1136 | --program-pre | --program-pr | --program-p)
1137 ac_prev=program_prefix ;;
1138 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1139 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1140 program_prefix=$ac_optarg ;;
1142 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1143 | --program-suf | --program-su | --program-s)
1144 ac_prev=program_suffix ;;
1145 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1146 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1147 program_suffix=$ac_optarg ;;
1149 -program-transform-name | --program-transform-name \
1150 | --program-transform-nam | --program-transform-na \
1151 | --program-transform-n | --program-transform- \
1152 | --program-transform | --program-transfor \
1153 | --program-transfo | --program-transf \
1154 | --program-trans | --program-tran \
1155 | --progr-tra | --program-tr | --program-t)
1156 ac_prev=program_transform_name ;;
1157 -program-transform-name=* | --program-transform-name=* \
1158 | --program-transform-nam=* | --program-transform-na=* \
1159 | --program-transform-n=* | --program-transform-=* \
1160 | --program-transform=* | --program-transfor=* \
1161 | --program-transfo=* | --program-transf=* \
1162 | --program-trans=* | --program-tran=* \
1163 | --progr-tra=* | --program-tr=* | --program-t=*)
1164 program_transform_name=$ac_optarg ;;
1166 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1168 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1169 pdfdir=$ac_optarg ;;
1171 -psdir | --psdir | --psdi | --psd | --ps)
1173 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1176 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1177 | -silent | --silent | --silen | --sile | --sil)
1180 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1182 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1184 sbindir=$ac_optarg ;;
1186 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1187 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1188 | --sharedst | --shareds | --shared | --share | --shar \
1190 ac_prev=sharedstatedir ;;
1191 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1192 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1193 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1195 sharedstatedir=$ac_optarg ;;
1197 -site | --site | --sit)
1199 -site=* | --site=* | --sit=*)
1202 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1204 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1205 srcdir=$ac_optarg ;;
1207 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1208 | --syscon | --sysco | --sysc | --sys | --sy)
1209 ac_prev=sysconfdir ;;
1210 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1211 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1212 sysconfdir=$ac_optarg ;;
1214 -target | --target | --targe | --targ | --tar | --ta | --t)
1215 ac_prev=target_alias ;;
1216 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1217 target_alias=$ac_optarg ;;
1219 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1222 -version | --version | --versio | --versi | --vers | -V)
1223 ac_init_version=: ;;
1226 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1227 # Reject names that are not valid shell variable names.
1228 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1229 as_fn_error "invalid package name: $ac_useropt"
1230 ac_useropt_orig=$ac_useropt
1231 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1232 case $ac_user_opts in
1236 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1237 ac_unrecognized_sep=', ';;
1239 eval with_$ac_useropt=\$ac_optarg ;;
1241 -without-* | --without-*)
1242 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1243 # Reject names that are not valid shell variable names.
1244 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1245 as_fn_error "invalid package name: $ac_useropt"
1246 ac_useropt_orig=$ac_useropt
1247 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1248 case $ac_user_opts in
1252 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1253 ac_unrecognized_sep=', ';;
1255 eval with_$ac_useropt=no ;;
1258 # Obsolete; use --with-x.
1261 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1262 | --x-incl | --x-inc | --x-in | --x-i)
1263 ac_prev=x_includes ;;
1264 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1265 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1266 x_includes=$ac_optarg ;;
1268 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1269 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1270 ac_prev=x_libraries ;;
1271 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1272 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1273 x_libraries=$ac_optarg ;;
1275 -*) as_fn_error "unrecognized option: \`$ac_option'
1276 Try \`$0 --help' for more information."
1280 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1281 # Reject names that are not valid shell variable names.
1282 case $ac_envvar in #(
1283 '' | [0-9]* | *[!_$as_cr_alnum]* )
1284 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1286 eval $ac_envvar=\$ac_optarg
1287 export $ac_envvar ;;
1290 # FIXME: should be removed in autoconf 3.0.
1291 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1292 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1293 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1294 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1300 if test -n "$ac_prev"; then
1301 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1302 as_fn_error "missing argument to $ac_option"
1305 if test -n "$ac_unrecognized_opts"; then
1306 case $enable_option_checking in
1308 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1309 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1313 # Check all directory arguments for consistency.
1314 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1315 datadir sysconfdir sharedstatedir localstatedir includedir \
1316 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1317 libdir localedir mandir
1319 eval ac_val=\$$ac_var
1320 # Remove trailing slashes.
1323 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1324 eval $ac_var=\$ac_val;;
1326 # Be sure to have absolute directory names.
1328 [\\/$]* | ?:[\\/]* ) continue;;
1329 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1331 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1334 # There might be people who depend on the old broken behavior: `$host'
1335 # used to hold the argument of --host etc.
1336 # FIXME: To remove some day.
1339 target=$target_alias
1341 # FIXME: To remove some day.
1342 if test "x$host_alias" != x; then
1343 if test "x$build_alias" = x; then
1344 cross_compiling=maybe
1345 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1346 If a cross compiler is detected then cross compile mode will be used." >&2
1347 elif test "x$build_alias" != "x$host_alias"; then
1353 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1355 test "$silent" = yes && exec 6>/dev/null
1358 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1359 ac_ls_di=`ls -di .` &&
1360 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1361 as_fn_error "working directory cannot be determined"
1362 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1363 as_fn_error "pwd does not report name of working directory"
1366 # Find the source files, if location was not specified.
1367 if test -z "$srcdir"; then
1368 ac_srcdir_defaulted=yes
1369 # Try the directory containing this script, then the parent directory.
1370 ac_confdir=`$as_dirname -- "$as_myself" ||
1371 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1372 X"$as_myself" : 'X\(//\)[^/]' \| \
1373 X"$as_myself" : 'X\(//\)$' \| \
1374 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1375 $as_echo X"$as_myself" |
1376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1394 if test ! -r "$srcdir/$ac_unique_file"; then
1398 ac_srcdir_defaulted=no
1400 if test ! -r "$srcdir/$ac_unique_file"; then
1401 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1402 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1404 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1406 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1408 # When building in place, set srcdir=.
1409 if test "$ac_abs_confdir" = "$ac_pwd"; then
1412 # Remove unnecessary trailing slashes from srcdir.
1413 # Double slashes in file names in object file debugging info
1414 # mess up M-x gdb in Emacs.
1416 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1418 for ac_var in $ac_precious_vars; do
1419 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1420 eval ac_env_${ac_var}_value=\$${ac_var}
1421 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1422 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1426 # Report the --help message.
1428 if test "$ac_init_help" = "long"; then
1429 # Omit some internal or obsolete options to make the list less imposing.
1430 # This message is too long to be a string in the A/UX 3.1 sh.
1432 \`configure' configures sudo 1.8.1p2 to adapt to many kinds of systems.
1434 Usage: $0 [OPTION]... [VAR=VALUE]...
1436 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1437 VAR=VALUE. See below for descriptions of some of the useful variables.
1439 Defaults for the options are specified in brackets.
1442 -h, --help display this help and exit
1443 --help=short display options specific to this package
1444 --help=recursive display the short help of all the included packages
1445 -V, --version display version information and exit
1446 -q, --quiet, --silent do not print \`checking...' messages
1447 --cache-file=FILE cache test results in FILE [disabled]
1448 -C, --config-cache alias for \`--cache-file=config.cache'
1449 -n, --no-create do not create output files
1450 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1452 Installation directories:
1453 --prefix=PREFIX install architecture-independent files in PREFIX
1454 [$ac_default_prefix]
1455 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1458 By default, \`make install' will install all the files in
1459 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1460 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1461 for instance \`--prefix=\$HOME'.
1463 For better control, use the options below.
1465 Fine tuning of the installation directories:
1466 --bindir=DIR user executables [EPREFIX/bin]
1467 --sbindir=DIR system admin executables [EPREFIX/sbin]
1468 --libexecdir=DIR program executables [EPREFIX/libexec]
1469 --sysconfdir=DIR read-only single-machine data [/etc]
1470 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1471 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1472 --libdir=DIR object code libraries [EPREFIX/lib]
1473 --includedir=DIR C header files [PREFIX/include]
1474 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1475 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1476 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1477 --infodir=DIR info documentation [DATAROOTDIR/info]
1478 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1479 --mandir=DIR man documentation [DATAROOTDIR/man]
1480 --docdir=DIR documentation root [DATAROOTDIR/doc/sudo]
1481 --htmldir=DIR html documentation [DOCDIR]
1482 --dvidir=DIR dvi documentation [DOCDIR]
1483 --pdfdir=DIR pdf documentation [DOCDIR]
1484 --psdir=DIR ps documentation [DOCDIR]
1490 --build=BUILD configure for building on BUILD [guessed]
1491 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1495 if test -n "$ac_init_help"; then
1496 case $ac_init_help in
1497 short | recursive ) echo "Configuration of sudo 1.8.1p2:";;
1502 --disable-option-checking ignore unrecognized --enable/--with options
1503 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1504 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1505 --disable-authentication
1506 Do not require authentication by default
1507 --disable-root-mailer Don't run the mailer as root, run as the user
1508 --disable-setreuid Don't try to use the setreuid() function
1509 --disable-setresuid Don't try to use the setresuid() function
1510 --disable-shadow Never use shadow passwords
1511 --disable-root-sudo Don't allow root to run sudo
1512 --enable-log-host Log the hostname in the log file
1513 --enable-noargs-shell If sudo is given no arguments run a shell
1514 --enable-shell-sets-home
1515 Set $HOME to target user in shell mode
1516 --disable-path-info Print 'command not allowed' not 'command not found'
1517 --enable-env-debug Whether to enable environment debugging.
1518 --enable-zlib[=PATH] Whether to enable or disable zlib
1519 --enable-env-reset Whether to enable environment resetting by default.
1520 --enable-warnings Whether to enable compiler warnings
1521 --enable-admin-flag Whether to create a Ubuntu-style admin flag file
1522 --enable-gss-krb5-ccache-name
1523 Use GSS-API to set the Kerberos V cred cache name
1524 --enable-shared[=PKGS] build shared libraries [default=yes]
1525 --enable-static[=PKGS] build static libraries [default=yes]
1526 --enable-fast-install[=PKGS]
1527 optimize for fast installation [default=yes]
1528 --disable-libtool-lock avoid locking (might break parallel builds)
1529 --disable-sia Disable SIA on Digital UNIX
1530 --disable-largefile omit support for large files
1531 --disable-pam-session Disable PAM session support
1534 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1535 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1536 --with-otp-only deprecated
1537 --with-alertmail deprecated
1538 --with-devel add development options
1539 --with-CC C compiler to use
1540 --with-rpath pass -R flag in addition to -L for lib paths
1541 --with-blibpath=PATH pass -blibpath flag to ld for additional lib paths
1542 --with-bsm-audit enable BSM audit support
1543 --with-linux-audit enable Linux audit support
1544 --with-incpath additional places to look for include files
1545 --with-libpath additional places to look for libraries
1546 --with-libraries additional libraries to link with
1547 --with-efence link with -lefence for malloc() debugging
1548 --with-csops add CSOps standard options
1549 --without-passwd don't use passwd/shadow file for authentication
1550 --with-skey=DIR enable S/Key support
1551 --with-opie=DIR enable OPIE support
1552 --with-long-otp-prompt use a two line OTP (skey/opie) prompt
1553 --with-SecurID[=DIR] enable SecurID support
1554 --with-fwtk[=DIR] enable FWTK AuthSRV support
1555 --with-kerb4[=DIR] enable Kerberos IV support
1556 --with-kerb5[=DIR] enable Kerberos V support
1557 --with-aixauth enable AIX general authentication support
1558 --with-pam enable PAM support
1559 --with-AFS enable AFS support
1560 --with-DCE enable DCE support
1561 --with-logincap enable BSD login class support
1562 --with-bsdauth enable BSD authentication support
1563 --with-project enable Solaris project support
1564 --without-lecture don't print lecture for first-time sudoer
1565 --with-logging log via syslog, file, or both
1566 --with-logfac syslog facility to log with (default is "auth")
1567 --with-goodpri syslog priority for commands (def is "notice")
1568 --with-badpri syslog priority for failures (def is "alert")
1569 --with-logpath path to the sudo log file
1570 --with-loglen maximum length of a log file line (default is 80)
1571 --with-ignore-dot ignore '.' in the PATH
1572 --without-mail-if-no-user
1573 do not send mail if user not in sudoers
1574 --with-mail-if-no-host send mail if user in sudoers but not for this host
1575 --with-mail-if-noperms send mail if user not allowed to run command
1576 --with-mailto who should get sudo mail (default is "root")
1577 --with-mailsubject subject of sudo mail
1578 --with-passprompt default password prompt
1579 --with-badpass-message message the user sees when the password is wrong
1580 --with-fqdn expect fully qualified hosts in sudoers
1581 --with-timedir path to the sudo timestamp dir
1582 --with-iologdir=DIR directory to store sudo I/O log files in
1583 --with-sendmail set path to sendmail
1584 --without-sendmail do not send mail at all
1585 --with-sudoers-mode mode of sudoers file (defaults to 0440)
1586 --with-sudoers-uid uid that owns sudoers file (defaults to 0)
1587 --with-sudoers-gid gid that owns sudoers file (defaults to 0)
1588 --with-umask umask with which the prog should run (default is
1590 --without-umask Preserves the umask of the user invoking sudo.
1591 --with-umask-override Use the umask specified in sudoers even if it is
1592 less restrictive than the user's.
1593 --with-runas-default User to run commands as (default is "root")
1594 --with-exempt=group no passwd needed for users in this group
1595 --with-editor=path Default editor for visudo (defaults to vi)
1596 --with-env-editor Use the environment variable EDITOR for visudo
1597 --with-passwd-tries number of tries to enter password (default is 3)
1598 --with-timeout minutes before sudo asks for passwd again (def is 5
1600 --with-password-timeout passwd prompt timeout in minutes (default is 5
1602 --with-tty-tickets use a different ticket file for each tty
1603 --with-insults insult the user for entering an incorrect password
1604 --with-all-insults include all the sudo insult sets
1605 --with-classic-insults include the insults from the "classic" sudo
1606 --with-csops-insults include CSOps insults
1607 --with-hal-insults include 2001-like insults
1608 --with-goons-insults include the insults from the "Goon Show"
1609 --with-nsswitch[=PATH] path to nsswitch.conf
1610 --with-ldap[=DIR] enable LDAP support
1611 --with-ldap-conf-file path to LDAP configuration file
1612 --with-ldap-secret-file path to LDAP secret password file
1613 --with-pc-insults replace politically incorrect insults with less
1615 --with-secure-path override the user's path with a built-in one
1616 --without-interfaces don't try to read the ip addr of ether interfaces
1617 --with-stow properly handle GNU stow packaging
1618 --with-askpass=PATH Fully qualified pathname of askpass helper
1619 --with-plugindir set directory to load plugins from
1620 --with-selinux enable SELinux support
1621 --with-pic try to use only PIC/non-PIC objects [default=use
1623 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1624 --with-noexec=PATH fully qualified pathname of sudo_noexec.so
1625 --with-netsvc[=PATH] path to netsvc.conf
1626 --with-pam-login enable specific PAM session for sudo -i
1628 Some influential environment variables:
1629 CC C compiler command
1630 CFLAGS C compiler flags
1631 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1632 nonstandard directory <lib dir>
1633 LIBS libraries to pass to the linker, e.g. -l<library>
1634 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1635 you have headers in a nonstandard directory <include dir>
1637 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1638 the first program found out of: `bison -y', `byacc', `yacc'.
1639 YFLAGS The list of arguments that will be passed by default to $YACC.
1640 This script will default YFLAGS to the empty string to avoid a
1641 default value of `-d' given by some make applications.
1643 Use these variables to override the choices made by `configure' or to help
1644 it to find libraries and programs with nonstandard names/locations.
1646 Report bugs to <http://www.sudo.ws/bugs/>.
1651 if test "$ac_init_help" = "recursive"; then
1652 # If there are subdirs, report their specific --help.
1653 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1654 test -d "$ac_dir" ||
1655 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1660 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1662 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1663 # A ".." for each directory in $ac_dir_suffix.
1664 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1665 case $ac_top_builddir_sub in
1666 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1667 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1670 ac_abs_top_builddir=$ac_pwd
1671 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1672 # for backward compatibility:
1673 ac_top_builddir=$ac_top_build_prefix
1676 .) # We are building in place.
1678 ac_top_srcdir=$ac_top_builddir_sub
1679 ac_abs_top_srcdir=$ac_pwd ;;
1680 [\\/]* | ?:[\\/]* ) # Absolute name.
1681 ac_srcdir=$srcdir$ac_dir_suffix;
1682 ac_top_srcdir=$srcdir
1683 ac_abs_top_srcdir=$srcdir ;;
1685 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1686 ac_top_srcdir=$ac_top_build_prefix$srcdir
1687 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1689 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1691 cd "$ac_dir" || { ac_status=$?; continue; }
1692 # Check for guested configure.
1693 if test -f "$ac_srcdir/configure.gnu"; then
1695 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1696 elif test -f "$ac_srcdir/configure"; then
1698 $SHELL "$ac_srcdir/configure" --help=recursive
1700 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1702 cd "$ac_pwd" || { ac_status=$?; break; }
1706 test -n "$ac_init_help" && exit $ac_status
1707 if $ac_init_version; then
1709 sudo configure 1.8.1p2
1710 generated by GNU Autoconf 2.65
1712 Copyright (C) 2009 Free Software Foundation, Inc.
1713 This configure script is free software; the Free Software Foundation
1714 gives unlimited permission to copy, distribute and modify it.
1719 ## ------------------------ ##
1720 ## Autoconf initialization. ##
1721 ## ------------------------ ##
1723 # ac_fn_c_try_compile LINENO
1724 # --------------------------
1725 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1726 ac_fn_c_try_compile ()
1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729 rm -f conftest.$ac_objext
1730 if { { ac_try="$ac_compile"
1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733 *) ac_try_echo=$ac_try;;
1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737 (eval "$ac_compile") 2>conftest.err
1739 if test -s conftest.err; then
1740 grep -v '^ *+' conftest.err >conftest.er1
1741 cat conftest.er1 >&5
1742 mv -f conftest.er1 conftest.err
1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745 test $ac_status = 0; } && {
1746 test -z "$ac_c_werror_flag" ||
1747 test ! -s conftest.err
1748 } && test -s conftest.$ac_objext; then :
1751 $as_echo "$as_me: failed program was:" >&5
1752 sed 's/^/| /' conftest.$ac_ext >&5
1756 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1757 as_fn_set_status $ac_retval
1759 } # ac_fn_c_try_compile
1761 # ac_fn_c_try_link LINENO
1762 # -----------------------
1763 # Try to link conftest.$ac_ext, and return whether this succeeded.
1766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767 rm -f conftest.$ac_objext conftest$ac_exeext
1768 if { { ac_try="$ac_link"
1770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1771 *) ac_try_echo=$ac_try;;
1773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1774 $as_echo "$ac_try_echo"; } >&5
1775 (eval "$ac_link") 2>conftest.err
1777 if test -s conftest.err; then
1778 grep -v '^ *+' conftest.err >conftest.er1
1779 cat conftest.er1 >&5
1780 mv -f conftest.er1 conftest.err
1782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783 test $ac_status = 0; } && {
1784 test -z "$ac_c_werror_flag" ||
1785 test ! -s conftest.err
1786 } && test -s conftest$ac_exeext && {
1787 test "$cross_compiling" = yes ||
1788 $as_test_x conftest$ac_exeext
1792 $as_echo "$as_me: failed program was:" >&5
1793 sed 's/^/| /' conftest.$ac_ext >&5
1797 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1798 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1799 # interfere with the next link command; also delete a directory that is
1800 # left behind by Apple's compiler. We do this before executing the actions.
1801 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1802 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1803 as_fn_set_status $ac_retval
1805 } # ac_fn_c_try_link
1807 # ac_fn_c_try_cpp LINENO
1808 # ----------------------
1809 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 if { { ac_try="$ac_cpp conftest.$ac_ext"
1815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1816 *) ac_try_echo=$ac_try;;
1818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1819 $as_echo "$ac_try_echo"; } >&5
1820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1822 if test -s conftest.err; then
1823 grep -v '^ *+' conftest.err >conftest.er1
1824 cat conftest.er1 >&5
1825 mv -f conftest.er1 conftest.err
1827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828 test $ac_status = 0; } >/dev/null && {
1829 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1830 test ! -s conftest.err
1834 $as_echo "$as_me: failed program was:" >&5
1835 sed 's/^/| /' conftest.$ac_ext >&5
1839 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1840 as_fn_set_status $ac_retval
1844 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1845 # -------------------------------------------------------
1846 # Tests whether HEADER exists and can be compiled using the include files in
1847 # INCLUDES, setting the cache variable VAR accordingly.
1848 ac_fn_c_check_header_compile ()
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852 $as_echo_n "checking for $2... " >&6; }
1853 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1854 $as_echo_n "(cached) " >&6
1856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857 /* end confdefs.h. */
1861 if ac_fn_c_try_compile "$LINENO"; then :
1866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1870 $as_echo "$ac_res" >&6; }
1871 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1873 } # ac_fn_c_check_header_compile
1875 # ac_fn_c_try_run LINENO
1876 # ----------------------
1877 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1878 # that executables *can* be run.
1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882 if { { ac_try="$ac_link"
1884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885 *) ac_try_echo=$ac_try;;
1887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888 $as_echo "$ac_try_echo"; } >&5
1889 (eval "$ac_link") 2>&5
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1893 { { case "(($ac_try" in
1894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1895 *) ac_try_echo=$ac_try;;
1897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1898 $as_echo "$ac_try_echo"; } >&5
1899 (eval "$ac_try") 2>&5
1901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902 test $ac_status = 0; }; }; then :
1905 $as_echo "$as_me: program exited with status $ac_status" >&5
1906 $as_echo "$as_me: failed program was:" >&5
1907 sed 's/^/| /' conftest.$ac_ext >&5
1909 ac_retval=$ac_status
1911 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1912 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1913 as_fn_set_status $ac_retval
1917 # ac_fn_c_check_func LINENO FUNC VAR
1918 # ----------------------------------
1919 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1920 ac_fn_c_check_func ()
1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1924 $as_echo_n "checking for $2... " >&6; }
1925 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1926 $as_echo_n "(cached) " >&6
1928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929 /* end confdefs.h. */
1930 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1932 #define $2 innocuous_$2
1934 /* System header to define __stub macros and hopefully few prototypes,
1935 which can conflict with char $2 (); below.
1936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1937 <limits.h> exists even on freestanding compilers. */
1940 # include <limits.h>
1942 # include <assert.h>
1947 /* Override any GCC internal prototype to avoid an error.
1948 Use char because int might match the return type of a GCC
1949 builtin and then its argument prototype would still apply. */
1954 /* The GNU C library defines this for functions which it implements
1955 to always fail with ENOSYS. Some functions are actually named
1956 something starting with __ and the normal name is an alias. */
1957 #if defined __stub_$2 || defined __stub___$2
1969 if ac_fn_c_try_link "$LINENO"; then :
1974 rm -f core conftest.err conftest.$ac_objext \
1975 conftest$ac_exeext conftest.$ac_ext
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1979 $as_echo "$ac_res" >&6; }
1980 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1982 } # ac_fn_c_check_func
1984 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1985 # -------------------------------------------------------
1986 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1987 # the include files in INCLUDES and setting the cache variable VAR
1989 ac_fn_c_check_header_mongrel ()
1991 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1994 $as_echo_n "checking for $2... " >&6; }
1995 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1996 $as_echo_n "(cached) " >&6
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2000 $as_echo "$ac_res" >&6; }
2002 # Is the header compilable?
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2004 $as_echo_n "checking $2 usability... " >&6; }
2005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2006 /* end confdefs.h. */
2010 if ac_fn_c_try_compile "$LINENO"; then :
2011 ac_header_compiler=yes
2013 ac_header_compiler=no
2015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2017 $as_echo "$ac_header_compiler" >&6; }
2019 # Is the header present?
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2021 $as_echo_n "checking $2 presence... " >&6; }
2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023 /* end confdefs.h. */
2026 if ac_fn_c_try_cpp "$LINENO"; then :
2027 ac_header_preproc=yes
2029 ac_header_preproc=no
2031 rm -f conftest.err conftest.$ac_ext
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2033 $as_echo "$ac_header_preproc" >&6; }
2035 # So? What about this header?
2036 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2039 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2041 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2045 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2047 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2049 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2051 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2053 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2055 ## --------------------------------------- ##
2056 ## Report this to http://www.sudo.ws/bugs/ ##
2057 ## --------------------------------------- ##
2059 ) | sed "s/^/$as_me: WARNING: /" >&2
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2063 $as_echo_n "checking for $2... " >&6; }
2064 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2065 $as_echo_n "(cached) " >&6
2067 eval "$3=\$ac_header_compiler"
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2071 $as_echo "$ac_res" >&6; }
2073 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2075 } # ac_fn_c_check_header_mongrel
2077 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2078 # -------------------------------------------
2079 # Tests whether TYPE exists after having included INCLUDES, setting cache
2080 # variable VAR accordingly.
2081 ac_fn_c_check_type ()
2083 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2085 $as_echo_n "checking for $2... " >&6; }
2086 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2087 $as_echo_n "(cached) " >&6
2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h. */
2102 if ac_fn_c_try_compile "$LINENO"; then :
2103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104 /* end confdefs.h. */
2115 if ac_fn_c_try_compile "$LINENO"; then :
2120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2126 $as_echo "$ac_res" >&6; }
2127 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2129 } # ac_fn_c_check_type
2131 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2132 # --------------------------------------------
2133 # Tries to find the compile-time value of EXPR in a program that includes
2134 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2136 ac_fn_c_compute_int ()
2138 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2139 if test "$cross_compiling" = yes; then
2140 # Depending upon the size, compute the lo and hi bounds.
2141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142 /* end confdefs.h. */
2147 static int test_array [1 - 2 * !(($2) >= 0)];
2154 if ac_fn_c_try_compile "$LINENO"; then :
2157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2158 /* end confdefs.h. */
2163 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2170 if ac_fn_c_try_compile "$LINENO"; then :
2171 ac_hi=$ac_mid; break
2173 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2174 if test $ac_lo -le $ac_mid; then
2178 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2184 /* end confdefs.h. */
2189 static int test_array [1 - 2 * !(($2) < 0)];
2196 if ac_fn_c_try_compile "$LINENO"; then :
2199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200 /* end confdefs.h. */
2205 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2212 if ac_fn_c_try_compile "$LINENO"; then :
2213 ac_lo=$ac_mid; break
2215 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2216 if test $ac_mid -le $ac_hi; then
2220 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2230 # Binary search between lo and hi bounds.
2231 while test "x$ac_lo" != "x$ac_hi"; do
2232 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2234 /* end confdefs.h. */
2239 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2246 if ac_fn_c_try_compile "$LINENO"; then :
2249 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2254 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2259 /* end confdefs.h. */
2261 static long int longval () { return $2; }
2262 static unsigned long int ulongval () { return $2; }
2269 FILE *f = fopen ("conftest.val", "w");
2274 long int i = longval ();
2277 fprintf (f, "%ld", i);
2281 unsigned long int i = ulongval ();
2284 fprintf (f, "%lu", i);
2286 /* Do not output a trailing newline, as this causes \r\n confusion
2287 on some platforms. */
2288 return ferror (f) || fclose (f) != 0;
2294 if ac_fn_c_try_run "$LINENO"; then :
2295 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2299 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2300 conftest.$ac_objext conftest.beam conftest.$ac_ext
2304 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2305 as_fn_set_status $ac_retval
2307 } # ac_fn_c_compute_int
2309 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2310 # ----------------------------------------------------
2311 # Tries to find if the field MEMBER exists in type AGGR, after including
2312 # INCLUDES, setting cache variable VAR accordingly.
2313 ac_fn_c_check_member ()
2315 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2317 $as_echo_n "checking for $2.$3... " >&6; }
2318 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2319 $as_echo_n "(cached) " >&6
2321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2322 /* end confdefs.h. */
2334 if ac_fn_c_try_compile "$LINENO"; then :
2337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2338 /* end confdefs.h. */
2344 if (sizeof ac_aggr.$3)
2350 if ac_fn_c_try_compile "$LINENO"; then :
2355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2361 $as_echo "$ac_res" >&6; }
2362 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2364 } # ac_fn_c_check_member
2366 # ac_fn_c_check_decl LINENO SYMBOL VAR
2367 # ------------------------------------
2368 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2369 ac_fn_c_check_decl ()
2371 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2373 $as_echo_n "checking whether $2 is declared... " >&6; }
2374 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2375 $as_echo_n "(cached) " >&6
2377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2378 /* end confdefs.h. */
2391 if ac_fn_c_try_compile "$LINENO"; then :
2396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2400 $as_echo "$ac_res" >&6; }
2401 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2403 } # ac_fn_c_check_decl
2404 cat >config.log <<_ACEOF
2405 This file contains any messages produced by compilers while
2406 running configure, to aid debugging if configure makes a mistake.
2408 It was created by sudo $as_me 1.8.1p2, which was
2409 generated by GNU Autoconf 2.65. Invocation command line was
2421 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2422 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2423 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2424 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2425 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2427 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2428 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2430 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2431 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2432 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2433 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2434 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2435 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2436 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444 test -z "$as_dir" && as_dir=.
2445 $as_echo "PATH: $as_dir"
2461 # Keep a trace of the command line.
2462 # Strip out --no-create and --no-recursion so they do not pile up.
2463 # Strip out --silent because we don't want to record it for future runs.
2464 # Also quote any args containing shell meta-characters.
2465 # Make two passes to allow for proper duplicate-argument suppression.
2469 ac_must_keep_next=false
2475 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2476 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2477 | -silent | --silent | --silen | --sile | --sil)
2480 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2483 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2485 as_fn_append ac_configure_args1 " '$ac_arg'"
2486 if test $ac_must_keep_next = true; then
2487 ac_must_keep_next=false # Got value, back to normal.
2490 *=* | --config-cache | -C | -disable-* | --disable-* \
2491 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2492 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2493 | -with-* | --with-* | -without-* | --without-* | --x)
2494 case "$ac_configure_args0 " in
2495 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2498 -* ) ac_must_keep_next=true ;;
2501 as_fn_append ac_configure_args " '$ac_arg'"
2506 { ac_configure_args0=; unset ac_configure_args0;}
2507 { ac_configure_args1=; unset ac_configure_args1;}
2509 # When interrupted or exit'd, cleanup temporary files, and complete
2510 # config.log. We remove comments because anyway the quotes in there
2511 # would cause problems or look ugly.
2512 # WARNING: Use '\'' to represent an apostrophe within the trap.
2513 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2514 trap 'exit_status=$?
2515 # Save into config.log some information that might help in debugging.
2520 ## ---------------- ##
2521 ## Cache variables. ##
2522 ## ---------------- ##
2525 # The following way of writing the cache mishandles newlines in values,
2527 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2528 eval ac_val=\$$ac_var
2532 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2533 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2536 _ | IFS | as_nl) ;; #(
2537 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2538 *) { eval $ac_var=; unset $ac_var;} ;;
2543 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2544 *${as_nl}ac_space=\ *)
2546 "s/'\''/'\''\\\\'\'''\''/g;
2547 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2550 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2558 ## ----------------- ##
2559 ## Output variables. ##
2560 ## ----------------- ##
2563 for ac_var in $ac_subst_vars
2565 eval ac_val=\$$ac_var
2567 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2569 $as_echo "$ac_var='\''$ac_val'\''"
2573 if test -n "$ac_subst_files"; then
2575 ## ------------------- ##
2576 ## File substitutions. ##
2577 ## ------------------- ##
2580 for ac_var in $ac_subst_files
2582 eval ac_val=\$$ac_var
2584 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2586 $as_echo "$ac_var='\''$ac_val'\''"
2591 if test -s confdefs.h; then
2601 test "$ac_signal" != 0 &&
2602 $as_echo "$as_me: caught signal $ac_signal"
2603 $as_echo "$as_me: exit $exit_status"
2605 rm -f core *.core core.conftest.* &&
2606 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2609 for ac_signal in 1 2 13 15; do
2610 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2614 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2615 rm -f -r conftest* confdefs.h
2617 $as_echo "/* confdefs.h */" > confdefs.h
2619 # Predefined preprocessor variables.
2621 cat >>confdefs.h <<_ACEOF
2622 #define PACKAGE_NAME "$PACKAGE_NAME"
2625 cat >>confdefs.h <<_ACEOF
2626 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2629 cat >>confdefs.h <<_ACEOF
2630 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2633 cat >>confdefs.h <<_ACEOF
2634 #define PACKAGE_STRING "$PACKAGE_STRING"
2637 cat >>confdefs.h <<_ACEOF
2638 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2641 cat >>confdefs.h <<_ACEOF
2642 #define PACKAGE_URL "$PACKAGE_URL"
2646 # Let the site file select an alternate cache file if it wants to.
2647 # Prefer an explicitly selected file to automatically selected ones.
2650 if test -n "$CONFIG_SITE"; then
2651 ac_site_file1=$CONFIG_SITE
2652 elif test "x$prefix" != xNONE; then
2653 ac_site_file1=$prefix/share/config.site
2654 ac_site_file2=$prefix/etc/config.site
2656 ac_site_file1=$ac_default_prefix/share/config.site
2657 ac_site_file2=$ac_default_prefix/etc/config.site
2659 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2661 test "x$ac_site_file" = xNONE && continue
2662 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2664 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2665 sed 's/^/| /' "$ac_site_file" >&5
2670 if test -r "$cache_file"; then
2671 # Some versions of bash will fail to source /dev/null (special files
2672 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2673 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2675 $as_echo "$as_me: loading cache $cache_file" >&6;}
2677 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2678 *) . "./$cache_file";;
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2683 $as_echo "$as_me: creating cache $cache_file" >&6;}
2687 # Check that the precious variables saved in the cache have kept the same
2689 ac_cache_corrupted=false
2690 for ac_var in $ac_precious_vars; do
2691 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2692 eval ac_new_set=\$ac_env_${ac_var}_set
2693 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2694 eval ac_new_val=\$ac_env_${ac_var}_value
2695 case $ac_old_set,$ac_new_set in
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2698 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2699 ac_cache_corrupted=: ;;
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2702 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2703 ac_cache_corrupted=: ;;
2706 if test "x$ac_old_val" != "x$ac_new_val"; then
2707 # differences in whitespace do not lead to failure.
2708 ac_old_val_w=`echo x $ac_old_val`
2709 ac_new_val_w=`echo x $ac_new_val`
2710 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2712 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2713 ac_cache_corrupted=:
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2716 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2717 eval $ac_var=\$ac_old_val
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2720 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2722 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2725 # Pass precious variables to config.status.
2726 if test "$ac_new_set" = set; then
2728 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2729 *) ac_arg=$ac_var=$ac_new_val ;;
2731 case " $ac_configure_args " in
2732 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2733 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2737 if $ac_cache_corrupted; then
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2739 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2741 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2742 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2744 ## -------------------- ##
2745 ## Main body of script. ##
2746 ## -------------------- ##
2749 ac_cpp='$CPP $CPPFLAGS'
2750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2755 ac_config_headers="$ac_config_headers config.h pathnames.h"
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Sudo version $PACKAGE_VERSION" >&5
2758 $as_echo "$as_me: Configuring Sudo version $PACKAGE_VERSION" >&6;}
2845 # Begin initial values for man page substitution
2847 iolog_dir=/var/log/sudo-io
2848 timedir=/var/adm/sudo
2853 passprompt="Password:"
2865 mailsub="*** SECURITY information for %h ***"
2866 badpass_message="Sorry, try again."
2877 ldap_conf=/etc/ldap.conf
2878 ldap_secret=/etc/ldap.secret
2879 netsvc_conf=/etc/netsvc.conf
2880 noexec_file=/usr/local/libexec/sudo_noexec.so
2881 nsswitch_conf=/etc/nsswitch.conf
2882 secure_path="not set"
2884 # End initial values for man page substitution
2891 : ${SUDOERS_MODE='0440'}
2892 : ${SUDOERS_UID='0'}
2893 : ${SUDOERS_GID='0'}
2911 shadow_libs_optional=
2918 # Check whether --with-otp-only was given.
2919 if test "${with_otp_only+set}" = set; then :
2920 withval=$with_otp_only; case $with_otp_only in
2921 yes) with_passwd="no"
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-otp-only option deprecated, treating as --without-passwd" >&5
2923 $as_echo "$as_me: --with-otp-only option deprecated, treating as --without-passwd" >&6;}
2930 # Check whether --with-alertmail was given.
2931 if test "${with_alertmail+set}" = set; then :
2932 withval=$with_alertmail; case $with_alertmail in
2933 *) with_mailto="$with_alertmail"
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-alertmail option deprecated, treating as --mailto" >&5
2935 $as_echo "$as_me: --with-alertmail option deprecated, treating as --mailto" >&6;}
2943 # Check whether --with-devel was given.
2944 if test "${with_devel+set}" = set; then :
2945 withval=$with_devel; case $with_devel in
2946 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: Setting up for development: -Wall, flex, yacc" >&5
2947 $as_echo "$as_me: Setting up for development: -Wall, flex, yacc" >&6;}
2948 OSDEFS="${OSDEFS} -DSUDO_DEVEL"
2953 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&5
2954 $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&2;}
2961 # Check whether --with-CC was given.
2962 if test "${with_CC+set}" = set; then :
2963 withval=$with_CC; case $with_CC in
2964 yes) as_fn_error "\"must give --with-CC an argument.\"" "$LINENO" 5
2966 no) as_fn_error "\"illegal argument: --without-CC.\"" "$LINENO" 5
2975 # Check whether --with-rpath was given.
2976 if test "${with_rpath+set}" = set; then :
2977 withval=$with_rpath; case $with_rpath in
2979 *) as_fn_error "\"--with-rpath does not take an argument.\"" "$LINENO" 5
2986 # Check whether --with-blibpath was given.
2987 if test "${with_blibpath+set}" = set; then :
2988 withval=$with_blibpath; case $with_blibpath in
2990 *) { $as_echo "$as_me:${as_lineno-$LINENO}: will pass -blibpath:${with_blibpath} to the loader." >&5
2991 $as_echo "$as_me: will pass -blibpath:${with_blibpath} to the loader." >&6;}
2998 # Check whether --with-bsm-audit was given.
2999 if test "${with_bsm_audit+set}" = set; then :
3000 withval=$with_bsm_audit; case $with_bsm_audit in
3001 yes) $as_echo "#define HAVE_BSM_AUDIT 1" >>confdefs.h
3003 SUDOERS_LIBS="${SUDOERS_LIBS} -lbsm"
3004 SUDOERS_OBJS="${SUDOERS_OBJS} bsm_audit.lo"
3007 *) as_fn_error "\"--with-bsm-audit does not take an argument.\"" "$LINENO" 5
3014 ac_cpp='$CPP $CPPFLAGS'
3015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3018 if test -n "$ac_tool_prefix"; then
3019 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3020 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3022 $as_echo_n "checking for $ac_word... " >&6; }
3023 if test "${ac_cv_prog_CC+set}" = set; then :
3024 $as_echo_n "(cached) " >&6
3026 if test -n "$CC"; then
3027 ac_cv_prog_CC="$CC" # Let the user override the test.
3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033 test -z "$as_dir" && as_dir=.
3034 for ac_exec_ext in '' $ac_executable_extensions; do
3035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3036 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3047 if test -n "$CC"; then
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3049 $as_echo "$CC" >&6; }
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052 $as_echo "no" >&6; }
3057 if test -z "$ac_cv_prog_CC"; then
3059 # Extract the first word of "gcc", so it can be a program name with args.
3060 set dummy gcc; ac_word=$2
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3062 $as_echo_n "checking for $ac_word... " >&6; }
3063 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3064 $as_echo_n "(cached) " >&6
3066 if test -n "$ac_ct_CC"; then
3067 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3073 test -z "$as_dir" && as_dir=.
3074 for ac_exec_ext in '' $ac_executable_extensions; do
3075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3076 ac_cv_prog_ac_ct_CC="gcc"
3077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3086 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3087 if test -n "$ac_ct_CC"; then
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3089 $as_echo "$ac_ct_CC" >&6; }
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3092 $as_echo "no" >&6; }
3095 if test "x$ac_ct_CC" = x; then
3098 case $cross_compiling:$ac_tool_warned in
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3101 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3102 ac_tool_warned=yes ;;
3110 if test -z "$CC"; then
3111 if test -n "$ac_tool_prefix"; then
3112 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3113 set dummy ${ac_tool_prefix}cc; ac_word=$2
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3115 $as_echo_n "checking for $ac_word... " >&6; }
3116 if test "${ac_cv_prog_CC+set}" = set; then :
3117 $as_echo_n "(cached) " >&6
3119 if test -n "$CC"; then
3120 ac_cv_prog_CC="$CC" # Let the user override the test.
3122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3126 test -z "$as_dir" && as_dir=.
3127 for ac_exec_ext in '' $ac_executable_extensions; do
3128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3129 ac_cv_prog_CC="${ac_tool_prefix}cc"
3130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3140 if test -n "$CC"; then
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3142 $as_echo "$CC" >&6; }
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3145 $as_echo "no" >&6; }
3151 if test -z "$CC"; then
3152 # Extract the first word of "cc", so it can be a program name with args.
3153 set dummy cc; ac_word=$2
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3155 $as_echo_n "checking for $ac_word... " >&6; }
3156 if test "${ac_cv_prog_CC+set}" = set; then :
3157 $as_echo_n "(cached) " >&6
3159 if test -n "$CC"; then
3160 ac_cv_prog_CC="$CC" # Let the user override the test.
3163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167 test -z "$as_dir" && as_dir=.
3168 for ac_exec_ext in '' $ac_executable_extensions; do
3169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3170 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3171 ac_prog_rejected=yes
3175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3182 if test $ac_prog_rejected = yes; then
3183 # We found a bogon in the path, so make sure we never use it.
3184 set dummy $ac_cv_prog_CC
3186 if test $# != 0; then
3187 # We chose a different compiler from the bogus one.
3188 # However, it has the same basename, so the bogon will be chosen
3189 # first if we set CC to just the basename; use the full file name.
3191 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3197 if test -n "$CC"; then
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3199 $as_echo "$CC" >&6; }
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3202 $as_echo "no" >&6; }
3207 if test -z "$CC"; then
3208 if test -n "$ac_tool_prefix"; then
3209 for ac_prog in cl.exe
3211 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3212 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3214 $as_echo_n "checking for $ac_word... " >&6; }
3215 if test "${ac_cv_prog_CC+set}" = set; then :
3216 $as_echo_n "(cached) " >&6
3218 if test -n "$CC"; then
3219 ac_cv_prog_CC="$CC" # Let the user override the test.
3221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225 test -z "$as_dir" && as_dir=.
3226 for ac_exec_ext in '' $ac_executable_extensions; do
3227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3228 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3239 if test -n "$CC"; then
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3241 $as_echo "$CC" >&6; }
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3244 $as_echo "no" >&6; }
3248 test -n "$CC" && break
3251 if test -z "$CC"; then
3253 for ac_prog in cl.exe
3255 # Extract the first word of "$ac_prog", so it can be a program name with args.
3256 set dummy $ac_prog; ac_word=$2
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3258 $as_echo_n "checking for $ac_word... " >&6; }
3259 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3260 $as_echo_n "(cached) " >&6
3262 if test -n "$ac_ct_CC"; then
3263 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269 test -z "$as_dir" && as_dir=.
3270 for ac_exec_ext in '' $ac_executable_extensions; do
3271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3272 ac_cv_prog_ac_ct_CC="$ac_prog"
3273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3282 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3283 if test -n "$ac_ct_CC"; then
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3285 $as_echo "$ac_ct_CC" >&6; }
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3288 $as_echo "no" >&6; }
3292 test -n "$ac_ct_CC" && break
3295 if test "x$ac_ct_CC" = x; then
3298 case $cross_compiling:$ac_tool_warned in
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3301 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3302 ac_tool_warned=yes ;;
3311 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3313 as_fn_error "no acceptable C compiler found in \$PATH
3314 See \`config.log' for more details." "$LINENO" 5; }
3316 # Provide some information about the compiler.
3317 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3320 for ac_option in --version -v -V -qversion; do
3321 { { ac_try="$ac_compiler $ac_option >&5"
3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324 *) ac_try_echo=$ac_try;;
3326 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3327 $as_echo "$ac_try_echo"; } >&5
3328 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3330 if test -s conftest.err; then
3332 ... rest of stderr output deleted ...
3333 10q' conftest.err >conftest.er1
3334 cat conftest.er1 >&5
3336 rm -f conftest.er1 conftest.err
3337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3338 test $ac_status = 0; }
3341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3342 /* end confdefs.h. */
3352 ac_clean_files_save=$ac_clean_files
3353 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3354 # Try to create an executable without -o first, disregard a.out.
3355 # It will help us diagnose broken compilers, and finding out an intuition
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3358 $as_echo_n "checking whether the C compiler works... " >&6; }
3359 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3361 # The possible output files:
3362 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3365 for ac_file in $ac_files
3368 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3369 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3374 if { { ac_try="$ac_link_default"
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3379 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3380 $as_echo "$ac_try_echo"; } >&5
3381 (eval "$ac_link_default") 2>&5
3383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3384 test $ac_status = 0; }; then :
3385 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3386 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3387 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3388 # so that the user can short-circuit this test for compilers unknown to
3390 for ac_file in $ac_files ''
3392 test -f "$ac_file" || continue
3394 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3397 # We found the default executable, but exeext='' is most
3401 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3403 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3405 # We set ac_cv_exeext here because the later test for it is not
3406 # safe: cross compilers may not add the suffix if given an `-o'
3407 # argument, so we may need to know it at that point already.
3408 # Even if this section looks crufty: it has the advantage of
3415 test "$ac_cv_exeext" = no && ac_cv_exeext=
3420 if test -z "$ac_file"; then :
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3422 $as_echo "no" >&6; }
3423 $as_echo "$as_me: failed program was:" >&5
3424 sed 's/^/| /' conftest.$ac_ext >&5
3426 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3427 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3428 { as_fn_set_status 77
3429 as_fn_error "C compiler cannot create executables
3430 See \`config.log' for more details." "$LINENO" 5; }; }
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3433 $as_echo "yes" >&6; }
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3436 $as_echo_n "checking for C compiler default output file name... " >&6; }
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3438 $as_echo "$ac_file" >&6; }
3439 ac_exeext=$ac_cv_exeext
3441 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3442 ac_clean_files=$ac_clean_files_save
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3444 $as_echo_n "checking for suffix of executables... " >&6; }
3445 if { { ac_try="$ac_link"
3447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448 *) ac_try_echo=$ac_try;;
3450 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3451 $as_echo "$ac_try_echo"; } >&5
3452 (eval "$ac_link") 2>&5
3454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3455 test $ac_status = 0; }; then :
3456 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3457 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3458 # work properly (i.e., refer to `conftest.exe'), while it won't with
3460 for ac_file in conftest.exe conftest conftest.*; do
3461 test -f "$ac_file" || continue
3463 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3464 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3470 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3472 as_fn_error "cannot compute suffix of executables: cannot compile and link
3473 See \`config.log' for more details." "$LINENO" 5; }
3475 rm -f conftest conftest$ac_cv_exeext
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3477 $as_echo "$ac_cv_exeext" >&6; }
3479 rm -f conftest.$ac_ext
3480 EXEEXT=$ac_cv_exeext
3482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3483 /* end confdefs.h. */
3488 FILE *f = fopen ("conftest.out", "w");
3489 return ferror (f) || fclose (f) != 0;
3495 ac_clean_files="$ac_clean_files conftest.out"
3496 # Check that the compiler produces executables we can run. If not, either
3497 # the compiler is broken, or we cross compile.
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3499 $as_echo_n "checking whether we are cross compiling... " >&6; }
3500 if test "$cross_compiling" != yes; then
3501 { { ac_try="$ac_link"
3503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504 *) ac_try_echo=$ac_try;;
3506 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3507 $as_echo "$ac_try_echo"; } >&5
3508 (eval "$ac_link") 2>&5
3510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3511 test $ac_status = 0; }
3512 if { ac_try='./conftest$ac_cv_exeext'
3513 { { case "(($ac_try" in
3514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515 *) ac_try_echo=$ac_try;;
3517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3518 $as_echo "$ac_try_echo"; } >&5
3519 (eval "$ac_try") 2>&5
3521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3522 test $ac_status = 0; }; }; then
3525 if test "$cross_compiling" = maybe; then
3528 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3529 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3530 as_fn_error "cannot run C compiled programs.
3531 If you meant to cross compile, use \`--host'.
3532 See \`config.log' for more details." "$LINENO" 5; }
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3537 $as_echo "$cross_compiling" >&6; }
3539 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3540 ac_clean_files=$ac_clean_files_save
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3542 $as_echo_n "checking for suffix of object files... " >&6; }
3543 if test "${ac_cv_objext+set}" = set; then :
3544 $as_echo_n "(cached) " >&6
3546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3547 /* end confdefs.h. */
3557 rm -f conftest.o conftest.obj
3558 if { { ac_try="$ac_compile"
3560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561 *) ac_try_echo=$ac_try;;
3563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3564 $as_echo "$ac_try_echo"; } >&5
3565 (eval "$ac_compile") 2>&5
3567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3568 test $ac_status = 0; }; then :
3569 for ac_file in conftest.o conftest.obj conftest.*; do
3570 test -f "$ac_file" || continue;
3572 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3573 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3578 $as_echo "$as_me: failed program was:" >&5
3579 sed 's/^/| /' conftest.$ac_ext >&5
3581 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3582 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3583 as_fn_error "cannot compute suffix of object files: cannot compile
3584 See \`config.log' for more details." "$LINENO" 5; }
3586 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3589 $as_echo "$ac_cv_objext" >&6; }
3590 OBJEXT=$ac_cv_objext
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3593 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3594 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3595 $as_echo_n "(cached) " >&6
3597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3598 /* end confdefs.h. */
3611 if ac_fn_c_try_compile "$LINENO"; then :
3616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3617 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3621 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3622 if test $ac_compiler_gnu = yes; then
3627 ac_test_CFLAGS=${CFLAGS+set}
3628 ac_save_CFLAGS=$CFLAGS
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3630 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3631 if test "${ac_cv_prog_cc_g+set}" = set; then :
3632 $as_echo_n "(cached) " >&6
3634 ac_save_c_werror_flag=$ac_c_werror_flag
3635 ac_c_werror_flag=yes
3638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3639 /* end confdefs.h. */
3649 if ac_fn_c_try_compile "$LINENO"; then :
3653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654 /* end confdefs.h. */
3664 if ac_fn_c_try_compile "$LINENO"; then :
3667 ac_c_werror_flag=$ac_save_c_werror_flag
3669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3670 /* end confdefs.h. */
3680 if ac_fn_c_try_compile "$LINENO"; then :
3683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3688 ac_c_werror_flag=$ac_save_c_werror_flag
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3691 $as_echo "$ac_cv_prog_cc_g" >&6; }
3692 if test "$ac_test_CFLAGS" = set; then
3693 CFLAGS=$ac_save_CFLAGS
3694 elif test $ac_cv_prog_cc_g = yes; then
3695 if test "$GCC" = yes; then
3701 if test "$GCC" = yes; then
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3708 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3709 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3710 $as_echo_n "(cached) " >&6
3712 ac_cv_prog_cc_c89=no
3714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3715 /* end confdefs.h. */
3718 #include <sys/types.h>
3719 #include <sys/stat.h>
3720 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3721 struct buf { int x; };
3722 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3723 static char *e (p, i)
3729 static char *f (char * (*g) (char **, int), char **p, ...)
3734 s = g (p, va_arg (v,int));
3739 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3740 function prototypes and stuff, but not '\xHH' hex character constants.
3741 These don't provoke an error unfortunately, instead are silently treated
3742 as 'x'. The following induces an error, until -std is added to get
3743 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3744 array size at least. It's necessary to write '\x00'==0 to get something
3745 that's true only with -std. */
3746 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3748 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3749 inside strings and character constants. */
3751 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3753 int test (int i, double x);
3754 struct s1 {int (*f) (int a);};
3755 struct s2 {int (*f) (double a);};
3756 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3762 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3767 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3768 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3770 CC="$ac_save_CC $ac_arg"
3771 if ac_fn_c_try_compile "$LINENO"; then :
3772 ac_cv_prog_cc_c89=$ac_arg
3774 rm -f core conftest.err conftest.$ac_objext
3775 test "x$ac_cv_prog_cc_c89" != "xno" && break
3777 rm -f conftest.$ac_ext
3782 case "x$ac_cv_prog_cc_c89" in
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3785 $as_echo "none needed" >&6; } ;;
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3788 $as_echo "unsupported" >&6; } ;;
3790 CC="$CC $ac_cv_prog_cc_c89"
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3792 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3794 if test "x$ac_cv_prog_cc_c89" != xno; then :
3799 ac_cpp='$CPP $CPPFLAGS'
3800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3806 # Check whether --with-linux-audit was given.
3807 if test "${with_linux_audit+set}" = set; then :
3808 withval=$with_linux_audit; case $with_linux_audit in
3809 yes) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3810 /* end confdefs.h. */
3811 #include <libaudit.h>
3815 int i = AUDIT_USER_CMD; (void)i;
3820 if ac_fn_c_try_compile "$LINENO"; then :
3822 $as_echo "#define HAVE_LINUX_AUDIT 1" >>confdefs.h
3824 SUDO_LIBS="${SUDO_LIBS} -laudit"
3825 SUDOERS_LIBS="${SUDO_LIBS} -laudit"
3826 SUDOERS_OBJS="${SUDOERS_OBJS} linux_audit.lo"
3830 as_fn_error "unable to find AUDIT_USER_CMD in libaudit.h for --with-linux-audit" "$LINENO" 5
3833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3836 *) as_fn_error "\"--with-linux-audit does not take an argument.\"" "$LINENO" 5
3843 # Check whether --with-incpath was given.
3844 if test "${with_incpath+set}" = set; then :
3845 withval=$with_incpath; case $with_incpath in
3846 yes) as_fn_error "\"must give --with-incpath an argument.\"" "$LINENO" 5
3848 no) as_fn_error "\"--without-incpath not supported.\"" "$LINENO" 5
3850 *) { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_incpath} to CPPFLAGS" >&5
3851 $as_echo "$as_me: Adding ${with_incpath} to CPPFLAGS" >&6;}
3852 for i in ${with_incpath}; do
3853 CPPFLAGS="${CPPFLAGS} -I${i}"
3861 # Check whether --with-libpath was given.
3862 if test "${with_libpath+set}" = set; then :
3863 withval=$with_libpath; case $with_libpath in
3864 yes) as_fn_error "\"must give --with-libpath an argument.\"" "$LINENO" 5
3866 no) as_fn_error "\"--without-libpath not supported.\"" "$LINENO" 5
3868 *) { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_libpath} to LDFLAGS" >&5
3869 $as_echo "$as_me: Adding ${with_libpath} to LDFLAGS" >&6;}
3876 # Check whether --with-libraries was given.
3877 if test "${with_libraries+set}" = set; then :
3878 withval=$with_libraries; case $with_libraries in
3879 yes) as_fn_error "\"must give --with-libraries an argument.\"" "$LINENO" 5
3881 no) as_fn_error "\"--without-libraries not supported.\"" "$LINENO" 5
3883 *) { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_libraries} to LIBS" >&5
3884 $as_echo "$as_me: Adding ${with_libraries} to LIBS" >&6;}
3891 # Check whether --with-efence was given.
3892 if test "${with_efence+set}" = set; then :
3893 withval=$with_efence; case $with_efence in
3894 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: Sudo will link with -lefence (Electric Fence)" >&5
3895 $as_echo "$as_me: Sudo will link with -lefence (Electric Fence)" >&6;}
3896 LIBS="${LIBS} -lefence"
3897 if test -f /usr/local/lib/libefence.a; then
3898 with_libpath="${with_libpath} /usr/local/lib"
3902 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&5
3903 $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&2;}
3910 # Check whether --with-csops was given.
3911 if test "${with_csops+set}" = set; then :
3912 withval=$with_csops; case $with_csops in
3913 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: Adding CSOps standard options" >&5
3914 $as_echo "$as_me: Adding CSOps standard options" >&6;}
3918 with_classic_insults=yes
3919 with_csops_insults=yes
3922 : ${mansectform='5'}
3925 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&5
3926 $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&2;}
3933 # Check whether --with-passwd was given.
3934 if test "${with_passwd+set}" = set; then :
3935 withval=$with_passwd; case $with_passwd in
3936 yes|no) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use shadow/passwd file authentication" >&5
3937 $as_echo_n "checking whether to use shadow/passwd file authentication... " >&6; }
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_passwd" >&5
3939 $as_echo "$with_passwd" >&6; }
3941 test "$with_passwd" = "yes" && AUTH_REG="$AUTH_REG passwd"
3943 *) as_fn_error "\"Sorry, --with-passwd does not take an argument.\"" "$LINENO" 5
3950 # Check whether --with-skey was given.
3951 if test "${with_skey+set}" = set; then :
3952 withval=$with_skey; case $with_skey in
3954 *) $as_echo "#define HAVE_SKEY 1" >>confdefs.h
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try S/Key authentication" >&5
3957 $as_echo_n "checking whether to try S/Key authentication... " >&6; }
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3959 $as_echo "yes" >&6; }
3960 AUTH_REG="$AUTH_REG S/Key"
3967 # Check whether --with-opie was given.
3968 if test "${with_opie+set}" = set; then :
3969 withval=$with_opie; case $with_opie in
3971 *) $as_echo "#define HAVE_OPIE 1" >>confdefs.h
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try NRL OPIE authentication" >&5
3974 $as_echo_n "checking whether to try NRL OPIE authentication... " >&6; }
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3976 $as_echo "yes" >&6; }
3977 AUTH_REG="$AUTH_REG NRL_OPIE"
3984 # Check whether --with-long-otp-prompt was given.
3985 if test "${with_long_otp_prompt+set}" = set; then :
3986 withval=$with_long_otp_prompt; case $with_long_otp_prompt in
3987 yes) $as_echo "#define LONG_OTP_PROMPT 1" >>confdefs.h
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use a two line prompt for OTP authentication" >&5
3990 $as_echo_n "checking whether to use a two line prompt for OTP authentication... " >&6; }
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3992 $as_echo "yes" >&6; }
3995 no) long_otp_prompt=off
3997 *) as_fn_error "\"--with-long-otp-prompt does not take an argument.\"" "$LINENO" 5
4004 # Check whether --with-SecurID was given.
4005 if test "${with_SecurID+set}" = set; then :
4006 withval=$with_SecurID; case $with_SecurID in
4008 *) $as_echo "#define HAVE_SECURID 1" >>confdefs.h
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use SecurID for authentication" >&5
4011 $as_echo_n "checking whether to use SecurID for authentication... " >&6; }
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4013 $as_echo "yes" >&6; }
4014 AUTH_EXCL="$AUTH_EXCL SecurID"
4021 # Check whether --with-fwtk was given.
4022 if test "${with_fwtk+set}" = set; then :
4023 withval=$with_fwtk; case $with_fwtk in
4025 *) $as_echo "#define HAVE_FWTK 1" >>confdefs.h
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use FWTK AuthSRV for authentication" >&5
4028 $as_echo_n "checking whether to use FWTK AuthSRV for authentication... " >&6; }
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4030 $as_echo "yes" >&6; }
4031 AUTH_EXCL="$AUTH_EXCL FWTK"
4038 # Check whether --with-kerb4 was given.
4039 if test "${with_kerb4+set}" = set; then :
4040 withval=$with_kerb4; case $with_kerb4 in
4042 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try kerberos IV authentication" >&5
4043 $as_echo_n "checking whether to try kerberos IV authentication... " >&6; }
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4045 $as_echo "yes" >&6; }
4046 AUTH_REG="$AUTH_REG kerb4"
4053 # Check whether --with-kerb5 was given.
4054 if test "${with_kerb5+set}" = set; then :
4055 withval=$with_kerb5; case $with_kerb5 in
4057 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try Kerberos V authentication" >&5
4058 $as_echo_n "checking whether to try Kerberos V authentication... " >&6; }
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4060 $as_echo "yes" >&6; }
4061 AUTH_REG="$AUTH_REG kerb5"
4068 # Check whether --with-aixauth was given.
4069 if test "${with_aixauth+set}" = set; then :
4070 withval=$with_aixauth; case $with_aixauth in
4071 yes) AUTH_EXCL="$AUTH_EXCL AIX_AUTH";;
4073 *) as_fn_error "\"--with-aixauth does not take an argument.\"" "$LINENO" 5
4080 # Check whether --with-pam was given.
4081 if test "${with_pam+set}" = set; then :
4082 withval=$with_pam; case $with_pam in
4083 yes) AUTH_EXCL="$AUTH_EXCL PAM";;
4085 *) as_fn_error "\"--with-pam does not take an argument.\"" "$LINENO" 5
4092 # Check whether --with-AFS was given.
4093 if test "${with_AFS+set}" = set; then :
4094 withval=$with_AFS; case $with_AFS in
4095 yes) $as_echo "#define HAVE_AFS 1" >>confdefs.h
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try AFS (kerberos) authentication" >&5
4098 $as_echo_n "checking whether to try AFS (kerberos) authentication... " >&6; }
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4100 $as_echo "yes" >&6; }
4101 AUTH_REG="$AUTH_REG AFS"
4104 *) as_fn_error "\"--with-AFS does not take an argument.\"" "$LINENO" 5
4111 # Check whether --with-DCE was given.
4112 if test "${with_DCE+set}" = set; then :
4113 withval=$with_DCE; case $with_DCE in
4114 yes) $as_echo "#define HAVE_DCE 1" >>confdefs.h
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try DCE (kerberos) authentication" >&5
4117 $as_echo_n "checking whether to try DCE (kerberos) authentication... " >&6; }
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4119 $as_echo "yes" >&6; }
4120 AUTH_REG="$AUTH_REG DCE"
4123 *) as_fn_error "\"--with-DCE does not take an argument.\"" "$LINENO" 5
4130 # Check whether --with-logincap was given.
4131 if test "${with_logincap+set}" = set; then :
4132 withval=$with_logincap; case $with_logincap in
4134 *) as_fn_error "\"--with-logincap does not take an argument.\"" "$LINENO" 5
4141 # Check whether --with-bsdauth was given.
4142 if test "${with_bsdauth+set}" = set; then :
4143 withval=$with_bsdauth; case $with_bsdauth in
4144 yes) AUTH_EXCL="$AUTH_EXCL BSD_AUTH";;
4146 *) as_fn_error "\"--with-bsdauth does not take an argument.\"" "$LINENO" 5
4153 # Check whether --with-project was given.
4154 if test "${with_project+set}" = set; then :
4155 withval=$with_project; case $with_project in
4158 *) as_fn_error "\"--with-project does not take an argument.\"" "$LINENO" 5
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to lecture users the first time they run sudo" >&5
4165 $as_echo_n "checking whether to lecture users the first time they run sudo... " >&6; }
4167 # Check whether --with-lecture was given.
4168 if test "${with_lecture+set}" = set; then :
4169 withval=$with_lecture; case $with_lecture in
4170 yes|short|always) lecture=once
4172 no|none|never) lecture=never
4174 *) as_fn_error "\"unknown argument to --with-lecture: $with_lecture\"" "$LINENO" 5
4179 if test "$lecture" = "once"; then
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4181 $as_echo "yes" >&6; }
4183 $as_echo "#define NO_LECTURE 1" >>confdefs.h
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4186 $as_echo "no" >&6; }
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sudo should log via syslog or to a file by default" >&5
4190 $as_echo_n "checking whether sudo should log via syslog or to a file by default... " >&6; }
4192 # Check whether --with-logging was given.
4193 if test "${with_logging+set}" = set; then :
4194 withval=$with_logging; case $with_logging in
4195 yes) as_fn_error "\"must give --with-logging an argument.\"" "$LINENO" 5
4197 no) as_fn_error "\"--without-logging not supported.\"" "$LINENO" 5
4199 syslog) $as_echo "#define LOGGING SLOG_SYSLOG" >>confdefs.h
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: syslog" >&5
4202 $as_echo "syslog" >&6; }
4204 file) $as_echo "#define LOGGING SLOG_FILE" >>confdefs.h
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file" >&5
4207 $as_echo "file" >&6; }
4209 both) $as_echo "#define LOGGING SLOG_BOTH" >>confdefs.h
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: both" >&5
4212 $as_echo "both" >&6; }
4214 *) as_fn_error "\"unknown argument to --with-logging: $with_logging\"" "$LINENO" 5
4218 $as_echo "#define LOGGING SLOG_SYSLOG" >>confdefs.h
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: syslog" >&5
4220 $as_echo "syslog" >&6; }
4225 # Check whether --with-logfac was given.
4226 if test "${with_logfac+set}" = set; then :
4227 withval=$with_logfac; case $with_logfac in
4228 yes) as_fn_error "\"must give --with-logfac an argument.\"" "$LINENO" 5
4230 no) as_fn_error "\"--without-logfac not supported.\"" "$LINENO" 5
4232 authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7) logfac=$with_logfac
4234 *) as_fn_error "\"$with_logfac is not a supported syslog facility.\"" "$LINENO" 5
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking at which syslog priority to log commands" >&5
4241 $as_echo_n "checking at which syslog priority to log commands... " >&6; }
4243 # Check whether --with-goodpri was given.
4244 if test "${with_goodpri+set}" = set; then :
4245 withval=$with_goodpri; case $with_goodpri in
4246 yes) as_fn_error "\"must give --with-goodpri an argument.\"" "$LINENO" 5
4248 no) as_fn_error "\"--without-goodpri not supported.\"" "$LINENO" 5
4250 alert|crit|debug|emerg|err|info|notice|warning)
4251 goodpri=$with_goodpri
4253 *) as_fn_error "\"$with_goodpri is not a supported syslog priority.\"" "$LINENO" 5
4259 cat >>confdefs.h <<_ACEOF
4260 #define PRI_SUCCESS "$goodpri"
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $goodpri" >&5
4264 $as_echo "$goodpri" >&6; }
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking at which syslog priority to log failures" >&5
4267 $as_echo_n "checking at which syslog priority to log failures... " >&6; }
4269 # Check whether --with-badpri was given.
4270 if test "${with_badpri+set}" = set; then :
4271 withval=$with_badpri; case $with_badpri in
4272 yes) as_fn_error "\"must give --with-badpri an argument.\"" "$LINENO" 5
4274 no) as_fn_error "\"--without-badpri not supported.\"" "$LINENO" 5
4276 alert|crit|debug|emerg|err|info|notice|warning)
4279 *) as_fn_error "$with_badpri is not a supported syslog priority." "$LINENO" 5
4285 cat >>confdefs.h <<_ACEOF
4286 #define PRI_FAILURE "$badpri"
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $badpri" >&5
4290 $as_echo "$badpri" >&6; }
4293 # Check whether --with-logpath was given.
4294 if test "${with_logpath+set}" = set; then :
4295 withval=$with_logpath; case $with_logpath in
4296 yes) as_fn_error "\"must give --with-logpath an argument.\"" "$LINENO" 5
4298 no) as_fn_error "\"--without-logpath not supported.\"" "$LINENO" 5
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how long a line in the log file should be" >&5
4305 $as_echo_n "checking how long a line in the log file should be... " >&6; }
4307 # Check whether --with-loglen was given.
4308 if test "${with_loglen+set}" = set; then :
4309 withval=$with_loglen; case $with_loglen in
4310 yes) as_fn_error "\"must give --with-loglen an argument.\"" "$LINENO" 5
4312 no) as_fn_error "\"--without-loglen not supported.\"" "$LINENO" 5
4314 [0-9]*) loglen=$with_loglen
4316 *) as_fn_error "\"you must enter a number, not $with_loglen\"" "$LINENO" 5
4322 cat >>confdefs.h <<_ACEOF
4323 #define MAXLOGFILELEN $loglen
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $loglen" >&5
4327 $as_echo "$loglen" >&6; }
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sudo should ignore '.' or '' in \$PATH" >&5
4330 $as_echo_n "checking whether sudo should ignore '.' or '' in \$PATH... " >&6; }
4332 # Check whether --with-ignore-dot was given.
4333 if test "${with_ignore_dot+set}" = set; then :
4334 withval=$with_ignore_dot; case $with_ignore_dot in
4339 *) as_fn_error "\"--with-ignore-dot does not take an argument.\"" "$LINENO" 5
4344 if test "$ignore_dot" = "on"; then
4345 $as_echo "#define IGNORE_DOT_PATH 1" >>confdefs.h
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4348 $as_echo "yes" >&6; }
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4351 $as_echo "no" >&6; }
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when a user is not in sudoers" >&5
4355 $as_echo_n "checking whether to send mail when a user is not in sudoers... " >&6; }
4357 # Check whether --with-mail-if-no-user was given.
4358 if test "${with_mail_if_no_user+set}" = set; then :
4359 withval=$with_mail_if_no_user; case $with_mail_if_no_user in
4360 yes) mail_no_user=on
4362 no) mail_no_user=off
4364 *) as_fn_error "\"--with-mail-if-no-user does not take an argument.\"" "$LINENO" 5
4369 if test "$mail_no_user" = "on"; then
4370 $as_echo "#define SEND_MAIL_WHEN_NO_USER 1" >>confdefs.h
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4373 $as_echo "yes" >&6; }
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4376 $as_echo "no" >&6; }
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when user listed but not for this host" >&5
4380 $as_echo_n "checking whether to send mail when user listed but not for this host... " >&6; }
4382 # Check whether --with-mail-if-no-host was given.
4383 if test "${with_mail_if_no_host+set}" = set; then :
4384 withval=$with_mail_if_no_host; case $with_mail_if_no_host in
4385 yes) mail_no_host=on
4387 no) mail_no_host=off
4389 *) as_fn_error "\"--with-mail-if-no-host does not take an argument.\"" "$LINENO" 5
4394 if test "$mail_no_host" = "on"; then
4395 $as_echo "#define SEND_MAIL_WHEN_NO_HOST 1" >>confdefs.h
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4398 $as_echo "yes" >&6; }
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4401 $as_echo "no" >&6; }
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when a user tries a disallowed command" >&5
4405 $as_echo_n "checking whether to send mail when a user tries a disallowed command... " >&6; }
4407 # Check whether --with-mail-if-noperms was given.
4408 if test "${with_mail_if_noperms+set}" = set; then :
4409 withval=$with_mail_if_noperms; case $with_mail_if_noperms in
4410 yes) mail_noperms=on
4412 no) mail_noperms=off
4414 *) as_fn_error "\"--with-mail-if-noperms does not take an argument.\"" "$LINENO" 5
4419 if test "$mail_noperms" = "on"; then
4420 $as_echo "#define SEND_MAIL_WHEN_NOT_OK 1" >>confdefs.h
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4423 $as_echo "yes" >&6; }
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4426 $as_echo "no" >&6; }
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking who should get the mail that sudo sends" >&5
4430 $as_echo_n "checking who should get the mail that sudo sends... " >&6; }
4432 # Check whether --with-mailto was given.
4433 if test "${with_mailto+set}" = set; then :
4434 withval=$with_mailto; case $with_mailto in
4435 yes) as_fn_error "\"must give --with-mailto an argument.\"" "$LINENO" 5
4437 no) as_fn_error "\"--without-mailto not supported.\"" "$LINENO" 5
4439 *) mailto=$with_mailto
4445 cat >>confdefs.h <<_ACEOF
4446 #define MAILTO "$mailto"
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mailto" >&5
4450 $as_echo "$mailto" >&6; }
4453 # Check whether --with-mailsubject was given.
4454 if test "${with_mailsubject+set}" = set; then :
4455 withval=$with_mailsubject; case $with_mailsubject in
4456 yes) as_fn_error "\"must give --with-mailsubject an argument.\"" "$LINENO" 5
4458 no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-mailsubject not supported." >&5
4459 $as_echo "$as_me: WARNING: Sorry, --without-mailsubject not supported." >&2;}
4461 *) mailsub="$with_mailsubject"
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sudo mail subject" >&5
4463 $as_echo_n "checking sudo mail subject... " >&6; }
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using alert mail subject: $mailsub" >&5
4465 $as_echo "Using alert mail subject: $mailsub" >&6; }
4471 cat >>confdefs.h <<_ACEOF
4472 #define MAILSUBJECT "$mailsub"
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bad password prompt" >&5
4477 $as_echo_n "checking for bad password prompt... " >&6; }
4479 # Check whether --with-passprompt was given.
4480 if test "${with_passprompt+set}" = set; then :
4481 withval=$with_passprompt; case $with_passprompt in
4482 yes) as_fn_error "\"must give --with-passprompt an argument.\"" "$LINENO" 5
4484 no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-passprompt not supported." >&5
4485 $as_echo "$as_me: WARNING: Sorry, --without-passprompt not supported." >&2;}
4487 *) passprompt="$with_passprompt"
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $passprompt" >&5
4492 $as_echo "$passprompt" >&6; }
4494 cat >>confdefs.h <<_ACEOF
4495 #define PASSPROMPT "$passprompt"
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bad password message" >&5
4500 $as_echo_n "checking for bad password message... " >&6; }
4502 # Check whether --with-badpass-message was given.
4503 if test "${with_badpass_message+set}" = set; then :
4504 withval=$with_badpass_message; case $with_badpass_message in
4505 yes) as_fn_error "\"Must give --with-badpass-message an argument.\"" "$LINENO" 5
4507 no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-badpass-message not supported." >&5
4508 $as_echo "$as_me: WARNING: Sorry, --without-badpass-message not supported." >&2;}
4510 *) badpass_message="$with_badpass_message"
4516 cat >>confdefs.h <<_ACEOF
4517 #define INCORRECT_PASSWORD "$badpass_message"
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $badpass_message" >&5
4521 $as_echo "$badpass_message" >&6; }
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to expect fully qualified hosts in sudoers" >&5
4524 $as_echo_n "checking whether to expect fully qualified hosts in sudoers... " >&6; }
4526 # Check whether --with-fqdn was given.
4527 if test "${with_fqdn+set}" = set; then :
4528 withval=$with_fqdn; case $with_fqdn in
4533 *) as_fn_error "\"--with-fqdn does not take an argument.\"" "$LINENO" 5
4538 if test "$fqdn" = "on"; then
4539 $as_echo "#define FQDN 1" >>confdefs.h
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4542 $as_echo "yes" >&6; }
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4545 $as_echo "no" >&6; }
4549 # Check whether --with-timedir was given.
4550 if test "${with_timedir+set}" = set; then :
4551 withval=$with_timedir; case $with_timedir in
4552 yes) as_fn_error "\"must give --with-timedir an argument.\"" "$LINENO" 5
4554 no) as_fn_error "\"--without-timedir not supported.\"" "$LINENO" 5
4561 # Check whether --with-iologdir was given.
4562 if test "${with_iologdir+set}" = set; then :
4563 withval=$with_iologdir; case $with_iologdir in
4565 no) as_fn_error "\"--without-iologdir not supported.\"" "$LINENO" 5
4572 # Check whether --with-sendmail was given.
4573 if test "${with_sendmail+set}" = set; then :
4574 withval=$with_sendmail; case $with_sendmail in
4575 yes) with_sendmail=""
4578 *) cat >>confdefs.h <<EOF
4579 #define _PATH_SUDO_SENDMAIL "$with_sendmail"
4588 # Check whether --with-sudoers-mode was given.
4589 if test "${with_sudoers_mode+set}" = set; then :
4590 withval=$with_sudoers_mode; case $with_sudoers_mode in
4591 yes) as_fn_error "\"must give --with-sudoers-mode an argument.\"" "$LINENO" 5
4593 no) as_fn_error "\"--without-sudoers-mode not supported.\"" "$LINENO" 5
4595 [1-9]*) SUDOERS_MODE=0${with_sudoers_mode}
4597 0*) SUDOERS_MODE=$with_sudoers_mode
4599 *) as_fn_error "\"you must use an octal mode, not a name.\"" "$LINENO" 5
4606 # Check whether --with-sudoers-uid was given.
4607 if test "${with_sudoers_uid+set}" = set; then :
4608 withval=$with_sudoers_uid; case $with_sudoers_uid in
4609 yes) as_fn_error "\"must give --with-sudoers-uid an argument.\"" "$LINENO" 5
4611 no) as_fn_error "\"--without-sudoers-uid not supported.\"" "$LINENO" 5
4613 [0-9]*) SUDOERS_UID=$with_sudoers_uid
4615 *) as_fn_error "\"you must use an unsigned numeric uid, not a name.\"" "$LINENO" 5
4622 # Check whether --with-sudoers-gid was given.
4623 if test "${with_sudoers_gid+set}" = set; then :
4624 withval=$with_sudoers_gid; case $with_sudoers_gid in
4625 yes) as_fn_error "\"must give --with-sudoers-gid an argument.\"" "$LINENO" 5
4627 no) as_fn_error "\"--without-sudoers-gid not supported.\"" "$LINENO" 5
4629 [0-9]*) SUDOERS_GID=$with_sudoers_gid
4631 *) as_fn_error "\"you must use an unsigned numeric gid, not a name.\"" "$LINENO" 5
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umask programs should be run with" >&5
4638 $as_echo_n "checking for umask programs should be run with... " >&6; }
4640 # Check whether --with-umask was given.
4641 if test "${with_umask+set}" = set; then :
4642 withval=$with_umask; case $with_umask in
4643 yes) as_fn_error "\"must give --with-umask an argument.\"" "$LINENO" 5
4647 [0-9]*) sudo_umask=$with_umask
4649 *) as_fn_error "\"you must enter a numeric mask.\"" "$LINENO" 5
4655 cat >>confdefs.h <<_ACEOF
4656 #define SUDO_UMASK $sudo_umask
4659 if test "$sudo_umask" = "0777"; then
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: user" >&5
4661 $as_echo "user" >&6; }
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_umask" >&5
4664 $as_echo "$sudo_umask" >&6; }
4668 # Check whether --with-umask-override was given.
4669 if test "${with_umask_override+set}" = set; then :
4670 withval=$with_umask_override; case $with_umask_override in
4671 yes) $as_echo "#define UMASK_OVERRIDE 1" >>confdefs.h
4675 no) umask_override=off
4677 *) as_fn_error "\"--with-umask-override does not take an argument.\"" "$LINENO" 5
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default user to run commands as" >&5
4684 $as_echo_n "checking for default user to run commands as... " >&6; }
4686 # Check whether --with-runas-default was given.
4687 if test "${with_runas_default+set}" = set; then :
4688 withval=$with_runas_default; case $with_runas_default in
4689 yes) as_fn_error "\"must give --with-runas-default an argument.\"" "$LINENO" 5
4691 no) as_fn_error "\"--without-runas-default not supported.\"" "$LINENO" 5
4693 *) runas_default="$with_runas_default"
4699 cat >>confdefs.h <<_ACEOF
4700 #define RUNAS_DEFAULT "$runas_default"
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $runas_default" >&5
4704 $as_echo "$runas_default" >&6; }
4707 # Check whether --with-exempt was given.
4708 if test "${with_exempt+set}" = set; then :
4709 withval=$with_exempt; case $with_exempt in
4710 yes) as_fn_error "\"must give --with-exempt an argument.\"" "$LINENO" 5
4712 no) as_fn_error "\"--without-exempt not supported.\"" "$LINENO" 5
4715 cat >>confdefs.h <<_ACEOF
4716 #define EXEMPTGROUP "$with_exempt"
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for group to be exempt from password" >&5
4720 $as_echo_n "checking for group to be exempt from password... " >&6; }
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_exempt" >&5
4722 $as_echo "$with_exempt" >&6; }
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for editor that visudo should use" >&5
4729 $as_echo_n "checking for editor that visudo should use... " >&6; }
4731 # Check whether --with-editor was given.
4732 if test "${with_editor+set}" = set; then :
4733 withval=$with_editor; case $with_editor in
4734 yes) as_fn_error "\"must give --with-editor an argument.\"" "$LINENO" 5
4736 no) as_fn_error "\"--without-editor not supported.\"" "$LINENO" 5
4739 cat >>confdefs.h <<_ACEOF
4740 #define EDITOR "$with_editor"
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_editor" >&5
4744 $as_echo "$with_editor" >&6; }
4745 editor="$with_editor"
4749 $as_echo "#define EDITOR _PATH_VI" >>confdefs.h
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: vi" >&5
4751 $as_echo "vi" >&6; }
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to obey EDITOR and VISUAL environment variables" >&5
4756 $as_echo_n "checking whether to obey EDITOR and VISUAL environment variables... " >&6; }
4758 # Check whether --with-env-editor was given.
4759 if test "${with_env_editor+set}" = set; then :
4760 withval=$with_env_editor; case $with_env_editor in
4765 *) as_fn_error "\"--with-env-editor does not take an argument.\"" "$LINENO" 5
4770 if test "$env_editor" = "on"; then
4771 $as_echo "#define ENV_EDITOR 1" >>confdefs.h
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4774 $as_echo "yes" >&6; }
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4777 $as_echo "no" >&6; }
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of tries a user gets to enter their password" >&5
4781 $as_echo_n "checking number of tries a user gets to enter their password... " >&6; }
4783 # Check whether --with-passwd-tries was given.
4784 if test "${with_passwd_tries+set}" = set; then :
4785 withval=$with_passwd_tries; case $with_passwd_tries in
4787 no) as_fn_error "\"--without-editor not supported.\"" "$LINENO" 5
4789 [1-9]*) passwd_tries=$with_passwd_tries
4791 *) as_fn_error "\"you must enter the numer of tries, > 0\"" "$LINENO" 5
4797 cat >>confdefs.h <<_ACEOF
4798 #define TRIES_FOR_PASSWORD $passwd_tries
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $passwd_tries" >&5
4802 $as_echo "$passwd_tries" >&6; }
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking time in minutes after which sudo will ask for a password again" >&5
4805 $as_echo_n "checking time in minutes after which sudo will ask for a password again... " >&6; }
4807 # Check whether --with-timeout was given.
4808 if test "${with_timeout+set}" = set; then :
4809 withval=$with_timeout; case $with_timeout in
4813 [0-9]*) timeout=$with_timeout
4815 *) as_fn_error "\"you must enter the numer of minutes.\"" "$LINENO" 5
4821 cat >>confdefs.h <<_ACEOF
4822 #define TIMEOUT $timeout
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $timeout" >&5
4826 $as_echo "$timeout" >&6; }
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking time in minutes after the password prompt will time out" >&5
4829 $as_echo_n "checking time in minutes after the password prompt will time out... " >&6; }
4831 # Check whether --with-password-timeout was given.
4832 if test "${with_password_timeout+set}" = set; then :
4833 withval=$with_password_timeout; case $with_password_timeout in
4835 no) password_timeout=0
4837 [0-9]*) password_timeout=$with_password_timeout
4839 *) as_fn_error "\"you must enter the numer of minutes.\"" "$LINENO" 5
4845 cat >>confdefs.h <<_ACEOF
4846 #define PASSWORD_TIMEOUT $password_timeout
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $password_timeout" >&5
4850 $as_echo "$password_timeout" >&6; }
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use per-tty ticket files" >&5
4853 $as_echo_n "checking whether to use per-tty ticket files... " >&6; }
4855 # Check whether --with-tty-tickets was given.
4856 if test "${with_tty_tickets+set}" = set; then :
4857 withval=$with_tty_tickets; case $with_tty_tickets in
4862 *) as_fn_error "\"--with-tty-tickets does not take an argument.\"" "$LINENO" 5
4867 if test "$tty_tickets" = "off"; then
4868 $as_echo "#define NO_TTY_TICKETS 1" >>confdefs.h
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4871 $as_echo "no" >&6; }
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4874 $as_echo "yes" >&6; }
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include insults" >&5
4878 $as_echo_n "checking whether to include insults... " >&6; }
4880 # Check whether --with-insults was given.
4881 if test "${with_insults+set}" = set; then :
4882 withval=$with_insults; case $with_insults in
4884 with_classic_insults=yes
4885 with_csops_insults=yes
4887 disabled) insults=off
4888 with_classic_insults=yes
4889 with_csops_insults=yes
4893 *) as_fn_error "\"--with-insults does not take an argument.\"" "$LINENO" 5
4898 if test "$insults" = "on"; then
4899 $as_echo "#define USE_INSULTS 1" >>confdefs.h
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4902 $as_echo "yes" >&6; }
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4905 $as_echo "no" >&6; }
4909 # Check whether --with-all-insults was given.
4910 if test "${with_all_insults+set}" = set; then :
4911 withval=$with_all_insults; case $with_all_insults in
4912 yes) with_classic_insults=yes
4913 with_csops_insults=yes
4914 with_hal_insults=yes
4915 with_goons_insults=yes
4918 *) as_fn_error "\"--with-all-insults does not take an argument.\"" "$LINENO" 5
4925 # Check whether --with-classic-insults was given.
4926 if test "${with_classic_insults+set}" = set; then :
4927 withval=$with_classic_insults; case $with_classic_insults in
4928 yes) $as_echo "#define CLASSIC_INSULTS 1" >>confdefs.h
4932 *) as_fn_error "\"--with-classic-insults does not take an argument.\"" "$LINENO" 5
4939 # Check whether --with-csops-insults was given.
4940 if test "${with_csops_insults+set}" = set; then :
4941 withval=$with_csops_insults; case $with_csops_insults in
4942 yes) $as_echo "#define CSOPS_INSULTS 1" >>confdefs.h
4946 *) as_fn_error "\"--with-csops-insults does not take an argument.\"" "$LINENO" 5
4953 # Check whether --with-hal-insults was given.
4954 if test "${with_hal_insults+set}" = set; then :
4955 withval=$with_hal_insults; case $with_hal_insults in
4956 yes) $as_echo "#define HAL_INSULTS 1" >>confdefs.h
4960 *) as_fn_error "\"--with-hal-insults does not take an argument.\"" "$LINENO" 5
4967 # Check whether --with-goons-insults was given.
4968 if test "${with_goons_insults+set}" = set; then :
4969 withval=$with_goons_insults; case $with_goons_insults in
4970 yes) $as_echo "#define GOONS_INSULTS 1" >>confdefs.h
4974 *) as_fn_error "\"--with-goons-insults does not take an argument.\"" "$LINENO" 5
4981 # Check whether --with-nsswitch was given.
4982 if test "${with_nsswitch+set}" = set; then :
4983 withval=$with_nsswitch; case $with_nsswitch in
4985 yes) with_nsswitch="/etc/nsswitch.conf"
4993 # Check whether --with-ldap was given.
4994 if test "${with_ldap+set}" = set; then :
4995 withval=$with_ldap; case $with_ldap in
4997 *) $as_echo "#define HAVE_LDAP 1" >>confdefs.h
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sudoers from LDAP" >&5
5000 $as_echo_n "checking whether to use sudoers from LDAP... " >&6; }
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5002 $as_echo "yes" >&6; }
5009 # Check whether --with-ldap-conf-file was given.
5010 if test "${with_ldap_conf_file+set}" = set; then :
5011 withval=$with_ldap_conf_file;
5014 test -n "$with_ldap_conf_file" && ldap_conf="$with_ldap_conf_file"
5015 cat >>confdefs.h <<EOF
5016 #define _PATH_LDAP_CONF "$ldap_conf"
5021 # Check whether --with-ldap-secret-file was given.
5022 if test "${with_ldap_secret_file+set}" = set; then :
5023 withval=$with_ldap_secret_file;
5026 test -n "$with_ldap_secret_file" && ldap_secret="$with_ldap_secret_file"
5027 cat >>confdefs.h <<EOF
5028 #define _PATH_LDAP_SECRET "$ldap_secret"
5033 # Check whether --with-pc-insults was given.
5034 if test "${with_pc_insults+set}" = set; then :
5035 withval=$with_pc_insults; case $with_pc_insults in
5036 yes) $as_echo "#define PC_INSULTS 1" >>confdefs.h
5040 *) as_fn_error "\"--with-pc-insults does not take an argument.\"" "$LINENO" 5
5046 if test "$insults" = "on"; then
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which insult sets to include" >&5
5048 $as_echo_n "checking which insult sets to include... " >&6; }
5050 test "$with_goons_insults" = "yes" && i="goons ${i}"
5051 test "$with_hal_insults" = "yes" && i="hal ${i}"
5052 test "$with_csops_insults" = "yes" && i="csops ${i}"
5053 test "$with_classic_insults" = "yes" && i="classic ${i}"
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $i" >&5
5055 $as_echo "$i" >&6; }
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to override the user's path" >&5
5059 $as_echo_n "checking whether to override the user's path... " >&6; }
5061 # Check whether --with-secure-path was given.
5062 if test "${with_secure_path+set}" = set; then :
5063 withval=$with_secure_path; case $with_secure_path in
5064 yes) with_secure_path="/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc"
5065 cat >>confdefs.h <<_ACEOF
5066 #define SECURE_PATH "$with_secure_path"
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_secure_path" >&5
5070 $as_echo "$with_secure_path" >&6; }
5071 secure_path="set to $with_secure_path"
5073 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5074 $as_echo "no" >&6; }
5076 *) cat >>confdefs.h <<_ACEOF
5077 #define SECURE_PATH "$with_secure_path"
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_secure_path" >&5
5081 $as_echo "$with_secure_path" >&6; }
5082 secure_path="set to F<$with_secure_path>"
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5087 $as_echo "no" >&6; }
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to get ip addresses from the network interfaces" >&5
5092 $as_echo_n "checking whether to get ip addresses from the network interfaces... " >&6; }
5094 # Check whether --with-interfaces was given.
5095 if test "${with_interfaces+set}" = set; then :
5096 withval=$with_interfaces; case $with_interfaces in
5097 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5098 $as_echo "yes" >&6; }
5100 no) $as_echo "#define STUB_LOAD_INTERFACES 1" >>confdefs.h
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5103 $as_echo "no" >&6; }
5105 *) as_fn_error "\"--with-interfaces does not take an argument.\"" "$LINENO" 5
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5110 $as_echo "yes" >&6; }
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stow should be used" >&5
5115 $as_echo_n "checking whether stow should be used... " >&6; }
5117 # Check whether --with-stow was given.
5118 if test "${with_stow+set}" = set; then :
5119 withval=$with_stow; case $with_stow in
5120 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5121 $as_echo "yes" >&6; }
5122 $as_echo "#define USE_STOW 1" >>confdefs.h
5125 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5126 $as_echo "no" >&6; }
5128 *) as_fn_error "\"--with-stow does not take an argument.\"" "$LINENO" 5
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5133 $as_echo "no" >&6; }
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an askpass helper" >&5
5138 $as_echo_n "checking whether to use an askpass helper... " >&6; }
5140 # Check whether --with-askpass was given.
5141 if test "${with_askpass+set}" = set; then :
5142 withval=$with_askpass; case $with_askpass in
5143 yes) as_fn_error "\"--with-askpass takes a path as an argument.\"" "$LINENO" 5
5146 *) cat >>confdefs.h <<EOF
5147 #define _PATH_SUDO_ASKPASS "$with_askpass"
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5154 $as_echo "no" >&6; }
5159 # Check whether --with-plugindir was given.
5160 if test "${with_plugindir+set}" = set; then :
5161 withval=$with_plugindir; case $with_plugindir in
5162 no) as_fn_error "\"illegal argument: --without-plugindir.\"" "$LINENO" 5
5167 with_plugindir="$libexecdir"
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to do user authentication by default" >&5
5173 $as_echo_n "checking whether to do user authentication by default... " >&6; }
5174 # Check whether --enable-authentication was given.
5175 if test "${enable_authentication+set}" = set; then :
5176 enableval=$enable_authentication; case "$enableval" in
5177 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5178 $as_echo "yes" >&6; }
5180 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5181 $as_echo "no" >&6; }
5182 $as_echo "#define NO_AUTHENTICATION 1" >>confdefs.h
5185 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5186 $as_echo "no" >&6; }
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&5
5188 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&2;}
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5194 $as_echo "yes" >&6; }
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable running the mailer as root" >&5
5199 $as_echo_n "checking whether to disable running the mailer as root... " >&6; }
5200 # Check whether --enable-root-mailer was given.
5201 if test "${enable_root_mailer+set}" = set; then :
5202 enableval=$enable_root_mailer; case "$enableval" in
5203 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5204 $as_echo "no" >&6; }
5206 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5207 $as_echo "yes" >&6; }
5208 $as_echo "#define NO_ROOT_MAILER 1" >>confdefs.h
5211 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5212 $as_echo "no" >&6; }
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&5
5214 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&2;}
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5220 $as_echo "no" >&6; }
5224 # Check whether --enable-setreuid was given.
5225 if test "${enable_setreuid+set}" = set; then :
5226 enableval=$enable_setreuid; case "$enableval" in
5227 no) SKIP_SETREUID=yes
5235 # Check whether --enable-setresuid was given.
5236 if test "${enable_setresuid+set}" = set; then :
5237 enableval=$enable_setresuid; case "$enableval" in
5238 no) SKIP_SETRESUID=yes
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable shadow password support" >&5
5247 $as_echo_n "checking whether to disable shadow password support... " >&6; }
5248 # Check whether --enable-shadow was given.
5249 if test "${enable_shadow+set}" = set; then :
5250 enableval=$enable_shadow; case "$enableval" in
5251 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5252 $as_echo "no" >&6; }
5254 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5255 $as_echo "yes" >&6; }
5258 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5259 $as_echo "no" >&6; }
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&5
5261 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&2;}
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5267 $as_echo "no" >&6; }
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether root should be allowed to use sudo" >&5
5272 $as_echo_n "checking whether root should be allowed to use sudo... " >&6; }
5273 # Check whether --enable-root-sudo was given.
5274 if test "${enable_root_sudo+set}" = set; then :
5275 enableval=$enable_root_sudo; case "$enableval" in
5276 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5277 $as_echo "yes" >&6; }
5279 no) $as_echo "#define NO_ROOT_SUDO 1" >>confdefs.h
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5282 $as_echo "no" >&6; }
5285 *) as_fn_error "\"--enable-root-sudo does not take an argument.\"" "$LINENO" 5
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5291 $as_echo "yes" >&6; }
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to log the hostname in the log file" >&5
5296 $as_echo_n "checking whether to log the hostname in the log file... " >&6; }
5297 # Check whether --enable-log-host was given.
5298 if test "${enable_log_host+set}" = set; then :
5299 enableval=$enable_log_host; case "$enableval" in
5300 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5301 $as_echo "yes" >&6; }
5302 $as_echo "#define HOST_IN_LOG 1" >>confdefs.h
5305 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5306 $as_echo "no" >&6; }
5308 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5309 $as_echo "no" >&6; }
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&5
5311 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&2;}
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5317 $as_echo "no" >&6; }
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to invoke a shell if sudo is given no arguments" >&5
5322 $as_echo_n "checking whether to invoke a shell if sudo is given no arguments... " >&6; }
5323 # Check whether --enable-noargs-shell was given.
5324 if test "${enable_noargs_shell+set}" = set; then :
5325 enableval=$enable_noargs_shell; case "$enableval" in
5326 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5327 $as_echo "yes" >&6; }
5328 $as_echo "#define SHELL_IF_NO_ARGS 1" >>confdefs.h
5331 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5332 $as_echo "no" >&6; }
5334 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5335 $as_echo "no" >&6; }
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&5
5337 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&2;}
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5343 $as_echo "no" >&6; }
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to set \$HOME to target user in shell mode" >&5
5348 $as_echo_n "checking whether to set \$HOME to target user in shell mode... " >&6; }
5349 # Check whether --enable-shell-sets-home was given.
5350 if test "${enable_shell_sets_home+set}" = set; then :
5351 enableval=$enable_shell_sets_home; case "$enableval" in
5352 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5353 $as_echo "yes" >&6; }
5354 $as_echo "#define SHELL_SETS_HOME 1" >>confdefs.h
5357 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5358 $as_echo "no" >&6; }
5360 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5361 $as_echo "no" >&6; }
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&5
5363 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&2;}
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5369 $as_echo "no" >&6; }
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable 'command not found' messages" >&5
5374 $as_echo_n "checking whether to disable 'command not found' messages... " >&6; }
5375 # Check whether --enable-path_info was given.
5376 if test "${enable_path_info+set}" = set; then :
5377 enableval=$enable_path_info; case "$enableval" in
5378 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5379 $as_echo "no" >&6; }
5381 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5382 $as_echo "yes" >&6; }
5383 $as_echo "#define DONT_LEAK_PATH_INFO 1" >>confdefs.h
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-path-info: $enableval" >&5
5390 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-path-info: $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 enable environment debugging" >&5
5401 $as_echo_n "checking whether to enable environment debugging... " >&6; }
5402 # Check whether --enable-env_debug was given.
5403 if test "${enable_env_debug+set}" = set; then :
5404 enableval=$enable_env_debug; case "$enableval" in
5405 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5406 $as_echo "yes" >&6; }
5407 $as_echo "#define ENV_DEBUG 1" >>confdefs.h
5410 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5411 $as_echo "no" >&6; }
5413 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5414 $as_echo "no" >&6; }
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&5
5416 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&2;}
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5422 $as_echo "no" >&6; }
5426 # Check whether --enable-zlib was given.
5427 if test "${enable_zlib+set}" = set; then :
5428 enableval=$enable_zlib;
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable environment resetting by default" >&5
5433 $as_echo_n "checking whether to enable environment resetting by default... " >&6; }
5434 # Check whether --enable-env_reset was given.
5435 if test "${enable_env_reset+set}" = set; then :
5436 enableval=$enable_env_reset; case "$enableval" in
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-env-reset: $enableval" >&5
5443 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-env-reset: $enableval" >&2;}
5449 if test "$env_reset" = "on"; then
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5451 $as_echo "yes" >&6; }
5452 $as_echo "#define ENV_RESET TRUE" >>confdefs.h
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5456 $as_echo "no" >&6; }
5457 $as_echo "#define ENV_RESET FALSE" >>confdefs.h
5461 # Check whether --enable-warnings was given.
5462 if test "${enable_warnings+set}" = set; then :
5463 enableval=$enable_warnings; case "$enableval" in
5464 yes) if test X"$with_devel" != X"yes" -a -n "$GCC"; then
5465 CFLAGS="${CFLAGS} -Wall"
5469 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-warnings: $enableval" >&5
5470 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-warnings: $enableval" >&2;}
5477 # Check whether --enable-admin-flag was given.
5478 if test "${enable_admin_flag+set}" = set; then :
5479 enableval=$enable_admin_flag; case "$enableval" in
5480 yes) $as_echo "#define USE_ADMIN_FLAG 1" >>confdefs.h
5484 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-admin-flag: $enableval" >&5
5485 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-admin-flag: $enableval" >&2;}
5493 # Check whether --with-selinux was given.
5494 if test "${with_selinux+set}" = set; then :
5495 withval=$with_selinux; case $with_selinux in
5496 yes) SELINUX_USAGE="[-r role] [-t type] "
5497 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
5499 SUDO_LIBS="${SUDO_LIBS} -lselinux"
5500 SUDO_OBJS="${SUDO_OBJS} selinux.o"
5501 PROGS="${PROGS} sesh"
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkeycreatecon in -lselinux" >&5
5504 $as_echo_n "checking for setkeycreatecon in -lselinux... " >&6; }
5505 if test "${ac_cv_lib_selinux_setkeycreatecon+set}" = set; then :
5506 $as_echo_n "(cached) " >&6
5508 ac_check_lib_save_LIBS=$LIBS
5509 LIBS="-lselinux $LIBS"
5510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5511 /* end confdefs.h. */
5513 /* Override any GCC internal prototype to avoid an error.
5514 Use char because int might match the return type of a GCC
5515 builtin and then its argument prototype would still apply. */
5519 char setkeycreatecon ();
5523 return setkeycreatecon ();
5528 if ac_fn_c_try_link "$LINENO"; then :
5529 ac_cv_lib_selinux_setkeycreatecon=yes
5531 ac_cv_lib_selinux_setkeycreatecon=no
5533 rm -f core conftest.err conftest.$ac_objext \
5534 conftest$ac_exeext conftest.$ac_ext
5535 LIBS=$ac_check_lib_save_LIBS
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setkeycreatecon" >&5
5538 $as_echo "$ac_cv_lib_selinux_setkeycreatecon" >&6; }
5539 if test "x$ac_cv_lib_selinux_setkeycreatecon" = x""yes; then :
5540 $as_echo "#define HAVE_SETKEYCREATECON 1" >>confdefs.h
5546 *) as_fn_error "\"--with-selinux does not take an argument.\"" "$LINENO" 5
5552 # Check whether --enable-gss_krb5_ccache_name was given.
5553 if test "${enable_gss_krb5_ccache_name+set}" = set; then :
5554 enableval=$enable_gss_krb5_ccache_name; check_gss_krb5_ccache_name=$enableval
5556 check_gss_krb5_ccache_name=no
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
5561 $as_echo_n "checking for library containing strerror... " >&6; }
5562 if test "${ac_cv_search_strerror+set}" = set; then :
5563 $as_echo_n "(cached) " >&6
5565 ac_func_search_save_LIBS=$LIBS
5566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5567 /* end confdefs.h. */
5569 /* Override any GCC internal prototype to avoid an error.
5570 Use char because int might match the return type of a GCC
5571 builtin and then its argument prototype would still apply. */
5584 for ac_lib in '' cposix; do
5585 if test -z "$ac_lib"; then
5586 ac_res="none required"
5589 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5591 if ac_fn_c_try_link "$LINENO"; then :
5592 ac_cv_search_strerror=$ac_res
5594 rm -f core conftest.err conftest.$ac_objext \
5596 if test "${ac_cv_search_strerror+set}" = set; then :
5600 if test "${ac_cv_search_strerror+set}" = set; then :
5603 ac_cv_search_strerror=no
5606 LIBS=$ac_func_search_save_LIBS
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
5609 $as_echo "$ac_cv_search_strerror" >&6; }
5610 ac_res=$ac_cv_search_strerror
5611 if test "$ac_res" != no; then :
5612 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5617 ac_cpp='$CPP $CPPFLAGS'
5618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5622 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5623 # On Suns, sometimes $CPP names a directory.
5624 if test -n "$CPP" && test -d "$CPP"; then
5627 if test -z "$CPP"; then
5628 if test "${ac_cv_prog_CPP+set}" = set; then :
5629 $as_echo_n "(cached) " >&6
5631 # Double quotes because CPP needs to be expanded
5632 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5635 for ac_c_preproc_warn_flag in '' yes
5637 # Use a header file that comes with gcc, so configuring glibc
5638 # with a fresh cross-compiler works.
5639 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5640 # <limits.h> exists even on freestanding compilers.
5641 # On the NeXT, cc -E runs the code through the compiler's parser,
5642 # not just through cpp. "Syntax error" is here to catch this case.
5643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5644 /* end confdefs.h. */
5646 # include <limits.h>
5648 # include <assert.h>
5652 if ac_fn_c_try_cpp "$LINENO"; then :
5655 # Broken: fails on valid input.
5658 rm -f conftest.err conftest.$ac_ext
5660 # OK, works on sane cases. Now check whether nonexistent headers
5661 # can be detected and how.
5662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5663 /* end confdefs.h. */
5664 #include <ac_nonexistent.h>
5666 if ac_fn_c_try_cpp "$LINENO"; then :
5667 # Broken: success on invalid input.
5670 # Passes both tests.
5674 rm -f conftest.err conftest.$ac_ext
5677 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5678 rm -f conftest.err conftest.$ac_ext
5679 if $ac_preproc_ok; then :
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5692 $as_echo "$CPP" >&6; }
5694 for ac_c_preproc_warn_flag in '' yes
5696 # Use a header file that comes with gcc, so configuring glibc
5697 # with a fresh cross-compiler works.
5698 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5699 # <limits.h> exists even on freestanding compilers.
5700 # On the NeXT, cc -E runs the code through the compiler's parser,
5701 # not just through cpp. "Syntax error" is here to catch this case.
5702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5703 /* end confdefs.h. */
5705 # include <limits.h>
5707 # include <assert.h>
5711 if ac_fn_c_try_cpp "$LINENO"; then :
5714 # Broken: fails on valid input.
5717 rm -f conftest.err conftest.$ac_ext
5719 # OK, works on sane cases. Now check whether nonexistent headers
5720 # can be detected and how.
5721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5722 /* end confdefs.h. */
5723 #include <ac_nonexistent.h>
5725 if ac_fn_c_try_cpp "$LINENO"; then :
5726 # Broken: success on invalid input.
5729 # Passes both tests.
5733 rm -f conftest.err conftest.$ac_ext
5736 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5737 rm -f conftest.err conftest.$ac_ext
5738 if $ac_preproc_ok; then :
5741 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5742 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5743 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5744 See \`config.log' for more details." "$LINENO" 5; }
5748 ac_cpp='$CPP $CPPFLAGS'
5749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5753 if test -n "$ac_tool_prefix"; then
5754 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5755 set dummy ${ac_tool_prefix}ar; ac_word=$2
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5757 $as_echo_n "checking for $ac_word... " >&6; }
5758 if test "${ac_cv_prog_AR+set}" = set; then :
5759 $as_echo_n "(cached) " >&6
5761 if test -n "$AR"; then
5762 ac_cv_prog_AR="$AR" # Let the user override the test.
5764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5768 test -z "$as_dir" && as_dir=.
5769 for ac_exec_ext in '' $ac_executable_extensions; do
5770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5771 ac_cv_prog_AR="${ac_tool_prefix}ar"
5772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5782 if test -n "$AR"; then
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5784 $as_echo "$AR" >&6; }
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5787 $as_echo "no" >&6; }
5792 if test -z "$ac_cv_prog_AR"; then
5794 # Extract the first word of "ar", so it can be a program name with args.
5795 set dummy ar; ac_word=$2
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5797 $as_echo_n "checking for $ac_word... " >&6; }
5798 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5799 $as_echo_n "(cached) " >&6
5801 if test -n "$ac_ct_AR"; then
5802 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808 test -z "$as_dir" && as_dir=.
5809 for ac_exec_ext in '' $ac_executable_extensions; do
5810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5811 ac_cv_prog_ac_ct_AR="ar"
5812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5821 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5822 if test -n "$ac_ct_AR"; then
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5824 $as_echo "$ac_ct_AR" >&6; }
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5827 $as_echo "no" >&6; }
5830 if test "x$ac_ct_AR" = x; then
5833 case $cross_compiling:$ac_tool_warned in
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5836 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5837 ac_tool_warned=yes ;;
5845 if test -n "$ac_tool_prefix"; then
5846 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5847 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5849 $as_echo_n "checking for $ac_word... " >&6; }
5850 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5851 $as_echo_n "(cached) " >&6
5853 if test -n "$RANLIB"; then
5854 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860 test -z "$as_dir" && as_dir=.
5861 for ac_exec_ext in '' $ac_executable_extensions; do
5862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5863 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5873 RANLIB=$ac_cv_prog_RANLIB
5874 if test -n "$RANLIB"; then
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5876 $as_echo "$RANLIB" >&6; }
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5879 $as_echo "no" >&6; }
5884 if test -z "$ac_cv_prog_RANLIB"; then
5885 ac_ct_RANLIB=$RANLIB
5886 # Extract the first word of "ranlib", so it can be a program name with args.
5887 set dummy ranlib; ac_word=$2
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5889 $as_echo_n "checking for $ac_word... " >&6; }
5890 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5891 $as_echo_n "(cached) " >&6
5893 if test -n "$ac_ct_RANLIB"; then
5894 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5900 test -z "$as_dir" && as_dir=.
5901 for ac_exec_ext in '' $ac_executable_extensions; do
5902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5903 ac_cv_prog_ac_ct_RANLIB="ranlib"
5904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5913 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5914 if test -n "$ac_ct_RANLIB"; then
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5916 $as_echo "$ac_ct_RANLIB" >&6; }
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5919 $as_echo "no" >&6; }
5922 if test "x$ac_ct_RANLIB" = x; then
5925 case $cross_compiling:$ac_tool_warned in
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5929 ac_tool_warned=yes ;;
5931 RANLIB=$ac_ct_RANLIB
5934 RANLIB="$ac_cv_prog_RANLIB"
5937 if test X"$AR" = X"false"; then
5938 as_fn_error "the \"ar\" utility is required to build sudo" "$LINENO" 5
5941 if test "x$ac_cv_prog_cc_c89" = "xno"; then
5942 as_fn_error "Sudo version $PACKAGE_VERSION requires an ANSI C compiler to build." "$LINENO" 5
5946 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5947 for ac_t in install-sh install.sh shtool; do
5948 if test -f "$ac_dir/$ac_t"; then
5950 ac_install_sh="$ac_aux_dir/$ac_t -c"
5955 if test -z "$ac_aux_dir"; then
5956 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
5959 # These three variables are undocumented and unsupported,
5960 # and are intended to be withdrawn in a future Autoconf release.
5961 # They can cause serious problems if a builder's source tree is in a directory
5962 # whose full name contains unusual characters.
5963 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5964 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5965 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5968 # Make sure we can run config.sub.
5969 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5970 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5973 $as_echo_n "checking build system type... " >&6; }
5974 if test "${ac_cv_build+set}" = set; then :
5975 $as_echo_n "(cached) " >&6
5977 ac_build_alias=$build_alias
5978 test "x$ac_build_alias" = x &&
5979 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5980 test "x$ac_build_alias" = x &&
5981 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
5982 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5983 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5987 $as_echo "$ac_cv_build" >&6; }
5988 case $ac_cv_build in
5990 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
5993 ac_save_IFS=$IFS; IFS='-'
5999 # Remember, the first character of IFS is used to create $*,
6000 # except with old shells:
6003 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6007 $as_echo_n "checking host system type... " >&6; }
6008 if test "${ac_cv_host+set}" = set; then :
6009 $as_echo_n "(cached) " >&6
6011 if test "x$host_alias" = x; then
6012 ac_cv_host=$ac_cv_build
6014 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6015 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6020 $as_echo "$ac_cv_host" >&6; }
6023 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
6026 ac_save_IFS=$IFS; IFS='-'
6032 # Remember, the first character of IFS is used to create $*,
6033 # except with old shells:
6036 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6044 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6049 macro_version='2.2.10'
6050 macro_revision='1.3175'
6064 ltmain="$ac_aux_dir/ltmain.sh"
6066 # Backslashify metacharacters that are still active within
6067 # double-quoted strings.
6068 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6070 # Same as above, but do not quote variable references.
6071 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6073 # Sed substitution to delay expansion of an escaped shell variable in a
6074 # double_quote_subst'ed string.
6075 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6077 # Sed substitution to delay expansion of an escaped single quote.
6078 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6080 # Sed substitution to avoid accidental globbing in evaled expressions
6081 no_glob_subst='s/\*/\\\*/g'
6083 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6084 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6085 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6088 $as_echo_n "checking how to print strings... " >&6; }
6089 # Test print first, because it will be a builtin if present.
6090 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6091 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6093 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6096 # Use this function as a fallback that always works.
6097 func_fallback_echo ()
6099 eval 'cat <<_LTECHO_EOF
6103 ECHO='func_fallback_echo'
6106 # func_echo_all arg...
6107 # Invoke $ECHO with all args, space-separated.
6114 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6115 $as_echo "printf" >&6; } ;;
6116 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6117 $as_echo "print -r" >&6; } ;;
6118 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6119 $as_echo "cat" >&6; } ;;
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6136 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6137 if test "${ac_cv_path_SED+set}" = set; then :
6138 $as_echo_n "(cached) " >&6
6140 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6141 for ac_i in 1 2 3 4 5 6 7; do
6142 ac_script="$ac_script$as_nl$ac_script"
6144 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6145 { ac_script=; unset ac_script;}
6146 if test -z "$SED"; then
6147 ac_path_SED_found=false
6148 # Loop through the user's path and test for each of PROGNAME-LIST
6149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153 test -z "$as_dir" && as_dir=.
6154 for ac_prog in sed gsed; do
6155 for ac_exec_ext in '' $ac_executable_extensions; do
6156 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6157 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6158 # Check for GNU ac_path_SED and select it if it is found.
6159 # Check for GNU $ac_path_SED
6160 case `"$ac_path_SED" --version 2>&1` in
6162 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6165 $as_echo_n 0123456789 >"conftest.in"
6168 cat "conftest.in" "conftest.in" >"conftest.tmp"
6169 mv "conftest.tmp" "conftest.in"
6170 cp "conftest.in" "conftest.nl"
6171 $as_echo '' >> "conftest.nl"
6172 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6173 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6174 as_fn_arith $ac_count + 1 && ac_count=$as_val
6175 if test $ac_count -gt ${ac_path_SED_max-0}; then
6176 # Best one so far, save it but keep looking for a better one
6177 ac_cv_path_SED="$ac_path_SED"
6178 ac_path_SED_max=$ac_count
6180 # 10*(2^10) chars as input seems more than enough
6181 test $ac_count -gt 10 && break
6183 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6186 $ac_path_SED_found && break 3
6191 if test -z "$ac_cv_path_SED"; then
6192 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6200 $as_echo "$ac_cv_path_SED" >&6; }
6201 SED="$ac_cv_path_SED"
6204 test -z "$SED" && SED=sed
6205 Xsed="$SED -e 1s/^X//"
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6218 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6219 if test "${ac_cv_path_GREP+set}" = set; then :
6220 $as_echo_n "(cached) " >&6
6222 if test -z "$GREP"; then
6223 ac_path_GREP_found=false
6224 # Loop through the user's path and test for each of PROGNAME-LIST
6225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6226 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6229 test -z "$as_dir" && as_dir=.
6230 for ac_prog in grep ggrep; do
6231 for ac_exec_ext in '' $ac_executable_extensions; do
6232 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6233 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6234 # Check for GNU ac_path_GREP and select it if it is found.
6235 # Check for GNU $ac_path_GREP
6236 case `"$ac_path_GREP" --version 2>&1` in
6238 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6241 $as_echo_n 0123456789 >"conftest.in"
6244 cat "conftest.in" "conftest.in" >"conftest.tmp"
6245 mv "conftest.tmp" "conftest.in"
6246 cp "conftest.in" "conftest.nl"
6247 $as_echo 'GREP' >> "conftest.nl"
6248 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6249 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6250 as_fn_arith $ac_count + 1 && ac_count=$as_val
6251 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6252 # Best one so far, save it but keep looking for a better one
6253 ac_cv_path_GREP="$ac_path_GREP"
6254 ac_path_GREP_max=$ac_count
6256 # 10*(2^10) chars as input seems more than enough
6257 test $ac_count -gt 10 && break
6259 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6262 $ac_path_GREP_found && break 3
6267 if test -z "$ac_cv_path_GREP"; then
6268 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6271 ac_cv_path_GREP=$GREP
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6276 $as_echo "$ac_cv_path_GREP" >&6; }
6277 GREP="$ac_cv_path_GREP"
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6281 $as_echo_n "checking for egrep... " >&6; }
6282 if test "${ac_cv_path_EGREP+set}" = set; then :
6283 $as_echo_n "(cached) " >&6
6285 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6286 then ac_cv_path_EGREP="$GREP -E"
6288 if test -z "$EGREP"; then
6289 ac_path_EGREP_found=false
6290 # Loop through the user's path and test for each of PROGNAME-LIST
6291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6292 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6295 test -z "$as_dir" && as_dir=.
6296 for ac_prog in egrep; do
6297 for ac_exec_ext in '' $ac_executable_extensions; do
6298 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6299 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6300 # Check for GNU ac_path_EGREP and select it if it is found.
6301 # Check for GNU $ac_path_EGREP
6302 case `"$ac_path_EGREP" --version 2>&1` in
6304 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6307 $as_echo_n 0123456789 >"conftest.in"
6310 cat "conftest.in" "conftest.in" >"conftest.tmp"
6311 mv "conftest.tmp" "conftest.in"
6312 cp "conftest.in" "conftest.nl"
6313 $as_echo 'EGREP' >> "conftest.nl"
6314 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6315 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6316 as_fn_arith $ac_count + 1 && ac_count=$as_val
6317 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6318 # Best one so far, save it but keep looking for a better one
6319 ac_cv_path_EGREP="$ac_path_EGREP"
6320 ac_path_EGREP_max=$ac_count
6322 # 10*(2^10) chars as input seems more than enough
6323 test $ac_count -gt 10 && break
6325 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6328 $ac_path_EGREP_found && break 3
6333 if test -z "$ac_cv_path_EGREP"; then
6334 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6337 ac_cv_path_EGREP=$EGREP
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6343 $as_echo "$ac_cv_path_EGREP" >&6; }
6344 EGREP="$ac_cv_path_EGREP"
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6348 $as_echo_n "checking for fgrep... " >&6; }
6349 if test "${ac_cv_path_FGREP+set}" = set; then :
6350 $as_echo_n "(cached) " >&6
6352 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6353 then ac_cv_path_FGREP="$GREP -F"
6355 if test -z "$FGREP"; then
6356 ac_path_FGREP_found=false
6357 # Loop through the user's path and test for each of PROGNAME-LIST
6358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6359 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6362 test -z "$as_dir" && as_dir=.
6363 for ac_prog in fgrep; do
6364 for ac_exec_ext in '' $ac_executable_extensions; do
6365 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6366 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6367 # Check for GNU ac_path_FGREP and select it if it is found.
6368 # Check for GNU $ac_path_FGREP
6369 case `"$ac_path_FGREP" --version 2>&1` in
6371 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6374 $as_echo_n 0123456789 >"conftest.in"
6377 cat "conftest.in" "conftest.in" >"conftest.tmp"
6378 mv "conftest.tmp" "conftest.in"
6379 cp "conftest.in" "conftest.nl"
6380 $as_echo 'FGREP' >> "conftest.nl"
6381 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6382 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6383 as_fn_arith $ac_count + 1 && ac_count=$as_val
6384 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6385 # Best one so far, save it but keep looking for a better one
6386 ac_cv_path_FGREP="$ac_path_FGREP"
6387 ac_path_FGREP_max=$ac_count
6389 # 10*(2^10) chars as input seems more than enough
6390 test $ac_count -gt 10 && break
6392 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6395 $ac_path_FGREP_found && break 3
6400 if test -z "$ac_cv_path_FGREP"; then
6401 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6404 ac_cv_path_FGREP=$FGREP
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6410 $as_echo "$ac_cv_path_FGREP" >&6; }
6411 FGREP="$ac_cv_path_FGREP"
6414 test -z "$GREP" && GREP=grep
6434 # Check whether --with-gnu-ld was given.
6435 if test "${with_gnu_ld+set}" = set; then :
6436 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6442 if test "$GCC" = yes; then
6443 # Check if gcc -print-prog-name=ld gives a path.
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6445 $as_echo_n "checking for ld used by $CC... " >&6; }
6448 # gcc leaves a trailing carriage return which upsets mingw
6449 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6451 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6454 # Accept absolute paths.
6456 re_direlt='/[^/][^/]*/\.\./'
6457 # Canonicalize the pathname of ld
6458 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6459 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6460 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6462 test -z "$LD" && LD="$ac_prog"
6465 # If it fails, then pretend we aren't using GCC.
6469 # If it is relative, then search for the first ld in PATH.
6473 elif test "$with_gnu_ld" = yes; then
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6475 $as_echo_n "checking for GNU ld... " >&6; }
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6478 $as_echo_n "checking for non-GNU ld... " >&6; }
6480 if test "${lt_cv_path_LD+set}" = set; then :
6481 $as_echo_n "(cached) " >&6
6483 if test -z "$LD"; then
6484 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6485 for ac_dir in $PATH; do
6487 test -z "$ac_dir" && ac_dir=.
6488 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6489 lt_cv_path_LD="$ac_dir/$ac_prog"
6490 # Check to see if the program is GNU ld. I'd rather use --version,
6491 # but apparently some variants of GNU ld only accept -v.
6492 # Break only if it was the GNU/non-GNU ld that we prefer.
6493 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6494 *GNU* | *'with BFD'*)
6495 test "$with_gnu_ld" != no && break
6498 test "$with_gnu_ld" != yes && break
6505 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6510 if test -n "$LD"; then
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6512 $as_echo "$LD" >&6; }
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6515 $as_echo "no" >&6; }
6517 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6519 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6520 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6521 $as_echo_n "(cached) " >&6
6523 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6524 case `$LD -v 2>&1 </dev/null` in
6525 *GNU* | *'with BFD'*)
6526 lt_cv_prog_gnu_ld=yes
6529 lt_cv_prog_gnu_ld=no
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6534 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6535 with_gnu_ld=$lt_cv_prog_gnu_ld
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6546 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6547 if test "${lt_cv_path_NM+set}" = set; then :
6548 $as_echo_n "(cached) " >&6
6550 if test -n "$NM"; then
6551 # Let the user override the test.
6554 lt_nm_to_check="${ac_tool_prefix}nm"
6555 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6556 lt_nm_to_check="$lt_nm_to_check nm"
6558 for lt_tmp_nm in $lt_nm_to_check; do
6559 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6560 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6562 test -z "$ac_dir" && ac_dir=.
6563 tmp_nm="$ac_dir/$lt_tmp_nm"
6564 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6565 # Check to see if the nm accepts a BSD-compat flag.
6566 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6567 # nm: unknown option "B" ignored
6568 # Tru64's nm complains that /dev/null is an invalid object file
6569 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6570 */dev/null* | *'Invalid file or object type'*)
6571 lt_cv_path_NM="$tmp_nm -B"
6575 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6577 lt_cv_path_NM="$tmp_nm -p"
6581 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6582 continue # so that we can try to find one that supports BSD flags
6591 : ${lt_cv_path_NM=no}
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6595 $as_echo "$lt_cv_path_NM" >&6; }
6596 if test "$lt_cv_path_NM" != "no"; then
6599 # Didn't find any BSD compatible name lister, look for dumpbin.
6600 if test -n "$DUMPBIN"; then :
6601 # Let the user override the test.
6603 if test -n "$ac_tool_prefix"; then
6604 for ac_prog in dumpbin "link -dump"
6606 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6607 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6609 $as_echo_n "checking for $ac_word... " >&6; }
6610 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6611 $as_echo_n "(cached) " >&6
6613 if test -n "$DUMPBIN"; then
6614 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6620 test -z "$as_dir" && as_dir=.
6621 for ac_exec_ext in '' $ac_executable_extensions; do
6622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6623 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6633 DUMPBIN=$ac_cv_prog_DUMPBIN
6634 if test -n "$DUMPBIN"; then
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6636 $as_echo "$DUMPBIN" >&6; }
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6639 $as_echo "no" >&6; }
6643 test -n "$DUMPBIN" && break
6646 if test -z "$DUMPBIN"; then
6647 ac_ct_DUMPBIN=$DUMPBIN
6648 for ac_prog in dumpbin "link -dump"
6650 # Extract the first word of "$ac_prog", so it can be a program name with args.
6651 set dummy $ac_prog; ac_word=$2
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6653 $as_echo_n "checking for $ac_word... " >&6; }
6654 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6655 $as_echo_n "(cached) " >&6
6657 if test -n "$ac_ct_DUMPBIN"; then
6658 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664 test -z "$as_dir" && as_dir=.
6665 for ac_exec_ext in '' $ac_executable_extensions; do
6666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6667 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6677 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6678 if test -n "$ac_ct_DUMPBIN"; then
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6680 $as_echo "$ac_ct_DUMPBIN" >&6; }
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6683 $as_echo "no" >&6; }
6687 test -n "$ac_ct_DUMPBIN" && break
6690 if test "x$ac_ct_DUMPBIN" = x; then
6693 case $cross_compiling:$ac_tool_warned in
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6696 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6697 ac_tool_warned=yes ;;
6699 DUMPBIN=$ac_ct_DUMPBIN
6703 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6705 DUMPBIN="$DUMPBIN -symbols"
6713 if test "$DUMPBIN" != ":"; then
6717 test -z "$NM" && NM=nm
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6725 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6726 if test "${lt_cv_nm_interface+set}" = set; then :
6727 $as_echo_n "(cached) " >&6
6729 lt_cv_nm_interface="BSD nm"
6730 echo "int some_variable = 0;" > conftest.$ac_ext
6731 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6732 (eval "$ac_compile" 2>conftest.err)
6733 cat conftest.err >&5
6734 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6735 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6736 cat conftest.err >&5
6737 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6738 cat conftest.out >&5
6739 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6740 lt_cv_nm_interface="MS dumpbin"
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6745 $as_echo "$lt_cv_nm_interface" >&6; }
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6748 $as_echo_n "checking whether ln -s works... " >&6; }
6750 if test "$LN_S" = "ln -s"; then
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6752 $as_echo "yes" >&6; }
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6755 $as_echo "no, using $LN_S" >&6; }
6758 # find the maximum length of command line arguments
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6760 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6761 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6762 $as_echo_n "(cached) " >&6
6769 # On DJGPP, this test can blow up pretty badly due to problems in libc
6770 # (any single argument exceeding 2000 bytes causes a buffer overrun
6771 # during glob expansion). Even if it were fixed, the result of this
6772 # check would be larger than it should be.
6773 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6777 # Under GNU Hurd, this test is not required because there is
6778 # no limit to the length of command line arguments.
6779 # Libtool will interpret -1 as no limit whatsoever
6780 lt_cv_sys_max_cmd_len=-1;
6783 cygwin* | mingw* | cegcc*)
6784 # On Win9x/ME, this test blows up -- it succeeds, but takes
6785 # about 5 minutes as the teststring grows exponentially.
6786 # Worse, since 9x/ME are not pre-emptively multitasking,
6787 # you end up with a "frozen" computer, even though with patience
6788 # the test eventually succeeds (with a max line length of 256k).
6789 # Instead, let's just punt: use the minimum linelength reported by
6790 # all of the supported platforms: 8192 (on NT/2K/XP).
6791 lt_cv_sys_max_cmd_len=8192;
6795 # On MiNT this can take a long time and run out of memory.
6796 lt_cv_sys_max_cmd_len=8192;
6800 # On AmigaOS with pdksh, this test takes hours, literally.
6801 # So we just punt and use a minimum line length of 8192.
6802 lt_cv_sys_max_cmd_len=8192;
6805 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6806 # This has been around since 386BSD, at least. Likely further.
6807 if test -x /sbin/sysctl; then
6808 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6809 elif test -x /usr/sbin/sysctl; then
6810 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6812 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6814 # And add a safety zone
6815 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6816 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6820 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6821 lt_cv_sys_max_cmd_len=196608
6825 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6826 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6827 # nice to cause kernel panics so lets avoid the loop below.
6828 # First set a reasonable default.
6829 lt_cv_sys_max_cmd_len=16384
6831 if test -x /sbin/sysconfig; then
6832 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6833 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6838 lt_cv_sys_max_cmd_len=102400
6840 sysv5* | sco5v6* | sysv4.2uw2*)
6841 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6842 if test -n "$kargmax"; then
6843 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6845 lt_cv_sys_max_cmd_len=32768
6849 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6850 if test -n "$lt_cv_sys_max_cmd_len"; then
6851 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6852 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6854 # Make teststring a little bigger before we do anything with it.
6855 # a 1K string should be a reasonable start.
6856 for i in 1 2 3 4 5 6 7 8 ; do
6857 teststring=$teststring$teststring
6859 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6860 # If test is not a shell built-in, we'll probably end up computing a
6861 # maximum length that is only half of the actual maximum length, but
6863 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6864 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6865 test $i != 17 # 1/2 MB should be enough
6868 teststring=$teststring$teststring
6870 # Only check the string length outside the loop.
6871 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6873 # Add a significant safety factor because C++ compilers can tack on
6874 # massive amounts of additional arguments before passing them to the
6875 # linker. It appears as though 1/2 is a usable value.
6876 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6883 if test -n $lt_cv_sys_max_cmd_len ; then
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6885 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6888 $as_echo "none" >&6; }
6890 max_cmd_len=$lt_cv_sys_max_cmd_len
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6902 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6903 # Try some XSI features
6906 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6908 && eval 'test $(( 1 + 1 )) -eq 2 \
6909 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6912 $as_echo "$xsi_shell" >&6; }
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6916 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6918 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6920 && lt_shell_append=yes
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6922 $as_echo "$lt_shell_append" >&6; }
6925 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6935 # test EBCDIC or ASCII
6936 case `echo X|tr X '\101'` in
6937 A) # ASCII based system
6938 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6939 lt_SP2NL='tr \040 \012'
6940 lt_NL2SP='tr \015\012 \040\040'
6942 *) # EBCDIC based system
6943 lt_SP2NL='tr \100 \n'
6944 lt_NL2SP='tr \r\n \100\100'
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6957 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6958 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6959 $as_echo_n "(cached) " >&6
6961 lt_cv_ld_reload_flag='-r'
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6964 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6965 reload_flag=$lt_cv_ld_reload_flag
6966 case $reload_flag in
6968 *) reload_flag=" $reload_flag" ;;
6970 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6973 if test "$GCC" = yes; then
6974 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6976 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6989 if test -n "$ac_tool_prefix"; then
6990 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6991 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6993 $as_echo_n "checking for $ac_word... " >&6; }
6994 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6995 $as_echo_n "(cached) " >&6
6997 if test -n "$OBJDUMP"; then
6998 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7004 test -z "$as_dir" && as_dir=.
7005 for ac_exec_ext in '' $ac_executable_extensions; do
7006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7007 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7017 OBJDUMP=$ac_cv_prog_OBJDUMP
7018 if test -n "$OBJDUMP"; then
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7020 $as_echo "$OBJDUMP" >&6; }
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7023 $as_echo "no" >&6; }
7028 if test -z "$ac_cv_prog_OBJDUMP"; then
7029 ac_ct_OBJDUMP=$OBJDUMP
7030 # Extract the first word of "objdump", so it can be a program name with args.
7031 set dummy objdump; ac_word=$2
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7033 $as_echo_n "checking for $ac_word... " >&6; }
7034 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7035 $as_echo_n "(cached) " >&6
7037 if test -n "$ac_ct_OBJDUMP"; then
7038 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044 test -z "$as_dir" && as_dir=.
7045 for ac_exec_ext in '' $ac_executable_extensions; do
7046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7047 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7057 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7058 if test -n "$ac_ct_OBJDUMP"; then
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7060 $as_echo "$ac_ct_OBJDUMP" >&6; }
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7063 $as_echo "no" >&6; }
7066 if test "x$ac_ct_OBJDUMP" = x; then
7069 case $cross_compiling:$ac_tool_warned in
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7072 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7073 ac_tool_warned=yes ;;
7075 OBJDUMP=$ac_ct_OBJDUMP
7078 OBJDUMP="$ac_cv_prog_OBJDUMP"
7081 test -z "$OBJDUMP" && OBJDUMP=objdump
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7092 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7093 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7094 $as_echo_n "(cached) " >&6
7096 lt_cv_file_magic_cmd='$MAGIC_CMD'
7097 lt_cv_file_magic_test_file=
7098 lt_cv_deplibs_check_method='unknown'
7099 # Need to set the preceding variable on all platforms that support
7100 # interlibrary dependencies.
7101 # 'none' -- dependencies not supported.
7102 # `unknown' -- same as none, but documents that we really don't know.
7103 # 'pass_all' -- all dependencies passed with no checks.
7104 # 'test_compile' -- check by making test program.
7105 # 'file_magic [[regex]]' -- check by looking for files in library path
7106 # which responds to the $file_magic_cmd with a given extended regex.
7107 # If you have `file' or equivalent on your system and you're not sure
7108 # whether `pass_all' will *always* work, you probably want this one.
7112 lt_cv_deplibs_check_method=pass_all
7116 lt_cv_deplibs_check_method=pass_all
7120 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7121 lt_cv_file_magic_cmd='/usr/bin/file -L'
7122 lt_cv_file_magic_test_file=/shlib/libc.so
7126 # func_win32_libid is a shell function defined in ltmain.sh
7127 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7128 lt_cv_file_magic_cmd='func_win32_libid'
7132 # Base MSYS/MinGW do not provide the 'file' command needed by
7133 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7134 # unless we find 'file', for example because we are cross-compiling.
7135 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7136 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7137 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7138 lt_cv_file_magic_cmd='func_win32_libid'
7140 # Keep this pattern in sync with the one in func_win32_libid.
7141 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7142 lt_cv_file_magic_cmd='$OBJDUMP -f'
7147 # use the weaker test based on 'objdump'. See mingw*.
7148 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7149 lt_cv_file_magic_cmd='$OBJDUMP -f'
7152 darwin* | rhapsody*)
7153 lt_cv_deplibs_check_method=pass_all
7156 freebsd* | dragonfly*)
7157 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7160 # Not sure whether the presence of OpenBSD here was a mistake.
7161 # Let's accept both of them until this is cleared up.
7162 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7163 lt_cv_file_magic_cmd=/usr/bin/file
7164 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7168 lt_cv_deplibs_check_method=pass_all
7173 lt_cv_deplibs_check_method=pass_all
7177 lt_cv_deplibs_check_method=pass_all
7180 hpux10.20* | hpux11*)
7181 lt_cv_file_magic_cmd=/usr/bin/file
7184 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7185 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7188 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]'
7189 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7192 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7193 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7199 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7200 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7203 irix5* | irix6* | nonstopux*)
7205 *-32|*"-32 ") libmagic=32-bit;;
7206 *-n32|*"-n32 ") libmagic=N32;;
7207 *-64|*"-64 ") libmagic=64-bit;;
7208 *) libmagic=never-match;;
7210 lt_cv_deplibs_check_method=pass_all
7213 # This must be Linux ELF.
7214 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7215 lt_cv_deplibs_check_method=pass_all
7219 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7220 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7222 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7227 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7228 lt_cv_file_magic_cmd=/usr/bin/file
7229 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7233 lt_cv_deplibs_check_method=pass_all
7237 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7238 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7240 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7244 osf3* | osf4* | osf5*)
7245 lt_cv_deplibs_check_method=pass_all
7249 lt_cv_deplibs_check_method=pass_all
7253 lt_cv_deplibs_check_method=pass_all
7256 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7257 lt_cv_deplibs_check_method=pass_all
7261 case $host_vendor in
7263 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]'
7264 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7267 lt_cv_deplibs_check_method=pass_all
7270 lt_cv_file_magic_cmd='/bin/file'
7271 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7274 lt_cv_file_magic_cmd='/bin/file'
7275 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7276 lt_cv_file_magic_test_file=/lib/libc.so
7279 lt_cv_deplibs_check_method=pass_all
7282 lt_cv_deplibs_check_method=pass_all
7288 lt_cv_deplibs_check_method=pass_all
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7294 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7295 file_magic_cmd=$lt_cv_file_magic_cmd
7296 deplibs_check_method=$lt_cv_deplibs_check_method
7297 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7310 if test -n "$ac_tool_prefix"; then
7311 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7312 set dummy ${ac_tool_prefix}ar; ac_word=$2
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7314 $as_echo_n "checking for $ac_word... " >&6; }
7315 if test "${ac_cv_prog_AR+set}" = set; then :
7316 $as_echo_n "(cached) " >&6
7318 if test -n "$AR"; then
7319 ac_cv_prog_AR="$AR" # Let the user override the test.
7321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7325 test -z "$as_dir" && as_dir=.
7326 for ac_exec_ext in '' $ac_executable_extensions; do
7327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7328 ac_cv_prog_AR="${ac_tool_prefix}ar"
7329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7339 if test -n "$AR"; then
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7341 $as_echo "$AR" >&6; }
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7344 $as_echo "no" >&6; }
7349 if test -z "$ac_cv_prog_AR"; then
7351 # Extract the first word of "ar", so it can be a program name with args.
7352 set dummy ar; ac_word=$2
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7354 $as_echo_n "checking for $ac_word... " >&6; }
7355 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7356 $as_echo_n "(cached) " >&6
7358 if test -n "$ac_ct_AR"; then
7359 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365 test -z "$as_dir" && as_dir=.
7366 for ac_exec_ext in '' $ac_executable_extensions; do
7367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7368 ac_cv_prog_ac_ct_AR="ar"
7369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7378 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7379 if test -n "$ac_ct_AR"; then
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7381 $as_echo "$ac_ct_AR" >&6; }
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7384 $as_echo "no" >&6; }
7387 if test "x$ac_ct_AR" = x; then
7390 case $cross_compiling:$ac_tool_warned in
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7393 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7394 ac_tool_warned=yes ;;
7402 test -z "$AR" && AR=ar
7403 test -z "$AR_FLAGS" && AR_FLAGS=cru
7415 if test -n "$ac_tool_prefix"; then
7416 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7417 set dummy ${ac_tool_prefix}strip; ac_word=$2
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7419 $as_echo_n "checking for $ac_word... " >&6; }
7420 if test "${ac_cv_prog_STRIP+set}" = set; then :
7421 $as_echo_n "(cached) " >&6
7423 if test -n "$STRIP"; then
7424 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7430 test -z "$as_dir" && as_dir=.
7431 for ac_exec_ext in '' $ac_executable_extensions; do
7432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7433 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7443 STRIP=$ac_cv_prog_STRIP
7444 if test -n "$STRIP"; then
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7446 $as_echo "$STRIP" >&6; }
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7449 $as_echo "no" >&6; }
7454 if test -z "$ac_cv_prog_STRIP"; then
7456 # Extract the first word of "strip", so it can be a program name with args.
7457 set dummy strip; ac_word=$2
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7459 $as_echo_n "checking for $ac_word... " >&6; }
7460 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7461 $as_echo_n "(cached) " >&6
7463 if test -n "$ac_ct_STRIP"; then
7464 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470 test -z "$as_dir" && as_dir=.
7471 for ac_exec_ext in '' $ac_executable_extensions; do
7472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7473 ac_cv_prog_ac_ct_STRIP="strip"
7474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7483 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7484 if test -n "$ac_ct_STRIP"; then
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7486 $as_echo "$ac_ct_STRIP" >&6; }
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7489 $as_echo "no" >&6; }
7492 if test "x$ac_ct_STRIP" = x; then
7495 case $cross_compiling:$ac_tool_warned in
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7499 ac_tool_warned=yes ;;
7504 STRIP="$ac_cv_prog_STRIP"
7507 test -z "$STRIP" && STRIP=:
7514 if test -n "$ac_tool_prefix"; then
7515 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7516 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7518 $as_echo_n "checking for $ac_word... " >&6; }
7519 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7520 $as_echo_n "(cached) " >&6
7522 if test -n "$RANLIB"; then
7523 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7529 test -z "$as_dir" && as_dir=.
7530 for ac_exec_ext in '' $ac_executable_extensions; do
7531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7532 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7542 RANLIB=$ac_cv_prog_RANLIB
7543 if test -n "$RANLIB"; then
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7545 $as_echo "$RANLIB" >&6; }
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7548 $as_echo "no" >&6; }
7553 if test -z "$ac_cv_prog_RANLIB"; then
7554 ac_ct_RANLIB=$RANLIB
7555 # Extract the first word of "ranlib", so it can be a program name with args.
7556 set dummy ranlib; ac_word=$2
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7558 $as_echo_n "checking for $ac_word... " >&6; }
7559 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7560 $as_echo_n "(cached) " >&6
7562 if test -n "$ac_ct_RANLIB"; then
7563 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7569 test -z "$as_dir" && as_dir=.
7570 for ac_exec_ext in '' $ac_executable_extensions; do
7571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7572 ac_cv_prog_ac_ct_RANLIB="ranlib"
7573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7582 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7583 if test -n "$ac_ct_RANLIB"; then
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7585 $as_echo "$ac_ct_RANLIB" >&6; }
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7588 $as_echo "no" >&6; }
7591 if test "x$ac_ct_RANLIB" = x; then
7594 case $cross_compiling:$ac_tool_warned in
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7598 ac_tool_warned=yes ;;
7600 RANLIB=$ac_ct_RANLIB
7603 RANLIB="$ac_cv_prog_RANLIB"
7606 test -z "$RANLIB" && RANLIB=:
7613 # Determine commands to create old-style static archives.
7614 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7615 old_postinstall_cmds='chmod 644 $oldlib'
7616 old_postuninstall_cmds=
7618 if test -n "$RANLIB"; then
7621 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7624 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7627 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7632 lock_old_archive_extraction=yes ;;
7634 lock_old_archive_extraction=no ;;
7657 for ac_prog in gawk mawk nawk awk
7659 # Extract the first word of "$ac_prog", so it can be a program name with args.
7660 set dummy $ac_prog; ac_word=$2
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7662 $as_echo_n "checking for $ac_word... " >&6; }
7663 if test "${ac_cv_prog_AWK+set}" = set; then :
7664 $as_echo_n "(cached) " >&6
7666 if test -n "$AWK"; then
7667 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7673 test -z "$as_dir" && as_dir=.
7674 for ac_exec_ext in '' $ac_executable_extensions; do
7675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7676 ac_cv_prog_AWK="$ac_prog"
7677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7687 if test -n "$AWK"; then
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7689 $as_echo "$AWK" >&6; }
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7692 $as_echo "no" >&6; }
7696 test -n "$AWK" && break
7717 # If no C compiler was specified, use CC.
7720 # If no C compiler flags were specified, use CFLAGS.
7721 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7723 # Allow CC to be a program name with arguments.
7727 # Check for command to grab the raw symbol name followed by C symbol from nm.
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7729 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7730 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7731 $as_echo_n "(cached) " >&6
7734 # These are sane defaults that work on at least a few old systems.
7735 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7737 # Character class describing NM global symbol codes.
7738 symcode='[BCDEGRST]'
7740 # Regexp to match symbols that can be accessed directly from C.
7741 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7743 # Define system-specific variables.
7748 cygwin* | mingw* | pw32* | cegcc*)
7749 symcode='[ABCDGISTW]'
7752 if test "$host_cpu" = ia64; then
7753 symcode='[ABCDEGRST]'
7757 symcode='[BCDEGRST]'
7760 symcode='[BCDEGQRST]'
7771 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7779 # If we're using GNU nm, then use its standard symbol codes.
7780 case `$NM -V 2>&1` in
7781 *GNU* | *'with BFD'*)
7782 symcode='[ABCDGIRSTW]' ;;
7785 # Transform an extracted symbol line into a proper C declaration.
7786 # Some systems (esp. on ia64) link data and code symbols differently,
7787 # so use this general approach.
7788 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7790 # Transform an extracted symbol line into symbol name and symbol address
7791 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7792 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'"
7794 # Handle CRLF in mingw tool chain
7798 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7802 # Try without a prefix underscore, then with it.
7803 for ac_symprfx in "" "_"; do
7805 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7806 symxfrm="\\1 $ac_symprfx\\2 \\2"
7808 # Write the raw and C identifiers.
7809 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7810 # Fake it for dumpbin and say T for any non-static function
7811 # and D for any global variable.
7812 # Also find C++ and __fastcall symbols from MSVC++,
7813 # which start with @ or ?.
7814 lt_cv_sys_global_symbol_pipe="$AWK '"\
7815 " {last_section=section; section=\$ 3};"\
7816 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7817 " \$ 0!~/External *\|/{next};"\
7818 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7819 " {if(hide[section]) next};"\
7820 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7821 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7822 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7823 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7824 " ' prfx=^$ac_symprfx"
7826 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7829 # Check to see that the pipe works correctly.
7833 cat > conftest.$ac_ext <<_LT_EOF
7838 void nm_test_func(void);
7839 void nm_test_func(void){}
7843 int main(){nm_test_var='a';nm_test_func();return(0);}
7846 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7847 (eval $ac_compile) 2>&5
7849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7850 test $ac_status = 0; }; then
7851 # Now try to grab the symbols.
7853 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7854 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7857 test $ac_status = 0; } && test -s "$nlist"; then
7858 # Try sorting and uniquifying the output.
7859 if sort "$nlist" | uniq > "$nlist"T; then
7860 mv -f "$nlist"T "$nlist"
7865 # Make sure that we snagged all the symbols we need.
7866 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7867 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7868 cat <<_LT_EOF > conftest.$ac_ext
7874 # Now generate the symbol file.
7875 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7877 cat <<_LT_EOF >> conftest.$ac_ext
7879 /* The mapping between symbol names and symbols. */
7884 lt__PROGRAM__LTX_preloaded_symbols[] =
7886 { "@PROGRAM@", (void *) 0 },
7888 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7889 cat <<\_LT_EOF >> conftest.$ac_ext
7893 /* This works around a problem in FreeBSD linker */
7894 #ifdef FREEBSD_WORKAROUND
7895 static const void *lt_preloaded_setup() {
7896 return lt__PROGRAM__LTX_preloaded_symbols;
7904 # Now try linking the two files.
7905 mv conftest.$ac_objext conftstm.$ac_objext
7906 lt_save_LIBS="$LIBS"
7907 lt_save_CFLAGS="$CFLAGS"
7908 LIBS="conftstm.$ac_objext"
7909 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7910 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7911 (eval $ac_link) 2>&5
7913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7914 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7917 LIBS="$lt_save_LIBS"
7918 CFLAGS="$lt_save_CFLAGS"
7920 echo "cannot find nm_test_func in $nlist" >&5
7923 echo "cannot find nm_test_var in $nlist" >&5
7926 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7929 echo "$progname: failed program was:" >&5
7930 cat conftest.$ac_ext >&5
7932 rm -rf conftest* conftst*
7934 # Do not use the global_symbol_pipe unless it works.
7935 if test "$pipe_works" = yes; then
7938 lt_cv_sys_global_symbol_pipe=
7944 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7945 lt_cv_sys_global_symbol_to_cdecl=
7947 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7949 $as_echo "failed" >&6; }
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7952 $as_echo "ok" >&6; }
7976 # Check whether --enable-libtool-lock was given.
7977 if test "${enable_libtool_lock+set}" = set; then :
7978 enableval=$enable_libtool_lock;
7981 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7983 # Some flags need to be propagated to the compiler or linker for good
7987 # Find out which ABI we are using.
7988 echo 'int i;' > conftest.$ac_ext
7989 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7990 (eval $ac_compile) 2>&5
7992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7993 test $ac_status = 0; }; then
7994 case `/usr/bin/file conftest.$ac_objext` in
8006 # Find out which ABI we are using.
8007 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8008 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8009 (eval $ac_compile) 2>&5
8011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8012 test $ac_status = 0; }; then
8013 if test "$lt_cv_prog_gnu_ld" = yes; then
8014 case `/usr/bin/file conftest.$ac_objext` in
8016 LD="${LD-ld} -melf32bsmip"
8019 LD="${LD-ld} -melf32bmipn32"
8022 LD="${LD-ld} -melf64bmip"
8026 case `/usr/bin/file conftest.$ac_objext` in
8042 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8043 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8044 # Find out which ABI we are using.
8045 echo 'int i;' > conftest.$ac_ext
8046 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8047 (eval $ac_compile) 2>&5
8049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8050 test $ac_status = 0; }; then
8051 case `/usr/bin/file conftest.o` in
8054 x86_64-*kfreebsd*-gnu)
8055 LD="${LD-ld} -m elf_i386_fbsd"
8058 LD="${LD-ld} -m elf_i386"
8060 ppc64-*linux*|powerpc64-*linux*)
8061 LD="${LD-ld} -m elf32ppclinux"
8064 LD="${LD-ld} -m elf_s390"
8067 LD="${LD-ld} -m elf32_sparc"
8073 x86_64-*kfreebsd*-gnu)
8074 LD="${LD-ld} -m elf_x86_64_fbsd"
8077 LD="${LD-ld} -m elf_x86_64"
8079 ppc*-*linux*|powerpc*-*linux*)
8080 LD="${LD-ld} -m elf64ppc"
8082 s390*-*linux*|s390*-*tpf*)
8083 LD="${LD-ld} -m elf64_s390"
8086 LD="${LD-ld} -m elf64_sparc"
8096 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8097 SAVE_CFLAGS="$CFLAGS"
8098 CFLAGS="$CFLAGS -belf"
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8100 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8101 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8102 $as_echo_n "(cached) " >&6
8105 ac_cpp='$CPP $CPPFLAGS'
8106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8111 /* end confdefs.h. */
8121 if ac_fn_c_try_link "$LINENO"; then :
8122 lt_cv_cc_needs_belf=yes
8124 lt_cv_cc_needs_belf=no
8126 rm -f core conftest.err conftest.$ac_objext \
8127 conftest$ac_exeext conftest.$ac_ext
8129 ac_cpp='$CPP $CPPFLAGS'
8130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8136 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8137 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8138 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8139 CFLAGS="$SAVE_CFLAGS"
8143 # Find out which ABI we are using.
8144 echo 'int i;' > conftest.$ac_ext
8145 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8146 (eval $ac_compile) 2>&5
8148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8149 test $ac_status = 0; }; then
8150 case `/usr/bin/file conftest.o` in
8152 case $lt_cv_prog_gnu_ld in
8153 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8155 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8167 need_locks="$enable_libtool_lock"
8171 rhapsody* | darwin*)
8172 if test -n "$ac_tool_prefix"; then
8173 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8174 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8176 $as_echo_n "checking for $ac_word... " >&6; }
8177 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8178 $as_echo_n "(cached) " >&6
8180 if test -n "$DSYMUTIL"; then
8181 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8187 test -z "$as_dir" && as_dir=.
8188 for ac_exec_ext in '' $ac_executable_extensions; do
8189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8190 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8200 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8201 if test -n "$DSYMUTIL"; then
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8203 $as_echo "$DSYMUTIL" >&6; }
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8206 $as_echo "no" >&6; }
8211 if test -z "$ac_cv_prog_DSYMUTIL"; then
8212 ac_ct_DSYMUTIL=$DSYMUTIL
8213 # Extract the first word of "dsymutil", so it can be a program name with args.
8214 set dummy dsymutil; ac_word=$2
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8216 $as_echo_n "checking for $ac_word... " >&6; }
8217 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8218 $as_echo_n "(cached) " >&6
8220 if test -n "$ac_ct_DSYMUTIL"; then
8221 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8227 test -z "$as_dir" && as_dir=.
8228 for ac_exec_ext in '' $ac_executable_extensions; do
8229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8230 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8240 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8241 if test -n "$ac_ct_DSYMUTIL"; then
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8243 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8246 $as_echo "no" >&6; }
8249 if test "x$ac_ct_DSYMUTIL" = x; then
8252 case $cross_compiling:$ac_tool_warned in
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8256 ac_tool_warned=yes ;;
8258 DSYMUTIL=$ac_ct_DSYMUTIL
8261 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8264 if test -n "$ac_tool_prefix"; then
8265 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8266 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8268 $as_echo_n "checking for $ac_word... " >&6; }
8269 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8270 $as_echo_n "(cached) " >&6
8272 if test -n "$NMEDIT"; then
8273 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8279 test -z "$as_dir" && as_dir=.
8280 for ac_exec_ext in '' $ac_executable_extensions; do
8281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8282 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8292 NMEDIT=$ac_cv_prog_NMEDIT
8293 if test -n "$NMEDIT"; then
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8295 $as_echo "$NMEDIT" >&6; }
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8298 $as_echo "no" >&6; }
8303 if test -z "$ac_cv_prog_NMEDIT"; then
8304 ac_ct_NMEDIT=$NMEDIT
8305 # Extract the first word of "nmedit", so it can be a program name with args.
8306 set dummy nmedit; ac_word=$2
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8308 $as_echo_n "checking for $ac_word... " >&6; }
8309 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8310 $as_echo_n "(cached) " >&6
8312 if test -n "$ac_ct_NMEDIT"; then
8313 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8319 test -z "$as_dir" && as_dir=.
8320 for ac_exec_ext in '' $ac_executable_extensions; do
8321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8322 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8332 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8333 if test -n "$ac_ct_NMEDIT"; then
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8335 $as_echo "$ac_ct_NMEDIT" >&6; }
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8338 $as_echo "no" >&6; }
8341 if test "x$ac_ct_NMEDIT" = x; then
8344 case $cross_compiling:$ac_tool_warned in
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8347 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8348 ac_tool_warned=yes ;;
8350 NMEDIT=$ac_ct_NMEDIT
8353 NMEDIT="$ac_cv_prog_NMEDIT"
8356 if test -n "$ac_tool_prefix"; then
8357 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8358 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8360 $as_echo_n "checking for $ac_word... " >&6; }
8361 if test "${ac_cv_prog_LIPO+set}" = set; then :
8362 $as_echo_n "(cached) " >&6
8364 if test -n "$LIPO"; then
8365 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8371 test -z "$as_dir" && as_dir=.
8372 for ac_exec_ext in '' $ac_executable_extensions; do
8373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8374 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8384 LIPO=$ac_cv_prog_LIPO
8385 if test -n "$LIPO"; then
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8387 $as_echo "$LIPO" >&6; }
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8390 $as_echo "no" >&6; }
8395 if test -z "$ac_cv_prog_LIPO"; then
8397 # Extract the first word of "lipo", so it can be a program name with args.
8398 set dummy lipo; ac_word=$2
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8400 $as_echo_n "checking for $ac_word... " >&6; }
8401 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8402 $as_echo_n "(cached) " >&6
8404 if test -n "$ac_ct_LIPO"; then
8405 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8411 test -z "$as_dir" && as_dir=.
8412 for ac_exec_ext in '' $ac_executable_extensions; do
8413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8414 ac_cv_prog_ac_ct_LIPO="lipo"
8415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8424 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8425 if test -n "$ac_ct_LIPO"; then
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8427 $as_echo "$ac_ct_LIPO" >&6; }
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8430 $as_echo "no" >&6; }
8433 if test "x$ac_ct_LIPO" = x; then
8436 case $cross_compiling:$ac_tool_warned in
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8440 ac_tool_warned=yes ;;
8445 LIPO="$ac_cv_prog_LIPO"
8448 if test -n "$ac_tool_prefix"; then
8449 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8450 set dummy ${ac_tool_prefix}otool; ac_word=$2
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8452 $as_echo_n "checking for $ac_word... " >&6; }
8453 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8454 $as_echo_n "(cached) " >&6
8456 if test -n "$OTOOL"; then
8457 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8463 test -z "$as_dir" && as_dir=.
8464 for ac_exec_ext in '' $ac_executable_extensions; do
8465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8466 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8476 OTOOL=$ac_cv_prog_OTOOL
8477 if test -n "$OTOOL"; then
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8479 $as_echo "$OTOOL" >&6; }
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8482 $as_echo "no" >&6; }
8487 if test -z "$ac_cv_prog_OTOOL"; then
8489 # Extract the first word of "otool", so it can be a program name with args.
8490 set dummy otool; ac_word=$2
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8492 $as_echo_n "checking for $ac_word... " >&6; }
8493 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8494 $as_echo_n "(cached) " >&6
8496 if test -n "$ac_ct_OTOOL"; then
8497 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8503 test -z "$as_dir" && as_dir=.
8504 for ac_exec_ext in '' $ac_executable_extensions; do
8505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8506 ac_cv_prog_ac_ct_OTOOL="otool"
8507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8516 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8517 if test -n "$ac_ct_OTOOL"; then
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8519 $as_echo "$ac_ct_OTOOL" >&6; }
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8522 $as_echo "no" >&6; }
8525 if test "x$ac_ct_OTOOL" = x; then
8528 case $cross_compiling:$ac_tool_warned in
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8531 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8532 ac_tool_warned=yes ;;
8537 OTOOL="$ac_cv_prog_OTOOL"
8540 if test -n "$ac_tool_prefix"; then
8541 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8542 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8544 $as_echo_n "checking for $ac_word... " >&6; }
8545 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8546 $as_echo_n "(cached) " >&6
8548 if test -n "$OTOOL64"; then
8549 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8555 test -z "$as_dir" && as_dir=.
8556 for ac_exec_ext in '' $ac_executable_extensions; do
8557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8558 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8568 OTOOL64=$ac_cv_prog_OTOOL64
8569 if test -n "$OTOOL64"; then
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8571 $as_echo "$OTOOL64" >&6; }
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8574 $as_echo "no" >&6; }
8579 if test -z "$ac_cv_prog_OTOOL64"; then
8580 ac_ct_OTOOL64=$OTOOL64
8581 # Extract the first word of "otool64", so it can be a program name with args.
8582 set dummy otool64; ac_word=$2
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8584 $as_echo_n "checking for $ac_word... " >&6; }
8585 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8586 $as_echo_n "(cached) " >&6
8588 if test -n "$ac_ct_OTOOL64"; then
8589 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8595 test -z "$as_dir" && as_dir=.
8596 for ac_exec_ext in '' $ac_executable_extensions; do
8597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8598 ac_cv_prog_ac_ct_OTOOL64="otool64"
8599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8608 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8609 if test -n "$ac_ct_OTOOL64"; then
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8611 $as_echo "$ac_ct_OTOOL64" >&6; }
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8614 $as_echo "no" >&6; }
8617 if test "x$ac_ct_OTOOL64" = x; then
8620 case $cross_compiling:$ac_tool_warned in
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8624 ac_tool_warned=yes ;;
8626 OTOOL64=$ac_ct_OTOOL64
8629 OTOOL64="$ac_cv_prog_OTOOL64"
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8659 $as_echo_n "checking for -single_module linker flag... " >&6; }
8660 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8661 $as_echo_n "(cached) " >&6
8663 lt_cv_apple_cc_single_mod=no
8664 if test -z "${LT_MULTI_MODULE}"; then
8665 # By default we will add the -single_module flag. You can override
8666 # by either setting the environment variable LT_MULTI_MODULE
8667 # non-empty at configure time, or by adding -multi_module to the
8669 rm -rf libconftest.dylib*
8670 echo "int foo(void){return 1;}" > conftest.c
8671 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8672 -dynamiclib -Wl,-single_module conftest.c" >&5
8673 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8674 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8676 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8677 lt_cv_apple_cc_single_mod=yes
8679 cat conftest.err >&5
8681 rm -rf libconftest.dylib*
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8686 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8688 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8689 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8690 $as_echo_n "(cached) " >&6
8692 lt_cv_ld_exported_symbols_list=no
8693 save_LDFLAGS=$LDFLAGS
8694 echo "_main" > conftest.sym
8695 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8697 /* end confdefs.h. */
8707 if ac_fn_c_try_link "$LINENO"; then :
8708 lt_cv_ld_exported_symbols_list=yes
8710 lt_cv_ld_exported_symbols_list=no
8712 rm -f core conftest.err conftest.$ac_objext \
8713 conftest$ac_exeext conftest.$ac_ext
8714 LDFLAGS="$save_LDFLAGS"
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8718 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8720 $as_echo_n "checking for -force_load linker flag... " >&6; }
8721 if test "${lt_cv_ld_force_load+set}" = set; then :
8722 $as_echo_n "(cached) " >&6
8724 lt_cv_ld_force_load=no
8725 cat > conftest.c << _LT_EOF
8726 int forced_loaded() { return 2;}
8728 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8729 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8730 echo "$AR cru libconftest.a conftest.o" >&5
8731 $AR cru libconftest.a conftest.o 2>&5
8732 echo "$RANLIB libconftest.a" >&5
8733 $RANLIB libconftest.a 2>&5
8734 cat > conftest.c << _LT_EOF
8735 int main() { return 0;}
8737 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8738 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8740 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8741 lt_cv_ld_force_load=yes
8743 cat conftest.err >&5
8745 rm -f conftest.err libconftest.a conftest conftest.c
8746 rm -rf conftest.dSYM
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8750 $as_echo "$lt_cv_ld_force_load" >&6; }
8752 rhapsody* | darwin1.[012])
8753 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8755 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8756 darwin*) # darwin 5.x on
8757 # if running on 10.5 or later, the deployment target defaults
8758 # to the OS version, if on x86, and 10.4, the deployment
8759 # target defaults to 10.4. Don't you love it?
8760 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8761 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8762 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8764 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8766 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8770 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8771 _lt_dar_single_mod='$single_module'
8773 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8774 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8776 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8778 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8779 _lt_dsymutil='~$DSYMUTIL $lib || :'
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8788 $as_echo_n "checking for ANSI C header files... " >&6; }
8789 if test "${ac_cv_header_stdc+set}" = set; then :
8790 $as_echo_n "(cached) " >&6
8792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8793 /* end confdefs.h. */
8807 if ac_fn_c_try_compile "$LINENO"; then :
8808 ac_cv_header_stdc=yes
8810 ac_cv_header_stdc=no
8812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8814 if test $ac_cv_header_stdc = yes; then
8815 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8817 /* end confdefs.h. */
8821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8822 $EGREP "memchr" >/dev/null 2>&1; then :
8825 ac_cv_header_stdc=no
8831 if test $ac_cv_header_stdc = yes; then
8832 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8834 /* end confdefs.h. */
8838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8839 $EGREP "free" >/dev/null 2>&1; then :
8842 ac_cv_header_stdc=no
8848 if test $ac_cv_header_stdc = yes; then
8849 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8850 if test "$cross_compiling" = yes; then :
8853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8854 /* end confdefs.h. */
8857 #if ((' ' & 0x0FF) == 0x020)
8858 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8859 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8861 # define ISLOWER(c) \
8862 (('a' <= (c) && (c) <= 'i') \
8863 || ('j' <= (c) && (c) <= 'r') \
8864 || ('s' <= (c) && (c) <= 'z'))
8865 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8868 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8873 for (i = 0; i < 256; i++)
8874 if (XOR (islower (i), ISLOWER (i))
8875 || toupper (i) != TOUPPER (i))
8880 if ac_fn_c_try_run "$LINENO"; then :
8883 ac_cv_header_stdc=no
8885 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8886 conftest.$ac_objext conftest.beam conftest.$ac_ext
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8892 $as_echo "$ac_cv_header_stdc" >&6; }
8893 if test $ac_cv_header_stdc = yes; then
8895 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8899 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8900 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8901 inttypes.h stdint.h unistd.h
8903 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8904 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8906 eval as_val=\$$as_ac_Header
8907 if test "x$as_val" = x""yes; then :
8908 cat >>confdefs.h <<_ACEOF
8909 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8917 for ac_header in dlfcn.h
8919 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8921 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8922 cat >>confdefs.h <<_ACEOF
8923 #define HAVE_DLFCN_H 1
8943 # Check whether --enable-shared was given.
8944 if test "${enable_shared+set}" = set; then :
8945 enableval=$enable_shared; p=${PACKAGE-default}
8947 yes) enable_shared=yes ;;
8948 no) enable_shared=no ;;
8951 # Look at the argument we got. We use all the common list separators.
8952 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8953 for pkg in $enableval; do
8955 if test "X$pkg" = "X$p"; then
8974 # Check whether --enable-static was given.
8975 if test "${enable_static+set}" = set; then :
8976 enableval=$enable_static; p=${PACKAGE-default}
8978 yes) enable_static=yes ;;
8979 no) enable_static=no ;;
8982 # Look at the argument we got. We use all the common list separators.
8983 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8984 for pkg in $enableval; do
8986 if test "X$pkg" = "X$p"; then
9006 # Check whether --with-pic was given.
9007 if test "${with_pic+set}" = set; then :
9008 withval=$with_pic; pic_mode="$withval"
9014 test -z "$pic_mode" && pic_mode=default
9022 # Check whether --enable-fast-install was given.
9023 if test "${enable_fast_install+set}" = set; then :
9024 enableval=$enable_fast_install; p=${PACKAGE-default}
9026 yes) enable_fast_install=yes ;;
9027 no) enable_fast_install=no ;;
9029 enable_fast_install=no
9030 # Look at the argument we got. We use all the common list separators.
9031 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9032 for pkg in $enableval; do
9034 if test "X$pkg" = "X$p"; then
9035 enable_fast_install=yes
9042 enable_fast_install=yes
9055 # This can be used to rebuild libtool when needed
9056 LIBTOOL_DEPS="$ltmain"
9058 # Always use our own libtool.
9059 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9086 test -z "$LN_S" && LN_S="ln -s"
9101 if test -n "${ZSH_VERSION+set}" ; then
9102 setopt NO_GLOB_SUBST
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9106 $as_echo_n "checking for objdir... " >&6; }
9107 if test "${lt_cv_objdir+set}" = set; then :
9108 $as_echo_n "(cached) " >&6
9110 rm -f .libs 2>/dev/null
9111 mkdir .libs 2>/dev/null
9112 if test -d .libs; then
9115 # MS-DOS does not allow filenames that begin with a dot.
9118 rmdir .libs 2>/dev/null
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9121 $as_echo "$lt_cv_objdir" >&6; }
9122 objdir=$lt_cv_objdir
9128 cat >>confdefs.h <<_ACEOF
9129 #define LT_OBJDIR "$lt_cv_objdir/"
9137 # AIX sometimes has problems with the GCC collect2 program. For some
9138 # reason, if we set the COLLECT_NAMES environment variable, the problems
9139 # vanish in a puff of smoke.
9140 if test "X${COLLECT_NAMES+set}" != Xset; then
9142 export COLLECT_NAMES
9149 can_build_shared=yes
9151 # All known linkers require a `.a' archive for static linking (except MSVC,
9152 # which needs '.lib').
9155 with_gnu_ld="$lt_cv_prog_gnu_ld"
9158 old_CFLAGS="$CFLAGS"
9160 # Set sane defaults for various variables
9161 test -z "$CC" && CC=cc
9162 test -z "$LTCC" && LTCC=$CC
9163 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9164 test -z "$LD" && LD=ld
9165 test -z "$ac_objext" && ac_objext=o
9167 for cc_temp in $compiler""; do
9169 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9170 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9175 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9178 # Only perform the check for file, if the check method requires it
9179 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9180 case $deplibs_check_method in
9182 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9184 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9185 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9186 $as_echo_n "(cached) " >&6
9190 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9193 lt_save_MAGIC_CMD="$MAGIC_CMD"
9194 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9195 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9196 for ac_dir in $ac_dummy; do
9198 test -z "$ac_dir" && ac_dir=.
9199 if test -f $ac_dir/${ac_tool_prefix}file; then
9200 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9201 if test -n "$file_magic_test_file"; then
9202 case $deplibs_check_method in
9204 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9205 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9206 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9207 $EGREP "$file_magic_regex" > /dev/null; then
9212 *** Warning: the command libtool uses to detect shared libraries,
9213 *** $file_magic_cmd, produces output that libtool cannot recognize.
9214 *** The result is that libtool may fail to recognize shared libraries
9215 *** as such. This will affect the creation of libtool libraries that
9216 *** depend on shared libraries, but programs linked with such libtool
9217 *** libraries will work regardless of this problem. Nevertheless, you
9218 *** may want to report the problem to your system manager and/or to
9219 *** bug-libtool@gnu.org
9229 MAGIC_CMD="$lt_save_MAGIC_CMD"
9234 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9235 if test -n "$MAGIC_CMD"; then
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9237 $as_echo "$MAGIC_CMD" >&6; }
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9240 $as_echo "no" >&6; }
9247 if test -z "$lt_cv_path_MAGIC_CMD"; then
9248 if test -n "$ac_tool_prefix"; then
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9250 $as_echo_n "checking for file... " >&6; }
9251 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9252 $as_echo_n "(cached) " >&6
9256 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9259 lt_save_MAGIC_CMD="$MAGIC_CMD"
9260 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9261 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9262 for ac_dir in $ac_dummy; do
9264 test -z "$ac_dir" && ac_dir=.
9265 if test -f $ac_dir/file; then
9266 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9267 if test -n "$file_magic_test_file"; then
9268 case $deplibs_check_method in
9270 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9271 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9272 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9273 $EGREP "$file_magic_regex" > /dev/null; then
9278 *** Warning: the command libtool uses to detect shared libraries,
9279 *** $file_magic_cmd, produces output that libtool cannot recognize.
9280 *** The result is that libtool may fail to recognize shared libraries
9281 *** as such. This will affect the creation of libtool libraries that
9282 *** depend on shared libraries, but programs linked with such libtool
9283 *** libraries will work regardless of this problem. Nevertheless, you
9284 *** may want to report the problem to your system manager and/or to
9285 *** bug-libtool@gnu.org
9295 MAGIC_CMD="$lt_save_MAGIC_CMD"
9300 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9301 if test -n "$MAGIC_CMD"; then
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9303 $as_echo "$MAGIC_CMD" >&6; }
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9306 $as_echo "no" >&6; }
9319 # Use C for the default configuration in the libtool script
9323 ac_cpp='$CPP $CPPFLAGS'
9324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9329 # Source file extension for C test sources.
9332 # Object file extension for compiled C test sources.
9336 # Code to be used in simple compile tests
9337 lt_simple_compile_test_code="int some_variable = 0;"
9339 # Code to be used in simple link tests
9340 lt_simple_link_test_code='int main(){return(0);}'
9348 # If no C compiler was specified, use CC.
9351 # If no C compiler flags were specified, use CFLAGS.
9352 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9354 # Allow CC to be a program name with arguments.
9357 # Save the default compiler, since it gets overwritten when the other
9358 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9359 compiler_DEFAULT=$CC
9361 # save warnings/boilerplate of simple test code
9362 ac_outfile=conftest.$ac_objext
9363 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9364 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9365 _lt_compiler_boilerplate=`cat conftest.err`
9368 ac_outfile=conftest.$ac_objext
9369 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9370 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9371 _lt_linker_boilerplate=`cat conftest.err`
9376 ## There is no encapsulation within the following macros, do not change
9377 ## the running order or otherwise move them around unless you know exactly
9378 ## what you are doing...
9379 if test -n "$compiler"; then
9381 lt_prog_compiler_no_builtin_flag=
9383 if test "$GCC" = yes; then
9384 case $cc_basename in
9386 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9388 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9392 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9393 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9394 $as_echo_n "(cached) " >&6
9396 lt_cv_prog_compiler_rtti_exceptions=no
9397 ac_outfile=conftest.$ac_objext
9398 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9399 lt_compiler_flag="-fno-rtti -fno-exceptions"
9400 # Insert the option either (1) after the last *FLAGS variable, or
9401 # (2) before a word containing "conftest.", or (3) at the end.
9402 # Note that $ac_compile itself does not contain backslashes and begins
9403 # with a dollar sign (not a hyphen), so the echo should work correctly.
9404 # The option is referenced via a variable to avoid confusing sed.
9405 lt_compile=`echo "$ac_compile" | $SED \
9406 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9407 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9408 -e 's:$: $lt_compiler_flag:'`
9409 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9410 (eval "$lt_compile" 2>conftest.err)
9412 cat conftest.err >&5
9413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414 if (exit $ac_status) && test -s "$ac_outfile"; then
9415 # The compiler can only warn and ignore the option if not recognized
9416 # So say no if there are warnings other than the usual output.
9417 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9418 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9419 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9420 lt_cv_prog_compiler_rtti_exceptions=yes
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9427 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9429 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9430 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9442 lt_prog_compiler_wl=
9443 lt_prog_compiler_pic=
9444 lt_prog_compiler_static=
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9447 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9449 if test "$GCC" = yes; then
9450 lt_prog_compiler_wl='-Wl,'
9451 lt_prog_compiler_static='-static'
9455 # All AIX code is PIC.
9456 if test "$host_cpu" = ia64; then
9457 # AIX 5 now supports IA64 processor
9458 lt_prog_compiler_static='-Bstatic'
9465 # see comment about AmigaOS4 .so support
9466 lt_prog_compiler_pic='-fPIC'
9469 # FIXME: we need at least 68020 code to build shared libraries, but
9470 # adding the `-m68020' flag to GCC prevents building anything better,
9472 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9477 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9478 # PIC is the default for these OSes.
9481 mingw* | cygwin* | pw32* | os2* | cegcc*)
9482 # This hack is so that the source file can tell whether it is being
9483 # built for inclusion in a dll (and should export symbols for example).
9484 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9485 # (--disable-auto-import) libraries
9486 lt_prog_compiler_pic='-DDLL_EXPORT'
9489 darwin* | rhapsody*)
9490 # PIC is the default on this platform
9491 # Common symbols not allowed in MH_DYLIB files
9492 lt_prog_compiler_pic='-fno-common'
9496 # PIC is the default for Haiku.
9497 # The "-static" flag exists, but is broken.
9498 lt_prog_compiler_static=
9502 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9503 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9504 # sets the default TLS model and affects inlining.
9510 lt_prog_compiler_pic='-fPIC'
9516 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9517 # Instead, we relocate shared libraries at runtime.
9521 # Just because we use GCC doesn't mean we suddenly get shared libraries
9522 # on systems that don't support them.
9523 lt_prog_compiler_can_build_shared=no
9528 # QNX uses GNU C++, but need to define -shared option too, otherwise
9530 lt_prog_compiler_pic='-fPIC -shared'
9534 if test -d /usr/nec; then
9535 lt_prog_compiler_pic=-Kconform_pic
9540 lt_prog_compiler_pic='-fPIC'
9544 case $cc_basename in
9545 nvcc*) # Cuda Compiler Driver 2.2
9546 lt_prog_compiler_wl='-Xlinker '
9547 lt_prog_compiler_pic='-Xcompiler -fPIC'
9551 # PORTME Check for flag to pass linker flags through the system compiler.
9554 lt_prog_compiler_wl='-Wl,'
9555 if test "$host_cpu" = ia64; then
9556 # AIX 5 now supports IA64 processor
9557 lt_prog_compiler_static='-Bstatic'
9559 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9563 mingw* | cygwin* | pw32* | os2* | cegcc*)
9564 # This hack is so that the source file can tell whether it is being
9565 # built for inclusion in a dll (and should export symbols for example).
9566 lt_prog_compiler_pic='-DDLL_EXPORT'
9569 hpux9* | hpux10* | hpux11*)
9570 lt_prog_compiler_wl='-Wl,'
9571 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9578 lt_prog_compiler_pic='+Z'
9581 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9582 lt_prog_compiler_static='${wl}-a ${wl}archive'
9585 irix5* | irix6* | nonstopux*)
9586 lt_prog_compiler_wl='-Wl,'
9587 # PIC (with -KPIC) is the default.
9588 lt_prog_compiler_static='-non_shared'
9591 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9592 case $cc_basename in
9593 # old Intel for x86_64 which still supported -KPIC.
9595 lt_prog_compiler_wl='-Wl,'
9596 lt_prog_compiler_pic='-KPIC'
9597 lt_prog_compiler_static='-static'
9599 # icc used to be incompatible with GCC.
9600 # ICC 10 doesn't accept -KPIC any more.
9602 lt_prog_compiler_wl='-Wl,'
9603 lt_prog_compiler_pic='-fPIC'
9604 lt_prog_compiler_static='-static'
9606 # Lahey Fortran 8.1.
9608 lt_prog_compiler_wl='-Wl,'
9609 lt_prog_compiler_pic='--shared'
9610 lt_prog_compiler_static='--static'
9612 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9613 # Portland Group compilers (*not* the Pentium gcc compiler,
9614 # which looks to be a dead project)
9615 lt_prog_compiler_wl='-Wl,'
9616 lt_prog_compiler_pic='-fpic'
9617 lt_prog_compiler_static='-Bstatic'
9620 lt_prog_compiler_wl='-Wl,'
9621 # All Alpha code is PIC.
9622 lt_prog_compiler_static='-non_shared'
9624 xl* | bgxl* | bgf* | mpixl*)
9625 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9626 lt_prog_compiler_wl='-Wl,'
9627 lt_prog_compiler_pic='-qpic'
9628 lt_prog_compiler_static='-qstaticlink'
9631 case `$CC -V 2>&1 | sed 5q` in
9632 *Sun\ F* | *Sun*Fortran*)
9633 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9634 lt_prog_compiler_pic='-KPIC'
9635 lt_prog_compiler_static='-Bstatic'
9636 lt_prog_compiler_wl=''
9640 lt_prog_compiler_pic='-KPIC'
9641 lt_prog_compiler_static='-Bstatic'
9642 lt_prog_compiler_wl='-Wl,'
9650 lt_prog_compiler_pic='-KPIC'
9651 lt_prog_compiler_static='-Bstatic'
9655 # QNX uses GNU C++, but need to define -shared option too, otherwise
9657 lt_prog_compiler_pic='-fPIC -shared'
9660 osf3* | osf4* | osf5*)
9661 lt_prog_compiler_wl='-Wl,'
9662 # All OSF/1 code is PIC.
9663 lt_prog_compiler_static='-non_shared'
9667 lt_prog_compiler_static='-non_shared'
9671 lt_prog_compiler_pic='-KPIC'
9672 lt_prog_compiler_static='-Bstatic'
9673 case $cc_basename in
9674 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9675 lt_prog_compiler_wl='-Qoption ld ';;
9677 lt_prog_compiler_wl='-Wl,';;
9682 lt_prog_compiler_wl='-Qoption ld '
9683 lt_prog_compiler_pic='-PIC'
9684 lt_prog_compiler_static='-Bstatic'
9687 sysv4 | sysv4.2uw2* | sysv4.3*)
9688 lt_prog_compiler_wl='-Wl,'
9689 lt_prog_compiler_pic='-KPIC'
9690 lt_prog_compiler_static='-Bstatic'
9694 if test -d /usr/nec ;then
9695 lt_prog_compiler_pic='-Kconform_pic'
9696 lt_prog_compiler_static='-Bstatic'
9700 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9701 lt_prog_compiler_wl='-Wl,'
9702 lt_prog_compiler_pic='-KPIC'
9703 lt_prog_compiler_static='-Bstatic'
9707 lt_prog_compiler_wl='-Wl,'
9708 lt_prog_compiler_can_build_shared=no
9712 lt_prog_compiler_pic='-pic'
9713 lt_prog_compiler_static='-Bstatic'
9717 lt_prog_compiler_can_build_shared=no
9723 # For platforms which do not support PIC, -DPIC is meaningless:
9725 lt_prog_compiler_pic=
9728 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9732 $as_echo "$lt_prog_compiler_pic" >&6; }
9740 # Check to make sure the PIC flag actually works.
9742 if test -n "$lt_prog_compiler_pic"; then
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9744 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9745 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9746 $as_echo_n "(cached) " >&6
9748 lt_cv_prog_compiler_pic_works=no
9749 ac_outfile=conftest.$ac_objext
9750 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9751 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9752 # Insert the option either (1) after the last *FLAGS variable, or
9753 # (2) before a word containing "conftest.", or (3) at the end.
9754 # Note that $ac_compile itself does not contain backslashes and begins
9755 # with a dollar sign (not a hyphen), so the echo should work correctly.
9756 # The option is referenced via a variable to avoid confusing sed.
9757 lt_compile=`echo "$ac_compile" | $SED \
9758 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9759 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9760 -e 's:$: $lt_compiler_flag:'`
9761 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9762 (eval "$lt_compile" 2>conftest.err)
9764 cat conftest.err >&5
9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 if (exit $ac_status) && test -s "$ac_outfile"; then
9767 # The compiler can only warn and ignore the option if not recognized
9768 # So say no if there are warnings other than the usual output.
9769 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9770 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9771 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9772 lt_cv_prog_compiler_pic_works=yes
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9779 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9781 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9782 case $lt_prog_compiler_pic in
9784 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9787 lt_prog_compiler_pic=
9788 lt_prog_compiler_can_build_shared=no
9799 # Check to make sure the static flag actually works.
9801 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9803 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9804 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9805 $as_echo_n "(cached) " >&6
9807 lt_cv_prog_compiler_static_works=no
9808 save_LDFLAGS="$LDFLAGS"
9809 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9810 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9811 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9812 # The linker can only warn and ignore the option if not recognized
9813 # So say no if there are warnings
9814 if test -s conftest.err; then
9815 # Append any errors to the config.log.
9816 cat conftest.err 1>&5
9817 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9818 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9819 if diff conftest.exp conftest.er2 >/dev/null; then
9820 lt_cv_prog_compiler_static_works=yes
9823 lt_cv_prog_compiler_static_works=yes
9827 LDFLAGS="$save_LDFLAGS"
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9831 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9833 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9836 lt_prog_compiler_static=
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9846 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9847 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9848 $as_echo_n "(cached) " >&6
9850 lt_cv_prog_compiler_c_o=no
9851 $RM -r conftest 2>/dev/null
9855 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9857 lt_compiler_flag="-o out/conftest2.$ac_objext"
9858 # Insert the option either (1) after the last *FLAGS variable, or
9859 # (2) before a word containing "conftest.", or (3) at the end.
9860 # Note that $ac_compile itself does not contain backslashes and begins
9861 # with a dollar sign (not a hyphen), so the echo should work correctly.
9862 lt_compile=`echo "$ac_compile" | $SED \
9863 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9864 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9865 -e 's:$: $lt_compiler_flag:'`
9866 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9867 (eval "$lt_compile" 2>out/conftest.err)
9869 cat out/conftest.err >&5
9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9873 # The compiler can only warn and ignore the option if not recognized
9874 # So say no if there are warnings
9875 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9876 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9877 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9878 lt_cv_prog_compiler_c_o=yes
9883 # SGI C++ compiler will create directory out/ii_files/ for
9884 # template instantiation
9885 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9886 $RM out/* && rmdir out
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9893 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9901 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9902 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9903 $as_echo_n "(cached) " >&6
9905 lt_cv_prog_compiler_c_o=no
9906 $RM -r conftest 2>/dev/null
9910 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9912 lt_compiler_flag="-o out/conftest2.$ac_objext"
9913 # Insert the option either (1) after the last *FLAGS variable, or
9914 # (2) before a word containing "conftest.", or (3) at the end.
9915 # Note that $ac_compile itself does not contain backslashes and begins
9916 # with a dollar sign (not a hyphen), so the echo should work correctly.
9917 lt_compile=`echo "$ac_compile" | $SED \
9918 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9919 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9920 -e 's:$: $lt_compiler_flag:'`
9921 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9922 (eval "$lt_compile" 2>out/conftest.err)
9924 cat out/conftest.err >&5
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9928 # The compiler can only warn and ignore the option if not recognized
9929 # So say no if there are warnings
9930 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9931 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9932 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9933 lt_cv_prog_compiler_c_o=yes
9938 # SGI C++ compiler will create directory out/ii_files/ for
9939 # template instantiation
9940 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9941 $RM out/* && rmdir out
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9948 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9953 hard_links="nottested"
9954 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9955 # do not overwrite the value of need_locks provided by the user
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9957 $as_echo_n "checking if we can lock with hard links... " >&6; }
9960 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9962 ln conftest.a conftest.b 2>&5 || hard_links=no
9963 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9965 $as_echo "$hard_links" >&6; }
9966 if test "$hard_links" = no; then
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9968 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9981 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9984 allow_undefined_flag=
9985 always_export_symbols=no
9987 archive_expsym_cmds=
9988 compiler_needs_object=no
9989 enable_shared_with_static_runtimes=no
9990 export_dynamic_flag_spec=
9991 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9992 hardcode_automatic=no
9994 hardcode_direct_absolute=no
9995 hardcode_libdir_flag_spec=
9996 hardcode_libdir_flag_spec_ld=
9997 hardcode_libdir_separator=
9999 hardcode_shlibpath_var=unsupported
10001 link_all_deplibs=unknown
10003 module_expsym_cmds=
10004 old_archive_from_new_cmds=
10005 old_archive_from_expsyms_cmds=
10006 thread_safe_flag_spec=
10007 whole_archive_flag_spec=
10008 # include_expsyms should be a list of space-separated symbols to be *always*
10009 # included in the symbol list
10011 # exclude_expsyms can be an extended regexp of symbols to exclude
10012 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10013 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10014 # as well as any symbol that contains `d'.
10015 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10016 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10017 # platforms (ab)use it in PIC code, but their linkers get confused if
10018 # the symbol is explicitly referenced. Since portable code cannot
10019 # rely on this symbol name, it's probably fine to never include it in
10020 # preloaded symbol tables.
10021 # Exclude shared library initialization/finalization symbols.
10022 extract_expsyms_cmds=
10025 cygwin* | mingw* | pw32* | cegcc*)
10026 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10027 # When not using gcc, we currently assume that we are using
10028 # Microsoft Visual C++.
10029 if test "$GCC" != yes; then
10034 # we just hope/assume this is gcc and not c89 (= MSVC++)
10044 # On some targets, GNU ld is compatible enough with the native linker
10045 # that we're better off using the native interface for both.
10046 lt_use_gnu_ld_interface=no
10047 if test "$with_gnu_ld" = yes; then
10050 # The AIX port of GNU ld has always aspired to compatibility
10051 # with the native linker. However, as the warning in the GNU ld
10052 # block says, versions before 2.19.5* couldn't really create working
10053 # shared libraries, regardless of the interface used.
10054 case `$LD -v 2>&1` in
10055 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10056 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10057 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10059 lt_use_gnu_ld_interface=yes
10064 lt_use_gnu_ld_interface=yes
10069 if test "$lt_use_gnu_ld_interface" = yes; then
10070 # If archive_cmds runs LD, not CC, wlarc should be empty
10073 # Set some defaults for GNU ld with shared library support. These
10074 # are reset later if shared libraries are not supported. Putting them
10075 # here allows them to be overridden if necessary.
10076 runpath_var=LD_RUN_PATH
10077 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10078 export_dynamic_flag_spec='${wl}--export-dynamic'
10079 # ancient GNU ld didn't support --whole-archive et. al.
10080 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10081 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10083 whole_archive_flag_spec=
10085 supports_anon_versioning=no
10086 case `$LD -v 2>&1` in
10087 *GNU\ gold*) supports_anon_versioning=yes ;;
10088 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10089 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10090 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10091 *\ 2.11.*) ;; # other 2.11 versions
10092 *) supports_anon_versioning=yes ;;
10095 # See if GNU ld supports shared libraries.
10098 # On AIX/PPC, the GNU linker is very broken
10099 if test "$host_cpu" != ia64; then
10103 *** Warning: the GNU linker, at least up to release 2.19, is reported
10104 *** to be unable to reliably create shared libraries on AIX.
10105 *** Therefore, libtool is disabling shared libraries support. If you
10106 *** really care for shared libraries, you may want to install binutils
10107 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10108 *** You will then need to restart the configuration process.
10117 # see comment about AmigaOS4 .so support
10118 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10119 archive_expsym_cmds=''
10122 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)'
10123 hardcode_libdir_flag_spec='-L$libdir'
10124 hardcode_minus_L=yes
10130 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10131 allow_undefined_flag=unsupported
10132 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10133 # support --undefined. This deserves some investigation. FIXME
10134 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10140 cygwin* | mingw* | pw32* | cegcc*)
10141 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10142 # as there is no search path for DLLs.
10143 hardcode_libdir_flag_spec='-L$libdir'
10144 export_dynamic_flag_spec='${wl}--export-all-symbols'
10145 allow_undefined_flag=unsupported
10146 always_export_symbols=no
10147 enable_shared_with_static_runtimes=yes
10148 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10150 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10151 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10152 # If the export-symbols file already is a .def file (1st line
10153 # is EXPORTS), use it as is; otherwise, prepend...
10154 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10155 cp $export_symbols $output_objdir/$soname.def;
10157 echo EXPORTS > $output_objdir/$soname.def;
10158 cat $export_symbols >> $output_objdir/$soname.def;
10160 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10167 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10168 link_all_deplibs=yes
10173 hardcode_shlibpath_var=no
10174 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10175 export_dynamic_flag_spec='${wl}-E'
10176 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10177 # Instead, shared libraries are loaded at an image base (0x10000000 by
10178 # default) and relocated if they conflict, which is a slow very memory
10179 # consuming and fragmenting process. To avoid this, we pick a random,
10180 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10181 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10182 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10183 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'
10186 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10188 if test "$host_os" = linux-dietlibc; then
10189 case $cc_basename in
10190 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10193 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10194 && test "$tmp_diet" = no
10197 tmp_sharedflag='-shared'
10198 case $cc_basename,$host_cpu in
10199 pgcc*) # Portland Group C compiler
10200 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'
10201 tmp_addflag=' $pic_flag'
10203 pgf77* | pgf90* | pgf95* | pgfortran*)
10204 # Portland Group f77 and f90 compilers
10205 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'
10206 tmp_addflag=' $pic_flag -Mnomain' ;;
10207 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10208 tmp_addflag=' -i_dynamic' ;;
10209 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10210 tmp_addflag=' -i_dynamic -nofor_main' ;;
10211 ifc* | ifort*) # Intel Fortran compiler
10212 tmp_addflag=' -nofor_main' ;;
10213 lf95*) # Lahey Fortran 8.1
10214 whole_archive_flag_spec=
10215 tmp_sharedflag='--shared' ;;
10216 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10217 tmp_sharedflag='-qmkshrobj'
10219 nvcc*) # Cuda Compiler Driver 2.2
10220 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'
10221 compiler_needs_object=yes
10224 case `$CC -V 2>&1 | sed 5q` in
10225 *Sun\ C*) # Sun C 5.9
10226 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'
10227 compiler_needs_object=yes
10228 tmp_sharedflag='-G' ;;
10229 *Sun\ F*) # Sun Fortran 8.3
10230 tmp_sharedflag='-G' ;;
10232 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10234 if test "x$supports_anon_versioning" = xyes; then
10235 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10236 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10237 echo "local: *; };" >> $output_objdir/$libname.ver~
10238 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10241 case $cc_basename in
10242 xlf* | bgf* | bgxlf* | mpixlf*)
10243 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10244 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10245 hardcode_libdir_flag_spec=
10246 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10247 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10248 if test "x$supports_anon_versioning" = xyes; then
10249 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10250 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10251 echo "local: *; };" >> $output_objdir/$libname.ver~
10252 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10262 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10263 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10266 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10267 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10272 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10276 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10277 *** create shared libraries on Solaris systems. Therefore, libtool
10278 *** is disabling shared libraries support. We urge you to upgrade GNU
10279 *** binutils to release 2.9.1 or newer. Another option is to modify
10280 *** your PATH or compiler configuration so that the native linker is
10281 *** used, and then restart.
10284 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10285 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10286 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10292 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10293 case `$LD -v 2>&1` in
10294 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10298 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10299 *** reliably create shared libraries on SCO systems. Therefore, libtool
10300 *** is disabling shared libraries support. We urge you to upgrade GNU
10301 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10302 *** your PATH or compiler configuration so that the native linker is
10303 *** used, and then restart.
10308 # For security reasons, it is highly recommended that you always
10309 # use absolute paths for naming shared libraries, and exclude the
10310 # DT_RUNPATH tag from executables and libraries. But doing so
10311 # requires that you compile everything twice, which is a pain.
10312 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10313 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10314 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10315 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10324 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10326 hardcode_direct=yes
10327 hardcode_shlibpath_var=no
10331 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10332 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10333 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10340 if test "$ld_shlibs" = no; then
10342 hardcode_libdir_flag_spec=
10343 export_dynamic_flag_spec=
10344 whole_archive_flag_spec=
10347 # PORTME fill in a description of your system's linker (not GNU ld)
10350 allow_undefined_flag=unsupported
10351 always_export_symbols=yes
10352 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'
10353 # Note: this linker hardcodes the directories in LIBPATH if there
10354 # are no directories specified by -L.
10355 hardcode_minus_L=yes
10356 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10357 # Neither direct hardcoding nor static linking is supported with a
10359 hardcode_direct=unsupported
10364 if test "$host_cpu" = ia64; then
10365 # On IA64, the linker does run time linking by default, so we don't
10366 # have to do anything special.
10367 aix_use_runtimelinking=no
10368 exp_sym_flag='-Bexport'
10371 # If we're using GNU nm, then we don't want the "-C" option.
10372 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10373 # Also, AIX nm treats weak defined symbols like other global
10374 # defined symbols, whereas GNU nm marks them as "W".
10375 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10376 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'
10378 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'
10380 aix_use_runtimelinking=no
10382 # Test if we are trying to use run time linking or normal
10383 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10384 # need to do runtime linking.
10385 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10386 for ld_flag in $LDFLAGS; do
10387 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10388 aix_use_runtimelinking=yes
10395 exp_sym_flag='-bexport'
10396 no_entry_flag='-bnoentry'
10399 # When large executables or shared objects are built, AIX ld can
10400 # have problems creating the table of contents. If linking a library
10401 # or program results in "error TOC overflow" add -mminimal-toc to
10402 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10403 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10406 hardcode_direct=yes
10407 hardcode_direct_absolute=yes
10408 hardcode_libdir_separator=':'
10409 link_all_deplibs=yes
10410 file_list_spec='${wl}-f,'
10412 if test "$GCC" = yes; then
10413 case $host_os in aix4.[012]|aix4.[012].*)
10414 # We only want to do this on AIX 4.2 and lower, the check
10415 # below for broken collect2 doesn't work under 4.3+
10416 collect2name=`${CC} -print-prog-name=collect2`
10417 if test -f "$collect2name" &&
10418 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10420 # We have reworked collect2
10423 # We have old collect2
10424 hardcode_direct=unsupported
10425 # It fails to find uninstalled libraries when the uninstalled
10426 # path is not listed in the libpath. Setting hardcode_minus_L
10427 # to unsupported forces relinking
10428 hardcode_minus_L=yes
10429 hardcode_libdir_flag_spec='-L$libdir'
10430 hardcode_libdir_separator=
10434 shared_flag='-shared'
10435 if test "$aix_use_runtimelinking" = yes; then
10436 shared_flag="$shared_flag "'${wl}-G'
10440 if test "$host_cpu" = ia64; then
10441 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10442 # chokes on -Wl,-G. The following line is correct:
10445 if test "$aix_use_runtimelinking" = yes; then
10446 shared_flag='${wl}-G'
10448 shared_flag='${wl}-bM:SRE'
10453 export_dynamic_flag_spec='${wl}-bexpall'
10454 # It seems that -bexpall does not export symbols beginning with
10455 # underscore (_), so it is better to generate a list of symbols to export.
10456 always_export_symbols=yes
10457 if test "$aix_use_runtimelinking" = yes; then
10458 # Warning - without using the other runtime loading flags (-brtl),
10459 # -berok will link without error, but may produce a broken library.
10460 allow_undefined_flag='-berok'
10461 # Determine the default libpath from the value encoded in an
10462 # empty executable.
10463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10464 /* end confdefs.h. */
10474 if ac_fn_c_try_link "$LINENO"; then :
10476 lt_aix_libpath_sed='
10477 /Import File Strings/,/^$/ {
10483 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10484 # Check for a 64-bit object if we didn't find anything.
10485 if test -z "$aix_libpath"; then
10486 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10489 rm -f core conftest.err conftest.$ac_objext \
10490 conftest$ac_exeext conftest.$ac_ext
10491 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10493 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10494 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"
10496 if test "$host_cpu" = ia64; then
10497 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10498 allow_undefined_flag="-z nodefs"
10499 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"
10501 # Determine the default libpath from the value encoded in an
10502 # empty executable.
10503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10504 /* end confdefs.h. */
10514 if ac_fn_c_try_link "$LINENO"; then :
10516 lt_aix_libpath_sed='
10517 /Import File Strings/,/^$/ {
10523 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10524 # Check for a 64-bit object if we didn't find anything.
10525 if test -z "$aix_libpath"; then
10526 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10529 rm -f core conftest.err conftest.$ac_objext \
10530 conftest$ac_exeext conftest.$ac_ext
10531 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10533 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10534 # Warning - without using the other run time loading flags,
10535 # -berok will link without error, but may produce a broken library.
10536 no_undefined_flag=' ${wl}-bernotok'
10537 allow_undefined_flag=' ${wl}-berok'
10538 if test "$with_gnu_ld" = yes; then
10539 # We only use this code for GNU lds that support --whole-archive.
10540 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10542 # Exported symbols can be pulled into shared objects from archives
10543 whole_archive_flag_spec='$convenience'
10545 archive_cmds_need_lc=yes
10546 # This is similar to how AIX traditionally builds its shared libraries.
10547 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'
10555 # see comment about AmigaOS4 .so support
10556 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10557 archive_expsym_cmds=''
10560 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)'
10561 hardcode_libdir_flag_spec='-L$libdir'
10562 hardcode_minus_L=yes
10568 export_dynamic_flag_spec=-rdynamic
10571 cygwin* | mingw* | pw32* | cegcc*)
10572 # When not using gcc, we currently assume that we are using
10573 # Microsoft Visual C++.
10574 # hardcode_libdir_flag_spec is actually meaningless, as there is
10575 # no search path for DLLs.
10576 hardcode_libdir_flag_spec=' '
10577 allow_undefined_flag=unsupported
10578 # Tell ltmain to make .lib files, not .a files.
10580 # Tell ltmain to make .dll files, not .so files.
10582 # FIXME: Setting linknames here is a bad hack.
10583 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10584 # The linker will automatically build a .lib file if we build a DLL.
10585 old_archive_from_new_cmds='true'
10586 # FIXME: Should let the user specify the lib program.
10587 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10588 fix_srcfile_path='`cygpath -w "$srcfile"`'
10589 enable_shared_with_static_runtimes=yes
10592 darwin* | rhapsody*)
10595 archive_cmds_need_lc=no
10597 hardcode_automatic=yes
10598 hardcode_shlibpath_var=unsupported
10599 if test "$lt_cv_ld_force_load" = "yes"; then
10600 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\"`'
10602 whole_archive_flag_spec=''
10604 link_all_deplibs=yes
10605 allow_undefined_flag="$_lt_dar_allow_undefined"
10606 case $cc_basename in
10607 ifort*) _lt_dar_can_shared=yes ;;
10608 *) _lt_dar_can_shared=$GCC ;;
10610 if test "$_lt_dar_can_shared" = "yes"; then
10611 output_verbose_link_cmd=func_echo_all
10612 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10613 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10614 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}"
10615 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}"
10624 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10625 hardcode_libdir_flag_spec='-L$libdir'
10626 hardcode_shlibpath_var=no
10633 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10634 # support. Future versions do this automatically, but an explicit c++rt0.o
10635 # does not break anything, and helps significantly (at the cost of a little
10638 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10639 hardcode_libdir_flag_spec='-R$libdir'
10640 hardcode_direct=yes
10641 hardcode_shlibpath_var=no
10644 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10646 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10647 hardcode_direct=yes
10648 hardcode_minus_L=yes
10649 hardcode_shlibpath_var=no
10652 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10653 freebsd* | dragonfly*)
10654 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10655 hardcode_libdir_flag_spec='-R$libdir'
10656 hardcode_direct=yes
10657 hardcode_shlibpath_var=no
10661 if test "$GCC" = yes; then
10662 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10664 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'
10666 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10667 hardcode_libdir_separator=:
10668 hardcode_direct=yes
10670 # hardcode_minus_L: Not really in the search PATH,
10671 # but as the default location of the library.
10672 hardcode_minus_L=yes
10673 export_dynamic_flag_spec='${wl}-E'
10677 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10678 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10680 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10682 if test "$with_gnu_ld" = no; then
10683 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10684 hardcode_libdir_flag_spec_ld='+b $libdir'
10685 hardcode_libdir_separator=:
10686 hardcode_direct=yes
10687 hardcode_direct_absolute=yes
10688 export_dynamic_flag_spec='${wl}-E'
10689 # hardcode_minus_L: Not really in the search PATH,
10690 # but as the default location of the library.
10691 hardcode_minus_L=yes
10696 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10699 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10702 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10705 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10711 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10714 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10718 # Older versions of the 11.00 compiler do not understand -b yet
10719 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10721 $as_echo_n "checking if $CC understands -b... " >&6; }
10722 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10723 $as_echo_n "(cached) " >&6
10725 lt_cv_prog_compiler__b=no
10726 save_LDFLAGS="$LDFLAGS"
10727 LDFLAGS="$LDFLAGS -b"
10728 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10729 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10730 # The linker can only warn and ignore the option if not recognized
10731 # So say no if there are warnings
10732 if test -s conftest.err; then
10733 # Append any errors to the config.log.
10734 cat conftest.err 1>&5
10735 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10736 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10737 if diff conftest.exp conftest.er2 >/dev/null; then
10738 lt_cv_prog_compiler__b=yes
10741 lt_cv_prog_compiler__b=yes
10745 LDFLAGS="$save_LDFLAGS"
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10749 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10751 if test x"$lt_cv_prog_compiler__b" = xyes; then
10752 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10754 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10760 if test "$with_gnu_ld" = no; then
10761 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10762 hardcode_libdir_separator=:
10767 hardcode_shlibpath_var=no
10770 hardcode_direct=yes
10771 hardcode_direct_absolute=yes
10772 export_dynamic_flag_spec='${wl}-E'
10774 # hardcode_minus_L: Not really in the search PATH,
10775 # but as the default location of the library.
10776 hardcode_minus_L=yes
10782 irix5* | irix6* | nonstopux*)
10783 if test "$GCC" = yes; then
10784 archive_cmds='$CC -shared $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'
10785 # Try to use the -exported_symbol ld option, if it does not
10786 # work, assume that -exports_file does not work either and
10787 # implicitly export all symbols.
10788 save_LDFLAGS="$LDFLAGS"
10789 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10791 /* end confdefs.h. */
10794 if ac_fn_c_try_link "$LINENO"; then :
10795 archive_expsym_cmds='$CC -shared $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'
10798 rm -f core conftest.err conftest.$ac_objext \
10799 conftest$ac_exeext conftest.$ac_ext
10800 LDFLAGS="$save_LDFLAGS"
10802 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'
10803 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'
10805 archive_cmds_need_lc='no'
10806 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10807 hardcode_libdir_separator=:
10809 link_all_deplibs=yes
10813 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10814 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10816 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10818 hardcode_libdir_flag_spec='-R$libdir'
10819 hardcode_direct=yes
10820 hardcode_shlibpath_var=no
10824 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10825 hardcode_direct=yes
10826 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10827 hardcode_libdir_separator=:
10828 hardcode_shlibpath_var=no
10835 if test -f /usr/libexec/ld.so; then
10836 hardcode_direct=yes
10837 hardcode_shlibpath_var=no
10838 hardcode_direct_absolute=yes
10839 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10840 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10841 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10842 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10843 export_dynamic_flag_spec='${wl}-E'
10846 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10847 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10848 hardcode_libdir_flag_spec='-R$libdir'
10851 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10852 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10862 hardcode_libdir_flag_spec='-L$libdir'
10863 hardcode_minus_L=yes
10864 allow_undefined_flag=unsupported
10865 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'
10866 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10870 if test "$GCC" = yes; then
10871 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10872 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'
10874 allow_undefined_flag=' -expect_unresolved \*'
10875 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'
10877 archive_cmds_need_lc='no'
10878 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10879 hardcode_libdir_separator=:
10882 osf4* | osf5*) # as osf3* with the addition of -msym flag
10883 if test "$GCC" = yes; then
10884 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10885 archive_cmds='$CC -shared${allow_undefined_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'
10886 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10888 allow_undefined_flag=' -expect_unresolved \*'
10889 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'
10890 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~
10891 $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'
10893 # Both c and cxx compiler support -rpath directly
10894 hardcode_libdir_flag_spec='-rpath $libdir'
10896 archive_cmds_need_lc='no'
10897 hardcode_libdir_separator=:
10901 no_undefined_flag=' -z defs'
10902 if test "$GCC" = yes; then
10904 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10905 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10906 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10908 case `$CC -V 2>&1` in
10911 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10912 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10913 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10917 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10918 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10919 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10923 hardcode_libdir_flag_spec='-R$libdir'
10924 hardcode_shlibpath_var=no
10926 solaris2.[0-5] | solaris2.[0-5].*) ;;
10928 # The compiler driver will combine and reorder linker options,
10929 # but understands `-z linker_flag'. GCC discards it without `$wl',
10930 # but is careful enough not to reorder.
10931 # Supported since Solaris 2.6 (maybe 2.5.1?)
10932 if test "$GCC" = yes; then
10933 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10935 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10939 link_all_deplibs=yes
10943 if test "x$host_vendor" = xsequent; then
10944 # Use $CC to link under sequent, because it throws in some extra .o
10945 # files that make .init and .fini sections work.
10946 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10948 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10950 hardcode_libdir_flag_spec='-L$libdir'
10951 hardcode_direct=yes
10952 hardcode_minus_L=yes
10953 hardcode_shlibpath_var=no
10957 case $host_vendor in
10959 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10960 hardcode_direct=yes # is this really true???
10963 ## LD is ld it makes a PLAMLIB
10964 ## CC just makes a GrossModule.
10965 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10966 reload_cmds='$CC -r -o $output$reload_objs'
10970 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10971 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10974 runpath_var='LD_RUN_PATH'
10975 hardcode_shlibpath_var=no
10979 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10980 hardcode_shlibpath_var=no
10981 export_dynamic_flag_spec='-Bexport'
10985 if test -d /usr/nec; then
10986 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10987 hardcode_shlibpath_var=no
10988 runpath_var=LD_RUN_PATH
10989 hardcode_runpath_var=yes
10994 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10995 no_undefined_flag='${wl}-z,text'
10996 archive_cmds_need_lc=no
10997 hardcode_shlibpath_var=no
10998 runpath_var='LD_RUN_PATH'
11000 if test "$GCC" = yes; then
11001 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11002 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11004 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11005 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11009 sysv5* | sco3.2v5* | sco5v6*)
11010 # Note: We can NOT use -z defs as we might desire, because we do not
11011 # link with -lc, and that would cause any symbols used from libc to
11012 # always be unresolved, which means just about no library would
11013 # ever link correctly. If we're not using GNU ld we use -z text
11014 # though, which does catch some bad symbols but isn't as heavy-handed
11016 no_undefined_flag='${wl}-z,text'
11017 allow_undefined_flag='${wl}-z,nodefs'
11018 archive_cmds_need_lc=no
11019 hardcode_shlibpath_var=no
11020 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11021 hardcode_libdir_separator=':'
11022 link_all_deplibs=yes
11023 export_dynamic_flag_spec='${wl}-Bexport'
11024 runpath_var='LD_RUN_PATH'
11026 if test "$GCC" = yes; then
11027 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11028 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11030 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11031 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11036 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11037 hardcode_libdir_flag_spec='-L$libdir'
11038 hardcode_shlibpath_var=no
11046 if test x$host_vendor = xsni; then
11048 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11049 export_dynamic_flag_spec='${wl}-Blargedynsym'
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11056 $as_echo "$ld_shlibs" >&6; }
11057 test "$ld_shlibs" = no && can_build_shared=no
11059 with_gnu_ld=$with_gnu_ld
11076 # Do we need to explicitly link libc?
11078 case "x$archive_cmds_need_lc" in
11080 # Assume -lc should be added
11081 archive_cmds_need_lc=yes
11083 if test "$enable_shared" = yes && test "$GCC" = yes; then
11084 case $archive_cmds in
11086 # FIXME: we may have to deal with multi-command sequences.
11089 # Test whether the compiler implicitly links with -lc since on some
11090 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11091 # to ld, don't add -lc before -lgcc.
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11093 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11094 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
11095 $as_echo_n "(cached) " >&6
11098 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11100 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11101 (eval $ac_compile) 2>&5
11103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11104 test $ac_status = 0; } 2>conftest.err; then
11107 libobjs=conftest.$ac_objext
11109 wl=$lt_prog_compiler_wl
11110 pic_flag=$lt_prog_compiler_pic
11116 lt_save_allow_undefined_flag=$allow_undefined_flag
11117 allow_undefined_flag=
11118 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11119 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11122 test $ac_status = 0; }
11124 lt_cv_archive_cmds_need_lc=no
11126 lt_cv_archive_cmds_need_lc=yes
11128 allow_undefined_flag=$lt_save_allow_undefined_flag
11130 cat conftest.err 1>&5
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11136 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11137 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11301 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11303 if test "$GCC" = yes; then
11305 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11306 *) lt_awk_arg="/^libraries:/" ;;
11309 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11310 *) lt_sed_strip_eq="s,=/,/,g" ;;
11312 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11313 case $lt_search_path_spec in
11315 # if the path contains ";" then we assume it to be the separator
11316 # otherwise default to the standard path separator (i.e. ":") - it is
11317 # assumed that no part of a normal pathname contains ";" but that should
11318 # okay in the real world where ";" in dirpaths is itself problematic.
11319 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11322 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11325 # Ok, now we have the path, separated by spaces, we can step through it
11326 # and add multilib dir if necessary.
11327 lt_tmp_lt_search_path_spec=
11328 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11329 for lt_sys_path in $lt_search_path_spec; do
11330 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11331 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11333 test -d "$lt_sys_path" && \
11334 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11337 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11338 BEGIN {RS=" "; FS="/|\n";} {
11341 for (lt_i = NF; lt_i > 0; lt_i--) {
11342 if ($lt_i != "" && $lt_i != ".") {
11343 if ($lt_i == "..") {
11346 if (lt_count == 0) {
11347 lt_foo="/" $lt_i lt_foo;
11354 if (lt_foo != "") { lt_freq[lt_foo]++; }
11355 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11357 # AWK program above erroneously prepends '/' to C:/dos/paths
11360 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11361 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11363 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11365 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11367 library_names_spec=
11368 libname_spec='lib$name'
11372 postuninstall_cmds=
11376 shlibpath_overrides_runpath=unknown
11378 dynamic_linker="$host_os ld.so"
11379 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11380 need_lib_prefix=unknown
11381 hardcode_into_libs=no
11383 # when you set need_version to no, make sure it does not cause -set_version
11384 # flags to be left without arguments
11385 need_version=unknown
11390 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11391 shlibpath_var=LIBPATH
11393 # AIX 3 has no versioning support, so we append a major version to the name.
11394 soname_spec='${libname}${release}${shared_ext}$major'
11401 hardcode_into_libs=yes
11402 if test "$host_cpu" = ia64; then
11403 # AIX 5 supports IA64
11404 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11405 shlibpath_var=LD_LIBRARY_PATH
11407 # With GCC up to 2.95.x, collect2 would create an import file
11408 # for dependence libraries. The import file would start with
11409 # the line `#! .'. This would cause the generated library to
11410 # depend on `.', always an invalid library. This was fixed in
11411 # development snapshots of GCC prior to 3.0.
11413 aix4 | aix4.[01] | aix4.[01].*)
11414 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11416 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11419 can_build_shared=no
11423 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11424 # soname into executable. Probably we can add versioning support to
11425 # collect2, so additional links can be useful in future.
11426 if test "$aix_use_runtimelinking" = yes; then
11427 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11428 # instead of lib<name>.a to let people know that these are not
11429 # typical AIX shared libraries.
11430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11432 # We preserve .a as extension for shared libraries through AIX4.2
11433 # and later when we are not doing run time linking.
11434 library_names_spec='${libname}${release}.a $libname.a'
11435 soname_spec='${libname}${release}${shared_ext}$major'
11437 shlibpath_var=LIBPATH
11444 # Since July 2007 AmigaOS4 officially supports .so libraries.
11445 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11449 library_names_spec='$libname.ixlibrary $libname.a'
11450 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11451 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'
11457 library_names_spec='${libname}${shared_ext}'
11458 dynamic_linker="$host_os ld.so"
11459 shlibpath_var=LIBRARY_PATH
11465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11466 soname_spec='${libname}${release}${shared_ext}$major'
11467 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11468 shlibpath_var=LD_LIBRARY_PATH
11469 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11470 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11471 # the default ld.so.conf also contains /usr/contrib/lib and
11472 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11473 # libtool to hard-code these into programs
11476 cygwin* | mingw* | pw32* | cegcc*)
11477 version_type=windows
11482 case $GCC,$host_os in
11483 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11484 library_names_spec='$libname.dll.a'
11485 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11486 postinstall_cmds='base_file=`basename \${file}`~
11487 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11488 dldir=$destdir/`dirname \$dlpath`~
11489 test -d \$dldir || mkdir -p \$dldir~
11490 $install_prog $dir/$dlname \$dldir/$dlname~
11491 chmod a+x \$dldir/$dlname~
11492 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11493 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11495 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11496 dlpath=$dir/\$dldll~
11498 shlibpath_overrides_runpath=yes
11502 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11503 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11505 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11508 # MinGW DLLs use traditional 'lib' prefix
11509 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11512 # pw32 DLLs use 'pw' prefix rather than 'lib'
11513 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11519 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11522 dynamic_linker='Win32 ld.exe'
11523 # FIXME: first we should search . and the directory the executable is in
11527 darwin* | rhapsody*)
11528 dynamic_linker="$host_os dyld"
11529 version_type=darwin
11532 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11533 soname_spec='${libname}${release}${major}$shared_ext'
11534 shlibpath_overrides_runpath=yes
11535 shlibpath_var=DYLD_LIBRARY_PATH
11536 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11538 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11539 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11547 soname_spec='${libname}${release}${shared_ext}$major'
11548 shlibpath_var=LD_LIBRARY_PATH
11555 freebsd* | dragonfly*)
11556 # DragonFly does not have aout. When/if they implement a new
11557 # versioning mechanism, adjust this.
11558 if test -x /usr/bin/objformat; then
11559 objformat=`/usr/bin/objformat`
11562 freebsd[123]*) objformat=aout ;;
11563 *) objformat=elf ;;
11566 version_type=freebsd-$objformat
11567 case $version_type in
11569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11574 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11578 shlibpath_var=LD_LIBRARY_PATH
11581 shlibpath_overrides_runpath=yes
11583 freebsd3.[01]* | freebsdelf3.[01]*)
11584 shlibpath_overrides_runpath=yes
11585 hardcode_into_libs=yes
11587 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11588 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11589 shlibpath_overrides_runpath=no
11590 hardcode_into_libs=yes
11592 *) # from 4.6 on, and DragonFly
11593 shlibpath_overrides_runpath=yes
11594 hardcode_into_libs=yes
11603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11604 soname_spec='${libname}${release}${shared_ext}$major'
11605 shlibpath_var=LD_LIBRARY_PATH
11606 hardcode_into_libs=yes
11613 dynamic_linker="$host_os runtime_loader"
11614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11615 soname_spec='${libname}${release}${shared_ext}$major'
11616 shlibpath_var=LIBRARY_PATH
11617 shlibpath_overrides_runpath=yes
11618 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11619 hardcode_into_libs=yes
11622 hpux9* | hpux10* | hpux11*)
11623 # Give a soname corresponding to the major version so that dld.sl refuses to
11624 # link against other versions.
11631 hardcode_into_libs=yes
11632 dynamic_linker="$host_os dld.so"
11633 shlibpath_var=LD_LIBRARY_PATH
11634 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11636 soname_spec='${libname}${release}${shared_ext}$major'
11637 if test "X$HPUX_IA64_MODE" = X32; then
11638 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11640 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11642 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11646 hardcode_into_libs=yes
11647 dynamic_linker="$host_os dld.sl"
11648 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11649 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11651 soname_spec='${libname}${release}${shared_ext}$major'
11652 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11653 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11657 dynamic_linker="$host_os dld.sl"
11658 shlibpath_var=SHLIB_PATH
11659 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11661 soname_spec='${libname}${release}${shared_ext}$major'
11664 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11665 postinstall_cmds='chmod 555 $lib'
11666 # or fails outright, so override atomically:
11667 install_override_mode=555
11674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11675 soname_spec='${libname}${release}${shared_ext}$major'
11676 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11677 shlibpath_var=LD_LIBRARY_PATH
11678 shlibpath_overrides_runpath=no
11679 hardcode_into_libs=yes
11682 irix5* | irix6* | nonstopux*)
11684 nonstopux*) version_type=nonstopux ;;
11686 if test "$lt_cv_prog_gnu_ld" = yes; then
11694 soname_spec='${libname}${release}${shared_ext}$major'
11695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11697 irix5* | nonstopux*)
11698 libsuff= shlibsuff=
11701 case $LD in # libtool.m4 will add one of these switches to LD
11702 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11703 libsuff= shlibsuff= libmagic=32-bit;;
11704 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11705 libsuff=32 shlibsuff=N32 libmagic=N32;;
11706 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11707 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11708 *) libsuff= shlibsuff= libmagic=never-match;;
11712 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11713 shlibpath_overrides_runpath=no
11714 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11715 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11716 hardcode_into_libs=yes
11719 # No shared lib support for Linux oldld, aout, or coff.
11720 linux*oldld* | linux*aout* | linux*coff*)
11724 # This must be Linux ELF.
11725 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11730 soname_spec='${libname}${release}${shared_ext}$major'
11731 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11732 shlibpath_var=LD_LIBRARY_PATH
11733 shlibpath_overrides_runpath=no
11735 # Some binutils ld are patched to set DT_RUNPATH
11736 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11737 $as_echo_n "(cached) " >&6
11739 lt_cv_shlibpath_overrides_runpath=no
11740 save_LDFLAGS=$LDFLAGS
11741 save_libdir=$libdir
11742 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11743 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11745 /* end confdefs.h. */
11755 if ac_fn_c_try_link "$LINENO"; then :
11756 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11757 lt_cv_shlibpath_overrides_runpath=yes
11760 rm -f core conftest.err conftest.$ac_objext \
11761 conftest$ac_exeext conftest.$ac_ext
11762 LDFLAGS=$save_LDFLAGS
11763 libdir=$save_libdir
11767 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11769 # This implies no fast_install, which is unacceptable.
11770 # Some rework will be needed to allow for fast_install
11771 # before this can be enabled.
11772 hardcode_into_libs=yes
11774 # Append ld.so.conf contents to the search path
11775 if test -f /etc/ld.so.conf; then
11776 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' ' '`
11777 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11780 # We used to test for /lib/ld.so.1 and disable shared libraries on
11781 # powerpc, because MkLinux only supported shared libraries with the
11782 # GNU dynamic linker. Since this was broken with cross compilers,
11783 # most powerpc-linux boxes support dynamic linking these days and
11784 # people can always --disable-shared, the test was removed, and we
11785 # assume the GNU/Linux dynamic linker is in use.
11786 dynamic_linker='GNU/Linux ld.so'
11793 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11795 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11796 dynamic_linker='NetBSD (a.out) ld.so'
11798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11799 soname_spec='${libname}${release}${shared_ext}$major'
11800 dynamic_linker='NetBSD ld.elf_so'
11802 shlibpath_var=LD_LIBRARY_PATH
11803 shlibpath_overrides_runpath=yes
11804 hardcode_into_libs=yes
11809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11810 shlibpath_var=LD_LIBRARY_PATH
11811 shlibpath_overrides_runpath=yes
11818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11819 soname_spec='${libname}${release}${shared_ext}$major'
11820 shlibpath_var=LD_LIBRARY_PATH
11821 shlibpath_overrides_runpath=no
11822 hardcode_into_libs=yes
11823 dynamic_linker='ldqnx.so'
11828 sys_lib_dlsearch_path_spec="/usr/lib"
11830 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11832 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11833 *) need_version=no ;;
11835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11836 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11837 shlibpath_var=LD_LIBRARY_PATH
11838 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11840 openbsd2.[89] | openbsd2.[89].*)
11841 shlibpath_overrides_runpath=no
11844 shlibpath_overrides_runpath=yes
11848 shlibpath_overrides_runpath=yes
11853 libname_spec='$name'
11856 library_names_spec='$libname${shared_ext} $libname.a'
11857 dynamic_linker='OS/2 ld.exe'
11858 shlibpath_var=LIBPATH
11861 osf3* | osf4* | osf5*)
11865 soname_spec='${libname}${release}${shared_ext}$major'
11866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11867 shlibpath_var=LD_LIBRARY_PATH
11868 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11869 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11881 soname_spec='${libname}${release}${shared_ext}$major'
11882 shlibpath_var=LD_LIBRARY_PATH
11883 shlibpath_overrides_runpath=yes
11884 hardcode_into_libs=yes
11885 # ldd complains unless libraries are executable
11886 postinstall_cmds='chmod +x $lib'
11891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11892 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11893 shlibpath_var=LD_LIBRARY_PATH
11894 shlibpath_overrides_runpath=yes
11895 if test "$with_gnu_ld" = yes; then
11903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11904 soname_spec='${libname}${release}${shared_ext}$major'
11905 shlibpath_var=LD_LIBRARY_PATH
11906 case $host_vendor in
11908 shlibpath_overrides_runpath=no
11910 runpath_var=LD_RUN_PATH
11918 shlibpath_overrides_runpath=no
11919 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11925 if test -d /usr/nec ;then
11927 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11928 soname_spec='$libname${shared_ext}.$major'
11929 shlibpath_var=LD_LIBRARY_PATH
11933 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11934 version_type=freebsd-elf
11937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11938 soname_spec='${libname}${release}${shared_ext}$major'
11939 shlibpath_var=LD_LIBRARY_PATH
11940 shlibpath_overrides_runpath=yes
11941 hardcode_into_libs=yes
11942 if test "$with_gnu_ld" = yes; then
11943 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11945 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11948 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11952 sys_lib_dlsearch_path_spec='/usr/lib'
11956 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11961 shlibpath_var=LD_LIBRARY_PATH
11962 shlibpath_overrides_runpath=no
11963 hardcode_into_libs=yes
11968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11969 soname_spec='${libname}${release}${shared_ext}$major'
11970 shlibpath_var=LD_LIBRARY_PATH
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11978 $as_echo "$dynamic_linker" >&6; }
11979 test "$dynamic_linker" = no && can_build_shared=no
11981 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11982 if test "$GCC" = yes; then
11983 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11986 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11987 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11989 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11990 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12085 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12087 if test -n "$hardcode_libdir_flag_spec" ||
12088 test -n "$runpath_var" ||
12089 test "X$hardcode_automatic" = "Xyes" ; then
12091 # We can hardcode non-existent directories.
12092 if test "$hardcode_direct" != no &&
12093 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12094 # have to relink, otherwise we might link with an installed library
12095 # when we should be linking with a yet-to-be-installed one
12096 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12097 test "$hardcode_minus_L" != no; then
12098 # Linking always hardcodes the temporary library directory.
12099 hardcode_action=relink
12101 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12102 hardcode_action=immediate
12105 # We cannot hardcode anything, or else we can only hardcode existing
12107 hardcode_action=unsupported
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12110 $as_echo "$hardcode_action" >&6; }
12112 if test "$hardcode_action" = relink ||
12113 test "$inherit_rpath" = yes; then
12114 # Fast installation is not supported
12115 enable_fast_install=no
12116 elif test "$shlibpath_overrides_runpath" = yes ||
12117 test "$enable_shared" = no; then
12118 # Fast installation is not necessary
12119 enable_fast_install=needless
12127 if test "x$enable_dlopen" != xyes; then
12128 enable_dlopen=unknown
12129 enable_dlopen_self=unknown
12130 enable_dlopen_self_static=unknown
12137 lt_cv_dlopen="load_add_on"
12139 lt_cv_dlopen_self=yes
12142 mingw* | pw32* | cegcc*)
12143 lt_cv_dlopen="LoadLibrary"
12148 lt_cv_dlopen="dlopen"
12153 # if libdl is installed we need to link against it
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12155 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12156 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12157 $as_echo_n "(cached) " >&6
12159 ac_check_lib_save_LIBS=$LIBS
12161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12162 /* end confdefs.h. */
12164 /* Override any GCC internal prototype to avoid an error.
12165 Use char because int might match the return type of a GCC
12166 builtin and then its argument prototype would still apply. */
12179 if ac_fn_c_try_link "$LINENO"; then :
12180 ac_cv_lib_dl_dlopen=yes
12182 ac_cv_lib_dl_dlopen=no
12184 rm -f core conftest.err conftest.$ac_objext \
12185 conftest$ac_exeext conftest.$ac_ext
12186 LIBS=$ac_check_lib_save_LIBS
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12189 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12190 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12191 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12194 lt_cv_dlopen="dyld"
12196 lt_cv_dlopen_self=yes
12203 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12204 if test "x$ac_cv_func_shl_load" = x""yes; then :
12205 lt_cv_dlopen="shl_load"
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12208 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12209 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12210 $as_echo_n "(cached) " >&6
12212 ac_check_lib_save_LIBS=$LIBS
12214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12215 /* end confdefs.h. */
12217 /* Override any GCC internal prototype to avoid an error.
12218 Use char because int might match the return type of a GCC
12219 builtin and then its argument prototype would still apply. */
12227 return shl_load ();
12232 if ac_fn_c_try_link "$LINENO"; then :
12233 ac_cv_lib_dld_shl_load=yes
12235 ac_cv_lib_dld_shl_load=no
12237 rm -f core conftest.err conftest.$ac_objext \
12238 conftest$ac_exeext conftest.$ac_ext
12239 LIBS=$ac_check_lib_save_LIBS
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12242 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12243 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12244 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12246 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12247 if test "x$ac_cv_func_dlopen" = x""yes; then :
12248 lt_cv_dlopen="dlopen"
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12251 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12252 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12253 $as_echo_n "(cached) " >&6
12255 ac_check_lib_save_LIBS=$LIBS
12257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12258 /* end confdefs.h. */
12260 /* Override any GCC internal prototype to avoid an error.
12261 Use char because int might match the return type of a GCC
12262 builtin and then its argument prototype would still apply. */
12275 if ac_fn_c_try_link "$LINENO"; then :
12276 ac_cv_lib_dl_dlopen=yes
12278 ac_cv_lib_dl_dlopen=no
12280 rm -f core conftest.err conftest.$ac_objext \
12281 conftest$ac_exeext conftest.$ac_ext
12282 LIBS=$ac_check_lib_save_LIBS
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12285 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12286 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12287 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12290 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12291 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12292 $as_echo_n "(cached) " >&6
12294 ac_check_lib_save_LIBS=$LIBS
12295 LIBS="-lsvld $LIBS"
12296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12297 /* end confdefs.h. */
12299 /* Override any GCC internal prototype to avoid an error.
12300 Use char because int might match the return type of a GCC
12301 builtin and then its argument prototype would still apply. */
12314 if ac_fn_c_try_link "$LINENO"; then :
12315 ac_cv_lib_svld_dlopen=yes
12317 ac_cv_lib_svld_dlopen=no
12319 rm -f core conftest.err conftest.$ac_objext \
12320 conftest$ac_exeext conftest.$ac_ext
12321 LIBS=$ac_check_lib_save_LIBS
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12324 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12325 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12326 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12329 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12330 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12331 $as_echo_n "(cached) " >&6
12333 ac_check_lib_save_LIBS=$LIBS
12335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12336 /* end confdefs.h. */
12338 /* Override any GCC internal prototype to avoid an error.
12339 Use char because int might match the return type of a GCC
12340 builtin and then its argument prototype would still apply. */
12348 return dld_link ();
12353 if ac_fn_c_try_link "$LINENO"; then :
12354 ac_cv_lib_dld_dld_link=yes
12356 ac_cv_lib_dld_dld_link=no
12358 rm -f core conftest.err conftest.$ac_objext \
12359 conftest$ac_exeext conftest.$ac_ext
12360 LIBS=$ac_check_lib_save_LIBS
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12363 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12364 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12365 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12386 if test "x$lt_cv_dlopen" != xno; then
12392 case $lt_cv_dlopen in
12394 save_CPPFLAGS="$CPPFLAGS"
12395 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12397 save_LDFLAGS="$LDFLAGS"
12398 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12401 LIBS="$lt_cv_dlopen_libs $LIBS"
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12404 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12405 if test "${lt_cv_dlopen_self+set}" = set; then :
12406 $as_echo_n "(cached) " >&6
12408 if test "$cross_compiling" = yes; then :
12409 lt_cv_dlopen_self=cross
12411 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12412 lt_status=$lt_dlunknown
12413 cat > conftest.$ac_ext <<_LT_EOF
12414 #line $LINENO "configure"
12415 #include "confdefs.h"
12424 # define LT_DLGLOBAL RTLD_GLOBAL
12427 # define LT_DLGLOBAL DL_GLOBAL
12429 # define LT_DLGLOBAL 0
12433 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12434 find out it does not work in some platform. */
12435 #ifndef LT_DLLAZY_OR_NOW
12437 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12440 # define LT_DLLAZY_OR_NOW DL_LAZY
12443 # define LT_DLLAZY_OR_NOW RTLD_NOW
12446 # define LT_DLLAZY_OR_NOW DL_NOW
12448 # define LT_DLLAZY_OR_NOW 0
12455 /* When -fvisbility=hidden is used, assume the code has been annotated
12456 correspondingly for the symbols needed. */
12457 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12458 void fnord () __attribute__((visibility("default")));
12461 void fnord () { int i=42; }
12464 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12465 int status = $lt_dlunknown;
12469 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12472 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12473 else puts (dlerror ());
12475 /* dlclose (self); */
12483 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12484 (eval $ac_link) 2>&5
12486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12487 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12488 (./conftest; exit; ) >&5 2>/dev/null
12490 case x$lt_status in
12491 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12492 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12493 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12496 # compilation failed
12497 lt_cv_dlopen_self=no
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12505 $as_echo "$lt_cv_dlopen_self" >&6; }
12507 if test "x$lt_cv_dlopen_self" = xyes; then
12508 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12510 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12511 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12512 $as_echo_n "(cached) " >&6
12514 if test "$cross_compiling" = yes; then :
12515 lt_cv_dlopen_self_static=cross
12517 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12518 lt_status=$lt_dlunknown
12519 cat > conftest.$ac_ext <<_LT_EOF
12520 #line $LINENO "configure"
12521 #include "confdefs.h"
12530 # define LT_DLGLOBAL RTLD_GLOBAL
12533 # define LT_DLGLOBAL DL_GLOBAL
12535 # define LT_DLGLOBAL 0
12539 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12540 find out it does not work in some platform. */
12541 #ifndef LT_DLLAZY_OR_NOW
12543 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12546 # define LT_DLLAZY_OR_NOW DL_LAZY
12549 # define LT_DLLAZY_OR_NOW RTLD_NOW
12552 # define LT_DLLAZY_OR_NOW DL_NOW
12554 # define LT_DLLAZY_OR_NOW 0
12561 /* When -fvisbility=hidden is used, assume the code has been annotated
12562 correspondingly for the symbols needed. */
12563 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12564 void fnord () __attribute__((visibility("default")));
12567 void fnord () { int i=42; }
12570 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12571 int status = $lt_dlunknown;
12575 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12578 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12579 else puts (dlerror ());
12581 /* dlclose (self); */
12589 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12590 (eval $ac_link) 2>&5
12592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12593 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12594 (./conftest; exit; ) >&5 2>/dev/null
12596 case x$lt_status in
12597 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12598 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12599 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12602 # compilation failed
12603 lt_cv_dlopen_self_static=no
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12611 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12614 CPPFLAGS="$save_CPPFLAGS"
12615 LDFLAGS="$save_LDFLAGS"
12620 case $lt_cv_dlopen_self in
12621 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12622 *) enable_dlopen_self=unknown ;;
12625 case $lt_cv_dlopen_self_static in
12626 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12627 *) enable_dlopen_self_static=unknown ;;
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12650 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12651 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12652 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12653 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12655 $as_echo "yes" >&6; }
12657 # FIXME - insert some real tests, host_os isn't really good enough
12660 if test -n "$STRIP" ; then
12661 striplib="$STRIP -x"
12662 old_striplib="$STRIP -S"
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12664 $as_echo "yes" >&6; }
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12667 $as_echo "no" >&6; }
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12672 $as_echo "no" >&6; }
12688 # Report which library types will actually be built
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12690 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12692 $as_echo "$can_build_shared" >&6; }
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12695 $as_echo_n "checking whether to build shared libraries... " >&6; }
12696 test "$can_build_shared" = "no" && enable_shared=no
12698 # On AIX, shared libraries and static libraries use the same namespace, and
12699 # are all built from PIC.
12702 test "$enable_shared" = yes && enable_static=no
12703 if test -n "$RANLIB"; then
12704 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12705 postinstall_cmds='$RANLIB $lib'
12710 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12711 test "$enable_shared" = yes && enable_static=no
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12716 $as_echo "$enable_shared" >&6; }
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12719 $as_echo_n "checking whether to build static libraries... " >&6; }
12720 # Make sure either enable_shared or enable_static is yes.
12721 test "$enable_shared" = yes || enable_static=yes
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12723 $as_echo "$enable_static" >&6; }
12730 ac_cpp='$CPP $CPPFLAGS'
12731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12749 ac_config_commands="$ac_config_commands libtool"
12754 # Only expand once:
12758 if test "$enable_shared" = "no"; then
12764 eval _shrext="$shrext_cmds"
12765 # Darwin uses .dylib for libraries but .so for modules
12766 if test X"$_shrext" = X".dylib"; then
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking path to sudo_noexec.so" >&5
12773 $as_echo_n "checking path to sudo_noexec.so... " >&6; }
12775 # Check whether --with-noexec was given.
12776 if test "${with_noexec+set}" = set; then :
12777 withval=$with_noexec; case $with_noexec in
12778 yes) with_noexec="$libexecdir/sudo_noexec$_shrext"
12784 with_noexec="$libexecdir/sudo_noexec$_shrext"
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_noexec" >&5
12788 $as_echo "$with_noexec" >&6; }
12789 NOEXECFILE="sudo_noexec$_shrext"
12790 NOEXECDIR="`echo $with_noexec|sed 's:^\(.*\)/[^/]*:\1:'`"
12792 if test X"$with_devel" = X"yes" -a -n "$GCC"; then
12793 CFLAGS="${CFLAGS} -Wall"
12796 # Extract the first word of "uname", so it can be a program name with args.
12797 set dummy uname; ac_word=$2
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12799 $as_echo_n "checking for $ac_word... " >&6; }
12800 if test "${ac_cv_prog_UNAMEPROG+set}" = set; then :
12801 $as_echo_n "(cached) " >&6
12803 if test -n "$UNAMEPROG"; then
12804 ac_cv_prog_UNAMEPROG="$UNAMEPROG" # Let the user override the test.
12806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12807 for as_dir in $PATH
12810 test -z "$as_dir" && as_dir=.
12811 for ac_exec_ext in '' $ac_executable_extensions; do
12812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12813 ac_cv_prog_UNAMEPROG="uname"
12814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12823 UNAMEPROG=$ac_cv_prog_UNAMEPROG
12824 if test -n "$UNAMEPROG"; then
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAMEPROG" >&5
12826 $as_echo "$UNAMEPROG" >&6; }
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12829 $as_echo "no" >&6; }
12833 # Extract the first word of "tr", so it can be a program name with args.
12834 set dummy tr; ac_word=$2
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12836 $as_echo_n "checking for $ac_word... " >&6; }
12837 if test "${ac_cv_prog_TRPROG+set}" = set; then :
12838 $as_echo_n "(cached) " >&6
12840 if test -n "$TRPROG"; then
12841 ac_cv_prog_TRPROG="$TRPROG" # Let the user override the test.
12843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12844 for as_dir in $PATH
12847 test -z "$as_dir" && as_dir=.
12848 for ac_exec_ext in '' $ac_executable_extensions; do
12849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12850 ac_cv_prog_TRPROG="tr"
12851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12860 TRPROG=$ac_cv_prog_TRPROG
12861 if test -n "$TRPROG"; then
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRPROG" >&5
12863 $as_echo "$TRPROG" >&6; }
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12866 $as_echo "no" >&6; }
12870 for ac_prog in nroff mandoc
12872 # Extract the first word of "$ac_prog", so it can be a program name with args.
12873 set dummy $ac_prog; ac_word=$2
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12875 $as_echo_n "checking for $ac_word... " >&6; }
12876 if test "${ac_cv_prog_NROFFPROG+set}" = set; then :
12877 $as_echo_n "(cached) " >&6
12879 if test -n "$NROFFPROG"; then
12880 ac_cv_prog_NROFFPROG="$NROFFPROG" # Let the user override the test.
12882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12883 for as_dir in $PATH
12886 test -z "$as_dir" && as_dir=.
12887 for ac_exec_ext in '' $ac_executable_extensions; do
12888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12889 ac_cv_prog_NROFFPROG="$ac_prog"
12890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12899 NROFFPROG=$ac_cv_prog_NROFFPROG
12900 if test -n "$NROFFPROG"; then
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFFPROG" >&5
12902 $as_echo "$NROFFPROG" >&6; }
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12905 $as_echo "no" >&6; }
12909 test -n "$NROFFPROG" && break
12912 if test -z "$NROFFPROG"; then
12914 mansrcdir='$(srcdir)'
12917 if test -n "$sudo_cv_prev_host"; then
12918 if test "$sudo_cv_prev_host" != "$host"; then
12919 as_fn_error "config.cache was created on a different host; remove it and re-run configure." "$LINENO" 5
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking previous host type" >&5
12922 $as_echo_n "checking previous host type... " >&6; }
12923 if test "${sudo_cv_prev_host+set}" = set; then :
12924 $as_echo_n "(cached) " >&6
12926 sudo_cv_prev_host="$host"
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_prev_host" >&5
12930 $as_echo "$sudo_cv_prev_host" >&6; }
12933 # this will produce no output since there is no cached value
12934 if test "${sudo_cv_prev_host+set}" = set; then :
12935 $as_echo_n "(cached) " >&6
12937 sudo_cv_prev_host="$host"
12942 if test -n "$host_os"; then
12943 OS=`echo $host_os | sed 's/[0-9].*//'`
12944 OSREV=`echo $host_os | sed 's/^[^0-9\.]*\([0-9\.]*\).*$/\1/'`
12945 OSMAJOR=`echo $OSREV | sed 's/\..*$//'`
12954 # getcwd(3) opens a pipe to getpwd(1)!?!
12957 # system headers lack prototypes but gcc helps...
12958 if test -n "$GCC"; then
12959 OSDEFS="${OSDEFS} -D__USE_FIXED_PROTOTYPES__"
12962 shadow_funcs="getpwanam issecure"
12965 # To get the crypt(3) prototype (so we pass -Wall)
12966 OSDEFS="${OSDEFS} -D__EXTENSIONS__"
12967 # AFS support needs -lucb
12968 if test "$with_AFS" = "yes"; then
12969 AFS_LIBS="-lc -lucb"
12971 : ${mansectsu='1m'}
12972 : ${mansectform='4'}
12973 : ${with_rpath='yes'}
12974 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12975 for ac_func in priv_set
12977 ac_fn_c_check_func "$LINENO" "priv_set" "ac_cv_func_priv_set"
12978 if test "x$ac_cv_func_priv_set" = x""yes; then :
12979 cat >>confdefs.h <<_ACEOF
12980 #define HAVE_PRIV_SET 1
12988 # To get all prototypes (so we pass -Wall)
12989 OSDEFS="${OSDEFS} -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT"
12990 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp"
12991 if test X"$with_blibpath" != X"no"; then
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker accepts -Wl,-blibpath" >&5
12993 $as_echo_n "checking if linker accepts -Wl,-blibpath... " >&6; }
12994 O_LDFLAGS="$LDFLAGS"
12995 LDFLAGS="$O_LDFLAGS -Wl,-blibpath:/usr/lib:/lib"
12996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12997 /* end confdefs.h. */
13007 if ac_fn_c_try_link "$LINENO"; then :
13009 if test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
13010 blibpath="$with_blibpath"
13011 elif test -n "$GCC"; then
13012 blibpath="/usr/lib:/lib:/usr/local/lib"
13014 blibpath="/usr/lib:/lib"
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13017 $as_echo "yes" >&6; }
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13021 $as_echo "no" >&6; }
13023 rm -f core conftest.err conftest.$ac_objext \
13024 conftest$ac_exeext conftest.$ac_ext
13026 LDFLAGS="$O_LDFLAGS"
13028 # Use authenticate(3) as the default authentication method
13029 if test X"$with_aixauth" = X""; then
13030 for ac_func in authenticate
13032 ac_fn_c_check_func "$LINENO" "authenticate" "ac_cv_func_authenticate"
13033 if test "x$ac_cv_func_authenticate" = x""yes; then :
13034 cat >>confdefs.h <<_ACEOF
13035 #define HAVE_AUTHENTICATE 1
13037 AUTH_EXCL_DEF="AIX_AUTH"
13043 # AIX analog of nsswitch.conf, enabled by default
13045 # Check whether --with-netsvc was given.
13046 if test "${with_netsvc+set}" = set; then :
13047 withval=$with_netsvc; case $with_netsvc in
13049 yes) with_netsvc="/etc/netsvc.conf"
13055 if test -z "$with_nsswitch" -a -z "$with_netsvc"; then
13056 with_netsvc="/etc/netsvc.conf"
13059 # AIX-specific functions
13060 for ac_func in getuserattr setauthdb
13062 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13063 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13064 eval as_val=\$$as_ac_var
13065 if test "x$as_val" = x""yes; then :
13066 cat >>confdefs.h <<_ACEOF
13067 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13073 COMMON_OBJS="$COMMON_OBJS aix.lo"
13076 : ${mansectsu='1m'}
13077 : ${mansectform='4'}
13080 # AFS support needs -lBSD
13081 if test "$with_AFS" = "yes"; then
13082 AFS_LIBS="-lc -lBSD"
13084 : ${mansectsu='1m'}
13085 : ${mansectform='4'}
13087 if test -z "$GCC"; then
13088 # Use the +DAportable flag on hppa if it is supported
13089 case "$host_cpu" in
13092 CFLAGS="$CFLAGS +DAportable"
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands +DAportable" >&5
13094 $as_echo_n "checking whether $CC understands +DAportable... " >&6; }
13095 if test "${sudo_cv_var_daportable+set}" = set; then :
13096 $as_echo_n "(cached) " >&6
13098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13099 /* end confdefs.h. */
13109 if ac_fn_c_try_link "$LINENO"; then :
13110 sudo_cv_var_daportable=yes
13112 sudo_cv_var_daportable=no
13115 rm -f core conftest.err conftest.$ac_objext \
13116 conftest$ac_exeext conftest.$ac_ext
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_daportable" >&5
13121 $as_echo "$sudo_cv_var_daportable" >&6; }
13122 if test X"$sudo_cv_var_daportable" != X"yes"; then
13131 $as_echo "#define BROKEN_SYSLOG 1" >>confdefs.h
13135 $as_echo "#define BROKEN_SYSLOG 1" >>confdefs.h
13138 shadow_funcs="getspwuid"
13140 # DCE support (requires ANSI C compiler)
13141 if test "$with_DCE" = "yes"; then
13142 # order of libs in 9.X is important. -lc_r must be last
13143 SUDOERS_LIBS="${SUDOERS_LIBS} -ldce -lM -lc_r"
13144 LIBS="${LIBS} -ldce -lM -lc_r"
13145 CPPFLAGS="${CPPFLAGS} -D_REENTRANT -I/usr/include/reentrant"
13149 shadow_funcs="getprpwnam iscomsec"
13150 shadow_libs="-lsec"
13151 # HP-UX 10.20 libc has an incompatible getline
13152 ac_cv_func_getline="no"
13155 shadow_funcs="getspnam iscomsec"
13156 shadow_libs="-lsec"
13157 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13162 # ignore envariables wrt dynamic lib path
13163 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -Wl,-no_library_replacement"
13165 : ${CHECKSIA='true'}
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable sia support on Digital UNIX" >&5
13167 $as_echo_n "checking whether to disable sia support on Digital UNIX... " >&6; }
13168 # Check whether --enable-sia was given.
13169 if test "${enable_sia+set}" = set; then :
13170 enableval=$enable_sia; case "$enableval" in
13171 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13172 $as_echo "no" >&6; }
13175 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13176 $as_echo "yes" >&6; }
13179 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13180 $as_echo "no" >&6; }
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&5
13182 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&2;}
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13188 $as_echo "no" >&6; }
13192 shadow_funcs="getprpwnam dispcrypt"
13193 # OSF/1 4.x and higher need -ldb too
13194 if test $OSMAJOR -lt 4; then
13195 shadow_libs="-lsecurity -laud -lm"
13197 shadow_libs="-lsecurity -ldb -laud -lm"
13200 # use SIA by default, if we have it
13201 test "$CHECKSIA" = "true" && AUTH_EXCL_DEF="SIA"
13204 # Some versions of Digital Unix ship with a broken
13205 # copy of prot.h, which we need for shadow passwords.
13206 # XXX - make should remove this as part of distclean
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken prot.h" >&5
13209 $as_echo_n "checking for broken prot.h... " >&6; }
13210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13211 /* end confdefs.h. */
13213 #include <sys/types.h>
13214 #include <sys/security.h>
13225 if ac_fn_c_try_compile "$LINENO"; then :
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13227 $as_echo "no" >&6; }
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, fixing locally" >&5
13230 $as_echo "yes, fixing locally" >&6; }
13231 sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
13234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13236 : ${mansectform='4'}
13239 OSDEFS="${OSDEFS} -D_BSD_TYPES"
13240 if test -z "$NROFFPROG"; then
13241 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)'
13242 if test "$prefix" = "/usr/local" -a "$mandir" = '${datarootdir}/man'; then
13243 if test -d /usr/share/catman/local; then
13244 mandir="/usr/share/catman/local"
13246 mandir="/usr/catman/local"
13250 if test "$prefix" = "/usr/local" -a "$mandir" = '${datarootdir}/man'; then
13251 if test -d "/usr/share/man/local"; then
13252 mandir="/usr/share/man/local"
13254 mandir="/usr/man/local"
13258 # IRIX <= 4 needs -lsun
13259 if test "$OSMAJOR" -le 4; then
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
13261 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
13262 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then :
13263 $as_echo_n "(cached) " >&6
13265 ac_check_lib_save_LIBS=$LIBS
13267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13268 /* end confdefs.h. */
13270 /* Override any GCC internal prototype to avoid an error.
13271 Use char because int might match the return type of a GCC
13272 builtin and then its argument prototype would still apply. */
13280 return getpwnam ();
13285 if ac_fn_c_try_link "$LINENO"; then :
13286 ac_cv_lib_sun_getpwnam=yes
13288 ac_cv_lib_sun_getpwnam=no
13290 rm -f core conftest.err conftest.$ac_objext \
13291 conftest$ac_exeext conftest.$ac_ext
13292 LIBS=$ac_check_lib_save_LIBS
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
13295 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
13296 if test "x$ac_cv_lib_sun_getpwnam" = x""yes; then :
13297 LIBS="${LIBS} -lsun"
13301 : ${mansectsu='1m'}
13302 : ${mansectform='4'}
13304 *-*-linux*|*-*-k*bsd*-gnu)
13305 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
13306 # Some Linux versions need to link with -lshadow
13307 shadow_funcs="getspnam"
13308 shadow_libs_optional="-lshadow"
13309 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13312 OSDEFS="${OSDEFS} -D_CONVEX_SOURCE"
13313 if test -z "$GCC"; then
13314 CFLAGS="${CFLAGS} -D__STDC__"
13317 shadow_defs="-D_AUDIT -D_ACL -DSecureWare"
13318 shadow_funcs="getprpwnam"
13319 shadow_libs="-lprot"
13323 shadow_funcs="getauthuid"
13324 shadow_libs="-lauth"
13327 LIBS="${LIBS} -lsun -lbsd"
13328 CPPFLAGS="${CPPFLAGS} -I/usr/include -I/usr/include/bsd"
13329 OSDEFS="${OSDEFS} -D_MIPS"
13330 : ${mansectsu='1m'}
13331 : ${mansectform='4'}
13334 OSDEFS="${OSDEFS} -D_ISC"
13336 SUDOERS_LIBS="${SUDOERS_LIBS} -lcrypt"
13338 shadow_funcs="getspnam"
13339 shadow_libs="-lsec"
13341 : ${mansectsu='1m'}
13342 : ${mansectform='4'}
13345 shadow_funcs="getprpwnam"
13346 shadow_libs="-lprot -lx"
13347 : ${mansectsu='1m'}
13348 : ${mansectform='4'}
13350 m88k-motorola-sysv*)
13351 # motorolla's cc (a variant of gcc) does -O but not -O2
13352 CFLAGS=`echo $CFLAGS | sed 's/-O2/-O/g'`
13353 : ${mansectsu='1m'}
13354 : ${mansectform='4'}
13357 shadow_funcs="getspnam"
13358 shadow_libs="-lsec"
13359 : ${mansectsu='1m'}
13360 : ${mansectform='4'}
13361 : ${with_rpath='yes'}
13363 *-ncr-sysv4*|*-ncr-sysvr4*)
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lc89" >&5
13365 $as_echo_n "checking for strcasecmp in -lc89... " >&6; }
13366 if test "${ac_cv_lib_c89_strcasecmp+set}" = set; then :
13367 $as_echo_n "(cached) " >&6
13369 ac_check_lib_save_LIBS=$LIBS
13371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13372 /* end confdefs.h. */
13374 /* Override any GCC internal prototype to avoid an error.
13375 Use char because int might match the return type of a GCC
13376 builtin and then its argument prototype would still apply. */
13380 char strcasecmp ();
13384 return strcasecmp ();
13389 if ac_fn_c_try_link "$LINENO"; then :
13390 ac_cv_lib_c89_strcasecmp=yes
13392 ac_cv_lib_c89_strcasecmp=no
13394 rm -f core conftest.err conftest.$ac_objext \
13395 conftest$ac_exeext conftest.$ac_ext
13396 LIBS=$ac_check_lib_save_LIBS
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c89_strcasecmp" >&5
13399 $as_echo "$ac_cv_lib_c89_strcasecmp" >&6; }
13400 if test "x$ac_cv_lib_c89_strcasecmp" = x""yes; then :
13401 LIBS="${LIBS} -lc89"
13404 : ${mansectsu='1m'}
13405 : ${mansectform='4'}
13406 : ${with_rpath='yes'}
13408 *-ccur-sysv4*|*-ccur-sysvr4*)
13409 LIBS="${LIBS} -lgen"
13410 : ${mansectsu='1m'}
13411 : ${mansectform='4'}
13412 : ${with_rpath='yes'}
13416 # Use shlicc for BSD/OS [23].x unless asked to do otherwise
13417 if test "${with_CC+set}" != set -a "$ac_cv_prog_CC" = gcc; then
13419 2|3) { $as_echo "$as_me:${as_lineno-$LINENO}: using shlicc as CC" >&5
13420 $as_echo "$as_me: using shlicc as CC" >&6;}
13421 ac_cv_prog_CC=shlicc
13422 CC="$ac_cv_prog_CC"
13426 # Check for newer BSD auth API (just check for >= 3.0?)
13427 if test -z "$with_bsdauth"; then
13428 for ac_func in auth_challenge
13430 ac_fn_c_check_func "$LINENO" "auth_challenge" "ac_cv_func_auth_challenge"
13431 if test "x$ac_cv_func_auth_challenge" = x""yes; then :
13432 cat >>confdefs.h <<_ACEOF
13433 #define HAVE_AUTH_CHALLENGE 1
13435 AUTH_EXCL_DEF="BSD_AUTH"
13442 # FreeBSD has a real setreuid(2) starting with 2.1 and
13443 # backported to 2.0.5. We just take 2.1 and above...
13449 if test "${with_skey-'no'}" = "yes"; then
13450 SUDOERS_LIBS="${SUDOERS_LIBS} -lmd"
13452 CHECKSHADOW="false"
13453 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13454 : ${with_logincap='maybe'}
13457 # OpenBSD has a real setreuid(2) starting with 3.3 but
13458 # we will use setreuid(2) instead.
13460 CHECKSHADOW="false"
13461 # OpenBSD >= 3.0 supports BSD auth
13462 if test -z "$with_bsdauth"; then
13467 AUTH_EXCL_DEF="BSD_AUTH"
13471 : ${with_logincap='maybe'}
13474 # NetBSD has a real setreuid(2) starting with 1.3.2
13476 0.9*|1.012*|1.3|1.3.1)
13480 CHECKSHADOW="false"
13481 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13482 : ${with_logincap='maybe'}
13485 if test "${with_skey-'no'}" = "yes"; then
13486 SUDOERS_LIBS="${SUDOERS_LIBS} -lmd"
13488 CHECKSHADOW="false"
13489 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13490 : ${with_logincap='yes'}
13493 CHECKSHADOW="false"
13496 # Darwin has a real setreuid(2) starting with 9.0
13497 if test $OSMAJOR -lt 9; then
13500 CHECKSHADOW="false"
13501 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13502 : ${with_logincap='yes'}
13505 # lockf() on is broken on the NeXT -- use flock instead
13506 ac_cv_func_lockf=no
13507 ac_cv_func_flock=yes
13510 : ${mansectsu='1m'}
13511 : ${mansectform='4'}
13512 : ${with_rpath='yes'}
13515 : ${mansectsu='1m'}
13516 : ${mansectform='4'}
13519 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
13523 AUTH_REG=${AUTH_REG# }
13524 AUTH_EXCL=${AUTH_EXCL# }
13525 if test -n "$AUTH_EXCL"; then
13527 if test $# != 1; then
13528 as_fn_error "More than one mutually exclusive authentication method specified: $AUTH_EXCL" "$LINENO" 5
13530 if test -n "$AUTH_REG"; then
13531 as_fn_error "Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" "$LINENO" 5
13534 if test X"${with_skey}${with_opie}" = X"yesyes"; then
13535 as_fn_error "\"cannot use both S/Key and OPIE\"" "$LINENO" 5
13539 : ${mansectform='5'}
13541 if test -n "$with_libpath"; then
13542 for i in ${with_libpath}; do
13544 if test X"$with_rpath" = X"yes"; then
13546 *-*-hpux*) LDFLAGS="${LDFLAGS} -L$i -Wl,+b,$i"
13548 *) LDFLAGS="${LDFLAGS} -L$i -Wl,-R$i"
13552 LDFLAGS="${LDFLAGS} -L$i"
13554 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
13555 blibpath_add="${blibpath_add}:$i"
13560 if test -n "$with_libraries"; then
13561 for i in ${with_libraries}; do
13568 LIBS="${LIBS} ${i}"
13572 if test $ac_cv_c_compiler_gnu = yes; then
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
13574 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
13575 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
13576 $as_echo_n "(cached) " >&6
13578 ac_pattern="Autoconf.*'x'"
13579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13580 /* end confdefs.h. */
13584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13585 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
13586 ac_cv_prog_gcc_traditional=yes
13588 ac_cv_prog_gcc_traditional=no
13593 if test $ac_cv_prog_gcc_traditional = no; then
13594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13595 /* end confdefs.h. */
13596 #include <termio.h>
13599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13600 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
13601 ac_cv_prog_gcc_traditional=yes
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
13608 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
13609 if test $ac_cv_prog_gcc_traditional = yes; then
13610 CC="$CC -traditional"
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13615 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13616 if test "${ac_cv_c_const+set}" = set; then :
13617 $as_echo_n "(cached) " >&6
13619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13620 /* end confdefs.h. */
13625 /* FIXME: Include the comments suggested by Paul. */
13626 #ifndef __cplusplus
13627 /* Ultrix mips cc rejects this. */
13628 typedef int charset[2];
13630 /* SunOS 4.1.1 cc rejects this. */
13631 char const *const *pcpcc;
13633 /* NEC SVR4.0.2 mips cc rejects this. */
13634 struct point {int x, y;};
13635 static struct point const zero = {0,0};
13636 /* AIX XL C 1.02.0.0 rejects this.
13637 It does not let you subtract one const X* pointer from another in
13638 an arm of an if-expression whose if-part is not a constant
13640 const char *g = "string";
13641 pcpcc = &g + (g ? g-g : 0);
13642 /* HPUX 7.0 cc rejects these. */
13644 ppc = (char**) pcpcc;
13645 pcpcc = (char const *const *) ppc;
13646 { /* SCO 3.2v4 cc rejects this. */
13648 char const *s = 0 ? (char *) 0 : (char const *) 0;
13653 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13654 int x[] = {25, 17};
13655 const int *foo = &x[0];
13658 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13659 typedef const int *iptr;
13663 { /* AIX XL C 1.02.0.0 rejects this saying
13664 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13665 struct s { int j; const int *ap[3]; };
13666 struct s *b; b->j = 5;
13668 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13669 const int foo = 10;
13670 if (!foo) return 0;
13672 return !cs[0] && !zero.x;
13679 if ac_fn_c_try_compile "$LINENO"; then :
13684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13687 $as_echo "$ac_cv_c_const" >&6; }
13688 if test $ac_cv_c_const = no; then
13690 $as_echo "#define const /**/" >>confdefs.h
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
13695 $as_echo_n "checking for working volatile... " >&6; }
13696 if test "${ac_cv_c_volatile+set}" = set; then :
13697 $as_echo_n "(cached) " >&6
13699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13700 /* end confdefs.h. */
13707 int * volatile y = (int *) 0;
13713 if ac_fn_c_try_compile "$LINENO"; then :
13714 ac_cv_c_volatile=yes
13716 ac_cv_c_volatile=no
13718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
13721 $as_echo "$ac_cv_c_volatile" >&6; }
13722 if test $ac_cv_c_volatile = no; then
13724 $as_echo "#define volatile /**/" >>confdefs.h
13728 if test X"$with_gnu_ld" != "yes" -a -n "$GCC"; then
13729 LTLDFLAGS="$LTLDFLAGS -Wc,-static-libgcc"
13731 for ac_prog in 'bison -y' byacc
13733 # Extract the first word of "$ac_prog", so it can be a program name with args.
13734 set dummy $ac_prog; ac_word=$2
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13736 $as_echo_n "checking for $ac_word... " >&6; }
13737 if test "${ac_cv_prog_YACC+set}" = set; then :
13738 $as_echo_n "(cached) " >&6
13740 if test -n "$YACC"; then
13741 ac_cv_prog_YACC="$YACC" # Let the user override the test.
13743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13744 for as_dir in $PATH
13747 test -z "$as_dir" && as_dir=.
13748 for ac_exec_ext in '' $ac_executable_extensions; do
13749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13750 ac_cv_prog_YACC="$ac_prog"
13751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13760 YACC=$ac_cv_prog_YACC
13761 if test -n "$YACC"; then
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
13763 $as_echo "$YACC" >&6; }
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13766 $as_echo "no" >&6; }
13770 test -n "$YACC" && break
13772 test -n "$YACC" || YACC="yacc"
13774 # Extract the first word of "flex", so it can be a program name with args.
13775 set dummy flex; ac_word=$2
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13777 $as_echo_n "checking for $ac_word... " >&6; }
13778 if test "${ac_cv_path_FLEX+set}" = set; then :
13779 $as_echo_n "(cached) " >&6
13783 ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path.
13786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13787 for as_dir in $PATH
13790 test -z "$as_dir" && as_dir=.
13791 for ac_exec_ext in '' $ac_executable_extensions; do
13792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13793 ac_cv_path_FLEX="$as_dir/$ac_word$ac_exec_ext"
13794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13801 test -z "$ac_cv_path_FLEX" && ac_cv_path_FLEX="flex"
13805 FLEX=$ac_cv_path_FLEX
13806 if test -n "$FLEX"; then
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
13808 $as_echo "$FLEX" >&6; }
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13811 $as_echo "no" >&6; }
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mv" >&5
13816 $as_echo_n "checking for mv... " >&6; }
13818 for p in "/usr/bin/mv" "/bin/mv" "/usr/ucb/mv" "/usr/sbin/mv"; do
13819 if test -f "$p"; then
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
13822 $as_echo "$p" >&6; }
13823 cat >>confdefs.h <<EOF
13824 #define _PATH_MV "$p"
13830 if test X"$found" != X"yes"; then
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13832 $as_echo "not found" >&6; }
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bourne shell" >&5
13836 $as_echo_n "checking for bourne shell... " >&6; }
13838 for p in "/bin/sh" "/usr/bin/sh" "/sbin/sh" "/usr/sbin/sh" "/bin/ksh" "/usr/bin/ksh" "/bin/bash" "/usr/bin/bash"; do
13839 if test -f "$p"; then
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
13842 $as_echo "$p" >&6; }
13843 cat >>confdefs.h <<EOF
13844 #define _PATH_BSHELL "$p"
13850 if test X"$found" != X"yes"; then
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13852 $as_echo "not found" >&6; }
13855 if test -z "$with_sendmail"; then
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendmail" >&5
13857 $as_echo_n "checking for sendmail... " >&6; }
13859 for p in "/usr/sbin/sendmail" "/usr/lib/sendmail" "/usr/etc/sendmail" "/usr/ucblib/sendmail" "/usr/local/lib/sendmail" "/usr/local/bin/sendmail"; do
13860 if test -f "$p"; then
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
13863 $as_echo "$p" >&6; }
13864 cat >>confdefs.h <<EOF
13865 #define _PATH_SUDO_SENDMAIL "$p"
13871 if test X"$found" != X"yes"; then
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13873 $as_echo "not found" >&6; }
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vi" >&5
13878 $as_echo_n "checking for vi... " >&6; }
13880 for editor in "/usr/bin/vi" "/bin/vi" "/usr/ucb/vi" "/usr/bsd/vi" "/usr/local/bin/vi"; do
13881 if test -f "$editor"; then
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $editor" >&5
13884 $as_echo "$editor" >&6; }
13885 cat >>confdefs.h <<EOF
13886 #define _PATH_VI "$editor"
13892 if test X"$found" != X"yes"; then
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13894 $as_echo "not found" >&6; }
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which syslog facility sudo should log with" >&5
13898 $as_echo_n "checking which syslog facility sudo should log with... " >&6; }
13899 if test X"$with_logfac" = X""; then
13900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13901 /* end confdefs.h. */
13902 #include <syslog.h>
13906 int i = LOG_AUTHPRIV; (void)i;
13911 if ac_fn_c_try_compile "$LINENO"; then :
13914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13917 cat >>confdefs.h <<_ACEOF
13918 #define LOGFAC "$logfac"
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logfac" >&5
13922 $as_echo "$logfac" >&6; }
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13924 $as_echo_n "checking for ANSI C header files... " >&6; }
13925 if test "${ac_cv_header_stdc+set}" = set; then :
13926 $as_echo_n "(cached) " >&6
13928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13929 /* end confdefs.h. */
13930 #include <stdlib.h>
13931 #include <stdarg.h>
13932 #include <string.h>
13943 if ac_fn_c_try_compile "$LINENO"; then :
13944 ac_cv_header_stdc=yes
13946 ac_cv_header_stdc=no
13948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13950 if test $ac_cv_header_stdc = yes; then
13951 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13953 /* end confdefs.h. */
13954 #include <string.h>
13957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13958 $EGREP "memchr" >/dev/null 2>&1; then :
13961 ac_cv_header_stdc=no
13967 if test $ac_cv_header_stdc = yes; then
13968 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13970 /* end confdefs.h. */
13971 #include <stdlib.h>
13974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13975 $EGREP "free" >/dev/null 2>&1; then :
13978 ac_cv_header_stdc=no
13984 if test $ac_cv_header_stdc = yes; then
13985 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13986 if test "$cross_compiling" = yes; then :
13989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13990 /* end confdefs.h. */
13992 #include <stdlib.h>
13993 #if ((' ' & 0x0FF) == 0x020)
13994 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13995 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13997 # define ISLOWER(c) \
13998 (('a' <= (c) && (c) <= 'i') \
13999 || ('j' <= (c) && (c) <= 'r') \
14000 || ('s' <= (c) && (c) <= 'z'))
14001 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14004 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14009 for (i = 0; i < 256; i++)
14010 if (XOR (islower (i), ISLOWER (i))
14011 || toupper (i) != TOUPPER (i))
14016 if ac_fn_c_try_run "$LINENO"; then :
14019 ac_cv_header_stdc=no
14021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14022 conftest.$ac_objext conftest.beam conftest.$ac_ext
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14028 $as_echo "$ac_cv_header_stdc" >&6; }
14029 if test $ac_cv_header_stdc = yes; then
14031 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14035 ac_header_dirent=no
14036 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14037 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
14039 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
14040 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
14041 $as_echo_n "(cached) " >&6
14043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14044 /* end confdefs.h. */
14045 #include <sys/types.h>
14057 if ac_fn_c_try_compile "$LINENO"; then :
14058 eval "$as_ac_Header=yes"
14060 eval "$as_ac_Header=no"
14062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14064 eval ac_res=\$$as_ac_Header
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14066 $as_echo "$ac_res" >&6; }
14067 eval as_val=\$$as_ac_Header
14068 if test "x$as_val" = x""yes; then :
14069 cat >>confdefs.h <<_ACEOF
14070 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14073 ac_header_dirent=$ac_hdr; break
14077 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14078 if test $ac_header_dirent = dirent.h; then
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
14080 $as_echo_n "checking for library containing opendir... " >&6; }
14081 if test "${ac_cv_search_opendir+set}" = set; then :
14082 $as_echo_n "(cached) " >&6
14084 ac_func_search_save_LIBS=$LIBS
14085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14086 /* end confdefs.h. */
14088 /* Override any GCC internal prototype to avoid an error.
14089 Use char because int might match the return type of a GCC
14090 builtin and then its argument prototype would still apply. */
14103 for ac_lib in '' dir; do
14104 if test -z "$ac_lib"; then
14105 ac_res="none required"
14108 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14110 if ac_fn_c_try_link "$LINENO"; then :
14111 ac_cv_search_opendir=$ac_res
14113 rm -f core conftest.err conftest.$ac_objext \
14115 if test "${ac_cv_search_opendir+set}" = set; then :
14119 if test "${ac_cv_search_opendir+set}" = set; then :
14122 ac_cv_search_opendir=no
14124 rm conftest.$ac_ext
14125 LIBS=$ac_func_search_save_LIBS
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
14128 $as_echo "$ac_cv_search_opendir" >&6; }
14129 ac_res=$ac_cv_search_opendir
14130 if test "$ac_res" != no; then :
14131 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
14137 $as_echo_n "checking for library containing opendir... " >&6; }
14138 if test "${ac_cv_search_opendir+set}" = set; then :
14139 $as_echo_n "(cached) " >&6
14141 ac_func_search_save_LIBS=$LIBS
14142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14143 /* end confdefs.h. */
14145 /* Override any GCC internal prototype to avoid an error.
14146 Use char because int might match the return type of a GCC
14147 builtin and then its argument prototype would still apply. */
14160 for ac_lib in '' x; do
14161 if test -z "$ac_lib"; then
14162 ac_res="none required"
14165 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14167 if ac_fn_c_try_link "$LINENO"; then :
14168 ac_cv_search_opendir=$ac_res
14170 rm -f core conftest.err conftest.$ac_objext \
14172 if test "${ac_cv_search_opendir+set}" = set; then :
14176 if test "${ac_cv_search_opendir+set}" = set; then :
14179 ac_cv_search_opendir=no
14181 rm conftest.$ac_ext
14182 LIBS=$ac_func_search_save_LIBS
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
14185 $as_echo "$ac_cv_search_opendir" >&6; }
14186 ac_res=$ac_cv_search_opendir
14187 if test "$ac_res" != no; then :
14188 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14195 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14196 if test "${ac_cv_header_time+set}" = set; then :
14197 $as_echo_n "(cached) " >&6
14199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14200 /* end confdefs.h. */
14201 #include <sys/types.h>
14202 #include <sys/time.h>
14208 if ((struct tm *) 0)
14214 if ac_fn_c_try_compile "$LINENO"; then :
14215 ac_cv_header_time=yes
14217 ac_cv_header_time=no
14219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14222 $as_echo "$ac_cv_header_time" >&6; }
14223 if test $ac_cv_header_time = yes; then
14225 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14229 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
14231 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14232 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14233 eval as_val=\$$as_ac_Header
14234 if test "x$as_val" = x""yes; then :
14235 cat >>confdefs.h <<_ACEOF
14236 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14243 # Check whether --enable-largefile was given.
14244 if test "${enable_largefile+set}" = set; then :
14245 enableval=$enable_largefile;
14248 if test "$enable_largefile" != no; then
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
14251 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
14252 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
14253 $as_echo_n "(cached) " >&6
14255 ac_cv_sys_largefile_CC=no
14256 if test "$GCC" != yes; then
14259 # IRIX 6.2 and later do not support large files by default,
14260 # so use the C compiler's -n32 option if that helps.
14261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14262 /* end confdefs.h. */
14263 #include <sys/types.h>
14264 /* Check that off_t can represent 2**63 - 1 correctly.
14265 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14266 since some C++ compilers masquerading as C compilers
14267 incorrectly reject 9223372036854775807. */
14268 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14269 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14270 && LARGE_OFF_T % 2147483647 == 1)
14280 if ac_fn_c_try_compile "$LINENO"; then :
14283 rm -f core conftest.err conftest.$ac_objext
14285 if ac_fn_c_try_compile "$LINENO"; then :
14286 ac_cv_sys_largefile_CC=' -n32'; break
14288 rm -f core conftest.err conftest.$ac_objext
14292 rm -f conftest.$ac_ext
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
14296 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
14297 if test "$ac_cv_sys_largefile_CC" != no; then
14298 CC=$CC$ac_cv_sys_largefile_CC
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14302 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14303 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
14304 $as_echo_n "(cached) " >&6
14307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14308 /* end confdefs.h. */
14309 #include <sys/types.h>
14310 /* Check that off_t can represent 2**63 - 1 correctly.
14311 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14312 since some C++ compilers masquerading as C compilers
14313 incorrectly reject 9223372036854775807. */
14314 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14315 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14316 && LARGE_OFF_T % 2147483647 == 1)
14326 if ac_fn_c_try_compile "$LINENO"; then :
14327 ac_cv_sys_file_offset_bits=no; break
14329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14331 /* end confdefs.h. */
14332 #define _FILE_OFFSET_BITS 64
14333 #include <sys/types.h>
14334 /* Check that off_t can represent 2**63 - 1 correctly.
14335 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14336 since some C++ compilers masquerading as C compilers
14337 incorrectly reject 9223372036854775807. */
14338 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14339 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14340 && LARGE_OFF_T % 2147483647 == 1)
14350 if ac_fn_c_try_compile "$LINENO"; then :
14351 ac_cv_sys_file_offset_bits=64; break
14353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14354 ac_cv_sys_file_offset_bits=unknown
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
14359 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
14360 case $ac_cv_sys_file_offset_bits in #(
14363 cat >>confdefs.h <<_ACEOF
14364 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14369 if test $ac_cv_sys_file_offset_bits = unknown; then
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
14371 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
14372 if test "${ac_cv_sys_large_files+set}" = set; then :
14373 $as_echo_n "(cached) " >&6
14376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14377 /* end confdefs.h. */
14378 #include <sys/types.h>
14379 /* Check that off_t can represent 2**63 - 1 correctly.
14380 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14381 since some C++ compilers masquerading as C compilers
14382 incorrectly reject 9223372036854775807. */
14383 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14384 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14385 && LARGE_OFF_T % 2147483647 == 1)
14395 if ac_fn_c_try_compile "$LINENO"; then :
14396 ac_cv_sys_large_files=no; break
14398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14400 /* end confdefs.h. */
14401 #define _LARGE_FILES 1
14402 #include <sys/types.h>
14403 /* Check that off_t can represent 2**63 - 1 correctly.
14404 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14405 since some C++ compilers masquerading as C compilers
14406 incorrectly reject 9223372036854775807. */
14407 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14408 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14409 && LARGE_OFF_T % 2147483647 == 1)
14419 if ac_fn_c_try_compile "$LINENO"; then :
14420 ac_cv_sys_large_files=1; break
14422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14423 ac_cv_sys_large_files=unknown
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14428 $as_echo "$ac_cv_sys_large_files" >&6; }
14429 case $ac_cv_sys_large_files in #(
14432 cat >>confdefs.h <<_ACEOF
14433 #define _LARGE_FILES $ac_cv_sys_large_files
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h needs _XOPEN_SOURCE_EXTENDED" >&5
14444 $as_echo_n "checking whether sys/types.h needs _XOPEN_SOURCE_EXTENDED... " >&6; }
14445 if test "${sudo_cv_xopen_source_extended+set}" = set; then :
14446 $as_echo_n "(cached) " >&6
14448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14449 /* end confdefs.h. */
14450 $ac_includes_default
14451 #include <sys/socket.h>
14460 if ac_fn_c_try_compile "$LINENO"; then :
14461 sudo_cv_xopen_source_extended=no
14464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14465 /* end confdefs.h. */
14466 #define _XOPEN_SOURCE_EXTENDED
14467 $ac_includes_default
14468 #include <sys/socket.h>
14477 if ac_fn_c_try_compile "$LINENO"; then :
14478 sudo_cv_xopen_source_extended=yes
14480 sudo_cv_xopen_source_extended=error
14482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_xopen_source_extended" >&5
14488 $as_echo "$sudo_cv_xopen_source_extended" >&6; }
14489 if test "$sudo_cv_xopen_source_extended" = "yes"; then
14490 OSDEFS="${OSDEFS} -D_XOPEN_SOURCE_EXTENDED"
14491 cat >>confdefs.h <<\EOF
14492 #define _XOPEN_SOURCE_EXTENDED 1
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX termios" >&5
14499 $as_echo_n "checking POSIX termios... " >&6; }
14500 if test "${ac_cv_sys_posix_termios+set}" = set; then :
14501 $as_echo_n "(cached) " >&6
14503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14504 /* end confdefs.h. */
14505 #include <sys/types.h>
14506 #include <unistd.h>
14507 #include <termios.h>
14512 /* SunOS 4.0.3 has termios.h but not the library calls. */
14518 if ac_fn_c_try_link "$LINENO"; then :
14519 ac_cv_sys_posix_termios=yes
14521 ac_cv_sys_posix_termios=no
14523 rm -f core conftest.err conftest.$ac_objext \
14524 conftest$ac_exeext conftest.$ac_ext
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_posix_termios" >&5
14527 $as_echo "$ac_cv_sys_posix_termios" >&6; }
14529 if test "$ac_cv_sys_posix_termios" != "yes"; then
14530 as_fn_error "Must have POSIX termios to build sudo" "$LINENO" 5
14534 if test X"$ac_cv_header_paths_h" = X"yes"; then
14535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14536 /* end confdefs.h. */
14537 $ac_includes_default
14542 char *p = _PATH_MAILDIR;
14547 if ac_fn_c_try_compile "$LINENO"; then :
14550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14552 if test $maildir = no; then
14553 # Solaris has maillock.h which defines MAILDIR
14554 for ac_header in maillock.h
14556 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
14557 if test "x$ac_cv_header_maillock_h" = x""yes; then :
14558 cat >>confdefs.h <<_ACEOF
14559 #define HAVE_MAILLOCK_H 1
14562 cat >>confdefs.h <<\EOF
14563 #define _PATH_MAILDIR MAILDIR
14572 if test $maildir = no; then
14573 for d in /var/mail /var/spool/mail /usr/spool/mail; do
14574 if test -d "$d"; then
14576 cat >>confdefs.h <<EOF
14577 #define _PATH_MAILDIR "$d"
14583 if test $maildir = no; then
14584 # unable to find mail dir, hope for the best
14585 cat >>confdefs.h <<EOF
14586 #define _PATH_MAILDIR "/var/mail"
14593 if test ${with_logincap-'no'} != "no"; then
14594 for ac_header in login_cap.h
14596 ac_fn_c_check_header_mongrel "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" "$ac_includes_default"
14597 if test "x$ac_cv_header_login_cap_h" = x""yes; then :
14598 cat >>confdefs.h <<_ACEOF
14599 #define HAVE_LOGIN_CAP_H 1
14601 LOGINCAP_USAGE='[-c class|-] '; LCMAN=1
14604 SUDO_LIBS="${SUDO_LIBS} -lutil"
14605 SUDOERS_LIBS="${SUDOERS_LIBS} -lutil"
14614 if test ${with_project-'no'} != "no"; then
14615 ac_fn_c_check_header_mongrel "$LINENO" "project.h" "ac_cv_header_project_h" "$ac_includes_default"
14616 if test "x$ac_cv_header_project_h" = x""yes; then :
14617 $as_echo "#define HAVE_PROJECT_H 1" >>confdefs.h
14619 SUDO_LIBS="${SUDO_LIBS} -lproject"
14626 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
14627 if test "x$ac_cv_type_mode_t" = x""yes; then :
14631 cat >>confdefs.h <<_ACEOF
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
14638 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
14639 if test "${ac_cv_type_uid_t+set}" = set; then :
14640 $as_echo_n "(cached) " >&6
14642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14643 /* end confdefs.h. */
14644 #include <sys/types.h>
14647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14648 $EGREP "uid_t" >/dev/null 2>&1; then :
14649 ac_cv_type_uid_t=yes
14651 ac_cv_type_uid_t=no
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
14657 $as_echo "$ac_cv_type_uid_t" >&6; }
14658 if test $ac_cv_type_uid_t = no; then
14660 $as_echo "#define uid_t int" >>confdefs.h
14663 $as_echo "#define gid_t int" >>confdefs.h
14667 ac_fn_c_check_type "$LINENO" "__signed char" "ac_cv_type___signed_char" "$ac_includes_default"
14668 if test "x$ac_cv_type___signed_char" = x""yes; then :
14671 ac_fn_c_check_type "$LINENO" "signed char" "ac_cv_type_signed_char" "$ac_includes_default"
14672 if test "x$ac_cv_type_signed_char" = x""yes; then :
14673 $as_echo "#define __signed signed" >>confdefs.h
14676 $as_echo "#define __signed /**/" >>confdefs.h
14682 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <sys/types.h>
14683 #include <signal.h>
14685 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then :
14688 $as_echo "#define sig_atomic_t int" >>confdefs.h
14692 ac_fn_c_check_type "$LINENO" "sigaction_t" "ac_cv_type_sigaction_t" "#include <sys/types.h>
14693 #include <signal.h>
14695 if test "x$ac_cv_type_sigaction_t" = x""yes; then :
14697 cat >>confdefs.h <<_ACEOF
14698 #define HAVE_SIGACTION_T 1
14701 $as_echo "#define HAVE_SIGACTION_T 1" >>confdefs.h
14705 ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "#include <sys/types.h>
14706 #if TIME_WITH_SYS_TIME
14707 # include <sys/time.h>
14711 if test "x$ac_cv_type_struct_timespec" = x""yes; then :
14712 $as_echo "#define HAVE_TIMESPEC 1" >>confdefs.h
14716 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#include <sys/types.h>
14717 #include <netinet/in.h>
14719 if test "x$ac_cv_type_struct_in6_addr" = x""yes; then :
14721 cat >>confdefs.h <<_ACEOF
14722 #define HAVE_STRUCT_IN6_ADDR 1
14725 $as_echo "#define HAVE_IN6_ADDR 1" >>confdefs.h
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
14731 $as_echo_n "checking for long long int... " >&6; }
14732 if test "${ac_cv_type_long_long_int+set}" = set; then :
14733 $as_echo_n "(cached) " >&6
14735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14736 /* end confdefs.h. */
14738 /* For now, do not test the preprocessor; as of 2007 there are too many
14739 implementations with broken preprocessors. Perhaps this can
14740 be revisited in 2012. In the meantime, code should not expect
14741 #if to work with literals wider than 32 bits. */
14742 /* Test literals. */
14743 long long int ll = 9223372036854775807ll;
14744 long long int nll = -9223372036854775807LL;
14745 unsigned long long int ull = 18446744073709551615ULL;
14746 /* Test constant expressions. */
14747 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
14749 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
14755 /* Test availability of runtime routines for shift and division. */
14756 long long int llmax = 9223372036854775807ll;
14757 unsigned long long int ullmax = 18446744073709551615ull;
14758 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
14759 | (llmax / ll) | (llmax % ll)
14760 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
14761 | (ullmax / ull) | (ullmax % ull));
14767 if ac_fn_c_try_link "$LINENO"; then :
14768 if test "$cross_compiling" = yes; then :
14769 ac_cv_type_long_long_int=yes
14771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14772 /* end confdefs.h. */
14773 #include <limits.h>
14776 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
14777 # define LLONG_MAX (HALF - 1 + HALF)
14782 long long int n = 1;
14786 long long int m = n << i;
14789 if (LLONG_MAX / 2 < m)
14797 if ac_fn_c_try_run "$LINENO"; then :
14798 ac_cv_type_long_long_int=yes
14800 ac_cv_type_long_long_int=no
14802 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14803 conftest.$ac_objext conftest.beam conftest.$ac_ext
14807 ac_cv_type_long_long_int=no
14809 rm -f core conftest.err conftest.$ac_objext \
14810 conftest$ac_exeext conftest.$ac_ext
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
14813 $as_echo "$ac_cv_type_long_long_int" >&6; }
14814 if test $ac_cv_type_long_long_int = yes; then
14816 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
14820 # The cast to long int works around a bug in the HP C Compiler
14821 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14822 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14823 # This bug is HP SR number 8606223364.
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
14825 $as_echo_n "checking size of long int... " >&6; }
14826 if test "${ac_cv_sizeof_long_int+set}" = set; then :
14827 $as_echo_n "(cached) " >&6
14829 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
14832 if test "$ac_cv_type_long_int" = yes; then
14833 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14835 { as_fn_set_status 77
14836 as_fn_error "cannot compute sizeof (long int)
14837 See \`config.log' for more details." "$LINENO" 5; }; }
14839 ac_cv_sizeof_long_int=0
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
14845 $as_echo "$ac_cv_sizeof_long_int" >&6; }
14849 cat >>confdefs.h <<_ACEOF
14850 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5
14855 $as_echo_n "checking for size_t... " >&6; }
14856 if test "${sudo_cv_type_size_t+set}" = set; then :
14857 $as_echo_n "(cached) " >&6
14859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14860 /* end confdefs.h. */
14861 #include <sys/types.h>
14864 #include <stdlib.h>
14867 #include <unistd.h>
14870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14871 $EGREP "size_t" >/dev/null 2>&1; then :
14872 sudo_cv_type_size_t=yes
14874 sudo_cv_type_size_t=no
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_type_size_t" >&5
14880 $as_echo "$sudo_cv_type_size_t" >&6; }
14881 if test $sudo_cv_type_size_t = no; then
14883 $as_echo "#define size_t int" >>confdefs.h
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
14888 $as_echo_n "checking for ssize_t... " >&6; }
14889 if test "${sudo_cv_type_ssize_t+set}" = set; then :
14890 $as_echo_n "(cached) " >&6
14892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14893 /* end confdefs.h. */
14894 #include <sys/types.h>
14897 #include <stdlib.h>
14900 #include <unistd.h>
14903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14904 $EGREP "ssize_t" >/dev/null 2>&1; then :
14905 sudo_cv_type_ssize_t=yes
14907 sudo_cv_type_ssize_t=no
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_type_ssize_t" >&5
14913 $as_echo "$sudo_cv_type_ssize_t" >&6; }
14914 if test $sudo_cv_type_ssize_t = no; then
14916 $as_echo "#define ssize_t int" >>confdefs.h
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dev_t" >&5
14921 $as_echo_n "checking for dev_t... " >&6; }
14922 if test "${sudo_cv_type_dev_t+set}" = set; then :
14923 $as_echo_n "(cached) " >&6
14925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14926 /* end confdefs.h. */
14927 #include <sys/types.h>
14930 #include <stdlib.h>
14933 #include <unistd.h>
14936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14937 $EGREP "dev_t" >/dev/null 2>&1; then :
14938 sudo_cv_type_dev_t=yes
14940 sudo_cv_type_dev_t=no
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_type_dev_t" >&5
14946 $as_echo "$sudo_cv_type_dev_t" >&6; }
14947 if test $sudo_cv_type_dev_t = no; then
14949 $as_echo "#define dev_t int" >>confdefs.h
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ino_t" >&5
14954 $as_echo_n "checking for ino_t... " >&6; }
14955 if test "${sudo_cv_type_ino_t+set}" = set; then :
14956 $as_echo_n "(cached) " >&6
14958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14959 /* end confdefs.h. */
14960 #include <sys/types.h>
14963 #include <stdlib.h>
14966 #include <unistd.h>
14969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14970 $EGREP "ino_t" >/dev/null 2>&1; then :
14971 sudo_cv_type_ino_t=yes
14973 sudo_cv_type_ino_t=no
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_type_ino_t" >&5
14979 $as_echo "$sudo_cv_type_ino_t" >&6; }
14980 if test $sudo_cv_type_ino_t = no; then
14982 $as_echo "#define ino_t unsigned int" >>confdefs.h
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking max length of uid_t" >&5
14988 $as_echo_n "checking max length of uid_t... " >&6; }
14989 if test "${sudo_cv_uid_t_len+set}" = set; then :
14990 $as_echo_n "(cached) " >&6
14993 if test "$cross_compiling" = yes; then :
14994 sudo_cv_uid_t_len=10
14996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14997 /* end confdefs.h. */
15000 #include <limits.h>
15001 #include <sys/types.h>
15002 #include <sys/param.h>
15006 uid_t u = (uid_t) -1;
15008 if ((f = fopen("conftestdata", "w")) == NULL)
15011 (void) sprintf(b, "%lu", (unsigned long) u);
15012 (void) fprintf(f, "%d\n", strlen(b));
15017 if ac_fn_c_try_run "$LINENO"; then :
15018 sudo_cv_uid_t_len=`cat conftestdata`
15020 sudo_cv_uid_t_len=10
15022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15023 conftest.$ac_objext conftest.beam conftest.$ac_ext
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_uid_t_len" >&5
15031 $as_echo "$sudo_cv_uid_t_len" >&6; }
15033 cat >>confdefs.h <<_ACEOF
15034 #define MAX_UID_T_LEN $sudo_cv_uid_t_len
15039 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" " #include <sys/types.h>
15040 #include <sys/socket.h>
15043 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
15045 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
15051 CFLAGS="$CFLAGS $OSDEFS"
15052 if test $ac_cv_header_utmpx_h = "yes"; then
15053 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_id" "ac_cv_member_struct_utmpx_ut_id" "
15054 #include <sys/types.h>
15058 if test "x$ac_cv_member_struct_utmpx_ut_id" = x""yes; then :
15060 cat >>confdefs.h <<_ACEOF
15061 #define HAVE_STRUCT_UTMPX_UT_ID 1
15066 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_pid" "ac_cv_member_struct_utmpx_ut_pid" "
15067 #include <sys/types.h>
15071 if test "x$ac_cv_member_struct_utmpx_ut_pid" = x""yes; then :
15073 cat >>confdefs.h <<_ACEOF
15074 #define HAVE_STRUCT_UTMPX_UT_PID 1
15079 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_tv" "ac_cv_member_struct_utmpx_ut_tv" "
15080 #include <sys/types.h>
15084 if test "x$ac_cv_member_struct_utmpx_ut_tv" = x""yes; then :
15086 cat >>confdefs.h <<_ACEOF
15087 #define HAVE_STRUCT_UTMPX_UT_TV 1
15092 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_type" "ac_cv_member_struct_utmpx_ut_type" "
15093 #include <sys/types.h>
15097 if test "x$ac_cv_member_struct_utmpx_ut_type" = x""yes; then :
15099 cat >>confdefs.h <<_ACEOF
15100 #define HAVE_STRUCT_UTMPX_UT_TYPE 1
15106 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_exit.__e_termination" "ac_cv_member_struct_utmpx_ut_exit___e_termination" "
15107 #include <sys/types.h>
15111 if test "x$ac_cv_member_struct_utmpx_ut_exit___e_termination" = x""yes; then :
15113 cat >>confdefs.h <<_ACEOF
15114 #define HAVE_STRUCT_UTMPX_UT_EXIT___E_TERMINATION 1
15117 $as_echo "#define HAVE_STRUCT_UTMPX_UT_EXIT 1" >>confdefs.h
15121 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_exit.e_termination" "ac_cv_member_struct_utmpx_ut_exit_e_termination" "
15122 #include <sys/types.h>
15126 if test "x$ac_cv_member_struct_utmpx_ut_exit_e_termination" = x""yes; then :
15128 cat >>confdefs.h <<_ACEOF
15129 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_TERMINATION 1
15132 $as_echo "#define HAVE_STRUCT_UTMPX_UT_EXIT 1" >>confdefs.h
15140 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_id" "ac_cv_member_struct_utmp_ut_id" "
15141 #include <sys/types.h>
15145 if test "x$ac_cv_member_struct_utmp_ut_id" = x""yes; then :
15147 cat >>confdefs.h <<_ACEOF
15148 #define HAVE_STRUCT_UTMP_UT_ID 1
15153 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" "
15154 #include <sys/types.h>
15158 if test "x$ac_cv_member_struct_utmp_ut_pid" = x""yes; then :
15160 cat >>confdefs.h <<_ACEOF
15161 #define HAVE_STRUCT_UTMP_UT_PID 1
15166 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_tv" "ac_cv_member_struct_utmp_ut_tv" "
15167 #include <sys/types.h>
15171 if test "x$ac_cv_member_struct_utmp_ut_tv" = x""yes; then :
15173 cat >>confdefs.h <<_ACEOF
15174 #define HAVE_STRUCT_UTMP_UT_TV 1
15179 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_type" "ac_cv_member_struct_utmp_ut_type" "
15180 #include <sys/types.h>
15184 if test "x$ac_cv_member_struct_utmp_ut_type" = x""yes; then :
15186 cat >>confdefs.h <<_ACEOF
15187 #define HAVE_STRUCT_UTMP_UT_TYPE 1
15192 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_user" "ac_cv_member_struct_utmp_ut_user" "
15193 #include <sys/types.h>
15197 if test "x$ac_cv_member_struct_utmp_ut_user" = x""yes; then :
15199 cat >>confdefs.h <<_ACEOF
15200 #define HAVE_STRUCT_UTMP_UT_USER 1
15206 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_exit.__e_termination" "ac_cv_member_struct_utmp_ut_exit___e_termination" "
15207 #include <sys/types.h>
15211 if test "x$ac_cv_member_struct_utmp_ut_exit___e_termination" = x""yes; then :
15213 cat >>confdefs.h <<_ACEOF
15214 #define HAVE_STRUCT_UTMP_UT_EXIT___E_TERMINATION 1
15217 $as_echo "#define HAVE_STRUCT_UTMP_UT_EXIT 1" >>confdefs.h
15221 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_exit.e_termination" "ac_cv_member_struct_utmp_ut_exit_e_termination" "
15222 #include <sys/types.h>
15226 if test "x$ac_cv_member_struct_utmp_ut_exit_e_termination" = x""yes; then :
15228 cat >>confdefs.h <<_ACEOF
15229 #define HAVE_STRUCT_UTMP_UT_EXIT_E_TERMINATION 1
15232 $as_echo "#define HAVE_STRUCT_UTMP_UT_EXIT 1" >>confdefs.h
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
15243 $as_echo_n "checking type of array argument to getgroups... " >&6; }
15244 if test "${ac_cv_type_getgroups+set}" = set; then :
15245 $as_echo_n "(cached) " >&6
15247 if test "$cross_compiling" = yes; then :
15248 ac_cv_type_getgroups=cross
15250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15251 /* end confdefs.h. */
15252 /* Thanks to Mike Rendell for this test. */
15253 $ac_includes_default
15256 #define MAX(x, y) ((x) > (y) ? (x) : (y))
15261 gid_t gidset[NGID];
15263 union { gid_t gval; long int lval; } val;
15266 for (i = 0; i < NGID; i++)
15267 gidset[i] = val.gval;
15268 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
15270 /* Exit non-zero if getgroups seems to require an array of ints. This
15271 happens when gid_t is short int but getgroups modifies an array
15273 return n > 0 && gidset[n] != val.gval;
15276 if ac_fn_c_try_run "$LINENO"; then :
15277 ac_cv_type_getgroups=gid_t
15279 ac_cv_type_getgroups=int
15281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15282 conftest.$ac_objext conftest.beam conftest.$ac_ext
15285 if test $ac_cv_type_getgroups = cross; then
15286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15287 /* end confdefs.h. */
15288 #include <unistd.h>
15291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15292 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
15293 ac_cv_type_getgroups=gid_t
15295 ac_cv_type_getgroups=int
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
15302 $as_echo "$ac_cv_type_getgroups" >&6; }
15304 cat >>confdefs.h <<_ACEOF
15305 #define GETGROUPS_T $ac_cv_type_getgroups
15309 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15310 if test "x$ac_cv_type_size_t" = x""yes; then :
15314 cat >>confdefs.h <<_ACEOF
15315 #define size_t unsigned int
15320 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
15321 if test "x$ac_cv_func_getgroups" = x""yes; then :
15326 # If we don't yet have getgroups, see if it's in -lbsd.
15327 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
15329 if test $ac_cv_func_getgroups = no; then
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
15331 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
15332 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
15333 $as_echo_n "(cached) " >&6
15335 ac_check_lib_save_LIBS=$LIBS
15337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15338 /* end confdefs.h. */
15340 /* Override any GCC internal prototype to avoid an error.
15341 Use char because int might match the return type of a GCC
15342 builtin and then its argument prototype would still apply. */
15350 return getgroups ();
15355 if ac_fn_c_try_link "$LINENO"; then :
15356 ac_cv_lib_bsd_getgroups=yes
15358 ac_cv_lib_bsd_getgroups=no
15360 rm -f core conftest.err conftest.$ac_objext \
15361 conftest$ac_exeext conftest.$ac_ext
15362 LIBS=$ac_check_lib_save_LIBS
15364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
15365 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
15366 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then :
15367 GETGROUPS_LIB=-lbsd
15372 # Run the program to test the functionality of the system-supplied
15373 # getgroups function only if there is such a function.
15374 if test $ac_cv_func_getgroups = yes; then
15375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
15376 $as_echo_n "checking for working getgroups... " >&6; }
15377 if test "${ac_cv_func_getgroups_works+set}" = set; then :
15378 $as_echo_n "(cached) " >&6
15380 if test "$cross_compiling" = yes; then :
15381 ac_cv_func_getgroups_works=no
15383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15384 /* end confdefs.h. */
15385 $ac_includes_default
15389 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
15390 return getgroups (0, 0) == -1;
15395 if ac_fn_c_try_run "$LINENO"; then :
15396 ac_cv_func_getgroups_works=yes
15398 ac_cv_func_getgroups_works=no
15400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15401 conftest.$ac_objext conftest.beam conftest.$ac_ext
15406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
15407 $as_echo "$ac_cv_func_getgroups_works" >&6; }
15409 ac_cv_func_getgroups_works=no
15411 if test $ac_cv_func_getgroups_works = yes; then
15413 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
15418 for ac_func in strrchr sysconf tzset strftime initgroups getgroups fstat \
15419 regcomp setlocale nl_langinfo getaddrinfo mbr_check_membership \
15422 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15423 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15424 eval as_val=\$$as_ac_var
15425 if test "x$as_val" = x""yes; then :
15426 cat >>confdefs.h <<_ACEOF
15427 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15433 for ac_func in getline
15435 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
15436 if test "x$ac_cv_func_getline" = x""yes; then :
15437 cat >>confdefs.h <<_ACEOF
15438 #define HAVE_GETLINE 1
15443 case " $LIBOBJS " in
15444 *" getline.$ac_objext "* ) ;;
15445 *) LIBOBJS="$LIBOBJS getline.$ac_objext"
15449 for ac_func in fgetln
15451 ac_fn_c_check_func "$LINENO" "fgetln" "ac_cv_func_fgetln"
15452 if test "x$ac_cv_func_fgetln" = x""yes; then :
15453 cat >>confdefs.h <<_ACEOF
15454 #define HAVE_FGETLN 1
15465 for ac_func in getutxid getutid
15467 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15468 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15469 eval as_val=\$$as_ac_var
15470 if test "x$as_val" = x""yes; then :
15471 cat >>confdefs.h <<_ACEOF
15472 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15474 utmp_style=POSIX; break
15478 if test "$utmp_style" = "LEGACY"; then
15479 for ac_func in getttyent ttyslot
15481 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15482 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15483 eval as_val=\$$as_ac_var
15484 if test "x$as_val" = x""yes; then :
15485 cat >>confdefs.h <<_ACEOF
15486 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15494 for ac_func in openpty
15496 ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
15497 if test "x$ac_cv_func_openpty" = x""yes; then :
15498 cat >>confdefs.h <<_ACEOF
15499 #define HAVE_OPENPTY 1
15501 for ac_header in util.h pty.h
15503 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15504 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15505 eval as_val=\$$as_ac_Header
15506 if test "x$as_val" = x""yes; then :
15507 cat >>confdefs.h <<_ACEOF
15508 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
15518 $as_echo_n "checking for openpty in -lutil... " >&6; }
15519 if test "${ac_cv_lib_util_openpty+set}" = set; then :
15520 $as_echo_n "(cached) " >&6
15522 ac_check_lib_save_LIBS=$LIBS
15523 LIBS="-lutil $LIBS"
15524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15525 /* end confdefs.h. */
15527 /* Override any GCC internal prototype to avoid an error.
15528 Use char because int might match the return type of a GCC
15529 builtin and then its argument prototype would still apply. */
15542 if ac_fn_c_try_link "$LINENO"; then :
15543 ac_cv_lib_util_openpty=yes
15545 ac_cv_lib_util_openpty=no
15547 rm -f core conftest.err conftest.$ac_objext \
15548 conftest$ac_exeext conftest.$ac_ext
15549 LIBS=$ac_check_lib_save_LIBS
15551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
15552 $as_echo "$ac_cv_lib_util_openpty" >&6; }
15553 if test "x$ac_cv_lib_util_openpty" = x""yes; then :
15555 for ac_header in util.h pty.h
15557 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15558 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15559 eval as_val=\$$as_ac_Header
15560 if test "x$as_val" = x""yes; then :
15561 cat >>confdefs.h <<_ACEOF
15562 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15569 case "$SUDO_LIBS" in
15571 *) SUDO_LIBS="${SUDO_LIBS} -lutil";;
15573 $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
15578 for ac_func in _getpty
15580 ac_fn_c_check_func "$LINENO" "_getpty" "ac_cv_func__getpty"
15581 if test "x$ac_cv_func__getpty" = x""yes; then :
15582 cat >>confdefs.h <<_ACEOF
15583 #define HAVE__GETPTY 1
15588 for ac_func in grantpt
15590 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
15591 if test "x$ac_cv_func_grantpt" = x""yes; then :
15592 cat >>confdefs.h <<_ACEOF
15593 #define HAVE_GRANTPT 1
15596 for ac_func in posix_openpt
15598 ac_fn_c_check_func "$LINENO" "posix_openpt" "ac_cv_func_posix_openpt"
15599 if test "x$ac_cv_func_posix_openpt" = x""yes; then :
15600 cat >>confdefs.h <<_ACEOF
15601 #define HAVE_POSIX_OPENPT 1
15610 for ac_func in revoke
15612 ac_fn_c_check_func "$LINENO" "revoke" "ac_cv_func_revoke"
15613 if test "x$ac_cv_func_revoke" = x""yes; then :
15614 cat >>confdefs.h <<_ACEOF
15615 #define HAVE_REVOKE 1
15636 for ac_func in unsetenv
15638 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
15639 if test "x$ac_cv_func_unsetenv" = x""yes; then :
15640 cat >>confdefs.h <<_ACEOF
15641 #define HAVE_UNSETENV 1
15643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv returns void" >&5
15644 $as_echo_n "checking whether unsetenv returns void... " >&6; }
15645 if test "${sudo_cv_func_unsetenv_void+set}" = set; then :
15646 $as_echo_n "(cached) " >&6
15648 if test "$cross_compiling" = yes; then :
15649 sudo_cv_func_unsetenv_void=no
15651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15652 /* end confdefs.h. */
15653 $ac_includes_default
15660 return unsetenv("FOO") != 0;
15667 if ac_fn_c_try_run "$LINENO"; then :
15668 sudo_cv_func_unsetenv_void=no
15670 sudo_cv_func_unsetenv_void=yes
15672 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15673 conftest.$ac_objext conftest.beam conftest.$ac_ext
15677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_unsetenv_void" >&5
15678 $as_echo "$sudo_cv_func_unsetenv_void" >&6; }
15679 if test $sudo_cv_func_unsetenv_void = yes; then
15681 $as_echo "#define UNSETENV_VOID 1" >>confdefs.h
15686 case " $LIBOBJS " in
15687 *" unsetenv.$ac_objext "* ) ;;
15688 *) LIBOBJS="$LIBOBJS unsetenv.$ac_objext"
15695 if test -z "$SKIP_SETRESUID"; then
15696 for ac_func in setresuid
15698 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
15699 if test "x$ac_cv_func_setresuid" = x""yes; then :
15700 cat >>confdefs.h <<_ACEOF
15701 #define HAVE_SETRESUID 1
15705 for ac_func in getresuid
15707 ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid"
15708 if test "x$ac_cv_func_getresuid" = x""yes; then :
15709 cat >>confdefs.h <<_ACEOF
15710 #define HAVE_GETRESUID 1
15721 if test -z "$SKIP_SETREUID"; then
15722 for ac_func in setreuid
15724 ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
15725 if test "x$ac_cv_func_setreuid" = x""yes; then :
15726 cat >>confdefs.h <<_ACEOF
15727 #define HAVE_SETREUID 1
15734 if test -z "$SKIP_SETEUID"; then
15735 for ac_func in seteuid
15737 ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
15738 if test "x$ac_cv_func_seteuid" = x""yes; then :
15739 cat >>confdefs.h <<_ACEOF
15740 #define HAVE_SETEUID 1
15747 if test X"$with_interfaces" != X"no"; then
15748 for ac_func in getifaddrs
15750 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
15751 if test "x$ac_cv_func_getifaddrs" = x""yes; then :
15752 cat >>confdefs.h <<_ACEOF
15753 #define HAVE_GETIFADDRS 1
15755 for ac_func in freeifaddrs
15757 ac_fn_c_check_func "$LINENO" "freeifaddrs" "ac_cv_func_freeifaddrs"
15758 if test "x$ac_cv_func_freeifaddrs" = x""yes; then :
15759 cat >>confdefs.h <<_ACEOF
15760 #define HAVE_FREEIFADDRS 1
15770 if test -z "$BROKEN_GETCWD"; then
15771 for ac_func in getcwd
15773 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
15774 if test "x$ac_cv_func_getcwd" = x""yes; then :
15775 cat >>confdefs.h <<_ACEOF
15776 #define HAVE_GETCWD 1
15780 case " $LIBOBJS " in
15781 *" $ac_func.$ac_objext "* ) ;;
15782 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
15791 for ac_func in glob
15793 ac_fn_c_check_func "$LINENO" "glob" "ac_cv_func_glob"
15794 if test "x$ac_cv_func_glob" = x""yes; then :
15795 cat >>confdefs.h <<_ACEOF
15796 #define HAVE_GLOB 1
15798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_BRACE and GLOB_TILDE in glob.h" >&5
15799 $as_echo_n "checking for GLOB_BRACE and GLOB_TILDE in glob.h... " >&6; }
15800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15801 /* end confdefs.h. */
15806 int i = GLOB_BRACE | GLOB_TILDE; (void)i;
15811 if ac_fn_c_try_compile "$LINENO"; then :
15812 $as_echo "#define HAVE_EXTENDED_GLOB 1" >>confdefs.h
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15815 $as_echo "yes" >&6; }
15817 case " $LIBOBJS " in
15818 *" glob.$ac_objext "* ) ;;
15819 *) LIBOBJS="$LIBOBJS glob.$ac_objext"
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15824 $as_echo "no" >&6; }
15826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15828 case " $LIBOBJS " in
15829 *" glob.$ac_objext "* ) ;;
15830 *) LIBOBJS="$LIBOBJS glob.$ac_objext"
15837 for ac_func in lockf flock
15839 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15840 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15841 eval as_val=\$$as_ac_var
15842 if test "x$as_val" = x""yes; then :
15843 cat >>confdefs.h <<_ACEOF
15844 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15850 for ac_func in innetgr _innetgr
15852 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15853 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15854 eval as_val=\$$as_ac_var
15855 if test "x$as_val" = x""yes; then :
15856 cat >>confdefs.h <<_ACEOF
15857 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15859 for ac_func in getdomainname
15861 ac_fn_c_check_func "$LINENO" "getdomainname" "ac_cv_func_getdomainname"
15862 if test "x$ac_cv_func_getdomainname" = x""yes; then :
15863 cat >>confdefs.h <<_ACEOF
15864 #define HAVE_GETDOMAINNAME 1
15873 for ac_func in utimes
15875 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
15876 if test "x$ac_cv_func_utimes" = x""yes; then :
15877 cat >>confdefs.h <<_ACEOF
15878 #define HAVE_UTIMES 1
15880 for ac_func in futimes futimesat
15882 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15883 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15884 eval as_val=\$$as_ac_var
15885 if test "x$as_val" = x""yes; then :
15886 cat >>confdefs.h <<_ACEOF
15887 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15894 for ac_func in futime
15896 ac_fn_c_check_func "$LINENO" "futime" "ac_cv_func_futime"
15897 if test "x$ac_cv_func_futime" = x""yes; then :
15898 cat >>confdefs.h <<_ACEOF
15899 #define HAVE_FUTIME 1
15904 case " $LIBOBJS " in
15905 *" utimes.$ac_objext "* ) ;;
15906 *) LIBOBJS="$LIBOBJS utimes.$ac_objext"
15913 for ac_func in killpg
15915 ac_fn_c_check_func "$LINENO" "killpg" "ac_cv_func_killpg"
15916 if test "x$ac_cv_func_killpg" = x""yes; then :
15917 cat >>confdefs.h <<_ACEOF
15918 #define HAVE_KILLPG 1
15922 case " $LIBOBJS " in
15923 *" killpg.$ac_objext "* ) ;;
15924 *) LIBOBJS="$LIBOBJS killpg.$ac_objext"
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fnmatch with FNM_CASEFOLD" >&5
15932 $as_echo_n "checking for working fnmatch with FNM_CASEFOLD... " >&6; }
15933 if test "${sudo_cv_func_fnmatch+set}" = set; then :
15934 $as_echo_n "(cached) " >&6
15936 rm -f conftestdata; > conftestdata
15937 if test "$cross_compiling" = yes; then :
15938 sudo_cv_func_fnmatch=no
15940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15941 /* end confdefs.h. */
15942 #include <fnmatch.h>
15943 main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
15945 if ac_fn_c_try_run "$LINENO"; then :
15946 sudo_cv_func_fnmatch=yes
15948 sudo_cv_func_fnmatch=no
15950 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15951 conftest.$ac_objext conftest.beam conftest.$ac_ext
15954 rm -f core core.* *.core
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_fnmatch" >&5
15958 $as_echo "$sudo_cv_func_fnmatch" >&6; }
15959 if test $sudo_cv_func_fnmatch = yes; then :
15960 $as_echo "#define HAVE_FNMATCH 1" >>confdefs.h
15963 case " $LIBOBJS " in
15964 *" fnmatch.$ac_objext "* ) ;;
15965 *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isblank" >&5
15971 $as_echo_n "checking for isblank... " >&6; }
15972 if test "${sudo_cv_func_isblank+set}" = set; then :
15973 $as_echo_n "(cached) " >&6
15975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15976 /* end confdefs.h. */
15981 return (isblank('a'));
15986 if ac_fn_c_try_link "$LINENO"; then :
15987 sudo_cv_func_isblank=yes
15989 sudo_cv_func_isblank=no
15991 rm -f core conftest.err conftest.$ac_objext \
15992 conftest$ac_exeext conftest.$ac_ext
15994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_isblank" >&5
15995 $as_echo "$sudo_cv_func_isblank" >&6; }
15997 if test "$sudo_cv_func_isblank" = "yes"; then
15999 $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
16002 case " $LIBOBJS " in
16003 *" isblank.$ac_objext "* ) ;;
16004 *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
16010 for ac_func in memrchr strlcpy strlcat setenv
16012 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16013 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16014 eval as_val=\$$as_ac_var
16015 if test "x$as_val" = x""yes; then :
16016 cat >>confdefs.h <<_ACEOF
16017 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16021 case " $LIBOBJS " in
16022 *" $ac_func.$ac_objext "* ) ;;
16023 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16031 for ac_func in nanosleep
16033 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
16034 if test "x$ac_cv_func_nanosleep" = x""yes; then :
16035 cat >>confdefs.h <<_ACEOF
16036 #define HAVE_NANOSLEEP 1
16041 # On Solaris, nanosleep is in librt
16042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
16043 $as_echo_n "checking for nanosleep in -lrt... " >&6; }
16044 if test "${ac_cv_lib_rt_nanosleep+set}" = set; then :
16045 $as_echo_n "(cached) " >&6
16047 ac_check_lib_save_LIBS=$LIBS
16049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16050 /* end confdefs.h. */
16052 /* Override any GCC internal prototype to avoid an error.
16053 Use char because int might match the return type of a GCC
16054 builtin and then its argument prototype would still apply. */
16062 return nanosleep ();
16067 if ac_fn_c_try_link "$LINENO"; then :
16068 ac_cv_lib_rt_nanosleep=yes
16070 ac_cv_lib_rt_nanosleep=no
16072 rm -f core conftest.err conftest.$ac_objext \
16073 conftest$ac_exeext conftest.$ac_ext
16074 LIBS=$ac_check_lib_save_LIBS
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
16077 $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
16078 if test "x$ac_cv_lib_rt_nanosleep" = x""yes; then :
16079 REPLAY_LIBS="${REPLAY_LIBS} -lrt"
16081 case " $LIBOBJS " in
16082 *" nanosleep.$ac_objext "* ) ;;
16083 *) LIBOBJS="$LIBOBJS nanosleep.$ac_objext"
16093 for ac_func in closefrom
16095 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
16096 if test "x$ac_cv_func_closefrom" = x""yes; then :
16097 cat >>confdefs.h <<_ACEOF
16098 #define HAVE_CLOSEFROM 1
16102 case " $LIBOBJS " in
16103 *" closefrom.$ac_objext "* ) ;;
16104 *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
16108 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" " #include <limits.h>
16111 if test "x$ac_cv_have_decl_F_CLOSEM" = x""yes; then :
16112 $as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h
16120 for ac_func in mkstemps mkdtemp
16122 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16123 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16124 eval as_val=\$$as_ac_var
16125 if test "x$as_val" = x""yes; then :
16126 cat >>confdefs.h <<_ACEOF
16127 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16132 for ac_func in random lrand48
16134 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16135 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16136 eval as_val=\$$as_ac_var
16137 if test "x$as_val" = x""yes; then :
16138 cat >>confdefs.h <<_ACEOF
16139 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16145 case " $LIBOBJS " in
16146 *" mktemp.$ac_objext "* ) ;;
16147 *) LIBOBJS="$LIBOBJS mktemp.$ac_objext"
16155 for ac_func in snprintf vsnprintf asprintf vasprintf
16157 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16158 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16159 eval as_val=\$$as_ac_var
16160 if test "x$as_val" = x""yes; then :
16161 cat >>confdefs.h <<_ACEOF
16162 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16170 if test X"$ac_cv_type_struct_timespec" != X"no"; then
16171 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
16172 if test "x$ac_cv_member_struct_stat_st_mtim" = x""yes; then :
16173 $as_echo "#define HAVE_ST_MTIM 1" >>confdefs.h
16175 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.st__tim" "ac_cv_member_struct_stat_st_mtim_st__tim" "$ac_includes_default"
16176 if test "x$ac_cv_member_struct_stat_st_mtim_st__tim" = x""yes; then :
16177 $as_echo "#define HAVE_ST__TIM 1" >>confdefs.h
16182 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
16183 if test "x$ac_cv_member_struct_stat_st_mtimespec" = x""yes; then :
16184 $as_echo "#define HAVE_ST_MTIMESPEC 1" >>confdefs.h
16191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16192 /* end confdefs.h. */
16193 #include <sys/types.h>
16194 #include <$ac_header_dirent>
16198 DIR *d; (void)dirfd(d);
16203 if ac_fn_c_try_link "$LINENO"; then :
16204 $as_echo "#define HAVE_DIRFD 1" >>confdefs.h
16207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16208 /* end confdefs.h. */
16209 #include <sys/types.h>
16210 #include <$ac_header_dirent>
16214 DIR d; memset(&d, 0, sizeof(d)); return(d.dd_fd);
16219 if ac_fn_c_try_link "$LINENO"; then :
16220 $as_echo "#define HAVE_DD_FD 1" >>confdefs.h
16223 rm -f core conftest.err conftest.$ac_objext \
16224 conftest$ac_exeext conftest.$ac_ext
16226 rm -f core conftest.err conftest.$ac_objext \
16227 conftest$ac_exeext conftest.$ac_ext
16228 if test -n "$NEED_SNPRINTF"; then
16229 case " $LIBOBJS " in
16230 *" snprintf.$ac_objext "* ) ;;
16231 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
16236 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
16237 if test "x$ac_cv_func_socket" = x""yes; then :
16240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
16241 $as_echo_n "checking for socket in -lsocket... " >&6; }
16242 if test "${ac_cv_lib_socket_socket+set}" = set; then :
16243 $as_echo_n "(cached) " >&6
16245 ac_check_lib_save_LIBS=$LIBS
16246 LIBS="-lsocket $LIBS"
16247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16248 /* end confdefs.h. */
16250 /* Override any GCC internal prototype to avoid an error.
16251 Use char because int might match the return type of a GCC
16252 builtin and then its argument prototype would still apply. */
16265 if ac_fn_c_try_link "$LINENO"; then :
16266 ac_cv_lib_socket_socket=yes
16268 ac_cv_lib_socket_socket=no
16270 rm -f core conftest.err conftest.$ac_objext \
16271 conftest$ac_exeext conftest.$ac_ext
16272 LIBS=$ac_check_lib_save_LIBS
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
16275 $as_echo "$ac_cv_lib_socket_socket" >&6; }
16276 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
16277 NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
16279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
16280 $as_echo_n "checking for socket in -linet... " >&6; }
16281 if test "${ac_cv_lib_inet_socket+set}" = set; then :
16282 $as_echo_n "(cached) " >&6
16284 ac_check_lib_save_LIBS=$LIBS
16285 LIBS="-linet $LIBS"
16286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16287 /* end confdefs.h. */
16289 /* Override any GCC internal prototype to avoid an error.
16290 Use char because int might match the return type of a GCC
16291 builtin and then its argument prototype would still apply. */
16304 if ac_fn_c_try_link "$LINENO"; then :
16305 ac_cv_lib_inet_socket=yes
16307 ac_cv_lib_inet_socket=no
16309 rm -f core conftest.err conftest.$ac_objext \
16310 conftest$ac_exeext conftest.$ac_ext
16311 LIBS=$ac_check_lib_save_LIBS
16313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
16314 $as_echo "$ac_cv_lib_inet_socket" >&6; }
16315 if test "x$ac_cv_lib_inet_socket" = x""yes; then :
16316 NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
16318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to find socket() trying -lsocket -lnsl" >&5
16319 $as_echo "$as_me: WARNING: unable to find socket() trying -lsocket -lnsl" >&2;}
16320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
16321 $as_echo_n "checking for socket in -lsocket... " >&6; }
16322 if test "${ac_cv_lib_socket_socket_lnsl+set}" = set; then :
16323 $as_echo_n "(cached) " >&6
16325 ac_check_lib_save_LIBS=$LIBS
16326 LIBS="-lsocket -lnsl $LIBS"
16327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16328 /* end confdefs.h. */
16330 /* Override any GCC internal prototype to avoid an error.
16331 Use char because int might match the return type of a GCC
16332 builtin and then its argument prototype would still apply. */
16345 if ac_fn_c_try_link "$LINENO"; then :
16346 ac_cv_lib_socket_socket_lnsl=yes
16348 ac_cv_lib_socket_socket_lnsl=no
16350 rm -f core conftest.err conftest.$ac_objext \
16351 conftest$ac_exeext conftest.$ac_ext
16352 LIBS=$ac_check_lib_save_LIBS
16354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket_lnsl" >&5
16355 $as_echo "$ac_cv_lib_socket_socket_lnsl" >&6; }
16356 if test "x$ac_cv_lib_socket_socket_lnsl" = x""yes; then :
16357 NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
16366 ac_fn_c_check_func "$LINENO" "inet_addr" "ac_cv_func_inet_addr"
16367 if test "x$ac_cv_func_inet_addr" = x""yes; then :
16370 ac_fn_c_check_func "$LINENO" "__inet_addr" "ac_cv_func___inet_addr"
16371 if test "x$ac_cv_func___inet_addr" = x""yes; then :
16374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lnsl" >&5
16375 $as_echo_n "checking for inet_addr in -lnsl... " >&6; }
16376 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then :
16377 $as_echo_n "(cached) " >&6
16379 ac_check_lib_save_LIBS=$LIBS
16381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16382 /* end confdefs.h. */
16384 /* Override any GCC internal prototype to avoid an error.
16385 Use char because int might match the return type of a GCC
16386 builtin and then its argument prototype would still apply. */
16394 return inet_addr ();
16399 if ac_fn_c_try_link "$LINENO"; then :
16400 ac_cv_lib_nsl_inet_addr=yes
16402 ac_cv_lib_nsl_inet_addr=no
16404 rm -f core conftest.err conftest.$ac_objext \
16405 conftest$ac_exeext conftest.$ac_ext
16406 LIBS=$ac_check_lib_save_LIBS
16408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_addr" >&5
16409 $as_echo "$ac_cv_lib_nsl_inet_addr" >&6; }
16410 if test "x$ac_cv_lib_nsl_inet_addr" = x""yes; then :
16411 NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
16413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -linet" >&5
16414 $as_echo_n "checking for inet_addr in -linet... " >&6; }
16415 if test "${ac_cv_lib_inet_inet_addr+set}" = set; then :
16416 $as_echo_n "(cached) " >&6
16418 ac_check_lib_save_LIBS=$LIBS
16419 LIBS="-linet $LIBS"
16420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16421 /* end confdefs.h. */
16423 /* Override any GCC internal prototype to avoid an error.
16424 Use char because int might match the return type of a GCC
16425 builtin and then its argument prototype would still apply. */
16433 return inet_addr ();
16438 if ac_fn_c_try_link "$LINENO"; then :
16439 ac_cv_lib_inet_inet_addr=yes
16441 ac_cv_lib_inet_inet_addr=no
16443 rm -f core conftest.err conftest.$ac_objext \
16444 conftest$ac_exeext conftest.$ac_ext
16445 LIBS=$ac_check_lib_save_LIBS
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_inet_addr" >&5
16448 $as_echo "$ac_cv_lib_inet_inet_addr" >&6; }
16449 if test "x$ac_cv_lib_inet_inet_addr" = x""yes; then :
16450 NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
16452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&5
16453 $as_echo "$as_me: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&2;}
16454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lsocket" >&5
16455 $as_echo_n "checking for inet_addr in -lsocket... " >&6; }
16456 if test "${ac_cv_lib_socket_inet_addr_lnsl+set}" = set; then :
16457 $as_echo_n "(cached) " >&6
16459 ac_check_lib_save_LIBS=$LIBS
16460 LIBS="-lsocket -lnsl $LIBS"
16461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16462 /* end confdefs.h. */
16464 /* Override any GCC internal prototype to avoid an error.
16465 Use char because int might match the return type of a GCC
16466 builtin and then its argument prototype would still apply. */
16474 return inet_addr ();
16479 if ac_fn_c_try_link "$LINENO"; then :
16480 ac_cv_lib_socket_inet_addr_lnsl=yes
16482 ac_cv_lib_socket_inet_addr_lnsl=no
16484 rm -f core conftest.err conftest.$ac_objext \
16485 conftest$ac_exeext conftest.$ac_ext
16486 LIBS=$ac_check_lib_save_LIBS
16488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_inet_addr_lnsl" >&5
16489 $as_echo "$ac_cv_lib_socket_inet_addr_lnsl" >&6; }
16490 if test "x$ac_cv_lib_socket_inet_addr_lnsl" = x""yes; then :
16491 NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
16502 ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
16503 if test "x$ac_cv_func_syslog" = x""yes; then :
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog in -lsocket" >&5
16507 $as_echo_n "checking for syslog in -lsocket... " >&6; }
16508 if test "${ac_cv_lib_socket_syslog+set}" = set; then :
16509 $as_echo_n "(cached) " >&6
16511 ac_check_lib_save_LIBS=$LIBS
16512 LIBS="-lsocket $LIBS"
16513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16514 /* end confdefs.h. */
16516 /* Override any GCC internal prototype to avoid an error.
16517 Use char because int might match the return type of a GCC
16518 builtin and then its argument prototype would still apply. */
16531 if ac_fn_c_try_link "$LINENO"; then :
16532 ac_cv_lib_socket_syslog=yes
16534 ac_cv_lib_socket_syslog=no
16536 rm -f core conftest.err conftest.$ac_objext \
16537 conftest$ac_exeext conftest.$ac_ext
16538 LIBS=$ac_check_lib_save_LIBS
16540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_syslog" >&5
16541 $as_echo "$ac_cv_lib_socket_syslog" >&6; }
16542 if test "x$ac_cv_lib_socket_syslog" = x""yes; then :
16543 NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog in -lnsl" >&5
16546 $as_echo_n "checking for syslog in -lnsl... " >&6; }
16547 if test "${ac_cv_lib_nsl_syslog+set}" = set; then :
16548 $as_echo_n "(cached) " >&6
16550 ac_check_lib_save_LIBS=$LIBS
16552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16553 /* end confdefs.h. */
16555 /* Override any GCC internal prototype to avoid an error.
16556 Use char because int might match the return type of a GCC
16557 builtin and then its argument prototype would still apply. */
16570 if ac_fn_c_try_link "$LINENO"; then :
16571 ac_cv_lib_nsl_syslog=yes
16573 ac_cv_lib_nsl_syslog=no
16575 rm -f core conftest.err conftest.$ac_objext \
16576 conftest$ac_exeext conftest.$ac_ext
16577 LIBS=$ac_check_lib_save_LIBS
16579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_syslog" >&5
16580 $as_echo "$ac_cv_lib_nsl_syslog" >&6; }
16581 if test "x$ac_cv_lib_nsl_syslog" = x""yes; then :
16582 NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
16584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog in -linet" >&5
16585 $as_echo_n "checking for syslog in -linet... " >&6; }
16586 if test "${ac_cv_lib_inet_syslog+set}" = set; then :
16587 $as_echo_n "(cached) " >&6
16589 ac_check_lib_save_LIBS=$LIBS
16590 LIBS="-linet $LIBS"
16591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16592 /* end confdefs.h. */
16594 /* Override any GCC internal prototype to avoid an error.
16595 Use char because int might match the return type of a GCC
16596 builtin and then its argument prototype would still apply. */
16609 if ac_fn_c_try_link "$LINENO"; then :
16610 ac_cv_lib_inet_syslog=yes
16612 ac_cv_lib_inet_syslog=no
16614 rm -f core conftest.err conftest.$ac_objext \
16615 conftest$ac_exeext conftest.$ac_ext
16616 LIBS=$ac_check_lib_save_LIBS
16618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_syslog" >&5
16619 $as_echo "$ac_cv_lib_inet_syslog" >&6; }
16620 if test "x$ac_cv_lib_inet_syslog" = x""yes; then :
16621 NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
16630 for ac_func in getprogname
16632 ac_fn_c_check_func "$LINENO" "getprogname" "ac_cv_func_getprogname"
16633 if test "x$ac_cv_func_getprogname" = x""yes; then :
16634 cat >>confdefs.h <<_ACEOF
16635 #define HAVE_GETPROGNAME 1
16640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __progname" >&5
16641 $as_echo_n "checking for __progname... " >&6; }
16642 if test "${sudo_cv___progname+set}" = set; then :
16643 $as_echo_n "(cached) " >&6
16646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16647 /* end confdefs.h. */
16652 extern char *__progname; (void)puts(__progname);
16657 if ac_fn_c_try_link "$LINENO"; then :
16658 sudo_cv___progname=yes
16660 sudo_cv___progname=no
16662 rm -f core conftest.err conftest.$ac_objext \
16663 conftest$ac_exeext conftest.$ac_ext
16666 if test "$sudo_cv___progname" = "yes"; then
16667 $as_echo "#define HAVE___PROGNAME 1" >>confdefs.h
16670 case " $LIBOBJS " in
16671 *" getprogname.$ac_objext "* ) ;;
16672 *) LIBOBJS="$LIBOBJS getprogname.$ac_objext"
16677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv___progname" >&5
16678 $as_echo "$sudo_cv___progname" >&6; }
16684 case ${enable_zlib-"yes"} in
16686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzdopen in -lz" >&5
16687 $as_echo_n "checking for gzdopen in -lz... " >&6; }
16688 if test "${ac_cv_lib_z_gzdopen+set}" = set; then :
16689 $as_echo_n "(cached) " >&6
16691 ac_check_lib_save_LIBS=$LIBS
16693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16694 /* end confdefs.h. */
16696 /* Override any GCC internal prototype to avoid an error.
16697 Use char because int might match the return type of a GCC
16698 builtin and then its argument prototype would still apply. */
16711 if ac_fn_c_try_link "$LINENO"; then :
16712 ac_cv_lib_z_gzdopen=yes
16714 ac_cv_lib_z_gzdopen=no
16716 rm -f core conftest.err conftest.$ac_objext \
16717 conftest$ac_exeext conftest.$ac_ext
16718 LIBS=$ac_check_lib_save_LIBS
16720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzdopen" >&5
16721 $as_echo "$ac_cv_lib_z_gzdopen" >&6; }
16722 if test "x$ac_cv_lib_z_gzdopen" = x""yes; then :
16724 for ac_header in zlib.h
16726 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
16727 if test "x$ac_cv_header_zlib_h" = x""yes; then :
16728 cat >>confdefs.h <<_ACEOF
16729 #define HAVE_ZLIB_H 1
16733 enable_zlib=builtin
16745 $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
16753 $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
16755 CPPFLAGS="${CPPFLAGS} -I${enable_zlib}/include"
16757 if test X"$with_rpath" = X"yes"; then
16759 *-*-hpux*) ZLIB="${ZLIB} -L$enable_zlib/lib -Wl,+b,$enable_zlib/lib"
16761 *) ZLIB="${ZLIB} -L$enable_zlib/lib -Wl,-R$enable_zlib/lib"
16765 ZLIB="${ZLIB} -L$enable_zlib/lib"
16767 if test X"$blibpath" != X"" -a "ZLIB" = "SUDO_LDFLAGS"; then
16768 blibpath_add="${blibpath_add}:$enable_zlib/lib"
16774 if test X"$enable_zlib" = X"builtin"; then
16775 $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
16777 CPPFLAGS="${CPPFLAGS}"' -I$(top_srcdir)/zlib'
16778 ZLIB="${ZLIB}"' $(top_builddir)/zlib/libz.la'
16780 ac_config_headers="$ac_config_headers zlib/zconf.h"
16782 ac_config_files="$ac_config_files zlib/Makefile"
16786 for ac_func in strsignal
16788 ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
16789 if test "x$ac_cv_func_strsignal" = x""yes; then :
16790 cat >>confdefs.h <<_ACEOF
16791 #define HAVE_STRSIGNAL 1
16796 case " $LIBOBJS " in
16797 *" strsignal.$ac_objext "* ) ;;
16798 *) LIBOBJS="$LIBOBJS strsignal.$ac_objext"
16802 HAVE_SIGLIST="false"
16803 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "
16804 $ac_includes_default
16805 #include <signal.h>
16808 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
16814 cat >>confdefs.h <<_ACEOF
16815 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
16817 if test $ac_have_decl = 1; then :
16819 HAVE_SIGLIST="true"
16823 ac_fn_c_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "
16824 $ac_includes_default
16825 #include <signal.h>
16828 if test "x$ac_cv_have_decl__sys_siglist" = x""yes; then :
16834 cat >>confdefs.h <<_ACEOF
16835 #define HAVE_DECL__SYS_SIGLIST $ac_have_decl
16837 if test $ac_have_decl = 1; then :
16839 HAVE_SIGLIST="true"
16843 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "
16844 $ac_includes_default
16845 #include <signal.h>
16848 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
16854 cat >>confdefs.h <<_ACEOF
16855 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
16857 if test $ac_have_decl = 1; then :
16859 HAVE_SIGLIST="true"
16864 if test "$HAVE_SIGLIST" != "true"; then
16865 case " $LIBOBJS " in
16866 *" siglist.$ac_objext "* ) ;;
16867 *) LIBOBJS="$LIBOBJS siglist.$ac_objext"
16877 if test ${with_netsvc-"no"} != "no"; then
16878 cat >>confdefs.h <<EOF
16879 #define _PATH_NETSVC_CONF "${with_netsvc-/etc/netsvc.conf}"
16882 netsvc_conf=${with_netsvc-/etc/netsvc.conf}
16883 elif test ${with_nsswitch-"yes"} != "no"; then
16884 cat >>confdefs.h <<EOF
16885 #define _PATH_NSSWITCH_CONF "${with_nsswitch-/etc/nsswitch.conf}"
16888 nsswitch_conf=${with_nsswitch-/etc/nsswitch.conf}
16892 if test -z "${AUTH_EXCL}${AUTH_REG}" -a -n "$AUTH_EXCL_DEF"; then
16893 for auth in $AUTH_EXCL_DEF; do
16895 AIX_AUTH) with_aixauth=maybe;;
16896 BSD_AUTH) with_bsdauth=maybe;;
16897 PAM) with_pam=maybe;;
16898 SIA) CHECKSIA=true;;
16903 if test ${with_pam-"no"} != "no"; then
16904 # Note: we already link the main sudo program with -ldl as needed
16905 SUDOERS_LIBS="${SUDOERS_LIBS} -lpam"
16907 for ac_header in security/pam_appl.h pam/pam_appl.h
16909 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16910 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16911 eval as_val=\$$as_ac_Header
16912 if test "x$as_val" = x""yes; then :
16913 cat >>confdefs.h <<_ACEOF
16914 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16916 with_pam=yes; break
16921 if test "$with_pam" = "yes"; then
16922 $as_echo "#define HAVE_PAM 1" >>confdefs.h
16924 AUTH_OBJS="$AUTH_OBJS pam.lo";
16928 # Check whether --with-pam-login was given.
16929 if test "${with_pam_login+set}" = set; then :
16930 withval=$with_pam_login; case $with_pam_login in
16931 yes) $as_echo "#define HAVE_PAM_LOGIN 1" >>confdefs.h
16933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use PAM login" >&5
16934 $as_echo_n "checking whether to use PAM login... " >&6; }
16935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16936 $as_echo "yes" >&6; }
16939 *) as_fn_error "\"--with-pam-login does not take an argument.\"" "$LINENO" 5
16945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use PAM session support" >&5
16946 $as_echo_n "checking whether to use PAM session support... " >&6; }
16947 # Check whether --enable-pam_session was given.
16948 if test "${enable_pam_session+set}" = set; then :
16949 enableval=$enable_pam_session; case "$enableval" in
16950 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16951 $as_echo "yes" >&6; }
16953 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16954 $as_echo "no" >&6; }
16955 $as_echo "#define NO_PAM_SESSION 1" >>confdefs.h
16958 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16959 $as_echo "no" >&6; }
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&5
16961 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&2;}
16965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16966 $as_echo "yes" >&6; }
16971 *-*-linux*|*-*-solaris*)
16972 # dgettext() may be defined to dgettext_libintl in the
16973 # header file, so first check that it links w/ additional
16974 # libs, then try with -lintl
16975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16976 /* end confdefs.h. */
16977 #include <libintl.h>
16981 (void)dgettext((char *)0, (char *)0);
16986 if ac_fn_c_try_link "$LINENO"; then :
16987 $as_echo "#define HAVE_DGETTEXT 1" >>confdefs.h
16990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
16991 $as_echo_n "checking for dgettext in -lintl... " >&6; }
16992 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
16993 $as_echo_n "(cached) " >&6
16995 ac_check_lib_save_LIBS=$LIBS
16996 LIBS="-lintl $LIBS"
16997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16998 /* end confdefs.h. */
17000 /* Override any GCC internal prototype to avoid an error.
17001 Use char because int might match the return type of a GCC
17002 builtin and then its argument prototype would still apply. */
17010 return dgettext ();
17015 if ac_fn_c_try_link "$LINENO"; then :
17016 ac_cv_lib_intl_dgettext=yes
17018 ac_cv_lib_intl_dgettext=no
17020 rm -f core conftest.err conftest.$ac_objext \
17021 conftest$ac_exeext conftest.$ac_ext
17022 LIBS=$ac_check_lib_save_LIBS
17024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
17025 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
17026 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
17027 LIBS="${LIBS} -lintl"
17028 $as_echo "#define HAVE_DGETTEXT 1" >>confdefs.h
17033 rm -f core conftest.err conftest.$ac_objext \
17034 conftest$ac_exeext conftest.$ac_ext
17040 if test ${with_aixauth-'no'} != "no"; then
17041 if test X"$with_aixauth" != X"maybe" -o X"$AUTH_EXCL" = X""; then
17042 { $as_echo "$as_me:${as_lineno-$LINENO}: using AIX general authentication" >&5
17043 $as_echo "$as_me: using AIX general authentication" >&6;}
17044 $as_echo "#define HAVE_AIXAUTH 1" >>confdefs.h
17046 AUTH_OBJS="$AUTH_OBJS aix_auth.lo";
17047 SUDOERS_LIBS="${SUDOERS_LIBS} -ls"
17052 if test ${with_bsdauth-'no'} != "no"; then
17053 ac_fn_c_check_header_mongrel "$LINENO" "bsd_auth.h" "ac_cv_header_bsd_auth_h" "$ac_includes_default"
17054 if test "x$ac_cv_header_bsd_auth_h" = x""yes; then :
17055 $as_echo "#define HAVE_BSD_AUTH_H 1" >>confdefs.h
17057 AUTH_OBJS="$AUTH_OBJS bsdauth.lo"
17058 BSDAUTH_USAGE='[-a auth_type] '
17059 AUTH_EXCL=BSD_AUTH; BAMAN=1
17061 as_fn_error "BSD authentication was specified but bsd_auth.h could not be found" "$LINENO" 5
17067 if test ${CHECKSIA-'false'} = "true"; then
17068 for ac_func in sia_ses_init
17070 ac_fn_c_check_func "$LINENO" "sia_ses_init" "ac_cv_func_sia_ses_init"
17071 if test "x$ac_cv_func_sia_ses_init" = x""yes; then :
17072 cat >>confdefs.h <<_ACEOF
17073 #define HAVE_SIA_SES_INIT 1
17081 if test "$found" = "true"; then
17083 AUTH_OBJS="$AUTH_OBJS sia.lo"
17087 if test ${with_fwtk-'no'} != "no"; then
17088 if test "$with_fwtk" != "yes"; then
17090 if test X"$with_rpath" = X"yes"; then
17092 *-*-hpux*) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_fwtk} -Wl,+b,${with_fwtk}"
17094 *) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_fwtk} -Wl,-R${with_fwtk}"
17098 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_fwtk}"
17100 if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
17101 blibpath_add="${blibpath_add}:${with_fwtk}"
17104 CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
17107 SUDOERS_LIBS="${SUDOERS_LIBS} -lauth -lfwall"
17108 AUTH_OBJS="$AUTH_OBJS fwtk.lo"
17111 if test ${with_SecurID-'no'} != "no"; then
17112 if test "$with_SecurID" != "yes"; then
17114 elif test -d /usr/ace/examples; then
17115 with_SecurID=/usr/ace/examples
17117 with_SecurID=/usr/ace
17119 CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
17120 _LDFLAGS="${LDFLAGS}"
17122 if test X"$with_rpath" = X"yes"; then
17124 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${with_SecurID} -Wl,+b,${with_SecurID}"
17126 *) LDFLAGS="${LDFLAGS} -L${with_SecurID} -Wl,-R${with_SecurID}"
17130 LDFLAGS="${LDFLAGS} -L${with_SecurID}"
17132 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
17133 blibpath_add="${blibpath_add}:${with_SecurID}"
17137 # Determine whether to use the new or old SecurID API
17139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SD_Init in -laceclnt" >&5
17140 $as_echo_n "checking for SD_Init in -laceclnt... " >&6; }
17141 if test "${ac_cv_lib_aceclnt_SD_Init_______lpthread_______+set}" = set; then :
17142 $as_echo_n "(cached) " >&6
17144 ac_check_lib_save_LIBS=$LIBS
17149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17150 /* end confdefs.h. */
17152 /* Override any GCC internal prototype to avoid an error.
17153 Use char because int might match the return type of a GCC
17154 builtin and then its argument prototype would still apply. */
17167 if ac_fn_c_try_link "$LINENO"; then :
17168 ac_cv_lib_aceclnt_SD_Init_______lpthread_______=yes
17170 ac_cv_lib_aceclnt_SD_Init_______lpthread_______=no
17172 rm -f core conftest.err conftest.$ac_objext \
17173 conftest$ac_exeext conftest.$ac_ext
17174 LIBS=$ac_check_lib_save_LIBS
17176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&5
17177 $as_echo "$ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&6; }
17178 if test "x$ac_cv_lib_aceclnt_SD_Init_______lpthread_______" = x""yes; then :
17180 AUTH_OBJS="$AUTH_OBJS securid5.lo";
17181 SUDOERS_LIBS="${SUDOERS_LIBS} -laceclnt -lpthread"
17185 if test X"$with_rpath" = X"yes"; then
17187 *-*-hpux*) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_SecurID} -Wl,+b,${with_SecurID}"
17189 *) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_SecurID} -Wl,-R${with_SecurID}"
17193 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_SecurID}"
17195 if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
17196 blibpath_add="${blibpath_add}:${with_SecurID}"
17202 AUTH_OBJS="$AUTH_OBJS securid.lo";
17203 SUDOERS_LIBS="${SUDOERS_LIBS} ${with_SecurID}/sdiclient.a"
17207 LDFLAGS="${_LDFLAGS}"
17211 if test -z "${AUTH_EXCL}" -a -n "$AUTH_DEF"; then
17212 for auth in $AUTH_DEF; do
17214 passwd) : ${with_passwd='maybe'};;
17219 if test ${with_kerb4-'no'} != "no"; then
17220 $as_echo "#define HAVE_KERB4 1" >>confdefs.h
17222 O_LDFLAGS="$LDFLAGS"
17223 if test "$with_kerb4" = "yes"; then
17225 O_CPPFLAGS="$CPPFLAGS"
17226 for dir in "" "kerberosIV/" "krb4/" "kerberos4/" "kerberosv4/"; do
17227 CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
17228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17229 /* end confdefs.h. */
17232 if ac_fn_c_try_cpp "$LINENO"; then :
17235 rm -f conftest.err conftest.$ac_ext
17237 test X"$found" = X"no" && CPPFLAGS="$O_CPPFLAGS"
17240 if test X"$with_rpath" = X"yes"; then
17242 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib -Wl,+b,${with_kerb4}/lib"
17244 *) LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib -Wl,-R${with_kerb4}/lib"
17248 LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib"
17250 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
17251 blibpath_add="${blibpath_add}:${with_kerb4}/lib"
17255 if test X"$with_rpath" = X"yes"; then
17257 *-*-hpux*) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_kerb4}/lib -Wl,+b,${with_kerb4}/lib"
17259 *) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_kerb4}/lib -Wl,-R${with_kerb4}/lib"
17263 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_kerb4}/lib"
17265 if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
17266 blibpath_add="${blibpath_add}:${with_kerb4}/lib"
17269 CPPFLAGS="$CPPFLAGS -I${with_kerb4}/include"
17270 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
17271 if test "x$ac_cv_header_krb_h" = x""yes; then :
17279 if test X"$found" = X"no"; then
17280 { $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
17281 $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;}
17284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
17285 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
17286 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
17287 $as_echo_n "(cached) " >&6
17289 ac_check_lib_save_LIBS=$LIBS
17291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17292 /* end confdefs.h. */
17294 /* Override any GCC internal prototype to avoid an error.
17295 Use char because int might match the return type of a GCC
17296 builtin and then its argument prototype would still apply. */
17300 char des_cbc_encrypt ();
17304 return des_cbc_encrypt ();
17309 if ac_fn_c_try_link "$LINENO"; then :
17310 ac_cv_lib_des_des_cbc_encrypt=yes
17312 ac_cv_lib_des_des_cbc_encrypt=no
17314 rm -f core conftest.err conftest.$ac_objext \
17315 conftest$ac_exeext conftest.$ac_ext
17316 LIBS=$ac_check_lib_save_LIBS
17318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
17319 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
17320 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
17324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
17325 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
17326 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
17327 $as_echo_n "(cached) " >&6
17329 ac_check_lib_save_LIBS=$LIBS
17330 LIBS="-ldes425 $LIBS"
17331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17332 /* end confdefs.h. */
17334 /* Override any GCC internal prototype to avoid an error.
17335 Use char because int might match the return type of a GCC
17336 builtin and then its argument prototype would still apply. */
17340 char des_cbc_encrypt ();
17344 return des_cbc_encrypt ();
17349 if ac_fn_c_try_link "$LINENO"; then :
17350 ac_cv_lib_des425_des_cbc_encrypt=yes
17352 ac_cv_lib_des425_des_cbc_encrypt=no
17354 rm -f core conftest.err conftest.$ac_objext \
17355 conftest$ac_exeext conftest.$ac_ext
17356 LIBS=$ac_check_lib_save_LIBS
17358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
17359 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
17360 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using KTH Kerberos IV" >&5
17370 $as_echo_n "checking whether we are using KTH Kerberos IV... " >&6; }
17371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17372 /* end confdefs.h. */
17377 const char *tmp = krb4_version;
17382 if ac_fn_c_try_compile "$LINENO"; then :
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17385 $as_echo "yes" >&6; }
17386 K4LIBS="${K4LIBS} -lcom_err"
17387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lroken" >&5
17388 $as_echo_n "checking for main in -lroken... " >&6; }
17389 if test "${ac_cv_lib_roken_main+set}" = set; then :
17390 $as_echo_n "(cached) " >&6
17392 ac_check_lib_save_LIBS=$LIBS
17393 LIBS="-lroken $LIBS"
17394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17395 /* end confdefs.h. */
17406 if ac_fn_c_try_link "$LINENO"; then :
17407 ac_cv_lib_roken_main=yes
17409 ac_cv_lib_roken_main=no
17411 rm -f core conftest.err conftest.$ac_objext \
17412 conftest$ac_exeext conftest.$ac_ext
17413 LIBS=$ac_check_lib_save_LIBS
17415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_main" >&5
17416 $as_echo "$ac_cv_lib_roken_main" >&6; }
17417 if test "x$ac_cv_lib_roken_main" = x""yes; then :
17418 K4LIBS="${K4LIBS} -lroken"
17424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17425 $as_echo "no" >&6; }
17429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17430 as_ac_Lib=`$as_echo "ac_cv_lib_krb_main$K4LIBS" | $as_tr_sh`
17431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb" >&5
17432 $as_echo_n "checking for main in -lkrb... " >&6; }
17433 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
17434 $as_echo_n "(cached) " >&6
17436 ac_check_lib_save_LIBS=$LIBS
17437 LIBS="-lkrb $K4LIBS $LIBS"
17438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17439 /* end confdefs.h. */
17450 if ac_fn_c_try_link "$LINENO"; then :
17451 eval "$as_ac_Lib=yes"
17453 eval "$as_ac_Lib=no"
17455 rm -f core conftest.err conftest.$ac_objext \
17456 conftest$ac_exeext conftest.$ac_ext
17457 LIBS=$ac_check_lib_save_LIBS
17459 eval ac_res=\$$as_ac_Lib
17460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17461 $as_echo "$ac_res" >&6; }
17462 eval as_val=\$$as_ac_Lib
17463 if test "x$as_val" = x""yes; then :
17464 K4LIBS="-lkrb $K4LIBS"
17467 as_ac_Lib=`$as_echo "ac_cv_lib_krb4_main$K4LIBS" | $as_tr_sh`
17468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb4" >&5
17469 $as_echo_n "checking for main in -lkrb4... " >&6; }
17470 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
17471 $as_echo_n "(cached) " >&6
17473 ac_check_lib_save_LIBS=$LIBS
17474 LIBS="-lkrb4 $K4LIBS $LIBS"
17475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17476 /* end confdefs.h. */
17487 if ac_fn_c_try_link "$LINENO"; then :
17488 eval "$as_ac_Lib=yes"
17490 eval "$as_ac_Lib=no"
17492 rm -f core conftest.err conftest.$ac_objext \
17493 conftest$ac_exeext conftest.$ac_ext
17494 LIBS=$ac_check_lib_save_LIBS
17496 eval ac_res=\$$as_ac_Lib
17497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17498 $as_echo "$ac_res" >&6; }
17499 eval as_val=\$$as_ac_Lib
17500 if test "x$as_val" = x""yes; then :
17501 K4LIBS="-lkrb4 $K4LIBS"
17503 K4LIBS="-lkrb $K4LIBS"
17504 { $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
17505 $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;}
17512 LDFLAGS="$O_LDFLAGS"
17513 SUDOERS_LIBS="${SUDOERS_LIBS} $K4LIBS"
17514 AUTH_OBJS="$AUTH_OBJS kerb4.lo"
17517 if test ${with_kerb5-'no'} != "no"; then
17518 # Extract the first word of "krb5-config", so it can be a program name with args.
17519 set dummy krb5-config; ac_word=$2
17520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17521 $as_echo_n "checking for $ac_word... " >&6; }
17522 if test "${ac_cv_prog_KRB5CONFIG+set}" = set; then :
17523 $as_echo_n "(cached) " >&6
17525 if test -n "$KRB5CONFIG"; then
17526 ac_cv_prog_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test.
17528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17529 for as_dir in $PATH
17532 test -z "$as_dir" && as_dir=.
17533 for ac_exec_ext in '' $ac_executable_extensions; do
17534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17535 ac_cv_prog_KRB5CONFIG="yes"
17536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17543 test -z "$ac_cv_prog_KRB5CONFIG" && ac_cv_prog_KRB5CONFIG=""""
17546 KRB5CONFIG=$ac_cv_prog_KRB5CONFIG
17547 if test -n "$KRB5CONFIG"; then
17548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5
17549 $as_echo "$KRB5CONFIG" >&6; }
17551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17552 $as_echo "no" >&6; }
17556 if test -n "$KRB5CONFIG"; then
17557 $as_echo "#define HAVE_KERB5 1" >>confdefs.h
17559 AUTH_OBJS="$AUTH_OBJS kerb5.lo"
17560 CPPFLAGS="$CPPFLAGS `krb5-config --cflags`"
17561 SUDOERS_LIBS="$SUDOERS_LIBS `krb5-config --libs`"
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
17563 $as_echo_n "checking whether we are using Heimdal... " >&6; }
17564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17565 /* end confdefs.h. */
17570 const char *tmp = heimdal_version;
17575 if ac_fn_c_try_compile "$LINENO"; then :
17577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17578 $as_echo "yes" >&6; }
17579 $as_echo "#define HAVE_HEIMDAL 1" >>confdefs.h
17584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17585 $as_echo "no" >&6; }
17589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17591 $as_echo "#define HAVE_KERB5 1" >>confdefs.h
17593 if test "$with_kerb5" = "yes"; then
17595 O_CPPFLAGS="$CPPFLAGS"
17596 for dir in "" "kerberosV/" "krb5/" "kerberos5/" "kerberosv5/"; do
17597 CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
17598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17599 /* end confdefs.h. */
17602 if ac_fn_c_try_cpp "$LINENO"; then :
17605 rm -f conftest.err conftest.$ac_ext
17607 if test X"$found" = X"no"; then
17608 CPPFLAGS="$O_CPPFLAGS"
17609 { $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
17610 $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;}
17614 if test X"$with_rpath" = X"yes"; then
17616 *-*-hpux*) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_kerb5}/lib -Wl,+b,${with_kerb5}/lib"
17618 *) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_kerb5}/lib -Wl,-R${with_kerb5}/lib"
17622 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_kerb5}/lib"
17624 if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
17625 blibpath_add="${blibpath_add}:${with_kerb5}/lib"
17628 CPPFLAGS="$CPPFLAGS -I${with_kerb5}/include"
17631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
17632 $as_echo_n "checking whether we are using Heimdal... " >&6; }
17633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17634 /* end confdefs.h. */
17639 const char *tmp = heimdal_version;
17644 if ac_fn_c_try_compile "$LINENO"; then :
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17647 $as_echo "yes" >&6; }
17648 $as_echo "#define HAVE_HEIMDAL 1" >>confdefs.h
17650 # XXX - need to check whether -lcrypo is needed!
17651 SUDOERS_LIBS="${SUDOERS_LIBS} -lkrb5 -lcrypto -ldes -lcom_err -lasn1"
17652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lroken" >&5
17653 $as_echo_n "checking for main in -lroken... " >&6; }
17654 if test "${ac_cv_lib_roken_main+set}" = set; then :
17655 $as_echo_n "(cached) " >&6
17657 ac_check_lib_save_LIBS=$LIBS
17658 LIBS="-lroken $LIBS"
17659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17660 /* end confdefs.h. */
17671 if ac_fn_c_try_link "$LINENO"; then :
17672 ac_cv_lib_roken_main=yes
17674 ac_cv_lib_roken_main=no
17676 rm -f core conftest.err conftest.$ac_objext \
17677 conftest$ac_exeext conftest.$ac_ext
17678 LIBS=$ac_check_lib_save_LIBS
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_main" >&5
17681 $as_echo "$ac_cv_lib_roken_main" >&6; }
17682 if test "x$ac_cv_lib_roken_main" = x""yes; then :
17683 SUDOERS_LIBS="${SUDOERS_LIBS} -lroken"
17689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17690 $as_echo "no" >&6; }
17691 SUDOERS_LIBS="${SUDOERS_LIBS} -lkrb5 -lk5crypto -lcom_err"
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5support" >&5
17693 $as_echo_n "checking for main in -lkrb5support... " >&6; }
17694 if test "${ac_cv_lib_krb5support_main+set}" = set; then :
17695 $as_echo_n "(cached) " >&6
17697 ac_check_lib_save_LIBS=$LIBS
17698 LIBS="-lkrb5support $LIBS"
17699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17700 /* end confdefs.h. */
17711 if ac_fn_c_try_link "$LINENO"; then :
17712 ac_cv_lib_krb5support_main=yes
17714 ac_cv_lib_krb5support_main=no
17716 rm -f core conftest.err conftest.$ac_objext \
17717 conftest$ac_exeext conftest.$ac_ext
17718 LIBS=$ac_check_lib_save_LIBS
17720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_main" >&5
17721 $as_echo "$ac_cv_lib_krb5support_main" >&6; }
17722 if test "x$ac_cv_lib_krb5support_main" = x""yes; then :
17723 SUDOERS_LIBS="${SUDOERS_LIBS} -lkrb5support"
17728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17729 AUTH_OBJS="$AUTH_OBJS kerb5.lo"
17732 LIBS="${LIBS} ${SUDOERS_LIBS}"
17733 for ac_func in krb5_verify_user krb5_init_secure_context
17735 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17736 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17737 eval as_val=\$$as_ac_var
17738 if test "x$as_val" = x""yes; then :
17739 cat >>confdefs.h <<_ACEOF
17740 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17746 for ac_func in krb5_get_init_creds_opt_alloc
17748 ac_fn_c_check_func "$LINENO" "krb5_get_init_creds_opt_alloc" "ac_cv_func_krb5_get_init_creds_opt_alloc"
17749 if test "x$ac_cv_func_krb5_get_init_creds_opt_alloc" = x""yes; then :
17750 cat >>confdefs.h <<_ACEOF
17751 #define HAVE_KRB5_GET_INIT_CREDS_OPT_ALLOC 1
17754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether krb5_get_init_creds_opt_free takes a context" >&5
17755 $as_echo_n "checking whether krb5_get_init_creds_opt_free takes a context... " >&6; }
17756 if test "${sudo_cv_krb5_get_init_creds_opt_free_two_args+set}" = set; then :
17757 $as_echo_n "(cached) " >&6
17760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17761 /* end confdefs.h. */
17766 krb5_get_init_creds_opt_free(NULL, NULL);
17772 if ac_fn_c_try_compile "$LINENO"; then :
17773 sudo_cv_krb5_get_init_creds_opt_free_two_args=yes
17775 sudo_cv_krb5_get_init_creds_opt_free_two_args=no
17778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_krb5_get_init_creds_opt_free_two_args" >&5
17783 $as_echo "$sudo_cv_krb5_get_init_creds_opt_free_two_args" >&6; }
17788 if test X"$sudo_cv_krb5_get_init_creds_opt_free_two_args" = X"yes"; then
17789 $as_echo "#define HAVE_KRB5_GET_INIT_CREDS_OPT_FREE_TWO_ARGS 1" >>confdefs.h
17795 if test ${with_AFS-'no'} = "yes"; then
17797 # looks like the "standard" place for AFS libs is /usr/afsws/lib
17798 AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
17799 for i in $AFSLIBDIRS; do
17800 if test -d ${i}; then
17802 if test X"$with_rpath" = X"yes"; then
17804 *-*-hpux*) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L$i -Wl,+b,$i"
17806 *) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L$i -Wl,-R$i"
17810 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L$i"
17812 if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
17813 blibpath_add="${blibpath_add}:$i"
17816 FOUND_AFSLIBDIR=true
17819 if test -z "$FOUND_AFSLIBDIR"; then
17820 { $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
17821 $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;}
17824 # Order is important here. Note that we build AFS_LIBS from right to left
17825 # since AFS_LIBS may be initialized with BSD compat libs that must go last
17826 AFS_LIBS="-laudit ${AFS_LIBS}"
17827 for i in $AFSLIBDIRS; do
17828 if test -f ${i}/util.a; then
17829 AFS_LIBS="${i}/util.a ${AFS_LIBS}"
17834 if test -z "$FOUND_UTIL_A"; then
17835 AFS_LIBS="-lutil ${AFS_LIBS}"
17837 AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
17839 # AFS includes may live in /usr/include on some machines...
17840 for i in /usr/afsws/include; do
17841 if test -d ${i}; then
17842 CPPFLAGS="${CPPFLAGS} -I${i}"
17843 FOUND_AFSINCDIR=true
17847 if test -z "$FOUND_AFSLIBDIR"; then
17848 { $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
17849 $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;}
17852 AUTH_OBJS="$AUTH_OBJS afs.lo"
17855 if test ${with_DCE-'no'} = "yes"; then
17856 DCE_OBJS="${DCE_OBJS} dce_pwent.o"
17857 SUDOERS_LIBS="${SUDOERS_LIBS} -ldce"
17858 AUTH_OBJS="$AUTH_OBJS dce.lo"
17861 if test "${with_skey-'no'}" = "yes"; then
17862 O_LDFLAGS="$LDFLAGS"
17863 if test "$with_skey" != "yes"; then
17864 CPPFLAGS="${CPPFLAGS} -I${with_skey}/include"
17866 if test X"$with_rpath" = X"yes"; then
17868 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${with_skey}/lib -Wl,+b,${with_skey}/lib"
17870 *) LDFLAGS="${LDFLAGS} -L${with_skey}/lib -Wl,-R${with_skey}/lib"
17874 LDFLAGS="${LDFLAGS} -L${with_skey}/lib"
17876 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
17877 blibpath_add="${blibpath_add}:${with_skey}/lib"
17881 if test X"$with_rpath" = X"yes"; then
17883 *-*-hpux*) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_skey}/lib -Wl,+b,${with_skey}/lib"
17885 *) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_skey}/lib -Wl,-R${with_skey}/lib"
17889 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_skey}/lib"
17891 if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
17892 blibpath_add="${blibpath_add}:${with_skey}/lib"
17895 ac_fn_c_check_header_compile "$LINENO" "skey.h" "ac_cv_header_skey_h" "#include <stdio.h>
17897 if test "x$ac_cv_header_skey_h" = x""yes; then :
17906 O_CPPFLAGS="$CPPFLAGS"
17907 for dir in "" "/usr/local" "/usr/contrib"; do
17908 test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
17909 ac_fn_c_check_header_compile "$LINENO" "skey.h" "ac_cv_header_skey_h" "#include <stdio.h>
17911 if test "x$ac_cv_header_skey_h" = x""yes; then :
17917 if test "$found" = "no" -o -z "$dir"; then
17918 CPPFLAGS="$O_CPPFLAGS"
17921 if test X"$with_rpath" = X"yes"; then
17923 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
17925 *) LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
17929 LDFLAGS="${LDFLAGS} -L${dir}/lib"
17931 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
17932 blibpath_add="${blibpath_add}:${dir}/lib"
17936 if test X"$with_rpath" = X"yes"; then
17938 *-*-hpux*) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
17940 *) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
17944 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib"
17946 if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
17947 blibpath_add="${blibpath_add}:${dir}/lib"
17951 if test "$found" = "no"; then
17952 { $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
17953 $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;}
17956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lskey" >&5
17957 $as_echo_n "checking for main in -lskey... " >&6; }
17958 if test "${ac_cv_lib_skey_main+set}" = set; then :
17959 $as_echo_n "(cached) " >&6
17961 ac_check_lib_save_LIBS=$LIBS
17962 LIBS="-lskey $LIBS"
17963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17964 /* end confdefs.h. */
17975 if ac_fn_c_try_link "$LINENO"; then :
17976 ac_cv_lib_skey_main=yes
17978 ac_cv_lib_skey_main=no
17980 rm -f core conftest.err conftest.$ac_objext \
17981 conftest$ac_exeext conftest.$ac_ext
17982 LIBS=$ac_check_lib_save_LIBS
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_skey_main" >&5
17985 $as_echo "$ac_cv_lib_skey_main" >&6; }
17986 if test "x$ac_cv_lib_skey_main" = x""yes; then :
17989 { $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
17990 $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;}
17993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for skeyaccess in -lskey" >&5
17994 $as_echo_n "checking for skeyaccess in -lskey... " >&6; }
17995 if test "${ac_cv_lib_skey_skeyaccess+set}" = set; then :
17996 $as_echo_n "(cached) " >&6
17998 ac_check_lib_save_LIBS=$LIBS
17999 LIBS="-lskey $LIBS"
18000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18001 /* end confdefs.h. */
18003 /* Override any GCC internal prototype to avoid an error.
18004 Use char because int might match the return type of a GCC
18005 builtin and then its argument prototype would still apply. */
18009 char skeyaccess ();
18013 return skeyaccess ();
18018 if ac_fn_c_try_link "$LINENO"; then :
18019 ac_cv_lib_skey_skeyaccess=yes
18021 ac_cv_lib_skey_skeyaccess=no
18023 rm -f core conftest.err conftest.$ac_objext \
18024 conftest$ac_exeext conftest.$ac_ext
18025 LIBS=$ac_check_lib_save_LIBS
18027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_skey_skeyaccess" >&5
18028 $as_echo "$ac_cv_lib_skey_skeyaccess" >&6; }
18029 if test "x$ac_cv_lib_skey_skeyaccess" = x""yes; then :
18030 $as_echo "#define HAVE_SKEYACCESS 1" >>confdefs.h
18035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RFC1938-compliant skeychallenge" >&5
18036 $as_echo_n "checking for RFC1938-compliant skeychallenge... " >&6; }
18037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18038 /* end confdefs.h. */
18044 skeychallenge(NULL, NULL, NULL, 0);
18050 if ac_fn_c_try_compile "$LINENO"; then :
18052 $as_echo "#define HAVE_RFC1938_SKEYCHALLENGE 1" >>confdefs.h
18054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18055 $as_echo "yes" >&6; }
18059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18060 $as_echo "no" >&6; }
18064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18066 LDFLAGS="$O_LDFLAGS"
18067 SUDOERS_LIBS="${SUDOERS_LIBS} -lskey"
18068 AUTH_OBJS="$AUTH_OBJS rfc1938.lo"
18071 if test "${with_opie-'no'}" = "yes"; then
18072 O_LDFLAGS="$LDFLAGS"
18073 if test "$with_opie" != "yes"; then
18074 CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
18076 if test X"$with_rpath" = X"yes"; then
18078 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${with_opie}/lib -Wl,+b,${with_opie}/lib"
18080 *) LDFLAGS="${LDFLAGS} -L${with_opie}/lib -Wl,-R${with_opie}/lib"
18084 LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
18086 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
18087 blibpath_add="${blibpath_add}:${with_opie}/lib"
18091 if test X"$with_rpath" = X"yes"; then
18093 *-*-hpux*) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_opie}/lib -Wl,+b,${with_opie}/lib"
18095 *) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_opie}/lib -Wl,-R${with_opie}/lib"
18099 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_opie}/lib"
18101 if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
18102 blibpath_add="${blibpath_add}:${with_opie}/lib"
18105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18106 /* end confdefs.h. */
18109 if ac_fn_c_try_cpp "$LINENO"; then :
18114 rm -f conftest.err conftest.$ac_ext
18117 O_CPPFLAGS="$CPPFLAGS"
18118 for dir in "" "/usr/local" "/usr/contrib"; do
18119 test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
18120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18121 /* end confdefs.h. */
18124 if ac_fn_c_try_cpp "$LINENO"; then :
18127 rm -f conftest.err conftest.$ac_ext
18129 if test "$found" = "no" -o -z "$dir"; then
18130 CPPFLAGS="$O_CPPFLAGS"
18133 if test X"$with_rpath" = X"yes"; then
18135 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
18137 *) LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
18141 LDFLAGS="${LDFLAGS} -L${dir}/lib"
18143 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
18144 blibpath_add="${blibpath_add}:${dir}/lib"
18148 if test X"$with_rpath" = X"yes"; then
18150 *-*-hpux*) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
18152 *) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
18156 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib"
18158 if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
18159 blibpath_add="${blibpath_add}:${dir}/lib"
18163 if test "$found" = "no"; then
18164 { $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
18165 $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;}
18168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lopie" >&5
18169 $as_echo_n "checking for main in -lopie... " >&6; }
18170 if test "${ac_cv_lib_opie_main+set}" = set; then :
18171 $as_echo_n "(cached) " >&6
18173 ac_check_lib_save_LIBS=$LIBS
18174 LIBS="-lopie $LIBS"
18175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18176 /* end confdefs.h. */
18187 if ac_fn_c_try_link "$LINENO"; then :
18188 ac_cv_lib_opie_main=yes
18190 ac_cv_lib_opie_main=no
18192 rm -f core conftest.err conftest.$ac_objext \
18193 conftest$ac_exeext conftest.$ac_ext
18194 LIBS=$ac_check_lib_save_LIBS
18196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opie_main" >&5
18197 $as_echo "$ac_cv_lib_opie_main" >&6; }
18198 if test "x$ac_cv_lib_opie_main" = x""yes; then :
18201 { $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
18202 $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;}
18205 LDFLAGS="$O_LDFLAGS"
18206 SUDOERS_LIBS="${SUDOERS_LIBS} -lopie"
18207 AUTH_OBJS="$AUTH_OBJS rfc1938.lo"
18210 if test ${with_passwd-'no'} != "no"; then
18211 if test -z "$LIB_CRYPT"; then
18213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
18214 $as_echo_n "checking for library containing crypt... " >&6; }
18215 if test "${ac_cv_search_crypt+set}" = set; then :
18216 $as_echo_n "(cached) " >&6
18218 ac_func_search_save_LIBS=$LIBS
18219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18220 /* end confdefs.h. */
18222 /* Override any GCC internal prototype to avoid an error.
18223 Use char because int might match the return type of a GCC
18224 builtin and then its argument prototype would still apply. */
18237 for ac_lib in '' crypt crypt_d ufc; do
18238 if test -z "$ac_lib"; then
18239 ac_res="none required"
18242 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18244 if ac_fn_c_try_link "$LINENO"; then :
18245 ac_cv_search_crypt=$ac_res
18247 rm -f core conftest.err conftest.$ac_objext \
18249 if test "${ac_cv_search_crypt+set}" = set; then :
18253 if test "${ac_cv_search_crypt+set}" = set; then :
18256 ac_cv_search_crypt=no
18258 rm conftest.$ac_ext
18259 LIBS=$ac_func_search_save_LIBS
18261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
18262 $as_echo "$ac_cv_search_crypt" >&6; }
18263 ac_res=$ac_cv_search_crypt
18264 if test "$ac_res" != no; then :
18265 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18266 test -n "$ac_lib" && SUDOERS_LIBS="${SUDOERS_LIBS} $ac_res"
18272 if test "$CHECKSHADOW" = "true" -a -n "$shadow_funcs"; then
18274 LIBS="$LIBS $shadow_libs"
18276 for ac_func in $shadow_funcs
18278 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18279 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18280 eval as_val=\$$as_ac_var
18281 if test "x$as_val" = x""yes; then :
18282 cat >>confdefs.h <<_ACEOF
18283 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18289 if test "$found" = "yes"; then
18290 SUDOERS_LIBS="$SUDOERS_LIBS $shadow_libs"
18291 elif test -n "$shadow_libs_optional"; then
18292 LIBS="$LIBS $shadow_libs_optional"
18293 for ac_func in $shadow_funcs
18295 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18296 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18297 eval as_val=\$$as_ac_var
18298 if test "x$as_val" = x""yes; then :
18299 cat >>confdefs.h <<_ACEOF
18300 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18306 if test "$found" = "yes"; then
18307 SUDOERS_LIBS="$SUDOERS_LIBS $shadow_libs $shadow_libs_optional"
18310 if test "$found" = "yes"; then
18311 case "$shadow_funcs" in
18312 *getprpwnam*) SECUREWARE=1;;
18314 test -n "$shadow_defs" && OSDEFS="${OSDEFS} $shadow_defs"
18320 if test "$CHECKSHADOW" = "true"; then
18321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspnam" >&5
18322 $as_echo_n "checking for library containing getspnam... " >&6; }
18323 if test "${ac_cv_search_getspnam+set}" = set; then :
18324 $as_echo_n "(cached) " >&6
18326 ac_func_search_save_LIBS=$LIBS
18327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18328 /* end confdefs.h. */
18330 /* Override any GCC internal prototype to avoid an error.
18331 Use char because int might match the return type of a GCC
18332 builtin and then its argument prototype would still apply. */
18340 return getspnam ();
18345 for ac_lib in '' gen; do
18346 if test -z "$ac_lib"; then
18347 ac_res="none required"
18350 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18352 if ac_fn_c_try_link "$LINENO"; then :
18353 ac_cv_search_getspnam=$ac_res
18355 rm -f core conftest.err conftest.$ac_objext \
18357 if test "${ac_cv_search_getspnam+set}" = set; then :
18361 if test "${ac_cv_search_getspnam+set}" = set; then :
18364 ac_cv_search_getspnam=no
18366 rm conftest.$ac_ext
18367 LIBS=$ac_func_search_save_LIBS
18369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspnam" >&5
18370 $as_echo "$ac_cv_search_getspnam" >&6; }
18371 ac_res=$ac_cv_search_getspnam
18372 if test "$ac_res" != no; then :
18373 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18374 $as_echo "#define HAVE_GETSPNAM 1" >>confdefs.h
18375 CHECKSHADOW=false; test -n "$ac_lib" && SUDOERS_LIBS="${SUDOERS_LIBS} $ac_res"
18379 if test "$CHECKSHADOW" = "true"; then
18380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getprpwnam" >&5
18381 $as_echo_n "checking for library containing getprpwnam... " >&6; }
18382 if test "${ac_cv_search_getprpwnam+set}" = set; then :
18383 $as_echo_n "(cached) " >&6
18385 ac_func_search_save_LIBS=$LIBS
18386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18387 /* end confdefs.h. */
18389 /* Override any GCC internal prototype to avoid an error.
18390 Use char because int might match the return type of a GCC
18391 builtin and then its argument prototype would still apply. */
18395 char getprpwnam ();
18399 return getprpwnam ();
18404 for ac_lib in '' sec security prot; do
18405 if test -z "$ac_lib"; then
18406 ac_res="none required"
18409 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18411 if ac_fn_c_try_link "$LINENO"; then :
18412 ac_cv_search_getprpwnam=$ac_res
18414 rm -f core conftest.err conftest.$ac_objext \
18416 if test "${ac_cv_search_getprpwnam+set}" = set; then :
18420 if test "${ac_cv_search_getprpwnam+set}" = set; then :
18423 ac_cv_search_getprpwnam=no
18425 rm conftest.$ac_ext
18426 LIBS=$ac_func_search_save_LIBS
18428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getprpwnam" >&5
18429 $as_echo "$ac_cv_search_getprpwnam" >&6; }
18430 ac_res=$ac_cv_search_getprpwnam
18431 if test "$ac_res" != no; then :
18432 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18433 $as_echo "#define HAVE_GETPRPWNAM 1" >>confdefs.h
18434 CHECKSHADOW=false; SECUREWARE=1; test -n "$ac_lib" && SUDOERS_LIBS="${SUDOERS_LIBS} $ac_res"
18438 if test -n "$SECUREWARE"; then
18439 for ac_func in bigcrypt set_auth_parameters initprivs
18441 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18442 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18443 eval as_val=\$$as_ac_var
18444 if test "x$as_val" = x""yes; then :
18445 cat >>confdefs.h <<_ACEOF
18446 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18452 AUTH_OBJS="$AUTH_OBJS secureware.lo"
18456 if test ${with_ldap-'no'} != "no"; then
18457 _LDFLAGS="$LDFLAGS"
18458 if test "$with_ldap" != "yes"; then
18460 if test X"$with_rpath" = X"yes"; then
18462 *-*-hpux*) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_ldap}/lib -Wl,+b,${with_ldap}/lib"
18464 *) SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_ldap}/lib -Wl,-R${with_ldap}/lib"
18468 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_ldap}/lib"
18470 if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
18471 blibpath_add="${blibpath_add}:${with_ldap}/lib"
18475 if test X"$with_rpath" = X"yes"; then
18477 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -Wl,+b,${with_ldap}/lib"
18479 *) LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -Wl,-R${with_ldap}/lib"
18483 LDFLAGS="${LDFLAGS} -L${with_ldap}/lib"
18485 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
18486 blibpath_add="${blibpath_add}:${with_ldap}/lib"
18489 CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
18492 SUDOERS_OBJS="${SUDOERS_OBJS} ldap.lo"
18495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
18496 $as_echo_n "checking for LDAP libraries... " >&6; }
18500 for l in -lldap -llber '-lssl -lcrypto'; do
18502 LDAP_LIBS="${LDAP_LIBS} $l"
18503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18504 /* end confdefs.h. */
18505 #include <sys/types.h>
18511 (void)ldap_init(0, 0)
18516 if ac_fn_c_try_link "$LINENO"; then :
18519 rm -f core conftest.err conftest.$ac_objext \
18520 conftest$ac_exeext conftest.$ac_ext
18522 if test "$found" = "no"; then
18523 LIBS="${_LIBS} -lldap"
18525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using -lldap" >&5
18526 $as_echo "not found, using -lldap" >&6; }
18528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDAP_LIBS" >&5
18529 $as_echo "$LDAP_LIBS" >&6; }
18532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ber_set_option" >&5
18533 $as_echo_n "checking for library containing ber_set_option... " >&6; }
18534 if test "${ac_cv_search_ber_set_option+set}" = set; then :
18535 $as_echo_n "(cached) " >&6
18537 ac_func_search_save_LIBS=$LIBS
18538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18539 /* end confdefs.h. */
18541 /* Override any GCC internal prototype to avoid an error.
18542 Use char because int might match the return type of a GCC
18543 builtin and then its argument prototype would still apply. */
18547 char ber_set_option ();
18551 return ber_set_option ();
18556 for ac_lib in '' lber; do
18557 if test -z "$ac_lib"; then
18558 ac_res="none required"
18561 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18563 if ac_fn_c_try_link "$LINENO"; then :
18564 ac_cv_search_ber_set_option=$ac_res
18566 rm -f core conftest.err conftest.$ac_objext \
18568 if test "${ac_cv_search_ber_set_option+set}" = set; then :
18572 if test "${ac_cv_search_ber_set_option+set}" = set; then :
18575 ac_cv_search_ber_set_option=no
18577 rm conftest.$ac_ext
18578 LIBS=$ac_func_search_save_LIBS
18580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ber_set_option" >&5
18581 $as_echo "$ac_cv_search_ber_set_option" >&6; }
18582 ac_res=$ac_cv_search_ber_set_option
18583 if test "$ac_res" != no; then :
18584 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18590 if test X"$found" = X"yes" -a X"$LIBS" != X"$OLIBS"; then
18591 LDAP_LIBS="$LDAP_LIBS -llber"
18593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lber.h is needed" >&5
18594 $as_echo_n "checking whether lber.h is needed... " >&6; }
18595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18596 /* end confdefs.h. */
18597 #include <sys/types.h>
18602 (void)ldap_init(0, 0)
18607 if ac_fn_c_try_link "$LINENO"; then :
18608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18609 $as_echo "no" >&6; }
18612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18613 $as_echo "yes" >&6; }
18614 $as_echo "#define HAVE_LBER_H 1" >>confdefs.h
18617 rm -f core conftest.err conftest.$ac_objext \
18618 conftest$ac_exeext conftest.$ac_ext
18620 for ac_header in sasl/sasl.h sasl.h
18622 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18623 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18624 eval as_val=\$$as_ac_Header
18625 if test "x$as_val" = x""yes; then :
18626 cat >>confdefs.h <<_ACEOF
18627 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18629 for ac_func in ldap_sasl_interactive_bind_s
18631 ac_fn_c_check_func "$LINENO" "ldap_sasl_interactive_bind_s" "ac_cv_func_ldap_sasl_interactive_bind_s"
18632 if test "x$ac_cv_func_ldap_sasl_interactive_bind_s" = x""yes; then :
18633 cat >>confdefs.h <<_ACEOF
18634 #define HAVE_LDAP_SASL_INTERACTIVE_BIND_S 1
18646 for ac_header in ldap_ssl.h mps/ldap_ssl.h
18648 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18649 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <ldap.h>
18651 eval as_val=\$$as_ac_Header
18652 if test "x$as_val" = x""yes; then :
18653 cat >>confdefs.h <<_ACEOF
18654 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18661 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
18663 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18664 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18665 eval as_val=\$$as_ac_var
18666 if test "x$as_val" = x""yes; then :
18667 cat >>confdefs.h <<_ACEOF
18668 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18674 for ac_func in ldap_search_ext_s ldap_search_st
18676 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18677 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18678 eval as_val=\$$as_ac_var
18679 if test "x$as_val" = x""yes; then :
18680 cat >>confdefs.h <<_ACEOF
18681 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18688 if test X"$check_gss_krb5_ccache_name" = X"yes"; then
18689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_ccache_name in -lgssapi" >&5
18690 $as_echo_n "checking for gss_krb5_ccache_name in -lgssapi... " >&6; }
18691 if test "${ac_cv_lib_gssapi_gss_krb5_ccache_name+set}" = set; then :
18692 $as_echo_n "(cached) " >&6
18694 ac_check_lib_save_LIBS=$LIBS
18695 LIBS="-lgssapi $LIBS"
18696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18697 /* end confdefs.h. */
18699 /* Override any GCC internal prototype to avoid an error.
18700 Use char because int might match the return type of a GCC
18701 builtin and then its argument prototype would still apply. */
18705 char gss_krb5_ccache_name ();
18709 return gss_krb5_ccache_name ();
18714 if ac_fn_c_try_link "$LINENO"; then :
18715 ac_cv_lib_gssapi_gss_krb5_ccache_name=yes
18717 ac_cv_lib_gssapi_gss_krb5_ccache_name=no
18719 rm -f core conftest.err conftest.$ac_objext \
18720 conftest$ac_exeext conftest.$ac_ext
18721 LIBS=$ac_check_lib_save_LIBS
18723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_krb5_ccache_name" >&5
18724 $as_echo "$ac_cv_lib_gssapi_gss_krb5_ccache_name" >&6; }
18725 if test "x$ac_cv_lib_gssapi_gss_krb5_ccache_name" = x""yes; then :
18726 $as_echo "#define HAVE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
18728 LDAP_LIBS="${LDAP_LIBS} -lgssapi"
18730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_ccache_name in -lgssapi_krb5" >&5
18731 $as_echo_n "checking for gss_krb5_ccache_name in -lgssapi_krb5... " >&6; }
18732 if test "${ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name+set}" = set; then :
18733 $as_echo_n "(cached) " >&6
18735 ac_check_lib_save_LIBS=$LIBS
18736 LIBS="-lgssapi_krb5 $LIBS"
18737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18738 /* end confdefs.h. */
18740 /* Override any GCC internal prototype to avoid an error.
18741 Use char because int might match the return type of a GCC
18742 builtin and then its argument prototype would still apply. */
18746 char gss_krb5_ccache_name ();
18750 return gss_krb5_ccache_name ();
18755 if ac_fn_c_try_link "$LINENO"; then :
18756 ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=yes
18758 ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=no
18760 rm -f core conftest.err conftest.$ac_objext \
18761 conftest$ac_exeext conftest.$ac_ext
18762 LIBS=$ac_check_lib_save_LIBS
18764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&5
18765 $as_echo "$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&6; }
18766 if test "x$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" = x""yes; then :
18767 $as_echo "#define HAVE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
18769 LDAP_LIBS="${LDAP_LIBS} -lgssapi_krb5"
18776 # gssapi headers may be separate or part of Kerberos V
18778 O_CPPFLAGS="$CPPFLAGS"
18779 for dir in "" "kerberosV" "krb5" "kerberos5" "kerberosv5"; do
18780 test X"$dir" != X"" && CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
18781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18782 /* end confdefs.h. */
18783 #include <gssapi/gssapi.h>
18785 if ac_fn_c_try_cpp "$LINENO"; then :
18786 found="gssapi/gssapi.h"; break
18788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18789 /* end confdefs.h. */
18790 #include <gssapi.h>
18792 if ac_fn_c_try_cpp "$LINENO"; then :
18793 found="gssapi.h"; break
18795 rm -f conftest.err conftest.$ac_ext
18797 rm -f conftest.err conftest.$ac_ext
18799 if test X"$found" != X"no"; then
18800 for ac_header in $found
18802 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18803 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18804 eval as_val=\$$as_ac_Header
18805 if test "x$as_val" = x""yes; then :
18806 cat >>confdefs.h <<_ACEOF
18807 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18814 if test X"$found" = X"gssapi/gssapi.h"; then
18815 for ac_header in gssapi/gssapi_krb5.h
18817 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_krb5.h" "ac_cv_header_gssapi_gssapi_krb5_h" "$ac_includes_default"
18818 if test "x$ac_cv_header_gssapi_gssapi_krb5_h" = x""yes; then :
18819 cat >>confdefs.h <<_ACEOF
18820 #define HAVE_GSSAPI_GSSAPI_KRB5_H 1
18829 CPPFLAGS="$O_CPPFLAGS"
18830 { $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
18831 $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;}
18835 SUDOERS_LIBS="${SUDOERS_LIBS} ${LDAP_LIBS}"
18837 LDFLAGS="$_LDFLAGS"
18841 # How to do dynamic object loading.
18842 # We support dlopen() and sh_load(), else fall back to static loading.
18844 case "$lt_cv_dlopen" in
18846 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
18848 SUDOERS_OBJS="$SUDOERS_OBJS plugin_error.lo"
18849 LT_STATIC="--tag=disable-static"
18852 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
18854 SUDOERS_OBJS="$SUDOERS_OBJS plugin_error.lo"
18855 LT_STATIC="--tag=disable-static"
18856 case " $LIBOBJS " in
18857 *" dlopen.$ac_objext "* ) ;;
18858 *) LIBOBJS="$LIBOBJS dlopen.$ac_objext"
18864 # Preload sudoers module symbols
18865 SUDO_OBJS="${SUDO_OBJS} preload.o"
18866 SUDO_LIBS="${SUDO_LIBS} \$(top_builddir)/plugins/sudoers/sudoers.la"
18868 case " $LIBOBJS " in
18869 *" dlopen.$ac_objext "* ) ;;
18870 *) LIBOBJS="$LIBOBJS dlopen.$ac_objext"
18878 # Add library needed for dynamic loading, if any.
18880 LIBDL="$lt_cv_dlopen_libs"
18881 if test X"$LIBDL" != X""; then
18882 SUDO_LIBS="${SUDO_LIBS} $LIBDL"
18883 SUDOERS_LIBS="${SUDOERS_LIBS} $LIBDL"
18886 # On HP-UX, you cannot dlopen() a shared object that uses pthreads
18887 # unless the main program is linked against -lpthread. Since we
18888 # have no knowledge what libraries a plugin may depend on, we always
18889 # link against -lpthread on HP-UX if it is available.
18890 # This check should go after all other libraries tests.
18893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
18894 $as_echo_n "checking for main in -lpthread... " >&6; }
18895 if test "${ac_cv_lib_pthread_main+set}" = set; then :
18896 $as_echo_n "(cached) " >&6
18898 ac_check_lib_save_LIBS=$LIBS
18899 LIBS="-lpthread $LIBS"
18900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18901 /* end confdefs.h. */
18912 if ac_fn_c_try_link "$LINENO"; then :
18913 ac_cv_lib_pthread_main=yes
18915 ac_cv_lib_pthread_main=no
18917 rm -f core conftest.err conftest.$ac_objext \
18918 conftest$ac_exeext conftest.$ac_ext
18919 LIBS=$ac_check_lib_save_LIBS
18921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
18922 $as_echo "$ac_cv_lib_pthread_main" >&6; }
18923 if test "x$ac_cv_lib_pthread_main" = x""yes; then :
18924 SUDO_LIBS="${SUDO_LIBS} -lpthread"
18930 if test -n "$blibpath"; then
18931 if test -n "$blibpath_add"; then
18932 SUDOERS_LDFLAGS="$SUDOERS_LDFLAGS -Wl,-blibpath:${blibpath}${blibpath_add}"
18933 elif test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
18934 SUDOERS_LDFLAGS="$SUDOERS_LDFLAGS -Wl,-blibpath:${blibpath}"
18938 if test "$utmp_style" = "LEGACY"; then
18939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utmp file path" >&5
18940 $as_echo_n "checking for utmp file path... " >&6; }
18942 for p in "/var/run/utmp" "/var/adm/utmp" "/etc/utmp"; do
18943 if test -r "$p"; then
18945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
18946 $as_echo "$p" >&6; }
18947 cat >>confdefs.h <<EOF
18948 #define _PATH_UTMP "$p"
18954 if test X"$found" != X"yes"; then
18955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18956 $as_echo "not found" >&6; }
18960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log file location" >&5
18961 $as_echo_n "checking for log file location... " >&6; }
18962 if test -n "$with_logpath"; then
18963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_logpath" >&5
18964 $as_echo "$with_logpath" >&6; }
18965 cat >>confdefs.h <<EOF
18966 #define _PATH_SUDO_LOGFILE "$with_logpath"
18969 elif test -d "/var/log"; then
18970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /var/log/sudo.log" >&5
18971 $as_echo "/var/log/sudo.log" >&6; }
18972 cat >>confdefs.h <<\EOF
18973 #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
18976 elif test -d "/var/adm"; then
18977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /var/adm/sudo.log" >&5
18978 $as_echo "/var/adm/sudo.log" >&6; }
18979 cat >>confdefs.h <<\EOF
18980 #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
18983 elif test -d "/usr/adm"; then
18984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /usr/adm/sudo.log" >&5
18985 $as_echo "/usr/adm/sudo.log" >&6; }
18986 cat >>confdefs.h <<\EOF
18987 #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
18991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
18992 $as_echo "unknown" >&6; }
18995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timestamp file location" >&5
18996 $as_echo_n "checking for timestamp file location... " >&6; }
18997 timedir="$with_timedir"
18998 if test -z "$timedir"; then
18999 for d in /var/db /var/lib /var/adm /usr/adm; do
19000 if test -d "$d"; then
19006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $timedir" >&5
19007 $as_echo "$timedir" >&6; }
19008 cat >>confdefs.h <<EOF
19009 #define _PATH_SUDO_TIMEDIR "$timedir"
19014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for I/O log dir location" >&5
19015 $as_echo_n "checking for I/O log dir location... " >&6; }
19016 if test "${with_iologdir-yes}" != "yes"; then
19017 iolog_dir="$with_iologdir"
19018 elif test -d "/var/log"; then
19019 iolog_dir="/var/log/sudo-io"
19020 elif test -d "/var/adm"; then
19021 iolog_dir="/var/adm/sudo-io"
19023 iolog_dir="/usr/adm/sudo-io"
19025 if test "${with_iologdir}" != "no"; then
19026 cat >>confdefs.h <<EOF
19027 #define _PATH_SUDO_IO_LOGDIR "$iolog_dir"
19031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $iolog_dir" >&5
19032 $as_echo "$iolog_dir" >&6; }
19035 case "$with_passwd" in
19037 AUTH_OBJS="$AUTH_OBJS getspwuid.lo passwd.lo"
19040 $as_echo "#define WITHOUT_PASSWD 1" >>confdefs.h
19042 if test -z "$AUTH_OBJS"; then
19043 as_fn_error "no authentication methods defined." "$LINENO" 5
19047 AUTH_OBJS=${AUTH_OBJS# }
19048 _AUTH=`echo "$AUTH_OBJS" | sed -e 's/\.lo//g' -e 's/getspwuid *//'`
19049 { $as_echo "$as_me:${as_lineno-$LINENO}: using the following authentication methods: $_AUTH" >&5
19050 $as_echo "$as_me: using the following authentication methods: $_AUTH" >&6;}
19052 if test -n "$LIBS"; then
19057 for sl in ${SUDO_LIBS} ${SUDOERS_LIBS} ${NET_LIBS}; do
19058 test $l = $sl && dupe=1
19060 test $dupe = 0 && LIBS="${LIBS} $l"
19064 test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
19066 if test X"$with_noexec" != X"no" -o X"$with_selinux" != X"no"; then
19067 oexec_prefix="$exec_prefix"
19068 if test "$exec_prefix" = '$(prefix)'; then
19069 if test "$prefix" = "NONE"; then
19070 exec_prefix="$ac_default_prefix"
19072 exec_prefix="$prefix"
19075 if test X"$with_noexec" != X"no"; then
19076 PROGS="${PROGS} libsudo_noexec.la"
19077 INSTALL_NOEXEC="install-noexec"
19079 eval noexec_file="$with_noexec"
19080 cat >>confdefs.h <<EOF
19081 #define _PATH_SUDO_NOEXEC "$noexec_file"
19085 if test X"$with_selinux" != X"no"; then
19086 eval sesh_file="$libexecdir/sesh"
19087 cat >>confdefs.h <<EOF
19088 #define _PATH_SUDO_SESH "$sesh_file"
19092 eval PLUGINDIR="$with_plugindir"
19093 cat >>confdefs.h <<EOF
19094 #define _PATH_SUDO_PLUGIN_DIR "$PLUGINDIR/"
19097 cat >>confdefs.h <<EOF
19098 #define SUDOERS_PLUGIN "sudoers${SOEXT}"
19101 exec_prefix="$oexec_prefix"
19104 if test X"$prefix" = X"NONE"; then
19105 test "$mandir" = '${datarootdir}/man' && mandir='$(prefix)/man'
19107 test "$mandir" = '${datarootdir}/man' && mandir='$(datarootdir)/man'
19109 test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
19110 test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
19111 test "$libexecdir" = '${exec_prefix}/libexec' && libexecdir='$(exec_prefix)/libexec'
19112 test "$includedir" = '${prefix}/include' && includedir='$(prefix)/include'
19113 test "$datarootdir" = '${prefix}/share' && datarootdir='$(prefix)/share'
19114 test "$docdir" = '${datarootdir}/doc/${PACKAGE_TARNAME}' && docdir='$(datarootdir)/doc/$(PACKAGE_TARNAME)'
19115 test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
19117 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"
19119 cat >confcache <<\_ACEOF
19120 # This file is a shell script that caches the results of configure
19121 # tests run on this system so they can be shared between configure
19122 # scripts and configure runs, see configure's option --config-cache.
19123 # It is not useful on other systems. If it contains results you don't
19124 # want to keep, you may remove or edit it.
19126 # config.status only pays attention to the cache file if you give it
19127 # the --recheck option to rerun configure.
19129 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19130 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19131 # following values.
19135 # The following way of writing the cache mishandles newlines in values,
19136 # but we know of no workaround that is simple, portable, and efficient.
19137 # So, we kill variables containing newlines.
19138 # Ultrix sh set writes to stderr and can't be redirected directly,
19139 # and sets the high bit in the cache file unless we assign to the vars.
19141 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19142 eval ac_val=\$$ac_var
19146 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19147 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19150 _ | IFS | as_nl) ;; #(
19151 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19152 *) { eval $ac_var=; unset $ac_var;} ;;
19158 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19159 *${as_nl}ac_space=\ *)
19160 # `set' does not quote correctly, so add quotes: double-quote
19161 # substitution turns \\\\ into \\, and sed turns \\ into \.
19164 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19167 # `set' quotes correctly as required by POSIX, so do not add quotes.
19168 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19177 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19179 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19181 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19182 if test -w "$cache_file"; then
19183 test "x$cache_file" != "x/dev/null" &&
19184 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19185 $as_echo "$as_me: updating cache $cache_file" >&6;}
19186 cat confcache >$cache_file
19188 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19189 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19194 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19195 # Let make expand exec_prefix.
19196 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19198 DEFS=-DHAVE_CONFIG_H
19202 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19203 # 1. Remove the extension, and $U if already installed.
19204 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19205 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19206 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19207 # will be set to the directory where LIBOBJS objects are built.
19208 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19209 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19211 LIBOBJS=$ac_libobjs
19213 LTLIBOBJS=$ac_ltlibobjs
19217 : ${CONFIG_STATUS=./config.status}
19219 ac_clean_files_save=$ac_clean_files
19220 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19221 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19222 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19224 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19226 # Generated by $as_me.
19227 # Run this file to recreate the current configuration.
19228 # Compiler output produced by configure, useful for debugging
19229 # configure, is in config.log if it exists.
19232 ac_cs_recheck=false
19235 SHELL=\${CONFIG_SHELL-$SHELL}
19238 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19239 ## -------------------- ##
19240 ## M4sh Initialization. ##
19241 ## -------------------- ##
19243 # Be more Bourne compatible
19244 DUALCASE=1; export DUALCASE # for MKS sh
19245 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19248 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19249 # is contrary to our usage. Disable this feature.
19250 alias -g '${1+"$@"}'='"$@"'
19251 setopt NO_GLOB_SUBST
19253 case `(set -o) 2>/dev/null` in #(
19265 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19266 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19267 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19268 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19269 # Prefer a ksh shell builtin over an external printf program on Solaris,
19270 # but without wasting forks for bash or zsh.
19271 if test -z "$BASH_VERSION$ZSH_VERSION" \
19272 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19273 as_echo='print -r --'
19274 as_echo_n='print -rn --'
19275 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19276 as_echo='printf %s\n'
19277 as_echo_n='printf %s'
19279 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19280 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19281 as_echo_n='/usr/ucb/echo -n'
19283 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19284 as_echo_n_body='eval
19288 expr "X$arg" : "X\\(.*\\)$as_nl";
19289 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19291 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19293 export as_echo_n_body
19294 as_echo_n='sh -c $as_echo_n_body as_echo'
19296 export as_echo_body
19297 as_echo='sh -c $as_echo_body as_echo'
19300 # The user is always right.
19301 if test "${PATH_SEPARATOR+set}" != set; then
19303 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19304 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19311 # We need space, tab and new line, in precisely that order. Quoting is
19312 # there to prevent editors from complaining about space-tab.
19313 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19314 # splitting by setting IFS to empty value.)
19317 # Find who we are. Look in the path if we contain no directory separator.
19319 *[\\/]* ) as_myself=$0 ;;
19320 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19321 for as_dir in $PATH
19324 test -z "$as_dir" && as_dir=.
19325 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19331 # We did not find ourselves, most probably we were run as `sh COMMAND'
19332 # in which case we are not to be found in the path.
19333 if test "x$as_myself" = x; then
19336 if test ! -f "$as_myself"; then
19337 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19341 # Unset variables that we do not need and which cause bugs (e.g. in
19342 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19343 # suppresses any "Segmentation fault" message there. '((' could
19344 # trigger a bug in pdksh 5.2.14.
19345 for as_var in BASH_ENV ENV MAIL MAILPATH
19346 do eval test x\${$as_var+set} = xset \
19347 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19360 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19363 # as_fn_error ERROR [LINENO LOG_FD]
19364 # ---------------------------------
19365 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19366 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19367 # script with status $?, using 1 if that was 0.
19370 as_status=$?; test $as_status -eq 0 && as_status=1
19372 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19373 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
19375 $as_echo "$as_me: error: $1" >&2
19376 as_fn_exit $as_status
19380 # as_fn_set_status STATUS
19381 # -----------------------
19382 # Set $? to STATUS, without forking.
19383 as_fn_set_status ()
19386 } # as_fn_set_status
19388 # as_fn_exit STATUS
19389 # -----------------
19390 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19394 as_fn_set_status $1
19400 # Portably unset VAR.
19403 { eval $1=; unset $1;}
19405 as_unset=as_fn_unset
19406 # as_fn_append VAR VALUE
19407 # ----------------------
19408 # Append the text in VALUE to the end of the definition contained in VAR. Take
19409 # advantage of any shell optimizations that allow amortized linear growth over
19410 # repeated appends, instead of the typical quadratic growth present in naive
19412 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19413 eval 'as_fn_append ()
19424 # as_fn_arith ARG...
19425 # ------------------
19426 # Perform arithmetic evaluation on the ARGs, and store the result in the
19427 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19428 # must be portable across $(()) and expr.
19429 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19430 eval 'as_fn_arith ()
19437 as_val=`expr "$@" || test $? -eq 1`
19442 if expr a : '\(a\)' >/dev/null 2>&1 &&
19443 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19449 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19450 as_basename=basename
19455 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19461 as_me=`$as_basename -- "$0" ||
19462 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19463 X"$0" : 'X\(//\)$' \| \
19464 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19466 sed '/^.*\/\([^/][^/]*\)\/*$/{
19480 # Avoid depending upon Character Ranges.
19481 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19482 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19483 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19484 as_cr_digits='0123456789'
19485 as_cr_alnum=$as_cr_Letters$as_cr_digits
19487 ECHO_C= ECHO_N= ECHO_T=
19488 case `echo -n x` in #(((((
19490 case `echo 'xy\c'` in
19491 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19493 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19500 rm -f conf$$ conf$$.exe conf$$.file
19501 if test -d conf$$.dir; then
19502 rm -f conf$$.dir/conf$$.file
19505 mkdir conf$$.dir 2>/dev/null
19507 if (echo >conf$$.file) 2>/dev/null; then
19508 if ln -s conf$$.file conf$$ 2>/dev/null; then
19510 # ... but there are two gotchas:
19511 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19512 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19513 # In both cases, we have to default to `cp -p'.
19514 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19516 elif ln conf$$.file conf$$ 2>/dev/null; then
19524 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19525 rmdir conf$$.dir 2>/dev/null
19530 # Create "$as_dir" as a directory, including parents if necessary.
19535 -*) as_dir=./$as_dir;;
19537 test -d "$as_dir" || eval $as_mkdir_p || {
19541 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19542 *) as_qdir=$as_dir;;
19544 as_dirs="'$as_qdir' $as_dirs"
19545 as_dir=`$as_dirname -- "$as_dir" ||
19546 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19547 X"$as_dir" : 'X\(//\)[^/]' \| \
19548 X"$as_dir" : 'X\(//\)$' \| \
19549 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19550 $as_echo X"$as_dir" |
19551 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19555 /^X\(\/\/\)[^/].*/{
19568 test -d "$as_dir" && break
19570 test -z "$as_dirs" || eval "mkdir $as_dirs"
19571 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
19575 if mkdir -p . 2>/dev/null; then
19576 as_mkdir_p='mkdir -p "$as_dir"'
19578 test -d ./-p && rmdir ./-p
19582 if test -x / >/dev/null 2>&1; then
19583 as_test_x='test -x'
19585 if ls -dL / >/dev/null 2>&1; then
19592 if test -d "$1"; then
19598 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19599 ???[sx]*):;;*)false;;esac;fi
19603 as_executable_p=$as_test_x
19605 # Sed expression to map a string onto a valid CPP name.
19606 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19608 # Sed expression to map a string onto a valid variable name.
19609 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19613 ## ----------------------------------- ##
19614 ## Main body of $CONFIG_STATUS script. ##
19615 ## ----------------------------------- ##
19617 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19619 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19620 # Save the log message, to keep $0 and so on meaningful, and to
19621 # report actual input values of CONFIG_FILES etc. instead of their
19622 # values after options handling.
19624 This file was extended by sudo $as_me 1.8.1p2, which was
19625 generated by GNU Autoconf 2.65. Invocation command line was
19627 CONFIG_FILES = $CONFIG_FILES
19628 CONFIG_HEADERS = $CONFIG_HEADERS
19629 CONFIG_LINKS = $CONFIG_LINKS
19630 CONFIG_COMMANDS = $CONFIG_COMMANDS
19633 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19638 case $ac_config_files in *"
19639 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19642 case $ac_config_headers in *"
19643 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19647 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19648 # Files that config.status was made for.
19649 config_files="$ac_config_files"
19650 config_headers="$ac_config_headers"
19651 config_commands="$ac_config_commands"
19655 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19657 \`$as_me' instantiates files and other configuration actions
19658 from templates according to the current configuration. Unless the files
19659 and actions are specified as TAGs, all are instantiated by default.
19661 Usage: $0 [OPTION]... [TAG]...
19663 -h, --help print this help, then exit
19664 -V, --version print version number and configuration settings, then exit
19665 --config print configuration, then exit
19666 -q, --quiet, --silent
19667 do not print progress messages
19668 -d, --debug don't remove temporary files
19669 --recheck update $as_me by reconfiguring in the same conditions
19670 --file=FILE[:TEMPLATE]
19671 instantiate the configuration file FILE
19672 --header=FILE[:TEMPLATE]
19673 instantiate the configuration header FILE
19675 Configuration files:
19678 Configuration headers:
19681 Configuration commands:
19684 Report bugs to <http://www.sudo.ws/bugs/>."
19687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19688 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19690 sudo config.status 1.8.1p2
19691 configured by $0, generated by GNU Autoconf 2.65,
19692 with options \\"\$ac_cs_config\\"
19694 Copyright (C) 2009 Free Software Foundation, Inc.
19695 This config.status script is free software; the Free Software Foundation
19696 gives unlimited permission to copy, distribute and modify it."
19701 test -n "\$AWK" || AWK=awk
19704 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19705 # The default lists apply if the user does not specify any file.
19711 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19712 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19723 # Handling of the options.
19724 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19726 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19727 $as_echo "$ac_cs_version"; exit ;;
19728 --config | --confi | --conf | --con | --co | --c )
19729 $as_echo "$ac_cs_config"; exit ;;
19730 --debug | --debu | --deb | --de | --d | -d )
19732 --file | --fil | --fi | --f )
19735 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19737 as_fn_append CONFIG_FILES " '$ac_optarg'"
19738 ac_need_defaults=false;;
19739 --header | --heade | --head | --hea )
19742 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19744 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19745 ac_need_defaults=false;;
19747 # Conflict between --help and --header
19748 as_fn_error "ambiguous option: \`$1'
19749 Try \`$0 --help' for more information.";;
19750 --help | --hel | -h )
19751 $as_echo "$ac_cs_usage"; exit ;;
19752 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19753 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19756 # This is an error.
19757 -*) as_fn_error "unrecognized option: \`$1'
19758 Try \`$0 --help' for more information." ;;
19760 *) as_fn_append ac_config_targets " $1"
19761 ac_need_defaults=false ;;
19767 ac_configure_extra_args=
19769 if $ac_cs_silent; then
19771 ac_configure_extra_args="$ac_configure_extra_args --silent"
19775 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19776 if \$ac_cs_recheck; then
19777 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19779 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19780 CONFIG_SHELL='$SHELL'
19781 export CONFIG_SHELL
19786 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19790 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19791 ## Running $as_me. ##
19797 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19803 # The HP-UX ksh and POSIX shell print the target directory to stdout
19804 # if CDPATH is set.
19805 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19807 sed_quote_subst='$sed_quote_subst'
19808 double_quote_subst='$double_quote_subst'
19809 delay_variable_subst='$delay_variable_subst'
19810 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19811 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19812 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19813 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19814 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19815 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19816 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19817 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19818 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19819 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19820 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19821 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19822 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19823 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19824 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19825 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19826 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19827 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19828 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19829 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19830 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19831 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19832 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19833 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19834 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19835 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19836 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19837 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19838 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19839 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19840 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19841 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19842 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19843 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19844 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19845 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19846 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19847 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19848 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19849 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19850 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19851 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19852 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19853 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19854 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19855 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19856 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19857 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19858 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"`'
19859 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19860 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19861 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19862 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19863 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19864 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19865 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19866 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19867 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19868 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19869 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19870 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19871 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19872 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19873 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19874 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19875 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19876 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19877 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19878 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19879 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19880 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19881 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19882 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19883 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19884 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19885 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19886 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19887 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19888 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19889 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19890 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
19891 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19892 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19893 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19894 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19895 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19896 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19897 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19898 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19899 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
19900 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19901 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19902 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19903 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19904 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19905 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19906 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19907 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19908 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19909 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19910 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19911 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19912 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19913 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19914 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19915 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19916 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19917 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19918 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19919 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19920 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19921 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19922 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19923 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19924 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19925 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19926 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19927 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19928 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19929 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19932 LTCFLAGS='$LTCFLAGS'
19933 compiler='$compiler_DEFAULT'
19935 # A function that is used when there is no print builtin or printf.
19936 func_fallback_echo ()
19938 eval 'cat <<_LTECHO_EOF
19943 # Quote evaled strings.
19957 deplibs_check_method \
19966 lt_cv_sys_global_symbol_pipe \
19967 lt_cv_sys_global_symbol_to_cdecl \
19968 lt_cv_sys_global_symbol_to_c_name_address \
19969 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19970 lt_prog_compiler_no_builtin_flag \
19971 lt_prog_compiler_wl \
19972 lt_prog_compiler_pic \
19973 lt_prog_compiler_static \
19974 lt_cv_prog_compiler_c_o \
19982 export_dynamic_flag_spec \
19983 whole_archive_flag_spec \
19984 compiler_needs_object \
19986 allow_undefined_flag \
19987 no_undefined_flag \
19988 hardcode_libdir_flag_spec \
19989 hardcode_libdir_flag_spec_ld \
19990 hardcode_libdir_separator \
19995 variables_saved_for_relink \
19997 library_names_spec \
19999 install_override_mode \
20003 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20004 *[\\\\\\\`\\"\\\$]*)
20005 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20008 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20013 # Double-quote double-evaled strings.
20014 for var in reload_cmds \
20015 old_postinstall_cmds \
20016 old_postuninstall_cmds \
20018 extract_expsyms_cmds \
20019 old_archive_from_new_cmds \
20020 old_archive_from_expsyms_cmds \
20022 archive_expsym_cmds \
20024 module_expsym_cmds \
20025 export_symbols_cmds \
20028 postuninstall_cmds \
20030 sys_lib_search_path_spec \
20031 sys_lib_dlsearch_path_spec; do
20032 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20033 *[\\\\\\\`\\"\\\$]*)
20034 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20037 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20042 ac_aux_dir='$ac_aux_dir'
20043 xsi_shell='$xsi_shell'
20044 lt_shell_append='$lt_shell_append'
20046 # See if we are running on zsh, and set the options which allow our
20047 # commands through without removal of \ escapes INIT.
20048 if test -n "\${ZSH_VERSION+set}" ; then
20049 setopt NO_GLOB_SUBST
20055 TIMESTAMP='$TIMESTAMP'
20064 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20066 # Handling of arguments.
20067 for ac_config_target in $ac_config_targets
20069 case $ac_config_target in
20070 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20071 "pathnames.h") CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
20072 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20073 "zlib/zconf.h") CONFIG_HEADERS="$CONFIG_HEADERS zlib/zconf.h" ;;
20074 "zlib/Makefile") CONFIG_FILES="$CONFIG_FILES zlib/Makefile" ;;
20075 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20076 "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
20077 "compat/Makefile") CONFIG_FILES="$CONFIG_FILES compat/Makefile" ;;
20078 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20079 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20080 "src/sudo_usage.h") CONFIG_FILES="$CONFIG_FILES src/sudo_usage.h" ;;
20081 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20082 "plugins/sample/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sample/Makefile" ;;
20083 "plugins/sample_group/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sample_group/Makefile" ;;
20084 "plugins/sudoers/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sudoers/Makefile" ;;
20085 "plugins/sudoers/sudoers") CONFIG_FILES="$CONFIG_FILES plugins/sudoers/sudoers" ;;
20087 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20092 # If the user did not use the arguments to specify the items to instantiate,
20093 # then the envvar interface is used. Set only those that are not.
20094 # We use the long form for the default assignment because of an extremely
20095 # bizarre bug on SunOS 4.1.3.
20096 if $ac_need_defaults; then
20097 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20098 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20099 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20102 # Have a temporary directory for convenience. Make it in the build tree
20103 # simply because there is no reason against having it here, and in addition,
20104 # creating and moving files from /tmp can sometimes cause problems.
20105 # Hook for its removal unless debugging.
20106 # Note that there is a small window in which the directory will not be cleaned:
20107 # after its creation but before its name has been assigned to `$tmp'.
20111 trap 'exit_status=$?
20112 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20114 trap 'as_fn_exit 1' 1 2 13 15
20116 # Create a (secure) tmp directory for tmp files.
20119 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20120 test -n "$tmp" && test -d "$tmp"
20123 tmp=./conf$$-$RANDOM
20124 (umask 077 && mkdir "$tmp")
20125 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
20127 # Set up the scripts for CONFIG_FILES section.
20128 # No need to generate them if there are no CONFIG_FILES.
20129 # This happens for instance with `./config.status config.h'.
20130 if test -n "$CONFIG_FILES"; then
20133 ac_cr=`echo X | tr X '\015'`
20134 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20135 # But we know of no other shell where ac_cr would be empty at this
20136 # point, so we can use a bashism as a fallback.
20137 if test "x$ac_cr" = x; then
20138 eval ac_cr=\$\'\\r\'
20140 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20141 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20144 ac_cs_awk_cr=$ac_cr
20147 echo 'BEGIN {' >"$tmp/subs1.awk" &&
20152 echo "cat >conf$$subs.awk <<_ACEOF" &&
20153 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20155 } >conf$$subs.sh ||
20156 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20157 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
20159 for ac_last_try in false false false false false :; do
20160 . ./conf$$subs.sh ||
20161 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20163 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20164 if test $ac_delim_n = $ac_delim_num; then
20166 elif $ac_last_try; then
20167 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20169 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20172 rm -f conf$$subs.sh
20174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20175 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
20179 s/^/S["/; s/!.*/"]=/
20189 s/\(.\{148\}\)..*/\1/
20191 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20196 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20203 s/\(.\{148\}\)..*/\1/
20205 s/["\\]/\\&/g; s/^/"/; s/$/"/
20209 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20214 ' <conf$$subs.awk | sed '
20219 ' >>$CONFIG_STATUS || ac_write_fail=1
20220 rm -f conf$$subs.awk
20221 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20223 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
20224 for (key in S) S_is_set[key] = 1
20230 nfields = split(line, field, "@")
20232 len = length(field[1])
20233 for (i = 2; i < nfields; i++) {
20235 keylen = length(key)
20236 if (S_is_set[key]) {
20238 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20239 len += length(value) + length(field[++i])
20250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20251 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20252 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20255 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
20256 || as_fn_error "could not setup config files machinery" "$LINENO" 5
20259 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20260 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20261 # trailing colons and then remove the whole line if VPATH becomes empty
20262 # (actually we leave an empty line to preserve line numbers).
20263 if test "x$srcdir" = x.; then
20264 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20265 s/:*\$(srcdir):*/:/
20266 s/:*\${srcdir}:*/:/
20268 s/^\([^=]*=[ ]*\):*/\1/
20274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20275 fi # test -n "$CONFIG_FILES"
20277 # Set up the scripts for CONFIG_HEADERS section.
20278 # No need to generate them if there are no CONFIG_HEADERS.
20279 # This happens for instance with `./config.status Makefile'.
20280 if test -n "$CONFIG_HEADERS"; then
20281 cat >"$tmp/defines.awk" <<\_ACAWK ||
20285 # Transform confdefs.h into an awk script `defines.awk', embedded as
20286 # here-document in config.status, that substitutes the proper values into
20287 # config.h.in to produce config.h.
20289 # Create a delimiter string that does not exist in confdefs.h, to ease
20290 # handling of long lines.
20292 for ac_last_try in false false :; do
20293 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
20294 if test -z "$ac_t"; then
20296 elif $ac_last_try; then
20297 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
20299 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20303 # For the awk script, D is an array of macro values keyed by name,
20304 # likewise P contains macro parameters if any. Preserve backslash
20305 # newline sequences.
20307 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20309 s/.\{148\}/&'"$ac_delim"'/g
20312 s/^[ ]*#[ ]*define[ ][ ]*/ /
20319 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20321 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20325 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20326 D["\1"]=" \3\\\\\\n"\\/p
20328 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20333 s/.\{148\}/&'"$ac_delim"'/g
20338 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20341 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20343 ' <confdefs.h | sed '
20344 s/'"$ac_delim"'/"\\\
20345 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20347 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20348 for (key in D) D_is_set[key] = 1
20351 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20353 split(line, arg, " ")
20354 if (arg[1] == "#") {
20358 defundef = substr(arg[1], 2)
20361 split(mac1, mac2, "(") #)
20363 prefix = substr(line, 1, index(line, defundef) - 1)
20364 if (D_is_set[macro]) {
20365 # Preserve the white space surrounding the "#".
20366 print prefix "define", macro P[macro] D[macro]
20369 # Replace #undef with comments. This is necessary, for example,
20370 # in the case of _POSIX_SOURCE, which is predefined and required
20371 # on some systems where configure will not decide to define it.
20372 if (defundef == "undef") {
20373 print "/*", prefix defundef, macro, "*/"
20381 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20382 as_fn_error "could not setup config headers machinery" "$LINENO" 5
20383 fi # test -n "$CONFIG_HEADERS"
20386 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20391 :[FHLC]) ac_mode=$ac_tag; continue;;
20393 case $ac_mode$ac_tag in
20395 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
20396 :[FH]-) ac_tag=-:-;;
20397 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20414 -) ac_f="$tmp/stdin";;
20415 *) # Look for the file first in the build tree, then in the source tree
20416 # (if the path is not absolute). The absolute path cannot be DOS-style,
20417 # because $ac_f cannot contain `:'.
20421 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20423 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20425 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20426 as_fn_append ac_file_inputs " '$ac_f'"
20429 # Let's still pretend it is `configure' which instantiates (i.e., don't
20430 # use $as_me), people would be surprised to read:
20431 # /* config.h. Generated by config.status. */
20432 configure_input='Generated from '`
20433 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20435 if test x"$ac_file" != x-; then
20436 configure_input="$ac_file. $configure_input"
20437 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20438 $as_echo "$as_me: creating $ac_file" >&6;}
20440 # Neutralize special characters interpreted by sed in replacement strings.
20441 case $configure_input in #(
20442 *\&* | *\|* | *\\* )
20443 ac_sed_conf_input=`$as_echo "$configure_input" |
20444 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20445 *) ac_sed_conf_input=$configure_input;;
20449 *:-:* | *:-) cat >"$tmp/stdin" \
20450 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
20455 ac_dir=`$as_dirname -- "$ac_file" ||
20456 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20457 X"$ac_file" : 'X\(//\)[^/]' \| \
20458 X"$ac_file" : 'X\(//\)$' \| \
20459 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20460 $as_echo X"$ac_file" |
20461 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20465 /^X\(\/\/\)[^/].*/{
20478 as_dir="$ac_dir"; as_fn_mkdir_p
20482 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20484 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20485 # A ".." for each directory in $ac_dir_suffix.
20486 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20487 case $ac_top_builddir_sub in
20488 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20489 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20492 ac_abs_top_builddir=$ac_pwd
20493 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20494 # for backward compatibility:
20495 ac_top_builddir=$ac_top_build_prefix
20498 .) # We are building in place.
20500 ac_top_srcdir=$ac_top_builddir_sub
20501 ac_abs_top_srcdir=$ac_pwd ;;
20502 [\\/]* | ?:[\\/]* ) # Absolute name.
20503 ac_srcdir=$srcdir$ac_dir_suffix;
20504 ac_top_srcdir=$srcdir
20505 ac_abs_top_srcdir=$srcdir ;;
20506 *) # Relative name.
20507 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20508 ac_top_srcdir=$ac_top_build_prefix$srcdir
20509 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20511 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20522 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20523 # If the template does not know about datarootdir, expand it.
20524 # FIXME: This hack should be removed a few years after 2.60.
20525 ac_datarootdir_hack=; ac_datarootdir_seen=
20536 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20537 *datarootdir*) ac_datarootdir_seen=yes;;
20538 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20540 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20542 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20543 ac_datarootdir_hack='
20544 s&@datadir@&$datadir&g
20545 s&@docdir@&$docdir&g
20546 s&@infodir@&$infodir&g
20547 s&@localedir@&$localedir&g
20548 s&@mandir@&$mandir&g
20549 s&\\\${datarootdir}&$datarootdir&g' ;;
20553 # Neutralize VPATH when `$srcdir' = `.'.
20554 # Shell code in configure.ac might set extrasub.
20555 # FIXME: do we really want to maintain this feature?
20556 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20557 ac_sed_extra="$ac_vpsub
20560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20562 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20563 s|@configure_input@|$ac_sed_conf_input|;t t
20564 s&@top_builddir@&$ac_top_builddir_sub&;t t
20565 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20566 s&@srcdir@&$ac_srcdir&;t t
20567 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20568 s&@top_srcdir@&$ac_top_srcdir&;t t
20569 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20570 s&@builddir@&$ac_builddir&;t t
20571 s&@abs_builddir@&$ac_abs_builddir&;t t
20572 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20573 $ac_datarootdir_hack
20575 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
20576 || as_fn_error "could not create $ac_file" "$LINENO" 5
20578 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20579 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20580 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20582 which seems to be undefined. Please make sure it is defined." >&5
20583 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20584 which seems to be undefined. Please make sure it is defined." >&2;}
20588 -) cat "$tmp/out" && rm -f "$tmp/out";;
20589 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
20591 || as_fn_error "could not create $ac_file" "$LINENO" 5
20597 if test x"$ac_file" != x-; then
20599 $as_echo "/* $configure_input */" \
20600 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
20601 } >"$tmp/config.h" \
20602 || as_fn_error "could not create $ac_file" "$LINENO" 5
20603 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
20604 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20605 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20608 mv "$tmp/config.h" "$ac_file" \
20609 || as_fn_error "could not create $ac_file" "$LINENO" 5
20612 $as_echo "/* $configure_input */" \
20613 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
20614 || as_fn_error "could not create -" "$LINENO" 5
20618 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20619 $as_echo "$as_me: executing $ac_file commands" >&6;}
20624 case $ac_file$ac_mode in
20627 # See if we are running on zsh, and set the options which allow our
20628 # commands through without removal of \ escapes.
20629 if test -n "${ZSH_VERSION+set}" ; then
20630 setopt NO_GLOB_SUBST
20633 cfgfile="${ofile}T"
20634 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20637 cat <<_LT_EOF >> "$cfgfile"
20640 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20641 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20642 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20643 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20645 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20646 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
20648 # Written by Gordon Matzigkeit, 1996
20650 # This file is part of GNU Libtool.
20652 # GNU Libtool is free software; you can redistribute it and/or
20653 # modify it under the terms of the GNU General Public License as
20654 # published by the Free Software Foundation; either version 2 of
20655 # the License, or (at your option) any later version.
20657 # As a special exception to the GNU General Public License,
20658 # if you distribute this file as part of a program or library that
20659 # is built using GNU Libtool, you may include this file under the
20660 # same distribution terms that you use for the rest of that program.
20662 # GNU Libtool is distributed in the hope that it will be useful,
20663 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20664 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20665 # GNU General Public License for more details.
20667 # You should have received a copy of the GNU General Public License
20668 # along with GNU Libtool; see the file COPYING. If not, a copy
20669 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20670 # obtained by writing to the Free Software Foundation, Inc.,
20671 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20674 # The names of the tagged configurations supported by this script.
20677 # ### BEGIN LIBTOOL CONFIG
20679 # Which release of libtool.m4 was used?
20680 macro_version=$macro_version
20681 macro_revision=$macro_revision
20683 # Whether or not to build shared libraries.
20684 build_libtool_libs=$enable_shared
20686 # Whether or not to build static libraries.
20687 build_old_libs=$enable_static
20689 # What type of objects to build.
20692 # Whether or not to optimize for fast installation.
20693 fast_install=$enable_fast_install
20695 # Shell to use when invoking shell scripts.
20698 # An echo program that protects backslashes.
20702 host_alias=$host_alias
20706 # The build system.
20707 build_alias=$build_alias
20711 # A sed program that does not truncate output.
20714 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20715 Xsed="\$SED -e 1s/^X//"
20717 # A grep program that handles long lines.
20723 # A literal string matcher.
20726 # A BSD- or MS-compatible name lister.
20729 # Whether we need soft or hard links.
20732 # What is the maximum length of a command?
20733 max_cmd_len=$max_cmd_len
20735 # Object file suffix (normally "o").
20738 # Executable file suffix (normally "").
20741 # whether the shell understands "unset".
20744 # turn spaces into newlines.
20747 # turn newlines into spaces.
20750 # An object symbol dumper.
20751 OBJDUMP=$lt_OBJDUMP
20753 # Method to check whether dependent libraries are shared objects.
20754 deplibs_check_method=$lt_deplibs_check_method
20756 # Command to use when deplibs_check_method == "file_magic".
20757 file_magic_cmd=$lt_file_magic_cmd
20761 AR_FLAGS=$lt_AR_FLAGS
20763 # A symbol stripping program.
20766 # Commands used to install an old-style archive.
20768 old_postinstall_cmds=$lt_old_postinstall_cmds
20769 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20771 # Whether to use a lock for old archive extraction.
20772 lock_old_archive_extraction=$lock_old_archive_extraction
20777 # LTCC compiler flags.
20778 LTCFLAGS=$lt_CFLAGS
20780 # Take the output of nm and produce a listing of raw symbols and C names.
20781 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20783 # Transform the output of nm in a proper C declaration.
20784 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20786 # Transform the output of nm in a C name address pair.
20787 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20789 # Transform the output of nm in a C name address pair when lib prefix is needed.
20790 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20792 # The name of the directory that contains temporary libtool files.
20795 # Used to examine libraries when file_magic_cmd begins with "file".
20796 MAGIC_CMD=$MAGIC_CMD
20798 # Must we lock files when doing compilation?
20799 need_locks=$lt_need_locks
20801 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20802 DSYMUTIL=$lt_DSYMUTIL
20804 # Tool to change global to local symbols on Mac OS X.
20807 # Tool to manipulate fat objects and archives on Mac OS X.
20810 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20813 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20814 OTOOL64=$lt_OTOOL64
20816 # Old archive suffix (normally "a").
20819 # Shared library suffix (normally ".so").
20820 shrext_cmds=$lt_shrext_cmds
20822 # The commands to extract the exported symbol list from a shared archive.
20823 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20825 # Variables whose values should be saved in libtool wrapper scripts and
20826 # restored at link time.
20827 variables_saved_for_relink=$lt_variables_saved_for_relink
20829 # Do we need the "lib" prefix for modules?
20830 need_lib_prefix=$need_lib_prefix
20832 # Do we need a version for libraries?
20833 need_version=$need_version
20835 # Library versioning type.
20836 version_type=$version_type
20838 # Shared library runtime path variable.
20839 runpath_var=$runpath_var
20841 # Shared library path variable.
20842 shlibpath_var=$shlibpath_var
20844 # Is shlibpath searched before the hard-coded library search path?
20845 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20847 # Format of library name prefix.
20848 libname_spec=$lt_libname_spec
20850 # List of archive names. First name is the real one, the rest are links.
20851 # The last name is the one that the linker finds with -lNAME
20852 library_names_spec=$lt_library_names_spec
20854 # The coded name of the library, if different from the real name.
20855 soname_spec=$lt_soname_spec
20857 # Permission mode override for installation of shared libraries.
20858 install_override_mode=$lt_install_override_mode
20860 # Command to use after installation of a shared archive.
20861 postinstall_cmds=$lt_postinstall_cmds
20863 # Command to use after uninstallation of a shared archive.
20864 postuninstall_cmds=$lt_postuninstall_cmds
20866 # Commands used to finish a libtool library installation in a directory.
20867 finish_cmds=$lt_finish_cmds
20869 # As "finish_cmds", except a single script fragment to be evaled but
20871 finish_eval=$lt_finish_eval
20873 # Whether we should hardcode library paths into libraries.
20874 hardcode_into_libs=$hardcode_into_libs
20876 # Compile-time system search path for libraries.
20877 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20879 # Run-time system search path for libraries.
20880 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20882 # Whether dlopen is supported.
20883 dlopen_support=$enable_dlopen
20885 # Whether dlopen of programs is supported.
20886 dlopen_self=$enable_dlopen_self
20888 # Whether dlopen of statically linked programs is supported.
20889 dlopen_self_static=$enable_dlopen_self_static
20891 # Commands to strip libraries.
20892 old_striplib=$lt_old_striplib
20893 striplib=$lt_striplib
20896 # The linker used to build libraries.
20899 # How to create reloadable object files.
20900 reload_flag=$lt_reload_flag
20901 reload_cmds=$lt_reload_cmds
20903 # Commands used to build an old-style archive.
20904 old_archive_cmds=$lt_old_archive_cmds
20906 # A language specific compiler.
20909 # Is the compiler the GNU compiler?
20912 # Compiler flag to turn off builtin functions.
20913 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20915 # How to pass a linker flag through the compiler.
20916 wl=$lt_lt_prog_compiler_wl
20918 # Additional compiler flags for building library objects.
20919 pic_flag=$lt_lt_prog_compiler_pic
20921 # Compiler flag to prevent dynamic linking.
20922 link_static_flag=$lt_lt_prog_compiler_static
20924 # Does compiler simultaneously support -c and -o options?
20925 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20927 # Whether or not to add -lc for building shared libraries.
20928 build_libtool_need_lc=$archive_cmds_need_lc
20930 # Whether or not to disallow shared libs when runtime libs are static.
20931 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20933 # Compiler flag to allow reflexive dlopens.
20934 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20936 # Compiler flag to generate shared objects directly from archives.
20937 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20939 # Whether the compiler copes with passing no objects directly.
20940 compiler_needs_object=$lt_compiler_needs_object
20942 # Create an old-style archive from a shared archive.
20943 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20945 # Create a temporary old-style archive to link instead of a shared archive.
20946 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20948 # Commands used to build a shared archive.
20949 archive_cmds=$lt_archive_cmds
20950 archive_expsym_cmds=$lt_archive_expsym_cmds
20952 # Commands used to build a loadable module if different from building
20953 # a shared archive.
20954 module_cmds=$lt_module_cmds
20955 module_expsym_cmds=$lt_module_expsym_cmds
20957 # Whether we are building with GNU ld or not.
20958 with_gnu_ld=$lt_with_gnu_ld
20960 # Flag that allows shared libraries with undefined symbols to be built.
20961 allow_undefined_flag=$lt_allow_undefined_flag
20963 # Flag that enforces no undefined symbols.
20964 no_undefined_flag=$lt_no_undefined_flag
20966 # Flag to hardcode \$libdir into a binary during linking.
20967 # This must work even if \$libdir does not exist
20968 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20970 # If ld is used when linking, flag to hardcode \$libdir into a binary
20971 # during linking. This must work even if \$libdir does not exist.
20972 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20974 # Whether we need a single "-rpath" flag with a separated argument.
20975 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20977 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20978 # DIR into the resulting binary.
20979 hardcode_direct=$hardcode_direct
20981 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20982 # DIR into the resulting binary and the resulting library dependency is
20983 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20984 # library is relocated.
20985 hardcode_direct_absolute=$hardcode_direct_absolute
20987 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20988 # into the resulting binary.
20989 hardcode_minus_L=$hardcode_minus_L
20991 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20992 # into the resulting binary.
20993 hardcode_shlibpath_var=$hardcode_shlibpath_var
20995 # Set to "yes" if building a shared library automatically hardcodes DIR
20996 # into the library and all subsequent libraries and executables linked
20998 hardcode_automatic=$hardcode_automatic
21000 # Set to yes if linker adds runtime paths of dependent libraries
21001 # to runtime path list.
21002 inherit_rpath=$inherit_rpath
21004 # Whether libtool must link a program against all its dependency libraries.
21005 link_all_deplibs=$link_all_deplibs
21007 # Fix the shell variable \$srcfile for the compiler.
21008 fix_srcfile_path=$lt_fix_srcfile_path
21010 # Set to "yes" if exported symbols are required.
21011 always_export_symbols=$always_export_symbols
21013 # The commands to list exported symbols.
21014 export_symbols_cmds=$lt_export_symbols_cmds
21016 # Symbols that should not be listed in the preloaded symbols.
21017 exclude_expsyms=$lt_exclude_expsyms
21019 # Symbols that must always be exported.
21020 include_expsyms=$lt_include_expsyms
21022 # Commands necessary for linking programs (against libraries) with templates.
21023 prelink_cmds=$lt_prelink_cmds
21025 # Specify filename containing input files.
21026 file_list_spec=$lt_file_list_spec
21028 # How to hardcode a shared library path into an executable.
21029 hardcode_action=$hardcode_action
21031 # ### END LIBTOOL CONFIG
21037 cat <<\_LT_EOF >> "$cfgfile"
21038 # AIX sometimes has problems with the GCC collect2 program. For some
21039 # reason, if we set the COLLECT_NAMES environment variable, the problems
21040 # vanish in a puff of smoke.
21041 if test "X${COLLECT_NAMES+set}" != Xset; then
21043 export COLLECT_NAMES
21050 ltmain="$ac_aux_dir/ltmain.sh"
21053 # We use sed instead of cat because bash on DJGPP gets confused if
21054 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21055 # text mode, it properly converts lines to CR/LF. This bash problem
21056 # is reportedly fixed, but why not run on old versions too?
21057 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
21058 || (rm -f "$cfgfile"; exit 1)
21062 cat << \_LT_EOF >> "$cfgfile"
21064 # func_dirname file append nondir_replacement
21065 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
21066 # otherwise set result to NONDIR_REPLACEMENT.
21070 */*) func_dirname_result="${1%/*}${2}" ;;
21071 * ) func_dirname_result="${3}" ;;
21075 # func_basename file
21078 func_basename_result="${1##*/}"
21081 # func_dirname_and_basename file append nondir_replacement
21082 # perform func_basename and func_dirname in a single function
21084 # dirname: Compute the dirname of FILE. If nonempty,
21085 # add APPEND to the result, otherwise set result
21086 # to NONDIR_REPLACEMENT.
21087 # value returned in "$func_dirname_result"
21088 # basename: Compute filename of FILE.
21089 # value retuned in "$func_basename_result"
21090 # Implementation must be kept synchronized with func_dirname
21091 # and func_basename. For efficiency, we do not delegate to
21092 # those functions but instead duplicate the functionality here.
21093 func_dirname_and_basename ()
21096 */*) func_dirname_result="${1%/*}${2}" ;;
21097 * ) func_dirname_result="${3}" ;;
21099 func_basename_result="${1##*/}"
21102 # func_stripname prefix suffix name
21103 # strip PREFIX and SUFFIX off of NAME.
21104 # PREFIX and SUFFIX must not contain globbing or regex special
21105 # characters, hashes, percent signs, but SUFFIX may contain a leading
21106 # dot (in which case that matches only a dot).
21109 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
21110 # positional parameters, so assign one to ordinary parameter first.
21111 func_stripname_result=${3}
21112 func_stripname_result=${func_stripname_result#"${1}"}
21113 func_stripname_result=${func_stripname_result%"${2}"}
21119 func_opt_split_opt=${1%%=*}
21120 func_opt_split_arg=${1#*=}
21127 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
21128 *) func_lo2o_result=${1} ;;
21132 # func_xform libobj-or-source
21135 func_xform_result=${1%.*}.lo
21138 # func_arith arithmetic-term...
21141 func_arith_result=$(( $* ))
21145 # STRING may not start with a hyphen.
21148 func_len_result=${#1}
21153 *) # Bourne compatible functions.
21154 cat << \_LT_EOF >> "$cfgfile"
21156 # func_dirname file append nondir_replacement
21157 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
21158 # otherwise set result to NONDIR_REPLACEMENT.
21161 # Extract subdirectory from the argument.
21162 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
21163 if test "X$func_dirname_result" = "X${1}"; then
21164 func_dirname_result="${3}"
21166 func_dirname_result="$func_dirname_result${2}"
21170 # func_basename file
21173 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
21177 # func_stripname prefix suffix name
21178 # strip PREFIX and SUFFIX off of NAME.
21179 # PREFIX and SUFFIX must not contain globbing or regex special
21180 # characters, hashes, percent signs, but SUFFIX may contain a leading
21181 # dot (in which case that matches only a dot).
21182 # func_strip_suffix prefix name
21186 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
21187 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
21192 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
21193 my_sed_long_arg='1s/^-[^=]*=//'
21198 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
21199 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
21205 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
21208 # func_xform libobj-or-source
21211 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
21214 # func_arith arithmetic-term...
21217 func_arith_result=`expr "$@"`
21221 # STRING may not start with a hyphen.
21224 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
21230 case $lt_shell_append in
21232 cat << \_LT_EOF >> "$cfgfile"
21234 # func_append var value
21235 # Append VALUE to the end of shell variable VAR.
21243 cat << \_LT_EOF >> "$cfgfile"
21245 # func_append var value
21246 # Append VALUE to the end of shell variable VAR.
21257 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
21258 || (rm -f "$cfgfile"; exit 1)
21260 mv -f "$cfgfile" "$ofile" ||
21261 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21272 ac_clean_files=$ac_clean_files_save
21274 test $ac_write_fail = 0 ||
21275 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
21278 # configure is writing to config.log, and then calls config.status.
21279 # config.status does its own redirection, appending to config.log.
21280 # Unfortunately, on DOS this fails, as config.log is still kept open
21281 # by configure, so config.status won't be able to write to it; its
21282 # output is simply discarded. So we exec the FD to /dev/null,
21283 # effectively closing config.log, so it can be properly (re)opened and
21284 # appended to by config.status. When coming back to configure, we
21285 # need to make the FD available again.
21286 if test "$no_create" != yes; then
21288 ac_config_status_args=
21289 test "$silent" = yes &&
21290 ac_config_status_args="$ac_config_status_args --quiet"
21292 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21294 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21295 # would make configure fail if this is the last instruction.
21296 $ac_cs_success || as_fn_exit $?
21298 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21300 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21304 if test "$with_pam" = "yes"; then
21307 { $as_echo "$as_me:${as_lineno-$LINENO}: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&5
21308 $as_echo "$as_me: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&6;}