2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for linux nfs-utils 1.2.3.
5 # Report bugs to <linux-nfs@vger.kernel.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
147 case \`(set -o) 2>/dev/null\` in #(
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190 test -z "$as_dir" && as_dir=.
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: linux-nfs@vger.kernel.org about your system, including
235 $0: any error possibly output before this message. Then
236 $0: install a modern shell, or manually run the script
237 $0: under such a shell if you do have one."
243 SHELL=${CONFIG_SHELL-/bin/sh}
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
254 # Portably unset VAR.
257 { eval $1=; unset $1;}
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 # Create "$as_dir" as a directory, including parents if necessary.
286 -*) as_dir=./$as_dir;;
288 test -d "$as_dir" || eval $as_mkdir_p || {
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 test -d "$as_dir" && break
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
357 as_val=`expr "$@" || test $? -eq 1`
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
369 as_status=$?; test $as_status -eq 0 && as_status=1
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
451 # Exit status is that of the last command.
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
473 mkdir conf$$.dir 2>/dev/null
475 if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484 elif ln conf$$.file conf$$ 2>/dev/null; then
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
498 test -d ./-p && rmdir ./-p
502 if test -x / >/dev/null 2>&1; then
505 if ls -dL / >/dev/null 2>&1; then
512 if test -d "$1"; then
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
523 as_executable_p=$as_test_x
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533 # Check that we are running under the correct shell.
534 SHELL=${CONFIG_SHELL-/bin/sh}
538 # Remove one level of quotation (which was required for Make).
539 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
544 if test "X$1" = X--no-reexec; then
545 # Discard the --no-reexec flag, and continue.
547 elif test "X$1" = X--fallback-echo; then
548 # Avoid inline document here, it may be left over
550 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551 # Yippee, $ECHO works!
554 # Restart under the correct shell.
555 exec $SHELL "$0" --no-reexec ${1+"$@"}
558 if test "X$1" = X--fallback-echo; then
559 # used as fallback echo
567 # The HP-UX ksh and POSIX shell print the target directory to stdout
569 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
571 if test -z "$lt_ECHO"; then
572 if test "X${echo_test_string+set}" != Xset; then
573 # find a string as large as possible, as long as the shell can cope with it
574 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
584 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586 test "X$echo_testing_string" = "X$echo_test_string"; then
589 # The Solaris, AIX, and Digital Unix default echo programs unquote
590 # backslashes. This makes it impossible to quote backslashes using
591 # echo "$something" | sed 's/\\/\\\\/g'
593 # So, first we look for a working echo in the user's PATH.
595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596 for dir in $PATH /usr/ucb; do
598 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601 test "X$echo_testing_string" = "X$echo_test_string"; then
608 if test "X$ECHO" = Xecho; then
609 # We didn't find a better echo, so look for alternatives.
610 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612 test "X$echo_testing_string" = "X$echo_test_string"; then
613 # This shell has a builtin print -r that does the trick.
615 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616 test "X$CONFIG_SHELL" != X/bin/ksh; then
617 # If we have ksh, try running configure again with it.
618 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619 export ORIGINAL_CONFIG_SHELL
620 CONFIG_SHELL=/bin/ksh
622 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
631 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632 test "X$echo_testing_string" = 'X\t' &&
633 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
637 SHELL="$CONFIG_SHELL"
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
640 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641 test "X$echo_testing_string" = 'X\t' &&
642 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$CONFIG_SHELL $0 --fallback-echo"
646 # maybe with a smaller string...
649 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
657 if test "$prev" != 'sed 50q "$0"'; then
658 echo_test_string=`eval $prev`
659 export echo_test_string
660 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
662 # Oops. We lost completely, so just stick with echo.
671 # Copy echo and quote the copy suitably for passing to libtool from
672 # the Makefile, instead of quoting the original, which is used later.
674 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
681 test -n "$DJDIR" || exec 7<&0 </dev/null
685 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
686 # so uname gets run too.
687 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
692 ac_default_prefix=/usr/local
694 ac_config_libobj_dir=.
701 # Identity of this package.
702 PACKAGE_NAME='linux nfs-utils'
703 PACKAGE_TARNAME='nfs-utils'
704 PACKAGE_VERSION='1.2.3'
705 PACKAGE_STRING='linux nfs-utils 1.2.3'
706 PACKAGE_BUGREPORT='linux-nfs@vger.kernel.org'
709 ac_default_prefix=/usr
710 # Factoring default headers for most tests.
711 ac_includes_default="\
713 #ifdef HAVE_SYS_TYPES_H
714 # include <sys/types.h>
716 #ifdef HAVE_SYS_STAT_H
717 # include <sys/stat.h>
723 # ifdef HAVE_STDLIB_H
728 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
733 #ifdef HAVE_STRINGS_H
734 # include <strings.h>
736 #ifdef HAVE_INTTYPES_H
737 # include <inttypes.h>
746 ac_unique_file="support/include/config.h.in"
747 ac_subst_vars='am__EXEEXT_FALSE
853 MAINTAINER_MODE_FALSE
863 INSTALL_STRIP_PROGRAM
913 program_transform_name
926 enable_option_checking
927 enable_maintainer_mode
945 enable_dependency_tracking
957 ac_precious_vars='build_alias
977 # Initialize some variables set by options.
979 ac_init_version=false
980 ac_unrecognized_opts=
982 # The variables have the same names as the options, with
983 # dashes changed to underlines.
991 program_transform_name=s,x,x,
999 # Installation directory options.
1000 # These are left unexpanded so users can "make install exec_prefix=/foo"
1001 # and all the variables that are supposed to be based on exec_prefix
1002 # by default will actually change.
1003 # Use braces instead of parens because sh, perl, etc. also accept them.
1004 # (The list follows the same order as the GNU Coding Standards.)
1005 bindir='${exec_prefix}/bin'
1006 sbindir='${exec_prefix}/sbin'
1007 libexecdir='${exec_prefix}/libexec'
1008 datarootdir='${prefix}/share'
1009 datadir='${datarootdir}'
1010 sysconfdir='${prefix}/etc'
1011 sharedstatedir='${prefix}/com'
1012 localstatedir='${prefix}/var'
1013 includedir='${prefix}/include'
1014 oldincludedir='/usr/include'
1015 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1016 infodir='${datarootdir}/info'
1021 libdir='${exec_prefix}/lib'
1022 localedir='${datarootdir}/locale'
1023 mandir='${datarootdir}/man'
1029 # If the previous option needs an argument, assign it.
1030 if test -n "$ac_prev"; then
1031 eval $ac_prev=\$ac_option
1037 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1041 # Accept the important Cygnus configure options, so we can diagnose typos.
1043 case $ac_dashdash$ac_option in
1047 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1049 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1050 bindir=$ac_optarg ;;
1052 -build | --build | --buil | --bui | --bu)
1053 ac_prev=build_alias ;;
1054 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1055 build_alias=$ac_optarg ;;
1057 -cache-file | --cache-file | --cache-fil | --cache-fi \
1058 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1059 ac_prev=cache_file ;;
1060 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1061 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1062 cache_file=$ac_optarg ;;
1064 --config-cache | -C)
1065 cache_file=config.cache ;;
1067 -datadir | --datadir | --datadi | --datad)
1069 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1070 datadir=$ac_optarg ;;
1072 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1073 | --dataroo | --dataro | --datar)
1074 ac_prev=datarootdir ;;
1075 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1076 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1077 datarootdir=$ac_optarg ;;
1079 -disable-* | --disable-*)
1080 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1081 # Reject names that are not valid shell variable names.
1082 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1083 as_fn_error "invalid feature name: $ac_useropt"
1084 ac_useropt_orig=$ac_useropt
1085 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1086 case $ac_user_opts in
1088 "enable_$ac_useropt"
1090 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1091 ac_unrecognized_sep=', ';;
1093 eval enable_$ac_useropt=no ;;
1095 -docdir | --docdir | --docdi | --doc | --do)
1097 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1098 docdir=$ac_optarg ;;
1100 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1102 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1103 dvidir=$ac_optarg ;;
1105 -enable-* | --enable-*)
1106 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1107 # Reject names that are not valid shell variable names.
1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109 as_fn_error "invalid feature name: $ac_useropt"
1110 ac_useropt_orig=$ac_useropt
1111 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112 case $ac_user_opts in
1114 "enable_$ac_useropt"
1116 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1117 ac_unrecognized_sep=', ';;
1119 eval enable_$ac_useropt=\$ac_optarg ;;
1121 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1122 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1123 | --exec | --exe | --ex)
1124 ac_prev=exec_prefix ;;
1125 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1126 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1127 | --exec=* | --exe=* | --ex=*)
1128 exec_prefix=$ac_optarg ;;
1130 -gas | --gas | --ga | --g)
1131 # Obsolete; use --with-gas.
1134 -help | --help | --hel | --he | -h)
1135 ac_init_help=long ;;
1136 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1137 ac_init_help=recursive ;;
1138 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1139 ac_init_help=short ;;
1141 -host | --host | --hos | --ho)
1142 ac_prev=host_alias ;;
1143 -host=* | --host=* | --hos=* | --ho=*)
1144 host_alias=$ac_optarg ;;
1146 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1148 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1150 htmldir=$ac_optarg ;;
1152 -includedir | --includedir | --includedi | --included | --include \
1153 | --includ | --inclu | --incl | --inc)
1154 ac_prev=includedir ;;
1155 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1156 | --includ=* | --inclu=* | --incl=* | --inc=*)
1157 includedir=$ac_optarg ;;
1159 -infodir | --infodir | --infodi | --infod | --info | --inf)
1161 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1162 infodir=$ac_optarg ;;
1164 -libdir | --libdir | --libdi | --libd)
1166 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1167 libdir=$ac_optarg ;;
1169 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1170 | --libexe | --libex | --libe)
1171 ac_prev=libexecdir ;;
1172 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1173 | --libexe=* | --libex=* | --libe=*)
1174 libexecdir=$ac_optarg ;;
1176 -localedir | --localedir | --localedi | --localed | --locale)
1177 ac_prev=localedir ;;
1178 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1179 localedir=$ac_optarg ;;
1181 -localstatedir | --localstatedir | --localstatedi | --localstated \
1182 | --localstate | --localstat | --localsta | --localst | --locals)
1183 ac_prev=localstatedir ;;
1184 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1185 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1186 localstatedir=$ac_optarg ;;
1188 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1190 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1191 mandir=$ac_optarg ;;
1193 -nfp | --nfp | --nf)
1194 # Obsolete; use --without-fp.
1197 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1198 | --no-cr | --no-c | -n)
1201 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1202 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1205 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1206 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1207 | --oldin | --oldi | --old | --ol | --o)
1208 ac_prev=oldincludedir ;;
1209 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1210 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1211 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1212 oldincludedir=$ac_optarg ;;
1214 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1216 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1217 prefix=$ac_optarg ;;
1219 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1220 | --program-pre | --program-pr | --program-p)
1221 ac_prev=program_prefix ;;
1222 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1223 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1224 program_prefix=$ac_optarg ;;
1226 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1227 | --program-suf | --program-su | --program-s)
1228 ac_prev=program_suffix ;;
1229 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1230 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1231 program_suffix=$ac_optarg ;;
1233 -program-transform-name | --program-transform-name \
1234 | --program-transform-nam | --program-transform-na \
1235 | --program-transform-n | --program-transform- \
1236 | --program-transform | --program-transfor \
1237 | --program-transfo | --program-transf \
1238 | --program-trans | --program-tran \
1239 | --progr-tra | --program-tr | --program-t)
1240 ac_prev=program_transform_name ;;
1241 -program-transform-name=* | --program-transform-name=* \
1242 | --program-transform-nam=* | --program-transform-na=* \
1243 | --program-transform-n=* | --program-transform-=* \
1244 | --program-transform=* | --program-transfor=* \
1245 | --program-transfo=* | --program-transf=* \
1246 | --program-trans=* | --program-tran=* \
1247 | --progr-tra=* | --program-tr=* | --program-t=*)
1248 program_transform_name=$ac_optarg ;;
1250 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1252 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1253 pdfdir=$ac_optarg ;;
1255 -psdir | --psdir | --psdi | --psd | --ps)
1257 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1260 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1261 | -silent | --silent | --silen | --sile | --sil)
1264 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1266 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1268 sbindir=$ac_optarg ;;
1270 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1271 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1272 | --sharedst | --shareds | --shared | --share | --shar \
1274 ac_prev=sharedstatedir ;;
1275 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1276 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1277 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1279 sharedstatedir=$ac_optarg ;;
1281 -site | --site | --sit)
1283 -site=* | --site=* | --sit=*)
1286 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1288 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1289 srcdir=$ac_optarg ;;
1291 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1292 | --syscon | --sysco | --sysc | --sys | --sy)
1293 ac_prev=sysconfdir ;;
1294 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1295 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1296 sysconfdir=$ac_optarg ;;
1298 -target | --target | --targe | --targ | --tar | --ta | --t)
1299 ac_prev=target_alias ;;
1300 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1301 target_alias=$ac_optarg ;;
1303 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1306 -version | --version | --versio | --versi | --vers | -V)
1307 ac_init_version=: ;;
1310 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1311 # Reject names that are not valid shell variable names.
1312 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1313 as_fn_error "invalid package name: $ac_useropt"
1314 ac_useropt_orig=$ac_useropt
1315 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1316 case $ac_user_opts in
1320 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1321 ac_unrecognized_sep=', ';;
1323 eval with_$ac_useropt=\$ac_optarg ;;
1325 -without-* | --without-*)
1326 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1327 # Reject names that are not valid shell variable names.
1328 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1329 as_fn_error "invalid package name: $ac_useropt"
1330 ac_useropt_orig=$ac_useropt
1331 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1332 case $ac_user_opts in
1336 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1337 ac_unrecognized_sep=', ';;
1339 eval with_$ac_useropt=no ;;
1342 # Obsolete; use --with-x.
1345 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1346 | --x-incl | --x-inc | --x-in | --x-i)
1347 ac_prev=x_includes ;;
1348 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1349 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1350 x_includes=$ac_optarg ;;
1352 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1353 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1354 ac_prev=x_libraries ;;
1355 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1356 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1357 x_libraries=$ac_optarg ;;
1359 -*) as_fn_error "unrecognized option: \`$ac_option'
1360 Try \`$0 --help' for more information."
1364 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1365 # Reject names that are not valid shell variable names.
1366 case $ac_envvar in #(
1367 '' | [0-9]* | *[!_$as_cr_alnum]* )
1368 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1370 eval $ac_envvar=\$ac_optarg
1371 export $ac_envvar ;;
1374 # FIXME: should be removed in autoconf 3.0.
1375 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1376 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1377 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1378 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1384 if test -n "$ac_prev"; then
1385 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1386 as_fn_error "missing argument to $ac_option"
1389 if test -n "$ac_unrecognized_opts"; then
1390 case $enable_option_checking in
1392 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1393 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1397 # Check all directory arguments for consistency.
1398 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1399 datadir sysconfdir sharedstatedir localstatedir includedir \
1400 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1401 libdir localedir mandir
1403 eval ac_val=\$$ac_var
1404 # Remove trailing slashes.
1407 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1408 eval $ac_var=\$ac_val;;
1410 # Be sure to have absolute directory names.
1412 [\\/$]* | ?:[\\/]* ) continue;;
1413 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1415 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1418 # There might be people who depend on the old broken behavior: `$host'
1419 # used to hold the argument of --host etc.
1420 # FIXME: To remove some day.
1423 target=$target_alias
1425 # FIXME: To remove some day.
1426 if test "x$host_alias" != x; then
1427 if test "x$build_alias" = x; then
1428 cross_compiling=maybe
1429 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1430 If a cross compiler is detected then cross compile mode will be used." >&2
1431 elif test "x$build_alias" != "x$host_alias"; then
1437 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1439 test "$silent" = yes && exec 6>/dev/null
1442 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1443 ac_ls_di=`ls -di .` &&
1444 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1445 as_fn_error "working directory cannot be determined"
1446 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1447 as_fn_error "pwd does not report name of working directory"
1450 # Find the source files, if location was not specified.
1451 if test -z "$srcdir"; then
1452 ac_srcdir_defaulted=yes
1453 # Try the directory containing this script, then the parent directory.
1454 ac_confdir=`$as_dirname -- "$as_myself" ||
1455 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1456 X"$as_myself" : 'X\(//\)[^/]' \| \
1457 X"$as_myself" : 'X\(//\)$' \| \
1458 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1459 $as_echo X"$as_myself" |
1460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1478 if test ! -r "$srcdir/$ac_unique_file"; then
1482 ac_srcdir_defaulted=no
1484 if test ! -r "$srcdir/$ac_unique_file"; then
1485 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1486 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1488 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1490 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1492 # When building in place, set srcdir=.
1493 if test "$ac_abs_confdir" = "$ac_pwd"; then
1496 # Remove unnecessary trailing slashes from srcdir.
1497 # Double slashes in file names in object file debugging info
1498 # mess up M-x gdb in Emacs.
1500 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1502 for ac_var in $ac_precious_vars; do
1503 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1504 eval ac_env_${ac_var}_value=\$${ac_var}
1505 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1506 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1510 # Report the --help message.
1512 if test "$ac_init_help" = "long"; then
1513 # Omit some internal or obsolete options to make the list less imposing.
1514 # This message is too long to be a string in the A/UX 3.1 sh.
1516 \`configure' configures linux nfs-utils 1.2.3 to adapt to many kinds of systems.
1518 Usage: $0 [OPTION]... [VAR=VALUE]...
1520 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1521 VAR=VALUE. See below for descriptions of some of the useful variables.
1523 Defaults for the options are specified in brackets.
1526 -h, --help display this help and exit
1527 --help=short display options specific to this package
1528 --help=recursive display the short help of all the included packages
1529 -V, --version display version information and exit
1530 -q, --quiet, --silent do not print \`checking...' messages
1531 --cache-file=FILE cache test results in FILE [disabled]
1532 -C, --config-cache alias for \`--cache-file=config.cache'
1533 -n, --no-create do not create output files
1534 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1536 Installation directories:
1537 --prefix=PREFIX install architecture-independent files in PREFIX
1538 [$ac_default_prefix]
1539 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1542 By default, \`make install' will install all the files in
1543 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1544 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1545 for instance \`--prefix=\$HOME'.
1547 For better control, use the options below.
1549 Fine tuning of the installation directories:
1550 --bindir=DIR user executables [EPREFIX/bin]
1551 --sbindir=DIR system admin executables [EPREFIX/sbin]
1552 --libexecdir=DIR program executables [EPREFIX/libexec]
1553 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1554 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1555 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1556 --libdir=DIR object code libraries [EPREFIX/lib]
1557 --includedir=DIR C header files [PREFIX/include]
1558 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1559 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1560 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1561 --infodir=DIR info documentation [DATAROOTDIR/info]
1562 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1563 --mandir=DIR man documentation [DATAROOTDIR/man]
1564 --docdir=DIR documentation root [DATAROOTDIR/doc/nfs-utils]
1565 --htmldir=DIR html documentation [DOCDIR]
1566 --dvidir=DIR dvi documentation [DOCDIR]
1567 --pdfdir=DIR pdf documentation [DOCDIR]
1568 --psdir=DIR ps documentation [DOCDIR]
1574 --program-prefix=PREFIX prepend PREFIX to installed program names
1575 --program-suffix=SUFFIX append SUFFIX to installed program names
1576 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1579 --build=BUILD configure for building on BUILD [guessed]
1580 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1584 if test -n "$ac_init_help"; then
1585 case $ac_init_help in
1586 short | recursive ) echo "Configuration of linux nfs-utils 1.2.3:";;
1591 --disable-option-checking ignore unrecognized --enable/--with options
1592 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1593 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1594 --enable-maintainer-mode enable make rules and dependencies not useful
1595 (and sometimes confusing) to the casual installer
1596 --enable-nfsv3 enable support for NFSv3 [default=yes]
1597 --enable-nfsv4 enable support for NFSv4 [default=yes]
1598 --enable-nfsv41 enable support for NFSv41 [default=no]
1599 --enable-gss enable support for rpcsec_gss [default=yes]
1600 --enable-kprefix install progs as rpc.knfsd etc
1601 --disable-uuid Exclude uuid support to avoid buggy libblkid
1602 --enable-mount Create mount.nfs and don't use the util-linux
1603 mount(8) functionality. [default=yes]
1604 --enable-tirpc enable use of TI-RPC [default=yes]
1605 --enable-ipv6 enable support for IPv6 [default=no]
1606 --enable-mountconfig enable mount to use a configuration file
1607 --disable-dependency-tracking speeds up one-time build
1608 --enable-dependency-tracking do not reject slow dependency extractors
1609 --disable-caps Disable capabilities support
1610 --disable-largefile omit support for large files
1611 --enable-shared[=PKGS] build shared libraries [default=yes]
1612 --enable-static[=PKGS] build static libraries [default=yes]
1613 --enable-fast-install[=PKGS]
1614 optimize for fast installation [default=yes]
1615 --disable-libtool-lock avoid locking (might break parallel builds)
1618 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1619 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1620 --with-release=XXX set release to XXX [1]
1621 --with-statedir=/foo use state dir /foo /var/lib/nfs
1622 --with-statduser=rpcuser
1623 statd to run under [rpcuser or nobody]
1624 --with-start-statd=scriptname
1625 When an nfs filesystems is mounted with locking, run
1627 --with-rpcgen=internal use internal rpcgen instead of system one
1628 --with-mountfile=filename
1629 Using filename as the NFS mount options file
1630 [/etc/nfsmounts.conf]
1631 --with-tirpcinclude=DIR use TI-RPC headers in DIR
1632 --with-tcp-wrappers[=PATH] Enable tcpwrappers support
1633 (optionally in PATH)
1634 --with-pic try to use only PIC/non-PIC objects [default=use
1636 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1637 --with-krb5=DIR use Kerberos v5 installation in DIR
1639 Some influential environment variables:
1640 CC C compiler command
1641 CFLAGS C compiler flags
1642 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1643 nonstandard directory <lib dir>
1644 LIBS libraries to pass to the linker, e.g. -l<library>
1645 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1646 you have headers in a nonstandard directory <include dir>
1648 CXX C++ compiler command
1649 CXXFLAGS C++ compiler flags
1650 CXXCPP C++ preprocessor
1651 PKG_CONFIG path to pkg-config utility
1653 C compiler flags for GSSGLUE, overriding pkg-config
1655 linker flags for GSSGLUE, overriding pkg-config
1657 C compiler flags for RPCSECGSS, overriding pkg-config
1659 linker flags for RPCSECGSS, overriding pkg-config
1661 Use these variables to override the choices made by `configure' or to help
1662 it to find libraries and programs with nonstandard names/locations.
1664 Report bugs to <linux-nfs@vger.kernel.org>.
1669 if test "$ac_init_help" = "recursive"; then
1670 # If there are subdirs, report their specific --help.
1671 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1672 test -d "$ac_dir" ||
1673 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1678 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1680 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1681 # A ".." for each directory in $ac_dir_suffix.
1682 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1683 case $ac_top_builddir_sub in
1684 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1685 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1688 ac_abs_top_builddir=$ac_pwd
1689 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1690 # for backward compatibility:
1691 ac_top_builddir=$ac_top_build_prefix
1694 .) # We are building in place.
1696 ac_top_srcdir=$ac_top_builddir_sub
1697 ac_abs_top_srcdir=$ac_pwd ;;
1698 [\\/]* | ?:[\\/]* ) # Absolute name.
1699 ac_srcdir=$srcdir$ac_dir_suffix;
1700 ac_top_srcdir=$srcdir
1701 ac_abs_top_srcdir=$srcdir ;;
1703 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1704 ac_top_srcdir=$ac_top_build_prefix$srcdir
1705 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1707 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1709 cd "$ac_dir" || { ac_status=$?; continue; }
1710 # Check for guested configure.
1711 if test -f "$ac_srcdir/configure.gnu"; then
1713 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1714 elif test -f "$ac_srcdir/configure"; then
1716 $SHELL "$ac_srcdir/configure" --help=recursive
1718 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1720 cd "$ac_pwd" || { ac_status=$?; break; }
1724 test -n "$ac_init_help" && exit $ac_status
1725 if $ac_init_version; then
1727 linux nfs-utils configure 1.2.3
1728 generated by GNU Autoconf 2.65
1730 Copyright (C) 2009 Free Software Foundation, Inc.
1731 This configure script is free software; the Free Software Foundation
1732 gives unlimited permission to copy, distribute and modify it.
1737 ## ------------------------ ##
1738 ## Autoconf initialization. ##
1739 ## ------------------------ ##
1741 # ac_fn_c_try_compile LINENO
1742 # --------------------------
1743 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1744 ac_fn_c_try_compile ()
1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747 rm -f conftest.$ac_objext
1748 if { { ac_try="$ac_compile"
1750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751 *) ac_try_echo=$ac_try;;
1753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754 $as_echo "$ac_try_echo"; } >&5
1755 (eval "$ac_compile") 2>conftest.err
1757 if test -s conftest.err; then
1758 grep -v '^ *+' conftest.err >conftest.er1
1759 cat conftest.er1 >&5
1760 mv -f conftest.er1 conftest.err
1762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763 test $ac_status = 0; } && {
1764 test -z "$ac_c_werror_flag" ||
1765 test ! -s conftest.err
1766 } && test -s conftest.$ac_objext; then :
1769 $as_echo "$as_me: failed program was:" >&5
1770 sed 's/^/| /' conftest.$ac_ext >&5
1774 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1775 as_fn_set_status $ac_retval
1777 } # ac_fn_c_try_compile
1779 # ac_fn_c_try_link LINENO
1780 # -----------------------
1781 # Try to link conftest.$ac_ext, and return whether this succeeded.
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 rm -f conftest.$ac_objext conftest$ac_exeext
1786 if { { ac_try="$ac_link"
1788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1789 *) ac_try_echo=$ac_try;;
1791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792 $as_echo "$ac_try_echo"; } >&5
1793 (eval "$ac_link") 2>conftest.err
1795 if test -s conftest.err; then
1796 grep -v '^ *+' conftest.err >conftest.er1
1797 cat conftest.er1 >&5
1798 mv -f conftest.er1 conftest.err
1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; } && {
1802 test -z "$ac_c_werror_flag" ||
1803 test ! -s conftest.err
1804 } && test -s conftest$ac_exeext && {
1805 test "$cross_compiling" = yes ||
1806 $as_test_x conftest$ac_exeext
1810 $as_echo "$as_me: failed program was:" >&5
1811 sed 's/^/| /' conftest.$ac_ext >&5
1815 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1816 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1817 # interfere with the next link command; also delete a directory that is
1818 # left behind by Apple's compiler. We do this before executing the actions.
1819 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1820 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1821 as_fn_set_status $ac_retval
1823 } # ac_fn_c_try_link
1825 # ac_fn_c_try_cpp LINENO
1826 # ----------------------
1827 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 if { { ac_try="$ac_cpp conftest.$ac_ext"
1833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1834 *) ac_try_echo=$ac_try;;
1836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1837 $as_echo "$ac_try_echo"; } >&5
1838 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1840 if test -s conftest.err; then
1841 grep -v '^ *+' conftest.err >conftest.er1
1842 cat conftest.er1 >&5
1843 mv -f conftest.er1 conftest.err
1845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1846 test $ac_status = 0; } >/dev/null && {
1847 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1848 test ! -s conftest.err
1852 $as_echo "$as_me: failed program was:" >&5
1853 sed 's/^/| /' conftest.$ac_ext >&5
1857 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1858 as_fn_set_status $ac_retval
1862 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1863 # -------------------------------------------------------
1864 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1865 # the include files in INCLUDES and setting the cache variable VAR
1867 ac_fn_c_check_header_mongrel ()
1869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1872 $as_echo_n "checking for $2... " >&6; }
1873 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1874 $as_echo_n "(cached) " >&6
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1878 $as_echo "$ac_res" >&6; }
1880 # Is the header compilable?
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1882 $as_echo_n "checking $2 usability... " >&6; }
1883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1884 /* end confdefs.h. */
1888 if ac_fn_c_try_compile "$LINENO"; then :
1889 ac_header_compiler=yes
1891 ac_header_compiler=no
1893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1895 $as_echo "$ac_header_compiler" >&6; }
1897 # Is the header present?
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1899 $as_echo_n "checking $2 presence... " >&6; }
1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901 /* end confdefs.h. */
1904 if ac_fn_c_try_cpp "$LINENO"; then :
1905 ac_header_preproc=yes
1907 ac_header_preproc=no
1909 rm -f conftest.err conftest.$ac_ext
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1911 $as_echo "$ac_header_preproc" >&6; }
1913 # So? What about this header?
1914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1917 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1919 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1923 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1925 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1927 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1929 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1931 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1933 ## ---------------------------------------- ##
1934 ## Report this to linux-nfs@vger.kernel.org ##
1935 ## ---------------------------------------- ##
1937 ) | sed "s/^/$as_me: WARNING: /" >&2
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1941 $as_echo_n "checking for $2... " >&6; }
1942 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1943 $as_echo_n "(cached) " >&6
1945 eval "$3=\$ac_header_compiler"
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1949 $as_echo "$ac_res" >&6; }
1951 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1953 } # ac_fn_c_check_header_mongrel
1955 # ac_fn_c_try_run LINENO
1956 # ----------------------
1957 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1958 # that executables *can* be run.
1961 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962 if { { ac_try="$ac_link"
1964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1965 *) ac_try_echo=$ac_try;;
1967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1968 $as_echo "$ac_try_echo"; } >&5
1969 (eval "$ac_link") 2>&5
1971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1972 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1973 { { case "(($ac_try" in
1974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1975 *) ac_try_echo=$ac_try;;
1977 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1978 $as_echo "$ac_try_echo"; } >&5
1979 (eval "$ac_try") 2>&5
1981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1982 test $ac_status = 0; }; }; then :
1985 $as_echo "$as_me: program exited with status $ac_status" >&5
1986 $as_echo "$as_me: failed program was:" >&5
1987 sed 's/^/| /' conftest.$ac_ext >&5
1989 ac_retval=$ac_status
1991 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1992 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1993 as_fn_set_status $ac_retval
1997 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1998 # -------------------------------------------------------
1999 # Tests whether HEADER exists and can be compiled using the include files in
2000 # INCLUDES, setting the cache variable VAR accordingly.
2001 ac_fn_c_check_header_compile ()
2003 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2005 $as_echo_n "checking for $2... " >&6; }
2006 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2007 $as_echo_n "(cached) " >&6
2009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2010 /* end confdefs.h. */
2014 if ac_fn_c_try_compile "$LINENO"; then :
2019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2023 $as_echo "$ac_res" >&6; }
2024 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2026 } # ac_fn_c_check_header_compile
2028 # ac_fn_c_check_func LINENO FUNC VAR
2029 # ----------------------------------
2030 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2031 ac_fn_c_check_func ()
2033 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2035 $as_echo_n "checking for $2... " >&6; }
2036 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2037 $as_echo_n "(cached) " >&6
2039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040 /* end confdefs.h. */
2041 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2043 #define $2 innocuous_$2
2045 /* System header to define __stub macros and hopefully few prototypes,
2046 which can conflict with char $2 (); below.
2047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2048 <limits.h> exists even on freestanding compilers. */
2051 # include <limits.h>
2053 # include <assert.h>
2058 /* Override any GCC internal prototype to avoid an error.
2059 Use char because int might match the return type of a GCC
2060 builtin and then its argument prototype would still apply. */
2065 /* The GNU C library defines this for functions which it implements
2066 to always fail with ENOSYS. Some functions are actually named
2067 something starting with __ and the normal name is an alias. */
2068 #if defined __stub_$2 || defined __stub___$2
2080 if ac_fn_c_try_link "$LINENO"; then :
2085 rm -f core conftest.err conftest.$ac_objext \
2086 conftest$ac_exeext conftest.$ac_ext
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2090 $as_echo "$ac_res" >&6; }
2091 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2093 } # ac_fn_c_check_func
2095 # ac_fn_cxx_try_compile LINENO
2096 # ----------------------------
2097 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2098 ac_fn_cxx_try_compile ()
2100 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2101 rm -f conftest.$ac_objext
2102 if { { ac_try="$ac_compile"
2104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2105 *) ac_try_echo=$ac_try;;
2107 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2108 $as_echo "$ac_try_echo"; } >&5
2109 (eval "$ac_compile") 2>conftest.err
2111 if test -s conftest.err; then
2112 grep -v '^ *+' conftest.err >conftest.er1
2113 cat conftest.er1 >&5
2114 mv -f conftest.er1 conftest.err
2116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2117 test $ac_status = 0; } && {
2118 test -z "$ac_cxx_werror_flag" ||
2119 test ! -s conftest.err
2120 } && test -s conftest.$ac_objext; then :
2123 $as_echo "$as_me: failed program was:" >&5
2124 sed 's/^/| /' conftest.$ac_ext >&5
2128 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2129 as_fn_set_status $ac_retval
2131 } # ac_fn_cxx_try_compile
2133 # ac_fn_cxx_try_cpp LINENO
2134 # ------------------------
2135 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2136 ac_fn_cxx_try_cpp ()
2138 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2139 if { { ac_try="$ac_cpp conftest.$ac_ext"
2141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2142 *) ac_try_echo=$ac_try;;
2144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2145 $as_echo "$ac_try_echo"; } >&5
2146 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2148 if test -s conftest.err; then
2149 grep -v '^ *+' conftest.err >conftest.er1
2150 cat conftest.er1 >&5
2151 mv -f conftest.er1 conftest.err
2153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2154 test $ac_status = 0; } >/dev/null && {
2155 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2156 test ! -s conftest.err
2160 $as_echo "$as_me: failed program was:" >&5
2161 sed 's/^/| /' conftest.$ac_ext >&5
2165 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2166 as_fn_set_status $ac_retval
2168 } # ac_fn_cxx_try_cpp
2170 # ac_fn_cxx_try_link LINENO
2171 # -------------------------
2172 # Try to link conftest.$ac_ext, and return whether this succeeded.
2173 ac_fn_cxx_try_link ()
2175 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2176 rm -f conftest.$ac_objext conftest$ac_exeext
2177 if { { ac_try="$ac_link"
2179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2180 *) ac_try_echo=$ac_try;;
2182 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2183 $as_echo "$ac_try_echo"; } >&5
2184 (eval "$ac_link") 2>conftest.err
2186 if test -s conftest.err; then
2187 grep -v '^ *+' conftest.err >conftest.er1
2188 cat conftest.er1 >&5
2189 mv -f conftest.er1 conftest.err
2191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2192 test $ac_status = 0; } && {
2193 test -z "$ac_cxx_werror_flag" ||
2194 test ! -s conftest.err
2195 } && test -s conftest$ac_exeext && {
2196 test "$cross_compiling" = yes ||
2197 $as_test_x conftest$ac_exeext
2201 $as_echo "$as_me: failed program was:" >&5
2202 sed 's/^/| /' conftest.$ac_ext >&5
2206 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2207 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2208 # interfere with the next link command; also delete a directory that is
2209 # left behind by Apple's compiler. We do this before executing the actions.
2210 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2211 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2212 as_fn_set_status $ac_retval
2214 } # ac_fn_cxx_try_link
2216 # ac_fn_c_check_decl LINENO SYMBOL VAR
2217 # ------------------------------------
2218 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2219 ac_fn_c_check_decl ()
2221 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2223 $as_echo_n "checking whether $2 is declared... " >&6; }
2224 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2225 $as_echo_n "(cached) " >&6
2227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2228 /* end confdefs.h. */
2241 if ac_fn_c_try_compile "$LINENO"; then :
2246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2250 $as_echo "$ac_res" >&6; }
2251 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2253 } # ac_fn_c_check_decl
2255 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2256 # -------------------------------------------
2257 # Tests whether TYPE exists after having included INCLUDES, setting cache
2258 # variable VAR accordingly.
2259 ac_fn_c_check_type ()
2261 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2263 $as_echo_n "checking for $2... " >&6; }
2264 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2265 $as_echo_n "(cached) " >&6
2268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2269 /* end confdefs.h. */
2280 if ac_fn_c_try_compile "$LINENO"; then :
2281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2282 /* end confdefs.h. */
2293 if ac_fn_c_try_compile "$LINENO"; then :
2298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2304 $as_echo "$ac_res" >&6; }
2305 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2307 } # ac_fn_c_check_type
2309 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2310 # --------------------------------------------
2311 # Tries to find the compile-time value of EXPR in a program that includes
2312 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2314 ac_fn_c_compute_int ()
2316 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2317 if test "$cross_compiling" = yes; then
2318 # Depending upon the size, compute the lo and hi bounds.
2319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2320 /* end confdefs.h. */
2325 static int test_array [1 - 2 * !(($2) >= 0)];
2332 if ac_fn_c_try_compile "$LINENO"; then :
2335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2336 /* end confdefs.h. */
2341 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2348 if ac_fn_c_try_compile "$LINENO"; then :
2349 ac_hi=$ac_mid; break
2351 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2352 if test $ac_lo -le $ac_mid; then
2356 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2362 /* end confdefs.h. */
2367 static int test_array [1 - 2 * !(($2) < 0)];
2374 if ac_fn_c_try_compile "$LINENO"; then :
2377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2378 /* end confdefs.h. */
2383 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2390 if ac_fn_c_try_compile "$LINENO"; then :
2391 ac_lo=$ac_mid; break
2393 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2394 if test $ac_mid -le $ac_hi; then
2398 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2408 # Binary search between lo and hi bounds.
2409 while test "x$ac_lo" != "x$ac_hi"; do
2410 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2412 /* end confdefs.h. */
2417 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2424 if ac_fn_c_try_compile "$LINENO"; then :
2427 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2432 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2437 /* end confdefs.h. */
2439 static long int longval () { return $2; }
2440 static unsigned long int ulongval () { return $2; }
2447 FILE *f = fopen ("conftest.val", "w");
2452 long int i = longval ();
2455 fprintf (f, "%ld", i);
2459 unsigned long int i = ulongval ();
2462 fprintf (f, "%lu", i);
2464 /* Do not output a trailing newline, as this causes \r\n confusion
2465 on some platforms. */
2466 return ferror (f) || fclose (f) != 0;
2472 if ac_fn_c_try_run "$LINENO"; then :
2473 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2477 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2478 conftest.$ac_objext conftest.beam conftest.$ac_ext
2482 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2483 as_fn_set_status $ac_retval
2485 } # ac_fn_c_compute_int
2486 cat >config.log <<_ACEOF
2487 This file contains any messages produced by compilers while
2488 running configure, to aid debugging if configure makes a mistake.
2490 It was created by linux nfs-utils $as_me 1.2.3, which was
2491 generated by GNU Autoconf 2.65. Invocation command line was
2503 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2504 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2505 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2506 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2507 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2509 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2510 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2512 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2513 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2514 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2515 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2516 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2517 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2518 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 test -z "$as_dir" && as_dir=.
2527 $as_echo "PATH: $as_dir"
2543 # Keep a trace of the command line.
2544 # Strip out --no-create and --no-recursion so they do not pile up.
2545 # Strip out --silent because we don't want to record it for future runs.
2546 # Also quote any args containing shell meta-characters.
2547 # Make two passes to allow for proper duplicate-argument suppression.
2551 ac_must_keep_next=false
2557 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2558 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2559 | -silent | --silent | --silen | --sile | --sil)
2562 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2565 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2567 as_fn_append ac_configure_args1 " '$ac_arg'"
2568 if test $ac_must_keep_next = true; then
2569 ac_must_keep_next=false # Got value, back to normal.
2572 *=* | --config-cache | -C | -disable-* | --disable-* \
2573 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2574 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2575 | -with-* | --with-* | -without-* | --without-* | --x)
2576 case "$ac_configure_args0 " in
2577 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2580 -* ) ac_must_keep_next=true ;;
2583 as_fn_append ac_configure_args " '$ac_arg'"
2588 { ac_configure_args0=; unset ac_configure_args0;}
2589 { ac_configure_args1=; unset ac_configure_args1;}
2591 # When interrupted or exit'd, cleanup temporary files, and complete
2592 # config.log. We remove comments because anyway the quotes in there
2593 # would cause problems or look ugly.
2594 # WARNING: Use '\'' to represent an apostrophe within the trap.
2595 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2596 trap 'exit_status=$?
2597 # Save into config.log some information that might help in debugging.
2602 ## ---------------- ##
2603 ## Cache variables. ##
2604 ## ---------------- ##
2607 # The following way of writing the cache mishandles newlines in values,
2609 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2610 eval ac_val=\$$ac_var
2614 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2615 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2618 _ | IFS | as_nl) ;; #(
2619 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2620 *) { eval $ac_var=; unset $ac_var;} ;;
2625 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2626 *${as_nl}ac_space=\ *)
2628 "s/'\''/'\''\\\\'\'''\''/g;
2629 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2632 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2640 ## ----------------- ##
2641 ## Output variables. ##
2642 ## ----------------- ##
2645 for ac_var in $ac_subst_vars
2647 eval ac_val=\$$ac_var
2649 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2651 $as_echo "$ac_var='\''$ac_val'\''"
2655 if test -n "$ac_subst_files"; then
2657 ## ------------------- ##
2658 ## File substitutions. ##
2659 ## ------------------- ##
2662 for ac_var in $ac_subst_files
2664 eval ac_val=\$$ac_var
2666 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2668 $as_echo "$ac_var='\''$ac_val'\''"
2673 if test -s confdefs.h; then
2683 test "$ac_signal" != 0 &&
2684 $as_echo "$as_me: caught signal $ac_signal"
2685 $as_echo "$as_me: exit $exit_status"
2687 rm -f core *.core core.conftest.* &&
2688 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2691 for ac_signal in 1 2 13 15; do
2692 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2696 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2697 rm -f -r conftest* confdefs.h
2699 $as_echo "/* confdefs.h */" > confdefs.h
2701 # Predefined preprocessor variables.
2703 cat >>confdefs.h <<_ACEOF
2704 #define PACKAGE_NAME "$PACKAGE_NAME"
2707 cat >>confdefs.h <<_ACEOF
2708 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2711 cat >>confdefs.h <<_ACEOF
2712 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2715 cat >>confdefs.h <<_ACEOF
2716 #define PACKAGE_STRING "$PACKAGE_STRING"
2719 cat >>confdefs.h <<_ACEOF
2720 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2723 cat >>confdefs.h <<_ACEOF
2724 #define PACKAGE_URL "$PACKAGE_URL"
2728 # Let the site file select an alternate cache file if it wants to.
2729 # Prefer an explicitly selected file to automatically selected ones.
2732 if test -n "$CONFIG_SITE"; then
2733 ac_site_file1=$CONFIG_SITE
2734 elif test "x$prefix" != xNONE; then
2735 ac_site_file1=$prefix/share/config.site
2736 ac_site_file2=$prefix/etc/config.site
2738 ac_site_file1=$ac_default_prefix/share/config.site
2739 ac_site_file2=$ac_default_prefix/etc/config.site
2741 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2743 test "x$ac_site_file" = xNONE && continue
2744 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2746 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2747 sed 's/^/| /' "$ac_site_file" >&5
2752 if test -r "$cache_file"; then
2753 # Some versions of bash will fail to source /dev/null (special files
2754 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2755 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2757 $as_echo "$as_me: loading cache $cache_file" >&6;}
2759 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2760 *) . "./$cache_file";;
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2765 $as_echo "$as_me: creating cache $cache_file" >&6;}
2769 # Check that the precious variables saved in the cache have kept the same
2771 ac_cache_corrupted=false
2772 for ac_var in $ac_precious_vars; do
2773 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2774 eval ac_new_set=\$ac_env_${ac_var}_set
2775 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2776 eval ac_new_val=\$ac_env_${ac_var}_value
2777 case $ac_old_set,$ac_new_set in
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2780 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2781 ac_cache_corrupted=: ;;
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2784 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2785 ac_cache_corrupted=: ;;
2788 if test "x$ac_old_val" != "x$ac_new_val"; then
2789 # differences in whitespace do not lead to failure.
2790 ac_old_val_w=`echo x $ac_old_val`
2791 ac_new_val_w=`echo x $ac_new_val`
2792 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2794 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2795 ac_cache_corrupted=:
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2798 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2799 eval $ac_var=\$ac_old_val
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2802 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2804 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2807 # Pass precious variables to config.status.
2808 if test "$ac_new_set" = set; then
2810 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2811 *) ac_arg=$ac_var=$ac_new_val ;;
2813 case " $ac_configure_args " in
2814 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2815 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2819 if $ac_cache_corrupted; then
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2821 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2823 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2824 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2826 ## -------------------- ##
2827 ## Main body of script. ##
2828 ## -------------------- ##
2831 ac_cpp='$CPP $CPPFLAGS'
2832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2838 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2839 for ac_t in install-sh install.sh shtool; do
2840 if test -f "$ac_dir/$ac_t"; then
2842 ac_install_sh="$ac_aux_dir/$ac_t -c"
2847 if test -z "$ac_aux_dir"; then
2848 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2851 # These three variables are undocumented and unsupported,
2852 # and are intended to be withdrawn in a future Autoconf release.
2853 # They can cause serious problems if a builder's source tree is in a directory
2854 # whose full name contains unusual characters.
2855 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2856 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2857 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2860 # Make sure we can run config.sub.
2861 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2862 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2865 $as_echo_n "checking build system type... " >&6; }
2866 if test "${ac_cv_build+set}" = set; then :
2867 $as_echo_n "(cached) " >&6
2869 ac_build_alias=$build_alias
2870 test "x$ac_build_alias" = x &&
2871 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2872 test "x$ac_build_alias" = x &&
2873 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2874 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2875 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2879 $as_echo "$ac_cv_build" >&6; }
2880 case $ac_cv_build in
2882 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2885 ac_save_IFS=$IFS; IFS='-'
2891 # Remember, the first character of IFS is used to create $*,
2892 # except with old shells:
2895 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2899 $as_echo_n "checking host system type... " >&6; }
2900 if test "${ac_cv_host+set}" = set; then :
2901 $as_echo_n "(cached) " >&6
2903 if test "x$host_alias" = x; then
2904 ac_cv_host=$ac_cv_build
2906 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2907 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2912 $as_echo "$ac_cv_host" >&6; }
2915 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2918 ac_save_IFS=$IFS; IFS='-'
2924 # Remember, the first character of IFS is used to create $*,
2925 # except with old shells:
2928 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2932 am__api_version='1.11'
2934 # Find a good install program. We prefer a C program (faster),
2935 # so one script is as good as another. But avoid the broken or
2936 # incompatible versions:
2937 # SysV /etc/install, /usr/sbin/install
2938 # SunOS /usr/etc/install
2939 # IRIX /sbin/install
2941 # AmigaOS /C/install, which installs bootblocks on floppy discs
2942 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2943 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2944 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2945 # OS/2's system install, which has a completely different semantic
2946 # ./install, which can be erroneously created by make from ./install.sh.
2947 # Reject install programs that cannot install multiple files.
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2949 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2950 if test -z "$INSTALL"; then
2951 if test "${ac_cv_path_install+set}" = set; then :
2952 $as_echo_n "(cached) " >&6
2954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2958 test -z "$as_dir" && as_dir=.
2959 # Account for people who put trailing slashes in PATH elements.
2960 case $as_dir/ in #((
2961 ./ | .// | /[cC]/* | \
2962 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2963 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2966 # OSF1 and SCO ODT 3.0 have their own names for install.
2967 # Don't use installbsd from OSF since it installs stuff as root
2969 for ac_prog in ginstall scoinst install; do
2970 for ac_exec_ext in '' $ac_executable_extensions; do
2971 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2972 if test $ac_prog = install &&
2973 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2974 # AIX install. It has an incompatible calling convention.
2976 elif test $ac_prog = install &&
2977 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2978 # program-specific install script used by HP pwplus--don't use.
2981 rm -rf conftest.one conftest.two conftest.dir
2982 echo one > conftest.one
2983 echo two > conftest.two
2985 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2986 test -s conftest.one && test -s conftest.two &&
2987 test -s conftest.dir/conftest.one &&
2988 test -s conftest.dir/conftest.two
2990 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3003 rm -rf conftest.one conftest.two conftest.dir
3006 if test "${ac_cv_path_install+set}" = set; then
3007 INSTALL=$ac_cv_path_install
3009 # As a last resort, use the slow shell script. Don't cache a
3010 # value for INSTALL within a source directory, because that will
3011 # break other packages using the cache if that directory is
3012 # removed, or if the value is a relative name.
3013 INSTALL=$ac_install_sh
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3017 $as_echo "$INSTALL" >&6; }
3019 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3020 # It thinks the first close brace ends the variable substitution.
3021 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3023 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3025 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3028 $as_echo_n "checking whether build environment is sane... " >&6; }
3031 echo timestamp > conftest.file
3032 # Reject unsafe characters in $srcdir or the absolute working directory
3033 # name. Accept space and tab only in the latter.
3037 *[\\\"\#\$\&\'\`$am_lf]*)
3038 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3041 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3042 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3045 # Do `set' in a subshell so we don't clobber the current shell's
3046 # arguments. Must try -L first in case configure is actually a
3047 # symlink; some systems play weird games with the mod time of symlinks
3048 # (eg FreeBSD returns the mod time of the symlink's containing
3051 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3052 if test "$*" = "X"; then
3054 set X `ls -t "$srcdir/configure" conftest.file`
3057 if test "$*" != "X $srcdir/configure conftest.file" \
3058 && test "$*" != "X conftest.file $srcdir/configure"; then
3060 # If neither matched, then we have a broken ls. This can happen
3061 # if, for instance, CONFIG_SHELL is bash and it inherits a
3062 # broken ls alias from the environment. This has actually
3063 # happened. Such a system could not be considered "sane".
3064 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3065 alias in your environment" "$LINENO" 5
3068 test "$2" = conftest.file
3074 as_fn_error "newly created file is older than distributed files!
3075 Check your system clock" "$LINENO" 5
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3078 $as_echo "yes" >&6; }
3079 test "$program_prefix" != NONE &&
3080 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3081 # Use a double $ so make ignores it.
3082 test "$program_suffix" != NONE &&
3083 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3084 # Double any \ or $.
3085 # By default was `s,x,x', remove it if useless.
3086 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3087 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3089 # expand $ac_aux_dir to an absolute path
3090 am_aux_dir=`cd $ac_aux_dir && pwd`
3092 if test x"${MISSING+set}" != xset; then
3095 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3097 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3100 # Use eval to expand $SHELL
3101 if eval "$MISSING --run true"; then
3102 am_missing_run="$MISSING --run "
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3106 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3109 if test x"${install_sh}" != xset; then
3112 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3114 install_sh="\${SHELL} $am_aux_dir/install-sh"
3118 # Installed binaries are usually stripped using `strip' when the user
3119 # run `make install-strip'. However `strip' might not be the right
3120 # tool to use in cross-compilation environments, therefore Automake
3121 # will honor the `STRIP' environment variable to overrule this program.
3122 if test "$cross_compiling" != no; then
3123 if test -n "$ac_tool_prefix"; then
3124 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3125 set dummy ${ac_tool_prefix}strip; ac_word=$2
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3127 $as_echo_n "checking for $ac_word... " >&6; }
3128 if test "${ac_cv_prog_STRIP+set}" = set; then :
3129 $as_echo_n "(cached) " >&6
3131 if test -n "$STRIP"; then
3132 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138 test -z "$as_dir" && as_dir=.
3139 for ac_exec_ext in '' $ac_executable_extensions; do
3140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3141 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3151 STRIP=$ac_cv_prog_STRIP
3152 if test -n "$STRIP"; then
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3154 $as_echo "$STRIP" >&6; }
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3157 $as_echo "no" >&6; }
3162 if test -z "$ac_cv_prog_STRIP"; then
3164 # Extract the first word of "strip", so it can be a program name with args.
3165 set dummy strip; ac_word=$2
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3167 $as_echo_n "checking for $ac_word... " >&6; }
3168 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3169 $as_echo_n "(cached) " >&6
3171 if test -n "$ac_ct_STRIP"; then
3172 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178 test -z "$as_dir" && as_dir=.
3179 for ac_exec_ext in '' $ac_executable_extensions; do
3180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3181 ac_cv_prog_ac_ct_STRIP="strip"
3182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3191 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3192 if test -n "$ac_ct_STRIP"; then
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3194 $as_echo "$ac_ct_STRIP" >&6; }
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197 $as_echo "no" >&6; }
3200 if test "x$ac_ct_STRIP" = x; then
3203 case $cross_compiling:$ac_tool_warned in
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3206 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3207 ac_tool_warned=yes ;;
3212 STRIP="$ac_cv_prog_STRIP"
3216 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3219 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3220 if test -z "$MKDIR_P"; then
3221 if test "${ac_cv_path_mkdir+set}" = set; then :
3222 $as_echo_n "(cached) " >&6
3224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3228 test -z "$as_dir" && as_dir=.
3229 for ac_prog in mkdir gmkdir; do
3230 for ac_exec_ext in '' $ac_executable_extensions; do
3231 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3232 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3233 'mkdir (GNU coreutils) '* | \
3234 'mkdir (coreutils) '* | \
3235 'mkdir (fileutils) '4.1*)
3236 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3246 test -d ./--version && rmdir ./--version
3247 if test "${ac_cv_path_mkdir+set}" = set; then
3248 MKDIR_P="$ac_cv_path_mkdir -p"
3250 # As a last resort, use the slow shell script. Don't cache a
3251 # value for MKDIR_P within a source directory, because that will
3252 # break other packages using the cache if that directory is
3253 # removed, or if the value is a relative name.
3254 MKDIR_P="$ac_install_sh -d"
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3258 $as_echo "$MKDIR_P" >&6; }
3262 [\\/$]* | ?:[\\/]*) ;;
3263 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3266 for ac_prog in gawk mawk nawk awk
3268 # Extract the first word of "$ac_prog", so it can be a program name with args.
3269 set dummy $ac_prog; ac_word=$2
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3271 $as_echo_n "checking for $ac_word... " >&6; }
3272 if test "${ac_cv_prog_AWK+set}" = set; then :
3273 $as_echo_n "(cached) " >&6
3275 if test -n "$AWK"; then
3276 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3282 test -z "$as_dir" && as_dir=.
3283 for ac_exec_ext in '' $ac_executable_extensions; do
3284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3285 ac_cv_prog_AWK="$ac_prog"
3286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3296 if test -n "$AWK"; then
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3298 $as_echo "$AWK" >&6; }
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3301 $as_echo "no" >&6; }
3305 test -n "$AWK" && break
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3309 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3311 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3312 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3313 $as_echo_n "(cached) " >&6
3315 cat >conftest.make <<\_ACEOF
3318 @echo '@@@%%%=$(MAKE)=@@@%%%'
3320 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3321 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3323 eval ac_cv_prog_make_${ac_make}_set=yes;;
3325 eval ac_cv_prog_make_${ac_make}_set=no;;
3329 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3331 $as_echo "yes" >&6; }
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3335 $as_echo "no" >&6; }
3336 SET_MAKE="MAKE=${MAKE-make}"
3339 rm -rf .tst 2>/dev/null
3340 mkdir .tst 2>/dev/null
3341 if test -d .tst; then
3346 rmdir .tst 2>/dev/null
3348 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3349 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3350 # is not polluted with repeated "-I."
3351 am__isrc=' -I$(srcdir)'
3352 # test to see if srcdir already configured
3353 if test -f $srcdir/config.status; then
3354 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3358 # test whether we have cygpath
3359 if test -z "$CYGPATH_W"; then
3360 if (cygpath --version) >/dev/null 2>/dev/null; then
3361 CYGPATH_W='cygpath -w'
3368 # Define the identity of the package.
3373 cat >>confdefs.h <<_ACEOF
3374 #define PACKAGE "$PACKAGE"
3378 cat >>confdefs.h <<_ACEOF
3379 #define VERSION "$VERSION"
3382 # Some tools Automake needs.
3384 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3387 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3390 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3393 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3396 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3398 # We need awk for the "check" target. The system "awk" is bad on
3400 # Always define AMTAR for backward compatibility.
3402 AMTAR=${AMTAR-"${am_missing_run}tar"}
3404 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3414 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3415 # Check whether --enable-maintainer-mode was given.
3416 if test "${enable_maintainer_mode+set}" = set; then :
3417 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3419 USE_MAINTAINER_MODE=no
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3423 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3424 if test $USE_MAINTAINER_MODE = yes; then
3425 MAINTAINER_MODE_TRUE=
3426 MAINTAINER_MODE_FALSE='#'
3428 MAINTAINER_MODE_TRUE='#'
3429 MAINTAINER_MODE_FALSE=
3432 MAINT=$MAINTAINER_MODE_TRUE
3437 # Check whether --with-release was given.
3438 if test "${with_release+set}" = set; then :
3439 withval=$with_release; RELEASE=$withval
3446 # Check whether --with-statedir was given.
3447 if test "${with_statedir+set}" = set; then :
3448 withval=$with_statedir; statedir=$withval
3450 statedir=/var/lib/nfs
3455 # Check whether --with-statduser was given.
3456 if test "${with_statduser+set}" = set; then :
3457 withval=$with_statduser; statduser=$withval
3459 if test "x$cross_compiling" = "xno"; then
3460 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
3472 # Check whether --with-start-statd was given.
3473 if test "${with_start_statd+set}" = set; then :
3474 withval=$with_start_statd; startstatd=$withval
3476 startstatd=/usr/sbin/start-statd
3482 cat >>confdefs.h <<_ACEOF
3483 #define START_STATD "$startstatd"
3486 # Check whether --enable-nfsv3 was given.
3487 if test "${enable_nfsv3+set}" = set; then :
3488 enableval=$enable_nfsv3; enable_nfsv3=$enableval
3493 if test "$enable_nfsv3" = yes; then
3495 $as_echo "#define NFS3_SUPPORTED 1" >>confdefs.h
3501 # Check whether --enable-nfsv4 was given.
3502 if test "${enable_nfsv4+set}" = set; then :
3503 enableval=$enable_nfsv4; enable_nfsv4=$enableval
3508 if test "$enable_nfsv4" = yes; then
3510 $as_echo "#define NFS4_SUPPORTED 1" >>confdefs.h
3519 if test "$enable_nfsv4" = "yes"; then
3521 CONFIG_NFSV4_FALSE='#'
3523 CONFIG_NFSV4_TRUE='#'
3528 # Check whether --enable-nfsv41 was given.
3529 if test "${enable_nfsv41+set}" = set; then :
3530 enableval=$enable_nfsv41; enable_nfsv41=$enableval
3535 if test "$enable_nfsv41" = yes; then
3537 $as_echo "#define NFS41_SUPPORTED 1" >>confdefs.h
3543 if test "$enable_nfsv41" = "yes"; then
3545 CONFIG_NFSV41_FALSE='#'
3547 CONFIG_NFSV41_TRUE='#'
3548 CONFIG_NFSV41_FALSE=
3552 # Check whether --enable-gss was given.
3553 if test "${enable_gss+set}" = set; then :
3554 enableval=$enable_gss; enable_gss=$enableval
3559 if test "$enable_gss" = yes; then
3561 $as_echo "#define GSS_SUPPORTED 1" >>confdefs.h
3573 if test "$enable_gss" = "yes"; then
3575 CONFIG_GSS_FALSE='#'
3581 # Check whether --enable-kprefix was given.
3582 if test "${enable_kprefix+set}" = set; then :
3583 enableval=$enable_kprefix; test "$enableval" = "yes" && kprefix=k
3590 # Check whether --with-rpcgen was given.
3591 if test "${with_rpcgen+set}" = set; then :
3592 withval=$with_rpcgen; rpcgen_path=$withval
3598 if test "$rpcgen_path" == "yes"; then
3599 for p in /usr/local/bin/rpcgen /usr/bin/rpcgen /bin/rpcgen
3600 do if test -f $p ; then RPCGEN_PATH=$p ; break; fi ; done
3601 elif test "$rpcgen_path" != "internal"; then
3602 RPCGEN_PATH=$rpcgen_path
3605 if test "$RPCGEN_PATH" == ""; then
3607 CONFIG_RPCGEN_FALSE='#'
3609 CONFIG_RPCGEN_TRUE='#'
3610 CONFIG_RPCGEN_FALSE=
3613 # Check whether --enable-uuid was given.
3614 if test "${enable_uuid+set}" = set; then :
3615 enableval=$enable_uuid; if test "$enableval" = "yes" ; then choose_blkid=yes; else choose_blkid=no; fi
3617 choose_blkid=default
3620 # Check whether --enable-mount was given.
3621 if test "${enable_mount+set}" = set; then :
3622 enableval=$enable_mount; enable_mount=$enableval
3627 if test "$enable_mount" = "yes"; then
3629 CONFIG_MOUNT_FALSE='#'
3631 CONFIG_MOUNT_TRUE='#'
3635 # Check whether --enable-tirpc was given.
3636 if test "${enable_tirpc+set}" = set; then :
3637 enableval=$enable_tirpc; enable_tirpc=$enableval
3642 # Check whether --enable-ipv6 was given.
3643 if test "${enable_ipv6+set}" = set; then :
3644 enableval=$enable_ipv6; enable_ipv6=$enableval
3649 if test "$enable_ipv6" = yes; then
3651 $as_echo "#define IPV6_SUPPORTED 1" >>confdefs.h
3657 if test "$enable_ipv6" = "yes"; then
3659 CONFIG_IPV6_FALSE='#'
3661 CONFIG_IPV6_TRUE='#'
3666 if test "$enable_mount" = yes; then
3667 # Check whether --enable-mountconfig was given.
3668 if test "${enable_mountconfig+set}" = set; then :
3669 enableval=$enable_mountconfig; mountconfig=$enableval
3674 if test "$enable_mountconfig" = yes; then
3676 $as_echo "#define MOUNT_CONFIG 1" >>confdefs.h
3679 # Check whether --with-mountfile was given.
3680 if test "${with_mountfile+set}" = set; then :
3681 withval=$with_mountfile; mountfile=$withval
3683 mountfile=/etc/nfsmount.conf
3688 cat >>confdefs.h <<_ACEOF
3689 #define MOUNTOPTS_CONFFILE "$mountfile"
3696 if test "$enable_mountconfig" = "yes"; then
3698 MOUNT_CONFIG_FALSE='#'
3700 MOUNT_CONFIG_TRUE='#'
3705 if test "$enable_mount" = "yes"; then
3707 MOUNT_CONFIG_FALSE='#'
3709 MOUNT_CONFIG_TRUE='#'
3715 DEPDIR="${am__leading_dot}deps"
3717 ac_config_commands="$ac_config_commands depfiles"
3720 am_make=${MAKE-make}
3721 cat > confinc << 'END'
3723 @echo this is the am__doit target
3726 # If we don't find an include directive, just comment out the code.
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3728 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3732 # First try GNU make style include.
3733 echo "include confinc" > confmf
3734 # Ignore all kinds of additional output from `make'.
3735 case `$am_make -s -f confmf 2> /dev/null` in #(
3736 *the\ am__doit\ target*)
3742 # Now try BSD make style include.
3743 if test "$am__include" = "#"; then
3744 echo '.include "confinc"' > confmf
3745 case `$am_make -s -f confmf 2> /dev/null` in #(
3746 *the\ am__doit\ target*)
3747 am__include=.include
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3756 $as_echo "$_am_result" >&6; }
3757 rm -f confinc confmf
3759 # Check whether --enable-dependency-tracking was given.
3760 if test "${enable_dependency_tracking+set}" = set; then :
3761 enableval=$enable_dependency_tracking;
3764 if test "x$enable_dependency_tracking" != xno; then
3765 am_depcomp="$ac_aux_dir/depcomp"
3768 if test "x$enable_dependency_tracking" != xno; then
3778 ac_cpp='$CPP $CPPFLAGS'
3779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3782 if test -n "$ac_tool_prefix"; then
3783 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3784 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3786 $as_echo_n "checking for $ac_word... " >&6; }
3787 if test "${ac_cv_prog_CC+set}" = set; then :
3788 $as_echo_n "(cached) " >&6
3790 if test -n "$CC"; then
3791 ac_cv_prog_CC="$CC" # Let the user override the test.
3793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3797 test -z "$as_dir" && as_dir=.
3798 for ac_exec_ext in '' $ac_executable_extensions; do
3799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3800 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3811 if test -n "$CC"; then
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3813 $as_echo "$CC" >&6; }
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3816 $as_echo "no" >&6; }
3821 if test -z "$ac_cv_prog_CC"; then
3823 # Extract the first word of "gcc", so it can be a program name with args.
3824 set dummy gcc; ac_word=$2
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3826 $as_echo_n "checking for $ac_word... " >&6; }
3827 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3828 $as_echo_n "(cached) " >&6
3830 if test -n "$ac_ct_CC"; then
3831 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3837 test -z "$as_dir" && as_dir=.
3838 for ac_exec_ext in '' $ac_executable_extensions; do
3839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3840 ac_cv_prog_ac_ct_CC="gcc"
3841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3850 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3851 if test -n "$ac_ct_CC"; then
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3853 $as_echo "$ac_ct_CC" >&6; }
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3856 $as_echo "no" >&6; }
3859 if test "x$ac_ct_CC" = x; then
3862 case $cross_compiling:$ac_tool_warned in
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3865 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3866 ac_tool_warned=yes ;;
3874 if test -z "$CC"; then
3875 if test -n "$ac_tool_prefix"; then
3876 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3877 set dummy ${ac_tool_prefix}cc; ac_word=$2
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3879 $as_echo_n "checking for $ac_word... " >&6; }
3880 if test "${ac_cv_prog_CC+set}" = set; then :
3881 $as_echo_n "(cached) " >&6
3883 if test -n "$CC"; then
3884 ac_cv_prog_CC="$CC" # Let the user override the test.
3886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3890 test -z "$as_dir" && as_dir=.
3891 for ac_exec_ext in '' $ac_executable_extensions; do
3892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3893 ac_cv_prog_CC="${ac_tool_prefix}cc"
3894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3904 if test -n "$CC"; then
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3906 $as_echo "$CC" >&6; }
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3909 $as_echo "no" >&6; }
3915 if test -z "$CC"; then
3916 # Extract the first word of "cc", so it can be a program name with args.
3917 set dummy cc; ac_word=$2
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3919 $as_echo_n "checking for $ac_word... " >&6; }
3920 if test "${ac_cv_prog_CC+set}" = set; then :
3921 $as_echo_n "(cached) " >&6
3923 if test -n "$CC"; then
3924 ac_cv_prog_CC="$CC" # Let the user override the test.
3927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931 test -z "$as_dir" && as_dir=.
3932 for ac_exec_ext in '' $ac_executable_extensions; do
3933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3934 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3935 ac_prog_rejected=yes
3939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3946 if test $ac_prog_rejected = yes; then
3947 # We found a bogon in the path, so make sure we never use it.
3948 set dummy $ac_cv_prog_CC
3950 if test $# != 0; then
3951 # We chose a different compiler from the bogus one.
3952 # However, it has the same basename, so the bogon will be chosen
3953 # first if we set CC to just the basename; use the full file name.
3955 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3961 if test -n "$CC"; then
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3963 $as_echo "$CC" >&6; }
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3966 $as_echo "no" >&6; }
3971 if test -z "$CC"; then
3972 if test -n "$ac_tool_prefix"; then
3973 for ac_prog in cl.exe
3975 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3976 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3978 $as_echo_n "checking for $ac_word... " >&6; }
3979 if test "${ac_cv_prog_CC+set}" = set; then :
3980 $as_echo_n "(cached) " >&6
3982 if test -n "$CC"; then
3983 ac_cv_prog_CC="$CC" # Let the user override the test.
3985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989 test -z "$as_dir" && as_dir=.
3990 for ac_exec_ext in '' $ac_executable_extensions; do
3991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3992 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4003 if test -n "$CC"; then
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4005 $as_echo "$CC" >&6; }
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4008 $as_echo "no" >&6; }
4012 test -n "$CC" && break
4015 if test -z "$CC"; then
4017 for ac_prog in cl.exe
4019 # Extract the first word of "$ac_prog", so it can be a program name with args.
4020 set dummy $ac_prog; ac_word=$2
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4022 $as_echo_n "checking for $ac_word... " >&6; }
4023 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4024 $as_echo_n "(cached) " >&6
4026 if test -n "$ac_ct_CC"; then
4027 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4033 test -z "$as_dir" && as_dir=.
4034 for ac_exec_ext in '' $ac_executable_extensions; do
4035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4036 ac_cv_prog_ac_ct_CC="$ac_prog"
4037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4046 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4047 if test -n "$ac_ct_CC"; then
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4049 $as_echo "$ac_ct_CC" >&6; }
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4052 $as_echo "no" >&6; }
4056 test -n "$ac_ct_CC" && break
4059 if test "x$ac_ct_CC" = x; then
4062 case $cross_compiling:$ac_tool_warned in
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4065 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4066 ac_tool_warned=yes ;;
4075 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4077 as_fn_error "no acceptable C compiler found in \$PATH
4078 See \`config.log' for more details." "$LINENO" 5; }
4080 # Provide some information about the compiler.
4081 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4084 for ac_option in --version -v -V -qversion; do
4085 { { ac_try="$ac_compiler $ac_option >&5"
4087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4088 *) ac_try_echo=$ac_try;;
4090 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4091 $as_echo "$ac_try_echo"; } >&5
4092 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4094 if test -s conftest.err; then
4096 ... rest of stderr output deleted ...
4097 10q' conftest.err >conftest.er1
4098 cat conftest.er1 >&5
4100 rm -f conftest.er1 conftest.err
4101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4102 test $ac_status = 0; }
4105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4106 /* end confdefs.h. */
4116 ac_clean_files_save=$ac_clean_files
4117 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4118 # Try to create an executable without -o first, disregard a.out.
4119 # It will help us diagnose broken compilers, and finding out an intuition
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4122 $as_echo_n "checking whether the C compiler works... " >&6; }
4123 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4125 # The possible output files:
4126 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4129 for ac_file in $ac_files
4132 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4133 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4138 if { { ac_try="$ac_link_default"
4140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4141 *) ac_try_echo=$ac_try;;
4143 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4144 $as_echo "$ac_try_echo"; } >&5
4145 (eval "$ac_link_default") 2>&5
4147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4148 test $ac_status = 0; }; then :
4149 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4150 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4151 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4152 # so that the user can short-circuit this test for compilers unknown to
4154 for ac_file in $ac_files ''
4156 test -f "$ac_file" || continue
4158 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4161 # We found the default executable, but exeext='' is most
4165 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4167 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4169 # We set ac_cv_exeext here because the later test for it is not
4170 # safe: cross compilers may not add the suffix if given an `-o'
4171 # argument, so we may need to know it at that point already.
4172 # Even if this section looks crufty: it has the advantage of
4179 test "$ac_cv_exeext" = no && ac_cv_exeext=
4184 if test -z "$ac_file"; then :
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4186 $as_echo "no" >&6; }
4187 $as_echo "$as_me: failed program was:" >&5
4188 sed 's/^/| /' conftest.$ac_ext >&5
4190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4192 { as_fn_set_status 77
4193 as_fn_error "C compiler cannot create executables
4194 See \`config.log' for more details." "$LINENO" 5; }; }
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4197 $as_echo "yes" >&6; }
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4200 $as_echo_n "checking for C compiler default output file name... " >&6; }
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4202 $as_echo "$ac_file" >&6; }
4203 ac_exeext=$ac_cv_exeext
4205 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4206 ac_clean_files=$ac_clean_files_save
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4208 $as_echo_n "checking for suffix of executables... " >&6; }
4209 if { { ac_try="$ac_link"
4211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4212 *) ac_try_echo=$ac_try;;
4214 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4215 $as_echo "$ac_try_echo"; } >&5
4216 (eval "$ac_link") 2>&5
4218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4219 test $ac_status = 0; }; then :
4220 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4221 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4222 # work properly (i.e., refer to `conftest.exe'), while it won't with
4224 for ac_file in conftest.exe conftest conftest.*; do
4225 test -f "$ac_file" || continue
4227 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4228 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4234 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4236 as_fn_error "cannot compute suffix of executables: cannot compile and link
4237 See \`config.log' for more details." "$LINENO" 5; }
4239 rm -f conftest conftest$ac_cv_exeext
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4241 $as_echo "$ac_cv_exeext" >&6; }
4243 rm -f conftest.$ac_ext
4244 EXEEXT=$ac_cv_exeext
4246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4247 /* end confdefs.h. */
4252 FILE *f = fopen ("conftest.out", "w");
4253 return ferror (f) || fclose (f) != 0;
4259 ac_clean_files="$ac_clean_files conftest.out"
4260 # Check that the compiler produces executables we can run. If not, either
4261 # the compiler is broken, or we cross compile.
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4263 $as_echo_n "checking whether we are cross compiling... " >&6; }
4264 if test "$cross_compiling" != yes; then
4265 { { ac_try="$ac_link"
4267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4268 *) ac_try_echo=$ac_try;;
4270 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4271 $as_echo "$ac_try_echo"; } >&5
4272 (eval "$ac_link") 2>&5
4274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4275 test $ac_status = 0; }
4276 if { ac_try='./conftest$ac_cv_exeext'
4277 { { case "(($ac_try" in
4278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4279 *) ac_try_echo=$ac_try;;
4281 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4282 $as_echo "$ac_try_echo"; } >&5
4283 (eval "$ac_try") 2>&5
4285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4286 test $ac_status = 0; }; }; then
4289 if test "$cross_compiling" = maybe; then
4292 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4294 as_fn_error "cannot run C compiled programs.
4295 If you meant to cross compile, use \`--host'.
4296 See \`config.log' for more details." "$LINENO" 5; }
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4301 $as_echo "$cross_compiling" >&6; }
4303 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4304 ac_clean_files=$ac_clean_files_save
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4306 $as_echo_n "checking for suffix of object files... " >&6; }
4307 if test "${ac_cv_objext+set}" = set; then :
4308 $as_echo_n "(cached) " >&6
4310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4311 /* end confdefs.h. */
4321 rm -f conftest.o conftest.obj
4322 if { { ac_try="$ac_compile"
4324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4325 *) ac_try_echo=$ac_try;;
4327 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4328 $as_echo "$ac_try_echo"; } >&5
4329 (eval "$ac_compile") 2>&5
4331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4332 test $ac_status = 0; }; then :
4333 for ac_file in conftest.o conftest.obj conftest.*; do
4334 test -f "$ac_file" || continue;
4336 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4337 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4342 $as_echo "$as_me: failed program was:" >&5
4343 sed 's/^/| /' conftest.$ac_ext >&5
4345 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4346 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4347 as_fn_error "cannot compute suffix of object files: cannot compile
4348 See \`config.log' for more details." "$LINENO" 5; }
4350 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4353 $as_echo "$ac_cv_objext" >&6; }
4354 OBJEXT=$ac_cv_objext
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4357 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4358 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4359 $as_echo_n "(cached) " >&6
4361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4362 /* end confdefs.h. */
4375 if ac_fn_c_try_compile "$LINENO"; then :
4380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4381 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4385 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4386 if test $ac_compiler_gnu = yes; then
4391 ac_test_CFLAGS=${CFLAGS+set}
4392 ac_save_CFLAGS=$CFLAGS
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4394 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4395 if test "${ac_cv_prog_cc_g+set}" = set; then :
4396 $as_echo_n "(cached) " >&6
4398 ac_save_c_werror_flag=$ac_c_werror_flag
4399 ac_c_werror_flag=yes
4402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4403 /* end confdefs.h. */
4413 if ac_fn_c_try_compile "$LINENO"; then :
4417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4418 /* end confdefs.h. */
4428 if ac_fn_c_try_compile "$LINENO"; then :
4431 ac_c_werror_flag=$ac_save_c_werror_flag
4433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4434 /* end confdefs.h. */
4444 if ac_fn_c_try_compile "$LINENO"; then :
4447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4452 ac_c_werror_flag=$ac_save_c_werror_flag
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4455 $as_echo "$ac_cv_prog_cc_g" >&6; }
4456 if test "$ac_test_CFLAGS" = set; then
4457 CFLAGS=$ac_save_CFLAGS
4458 elif test $ac_cv_prog_cc_g = yes; then
4459 if test "$GCC" = yes; then
4465 if test "$GCC" = yes; then
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4472 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4473 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4474 $as_echo_n "(cached) " >&6
4476 ac_cv_prog_cc_c89=no
4478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4479 /* end confdefs.h. */
4482 #include <sys/types.h>
4483 #include <sys/stat.h>
4484 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4485 struct buf { int x; };
4486 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4487 static char *e (p, i)
4493 static char *f (char * (*g) (char **, int), char **p, ...)
4498 s = g (p, va_arg (v,int));
4503 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4504 function prototypes and stuff, but not '\xHH' hex character constants.
4505 These don't provoke an error unfortunately, instead are silently treated
4506 as 'x'. The following induces an error, until -std is added to get
4507 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4508 array size at least. It's necessary to write '\x00'==0 to get something
4509 that's true only with -std. */
4510 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4512 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4513 inside strings and character constants. */
4515 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4517 int test (int i, double x);
4518 struct s1 {int (*f) (int a);};
4519 struct s2 {int (*f) (double a);};
4520 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4526 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4531 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4532 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4534 CC="$ac_save_CC $ac_arg"
4535 if ac_fn_c_try_compile "$LINENO"; then :
4536 ac_cv_prog_cc_c89=$ac_arg
4538 rm -f core conftest.err conftest.$ac_objext
4539 test "x$ac_cv_prog_cc_c89" != "xno" && break
4541 rm -f conftest.$ac_ext
4546 case "x$ac_cv_prog_cc_c89" in
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4549 $as_echo "none needed" >&6; } ;;
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4552 $as_echo "unsupported" >&6; } ;;
4554 CC="$CC $ac_cv_prog_cc_c89"
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4556 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4558 if test "x$ac_cv_prog_cc_c89" != xno; then :
4563 ac_cpp='$CPP $CPPFLAGS'
4564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4568 depcc="$CC" am_compiler_list=
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4571 $as_echo_n "checking dependency style of $depcc... " >&6; }
4572 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4573 $as_echo_n "(cached) " >&6
4575 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4576 # We make a subdir and do the tests there. Otherwise we can end up
4577 # making bogus files that we don't know about and never remove. For
4578 # instance it was reported that on HP-UX the gcc test will end up
4579 # making a dummy file named `D' -- because `-MD' means `put the output
4582 # Copy depcomp to subdir because otherwise we won't find it if we're
4583 # using a relative directory.
4584 cp "$am_depcomp" conftest.dir
4586 # We will build objects and dependencies in a subdirectory because
4587 # it helps to detect inapplicable dependency modes. For instance
4588 # both Tru64's cc and ICC support -MD to output dependencies as a
4589 # side effect of compilation, but ICC will put the dependencies in
4590 # the current directory while Tru64 will put them in the object
4594 am_cv_CC_dependencies_compiler_type=none
4595 if test "$am_compiler_list" = ""; then
4596 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4599 case " $depcc " in #(
4600 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4603 for depmode in $am_compiler_list; do
4604 # Setup a source with many dependencies, because some compilers
4605 # like to wrap large dependency lists on column 80 (with \), and
4606 # we should not choose a depcomp mode which is confused by this.
4608 # We need to recreate these files for each test, as the compiler may
4609 # overwrite some of them when testing with obscure command lines.
4610 # This happens at least with the AIX C compiler.
4612 for i in 1 2 3 4 5 6; do
4613 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4614 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4615 # Solaris 8's {/usr,}/bin/sh.
4616 touch sub/conftst$i.h
4618 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4620 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4621 # mode. It turns out that the SunPro C++ compiler does not properly
4622 # handle `-M -o', and we need to detect this. Also, some Intel
4623 # versions had trouble with output in subdirs
4624 am__obj=sub/conftest.${OBJEXT-o}
4625 am__minus_obj="-o $am__obj"
4628 # This depmode causes a compiler race in universal mode.
4629 test "$am__universal" = false || continue
4632 # after this tag, mechanisms are not by side-effect, so they'll
4633 # only be used when explicitly requested
4634 if test "x$enable_dependency_tracking" = xyes; then
4640 msvisualcpp | msvcmsys)
4641 # This compiler won't grok `-c -o', but also, the minuso test has
4642 # not run yet. These depmodes are late enough in the game, and
4643 # so weak that their functioning should not be impacted.
4644 am__obj=conftest.${OBJEXT-o}
4649 if depmode=$depmode \
4650 source=sub/conftest.c object=$am__obj \
4651 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4652 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4653 >/dev/null 2>conftest.err &&
4654 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4655 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4656 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4657 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4658 # icc doesn't choke on unknown options, it will just issue warnings
4659 # or remarks (even with -Werror). So we grep stderr for any message
4660 # that says an option was ignored or not supported.
4661 # When given -MP, icc 7.0 and 7.1 complain thusly:
4662 # icc: Command line warning: ignoring option '-M'; no argument required
4663 # The diagnosis changed in icc 8.0:
4664 # icc: Command line remark: option '-MP' not supported
4665 if (grep 'ignoring option' conftest.err ||
4666 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4667 am_cv_CC_dependencies_compiler_type=$depmode
4676 am_cv_CC_dependencies_compiler_type=none
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4681 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4682 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4685 test "x$enable_dependency_tracking" != xno \
4686 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4688 am__fastdepCC_FALSE='#'
4690 am__fastdepCC_TRUE='#'
4691 am__fastdepCC_FALSE=
4697 ac_cpp='$CPP $CPPFLAGS'
4698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4702 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4703 # On Suns, sometimes $CPP names a directory.
4704 if test -n "$CPP" && test -d "$CPP"; then
4707 if test -z "$CPP"; then
4708 if test "${ac_cv_prog_CPP+set}" = set; then :
4709 $as_echo_n "(cached) " >&6
4711 # Double quotes because CPP needs to be expanded
4712 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4715 for ac_c_preproc_warn_flag in '' yes
4717 # Use a header file that comes with gcc, so configuring glibc
4718 # with a fresh cross-compiler works.
4719 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4720 # <limits.h> exists even on freestanding compilers.
4721 # On the NeXT, cc -E runs the code through the compiler's parser,
4722 # not just through cpp. "Syntax error" is here to catch this case.
4723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4724 /* end confdefs.h. */
4726 # include <limits.h>
4728 # include <assert.h>
4732 if ac_fn_c_try_cpp "$LINENO"; then :
4735 # Broken: fails on valid input.
4738 rm -f conftest.err conftest.$ac_ext
4740 # OK, works on sane cases. Now check whether nonexistent headers
4741 # can be detected and how.
4742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4743 /* end confdefs.h. */
4744 #include <ac_nonexistent.h>
4746 if ac_fn_c_try_cpp "$LINENO"; then :
4747 # Broken: success on invalid input.
4750 # Passes both tests.
4754 rm -f conftest.err conftest.$ac_ext
4757 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4758 rm -f conftest.err conftest.$ac_ext
4759 if $ac_preproc_ok; then :
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4772 $as_echo "$CPP" >&6; }
4774 for ac_c_preproc_warn_flag in '' yes
4776 # Use a header file that comes with gcc, so configuring glibc
4777 # with a fresh cross-compiler works.
4778 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4779 # <limits.h> exists even on freestanding compilers.
4780 # On the NeXT, cc -E runs the code through the compiler's parser,
4781 # not just through cpp. "Syntax error" is here to catch this case.
4782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4783 /* end confdefs.h. */
4785 # include <limits.h>
4787 # include <assert.h>
4791 if ac_fn_c_try_cpp "$LINENO"; then :
4794 # Broken: fails on valid input.
4797 rm -f conftest.err conftest.$ac_ext
4799 # OK, works on sane cases. Now check whether nonexistent headers
4800 # can be detected and how.
4801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4802 /* end confdefs.h. */
4803 #include <ac_nonexistent.h>
4805 if ac_fn_c_try_cpp "$LINENO"; then :
4806 # Broken: success on invalid input.
4809 # Passes both tests.
4813 rm -f conftest.err conftest.$ac_ext
4816 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4817 rm -f conftest.err conftest.$ac_ext
4818 if $ac_preproc_ok; then :
4821 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4822 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4823 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4824 See \`config.log' for more details." "$LINENO" 5; }
4828 ac_cpp='$CPP $CPPFLAGS'
4829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4835 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4836 if test "${ac_cv_path_GREP+set}" = set; then :
4837 $as_echo_n "(cached) " >&6
4839 if test -z "$GREP"; then
4840 ac_path_GREP_found=false
4841 # Loop through the user's path and test for each of PROGNAME-LIST
4842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4843 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4846 test -z "$as_dir" && as_dir=.
4847 for ac_prog in grep ggrep; do
4848 for ac_exec_ext in '' $ac_executable_extensions; do
4849 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4850 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4851 # Check for GNU ac_path_GREP and select it if it is found.
4852 # Check for GNU $ac_path_GREP
4853 case `"$ac_path_GREP" --version 2>&1` in
4855 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4858 $as_echo_n 0123456789 >"conftest.in"
4861 cat "conftest.in" "conftest.in" >"conftest.tmp"
4862 mv "conftest.tmp" "conftest.in"
4863 cp "conftest.in" "conftest.nl"
4864 $as_echo 'GREP' >> "conftest.nl"
4865 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4866 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4867 as_fn_arith $ac_count + 1 && ac_count=$as_val
4868 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4869 # Best one so far, save it but keep looking for a better one
4870 ac_cv_path_GREP="$ac_path_GREP"
4871 ac_path_GREP_max=$ac_count
4873 # 10*(2^10) chars as input seems more than enough
4874 test $ac_count -gt 10 && break
4876 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4879 $ac_path_GREP_found && break 3
4884 if test -z "$ac_cv_path_GREP"; then
4885 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4888 ac_cv_path_GREP=$GREP
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4893 $as_echo "$ac_cv_path_GREP" >&6; }
4894 GREP="$ac_cv_path_GREP"
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4898 $as_echo_n "checking for egrep... " >&6; }
4899 if test "${ac_cv_path_EGREP+set}" = set; then :
4900 $as_echo_n "(cached) " >&6
4902 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4903 then ac_cv_path_EGREP="$GREP -E"
4905 if test -z "$EGREP"; then
4906 ac_path_EGREP_found=false
4907 # Loop through the user's path and test for each of PROGNAME-LIST
4908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4912 test -z "$as_dir" && as_dir=.
4913 for ac_prog in egrep; do
4914 for ac_exec_ext in '' $ac_executable_extensions; do
4915 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4916 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4917 # Check for GNU ac_path_EGREP and select it if it is found.
4918 # Check for GNU $ac_path_EGREP
4919 case `"$ac_path_EGREP" --version 2>&1` in
4921 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4924 $as_echo_n 0123456789 >"conftest.in"
4927 cat "conftest.in" "conftest.in" >"conftest.tmp"
4928 mv "conftest.tmp" "conftest.in"
4929 cp "conftest.in" "conftest.nl"
4930 $as_echo 'EGREP' >> "conftest.nl"
4931 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4932 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4933 as_fn_arith $ac_count + 1 && ac_count=$as_val
4934 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4935 # Best one so far, save it but keep looking for a better one
4936 ac_cv_path_EGREP="$ac_path_EGREP"
4937 ac_path_EGREP_max=$ac_count
4939 # 10*(2^10) chars as input seems more than enough
4940 test $ac_count -gt 10 && break
4942 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4945 $ac_path_EGREP_found && break 3
4950 if test -z "$ac_cv_path_EGREP"; then
4951 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4954 ac_cv_path_EGREP=$EGREP
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4960 $as_echo "$ac_cv_path_EGREP" >&6; }
4961 EGREP="$ac_cv_path_EGREP"
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4965 $as_echo_n "checking for ANSI C header files... " >&6; }
4966 if test "${ac_cv_header_stdc+set}" = set; then :
4967 $as_echo_n "(cached) " >&6
4969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4970 /* end confdefs.h. */
4984 if ac_fn_c_try_compile "$LINENO"; then :
4985 ac_cv_header_stdc=yes
4987 ac_cv_header_stdc=no
4989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4991 if test $ac_cv_header_stdc = yes; then
4992 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4994 /* end confdefs.h. */
4998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4999 $EGREP "memchr" >/dev/null 2>&1; then :
5002 ac_cv_header_stdc=no
5008 if test $ac_cv_header_stdc = yes; then
5009 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5011 /* end confdefs.h. */
5015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5016 $EGREP "free" >/dev/null 2>&1; then :
5019 ac_cv_header_stdc=no
5025 if test $ac_cv_header_stdc = yes; then
5026 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5027 if test "$cross_compiling" = yes; then :
5030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5031 /* end confdefs.h. */
5034 #if ((' ' & 0x0FF) == 0x020)
5035 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5036 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5038 # define ISLOWER(c) \
5039 (('a' <= (c) && (c) <= 'i') \
5040 || ('j' <= (c) && (c) <= 'r') \
5041 || ('s' <= (c) && (c) <= 'z'))
5042 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5045 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5050 for (i = 0; i < 256; i++)
5051 if (XOR (islower (i), ISLOWER (i))
5052 || toupper (i) != TOUPPER (i))
5057 if ac_fn_c_try_run "$LINENO"; then :
5060 ac_cv_header_stdc=no
5062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5063 conftest.$ac_objext conftest.beam conftest.$ac_ext
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5069 $as_echo "$ac_cv_header_stdc" >&6; }
5070 if test $ac_cv_header_stdc = yes; then
5072 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5076 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5077 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5078 inttypes.h stdint.h unistd.h
5080 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5081 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5083 eval as_val=\$$as_ac_Header
5084 if test "x$as_val" = x""yes; then :
5085 cat >>confdefs.h <<_ACEOF
5086 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5097 # Check whether --with-tirpcinclude was given.
5098 if test "${with_tirpcinclude+set}" = set; then :
5099 withval=$with_tirpcinclude; tirpc_header_dir=$withval
5101 tirpc_header_dir=/usr/include/tirpc
5106 if test "$enable_tirpc" != "no"; then
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clnt_tli_create in -ltirpc" >&5
5109 $as_echo_n "checking for clnt_tli_create in -ltirpc... " >&6; }
5110 if test "${ac_cv_lib_tirpc_clnt_tli_create+set}" = set; then :
5111 $as_echo_n "(cached) " >&6
5113 ac_check_lib_save_LIBS=$LIBS
5114 LIBS="-ltirpc $LIBS"
5115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5116 /* end confdefs.h. */
5118 /* Override any GCC internal prototype to avoid an error.
5119 Use char because int might match the return type of a GCC
5120 builtin and then its argument prototype would still apply. */
5124 char clnt_tli_create ();
5128 return clnt_tli_create ();
5133 if ac_fn_c_try_link "$LINENO"; then :
5134 ac_cv_lib_tirpc_clnt_tli_create=yes
5136 ac_cv_lib_tirpc_clnt_tli_create=no
5138 rm -f core conftest.err conftest.$ac_objext \
5139 conftest$ac_exeext conftest.$ac_ext
5140 LIBS=$ac_check_lib_save_LIBS
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tirpc_clnt_tli_create" >&5
5143 $as_echo "$ac_cv_lib_tirpc_clnt_tli_create" >&6; }
5144 if test "x$ac_cv_lib_tirpc_clnt_tli_create" = x""yes; then :
5145 cat >>confdefs.h <<_ACEOF
5146 #define HAVE_LIBTIRPC 1
5149 LIBS="-ltirpc $LIBS"
5152 if test "$enable_tirpc" = "yes"; then
5153 as_fn_error "libtirpc not found." "$LINENO" 5
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libtirpc not found. TIRPC disabled!" >&5
5156 $as_echo "$as_me: WARNING: libtirpc not found. TIRPC disabled!" >&2;}
5163 if test "$enable_tirpc" != "no"; then
5164 for ac_header in ${tirpc_header_dir}/netconfig.h
5166 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5167 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5168 eval as_val=\$$as_ac_Header
5169 if test "x$as_val" = x""yes; then :
5170 cat >>confdefs.h <<_ACEOF
5171 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5173 AM_CPPFLAGS="-I${tirpc_header_dir}"
5176 if test "$enable_tirpc" = "yes"; then
5177 as_fn_error "libtirpc headers not found." "$LINENO" 5
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libtirpc headers not found. TIRPC disabled!" >&5
5180 $as_echo "$as_me: WARNING: libtirpc headers not found. TIRPC disabled!" >&2;}
5194 ac_fn_c_check_func "$LINENO" "prctl" "ac_cv_func_prctl"
5195 if test "x$ac_cv_func_prctl" = x""yes; then :
5200 # Check whether --enable-caps was given.
5201 if test "${enable_caps+set}" = set; then :
5202 enableval=$enable_caps;
5208 if test "x$enable_caps" != "xno" ; then
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_get_proc in -lcap" >&5
5210 $as_echo_n "checking for cap_get_proc in -lcap... " >&6; }
5211 if test "${ac_cv_lib_cap_cap_get_proc+set}" = set; then :
5212 $as_echo_n "(cached) " >&6
5214 ac_check_lib_save_LIBS=$LIBS
5216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5217 /* end confdefs.h. */
5219 /* Override any GCC internal prototype to avoid an error.
5220 Use char because int might match the return type of a GCC
5221 builtin and then its argument prototype would still apply. */
5225 char cap_get_proc ();
5229 return cap_get_proc ();
5234 if ac_fn_c_try_link "$LINENO"; then :
5235 ac_cv_lib_cap_cap_get_proc=yes
5237 ac_cv_lib_cap_cap_get_proc=no
5239 rm -f core conftest.err conftest.$ac_objext \
5240 conftest$ac_exeext conftest.$ac_ext
5241 LIBS=$ac_check_lib_save_LIBS
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_get_proc" >&5
5244 $as_echo "$ac_cv_lib_cap_cap_get_proc" >&6; }
5245 if test "x$ac_cv_lib_cap_cap_get_proc" = x""yes; then :
5250 for ac_header in sys/capability.h
5252 ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
5253 if test "x$ac_cv_header_sys_capability_h" = x""yes; then :
5254 cat >>confdefs.h <<_ACEOF
5255 #define HAVE_SYS_CAPABILITY_H 1
5259 test "x$enable_caps" = "xyes" && as_fn_error "libcap headers not found." "$LINENO" 5
5270 # Check whether user wants TCP wrappers support
5274 # Check whether --with-tcp-wrappers was given.
5275 if test "${with_tcp_wrappers+set}" = set; then :
5276 withval=$with_tcp_wrappers; with_tcpw=$withval
5281 if test "x$with_tcpw" != "xno" ; then
5283 saved_LDFLAGS="$LDFLAGS"
5284 saved_CPPFLAGS="$CPPFLAGS"
5285 if test -n "${with_tcpw}" -a "${with_tcpw}" != "yes"; then
5286 if test -d "${with_tcpw}/lib"; then
5287 if test -n "${need_dash_r}"; then
5288 LDFLAGS="-L${with_tcpw}/lib -R${with_tcpw}/lib ${LDFLAGS}"
5290 LDFLAGS="-L${with_tcpw}/lib ${LDFLAGS}"
5293 if test -n "${need_dash_r}"; then
5294 LDFLAGS="-L${with_tcpw} -R${with_tcpw} ${LDFLAGS}"
5296 LDFLAGS="-L${with_tcpw} ${LDFLAGS}"
5299 if test -d "${with_tcpw}/include"; then
5300 CPPFLAGS="-I${with_tcpw}/include ${CPPFLAGS}"
5302 CPPFLAGS="-I${with_tcpw} ${CPPFLAGS}"
5306 LIBS="$LIBWRAP $LIBS"
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
5308 $as_echo_n "checking for libwrap... " >&6; }
5309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5310 /* end confdefs.h. */
5313 int deny_severity = 0, allow_severity = 0;
5323 if ac_fn_c_try_link "$LINENO"; then :
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5326 $as_echo "yes" >&6; }
5329 $as_echo "#define LIBWRAP 1" >>confdefs.h
5332 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
5335 $as_echo "#define HAVE_TCP_WRAPPER 1" >>confdefs.h
5341 as_fn_error "*** libwrap missing" "$LINENO" 5
5345 rm -f core conftest.err conftest.$ac_objext \
5346 conftest$ac_exeext conftest.$ac_ext
5354 # Arrange for large-file support
5355 # Check whether --enable-largefile was given.
5356 if test "${enable_largefile+set}" = set; then :
5357 enableval=$enable_largefile;
5360 if test "$enable_largefile" != no; then
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5363 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5364 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5365 $as_echo_n "(cached) " >&6
5367 ac_cv_sys_largefile_CC=no
5368 if test "$GCC" != yes; then
5371 # IRIX 6.2 and later do not support large files by default,
5372 # so use the C compiler's -n32 option if that helps.
5373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5374 /* end confdefs.h. */
5375 #include <sys/types.h>
5376 /* Check that off_t can represent 2**63 - 1 correctly.
5377 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5378 since some C++ compilers masquerading as C compilers
5379 incorrectly reject 9223372036854775807. */
5380 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5381 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5382 && LARGE_OFF_T % 2147483647 == 1)
5392 if ac_fn_c_try_compile "$LINENO"; then :
5395 rm -f core conftest.err conftest.$ac_objext
5397 if ac_fn_c_try_compile "$LINENO"; then :
5398 ac_cv_sys_largefile_CC=' -n32'; break
5400 rm -f core conftest.err conftest.$ac_objext
5404 rm -f conftest.$ac_ext
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5408 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5409 if test "$ac_cv_sys_largefile_CC" != no; then
5410 CC=$CC$ac_cv_sys_largefile_CC
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5414 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5415 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5416 $as_echo_n "(cached) " >&6
5419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5420 /* end confdefs.h. */
5421 #include <sys/types.h>
5422 /* Check that off_t can represent 2**63 - 1 correctly.
5423 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5424 since some C++ compilers masquerading as C compilers
5425 incorrectly reject 9223372036854775807. */
5426 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5427 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5428 && LARGE_OFF_T % 2147483647 == 1)
5438 if ac_fn_c_try_compile "$LINENO"; then :
5439 ac_cv_sys_file_offset_bits=no; break
5441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5443 /* end confdefs.h. */
5444 #define _FILE_OFFSET_BITS 64
5445 #include <sys/types.h>
5446 /* Check that off_t can represent 2**63 - 1 correctly.
5447 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5448 since some C++ compilers masquerading as C compilers
5449 incorrectly reject 9223372036854775807. */
5450 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5451 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5452 && LARGE_OFF_T % 2147483647 == 1)
5462 if ac_fn_c_try_compile "$LINENO"; then :
5463 ac_cv_sys_file_offset_bits=64; break
5465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5466 ac_cv_sys_file_offset_bits=unknown
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5471 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5472 case $ac_cv_sys_file_offset_bits in #(
5475 cat >>confdefs.h <<_ACEOF
5476 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5481 if test $ac_cv_sys_file_offset_bits = unknown; then
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5483 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5484 if test "${ac_cv_sys_large_files+set}" = set; then :
5485 $as_echo_n "(cached) " >&6
5488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5489 /* end confdefs.h. */
5490 #include <sys/types.h>
5491 /* Check that off_t can represent 2**63 - 1 correctly.
5492 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5493 since some C++ compilers masquerading as C compilers
5494 incorrectly reject 9223372036854775807. */
5495 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5496 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5497 && LARGE_OFF_T % 2147483647 == 1)
5507 if ac_fn_c_try_compile "$LINENO"; then :
5508 ac_cv_sys_large_files=no; break
5510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5512 /* end confdefs.h. */
5513 #define _LARGE_FILES 1
5514 #include <sys/types.h>
5515 /* Check that off_t can represent 2**63 - 1 correctly.
5516 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5517 since some C++ compilers masquerading as C compilers
5518 incorrectly reject 9223372036854775807. */
5519 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5520 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5521 && LARGE_OFF_T % 2147483647 == 1)
5531 if ac_fn_c_try_compile "$LINENO"; then :
5532 ac_cv_sys_large_files=1; break
5534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5535 ac_cv_sys_large_files=unknown
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5540 $as_echo "$ac_cv_sys_large_files" >&6; }
5541 case $ac_cv_sys_large_files in #(
5544 cat >>confdefs.h <<_ACEOF
5545 #define _LARGE_FILES $ac_cv_sys_large_files
5555 ac_config_headers="$ac_config_headers support/include/config.h"
5558 # Checks for programs.
5560 ac_cpp='$CXXCPP $CPPFLAGS'
5561 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5562 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5563 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5564 if test -z "$CXX"; then
5565 if test -n "$CCC"; then
5568 if test -n "$ac_tool_prefix"; then
5569 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5571 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5572 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5574 $as_echo_n "checking for $ac_word... " >&6; }
5575 if test "${ac_cv_prog_CXX+set}" = set; then :
5576 $as_echo_n "(cached) " >&6
5578 if test -n "$CXX"; then
5579 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5585 test -z "$as_dir" && as_dir=.
5586 for ac_exec_ext in '' $ac_executable_extensions; do
5587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5588 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5599 if test -n "$CXX"; then
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5601 $as_echo "$CXX" >&6; }
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5604 $as_echo "no" >&6; }
5608 test -n "$CXX" && break
5611 if test -z "$CXX"; then
5613 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5615 # Extract the first word of "$ac_prog", so it can be a program name with args.
5616 set dummy $ac_prog; ac_word=$2
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5618 $as_echo_n "checking for $ac_word... " >&6; }
5619 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5620 $as_echo_n "(cached) " >&6
5622 if test -n "$ac_ct_CXX"; then
5623 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629 test -z "$as_dir" && as_dir=.
5630 for ac_exec_ext in '' $ac_executable_extensions; do
5631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5632 ac_cv_prog_ac_ct_CXX="$ac_prog"
5633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5642 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5643 if test -n "$ac_ct_CXX"; then
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5645 $as_echo "$ac_ct_CXX" >&6; }
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5648 $as_echo "no" >&6; }
5652 test -n "$ac_ct_CXX" && break
5655 if test "x$ac_ct_CXX" = x; then
5658 case $cross_compiling:$ac_tool_warned in
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5661 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5662 ac_tool_warned=yes ;;
5670 # Provide some information about the compiler.
5671 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5674 for ac_option in --version -v -V -qversion; do
5675 { { ac_try="$ac_compiler $ac_option >&5"
5677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5678 *) ac_try_echo=$ac_try;;
5680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5681 $as_echo "$ac_try_echo"; } >&5
5682 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5684 if test -s conftest.err; then
5686 ... rest of stderr output deleted ...
5687 10q' conftest.err >conftest.er1
5688 cat conftest.er1 >&5
5690 rm -f conftest.er1 conftest.err
5691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5692 test $ac_status = 0; }
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5696 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5697 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5698 $as_echo_n "(cached) " >&6
5700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5701 /* end confdefs.h. */
5714 if ac_fn_cxx_try_compile "$LINENO"; then :
5719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5720 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5724 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5725 if test $ac_compiler_gnu = yes; then
5730 ac_test_CXXFLAGS=${CXXFLAGS+set}
5731 ac_save_CXXFLAGS=$CXXFLAGS
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5733 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5734 if test "${ac_cv_prog_cxx_g+set}" = set; then :
5735 $as_echo_n "(cached) " >&6
5737 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5738 ac_cxx_werror_flag=yes
5741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5742 /* end confdefs.h. */
5752 if ac_fn_cxx_try_compile "$LINENO"; then :
5753 ac_cv_prog_cxx_g=yes
5756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5757 /* end confdefs.h. */
5767 if ac_fn_cxx_try_compile "$LINENO"; then :
5770 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5773 /* end confdefs.h. */
5783 if ac_fn_cxx_try_compile "$LINENO"; then :
5784 ac_cv_prog_cxx_g=yes
5786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5791 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5794 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5795 if test "$ac_test_CXXFLAGS" = set; then
5796 CXXFLAGS=$ac_save_CXXFLAGS
5797 elif test $ac_cv_prog_cxx_g = yes; then
5798 if test "$GXX" = yes; then
5804 if test "$GXX" = yes; then
5811 ac_cpp='$CPP $CPPFLAGS'
5812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5816 depcc="$CXX" am_compiler_list=
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5819 $as_echo_n "checking dependency style of $depcc... " >&6; }
5820 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5821 $as_echo_n "(cached) " >&6
5823 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5824 # We make a subdir and do the tests there. Otherwise we can end up
5825 # making bogus files that we don't know about and never remove. For
5826 # instance it was reported that on HP-UX the gcc test will end up
5827 # making a dummy file named `D' -- because `-MD' means `put the output
5830 # Copy depcomp to subdir because otherwise we won't find it if we're
5831 # using a relative directory.
5832 cp "$am_depcomp" conftest.dir
5834 # We will build objects and dependencies in a subdirectory because
5835 # it helps to detect inapplicable dependency modes. For instance
5836 # both Tru64's cc and ICC support -MD to output dependencies as a
5837 # side effect of compilation, but ICC will put the dependencies in
5838 # the current directory while Tru64 will put them in the object
5842 am_cv_CXX_dependencies_compiler_type=none
5843 if test "$am_compiler_list" = ""; then
5844 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5847 case " $depcc " in #(
5848 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5851 for depmode in $am_compiler_list; do
5852 # Setup a source with many dependencies, because some compilers
5853 # like to wrap large dependency lists on column 80 (with \), and
5854 # we should not choose a depcomp mode which is confused by this.
5856 # We need to recreate these files for each test, as the compiler may
5857 # overwrite some of them when testing with obscure command lines.
5858 # This happens at least with the AIX C compiler.
5860 for i in 1 2 3 4 5 6; do
5861 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5862 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5863 # Solaris 8's {/usr,}/bin/sh.
5864 touch sub/conftst$i.h
5866 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5868 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5869 # mode. It turns out that the SunPro C++ compiler does not properly
5870 # handle `-M -o', and we need to detect this. Also, some Intel
5871 # versions had trouble with output in subdirs
5872 am__obj=sub/conftest.${OBJEXT-o}
5873 am__minus_obj="-o $am__obj"
5876 # This depmode causes a compiler race in universal mode.
5877 test "$am__universal" = false || continue
5880 # after this tag, mechanisms are not by side-effect, so they'll
5881 # only be used when explicitly requested
5882 if test "x$enable_dependency_tracking" = xyes; then
5888 msvisualcpp | msvcmsys)
5889 # This compiler won't grok `-c -o', but also, the minuso test has
5890 # not run yet. These depmodes are late enough in the game, and
5891 # so weak that their functioning should not be impacted.
5892 am__obj=conftest.${OBJEXT-o}
5897 if depmode=$depmode \
5898 source=sub/conftest.c object=$am__obj \
5899 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5900 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5901 >/dev/null 2>conftest.err &&
5902 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5903 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5904 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5905 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5906 # icc doesn't choke on unknown options, it will just issue warnings
5907 # or remarks (even with -Werror). So we grep stderr for any message
5908 # that says an option was ignored or not supported.
5909 # When given -MP, icc 7.0 and 7.1 complain thusly:
5910 # icc: Command line warning: ignoring option '-M'; no argument required
5911 # The diagnosis changed in icc 8.0:
5912 # icc: Command line remark: option '-MP' not supported
5913 if (grep 'ignoring option' conftest.err ||
5914 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5915 am_cv_CXX_dependencies_compiler_type=$depmode
5924 am_cv_CXX_dependencies_compiler_type=none
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5929 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5930 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5933 test "x$enable_dependency_tracking" != xno \
5934 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5935 am__fastdepCXX_TRUE=
5936 am__fastdepCXX_FALSE='#'
5938 am__fastdepCXX_TRUE='#'
5939 am__fastdepCXX_FALSE=
5944 ac_cpp='$CPP $CPPFLAGS'
5945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5948 if test -n "$ac_tool_prefix"; then
5949 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5950 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5952 $as_echo_n "checking for $ac_word... " >&6; }
5953 if test "${ac_cv_prog_CC+set}" = set; then :
5954 $as_echo_n "(cached) " >&6
5956 if test -n "$CC"; then
5957 ac_cv_prog_CC="$CC" # Let the user override the test.
5959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5963 test -z "$as_dir" && as_dir=.
5964 for ac_exec_ext in '' $ac_executable_extensions; do
5965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5966 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5977 if test -n "$CC"; then
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5979 $as_echo "$CC" >&6; }
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5982 $as_echo "no" >&6; }
5987 if test -z "$ac_cv_prog_CC"; then
5989 # Extract the first word of "gcc", so it can be a program name with args.
5990 set dummy gcc; ac_word=$2
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5992 $as_echo_n "checking for $ac_word... " >&6; }
5993 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5994 $as_echo_n "(cached) " >&6
5996 if test -n "$ac_ct_CC"; then
5997 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6003 test -z "$as_dir" && as_dir=.
6004 for ac_exec_ext in '' $ac_executable_extensions; do
6005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6006 ac_cv_prog_ac_ct_CC="gcc"
6007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6016 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6017 if test -n "$ac_ct_CC"; then
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6019 $as_echo "$ac_ct_CC" >&6; }
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6022 $as_echo "no" >&6; }
6025 if test "x$ac_ct_CC" = x; then
6028 case $cross_compiling:$ac_tool_warned in
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6031 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6032 ac_tool_warned=yes ;;
6040 if test -z "$CC"; then
6041 if test -n "$ac_tool_prefix"; then
6042 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6043 set dummy ${ac_tool_prefix}cc; ac_word=$2
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6045 $as_echo_n "checking for $ac_word... " >&6; }
6046 if test "${ac_cv_prog_CC+set}" = set; then :
6047 $as_echo_n "(cached) " >&6
6049 if test -n "$CC"; then
6050 ac_cv_prog_CC="$CC" # Let the user override the test.
6052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6056 test -z "$as_dir" && as_dir=.
6057 for ac_exec_ext in '' $ac_executable_extensions; do
6058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6059 ac_cv_prog_CC="${ac_tool_prefix}cc"
6060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6070 if test -n "$CC"; then
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6072 $as_echo "$CC" >&6; }
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6075 $as_echo "no" >&6; }
6081 if test -z "$CC"; then
6082 # Extract the first word of "cc", so it can be a program name with args.
6083 set dummy cc; ac_word=$2
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6085 $as_echo_n "checking for $ac_word... " >&6; }
6086 if test "${ac_cv_prog_CC+set}" = set; then :
6087 $as_echo_n "(cached) " >&6
6089 if test -n "$CC"; then
6090 ac_cv_prog_CC="$CC" # Let the user override the test.
6093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6097 test -z "$as_dir" && as_dir=.
6098 for ac_exec_ext in '' $ac_executable_extensions; do
6099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6100 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6101 ac_prog_rejected=yes
6105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6112 if test $ac_prog_rejected = yes; then
6113 # We found a bogon in the path, so make sure we never use it.
6114 set dummy $ac_cv_prog_CC
6116 if test $# != 0; then
6117 # We chose a different compiler from the bogus one.
6118 # However, it has the same basename, so the bogon will be chosen
6119 # first if we set CC to just the basename; use the full file name.
6121 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6127 if test -n "$CC"; then
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6129 $as_echo "$CC" >&6; }
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6132 $as_echo "no" >&6; }
6137 if test -z "$CC"; then
6138 if test -n "$ac_tool_prefix"; then
6139 for ac_prog in cl.exe
6141 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6142 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6144 $as_echo_n "checking for $ac_word... " >&6; }
6145 if test "${ac_cv_prog_CC+set}" = set; then :
6146 $as_echo_n "(cached) " >&6
6148 if test -n "$CC"; then
6149 ac_cv_prog_CC="$CC" # Let the user override the test.
6151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6155 test -z "$as_dir" && as_dir=.
6156 for ac_exec_ext in '' $ac_executable_extensions; do
6157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6158 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6169 if test -n "$CC"; then
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6171 $as_echo "$CC" >&6; }
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6174 $as_echo "no" >&6; }
6178 test -n "$CC" && break
6181 if test -z "$CC"; then
6183 for ac_prog in cl.exe
6185 # Extract the first word of "$ac_prog", so it can be a program name with args.
6186 set dummy $ac_prog; ac_word=$2
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6188 $as_echo_n "checking for $ac_word... " >&6; }
6189 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
6190 $as_echo_n "(cached) " >&6
6192 if test -n "$ac_ct_CC"; then
6193 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199 test -z "$as_dir" && as_dir=.
6200 for ac_exec_ext in '' $ac_executable_extensions; do
6201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6202 ac_cv_prog_ac_ct_CC="$ac_prog"
6203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6212 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6213 if test -n "$ac_ct_CC"; then
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6215 $as_echo "$ac_ct_CC" >&6; }
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6218 $as_echo "no" >&6; }
6222 test -n "$ac_ct_CC" && break
6225 if test "x$ac_ct_CC" = x; then
6228 case $cross_compiling:$ac_tool_warned in
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6232 ac_tool_warned=yes ;;
6241 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6243 as_fn_error "no acceptable C compiler found in \$PATH
6244 See \`config.log' for more details." "$LINENO" 5; }
6246 # Provide some information about the compiler.
6247 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6250 for ac_option in --version -v -V -qversion; do
6251 { { ac_try="$ac_compiler $ac_option >&5"
6253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6254 *) ac_try_echo=$ac_try;;
6256 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6257 $as_echo "$ac_try_echo"; } >&5
6258 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6260 if test -s conftest.err; then
6262 ... rest of stderr output deleted ...
6263 10q' conftest.err >conftest.er1
6264 cat conftest.er1 >&5
6266 rm -f conftest.er1 conftest.err
6267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6268 test $ac_status = 0; }
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6272 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6273 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
6274 $as_echo_n "(cached) " >&6
6276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6277 /* end confdefs.h. */
6290 if ac_fn_c_try_compile "$LINENO"; then :
6295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6296 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6300 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6301 if test $ac_compiler_gnu = yes; then
6306 ac_test_CFLAGS=${CFLAGS+set}
6307 ac_save_CFLAGS=$CFLAGS
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6309 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6310 if test "${ac_cv_prog_cc_g+set}" = set; then :
6311 $as_echo_n "(cached) " >&6
6313 ac_save_c_werror_flag=$ac_c_werror_flag
6314 ac_c_werror_flag=yes
6317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6318 /* end confdefs.h. */
6328 if ac_fn_c_try_compile "$LINENO"; then :
6332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6333 /* end confdefs.h. */
6343 if ac_fn_c_try_compile "$LINENO"; then :
6346 ac_c_werror_flag=$ac_save_c_werror_flag
6348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6349 /* end confdefs.h. */
6359 if ac_fn_c_try_compile "$LINENO"; then :
6362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6367 ac_c_werror_flag=$ac_save_c_werror_flag
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6370 $as_echo "$ac_cv_prog_cc_g" >&6; }
6371 if test "$ac_test_CFLAGS" = set; then
6372 CFLAGS=$ac_save_CFLAGS
6373 elif test $ac_cv_prog_cc_g = yes; then
6374 if test "$GCC" = yes; then
6380 if test "$GCC" = yes; then
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6387 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6388 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6389 $as_echo_n "(cached) " >&6
6391 ac_cv_prog_cc_c89=no
6393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6394 /* end confdefs.h. */
6397 #include <sys/types.h>
6398 #include <sys/stat.h>
6399 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6400 struct buf { int x; };
6401 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6402 static char *e (p, i)
6408 static char *f (char * (*g) (char **, int), char **p, ...)
6413 s = g (p, va_arg (v,int));
6418 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6419 function prototypes and stuff, but not '\xHH' hex character constants.
6420 These don't provoke an error unfortunately, instead are silently treated
6421 as 'x'. The following induces an error, until -std is added to get
6422 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6423 array size at least. It's necessary to write '\x00'==0 to get something
6424 that's true only with -std. */
6425 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6427 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6428 inside strings and character constants. */
6430 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6432 int test (int i, double x);
6433 struct s1 {int (*f) (int a);};
6434 struct s2 {int (*f) (double a);};
6435 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6441 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6446 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6447 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6449 CC="$ac_save_CC $ac_arg"
6450 if ac_fn_c_try_compile "$LINENO"; then :
6451 ac_cv_prog_cc_c89=$ac_arg
6453 rm -f core conftest.err conftest.$ac_objext
6454 test "x$ac_cv_prog_cc_c89" != "xno" && break
6456 rm -f conftest.$ac_ext
6461 case "x$ac_cv_prog_cc_c89" in
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6464 $as_echo "none needed" >&6; } ;;
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6467 $as_echo "unsupported" >&6; } ;;
6469 CC="$CC $ac_cv_prog_cc_c89"
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6471 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6473 if test "x$ac_cv_prog_cc_c89" != xno; then :
6478 ac_cpp='$CPP $CPPFLAGS'
6479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6483 depcc="$CC" am_compiler_list=
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6486 $as_echo_n "checking dependency style of $depcc... " >&6; }
6487 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
6488 $as_echo_n "(cached) " >&6
6490 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6491 # We make a subdir and do the tests there. Otherwise we can end up
6492 # making bogus files that we don't know about and never remove. For
6493 # instance it was reported that on HP-UX the gcc test will end up
6494 # making a dummy file named `D' -- because `-MD' means `put the output
6497 # Copy depcomp to subdir because otherwise we won't find it if we're
6498 # using a relative directory.
6499 cp "$am_depcomp" conftest.dir
6501 # We will build objects and dependencies in a subdirectory because
6502 # it helps to detect inapplicable dependency modes. For instance
6503 # both Tru64's cc and ICC support -MD to output dependencies as a
6504 # side effect of compilation, but ICC will put the dependencies in
6505 # the current directory while Tru64 will put them in the object
6509 am_cv_CC_dependencies_compiler_type=none
6510 if test "$am_compiler_list" = ""; then
6511 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6514 case " $depcc " in #(
6515 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6518 for depmode in $am_compiler_list; do
6519 # Setup a source with many dependencies, because some compilers
6520 # like to wrap large dependency lists on column 80 (with \), and
6521 # we should not choose a depcomp mode which is confused by this.
6523 # We need to recreate these files for each test, as the compiler may
6524 # overwrite some of them when testing with obscure command lines.
6525 # This happens at least with the AIX C compiler.
6527 for i in 1 2 3 4 5 6; do
6528 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6529 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6530 # Solaris 8's {/usr,}/bin/sh.
6531 touch sub/conftst$i.h
6533 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6535 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6536 # mode. It turns out that the SunPro C++ compiler does not properly
6537 # handle `-M -o', and we need to detect this. Also, some Intel
6538 # versions had trouble with output in subdirs
6539 am__obj=sub/conftest.${OBJEXT-o}
6540 am__minus_obj="-o $am__obj"
6543 # This depmode causes a compiler race in universal mode.
6544 test "$am__universal" = false || continue
6547 # after this tag, mechanisms are not by side-effect, so they'll
6548 # only be used when explicitly requested
6549 if test "x$enable_dependency_tracking" = xyes; then
6555 msvisualcpp | msvcmsys)
6556 # This compiler won't grok `-c -o', but also, the minuso test has
6557 # not run yet. These depmodes are late enough in the game, and
6558 # so weak that their functioning should not be impacted.
6559 am__obj=conftest.${OBJEXT-o}
6564 if depmode=$depmode \
6565 source=sub/conftest.c object=$am__obj \
6566 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6567 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6568 >/dev/null 2>conftest.err &&
6569 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6570 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6571 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6572 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6573 # icc doesn't choke on unknown options, it will just issue warnings
6574 # or remarks (even with -Werror). So we grep stderr for any message
6575 # that says an option was ignored or not supported.
6576 # When given -MP, icc 7.0 and 7.1 complain thusly:
6577 # icc: Command line warning: ignoring option '-M'; no argument required
6578 # The diagnosis changed in icc 8.0:
6579 # icc: Command line remark: option '-MP' not supported
6580 if (grep 'ignoring option' conftest.err ||
6581 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6582 am_cv_CC_dependencies_compiler_type=$depmode
6591 am_cv_CC_dependencies_compiler_type=none
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6596 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6597 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6600 test "x$enable_dependency_tracking" != xno \
6601 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6603 am__fastdepCC_FALSE='#'
6605 am__fastdepCC_TRUE='#'
6606 am__fastdepCC_FALSE=
6611 ac_cpp='$CPP $CPPFLAGS'
6612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6616 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6617 # On Suns, sometimes $CPP names a directory.
6618 if test -n "$CPP" && test -d "$CPP"; then
6621 if test -z "$CPP"; then
6622 if test "${ac_cv_prog_CPP+set}" = set; then :
6623 $as_echo_n "(cached) " >&6
6625 # Double quotes because CPP needs to be expanded
6626 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6629 for ac_c_preproc_warn_flag in '' yes
6631 # Use a header file that comes with gcc, so configuring glibc
6632 # with a fresh cross-compiler works.
6633 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6634 # <limits.h> exists even on freestanding compilers.
6635 # On the NeXT, cc -E runs the code through the compiler's parser,
6636 # not just through cpp. "Syntax error" is here to catch this case.
6637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6638 /* end confdefs.h. */
6640 # include <limits.h>
6642 # include <assert.h>
6646 if ac_fn_c_try_cpp "$LINENO"; then :
6649 # Broken: fails on valid input.
6652 rm -f conftest.err conftest.$ac_ext
6654 # OK, works on sane cases. Now check whether nonexistent headers
6655 # can be detected and how.
6656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6657 /* end confdefs.h. */
6658 #include <ac_nonexistent.h>
6660 if ac_fn_c_try_cpp "$LINENO"; then :
6661 # Broken: success on invalid input.
6664 # Passes both tests.
6668 rm -f conftest.err conftest.$ac_ext
6671 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6672 rm -f conftest.err conftest.$ac_ext
6673 if $ac_preproc_ok; then :
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6686 $as_echo "$CPP" >&6; }
6688 for ac_c_preproc_warn_flag in '' yes
6690 # Use a header file that comes with gcc, so configuring glibc
6691 # with a fresh cross-compiler works.
6692 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6693 # <limits.h> exists even on freestanding compilers.
6694 # On the NeXT, cc -E runs the code through the compiler's parser,
6695 # not just through cpp. "Syntax error" is here to catch this case.
6696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6697 /* end confdefs.h. */
6699 # include <limits.h>
6701 # include <assert.h>
6705 if ac_fn_c_try_cpp "$LINENO"; then :
6708 # Broken: fails on valid input.
6711 rm -f conftest.err conftest.$ac_ext
6713 # OK, works on sane cases. Now check whether nonexistent headers
6714 # can be detected and how.
6715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6716 /* end confdefs.h. */
6717 #include <ac_nonexistent.h>
6719 if ac_fn_c_try_cpp "$LINENO"; then :
6720 # Broken: success on invalid input.
6723 # Passes both tests.
6727 rm -f conftest.err conftest.$ac_ext
6730 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6731 rm -f conftest.err conftest.$ac_ext
6732 if $ac_preproc_ok; then :
6735 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6736 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6737 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6738 See \`config.log' for more details." "$LINENO" 5; }
6742 ac_cpp='$CPP $CPPFLAGS'
6743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6749 $as_echo_n "checking whether ln -s works... " >&6; }
6751 if test "$LN_S" = "ln -s"; then
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6753 $as_echo "yes" >&6; }
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6756 $as_echo "no, using $LN_S" >&6; }
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6760 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6762 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6763 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6764 $as_echo_n "(cached) " >&6
6766 cat >conftest.make <<\_ACEOF
6769 @echo '@@@%%%=$(MAKE)=@@@%%%'
6771 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6772 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6774 eval ac_cv_prog_make_${ac_make}_set=yes;;
6776 eval ac_cv_prog_make_${ac_make}_set=no;;
6780 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6782 $as_echo "yes" >&6; }
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6786 $as_echo "no" >&6; }
6787 SET_MAKE="MAKE=${MAKE-make}"
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6793 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6798 macro_version='2.2.6b'
6799 macro_revision='1.3017'
6813 ltmain="$ac_aux_dir/ltmain.sh"
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6816 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6817 if test "${ac_cv_path_SED+set}" = set; then :
6818 $as_echo_n "(cached) " >&6
6820 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6821 for ac_i in 1 2 3 4 5 6 7; do
6822 ac_script="$ac_script$as_nl$ac_script"
6824 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6825 { ac_script=; unset ac_script;}
6826 if test -z "$SED"; then
6827 ac_path_SED_found=false
6828 # Loop through the user's path and test for each of PROGNAME-LIST
6829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833 test -z "$as_dir" && as_dir=.
6834 for ac_prog in sed gsed; do
6835 for ac_exec_ext in '' $ac_executable_extensions; do
6836 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6837 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6838 # Check for GNU ac_path_SED and select it if it is found.
6839 # Check for GNU $ac_path_SED
6840 case `"$ac_path_SED" --version 2>&1` in
6842 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6845 $as_echo_n 0123456789 >"conftest.in"
6848 cat "conftest.in" "conftest.in" >"conftest.tmp"
6849 mv "conftest.tmp" "conftest.in"
6850 cp "conftest.in" "conftest.nl"
6851 $as_echo '' >> "conftest.nl"
6852 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6853 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6854 as_fn_arith $ac_count + 1 && ac_count=$as_val
6855 if test $ac_count -gt ${ac_path_SED_max-0}; then
6856 # Best one so far, save it but keep looking for a better one
6857 ac_cv_path_SED="$ac_path_SED"
6858 ac_path_SED_max=$ac_count
6860 # 10*(2^10) chars as input seems more than enough
6861 test $ac_count -gt 10 && break
6863 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6866 $ac_path_SED_found && break 3
6871 if test -z "$ac_cv_path_SED"; then
6872 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6880 $as_echo "$ac_cv_path_SED" >&6; }
6881 SED="$ac_cv_path_SED"
6884 test -z "$SED" && SED=sed
6885 Xsed="$SED -e 1s/^X//"
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6898 $as_echo_n "checking for fgrep... " >&6; }
6899 if test "${ac_cv_path_FGREP+set}" = set; then :
6900 $as_echo_n "(cached) " >&6
6902 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6903 then ac_cv_path_FGREP="$GREP -F"
6905 if test -z "$FGREP"; then
6906 ac_path_FGREP_found=false
6907 # Loop through the user's path and test for each of PROGNAME-LIST
6908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6912 test -z "$as_dir" && as_dir=.
6913 for ac_prog in fgrep; do
6914 for ac_exec_ext in '' $ac_executable_extensions; do
6915 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6916 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6917 # Check for GNU ac_path_FGREP and select it if it is found.
6918 # Check for GNU $ac_path_FGREP
6919 case `"$ac_path_FGREP" --version 2>&1` in
6921 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6924 $as_echo_n 0123456789 >"conftest.in"
6927 cat "conftest.in" "conftest.in" >"conftest.tmp"
6928 mv "conftest.tmp" "conftest.in"
6929 cp "conftest.in" "conftest.nl"
6930 $as_echo 'FGREP' >> "conftest.nl"
6931 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6932 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6933 as_fn_arith $ac_count + 1 && ac_count=$as_val
6934 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6935 # Best one so far, save it but keep looking for a better one
6936 ac_cv_path_FGREP="$ac_path_FGREP"
6937 ac_path_FGREP_max=$ac_count
6939 # 10*(2^10) chars as input seems more than enough
6940 test $ac_count -gt 10 && break
6942 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6945 $ac_path_FGREP_found && break 3
6950 if test -z "$ac_cv_path_FGREP"; then
6951 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6954 ac_cv_path_FGREP=$FGREP
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6960 $as_echo "$ac_cv_path_FGREP" >&6; }
6961 FGREP="$ac_cv_path_FGREP"
6964 test -z "$GREP" && GREP=grep
6984 # Check whether --with-gnu-ld was given.
6985 if test "${with_gnu_ld+set}" = set; then :
6986 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6992 if test "$GCC" = yes; then
6993 # Check if gcc -print-prog-name=ld gives a path.
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6995 $as_echo_n "checking for ld used by $CC... " >&6; }
6998 # gcc leaves a trailing carriage return which upsets mingw
6999 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7001 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7004 # Accept absolute paths.
7006 re_direlt='/[^/][^/]*/\.\./'
7007 # Canonicalize the pathname of ld
7008 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7009 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7010 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7012 test -z "$LD" && LD="$ac_prog"
7015 # If it fails, then pretend we aren't using GCC.
7019 # If it is relative, then search for the first ld in PATH.
7023 elif test "$with_gnu_ld" = yes; then
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7025 $as_echo_n "checking for GNU ld... " >&6; }
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7028 $as_echo_n "checking for non-GNU ld... " >&6; }
7030 if test "${lt_cv_path_LD+set}" = set; then :
7031 $as_echo_n "(cached) " >&6
7033 if test -z "$LD"; then
7034 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7035 for ac_dir in $PATH; do
7037 test -z "$ac_dir" && ac_dir=.
7038 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7039 lt_cv_path_LD="$ac_dir/$ac_prog"
7040 # Check to see if the program is GNU ld. I'd rather use --version,
7041 # but apparently some variants of GNU ld only accept -v.
7042 # Break only if it was the GNU/non-GNU ld that we prefer.
7043 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7044 *GNU* | *'with BFD'*)
7045 test "$with_gnu_ld" != no && break
7048 test "$with_gnu_ld" != yes && break
7055 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7060 if test -n "$LD"; then
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7062 $as_echo "$LD" >&6; }
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7065 $as_echo "no" >&6; }
7067 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7069 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7070 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7071 $as_echo_n "(cached) " >&6
7073 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7074 case `$LD -v 2>&1 </dev/null` in
7075 *GNU* | *'with BFD'*)
7076 lt_cv_prog_gnu_ld=yes
7079 lt_cv_prog_gnu_ld=no
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7084 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7085 with_gnu_ld=$lt_cv_prog_gnu_ld
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7096 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7097 if test "${lt_cv_path_NM+set}" = set; then :
7098 $as_echo_n "(cached) " >&6
7100 if test -n "$NM"; then
7101 # Let the user override the test.
7104 lt_nm_to_check="${ac_tool_prefix}nm"
7105 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7106 lt_nm_to_check="$lt_nm_to_check nm"
7108 for lt_tmp_nm in $lt_nm_to_check; do
7109 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7110 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7112 test -z "$ac_dir" && ac_dir=.
7113 tmp_nm="$ac_dir/$lt_tmp_nm"
7114 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7115 # Check to see if the nm accepts a BSD-compat flag.
7116 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7117 # nm: unknown option "B" ignored
7118 # Tru64's nm complains that /dev/null is an invalid object file
7119 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7120 */dev/null* | *'Invalid file or object type'*)
7121 lt_cv_path_NM="$tmp_nm -B"
7125 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7127 lt_cv_path_NM="$tmp_nm -p"
7131 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7132 continue # so that we can try to find one that supports BSD flags
7141 : ${lt_cv_path_NM=no}
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7145 $as_echo "$lt_cv_path_NM" >&6; }
7146 if test "$lt_cv_path_NM" != "no"; then
7149 # Didn't find any BSD compatible name lister, look for dumpbin.
7150 if test -n "$ac_tool_prefix"; then
7151 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7153 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7154 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7156 $as_echo_n "checking for $ac_word... " >&6; }
7157 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
7158 $as_echo_n "(cached) " >&6
7160 if test -n "$DUMPBIN"; then
7161 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7167 test -z "$as_dir" && as_dir=.
7168 for ac_exec_ext in '' $ac_executable_extensions; do
7169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7170 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7180 DUMPBIN=$ac_cv_prog_DUMPBIN
7181 if test -n "$DUMPBIN"; then
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7183 $as_echo "$DUMPBIN" >&6; }
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7186 $as_echo "no" >&6; }
7190 test -n "$DUMPBIN" && break
7193 if test -z "$DUMPBIN"; then
7194 ac_ct_DUMPBIN=$DUMPBIN
7195 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7197 # Extract the first word of "$ac_prog", so it can be a program name with args.
7198 set dummy $ac_prog; ac_word=$2
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7200 $as_echo_n "checking for $ac_word... " >&6; }
7201 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
7202 $as_echo_n "(cached) " >&6
7204 if test -n "$ac_ct_DUMPBIN"; then
7205 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7211 test -z "$as_dir" && as_dir=.
7212 for ac_exec_ext in '' $ac_executable_extensions; do
7213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7214 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7224 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7225 if test -n "$ac_ct_DUMPBIN"; then
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7227 $as_echo "$ac_ct_DUMPBIN" >&6; }
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7230 $as_echo "no" >&6; }
7234 test -n "$ac_ct_DUMPBIN" && break
7237 if test "x$ac_ct_DUMPBIN" = x; then
7240 case $cross_compiling:$ac_tool_warned in
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7244 ac_tool_warned=yes ;;
7246 DUMPBIN=$ac_ct_DUMPBIN
7251 if test "$DUMPBIN" != ":"; then
7255 test -z "$NM" && NM=nm
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7263 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7264 if test "${lt_cv_nm_interface+set}" = set; then :
7265 $as_echo_n "(cached) " >&6
7267 lt_cv_nm_interface="BSD nm"
7268 echo "int some_variable = 0;" > conftest.$ac_ext
7269 (eval echo "\"\$as_me:7269: $ac_compile\"" >&5)
7270 (eval "$ac_compile" 2>conftest.err)
7271 cat conftest.err >&5
7272 (eval echo "\"\$as_me:7272: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7273 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7274 cat conftest.err >&5
7275 (eval echo "\"\$as_me:7275: output\"" >&5)
7276 cat conftest.out >&5
7277 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7278 lt_cv_nm_interface="MS dumpbin"
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7283 $as_echo "$lt_cv_nm_interface" >&6; }
7285 # find the maximum length of command line arguments
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7287 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7288 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
7289 $as_echo_n "(cached) " >&6
7296 # On DJGPP, this test can blow up pretty badly due to problems in libc
7297 # (any single argument exceeding 2000 bytes causes a buffer overrun
7298 # during glob expansion). Even if it were fixed, the result of this
7299 # check would be larger than it should be.
7300 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7304 # Under GNU Hurd, this test is not required because there is
7305 # no limit to the length of command line arguments.
7306 # Libtool will interpret -1 as no limit whatsoever
7307 lt_cv_sys_max_cmd_len=-1;
7310 cygwin* | mingw* | cegcc*)
7311 # On Win9x/ME, this test blows up -- it succeeds, but takes
7312 # about 5 minutes as the teststring grows exponentially.
7313 # Worse, since 9x/ME are not pre-emptively multitasking,
7314 # you end up with a "frozen" computer, even though with patience
7315 # the test eventually succeeds (with a max line length of 256k).
7316 # Instead, let's just punt: use the minimum linelength reported by
7317 # all of the supported platforms: 8192 (on NT/2K/XP).
7318 lt_cv_sys_max_cmd_len=8192;
7322 # On AmigaOS with pdksh, this test takes hours, literally.
7323 # So we just punt and use a minimum line length of 8192.
7324 lt_cv_sys_max_cmd_len=8192;
7327 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7328 # This has been around since 386BSD, at least. Likely further.
7329 if test -x /sbin/sysctl; then
7330 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7331 elif test -x /usr/sbin/sysctl; then
7332 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7334 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7336 # And add a safety zone
7337 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7338 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7342 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7343 lt_cv_sys_max_cmd_len=196608
7347 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7348 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7349 # nice to cause kernel panics so lets avoid the loop below.
7350 # First set a reasonable default.
7351 lt_cv_sys_max_cmd_len=16384
7353 if test -x /sbin/sysconfig; then
7354 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7355 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7360 lt_cv_sys_max_cmd_len=102400
7362 sysv5* | sco5v6* | sysv4.2uw2*)
7363 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7364 if test -n "$kargmax"; then
7365 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7367 lt_cv_sys_max_cmd_len=32768
7371 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7372 if test -n "$lt_cv_sys_max_cmd_len"; then
7373 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7374 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7376 # Make teststring a little bigger before we do anything with it.
7377 # a 1K string should be a reasonable start.
7378 for i in 1 2 3 4 5 6 7 8 ; do
7379 teststring=$teststring$teststring
7381 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7382 # If test is not a shell built-in, we'll probably end up computing a
7383 # maximum length that is only half of the actual maximum length, but
7385 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
7386 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
7387 test $i != 17 # 1/2 MB should be enough
7390 teststring=$teststring$teststring
7392 # Only check the string length outside the loop.
7393 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7395 # Add a significant safety factor because C++ compilers can tack on
7396 # massive amounts of additional arguments before passing them to the
7397 # linker. It appears as though 1/2 is a usable value.
7398 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7405 if test -n $lt_cv_sys_max_cmd_len ; then
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7407 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7410 $as_echo "none" >&6; }
7412 max_cmd_len=$lt_cv_sys_max_cmd_len
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7424 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7425 # Try some XSI features
7428 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7430 && eval 'test $(( 1 + 1 )) -eq 2 \
7431 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7434 $as_echo "$xsi_shell" >&6; }
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7438 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7440 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7442 && lt_shell_append=yes
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7444 $as_echo "$lt_shell_append" >&6; }
7447 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7457 # test EBCDIC or ASCII
7458 case `echo X|tr X '\101'` in
7459 A) # ASCII based system
7460 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7461 lt_SP2NL='tr \040 \012'
7462 lt_NL2SP='tr \015\012 \040\040'
7464 *) # EBCDIC based system
7465 lt_SP2NL='tr \100 \n'
7466 lt_NL2SP='tr \r\n \100\100'
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7479 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7480 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7481 $as_echo_n "(cached) " >&6
7483 lt_cv_ld_reload_flag='-r'
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7486 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7487 reload_flag=$lt_cv_ld_reload_flag
7488 case $reload_flag in
7490 *) reload_flag=" $reload_flag" ;;
7492 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7495 if test "$GCC" = yes; then
7496 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7498 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7511 if test -n "$ac_tool_prefix"; then
7512 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7513 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7515 $as_echo_n "checking for $ac_word... " >&6; }
7516 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7517 $as_echo_n "(cached) " >&6
7519 if test -n "$OBJDUMP"; then
7520 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7526 test -z "$as_dir" && as_dir=.
7527 for ac_exec_ext in '' $ac_executable_extensions; do
7528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7529 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7539 OBJDUMP=$ac_cv_prog_OBJDUMP
7540 if test -n "$OBJDUMP"; then
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7542 $as_echo "$OBJDUMP" >&6; }
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7545 $as_echo "no" >&6; }
7550 if test -z "$ac_cv_prog_OBJDUMP"; then
7551 ac_ct_OBJDUMP=$OBJDUMP
7552 # Extract the first word of "objdump", so it can be a program name with args.
7553 set dummy objdump; ac_word=$2
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7555 $as_echo_n "checking for $ac_word... " >&6; }
7556 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7557 $as_echo_n "(cached) " >&6
7559 if test -n "$ac_ct_OBJDUMP"; then
7560 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7566 test -z "$as_dir" && as_dir=.
7567 for ac_exec_ext in '' $ac_executable_extensions; do
7568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7569 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7579 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7580 if test -n "$ac_ct_OBJDUMP"; then
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7582 $as_echo "$ac_ct_OBJDUMP" >&6; }
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7585 $as_echo "no" >&6; }
7588 if test "x$ac_ct_OBJDUMP" = x; then
7591 case $cross_compiling:$ac_tool_warned in
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7595 ac_tool_warned=yes ;;
7597 OBJDUMP=$ac_ct_OBJDUMP
7600 OBJDUMP="$ac_cv_prog_OBJDUMP"
7603 test -z "$OBJDUMP" && OBJDUMP=objdump
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7614 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7615 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7616 $as_echo_n "(cached) " >&6
7618 lt_cv_file_magic_cmd='$MAGIC_CMD'
7619 lt_cv_file_magic_test_file=
7620 lt_cv_deplibs_check_method='unknown'
7621 # Need to set the preceding variable on all platforms that support
7622 # interlibrary dependencies.
7623 # 'none' -- dependencies not supported.
7624 # `unknown' -- same as none, but documents that we really don't know.
7625 # 'pass_all' -- all dependencies passed with no checks.
7626 # 'test_compile' -- check by making test program.
7627 # 'file_magic [[regex]]' -- check by looking for files in library path
7628 # which responds to the $file_magic_cmd with a given extended regex.
7629 # If you have `file' or equivalent on your system and you're not sure
7630 # whether `pass_all' will *always* work, you probably want this one.
7634 lt_cv_deplibs_check_method=pass_all
7638 lt_cv_deplibs_check_method=pass_all
7642 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7643 lt_cv_file_magic_cmd='/usr/bin/file -L'
7644 lt_cv_file_magic_test_file=/shlib/libc.so
7648 # func_win32_libid is a shell function defined in ltmain.sh
7649 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7650 lt_cv_file_magic_cmd='func_win32_libid'
7654 # Base MSYS/MinGW do not provide the 'file' command needed by
7655 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7656 # unless we find 'file', for example because we are cross-compiling.
7657 if ( file / ) >/dev/null 2>&1; then
7658 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7659 lt_cv_file_magic_cmd='func_win32_libid'
7661 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7662 lt_cv_file_magic_cmd='$OBJDUMP -f'
7667 # use the weaker test based on 'objdump'. See mingw*.
7668 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7669 lt_cv_file_magic_cmd='$OBJDUMP -f'
7672 darwin* | rhapsody*)
7673 lt_cv_deplibs_check_method=pass_all
7676 freebsd* | dragonfly*)
7677 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7680 # Not sure whether the presence of OpenBSD here was a mistake.
7681 # Let's accept both of them until this is cleared up.
7682 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7683 lt_cv_file_magic_cmd=/usr/bin/file
7684 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7688 lt_cv_deplibs_check_method=pass_all
7693 lt_cv_deplibs_check_method=pass_all
7696 hpux10.20* | hpux11*)
7697 lt_cv_file_magic_cmd=/usr/bin/file
7700 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7701 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7704 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
7705 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7708 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7709 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7715 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7716 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7719 irix5* | irix6* | nonstopux*)
7721 *-32|*"-32 ") libmagic=32-bit;;
7722 *-n32|*"-n32 ") libmagic=N32;;
7723 *-64|*"-64 ") libmagic=64-bit;;
7724 *) libmagic=never-match;;
7726 lt_cv_deplibs_check_method=pass_all
7729 # This must be Linux ELF.
7730 linux* | k*bsd*-gnu)
7731 lt_cv_deplibs_check_method=pass_all
7735 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7736 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7738 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7743 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7744 lt_cv_file_magic_cmd=/usr/bin/file
7745 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7749 lt_cv_deplibs_check_method=pass_all
7753 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7754 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7756 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7760 osf3* | osf4* | osf5*)
7761 lt_cv_deplibs_check_method=pass_all
7765 lt_cv_deplibs_check_method=pass_all
7769 lt_cv_deplibs_check_method=pass_all
7772 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7773 lt_cv_deplibs_check_method=pass_all
7777 case $host_vendor in
7779 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]'
7780 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7783 lt_cv_deplibs_check_method=pass_all
7786 lt_cv_file_magic_cmd='/bin/file'
7787 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7790 lt_cv_file_magic_cmd='/bin/file'
7791 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7792 lt_cv_file_magic_test_file=/lib/libc.so
7795 lt_cv_deplibs_check_method=pass_all
7798 lt_cv_deplibs_check_method=pass_all
7804 lt_cv_deplibs_check_method=pass_all
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7810 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7811 file_magic_cmd=$lt_cv_file_magic_cmd
7812 deplibs_check_method=$lt_cv_deplibs_check_method
7813 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7826 if test -n "$ac_tool_prefix"; then
7827 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7828 set dummy ${ac_tool_prefix}ar; ac_word=$2
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7830 $as_echo_n "checking for $ac_word... " >&6; }
7831 if test "${ac_cv_prog_AR+set}" = set; then :
7832 $as_echo_n "(cached) " >&6
7834 if test -n "$AR"; then
7835 ac_cv_prog_AR="$AR" # Let the user override the test.
7837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7841 test -z "$as_dir" && as_dir=.
7842 for ac_exec_ext in '' $ac_executable_extensions; do
7843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7844 ac_cv_prog_AR="${ac_tool_prefix}ar"
7845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7855 if test -n "$AR"; then
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7857 $as_echo "$AR" >&6; }
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7860 $as_echo "no" >&6; }
7865 if test -z "$ac_cv_prog_AR"; then
7867 # Extract the first word of "ar", so it can be a program name with args.
7868 set dummy ar; ac_word=$2
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7870 $as_echo_n "checking for $ac_word... " >&6; }
7871 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7872 $as_echo_n "(cached) " >&6
7874 if test -n "$ac_ct_AR"; then
7875 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7881 test -z "$as_dir" && as_dir=.
7882 for ac_exec_ext in '' $ac_executable_extensions; do
7883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7884 ac_cv_prog_ac_ct_AR="ar"
7885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7894 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7895 if test -n "$ac_ct_AR"; then
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7897 $as_echo "$ac_ct_AR" >&6; }
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7900 $as_echo "no" >&6; }
7903 if test "x$ac_ct_AR" = x; then
7906 case $cross_compiling:$ac_tool_warned in
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7909 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7910 ac_tool_warned=yes ;;
7918 test -z "$AR" && AR=ar
7919 test -z "$AR_FLAGS" && AR_FLAGS=cru
7931 if test -n "$ac_tool_prefix"; then
7932 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7933 set dummy ${ac_tool_prefix}strip; ac_word=$2
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7935 $as_echo_n "checking for $ac_word... " >&6; }
7936 if test "${ac_cv_prog_STRIP+set}" = set; then :
7937 $as_echo_n "(cached) " >&6
7939 if test -n "$STRIP"; then
7940 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7946 test -z "$as_dir" && as_dir=.
7947 for ac_exec_ext in '' $ac_executable_extensions; do
7948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7949 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7959 STRIP=$ac_cv_prog_STRIP
7960 if test -n "$STRIP"; then
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7962 $as_echo "$STRIP" >&6; }
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7965 $as_echo "no" >&6; }
7970 if test -z "$ac_cv_prog_STRIP"; then
7972 # Extract the first word of "strip", so it can be a program name with args.
7973 set dummy strip; ac_word=$2
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7975 $as_echo_n "checking for $ac_word... " >&6; }
7976 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7977 $as_echo_n "(cached) " >&6
7979 if test -n "$ac_ct_STRIP"; then
7980 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7986 test -z "$as_dir" && as_dir=.
7987 for ac_exec_ext in '' $ac_executable_extensions; do
7988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7989 ac_cv_prog_ac_ct_STRIP="strip"
7990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7999 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8000 if test -n "$ac_ct_STRIP"; then
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8002 $as_echo "$ac_ct_STRIP" >&6; }
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8005 $as_echo "no" >&6; }
8008 if test "x$ac_ct_STRIP" = x; then
8011 case $cross_compiling:$ac_tool_warned in
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8014 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8015 ac_tool_warned=yes ;;
8020 STRIP="$ac_cv_prog_STRIP"
8023 test -z "$STRIP" && STRIP=:
8030 if test -n "$ac_tool_prefix"; then
8031 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8032 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8034 $as_echo_n "checking for $ac_word... " >&6; }
8035 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8036 $as_echo_n "(cached) " >&6
8038 if test -n "$RANLIB"; then
8039 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8045 test -z "$as_dir" && as_dir=.
8046 for ac_exec_ext in '' $ac_executable_extensions; do
8047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8048 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8058 RANLIB=$ac_cv_prog_RANLIB
8059 if test -n "$RANLIB"; then
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8061 $as_echo "$RANLIB" >&6; }
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8064 $as_echo "no" >&6; }
8069 if test -z "$ac_cv_prog_RANLIB"; then
8070 ac_ct_RANLIB=$RANLIB
8071 # Extract the first word of "ranlib", so it can be a program name with args.
8072 set dummy ranlib; ac_word=$2
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8074 $as_echo_n "checking for $ac_word... " >&6; }
8075 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8076 $as_echo_n "(cached) " >&6
8078 if test -n "$ac_ct_RANLIB"; then
8079 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8085 test -z "$as_dir" && as_dir=.
8086 for ac_exec_ext in '' $ac_executable_extensions; do
8087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8088 ac_cv_prog_ac_ct_RANLIB="ranlib"
8089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8098 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8099 if test -n "$ac_ct_RANLIB"; then
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8101 $as_echo "$ac_ct_RANLIB" >&6; }
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8104 $as_echo "no" >&6; }
8107 if test "x$ac_ct_RANLIB" = x; then
8110 case $cross_compiling:$ac_tool_warned in
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8114 ac_tool_warned=yes ;;
8116 RANLIB=$ac_ct_RANLIB
8119 RANLIB="$ac_cv_prog_RANLIB"
8122 test -z "$RANLIB" && RANLIB=:
8129 # Determine commands to create old-style static archives.
8130 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8131 old_postinstall_cmds='chmod 644 $oldlib'
8132 old_postuninstall_cmds=
8134 if test -n "$RANLIB"; then
8137 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8140 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8143 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8179 # If no C compiler was specified, use CC.
8182 # If no C compiler flags were specified, use CFLAGS.
8183 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8185 # Allow CC to be a program name with arguments.
8189 # Check for command to grab the raw symbol name followed by C symbol from nm.
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8191 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8192 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
8193 $as_echo_n "(cached) " >&6
8196 # These are sane defaults that work on at least a few old systems.
8197 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8199 # Character class describing NM global symbol codes.
8200 symcode='[BCDEGRST]'
8202 # Regexp to match symbols that can be accessed directly from C.
8203 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8205 # Define system-specific variables.
8210 cygwin* | mingw* | pw32* | cegcc*)
8211 symcode='[ABCDGISTW]'
8214 if test "$host_cpu" = ia64; then
8215 symcode='[ABCDEGRST]'
8219 symcode='[BCDEGRST]'
8222 symcode='[BCDEGQRST]'
8233 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8241 # If we're using GNU nm, then use its standard symbol codes.
8242 case `$NM -V 2>&1` in
8243 *GNU* | *'with BFD'*)
8244 symcode='[ABCDGIRSTW]' ;;
8247 # Transform an extracted symbol line into a proper C declaration.
8248 # Some systems (esp. on ia64) link data and code symbols differently,
8249 # so use this general approach.
8250 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8252 # Transform an extracted symbol line into symbol name and symbol address
8253 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8254 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'"
8256 # Handle CRLF in mingw tool chain
8260 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8264 # Try without a prefix underscore, then with it.
8265 for ac_symprfx in "" "_"; do
8267 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8268 symxfrm="\\1 $ac_symprfx\\2 \\2"
8270 # Write the raw and C identifiers.
8271 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8272 # Fake it for dumpbin and say T for any non-static function
8273 # and D for any global variable.
8274 # Also find C++ and __fastcall symbols from MSVC++,
8275 # which start with @ or ?.
8276 lt_cv_sys_global_symbol_pipe="$AWK '"\
8277 " {last_section=section; section=\$ 3};"\
8278 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8279 " \$ 0!~/External *\|/{next};"\
8280 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8281 " {if(hide[section]) next};"\
8282 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8283 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8284 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8285 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8286 " ' prfx=^$ac_symprfx"
8288 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8291 # Check to see that the pipe works correctly.
8295 cat > conftest.$ac_ext <<_LT_EOF
8300 void nm_test_func(void);
8301 void nm_test_func(void){}
8305 int main(){nm_test_var='a';nm_test_func();return(0);}
8308 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8309 (eval $ac_compile) 2>&5
8311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8312 test $ac_status = 0; }; then
8313 # Now try to grab the symbols.
8315 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
8316 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8319 test $ac_status = 0; } && test -s "$nlist"; then
8320 # Try sorting and uniquifying the output.
8321 if sort "$nlist" | uniq > "$nlist"T; then
8322 mv -f "$nlist"T "$nlist"
8327 # Make sure that we snagged all the symbols we need.
8328 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8329 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8330 cat <<_LT_EOF > conftest.$ac_ext
8336 # Now generate the symbol file.
8337 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8339 cat <<_LT_EOF >> conftest.$ac_ext
8341 /* The mapping between symbol names and symbols. */
8346 lt__PROGRAM__LTX_preloaded_symbols[] =
8348 { "@PROGRAM@", (void *) 0 },
8350 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8351 cat <<\_LT_EOF >> conftest.$ac_ext
8355 /* This works around a problem in FreeBSD linker */
8356 #ifdef FREEBSD_WORKAROUND
8357 static const void *lt_preloaded_setup() {
8358 return lt__PROGRAM__LTX_preloaded_symbols;
8366 # Now try linking the two files.
8367 mv conftest.$ac_objext conftstm.$ac_objext
8368 lt_save_LIBS="$LIBS"
8369 lt_save_CFLAGS="$CFLAGS"
8370 LIBS="conftstm.$ac_objext"
8371 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8372 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8373 (eval $ac_link) 2>&5
8375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8376 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8379 LIBS="$lt_save_LIBS"
8380 CFLAGS="$lt_save_CFLAGS"
8382 echo "cannot find nm_test_func in $nlist" >&5
8385 echo "cannot find nm_test_var in $nlist" >&5
8388 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8391 echo "$progname: failed program was:" >&5
8392 cat conftest.$ac_ext >&5
8394 rm -rf conftest* conftst*
8396 # Do not use the global_symbol_pipe unless it works.
8397 if test "$pipe_works" = yes; then
8400 lt_cv_sys_global_symbol_pipe=
8406 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8407 lt_cv_sys_global_symbol_to_cdecl=
8409 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8411 $as_echo "failed" >&6; }
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8414 $as_echo "ok" >&6; }
8438 # Check whether --enable-libtool-lock was given.
8439 if test "${enable_libtool_lock+set}" = set; then :
8440 enableval=$enable_libtool_lock;
8443 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8445 # Some flags need to be propagated to the compiler or linker for good
8449 # Find out which ABI we are using.
8450 echo 'int i;' > conftest.$ac_ext
8451 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8452 (eval $ac_compile) 2>&5
8454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8455 test $ac_status = 0; }; then
8456 case `/usr/bin/file conftest.$ac_objext` in
8468 # Find out which ABI we are using.
8469 echo '#line 8469 "configure"' > conftest.$ac_ext
8470 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8471 (eval $ac_compile) 2>&5
8473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8474 test $ac_status = 0; }; then
8475 if test "$lt_cv_prog_gnu_ld" = yes; then
8476 case `/usr/bin/file conftest.$ac_objext` in
8478 LD="${LD-ld} -melf32bsmip"
8481 LD="${LD-ld} -melf32bmipn32"
8484 LD="${LD-ld} -melf64bmip"
8488 case `/usr/bin/file conftest.$ac_objext` in
8504 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8505 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8506 # Find out which ABI we are using.
8507 echo 'int i;' > conftest.$ac_ext
8508 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8509 (eval $ac_compile) 2>&5
8511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8512 test $ac_status = 0; }; then
8513 case `/usr/bin/file conftest.o` in
8516 x86_64-*kfreebsd*-gnu)
8517 LD="${LD-ld} -m elf_i386_fbsd"
8520 LD="${LD-ld} -m elf_i386"
8522 ppc64-*linux*|powerpc64-*linux*)
8523 LD="${LD-ld} -m elf32ppclinux"
8526 LD="${LD-ld} -m elf_s390"
8529 LD="${LD-ld} -m elf32_sparc"
8535 x86_64-*kfreebsd*-gnu)
8536 LD="${LD-ld} -m elf_x86_64_fbsd"
8539 LD="${LD-ld} -m elf_x86_64"
8541 ppc*-*linux*|powerpc*-*linux*)
8542 LD="${LD-ld} -m elf64ppc"
8544 s390*-*linux*|s390*-*tpf*)
8545 LD="${LD-ld} -m elf64_s390"
8548 LD="${LD-ld} -m elf64_sparc"
8558 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8559 SAVE_CFLAGS="$CFLAGS"
8560 CFLAGS="$CFLAGS -belf"
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8562 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8563 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8564 $as_echo_n "(cached) " >&6
8567 ac_cpp='$CPP $CPPFLAGS'
8568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8573 /* end confdefs.h. */
8583 if ac_fn_c_try_link "$LINENO"; then :
8584 lt_cv_cc_needs_belf=yes
8586 lt_cv_cc_needs_belf=no
8588 rm -f core conftest.err conftest.$ac_objext \
8589 conftest$ac_exeext conftest.$ac_ext
8591 ac_cpp='$CPP $CPPFLAGS'
8592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8598 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8599 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8600 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8601 CFLAGS="$SAVE_CFLAGS"
8605 # Find out which ABI we are using.
8606 echo 'int i;' > conftest.$ac_ext
8607 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8608 (eval $ac_compile) 2>&5
8610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8611 test $ac_status = 0; }; then
8612 case `/usr/bin/file conftest.o` in
8614 case $lt_cv_prog_gnu_ld in
8615 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8617 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8629 need_locks="$enable_libtool_lock"
8633 rhapsody* | darwin*)
8634 if test -n "$ac_tool_prefix"; then
8635 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8636 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8638 $as_echo_n "checking for $ac_word... " >&6; }
8639 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8640 $as_echo_n "(cached) " >&6
8642 if test -n "$DSYMUTIL"; then
8643 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8649 test -z "$as_dir" && as_dir=.
8650 for ac_exec_ext in '' $ac_executable_extensions; do
8651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8652 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8662 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8663 if test -n "$DSYMUTIL"; then
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8665 $as_echo "$DSYMUTIL" >&6; }
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8668 $as_echo "no" >&6; }
8673 if test -z "$ac_cv_prog_DSYMUTIL"; then
8674 ac_ct_DSYMUTIL=$DSYMUTIL
8675 # Extract the first word of "dsymutil", so it can be a program name with args.
8676 set dummy dsymutil; ac_word=$2
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8678 $as_echo_n "checking for $ac_word... " >&6; }
8679 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8680 $as_echo_n "(cached) " >&6
8682 if test -n "$ac_ct_DSYMUTIL"; then
8683 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8689 test -z "$as_dir" && as_dir=.
8690 for ac_exec_ext in '' $ac_executable_extensions; do
8691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8692 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8702 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8703 if test -n "$ac_ct_DSYMUTIL"; then
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8705 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8708 $as_echo "no" >&6; }
8711 if test "x$ac_ct_DSYMUTIL" = x; then
8714 case $cross_compiling:$ac_tool_warned in
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8717 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8718 ac_tool_warned=yes ;;
8720 DSYMUTIL=$ac_ct_DSYMUTIL
8723 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8726 if test -n "$ac_tool_prefix"; then
8727 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8728 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8730 $as_echo_n "checking for $ac_word... " >&6; }
8731 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8732 $as_echo_n "(cached) " >&6
8734 if test -n "$NMEDIT"; then
8735 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8741 test -z "$as_dir" && as_dir=.
8742 for ac_exec_ext in '' $ac_executable_extensions; do
8743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8744 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8754 NMEDIT=$ac_cv_prog_NMEDIT
8755 if test -n "$NMEDIT"; then
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8757 $as_echo "$NMEDIT" >&6; }
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8760 $as_echo "no" >&6; }
8765 if test -z "$ac_cv_prog_NMEDIT"; then
8766 ac_ct_NMEDIT=$NMEDIT
8767 # Extract the first word of "nmedit", so it can be a program name with args.
8768 set dummy nmedit; ac_word=$2
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8770 $as_echo_n "checking for $ac_word... " >&6; }
8771 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8772 $as_echo_n "(cached) " >&6
8774 if test -n "$ac_ct_NMEDIT"; then
8775 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8781 test -z "$as_dir" && as_dir=.
8782 for ac_exec_ext in '' $ac_executable_extensions; do
8783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8784 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8794 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8795 if test -n "$ac_ct_NMEDIT"; then
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8797 $as_echo "$ac_ct_NMEDIT" >&6; }
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8800 $as_echo "no" >&6; }
8803 if test "x$ac_ct_NMEDIT" = x; then
8806 case $cross_compiling:$ac_tool_warned in
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8809 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8810 ac_tool_warned=yes ;;
8812 NMEDIT=$ac_ct_NMEDIT
8815 NMEDIT="$ac_cv_prog_NMEDIT"
8818 if test -n "$ac_tool_prefix"; then
8819 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8820 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8822 $as_echo_n "checking for $ac_word... " >&6; }
8823 if test "${ac_cv_prog_LIPO+set}" = set; then :
8824 $as_echo_n "(cached) " >&6
8826 if test -n "$LIPO"; then
8827 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8833 test -z "$as_dir" && as_dir=.
8834 for ac_exec_ext in '' $ac_executable_extensions; do
8835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8836 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8846 LIPO=$ac_cv_prog_LIPO
8847 if test -n "$LIPO"; then
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8849 $as_echo "$LIPO" >&6; }
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8852 $as_echo "no" >&6; }
8857 if test -z "$ac_cv_prog_LIPO"; then
8859 # Extract the first word of "lipo", so it can be a program name with args.
8860 set dummy lipo; ac_word=$2
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8862 $as_echo_n "checking for $ac_word... " >&6; }
8863 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8864 $as_echo_n "(cached) " >&6
8866 if test -n "$ac_ct_LIPO"; then
8867 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8873 test -z "$as_dir" && as_dir=.
8874 for ac_exec_ext in '' $ac_executable_extensions; do
8875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8876 ac_cv_prog_ac_ct_LIPO="lipo"
8877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8886 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8887 if test -n "$ac_ct_LIPO"; then
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8889 $as_echo "$ac_ct_LIPO" >&6; }
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8892 $as_echo "no" >&6; }
8895 if test "x$ac_ct_LIPO" = x; then
8898 case $cross_compiling:$ac_tool_warned in
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8902 ac_tool_warned=yes ;;
8907 LIPO="$ac_cv_prog_LIPO"
8910 if test -n "$ac_tool_prefix"; then
8911 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8912 set dummy ${ac_tool_prefix}otool; ac_word=$2
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8914 $as_echo_n "checking for $ac_word... " >&6; }
8915 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8916 $as_echo_n "(cached) " >&6
8918 if test -n "$OTOOL"; then
8919 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8925 test -z "$as_dir" && as_dir=.
8926 for ac_exec_ext in '' $ac_executable_extensions; do
8927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8928 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8938 OTOOL=$ac_cv_prog_OTOOL
8939 if test -n "$OTOOL"; then
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8941 $as_echo "$OTOOL" >&6; }
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8944 $as_echo "no" >&6; }
8949 if test -z "$ac_cv_prog_OTOOL"; then
8951 # Extract the first word of "otool", so it can be a program name with args.
8952 set dummy otool; ac_word=$2
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8954 $as_echo_n "checking for $ac_word... " >&6; }
8955 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8956 $as_echo_n "(cached) " >&6
8958 if test -n "$ac_ct_OTOOL"; then
8959 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8965 test -z "$as_dir" && as_dir=.
8966 for ac_exec_ext in '' $ac_executable_extensions; do
8967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8968 ac_cv_prog_ac_ct_OTOOL="otool"
8969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8978 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8979 if test -n "$ac_ct_OTOOL"; then
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8981 $as_echo "$ac_ct_OTOOL" >&6; }
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8984 $as_echo "no" >&6; }
8987 if test "x$ac_ct_OTOOL" = x; then
8990 case $cross_compiling:$ac_tool_warned in
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8994 ac_tool_warned=yes ;;
8999 OTOOL="$ac_cv_prog_OTOOL"
9002 if test -n "$ac_tool_prefix"; then
9003 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9004 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9006 $as_echo_n "checking for $ac_word... " >&6; }
9007 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
9008 $as_echo_n "(cached) " >&6
9010 if test -n "$OTOOL64"; then
9011 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9017 test -z "$as_dir" && as_dir=.
9018 for ac_exec_ext in '' $ac_executable_extensions; do
9019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9020 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9030 OTOOL64=$ac_cv_prog_OTOOL64
9031 if test -n "$OTOOL64"; then
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9033 $as_echo "$OTOOL64" >&6; }
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9036 $as_echo "no" >&6; }
9041 if test -z "$ac_cv_prog_OTOOL64"; then
9042 ac_ct_OTOOL64=$OTOOL64
9043 # Extract the first word of "otool64", so it can be a program name with args.
9044 set dummy otool64; ac_word=$2
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9046 $as_echo_n "checking for $ac_word... " >&6; }
9047 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
9048 $as_echo_n "(cached) " >&6
9050 if test -n "$ac_ct_OTOOL64"; then
9051 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9057 test -z "$as_dir" && as_dir=.
9058 for ac_exec_ext in '' $ac_executable_extensions; do
9059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9060 ac_cv_prog_ac_ct_OTOOL64="otool64"
9061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9070 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9071 if test -n "$ac_ct_OTOOL64"; then
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9073 $as_echo "$ac_ct_OTOOL64" >&6; }
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9076 $as_echo "no" >&6; }
9079 if test "x$ac_ct_OTOOL64" = x; then
9082 case $cross_compiling:$ac_tool_warned in
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9085 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9086 ac_tool_warned=yes ;;
9088 OTOOL64=$ac_ct_OTOOL64
9091 OTOOL64="$ac_cv_prog_OTOOL64"
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9121 $as_echo_n "checking for -single_module linker flag... " >&6; }
9122 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
9123 $as_echo_n "(cached) " >&6
9125 lt_cv_apple_cc_single_mod=no
9126 if test -z "${LT_MULTI_MODULE}"; then
9127 # By default we will add the -single_module flag. You can override
9128 # by either setting the environment variable LT_MULTI_MODULE
9129 # non-empty at configure time, or by adding -multi_module to the
9131 rm -rf libconftest.dylib*
9132 echo "int foo(void){return 1;}" > conftest.c
9133 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9134 -dynamiclib -Wl,-single_module conftest.c" >&5
9135 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9136 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9138 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9139 lt_cv_apple_cc_single_mod=yes
9141 cat conftest.err >&5
9143 rm -rf libconftest.dylib*
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9148 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9150 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9151 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
9152 $as_echo_n "(cached) " >&6
9154 lt_cv_ld_exported_symbols_list=no
9155 save_LDFLAGS=$LDFLAGS
9156 echo "_main" > conftest.sym
9157 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9159 /* end confdefs.h. */
9169 if ac_fn_c_try_link "$LINENO"; then :
9170 lt_cv_ld_exported_symbols_list=yes
9172 lt_cv_ld_exported_symbols_list=no
9174 rm -f core conftest.err conftest.$ac_objext \
9175 conftest$ac_exeext conftest.$ac_ext
9176 LDFLAGS="$save_LDFLAGS"
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9180 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9182 rhapsody* | darwin1.[012])
9183 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9185 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9186 darwin*) # darwin 5.x on
9187 # if running on 10.5 or later, the deployment target defaults
9188 # to the OS version, if on x86, and 10.4, the deployment
9189 # target defaults to 10.4. Don't you love it?
9190 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9191 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9192 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9194 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9196 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9200 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9201 _lt_dar_single_mod='$single_module'
9203 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9204 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9206 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9208 if test "$DSYMUTIL" != ":"; then
9209 _lt_dsymutil='~$DSYMUTIL $lib || :'
9216 for ac_header in dlfcn.h
9218 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9220 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9221 cat >>confdefs.h <<_ACEOF
9222 #define HAVE_DLFCN_H 1
9232 ac_cpp='$CXXCPP $CPPFLAGS'
9233 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9234 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9235 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9236 if test -z "$CXX"; then
9237 if test -n "$CCC"; then
9240 if test -n "$ac_tool_prefix"; then
9241 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9243 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9244 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9246 $as_echo_n "checking for $ac_word... " >&6; }
9247 if test "${ac_cv_prog_CXX+set}" = set; then :
9248 $as_echo_n "(cached) " >&6
9250 if test -n "$CXX"; then
9251 ac_cv_prog_CXX="$CXX" # Let the user override the test.
9253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9257 test -z "$as_dir" && as_dir=.
9258 for ac_exec_ext in '' $ac_executable_extensions; do
9259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9260 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
9261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9271 if test -n "$CXX"; then
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
9273 $as_echo "$CXX" >&6; }
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9276 $as_echo "no" >&6; }
9280 test -n "$CXX" && break
9283 if test -z "$CXX"; then
9285 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9287 # Extract the first word of "$ac_prog", so it can be a program name with args.
9288 set dummy $ac_prog; ac_word=$2
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9290 $as_echo_n "checking for $ac_word... " >&6; }
9291 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
9292 $as_echo_n "(cached) " >&6
9294 if test -n "$ac_ct_CXX"; then
9295 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
9297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9301 test -z "$as_dir" && as_dir=.
9302 for ac_exec_ext in '' $ac_executable_extensions; do
9303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9304 ac_cv_prog_ac_ct_CXX="$ac_prog"
9305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9314 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
9315 if test -n "$ac_ct_CXX"; then
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
9317 $as_echo "$ac_ct_CXX" >&6; }
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9320 $as_echo "no" >&6; }
9324 test -n "$ac_ct_CXX" && break
9327 if test "x$ac_ct_CXX" = x; then
9330 case $cross_compiling:$ac_tool_warned in
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9333 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9334 ac_tool_warned=yes ;;
9342 # Provide some information about the compiler.
9343 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
9346 for ac_option in --version -v -V -qversion; do
9347 { { ac_try="$ac_compiler $ac_option >&5"
9349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9350 *) ac_try_echo=$ac_try;;
9352 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
9353 $as_echo "$ac_try_echo"; } >&5
9354 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
9356 if test -s conftest.err; then
9358 ... rest of stderr output deleted ...
9359 10q' conftest.err >conftest.er1
9360 cat conftest.er1 >&5
9362 rm -f conftest.er1 conftest.err
9363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9364 test $ac_status = 0; }
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
9368 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
9369 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
9370 $as_echo_n "(cached) " >&6
9372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9373 /* end confdefs.h. */
9386 if ac_fn_cxx_try_compile "$LINENO"; then :
9391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9392 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
9396 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
9397 if test $ac_compiler_gnu = yes; then
9402 ac_test_CXXFLAGS=${CXXFLAGS+set}
9403 ac_save_CXXFLAGS=$CXXFLAGS
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
9405 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
9406 if test "${ac_cv_prog_cxx_g+set}" = set; then :
9407 $as_echo_n "(cached) " >&6
9409 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
9410 ac_cxx_werror_flag=yes
9413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9414 /* end confdefs.h. */
9424 if ac_fn_cxx_try_compile "$LINENO"; then :
9425 ac_cv_prog_cxx_g=yes
9428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9429 /* end confdefs.h. */
9439 if ac_fn_cxx_try_compile "$LINENO"; then :
9442 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9445 /* end confdefs.h. */
9455 if ac_fn_cxx_try_compile "$LINENO"; then :
9456 ac_cv_prog_cxx_g=yes
9458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9463 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
9466 $as_echo "$ac_cv_prog_cxx_g" >&6; }
9467 if test "$ac_test_CXXFLAGS" = set; then
9468 CXXFLAGS=$ac_save_CXXFLAGS
9469 elif test $ac_cv_prog_cxx_g = yes; then
9470 if test "$GXX" = yes; then
9476 if test "$GXX" = yes; then
9483 ac_cpp='$CPP $CPPFLAGS'
9484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9488 depcc="$CXX" am_compiler_list=
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9491 $as_echo_n "checking dependency style of $depcc... " >&6; }
9492 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9493 $as_echo_n "(cached) " >&6
9495 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9496 # We make a subdir and do the tests there. Otherwise we can end up
9497 # making bogus files that we don't know about and never remove. For
9498 # instance it was reported that on HP-UX the gcc test will end up
9499 # making a dummy file named `D' -- because `-MD' means `put the output
9502 # Copy depcomp to subdir because otherwise we won't find it if we're
9503 # using a relative directory.
9504 cp "$am_depcomp" conftest.dir
9506 # We will build objects and dependencies in a subdirectory because
9507 # it helps to detect inapplicable dependency modes. For instance
9508 # both Tru64's cc and ICC support -MD to output dependencies as a
9509 # side effect of compilation, but ICC will put the dependencies in
9510 # the current directory while Tru64 will put them in the object
9514 am_cv_CXX_dependencies_compiler_type=none
9515 if test "$am_compiler_list" = ""; then
9516 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9519 case " $depcc " in #(
9520 *\ -arch\ *\ -arch\ *) am__universal=true ;;
9523 for depmode in $am_compiler_list; do
9524 # Setup a source with many dependencies, because some compilers
9525 # like to wrap large dependency lists on column 80 (with \), and
9526 # we should not choose a depcomp mode which is confused by this.
9528 # We need to recreate these files for each test, as the compiler may
9529 # overwrite some of them when testing with obscure command lines.
9530 # This happens at least with the AIX C compiler.
9532 for i in 1 2 3 4 5 6; do
9533 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9534 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9535 # Solaris 8's {/usr,}/bin/sh.
9536 touch sub/conftst$i.h
9538 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9540 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9541 # mode. It turns out that the SunPro C++ compiler does not properly
9542 # handle `-M -o', and we need to detect this. Also, some Intel
9543 # versions had trouble with output in subdirs
9544 am__obj=sub/conftest.${OBJEXT-o}
9545 am__minus_obj="-o $am__obj"
9548 # This depmode causes a compiler race in universal mode.
9549 test "$am__universal" = false || continue
9552 # after this tag, mechanisms are not by side-effect, so they'll
9553 # only be used when explicitly requested
9554 if test "x$enable_dependency_tracking" = xyes; then
9560 msvisualcpp | msvcmsys)
9561 # This compiler won't grok `-c -o', but also, the minuso test has
9562 # not run yet. These depmodes are late enough in the game, and
9563 # so weak that their functioning should not be impacted.
9564 am__obj=conftest.${OBJEXT-o}
9569 if depmode=$depmode \
9570 source=sub/conftest.c object=$am__obj \
9571 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9572 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
9573 >/dev/null 2>conftest.err &&
9574 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9575 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9576 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
9577 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9578 # icc doesn't choke on unknown options, it will just issue warnings
9579 # or remarks (even with -Werror). So we grep stderr for any message
9580 # that says an option was ignored or not supported.
9581 # When given -MP, icc 7.0 and 7.1 complain thusly:
9582 # icc: Command line warning: ignoring option '-M'; no argument required
9583 # The diagnosis changed in icc 8.0:
9584 # icc: Command line remark: option '-MP' not supported
9585 if (grep 'ignoring option' conftest.err ||
9586 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9587 am_cv_CXX_dependencies_compiler_type=$depmode
9596 am_cv_CXX_dependencies_compiler_type=none
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9601 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9602 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9605 test "x$enable_dependency_tracking" != xno \
9606 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
9607 am__fastdepCXX_TRUE=
9608 am__fastdepCXX_FALSE='#'
9610 am__fastdepCXX_TRUE='#'
9611 am__fastdepCXX_FALSE=
9615 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9616 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9617 (test "X$CXX" != "Xg++"))) ; then
9619 ac_cpp='$CXXCPP $CPPFLAGS'
9620 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9621 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9622 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9624 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9625 if test -z "$CXXCPP"; then
9626 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9627 $as_echo_n "(cached) " >&6
9629 # Double quotes because CXXCPP needs to be expanded
9630 for CXXCPP in "$CXX -E" "/lib/cpp"
9633 for ac_cxx_preproc_warn_flag in '' yes
9635 # Use a header file that comes with gcc, so configuring glibc
9636 # with a fresh cross-compiler works.
9637 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9638 # <limits.h> exists even on freestanding compilers.
9639 # On the NeXT, cc -E runs the code through the compiler's parser,
9640 # not just through cpp. "Syntax error" is here to catch this case.
9641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9642 /* end confdefs.h. */
9644 # include <limits.h>
9646 # include <assert.h>
9650 if ac_fn_cxx_try_cpp "$LINENO"; then :
9653 # Broken: fails on valid input.
9656 rm -f conftest.err conftest.$ac_ext
9658 # OK, works on sane cases. Now check whether nonexistent headers
9659 # can be detected and how.
9660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9661 /* end confdefs.h. */
9662 #include <ac_nonexistent.h>
9664 if ac_fn_cxx_try_cpp "$LINENO"; then :
9665 # Broken: success on invalid input.
9668 # Passes both tests.
9672 rm -f conftest.err conftest.$ac_ext
9675 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9676 rm -f conftest.err conftest.$ac_ext
9677 if $ac_preproc_ok; then :
9682 ac_cv_prog_CXXCPP=$CXXCPP
9685 CXXCPP=$ac_cv_prog_CXXCPP
9687 ac_cv_prog_CXXCPP=$CXXCPP
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9690 $as_echo "$CXXCPP" >&6; }
9692 for ac_cxx_preproc_warn_flag in '' yes
9694 # Use a header file that comes with gcc, so configuring glibc
9695 # with a fresh cross-compiler works.
9696 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9697 # <limits.h> exists even on freestanding compilers.
9698 # On the NeXT, cc -E runs the code through the compiler's parser,
9699 # not just through cpp. "Syntax error" is here to catch this case.
9700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9701 /* end confdefs.h. */
9703 # include <limits.h>
9705 # include <assert.h>
9709 if ac_fn_cxx_try_cpp "$LINENO"; then :
9712 # Broken: fails on valid input.
9715 rm -f conftest.err conftest.$ac_ext
9717 # OK, works on sane cases. Now check whether nonexistent headers
9718 # can be detected and how.
9719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9720 /* end confdefs.h. */
9721 #include <ac_nonexistent.h>
9723 if ac_fn_cxx_try_cpp "$LINENO"; then :
9724 # Broken: success on invalid input.
9727 # Passes both tests.
9731 rm -f conftest.err conftest.$ac_ext
9734 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9735 rm -f conftest.err conftest.$ac_ext
9736 if $ac_preproc_ok; then :
9739 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9740 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9741 _lt_caught_CXX_error=yes; }
9745 ac_cpp='$CPP $CPPFLAGS'
9746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9751 _lt_caught_CXX_error=yes
9768 # Check whether --enable-shared was given.
9769 if test "${enable_shared+set}" = set; then :
9770 enableval=$enable_shared; p=${PACKAGE-default}
9772 yes) enable_shared=yes ;;
9773 no) enable_shared=no ;;
9776 # Look at the argument we got. We use all the common list separators.
9777 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9778 for pkg in $enableval; do
9780 if test "X$pkg" = "X$p"; then
9799 # Check whether --enable-static was given.
9800 if test "${enable_static+set}" = set; then :
9801 enableval=$enable_static; p=${PACKAGE-default}
9803 yes) enable_static=yes ;;
9804 no) enable_static=no ;;
9807 # Look at the argument we got. We use all the common list separators.
9808 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9809 for pkg in $enableval; do
9811 if test "X$pkg" = "X$p"; then
9831 # Check whether --with-pic was given.
9832 if test "${with_pic+set}" = set; then :
9833 withval=$with_pic; pic_mode="$withval"
9839 test -z "$pic_mode" && pic_mode=default
9847 # Check whether --enable-fast-install was given.
9848 if test "${enable_fast_install+set}" = set; then :
9849 enableval=$enable_fast_install; p=${PACKAGE-default}
9851 yes) enable_fast_install=yes ;;
9852 no) enable_fast_install=no ;;
9854 enable_fast_install=no
9855 # Look at the argument we got. We use all the common list separators.
9856 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9857 for pkg in $enableval; do
9859 if test "X$pkg" = "X$p"; then
9860 enable_fast_install=yes
9867 enable_fast_install=yes
9880 # This can be used to rebuild libtool when needed
9881 LIBTOOL_DEPS="$ltmain"
9883 # Always use our own libtool.
9884 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9910 test -z "$LN_S" && LN_S="ln -s"
9925 if test -n "${ZSH_VERSION+set}" ; then
9926 setopt NO_GLOB_SUBST
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9930 $as_echo_n "checking for objdir... " >&6; }
9931 if test "${lt_cv_objdir+set}" = set; then :
9932 $as_echo_n "(cached) " >&6
9934 rm -f .libs 2>/dev/null
9935 mkdir .libs 2>/dev/null
9936 if test -d .libs; then
9939 # MS-DOS does not allow filenames that begin with a dot.
9942 rmdir .libs 2>/dev/null
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9945 $as_echo "$lt_cv_objdir" >&6; }
9946 objdir=$lt_cv_objdir
9952 cat >>confdefs.h <<_ACEOF
9953 #define LT_OBJDIR "$lt_cv_objdir/"
9974 # AIX sometimes has problems with the GCC collect2 program. For some
9975 # reason, if we set the COLLECT_NAMES environment variable, the problems
9976 # vanish in a puff of smoke.
9977 if test "X${COLLECT_NAMES+set}" != Xset; then
9979 export COLLECT_NAMES
9984 # Sed substitution that helps us do robust quoting. It backslashifies
9985 # metacharacters that are still active within double-quoted strings.
9986 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9988 # Same as above, but do not quote variable references.
9989 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9991 # Sed substitution to delay expansion of an escaped shell variable in a
9992 # double_quote_subst'ed string.
9993 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9995 # Sed substitution to delay expansion of an escaped single quote.
9996 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9998 # Sed substitution to avoid accidental globbing in evaled expressions
9999 no_glob_subst='s/\*/\\\*/g'
10001 # Global variables:
10003 can_build_shared=yes
10005 # All known linkers require a `.a' archive for static linking (except MSVC,
10006 # which needs '.lib').
10009 with_gnu_ld="$lt_cv_prog_gnu_ld"
10012 old_CFLAGS="$CFLAGS"
10014 # Set sane defaults for various variables
10015 test -z "$CC" && CC=cc
10016 test -z "$LTCC" && LTCC=$CC
10017 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10018 test -z "$LD" && LD=ld
10019 test -z "$ac_objext" && ac_objext=o
10021 for cc_temp in $compiler""; do
10023 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10024 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10029 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10032 # Only perform the check for file, if the check method requires it
10033 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10034 case $deplibs_check_method in
10036 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10038 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10039 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10040 $as_echo_n "(cached) " >&6
10044 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10047 lt_save_MAGIC_CMD="$MAGIC_CMD"
10048 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10049 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10050 for ac_dir in $ac_dummy; do
10052 test -z "$ac_dir" && ac_dir=.
10053 if test -f $ac_dir/${ac_tool_prefix}file; then
10054 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10055 if test -n "$file_magic_test_file"; then
10056 case $deplibs_check_method in
10058 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10059 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10060 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10061 $EGREP "$file_magic_regex" > /dev/null; then
10066 *** Warning: the command libtool uses to detect shared libraries,
10067 *** $file_magic_cmd, produces output that libtool cannot recognize.
10068 *** The result is that libtool may fail to recognize shared libraries
10069 *** as such. This will affect the creation of libtool libraries that
10070 *** depend on shared libraries, but programs linked with such libtool
10071 *** libraries will work regardless of this problem. Nevertheless, you
10072 *** may want to report the problem to your system manager and/or to
10073 *** bug-libtool@gnu.org
10083 MAGIC_CMD="$lt_save_MAGIC_CMD"
10088 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10089 if test -n "$MAGIC_CMD"; then
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10091 $as_echo "$MAGIC_CMD" >&6; }
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10094 $as_echo "no" >&6; }
10101 if test -z "$lt_cv_path_MAGIC_CMD"; then
10102 if test -n "$ac_tool_prefix"; then
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10104 $as_echo_n "checking for file... " >&6; }
10105 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10106 $as_echo_n "(cached) " >&6
10110 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10113 lt_save_MAGIC_CMD="$MAGIC_CMD"
10114 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10115 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10116 for ac_dir in $ac_dummy; do
10118 test -z "$ac_dir" && ac_dir=.
10119 if test -f $ac_dir/file; then
10120 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10121 if test -n "$file_magic_test_file"; then
10122 case $deplibs_check_method in
10124 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10125 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10126 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10127 $EGREP "$file_magic_regex" > /dev/null; then
10132 *** Warning: the command libtool uses to detect shared libraries,
10133 *** $file_magic_cmd, produces output that libtool cannot recognize.
10134 *** The result is that libtool may fail to recognize shared libraries
10135 *** as such. This will affect the creation of libtool libraries that
10136 *** depend on shared libraries, but programs linked with such libtool
10137 *** libraries will work regardless of this problem. Nevertheless, you
10138 *** may want to report the problem to your system manager and/or to
10139 *** bug-libtool@gnu.org
10149 MAGIC_CMD="$lt_save_MAGIC_CMD"
10154 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10155 if test -n "$MAGIC_CMD"; then
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10157 $as_echo "$MAGIC_CMD" >&6; }
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10160 $as_echo "no" >&6; }
10173 # Use C for the default configuration in the libtool script
10177 ac_cpp='$CPP $CPPFLAGS'
10178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10183 # Source file extension for C test sources.
10186 # Object file extension for compiled C test sources.
10190 # Code to be used in simple compile tests
10191 lt_simple_compile_test_code="int some_variable = 0;"
10193 # Code to be used in simple link tests
10194 lt_simple_link_test_code='int main(){return(0);}'
10202 # If no C compiler was specified, use CC.
10205 # If no C compiler flags were specified, use CFLAGS.
10206 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10208 # Allow CC to be a program name with arguments.
10211 # Save the default compiler, since it gets overwritten when the other
10212 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10213 compiler_DEFAULT=$CC
10215 # save warnings/boilerplate of simple test code
10216 ac_outfile=conftest.$ac_objext
10217 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10218 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10219 _lt_compiler_boilerplate=`cat conftest.err`
10222 ac_outfile=conftest.$ac_objext
10223 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10224 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10225 _lt_linker_boilerplate=`cat conftest.err`
10230 ## There is no encapsulation within the following macros, do not change
10231 ## the running order or otherwise move them around unless you know exactly
10232 ## what you are doing...
10233 if test -n "$compiler"; then
10235 lt_prog_compiler_no_builtin_flag=
10237 if test "$GCC" = yes; then
10238 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10241 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10242 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
10243 $as_echo_n "(cached) " >&6
10245 lt_cv_prog_compiler_rtti_exceptions=no
10246 ac_outfile=conftest.$ac_objext
10247 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10248 lt_compiler_flag="-fno-rtti -fno-exceptions"
10249 # Insert the option either (1) after the last *FLAGS variable, or
10250 # (2) before a word containing "conftest.", or (3) at the end.
10251 # Note that $ac_compile itself does not contain backslashes and begins
10252 # with a dollar sign (not a hyphen), so the echo should work correctly.
10253 # The option is referenced via a variable to avoid confusing sed.
10254 lt_compile=`echo "$ac_compile" | $SED \
10255 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10256 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10257 -e 's:$: $lt_compiler_flag:'`
10258 (eval echo "\"\$as_me:10258: $lt_compile\"" >&5)
10259 (eval "$lt_compile" 2>conftest.err)
10261 cat conftest.err >&5
10262 echo "$as_me:10262: \$? = $ac_status" >&5
10263 if (exit $ac_status) && test -s "$ac_outfile"; then
10264 # The compiler can only warn and ignore the option if not recognized
10265 # So say no if there are warnings other than the usual output.
10266 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10267 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10268 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10269 lt_cv_prog_compiler_rtti_exceptions=yes
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10276 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10278 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10279 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10291 lt_prog_compiler_wl=
10292 lt_prog_compiler_pic=
10293 lt_prog_compiler_static=
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10296 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10298 if test "$GCC" = yes; then
10299 lt_prog_compiler_wl='-Wl,'
10300 lt_prog_compiler_static='-static'
10304 # All AIX code is PIC.
10305 if test "$host_cpu" = ia64; then
10306 # AIX 5 now supports IA64 processor
10307 lt_prog_compiler_static='-Bstatic'
10314 # see comment about AmigaOS4 .so support
10315 lt_prog_compiler_pic='-fPIC'
10318 # FIXME: we need at least 68020 code to build shared libraries, but
10319 # adding the `-m68020' flag to GCC prevents building anything better,
10321 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10326 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10327 # PIC is the default for these OSes.
10330 mingw* | cygwin* | pw32* | os2* | cegcc*)
10331 # This hack is so that the source file can tell whether it is being
10332 # built for inclusion in a dll (and should export symbols for example).
10333 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10334 # (--disable-auto-import) libraries
10335 lt_prog_compiler_pic='-DDLL_EXPORT'
10338 darwin* | rhapsody*)
10339 # PIC is the default on this platform
10340 # Common symbols not allowed in MH_DYLIB files
10341 lt_prog_compiler_pic='-fno-common'
10345 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10346 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10347 # sets the default TLS model and affects inlining.
10353 lt_prog_compiler_pic='-fPIC'
10359 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10360 # Instead, we relocate shared libraries at runtime.
10364 # Just because we use GCC doesn't mean we suddenly get shared libraries
10365 # on systems that don't support them.
10366 lt_prog_compiler_can_build_shared=no
10371 # QNX uses GNU C++, but need to define -shared option too, otherwise
10372 # it will coredump.
10373 lt_prog_compiler_pic='-fPIC -shared'
10377 if test -d /usr/nec; then
10378 lt_prog_compiler_pic=-Kconform_pic
10383 lt_prog_compiler_pic='-fPIC'
10387 # PORTME Check for flag to pass linker flags through the system compiler.
10390 lt_prog_compiler_wl='-Wl,'
10391 if test "$host_cpu" = ia64; then
10392 # AIX 5 now supports IA64 processor
10393 lt_prog_compiler_static='-Bstatic'
10395 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10399 mingw* | cygwin* | pw32* | os2* | cegcc*)
10400 # This hack is so that the source file can tell whether it is being
10401 # built for inclusion in a dll (and should export symbols for example).
10402 lt_prog_compiler_pic='-DDLL_EXPORT'
10405 hpux9* | hpux10* | hpux11*)
10406 lt_prog_compiler_wl='-Wl,'
10407 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10408 # not for PA HP-UX.
10414 lt_prog_compiler_pic='+Z'
10417 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10418 lt_prog_compiler_static='${wl}-a ${wl}archive'
10421 irix5* | irix6* | nonstopux*)
10422 lt_prog_compiler_wl='-Wl,'
10423 # PIC (with -KPIC) is the default.
10424 lt_prog_compiler_static='-non_shared'
10427 linux* | k*bsd*-gnu)
10428 case $cc_basename in
10429 # old Intel for x86_64 which still supported -KPIC.
10431 lt_prog_compiler_wl='-Wl,'
10432 lt_prog_compiler_pic='-KPIC'
10433 lt_prog_compiler_static='-static'
10435 # icc used to be incompatible with GCC.
10436 # ICC 10 doesn't accept -KPIC any more.
10438 lt_prog_compiler_wl='-Wl,'
10439 lt_prog_compiler_pic='-fPIC'
10440 lt_prog_compiler_static='-static'
10442 # Lahey Fortran 8.1.
10444 lt_prog_compiler_wl='-Wl,'
10445 lt_prog_compiler_pic='--shared'
10446 lt_prog_compiler_static='--static'
10448 pgcc* | pgf77* | pgf90* | pgf95*)
10449 # Portland Group compilers (*not* the Pentium gcc compiler,
10450 # which looks to be a dead project)
10451 lt_prog_compiler_wl='-Wl,'
10452 lt_prog_compiler_pic='-fpic'
10453 lt_prog_compiler_static='-Bstatic'
10456 lt_prog_compiler_wl='-Wl,'
10457 # All Alpha code is PIC.
10458 lt_prog_compiler_static='-non_shared'
10461 # IBM XL C 8.0/Fortran 10.1 on PPC
10462 lt_prog_compiler_wl='-Wl,'
10463 lt_prog_compiler_pic='-qpic'
10464 lt_prog_compiler_static='-qstaticlink'
10467 case `$CC -V 2>&1 | sed 5q` in
10470 lt_prog_compiler_pic='-KPIC'
10471 lt_prog_compiler_static='-Bstatic'
10472 lt_prog_compiler_wl='-Wl,'
10475 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10476 lt_prog_compiler_pic='-KPIC'
10477 lt_prog_compiler_static='-Bstatic'
10478 lt_prog_compiler_wl=''
10486 lt_prog_compiler_pic='-KPIC'
10487 lt_prog_compiler_static='-Bstatic'
10491 # QNX uses GNU C++, but need to define -shared option too, otherwise
10492 # it will coredump.
10493 lt_prog_compiler_pic='-fPIC -shared'
10496 osf3* | osf4* | osf5*)
10497 lt_prog_compiler_wl='-Wl,'
10498 # All OSF/1 code is PIC.
10499 lt_prog_compiler_static='-non_shared'
10503 lt_prog_compiler_static='-non_shared'
10507 lt_prog_compiler_pic='-KPIC'
10508 lt_prog_compiler_static='-Bstatic'
10509 case $cc_basename in
10510 f77* | f90* | f95*)
10511 lt_prog_compiler_wl='-Qoption ld ';;
10513 lt_prog_compiler_wl='-Wl,';;
10518 lt_prog_compiler_wl='-Qoption ld '
10519 lt_prog_compiler_pic='-PIC'
10520 lt_prog_compiler_static='-Bstatic'
10523 sysv4 | sysv4.2uw2* | sysv4.3*)
10524 lt_prog_compiler_wl='-Wl,'
10525 lt_prog_compiler_pic='-KPIC'
10526 lt_prog_compiler_static='-Bstatic'
10530 if test -d /usr/nec ;then
10531 lt_prog_compiler_pic='-Kconform_pic'
10532 lt_prog_compiler_static='-Bstatic'
10536 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10537 lt_prog_compiler_wl='-Wl,'
10538 lt_prog_compiler_pic='-KPIC'
10539 lt_prog_compiler_static='-Bstatic'
10543 lt_prog_compiler_wl='-Wl,'
10544 lt_prog_compiler_can_build_shared=no
10548 lt_prog_compiler_pic='-pic'
10549 lt_prog_compiler_static='-Bstatic'
10553 lt_prog_compiler_can_build_shared=no
10559 # For platforms which do not support PIC, -DPIC is meaningless:
10561 lt_prog_compiler_pic=
10564 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10568 $as_echo "$lt_prog_compiler_pic" >&6; }
10576 # Check to make sure the PIC flag actually works.
10578 if test -n "$lt_prog_compiler_pic"; then
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10580 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10581 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
10582 $as_echo_n "(cached) " >&6
10584 lt_cv_prog_compiler_pic_works=no
10585 ac_outfile=conftest.$ac_objext
10586 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10587 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10588 # Insert the option either (1) after the last *FLAGS variable, or
10589 # (2) before a word containing "conftest.", or (3) at the end.
10590 # Note that $ac_compile itself does not contain backslashes and begins
10591 # with a dollar sign (not a hyphen), so the echo should work correctly.
10592 # The option is referenced via a variable to avoid confusing sed.
10593 lt_compile=`echo "$ac_compile" | $SED \
10594 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10595 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10596 -e 's:$: $lt_compiler_flag:'`
10597 (eval echo "\"\$as_me:10597: $lt_compile\"" >&5)
10598 (eval "$lt_compile" 2>conftest.err)
10600 cat conftest.err >&5
10601 echo "$as_me:10601: \$? = $ac_status" >&5
10602 if (exit $ac_status) && test -s "$ac_outfile"; then
10603 # The compiler can only warn and ignore the option if not recognized
10604 # So say no if there are warnings other than the usual output.
10605 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10606 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10607 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10608 lt_cv_prog_compiler_pic_works=yes
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10615 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10617 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10618 case $lt_prog_compiler_pic in
10620 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10623 lt_prog_compiler_pic=
10624 lt_prog_compiler_can_build_shared=no
10635 # Check to make sure the static flag actually works.
10637 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10639 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10640 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
10641 $as_echo_n "(cached) " >&6
10643 lt_cv_prog_compiler_static_works=no
10644 save_LDFLAGS="$LDFLAGS"
10645 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10646 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10647 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10648 # The linker can only warn and ignore the option if not recognized
10649 # So say no if there are warnings
10650 if test -s conftest.err; then
10651 # Append any errors to the config.log.
10652 cat conftest.err 1>&5
10653 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10654 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10655 if diff conftest.exp conftest.er2 >/dev/null; then
10656 lt_cv_prog_compiler_static_works=yes
10659 lt_cv_prog_compiler_static_works=yes
10663 LDFLAGS="$save_LDFLAGS"
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10667 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10669 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10672 lt_prog_compiler_static=
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10682 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10683 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10684 $as_echo_n "(cached) " >&6
10686 lt_cv_prog_compiler_c_o=no
10687 $RM -r conftest 2>/dev/null
10691 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10693 lt_compiler_flag="-o out/conftest2.$ac_objext"
10694 # Insert the option either (1) after the last *FLAGS variable, or
10695 # (2) before a word containing "conftest.", or (3) at the end.
10696 # Note that $ac_compile itself does not contain backslashes and begins
10697 # with a dollar sign (not a hyphen), so the echo should work correctly.
10698 lt_compile=`echo "$ac_compile" | $SED \
10699 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10700 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10701 -e 's:$: $lt_compiler_flag:'`
10702 (eval echo "\"\$as_me:10702: $lt_compile\"" >&5)
10703 (eval "$lt_compile" 2>out/conftest.err)
10705 cat out/conftest.err >&5
10706 echo "$as_me:10706: \$? = $ac_status" >&5
10707 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10709 # The compiler can only warn and ignore the option if not recognized
10710 # So say no if there are warnings
10711 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10712 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10713 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10714 lt_cv_prog_compiler_c_o=yes
10719 # SGI C++ compiler will create directory out/ii_files/ for
10720 # template instantiation
10721 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10722 $RM out/* && rmdir out
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10729 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10737 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10738 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10739 $as_echo_n "(cached) " >&6
10741 lt_cv_prog_compiler_c_o=no
10742 $RM -r conftest 2>/dev/null
10746 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10748 lt_compiler_flag="-o out/conftest2.$ac_objext"
10749 # Insert the option either (1) after the last *FLAGS variable, or
10750 # (2) before a word containing "conftest.", or (3) at the end.
10751 # Note that $ac_compile itself does not contain backslashes and begins
10752 # with a dollar sign (not a hyphen), so the echo should work correctly.
10753 lt_compile=`echo "$ac_compile" | $SED \
10754 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10755 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10756 -e 's:$: $lt_compiler_flag:'`
10757 (eval echo "\"\$as_me:10757: $lt_compile\"" >&5)
10758 (eval "$lt_compile" 2>out/conftest.err)
10760 cat out/conftest.err >&5
10761 echo "$as_me:10761: \$? = $ac_status" >&5
10762 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10764 # The compiler can only warn and ignore the option if not recognized
10765 # So say no if there are warnings
10766 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10767 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10768 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10769 lt_cv_prog_compiler_c_o=yes
10774 # SGI C++ compiler will create directory out/ii_files/ for
10775 # template instantiation
10776 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10777 $RM out/* && rmdir out
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10784 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10789 hard_links="nottested"
10790 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10791 # do not overwrite the value of need_locks provided by the user
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10793 $as_echo_n "checking if we can lock with hard links... " >&6; }
10796 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10798 ln conftest.a conftest.b 2>&5 || hard_links=no
10799 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10801 $as_echo "$hard_links" >&6; }
10802 if test "$hard_links" = no; then
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10804 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10817 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10820 allow_undefined_flag=
10821 always_export_symbols=no
10823 archive_expsym_cmds=
10824 compiler_needs_object=no
10825 enable_shared_with_static_runtimes=no
10826 export_dynamic_flag_spec=
10827 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10828 hardcode_automatic=no
10830 hardcode_direct_absolute=no
10831 hardcode_libdir_flag_spec=
10832 hardcode_libdir_flag_spec_ld=
10833 hardcode_libdir_separator=
10834 hardcode_minus_L=no
10835 hardcode_shlibpath_var=unsupported
10837 link_all_deplibs=unknown
10839 module_expsym_cmds=
10840 old_archive_from_new_cmds=
10841 old_archive_from_expsyms_cmds=
10842 thread_safe_flag_spec=
10843 whole_archive_flag_spec=
10844 # include_expsyms should be a list of space-separated symbols to be *always*
10845 # included in the symbol list
10847 # exclude_expsyms can be an extended regexp of symbols to exclude
10848 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10849 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10850 # as well as any symbol that contains `d'.
10851 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10852 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10853 # platforms (ab)use it in PIC code, but their linkers get confused if
10854 # the symbol is explicitly referenced. Since portable code cannot
10855 # rely on this symbol name, it's probably fine to never include it in
10856 # preloaded symbol tables.
10857 # Exclude shared library initialization/finalization symbols.
10858 extract_expsyms_cmds=
10861 cygwin* | mingw* | pw32* | cegcc*)
10862 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10863 # When not using gcc, we currently assume that we are using
10864 # Microsoft Visual C++.
10865 if test "$GCC" != yes; then
10870 # we just hope/assume this is gcc and not c89 (= MSVC++)
10879 if test "$with_gnu_ld" = yes; then
10880 # If archive_cmds runs LD, not CC, wlarc should be empty
10883 # Set some defaults for GNU ld with shared library support. These
10884 # are reset later if shared libraries are not supported. Putting them
10885 # here allows them to be overridden if necessary.
10886 runpath_var=LD_RUN_PATH
10887 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10888 export_dynamic_flag_spec='${wl}--export-dynamic'
10889 # ancient GNU ld didn't support --whole-archive et. al.
10890 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10891 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10893 whole_archive_flag_spec=
10895 supports_anon_versioning=no
10896 case `$LD -v 2>&1` in
10897 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10898 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10899 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10900 *\ 2.11.*) ;; # other 2.11 versions
10901 *) supports_anon_versioning=yes ;;
10904 # See if GNU ld supports shared libraries.
10907 # On AIX/PPC, the GNU linker is very broken
10908 if test "$host_cpu" != ia64; then
10912 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10913 *** to be unable to reliably create shared libraries on AIX.
10914 *** Therefore, libtool is disabling shared libraries support. If you
10915 *** really care for shared libraries, you may want to modify your PATH
10916 *** so that a non-GNU linker is found, and then restart.
10925 # see comment about AmigaOS4 .so support
10926 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10927 archive_expsym_cmds=''
10930 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)'
10931 hardcode_libdir_flag_spec='-L$libdir'
10932 hardcode_minus_L=yes
10938 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10939 allow_undefined_flag=unsupported
10940 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10941 # support --undefined. This deserves some investigation. FIXME
10942 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10948 cygwin* | mingw* | pw32* | cegcc*)
10949 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10950 # as there is no search path for DLLs.
10951 hardcode_libdir_flag_spec='-L$libdir'
10952 allow_undefined_flag=unsupported
10953 always_export_symbols=no
10954 enable_shared_with_static_runtimes=yes
10955 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10957 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10958 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10959 # If the export-symbols file already is a .def file (1st line
10960 # is EXPORTS), use it as is; otherwise, prepend...
10961 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10962 cp $export_symbols $output_objdir/$soname.def;
10964 echo EXPORTS > $output_objdir/$soname.def;
10965 cat $export_symbols >> $output_objdir/$soname.def;
10967 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10975 hardcode_shlibpath_var=no
10976 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10977 export_dynamic_flag_spec='${wl}-E'
10978 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10979 # Instead, shared libraries are loaded at an image base (0x10000000 by
10980 # default) and relocated if they conflict, which is a slow very memory
10981 # consuming and fragmenting process. To avoid this, we pick a random,
10982 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10983 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10984 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10985 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'
10988 gnu* | linux* | tpf* | k*bsd*-gnu)
10990 if test "$host_os" = linux-dietlibc; then
10991 case $cc_basename in
10992 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10995 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10996 && test "$tmp_diet" = no
10999 tmp_sharedflag='-shared'
11000 case $cc_basename,$host_cpu in
11001 pgcc*) # Portland Group C compiler
11002 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
11003 tmp_addflag=' $pic_flag'
11005 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
11006 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
11007 tmp_addflag=' $pic_flag -Mnomain' ;;
11008 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11009 tmp_addflag=' -i_dynamic' ;;
11010 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11011 tmp_addflag=' -i_dynamic -nofor_main' ;;
11012 ifc* | ifort*) # Intel Fortran compiler
11013 tmp_addflag=' -nofor_main' ;;
11014 lf95*) # Lahey Fortran 8.1
11015 whole_archive_flag_spec=
11016 tmp_sharedflag='--shared' ;;
11017 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11018 tmp_sharedflag='-qmkshrobj'
11021 case `$CC -V 2>&1 | sed 5q` in
11022 *Sun\ C*) # Sun C 5.9
11023 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
11024 compiler_needs_object=yes
11025 tmp_sharedflag='-G' ;;
11026 *Sun\ F*) # Sun Fortran 8.3
11027 tmp_sharedflag='-G' ;;
11029 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11031 if test "x$supports_anon_versioning" = xyes; then
11032 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11033 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11034 echo "local: *; };" >> $output_objdir/$libname.ver~
11035 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11038 case $cc_basename in
11040 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11041 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11042 hardcode_libdir_flag_spec=
11043 hardcode_libdir_flag_spec_ld='-rpath $libdir'
11044 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
11045 if test "x$supports_anon_versioning" = xyes; then
11046 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11047 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11048 echo "local: *; };" >> $output_objdir/$libname.ver~
11049 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11059 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11060 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11063 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11064 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11069 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11073 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11074 *** create shared libraries on Solaris systems. Therefore, libtool
11075 *** is disabling shared libraries support. We urge you to upgrade GNU
11076 *** binutils to release 2.9.1 or newer. Another option is to modify
11077 *** your PATH or compiler configuration so that the native linker is
11078 *** used, and then restart.
11081 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11082 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11083 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11089 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11090 case `$LD -v 2>&1` in
11091 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11095 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11096 *** reliably create shared libraries on SCO systems. Therefore, libtool
11097 *** is disabling shared libraries support. We urge you to upgrade GNU
11098 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11099 *** your PATH or compiler configuration so that the native linker is
11100 *** used, and then restart.
11105 # For security reasons, it is highly recommended that you always
11106 # use absolute paths for naming shared libraries, and exclude the
11107 # DT_RUNPATH tag from executables and libraries. But doing so
11108 # requires that you compile everything twice, which is a pain.
11109 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11110 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11111 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11112 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11121 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11123 hardcode_direct=yes
11124 hardcode_shlibpath_var=no
11128 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11129 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11130 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11137 if test "$ld_shlibs" = no; then
11139 hardcode_libdir_flag_spec=
11140 export_dynamic_flag_spec=
11141 whole_archive_flag_spec=
11144 # PORTME fill in a description of your system's linker (not GNU ld)
11147 allow_undefined_flag=unsupported
11148 always_export_symbols=yes
11149 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'
11150 # Note: this linker hardcodes the directories in LIBPATH if there
11151 # are no directories specified by -L.
11152 hardcode_minus_L=yes
11153 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11154 # Neither direct hardcoding nor static linking is supported with a
11156 hardcode_direct=unsupported
11161 if test "$host_cpu" = ia64; then
11162 # On IA64, the linker does run time linking by default, so we don't
11163 # have to do anything special.
11164 aix_use_runtimelinking=no
11165 exp_sym_flag='-Bexport'
11168 # If we're using GNU nm, then we don't want the "-C" option.
11169 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11170 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11171 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11173 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'
11175 aix_use_runtimelinking=no
11177 # Test if we are trying to use run time linking or normal
11178 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11179 # need to do runtime linking.
11180 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11181 for ld_flag in $LDFLAGS; do
11182 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11183 aix_use_runtimelinking=yes
11190 exp_sym_flag='-bexport'
11191 no_entry_flag='-bnoentry'
11194 # When large executables or shared objects are built, AIX ld can
11195 # have problems creating the table of contents. If linking a library
11196 # or program results in "error TOC overflow" add -mminimal-toc to
11197 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11198 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11201 hardcode_direct=yes
11202 hardcode_direct_absolute=yes
11203 hardcode_libdir_separator=':'
11204 link_all_deplibs=yes
11205 file_list_spec='${wl}-f,'
11207 if test "$GCC" = yes; then
11208 case $host_os in aix4.[012]|aix4.[012].*)
11209 # We only want to do this on AIX 4.2 and lower, the check
11210 # below for broken collect2 doesn't work under 4.3+
11211 collect2name=`${CC} -print-prog-name=collect2`
11212 if test -f "$collect2name" &&
11213 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11215 # We have reworked collect2
11218 # We have old collect2
11219 hardcode_direct=unsupported
11220 # It fails to find uninstalled libraries when the uninstalled
11221 # path is not listed in the libpath. Setting hardcode_minus_L
11222 # to unsupported forces relinking
11223 hardcode_minus_L=yes
11224 hardcode_libdir_flag_spec='-L$libdir'
11225 hardcode_libdir_separator=
11229 shared_flag='-shared'
11230 if test "$aix_use_runtimelinking" = yes; then
11231 shared_flag="$shared_flag "'${wl}-G'
11235 if test "$host_cpu" = ia64; then
11236 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11237 # chokes on -Wl,-G. The following line is correct:
11240 if test "$aix_use_runtimelinking" = yes; then
11241 shared_flag='${wl}-G'
11243 shared_flag='${wl}-bM:SRE'
11248 export_dynamic_flag_spec='${wl}-bexpall'
11249 # It seems that -bexpall does not export symbols beginning with
11250 # underscore (_), so it is better to generate a list of symbols to export.
11251 always_export_symbols=yes
11252 if test "$aix_use_runtimelinking" = yes; then
11253 # Warning - without using the other runtime loading flags (-brtl),
11254 # -berok will link without error, but may produce a broken library.
11255 allow_undefined_flag='-berok'
11256 # Determine the default libpath from the value encoded in an
11257 # empty executable.
11258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11259 /* end confdefs.h. */
11269 if ac_fn_c_try_link "$LINENO"; then :
11271 lt_aix_libpath_sed='
11272 /Import File Strings/,/^$/ {
11278 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11279 # Check for a 64-bit object if we didn't find anything.
11280 if test -z "$aix_libpath"; then
11281 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11284 rm -f core conftest.err conftest.$ac_objext \
11285 conftest$ac_exeext conftest.$ac_ext
11286 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11288 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11289 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11291 if test "$host_cpu" = ia64; then
11292 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11293 allow_undefined_flag="-z nodefs"
11294 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"
11296 # Determine the default libpath from the value encoded in an
11297 # empty executable.
11298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11299 /* end confdefs.h. */
11309 if ac_fn_c_try_link "$LINENO"; then :
11311 lt_aix_libpath_sed='
11312 /Import File Strings/,/^$/ {
11318 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11319 # Check for a 64-bit object if we didn't find anything.
11320 if test -z "$aix_libpath"; then
11321 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11324 rm -f core conftest.err conftest.$ac_objext \
11325 conftest$ac_exeext conftest.$ac_ext
11326 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11328 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11329 # Warning - without using the other run time loading flags,
11330 # -berok will link without error, but may produce a broken library.
11331 no_undefined_flag=' ${wl}-bernotok'
11332 allow_undefined_flag=' ${wl}-berok'
11333 # Exported symbols can be pulled into shared objects from archives
11334 whole_archive_flag_spec='$convenience'
11335 archive_cmds_need_lc=yes
11336 # This is similar to how AIX traditionally builds its shared libraries.
11337 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'
11345 # see comment about AmigaOS4 .so support
11346 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11347 archive_expsym_cmds=''
11350 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)'
11351 hardcode_libdir_flag_spec='-L$libdir'
11352 hardcode_minus_L=yes
11358 export_dynamic_flag_spec=-rdynamic
11361 cygwin* | mingw* | pw32* | cegcc*)
11362 # When not using gcc, we currently assume that we are using
11363 # Microsoft Visual C++.
11364 # hardcode_libdir_flag_spec is actually meaningless, as there is
11365 # no search path for DLLs.
11366 hardcode_libdir_flag_spec=' '
11367 allow_undefined_flag=unsupported
11368 # Tell ltmain to make .lib files, not .a files.
11370 # Tell ltmain to make .dll files, not .so files.
11372 # FIXME: Setting linknames here is a bad hack.
11373 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
11374 # The linker will automatically build a .lib file if we build a DLL.
11375 old_archive_from_new_cmds='true'
11376 # FIXME: Should let the user specify the lib program.
11377 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11378 fix_srcfile_path='`cygpath -w "$srcfile"`'
11379 enable_shared_with_static_runtimes=yes
11382 darwin* | rhapsody*)
11385 archive_cmds_need_lc=no
11387 hardcode_automatic=yes
11388 hardcode_shlibpath_var=unsupported
11389 whole_archive_flag_spec=''
11390 link_all_deplibs=yes
11391 allow_undefined_flag="$_lt_dar_allow_undefined"
11392 case $cc_basename in
11393 ifort*) _lt_dar_can_shared=yes ;;
11394 *) _lt_dar_can_shared=$GCC ;;
11396 if test "$_lt_dar_can_shared" = "yes"; then
11397 output_verbose_link_cmd=echo
11398 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11399 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11400 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}"
11401 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}"
11410 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11411 hardcode_libdir_flag_spec='-L$libdir'
11412 hardcode_shlibpath_var=no
11419 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11420 # support. Future versions do this automatically, but an explicit c++rt0.o
11421 # does not break anything, and helps significantly (at the cost of a little
11424 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11425 hardcode_libdir_flag_spec='-R$libdir'
11426 hardcode_direct=yes
11427 hardcode_shlibpath_var=no
11430 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11432 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11433 hardcode_direct=yes
11434 hardcode_minus_L=yes
11435 hardcode_shlibpath_var=no
11438 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11439 freebsd* | dragonfly*)
11440 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11441 hardcode_libdir_flag_spec='-R$libdir'
11442 hardcode_direct=yes
11443 hardcode_shlibpath_var=no
11447 if test "$GCC" = yes; then
11448 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'
11450 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'
11452 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11453 hardcode_libdir_separator=:
11454 hardcode_direct=yes
11456 # hardcode_minus_L: Not really in the search PATH,
11457 # but as the default location of the library.
11458 hardcode_minus_L=yes
11459 export_dynamic_flag_spec='${wl}-E'
11463 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11464 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11466 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11468 if test "$with_gnu_ld" = no; then
11469 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11470 hardcode_libdir_flag_spec_ld='+b $libdir'
11471 hardcode_libdir_separator=:
11472 hardcode_direct=yes
11473 hardcode_direct_absolute=yes
11474 export_dynamic_flag_spec='${wl}-E'
11475 # hardcode_minus_L: Not really in the search PATH,
11476 # but as the default location of the library.
11477 hardcode_minus_L=yes
11482 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11485 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11488 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11491 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11497 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11500 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11503 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11507 if test "$with_gnu_ld" = no; then
11508 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11509 hardcode_libdir_separator=:
11514 hardcode_shlibpath_var=no
11517 hardcode_direct=yes
11518 hardcode_direct_absolute=yes
11519 export_dynamic_flag_spec='${wl}-E'
11521 # hardcode_minus_L: Not really in the search PATH,
11522 # but as the default location of the library.
11523 hardcode_minus_L=yes
11529 irix5* | irix6* | nonstopux*)
11530 if test "$GCC" = yes; then
11531 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11532 # Try to use the -exported_symbol ld option, if it does not
11533 # work, assume that -exports_file does not work either and
11534 # implicitly export all symbols.
11535 save_LDFLAGS="$LDFLAGS"
11536 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11538 /* end confdefs.h. */
11541 if ac_fn_c_try_link "$LINENO"; then :
11542 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11545 rm -f core conftest.err conftest.$ac_objext \
11546 conftest$ac_exeext conftest.$ac_ext
11547 LDFLAGS="$save_LDFLAGS"
11549 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11550 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
11552 archive_cmds_need_lc='no'
11553 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11554 hardcode_libdir_separator=:
11556 link_all_deplibs=yes
11560 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11561 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11563 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11565 hardcode_libdir_flag_spec='-R$libdir'
11566 hardcode_direct=yes
11567 hardcode_shlibpath_var=no
11571 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11572 hardcode_direct=yes
11573 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11574 hardcode_libdir_separator=:
11575 hardcode_shlibpath_var=no
11582 if test -f /usr/libexec/ld.so; then
11583 hardcode_direct=yes
11584 hardcode_shlibpath_var=no
11585 hardcode_direct_absolute=yes
11586 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11587 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11588 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11589 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11590 export_dynamic_flag_spec='${wl}-E'
11593 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11594 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11595 hardcode_libdir_flag_spec='-R$libdir'
11598 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11599 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11609 hardcode_libdir_flag_spec='-L$libdir'
11610 hardcode_minus_L=yes
11611 allow_undefined_flag=unsupported
11612 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'
11613 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11617 if test "$GCC" = yes; then
11618 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11619 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11621 allow_undefined_flag=' -expect_unresolved \*'
11622 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11624 archive_cmds_need_lc='no'
11625 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11626 hardcode_libdir_separator=:
11629 osf4* | osf5*) # as osf3* with the addition of -msym flag
11630 if test "$GCC" = yes; then
11631 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11632 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11633 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11635 allow_undefined_flag=' -expect_unresolved \*'
11636 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11637 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~
11638 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
11640 # Both c and cxx compiler support -rpath directly
11641 hardcode_libdir_flag_spec='-rpath $libdir'
11643 archive_cmds_need_lc='no'
11644 hardcode_libdir_separator=:
11648 no_undefined_flag=' -z defs'
11649 if test "$GCC" = yes; then
11651 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11652 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11653 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11655 case `$CC -V 2>&1` in
11658 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11659 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11660 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11664 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11665 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11666 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11670 hardcode_libdir_flag_spec='-R$libdir'
11671 hardcode_shlibpath_var=no
11673 solaris2.[0-5] | solaris2.[0-5].*) ;;
11675 # The compiler driver will combine and reorder linker options,
11676 # but understands `-z linker_flag'. GCC discards it without `$wl',
11677 # but is careful enough not to reorder.
11678 # Supported since Solaris 2.6 (maybe 2.5.1?)
11679 if test "$GCC" = yes; then
11680 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11682 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11686 link_all_deplibs=yes
11690 if test "x$host_vendor" = xsequent; then
11691 # Use $CC to link under sequent, because it throws in some extra .o
11692 # files that make .init and .fini sections work.
11693 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11695 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11697 hardcode_libdir_flag_spec='-L$libdir'
11698 hardcode_direct=yes
11699 hardcode_minus_L=yes
11700 hardcode_shlibpath_var=no
11704 case $host_vendor in
11706 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11707 hardcode_direct=yes # is this really true???
11710 ## LD is ld it makes a PLAMLIB
11711 ## CC just makes a GrossModule.
11712 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11713 reload_cmds='$CC -r -o $output$reload_objs'
11717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11718 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11721 runpath_var='LD_RUN_PATH'
11722 hardcode_shlibpath_var=no
11726 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11727 hardcode_shlibpath_var=no
11728 export_dynamic_flag_spec='-Bexport'
11732 if test -d /usr/nec; then
11733 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11734 hardcode_shlibpath_var=no
11735 runpath_var=LD_RUN_PATH
11736 hardcode_runpath_var=yes
11741 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11742 no_undefined_flag='${wl}-z,text'
11743 archive_cmds_need_lc=no
11744 hardcode_shlibpath_var=no
11745 runpath_var='LD_RUN_PATH'
11747 if test "$GCC" = yes; then
11748 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11749 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11751 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11752 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11756 sysv5* | sco3.2v5* | sco5v6*)
11757 # Note: We can NOT use -z defs as we might desire, because we do not
11758 # link with -lc, and that would cause any symbols used from libc to
11759 # always be unresolved, which means just about no library would
11760 # ever link correctly. If we're not using GNU ld we use -z text
11761 # though, which does catch some bad symbols but isn't as heavy-handed
11763 no_undefined_flag='${wl}-z,text'
11764 allow_undefined_flag='${wl}-z,nodefs'
11765 archive_cmds_need_lc=no
11766 hardcode_shlibpath_var=no
11767 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11768 hardcode_libdir_separator=':'
11769 link_all_deplibs=yes
11770 export_dynamic_flag_spec='${wl}-Bexport'
11771 runpath_var='LD_RUN_PATH'
11773 if test "$GCC" = yes; then
11774 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11775 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11777 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11778 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11783 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11784 hardcode_libdir_flag_spec='-L$libdir'
11785 hardcode_shlibpath_var=no
11793 if test x$host_vendor = xsni; then
11795 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11796 export_dynamic_flag_spec='${wl}-Blargedynsym'
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11803 $as_echo "$ld_shlibs" >&6; }
11804 test "$ld_shlibs" = no && can_build_shared=no
11806 with_gnu_ld=$with_gnu_ld
11823 # Do we need to explicitly link libc?
11825 case "x$archive_cmds_need_lc" in
11827 # Assume -lc should be added
11828 archive_cmds_need_lc=yes
11830 if test "$enable_shared" = yes && test "$GCC" = yes; then
11831 case $archive_cmds in
11833 # FIXME: we may have to deal with multi-command sequences.
11836 # Test whether the compiler implicitly links with -lc since on some
11837 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11838 # to ld, don't add -lc before -lgcc.
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11840 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11842 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11844 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11845 (eval $ac_compile) 2>&5
11847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11848 test $ac_status = 0; } 2>conftest.err; then
11851 libobjs=conftest.$ac_objext
11853 wl=$lt_prog_compiler_wl
11854 pic_flag=$lt_prog_compiler_pic
11860 lt_save_allow_undefined_flag=$allow_undefined_flag
11861 allow_undefined_flag=
11862 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11863 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11866 test $ac_status = 0; }
11868 archive_cmds_need_lc=no
11870 archive_cmds_need_lc=yes
11872 allow_undefined_flag=$lt_save_allow_undefined_flag
11874 cat conftest.err 1>&5
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
11878 $as_echo "$archive_cmds_need_lc" >&6; }
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12042 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12044 if test "$GCC" = yes; then
12046 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12047 *) lt_awk_arg="/^libraries:/" ;;
12049 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12050 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
12051 # if the path contains ";" then we assume it to be the separator
12052 # otherwise default to the standard path separator (i.e. ":") - it is
12053 # assumed that no part of a normal pathname contains ";" but that should
12054 # okay in the real world where ";" in dirpaths is itself problematic.
12055 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
12057 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12059 # Ok, now we have the path, separated by spaces, we can step through it
12060 # and add multilib dir if necessary.
12061 lt_tmp_lt_search_path_spec=
12062 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12063 for lt_sys_path in $lt_search_path_spec; do
12064 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12065 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12067 test -d "$lt_sys_path" && \
12068 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12071 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
12072 BEGIN {RS=" "; FS="/|\n";} {
12075 for (lt_i = NF; lt_i > 0; lt_i--) {
12076 if ($lt_i != "" && $lt_i != ".") {
12077 if ($lt_i == "..") {
12080 if (lt_count == 0) {
12081 lt_foo="/" $lt_i lt_foo;
12088 if (lt_foo != "") { lt_freq[lt_foo]++; }
12089 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12091 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
12093 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12095 library_names_spec=
12096 libname_spec='lib$name'
12100 postuninstall_cmds=
12104 shlibpath_overrides_runpath=unknown
12106 dynamic_linker="$host_os ld.so"
12107 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12108 need_lib_prefix=unknown
12109 hardcode_into_libs=no
12111 # when you set need_version to no, make sure it does not cause -set_version
12112 # flags to be left without arguments
12113 need_version=unknown
12118 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12119 shlibpath_var=LIBPATH
12121 # AIX 3 has no versioning support, so we append a major version to the name.
12122 soname_spec='${libname}${release}${shared_ext}$major'
12129 hardcode_into_libs=yes
12130 if test "$host_cpu" = ia64; then
12131 # AIX 5 supports IA64
12132 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12133 shlibpath_var=LD_LIBRARY_PATH
12135 # With GCC up to 2.95.x, collect2 would create an import file
12136 # for dependence libraries. The import file would start with
12137 # the line `#! .'. This would cause the generated library to
12138 # depend on `.', always an invalid library. This was fixed in
12139 # development snapshots of GCC prior to 3.0.
12141 aix4 | aix4.[01] | aix4.[01].*)
12142 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12144 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12147 can_build_shared=no
12151 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12152 # soname into executable. Probably we can add versioning support to
12153 # collect2, so additional links can be useful in future.
12154 if test "$aix_use_runtimelinking" = yes; then
12155 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12156 # instead of lib<name>.a to let people know that these are not
12157 # typical AIX shared libraries.
12158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12160 # We preserve .a as extension for shared libraries through AIX4.2
12161 # and later when we are not doing run time linking.
12162 library_names_spec='${libname}${release}.a $libname.a'
12163 soname_spec='${libname}${release}${shared_ext}$major'
12165 shlibpath_var=LIBPATH
12172 # Since July 2007 AmigaOS4 officially supports .so libraries.
12173 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12177 library_names_spec='$libname.ixlibrary $libname.a'
12178 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12179 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12185 library_names_spec='${libname}${shared_ext}'
12186 dynamic_linker="$host_os ld.so"
12187 shlibpath_var=LIBRARY_PATH
12193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12194 soname_spec='${libname}${release}${shared_ext}$major'
12195 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12196 shlibpath_var=LD_LIBRARY_PATH
12197 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12198 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12199 # the default ld.so.conf also contains /usr/contrib/lib and
12200 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12201 # libtool to hard-code these into programs
12204 cygwin* | mingw* | pw32* | cegcc*)
12205 version_type=windows
12210 case $GCC,$host_os in
12211 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
12212 library_names_spec='$libname.dll.a'
12213 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12214 postinstall_cmds='base_file=`basename \${file}`~
12215 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12216 dldir=$destdir/`dirname \$dlpath`~
12217 test -d \$dldir || mkdir -p \$dldir~
12218 $install_prog $dir/$dlname \$dldir/$dlname~
12219 chmod a+x \$dldir/$dlname~
12220 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12221 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12223 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12224 dlpath=$dir/\$dldll~
12226 shlibpath_overrides_runpath=yes
12230 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12231 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12232 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12235 # MinGW DLLs use traditional 'lib' prefix
12236 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12237 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12238 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12239 # It is most probably a Windows format PATH printed by
12240 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12241 # path with ; separators, and with drive letters. We can handle the
12242 # drive letters (cygwin fileutils understands them), so leave them,
12243 # especially as we might pass files found there to a mingw objdump,
12244 # which wouldn't understand a cygwinified path. Ahh.
12245 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12247 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12251 # pw32 DLLs use 'pw' prefix rather than 'lib'
12252 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12258 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12261 dynamic_linker='Win32 ld.exe'
12262 # FIXME: first we should search . and the directory the executable is in
12266 darwin* | rhapsody*)
12267 dynamic_linker="$host_os dyld"
12268 version_type=darwin
12271 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12272 soname_spec='${libname}${release}${major}$shared_ext'
12273 shlibpath_overrides_runpath=yes
12274 shlibpath_var=DYLD_LIBRARY_PATH
12275 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12277 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12278 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12286 soname_spec='${libname}${release}${shared_ext}$major'
12287 shlibpath_var=LD_LIBRARY_PATH
12294 freebsd* | dragonfly*)
12295 # DragonFly does not have aout. When/if they implement a new
12296 # versioning mechanism, adjust this.
12297 if test -x /usr/bin/objformat; then
12298 objformat=`/usr/bin/objformat`
12301 freebsd[123]*) objformat=aout ;;
12302 *) objformat=elf ;;
12305 version_type=freebsd-$objformat
12306 case $version_type in
12308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12313 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12317 shlibpath_var=LD_LIBRARY_PATH
12320 shlibpath_overrides_runpath=yes
12322 freebsd3.[01]* | freebsdelf3.[01]*)
12323 shlibpath_overrides_runpath=yes
12324 hardcode_into_libs=yes
12326 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12327 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12328 shlibpath_overrides_runpath=no
12329 hardcode_into_libs=yes
12331 *) # from 4.6 on, and DragonFly
12332 shlibpath_overrides_runpath=yes
12333 hardcode_into_libs=yes
12342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12343 soname_spec='${libname}${release}${shared_ext}$major'
12344 shlibpath_var=LD_LIBRARY_PATH
12345 hardcode_into_libs=yes
12348 hpux9* | hpux10* | hpux11*)
12349 # Give a soname corresponding to the major version so that dld.sl refuses to
12350 # link against other versions.
12357 hardcode_into_libs=yes
12358 dynamic_linker="$host_os dld.so"
12359 shlibpath_var=LD_LIBRARY_PATH
12360 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12362 soname_spec='${libname}${release}${shared_ext}$major'
12363 if test "X$HPUX_IA64_MODE" = X32; then
12364 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12366 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12368 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12372 hardcode_into_libs=yes
12373 dynamic_linker="$host_os dld.sl"
12374 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12375 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12377 soname_spec='${libname}${release}${shared_ext}$major'
12378 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12379 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12383 dynamic_linker="$host_os dld.sl"
12384 shlibpath_var=SHLIB_PATH
12385 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12387 soname_spec='${libname}${release}${shared_ext}$major'
12390 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12391 postinstall_cmds='chmod 555 $lib'
12398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12399 soname_spec='${libname}${release}${shared_ext}$major'
12400 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12401 shlibpath_var=LD_LIBRARY_PATH
12402 shlibpath_overrides_runpath=no
12403 hardcode_into_libs=yes
12406 irix5* | irix6* | nonstopux*)
12408 nonstopux*) version_type=nonstopux ;;
12410 if test "$lt_cv_prog_gnu_ld" = yes; then
12418 soname_spec='${libname}${release}${shared_ext}$major'
12419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12421 irix5* | nonstopux*)
12422 libsuff= shlibsuff=
12425 case $LD in # libtool.m4 will add one of these switches to LD
12426 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12427 libsuff= shlibsuff= libmagic=32-bit;;
12428 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12429 libsuff=32 shlibsuff=N32 libmagic=N32;;
12430 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12431 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12432 *) libsuff= shlibsuff= libmagic=never-match;;
12436 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12437 shlibpath_overrides_runpath=no
12438 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12439 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12440 hardcode_into_libs=yes
12443 # No shared lib support for Linux oldld, aout, or coff.
12444 linux*oldld* | linux*aout* | linux*coff*)
12448 # This must be Linux ELF.
12449 linux* | k*bsd*-gnu)
12453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12454 soname_spec='${libname}${release}${shared_ext}$major'
12455 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12456 shlibpath_var=LD_LIBRARY_PATH
12457 shlibpath_overrides_runpath=no
12458 # Some binutils ld are patched to set DT_RUNPATH
12459 save_LDFLAGS=$LDFLAGS
12460 save_libdir=$libdir
12461 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12462 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12464 /* end confdefs.h. */
12474 if ac_fn_c_try_link "$LINENO"; then :
12475 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12476 shlibpath_overrides_runpath=yes
12479 rm -f core conftest.err conftest.$ac_objext \
12480 conftest$ac_exeext conftest.$ac_ext
12481 LDFLAGS=$save_LDFLAGS
12482 libdir=$save_libdir
12484 # This implies no fast_install, which is unacceptable.
12485 # Some rework will be needed to allow for fast_install
12486 # before this can be enabled.
12487 hardcode_into_libs=yes
12489 # Add ABI-specific directories to the system library path.
12490 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12492 # Append ld.so.conf contents to the search path
12493 if test -f /etc/ld.so.conf; then
12494 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12495 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12498 # We used to test for /lib/ld.so.1 and disable shared libraries on
12499 # powerpc, because MkLinux only supported shared libraries with the
12500 # GNU dynamic linker. Since this was broken with cross compilers,
12501 # most powerpc-linux boxes support dynamic linking these days and
12502 # people can always --disable-shared, the test was removed, and we
12503 # assume the GNU/Linux dynamic linker is in use.
12504 dynamic_linker='GNU/Linux ld.so'
12511 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12513 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12514 dynamic_linker='NetBSD (a.out) ld.so'
12516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12517 soname_spec='${libname}${release}${shared_ext}$major'
12518 dynamic_linker='NetBSD ld.elf_so'
12520 shlibpath_var=LD_LIBRARY_PATH
12521 shlibpath_overrides_runpath=yes
12522 hardcode_into_libs=yes
12527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12528 shlibpath_var=LD_LIBRARY_PATH
12529 shlibpath_overrides_runpath=yes
12536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12537 soname_spec='${libname}${release}${shared_ext}$major'
12538 shlibpath_var=LD_LIBRARY_PATH
12539 shlibpath_overrides_runpath=no
12540 hardcode_into_libs=yes
12541 dynamic_linker='ldqnx.so'
12546 sys_lib_dlsearch_path_spec="/usr/lib"
12548 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12550 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12551 *) need_version=no ;;
12553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12554 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12555 shlibpath_var=LD_LIBRARY_PATH
12556 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12558 openbsd2.[89] | openbsd2.[89].*)
12559 shlibpath_overrides_runpath=no
12562 shlibpath_overrides_runpath=yes
12566 shlibpath_overrides_runpath=yes
12571 libname_spec='$name'
12574 library_names_spec='$libname${shared_ext} $libname.a'
12575 dynamic_linker='OS/2 ld.exe'
12576 shlibpath_var=LIBPATH
12579 osf3* | osf4* | osf5*)
12583 soname_spec='${libname}${release}${shared_ext}$major'
12584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12585 shlibpath_var=LD_LIBRARY_PATH
12586 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12587 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12599 soname_spec='${libname}${release}${shared_ext}$major'
12600 shlibpath_var=LD_LIBRARY_PATH
12601 shlibpath_overrides_runpath=yes
12602 hardcode_into_libs=yes
12603 # ldd complains unless libraries are executable
12604 postinstall_cmds='chmod +x $lib'
12609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12610 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12611 shlibpath_var=LD_LIBRARY_PATH
12612 shlibpath_overrides_runpath=yes
12613 if test "$with_gnu_ld" = yes; then
12621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12622 soname_spec='${libname}${release}${shared_ext}$major'
12623 shlibpath_var=LD_LIBRARY_PATH
12624 case $host_vendor in
12626 shlibpath_overrides_runpath=no
12628 runpath_var=LD_RUN_PATH
12636 shlibpath_overrides_runpath=no
12637 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12643 if test -d /usr/nec ;then
12645 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12646 soname_spec='$libname${shared_ext}.$major'
12647 shlibpath_var=LD_LIBRARY_PATH
12651 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12652 version_type=freebsd-elf
12655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12656 soname_spec='${libname}${release}${shared_ext}$major'
12657 shlibpath_var=LD_LIBRARY_PATH
12658 shlibpath_overrides_runpath=yes
12659 hardcode_into_libs=yes
12660 if test "$with_gnu_ld" = yes; then
12661 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12663 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12666 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12670 sys_lib_dlsearch_path_spec='/usr/lib'
12674 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12679 shlibpath_var=LD_LIBRARY_PATH
12680 shlibpath_overrides_runpath=no
12681 hardcode_into_libs=yes
12686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12687 soname_spec='${libname}${release}${shared_ext}$major'
12688 shlibpath_var=LD_LIBRARY_PATH
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12696 $as_echo "$dynamic_linker" >&6; }
12697 test "$dynamic_linker" = no && can_build_shared=no
12699 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12700 if test "$GCC" = yes; then
12701 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12704 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12705 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12707 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12708 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12798 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12800 if test -n "$hardcode_libdir_flag_spec" ||
12801 test -n "$runpath_var" ||
12802 test "X$hardcode_automatic" = "Xyes" ; then
12804 # We can hardcode non-existent directories.
12805 if test "$hardcode_direct" != no &&
12806 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12807 # have to relink, otherwise we might link with an installed library
12808 # when we should be linking with a yet-to-be-installed one
12809 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12810 test "$hardcode_minus_L" != no; then
12811 # Linking always hardcodes the temporary library directory.
12812 hardcode_action=relink
12814 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12815 hardcode_action=immediate
12818 # We cannot hardcode anything, or else we can only hardcode existing
12820 hardcode_action=unsupported
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12823 $as_echo "$hardcode_action" >&6; }
12825 if test "$hardcode_action" = relink ||
12826 test "$inherit_rpath" = yes; then
12827 # Fast installation is not supported
12828 enable_fast_install=no
12829 elif test "$shlibpath_overrides_runpath" = yes ||
12830 test "$enable_shared" = no; then
12831 # Fast installation is not necessary
12832 enable_fast_install=needless
12840 if test "x$enable_dlopen" != xyes; then
12841 enable_dlopen=unknown
12842 enable_dlopen_self=unknown
12843 enable_dlopen_self_static=unknown
12850 lt_cv_dlopen="load_add_on"
12852 lt_cv_dlopen_self=yes
12855 mingw* | pw32* | cegcc*)
12856 lt_cv_dlopen="LoadLibrary"
12861 lt_cv_dlopen="dlopen"
12866 # if libdl is installed we need to link against it
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12868 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12869 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12870 $as_echo_n "(cached) " >&6
12872 ac_check_lib_save_LIBS=$LIBS
12874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12875 /* end confdefs.h. */
12877 /* Override any GCC internal prototype to avoid an error.
12878 Use char because int might match the return type of a GCC
12879 builtin and then its argument prototype would still apply. */
12892 if ac_fn_c_try_link "$LINENO"; then :
12893 ac_cv_lib_dl_dlopen=yes
12895 ac_cv_lib_dl_dlopen=no
12897 rm -f core conftest.err conftest.$ac_objext \
12898 conftest$ac_exeext conftest.$ac_ext
12899 LIBS=$ac_check_lib_save_LIBS
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12902 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12903 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12904 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12907 lt_cv_dlopen="dyld"
12909 lt_cv_dlopen_self=yes
12916 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12917 if test "x$ac_cv_func_shl_load" = x""yes; then :
12918 lt_cv_dlopen="shl_load"
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12921 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12922 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12923 $as_echo_n "(cached) " >&6
12925 ac_check_lib_save_LIBS=$LIBS
12927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12928 /* end confdefs.h. */
12930 /* Override any GCC internal prototype to avoid an error.
12931 Use char because int might match the return type of a GCC
12932 builtin and then its argument prototype would still apply. */
12940 return shl_load ();
12945 if ac_fn_c_try_link "$LINENO"; then :
12946 ac_cv_lib_dld_shl_load=yes
12948 ac_cv_lib_dld_shl_load=no
12950 rm -f core conftest.err conftest.$ac_objext \
12951 conftest$ac_exeext conftest.$ac_ext
12952 LIBS=$ac_check_lib_save_LIBS
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12955 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12956 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12957 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12959 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12960 if test "x$ac_cv_func_dlopen" = x""yes; then :
12961 lt_cv_dlopen="dlopen"
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12964 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12965 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12966 $as_echo_n "(cached) " >&6
12968 ac_check_lib_save_LIBS=$LIBS
12970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12971 /* end confdefs.h. */
12973 /* Override any GCC internal prototype to avoid an error.
12974 Use char because int might match the return type of a GCC
12975 builtin and then its argument prototype would still apply. */
12988 if ac_fn_c_try_link "$LINENO"; then :
12989 ac_cv_lib_dl_dlopen=yes
12991 ac_cv_lib_dl_dlopen=no
12993 rm -f core conftest.err conftest.$ac_objext \
12994 conftest$ac_exeext conftest.$ac_ext
12995 LIBS=$ac_check_lib_save_LIBS
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12998 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12999 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13000 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13003 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13004 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
13005 $as_echo_n "(cached) " >&6
13007 ac_check_lib_save_LIBS=$LIBS
13008 LIBS="-lsvld $LIBS"
13009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13010 /* end confdefs.h. */
13012 /* Override any GCC internal prototype to avoid an error.
13013 Use char because int might match the return type of a GCC
13014 builtin and then its argument prototype would still apply. */
13027 if ac_fn_c_try_link "$LINENO"; then :
13028 ac_cv_lib_svld_dlopen=yes
13030 ac_cv_lib_svld_dlopen=no
13032 rm -f core conftest.err conftest.$ac_objext \
13033 conftest$ac_exeext conftest.$ac_ext
13034 LIBS=$ac_check_lib_save_LIBS
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13037 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13038 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
13039 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13042 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13043 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
13044 $as_echo_n "(cached) " >&6
13046 ac_check_lib_save_LIBS=$LIBS
13048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13049 /* end confdefs.h. */
13051 /* Override any GCC internal prototype to avoid an error.
13052 Use char because int might match the return type of a GCC
13053 builtin and then its argument prototype would still apply. */
13061 return dld_link ();
13066 if ac_fn_c_try_link "$LINENO"; then :
13067 ac_cv_lib_dld_dld_link=yes
13069 ac_cv_lib_dld_dld_link=no
13071 rm -f core conftest.err conftest.$ac_objext \
13072 conftest$ac_exeext conftest.$ac_ext
13073 LIBS=$ac_check_lib_save_LIBS
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13076 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13077 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
13078 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13099 if test "x$lt_cv_dlopen" != xno; then
13105 case $lt_cv_dlopen in
13107 save_CPPFLAGS="$CPPFLAGS"
13108 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13110 save_LDFLAGS="$LDFLAGS"
13111 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13114 LIBS="$lt_cv_dlopen_libs $LIBS"
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13117 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13118 if test "${lt_cv_dlopen_self+set}" = set; then :
13119 $as_echo_n "(cached) " >&6
13121 if test "$cross_compiling" = yes; then :
13122 lt_cv_dlopen_self=cross
13124 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13125 lt_status=$lt_dlunknown
13126 cat > conftest.$ac_ext <<_LT_EOF
13127 #line 13127 "configure"
13128 #include "confdefs.h"
13137 # define LT_DLGLOBAL RTLD_GLOBAL
13140 # define LT_DLGLOBAL DL_GLOBAL
13142 # define LT_DLGLOBAL 0
13146 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13147 find out it does not work in some platform. */
13148 #ifndef LT_DLLAZY_OR_NOW
13150 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13153 # define LT_DLLAZY_OR_NOW DL_LAZY
13156 # define LT_DLLAZY_OR_NOW RTLD_NOW
13159 # define LT_DLLAZY_OR_NOW DL_NOW
13161 # define LT_DLLAZY_OR_NOW 0
13168 void fnord() { int i=42;}
13171 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13172 int status = $lt_dlunknown;
13176 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13177 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13178 /* dlclose (self); */
13186 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13187 (eval $ac_link) 2>&5
13189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13190 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13191 (./conftest; exit; ) >&5 2>/dev/null
13193 case x$lt_status in
13194 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13195 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13196 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13199 # compilation failed
13200 lt_cv_dlopen_self=no
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13208 $as_echo "$lt_cv_dlopen_self" >&6; }
13210 if test "x$lt_cv_dlopen_self" = xyes; then
13211 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13213 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13214 if test "${lt_cv_dlopen_self_static+set}" = set; then :
13215 $as_echo_n "(cached) " >&6
13217 if test "$cross_compiling" = yes; then :
13218 lt_cv_dlopen_self_static=cross
13220 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13221 lt_status=$lt_dlunknown
13222 cat > conftest.$ac_ext <<_LT_EOF
13223 #line 13223 "configure"
13224 #include "confdefs.h"
13233 # define LT_DLGLOBAL RTLD_GLOBAL
13236 # define LT_DLGLOBAL DL_GLOBAL
13238 # define LT_DLGLOBAL 0
13242 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13243 find out it does not work in some platform. */
13244 #ifndef LT_DLLAZY_OR_NOW
13246 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13249 # define LT_DLLAZY_OR_NOW DL_LAZY
13252 # define LT_DLLAZY_OR_NOW RTLD_NOW
13255 # define LT_DLLAZY_OR_NOW DL_NOW
13257 # define LT_DLLAZY_OR_NOW 0
13264 void fnord() { int i=42;}
13267 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13268 int status = $lt_dlunknown;
13272 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13273 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13274 /* dlclose (self); */
13282 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13283 (eval $ac_link) 2>&5
13285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13286 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13287 (./conftest; exit; ) >&5 2>/dev/null
13289 case x$lt_status in
13290 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13291 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13292 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13295 # compilation failed
13296 lt_cv_dlopen_self_static=no
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13304 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13307 CPPFLAGS="$save_CPPFLAGS"
13308 LDFLAGS="$save_LDFLAGS"
13313 case $lt_cv_dlopen_self in
13314 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13315 *) enable_dlopen_self=unknown ;;
13318 case $lt_cv_dlopen_self_static in
13319 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13320 *) enable_dlopen_self_static=unknown ;;
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13343 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13344 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13345 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13346 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13348 $as_echo "yes" >&6; }
13350 # FIXME - insert some real tests, host_os isn't really good enough
13353 if test -n "$STRIP" ; then
13354 striplib="$STRIP -x"
13355 old_striplib="$STRIP -S"
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13357 $as_echo "yes" >&6; }
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13360 $as_echo "no" >&6; }
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13365 $as_echo "no" >&6; }
13381 # Report which library types will actually be built
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13383 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13385 $as_echo "$can_build_shared" >&6; }
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13388 $as_echo_n "checking whether to build shared libraries... " >&6; }
13389 test "$can_build_shared" = "no" && enable_shared=no
13391 # On AIX, shared libraries and static libraries use the same namespace, and
13392 # are all built from PIC.
13395 test "$enable_shared" = yes && enable_static=no
13396 if test -n "$RANLIB"; then
13397 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13398 postinstall_cmds='$RANLIB $lib'
13403 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13404 test "$enable_shared" = yes && enable_static=no
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13409 $as_echo "$enable_shared" >&6; }
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13412 $as_echo_n "checking whether to build static libraries... " >&6; }
13413 # Make sure either enable_shared or enable_static is yes.
13414 test "$enable_shared" = yes || enable_static=yes
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13416 $as_echo "$enable_static" >&6; }
13423 ac_cpp='$CPP $CPPFLAGS'
13424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13432 ac_cpp='$CXXCPP $CPPFLAGS'
13433 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13434 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13435 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13437 archive_cmds_need_lc_CXX=no
13438 allow_undefined_flag_CXX=
13439 always_export_symbols_CXX=no
13440 archive_expsym_cmds_CXX=
13441 compiler_needs_object_CXX=no
13442 export_dynamic_flag_spec_CXX=
13443 hardcode_direct_CXX=no
13444 hardcode_direct_absolute_CXX=no
13445 hardcode_libdir_flag_spec_CXX=
13446 hardcode_libdir_flag_spec_ld_CXX=
13447 hardcode_libdir_separator_CXX=
13448 hardcode_minus_L_CXX=no
13449 hardcode_shlibpath_var_CXX=unsupported
13450 hardcode_automatic_CXX=no
13451 inherit_rpath_CXX=no
13453 module_expsym_cmds_CXX=
13454 link_all_deplibs_CXX=unknown
13455 old_archive_cmds_CXX=$old_archive_cmds
13456 no_undefined_flag_CXX=
13457 whole_archive_flag_spec_CXX=
13458 enable_shared_with_static_runtimes_CXX=no
13460 # Source file extension for C++ test sources.
13463 # Object file extension for compiled C++ test sources.
13467 # No sense in running all these tests if we already determined that
13468 # the CXX compiler isn't working. Some variables (like enable_shared)
13469 # are currently assumed to apply to all compilers on this platform,
13470 # and will be corrupted by setting them based on a non-working compiler.
13471 if test "$_lt_caught_CXX_error" != yes; then
13472 # Code to be used in simple compile tests
13473 lt_simple_compile_test_code="int some_variable = 0;"
13475 # Code to be used in simple link tests
13476 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13478 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13485 # If no C compiler was specified, use CC.
13488 # If no C compiler flags were specified, use CFLAGS.
13489 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13491 # Allow CC to be a program name with arguments.
13495 # save warnings/boilerplate of simple test code
13496 ac_outfile=conftest.$ac_objext
13497 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13498 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13499 _lt_compiler_boilerplate=`cat conftest.err`
13502 ac_outfile=conftest.$ac_objext
13503 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13504 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13505 _lt_linker_boilerplate=`cat conftest.err`
13509 # Allow CC to be a program name with arguments.
13514 lt_save_with_gnu_ld=$with_gnu_ld
13515 lt_save_path_LD=$lt_cv_path_LD
13516 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13517 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13519 $as_unset lt_cv_prog_gnu_ld
13521 if test -n "${lt_cv_path_LDCXX+set}"; then
13522 lt_cv_path_LD=$lt_cv_path_LDCXX
13524 $as_unset lt_cv_path_LD
13526 test -z "${LDCXX+set}" || LD=$LDCXX
13530 for cc_temp in $compiler""; do
13532 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13533 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13538 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13541 if test -n "$compiler"; then
13542 # We don't want -fno-exception when compiling C++ code, so set the
13543 # no_builtin_flag separately
13544 if test "$GXX" = yes; then
13545 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13547 lt_prog_compiler_no_builtin_flag_CXX=
13550 if test "$GXX" = yes; then
13551 # Set up default GNU C++ configuration
13555 # Check whether --with-gnu-ld was given.
13556 if test "${with_gnu_ld+set}" = set; then :
13557 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13563 if test "$GCC" = yes; then
13564 # Check if gcc -print-prog-name=ld gives a path.
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13566 $as_echo_n "checking for ld used by $CC... " >&6; }
13569 # gcc leaves a trailing carriage return which upsets mingw
13570 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13572 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13575 # Accept absolute paths.
13577 re_direlt='/[^/][^/]*/\.\./'
13578 # Canonicalize the pathname of ld
13579 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13580 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13581 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13583 test -z "$LD" && LD="$ac_prog"
13586 # If it fails, then pretend we aren't using GCC.
13590 # If it is relative, then search for the first ld in PATH.
13591 with_gnu_ld=unknown
13594 elif test "$with_gnu_ld" = yes; then
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13596 $as_echo_n "checking for GNU ld... " >&6; }
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13599 $as_echo_n "checking for non-GNU ld... " >&6; }
13601 if test "${lt_cv_path_LD+set}" = set; then :
13602 $as_echo_n "(cached) " >&6
13604 if test -z "$LD"; then
13605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13606 for ac_dir in $PATH; do
13608 test -z "$ac_dir" && ac_dir=.
13609 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13610 lt_cv_path_LD="$ac_dir/$ac_prog"
13611 # Check to see if the program is GNU ld. I'd rather use --version,
13612 # but apparently some variants of GNU ld only accept -v.
13613 # Break only if it was the GNU/non-GNU ld that we prefer.
13614 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13615 *GNU* | *'with BFD'*)
13616 test "$with_gnu_ld" != no && break
13619 test "$with_gnu_ld" != yes && break
13626 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13630 LD="$lt_cv_path_LD"
13631 if test -n "$LD"; then
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13633 $as_echo "$LD" >&6; }
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13636 $as_echo "no" >&6; }
13638 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13640 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13641 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
13642 $as_echo_n "(cached) " >&6
13644 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13645 case `$LD -v 2>&1 </dev/null` in
13646 *GNU* | *'with BFD'*)
13647 lt_cv_prog_gnu_ld=yes
13650 lt_cv_prog_gnu_ld=no
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13655 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13656 with_gnu_ld=$lt_cv_prog_gnu_ld
13664 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13665 # archiving commands below assume that GNU ld is being used.
13666 if test "$with_gnu_ld" = yes; then
13667 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13668 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13670 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13671 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13673 # If archive_cmds runs LD, not CC, wlarc should be empty
13674 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13675 # investigate it a little bit more. (MM)
13678 # ancient GNU ld didn't support --whole-archive et. al.
13679 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13680 $GREP 'no-whole-archive' > /dev/null; then
13681 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13683 whole_archive_flag_spec_CXX=
13689 # A generic and very simple default shared library creation
13690 # command for GNU C++ for the case where it uses the native
13691 # linker, instead of GNU ld. If possible, this setting should
13692 # overridden to take advantage of the native linker features on
13693 # the platform it is being used on.
13694 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13697 # Commands to make compiler produce verbose output that lists
13698 # what "hidden" libraries, object files and flags are used when
13699 # linking a shared library.
13700 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13708 # PORTME: fill in a description of your system's C++ link characteristics
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13710 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13714 # FIXME: insert proper C++ library support
13718 if test "$host_cpu" = ia64; then
13719 # On IA64, the linker does run time linking by default, so we don't
13720 # have to do anything special.
13721 aix_use_runtimelinking=no
13722 exp_sym_flag='-Bexport'
13725 aix_use_runtimelinking=no
13727 # Test if we are trying to use run time linking or normal
13728 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13729 # need to do runtime linking.
13730 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13731 for ld_flag in $LDFLAGS; do
13734 aix_use_runtimelinking=yes
13742 exp_sym_flag='-bexport'
13743 no_entry_flag='-bnoentry'
13746 # When large executables or shared objects are built, AIX ld can
13747 # have problems creating the table of contents. If linking a library
13748 # or program results in "error TOC overflow" add -mminimal-toc to
13749 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13750 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13752 archive_cmds_CXX=''
13753 hardcode_direct_CXX=yes
13754 hardcode_direct_absolute_CXX=yes
13755 hardcode_libdir_separator_CXX=':'
13756 link_all_deplibs_CXX=yes
13757 file_list_spec_CXX='${wl}-f,'
13759 if test "$GXX" = yes; then
13760 case $host_os in aix4.[012]|aix4.[012].*)
13761 # We only want to do this on AIX 4.2 and lower, the check
13762 # below for broken collect2 doesn't work under 4.3+
13763 collect2name=`${CC} -print-prog-name=collect2`
13764 if test -f "$collect2name" &&
13765 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13767 # We have reworked collect2
13770 # We have old collect2
13771 hardcode_direct_CXX=unsupported
13772 # It fails to find uninstalled libraries when the uninstalled
13773 # path is not listed in the libpath. Setting hardcode_minus_L
13774 # to unsupported forces relinking
13775 hardcode_minus_L_CXX=yes
13776 hardcode_libdir_flag_spec_CXX='-L$libdir'
13777 hardcode_libdir_separator_CXX=
13780 shared_flag='-shared'
13781 if test "$aix_use_runtimelinking" = yes; then
13782 shared_flag="$shared_flag "'${wl}-G'
13786 if test "$host_cpu" = ia64; then
13787 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13788 # chokes on -Wl,-G. The following line is correct:
13791 if test "$aix_use_runtimelinking" = yes; then
13792 shared_flag='${wl}-G'
13794 shared_flag='${wl}-bM:SRE'
13799 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13800 # It seems that -bexpall does not export symbols beginning with
13801 # underscore (_), so it is better to generate a list of symbols to
13803 always_export_symbols_CXX=yes
13804 if test "$aix_use_runtimelinking" = yes; then
13805 # Warning - without using the other runtime loading flags (-brtl),
13806 # -berok will link without error, but may produce a broken library.
13807 allow_undefined_flag_CXX='-berok'
13808 # Determine the default libpath from the value encoded in an empty
13810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13811 /* end confdefs.h. */
13821 if ac_fn_cxx_try_link "$LINENO"; then :
13823 lt_aix_libpath_sed='
13824 /Import File Strings/,/^$/ {
13830 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13831 # Check for a 64-bit object if we didn't find anything.
13832 if test -z "$aix_libpath"; then
13833 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13836 rm -f core conftest.err conftest.$ac_objext \
13837 conftest$ac_exeext conftest.$ac_ext
13838 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13840 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13842 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13844 if test "$host_cpu" = ia64; then
13845 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13846 allow_undefined_flag_CXX="-z nodefs"
13847 archive_expsym_cmds_CXX="\$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"
13849 # Determine the default libpath from the value encoded in an
13850 # empty executable.
13851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13852 /* end confdefs.h. */
13862 if ac_fn_cxx_try_link "$LINENO"; then :
13864 lt_aix_libpath_sed='
13865 /Import File Strings/,/^$/ {
13871 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13872 # Check for a 64-bit object if we didn't find anything.
13873 if test -z "$aix_libpath"; then
13874 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13877 rm -f core conftest.err conftest.$ac_objext \
13878 conftest$ac_exeext conftest.$ac_ext
13879 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13881 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13882 # Warning - without using the other run time loading flags,
13883 # -berok will link without error, but may produce a broken library.
13884 no_undefined_flag_CXX=' ${wl}-bernotok'
13885 allow_undefined_flag_CXX=' ${wl}-berok'
13886 # Exported symbols can be pulled into shared objects from archives
13887 whole_archive_flag_spec_CXX='$convenience'
13888 archive_cmds_need_lc_CXX=yes
13889 # This is similar to how AIX traditionally builds its shared
13891 archive_expsym_cmds_CXX="\$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'
13897 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13898 allow_undefined_flag_CXX=unsupported
13899 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13900 # support --undefined. This deserves some investigation. FIXME
13901 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13908 case $cc_basename in
13910 # FIXME: insert proper C++ library support
13916 cygwin* | mingw* | pw32* | cegcc*)
13917 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13918 # as there is no search path for DLLs.
13919 hardcode_libdir_flag_spec_CXX='-L$libdir'
13920 allow_undefined_flag_CXX=unsupported
13921 always_export_symbols_CXX=no
13922 enable_shared_with_static_runtimes_CXX=yes
13924 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13925 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13926 # If the export-symbols file already is a .def file (1st line
13927 # is EXPORTS), use it as is; otherwise, prepend...
13928 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13929 cp $export_symbols $output_objdir/$soname.def;
13931 echo EXPORTS > $output_objdir/$soname.def;
13932 cat $export_symbols >> $output_objdir/$soname.def;
13934 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13939 darwin* | rhapsody*)
13942 archive_cmds_need_lc_CXX=no
13943 hardcode_direct_CXX=no
13944 hardcode_automatic_CXX=yes
13945 hardcode_shlibpath_var_CXX=unsupported
13946 whole_archive_flag_spec_CXX=''
13947 link_all_deplibs_CXX=yes
13948 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13949 case $cc_basename in
13950 ifort*) _lt_dar_can_shared=yes ;;
13951 *) _lt_dar_can_shared=$GCC ;;
13953 if test "$_lt_dar_can_shared" = "yes"; then
13954 output_verbose_link_cmd=echo
13955 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13956 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13957 archive_expsym_cmds_CXX="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}"
13958 module_expsym_cmds_CXX="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}"
13959 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13960 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13961 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13971 case $cc_basename in
13973 # FIXME: insert proper C++ library support
13977 # Green Hills C++ Compiler
13978 # FIXME: insert proper C++ library support
13982 # FIXME: insert proper C++ library support
13989 # C++ shared libraries reported to be fairly broken before
13995 archive_cmds_need_lc_CXX=no
13998 freebsd* | dragonfly*)
13999 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14008 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14009 hardcode_libdir_separator_CXX=:
14010 export_dynamic_flag_spec_CXX='${wl}-E'
14011 hardcode_direct_CXX=yes
14012 hardcode_minus_L_CXX=yes # Not in the search PATH,
14013 # but as the default
14014 # location of the library.
14016 case $cc_basename in
14018 # FIXME: insert proper C++ library support
14022 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14023 # Commands to make compiler produce verbose output that lists
14024 # what "hidden" libraries, object files and flags are used when
14025 # linking a shared library.
14027 # There doesn't appear to be a way to prevent this compiler from
14028 # explicitly linking system object files so we need to strip them
14029 # from the output so that they don't get included in the library
14031 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14034 if test "$GXX" = yes; then
14035 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14037 # FIXME: insert proper C++ library support
14045 if test $with_gnu_ld = no; then
14046 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14047 hardcode_libdir_separator_CXX=:
14053 export_dynamic_flag_spec_CXX='${wl}-E'
14059 hardcode_direct_CXX=no
14060 hardcode_shlibpath_var_CXX=no
14063 hardcode_direct_CXX=yes
14064 hardcode_direct_absolute_CXX=yes
14065 hardcode_minus_L_CXX=yes # Not in the search PATH,
14066 # but as the default
14067 # location of the library.
14071 case $cc_basename in
14073 # FIXME: insert proper C++ library support
14079 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14082 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14085 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14088 # Commands to make compiler produce verbose output that lists
14089 # what "hidden" libraries, object files and flags are used when
14090 # linking a shared library.
14092 # There doesn't appear to be a way to prevent this compiler from
14093 # explicitly linking system object files so we need to strip them
14094 # from the output so that they don't get included in the library
14096 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14099 if test "$GXX" = yes; then
14100 if test $with_gnu_ld = no; then
14103 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14106 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14109 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14114 # FIXME: insert proper C++ library support
14122 hardcode_direct_CXX=no
14123 hardcode_shlibpath_var_CXX=no
14124 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14125 export_dynamic_flag_spec_CXX='${wl}-E'
14126 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14127 # Instead, shared libraries are loaded at an image base (0x10000000 by
14128 # default) and relocated if they conflict, which is a slow very memory
14129 # consuming and fragmenting process. To avoid this, we pick a random,
14130 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14131 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14132 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14133 archive_expsym_cmds_CXX='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'
14136 case $cc_basename in
14139 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14141 # Archives containing C++ object files must be created using
14142 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14143 # necessary to make sure instantiated templates are included
14145 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14148 if test "$GXX" = yes; then
14149 if test "$with_gnu_ld" = no; then
14150 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14152 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
14155 link_all_deplibs_CXX=yes
14158 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14159 hardcode_libdir_separator_CXX=:
14160 inherit_rpath_CXX=yes
14163 linux* | k*bsd*-gnu)
14164 case $cc_basename in
14166 # Kuck and Associates, Inc. (KAI) C++ Compiler
14168 # KCC will only create a shared library if the output file
14169 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14170 # to its proper name (with version) after linking.
14171 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14172 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
14173 # Commands to make compiler produce verbose output that lists
14174 # what "hidden" libraries, object files and flags are used when
14175 # linking a shared library.
14177 # There doesn't appear to be a way to prevent this compiler from
14178 # explicitly linking system object files so we need to strip them
14179 # from the output so that they don't get included in the library
14181 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14183 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14184 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14186 # Archives containing C++ object files must be created using
14187 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14188 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14193 # version 8.0 and above of icpc choke on multiply defined symbols
14194 # if we add $predep_objects and $postdep_objects, however 7.1 and
14195 # earlier do not add the objects themselves.
14196 case `$CC -V 2>&1` in
14198 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14199 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14201 *) # Version 8.0 or newer
14204 ia64*) tmp_idyn=' -i_dynamic';;
14206 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14207 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14210 archive_cmds_need_lc_CXX=no
14211 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14212 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14213 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14216 # Portland Group C++ compiler
14218 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
14219 prelink_cmds_CXX='tpldir=Template.dir~
14221 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14222 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14223 old_archive_cmds_CXX='tpldir=Template.dir~
14225 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14226 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14228 archive_cmds_CXX='tpldir=Template.dir~
14230 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14231 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14232 archive_expsym_cmds_CXX='tpldir=Template.dir~
14234 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14235 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14237 *) # Version 6 will use weak symbols
14238 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14239 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14243 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14244 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14245 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
14249 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14250 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
14252 runpath_var=LD_RUN_PATH
14253 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14254 hardcode_libdir_separator_CXX=:
14256 # Commands to make compiler produce verbose output that lists
14257 # what "hidden" libraries, object files and flags are used when
14258 # linking a shared library.
14260 # There doesn't appear to be a way to prevent this compiler from
14261 # explicitly linking system object files so we need to strip them
14262 # from the output so that they don't get included in the library
14264 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14267 # IBM XL 8.0 on PPC, with GNU ld
14268 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14269 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14270 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14271 if test "x$supports_anon_versioning" = xyes; then
14272 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14273 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14274 echo "local: *; };" >> $output_objdir/$libname.ver~
14275 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14279 case `$CC -V 2>&1 | sed 5q` in
14282 no_undefined_flag_CXX=' -zdefs'
14283 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14284 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
14285 hardcode_libdir_flag_spec_CXX='-R$libdir'
14286 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
14287 compiler_needs_object_CXX=yes
14289 # Not sure whether something based on
14290 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14292 output_verbose_link_cmd='echo'
14294 # Archives containing C++ object files must be created using
14295 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14296 # necessary to make sure instantiated templates are included
14298 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14306 # FIXME: insert proper C++ library support
14311 # FIXME: insert proper C++ library support
14316 case $cc_basename in
14318 # FIXME: insert proper C++ library support
14322 # FIXME: insert proper C++ library support
14329 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14330 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14332 hardcode_libdir_flag_spec_CXX='-R$libdir'
14333 hardcode_direct_CXX=yes
14334 hardcode_shlibpath_var_CXX=no
14336 # Workaround some broken pre-1.5 toolchains
14337 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14345 # C++ shared libraries are fairly broken
14350 if test -f /usr/libexec/ld.so; then
14351 hardcode_direct_CXX=yes
14352 hardcode_shlibpath_var_CXX=no
14353 hardcode_direct_absolute_CXX=yes
14354 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14355 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14356 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14357 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14358 export_dynamic_flag_spec_CXX='${wl}-E'
14359 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14361 output_verbose_link_cmd=echo
14367 osf3* | osf4* | osf5*)
14368 case $cc_basename in
14370 # Kuck and Associates, Inc. (KAI) C++ Compiler
14372 # KCC will only create a shared library if the output file
14373 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14374 # to its proper name (with version) after linking.
14375 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14377 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14378 hardcode_libdir_separator_CXX=:
14380 # Archives containing C++ object files must be created using
14381 # the KAI C++ compiler.
14383 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14384 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14388 # Rational C++ 2.4.1
14389 # FIXME: insert proper C++ library support
14395 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14396 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14397 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14400 allow_undefined_flag_CXX=' -expect_unresolved \*'
14401 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14402 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14403 echo "-hidden">> $lib.exp~
14404 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
14406 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14410 hardcode_libdir_separator_CXX=:
14412 # Commands to make compiler produce verbose output that lists
14413 # what "hidden" libraries, object files and flags are used when
14414 # linking a shared library.
14416 # There doesn't appear to be a way to prevent this compiler from
14417 # explicitly linking system object files so we need to strip them
14418 # from the output so that they don't get included in the library
14420 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14423 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14424 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14427 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14430 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14434 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14435 hardcode_libdir_separator_CXX=:
14437 # Commands to make compiler produce verbose output that lists
14438 # what "hidden" libraries, object files and flags are used when
14439 # linking a shared library.
14440 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14443 # FIXME: insert proper C++ library support
14451 # FIXME: insert proper C++ library support
14456 case $cc_basename in
14459 # FIXME: insert proper C++ library support
14464 # FIXME: insert proper C++ library support
14468 # FIXME: insert proper C++ library support
14475 case $cc_basename in
14477 # Sun C++ 4.2, 5.x and Centerline C++
14478 archive_cmds_need_lc_CXX=yes
14479 no_undefined_flag_CXX=' -zdefs'
14480 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14481 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14482 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14484 hardcode_libdir_flag_spec_CXX='-R$libdir'
14485 hardcode_shlibpath_var_CXX=no
14487 solaris2.[0-5] | solaris2.[0-5].*) ;;
14489 # The compiler driver will combine and reorder linker options,
14490 # but understands `-z linker_flag'.
14491 # Supported since Solaris 2.6 (maybe 2.5.1?)
14492 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14495 link_all_deplibs_CXX=yes
14497 output_verbose_link_cmd='echo'
14499 # Archives containing C++ object files must be created using
14500 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14501 # necessary to make sure instantiated templates are included
14503 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14506 # Green Hills C++ Compiler
14507 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14509 # The C++ compiler must be used to create the archive.
14510 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14513 # GNU C++ compiler with Solaris linker
14514 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14515 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14516 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14517 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14518 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14519 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14521 # Commands to make compiler produce verbose output that lists
14522 # what "hidden" libraries, object files and flags are used when
14523 # linking a shared library.
14524 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14526 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14528 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14529 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14530 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14532 # Commands to make compiler produce verbose output that lists
14533 # what "hidden" libraries, object files and flags are used when
14534 # linking a shared library.
14535 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14538 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14540 solaris2.[0-5] | solaris2.[0-5].*) ;;
14542 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14550 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14551 no_undefined_flag_CXX='${wl}-z,text'
14552 archive_cmds_need_lc_CXX=no
14553 hardcode_shlibpath_var_CXX=no
14554 runpath_var='LD_RUN_PATH'
14556 case $cc_basename in
14558 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14559 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14562 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14563 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14568 sysv5* | sco3.2v5* | sco5v6*)
14569 # Note: We can NOT use -z defs as we might desire, because we do not
14570 # link with -lc, and that would cause any symbols used from libc to
14571 # always be unresolved, which means just about no library would
14572 # ever link correctly. If we're not using GNU ld we use -z text
14573 # though, which does catch some bad symbols but isn't as heavy-handed
14575 no_undefined_flag_CXX='${wl}-z,text'
14576 allow_undefined_flag_CXX='${wl}-z,nodefs'
14577 archive_cmds_need_lc_CXX=no
14578 hardcode_shlibpath_var_CXX=no
14579 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14580 hardcode_libdir_separator_CXX=':'
14581 link_all_deplibs_CXX=yes
14582 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14583 runpath_var='LD_RUN_PATH'
14585 case $cc_basename in
14587 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14588 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14591 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14592 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14598 case $cc_basename in
14600 # NonStop-UX NCC 3.20
14601 # FIXME: insert proper C++ library support
14605 # FIXME: insert proper C++ library support
14612 # FIXME: insert proper C++ library support
14617 # FIXME: insert proper C++ library support
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14623 $as_echo "$ld_shlibs_CXX" >&6; }
14624 test "$ld_shlibs_CXX" = no && can_build_shared=no
14630 ## There is no encapsulation within the following macros, do not change
14631 ## the running order or otherwise move them around unless you know exactly
14632 ## what you are doing...
14633 # Dependencies to place before and after the object being linked:
14634 predep_objects_CXX=
14635 postdep_objects_CXX=
14638 compiler_lib_search_path_CXX=
14640 cat > conftest.$ac_ext <<_LT_EOF
14644 Foo (void) { a = 0; }
14650 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14651 (eval $ac_compile) 2>&5
14653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14654 test $ac_status = 0; }; then
14655 # Parse the compiler output and extract the necessary
14656 # objects, libraries and library flags.
14658 # Sentinel used to keep track of whether or not we are before
14659 # the conftest object file.
14660 pre_test_object_deps_done=no
14662 for p in `eval "$output_verbose_link_cmd"`; do
14666 # Some compilers place space between "-{L,R}" and the path.
14667 # Remove the space.
14668 if test $p = "-L" ||
14669 test $p = "-R"; then
14676 if test "$pre_test_object_deps_done" = no; then
14679 # Internal compiler library paths should come after those
14680 # provided the user. The postdeps already come after the
14681 # user supplied libs so there is no need to process them.
14682 if test -z "$compiler_lib_search_path_CXX"; then
14683 compiler_lib_search_path_CXX="${prev}${p}"
14685 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14688 # The "-l" case would never come before the object being
14689 # linked, so don't bother handling this case.
14692 if test -z "$postdeps_CXX"; then
14693 postdeps_CXX="${prev}${p}"
14695 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14701 # This assumes that the test object file only shows up
14702 # once in the compiler output.
14703 if test "$p" = "conftest.$objext"; then
14704 pre_test_object_deps_done=yes
14708 if test "$pre_test_object_deps_done" = no; then
14709 if test -z "$predep_objects_CXX"; then
14710 predep_objects_CXX="$p"
14712 predep_objects_CXX="$predep_objects_CXX $p"
14715 if test -z "$postdep_objects_CXX"; then
14716 postdep_objects_CXX="$p"
14718 postdep_objects_CXX="$postdep_objects_CXX $p"
14723 *) ;; # Ignore the rest.
14731 echo "libtool.m4: error: problem compiling CXX test program"
14734 $RM -f confest.$objext
14736 # PORTME: override above test on systems where it is broken
14739 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14740 # hack all around it, let's just trust "g++" to DTRT.
14741 predep_objects_CXX=
14742 postdep_objects_CXX=
14747 case `$CC -V 2>&1 | sed 5q` in
14751 # The more standards-conforming stlport4 library is
14752 # incompatible with the Cstd library. Avoid specifying
14753 # it if it's in CXXFLAGS. Ignore libCrun as
14754 # -library=stlport4 depends on it.
14755 case " $CXX $CXXFLAGS " in
14756 *" -library=stlport4 "*)
14757 solaris_use_stlport4=yes
14761 if test "$solaris_use_stlport4" != yes; then
14762 postdeps_CXX='-library=Cstd -library=Crun'
14769 case $cc_basename in
14771 # The more standards-conforming stlport4 library is
14772 # incompatible with the Cstd library. Avoid specifying
14773 # it if it's in CXXFLAGS. Ignore libCrun as
14774 # -library=stlport4 depends on it.
14775 case " $CXX $CXXFLAGS " in
14776 *" -library=stlport4 "*)
14777 solaris_use_stlport4=yes
14781 # Adding this requires a known-good setup of shared libraries for
14782 # Sun compiler versions before 5.6, else PIC objects from an old
14783 # archive will be linked into the output, leading to subtle bugs.
14784 if test "$solaris_use_stlport4" != yes; then
14785 postdeps_CXX='-library=Cstd -library=Crun'
14793 case " $postdeps_CXX " in
14794 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14796 compiler_lib_search_dirs_CXX=
14797 if test -n "${compiler_lib_search_path_CXX}"; then
14798 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14831 lt_prog_compiler_wl_CXX=
14832 lt_prog_compiler_pic_CXX=
14833 lt_prog_compiler_static_CXX=
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14836 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14838 # C++ specific cases for pic, static, wl, etc.
14839 if test "$GXX" = yes; then
14840 lt_prog_compiler_wl_CXX='-Wl,'
14841 lt_prog_compiler_static_CXX='-static'
14845 # All AIX code is PIC.
14846 if test "$host_cpu" = ia64; then
14847 # AIX 5 now supports IA64 processor
14848 lt_prog_compiler_static_CXX='-Bstatic'
14855 # see comment about AmigaOS4 .so support
14856 lt_prog_compiler_pic_CXX='-fPIC'
14859 # FIXME: we need at least 68020 code to build shared libraries, but
14860 # adding the `-m68020' flag to GCC prevents building anything better,
14862 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14867 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14868 # PIC is the default for these OSes.
14870 mingw* | cygwin* | os2* | pw32* | cegcc*)
14871 # This hack is so that the source file can tell whether it is being
14872 # built for inclusion in a dll (and should export symbols for example).
14873 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14874 # (--disable-auto-import) libraries
14875 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14877 darwin* | rhapsody*)
14878 # PIC is the default on this platform
14879 # Common symbols not allowed in MH_DYLIB files
14880 lt_prog_compiler_pic_CXX='-fno-common'
14883 # DJGPP does not support shared libraries at all
14884 lt_prog_compiler_pic_CXX=
14887 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14888 # Instead, we relocate shared libraries at runtime.
14891 if test -d /usr/nec; then
14892 lt_prog_compiler_pic_CXX=-Kconform_pic
14896 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14897 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14898 # sets the default TLS model and affects inlining.
14903 lt_prog_compiler_pic_CXX='-fPIC'
14908 # QNX uses GNU C++, but need to define -shared option too, otherwise
14909 # it will coredump.
14910 lt_prog_compiler_pic_CXX='-fPIC -shared'
14913 lt_prog_compiler_pic_CXX='-fPIC'
14919 # All AIX code is PIC.
14920 if test "$host_cpu" = ia64; then
14921 # AIX 5 now supports IA64 processor
14922 lt_prog_compiler_static_CXX='-Bstatic'
14924 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14928 case $cc_basename in
14930 # Green Hills C++ Compiler
14931 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14936 case $cc_basename in
14938 lt_prog_compiler_pic_CXX='-KPIC'
14941 # Green Hills C++ Compiler
14942 lt_prog_compiler_pic_CXX='-pic'
14948 freebsd* | dragonfly*)
14949 # FreeBSD uses GNU C++
14951 hpux9* | hpux10* | hpux11*)
14952 case $cc_basename in
14954 lt_prog_compiler_wl_CXX='-Wl,'
14955 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14956 if test "$host_cpu" != ia64; then
14957 lt_prog_compiler_pic_CXX='+Z'
14961 lt_prog_compiler_wl_CXX='-Wl,'
14962 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14968 lt_prog_compiler_pic_CXX='+Z'
14977 # This is c89, which is MS Visual C++ (no shared libs)
14978 # Anyone wants to do a port?
14980 irix5* | irix6* | nonstopux*)
14981 case $cc_basename in
14983 lt_prog_compiler_wl_CXX='-Wl,'
14984 lt_prog_compiler_static_CXX='-non_shared'
14985 # CC pic flag -KPIC is the default.
14991 linux* | k*bsd*-gnu)
14992 case $cc_basename in
14995 lt_prog_compiler_wl_CXX='--backend -Wl,'
14996 lt_prog_compiler_pic_CXX='-fPIC'
14999 # old Intel C++ for x86_64 which still supported -KPIC.
15000 lt_prog_compiler_wl_CXX='-Wl,'
15001 lt_prog_compiler_pic_CXX='-KPIC'
15002 lt_prog_compiler_static_CXX='-static'
15005 # Intel C++, used to be incompatible with GCC.
15006 # ICC 10 doesn't accept -KPIC any more.
15007 lt_prog_compiler_wl_CXX='-Wl,'
15008 lt_prog_compiler_pic_CXX='-fPIC'
15009 lt_prog_compiler_static_CXX='-static'
15012 # Portland Group C++ compiler
15013 lt_prog_compiler_wl_CXX='-Wl,'
15014 lt_prog_compiler_pic_CXX='-fpic'
15015 lt_prog_compiler_static_CXX='-Bstatic'
15019 # Make sure the PIC flag is empty. It appears that all Alpha
15020 # Linux and Compaq Tru64 Unix objects are PIC.
15021 lt_prog_compiler_pic_CXX=
15022 lt_prog_compiler_static_CXX='-non_shared'
15025 # IBM XL 8.0 on PPC
15026 lt_prog_compiler_wl_CXX='-Wl,'
15027 lt_prog_compiler_pic_CXX='-qpic'
15028 lt_prog_compiler_static_CXX='-qstaticlink'
15031 case `$CC -V 2>&1 | sed 5q` in
15034 lt_prog_compiler_pic_CXX='-KPIC'
15035 lt_prog_compiler_static_CXX='-Bstatic'
15036 lt_prog_compiler_wl_CXX='-Qoption ld '
15047 case $cc_basename in
15049 lt_prog_compiler_pic_CXX='-W c,exportall'
15058 # QNX uses GNU C++, but need to define -shared option too, otherwise
15059 # it will coredump.
15060 lt_prog_compiler_pic_CXX='-fPIC -shared'
15062 osf3* | osf4* | osf5*)
15063 case $cc_basename in
15065 lt_prog_compiler_wl_CXX='--backend -Wl,'
15068 # Rational C++ 2.4.1
15069 lt_prog_compiler_pic_CXX='-pic'
15072 # Digital/Compaq C++
15073 lt_prog_compiler_wl_CXX='-Wl,'
15074 # Make sure the PIC flag is empty. It appears that all Alpha
15075 # Linux and Compaq Tru64 Unix objects are PIC.
15076 lt_prog_compiler_pic_CXX=
15077 lt_prog_compiler_static_CXX='-non_shared'
15086 case $cc_basename in
15088 # Sun C++ 4.2, 5.x and Centerline C++
15089 lt_prog_compiler_pic_CXX='-KPIC'
15090 lt_prog_compiler_static_CXX='-Bstatic'
15091 lt_prog_compiler_wl_CXX='-Qoption ld '
15094 # Green Hills C++ Compiler
15095 lt_prog_compiler_pic_CXX='-PIC'
15102 case $cc_basename in
15105 lt_prog_compiler_pic_CXX='-pic'
15106 lt_prog_compiler_static_CXX='-Bstatic'
15110 lt_prog_compiler_pic_CXX='-pic'
15116 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15117 case $cc_basename in
15119 lt_prog_compiler_wl_CXX='-Wl,'
15120 lt_prog_compiler_pic_CXX='-KPIC'
15121 lt_prog_compiler_static_CXX='-Bstatic'
15126 case $cc_basename in
15128 # NonStop-UX NCC 3.20
15129 lt_prog_compiler_pic_CXX='-KPIC'
15138 lt_prog_compiler_can_build_shared_CXX=no
15144 # For platforms which do not support PIC, -DPIC is meaningless:
15146 lt_prog_compiler_pic_CXX=
15149 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
15153 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15158 # Check to make sure the PIC flag actually works.
15160 if test -n "$lt_prog_compiler_pic_CXX"; then
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15162 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15163 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
15164 $as_echo_n "(cached) " >&6
15166 lt_cv_prog_compiler_pic_works_CXX=no
15167 ac_outfile=conftest.$ac_objext
15168 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15169 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15170 # Insert the option either (1) after the last *FLAGS variable, or
15171 # (2) before a word containing "conftest.", or (3) at the end.
15172 # Note that $ac_compile itself does not contain backslashes and begins
15173 # with a dollar sign (not a hyphen), so the echo should work correctly.
15174 # The option is referenced via a variable to avoid confusing sed.
15175 lt_compile=`echo "$ac_compile" | $SED \
15176 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15177 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15178 -e 's:$: $lt_compiler_flag:'`
15179 (eval echo "\"\$as_me:15179: $lt_compile\"" >&5)
15180 (eval "$lt_compile" 2>conftest.err)
15182 cat conftest.err >&5
15183 echo "$as_me:15183: \$? = $ac_status" >&5
15184 if (exit $ac_status) && test -s "$ac_outfile"; then
15185 # The compiler can only warn and ignore the option if not recognized
15186 # So say no if there are warnings other than the usual output.
15187 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15188 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15189 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15190 lt_cv_prog_compiler_pic_works_CXX=yes
15196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15197 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15199 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15200 case $lt_prog_compiler_pic_CXX in
15202 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15205 lt_prog_compiler_pic_CXX=
15206 lt_prog_compiler_can_build_shared_CXX=no
15214 # Check to make sure the static flag actually works.
15216 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15218 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15219 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
15220 $as_echo_n "(cached) " >&6
15222 lt_cv_prog_compiler_static_works_CXX=no
15223 save_LDFLAGS="$LDFLAGS"
15224 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15225 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15226 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15227 # The linker can only warn and ignore the option if not recognized
15228 # So say no if there are warnings
15229 if test -s conftest.err; then
15230 # Append any errors to the config.log.
15231 cat conftest.err 1>&5
15232 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15233 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15234 if diff conftest.exp conftest.er2 >/dev/null; then
15235 lt_cv_prog_compiler_static_works_CXX=yes
15238 lt_cv_prog_compiler_static_works_CXX=yes
15242 LDFLAGS="$save_LDFLAGS"
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15246 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15248 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15251 lt_prog_compiler_static_CXX=
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15258 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15259 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15260 $as_echo_n "(cached) " >&6
15262 lt_cv_prog_compiler_c_o_CXX=no
15263 $RM -r conftest 2>/dev/null
15267 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15269 lt_compiler_flag="-o out/conftest2.$ac_objext"
15270 # Insert the option either (1) after the last *FLAGS variable, or
15271 # (2) before a word containing "conftest.", or (3) at the end.
15272 # Note that $ac_compile itself does not contain backslashes and begins
15273 # with a dollar sign (not a hyphen), so the echo should work correctly.
15274 lt_compile=`echo "$ac_compile" | $SED \
15275 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15276 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15277 -e 's:$: $lt_compiler_flag:'`
15278 (eval echo "\"\$as_me:15278: $lt_compile\"" >&5)
15279 (eval "$lt_compile" 2>out/conftest.err)
15281 cat out/conftest.err >&5
15282 echo "$as_me:15282: \$? = $ac_status" >&5
15283 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15285 # The compiler can only warn and ignore the option if not recognized
15286 # So say no if there are warnings
15287 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15288 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15289 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15290 lt_cv_prog_compiler_c_o_CXX=yes
15295 # SGI C++ compiler will create directory out/ii_files/ for
15296 # template instantiation
15297 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15298 $RM out/* && rmdir out
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15305 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15310 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15311 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15312 $as_echo_n "(cached) " >&6
15314 lt_cv_prog_compiler_c_o_CXX=no
15315 $RM -r conftest 2>/dev/null
15319 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15321 lt_compiler_flag="-o out/conftest2.$ac_objext"
15322 # Insert the option either (1) after the last *FLAGS variable, or
15323 # (2) before a word containing "conftest.", or (3) at the end.
15324 # Note that $ac_compile itself does not contain backslashes and begins
15325 # with a dollar sign (not a hyphen), so the echo should work correctly.
15326 lt_compile=`echo "$ac_compile" | $SED \
15327 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15328 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15329 -e 's:$: $lt_compiler_flag:'`
15330 (eval echo "\"\$as_me:15330: $lt_compile\"" >&5)
15331 (eval "$lt_compile" 2>out/conftest.err)
15333 cat out/conftest.err >&5
15334 echo "$as_me:15334: \$? = $ac_status" >&5
15335 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15337 # The compiler can only warn and ignore the option if not recognized
15338 # So say no if there are warnings
15339 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15340 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15341 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15342 lt_cv_prog_compiler_c_o_CXX=yes
15347 # SGI C++ compiler will create directory out/ii_files/ for
15348 # template instantiation
15349 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15350 $RM out/* && rmdir out
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15357 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15362 hard_links="nottested"
15363 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15364 # do not overwrite the value of need_locks provided by the user
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15366 $as_echo_n "checking if we can lock with hard links... " >&6; }
15369 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15371 ln conftest.a conftest.b 2>&5 || hard_links=no
15372 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15374 $as_echo "$hard_links" >&6; }
15375 if test "$hard_links" = no; then
15376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15377 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15387 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15389 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15392 # If we're using GNU nm, then we don't want the "-C" option.
15393 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15394 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15395 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15397 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15401 export_symbols_cmds_CXX="$ltdll_cmds"
15403 cygwin* | mingw* | cegcc*)
15404 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15407 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15410 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15413 $as_echo "$ld_shlibs_CXX" >&6; }
15414 test "$ld_shlibs_CXX" = no && can_build_shared=no
15416 with_gnu_ld_CXX=$with_gnu_ld
15424 # Do we need to explicitly link libc?
15426 case "x$archive_cmds_need_lc_CXX" in
15428 # Assume -lc should be added
15429 archive_cmds_need_lc_CXX=yes
15431 if test "$enable_shared" = yes && test "$GCC" = yes; then
15432 case $archive_cmds_CXX in
15434 # FIXME: we may have to deal with multi-command sequences.
15437 # Test whether the compiler implicitly links with -lc since on some
15438 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15439 # to ld, don't add -lc before -lgcc.
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15441 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15443 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15445 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15446 (eval $ac_compile) 2>&5
15448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15449 test $ac_status = 0; } 2>conftest.err; then
15452 libobjs=conftest.$ac_objext
15454 wl=$lt_prog_compiler_wl_CXX
15455 pic_flag=$lt_prog_compiler_pic_CXX
15461 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15462 allow_undefined_flag_CXX=
15463 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15464 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15467 test $ac_status = 0; }
15469 archive_cmds_need_lc_CXX=no
15471 archive_cmds_need_lc_CXX=yes
15473 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15475 cat conftest.err 1>&5
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
15479 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
15549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15550 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15552 library_names_spec=
15553 libname_spec='lib$name'
15557 postuninstall_cmds=
15561 shlibpath_overrides_runpath=unknown
15563 dynamic_linker="$host_os ld.so"
15564 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15565 need_lib_prefix=unknown
15566 hardcode_into_libs=no
15568 # when you set need_version to no, make sure it does not cause -set_version
15569 # flags to be left without arguments
15570 need_version=unknown
15575 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15576 shlibpath_var=LIBPATH
15578 # AIX 3 has no versioning support, so we append a major version to the name.
15579 soname_spec='${libname}${release}${shared_ext}$major'
15586 hardcode_into_libs=yes
15587 if test "$host_cpu" = ia64; then
15588 # AIX 5 supports IA64
15589 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15590 shlibpath_var=LD_LIBRARY_PATH
15592 # With GCC up to 2.95.x, collect2 would create an import file
15593 # for dependence libraries. The import file would start with
15594 # the line `#! .'. This would cause the generated library to
15595 # depend on `.', always an invalid library. This was fixed in
15596 # development snapshots of GCC prior to 3.0.
15598 aix4 | aix4.[01] | aix4.[01].*)
15599 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15601 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15604 can_build_shared=no
15608 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15609 # soname into executable. Probably we can add versioning support to
15610 # collect2, so additional links can be useful in future.
15611 if test "$aix_use_runtimelinking" = yes; then
15612 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15613 # instead of lib<name>.a to let people know that these are not
15614 # typical AIX shared libraries.
15615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15617 # We preserve .a as extension for shared libraries through AIX4.2
15618 # and later when we are not doing run time linking.
15619 library_names_spec='${libname}${release}.a $libname.a'
15620 soname_spec='${libname}${release}${shared_ext}$major'
15622 shlibpath_var=LIBPATH
15629 # Since July 2007 AmigaOS4 officially supports .so libraries.
15630 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15634 library_names_spec='$libname.ixlibrary $libname.a'
15635 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15636 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15642 library_names_spec='${libname}${shared_ext}'
15643 dynamic_linker="$host_os ld.so"
15644 shlibpath_var=LIBRARY_PATH
15650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15651 soname_spec='${libname}${release}${shared_ext}$major'
15652 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15653 shlibpath_var=LD_LIBRARY_PATH
15654 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15655 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15656 # the default ld.so.conf also contains /usr/contrib/lib and
15657 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15658 # libtool to hard-code these into programs
15661 cygwin* | mingw* | pw32* | cegcc*)
15662 version_type=windows
15667 case $GCC,$host_os in
15668 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15669 library_names_spec='$libname.dll.a'
15670 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15671 postinstall_cmds='base_file=`basename \${file}`~
15672 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15673 dldir=$destdir/`dirname \$dlpath`~
15674 test -d \$dldir || mkdir -p \$dldir~
15675 $install_prog $dir/$dlname \$dldir/$dlname~
15676 chmod a+x \$dldir/$dlname~
15677 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15678 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15680 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15681 dlpath=$dir/\$dldll~
15683 shlibpath_overrides_runpath=yes
15687 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15688 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15689 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15692 # MinGW DLLs use traditional 'lib' prefix
15693 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15694 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15695 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15696 # It is most probably a Windows format PATH printed by
15697 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15698 # path with ; separators, and with drive letters. We can handle the
15699 # drive letters (cygwin fileutils understands them), so leave them,
15700 # especially as we might pass files found there to a mingw objdump,
15701 # which wouldn't understand a cygwinified path. Ahh.
15702 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15704 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15708 # pw32 DLLs use 'pw' prefix rather than 'lib'
15709 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15715 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15718 dynamic_linker='Win32 ld.exe'
15719 # FIXME: first we should search . and the directory the executable is in
15723 darwin* | rhapsody*)
15724 dynamic_linker="$host_os dyld"
15725 version_type=darwin
15728 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15729 soname_spec='${libname}${release}${major}$shared_ext'
15730 shlibpath_overrides_runpath=yes
15731 shlibpath_var=DYLD_LIBRARY_PATH
15732 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15734 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15742 soname_spec='${libname}${release}${shared_ext}$major'
15743 shlibpath_var=LD_LIBRARY_PATH
15750 freebsd* | dragonfly*)
15751 # DragonFly does not have aout. When/if they implement a new
15752 # versioning mechanism, adjust this.
15753 if test -x /usr/bin/objformat; then
15754 objformat=`/usr/bin/objformat`
15757 freebsd[123]*) objformat=aout ;;
15758 *) objformat=elf ;;
15761 version_type=freebsd-$objformat
15762 case $version_type in
15764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15769 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15773 shlibpath_var=LD_LIBRARY_PATH
15776 shlibpath_overrides_runpath=yes
15778 freebsd3.[01]* | freebsdelf3.[01]*)
15779 shlibpath_overrides_runpath=yes
15780 hardcode_into_libs=yes
15782 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15783 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15784 shlibpath_overrides_runpath=no
15785 hardcode_into_libs=yes
15787 *) # from 4.6 on, and DragonFly
15788 shlibpath_overrides_runpath=yes
15789 hardcode_into_libs=yes
15798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15799 soname_spec='${libname}${release}${shared_ext}$major'
15800 shlibpath_var=LD_LIBRARY_PATH
15801 hardcode_into_libs=yes
15804 hpux9* | hpux10* | hpux11*)
15805 # Give a soname corresponding to the major version so that dld.sl refuses to
15806 # link against other versions.
15813 hardcode_into_libs=yes
15814 dynamic_linker="$host_os dld.so"
15815 shlibpath_var=LD_LIBRARY_PATH
15816 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15818 soname_spec='${libname}${release}${shared_ext}$major'
15819 if test "X$HPUX_IA64_MODE" = X32; then
15820 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15822 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15824 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15828 hardcode_into_libs=yes
15829 dynamic_linker="$host_os dld.sl"
15830 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15831 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15833 soname_spec='${libname}${release}${shared_ext}$major'
15834 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15835 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15839 dynamic_linker="$host_os dld.sl"
15840 shlibpath_var=SHLIB_PATH
15841 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15843 soname_spec='${libname}${release}${shared_ext}$major'
15846 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15847 postinstall_cmds='chmod 555 $lib'
15854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15855 soname_spec='${libname}${release}${shared_ext}$major'
15856 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15857 shlibpath_var=LD_LIBRARY_PATH
15858 shlibpath_overrides_runpath=no
15859 hardcode_into_libs=yes
15862 irix5* | irix6* | nonstopux*)
15864 nonstopux*) version_type=nonstopux ;;
15866 if test "$lt_cv_prog_gnu_ld" = yes; then
15874 soname_spec='${libname}${release}${shared_ext}$major'
15875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15877 irix5* | nonstopux*)
15878 libsuff= shlibsuff=
15881 case $LD in # libtool.m4 will add one of these switches to LD
15882 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15883 libsuff= shlibsuff= libmagic=32-bit;;
15884 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15885 libsuff=32 shlibsuff=N32 libmagic=N32;;
15886 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15887 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15888 *) libsuff= shlibsuff= libmagic=never-match;;
15892 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15893 shlibpath_overrides_runpath=no
15894 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15895 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15896 hardcode_into_libs=yes
15899 # No shared lib support for Linux oldld, aout, or coff.
15900 linux*oldld* | linux*aout* | linux*coff*)
15904 # This must be Linux ELF.
15905 linux* | k*bsd*-gnu)
15909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15910 soname_spec='${libname}${release}${shared_ext}$major'
15911 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15912 shlibpath_var=LD_LIBRARY_PATH
15913 shlibpath_overrides_runpath=no
15914 # Some binutils ld are patched to set DT_RUNPATH
15915 save_LDFLAGS=$LDFLAGS
15916 save_libdir=$libdir
15917 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15918 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15920 /* end confdefs.h. */
15930 if ac_fn_cxx_try_link "$LINENO"; then :
15931 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15932 shlibpath_overrides_runpath=yes
15935 rm -f core conftest.err conftest.$ac_objext \
15936 conftest$ac_exeext conftest.$ac_ext
15937 LDFLAGS=$save_LDFLAGS
15938 libdir=$save_libdir
15940 # This implies no fast_install, which is unacceptable.
15941 # Some rework will be needed to allow for fast_install
15942 # before this can be enabled.
15943 hardcode_into_libs=yes
15945 # Add ABI-specific directories to the system library path.
15946 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15948 # Append ld.so.conf contents to the search path
15949 if test -f /etc/ld.so.conf; then
15950 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15951 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15954 # We used to test for /lib/ld.so.1 and disable shared libraries on
15955 # powerpc, because MkLinux only supported shared libraries with the
15956 # GNU dynamic linker. Since this was broken with cross compilers,
15957 # most powerpc-linux boxes support dynamic linking these days and
15958 # people can always --disable-shared, the test was removed, and we
15959 # assume the GNU/Linux dynamic linker is in use.
15960 dynamic_linker='GNU/Linux ld.so'
15967 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15969 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15970 dynamic_linker='NetBSD (a.out) ld.so'
15972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15973 soname_spec='${libname}${release}${shared_ext}$major'
15974 dynamic_linker='NetBSD ld.elf_so'
15976 shlibpath_var=LD_LIBRARY_PATH
15977 shlibpath_overrides_runpath=yes
15978 hardcode_into_libs=yes
15983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15984 shlibpath_var=LD_LIBRARY_PATH
15985 shlibpath_overrides_runpath=yes
15992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15993 soname_spec='${libname}${release}${shared_ext}$major'
15994 shlibpath_var=LD_LIBRARY_PATH
15995 shlibpath_overrides_runpath=no
15996 hardcode_into_libs=yes
15997 dynamic_linker='ldqnx.so'
16002 sys_lib_dlsearch_path_spec="/usr/lib"
16004 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16006 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16007 *) need_version=no ;;
16009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16010 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16011 shlibpath_var=LD_LIBRARY_PATH
16012 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16014 openbsd2.[89] | openbsd2.[89].*)
16015 shlibpath_overrides_runpath=no
16018 shlibpath_overrides_runpath=yes
16022 shlibpath_overrides_runpath=yes
16027 libname_spec='$name'
16030 library_names_spec='$libname${shared_ext} $libname.a'
16031 dynamic_linker='OS/2 ld.exe'
16032 shlibpath_var=LIBPATH
16035 osf3* | osf4* | osf5*)
16039 soname_spec='${libname}${release}${shared_ext}$major'
16040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16041 shlibpath_var=LD_LIBRARY_PATH
16042 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16043 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16055 soname_spec='${libname}${release}${shared_ext}$major'
16056 shlibpath_var=LD_LIBRARY_PATH
16057 shlibpath_overrides_runpath=yes
16058 hardcode_into_libs=yes
16059 # ldd complains unless libraries are executable
16060 postinstall_cmds='chmod +x $lib'
16065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16066 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16067 shlibpath_var=LD_LIBRARY_PATH
16068 shlibpath_overrides_runpath=yes
16069 if test "$with_gnu_ld" = yes; then
16077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16078 soname_spec='${libname}${release}${shared_ext}$major'
16079 shlibpath_var=LD_LIBRARY_PATH
16080 case $host_vendor in
16082 shlibpath_overrides_runpath=no
16084 runpath_var=LD_RUN_PATH
16092 shlibpath_overrides_runpath=no
16093 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16099 if test -d /usr/nec ;then
16101 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16102 soname_spec='$libname${shared_ext}.$major'
16103 shlibpath_var=LD_LIBRARY_PATH
16107 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16108 version_type=freebsd-elf
16111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16112 soname_spec='${libname}${release}${shared_ext}$major'
16113 shlibpath_var=LD_LIBRARY_PATH
16114 shlibpath_overrides_runpath=yes
16115 hardcode_into_libs=yes
16116 if test "$with_gnu_ld" = yes; then
16117 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16119 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16122 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16126 sys_lib_dlsearch_path_spec='/usr/lib'
16130 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16135 shlibpath_var=LD_LIBRARY_PATH
16136 shlibpath_overrides_runpath=no
16137 hardcode_into_libs=yes
16142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16143 soname_spec='${libname}${release}${shared_ext}$major'
16144 shlibpath_var=LD_LIBRARY_PATH
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16152 $as_echo "$dynamic_linker" >&6; }
16153 test "$dynamic_linker" = no && can_build_shared=no
16155 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16156 if test "$GCC" = yes; then
16157 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16160 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16161 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16163 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16164 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16203 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16204 hardcode_action_CXX=
16205 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16206 test -n "$runpath_var_CXX" ||
16207 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16209 # We can hardcode non-existent directories.
16210 if test "$hardcode_direct_CXX" != no &&
16211 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16212 # have to relink, otherwise we might link with an installed library
16213 # when we should be linking with a yet-to-be-installed one
16214 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16215 test "$hardcode_minus_L_CXX" != no; then
16216 # Linking always hardcodes the temporary library directory.
16217 hardcode_action_CXX=relink
16219 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16220 hardcode_action_CXX=immediate
16223 # We cannot hardcode anything, or else we can only hardcode existing
16225 hardcode_action_CXX=unsupported
16227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16228 $as_echo "$hardcode_action_CXX" >&6; }
16230 if test "$hardcode_action_CXX" = relink ||
16231 test "$inherit_rpath_CXX" = yes; then
16232 # Fast installation is not supported
16233 enable_fast_install=no
16234 elif test "$shlibpath_overrides_runpath" = yes ||
16235 test "$enable_shared" = no; then
16236 # Fast installation is not necessary
16237 enable_fast_install=needless
16246 fi # test -n "$compiler"
16252 with_gnu_ld=$lt_save_with_gnu_ld
16253 lt_cv_path_LDCXX=$lt_cv_path_LD
16254 lt_cv_path_LD=$lt_save_path_LD
16255 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16256 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16257 fi # test "$_lt_caught_CXX_error" != yes
16260 ac_cpp='$CPP $CPPFLAGS'
16261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16277 ac_config_commands="$ac_config_commands libtool"
16282 # Only expand once:
16285 if test "x$CC" != xcc; then
16286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
16287 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
16289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
16290 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
16292 set dummy $CC; ac_cc=`$as_echo "$2" |
16293 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
16294 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
16295 $as_echo_n "(cached) " >&6
16297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16298 /* end confdefs.h. */
16308 # Make sure it works both with $CC and with simple cc.
16309 # We do the test twice because some compilers refuse to overwrite an
16310 # existing .o file with -o, though they will create one.
16311 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
16313 if { { case "(($ac_try" in
16314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16315 *) ac_try_echo=$ac_try;;
16317 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16318 $as_echo "$ac_try_echo"; } >&5
16319 (eval "$ac_try") 2>&5
16321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16322 test $ac_status = 0; } &&
16323 test -f conftest2.$ac_objext && { { case "(($ac_try" in
16324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16325 *) ac_try_echo=$ac_try;;
16327 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16328 $as_echo "$ac_try_echo"; } >&5
16329 (eval "$ac_try") 2>&5
16331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16332 test $ac_status = 0; };
16334 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
16335 if test "x$CC" != xcc; then
16336 # Test first that cc exists at all.
16337 if { ac_try='cc -c conftest.$ac_ext >&5'
16338 { { case "(($ac_try" in
16339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16340 *) ac_try_echo=$ac_try;;
16342 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16343 $as_echo "$ac_try_echo"; } >&5
16344 (eval "$ac_try") 2>&5
16346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16347 test $ac_status = 0; }; }; then
16348 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
16350 if { { case "(($ac_try" in
16351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16352 *) ac_try_echo=$ac_try;;
16354 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16355 $as_echo "$ac_try_echo"; } >&5
16356 (eval "$ac_try") 2>&5
16358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16359 test $ac_status = 0; } &&
16360 test -f conftest2.$ac_objext && { { case "(($ac_try" in
16361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16362 *) ac_try_echo=$ac_try;;
16364 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16365 $as_echo "$ac_try_echo"; } >&5
16366 (eval "$ac_try") 2>&5
16368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16369 test $ac_status = 0; };
16374 # cc exists but doesn't like -o.
16375 eval ac_cv_prog_cc_${ac_cc}_c_o=no
16380 eval ac_cv_prog_cc_${ac_cc}_c_o=no
16382 rm -f core conftest*
16385 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16387 $as_echo "yes" >&6; }
16389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16390 $as_echo "no" >&6; }
16392 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
16396 # FIXME: we rely on the cache variable name because
16397 # there is no other way.
16399 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
16400 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
16401 if test "$am_t" != yes; then
16402 # Losing compiler, so override with the script.
16403 # FIXME: It is wrong to rewrite CC.
16404 # But if we don't then we get into trouble of one sort or another.
16405 # A longer-term fix would be to have automake use am__CC in this case,
16406 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
16407 CC="$am_aux_dir/compile $CC"
16412 if test "x$cross_compiling" = "xno"; then
16413 CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
16415 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
16420 if test -n "$ac_tool_prefix"; then
16421 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
16422 set dummy ${ac_tool_prefix}ar; ac_word=$2
16423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16424 $as_echo_n "checking for $ac_word... " >&6; }
16425 if test "${ac_cv_prog_AR+set}" = set; then :
16426 $as_echo_n "(cached) " >&6
16428 if test -n "$AR"; then
16429 ac_cv_prog_AR="$AR" # Let the user override the test.
16431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16432 for as_dir in $PATH
16435 test -z "$as_dir" && as_dir=.
16436 for ac_exec_ext in '' $ac_executable_extensions; do
16437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16438 ac_cv_prog_AR="${ac_tool_prefix}ar"
16439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16449 if test -n "$AR"; then
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
16451 $as_echo "$AR" >&6; }
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16454 $as_echo "no" >&6; }
16459 if test -z "$ac_cv_prog_AR"; then
16461 # Extract the first word of "ar", so it can be a program name with args.
16462 set dummy ar; ac_word=$2
16463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16464 $as_echo_n "checking for $ac_word... " >&6; }
16465 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
16466 $as_echo_n "(cached) " >&6
16468 if test -n "$ac_ct_AR"; then
16469 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
16471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16472 for as_dir in $PATH
16475 test -z "$as_dir" && as_dir=.
16476 for ac_exec_ext in '' $ac_executable_extensions; do
16477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16478 ac_cv_prog_ac_ct_AR="ar"
16479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16488 ac_ct_AR=$ac_cv_prog_ac_ct_AR
16489 if test -n "$ac_ct_AR"; then
16490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
16491 $as_echo "$ac_ct_AR" >&6; }
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16494 $as_echo "no" >&6; }
16497 if test "x$ac_ct_AR" = x; then
16500 case $cross_compiling:$ac_tool_warned in
16502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16503 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16504 ac_tool_warned=yes ;;
16509 AR="$ac_cv_prog_AR"
16512 if test -n "$ac_tool_prefix"; then
16513 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
16514 set dummy ${ac_tool_prefix}ld; ac_word=$2
16515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16516 $as_echo_n "checking for $ac_word... " >&6; }
16517 if test "${ac_cv_prog_LD+set}" = set; then :
16518 $as_echo_n "(cached) " >&6
16520 if test -n "$LD"; then
16521 ac_cv_prog_LD="$LD" # Let the user override the test.
16523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16524 for as_dir in $PATH
16527 test -z "$as_dir" && as_dir=.
16528 for ac_exec_ext in '' $ac_executable_extensions; do
16529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16530 ac_cv_prog_LD="${ac_tool_prefix}ld"
16531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16541 if test -n "$LD"; then
16542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16543 $as_echo "$LD" >&6; }
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16546 $as_echo "no" >&6; }
16551 if test -z "$ac_cv_prog_LD"; then
16553 # Extract the first word of "ld", so it can be a program name with args.
16554 set dummy ld; ac_word=$2
16555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16556 $as_echo_n "checking for $ac_word... " >&6; }
16557 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then :
16558 $as_echo_n "(cached) " >&6
16560 if test -n "$ac_ct_LD"; then
16561 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
16563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16564 for as_dir in $PATH
16567 test -z "$as_dir" && as_dir=.
16568 for ac_exec_ext in '' $ac_executable_extensions; do
16569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16570 ac_cv_prog_ac_ct_LD="ld"
16571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16580 ac_ct_LD=$ac_cv_prog_ac_ct_LD
16581 if test -n "$ac_ct_LD"; then
16582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
16583 $as_echo "$ac_ct_LD" >&6; }
16585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16586 $as_echo "no" >&6; }
16589 if test "x$ac_ct_LD" = x; then
16592 case $cross_compiling:$ac_tool_warned in
16594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16596 ac_tool_warned=yes ;;
16601 LD="$ac_cv_prog_LD"
16605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16606 $as_echo_n "checking for ANSI C header files... " >&6; }
16607 if test "${ac_cv_header_stdc+set}" = set; then :
16608 $as_echo_n "(cached) " >&6
16610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16611 /* end confdefs.h. */
16612 #include <stdlib.h>
16613 #include <stdarg.h>
16614 #include <string.h>
16625 if ac_fn_c_try_compile "$LINENO"; then :
16626 ac_cv_header_stdc=yes
16628 ac_cv_header_stdc=no
16630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16632 if test $ac_cv_header_stdc = yes; then
16633 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16635 /* end confdefs.h. */
16636 #include <string.h>
16639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16640 $EGREP "memchr" >/dev/null 2>&1; then :
16643 ac_cv_header_stdc=no
16649 if test $ac_cv_header_stdc = yes; then
16650 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16652 /* end confdefs.h. */
16653 #include <stdlib.h>
16656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16657 $EGREP "free" >/dev/null 2>&1; then :
16660 ac_cv_header_stdc=no
16666 if test $ac_cv_header_stdc = yes; then
16667 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16668 if test "$cross_compiling" = yes; then :
16671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16672 /* end confdefs.h. */
16674 #include <stdlib.h>
16675 #if ((' ' & 0x0FF) == 0x020)
16676 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16677 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16679 # define ISLOWER(c) \
16680 (('a' <= (c) && (c) <= 'i') \
16681 || ('j' <= (c) && (c) <= 'r') \
16682 || ('s' <= (c) && (c) <= 'z'))
16683 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16686 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16691 for (i = 0; i < 256; i++)
16692 if (XOR (islower (i), ISLOWER (i))
16693 || toupper (i) != TOUPPER (i))
16698 if ac_fn_c_try_run "$LINENO"; then :
16701 ac_cv_header_stdc=no
16703 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16704 conftest.$ac_objext conftest.beam conftest.$ac_ext
16709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16710 $as_echo "$ac_cv_header_stdc" >&6; }
16711 if test $ac_cv_header_stdc = yes; then
16713 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc2" >&5
16719 $as_echo_n "checking for GNU libc2... " >&6; }
16720 if test "${knfsd_cv_glibc2+set}" = set; then :
16721 $as_echo_n "(cached) " >&6
16723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16724 /* end confdefs.h. */
16726 #include <features.h>
16727 #if !defined(__GLIBC__)
16732 if ac_fn_c_try_cpp "$LINENO"; then :
16733 knfsd_cv_glibc2=yes
16737 rm -f conftest.err conftest.$ac_ext
16740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $knfsd_cv_glibc2" >&5
16741 $as_echo "$knfsd_cv_glibc2" >&6; }
16742 if test $knfsd_cv_glibc2 = yes; then
16743 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
16744 CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
16748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD signal semantics" >&5
16749 $as_echo_n "checking for BSD signal semantics... " >&6; }
16750 if test "${knfsd_cv_bsd_signals+set}" = set; then :
16751 $as_echo_n "(cached) " >&6
16753 if test "$cross_compiling" = yes; then :
16756 *linux*) knfsd_cv_bsd_signals=no;;
16757 *bsd*) knfsd_cv_bsd_signals=yes;;
16758 *) as_fn_error "unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" "$LINENO" 5;;
16762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16763 /* end confdefs.h. */
16765 #include <signal.h>
16766 #include <unistd.h>
16767 #include <sys/wait.h>
16769 static int counter = 0;
16770 static RETSIGTYPE handler(int num) { counter++; }
16775 if ((s = fork()) < 0) return 1;
16777 if (wait(&s) < 0) return 1;
16778 return WIFSIGNALED(s)? 1 : 0;
16781 signal(SIGHUP, handler);
16782 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
16783 return (counter == 2)? 0 : 1;
16787 if ac_fn_c_try_run "$LINENO"; then :
16788 knfsd_cv_bsd_signals=yes
16790 knfsd_cv_bsd_signals=no
16792 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16793 conftest.$ac_objext conftest.beam conftest.$ac_ext
16797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $knfsd_cv_bsd_signals" >&5
16798 $as_echo "$knfsd_cv_bsd_signals" >&6; }
16799 test $knfsd_cv_bsd_signals = yes &&
16800 $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
16805 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
16806 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
16809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
16810 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
16811 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
16812 $as_echo_n "(cached) " >&6
16814 ac_check_lib_save_LIBS=$LIBS
16816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16817 /* end confdefs.h. */
16819 /* Override any GCC internal prototype to avoid an error.
16820 Use char because int might match the return type of a GCC
16821 builtin and then its argument prototype would still apply. */
16825 char gethostbyname ();
16829 return gethostbyname ();
16834 if ac_fn_c_try_link "$LINENO"; then :
16835 ac_cv_lib_nsl_gethostbyname=yes
16837 ac_cv_lib_nsl_gethostbyname=no
16839 rm -f core conftest.err conftest.$ac_objext \
16840 conftest$ac_exeext conftest.$ac_ext
16841 LIBS=$ac_check_lib_save_LIBS
16843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
16844 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
16845 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
16853 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
16854 if test "x$ac_cv_func_connect" = x""yes; then :
16857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
16858 $as_echo_n "checking for connect in -lsocket... " >&6; }
16859 if test "${ac_cv_lib_socket_connect+set}" = set; then :
16860 $as_echo_n "(cached) " >&6
16862 ac_check_lib_save_LIBS=$LIBS
16863 LIBS="-lsocket $LIBNSL $LIBS"
16864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16865 /* end confdefs.h. */
16867 /* Override any GCC internal prototype to avoid an error.
16868 Use char because int might match the return type of a GCC
16869 builtin and then its argument prototype would still apply. */
16882 if ac_fn_c_try_link "$LINENO"; then :
16883 ac_cv_lib_socket_connect=yes
16885 ac_cv_lib_socket_connect=no
16887 rm -f core conftest.err conftest.$ac_objext \
16888 conftest$ac_exeext conftest.$ac_ext
16889 LIBS=$ac_check_lib_save_LIBS
16891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
16892 $as_echo "$ac_cv_lib_socket_connect" >&6; }
16893 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
16894 LIBSOCKET="-lsocket"
16896 as_fn_error "Function 'socket' not found." "$LINENO" 5
16902 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
16903 if test "x$ac_cv_func_getaddrinfo" = x""yes; then :
16906 as_fn_error "Function 'getaddrinfo' not found." "$LINENO" 5
16910 ac_fn_c_check_func "$LINENO" "getrpcbynumber" "ac_cv_func_getrpcbynumber"
16911 if test "x$ac_cv_func_getrpcbynumber" = x""yes; then :
16914 as_fn_error "Function 'getrpcbynumber' not found." "$LINENO" 5
16918 ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
16919 if test "x$ac_cv_func_getservbyname" = x""yes; then :
16922 as_fn_error "Function 'getservbyname' not found." "$LINENO" 5
16926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
16927 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
16928 if test "${ac_cv_lib_crypt_crypt+set}" = set; then :
16929 $as_echo_n "(cached) " >&6
16931 ac_check_lib_save_LIBS=$LIBS
16932 LIBS="-lcrypt $LIBS"
16933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16934 /* end confdefs.h. */
16936 /* Override any GCC internal prototype to avoid an error.
16937 Use char because int might match the return type of a GCC
16938 builtin and then its argument prototype would still apply. */
16951 if ac_fn_c_try_link "$LINENO"; then :
16952 ac_cv_lib_crypt_crypt=yes
16954 ac_cv_lib_crypt_crypt=no
16956 rm -f core conftest.err conftest.$ac_objext \
16957 conftest$ac_exeext conftest.$ac_ext
16958 LIBS=$ac_check_lib_save_LIBS
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
16961 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
16962 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then :
16967 if test "$enable_nfsv4" = yes; then
16970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for event_dispatch in -levent" >&5
16971 $as_echo_n "checking for event_dispatch in -levent... " >&6; }
16972 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then :
16973 $as_echo_n "(cached) " >&6
16975 ac_check_lib_save_LIBS=$LIBS
16976 LIBS="-levent $LIBS"
16977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16978 /* end confdefs.h. */
16980 /* Override any GCC internal prototype to avoid an error.
16981 Use char because int might match the return type of a GCC
16982 builtin and then its argument prototype would still apply. */
16986 char event_dispatch ();
16990 return event_dispatch ();
16995 if ac_fn_c_try_link "$LINENO"; then :
16996 ac_cv_lib_event_event_dispatch=yes
16998 ac_cv_lib_event_event_dispatch=no
17000 rm -f core conftest.err conftest.$ac_objext \
17001 conftest$ac_exeext conftest.$ac_ext
17002 LIBS=$ac_check_lib_save_LIBS
17004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_event_event_dispatch" >&5
17005 $as_echo "$ac_cv_lib_event_event_dispatch" >&6; }
17006 if test "x$ac_cv_lib_event_event_dispatch" = x""yes; then :
17009 as_fn_error "libevent not found." "$LINENO" 5
17013 for ac_header in event.h
17015 ac_fn_c_check_header_mongrel "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default"
17016 if test "x$ac_cv_header_event_h" = x""yes; then :
17017 cat >>confdefs.h <<_ACEOF
17018 #define HAVE_EVENT_H 1
17022 as_fn_error "libevent headers not found." "$LINENO" 5
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
17033 $as_echo_n "checking for nfs4_init_name_mapping in -lnfsidmap... " >&6; }
17034 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then :
17035 $as_echo_n "(cached) " >&6
17037 ac_check_lib_save_LIBS=$LIBS
17038 LIBS="-lnfsidmap $LIBS"
17039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17040 /* end confdefs.h. */
17042 /* Override any GCC internal prototype to avoid an error.
17043 Use char because int might match the return type of a GCC
17044 builtin and then its argument prototype would still apply. */
17048 char nfs4_init_name_mapping ();
17052 return nfs4_init_name_mapping ();
17057 if ac_fn_c_try_link "$LINENO"; then :
17058 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
17060 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
17062 rm -f core conftest.err conftest.$ac_objext \
17063 conftest$ac_exeext conftest.$ac_ext
17064 LIBS=$ac_check_lib_save_LIBS
17066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
17067 $as_echo "$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
17068 if test "x$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" = x""yes; then :
17071 as_fn_error "libnfsidmap not found." "$LINENO" 5
17075 for ac_header in nfsidmap.h
17077 ac_fn_c_check_header_mongrel "$LINENO" "nfsidmap.h" "ac_cv_header_nfsidmap_h" "$ac_includes_default"
17078 if test "x$ac_cv_header_nfsidmap_h" = x""yes; then :
17079 cat >>confdefs.h <<_ACEOF
17080 #define HAVE_NFSIDMAP_H 1
17084 as_fn_error "libnfsidmap headers not found." "$LINENO" 5
17090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nfs4_set_debug in -lnfsidmap" >&5
17091 $as_echo_n "checking for nfs4_set_debug in -lnfsidmap... " >&6; }
17092 if test "${ac_cv_lib_nfsidmap_nfs4_set_debug+set}" = set; then :
17093 $as_echo_n "(cached) " >&6
17095 ac_check_lib_save_LIBS=$LIBS
17096 LIBS="-lnfsidmap $LIBS"
17097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17098 /* end confdefs.h. */
17100 /* Override any GCC internal prototype to avoid an error.
17101 Use char because int might match the return type of a GCC
17102 builtin and then its argument prototype would still apply. */
17106 char nfs4_set_debug ();
17110 return nfs4_set_debug ();
17115 if ac_fn_c_try_link "$LINENO"; then :
17116 ac_cv_lib_nfsidmap_nfs4_set_debug=yes
17118 ac_cv_lib_nfsidmap_nfs4_set_debug=no
17120 rm -f core conftest.err conftest.$ac_objext \
17121 conftest$ac_exeext conftest.$ac_ext
17122 LIBS=$ac_check_lib_save_LIBS
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
17125 $as_echo "$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
17126 if test "x$ac_cv_lib_nfsidmap_nfs4_set_debug" = x""yes; then :
17128 $as_echo "#define HAVE_NFS4_SET_DEBUG 1" >>confdefs.h
17135 if test "$enable_gss" = yes; then
17138 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
17139 if test -n "$ac_tool_prefix"; then
17140 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17141 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17143 $as_echo_n "checking for $ac_word... " >&6; }
17144 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
17145 $as_echo_n "(cached) " >&6
17147 case $PKG_CONFIG in
17149 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17153 for as_dir in $PATH
17156 test -z "$as_dir" && as_dir=.
17157 for ac_exec_ext in '' $ac_executable_extensions; do
17158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17159 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17170 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17171 if test -n "$PKG_CONFIG"; then
17172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17173 $as_echo "$PKG_CONFIG" >&6; }
17175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17176 $as_echo "no" >&6; }
17181 if test -z "$ac_cv_path_PKG_CONFIG"; then
17182 ac_pt_PKG_CONFIG=$PKG_CONFIG
17183 # Extract the first word of "pkg-config", so it can be a program name with args.
17184 set dummy pkg-config; ac_word=$2
17185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17186 $as_echo_n "checking for $ac_word... " >&6; }
17187 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
17188 $as_echo_n "(cached) " >&6
17190 case $ac_pt_PKG_CONFIG in
17192 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
17195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17196 for as_dir in $PATH
17199 test -z "$as_dir" && as_dir=.
17200 for ac_exec_ext in '' $ac_executable_extensions; do
17201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17202 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17213 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
17214 if test -n "$ac_pt_PKG_CONFIG"; then
17215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
17216 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
17218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17219 $as_echo "no" >&6; }
17222 if test "x$ac_pt_PKG_CONFIG" = x; then
17225 case $cross_compiling:$ac_tool_warned in
17227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17228 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17229 ac_tool_warned=yes ;;
17231 PKG_CONFIG=$ac_pt_PKG_CONFIG
17234 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
17238 if test -n "$PKG_CONFIG"; then
17239 _pkg_min_version=0.9.0
17240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
17241 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
17242 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
17243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17244 $as_echo "yes" >&6; }
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17247 $as_echo "no" >&6; }
17256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSGLUE" >&5
17257 $as_echo_n "checking for GSSGLUE... " >&6; }
17259 if test -n "$GSSGLUE_CFLAGS"; then
17260 pkg_cv_GSSGLUE_CFLAGS="$GSSGLUE_CFLAGS"
17261 elif test -n "$PKG_CONFIG"; then
17262 if test -n "$PKG_CONFIG" && \
17263 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgssglue >= 0.1\""; } >&5
17264 ($PKG_CONFIG --exists --print-errors "libgssglue >= 0.1") 2>&5
17266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17267 test $ac_status = 0; }; then
17268 pkg_cv_GSSGLUE_CFLAGS=`$PKG_CONFIG --cflags "libgssglue >= 0.1" 2>/dev/null`
17275 if test -n "$GSSGLUE_LIBS"; then
17276 pkg_cv_GSSGLUE_LIBS="$GSSGLUE_LIBS"
17277 elif test -n "$PKG_CONFIG"; then
17278 if test -n "$PKG_CONFIG" && \
17279 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgssglue >= 0.1\""; } >&5
17280 ($PKG_CONFIG --exists --print-errors "libgssglue >= 0.1") 2>&5
17282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17283 test $ac_status = 0; }; then
17284 pkg_cv_GSSGLUE_LIBS=`$PKG_CONFIG --libs "libgssglue >= 0.1" 2>/dev/null`
17294 if test $pkg_failed = yes; then
17296 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17297 _pkg_short_errors_supported=yes
17299 _pkg_short_errors_supported=no
17301 if test $_pkg_short_errors_supported = yes; then
17302 GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgssglue >= 0.1" 2>&1`
17304 GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgssglue >= 0.1" 2>&1`
17306 # Put the nasty error message in config.log where it belongs
17307 echo "$GSSGLUE_PKG_ERRORS" >&5
17309 as_fn_error "Package requirements (libgssglue >= 0.1) were not met:
17311 $GSSGLUE_PKG_ERRORS
17313 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17314 installed software in a non-standard prefix.
17316 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
17317 and GSSGLUE_LIBS to avoid the need to call pkg-config.
17318 See the pkg-config man page for more details.
17320 elif test $pkg_failed = untried; then
17321 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17323 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
17324 is in your PATH or set the PKG_CONFIG environment variable to the full
17325 path to pkg-config.
17327 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
17328 and GSSGLUE_LIBS to avoid the need to call pkg-config.
17329 See the pkg-config man page for more details.
17331 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17332 See \`config.log' for more details." "$LINENO" 5; }
17334 GSSGLUE_CFLAGS=$pkg_cv_GSSGLUE_CFLAGS
17335 GSSGLUE_LIBS=$pkg_cv_GSSGLUE_LIBS
17336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17337 $as_echo "yes" >&6; }
17341 if test "$enable_tirpc" = no; then
17344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RPCSECGSS" >&5
17345 $as_echo_n "checking for RPCSECGSS... " >&6; }
17347 if test -n "$RPCSECGSS_CFLAGS"; then
17348 pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
17349 elif test -n "$PKG_CONFIG"; then
17350 if test -n "$PKG_CONFIG" && \
17351 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.16\""; } >&5
17352 ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.16") 2>&5
17354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17355 test $ac_status = 0; }; then
17356 pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.16" 2>/dev/null`
17363 if test -n "$RPCSECGSS_LIBS"; then
17364 pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
17365 elif test -n "$PKG_CONFIG"; then
17366 if test -n "$PKG_CONFIG" && \
17367 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.16\""; } >&5
17368 ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.16") 2>&5
17370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17371 test $ac_status = 0; }; then
17372 pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.16" 2>/dev/null`
17382 if test $pkg_failed = yes; then
17384 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17385 _pkg_short_errors_supported=yes
17387 _pkg_short_errors_supported=no
17389 if test $_pkg_short_errors_supported = yes; then
17390 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librpcsecgss >= 0.16" 2>&1`
17392 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --print-errors "librpcsecgss >= 0.16" 2>&1`
17394 # Put the nasty error message in config.log where it belongs
17395 echo "$RPCSECGSS_PKG_ERRORS" >&5
17397 as_fn_error "Package requirements (librpcsecgss >= 0.16) were not met:
17399 $RPCSECGSS_PKG_ERRORS
17401 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17402 installed software in a non-standard prefix.
17404 Alternatively, you may set the environment variables RPCSECGSS_CFLAGS
17405 and RPCSECGSS_LIBS to avoid the need to call pkg-config.
17406 See the pkg-config man page for more details.
17408 elif test $pkg_failed = untried; then
17409 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17411 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
17412 is in your PATH or set the PKG_CONFIG environment variable to the full
17413 path to pkg-config.
17415 Alternatively, you may set the environment variables RPCSECGSS_CFLAGS
17416 and RPCSECGSS_LIBS to avoid the need to call pkg-config.
17417 See the pkg-config man page for more details.
17419 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17420 See \`config.log' for more details." "$LINENO" 5; }
17422 RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
17423 RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
17424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17425 $as_echo "yes" >&6; }
17434 if test "$knfsd_cv_glibc2" = no; then
17435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daemon in -lbsd" >&5
17436 $as_echo_n "checking for daemon in -lbsd... " >&6; }
17437 if test "${ac_cv_lib_bsd_daemon+set}" = set; then :
17438 $as_echo_n "(cached) " >&6
17440 ac_check_lib_save_LIBS=$LIBS
17442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17443 /* end confdefs.h. */
17445 /* Override any GCC internal prototype to avoid an error.
17446 Use char because int might match the return type of a GCC
17447 builtin and then its argument prototype would still apply. */
17460 if ac_fn_c_try_link "$LINENO"; then :
17461 ac_cv_lib_bsd_daemon=yes
17463 ac_cv_lib_bsd_daemon=no
17465 rm -f core conftest.err conftest.$ac_objext \
17466 conftest$ac_exeext conftest.$ac_ext
17467 LIBS=$ac_check_lib_save_LIBS
17469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_daemon" >&5
17470 $as_echo "$ac_cv_lib_bsd_daemon" >&6; }
17471 if test "x$ac_cv_lib_bsd_daemon" = x""yes; then :
17477 if test "$choose_blkid" != no; then
17478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_library_version in -lblkid" >&5
17479 $as_echo_n "checking for blkid_get_library_version in -lblkid... " >&6; }
17480 if test "${ac_cv_lib_blkid_blkid_get_library_version+set}" = set; then :
17481 $as_echo_n "(cached) " >&6
17483 ac_check_lib_save_LIBS=$LIBS
17484 LIBS="-lblkid $LIBS"
17485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17486 /* end confdefs.h. */
17488 /* Override any GCC internal prototype to avoid an error.
17489 Use char because int might match the return type of a GCC
17490 builtin and then its argument prototype would still apply. */
17494 char blkid_get_library_version ();
17498 return blkid_get_library_version ();
17503 if ac_fn_c_try_link "$LINENO"; then :
17504 ac_cv_lib_blkid_blkid_get_library_version=yes
17506 ac_cv_lib_blkid_blkid_get_library_version=no
17508 rm -f core conftest.err conftest.$ac_objext \
17509 conftest$ac_exeext conftest.$ac_ext
17510 LIBS=$ac_check_lib_save_LIBS
17512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_library_version" >&5
17513 $as_echo "$ac_cv_lib_blkid_blkid_get_library_version" >&6; }
17514 if test "x$ac_cv_lib_blkid_blkid_get_library_version" = x""yes; then :
17517 as_fn_error "libblkid needed" "$LINENO" 5
17520 ac_fn_c_check_header_mongrel "$LINENO" "blkid/blkid.h" "ac_cv_header_blkid_blkid_h" "$ac_includes_default"
17521 if test "x$ac_cv_header_blkid_blkid_h" = x""yes; then :
17524 as_fn_error "Cannot find libblkid header file blkid/blkid.h" "$LINENO" 5
17529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suitable libblkid version" >&5
17530 $as_echo_n "checking for suitable libblkid version... " >&6; }
17531 if test "${libblkid_cv_is_recent+set}" = set; then :
17532 $as_echo_n "(cached) " >&6
17537 if test "$cross_compiling" = yes; then :
17538 libblkid_cv_is_recent=unknown
17540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17541 /* end confdefs.h. */
17543 #include <blkid/blkid.h>
17546 int vers = blkid_get_library_version(0, 0);
17547 return vers >= 140 ? 0 : 1;
17551 if ac_fn_c_try_run "$LINENO"; then :
17552 libblkid_cv_is_recent=yes
17554 libblkid_cv_is_recent=no
17556 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17557 conftest.$ac_objext conftest.beam conftest.$ac_ext
17563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libblkid_cv_is_recent" >&5
17564 $as_echo "$libblkid_cv_is_recent" >&6; }
17566 if test $choose_blkid = yes; then
17568 test $libblkid_cv_is_recent = no && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libblkid is old and may cause mountd to leak memory" >&5
17569 $as_echo "$as_me: WARNING: libblkid is old and may cause mountd to leak memory" >&2;}
17571 if test $libblkid_cv_is_recent = yes
17574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: uuid support disabled as libblkid is too old" >&5
17575 $as_echo "$as_me: WARNING: uuid support disabled as libblkid is too old" >&2;}
17579 cat >>confdefs.h <<_ACEOF
17580 #define USE_BLKID $use_blkid
17589 if test "$enable_gss" = yes; then
17590 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
17591 if test "x$ac_cv_func_getnameinfo" = x""yes; then :
17594 as_fn_error "GSSAPI support requires 'getnameinfo' function" "$LINENO" 5
17600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
17601 $as_echo_n "checking for nfs4_init_name_mapping in -lnfsidmap... " >&6; }
17602 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then :
17603 $as_echo_n "(cached) " >&6
17605 ac_check_lib_save_LIBS=$LIBS
17606 LIBS="-lnfsidmap $LIBS"
17607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17608 /* end confdefs.h. */
17610 /* Override any GCC internal prototype to avoid an error.
17611 Use char because int might match the return type of a GCC
17612 builtin and then its argument prototype would still apply. */
17616 char nfs4_init_name_mapping ();
17620 return nfs4_init_name_mapping ();
17625 if ac_fn_c_try_link "$LINENO"; then :
17626 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
17628 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
17630 rm -f core conftest.err conftest.$ac_objext \
17631 conftest$ac_exeext conftest.$ac_ext
17632 LIBS=$ac_check_lib_save_LIBS
17634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
17635 $as_echo "$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
17636 if test "x$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" = x""yes; then :
17639 as_fn_error "libnfsidmap not found." "$LINENO" 5
17643 for ac_header in nfsidmap.h
17645 ac_fn_c_check_header_mongrel "$LINENO" "nfsidmap.h" "ac_cv_header_nfsidmap_h" "$ac_includes_default"
17646 if test "x$ac_cv_header_nfsidmap_h" = x""yes; then :
17647 cat >>confdefs.h <<_ACEOF
17648 #define HAVE_NFSIDMAP_H 1
17652 as_fn_error "libnfsidmap headers not found." "$LINENO" 5
17658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nfs4_set_debug in -lnfsidmap" >&5
17659 $as_echo_n "checking for nfs4_set_debug in -lnfsidmap... " >&6; }
17660 if test "${ac_cv_lib_nfsidmap_nfs4_set_debug+set}" = set; then :
17661 $as_echo_n "(cached) " >&6
17663 ac_check_lib_save_LIBS=$LIBS
17664 LIBS="-lnfsidmap $LIBS"
17665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17666 /* end confdefs.h. */
17668 /* Override any GCC internal prototype to avoid an error.
17669 Use char because int might match the return type of a GCC
17670 builtin and then its argument prototype would still apply. */
17674 char nfs4_set_debug ();
17678 return nfs4_set_debug ();
17683 if ac_fn_c_try_link "$LINENO"; then :
17684 ac_cv_lib_nfsidmap_nfs4_set_debug=yes
17686 ac_cv_lib_nfsidmap_nfs4_set_debug=no
17688 rm -f core conftest.err conftest.$ac_objext \
17689 conftest$ac_exeext conftest.$ac_ext
17690 LIBS=$ac_check_lib_save_LIBS
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
17693 $as_echo "$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
17694 if test "x$ac_cv_lib_nfsidmap_nfs4_set_debug" = x""yes; then :
17696 $as_echo "#define HAVE_NFS4_SET_DEBUG 1" >>confdefs.h
17703 for ac_header in spkm3.h
17705 ac_fn_c_check_header_mongrel "$LINENO" "spkm3.h" "ac_cv_header_spkm3_h" "$ac_includes_default"
17706 if test "x$ac_cv_header_spkm3_h" = x""yes; then :
17707 cat >>confdefs.h <<_ACEOF
17708 #define HAVE_SPKM3_H 1
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not locate SPKM3 header; will not have SPKM3 support" >&5
17713 $as_echo "$as_me: WARNING: Could not locate SPKM3 header; will not have SPKM3 support" >&2;}
17720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos v5" >&5
17721 $as_echo_n "checking for Kerberos v5... " >&6; }
17723 # Check whether --with-krb5 was given.
17724 if test "${with_krb5+set}" = set; then :
17725 withval=$with_krb5; case "$withval" in
17730 krb5_with="$withval"
17737 for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
17738 /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
17740 if test -f $dir/bin/krb5-config; then
17741 K5CONFIG=$dir/bin/krb5-config
17742 elif test -f "/usr/kerberos/bin/krb5-config"; then
17743 K5CONFIG="/usr/kerberos/bin/krb5-config"
17744 elif test -f "/usr/lib/mit/bin/krb5-config"; then
17745 K5CONFIG="/usr/lib/mit/bin/krb5-config"
17747 if test "$K5CONFIG" != ""; then
17748 KRBCFLAGS=`$K5CONFIG --cflags`
17749 KRBLIBS=`$K5CONFIG --libs gssapi`
17750 K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v["3"] == "") v["3"] = "0"; print v["1"]v["2"]v["3"] }'`
17752 cat >>confdefs.h <<_ACEOF
17753 #define KRB5_VERSION $K5VERS
17756 if test -f $dir/include/gssapi/gssapi_krb5.h -a \
17757 \( -f $dir/lib/libgssapi_krb5.a -o \
17758 -f $dir/lib64/libgssapi_krb5.a -o \
17759 -f $dir/lib64/libgssapi_krb5.so -o \
17760 -f $dir/lib/libgssapi_krb5.so \) ; then
17762 $as_echo "#define HAVE_KRB5 1" >>confdefs.h
17765 if test $K5VERS -le 131; then
17767 $as_echo "#define USE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
17770 gssapi_lib=gssapi_krb5
17772 elif test \( -f $dir/include/heim_err.h -o\
17773 -f $dir/include/heimdal/heim_err.h \) -a \
17774 -f $dir/lib/libroken.a; then
17776 $as_echo "#define HAVE_HEIMDAL 1" >>confdefs.h
17784 if test "x$KRBDIR" = "x"; then
17785 if test "x$krb5_with" = "x"; then
17786 as_fn_error "Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" "$LINENO" 5
17788 as_fn_error "Kerberos v5 with GSS support not found at $krb5_with" "$LINENO" 5
17791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRBDIR" >&5
17792 $as_echo "$KRBDIR" >&6; }
17794 echo "The current KRBDIR is $KRBDIR"
17795 if test "$KRBDIR/lib" = "/lib" -o "$KRBDIR/lib" = "/usr/lib" \
17796 -o "$KRBDIR/lib" = "//lib" -o "$KRBDIR/lib" = "/usr//lib" ; then
17798 elif /sbin/ldconfig -p | grep > /dev/null "=> $KRBDIR/lib/"; then
17801 KRBLDFLAGS="-Wl,-rpath=$KRBDIR/lib"
17804 as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
17805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
17806 $as_echo_n "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... " >&6; }
17807 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
17808 $as_echo_n "(cached) " >&6
17810 ac_check_lib_save_LIBS=$LIBS
17811 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
17812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17813 /* end confdefs.h. */
17815 /* Override any GCC internal prototype to avoid an error.
17816 Use char because int might match the return type of a GCC
17817 builtin and then its argument prototype would still apply. */
17821 char gss_krb5_export_lucid_sec_context ();
17825 return gss_krb5_export_lucid_sec_context ();
17830 if ac_fn_c_try_link "$LINENO"; then :
17831 eval "$as_ac_Lib=yes"
17833 eval "$as_ac_Lib=no"
17835 rm -f core conftest.err conftest.$ac_objext \
17836 conftest$ac_exeext conftest.$ac_ext
17837 LIBS=$ac_check_lib_save_LIBS
17839 eval ac_res=\$$as_ac_Lib
17840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17841 $as_echo "$ac_res" >&6; }
17842 eval as_val=\$$as_ac_Lib
17843 if test "x$as_val" = x""yes; then :
17845 $as_echo "#define HAVE_LUCID_CONTEXT_SUPPORT 1" >>confdefs.h
17849 as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
17850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
17851 $as_echo_n "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... " >&6; }
17852 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
17853 $as_echo_n "(cached) " >&6
17855 ac_check_lib_save_LIBS=$LIBS
17856 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
17857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17858 /* end confdefs.h. */
17860 /* Override any GCC internal prototype to avoid an error.
17861 Use char because int might match the return type of a GCC
17862 builtin and then its argument prototype would still apply. */
17866 char gss_krb5_set_allowable_enctypes ();
17870 return gss_krb5_set_allowable_enctypes ();
17875 if ac_fn_c_try_link "$LINENO"; then :
17876 eval "$as_ac_Lib=yes"
17878 eval "$as_ac_Lib=no"
17880 rm -f core conftest.err conftest.$ac_objext \
17881 conftest$ac_exeext conftest.$ac_ext
17882 LIBS=$ac_check_lib_save_LIBS
17884 eval ac_res=\$$as_ac_Lib
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17886 $as_echo "$ac_res" >&6; }
17887 eval as_val=\$$as_ac_Lib
17888 if test "x$as_val" = x""yes; then :
17890 $as_echo "#define HAVE_SET_ALLOWABLE_ENCTYPES 1" >>confdefs.h
17894 as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
17895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
17896 $as_echo_n "checking for gss_krb5_ccache_name in -l$gssapi_lib... " >&6; }
17897 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
17898 $as_echo_n "(cached) " >&6
17900 ac_check_lib_save_LIBS=$LIBS
17901 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
17902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17903 /* end confdefs.h. */
17905 /* Override any GCC internal prototype to avoid an error.
17906 Use char because int might match the return type of a GCC
17907 builtin and then its argument prototype would still apply. */
17911 char gss_krb5_ccache_name ();
17915 return gss_krb5_ccache_name ();
17920 if ac_fn_c_try_link "$LINENO"; then :
17921 eval "$as_ac_Lib=yes"
17923 eval "$as_ac_Lib=no"
17925 rm -f core conftest.err conftest.$ac_objext \
17926 conftest$ac_exeext conftest.$ac_ext
17927 LIBS=$ac_check_lib_save_LIBS
17929 eval ac_res=\$$as_ac_Lib
17930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17931 $as_echo "$ac_res" >&6; }
17932 eval as_val=\$$as_ac_Lib
17933 if test "x$as_val" = x""yes; then :
17935 $as_echo "#define HAVE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
17940 as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_krb5_get_error_message" | $as_tr_sh`
17941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_get_error_message in -l$gssapi_lib" >&5
17942 $as_echo_n "checking for krb5_get_error_message in -l$gssapi_lib... " >&6; }
17943 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
17944 $as_echo_n "(cached) " >&6
17946 ac_check_lib_save_LIBS=$LIBS
17947 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
17948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17949 /* end confdefs.h. */
17951 /* Override any GCC internal prototype to avoid an error.
17952 Use char because int might match the return type of a GCC
17953 builtin and then its argument prototype would still apply. */
17957 char krb5_get_error_message ();
17961 return krb5_get_error_message ();
17966 if ac_fn_c_try_link "$LINENO"; then :
17967 eval "$as_ac_Lib=yes"
17969 eval "$as_ac_Lib=no"
17971 rm -f core conftest.err conftest.$ac_objext \
17972 conftest$ac_exeext conftest.$ac_ext
17973 LIBS=$ac_check_lib_save_LIBS
17975 eval ac_res=\$$as_ac_Lib
17976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17977 $as_echo "$ac_res" >&6; }
17978 eval as_val=\$$as_ac_Lib
17979 if test "x$as_val" = x""yes; then :
17981 $as_echo "#define HAVE_KRB5_GET_ERROR_MESSAGE 1" >>confdefs.h
17986 as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_krb5_get_init_creds_opt_set_addressless" | $as_tr_sh`
17987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib" >&5
17988 $as_echo_n "checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib... " >&6; }
17989 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
17990 $as_echo_n "(cached) " >&6
17992 ac_check_lib_save_LIBS=$LIBS
17993 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
17994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17995 /* end confdefs.h. */
17997 /* Override any GCC internal prototype to avoid an error.
17998 Use char because int might match the return type of a GCC
17999 builtin and then its argument prototype would still apply. */
18003 char krb5_get_init_creds_opt_set_addressless ();
18007 return krb5_get_init_creds_opt_set_addressless ();
18012 if ac_fn_c_try_link "$LINENO"; then :
18013 eval "$as_ac_Lib=yes"
18015 eval "$as_ac_Lib=no"
18017 rm -f core conftest.err conftest.$ac_objext \
18018 conftest$ac_exeext conftest.$ac_ext
18019 LIBS=$ac_check_lib_save_LIBS
18021 eval ac_res=\$$as_ac_Lib
18022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18023 $as_echo "$ac_res" >&6; }
18024 eval as_val=\$$as_ac_Lib
18025 if test "x$as_val" = x""yes; then :
18027 $as_echo "#define HAVE_KRB5_GET_INIT_CREDS_OPT_SET_ADDRESSLESS 1" >>confdefs.h
18032 if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
18033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
18034 $as_echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
18047 if test "$enable_tirpc" = no; then
18049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for authgss_create_default in -lrpcsecgss" >&5
18050 $as_echo_n "checking for authgss_create_default in -lrpcsecgss... " >&6; }
18051 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then :
18052 $as_echo_n "(cached) " >&6
18054 ac_check_lib_save_LIBS=$LIBS
18055 LIBS="-lrpcsecgss $LIBS"
18056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18057 /* end confdefs.h. */
18059 /* Override any GCC internal prototype to avoid an error.
18060 Use char because int might match the return type of a GCC
18061 builtin and then its argument prototype would still apply. */
18065 char authgss_create_default ();
18069 return authgss_create_default ();
18074 if ac_fn_c_try_link "$LINENO"; then :
18075 ac_cv_lib_rpcsecgss_authgss_create_default=yes
18077 ac_cv_lib_rpcsecgss_authgss_create_default=no
18079 rm -f core conftest.err conftest.$ac_objext \
18080 conftest$ac_exeext conftest.$ac_ext
18081 LIBS=$ac_check_lib_save_LIBS
18083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
18084 $as_echo "$ac_cv_lib_rpcsecgss_authgss_create_default" >&6; }
18085 if test "x$ac_cv_lib_rpcsecgss_authgss_create_default" = x""yes; then :
18088 as_fn_error "librpcsecgss not found." "$LINENO" 5
18092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for authgss_set_debug_level in -lrpcsecgss" >&5
18093 $as_echo_n "checking for authgss_set_debug_level in -lrpcsecgss... " >&6; }
18094 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then :
18095 $as_echo_n "(cached) " >&6
18097 ac_check_lib_save_LIBS=$LIBS
18098 LIBS="-lrpcsecgss $LIBS"
18099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18100 /* end confdefs.h. */
18102 /* Override any GCC internal prototype to avoid an error.
18103 Use char because int might match the return type of a GCC
18104 builtin and then its argument prototype would still apply. */
18108 char authgss_set_debug_level ();
18112 return authgss_set_debug_level ();
18117 if ac_fn_c_try_link "$LINENO"; then :
18118 ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
18120 ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
18122 rm -f core conftest.err conftest.$ac_objext \
18123 conftest$ac_exeext conftest.$ac_ext
18124 LIBS=$ac_check_lib_save_LIBS
18126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
18127 $as_echo "$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6; }
18128 if test "x$ac_cv_lib_rpcsecgss_authgss_set_debug_level" = x""yes; then :
18130 $as_echo "#define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1" >>confdefs.h
18143 ac_fn_c_check_decl "$LINENO" "AI_ADDRCONFIG" "ac_cv_have_decl_AI_ADDRCONFIG" " #include <netdb.h>
18145 if test "x$ac_cv_have_decl_AI_ADDRCONFIG" = x""yes; then :
18147 $as_echo "#define HAVE_DECL_AI_ADDRCONFIG 1" >>confdefs.h
18152 if test "$enable_ipv6" = yes; then
18154 if test "$enable_tirpc" = no; then
18155 as_fn_error "'--enable-ipv6' requires TIRPC support." "$LINENO" 5
18158 for ac_func in getifaddrs getnameinfo bindresvport_sa
18160 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18161 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18162 eval as_val=\$$as_ac_var
18163 if test "x$as_val" = x""yes; then :
18164 cat >>confdefs.h <<_ACEOF
18165 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18169 as_fn_error "Missing library functions needed for IPv6." "$LINENO" 5
18174 ac_fn_c_check_decl "$LINENO" "AI_ADDRCONFIG" "ac_cv_have_decl_AI_ADDRCONFIG" " #include <netdb.h>
18176 if test "x$ac_cv_have_decl_AI_ADDRCONFIG" = x""yes; then :
18179 as_fn_error "full getaddrinfo(3) implementation needed for IPv6 support" "$LINENO" 5
18187 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
18188 malloc.h memory.h netdb.h netinet/in.h paths.h \
18189 stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
18190 sys/param.h sys/socket.h sys/time.h sys/vfs.h \
18191 syslog.h unistd.h com_err.h et/com_err.h \
18194 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18195 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18196 eval as_val=\$$as_ac_Header
18197 if test "x$as_val" = x""yes; then :
18198 cat >>confdefs.h <<_ACEOF
18199 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
18208 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18209 if test "${ac_cv_c_const+set}" = set; then :
18210 $as_echo_n "(cached) " >&6
18212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18213 /* end confdefs.h. */
18218 /* FIXME: Include the comments suggested by Paul. */
18219 #ifndef __cplusplus
18220 /* Ultrix mips cc rejects this. */
18221 typedef int charset[2];
18223 /* SunOS 4.1.1 cc rejects this. */
18224 char const *const *pcpcc;
18226 /* NEC SVR4.0.2 mips cc rejects this. */
18227 struct point {int x, y;};
18228 static struct point const zero = {0,0};
18229 /* AIX XL C 1.02.0.0 rejects this.
18230 It does not let you subtract one const X* pointer from another in
18231 an arm of an if-expression whose if-part is not a constant
18233 const char *g = "string";
18234 pcpcc = &g + (g ? g-g : 0);
18235 /* HPUX 7.0 cc rejects these. */
18237 ppc = (char**) pcpcc;
18238 pcpcc = (char const *const *) ppc;
18239 { /* SCO 3.2v4 cc rejects this. */
18241 char const *s = 0 ? (char *) 0 : (char const *) 0;
18246 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18247 int x[] = {25, 17};
18248 const int *foo = &x[0];
18251 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18252 typedef const int *iptr;
18256 { /* AIX XL C 1.02.0.0 rejects this saying
18257 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18258 struct s { int j; const int *ap[3]; };
18259 struct s *b; b->j = 5;
18261 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18262 const int foo = 10;
18263 if (!foo) return 0;
18265 return !cs[0] && !zero.x;
18272 if ac_fn_c_try_compile "$LINENO"; then :
18277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18280 $as_echo "$ac_cv_c_const" >&6; }
18281 if test $ac_cv_c_const = no; then
18283 $as_echo "#define const /**/" >>confdefs.h
18287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
18288 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
18289 if test "${ac_cv_type_uid_t+set}" = set; then :
18290 $as_echo_n "(cached) " >&6
18292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18293 /* end confdefs.h. */
18294 #include <sys/types.h>
18297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18298 $EGREP "uid_t" >/dev/null 2>&1; then :
18299 ac_cv_type_uid_t=yes
18301 ac_cv_type_uid_t=no
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
18307 $as_echo "$ac_cv_type_uid_t" >&6; }
18308 if test $ac_cv_type_uid_t = no; then
18310 $as_echo "#define uid_t int" >>confdefs.h
18313 $as_echo "#define gid_t int" >>confdefs.h
18317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18318 $as_echo_n "checking for inline... " >&6; }
18319 if test "${ac_cv_c_inline+set}" = set; then :
18320 $as_echo_n "(cached) " >&6
18323 for ac_kw in inline __inline__ __inline; do
18324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18325 /* end confdefs.h. */
18326 #ifndef __cplusplus
18328 static $ac_kw foo_t static_foo () {return 0; }
18329 $ac_kw foo_t foo () {return 0; }
18333 if ac_fn_c_try_compile "$LINENO"; then :
18334 ac_cv_c_inline=$ac_kw
18336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18337 test "$ac_cv_c_inline" != no && break
18341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18342 $as_echo "$ac_cv_c_inline" >&6; }
18344 case $ac_cv_c_inline in
18347 case $ac_cv_c_inline in
18349 *) ac_val=$ac_cv_c_inline;;
18351 cat >>confdefs.h <<_ACEOF
18352 #ifndef __cplusplus
18353 #define inline $ac_val
18359 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
18360 if test "x$ac_cv_type_off_t" = x""yes; then :
18364 cat >>confdefs.h <<_ACEOF
18365 #define off_t long int
18370 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
18371 if test "x$ac_cv_type_pid_t" = x""yes; then :
18375 cat >>confdefs.h <<_ACEOF
18381 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18382 if test "x$ac_cv_type_size_t" = x""yes; then :
18386 cat >>confdefs.h <<_ACEOF
18387 #define size_t unsigned int
18392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
18393 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
18394 if test "${ac_cv_header_time+set}" = set; then :
18395 $as_echo_n "(cached) " >&6
18397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18398 /* end confdefs.h. */
18399 #include <sys/types.h>
18400 #include <sys/time.h>
18406 if ((struct tm *) 0)
18412 if ac_fn_c_try_compile "$LINENO"; then :
18413 ac_cv_header_time=yes
18415 ac_cv_header_time=no
18417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
18420 $as_echo "$ac_cv_header_time" >&6; }
18421 if test $ac_cv_header_time = yes; then
18423 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
18427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
18428 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
18429 if test "${ac_cv_struct_tm+set}" = set; then :
18430 $as_echo_n "(cached) " >&6
18432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18433 /* end confdefs.h. */
18434 #include <sys/types.h>
18441 int *p = &tm.tm_sec;
18447 if ac_fn_c_try_compile "$LINENO"; then :
18448 ac_cv_struct_tm=time.h
18450 ac_cv_struct_tm=sys/time.h
18452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
18455 $as_echo "$ac_cv_struct_tm" >&6; }
18456 if test $ac_cv_struct_tm = sys/time.h; then
18458 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
18463 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18464 # for constant arguments. Useless!
18465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
18466 $as_echo_n "checking for working alloca.h... " >&6; }
18467 if test "${ac_cv_working_alloca_h+set}" = set; then :
18468 $as_echo_n "(cached) " >&6
18470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18471 /* end confdefs.h. */
18472 #include <alloca.h>
18476 char *p = (char *) alloca (2 * sizeof (int));
18482 if ac_fn_c_try_link "$LINENO"; then :
18483 ac_cv_working_alloca_h=yes
18485 ac_cv_working_alloca_h=no
18487 rm -f core conftest.err conftest.$ac_objext \
18488 conftest$ac_exeext conftest.$ac_ext
18490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
18491 $as_echo "$ac_cv_working_alloca_h" >&6; }
18492 if test $ac_cv_working_alloca_h = yes; then
18494 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
18498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
18499 $as_echo_n "checking for alloca... " >&6; }
18500 if test "${ac_cv_func_alloca_works+set}" = set; then :
18501 $as_echo_n "(cached) " >&6
18503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18504 /* end confdefs.h. */
18506 # define alloca __builtin_alloca
18509 # include <malloc.h>
18510 # define alloca _alloca
18512 # ifdef HAVE_ALLOCA_H
18513 # include <alloca.h>
18518 # ifndef alloca /* predefined by HP cc +Olibcalls */
18529 char *p = (char *) alloca (1);
18535 if ac_fn_c_try_link "$LINENO"; then :
18536 ac_cv_func_alloca_works=yes
18538 ac_cv_func_alloca_works=no
18540 rm -f core conftest.err conftest.$ac_objext \
18541 conftest$ac_exeext conftest.$ac_ext
18543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
18544 $as_echo "$ac_cv_func_alloca_works" >&6; }
18546 if test $ac_cv_func_alloca_works = yes; then
18548 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18551 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18552 # that cause trouble. Some versions do not even contain alloca or
18553 # contain a buggy version. If you still want to use their alloca,
18554 # use ar to extract alloca.o from them instead of compiling alloca.c.
18556 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
18558 $as_echo "#define C_ALLOCA 1" >>confdefs.h
18561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
18562 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
18563 if test "${ac_cv_os_cray+set}" = set; then :
18564 $as_echo_n "(cached) " >&6
18566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18567 /* end confdefs.h. */
18568 #if defined CRAY && ! defined CRAY2
18575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18576 $EGREP "webecray" >/dev/null 2>&1; then :
18584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
18585 $as_echo "$ac_cv_os_cray" >&6; }
18586 if test $ac_cv_os_cray = yes; then
18587 for ac_func in _getb67 GETB67 getb67; do
18588 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18589 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18590 eval as_val=\$$as_ac_var
18591 if test "x$as_val" = x""yes; then :
18593 cat >>confdefs.h <<_ACEOF
18594 #define CRAY_STACKSEG_END $ac_func
18603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
18604 $as_echo_n "checking stack direction for C alloca... " >&6; }
18605 if test "${ac_cv_c_stack_direction+set}" = set; then :
18606 $as_echo_n "(cached) " >&6
18608 if test "$cross_compiling" = yes; then :
18609 ac_cv_c_stack_direction=0
18611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18612 /* end confdefs.h. */
18613 $ac_includes_default
18615 find_stack_direction ()
18617 static char *addr = 0;
18622 return find_stack_direction ();
18625 return (&dummy > addr) ? 1 : -1;
18631 return find_stack_direction () < 0;
18634 if ac_fn_c_try_run "$LINENO"; then :
18635 ac_cv_c_stack_direction=1
18637 ac_cv_c_stack_direction=-1
18639 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18640 conftest.$ac_objext conftest.beam conftest.$ac_ext
18644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
18645 $as_echo "$ac_cv_c_stack_direction" >&6; }
18646 cat >>confdefs.h <<_ACEOF
18647 #define STACK_DIRECTION $ac_cv_c_stack_direction
18653 ac_header_dirent=no
18654 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
18655 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
18656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
18657 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
18658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
18659 $as_echo_n "(cached) " >&6
18661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18662 /* end confdefs.h. */
18663 #include <sys/types.h>
18675 if ac_fn_c_try_compile "$LINENO"; then :
18676 eval "$as_ac_Header=yes"
18678 eval "$as_ac_Header=no"
18680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18682 eval ac_res=\$$as_ac_Header
18683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18684 $as_echo "$ac_res" >&6; }
18685 eval as_val=\$$as_ac_Header
18686 if test "x$as_val" = x""yes; then :
18687 cat >>confdefs.h <<_ACEOF
18688 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
18691 ac_header_dirent=$ac_hdr; break
18695 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
18696 if test $ac_header_dirent = dirent.h; then
18697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
18698 $as_echo_n "checking for library containing opendir... " >&6; }
18699 if test "${ac_cv_search_opendir+set}" = set; then :
18700 $as_echo_n "(cached) " >&6
18702 ac_func_search_save_LIBS=$LIBS
18703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18704 /* end confdefs.h. */
18706 /* Override any GCC internal prototype to avoid an error.
18707 Use char because int might match the return type of a GCC
18708 builtin and then its argument prototype would still apply. */
18721 for ac_lib in '' dir; do
18722 if test -z "$ac_lib"; then
18723 ac_res="none required"
18726 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18728 if ac_fn_c_try_link "$LINENO"; then :
18729 ac_cv_search_opendir=$ac_res
18731 rm -f core conftest.err conftest.$ac_objext \
18733 if test "${ac_cv_search_opendir+set}" = set; then :
18737 if test "${ac_cv_search_opendir+set}" = set; then :
18740 ac_cv_search_opendir=no
18742 rm conftest.$ac_ext
18743 LIBS=$ac_func_search_save_LIBS
18745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
18746 $as_echo "$ac_cv_search_opendir" >&6; }
18747 ac_res=$ac_cv_search_opendir
18748 if test "$ac_res" != no; then :
18749 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
18755 $as_echo_n "checking for library containing opendir... " >&6; }
18756 if test "${ac_cv_search_opendir+set}" = set; then :
18757 $as_echo_n "(cached) " >&6
18759 ac_func_search_save_LIBS=$LIBS
18760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18761 /* end confdefs.h. */
18763 /* Override any GCC internal prototype to avoid an error.
18764 Use char because int might match the return type of a GCC
18765 builtin and then its argument prototype would still apply. */
18778 for ac_lib in '' x; do
18779 if test -z "$ac_lib"; then
18780 ac_res="none required"
18783 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18785 if ac_fn_c_try_link "$LINENO"; then :
18786 ac_cv_search_opendir=$ac_res
18788 rm -f core conftest.err conftest.$ac_objext \
18790 if test "${ac_cv_search_opendir+set}" = set; then :
18794 if test "${ac_cv_search_opendir+set}" = set; then :
18797 ac_cv_search_opendir=no
18799 rm conftest.$ac_ext
18800 LIBS=$ac_func_search_save_LIBS
18802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
18803 $as_echo "$ac_cv_search_opendir" >&6; }
18804 ac_res=$ac_cv_search_opendir
18805 if test "$ac_res" != no; then :
18806 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
18813 $as_echo_n "checking whether closedir returns void... " >&6; }
18814 if test "${ac_cv_func_closedir_void+set}" = set; then :
18815 $as_echo_n "(cached) " >&6
18817 if test "$cross_compiling" = yes; then :
18818 ac_cv_func_closedir_void=yes
18820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18821 /* end confdefs.h. */
18822 $ac_includes_default
18823 #include <$ac_header_dirent>
18824 #ifndef __cplusplus
18831 return closedir (opendir (".")) != 0;
18836 if ac_fn_c_try_run "$LINENO"; then :
18837 ac_cv_func_closedir_void=no
18839 ac_cv_func_closedir_void=yes
18841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18842 conftest.$ac_objext conftest.beam conftest.$ac_ext
18846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
18847 $as_echo "$ac_cv_func_closedir_void" >&6; }
18848 if test $ac_cv_func_closedir_void = yes; then
18850 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
18854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
18855 $as_echo_n "checking for error_at_line... " >&6; }
18856 if test "${ac_cv_lib_error_at_line+set}" = set; then :
18857 $as_echo_n "(cached) " >&6
18859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18860 /* end confdefs.h. */
18865 error_at_line (0, 0, "", 0, "an error occurred");
18870 if ac_fn_c_try_link "$LINENO"; then :
18871 ac_cv_lib_error_at_line=yes
18873 ac_cv_lib_error_at_line=no
18875 rm -f core conftest.err conftest.$ac_objext \
18876 conftest$ac_exeext conftest.$ac_ext
18878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
18879 $as_echo "$ac_cv_lib_error_at_line" >&6; }
18880 if test $ac_cv_lib_error_at_line = no; then
18881 case " $LIBOBJS " in
18882 *" error.$ac_objext "* ) ;;
18883 *) LIBOBJS="$LIBOBJS error.$ac_objext"
18889 for ac_header in vfork.h
18891 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
18892 if test "x$ac_cv_header_vfork_h" = x""yes; then :
18893 cat >>confdefs.h <<_ACEOF
18894 #define HAVE_VFORK_H 1
18901 for ac_func in fork vfork
18903 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18904 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18905 eval as_val=\$$as_ac_var
18906 if test "x$as_val" = x""yes; then :
18907 cat >>confdefs.h <<_ACEOF
18908 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18914 if test "x$ac_cv_func_fork" = xyes; then
18915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
18916 $as_echo_n "checking for working fork... " >&6; }
18917 if test "${ac_cv_func_fork_works+set}" = set; then :
18918 $as_echo_n "(cached) " >&6
18920 if test "$cross_compiling" = yes; then :
18921 ac_cv_func_fork_works=cross
18923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18924 /* end confdefs.h. */
18925 $ac_includes_default
18930 /* By Ruediger Kuhlmann. */
18931 return fork () < 0;
18937 if ac_fn_c_try_run "$LINENO"; then :
18938 ac_cv_func_fork_works=yes
18940 ac_cv_func_fork_works=no
18942 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18943 conftest.$ac_objext conftest.beam conftest.$ac_ext
18947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
18948 $as_echo "$ac_cv_func_fork_works" >&6; }
18951 ac_cv_func_fork_works=$ac_cv_func_fork
18953 if test "x$ac_cv_func_fork_works" = xcross; then
18955 *-*-amigaos* | *-*-msdosdjgpp*)
18956 # Override, as these systems have only a dummy fork() stub
18957 ac_cv_func_fork_works=no
18960 ac_cv_func_fork_works=yes
18963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
18964 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
18966 ac_cv_func_vfork_works=$ac_cv_func_vfork
18967 if test "x$ac_cv_func_vfork" = xyes; then
18968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
18969 $as_echo_n "checking for working vfork... " >&6; }
18970 if test "${ac_cv_func_vfork_works+set}" = set; then :
18971 $as_echo_n "(cached) " >&6
18973 if test "$cross_compiling" = yes; then :
18974 ac_cv_func_vfork_works=cross
18976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18977 /* end confdefs.h. */
18978 /* Thanks to Paul Eggert for this test. */
18979 $ac_includes_default
18980 #include <sys/wait.h>
18981 #ifdef HAVE_VFORK_H
18982 # include <vfork.h>
18984 /* On some sparc systems, changes by the child to local and incoming
18985 argument registers are propagated back to the parent. The compiler
18986 is told about this with #include <vfork.h>, but some compilers
18987 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
18988 static variable whose address is put into a register that is
18989 clobbered by the vfork. */
18992 sparc_address_test (int arg)
18994 sparc_address_test (arg) int arg;
18997 static pid_t child;
19015 pid_t parent = getpid ();
19018 sparc_address_test (0);
19023 /* Here is another test for sparc vfork register problems. This
19024 test uses lots of local variables, at least as many local
19025 variables as main has allocated so far including compiler
19026 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
19027 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
19028 reuse the register of parent for one of the local variables,
19029 since it will think that parent can't possibly be used any more
19030 in this routine. Assigning to the local variable will thus
19031 munge parent in the parent process. */
19033 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19034 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19035 /* Convince the compiler that p..p7 are live; otherwise, it might
19036 use the same hardware register for all 8 local variables. */
19037 if (p != p1 || p != p2 || p != p3 || p != p4
19038 || p != p5 || p != p6 || p != p7)
19041 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19042 from child file descriptors. If the child closes a descriptor
19043 before it execs or exits, this munges the parent's descriptor
19044 as well. Test for this by closing stdout in the child. */
19045 _exit(close(fileno(stdout)) != 0);
19050 while (wait(&status) != child)
19053 /* Was there some problem with vforking? */
19056 /* Did the child fail? (This shouldn't happen.) */
19059 /* Did the vfork/compiler bug occur? */
19060 || parent != getpid()
19062 /* Did the file descriptor bug occur? */
19063 || fstat(fileno(stdout), &st) != 0
19068 if ac_fn_c_try_run "$LINENO"; then :
19069 ac_cv_func_vfork_works=yes
19071 ac_cv_func_vfork_works=no
19073 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19074 conftest.$ac_objext conftest.beam conftest.$ac_ext
19078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
19079 $as_echo "$ac_cv_func_vfork_works" >&6; }
19082 if test "x$ac_cv_func_fork_works" = xcross; then
19083 ac_cv_func_vfork_works=$ac_cv_func_vfork
19084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19085 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19088 if test "x$ac_cv_func_vfork_works" = xyes; then
19090 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
19094 $as_echo "#define vfork fork" >>confdefs.h
19097 if test "x$ac_cv_func_fork_works" = xyes; then
19099 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
19103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
19104 $as_echo_n "checking type of array argument to getgroups... " >&6; }
19105 if test "${ac_cv_type_getgroups+set}" = set; then :
19106 $as_echo_n "(cached) " >&6
19108 if test "$cross_compiling" = yes; then :
19109 ac_cv_type_getgroups=cross
19111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19112 /* end confdefs.h. */
19113 /* Thanks to Mike Rendell for this test. */
19114 $ac_includes_default
19117 #define MAX(x, y) ((x) > (y) ? (x) : (y))
19122 gid_t gidset[NGID];
19124 union { gid_t gval; long int lval; } val;
19127 for (i = 0; i < NGID; i++)
19128 gidset[i] = val.gval;
19129 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
19131 /* Exit non-zero if getgroups seems to require an array of ints. This
19132 happens when gid_t is short int but getgroups modifies an array
19134 return n > 0 && gidset[n] != val.gval;
19137 if ac_fn_c_try_run "$LINENO"; then :
19138 ac_cv_type_getgroups=gid_t
19140 ac_cv_type_getgroups=int
19142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19143 conftest.$ac_objext conftest.beam conftest.$ac_ext
19146 if test $ac_cv_type_getgroups = cross; then
19147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19148 /* end confdefs.h. */
19149 #include <unistd.h>
19152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19153 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
19154 ac_cv_type_getgroups=gid_t
19156 ac_cv_type_getgroups=int
19162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
19163 $as_echo "$ac_cv_type_getgroups" >&6; }
19165 cat >>confdefs.h <<_ACEOF
19166 #define GETGROUPS_T $ac_cv_type_getgroups
19170 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
19171 if test "x$ac_cv_func_getgroups" = x""yes; then :
19176 # If we don't yet have getgroups, see if it's in -lbsd.
19177 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
19179 if test $ac_cv_func_getgroups = no; then
19180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
19181 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
19182 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
19183 $as_echo_n "(cached) " >&6
19185 ac_check_lib_save_LIBS=$LIBS
19187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19188 /* end confdefs.h. */
19190 /* Override any GCC internal prototype to avoid an error.
19191 Use char because int might match the return type of a GCC
19192 builtin and then its argument prototype would still apply. */
19200 return getgroups ();
19205 if ac_fn_c_try_link "$LINENO"; then :
19206 ac_cv_lib_bsd_getgroups=yes
19208 ac_cv_lib_bsd_getgroups=no
19210 rm -f core conftest.err conftest.$ac_objext \
19211 conftest$ac_exeext conftest.$ac_ext
19212 LIBS=$ac_check_lib_save_LIBS
19214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
19215 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
19216 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then :
19217 GETGROUPS_LIB=-lbsd
19222 # Run the program to test the functionality of the system-supplied
19223 # getgroups function only if there is such a function.
19224 if test $ac_cv_func_getgroups = yes; then
19225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
19226 $as_echo_n "checking for working getgroups... " >&6; }
19227 if test "${ac_cv_func_getgroups_works+set}" = set; then :
19228 $as_echo_n "(cached) " >&6
19230 if test "$cross_compiling" = yes; then :
19231 ac_cv_func_getgroups_works=no
19233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19234 /* end confdefs.h. */
19235 $ac_includes_default
19239 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
19240 return getgroups (0, 0) == -1;
19245 if ac_fn_c_try_run "$LINENO"; then :
19246 ac_cv_func_getgroups_works=yes
19248 ac_cv_func_getgroups_works=no
19250 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19251 conftest.$ac_objext conftest.beam conftest.$ac_ext
19256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
19257 $as_echo "$ac_cv_func_getgroups_works" >&6; }
19259 ac_cv_func_getgroups_works=no
19261 if test $ac_cv_func_getgroups_works = yes; then
19263 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
19268 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
19269 # -lseq on Dynix/PTX, -lgen on Unixware.
19270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
19271 $as_echo_n "checking for library containing getmntent... " >&6; }
19272 if test "${ac_cv_search_getmntent+set}" = set; then :
19273 $as_echo_n "(cached) " >&6
19275 ac_func_search_save_LIBS=$LIBS
19276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19277 /* end confdefs.h. */
19279 /* Override any GCC internal prototype to avoid an error.
19280 Use char because int might match the return type of a GCC
19281 builtin and then its argument prototype would still apply. */
19289 return getmntent ();
19294 for ac_lib in '' sun seq gen; do
19295 if test -z "$ac_lib"; then
19296 ac_res="none required"
19299 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19301 if ac_fn_c_try_link "$LINENO"; then :
19302 ac_cv_search_getmntent=$ac_res
19304 rm -f core conftest.err conftest.$ac_objext \
19306 if test "${ac_cv_search_getmntent+set}" = set; then :
19310 if test "${ac_cv_search_getmntent+set}" = set; then :
19313 ac_cv_search_getmntent=no
19315 rm conftest.$ac_ext
19316 LIBS=$ac_func_search_save_LIBS
19318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
19319 $as_echo "$ac_cv_search_getmntent" >&6; }
19320 ac_res=$ac_cv_search_getmntent
19321 if test "$ac_res" != no; then :
19322 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19323 ac_cv_func_getmntent=yes
19325 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
19328 ac_cv_func_getmntent=no
19332 if test $ac_cv_c_compiler_gnu = yes; then
19333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
19334 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
19335 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
19336 $as_echo_n "(cached) " >&6
19338 ac_pattern="Autoconf.*'x'"
19339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19340 /* end confdefs.h. */
19344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19345 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
19346 ac_cv_prog_gcc_traditional=yes
19348 ac_cv_prog_gcc_traditional=no
19353 if test $ac_cv_prog_gcc_traditional = no; then
19354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19355 /* end confdefs.h. */
19356 #include <termio.h>
19359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19360 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
19361 ac_cv_prog_gcc_traditional=yes
19367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
19368 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
19369 if test $ac_cv_prog_gcc_traditional = yes; then
19370 CC="$CC -traditional"
19374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
19375 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
19376 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
19377 $as_echo_n "(cached) " >&6
19379 rm -f conftest.sym conftest.file
19380 echo >conftest.file
19381 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
19382 if test "$cross_compiling" = yes; then :
19383 ac_cv_func_lstat_dereferences_slashed_symlink=no
19385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19386 /* end confdefs.h. */
19387 $ac_includes_default
19392 /* Linux will dereference the symlink and fail, as required by POSIX.
19393 That is better in the sense that it means we will not
19394 have to compile and use the lstat wrapper. */
19395 return lstat ("conftest.sym/", &sbuf) == 0;
19400 if ac_fn_c_try_run "$LINENO"; then :
19401 ac_cv_func_lstat_dereferences_slashed_symlink=yes
19403 ac_cv_func_lstat_dereferences_slashed_symlink=no
19405 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19406 conftest.$ac_objext conftest.beam conftest.$ac_ext
19410 # If the `ln -s' command failed, then we probably don't even
19411 # have an lstat function.
19412 ac_cv_func_lstat_dereferences_slashed_symlink=no
19414 rm -f conftest.sym conftest.file
19417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
19418 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
19420 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
19422 cat >>confdefs.h <<_ACEOF
19423 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
19427 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
19428 case " $LIBOBJS " in
19429 *" lstat.$ac_objext "* ) ;;
19430 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
19436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
19437 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
19438 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then :
19439 $as_echo_n "(cached) " >&6
19441 if test "$cross_compiling" = yes; then :
19442 ac_cv_func_lstat_empty_string_bug=yes
19444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19445 /* end confdefs.h. */
19446 $ac_includes_default
19451 return lstat ("", &sbuf) == 0;
19456 if ac_fn_c_try_run "$LINENO"; then :
19457 ac_cv_func_lstat_empty_string_bug=no
19459 ac_cv_func_lstat_empty_string_bug=yes
19461 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19462 conftest.$ac_objext conftest.beam conftest.$ac_ext
19466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
19467 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
19468 if test $ac_cv_func_lstat_empty_string_bug = yes; then
19469 case " $LIBOBJS " in
19470 *" lstat.$ac_objext "* ) ;;
19471 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
19476 cat >>confdefs.h <<_ACEOF
19477 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
19482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
19483 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
19484 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
19485 $as_echo_n "(cached) " >&6
19487 rm -f conftest.sym conftest.file
19488 echo >conftest.file
19489 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
19490 if test "$cross_compiling" = yes; then :
19491 ac_cv_func_lstat_dereferences_slashed_symlink=no
19493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19494 /* end confdefs.h. */
19495 $ac_includes_default
19500 /* Linux will dereference the symlink and fail, as required by POSIX.
19501 That is better in the sense that it means we will not
19502 have to compile and use the lstat wrapper. */
19503 return lstat ("conftest.sym/", &sbuf) == 0;
19508 if ac_fn_c_try_run "$LINENO"; then :
19509 ac_cv_func_lstat_dereferences_slashed_symlink=yes
19511 ac_cv_func_lstat_dereferences_slashed_symlink=no
19513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19514 conftest.$ac_objext conftest.beam conftest.$ac_ext
19518 # If the `ln -s' command failed, then we probably don't even
19519 # have an lstat function.
19520 ac_cv_func_lstat_dereferences_slashed_symlink=no
19522 rm -f conftest.sym conftest.file
19525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
19526 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
19528 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
19530 cat >>confdefs.h <<_ACEOF
19531 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
19535 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
19536 case " $LIBOBJS " in
19537 *" lstat.$ac_objext "* ) ;;
19538 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
19544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
19545 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
19546 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
19547 $as_echo_n "(cached) " >&6
19549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19550 /* end confdefs.h. */
19551 #include <sys/types.h>
19555 return makedev(0, 0);
19560 if ac_fn_c_try_link "$LINENO"; then :
19561 ac_cv_header_sys_types_h_makedev=yes
19563 ac_cv_header_sys_types_h_makedev=no
19565 rm -f core conftest.err conftest.$ac_objext \
19566 conftest$ac_exeext conftest.$ac_ext
19569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
19570 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
19572 if test $ac_cv_header_sys_types_h_makedev = no; then
19573 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
19574 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
19576 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
19582 if test $ac_cv_header_sys_mkdev_h = no; then
19583 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
19584 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
19586 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
19595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
19596 $as_echo_n "checking for working memcmp... " >&6; }
19597 if test "${ac_cv_func_memcmp_working+set}" = set; then :
19598 $as_echo_n "(cached) " >&6
19600 if test "$cross_compiling" = yes; then :
19601 ac_cv_func_memcmp_working=no
19603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19604 /* end confdefs.h. */
19605 $ac_includes_default
19610 /* Some versions of memcmp are not 8-bit clean. */
19611 char c0 = '\100', c1 = '\200', c2 = '\201';
19612 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
19615 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
19616 or more and with at least one buffer not starting on a 4-byte boundary.
19617 William Lewis provided this test program. */
19622 for (i = 0; i < 4; i++)
19626 strcpy (a, "--------01111111");
19627 strcpy (b, "--------10000000");
19628 if (memcmp (a, b, 16) >= 0)
19638 if ac_fn_c_try_run "$LINENO"; then :
19639 ac_cv_func_memcmp_working=yes
19641 ac_cv_func_memcmp_working=no
19643 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19644 conftest.$ac_objext conftest.beam conftest.$ac_ext
19648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
19649 $as_echo "$ac_cv_func_memcmp_working" >&6; }
19650 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
19651 *" memcmp.$ac_objext "* ) ;;
19652 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
19658 for ac_header in sys/select.h sys/socket.h
19660 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19661 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19662 eval as_val=\$$as_ac_Header
19663 if test "x$as_val" = x""yes; then :
19664 cat >>confdefs.h <<_ACEOF
19665 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
19673 $as_echo_n "checking types of arguments for select... " >&6; }
19674 if test "${ac_cv_func_select_args+set}" = set; then :
19675 $as_echo_n "(cached) " >&6
19677 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
19678 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
19679 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
19680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19681 /* end confdefs.h. */
19682 $ac_includes_default
19683 #ifdef HAVE_SYS_SELECT_H
19684 # include <sys/select.h>
19686 #ifdef HAVE_SYS_SOCKET_H
19687 # include <sys/socket.h>
19693 extern int select ($ac_arg1,
19694 $ac_arg234, $ac_arg234, $ac_arg234,
19700 if ac_fn_c_try_compile "$LINENO"; then :
19701 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
19703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19707 # Provide a safe default value.
19708 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
19711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
19712 $as_echo "$ac_cv_func_select_args" >&6; }
19713 ac_save_IFS=$IFS; IFS=','
19714 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
19718 cat >>confdefs.h <<_ACEOF
19719 #define SELECT_TYPE_ARG1 $1
19723 cat >>confdefs.h <<_ACEOF
19724 #define SELECT_TYPE_ARG234 ($2)
19728 cat >>confdefs.h <<_ACEOF
19729 #define SELECT_TYPE_ARG5 ($3)
19734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
19735 $as_echo_n "checking return type of signal handlers... " >&6; }
19736 if test "${ac_cv_type_signal+set}" = set; then :
19737 $as_echo_n "(cached) " >&6
19739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19740 /* end confdefs.h. */
19741 #include <sys/types.h>
19742 #include <signal.h>
19747 return *(signal (0, 0)) (0) == 1;
19752 if ac_fn_c_try_compile "$LINENO"; then :
19753 ac_cv_type_signal=int
19755 ac_cv_type_signal=void
19757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
19760 $as_echo "$ac_cv_type_signal" >&6; }
19762 cat >>confdefs.h <<_ACEOF
19763 #define RETSIGTYPE $ac_cv_type_signal
19767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
19768 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
19769 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
19770 $as_echo_n "(cached) " >&6
19772 if test "$cross_compiling" = yes; then :
19773 ac_cv_func_stat_empty_string_bug=yes
19775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19776 /* end confdefs.h. */
19777 $ac_includes_default
19782 return stat ("", &sbuf) == 0;
19787 if ac_fn_c_try_run "$LINENO"; then :
19788 ac_cv_func_stat_empty_string_bug=no
19790 ac_cv_func_stat_empty_string_bug=yes
19792 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19793 conftest.$ac_objext conftest.beam conftest.$ac_ext
19797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
19798 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
19799 if test $ac_cv_func_stat_empty_string_bug = yes; then
19800 case " $LIBOBJS " in
19801 *" stat.$ac_objext "* ) ;;
19802 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
19807 cat >>confdefs.h <<_ACEOF
19808 #define HAVE_STAT_EMPTY_STRING_BUG 1
19813 for ac_func in vprintf
19815 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
19816 if test "x$ac_cv_func_vprintf" = x""yes; then :
19817 cat >>confdefs.h <<_ACEOF
19818 #define HAVE_VPRINTF 1
19821 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
19822 if test "x$ac_cv_func__doprnt" = x""yes; then :
19824 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
19832 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
19833 gethostbyaddr gethostbyname gethostname getmntent \
19834 getnameinfo getrpcbyname getifaddrs \
19835 gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
19836 realpath rmdir select socket strcasecmp strchr strdup \
19837 strerror strrchr strtol strtoul sigprocmask
19839 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19840 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19841 eval as_val=\$$as_ac_var
19842 if test "x$as_val" = x""yes; then :
19843 cat >>confdefs.h <<_ACEOF
19844 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19852 # The cast to long int works around a bug in the HP C Compiler
19853 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19854 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19855 # This bug is HP SR number 8606223364.
19856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
19857 $as_echo_n "checking size of short... " >&6; }
19858 if test "${ac_cv_sizeof_short+set}" = set; then :
19859 $as_echo_n "(cached) " >&6
19861 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
19864 if test "$ac_cv_type_short" = yes; then
19865 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19866 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19867 { as_fn_set_status 77
19868 as_fn_error "cannot compute sizeof (short)
19869 See \`config.log' for more details." "$LINENO" 5; }; }
19871 ac_cv_sizeof_short=0
19876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
19877 $as_echo "$ac_cv_sizeof_short" >&6; }
19881 cat >>confdefs.h <<_ACEOF
19882 #define SIZEOF_SHORT $ac_cv_sizeof_short
19886 # The cast to long int works around a bug in the HP C Compiler
19887 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19888 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19889 # This bug is HP SR number 8606223364.
19890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
19891 $as_echo_n "checking size of int... " >&6; }
19892 if test "${ac_cv_sizeof_int+set}" = set; then :
19893 $as_echo_n "(cached) " >&6
19895 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
19898 if test "$ac_cv_type_int" = yes; then
19899 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19901 { as_fn_set_status 77
19902 as_fn_error "cannot compute sizeof (int)
19903 See \`config.log' for more details." "$LINENO" 5; }; }
19910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
19911 $as_echo "$ac_cv_sizeof_int" >&6; }
19915 cat >>confdefs.h <<_ACEOF
19916 #define SIZEOF_INT $ac_cv_sizeof_int
19920 # The cast to long int works around a bug in the HP C Compiler
19921 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19922 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19923 # This bug is HP SR number 8606223364.
19924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
19925 $as_echo_n "checking size of long... " >&6; }
19926 if test "${ac_cv_sizeof_long+set}" = set; then :
19927 $as_echo_n "(cached) " >&6
19929 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
19932 if test "$ac_cv_type_long" = yes; then
19933 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19934 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19935 { as_fn_set_status 77
19936 as_fn_error "cannot compute sizeof (long)
19937 See \`config.log' for more details." "$LINENO" 5; }; }
19939 ac_cv_sizeof_long=0
19944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
19945 $as_echo "$ac_cv_sizeof_long" >&6; }
19949 cat >>confdefs.h <<_ACEOF
19950 #define SIZEOF_LONG $ac_cv_sizeof_long
19954 # The cast to long int works around a bug in the HP C Compiler
19955 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19956 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19957 # This bug is HP SR number 8606223364.
19958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
19959 $as_echo_n "checking size of size_t... " >&6; }
19960 if test "${ac_cv_sizeof_size_t+set}" = set; then :
19961 $as_echo_n "(cached) " >&6
19963 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
19966 if test "$ac_cv_type_size_t" = yes; then
19967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19968 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19969 { as_fn_set_status 77
19970 as_fn_error "cannot compute sizeof (size_t)
19971 See \`config.log' for more details." "$LINENO" 5; }; }
19973 ac_cv_sizeof_size_t=0
19978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
19979 $as_echo "$ac_cv_sizeof_size_t" >&6; }
19983 cat >>confdefs.h <<_ACEOF
19984 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
19988 # The cast to long int works around a bug in the HP C Compiler
19989 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19990 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19991 # This bug is HP SR number 8606223364.
19992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of socklen_t" >&5
19993 $as_echo_n "checking size of socklen_t... " >&6; }
19994 if test "${ac_cv_sizeof_socklen_t+set}" = set; then :
19995 $as_echo_n "(cached) " >&6
19997 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (socklen_t))" "ac_cv_sizeof_socklen_t" "$ac_includes_default"; then :
20000 if test "$ac_cv_type_socklen_t" = yes; then
20001 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20002 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20003 { as_fn_set_status 77
20004 as_fn_error "cannot compute sizeof (socklen_t)
20005 See \`config.log' for more details." "$LINENO" 5; }; }
20007 ac_cv_sizeof_socklen_t=0
20012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_socklen_t" >&5
20013 $as_echo "$ac_cv_sizeof_socklen_t" >&6; }
20017 cat >>confdefs.h <<_ACEOF
20018 #define SIZEOF_SOCKLEN_T $ac_cv_sizeof_socklen_t
20025 cat >>confdefs.h <<_ACEOF
20026 #define NFS_STATEDIR "$statedir"
20030 if test "x$cross_compiling" = "xno"; then
20031 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
20032 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
20033 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
20034 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
20036 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
20037 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
20038 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
20039 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
20057 my_am_cflags="-Wall -Wextra -Wstrict-prototypes $ARCHFLAGS -pipe"
20059 AM_CFLAGS="$my_am_cflags"
20062 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
20063 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
20066 ac_config_files="$ac_config_files Makefile linux-nfs/Makefile support/Makefile support/export/Makefile support/include/nfs/Makefile support/include/rpcsvc/Makefile support/include/sys/fs/Makefile support/include/sys/Makefile support/include/Makefile support/misc/Makefile support/nfs/Makefile support/nsm/Makefile tools/Makefile tools/locktest/Makefile tools/nlmtest/Makefile tools/rpcdebug/Makefile tools/rpcgen/Makefile tools/mountstats/Makefile tools/nfs-iostat/Makefile utils/Makefile utils/exportfs/Makefile utils/gssd/Makefile utils/idmapd/Makefile utils/mount/Makefile utils/mountd/Makefile utils/nfsd/Makefile utils/nfsstat/Makefile utils/showmount/Makefile utils/statd/Makefile tests/Makefile tests/nsm_client/Makefile"
20068 cat >confcache <<\_ACEOF
20069 # This file is a shell script that caches the results of configure
20070 # tests run on this system so they can be shared between configure
20071 # scripts and configure runs, see configure's option --config-cache.
20072 # It is not useful on other systems. If it contains results you don't
20073 # want to keep, you may remove or edit it.
20075 # config.status only pays attention to the cache file if you give it
20076 # the --recheck option to rerun configure.
20078 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20079 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20080 # following values.
20084 # The following way of writing the cache mishandles newlines in values,
20085 # but we know of no workaround that is simple, portable, and efficient.
20086 # So, we kill variables containing newlines.
20087 # Ultrix sh set writes to stderr and can't be redirected directly,
20088 # and sets the high bit in the cache file unless we assign to the vars.
20090 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20091 eval ac_val=\$$ac_var
20095 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20096 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20099 _ | IFS | as_nl) ;; #(
20100 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20101 *) { eval $ac_var=; unset $ac_var;} ;;
20107 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20108 *${as_nl}ac_space=\ *)
20109 # `set' does not quote correctly, so add quotes: double-quote
20110 # substitution turns \\\\ into \\, and sed turns \\ into \.
20113 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20116 # `set' quotes correctly as required by POSIX, so do not add quotes.
20117 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20126 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20128 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20130 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20131 if test -w "$cache_file"; then
20132 test "x$cache_file" != "x/dev/null" &&
20133 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20134 $as_echo "$as_me: updating cache $cache_file" >&6;}
20135 cat confcache >$cache_file
20137 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20138 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20143 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20144 # Let make expand exec_prefix.
20145 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20147 DEFS=-DHAVE_CONFIG_H
20151 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20152 # 1. Remove the extension, and $U if already installed.
20153 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20154 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20155 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20156 # will be set to the directory where LIBOBJS objects are built.
20157 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20158 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20160 LIBOBJS=$ac_libobjs
20162 LTLIBOBJS=$ac_ltlibobjs
20165 if test -n "$EXEEXT"; then
20167 am__EXEEXT_FALSE='#'
20169 am__EXEEXT_TRUE='#'
20173 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20174 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
20175 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20177 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
20178 as_fn_error "conditional \"CONFIG_NFSV4\" was never defined.
20179 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20181 if test -z "${CONFIG_NFSV41_TRUE}" && test -z "${CONFIG_NFSV41_FALSE}"; then
20182 as_fn_error "conditional \"CONFIG_NFSV41\" was never defined.
20183 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20185 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
20186 as_fn_error "conditional \"CONFIG_GSS\" was never defined.
20187 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20189 if test -z "${CONFIG_RPCGEN_TRUE}" && test -z "${CONFIG_RPCGEN_FALSE}"; then
20190 as_fn_error "conditional \"CONFIG_RPCGEN\" was never defined.
20191 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20193 if test -z "${CONFIG_MOUNT_TRUE}" && test -z "${CONFIG_MOUNT_FALSE}"; then
20194 as_fn_error "conditional \"CONFIG_MOUNT\" was never defined.
20195 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20197 if test -z "${CONFIG_IPV6_TRUE}" && test -z "${CONFIG_IPV6_FALSE}"; then
20198 as_fn_error "conditional \"CONFIG_IPV6\" was never defined.
20199 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20201 if test -z "${MOUNT_CONFIG_TRUE}" && test -z "${MOUNT_CONFIG_FALSE}"; then
20202 as_fn_error "conditional \"MOUNT_CONFIG\" was never defined.
20203 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20205 if test -z "${MOUNT_CONFIG_TRUE}" && test -z "${MOUNT_CONFIG_FALSE}"; then
20206 as_fn_error "conditional \"MOUNT_CONFIG\" was never defined.
20207 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20209 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20210 as_fn_error "conditional \"AMDEP\" was never defined.
20211 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20213 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20214 as_fn_error "conditional \"am__fastdepCC\" was never defined.
20215 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20217 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20218 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
20219 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20221 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20222 as_fn_error "conditional \"am__fastdepCC\" was never defined.
20223 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20225 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20226 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
20227 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20230 : ${CONFIG_STATUS=./config.status}
20232 ac_clean_files_save=$ac_clean_files
20233 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20234 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20235 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20237 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20239 # Generated by $as_me.
20240 # Run this file to recreate the current configuration.
20241 # Compiler output produced by configure, useful for debugging
20242 # configure, is in config.log if it exists.
20245 ac_cs_recheck=false
20248 SHELL=\${CONFIG_SHELL-$SHELL}
20251 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20252 ## -------------------- ##
20253 ## M4sh Initialization. ##
20254 ## -------------------- ##
20256 # Be more Bourne compatible
20257 DUALCASE=1; export DUALCASE # for MKS sh
20258 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20261 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20262 # is contrary to our usage. Disable this feature.
20263 alias -g '${1+"$@"}'='"$@"'
20264 setopt NO_GLOB_SUBST
20266 case `(set -o) 2>/dev/null` in #(
20278 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20279 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20280 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20281 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20282 # Prefer a ksh shell builtin over an external printf program on Solaris,
20283 # but without wasting forks for bash or zsh.
20284 if test -z "$BASH_VERSION$ZSH_VERSION" \
20285 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20286 as_echo='print -r --'
20287 as_echo_n='print -rn --'
20288 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20289 as_echo='printf %s\n'
20290 as_echo_n='printf %s'
20292 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20293 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20294 as_echo_n='/usr/ucb/echo -n'
20296 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20297 as_echo_n_body='eval
20301 expr "X$arg" : "X\\(.*\\)$as_nl";
20302 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20304 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20306 export as_echo_n_body
20307 as_echo_n='sh -c $as_echo_n_body as_echo'
20309 export as_echo_body
20310 as_echo='sh -c $as_echo_body as_echo'
20313 # The user is always right.
20314 if test "${PATH_SEPARATOR+set}" != set; then
20316 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20317 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20324 # We need space, tab and new line, in precisely that order. Quoting is
20325 # there to prevent editors from complaining about space-tab.
20326 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20327 # splitting by setting IFS to empty value.)
20330 # Find who we are. Look in the path if we contain no directory separator.
20332 *[\\/]* ) as_myself=$0 ;;
20333 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20334 for as_dir in $PATH
20337 test -z "$as_dir" && as_dir=.
20338 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20344 # We did not find ourselves, most probably we were run as `sh COMMAND'
20345 # in which case we are not to be found in the path.
20346 if test "x$as_myself" = x; then
20349 if test ! -f "$as_myself"; then
20350 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20354 # Unset variables that we do not need and which cause bugs (e.g. in
20355 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20356 # suppresses any "Segmentation fault" message there. '((' could
20357 # trigger a bug in pdksh 5.2.14.
20358 for as_var in BASH_ENV ENV MAIL MAILPATH
20359 do eval test x\${$as_var+set} = xset \
20360 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20373 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20376 # as_fn_error ERROR [LINENO LOG_FD]
20377 # ---------------------------------
20378 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20379 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20380 # script with status $?, using 1 if that was 0.
20383 as_status=$?; test $as_status -eq 0 && as_status=1
20385 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20386 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
20388 $as_echo "$as_me: error: $1" >&2
20389 as_fn_exit $as_status
20393 # as_fn_set_status STATUS
20394 # -----------------------
20395 # Set $? to STATUS, without forking.
20396 as_fn_set_status ()
20399 } # as_fn_set_status
20401 # as_fn_exit STATUS
20402 # -----------------
20403 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20407 as_fn_set_status $1
20413 # Portably unset VAR.
20416 { eval $1=; unset $1;}
20418 as_unset=as_fn_unset
20419 # as_fn_append VAR VALUE
20420 # ----------------------
20421 # Append the text in VALUE to the end of the definition contained in VAR. Take
20422 # advantage of any shell optimizations that allow amortized linear growth over
20423 # repeated appends, instead of the typical quadratic growth present in naive
20425 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20426 eval 'as_fn_append ()
20437 # as_fn_arith ARG...
20438 # ------------------
20439 # Perform arithmetic evaluation on the ARGs, and store the result in the
20440 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20441 # must be portable across $(()) and expr.
20442 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20443 eval 'as_fn_arith ()
20450 as_val=`expr "$@" || test $? -eq 1`
20455 if expr a : '\(a\)' >/dev/null 2>&1 &&
20456 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20462 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20463 as_basename=basename
20468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20474 as_me=`$as_basename -- "$0" ||
20475 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20476 X"$0" : 'X\(//\)$' \| \
20477 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20479 sed '/^.*\/\([^/][^/]*\)\/*$/{
20493 # Avoid depending upon Character Ranges.
20494 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20495 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20496 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20497 as_cr_digits='0123456789'
20498 as_cr_alnum=$as_cr_Letters$as_cr_digits
20500 ECHO_C= ECHO_N= ECHO_T=
20501 case `echo -n x` in #(((((
20503 case `echo 'xy\c'` in
20504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20513 rm -f conf$$ conf$$.exe conf$$.file
20514 if test -d conf$$.dir; then
20515 rm -f conf$$.dir/conf$$.file
20518 mkdir conf$$.dir 2>/dev/null
20520 if (echo >conf$$.file) 2>/dev/null; then
20521 if ln -s conf$$.file conf$$ 2>/dev/null; then
20523 # ... but there are two gotchas:
20524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20526 # In both cases, we have to default to `cp -p'.
20527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20529 elif ln conf$$.file conf$$ 2>/dev/null; then
20537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20538 rmdir conf$$.dir 2>/dev/null
20543 # Create "$as_dir" as a directory, including parents if necessary.
20548 -*) as_dir=./$as_dir;;
20550 test -d "$as_dir" || eval $as_mkdir_p || {
20554 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20555 *) as_qdir=$as_dir;;
20557 as_dirs="'$as_qdir' $as_dirs"
20558 as_dir=`$as_dirname -- "$as_dir" ||
20559 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20560 X"$as_dir" : 'X\(//\)[^/]' \| \
20561 X"$as_dir" : 'X\(//\)$' \| \
20562 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20563 $as_echo X"$as_dir" |
20564 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20568 /^X\(\/\/\)[^/].*/{
20581 test -d "$as_dir" && break
20583 test -z "$as_dirs" || eval "mkdir $as_dirs"
20584 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
20588 if mkdir -p . 2>/dev/null; then
20589 as_mkdir_p='mkdir -p "$as_dir"'
20591 test -d ./-p && rmdir ./-p
20595 if test -x / >/dev/null 2>&1; then
20596 as_test_x='test -x'
20598 if ls -dL / >/dev/null 2>&1; then
20605 if test -d "$1"; then
20611 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20612 ???[sx]*):;;*)false;;esac;fi
20616 as_executable_p=$as_test_x
20618 # Sed expression to map a string onto a valid CPP name.
20619 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20621 # Sed expression to map a string onto a valid variable name.
20622 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20626 ## ----------------------------------- ##
20627 ## Main body of $CONFIG_STATUS script. ##
20628 ## ----------------------------------- ##
20630 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20632 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20633 # Save the log message, to keep $0 and so on meaningful, and to
20634 # report actual input values of CONFIG_FILES etc. instead of their
20635 # values after options handling.
20637 This file was extended by linux nfs-utils $as_me 1.2.3, which was
20638 generated by GNU Autoconf 2.65. Invocation command line was
20640 CONFIG_FILES = $CONFIG_FILES
20641 CONFIG_HEADERS = $CONFIG_HEADERS
20642 CONFIG_LINKS = $CONFIG_LINKS
20643 CONFIG_COMMANDS = $CONFIG_COMMANDS
20646 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20651 case $ac_config_files in *"
20652 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20655 case $ac_config_headers in *"
20656 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20661 # Files that config.status was made for.
20662 config_files="$ac_config_files"
20663 config_headers="$ac_config_headers"
20664 config_commands="$ac_config_commands"
20668 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20670 \`$as_me' instantiates files and other configuration actions
20671 from templates according to the current configuration. Unless the files
20672 and actions are specified as TAGs, all are instantiated by default.
20674 Usage: $0 [OPTION]... [TAG]...
20676 -h, --help print this help, then exit
20677 -V, --version print version number and configuration settings, then exit
20678 --config print configuration, then exit
20679 -q, --quiet, --silent
20680 do not print progress messages
20681 -d, --debug don't remove temporary files
20682 --recheck update $as_me by reconfiguring in the same conditions
20683 --file=FILE[:TEMPLATE]
20684 instantiate the configuration file FILE
20685 --header=FILE[:TEMPLATE]
20686 instantiate the configuration header FILE
20688 Configuration files:
20691 Configuration headers:
20694 Configuration commands:
20697 Report bugs to <linux-nfs@vger.kernel.org>."
20700 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20701 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20703 linux nfs-utils config.status 1.2.3
20704 configured by $0, generated by GNU Autoconf 2.65,
20705 with options \\"\$ac_cs_config\\"
20707 Copyright (C) 2009 Free Software Foundation, Inc.
20708 This config.status script is free software; the Free Software Foundation
20709 gives unlimited permission to copy, distribute and modify it."
20716 test -n "\$AWK" || AWK=awk
20719 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20720 # The default lists apply if the user does not specify any file.
20726 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20727 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20738 # Handling of the options.
20739 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20741 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20742 $as_echo "$ac_cs_version"; exit ;;
20743 --config | --confi | --conf | --con | --co | --c )
20744 $as_echo "$ac_cs_config"; exit ;;
20745 --debug | --debu | --deb | --de | --d | -d )
20747 --file | --fil | --fi | --f )
20750 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20752 as_fn_append CONFIG_FILES " '$ac_optarg'"
20753 ac_need_defaults=false;;
20754 --header | --heade | --head | --hea )
20757 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20759 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20760 ac_need_defaults=false;;
20762 # Conflict between --help and --header
20763 as_fn_error "ambiguous option: \`$1'
20764 Try \`$0 --help' for more information.";;
20765 --help | --hel | -h )
20766 $as_echo "$ac_cs_usage"; exit ;;
20767 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20768 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20771 # This is an error.
20772 -*) as_fn_error "unrecognized option: \`$1'
20773 Try \`$0 --help' for more information." ;;
20775 *) as_fn_append ac_config_targets " $1"
20776 ac_need_defaults=false ;;
20782 ac_configure_extra_args=
20784 if $ac_cs_silent; then
20786 ac_configure_extra_args="$ac_configure_extra_args --silent"
20790 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20791 if \$ac_cs_recheck; then
20792 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20794 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20795 CONFIG_SHELL='$SHELL'
20796 export CONFIG_SHELL
20801 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20805 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20806 ## Running $as_me. ##
20812 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20816 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20819 # The HP-UX ksh and POSIX shell print the target directory to stdout
20820 # if CDPATH is set.
20821 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20823 sed_quote_subst='$sed_quote_subst'
20824 double_quote_subst='$double_quote_subst'
20825 delay_variable_subst='$delay_variable_subst'
20826 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
20827 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
20828 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
20829 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
20830 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
20831 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
20832 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
20833 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
20834 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
20835 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
20836 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
20837 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
20838 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
20839 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
20840 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
20841 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
20842 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
20843 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
20844 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
20845 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
20846 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
20847 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
20848 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
20849 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
20850 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
20851 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
20852 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
20853 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20854 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
20855 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
20856 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
20857 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
20858 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20859 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
20860 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
20861 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20862 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20863 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20864 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
20865 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20866 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
20867 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
20868 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
20869 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
20870 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
20871 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
20872 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
20873 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
20874 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
20875 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
20876 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
20877 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
20878 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
20879 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
20880 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
20881 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
20882 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
20883 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
20884 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
20885 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
20886 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
20887 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
20888 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20889 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20890 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
20891 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
20892 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20893 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20894 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
20895 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20896 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20897 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20898 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20899 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20900 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20901 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
20902 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20903 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20904 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20905 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
20906 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
20907 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
20908 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
20909 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
20910 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20911 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
20912 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
20913 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
20914 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
20915 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
20916 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20917 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20918 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20919 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20920 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
20921 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
20922 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
20923 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
20924 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
20925 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20926 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20927 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
20928 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20929 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
20930 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20931 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20932 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20933 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20934 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
20935 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
20936 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20937 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20938 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
20939 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
20940 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
20941 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
20942 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
20943 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
20944 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
20945 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20946 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20947 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
20948 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
20949 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
20950 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20951 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20952 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20953 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20954 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20955 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20956 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20957 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20958 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20959 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20960 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20961 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20962 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20963 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20964 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20965 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20966 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20967 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20968 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20969 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20970 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20971 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20972 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20973 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20974 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20975 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20976 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20977 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20978 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20979 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20980 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20981 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20982 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20983 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20984 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20985 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20986 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20987 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20988 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20989 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20990 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20991 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20992 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20993 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20994 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20995 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20996 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20999 LTCFLAGS='$LTCFLAGS'
21000 compiler='$compiler_DEFAULT'
21002 # Quote evaled strings.
21014 deplibs_check_method \
21023 lt_cv_sys_global_symbol_pipe \
21024 lt_cv_sys_global_symbol_to_cdecl \
21025 lt_cv_sys_global_symbol_to_c_name_address \
21026 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21029 lt_prog_compiler_no_builtin_flag \
21030 lt_prog_compiler_wl \
21031 lt_prog_compiler_pic \
21032 lt_prog_compiler_static \
21033 lt_cv_prog_compiler_c_o \
21041 export_dynamic_flag_spec \
21042 whole_archive_flag_spec \
21043 compiler_needs_object \
21045 allow_undefined_flag \
21046 no_undefined_flag \
21047 hardcode_libdir_flag_spec \
21048 hardcode_libdir_flag_spec_ld \
21049 hardcode_libdir_separator \
21054 variables_saved_for_relink \
21056 library_names_spec \
21061 compiler_lib_search_dirs \
21066 compiler_lib_search_path \
21069 lt_prog_compiler_no_builtin_flag_CXX \
21070 lt_prog_compiler_wl_CXX \
21071 lt_prog_compiler_pic_CXX \
21072 lt_prog_compiler_static_CXX \
21073 lt_cv_prog_compiler_c_o_CXX \
21074 export_dynamic_flag_spec_CXX \
21075 whole_archive_flag_spec_CXX \
21076 compiler_needs_object_CXX \
21078 allow_undefined_flag_CXX \
21079 no_undefined_flag_CXX \
21080 hardcode_libdir_flag_spec_CXX \
21081 hardcode_libdir_flag_spec_ld_CXX \
21082 hardcode_libdir_separator_CXX \
21083 fix_srcfile_path_CXX \
21084 exclude_expsyms_CXX \
21085 include_expsyms_CXX \
21086 file_list_spec_CXX \
21087 compiler_lib_search_dirs_CXX \
21088 predep_objects_CXX \
21089 postdep_objects_CXX \
21092 compiler_lib_search_path_CXX; do
21093 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21094 *[\\\\\\\`\\"\\\$]*)
21095 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21098 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21103 # Double-quote double-evaled strings.
21104 for var in reload_cmds \
21105 old_postinstall_cmds \
21106 old_postuninstall_cmds \
21108 extract_expsyms_cmds \
21109 old_archive_from_new_cmds \
21110 old_archive_from_expsyms_cmds \
21112 archive_expsym_cmds \
21114 module_expsym_cmds \
21115 export_symbols_cmds \
21118 postuninstall_cmds \
21120 sys_lib_search_path_spec \
21121 sys_lib_dlsearch_path_spec \
21122 old_archive_cmds_CXX \
21123 old_archive_from_new_cmds_CXX \
21124 old_archive_from_expsyms_cmds_CXX \
21126 archive_expsym_cmds_CXX \
21128 module_expsym_cmds_CXX \
21129 export_symbols_cmds_CXX \
21130 prelink_cmds_CXX; do
21131 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21132 *[\\\\\\\`\\"\\\$]*)
21133 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21136 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21141 # Fix-up fallback echo if it was mangled by the above quoting rules.
21143 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
21147 ac_aux_dir='$ac_aux_dir'
21148 xsi_shell='$xsi_shell'
21149 lt_shell_append='$lt_shell_append'
21151 # See if we are running on zsh, and set the options which allow our
21152 # commands through without removal of \ escapes INIT.
21153 if test -n "\${ZSH_VERSION+set}" ; then
21154 setopt NO_GLOB_SUBST
21160 TIMESTAMP='$TIMESTAMP'
21171 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21173 # Handling of arguments.
21174 for ac_config_target in $ac_config_targets
21176 case $ac_config_target in
21177 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21178 "support/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
21179 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21180 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21181 "linux-nfs/Makefile") CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
21182 "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
21183 "support/export/Makefile") CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
21184 "support/include/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
21185 "support/include/rpcsvc/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
21186 "support/include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
21187 "support/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
21188 "support/include/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
21189 "support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
21190 "support/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
21191 "support/nsm/Makefile") CONFIG_FILES="$CONFIG_FILES support/nsm/Makefile" ;;
21192 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
21193 "tools/locktest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
21194 "tools/nlmtest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
21195 "tools/rpcdebug/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
21196 "tools/rpcgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
21197 "tools/mountstats/Makefile") CONFIG_FILES="$CONFIG_FILES tools/mountstats/Makefile" ;;
21198 "tools/nfs-iostat/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nfs-iostat/Makefile" ;;
21199 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
21200 "utils/exportfs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
21201 "utils/gssd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
21202 "utils/idmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
21203 "utils/mount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mount/Makefile" ;;
21204 "utils/mountd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
21205 "utils/nfsd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
21206 "utils/nfsstat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
21207 "utils/showmount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
21208 "utils/statd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
21209 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
21210 "tests/nsm_client/Makefile") CONFIG_FILES="$CONFIG_FILES tests/nsm_client/Makefile" ;;
21212 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21217 # If the user did not use the arguments to specify the items to instantiate,
21218 # then the envvar interface is used. Set only those that are not.
21219 # We use the long form for the default assignment because of an extremely
21220 # bizarre bug on SunOS 4.1.3.
21221 if $ac_need_defaults; then
21222 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21223 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21224 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21227 # Have a temporary directory for convenience. Make it in the build tree
21228 # simply because there is no reason against having it here, and in addition,
21229 # creating and moving files from /tmp can sometimes cause problems.
21230 # Hook for its removal unless debugging.
21231 # Note that there is a small window in which the directory will not be cleaned:
21232 # after its creation but before its name has been assigned to `$tmp'.
21236 trap 'exit_status=$?
21237 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21239 trap 'as_fn_exit 1' 1 2 13 15
21241 # Create a (secure) tmp directory for tmp files.
21244 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21245 test -n "$tmp" && test -d "$tmp"
21248 tmp=./conf$$-$RANDOM
21249 (umask 077 && mkdir "$tmp")
21250 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
21252 # Set up the scripts for CONFIG_FILES section.
21253 # No need to generate them if there are no CONFIG_FILES.
21254 # This happens for instance with `./config.status config.h'.
21255 if test -n "$CONFIG_FILES"; then
21258 ac_cr=`echo X | tr X '\015'`
21259 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21260 # But we know of no other shell where ac_cr would be empty at this
21261 # point, so we can use a bashism as a fallback.
21262 if test "x$ac_cr" = x; then
21263 eval ac_cr=\$\'\\r\'
21265 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21266 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21269 ac_cs_awk_cr=$ac_cr
21272 echo 'BEGIN {' >"$tmp/subs1.awk" &&
21277 echo "cat >conf$$subs.awk <<_ACEOF" &&
21278 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21280 } >conf$$subs.sh ||
21281 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
21282 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
21284 for ac_last_try in false false false false false :; do
21285 . ./conf$$subs.sh ||
21286 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
21288 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21289 if test $ac_delim_n = $ac_delim_num; then
21291 elif $ac_last_try; then
21292 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
21294 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21297 rm -f conf$$subs.sh
21299 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21300 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
21304 s/^/S["/; s/!.*/"]=/
21314 s/\(.\{148\}\)..*/\1/
21316 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21321 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21328 s/\(.\{148\}\)..*/\1/
21330 s/["\\]/\\&/g; s/^/"/; s/$/"/
21334 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21339 ' <conf$$subs.awk | sed '
21344 ' >>$CONFIG_STATUS || ac_write_fail=1
21345 rm -f conf$$subs.awk
21346 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21348 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
21349 for (key in S) S_is_set[key] = 1
21355 nfields = split(line, field, "@")
21357 len = length(field[1])
21358 for (i = 2; i < nfields; i++) {
21360 keylen = length(key)
21361 if (S_is_set[key]) {
21363 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21364 len += length(value) + length(field[++i])
21375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21376 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21377 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21380 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
21381 || as_fn_error "could not setup config files machinery" "$LINENO" 5
21384 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21385 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21386 # trailing colons and then remove the whole line if VPATH becomes empty
21387 # (actually we leave an empty line to preserve line numbers).
21388 if test "x$srcdir" = x.; then
21389 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21390 s/:*\$(srcdir):*/:/
21391 s/:*\${srcdir}:*/:/
21393 s/^\([^=]*=[ ]*\):*/\1/
21399 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21400 fi # test -n "$CONFIG_FILES"
21402 # Set up the scripts for CONFIG_HEADERS section.
21403 # No need to generate them if there are no CONFIG_HEADERS.
21404 # This happens for instance with `./config.status Makefile'.
21405 if test -n "$CONFIG_HEADERS"; then
21406 cat >"$tmp/defines.awk" <<\_ACAWK ||
21410 # Transform confdefs.h into an awk script `defines.awk', embedded as
21411 # here-document in config.status, that substitutes the proper values into
21412 # config.h.in to produce config.h.
21414 # Create a delimiter string that does not exist in confdefs.h, to ease
21415 # handling of long lines.
21417 for ac_last_try in false false :; do
21418 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
21419 if test -z "$ac_t"; then
21421 elif $ac_last_try; then
21422 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
21424 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21428 # For the awk script, D is an array of macro values keyed by name,
21429 # likewise P contains macro parameters if any. Preserve backslash
21430 # newline sequences.
21432 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21434 s/.\{148\}/&'"$ac_delim"'/g
21437 s/^[ ]*#[ ]*define[ ][ ]*/ /
21444 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21446 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21450 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21451 D["\1"]=" \3\\\\\\n"\\/p
21453 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21458 s/.\{148\}/&'"$ac_delim"'/g
21463 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21466 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21468 ' <confdefs.h | sed '
21469 s/'"$ac_delim"'/"\\\
21470 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21472 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21473 for (key in D) D_is_set[key] = 1
21476 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21478 split(line, arg, " ")
21479 if (arg[1] == "#") {
21483 defundef = substr(arg[1], 2)
21486 split(mac1, mac2, "(") #)
21488 prefix = substr(line, 1, index(line, defundef) - 1)
21489 if (D_is_set[macro]) {
21490 # Preserve the white space surrounding the "#".
21491 print prefix "define", macro P[macro] D[macro]
21494 # Replace #undef with comments. This is necessary, for example,
21495 # in the case of _POSIX_SOURCE, which is predefined and required
21496 # on some systems where configure will not decide to define it.
21497 if (defundef == "undef") {
21498 print "/*", prefix defundef, macro, "*/"
21506 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21507 as_fn_error "could not setup config headers machinery" "$LINENO" 5
21508 fi # test -n "$CONFIG_HEADERS"
21511 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21516 :[FHLC]) ac_mode=$ac_tag; continue;;
21518 case $ac_mode$ac_tag in
21520 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
21521 :[FH]-) ac_tag=-:-;;
21522 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21539 -) ac_f="$tmp/stdin";;
21540 *) # Look for the file first in the build tree, then in the source tree
21541 # (if the path is not absolute). The absolute path cannot be DOS-style,
21542 # because $ac_f cannot contain `:'.
21546 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21548 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21550 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21551 as_fn_append ac_file_inputs " '$ac_f'"
21554 # Let's still pretend it is `configure' which instantiates (i.e., don't
21555 # use $as_me), people would be surprised to read:
21556 # /* config.h. Generated by config.status. */
21557 configure_input='Generated from '`
21558 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21560 if test x"$ac_file" != x-; then
21561 configure_input="$ac_file. $configure_input"
21562 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21563 $as_echo "$as_me: creating $ac_file" >&6;}
21565 # Neutralize special characters interpreted by sed in replacement strings.
21566 case $configure_input in #(
21567 *\&* | *\|* | *\\* )
21568 ac_sed_conf_input=`$as_echo "$configure_input" |
21569 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21570 *) ac_sed_conf_input=$configure_input;;
21574 *:-:* | *:-) cat >"$tmp/stdin" \
21575 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
21580 ac_dir=`$as_dirname -- "$ac_file" ||
21581 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21582 X"$ac_file" : 'X\(//\)[^/]' \| \
21583 X"$ac_file" : 'X\(//\)$' \| \
21584 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21585 $as_echo X"$ac_file" |
21586 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21590 /^X\(\/\/\)[^/].*/{
21603 as_dir="$ac_dir"; as_fn_mkdir_p
21607 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21609 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21610 # A ".." for each directory in $ac_dir_suffix.
21611 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21612 case $ac_top_builddir_sub in
21613 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21614 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21617 ac_abs_top_builddir=$ac_pwd
21618 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21619 # for backward compatibility:
21620 ac_top_builddir=$ac_top_build_prefix
21623 .) # We are building in place.
21625 ac_top_srcdir=$ac_top_builddir_sub
21626 ac_abs_top_srcdir=$ac_pwd ;;
21627 [\\/]* | ?:[\\/]* ) # Absolute name.
21628 ac_srcdir=$srcdir$ac_dir_suffix;
21629 ac_top_srcdir=$srcdir
21630 ac_abs_top_srcdir=$srcdir ;;
21631 *) # Relative name.
21632 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21633 ac_top_srcdir=$ac_top_build_prefix$srcdir
21634 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21636 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21646 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21647 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21649 ac_MKDIR_P=$MKDIR_P
21651 [\\/$]* | ?:[\\/]* ) ;;
21652 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21656 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21657 # If the template does not know about datarootdir, expand it.
21658 # FIXME: This hack should be removed a few years after 2.60.
21659 ac_datarootdir_hack=; ac_datarootdir_seen=
21670 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21671 *datarootdir*) ac_datarootdir_seen=yes;;
21672 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21674 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21676 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21677 ac_datarootdir_hack='
21678 s&@datadir@&$datadir&g
21679 s&@docdir@&$docdir&g
21680 s&@infodir@&$infodir&g
21681 s&@localedir@&$localedir&g
21682 s&@mandir@&$mandir&g
21683 s&\\\${datarootdir}&$datarootdir&g' ;;
21687 # Neutralize VPATH when `$srcdir' = `.'.
21688 # Shell code in configure.ac might set extrasub.
21689 # FIXME: do we really want to maintain this feature?
21690 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21691 ac_sed_extra="$ac_vpsub
21694 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21696 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21697 s|@configure_input@|$ac_sed_conf_input|;t t
21698 s&@top_builddir@&$ac_top_builddir_sub&;t t
21699 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21700 s&@srcdir@&$ac_srcdir&;t t
21701 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21702 s&@top_srcdir@&$ac_top_srcdir&;t t
21703 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21704 s&@builddir@&$ac_builddir&;t t
21705 s&@abs_builddir@&$ac_abs_builddir&;t t
21706 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21707 s&@INSTALL@&$ac_INSTALL&;t t
21708 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21709 $ac_datarootdir_hack
21711 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
21712 || as_fn_error "could not create $ac_file" "$LINENO" 5
21714 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21715 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21716 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21718 which seems to be undefined. Please make sure it is defined." >&5
21719 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21720 which seems to be undefined. Please make sure it is defined." >&2;}
21724 -) cat "$tmp/out" && rm -f "$tmp/out";;
21725 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
21727 || as_fn_error "could not create $ac_file" "$LINENO" 5
21733 if test x"$ac_file" != x-; then
21735 $as_echo "/* $configure_input */" \
21736 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
21737 } >"$tmp/config.h" \
21738 || as_fn_error "could not create $ac_file" "$LINENO" 5
21739 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
21740 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21741 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21744 mv "$tmp/config.h" "$ac_file" \
21745 || as_fn_error "could not create $ac_file" "$LINENO" 5
21748 $as_echo "/* $configure_input */" \
21749 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
21750 || as_fn_error "could not create -" "$LINENO" 5
21752 # Compute "$ac_file"'s index in $config_headers.
21755 for _am_header in $config_headers :; do
21756 case $_am_header in
21757 $_am_arg | $_am_arg:* )
21760 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21763 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21764 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21765 X"$_am_arg" : 'X\(//\)[^/]' \| \
21766 X"$_am_arg" : 'X\(//\)$' \| \
21767 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21768 $as_echo X"$_am_arg" |
21769 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21773 /^X\(\/\/\)[^/].*/{
21785 s/.*/./; q'`/stamp-h$_am_stamp_count
21788 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21789 $as_echo "$as_me: executing $ac_file commands" >&6;}
21794 case $ac_file$ac_mode in
21795 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21796 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21797 # are listed without --file. Let's play safe and only enable the eval
21798 # if we detect the quoting.
21799 case $CONFIG_FILES in
21800 *\'*) eval set x "$CONFIG_FILES" ;;
21801 *) set x $CONFIG_FILES ;;
21806 # Strip MF so we end up with the name of the file.
21807 mf=`echo "$mf" | sed -e 's/:.*$//'`
21808 # Check whether this is an Automake generated Makefile or not.
21809 # We used to match only the files named `Makefile.in', but
21810 # some people rename them; so instead we look at the file content.
21811 # Grep'ing the first line is not enough: some people post-process
21812 # each Makefile.in and add a new line on top of each file to say so.
21813 # Grep'ing the whole file is not good either: AIX grep has a line
21814 # limit of 2048, but all sed's we know have understand at least 4000.
21815 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21816 dirpart=`$as_dirname -- "$mf" ||
21817 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21818 X"$mf" : 'X\(//\)[^/]' \| \
21819 X"$mf" : 'X\(//\)$' \| \
21820 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21826 /^X\(\/\/\)[^/].*/{
21842 # Extract the definition of DEPDIR, am__include, and am__quote
21843 # from the Makefile without running `make'.
21844 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21845 test -z "$DEPDIR" && continue
21846 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21847 test -z "am__include" && continue
21848 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21849 # When using ansi2knr, U may be empty or an underscore; expand it
21850 U=`sed -n 's/^U = //p' < "$mf"`
21851 # Find all dependency output files, they are included files with
21852 # $(DEPDIR) in their names. We invoke sed twice because it is the
21853 # simplest approach to changing $(DEPDIR) to its actual value in the
21855 for file in `sed -n "
21856 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21857 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21858 # Make sure the directory exists.
21859 test -f "$dirpart/$file" && continue
21860 fdir=`$as_dirname -- "$file" ||
21861 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21862 X"$file" : 'X\(//\)[^/]' \| \
21863 X"$file" : 'X\(//\)$' \| \
21864 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21865 $as_echo X"$file" |
21866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21870 /^X\(\/\/\)[^/].*/{
21883 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21884 # echo "creating $dirpart/$file"
21885 echo '# dummy' > "$dirpart/$file"
21892 # See if we are running on zsh, and set the options which allow our
21893 # commands through without removal of \ escapes.
21894 if test -n "${ZSH_VERSION+set}" ; then
21895 setopt NO_GLOB_SUBST
21898 cfgfile="${ofile}T"
21899 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21902 cat <<_LT_EOF >> "$cfgfile"
21905 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21906 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21907 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21908 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21910 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21911 # 2006, 2007, 2008 Free Software Foundation, Inc.
21912 # Written by Gordon Matzigkeit, 1996
21914 # This file is part of GNU Libtool.
21916 # GNU Libtool is free software; you can redistribute it and/or
21917 # modify it under the terms of the GNU General Public License as
21918 # published by the Free Software Foundation; either version 2 of
21919 # the License, or (at your option) any later version.
21921 # As a special exception to the GNU General Public License,
21922 # if you distribute this file as part of a program or library that
21923 # is built using GNU Libtool, you may include this file under the
21924 # same distribution terms that you use for the rest of that program.
21926 # GNU Libtool is distributed in the hope that it will be useful,
21927 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21928 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21929 # GNU General Public License for more details.
21931 # You should have received a copy of the GNU General Public License
21932 # along with GNU Libtool; see the file COPYING. If not, a copy
21933 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21934 # obtained by writing to the Free Software Foundation, Inc.,
21935 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21938 # The names of the tagged configurations supported by this script.
21939 available_tags="CXX "
21941 # ### BEGIN LIBTOOL CONFIG
21943 # Which release of libtool.m4 was used?
21944 macro_version=$macro_version
21945 macro_revision=$macro_revision
21947 # Whether or not to build shared libraries.
21948 build_libtool_libs=$enable_shared
21950 # Whether or not to build static libraries.
21951 build_old_libs=$enable_static
21953 # What type of objects to build.
21956 # Whether or not to optimize for fast installation.
21957 fast_install=$enable_fast_install
21960 host_alias=$host_alias
21964 # The build system.
21965 build_alias=$build_alias
21969 # A sed program that does not truncate output.
21972 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21973 Xsed="\$SED -e 1s/^X//"
21975 # A grep program that handles long lines.
21981 # A literal string matcher.
21984 # A BSD- or MS-compatible name lister.
21987 # Whether we need soft or hard links.
21990 # What is the maximum length of a command?
21991 max_cmd_len=$max_cmd_len
21993 # Object file suffix (normally "o").
21996 # Executable file suffix (normally "").
21999 # whether the shell understands "unset".
22002 # turn spaces into newlines.
22005 # turn newlines into spaces.
22008 # How to create reloadable object files.
22009 reload_flag=$lt_reload_flag
22010 reload_cmds=$lt_reload_cmds
22012 # An object symbol dumper.
22013 OBJDUMP=$lt_OBJDUMP
22015 # Method to check whether dependent libraries are shared objects.
22016 deplibs_check_method=$lt_deplibs_check_method
22018 # Command to use when deplibs_check_method == "file_magic".
22019 file_magic_cmd=$lt_file_magic_cmd
22023 AR_FLAGS=$lt_AR_FLAGS
22025 # A symbol stripping program.
22028 # Commands used to install an old-style archive.
22030 old_postinstall_cmds=$lt_old_postinstall_cmds
22031 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22036 # LTCC compiler flags.
22037 LTCFLAGS=$lt_CFLAGS
22039 # Take the output of nm and produce a listing of raw symbols and C names.
22040 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22042 # Transform the output of nm in a proper C declaration.
22043 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22045 # Transform the output of nm in a C name address pair.
22046 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22048 # Transform the output of nm in a C name address pair when lib prefix is needed.
22049 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22051 # The name of the directory that contains temporary libtool files.
22054 # Shell to use when invoking shell scripts.
22057 # An echo program that does not interpret backslashes.
22060 # Used to examine libraries when file_magic_cmd begins with "file".
22061 MAGIC_CMD=$MAGIC_CMD
22063 # Must we lock files when doing compilation?
22064 need_locks=$lt_need_locks
22066 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22067 DSYMUTIL=$lt_DSYMUTIL
22069 # Tool to change global to local symbols on Mac OS X.
22072 # Tool to manipulate fat objects and archives on Mac OS X.
22075 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22078 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22079 OTOOL64=$lt_OTOOL64
22081 # Old archive suffix (normally "a").
22084 # Shared library suffix (normally ".so").
22085 shrext_cmds=$lt_shrext_cmds
22087 # The commands to extract the exported symbol list from a shared archive.
22088 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22090 # Variables whose values should be saved in libtool wrapper scripts and
22091 # restored at link time.
22092 variables_saved_for_relink=$lt_variables_saved_for_relink
22094 # Do we need the "lib" prefix for modules?
22095 need_lib_prefix=$need_lib_prefix
22097 # Do we need a version for libraries?
22098 need_version=$need_version
22100 # Library versioning type.
22101 version_type=$version_type
22103 # Shared library runtime path variable.
22104 runpath_var=$runpath_var
22106 # Shared library path variable.
22107 shlibpath_var=$shlibpath_var
22109 # Is shlibpath searched before the hard-coded library search path?
22110 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22112 # Format of library name prefix.
22113 libname_spec=$lt_libname_spec
22115 # List of archive names. First name is the real one, the rest are links.
22116 # The last name is the one that the linker finds with -lNAME
22117 library_names_spec=$lt_library_names_spec
22119 # The coded name of the library, if different from the real name.
22120 soname_spec=$lt_soname_spec
22122 # Command to use after installation of a shared archive.
22123 postinstall_cmds=$lt_postinstall_cmds
22125 # Command to use after uninstallation of a shared archive.
22126 postuninstall_cmds=$lt_postuninstall_cmds
22128 # Commands used to finish a libtool library installation in a directory.
22129 finish_cmds=$lt_finish_cmds
22131 # As "finish_cmds", except a single script fragment to be evaled but
22133 finish_eval=$lt_finish_eval
22135 # Whether we should hardcode library paths into libraries.
22136 hardcode_into_libs=$hardcode_into_libs
22138 # Compile-time system search path for libraries.
22139 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22141 # Run-time system search path for libraries.
22142 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22144 # Whether dlopen is supported.
22145 dlopen_support=$enable_dlopen
22147 # Whether dlopen of programs is supported.
22148 dlopen_self=$enable_dlopen_self
22150 # Whether dlopen of statically linked programs is supported.
22151 dlopen_self_static=$enable_dlopen_self_static
22153 # Commands to strip libraries.
22154 old_striplib=$lt_old_striplib
22155 striplib=$lt_striplib
22158 # The linker used to build libraries.
22161 # Commands used to build an old-style archive.
22162 old_archive_cmds=$lt_old_archive_cmds
22164 # A language specific compiler.
22167 # Is the compiler the GNU compiler?
22170 # Compiler flag to turn off builtin functions.
22171 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22173 # How to pass a linker flag through the compiler.
22174 wl=$lt_lt_prog_compiler_wl
22176 # Additional compiler flags for building library objects.
22177 pic_flag=$lt_lt_prog_compiler_pic
22179 # Compiler flag to prevent dynamic linking.
22180 link_static_flag=$lt_lt_prog_compiler_static
22182 # Does compiler simultaneously support -c and -o options?
22183 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22185 # Whether or not to add -lc for building shared libraries.
22186 build_libtool_need_lc=$archive_cmds_need_lc
22188 # Whether or not to disallow shared libs when runtime libs are static.
22189 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22191 # Compiler flag to allow reflexive dlopens.
22192 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22194 # Compiler flag to generate shared objects directly from archives.
22195 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22197 # Whether the compiler copes with passing no objects directly.
22198 compiler_needs_object=$lt_compiler_needs_object
22200 # Create an old-style archive from a shared archive.
22201 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22203 # Create a temporary old-style archive to link instead of a shared archive.
22204 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22206 # Commands used to build a shared archive.
22207 archive_cmds=$lt_archive_cmds
22208 archive_expsym_cmds=$lt_archive_expsym_cmds
22210 # Commands used to build a loadable module if different from building
22211 # a shared archive.
22212 module_cmds=$lt_module_cmds
22213 module_expsym_cmds=$lt_module_expsym_cmds
22215 # Whether we are building with GNU ld or not.
22216 with_gnu_ld=$lt_with_gnu_ld
22218 # Flag that allows shared libraries with undefined symbols to be built.
22219 allow_undefined_flag=$lt_allow_undefined_flag
22221 # Flag that enforces no undefined symbols.
22222 no_undefined_flag=$lt_no_undefined_flag
22224 # Flag to hardcode \$libdir into a binary during linking.
22225 # This must work even if \$libdir does not exist
22226 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22228 # If ld is used when linking, flag to hardcode \$libdir into a binary
22229 # during linking. This must work even if \$libdir does not exist.
22230 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22232 # Whether we need a single "-rpath" flag with a separated argument.
22233 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22235 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22236 # DIR into the resulting binary.
22237 hardcode_direct=$hardcode_direct
22239 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22240 # DIR into the resulting binary and the resulting library dependency is
22241 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22242 # library is relocated.
22243 hardcode_direct_absolute=$hardcode_direct_absolute
22245 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22246 # into the resulting binary.
22247 hardcode_minus_L=$hardcode_minus_L
22249 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22250 # into the resulting binary.
22251 hardcode_shlibpath_var=$hardcode_shlibpath_var
22253 # Set to "yes" if building a shared library automatically hardcodes DIR
22254 # into the library and all subsequent libraries and executables linked
22256 hardcode_automatic=$hardcode_automatic
22258 # Set to yes if linker adds runtime paths of dependent libraries
22259 # to runtime path list.
22260 inherit_rpath=$inherit_rpath
22262 # Whether libtool must link a program against all its dependency libraries.
22263 link_all_deplibs=$link_all_deplibs
22265 # Fix the shell variable \$srcfile for the compiler.
22266 fix_srcfile_path=$lt_fix_srcfile_path
22268 # Set to "yes" if exported symbols are required.
22269 always_export_symbols=$always_export_symbols
22271 # The commands to list exported symbols.
22272 export_symbols_cmds=$lt_export_symbols_cmds
22274 # Symbols that should not be listed in the preloaded symbols.
22275 exclude_expsyms=$lt_exclude_expsyms
22277 # Symbols that must always be exported.
22278 include_expsyms=$lt_include_expsyms
22280 # Commands necessary for linking programs (against libraries) with templates.
22281 prelink_cmds=$lt_prelink_cmds
22283 # Specify filename containing input files.
22284 file_list_spec=$lt_file_list_spec
22286 # How to hardcode a shared library path into an executable.
22287 hardcode_action=$hardcode_action
22289 # The directories searched by this compiler when creating a shared library.
22290 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22292 # Dependencies to place before and after the objects being linked to
22293 # create a shared library.
22294 predep_objects=$lt_predep_objects
22295 postdep_objects=$lt_postdep_objects
22296 predeps=$lt_predeps
22297 postdeps=$lt_postdeps
22299 # The library search path used internally by the compiler when linking
22300 # a shared library.
22301 compiler_lib_search_path=$lt_compiler_lib_search_path
22303 # ### END LIBTOOL CONFIG
22309 cat <<\_LT_EOF >> "$cfgfile"
22310 # AIX sometimes has problems with the GCC collect2 program. For some
22311 # reason, if we set the COLLECT_NAMES environment variable, the problems
22312 # vanish in a puff of smoke.
22313 if test "X${COLLECT_NAMES+set}" != Xset; then
22315 export COLLECT_NAMES
22322 ltmain="$ac_aux_dir/ltmain.sh"
22325 # We use sed instead of cat because bash on DJGPP gets confused if
22326 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22327 # text mode, it properly converts lines to CR/LF. This bash problem
22328 # is reportedly fixed, but why not run on old versions too?
22329 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
22330 || (rm -f "$cfgfile"; exit 1)
22334 cat << \_LT_EOF >> "$cfgfile"
22336 # func_dirname file append nondir_replacement
22337 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
22338 # otherwise set result to NONDIR_REPLACEMENT.
22342 */*) func_dirname_result="${1%/*}${2}" ;;
22343 * ) func_dirname_result="${3}" ;;
22347 # func_basename file
22350 func_basename_result="${1##*/}"
22353 # func_dirname_and_basename file append nondir_replacement
22354 # perform func_basename and func_dirname in a single function
22356 # dirname: Compute the dirname of FILE. If nonempty,
22357 # add APPEND to the result, otherwise set result
22358 # to NONDIR_REPLACEMENT.
22359 # value returned in "$func_dirname_result"
22360 # basename: Compute filename of FILE.
22361 # value retuned in "$func_basename_result"
22362 # Implementation must be kept synchronized with func_dirname
22363 # and func_basename. For efficiency, we do not delegate to
22364 # those functions but instead duplicate the functionality here.
22365 func_dirname_and_basename ()
22368 */*) func_dirname_result="${1%/*}${2}" ;;
22369 * ) func_dirname_result="${3}" ;;
22371 func_basename_result="${1##*/}"
22374 # func_stripname prefix suffix name
22375 # strip PREFIX and SUFFIX off of NAME.
22376 # PREFIX and SUFFIX must not contain globbing or regex special
22377 # characters, hashes, percent signs, but SUFFIX may contain a leading
22378 # dot (in which case that matches only a dot).
22381 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
22382 # positional parameters, so assign one to ordinary parameter first.
22383 func_stripname_result=${3}
22384 func_stripname_result=${func_stripname_result#"${1}"}
22385 func_stripname_result=${func_stripname_result%"${2}"}
22391 func_opt_split_opt=${1%%=*}
22392 func_opt_split_arg=${1#*=}
22399 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
22400 *) func_lo2o_result=${1} ;;
22404 # func_xform libobj-or-source
22407 func_xform_result=${1%.*}.lo
22410 # func_arith arithmetic-term...
22413 func_arith_result=$(( $* ))
22417 # STRING may not start with a hyphen.
22420 func_len_result=${#1}
22425 *) # Bourne compatible functions.
22426 cat << \_LT_EOF >> "$cfgfile"
22428 # func_dirname file append nondir_replacement
22429 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
22430 # otherwise set result to NONDIR_REPLACEMENT.
22433 # Extract subdirectory from the argument.
22434 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
22435 if test "X$func_dirname_result" = "X${1}"; then
22436 func_dirname_result="${3}"
22438 func_dirname_result="$func_dirname_result${2}"
22442 # func_basename file
22445 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
22449 # func_stripname prefix suffix name
22450 # strip PREFIX and SUFFIX off of NAME.
22451 # PREFIX and SUFFIX must not contain globbing or regex special
22452 # characters, hashes, percent signs, but SUFFIX may contain a leading
22453 # dot (in which case that matches only a dot).
22454 # func_strip_suffix prefix name
22458 .*) func_stripname_result=`$ECHO "X${3}" \
22459 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
22460 *) func_stripname_result=`$ECHO "X${3}" \
22461 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
22466 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
22467 my_sed_long_arg='1s/^-[^=]*=//'
22472 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
22473 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
22479 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
22482 # func_xform libobj-or-source
22485 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
22488 # func_arith arithmetic-term...
22491 func_arith_result=`expr "$@"`
22495 # STRING may not start with a hyphen.
22498 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
22504 case $lt_shell_append in
22506 cat << \_LT_EOF >> "$cfgfile"
22508 # func_append var value
22509 # Append VALUE to the end of shell variable VAR.
22517 cat << \_LT_EOF >> "$cfgfile"
22519 # func_append var value
22520 # Append VALUE to the end of shell variable VAR.
22531 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
22532 || (rm -f "$cfgfile"; exit 1)
22534 mv -f "$cfgfile" "$ofile" ||
22535 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22539 cat <<_LT_EOF >> "$ofile"
22541 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22543 # The linker used to build libraries.
22546 # Commands used to build an old-style archive.
22547 old_archive_cmds=$lt_old_archive_cmds_CXX
22549 # A language specific compiler.
22550 CC=$lt_compiler_CXX
22552 # Is the compiler the GNU compiler?
22555 # Compiler flag to turn off builtin functions.
22556 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22558 # How to pass a linker flag through the compiler.
22559 wl=$lt_lt_prog_compiler_wl_CXX
22561 # Additional compiler flags for building library objects.
22562 pic_flag=$lt_lt_prog_compiler_pic_CXX
22564 # Compiler flag to prevent dynamic linking.
22565 link_static_flag=$lt_lt_prog_compiler_static_CXX
22567 # Does compiler simultaneously support -c and -o options?
22568 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22570 # Whether or not to add -lc for building shared libraries.
22571 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22573 # Whether or not to disallow shared libs when runtime libs are static.
22574 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22576 # Compiler flag to allow reflexive dlopens.
22577 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22579 # Compiler flag to generate shared objects directly from archives.
22580 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22582 # Whether the compiler copes with passing no objects directly.
22583 compiler_needs_object=$lt_compiler_needs_object_CXX
22585 # Create an old-style archive from a shared archive.
22586 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22588 # Create a temporary old-style archive to link instead of a shared archive.
22589 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22591 # Commands used to build a shared archive.
22592 archive_cmds=$lt_archive_cmds_CXX
22593 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22595 # Commands used to build a loadable module if different from building
22596 # a shared archive.
22597 module_cmds=$lt_module_cmds_CXX
22598 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22600 # Whether we are building with GNU ld or not.
22601 with_gnu_ld=$lt_with_gnu_ld_CXX
22603 # Flag that allows shared libraries with undefined symbols to be built.
22604 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22606 # Flag that enforces no undefined symbols.
22607 no_undefined_flag=$lt_no_undefined_flag_CXX
22609 # Flag to hardcode \$libdir into a binary during linking.
22610 # This must work even if \$libdir does not exist
22611 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22613 # If ld is used when linking, flag to hardcode \$libdir into a binary
22614 # during linking. This must work even if \$libdir does not exist.
22615 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
22617 # Whether we need a single "-rpath" flag with a separated argument.
22618 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22620 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22621 # DIR into the resulting binary.
22622 hardcode_direct=$hardcode_direct_CXX
22624 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22625 # DIR into the resulting binary and the resulting library dependency is
22626 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22627 # library is relocated.
22628 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22630 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22631 # into the resulting binary.
22632 hardcode_minus_L=$hardcode_minus_L_CXX
22634 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22635 # into the resulting binary.
22636 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22638 # Set to "yes" if building a shared library automatically hardcodes DIR
22639 # into the library and all subsequent libraries and executables linked
22641 hardcode_automatic=$hardcode_automatic_CXX
22643 # Set to yes if linker adds runtime paths of dependent libraries
22644 # to runtime path list.
22645 inherit_rpath=$inherit_rpath_CXX
22647 # Whether libtool must link a program against all its dependency libraries.
22648 link_all_deplibs=$link_all_deplibs_CXX
22650 # Fix the shell variable \$srcfile for the compiler.
22651 fix_srcfile_path=$lt_fix_srcfile_path_CXX
22653 # Set to "yes" if exported symbols are required.
22654 always_export_symbols=$always_export_symbols_CXX
22656 # The commands to list exported symbols.
22657 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22659 # Symbols that should not be listed in the preloaded symbols.
22660 exclude_expsyms=$lt_exclude_expsyms_CXX
22662 # Symbols that must always be exported.
22663 include_expsyms=$lt_include_expsyms_CXX
22665 # Commands necessary for linking programs (against libraries) with templates.
22666 prelink_cmds=$lt_prelink_cmds_CXX
22668 # Specify filename containing input files.
22669 file_list_spec=$lt_file_list_spec_CXX
22671 # How to hardcode a shared library path into an executable.
22672 hardcode_action=$hardcode_action_CXX
22674 # The directories searched by this compiler when creating a shared library.
22675 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22677 # Dependencies to place before and after the objects being linked to
22678 # create a shared library.
22679 predep_objects=$lt_predep_objects_CXX
22680 postdep_objects=$lt_postdep_objects_CXX
22681 predeps=$lt_predeps_CXX
22682 postdeps=$lt_postdeps_CXX
22684 # The library search path used internally by the compiler when linking
22685 # a shared library.
22686 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22688 # ### END LIBTOOL TAG CONFIG: CXX
22699 ac_clean_files=$ac_clean_files_save
22701 test $ac_write_fail = 0 ||
22702 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
22705 # configure is writing to config.log, and then calls config.status.
22706 # config.status does its own redirection, appending to config.log.
22707 # Unfortunately, on DOS this fails, as config.log is still kept open
22708 # by configure, so config.status won't be able to write to it; its
22709 # output is simply discarded. So we exec the FD to /dev/null,
22710 # effectively closing config.log, so it can be properly (re)opened and
22711 # appended to by config.status. When coming back to configure, we
22712 # need to make the FD available again.
22713 if test "$no_create" != yes; then
22715 ac_config_status_args=
22716 test "$silent" = yes &&
22717 ac_config_status_args="$ac_config_status_args --quiet"
22719 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22721 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22722 # would make configure fail if this is the last instruction.
22723 $ac_cs_success || as_fn_exit $?
22725 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22727 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}