2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for fuse 2.9.6.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir=.
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
246 if test "x$CONFIG_SHELL" != x; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
256 *v*x* | *x*v* ) as_opts=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir=./$as_dir;;
329 test -d "$as_dir" || eval $as_mkdir_p || {
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
406 as_val=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status=$1; test $as_status -eq 0 && as_status=1
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
537 elif ln conf$$.file conf$$ 2>/dev/null; then
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
551 test -d ./-p && rmdir ./-p
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix=/usr/local
580 ac_config_libobj_dir=.
587 # Identity of this package.
589 PACKAGE_TARNAME='fuse'
590 PACKAGE_VERSION='2.9.6'
591 PACKAGE_STRING='fuse 2.9.6'
595 # Factoring default headers for most tests.
596 ac_includes_default="\
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
608 # ifdef HAVE_STDLIB_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
631 ac_subst_vars='am__EXEEXT_FALSE
702 INSTALL_STRIP_PROGRAM
756 program_transform_name
769 enable_option_checking
775 enable_dependency_tracking
788 ac_precious_vars='build_alias
799 # Initialize some variables set by options.
801 ac_init_version=false
802 ac_unrecognized_opts=
804 # The variables have the same names as the options, with
805 # dashes changed to underlines.
813 program_transform_name=s,x,x,
821 # Installation directory options.
822 # These are left unexpanded so users can "make install exec_prefix=/foo"
823 # and all the variables that are supposed to be based on exec_prefix
824 # by default will actually change.
825 # Use braces instead of parens because sh, perl, etc. also accept them.
826 # (The list follows the same order as the GNU Coding Standards.)
827 bindir='${exec_prefix}/bin'
828 sbindir='${exec_prefix}/sbin'
829 libexecdir='${exec_prefix}/libexec'
830 datarootdir='${prefix}/share'
831 datadir='${datarootdir}'
832 sysconfdir='${prefix}/etc'
833 sharedstatedir='${prefix}/com'
834 localstatedir='${prefix}/var'
835 includedir='${prefix}/include'
836 oldincludedir='/usr/include'
837 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
838 infodir='${datarootdir}/info'
843 libdir='${exec_prefix}/lib'
844 localedir='${datarootdir}/locale'
845 mandir='${datarootdir}/man'
851 # If the previous option needs an argument, assign it.
852 if test -n "$ac_prev"; then
853 eval $ac_prev=\$ac_option
859 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
864 # Accept the important Cygnus configure options, so we can diagnose typos.
866 case $ac_dashdash$ac_option in
870 -bindir | --bindir | --bindi | --bind | --bin | --bi)
872 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
875 -build | --build | --buil | --bui | --bu)
876 ac_prev=build_alias ;;
877 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
878 build_alias=$ac_optarg ;;
880 -cache-file | --cache-file | --cache-fil | --cache-fi \
881 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
882 ac_prev=cache_file ;;
883 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
884 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
885 cache_file=$ac_optarg ;;
888 cache_file=config.cache ;;
890 -datadir | --datadir | --datadi | --datad)
892 -datadir=* | --datadir=* | --datadi=* | --datad=*)
893 datadir=$ac_optarg ;;
895 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
896 | --dataroo | --dataro | --datar)
897 ac_prev=datarootdir ;;
898 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
899 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
900 datarootdir=$ac_optarg ;;
902 -disable-* | --disable-*)
903 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
904 # Reject names that are not valid shell variable names.
905 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
906 as_fn_error $? "invalid feature name: $ac_useropt"
907 ac_useropt_orig=$ac_useropt
908 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
909 case $ac_user_opts in
913 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
914 ac_unrecognized_sep=', ';;
916 eval enable_$ac_useropt=no ;;
918 -docdir | --docdir | --docdi | --doc | --do)
920 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
923 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
925 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
928 -enable-* | --enable-*)
929 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
930 # Reject names that are not valid shell variable names.
931 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
932 as_fn_error $? "invalid feature name: $ac_useropt"
933 ac_useropt_orig=$ac_useropt
934 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
935 case $ac_user_opts in
939 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
940 ac_unrecognized_sep=', ';;
942 eval enable_$ac_useropt=\$ac_optarg ;;
944 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
945 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
946 | --exec | --exe | --ex)
947 ac_prev=exec_prefix ;;
948 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
949 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
950 | --exec=* | --exe=* | --ex=*)
951 exec_prefix=$ac_optarg ;;
953 -gas | --gas | --ga | --g)
954 # Obsolete; use --with-gas.
957 -help | --help | --hel | --he | -h)
959 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
960 ac_init_help=recursive ;;
961 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
962 ac_init_help=short ;;
964 -host | --host | --hos | --ho)
965 ac_prev=host_alias ;;
966 -host=* | --host=* | --hos=* | --ho=*)
967 host_alias=$ac_optarg ;;
969 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
971 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
973 htmldir=$ac_optarg ;;
975 -includedir | --includedir | --includedi | --included | --include \
976 | --includ | --inclu | --incl | --inc)
977 ac_prev=includedir ;;
978 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
979 | --includ=* | --inclu=* | --incl=* | --inc=*)
980 includedir=$ac_optarg ;;
982 -infodir | --infodir | --infodi | --infod | --info | --inf)
984 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
985 infodir=$ac_optarg ;;
987 -libdir | --libdir | --libdi | --libd)
989 -libdir=* | --libdir=* | --libdi=* | --libd=*)
992 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
993 | --libexe | --libex | --libe)
994 ac_prev=libexecdir ;;
995 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
996 | --libexe=* | --libex=* | --libe=*)
997 libexecdir=$ac_optarg ;;
999 -localedir | --localedir | --localedi | --localed | --locale)
1000 ac_prev=localedir ;;
1001 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1002 localedir=$ac_optarg ;;
1004 -localstatedir | --localstatedir | --localstatedi | --localstated \
1005 | --localstate | --localstat | --localsta | --localst | --locals)
1006 ac_prev=localstatedir ;;
1007 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1008 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1009 localstatedir=$ac_optarg ;;
1011 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1013 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1014 mandir=$ac_optarg ;;
1016 -nfp | --nfp | --nf)
1017 # Obsolete; use --without-fp.
1020 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1021 | --no-cr | --no-c | -n)
1024 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1025 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1028 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1029 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1030 | --oldin | --oldi | --old | --ol | --o)
1031 ac_prev=oldincludedir ;;
1032 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1033 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1034 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1035 oldincludedir=$ac_optarg ;;
1037 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1039 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1040 prefix=$ac_optarg ;;
1042 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1043 | --program-pre | --program-pr | --program-p)
1044 ac_prev=program_prefix ;;
1045 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1046 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1047 program_prefix=$ac_optarg ;;
1049 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1050 | --program-suf | --program-su | --program-s)
1051 ac_prev=program_suffix ;;
1052 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1053 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1054 program_suffix=$ac_optarg ;;
1056 -program-transform-name | --program-transform-name \
1057 | --program-transform-nam | --program-transform-na \
1058 | --program-transform-n | --program-transform- \
1059 | --program-transform | --program-transfor \
1060 | --program-transfo | --program-transf \
1061 | --program-trans | --program-tran \
1062 | --progr-tra | --program-tr | --program-t)
1063 ac_prev=program_transform_name ;;
1064 -program-transform-name=* | --program-transform-name=* \
1065 | --program-transform-nam=* | --program-transform-na=* \
1066 | --program-transform-n=* | --program-transform-=* \
1067 | --program-transform=* | --program-transfor=* \
1068 | --program-transfo=* | --program-transf=* \
1069 | --program-trans=* | --program-tran=* \
1070 | --progr-tra=* | --program-tr=* | --program-t=*)
1071 program_transform_name=$ac_optarg ;;
1073 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1075 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1076 pdfdir=$ac_optarg ;;
1078 -psdir | --psdir | --psdi | --psd | --ps)
1080 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1083 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1084 | -silent | --silent | --silen | --sile | --sil)
1087 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1089 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1091 sbindir=$ac_optarg ;;
1093 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1094 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1095 | --sharedst | --shareds | --shared | --share | --shar \
1097 ac_prev=sharedstatedir ;;
1098 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1099 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1100 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1102 sharedstatedir=$ac_optarg ;;
1104 -site | --site | --sit)
1106 -site=* | --site=* | --sit=*)
1109 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1111 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1112 srcdir=$ac_optarg ;;
1114 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1115 | --syscon | --sysco | --sysc | --sys | --sy)
1116 ac_prev=sysconfdir ;;
1117 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1118 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1119 sysconfdir=$ac_optarg ;;
1121 -target | --target | --targe | --targ | --tar | --ta | --t)
1122 ac_prev=target_alias ;;
1123 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1124 target_alias=$ac_optarg ;;
1126 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1129 -version | --version | --versio | --versi | --vers | -V)
1130 ac_init_version=: ;;
1133 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1134 # Reject names that are not valid shell variable names.
1135 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136 as_fn_error $? "invalid package name: $ac_useropt"
1137 ac_useropt_orig=$ac_useropt
1138 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139 case $ac_user_opts in
1143 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1144 ac_unrecognized_sep=', ';;
1146 eval with_$ac_useropt=\$ac_optarg ;;
1148 -without-* | --without-*)
1149 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1152 as_fn_error $? "invalid package name: $ac_useropt"
1153 ac_useropt_orig=$ac_useropt
1154 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1155 case $ac_user_opts in
1159 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1160 ac_unrecognized_sep=', ';;
1162 eval with_$ac_useropt=no ;;
1165 # Obsolete; use --with-x.
1168 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1169 | --x-incl | --x-inc | --x-in | --x-i)
1170 ac_prev=x_includes ;;
1171 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1172 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1173 x_includes=$ac_optarg ;;
1175 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1176 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1177 ac_prev=x_libraries ;;
1178 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1179 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1180 x_libraries=$ac_optarg ;;
1182 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1183 Try \`$0 --help' for more information"
1187 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1188 # Reject names that are not valid shell variable names.
1189 case $ac_envvar in #(
1190 '' | [0-9]* | *[!_$as_cr_alnum]* )
1191 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1193 eval $ac_envvar=\$ac_optarg
1194 export $ac_envvar ;;
1197 # FIXME: should be removed in autoconf 3.0.
1198 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1199 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1200 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1201 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1207 if test -n "$ac_prev"; then
1208 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1209 as_fn_error $? "missing argument to $ac_option"
1212 if test -n "$ac_unrecognized_opts"; then
1213 case $enable_option_checking in
1215 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1216 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1220 # Check all directory arguments for consistency.
1221 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1222 datadir sysconfdir sharedstatedir localstatedir includedir \
1223 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1224 libdir localedir mandir
1226 eval ac_val=\$$ac_var
1227 # Remove trailing slashes.
1230 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1231 eval $ac_var=\$ac_val;;
1233 # Be sure to have absolute directory names.
1235 [\\/$]* | ?:[\\/]* ) continue;;
1236 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1238 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1241 # There might be people who depend on the old broken behavior: `$host'
1242 # used to hold the argument of --host etc.
1243 # FIXME: To remove some day.
1246 target=$target_alias
1248 # FIXME: To remove some day.
1249 if test "x$host_alias" != x; then
1250 if test "x$build_alias" = x; then
1251 cross_compiling=maybe
1252 elif test "x$build_alias" != "x$host_alias"; then
1258 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1260 test "$silent" = yes && exec 6>/dev/null
1263 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1264 ac_ls_di=`ls -di .` &&
1265 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1266 as_fn_error $? "working directory cannot be determined"
1267 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1268 as_fn_error $? "pwd does not report name of working directory"
1271 # Find the source files, if location was not specified.
1272 if test -z "$srcdir"; then
1273 ac_srcdir_defaulted=yes
1274 # Try the directory containing this script, then the parent directory.
1275 ac_confdir=`$as_dirname -- "$as_myself" ||
1276 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1277 X"$as_myself" : 'X\(//\)[^/]' \| \
1278 X"$as_myself" : 'X\(//\)$' \| \
1279 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1280 $as_echo X"$as_myself" |
1281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1299 if test ! -r "$srcdir/$ac_unique_file"; then
1303 ac_srcdir_defaulted=no
1305 if test ! -r "$srcdir/$ac_unique_file"; then
1306 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1307 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1309 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1311 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1313 # When building in place, set srcdir=.
1314 if test "$ac_abs_confdir" = "$ac_pwd"; then
1317 # Remove unnecessary trailing slashes from srcdir.
1318 # Double slashes in file names in object file debugging info
1319 # mess up M-x gdb in Emacs.
1321 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1323 for ac_var in $ac_precious_vars; do
1324 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1325 eval ac_env_${ac_var}_value=\$${ac_var}
1326 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1327 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1331 # Report the --help message.
1333 if test "$ac_init_help" = "long"; then
1334 # Omit some internal or obsolete options to make the list less imposing.
1335 # This message is too long to be a string in the A/UX 3.1 sh.
1337 \`configure' configures fuse 2.9.6 to adapt to many kinds of systems.
1339 Usage: $0 [OPTION]... [VAR=VALUE]...
1341 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1342 VAR=VALUE. See below for descriptions of some of the useful variables.
1344 Defaults for the options are specified in brackets.
1347 -h, --help display this help and exit
1348 --help=short display options specific to this package
1349 --help=recursive display the short help of all the included packages
1350 -V, --version display version information and exit
1351 -q, --quiet, --silent do not print \`checking ...' messages
1352 --cache-file=FILE cache test results in FILE [disabled]
1353 -C, --config-cache alias for \`--cache-file=config.cache'
1354 -n, --no-create do not create output files
1355 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1357 Installation directories:
1358 --prefix=PREFIX install architecture-independent files in PREFIX
1359 [$ac_default_prefix]
1360 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1363 By default, \`make install' will install all the files in
1364 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1365 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1366 for instance \`--prefix=\$HOME'.
1368 For better control, use the options below.
1370 Fine tuning of the installation directories:
1371 --bindir=DIR user executables [EPREFIX/bin]
1372 --sbindir=DIR system admin executables [EPREFIX/sbin]
1373 --libexecdir=DIR program executables [EPREFIX/libexec]
1374 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1375 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1376 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1377 --libdir=DIR object code libraries [EPREFIX/lib]
1378 --includedir=DIR C header files [PREFIX/include]
1379 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1380 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1381 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1382 --infodir=DIR info documentation [DATAROOTDIR/info]
1383 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1384 --mandir=DIR man documentation [DATAROOTDIR/man]
1385 --docdir=DIR documentation root [DATAROOTDIR/doc/fuse]
1386 --htmldir=DIR html documentation [DOCDIR]
1387 --dvidir=DIR dvi documentation [DOCDIR]
1388 --pdfdir=DIR pdf documentation [DOCDIR]
1389 --psdir=DIR ps documentation [DOCDIR]
1395 --program-prefix=PREFIX prepend PREFIX to installed program names
1396 --program-suffix=SUFFIX append SUFFIX to installed program names
1397 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1400 --build=BUILD configure for building on BUILD [guessed]
1401 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1402 --target=TARGET configure for building compilers for TARGET [HOST]
1406 if test -n "$ac_init_help"; then
1407 case $ac_init_help in
1408 short | recursive ) echo "Configuration of fuse 2.9.6:";;
1413 --disable-option-checking ignore unrecognized --enable/--with options
1414 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1415 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1416 --enable-silent-rules less verbose build output (undo: "make V=1")
1417 --disable-silent-rules verbose build output (undo: "make V=0")
1418 --enable-shared[=PKGS] build shared libraries [default=yes]
1419 --enable-static[=PKGS] build static libraries [default=yes]
1420 --enable-fast-install[=PKGS]
1421 optimize for fast installation [default=yes]
1422 --enable-dependency-tracking
1423 do not reject slow dependency extractors
1424 --disable-dependency-tracking
1425 speeds up one-time build
1426 --disable-libtool-lock avoid locking (might break parallel builds)
1427 --disable-largefile omit support for large files
1428 --enable-lib Compile with library
1429 --enable-util Compile with util
1430 --enable-example Compile with examples
1431 --disable-mtab Disable and ignore usage of /etc/mtab
1432 --disable-rpath do not hardcode runtime library paths
1435 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1436 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1437 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1439 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1440 --with-sysroot=DIR Search for dependent libraries within DIR
1441 (or the compiler's sysroot if not specified).
1442 --with-pkgconfigdir=DIR pkgconfig file in DIR [LIBDIR/pkgconfig]
1443 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1444 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1445 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1446 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1448 Some influential environment variables:
1449 CC C compiler command
1450 CFLAGS C compiler flags
1451 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1452 nonstandard directory <lib dir>
1453 LIBS libraries to pass to the linker, e.g. -l<library>
1454 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1455 you have headers in a nonstandard directory <include dir>
1458 Use these variables to override the choices made by `configure' or to help
1459 it to find libraries and programs with nonstandard names/locations.
1461 Report bugs to the package provider.
1466 if test "$ac_init_help" = "recursive"; then
1467 # If there are subdirs, report their specific --help.
1468 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1469 test -d "$ac_dir" ||
1470 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1475 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1477 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1478 # A ".." for each directory in $ac_dir_suffix.
1479 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1480 case $ac_top_builddir_sub in
1481 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1482 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1485 ac_abs_top_builddir=$ac_pwd
1486 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1487 # for backward compatibility:
1488 ac_top_builddir=$ac_top_build_prefix
1491 .) # We are building in place.
1493 ac_top_srcdir=$ac_top_builddir_sub
1494 ac_abs_top_srcdir=$ac_pwd ;;
1495 [\\/]* | ?:[\\/]* ) # Absolute name.
1496 ac_srcdir=$srcdir$ac_dir_suffix;
1497 ac_top_srcdir=$srcdir
1498 ac_abs_top_srcdir=$srcdir ;;
1500 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1501 ac_top_srcdir=$ac_top_build_prefix$srcdir
1502 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1504 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1506 cd "$ac_dir" || { ac_status=$?; continue; }
1507 # Check for guested configure.
1508 if test -f "$ac_srcdir/configure.gnu"; then
1510 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1511 elif test -f "$ac_srcdir/configure"; then
1513 $SHELL "$ac_srcdir/configure" --help=recursive
1515 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1517 cd "$ac_pwd" || { ac_status=$?; break; }
1521 test -n "$ac_init_help" && exit $ac_status
1522 if $ac_init_version; then
1524 fuse configure 2.9.6
1525 generated by GNU Autoconf 2.69
1527 Copyright (C) 2012 Free Software Foundation, Inc.
1528 This configure script is free software; the Free Software Foundation
1529 gives unlimited permission to copy, distribute and modify it.
1534 ## ------------------------ ##
1535 ## Autoconf initialization. ##
1536 ## ------------------------ ##
1538 # ac_fn_c_try_compile LINENO
1539 # --------------------------
1540 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1541 ac_fn_c_try_compile ()
1543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1544 rm -f conftest.$ac_objext
1545 if { { ac_try="$ac_compile"
1547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1548 *) ac_try_echo=$ac_try;;
1550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1551 $as_echo "$ac_try_echo"; } >&5
1552 (eval "$ac_compile") 2>conftest.err
1554 if test -s conftest.err; then
1555 grep -v '^ *+' conftest.err >conftest.er1
1556 cat conftest.er1 >&5
1557 mv -f conftest.er1 conftest.err
1559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1560 test $ac_status = 0; } && {
1561 test -z "$ac_c_werror_flag" ||
1562 test ! -s conftest.err
1563 } && test -s conftest.$ac_objext; then :
1566 $as_echo "$as_me: failed program was:" >&5
1567 sed 's/^/| /' conftest.$ac_ext >&5
1571 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1572 as_fn_set_status $ac_retval
1574 } # ac_fn_c_try_compile
1576 # ac_fn_c_try_link LINENO
1577 # -----------------------
1578 # Try to link conftest.$ac_ext, and return whether this succeeded.
1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582 rm -f conftest.$ac_objext conftest$ac_exeext
1583 if { { ac_try="$ac_link"
1585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1586 *) ac_try_echo=$ac_try;;
1588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1589 $as_echo "$ac_try_echo"; } >&5
1590 (eval "$ac_link") 2>conftest.err
1592 if test -s conftest.err; then
1593 grep -v '^ *+' conftest.err >conftest.er1
1594 cat conftest.er1 >&5
1595 mv -f conftest.er1 conftest.err
1597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1598 test $ac_status = 0; } && {
1599 test -z "$ac_c_werror_flag" ||
1600 test ! -s conftest.err
1601 } && test -s conftest$ac_exeext && {
1602 test "$cross_compiling" = yes ||
1603 test -x conftest$ac_exeext
1607 $as_echo "$as_me: failed program was:" >&5
1608 sed 's/^/| /' conftest.$ac_ext >&5
1612 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1613 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1614 # interfere with the next link command; also delete a directory that is
1615 # left behind by Apple's compiler. We do this before executing the actions.
1616 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1617 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1618 as_fn_set_status $ac_retval
1620 } # ac_fn_c_try_link
1622 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1623 # -------------------------------------------------------
1624 # Tests whether HEADER exists and can be compiled using the include files in
1625 # INCLUDES, setting the cache variable VAR accordingly.
1626 ac_fn_c_check_header_compile ()
1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1630 $as_echo_n "checking for $2... " >&6; }
1631 if eval \${$3+:} false; then :
1632 $as_echo_n "(cached) " >&6
1634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1635 /* end confdefs.h. */
1639 if ac_fn_c_try_compile "$LINENO"; then :
1644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1648 $as_echo "$ac_res" >&6; }
1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651 } # ac_fn_c_check_header_compile
1653 # ac_fn_c_try_cpp LINENO
1654 # ----------------------
1655 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659 if { { ac_try="$ac_cpp conftest.$ac_ext"
1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662 *) ac_try_echo=$ac_try;;
1664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665 $as_echo "$ac_try_echo"; } >&5
1666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1668 if test -s conftest.err; then
1669 grep -v '^ *+' conftest.err >conftest.er1
1670 cat conftest.er1 >&5
1671 mv -f conftest.er1 conftest.err
1673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674 test $ac_status = 0; } > conftest.i && {
1675 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1676 test ! -s conftest.err
1680 $as_echo "$as_me: failed program was:" >&5
1681 sed 's/^/| /' conftest.$ac_ext >&5
1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686 as_fn_set_status $ac_retval
1690 # ac_fn_c_try_run LINENO
1691 # ----------------------
1692 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1693 # that executables *can* be run.
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 if { { ac_try="$ac_link"
1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700 *) ac_try_echo=$ac_try;;
1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 $as_echo "$ac_try_echo"; } >&5
1704 (eval "$ac_link") 2>&5
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1708 { { case "(($ac_try" in
1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710 *) ac_try_echo=$ac_try;;
1712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713 $as_echo "$ac_try_echo"; } >&5
1714 (eval "$ac_try") 2>&5
1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717 test $ac_status = 0; }; }; then :
1720 $as_echo "$as_me: program exited with status $ac_status" >&5
1721 $as_echo "$as_me: failed program was:" >&5
1722 sed 's/^/| /' conftest.$ac_ext >&5
1724 ac_retval=$ac_status
1726 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728 as_fn_set_status $ac_retval
1732 # ac_fn_c_check_func LINENO FUNC VAR
1733 # ----------------------------------
1734 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1735 ac_fn_c_check_func ()
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739 $as_echo_n "checking for $2... " >&6; }
1740 if eval \${$3+:} false; then :
1741 $as_echo_n "(cached) " >&6
1743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744 /* end confdefs.h. */
1745 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1746 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1747 #define $2 innocuous_$2
1749 /* System header to define __stub macros and hopefully few prototypes,
1750 which can conflict with char $2 (); below.
1751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1752 <limits.h> exists even on freestanding compilers. */
1755 # include <limits.h>
1757 # include <assert.h>
1762 /* Override any GCC internal prototype to avoid an error.
1763 Use char because int might match the return type of a GCC
1764 builtin and then its argument prototype would still apply. */
1769 /* The GNU C library defines this for functions which it implements
1770 to always fail with ENOSYS. Some functions are actually named
1771 something starting with __ and the normal name is an alias. */
1772 #if defined __stub_$2 || defined __stub___$2
1784 if ac_fn_c_try_link "$LINENO"; then :
1789 rm -f core conftest.err conftest.$ac_objext \
1790 conftest$ac_exeext conftest.$ac_ext
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1794 $as_echo "$ac_res" >&6; }
1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797 } # ac_fn_c_check_func
1799 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1800 # ----------------------------------------------------
1801 # Tries to find if the field MEMBER exists in type AGGR, after including
1802 # INCLUDES, setting cache variable VAR accordingly.
1803 ac_fn_c_check_member ()
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1807 $as_echo_n "checking for $2.$3... " >&6; }
1808 if eval \${$4+:} false; then :
1809 $as_echo_n "(cached) " >&6
1811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812 /* end confdefs.h. */
1824 if ac_fn_c_try_compile "$LINENO"; then :
1827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828 /* end confdefs.h. */
1834 if (sizeof ac_aggr.$3)
1840 if ac_fn_c_try_compile "$LINENO"; then :
1845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1851 $as_echo "$ac_res" >&6; }
1852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854 } # ac_fn_c_check_member
1855 cat >config.log <<_ACEOF
1856 This file contains any messages produced by compilers while
1857 running configure, to aid debugging if configure makes a mistake.
1859 It was created by fuse $as_me 2.9.6, which was
1860 generated by GNU Autoconf 2.69. Invocation command line was
1872 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1873 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1874 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1875 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1876 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1878 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1879 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1881 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1882 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1883 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1884 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1885 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1886 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1887 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1895 test -z "$as_dir" && as_dir=.
1896 $as_echo "PATH: $as_dir"
1912 # Keep a trace of the command line.
1913 # Strip out --no-create and --no-recursion so they do not pile up.
1914 # Strip out --silent because we don't want to record it for future runs.
1915 # Also quote any args containing shell meta-characters.
1916 # Make two passes to allow for proper duplicate-argument suppression.
1920 ac_must_keep_next=false
1926 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1927 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1928 | -silent | --silent | --silen | --sile | --sil)
1931 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1934 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1936 as_fn_append ac_configure_args1 " '$ac_arg'"
1937 if test $ac_must_keep_next = true; then
1938 ac_must_keep_next=false # Got value, back to normal.
1941 *=* | --config-cache | -C | -disable-* | --disable-* \
1942 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1943 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1944 | -with-* | --with-* | -without-* | --without-* | --x)
1945 case "$ac_configure_args0 " in
1946 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1949 -* ) ac_must_keep_next=true ;;
1952 as_fn_append ac_configure_args " '$ac_arg'"
1957 { ac_configure_args0=; unset ac_configure_args0;}
1958 { ac_configure_args1=; unset ac_configure_args1;}
1960 # When interrupted or exit'd, cleanup temporary files, and complete
1961 # config.log. We remove comments because anyway the quotes in there
1962 # would cause problems or look ugly.
1963 # WARNING: Use '\'' to represent an apostrophe within the trap.
1964 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1965 trap 'exit_status=$?
1966 # Save into config.log some information that might help in debugging.
1970 $as_echo "## ---------------- ##
1971 ## Cache variables. ##
1972 ## ---------------- ##"
1974 # The following way of writing the cache mishandles newlines in values,
1976 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1977 eval ac_val=\$$ac_var
1981 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1982 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1985 _ | IFS | as_nl) ;; #(
1986 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1987 *) { eval $ac_var=; unset $ac_var;} ;;
1992 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1993 *${as_nl}ac_space=\ *)
1995 "s/'\''/'\''\\\\'\'''\''/g;
1996 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1999 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2006 $as_echo "## ----------------- ##
2007 ## Output variables. ##
2008 ## ----------------- ##"
2010 for ac_var in $ac_subst_vars
2012 eval ac_val=\$$ac_var
2014 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2016 $as_echo "$ac_var='\''$ac_val'\''"
2020 if test -n "$ac_subst_files"; then
2021 $as_echo "## ------------------- ##
2022 ## File substitutions. ##
2023 ## ------------------- ##"
2025 for ac_var in $ac_subst_files
2027 eval ac_val=\$$ac_var
2029 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2031 $as_echo "$ac_var='\''$ac_val'\''"
2036 if test -s confdefs.h; then
2037 $as_echo "## ----------- ##
2044 test "$ac_signal" != 0 &&
2045 $as_echo "$as_me: caught signal $ac_signal"
2046 $as_echo "$as_me: exit $exit_status"
2048 rm -f core *.core core.conftest.* &&
2049 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2052 for ac_signal in 1 2 13 15; do
2053 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2057 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2058 rm -f -r conftest* confdefs.h
2060 $as_echo "/* confdefs.h */" > confdefs.h
2062 # Predefined preprocessor variables.
2064 cat >>confdefs.h <<_ACEOF
2065 #define PACKAGE_NAME "$PACKAGE_NAME"
2068 cat >>confdefs.h <<_ACEOF
2069 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2072 cat >>confdefs.h <<_ACEOF
2073 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2076 cat >>confdefs.h <<_ACEOF
2077 #define PACKAGE_STRING "$PACKAGE_STRING"
2080 cat >>confdefs.h <<_ACEOF
2081 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2084 cat >>confdefs.h <<_ACEOF
2085 #define PACKAGE_URL "$PACKAGE_URL"
2089 # Let the site file select an alternate cache file if it wants to.
2090 # Prefer an explicitly selected file to automatically selected ones.
2093 if test -n "$CONFIG_SITE"; then
2094 # We do not want a PATH search for config.site.
2095 case $CONFIG_SITE in #((
2096 -*) ac_site_file1=./$CONFIG_SITE;;
2097 */*) ac_site_file1=$CONFIG_SITE;;
2098 *) ac_site_file1=./$CONFIG_SITE;;
2100 elif test "x$prefix" != xNONE; then
2101 ac_site_file1=$prefix/share/config.site
2102 ac_site_file2=$prefix/etc/config.site
2104 ac_site_file1=$ac_default_prefix/share/config.site
2105 ac_site_file2=$ac_default_prefix/etc/config.site
2107 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2109 test "x$ac_site_file" = xNONE && continue
2110 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2112 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2113 sed 's/^/| /' "$ac_site_file" >&5
2115 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2116 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2117 as_fn_error $? "failed to load site script $ac_site_file
2118 See \`config.log' for more details" "$LINENO" 5; }
2122 if test -r "$cache_file"; then
2123 # Some versions of bash will fail to source /dev/null (special files
2124 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2125 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2127 $as_echo "$as_me: loading cache $cache_file" >&6;}
2129 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2130 *) . "./$cache_file";;
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2135 $as_echo "$as_me: creating cache $cache_file" >&6;}
2139 # Check that the precious variables saved in the cache have kept the same
2141 ac_cache_corrupted=false
2142 for ac_var in $ac_precious_vars; do
2143 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2144 eval ac_new_set=\$ac_env_${ac_var}_set
2145 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2146 eval ac_new_val=\$ac_env_${ac_var}_value
2147 case $ac_old_set,$ac_new_set in
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2150 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2151 ac_cache_corrupted=: ;;
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2154 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2155 ac_cache_corrupted=: ;;
2158 if test "x$ac_old_val" != "x$ac_new_val"; then
2159 # differences in whitespace do not lead to failure.
2160 ac_old_val_w=`echo x $ac_old_val`
2161 ac_new_val_w=`echo x $ac_new_val`
2162 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2164 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2165 ac_cache_corrupted=:
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2168 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2169 eval $ac_var=\$ac_old_val
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2172 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2174 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2177 # Pass precious variables to config.status.
2178 if test "$ac_new_set" = set; then
2180 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2181 *) ac_arg=$ac_var=$ac_new_val ;;
2183 case " $ac_configure_args " in
2184 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2185 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2189 if $ac_cache_corrupted; then
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2193 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2194 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2196 ## -------------------- ##
2197 ## Main body of script. ##
2198 ## -------------------- ##
2201 ac_cpp='$CPP $CPPFLAGS'
2202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2211 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2212 if test -f "$ac_dir/install-sh"; then
2214 ac_install_sh="$ac_aux_dir/install-sh -c"
2216 elif test -f "$ac_dir/install.sh"; then
2218 ac_install_sh="$ac_aux_dir/install.sh -c"
2220 elif test -f "$ac_dir/shtool"; then
2222 ac_install_sh="$ac_aux_dir/shtool install -c"
2226 if test -z "$ac_aux_dir"; then
2227 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2230 # These three variables are undocumented and unsupported,
2231 # and are intended to be withdrawn in a future Autoconf release.
2232 # They can cause serious problems if a builder's source tree is in a directory
2233 # whose full name contains unusual characters.
2234 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2235 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2236 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2239 # Make sure we can run config.sub.
2240 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2241 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2244 $as_echo_n "checking build system type... " >&6; }
2245 if ${ac_cv_build+:} false; then :
2246 $as_echo_n "(cached) " >&6
2248 ac_build_alias=$build_alias
2249 test "x$ac_build_alias" = x &&
2250 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2251 test "x$ac_build_alias" = x &&
2252 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2253 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2254 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2258 $as_echo "$ac_cv_build" >&6; }
2259 case $ac_cv_build in
2261 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2264 ac_save_IFS=$IFS; IFS='-'
2270 # Remember, the first character of IFS is used to create $*,
2271 # except with old shells:
2274 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2278 $as_echo_n "checking host system type... " >&6; }
2279 if ${ac_cv_host+:} false; then :
2280 $as_echo_n "(cached) " >&6
2282 if test "x$host_alias" = x; then
2283 ac_cv_host=$ac_cv_build
2285 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2286 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2291 $as_echo "$ac_cv_host" >&6; }
2294 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2297 ac_save_IFS=$IFS; IFS='-'
2303 # Remember, the first character of IFS is used to create $*,
2304 # except with old shells:
2307 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2311 $as_echo_n "checking target system type... " >&6; }
2312 if ${ac_cv_target+:} false; then :
2313 $as_echo_n "(cached) " >&6
2315 if test "x$target_alias" = x; then
2316 ac_cv_target=$ac_cv_host
2318 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2319 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2324 $as_echo "$ac_cv_target" >&6; }
2325 case $ac_cv_target in
2327 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2329 target=$ac_cv_target
2330 ac_save_IFS=$IFS; IFS='-'
2336 # Remember, the first character of IFS is used to create $*,
2337 # except with old shells:
2340 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2343 # The aliases save the names the user supplied, while $host etc.
2344 # will get canonicalized.
2345 test -n "$target_alias" &&
2346 test "$program_prefix$program_suffix$program_transform_name" = \
2348 program_prefix=${target_alias}-
2349 am__api_version='1.15'
2351 # Find a good install program. We prefer a C program (faster),
2352 # so one script is as good as another. But avoid the broken or
2353 # incompatible versions:
2354 # SysV /etc/install, /usr/sbin/install
2355 # SunOS /usr/etc/install
2356 # IRIX /sbin/install
2358 # AmigaOS /C/install, which installs bootblocks on floppy discs
2359 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2360 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2361 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2362 # OS/2's system install, which has a completely different semantic
2363 # ./install, which can be erroneously created by make from ./install.sh.
2364 # Reject install programs that cannot install multiple files.
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2366 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2367 if test -z "$INSTALL"; then
2368 if ${ac_cv_path_install+:} false; then :
2369 $as_echo_n "(cached) " >&6
2371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2375 test -z "$as_dir" && as_dir=.
2376 # Account for people who put trailing slashes in PATH elements.
2377 case $as_dir/ in #((
2378 ./ | .// | /[cC]/* | \
2379 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2380 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2383 # OSF1 and SCO ODT 3.0 have their own names for install.
2384 # Don't use installbsd from OSF since it installs stuff as root
2386 for ac_prog in ginstall scoinst install; do
2387 for ac_exec_ext in '' $ac_executable_extensions; do
2388 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2389 if test $ac_prog = install &&
2390 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2391 # AIX install. It has an incompatible calling convention.
2393 elif test $ac_prog = install &&
2394 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2395 # program-specific install script used by HP pwplus--don't use.
2398 rm -rf conftest.one conftest.two conftest.dir
2399 echo one > conftest.one
2400 echo two > conftest.two
2402 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2403 test -s conftest.one && test -s conftest.two &&
2404 test -s conftest.dir/conftest.one &&
2405 test -s conftest.dir/conftest.two
2407 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2420 rm -rf conftest.one conftest.two conftest.dir
2423 if test "${ac_cv_path_install+set}" = set; then
2424 INSTALL=$ac_cv_path_install
2426 # As a last resort, use the slow shell script. Don't cache a
2427 # value for INSTALL within a source directory, because that will
2428 # break other packages using the cache if that directory is
2429 # removed, or if the value is a relative name.
2430 INSTALL=$ac_install_sh
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2434 $as_echo "$INSTALL" >&6; }
2436 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2437 # It thinks the first close brace ends the variable substitution.
2438 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2440 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2442 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2445 $as_echo_n "checking whether build environment is sane... " >&6; }
2446 # Reject unsafe characters in $srcdir or the absolute working directory
2447 # name. Accept space and tab only in the latter.
2451 *[\\\"\#\$\&\'\`$am_lf]*)
2452 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2455 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2456 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2459 # Do 'set' in a subshell so we don't clobber the current shell's
2460 # arguments. Must try -L first in case configure is actually a
2461 # symlink; some systems play weird games with the mod time of symlinks
2462 # (eg FreeBSD returns the mod time of the symlink's containing
2466 for am_try in 1 2; do
2467 echo "timestamp, slept: $am_has_slept" > conftest.file
2468 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2469 if test "$*" = "X"; then
2471 set X `ls -t "$srcdir/configure" conftest.file`
2473 if test "$*" != "X $srcdir/configure conftest.file" \
2474 && test "$*" != "X conftest.file $srcdir/configure"; then
2476 # If neither matched, then we have a broken ls. This can happen
2477 # if, for instance, CONFIG_SHELL is bash and it inherits a
2478 # broken ls alias from the environment. This has actually
2479 # happened. Such a system could not be considered "sane".
2480 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2481 alias in your environment" "$LINENO" 5
2483 if test "$2" = conftest.file || test $am_try -eq 2; then
2490 test "$2" = conftest.file
2496 as_fn_error $? "newly created file is older than distributed files!
2497 Check your system clock" "$LINENO" 5
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2500 $as_echo "yes" >&6; }
2501 # If we didn't sleep, we still need to ensure time stamps of config.status and
2502 # generated files are strictly newer.
2504 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2511 test "$program_prefix" != NONE &&
2512 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2513 # Use a double $ so make ignores it.
2514 test "$program_suffix" != NONE &&
2515 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2516 # Double any \ or $.
2517 # By default was `s,x,x', remove it if useless.
2518 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2519 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2521 # Expand $ac_aux_dir to an absolute path.
2522 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2524 if test x"${MISSING+set}" != xset; then
2527 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2529 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2532 # Use eval to expand $SHELL
2533 if eval "$MISSING --is-lightweight"; then
2534 am_missing_run="$MISSING "
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2538 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2541 if test x"${install_sh}" != xset; then
2544 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2546 install_sh="\${SHELL} $am_aux_dir/install-sh"
2550 # Installed binaries are usually stripped using 'strip' when the user
2551 # run "make install-strip". However 'strip' might not be the right
2552 # tool to use in cross-compilation environments, therefore Automake
2553 # will honor the 'STRIP' environment variable to overrule this program.
2554 if test "$cross_compiling" != no; then
2555 if test -n "$ac_tool_prefix"; then
2556 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2557 set dummy ${ac_tool_prefix}strip; ac_word=$2
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2559 $as_echo_n "checking for $ac_word... " >&6; }
2560 if ${ac_cv_prog_STRIP+:} false; then :
2561 $as_echo_n "(cached) " >&6
2563 if test -n "$STRIP"; then
2564 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2570 test -z "$as_dir" && as_dir=.
2571 for ac_exec_ext in '' $ac_executable_extensions; do
2572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2573 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2583 STRIP=$ac_cv_prog_STRIP
2584 if test -n "$STRIP"; then
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2586 $as_echo "$STRIP" >&6; }
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2589 $as_echo "no" >&6; }
2594 if test -z "$ac_cv_prog_STRIP"; then
2596 # Extract the first word of "strip", so it can be a program name with args.
2597 set dummy strip; ac_word=$2
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2599 $as_echo_n "checking for $ac_word... " >&6; }
2600 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2601 $as_echo_n "(cached) " >&6
2603 if test -n "$ac_ct_STRIP"; then
2604 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610 test -z "$as_dir" && as_dir=.
2611 for ac_exec_ext in '' $ac_executable_extensions; do
2612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2613 ac_cv_prog_ac_ct_STRIP="strip"
2614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2623 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2624 if test -n "$ac_ct_STRIP"; then
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2626 $as_echo "$ac_ct_STRIP" >&6; }
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2629 $as_echo "no" >&6; }
2632 if test "x$ac_ct_STRIP" = x; then
2635 case $cross_compiling:$ac_tool_warned in
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2638 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2639 ac_tool_warned=yes ;;
2644 STRIP="$ac_cv_prog_STRIP"
2648 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2651 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2652 if test -z "$MKDIR_P"; then
2653 if ${ac_cv_path_mkdir+:} false; then :
2654 $as_echo_n "(cached) " >&6
2656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2660 test -z "$as_dir" && as_dir=.
2661 for ac_prog in mkdir gmkdir; do
2662 for ac_exec_ext in '' $ac_executable_extensions; do
2663 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2664 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2665 'mkdir (GNU coreutils) '* | \
2666 'mkdir (coreutils) '* | \
2667 'mkdir (fileutils) '4.1*)
2668 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2678 test -d ./--version && rmdir ./--version
2679 if test "${ac_cv_path_mkdir+set}" = set; then
2680 MKDIR_P="$ac_cv_path_mkdir -p"
2682 # As a last resort, use the slow shell script. Don't cache a
2683 # value for MKDIR_P within a source directory, because that will
2684 # break other packages using the cache if that directory is
2685 # removed, or if the value is a relative name.
2686 MKDIR_P="$ac_install_sh -d"
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2690 $as_echo "$MKDIR_P" >&6; }
2692 for ac_prog in gawk mawk nawk awk
2694 # Extract the first word of "$ac_prog", so it can be a program name with args.
2695 set dummy $ac_prog; ac_word=$2
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2697 $as_echo_n "checking for $ac_word... " >&6; }
2698 if ${ac_cv_prog_AWK+:} false; then :
2699 $as_echo_n "(cached) " >&6
2701 if test -n "$AWK"; then
2702 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2708 test -z "$as_dir" && as_dir=.
2709 for ac_exec_ext in '' $ac_executable_extensions; do
2710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2711 ac_cv_prog_AWK="$ac_prog"
2712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2722 if test -n "$AWK"; then
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2724 $as_echo "$AWK" >&6; }
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2727 $as_echo "no" >&6; }
2731 test -n "$AWK" && break
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2735 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2737 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2738 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2739 $as_echo_n "(cached) " >&6
2741 cat >conftest.make <<\_ACEOF
2744 @echo '@@@%%%=$(MAKE)=@@@%%%'
2746 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2747 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2749 eval ac_cv_prog_make_${ac_make}_set=yes;;
2751 eval ac_cv_prog_make_${ac_make}_set=no;;
2755 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2757 $as_echo "yes" >&6; }
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2761 $as_echo "no" >&6; }
2762 SET_MAKE="MAKE=${MAKE-make}"
2765 rm -rf .tst 2>/dev/null
2766 mkdir .tst 2>/dev/null
2767 if test -d .tst; then
2772 rmdir .tst 2>/dev/null
2774 # Check whether --enable-silent-rules was given.
2775 if test "${enable_silent_rules+set}" = set; then :
2776 enableval=$enable_silent_rules;
2779 case $enable_silent_rules in # (((
2780 yes) AM_DEFAULT_VERBOSITY=0;;
2781 no) AM_DEFAULT_VERBOSITY=1;;
2782 *) AM_DEFAULT_VERBOSITY=1;;
2784 am_make=${MAKE-make}
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2786 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2787 if ${am_cv_make_support_nested_variables+:} false; then :
2788 $as_echo_n "(cached) " >&6
2790 if $as_echo 'TRUE=$(BAR$(V))
2796 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2797 am_cv_make_support_nested_variables=yes
2799 am_cv_make_support_nested_variables=no
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2803 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2804 if test $am_cv_make_support_nested_variables = yes; then
2806 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2808 AM_V=$AM_DEFAULT_VERBOSITY
2809 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2813 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2814 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2815 # is not polluted with repeated "-I."
2816 am__isrc=' -I$(srcdir)'
2817 # test to see if srcdir already configured
2818 if test -f $srcdir/config.status; then
2819 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2823 # test whether we have cygpath
2824 if test -z "$CYGPATH_W"; then
2825 if (cygpath --version) >/dev/null 2>/dev/null; then
2826 CYGPATH_W='cygpath -w'
2833 # Define the identity of the package.
2838 cat >>confdefs.h <<_ACEOF
2839 #define PACKAGE "$PACKAGE"
2843 cat >>confdefs.h <<_ACEOF
2844 #define VERSION "$VERSION"
2847 # Some tools Automake needs.
2849 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2852 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2855 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2858 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2861 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2863 # For better backward compatibility. To be removed once Automake 1.9.x
2864 # dies out for good. For more background, see:
2865 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2866 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2867 mkdir_p='$(MKDIR_P)'
2869 # We need awk for the "check" target. The system "awk" is bad on
2871 # Always define AMTAR for backward compatibility. Yes, it's still used
2872 # in the wild :-( We should find a proper way to deprecate it ...
2876 # We'll loop over all known methods to create a tar archive until one works.
2877 _am_tools='gnutar pax cpio none'
2879 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2886 # POSIX will say in a future version that running "rm -f" with no argument
2887 # is OK; and we want to be able to make that assumption in our Makefile
2888 # recipes. So use an aggressive probe to check that the usage we want is
2889 # actually supported "in the wild" to an acceptable degree.
2890 # See automake bug#10828.
2891 # To make any issue more visible, cause the running configure to be aborted
2892 # by default if the 'rm' program in use doesn't match our expectations; the
2893 # user can still override this though.
2894 if rm -f && rm -fr && rm -rf; then : OK; else
2898 Your 'rm' program seems unable to run without file operands specified
2899 on the command line, even when the '-f' option is present. This is contrary
2900 to the behaviour of most rm programs out there, and not conforming with
2901 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2903 Please tell bug-automake@gnu.org about your system, including the value
2904 of your $PATH and any error possibly output before this message. This
2905 can help us improve future automake versions.
2908 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2909 echo 'Configuration will proceed anyway, since you have set the' >&2
2910 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2914 Aborting the configuration process, to ensure you take notice of the issue.
2916 You can download and install GNU coreutils to get an 'rm' implementation
2917 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2919 If you want to complete the configuration process using your problematic
2920 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2921 to "yes", and re-run configure.
2924 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2928 # Check whether --enable-silent-rules was given.
2929 if test "${enable_silent_rules+set}" = set; then :
2930 enableval=$enable_silent_rules;
2933 case $enable_silent_rules in # (((
2934 yes) AM_DEFAULT_VERBOSITY=0;;
2935 no) AM_DEFAULT_VERBOSITY=1;;
2936 *) AM_DEFAULT_VERBOSITY=0;;
2938 am_make=${MAKE-make}
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2940 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2941 if ${am_cv_make_support_nested_variables+:} false; then :
2942 $as_echo_n "(cached) " >&6
2944 if $as_echo 'TRUE=$(BAR$(V))
2950 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2951 am_cv_make_support_nested_variables=yes
2953 am_cv_make_support_nested_variables=no
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2957 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2958 if test $am_cv_make_support_nested_variables = yes; then
2960 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2962 AM_V=$AM_DEFAULT_VERBOSITY
2963 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2967 ac_config_headers="$ac_config_headers include/config.h"
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2973 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2978 macro_version='2.4.2'
2979 macro_revision='1.3337'
2993 ltmain="$ac_aux_dir/ltmain.sh"
2995 # Backslashify metacharacters that are still active within
2996 # double-quoted strings.
2997 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2999 # Same as above, but do not quote variable references.
3000 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3002 # Sed substitution to delay expansion of an escaped shell variable in a
3003 # double_quote_subst'ed string.
3004 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3006 # Sed substitution to delay expansion of an escaped single quote.
3007 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3009 # Sed substitution to avoid accidental globbing in evaled expressions
3010 no_glob_subst='s/\*/\\\*/g'
3012 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3013 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3014 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3017 $as_echo_n "checking how to print strings... " >&6; }
3018 # Test print first, because it will be a builtin if present.
3019 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3020 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3022 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3025 # Use this function as a fallback that always works.
3026 func_fallback_echo ()
3028 eval 'cat <<_LTECHO_EOF
3032 ECHO='func_fallback_echo'
3035 # func_echo_all arg...
3036 # Invoke $ECHO with all args, space-separated.
3043 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3044 $as_echo "printf" >&6; } ;;
3045 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3046 $as_echo "print -r" >&6; } ;;
3047 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3048 $as_echo "cat" >&6; } ;;
3064 DEPDIR="${am__leading_dot}deps"
3066 ac_config_commands="$ac_config_commands depfiles"
3069 am_make=${MAKE-make}
3070 cat > confinc << 'END'
3072 @echo this is the am__doit target
3075 # If we don't find an include directive, just comment out the code.
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3077 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3081 # First try GNU make style include.
3082 echo "include confinc" > confmf
3083 # Ignore all kinds of additional output from 'make'.
3084 case `$am_make -s -f confmf 2> /dev/null` in #(
3085 *the\ am__doit\ target*)
3091 # Now try BSD make style include.
3092 if test "$am__include" = "#"; then
3093 echo '.include "confinc"' > confmf
3094 case `$am_make -s -f confmf 2> /dev/null` in #(
3095 *the\ am__doit\ target*)
3096 am__include=.include
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3105 $as_echo "$_am_result" >&6; }
3106 rm -f confinc confmf
3108 # Check whether --enable-dependency-tracking was given.
3109 if test "${enable_dependency_tracking+set}" = set; then :
3110 enableval=$enable_dependency_tracking;
3113 if test "x$enable_dependency_tracking" != xno; then
3114 am_depcomp="$ac_aux_dir/depcomp"
3118 if test "x$enable_dependency_tracking" != xno; then
3128 ac_cpp='$CPP $CPPFLAGS'
3129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3132 if test -n "$ac_tool_prefix"; then
3133 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3134 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3136 $as_echo_n "checking for $ac_word... " >&6; }
3137 if ${ac_cv_prog_CC+:} false; then :
3138 $as_echo_n "(cached) " >&6
3140 if test -n "$CC"; then
3141 ac_cv_prog_CC="$CC" # Let the user override the test.
3143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147 test -z "$as_dir" && as_dir=.
3148 for ac_exec_ext in '' $ac_executable_extensions; do
3149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3150 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3161 if test -n "$CC"; then
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3163 $as_echo "$CC" >&6; }
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3166 $as_echo "no" >&6; }
3171 if test -z "$ac_cv_prog_CC"; then
3173 # Extract the first word of "gcc", so it can be a program name with args.
3174 set dummy gcc; ac_word=$2
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3176 $as_echo_n "checking for $ac_word... " >&6; }
3177 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3178 $as_echo_n "(cached) " >&6
3180 if test -n "$ac_ct_CC"; then
3181 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3187 test -z "$as_dir" && as_dir=.
3188 for ac_exec_ext in '' $ac_executable_extensions; do
3189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3190 ac_cv_prog_ac_ct_CC="gcc"
3191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3200 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3201 if test -n "$ac_ct_CC"; then
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3203 $as_echo "$ac_ct_CC" >&6; }
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3206 $as_echo "no" >&6; }
3209 if test "x$ac_ct_CC" = x; then
3212 case $cross_compiling:$ac_tool_warned in
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3216 ac_tool_warned=yes ;;
3224 if test -z "$CC"; then
3225 if test -n "$ac_tool_prefix"; then
3226 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3227 set dummy ${ac_tool_prefix}cc; ac_word=$2
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3229 $as_echo_n "checking for $ac_word... " >&6; }
3230 if ${ac_cv_prog_CC+:} false; then :
3231 $as_echo_n "(cached) " >&6
3233 if test -n "$CC"; then
3234 ac_cv_prog_CC="$CC" # Let the user override the test.
3236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3240 test -z "$as_dir" && as_dir=.
3241 for ac_exec_ext in '' $ac_executable_extensions; do
3242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3243 ac_cv_prog_CC="${ac_tool_prefix}cc"
3244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3254 if test -n "$CC"; then
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3256 $as_echo "$CC" >&6; }
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3259 $as_echo "no" >&6; }
3265 if test -z "$CC"; then
3266 # Extract the first word of "cc", so it can be a program name with args.
3267 set dummy cc; ac_word=$2
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3269 $as_echo_n "checking for $ac_word... " >&6; }
3270 if ${ac_cv_prog_CC+:} false; then :
3271 $as_echo_n "(cached) " >&6
3273 if test -n "$CC"; then
3274 ac_cv_prog_CC="$CC" # Let the user override the test.
3277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281 test -z "$as_dir" && as_dir=.
3282 for ac_exec_ext in '' $ac_executable_extensions; do
3283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3284 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3285 ac_prog_rejected=yes
3289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3296 if test $ac_prog_rejected = yes; then
3297 # We found a bogon in the path, so make sure we never use it.
3298 set dummy $ac_cv_prog_CC
3300 if test $# != 0; then
3301 # We chose a different compiler from the bogus one.
3302 # However, it has the same basename, so the bogon will be chosen
3303 # first if we set CC to just the basename; use the full file name.
3305 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3311 if test -n "$CC"; then
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3313 $as_echo "$CC" >&6; }
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3316 $as_echo "no" >&6; }
3321 if test -z "$CC"; then
3322 if test -n "$ac_tool_prefix"; then
3323 for ac_prog in cl.exe
3325 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3326 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3328 $as_echo_n "checking for $ac_word... " >&6; }
3329 if ${ac_cv_prog_CC+:} false; then :
3330 $as_echo_n "(cached) " >&6
3332 if test -n "$CC"; then
3333 ac_cv_prog_CC="$CC" # Let the user override the test.
3335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3339 test -z "$as_dir" && as_dir=.
3340 for ac_exec_ext in '' $ac_executable_extensions; do
3341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3342 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3353 if test -n "$CC"; then
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3355 $as_echo "$CC" >&6; }
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3358 $as_echo "no" >&6; }
3362 test -n "$CC" && break
3365 if test -z "$CC"; then
3367 for ac_prog in cl.exe
3369 # Extract the first word of "$ac_prog", so it can be a program name with args.
3370 set dummy $ac_prog; ac_word=$2
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3372 $as_echo_n "checking for $ac_word... " >&6; }
3373 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3374 $as_echo_n "(cached) " >&6
3376 if test -n "$ac_ct_CC"; then
3377 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3383 test -z "$as_dir" && as_dir=.
3384 for ac_exec_ext in '' $ac_executable_extensions; do
3385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3386 ac_cv_prog_ac_ct_CC="$ac_prog"
3387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3396 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3397 if test -n "$ac_ct_CC"; then
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3399 $as_echo "$ac_ct_CC" >&6; }
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3402 $as_echo "no" >&6; }
3406 test -n "$ac_ct_CC" && break
3409 if test "x$ac_ct_CC" = x; then
3412 case $cross_compiling:$ac_tool_warned in
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3416 ac_tool_warned=yes ;;
3425 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3427 as_fn_error $? "no acceptable C compiler found in \$PATH
3428 See \`config.log' for more details" "$LINENO" 5; }
3430 # Provide some information about the compiler.
3431 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3434 for ac_option in --version -v -V -qversion; do
3435 { { ac_try="$ac_compiler $ac_option >&5"
3437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3438 *) ac_try_echo=$ac_try;;
3440 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3441 $as_echo "$ac_try_echo"; } >&5
3442 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3444 if test -s conftest.err; then
3446 ... rest of stderr output deleted ...
3447 10q' conftest.err >conftest.er1
3448 cat conftest.er1 >&5
3450 rm -f conftest.er1 conftest.err
3451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3452 test $ac_status = 0; }
3455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3456 /* end confdefs.h. */
3466 ac_clean_files_save=$ac_clean_files
3467 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3468 # Try to create an executable without -o first, disregard a.out.
3469 # It will help us diagnose broken compilers, and finding out an intuition
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3472 $as_echo_n "checking whether the C compiler works... " >&6; }
3473 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3475 # The possible output files:
3476 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3479 for ac_file in $ac_files
3482 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3483 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3488 if { { ac_try="$ac_link_default"
3490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491 *) ac_try_echo=$ac_try;;
3493 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3494 $as_echo "$ac_try_echo"; } >&5
3495 (eval "$ac_link_default") 2>&5
3497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3498 test $ac_status = 0; }; then :
3499 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3500 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3501 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3502 # so that the user can short-circuit this test for compilers unknown to
3504 for ac_file in $ac_files ''
3506 test -f "$ac_file" || continue
3508 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3511 # We found the default executable, but exeext='' is most
3515 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3517 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3519 # We set ac_cv_exeext here because the later test for it is not
3520 # safe: cross compilers may not add the suffix if given an `-o'
3521 # argument, so we may need to know it at that point already.
3522 # Even if this section looks crufty: it has the advantage of
3529 test "$ac_cv_exeext" = no && ac_cv_exeext=
3534 if test -z "$ac_file"; then :
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3536 $as_echo "no" >&6; }
3537 $as_echo "$as_me: failed program was:" >&5
3538 sed 's/^/| /' conftest.$ac_ext >&5
3540 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3542 as_fn_error 77 "C compiler cannot create executables
3543 See \`config.log' for more details" "$LINENO" 5; }
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3546 $as_echo "yes" >&6; }
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3549 $as_echo_n "checking for C compiler default output file name... " >&6; }
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3551 $as_echo "$ac_file" >&6; }
3552 ac_exeext=$ac_cv_exeext
3554 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3555 ac_clean_files=$ac_clean_files_save
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3557 $as_echo_n "checking for suffix of executables... " >&6; }
3558 if { { ac_try="$ac_link"
3560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561 *) ac_try_echo=$ac_try;;
3563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3564 $as_echo "$ac_try_echo"; } >&5
3565 (eval "$ac_link") 2>&5
3567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3568 test $ac_status = 0; }; then :
3569 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3570 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3571 # work properly (i.e., refer to `conftest.exe'), while it won't with
3573 for ac_file in conftest.exe conftest conftest.*; do
3574 test -f "$ac_file" || continue
3576 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3577 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3583 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3585 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3586 See \`config.log' for more details" "$LINENO" 5; }
3588 rm -f conftest conftest$ac_cv_exeext
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3590 $as_echo "$ac_cv_exeext" >&6; }
3592 rm -f conftest.$ac_ext
3593 EXEEXT=$ac_cv_exeext
3595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3596 /* end confdefs.h. */
3601 FILE *f = fopen ("conftest.out", "w");
3602 return ferror (f) || fclose (f) != 0;
3608 ac_clean_files="$ac_clean_files conftest.out"
3609 # Check that the compiler produces executables we can run. If not, either
3610 # the compiler is broken, or we cross compile.
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3612 $as_echo_n "checking whether we are cross compiling... " >&6; }
3613 if test "$cross_compiling" != yes; then
3614 { { ac_try="$ac_link"
3616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617 *) ac_try_echo=$ac_try;;
3619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3620 $as_echo "$ac_try_echo"; } >&5
3621 (eval "$ac_link") 2>&5
3623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3624 test $ac_status = 0; }
3625 if { ac_try='./conftest$ac_cv_exeext'
3626 { { case "(($ac_try" in
3627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628 *) ac_try_echo=$ac_try;;
3630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3631 $as_echo "$ac_try_echo"; } >&5
3632 (eval "$ac_try") 2>&5
3634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3635 test $ac_status = 0; }; }; then
3638 if test "$cross_compiling" = maybe; then
3641 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3643 as_fn_error $? "cannot run C compiled programs.
3644 If you meant to cross compile, use \`--host'.
3645 See \`config.log' for more details" "$LINENO" 5; }
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3650 $as_echo "$cross_compiling" >&6; }
3652 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3653 ac_clean_files=$ac_clean_files_save
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3655 $as_echo_n "checking for suffix of object files... " >&6; }
3656 if ${ac_cv_objext+:} false; then :
3657 $as_echo_n "(cached) " >&6
3659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3660 /* end confdefs.h. */
3670 rm -f conftest.o conftest.obj
3671 if { { ac_try="$ac_compile"
3673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3674 *) ac_try_echo=$ac_try;;
3676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3677 $as_echo "$ac_try_echo"; } >&5
3678 (eval "$ac_compile") 2>&5
3680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3681 test $ac_status = 0; }; then :
3682 for ac_file in conftest.o conftest.obj conftest.*; do
3683 test -f "$ac_file" || continue;
3685 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3686 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3691 $as_echo "$as_me: failed program was:" >&5
3692 sed 's/^/| /' conftest.$ac_ext >&5
3694 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3695 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3696 as_fn_error $? "cannot compute suffix of object files: cannot compile
3697 See \`config.log' for more details" "$LINENO" 5; }
3699 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3702 $as_echo "$ac_cv_objext" >&6; }
3703 OBJEXT=$ac_cv_objext
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3706 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3707 if ${ac_cv_c_compiler_gnu+:} false; then :
3708 $as_echo_n "(cached) " >&6
3710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3711 /* end confdefs.h. */
3724 if ac_fn_c_try_compile "$LINENO"; then :
3729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3730 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3734 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3735 if test $ac_compiler_gnu = yes; then
3740 ac_test_CFLAGS=${CFLAGS+set}
3741 ac_save_CFLAGS=$CFLAGS
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3743 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3744 if ${ac_cv_prog_cc_g+:} false; then :
3745 $as_echo_n "(cached) " >&6
3747 ac_save_c_werror_flag=$ac_c_werror_flag
3748 ac_c_werror_flag=yes
3751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3752 /* end confdefs.h. */
3762 if ac_fn_c_try_compile "$LINENO"; then :
3766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767 /* end confdefs.h. */
3777 if ac_fn_c_try_compile "$LINENO"; then :
3780 ac_c_werror_flag=$ac_save_c_werror_flag
3782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3783 /* end confdefs.h. */
3793 if ac_fn_c_try_compile "$LINENO"; then :
3796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3801 ac_c_werror_flag=$ac_save_c_werror_flag
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3804 $as_echo "$ac_cv_prog_cc_g" >&6; }
3805 if test "$ac_test_CFLAGS" = set; then
3806 CFLAGS=$ac_save_CFLAGS
3807 elif test $ac_cv_prog_cc_g = yes; then
3808 if test "$GCC" = yes; then
3814 if test "$GCC" = yes; then
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3821 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3822 if ${ac_cv_prog_cc_c89+:} false; then :
3823 $as_echo_n "(cached) " >&6
3825 ac_cv_prog_cc_c89=no
3827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3828 /* end confdefs.h. */
3832 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3833 struct buf { int x; };
3834 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3835 static char *e (p, i)
3841 static char *f (char * (*g) (char **, int), char **p, ...)
3846 s = g (p, va_arg (v,int));
3851 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3852 function prototypes and stuff, but not '\xHH' hex character constants.
3853 These don't provoke an error unfortunately, instead are silently treated
3854 as 'x'. The following induces an error, until -std is added to get
3855 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3856 array size at least. It's necessary to write '\x00'==0 to get something
3857 that's true only with -std. */
3858 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3860 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3861 inside strings and character constants. */
3863 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3865 int test (int i, double x);
3866 struct s1 {int (*f) (int a);};
3867 struct s2 {int (*f) (double a);};
3868 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3874 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3879 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3880 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3882 CC="$ac_save_CC $ac_arg"
3883 if ac_fn_c_try_compile "$LINENO"; then :
3884 ac_cv_prog_cc_c89=$ac_arg
3886 rm -f core conftest.err conftest.$ac_objext
3887 test "x$ac_cv_prog_cc_c89" != "xno" && break
3889 rm -f conftest.$ac_ext
3894 case "x$ac_cv_prog_cc_c89" in
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3897 $as_echo "none needed" >&6; } ;;
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3900 $as_echo "unsupported" >&6; } ;;
3902 CC="$CC $ac_cv_prog_cc_c89"
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3904 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3906 if test "x$ac_cv_prog_cc_c89" != xno; then :
3911 ac_cpp='$CPP $CPPFLAGS'
3912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3917 ac_cpp='$CPP $CPPFLAGS'
3918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3922 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3923 if ${am_cv_prog_cc_c_o+:} false; then :
3924 $as_echo_n "(cached) " >&6
3926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3927 /* end confdefs.h. */
3937 # Make sure it works both with $CC and with simple cc.
3938 # Following AC_PROG_CC_C_O, we do the test twice because some
3939 # compilers refuse to overwrite an existing .o file with -o,
3940 # though they will create one.
3941 am_cv_prog_cc_c_o=yes
3943 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3944 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); } \
3948 && test -f conftest2.$ac_objext; then
3951 am_cv_prog_cc_c_o=no
3955 rm -f core conftest*
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3959 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3960 if test "$am_cv_prog_cc_c_o" != yes; then
3961 # Losing compiler, so override with the script.
3962 # FIXME: It is wrong to rewrite CC.
3963 # But if we don't then we get into trouble of one sort or another.
3964 # A longer-term fix would be to have automake use am__CC in this case,
3965 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3966 CC="$am_aux_dir/compile $CC"
3969 ac_cpp='$CPP $CPPFLAGS'
3970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3975 depcc="$CC" am_compiler_list=
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3978 $as_echo_n "checking dependency style of $depcc... " >&6; }
3979 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3980 $as_echo_n "(cached) " >&6
3982 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3983 # We make a subdir and do the tests there. Otherwise we can end up
3984 # making bogus files that we don't know about and never remove. For
3985 # instance it was reported that on HP-UX the gcc test will end up
3986 # making a dummy file named 'D' -- because '-MD' means "put the output
3990 # Copy depcomp to subdir because otherwise we won't find it if we're
3991 # using a relative directory.
3992 cp "$am_depcomp" conftest.dir
3994 # We will build objects and dependencies in a subdirectory because
3995 # it helps to detect inapplicable dependency modes. For instance
3996 # both Tru64's cc and ICC support -MD to output dependencies as a
3997 # side effect of compilation, but ICC will put the dependencies in
3998 # the current directory while Tru64 will put them in the object
4002 am_cv_CC_dependencies_compiler_type=none
4003 if test "$am_compiler_list" = ""; then
4004 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4007 case " $depcc " in #(
4008 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4011 for depmode in $am_compiler_list; do
4012 # Setup a source with many dependencies, because some compilers
4013 # like to wrap large dependency lists on column 80 (with \), and
4014 # we should not choose a depcomp mode which is confused by this.
4016 # We need to recreate these files for each test, as the compiler may
4017 # overwrite some of them when testing with obscure command lines.
4018 # This happens at least with the AIX C compiler.
4020 for i in 1 2 3 4 5 6; do
4021 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4022 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4023 # Solaris 10 /bin/sh.
4024 echo '/* dummy */' > sub/conftst$i.h
4026 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4028 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4029 # mode. It turns out that the SunPro C++ compiler does not properly
4030 # handle '-M -o', and we need to detect this. Also, some Intel
4031 # versions had trouble with output in subdirs.
4032 am__obj=sub/conftest.${OBJEXT-o}
4033 am__minus_obj="-o $am__obj"
4036 # This depmode causes a compiler race in universal mode.
4037 test "$am__universal" = false || continue
4040 # After this tag, mechanisms are not by side-effect, so they'll
4041 # only be used when explicitly requested.
4042 if test "x$enable_dependency_tracking" = xyes; then
4048 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4049 # This compiler won't grok '-c -o', but also, the minuso test has
4050 # not run yet. These depmodes are late enough in the game, and
4051 # so weak that their functioning should not be impacted.
4052 am__obj=conftest.${OBJEXT-o}
4057 if depmode=$depmode \
4058 source=sub/conftest.c object=$am__obj \
4059 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4060 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4061 >/dev/null 2>conftest.err &&
4062 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4063 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4064 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4065 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4066 # icc doesn't choke on unknown options, it will just issue warnings
4067 # or remarks (even with -Werror). So we grep stderr for any message
4068 # that says an option was ignored or not supported.
4069 # When given -MP, icc 7.0 and 7.1 complain thusly:
4070 # icc: Command line warning: ignoring option '-M'; no argument required
4071 # The diagnosis changed in icc 8.0:
4072 # icc: Command line remark: option '-MP' not supported
4073 if (grep 'ignoring option' conftest.err ||
4074 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4075 am_cv_CC_dependencies_compiler_type=$depmode
4084 am_cv_CC_dependencies_compiler_type=none
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4089 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4090 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4093 test "x$enable_dependency_tracking" != xno \
4094 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4096 am__fastdepCC_FALSE='#'
4098 am__fastdepCC_TRUE='#'
4099 am__fastdepCC_FALSE=
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4104 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4105 if ${ac_cv_path_SED+:} false; then :
4106 $as_echo_n "(cached) " >&6
4108 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4109 for ac_i in 1 2 3 4 5 6 7; do
4110 ac_script="$ac_script$as_nl$ac_script"
4112 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4113 { ac_script=; unset ac_script;}
4114 if test -z "$SED"; then
4115 ac_path_SED_found=false
4116 # Loop through the user's path and test for each of PROGNAME-LIST
4117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4121 test -z "$as_dir" && as_dir=.
4122 for ac_prog in sed gsed; do
4123 for ac_exec_ext in '' $ac_executable_extensions; do
4124 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4125 as_fn_executable_p "$ac_path_SED" || continue
4126 # Check for GNU ac_path_SED and select it if it is found.
4127 # Check for GNU $ac_path_SED
4128 case `"$ac_path_SED" --version 2>&1` in
4130 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4133 $as_echo_n 0123456789 >"conftest.in"
4136 cat "conftest.in" "conftest.in" >"conftest.tmp"
4137 mv "conftest.tmp" "conftest.in"
4138 cp "conftest.in" "conftest.nl"
4139 $as_echo '' >> "conftest.nl"
4140 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4141 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4142 as_fn_arith $ac_count + 1 && ac_count=$as_val
4143 if test $ac_count -gt ${ac_path_SED_max-0}; then
4144 # Best one so far, save it but keep looking for a better one
4145 ac_cv_path_SED="$ac_path_SED"
4146 ac_path_SED_max=$ac_count
4148 # 10*(2^10) chars as input seems more than enough
4149 test $ac_count -gt 10 && break
4151 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4154 $ac_path_SED_found && break 3
4159 if test -z "$ac_cv_path_SED"; then
4160 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4168 $as_echo "$ac_cv_path_SED" >&6; }
4169 SED="$ac_cv_path_SED"
4172 test -z "$SED" && SED=sed
4173 Xsed="$SED -e 1s/^X//"
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4186 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4187 if ${ac_cv_path_GREP+:} false; then :
4188 $as_echo_n "(cached) " >&6
4190 if test -z "$GREP"; then
4191 ac_path_GREP_found=false
4192 # Loop through the user's path and test for each of PROGNAME-LIST
4193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4197 test -z "$as_dir" && as_dir=.
4198 for ac_prog in grep ggrep; do
4199 for ac_exec_ext in '' $ac_executable_extensions; do
4200 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4201 as_fn_executable_p "$ac_path_GREP" || continue
4202 # Check for GNU ac_path_GREP and select it if it is found.
4203 # Check for GNU $ac_path_GREP
4204 case `"$ac_path_GREP" --version 2>&1` in
4206 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4209 $as_echo_n 0123456789 >"conftest.in"
4212 cat "conftest.in" "conftest.in" >"conftest.tmp"
4213 mv "conftest.tmp" "conftest.in"
4214 cp "conftest.in" "conftest.nl"
4215 $as_echo 'GREP' >> "conftest.nl"
4216 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4217 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4218 as_fn_arith $ac_count + 1 && ac_count=$as_val
4219 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4220 # Best one so far, save it but keep looking for a better one
4221 ac_cv_path_GREP="$ac_path_GREP"
4222 ac_path_GREP_max=$ac_count
4224 # 10*(2^10) chars as input seems more than enough
4225 test $ac_count -gt 10 && break
4227 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4230 $ac_path_GREP_found && break 3
4235 if test -z "$ac_cv_path_GREP"; then
4236 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4239 ac_cv_path_GREP=$GREP
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4244 $as_echo "$ac_cv_path_GREP" >&6; }
4245 GREP="$ac_cv_path_GREP"
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4249 $as_echo_n "checking for egrep... " >&6; }
4250 if ${ac_cv_path_EGREP+:} false; then :
4251 $as_echo_n "(cached) " >&6
4253 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4254 then ac_cv_path_EGREP="$GREP -E"
4256 if test -z "$EGREP"; then
4257 ac_path_EGREP_found=false
4258 # Loop through the user's path and test for each of PROGNAME-LIST
4259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4260 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4263 test -z "$as_dir" && as_dir=.
4264 for ac_prog in egrep; do
4265 for ac_exec_ext in '' $ac_executable_extensions; do
4266 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4267 as_fn_executable_p "$ac_path_EGREP" || continue
4268 # Check for GNU ac_path_EGREP and select it if it is found.
4269 # Check for GNU $ac_path_EGREP
4270 case `"$ac_path_EGREP" --version 2>&1` in
4272 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4275 $as_echo_n 0123456789 >"conftest.in"
4278 cat "conftest.in" "conftest.in" >"conftest.tmp"
4279 mv "conftest.tmp" "conftest.in"
4280 cp "conftest.in" "conftest.nl"
4281 $as_echo 'EGREP' >> "conftest.nl"
4282 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4283 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4284 as_fn_arith $ac_count + 1 && ac_count=$as_val
4285 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4286 # Best one so far, save it but keep looking for a better one
4287 ac_cv_path_EGREP="$ac_path_EGREP"
4288 ac_path_EGREP_max=$ac_count
4290 # 10*(2^10) chars as input seems more than enough
4291 test $ac_count -gt 10 && break
4293 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4296 $ac_path_EGREP_found && break 3
4301 if test -z "$ac_cv_path_EGREP"; then
4302 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4305 ac_cv_path_EGREP=$EGREP
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4311 $as_echo "$ac_cv_path_EGREP" >&6; }
4312 EGREP="$ac_cv_path_EGREP"
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4316 $as_echo_n "checking for fgrep... " >&6; }
4317 if ${ac_cv_path_FGREP+:} false; then :
4318 $as_echo_n "(cached) " >&6
4320 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4321 then ac_cv_path_FGREP="$GREP -F"
4323 if test -z "$FGREP"; then
4324 ac_path_FGREP_found=false
4325 # Loop through the user's path and test for each of PROGNAME-LIST
4326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4327 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4330 test -z "$as_dir" && as_dir=.
4331 for ac_prog in fgrep; do
4332 for ac_exec_ext in '' $ac_executable_extensions; do
4333 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4334 as_fn_executable_p "$ac_path_FGREP" || continue
4335 # Check for GNU ac_path_FGREP and select it if it is found.
4336 # Check for GNU $ac_path_FGREP
4337 case `"$ac_path_FGREP" --version 2>&1` in
4339 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4342 $as_echo_n 0123456789 >"conftest.in"
4345 cat "conftest.in" "conftest.in" >"conftest.tmp"
4346 mv "conftest.tmp" "conftest.in"
4347 cp "conftest.in" "conftest.nl"
4348 $as_echo 'FGREP' >> "conftest.nl"
4349 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4350 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4351 as_fn_arith $ac_count + 1 && ac_count=$as_val
4352 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4353 # Best one so far, save it but keep looking for a better one
4354 ac_cv_path_FGREP="$ac_path_FGREP"
4355 ac_path_FGREP_max=$ac_count
4357 # 10*(2^10) chars as input seems more than enough
4358 test $ac_count -gt 10 && break
4360 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4363 $ac_path_FGREP_found && break 3
4368 if test -z "$ac_cv_path_FGREP"; then
4369 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4372 ac_cv_path_FGREP=$FGREP
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4378 $as_echo "$ac_cv_path_FGREP" >&6; }
4379 FGREP="$ac_cv_path_FGREP"
4382 test -z "$GREP" && GREP=grep
4402 # Check whether --with-gnu-ld was given.
4403 if test "${with_gnu_ld+set}" = set; then :
4404 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4410 if test "$GCC" = yes; then
4411 # Check if gcc -print-prog-name=ld gives a path.
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4413 $as_echo_n "checking for ld used by $CC... " >&6; }
4416 # gcc leaves a trailing carriage return which upsets mingw
4417 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4419 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4422 # Accept absolute paths.
4424 re_direlt='/[^/][^/]*/\.\./'
4425 # Canonicalize the pathname of ld
4426 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4427 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4428 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4430 test -z "$LD" && LD="$ac_prog"
4433 # If it fails, then pretend we aren't using GCC.
4437 # If it is relative, then search for the first ld in PATH.
4441 elif test "$with_gnu_ld" = yes; then
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4443 $as_echo_n "checking for GNU ld... " >&6; }
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4446 $as_echo_n "checking for non-GNU ld... " >&6; }
4448 if ${lt_cv_path_LD+:} false; then :
4449 $as_echo_n "(cached) " >&6
4451 if test -z "$LD"; then
4452 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4453 for ac_dir in $PATH; do
4455 test -z "$ac_dir" && ac_dir=.
4456 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4457 lt_cv_path_LD="$ac_dir/$ac_prog"
4458 # Check to see if the program is GNU ld. I'd rather use --version,
4459 # but apparently some variants of GNU ld only accept -v.
4460 # Break only if it was the GNU/non-GNU ld that we prefer.
4461 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4462 *GNU* | *'with BFD'*)
4463 test "$with_gnu_ld" != no && break
4466 test "$with_gnu_ld" != yes && break
4473 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4478 if test -n "$LD"; then
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4480 $as_echo "$LD" >&6; }
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4483 $as_echo "no" >&6; }
4485 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4487 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4488 if ${lt_cv_prog_gnu_ld+:} false; then :
4489 $as_echo_n "(cached) " >&6
4491 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4492 case `$LD -v 2>&1 </dev/null` in
4493 *GNU* | *'with BFD'*)
4494 lt_cv_prog_gnu_ld=yes
4497 lt_cv_prog_gnu_ld=no
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4502 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4503 with_gnu_ld=$lt_cv_prog_gnu_ld
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4514 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4515 if ${lt_cv_path_NM+:} false; then :
4516 $as_echo_n "(cached) " >&6
4518 if test -n "$NM"; then
4519 # Let the user override the test.
4522 lt_nm_to_check="${ac_tool_prefix}nm"
4523 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4524 lt_nm_to_check="$lt_nm_to_check nm"
4526 for lt_tmp_nm in $lt_nm_to_check; do
4527 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4528 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4530 test -z "$ac_dir" && ac_dir=.
4531 tmp_nm="$ac_dir/$lt_tmp_nm"
4532 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4533 # Check to see if the nm accepts a BSD-compat flag.
4534 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4535 # nm: unknown option "B" ignored
4536 # Tru64's nm complains that /dev/null is an invalid object file
4537 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4538 */dev/null* | *'Invalid file or object type'*)
4539 lt_cv_path_NM="$tmp_nm -B"
4543 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4545 lt_cv_path_NM="$tmp_nm -p"
4549 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4550 continue # so that we can try to find one that supports BSD flags
4559 : ${lt_cv_path_NM=no}
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4563 $as_echo "$lt_cv_path_NM" >&6; }
4564 if test "$lt_cv_path_NM" != "no"; then
4567 # Didn't find any BSD compatible name lister, look for dumpbin.
4568 if test -n "$DUMPBIN"; then :
4569 # Let the user override the test.
4571 if test -n "$ac_tool_prefix"; then
4572 for ac_prog in dumpbin "link -dump"
4574 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4575 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4577 $as_echo_n "checking for $ac_word... " >&6; }
4578 if ${ac_cv_prog_DUMPBIN+:} false; then :
4579 $as_echo_n "(cached) " >&6
4581 if test -n "$DUMPBIN"; then
4582 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4588 test -z "$as_dir" && as_dir=.
4589 for ac_exec_ext in '' $ac_executable_extensions; do
4590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4591 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4601 DUMPBIN=$ac_cv_prog_DUMPBIN
4602 if test -n "$DUMPBIN"; then
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4604 $as_echo "$DUMPBIN" >&6; }
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4607 $as_echo "no" >&6; }
4611 test -n "$DUMPBIN" && break
4614 if test -z "$DUMPBIN"; then
4615 ac_ct_DUMPBIN=$DUMPBIN
4616 for ac_prog in dumpbin "link -dump"
4618 # Extract the first word of "$ac_prog", so it can be a program name with args.
4619 set dummy $ac_prog; ac_word=$2
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4621 $as_echo_n "checking for $ac_word... " >&6; }
4622 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4623 $as_echo_n "(cached) " >&6
4625 if test -n "$ac_ct_DUMPBIN"; then
4626 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4632 test -z "$as_dir" && as_dir=.
4633 for ac_exec_ext in '' $ac_executable_extensions; do
4634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4635 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4645 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4646 if test -n "$ac_ct_DUMPBIN"; then
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4648 $as_echo "$ac_ct_DUMPBIN" >&6; }
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4651 $as_echo "no" >&6; }
4655 test -n "$ac_ct_DUMPBIN" && break
4658 if test "x$ac_ct_DUMPBIN" = x; then
4661 case $cross_compiling:$ac_tool_warned in
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4664 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4665 ac_tool_warned=yes ;;
4667 DUMPBIN=$ac_ct_DUMPBIN
4671 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4673 DUMPBIN="$DUMPBIN -symbols"
4681 if test "$DUMPBIN" != ":"; then
4685 test -z "$NM" && NM=nm
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4693 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4694 if ${lt_cv_nm_interface+:} false; then :
4695 $as_echo_n "(cached) " >&6
4697 lt_cv_nm_interface="BSD nm"
4698 echo "int some_variable = 0;" > conftest.$ac_ext
4699 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4700 (eval "$ac_compile" 2>conftest.err)
4701 cat conftest.err >&5
4702 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4703 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4704 cat conftest.err >&5
4705 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4706 cat conftest.out >&5
4707 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4708 lt_cv_nm_interface="MS dumpbin"
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4713 $as_echo "$lt_cv_nm_interface" >&6; }
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4716 $as_echo_n "checking whether ln -s works... " >&6; }
4718 if test "$LN_S" = "ln -s"; then
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4720 $as_echo "yes" >&6; }
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4723 $as_echo "no, using $LN_S" >&6; }
4726 # find the maximum length of command line arguments
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4728 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4729 if ${lt_cv_sys_max_cmd_len+:} false; then :
4730 $as_echo_n "(cached) " >&6
4737 # On DJGPP, this test can blow up pretty badly due to problems in libc
4738 # (any single argument exceeding 2000 bytes causes a buffer overrun
4739 # during glob expansion). Even if it were fixed, the result of this
4740 # check would be larger than it should be.
4741 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4745 # Under GNU Hurd, this test is not required because there is
4746 # no limit to the length of command line arguments.
4747 # Libtool will interpret -1 as no limit whatsoever
4748 lt_cv_sys_max_cmd_len=-1;
4751 cygwin* | mingw* | cegcc*)
4752 # On Win9x/ME, this test blows up -- it succeeds, but takes
4753 # about 5 minutes as the teststring grows exponentially.
4754 # Worse, since 9x/ME are not pre-emptively multitasking,
4755 # you end up with a "frozen" computer, even though with patience
4756 # the test eventually succeeds (with a max line length of 256k).
4757 # Instead, let's just punt: use the minimum linelength reported by
4758 # all of the supported platforms: 8192 (on NT/2K/XP).
4759 lt_cv_sys_max_cmd_len=8192;
4763 # On MiNT this can take a long time and run out of memory.
4764 lt_cv_sys_max_cmd_len=8192;
4768 # On AmigaOS with pdksh, this test takes hours, literally.
4769 # So we just punt and use a minimum line length of 8192.
4770 lt_cv_sys_max_cmd_len=8192;
4773 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4774 # This has been around since 386BSD, at least. Likely further.
4775 if test -x /sbin/sysctl; then
4776 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4777 elif test -x /usr/sbin/sysctl; then
4778 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4780 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4782 # And add a safety zone
4783 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4784 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4788 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4789 lt_cv_sys_max_cmd_len=196608
4793 # The test takes a long time on OS/2.
4794 lt_cv_sys_max_cmd_len=8192
4798 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4799 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4800 # nice to cause kernel panics so lets avoid the loop below.
4801 # First set a reasonable default.
4802 lt_cv_sys_max_cmd_len=16384
4804 if test -x /sbin/sysconfig; then
4805 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4806 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4811 lt_cv_sys_max_cmd_len=102400
4813 sysv5* | sco5v6* | sysv4.2uw2*)
4814 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4815 if test -n "$kargmax"; then
4816 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4818 lt_cv_sys_max_cmd_len=32768
4822 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4823 if test -n "$lt_cv_sys_max_cmd_len" && \
4824 test undefined != "$lt_cv_sys_max_cmd_len"; then
4825 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4826 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4828 # Make teststring a little bigger before we do anything with it.
4829 # a 1K string should be a reasonable start.
4830 for i in 1 2 3 4 5 6 7 8 ; do
4831 teststring=$teststring$teststring
4833 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4834 # If test is not a shell built-in, we'll probably end up computing a
4835 # maximum length that is only half of the actual maximum length, but
4837 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4838 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4839 test $i != 17 # 1/2 MB should be enough
4842 teststring=$teststring$teststring
4844 # Only check the string length outside the loop.
4845 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4847 # Add a significant safety factor because C++ compilers can tack on
4848 # massive amounts of additional arguments before passing them to the
4849 # linker. It appears as though 1/2 is a usable value.
4850 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4857 if test -n $lt_cv_sys_max_cmd_len ; then
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4859 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4862 $as_echo "none" >&6; }
4864 max_cmd_len=$lt_cv_sys_max_cmd_len
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4876 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4877 # Try some XSI features
4880 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4882 && eval 'test $(( 1 + 1 )) -eq 2 \
4883 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4886 $as_echo "$xsi_shell" >&6; }
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4890 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4892 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4894 && lt_shell_append=yes
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4896 $as_echo "$lt_shell_append" >&6; }
4899 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4909 # test EBCDIC or ASCII
4910 case `echo X|tr X '\101'` in
4911 A) # ASCII based system
4912 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4913 lt_SP2NL='tr \040 \012'
4914 lt_NL2SP='tr \015\012 \040\040'
4916 *) # EBCDIC based system
4917 lt_SP2NL='tr \100 \n'
4918 lt_NL2SP='tr \r\n \100\100'
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4931 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4932 if ${lt_cv_to_host_file_cmd+:} false; then :
4933 $as_echo_n "(cached) " >&6
4938 *-*-mingw* ) # actually msys
4939 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4942 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4944 * ) # otherwise, assume *nix
4945 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4951 *-*-mingw* ) # actually msys
4952 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4955 lt_cv_to_host_file_cmd=func_convert_file_noop
4957 * ) # otherwise, assume *nix
4958 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4962 * ) # unhandled hosts (and "normal" native builds)
4963 lt_cv_to_host_file_cmd=func_convert_file_noop
4969 to_host_file_cmd=$lt_cv_to_host_file_cmd
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4971 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4978 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4979 if ${lt_cv_to_tool_file_cmd+:} false; then :
4980 $as_echo_n "(cached) " >&6
4982 #assume ordinary cross tools, or native build.
4983 lt_cv_to_tool_file_cmd=func_convert_file_noop
4987 *-*-mingw* ) # actually msys
4988 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4996 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4998 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5005 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5006 if ${lt_cv_ld_reload_flag+:} false; then :
5007 $as_echo_n "(cached) " >&6
5009 lt_cv_ld_reload_flag='-r'
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5012 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5013 reload_flag=$lt_cv_ld_reload_flag
5014 case $reload_flag in
5016 *) reload_flag=" $reload_flag" ;;
5018 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5020 cygwin* | mingw* | pw32* | cegcc*)
5021 if test "$GCC" != yes; then
5026 if test "$GCC" = yes; then
5027 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5029 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5042 if test -n "$ac_tool_prefix"; then
5043 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5044 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5046 $as_echo_n "checking for $ac_word... " >&6; }
5047 if ${ac_cv_prog_OBJDUMP+:} false; then :
5048 $as_echo_n "(cached) " >&6
5050 if test -n "$OBJDUMP"; then
5051 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057 test -z "$as_dir" && as_dir=.
5058 for ac_exec_ext in '' $ac_executable_extensions; do
5059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5060 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5070 OBJDUMP=$ac_cv_prog_OBJDUMP
5071 if test -n "$OBJDUMP"; then
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5073 $as_echo "$OBJDUMP" >&6; }
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5076 $as_echo "no" >&6; }
5081 if test -z "$ac_cv_prog_OBJDUMP"; then
5082 ac_ct_OBJDUMP=$OBJDUMP
5083 # Extract the first word of "objdump", so it can be a program name with args.
5084 set dummy objdump; ac_word=$2
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5086 $as_echo_n "checking for $ac_word... " >&6; }
5087 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5088 $as_echo_n "(cached) " >&6
5090 if test -n "$ac_ct_OBJDUMP"; then
5091 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097 test -z "$as_dir" && as_dir=.
5098 for ac_exec_ext in '' $ac_executable_extensions; do
5099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5100 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5110 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5111 if test -n "$ac_ct_OBJDUMP"; then
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5113 $as_echo "$ac_ct_OBJDUMP" >&6; }
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5116 $as_echo "no" >&6; }
5119 if test "x$ac_ct_OBJDUMP" = x; then
5122 case $cross_compiling:$ac_tool_warned in
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5125 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5126 ac_tool_warned=yes ;;
5128 OBJDUMP=$ac_ct_OBJDUMP
5131 OBJDUMP="$ac_cv_prog_OBJDUMP"
5134 test -z "$OBJDUMP" && OBJDUMP=objdump
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5145 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5146 if ${lt_cv_deplibs_check_method+:} false; then :
5147 $as_echo_n "(cached) " >&6
5149 lt_cv_file_magic_cmd='$MAGIC_CMD'
5150 lt_cv_file_magic_test_file=
5151 lt_cv_deplibs_check_method='unknown'
5152 # Need to set the preceding variable on all platforms that support
5153 # interlibrary dependencies.
5154 # 'none' -- dependencies not supported.
5155 # `unknown' -- same as none, but documents that we really don't know.
5156 # 'pass_all' -- all dependencies passed with no checks.
5157 # 'test_compile' -- check by making test program.
5158 # 'file_magic [[regex]]' -- check by looking for files in library path
5159 # which responds to the $file_magic_cmd with a given extended regex.
5160 # If you have `file' or equivalent on your system and you're not sure
5161 # whether `pass_all' will *always* work, you probably want this one.
5165 lt_cv_deplibs_check_method=pass_all
5169 lt_cv_deplibs_check_method=pass_all
5173 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5174 lt_cv_file_magic_cmd='/usr/bin/file -L'
5175 lt_cv_file_magic_test_file=/shlib/libc.so
5179 # func_win32_libid is a shell function defined in ltmain.sh
5180 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5181 lt_cv_file_magic_cmd='func_win32_libid'
5185 # Base MSYS/MinGW do not provide the 'file' command needed by
5186 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5187 # unless we find 'file', for example because we are cross-compiling.
5188 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5189 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5190 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5191 lt_cv_file_magic_cmd='func_win32_libid'
5193 # Keep this pattern in sync with the one in func_win32_libid.
5194 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5195 lt_cv_file_magic_cmd='$OBJDUMP -f'
5200 # use the weaker test based on 'objdump'. See mingw*.
5201 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5202 lt_cv_file_magic_cmd='$OBJDUMP -f'
5205 darwin* | rhapsody*)
5206 lt_cv_deplibs_check_method=pass_all
5209 freebsd* | dragonfly*)
5210 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5213 # Not sure whether the presence of OpenBSD here was a mistake.
5214 # Let's accept both of them until this is cleared up.
5215 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5216 lt_cv_file_magic_cmd=/usr/bin/file
5217 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5221 lt_cv_deplibs_check_method=pass_all
5226 lt_cv_deplibs_check_method=pass_all
5229 hpux10.20* | hpux11*)
5230 lt_cv_file_magic_cmd=/usr/bin/file
5233 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5234 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5237 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5238 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5241 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5242 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5248 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5249 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5252 irix5* | irix6* | nonstopux*)
5254 *-32|*"-32 ") libmagic=32-bit;;
5255 *-n32|*"-n32 ") libmagic=N32;;
5256 *-64|*"-64 ") libmagic=64-bit;;
5257 *) libmagic=never-match;;
5259 lt_cv_deplibs_check_method=pass_all
5262 # This must be glibc/ELF.
5263 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5264 lt_cv_deplibs_check_method=pass_all
5267 netbsd* | netbsdelf*-gnu)
5268 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5269 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5271 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5276 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5277 lt_cv_file_magic_cmd=/usr/bin/file
5278 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5282 lt_cv_deplibs_check_method=pass_all
5286 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5287 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5289 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5293 osf3* | osf4* | osf5*)
5294 lt_cv_deplibs_check_method=pass_all
5298 lt_cv_deplibs_check_method=pass_all
5302 lt_cv_deplibs_check_method=pass_all
5305 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5306 lt_cv_deplibs_check_method=pass_all
5310 case $host_vendor in
5312 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]'
5313 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5316 lt_cv_deplibs_check_method=pass_all
5319 lt_cv_file_magic_cmd='/bin/file'
5320 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5323 lt_cv_file_magic_cmd='/bin/file'
5324 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5325 lt_cv_file_magic_test_file=/lib/libc.so
5328 lt_cv_deplibs_check_method=pass_all
5331 lt_cv_deplibs_check_method=pass_all
5337 lt_cv_deplibs_check_method=pass_all
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5343 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5347 if test "$build" = "$host"; then
5350 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5353 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5359 file_magic_cmd=$lt_cv_file_magic_cmd
5360 deplibs_check_method=$lt_cv_deplibs_check_method
5361 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5384 if test -n "$ac_tool_prefix"; then
5385 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5386 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5388 $as_echo_n "checking for $ac_word... " >&6; }
5389 if ${ac_cv_prog_DLLTOOL+:} false; then :
5390 $as_echo_n "(cached) " >&6
5392 if test -n "$DLLTOOL"; then
5393 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5399 test -z "$as_dir" && as_dir=.
5400 for ac_exec_ext in '' $ac_executable_extensions; do
5401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5402 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5412 DLLTOOL=$ac_cv_prog_DLLTOOL
5413 if test -n "$DLLTOOL"; then
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5415 $as_echo "$DLLTOOL" >&6; }
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5418 $as_echo "no" >&6; }
5423 if test -z "$ac_cv_prog_DLLTOOL"; then
5424 ac_ct_DLLTOOL=$DLLTOOL
5425 # Extract the first word of "dlltool", so it can be a program name with args.
5426 set dummy dlltool; ac_word=$2
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5428 $as_echo_n "checking for $ac_word... " >&6; }
5429 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5430 $as_echo_n "(cached) " >&6
5432 if test -n "$ac_ct_DLLTOOL"; then
5433 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5439 test -z "$as_dir" && as_dir=.
5440 for ac_exec_ext in '' $ac_executable_extensions; do
5441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5442 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5452 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5453 if test -n "$ac_ct_DLLTOOL"; then
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5455 $as_echo "$ac_ct_DLLTOOL" >&6; }
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5458 $as_echo "no" >&6; }
5461 if test "x$ac_ct_DLLTOOL" = x; then
5464 case $cross_compiling:$ac_tool_warned in
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5467 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5468 ac_tool_warned=yes ;;
5470 DLLTOOL=$ac_ct_DLLTOOL
5473 DLLTOOL="$ac_cv_prog_DLLTOOL"
5476 test -z "$DLLTOOL" && DLLTOOL=dlltool
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5488 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5489 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5490 $as_echo_n "(cached) " >&6
5492 lt_cv_sharedlib_from_linklib_cmd='unknown'
5495 cygwin* | mingw* | pw32* | cegcc*)
5496 # two different shell functions defined in ltmain.sh
5497 # decide which to use based on capabilities of $DLLTOOL
5498 case `$DLLTOOL --help 2>&1` in
5499 *--identify-strict*)
5500 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5503 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5508 # fallback: assume linklib IS sharedlib
5509 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5515 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5516 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5517 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5526 if test -n "$ac_tool_prefix"; then
5529 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5530 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5532 $as_echo_n "checking for $ac_word... " >&6; }
5533 if ${ac_cv_prog_AR+:} false; then :
5534 $as_echo_n "(cached) " >&6
5536 if test -n "$AR"; then
5537 ac_cv_prog_AR="$AR" # Let the user override the test.
5539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5543 test -z "$as_dir" && as_dir=.
5544 for ac_exec_ext in '' $ac_executable_extensions; do
5545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5546 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5557 if test -n "$AR"; then
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5559 $as_echo "$AR" >&6; }
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5562 $as_echo "no" >&6; }
5566 test -n "$AR" && break
5569 if test -z "$AR"; then
5573 # Extract the first word of "$ac_prog", so it can be a program name with args.
5574 set dummy $ac_prog; ac_word=$2
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5576 $as_echo_n "checking for $ac_word... " >&6; }
5577 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5578 $as_echo_n "(cached) " >&6
5580 if test -n "$ac_ct_AR"; then
5581 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5587 test -z "$as_dir" && as_dir=.
5588 for ac_exec_ext in '' $ac_executable_extensions; do
5589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5590 ac_cv_prog_ac_ct_AR="$ac_prog"
5591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5600 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5601 if test -n "$ac_ct_AR"; then
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5603 $as_echo "$ac_ct_AR" >&6; }
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5606 $as_echo "no" >&6; }
5610 test -n "$ac_ct_AR" && break
5613 if test "x$ac_ct_AR" = x; then
5616 case $cross_compiling:$ac_tool_warned in
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5619 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5620 ac_tool_warned=yes ;;
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5640 $as_echo_n "checking for archiver @FILE support... " >&6; }
5641 if ${lt_cv_ar_at_file+:} false; then :
5642 $as_echo_n "(cached) " >&6
5645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5646 /* end confdefs.h. */
5656 if ac_fn_c_try_compile "$LINENO"; then :
5657 echo conftest.$ac_objext > conftest.lst
5658 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5659 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5660 (eval $lt_ar_try) 2>&5
5662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5663 test $ac_status = 0; }
5664 if test "$ac_status" -eq 0; then
5665 # Ensure the archiver fails upon bogus file names.
5666 rm -f conftest.$ac_objext libconftest.a
5667 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5668 (eval $lt_ar_try) 2>&5
5670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5671 test $ac_status = 0; }
5672 if test "$ac_status" -ne 0; then
5676 rm -f conftest.* libconftest.a
5679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5683 $as_echo "$lt_cv_ar_at_file" >&6; }
5685 if test "x$lt_cv_ar_at_file" = xno; then
5688 archiver_list_spec=$lt_cv_ar_at_file
5697 if test -n "$ac_tool_prefix"; then
5698 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5699 set dummy ${ac_tool_prefix}strip; ac_word=$2
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5701 $as_echo_n "checking for $ac_word... " >&6; }
5702 if ${ac_cv_prog_STRIP+:} false; then :
5703 $as_echo_n "(cached) " >&6
5705 if test -n "$STRIP"; then
5706 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5712 test -z "$as_dir" && as_dir=.
5713 for ac_exec_ext in '' $ac_executable_extensions; do
5714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5715 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5725 STRIP=$ac_cv_prog_STRIP
5726 if test -n "$STRIP"; then
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5728 $as_echo "$STRIP" >&6; }
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5731 $as_echo "no" >&6; }
5736 if test -z "$ac_cv_prog_STRIP"; then
5738 # Extract the first word of "strip", so it can be a program name with args.
5739 set dummy strip; ac_word=$2
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5741 $as_echo_n "checking for $ac_word... " >&6; }
5742 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5743 $as_echo_n "(cached) " >&6
5745 if test -n "$ac_ct_STRIP"; then
5746 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752 test -z "$as_dir" && as_dir=.
5753 for ac_exec_ext in '' $ac_executable_extensions; do
5754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5755 ac_cv_prog_ac_ct_STRIP="strip"
5756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5765 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5766 if test -n "$ac_ct_STRIP"; then
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5768 $as_echo "$ac_ct_STRIP" >&6; }
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5771 $as_echo "no" >&6; }
5774 if test "x$ac_ct_STRIP" = x; then
5777 case $cross_compiling:$ac_tool_warned in
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5781 ac_tool_warned=yes ;;
5786 STRIP="$ac_cv_prog_STRIP"
5789 test -z "$STRIP" && STRIP=:
5796 if test -n "$ac_tool_prefix"; then
5797 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5798 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5800 $as_echo_n "checking for $ac_word... " >&6; }
5801 if ${ac_cv_prog_RANLIB+:} false; then :
5802 $as_echo_n "(cached) " >&6
5804 if test -n "$RANLIB"; then
5805 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5811 test -z "$as_dir" && as_dir=.
5812 for ac_exec_ext in '' $ac_executable_extensions; do
5813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5814 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5824 RANLIB=$ac_cv_prog_RANLIB
5825 if test -n "$RANLIB"; then
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5827 $as_echo "$RANLIB" >&6; }
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5830 $as_echo "no" >&6; }
5835 if test -z "$ac_cv_prog_RANLIB"; then
5836 ac_ct_RANLIB=$RANLIB
5837 # Extract the first word of "ranlib", so it can be a program name with args.
5838 set dummy ranlib; ac_word=$2
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5840 $as_echo_n "checking for $ac_word... " >&6; }
5841 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5842 $as_echo_n "(cached) " >&6
5844 if test -n "$ac_ct_RANLIB"; then
5845 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5851 test -z "$as_dir" && as_dir=.
5852 for ac_exec_ext in '' $ac_executable_extensions; do
5853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5854 ac_cv_prog_ac_ct_RANLIB="ranlib"
5855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5864 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5865 if test -n "$ac_ct_RANLIB"; then
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5867 $as_echo "$ac_ct_RANLIB" >&6; }
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5870 $as_echo "no" >&6; }
5873 if test "x$ac_ct_RANLIB" = x; then
5876 case $cross_compiling:$ac_tool_warned in
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5879 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5880 ac_tool_warned=yes ;;
5882 RANLIB=$ac_ct_RANLIB
5885 RANLIB="$ac_cv_prog_RANLIB"
5888 test -z "$RANLIB" && RANLIB=:
5895 # Determine commands to create old-style static archives.
5896 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5897 old_postinstall_cmds='chmod 644 $oldlib'
5898 old_postuninstall_cmds=
5900 if test -n "$RANLIB"; then
5903 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5906 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5909 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5914 lock_old_archive_extraction=yes ;;
5916 lock_old_archive_extraction=no ;;
5957 # If no C compiler was specified, use CC.
5960 # If no C compiler flags were specified, use CFLAGS.
5961 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5963 # Allow CC to be a program name with arguments.
5967 # Check for command to grab the raw symbol name followed by C symbol from nm.
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5969 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5970 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5971 $as_echo_n "(cached) " >&6
5974 # These are sane defaults that work on at least a few old systems.
5975 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5977 # Character class describing NM global symbol codes.
5978 symcode='[BCDEGRST]'
5980 # Regexp to match symbols that can be accessed directly from C.
5981 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5983 # Define system-specific variables.
5988 cygwin* | mingw* | pw32* | cegcc*)
5989 symcode='[ABCDGISTW]'
5992 if test "$host_cpu" = ia64; then
5993 symcode='[ABCDEGRST]'
5997 symcode='[BCDEGRST]'
6000 symcode='[BCDEGQRST]'
6011 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6019 # If we're using GNU nm, then use its standard symbol codes.
6020 case `$NM -V 2>&1` in
6021 *GNU* | *'with BFD'*)
6022 symcode='[ABCDGIRSTW]' ;;
6025 # Transform an extracted symbol line into a proper C declaration.
6026 # Some systems (esp. on ia64) link data and code symbols differently,
6027 # so use this general approach.
6028 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6030 # Transform an extracted symbol line into symbol name and symbol address
6031 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6032 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'"
6034 # Handle CRLF in mingw tool chain
6038 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6042 # Try without a prefix underscore, then with it.
6043 for ac_symprfx in "" "_"; do
6045 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6046 symxfrm="\\1 $ac_symprfx\\2 \\2"
6048 # Write the raw and C identifiers.
6049 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6050 # Fake it for dumpbin and say T for any non-static function
6051 # and D for any global variable.
6052 # Also find C++ and __fastcall symbols from MSVC++,
6053 # which start with @ or ?.
6054 lt_cv_sys_global_symbol_pipe="$AWK '"\
6055 " {last_section=section; section=\$ 3};"\
6056 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6057 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6058 " \$ 0!~/External *\|/{next};"\
6059 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6060 " {if(hide[section]) next};"\
6061 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6062 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6063 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6064 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6065 " ' prfx=^$ac_symprfx"
6067 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6069 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6071 # Check to see that the pipe works correctly.
6075 cat > conftest.$ac_ext <<_LT_EOF
6080 void nm_test_func(void);
6081 void nm_test_func(void){}
6085 int main(){nm_test_var='a';nm_test_func();return(0);}
6088 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6089 (eval $ac_compile) 2>&5
6091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6092 test $ac_status = 0; }; then
6093 # Now try to grab the symbols.
6095 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6096 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6099 test $ac_status = 0; } && test -s "$nlist"; then
6100 # Try sorting and uniquifying the output.
6101 if sort "$nlist" | uniq > "$nlist"T; then
6102 mv -f "$nlist"T "$nlist"
6107 # Make sure that we snagged all the symbols we need.
6108 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6109 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6110 cat <<_LT_EOF > conftest.$ac_ext
6111 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6112 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6113 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6114 relocations are performed -- see ld's documentation on pseudo-relocs. */
6115 # define LT_DLSYM_CONST
6116 #elif defined(__osf__)
6117 /* This system does not cope well with relocations in const data. */
6118 # define LT_DLSYM_CONST
6120 # define LT_DLSYM_CONST const
6128 # Now generate the symbol file.
6129 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6131 cat <<_LT_EOF >> conftest.$ac_ext
6133 /* The mapping between symbol names and symbols. */
6134 LT_DLSYM_CONST struct {
6138 lt__PROGRAM__LTX_preloaded_symbols[] =
6140 { "@PROGRAM@", (void *) 0 },
6142 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6143 cat <<\_LT_EOF >> conftest.$ac_ext
6147 /* This works around a problem in FreeBSD linker */
6148 #ifdef FREEBSD_WORKAROUND
6149 static const void *lt_preloaded_setup() {
6150 return lt__PROGRAM__LTX_preloaded_symbols;
6158 # Now try linking the two files.
6159 mv conftest.$ac_objext conftstm.$ac_objext
6160 lt_globsym_save_LIBS=$LIBS
6161 lt_globsym_save_CFLAGS=$CFLAGS
6162 LIBS="conftstm.$ac_objext"
6163 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6164 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6165 (eval $ac_link) 2>&5
6167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6168 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6171 LIBS=$lt_globsym_save_LIBS
6172 CFLAGS=$lt_globsym_save_CFLAGS
6174 echo "cannot find nm_test_func in $nlist" >&5
6177 echo "cannot find nm_test_var in $nlist" >&5
6180 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6183 echo "$progname: failed program was:" >&5
6184 cat conftest.$ac_ext >&5
6186 rm -rf conftest* conftst*
6188 # Do not use the global_symbol_pipe unless it works.
6189 if test "$pipe_works" = yes; then
6192 lt_cv_sys_global_symbol_pipe=
6198 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6199 lt_cv_sys_global_symbol_to_cdecl=
6201 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6203 $as_echo "failed" >&6; }
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6206 $as_echo "ok" >&6; }
6209 # Response file support.
6210 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6211 nm_file_list_spec='@'
6212 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6213 nm_file_list_spec='@'
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6243 $as_echo_n "checking for sysroot... " >&6; }
6245 # Check whether --with-sysroot was given.
6246 if test "${with_sysroot+set}" = set; then :
6247 withval=$with_sysroot;
6254 case ${with_sysroot} in #(
6256 if test "$GCC" = yes; then
6257 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6261 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6267 $as_echo "${with_sysroot}" >&6; }
6268 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6273 $as_echo "${lt_sysroot:-no}" >&6; }
6279 # Check whether --enable-libtool-lock was given.
6280 if test "${enable_libtool_lock+set}" = set; then :
6281 enableval=$enable_libtool_lock;
6284 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6286 # Some flags need to be propagated to the compiler or linker for good
6290 # Find out which ABI we are using.
6291 echo 'int i;' > conftest.$ac_ext
6292 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6293 (eval $ac_compile) 2>&5
6295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6296 test $ac_status = 0; }; then
6297 case `/usr/bin/file conftest.$ac_objext` in
6309 # Find out which ABI we are using.
6310 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6311 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6312 (eval $ac_compile) 2>&5
6314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6315 test $ac_status = 0; }; then
6316 if test "$lt_cv_prog_gnu_ld" = yes; then
6317 case `/usr/bin/file conftest.$ac_objext` in
6319 LD="${LD-ld} -melf32bsmip"
6322 LD="${LD-ld} -melf32bmipn32"
6325 LD="${LD-ld} -melf64bmip"
6329 case `/usr/bin/file conftest.$ac_objext` in
6345 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6346 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6347 # Find out which ABI we are using.
6348 echo 'int i;' > conftest.$ac_ext
6349 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6350 (eval $ac_compile) 2>&5
6352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6353 test $ac_status = 0; }; then
6354 case `/usr/bin/file conftest.o` in
6357 x86_64-*kfreebsd*-gnu)
6358 LD="${LD-ld} -m elf_i386_fbsd"
6361 case `/usr/bin/file conftest.o` in
6363 LD="${LD-ld} -m elf32_x86_64"
6366 LD="${LD-ld} -m elf_i386"
6371 LD="${LD-ld} -m elf32lppclinux"
6374 LD="${LD-ld} -m elf32ppclinux"
6377 LD="${LD-ld} -m elf_s390"
6380 LD="${LD-ld} -m elf32_sparc"
6386 x86_64-*kfreebsd*-gnu)
6387 LD="${LD-ld} -m elf_x86_64_fbsd"
6390 LD="${LD-ld} -m elf_x86_64"
6393 LD="${LD-ld} -m elf64lppc"
6396 LD="${LD-ld} -m elf64ppc"
6398 s390*-*linux*|s390*-*tpf*)
6399 LD="${LD-ld} -m elf64_s390"
6402 LD="${LD-ld} -m elf64_sparc"
6412 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6413 SAVE_CFLAGS="$CFLAGS"
6414 CFLAGS="$CFLAGS -belf"
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6416 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6417 if ${lt_cv_cc_needs_belf+:} false; then :
6418 $as_echo_n "(cached) " >&6
6421 ac_cpp='$CPP $CPPFLAGS'
6422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6427 /* end confdefs.h. */
6437 if ac_fn_c_try_link "$LINENO"; then :
6438 lt_cv_cc_needs_belf=yes
6440 lt_cv_cc_needs_belf=no
6442 rm -f core conftest.err conftest.$ac_objext \
6443 conftest$ac_exeext conftest.$ac_ext
6445 ac_cpp='$CPP $CPPFLAGS'
6446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6452 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6453 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6454 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6455 CFLAGS="$SAVE_CFLAGS"
6459 # Find out which ABI we are using.
6460 echo 'int i;' > conftest.$ac_ext
6461 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6462 (eval $ac_compile) 2>&5
6464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6465 test $ac_status = 0; }; then
6466 case `/usr/bin/file conftest.o` in
6468 case $lt_cv_prog_gnu_ld in
6472 LD="${LD-ld} -m elf_x86_64"
6475 LD="${LD-ld} -m elf64_sparc"
6478 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6479 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6484 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6496 need_locks="$enable_libtool_lock"
6498 if test -n "$ac_tool_prefix"; then
6499 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6500 set dummy ${ac_tool_prefix}mt; ac_word=$2
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6502 $as_echo_n "checking for $ac_word... " >&6; }
6503 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6504 $as_echo_n "(cached) " >&6
6506 if test -n "$MANIFEST_TOOL"; then
6507 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513 test -z "$as_dir" && as_dir=.
6514 for ac_exec_ext in '' $ac_executable_extensions; do
6515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6516 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6526 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6527 if test -n "$MANIFEST_TOOL"; then
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6529 $as_echo "$MANIFEST_TOOL" >&6; }
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6532 $as_echo "no" >&6; }
6537 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6538 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6539 # Extract the first word of "mt", so it can be a program name with args.
6540 set dummy mt; ac_word=$2
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6542 $as_echo_n "checking for $ac_word... " >&6; }
6543 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6544 $as_echo_n "(cached) " >&6
6546 if test -n "$ac_ct_MANIFEST_TOOL"; then
6547 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553 test -z "$as_dir" && as_dir=.
6554 for ac_exec_ext in '' $ac_executable_extensions; do
6555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6556 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6566 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6567 if test -n "$ac_ct_MANIFEST_TOOL"; then
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6569 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6572 $as_echo "no" >&6; }
6575 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6578 case $cross_compiling:$ac_tool_warned in
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6582 ac_tool_warned=yes ;;
6584 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6587 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6590 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6592 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6593 if ${lt_cv_path_mainfest_tool+:} false; then :
6594 $as_echo_n "(cached) " >&6
6596 lt_cv_path_mainfest_tool=no
6597 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6598 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6599 cat conftest.err >&5
6600 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6601 lt_cv_path_mainfest_tool=yes
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6606 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6607 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6617 rhapsody* | darwin*)
6618 if test -n "$ac_tool_prefix"; then
6619 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6620 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6622 $as_echo_n "checking for $ac_word... " >&6; }
6623 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6624 $as_echo_n "(cached) " >&6
6626 if test -n "$DSYMUTIL"; then
6627 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6633 test -z "$as_dir" && as_dir=.
6634 for ac_exec_ext in '' $ac_executable_extensions; do
6635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6636 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6646 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6647 if test -n "$DSYMUTIL"; then
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6649 $as_echo "$DSYMUTIL" >&6; }
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6652 $as_echo "no" >&6; }
6657 if test -z "$ac_cv_prog_DSYMUTIL"; then
6658 ac_ct_DSYMUTIL=$DSYMUTIL
6659 # Extract the first word of "dsymutil", so it can be a program name with args.
6660 set dummy dsymutil; ac_word=$2
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6662 $as_echo_n "checking for $ac_word... " >&6; }
6663 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6664 $as_echo_n "(cached) " >&6
6666 if test -n "$ac_ct_DSYMUTIL"; then
6667 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673 test -z "$as_dir" && as_dir=.
6674 for ac_exec_ext in '' $ac_executable_extensions; do
6675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6676 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6686 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6687 if test -n "$ac_ct_DSYMUTIL"; then
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6689 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6692 $as_echo "no" >&6; }
6695 if test "x$ac_ct_DSYMUTIL" = x; then
6698 case $cross_compiling:$ac_tool_warned in
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6702 ac_tool_warned=yes ;;
6704 DSYMUTIL=$ac_ct_DSYMUTIL
6707 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6710 if test -n "$ac_tool_prefix"; then
6711 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6712 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6714 $as_echo_n "checking for $ac_word... " >&6; }
6715 if ${ac_cv_prog_NMEDIT+:} false; then :
6716 $as_echo_n "(cached) " >&6
6718 if test -n "$NMEDIT"; then
6719 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725 test -z "$as_dir" && as_dir=.
6726 for ac_exec_ext in '' $ac_executable_extensions; do
6727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6728 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6738 NMEDIT=$ac_cv_prog_NMEDIT
6739 if test -n "$NMEDIT"; then
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6741 $as_echo "$NMEDIT" >&6; }
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6744 $as_echo "no" >&6; }
6749 if test -z "$ac_cv_prog_NMEDIT"; then
6750 ac_ct_NMEDIT=$NMEDIT
6751 # Extract the first word of "nmedit", so it can be a program name with args.
6752 set dummy nmedit; ac_word=$2
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6754 $as_echo_n "checking for $ac_word... " >&6; }
6755 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6756 $as_echo_n "(cached) " >&6
6758 if test -n "$ac_ct_NMEDIT"; then
6759 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765 test -z "$as_dir" && as_dir=.
6766 for ac_exec_ext in '' $ac_executable_extensions; do
6767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6768 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6778 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6779 if test -n "$ac_ct_NMEDIT"; then
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6781 $as_echo "$ac_ct_NMEDIT" >&6; }
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6784 $as_echo "no" >&6; }
6787 if test "x$ac_ct_NMEDIT" = x; then
6790 case $cross_compiling:$ac_tool_warned in
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6793 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6794 ac_tool_warned=yes ;;
6796 NMEDIT=$ac_ct_NMEDIT
6799 NMEDIT="$ac_cv_prog_NMEDIT"
6802 if test -n "$ac_tool_prefix"; then
6803 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6804 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6806 $as_echo_n "checking for $ac_word... " >&6; }
6807 if ${ac_cv_prog_LIPO+:} false; then :
6808 $as_echo_n "(cached) " >&6
6810 if test -n "$LIPO"; then
6811 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6817 test -z "$as_dir" && as_dir=.
6818 for ac_exec_ext in '' $ac_executable_extensions; do
6819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6820 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6830 LIPO=$ac_cv_prog_LIPO
6831 if test -n "$LIPO"; then
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6833 $as_echo "$LIPO" >&6; }
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6836 $as_echo "no" >&6; }
6841 if test -z "$ac_cv_prog_LIPO"; then
6843 # Extract the first word of "lipo", so it can be a program name with args.
6844 set dummy lipo; ac_word=$2
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6846 $as_echo_n "checking for $ac_word... " >&6; }
6847 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6848 $as_echo_n "(cached) " >&6
6850 if test -n "$ac_ct_LIPO"; then
6851 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6857 test -z "$as_dir" && as_dir=.
6858 for ac_exec_ext in '' $ac_executable_extensions; do
6859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6860 ac_cv_prog_ac_ct_LIPO="lipo"
6861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6870 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6871 if test -n "$ac_ct_LIPO"; then
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6873 $as_echo "$ac_ct_LIPO" >&6; }
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6876 $as_echo "no" >&6; }
6879 if test "x$ac_ct_LIPO" = x; then
6882 case $cross_compiling:$ac_tool_warned in
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6885 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6886 ac_tool_warned=yes ;;
6891 LIPO="$ac_cv_prog_LIPO"
6894 if test -n "$ac_tool_prefix"; then
6895 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6896 set dummy ${ac_tool_prefix}otool; ac_word=$2
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6898 $as_echo_n "checking for $ac_word... " >&6; }
6899 if ${ac_cv_prog_OTOOL+:} false; then :
6900 $as_echo_n "(cached) " >&6
6902 if test -n "$OTOOL"; then
6903 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909 test -z "$as_dir" && as_dir=.
6910 for ac_exec_ext in '' $ac_executable_extensions; do
6911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6912 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6922 OTOOL=$ac_cv_prog_OTOOL
6923 if test -n "$OTOOL"; then
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6925 $as_echo "$OTOOL" >&6; }
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6928 $as_echo "no" >&6; }
6933 if test -z "$ac_cv_prog_OTOOL"; then
6935 # Extract the first word of "otool", so it can be a program name with args.
6936 set dummy otool; ac_word=$2
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6938 $as_echo_n "checking for $ac_word... " >&6; }
6939 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6940 $as_echo_n "(cached) " >&6
6942 if test -n "$ac_ct_OTOOL"; then
6943 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949 test -z "$as_dir" && as_dir=.
6950 for ac_exec_ext in '' $ac_executable_extensions; do
6951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6952 ac_cv_prog_ac_ct_OTOOL="otool"
6953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6962 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6963 if test -n "$ac_ct_OTOOL"; then
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6965 $as_echo "$ac_ct_OTOOL" >&6; }
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6968 $as_echo "no" >&6; }
6971 if test "x$ac_ct_OTOOL" = x; then
6974 case $cross_compiling:$ac_tool_warned in
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6977 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6978 ac_tool_warned=yes ;;
6983 OTOOL="$ac_cv_prog_OTOOL"
6986 if test -n "$ac_tool_prefix"; then
6987 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6988 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6990 $as_echo_n "checking for $ac_word... " >&6; }
6991 if ${ac_cv_prog_OTOOL64+:} false; then :
6992 $as_echo_n "(cached) " >&6
6994 if test -n "$OTOOL64"; then
6995 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7001 test -z "$as_dir" && as_dir=.
7002 for ac_exec_ext in '' $ac_executable_extensions; do
7003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7004 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7014 OTOOL64=$ac_cv_prog_OTOOL64
7015 if test -n "$OTOOL64"; then
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7017 $as_echo "$OTOOL64" >&6; }
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7020 $as_echo "no" >&6; }
7025 if test -z "$ac_cv_prog_OTOOL64"; then
7026 ac_ct_OTOOL64=$OTOOL64
7027 # Extract the first word of "otool64", so it can be a program name with args.
7028 set dummy otool64; ac_word=$2
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7030 $as_echo_n "checking for $ac_word... " >&6; }
7031 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7032 $as_echo_n "(cached) " >&6
7034 if test -n "$ac_ct_OTOOL64"; then
7035 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041 test -z "$as_dir" && as_dir=.
7042 for ac_exec_ext in '' $ac_executable_extensions; do
7043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7044 ac_cv_prog_ac_ct_OTOOL64="otool64"
7045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7054 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7055 if test -n "$ac_ct_OTOOL64"; then
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7057 $as_echo "$ac_ct_OTOOL64" >&6; }
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7060 $as_echo "no" >&6; }
7063 if test "x$ac_ct_OTOOL64" = x; then
7066 case $cross_compiling:$ac_tool_warned in
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7070 ac_tool_warned=yes ;;
7072 OTOOL64=$ac_ct_OTOOL64
7075 OTOOL64="$ac_cv_prog_OTOOL64"
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7105 $as_echo_n "checking for -single_module linker flag... " >&6; }
7106 if ${lt_cv_apple_cc_single_mod+:} false; then :
7107 $as_echo_n "(cached) " >&6
7109 lt_cv_apple_cc_single_mod=no
7110 if test -z "${LT_MULTI_MODULE}"; then
7111 # By default we will add the -single_module flag. You can override
7112 # by either setting the environment variable LT_MULTI_MODULE
7113 # non-empty at configure time, or by adding -multi_module to the
7115 rm -rf libconftest.dylib*
7116 echo "int foo(void){return 1;}" > conftest.c
7117 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7118 -dynamiclib -Wl,-single_module conftest.c" >&5
7119 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7120 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7122 # If there is a non-empty error log, and "single_module"
7123 # appears in it, assume the flag caused a linker warning
7124 if test -s conftest.err && $GREP single_module conftest.err; then
7125 cat conftest.err >&5
7126 # Otherwise, if the output was created with a 0 exit code from
7127 # the compiler, it worked.
7128 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7129 lt_cv_apple_cc_single_mod=yes
7131 cat conftest.err >&5
7133 rm -rf libconftest.dylib*
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7138 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7141 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7142 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7143 $as_echo_n "(cached) " >&6
7145 lt_cv_ld_exported_symbols_list=no
7146 save_LDFLAGS=$LDFLAGS
7147 echo "_main" > conftest.sym
7148 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7150 /* end confdefs.h. */
7160 if ac_fn_c_try_link "$LINENO"; then :
7161 lt_cv_ld_exported_symbols_list=yes
7163 lt_cv_ld_exported_symbols_list=no
7165 rm -f core conftest.err conftest.$ac_objext \
7166 conftest$ac_exeext conftest.$ac_ext
7167 LDFLAGS="$save_LDFLAGS"
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7171 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7174 $as_echo_n "checking for -force_load linker flag... " >&6; }
7175 if ${lt_cv_ld_force_load+:} false; then :
7176 $as_echo_n "(cached) " >&6
7178 lt_cv_ld_force_load=no
7179 cat > conftest.c << _LT_EOF
7180 int forced_loaded() { return 2;}
7182 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7183 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7184 echo "$AR cru libconftest.a conftest.o" >&5
7185 $AR cru libconftest.a conftest.o 2>&5
7186 echo "$RANLIB libconftest.a" >&5
7187 $RANLIB libconftest.a 2>&5
7188 cat > conftest.c << _LT_EOF
7189 int main() { return 0;}
7191 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7192 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7194 if test -s conftest.err && $GREP force_load conftest.err; then
7195 cat conftest.err >&5
7196 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7197 lt_cv_ld_force_load=yes
7199 cat conftest.err >&5
7201 rm -f conftest.err libconftest.a conftest conftest.c
7202 rm -rf conftest.dSYM
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7206 $as_echo "$lt_cv_ld_force_load" >&6; }
7208 rhapsody* | darwin1.[012])
7209 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7211 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7212 darwin*) # darwin 5.x on
7213 # if running on 10.5 or later, the deployment target defaults
7214 # to the OS version, if on x86, and 10.4, the deployment
7215 # target defaults to 10.4. Don't you love it?
7216 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7217 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7218 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7220 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7222 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7226 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7227 _lt_dar_single_mod='$single_module'
7229 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7230 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7232 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7234 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7235 _lt_dsymutil='~$DSYMUTIL $lib || :'
7243 ac_cpp='$CPP $CPPFLAGS'
7244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7248 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7249 # On Suns, sometimes $CPP names a directory.
7250 if test -n "$CPP" && test -d "$CPP"; then
7253 if test -z "$CPP"; then
7254 if ${ac_cv_prog_CPP+:} false; then :
7255 $as_echo_n "(cached) " >&6
7257 # Double quotes because CPP needs to be expanded
7258 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7261 for ac_c_preproc_warn_flag in '' yes
7263 # Use a header file that comes with gcc, so configuring glibc
7264 # with a fresh cross-compiler works.
7265 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7266 # <limits.h> exists even on freestanding compilers.
7267 # On the NeXT, cc -E runs the code through the compiler's parser,
7268 # not just through cpp. "Syntax error" is here to catch this case.
7269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7270 /* end confdefs.h. */
7272 # include <limits.h>
7274 # include <assert.h>
7278 if ac_fn_c_try_cpp "$LINENO"; then :
7281 # Broken: fails on valid input.
7284 rm -f conftest.err conftest.i conftest.$ac_ext
7286 # OK, works on sane cases. Now check whether nonexistent headers
7287 # can be detected and how.
7288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7289 /* end confdefs.h. */
7290 #include <ac_nonexistent.h>
7292 if ac_fn_c_try_cpp "$LINENO"; then :
7293 # Broken: success on invalid input.
7296 # Passes both tests.
7300 rm -f conftest.err conftest.i conftest.$ac_ext
7303 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7304 rm -f conftest.i conftest.err conftest.$ac_ext
7305 if $ac_preproc_ok; then :
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7318 $as_echo "$CPP" >&6; }
7320 for ac_c_preproc_warn_flag in '' yes
7322 # Use a header file that comes with gcc, so configuring glibc
7323 # with a fresh cross-compiler works.
7324 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7325 # <limits.h> exists even on freestanding compilers.
7326 # On the NeXT, cc -E runs the code through the compiler's parser,
7327 # not just through cpp. "Syntax error" is here to catch this case.
7328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7329 /* end confdefs.h. */
7331 # include <limits.h>
7333 # include <assert.h>
7337 if ac_fn_c_try_cpp "$LINENO"; then :
7340 # Broken: fails on valid input.
7343 rm -f conftest.err conftest.i conftest.$ac_ext
7345 # OK, works on sane cases. Now check whether nonexistent headers
7346 # can be detected and how.
7347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7348 /* end confdefs.h. */
7349 #include <ac_nonexistent.h>
7351 if ac_fn_c_try_cpp "$LINENO"; then :
7352 # Broken: success on invalid input.
7355 # Passes both tests.
7359 rm -f conftest.err conftest.i conftest.$ac_ext
7362 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7363 rm -f conftest.i conftest.err conftest.$ac_ext
7364 if $ac_preproc_ok; then :
7367 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7369 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7370 See \`config.log' for more details" "$LINENO" 5; }
7374 ac_cpp='$CPP $CPPFLAGS'
7375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7381 $as_echo_n "checking for ANSI C header files... " >&6; }
7382 if ${ac_cv_header_stdc+:} false; then :
7383 $as_echo_n "(cached) " >&6
7385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7386 /* end confdefs.h. */
7400 if ac_fn_c_try_compile "$LINENO"; then :
7401 ac_cv_header_stdc=yes
7403 ac_cv_header_stdc=no
7405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7407 if test $ac_cv_header_stdc = yes; then
7408 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7410 /* end confdefs.h. */
7414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7415 $EGREP "memchr" >/dev/null 2>&1; then :
7418 ac_cv_header_stdc=no
7424 if test $ac_cv_header_stdc = yes; then
7425 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7427 /* end confdefs.h. */
7431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7432 $EGREP "free" >/dev/null 2>&1; then :
7435 ac_cv_header_stdc=no
7441 if test $ac_cv_header_stdc = yes; then
7442 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7443 if test "$cross_compiling" = yes; then :
7446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7447 /* end confdefs.h. */
7450 #if ((' ' & 0x0FF) == 0x020)
7451 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7452 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7454 # define ISLOWER(c) \
7455 (('a' <= (c) && (c) <= 'i') \
7456 || ('j' <= (c) && (c) <= 'r') \
7457 || ('s' <= (c) && (c) <= 'z'))
7458 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7461 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7466 for (i = 0; i < 256; i++)
7467 if (XOR (islower (i), ISLOWER (i))
7468 || toupper (i) != TOUPPER (i))
7473 if ac_fn_c_try_run "$LINENO"; then :
7476 ac_cv_header_stdc=no
7478 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7479 conftest.$ac_objext conftest.beam conftest.$ac_ext
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7485 $as_echo "$ac_cv_header_stdc" >&6; }
7486 if test $ac_cv_header_stdc = yes; then
7488 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7492 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7493 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7494 inttypes.h stdint.h unistd.h
7496 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7497 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7499 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7500 cat >>confdefs.h <<_ACEOF
7501 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7509 for ac_header in dlfcn.h
7511 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7513 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7514 cat >>confdefs.h <<_ACEOF
7515 #define HAVE_DLFCN_H 1
7536 # Check whether --enable-shared was given.
7537 if test "${enable_shared+set}" = set; then :
7538 enableval=$enable_shared; p=${PACKAGE-default}
7540 yes) enable_shared=yes ;;
7541 no) enable_shared=no ;;
7544 # Look at the argument we got. We use all the common list separators.
7545 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7546 for pkg in $enableval; do
7548 if test "X$pkg" = "X$p"; then
7567 # Check whether --enable-static was given.
7568 if test "${enable_static+set}" = set; then :
7569 enableval=$enable_static; p=${PACKAGE-default}
7571 yes) enable_static=yes ;;
7572 no) enable_static=no ;;
7575 # Look at the argument we got. We use all the common list separators.
7576 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7577 for pkg in $enableval; do
7579 if test "X$pkg" = "X$p"; then
7599 # Check whether --with-pic was given.
7600 if test "${with_pic+set}" = set; then :
7601 withval=$with_pic; lt_p=${PACKAGE-default}
7603 yes|no) pic_mode=$withval ;;
7606 # Look at the argument we got. We use all the common list separators.
7607 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7608 for lt_pkg in $withval; do
7610 if test "X$lt_pkg" = "X$lt_p"; then
7622 test -z "$pic_mode" && pic_mode=default
7630 # Check whether --enable-fast-install was given.
7631 if test "${enable_fast_install+set}" = set; then :
7632 enableval=$enable_fast_install; p=${PACKAGE-default}
7634 yes) enable_fast_install=yes ;;
7635 no) enable_fast_install=no ;;
7637 enable_fast_install=no
7638 # Look at the argument we got. We use all the common list separators.
7639 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7640 for pkg in $enableval; do
7642 if test "X$pkg" = "X$p"; then
7643 enable_fast_install=yes
7650 enable_fast_install=yes
7663 # This can be used to rebuild libtool when needed
7664 LIBTOOL_DEPS="$ltmain"
7666 # Always use our own libtool.
7667 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7698 test -z "$LN_S" && LN_S="ln -s"
7713 if test -n "${ZSH_VERSION+set}" ; then
7714 setopt NO_GLOB_SUBST
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7718 $as_echo_n "checking for objdir... " >&6; }
7719 if ${lt_cv_objdir+:} false; then :
7720 $as_echo_n "(cached) " >&6
7722 rm -f .libs 2>/dev/null
7723 mkdir .libs 2>/dev/null
7724 if test -d .libs; then
7727 # MS-DOS does not allow filenames that begin with a dot.
7730 rmdir .libs 2>/dev/null
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7733 $as_echo "$lt_cv_objdir" >&6; }
7734 objdir=$lt_cv_objdir
7740 cat >>confdefs.h <<_ACEOF
7741 #define LT_OBJDIR "$lt_cv_objdir/"
7749 # AIX sometimes has problems with the GCC collect2 program. For some
7750 # reason, if we set the COLLECT_NAMES environment variable, the problems
7751 # vanish in a puff of smoke.
7752 if test "X${COLLECT_NAMES+set}" != Xset; then
7754 export COLLECT_NAMES
7761 can_build_shared=yes
7763 # All known linkers require a `.a' archive for static linking (except MSVC,
7764 # which needs '.lib').
7767 with_gnu_ld="$lt_cv_prog_gnu_ld"
7770 old_CFLAGS="$CFLAGS"
7772 # Set sane defaults for various variables
7773 test -z "$CC" && CC=cc
7774 test -z "$LTCC" && LTCC=$CC
7775 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7776 test -z "$LD" && LD=ld
7777 test -z "$ac_objext" && ac_objext=o
7779 for cc_temp in $compiler""; do
7781 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7782 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7787 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7790 # Only perform the check for file, if the check method requires it
7791 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7792 case $deplibs_check_method in
7794 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7796 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7797 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7798 $as_echo_n "(cached) " >&6
7802 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7805 lt_save_MAGIC_CMD="$MAGIC_CMD"
7806 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7807 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7808 for ac_dir in $ac_dummy; do
7810 test -z "$ac_dir" && ac_dir=.
7811 if test -f $ac_dir/${ac_tool_prefix}file; then
7812 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7813 if test -n "$file_magic_test_file"; then
7814 case $deplibs_check_method in
7816 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7817 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7818 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7819 $EGREP "$file_magic_regex" > /dev/null; then
7824 *** Warning: the command libtool uses to detect shared libraries,
7825 *** $file_magic_cmd, produces output that libtool cannot recognize.
7826 *** The result is that libtool may fail to recognize shared libraries
7827 *** as such. This will affect the creation of libtool libraries that
7828 *** depend on shared libraries, but programs linked with such libtool
7829 *** libraries will work regardless of this problem. Nevertheless, you
7830 *** may want to report the problem to your system manager and/or to
7831 *** bug-libtool@gnu.org
7841 MAGIC_CMD="$lt_save_MAGIC_CMD"
7846 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7847 if test -n "$MAGIC_CMD"; then
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7849 $as_echo "$MAGIC_CMD" >&6; }
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7852 $as_echo "no" >&6; }
7859 if test -z "$lt_cv_path_MAGIC_CMD"; then
7860 if test -n "$ac_tool_prefix"; then
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7862 $as_echo_n "checking for file... " >&6; }
7863 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7864 $as_echo_n "(cached) " >&6
7868 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7871 lt_save_MAGIC_CMD="$MAGIC_CMD"
7872 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7873 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7874 for ac_dir in $ac_dummy; do
7876 test -z "$ac_dir" && ac_dir=.
7877 if test -f $ac_dir/file; then
7878 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7879 if test -n "$file_magic_test_file"; then
7880 case $deplibs_check_method in
7882 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7883 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7884 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7885 $EGREP "$file_magic_regex" > /dev/null; then
7890 *** Warning: the command libtool uses to detect shared libraries,
7891 *** $file_magic_cmd, produces output that libtool cannot recognize.
7892 *** The result is that libtool may fail to recognize shared libraries
7893 *** as such. This will affect the creation of libtool libraries that
7894 *** depend on shared libraries, but programs linked with such libtool
7895 *** libraries will work regardless of this problem. Nevertheless, you
7896 *** may want to report the problem to your system manager and/or to
7897 *** bug-libtool@gnu.org
7907 MAGIC_CMD="$lt_save_MAGIC_CMD"
7912 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7913 if test -n "$MAGIC_CMD"; then
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7915 $as_echo "$MAGIC_CMD" >&6; }
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7918 $as_echo "no" >&6; }
7931 # Use C for the default configuration in the libtool script
7935 ac_cpp='$CPP $CPPFLAGS'
7936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7941 # Source file extension for C test sources.
7944 # Object file extension for compiled C test sources.
7948 # Code to be used in simple compile tests
7949 lt_simple_compile_test_code="int some_variable = 0;"
7951 # Code to be used in simple link tests
7952 lt_simple_link_test_code='int main(){return(0);}'
7960 # If no C compiler was specified, use CC.
7963 # If no C compiler flags were specified, use CFLAGS.
7964 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7966 # Allow CC to be a program name with arguments.
7969 # Save the default compiler, since it gets overwritten when the other
7970 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7971 compiler_DEFAULT=$CC
7973 # save warnings/boilerplate of simple test code
7974 ac_outfile=conftest.$ac_objext
7975 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7976 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7977 _lt_compiler_boilerplate=`cat conftest.err`
7980 ac_outfile=conftest.$ac_objext
7981 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7982 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7983 _lt_linker_boilerplate=`cat conftest.err`
7988 ## There is no encapsulation within the following macros, do not change
7989 ## the running order or otherwise move them around unless you know exactly
7990 ## what you are doing...
7991 if test -n "$compiler"; then
7993 lt_prog_compiler_no_builtin_flag=
7995 if test "$GCC" = yes; then
7996 case $cc_basename in
7998 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8000 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8004 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8005 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8006 $as_echo_n "(cached) " >&6
8008 lt_cv_prog_compiler_rtti_exceptions=no
8009 ac_outfile=conftest.$ac_objext
8010 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8011 lt_compiler_flag="-fno-rtti -fno-exceptions"
8012 # Insert the option either (1) after the last *FLAGS variable, or
8013 # (2) before a word containing "conftest.", or (3) at the end.
8014 # Note that $ac_compile itself does not contain backslashes and begins
8015 # with a dollar sign (not a hyphen), so the echo should work correctly.
8016 # The option is referenced via a variable to avoid confusing sed.
8017 lt_compile=`echo "$ac_compile" | $SED \
8018 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8019 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8020 -e 's:$: $lt_compiler_flag:'`
8021 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8022 (eval "$lt_compile" 2>conftest.err)
8024 cat conftest.err >&5
8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026 if (exit $ac_status) && test -s "$ac_outfile"; then
8027 # The compiler can only warn and ignore the option if not recognized
8028 # So say no if there are warnings other than the usual output.
8029 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8030 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8031 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8032 lt_cv_prog_compiler_rtti_exceptions=yes
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8039 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8041 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8042 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8054 lt_prog_compiler_wl=
8055 lt_prog_compiler_pic=
8056 lt_prog_compiler_static=
8059 if test "$GCC" = yes; then
8060 lt_prog_compiler_wl='-Wl,'
8061 lt_prog_compiler_static='-static'
8065 # All AIX code is PIC.
8066 if test "$host_cpu" = ia64; then
8067 # AIX 5 now supports IA64 processor
8068 lt_prog_compiler_static='-Bstatic'
8075 # see comment about AmigaOS4 .so support
8076 lt_prog_compiler_pic='-fPIC'
8079 # FIXME: we need at least 68020 code to build shared libraries, but
8080 # adding the `-m68020' flag to GCC prevents building anything better,
8082 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8087 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8088 # PIC is the default for these OSes.
8091 mingw* | cygwin* | pw32* | os2* | cegcc*)
8092 # This hack is so that the source file can tell whether it is being
8093 # built for inclusion in a dll (and should export symbols for example).
8094 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8095 # (--disable-auto-import) libraries
8096 lt_prog_compiler_pic='-DDLL_EXPORT'
8099 darwin* | rhapsody*)
8100 # PIC is the default on this platform
8101 # Common symbols not allowed in MH_DYLIB files
8102 lt_prog_compiler_pic='-fno-common'
8106 # PIC is the default for Haiku.
8107 # The "-static" flag exists, but is broken.
8108 lt_prog_compiler_static=
8112 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8113 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8114 # sets the default TLS model and affects inlining.
8120 lt_prog_compiler_pic='-fPIC'
8126 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8127 # Instead, we relocate shared libraries at runtime.
8131 # Just because we use GCC doesn't mean we suddenly get shared libraries
8132 # on systems that don't support them.
8133 lt_prog_compiler_can_build_shared=no
8138 # QNX uses GNU C++, but need to define -shared option too, otherwise
8140 lt_prog_compiler_pic='-fPIC -shared'
8144 if test -d /usr/nec; then
8145 lt_prog_compiler_pic=-Kconform_pic
8150 lt_prog_compiler_pic='-fPIC'
8154 case $cc_basename in
8155 nvcc*) # Cuda Compiler Driver 2.2
8156 lt_prog_compiler_wl='-Xlinker '
8157 if test -n "$lt_prog_compiler_pic"; then
8158 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8163 # PORTME Check for flag to pass linker flags through the system compiler.
8166 lt_prog_compiler_wl='-Wl,'
8167 if test "$host_cpu" = ia64; then
8168 # AIX 5 now supports IA64 processor
8169 lt_prog_compiler_static='-Bstatic'
8171 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8175 mingw* | cygwin* | pw32* | os2* | cegcc*)
8176 # This hack is so that the source file can tell whether it is being
8177 # built for inclusion in a dll (and should export symbols for example).
8178 lt_prog_compiler_pic='-DDLL_EXPORT'
8181 hpux9* | hpux10* | hpux11*)
8182 lt_prog_compiler_wl='-Wl,'
8183 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8190 lt_prog_compiler_pic='+Z'
8193 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8194 lt_prog_compiler_static='${wl}-a ${wl}archive'
8197 irix5* | irix6* | nonstopux*)
8198 lt_prog_compiler_wl='-Wl,'
8199 # PIC (with -KPIC) is the default.
8200 lt_prog_compiler_static='-non_shared'
8203 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8204 case $cc_basename in
8205 # old Intel for x86_64 which still supported -KPIC.
8207 lt_prog_compiler_wl='-Wl,'
8208 lt_prog_compiler_pic='-KPIC'
8209 lt_prog_compiler_static='-static'
8211 # icc used to be incompatible with GCC.
8212 # ICC 10 doesn't accept -KPIC any more.
8214 lt_prog_compiler_wl='-Wl,'
8215 lt_prog_compiler_pic='-fPIC'
8216 lt_prog_compiler_static='-static'
8218 # Lahey Fortran 8.1.
8220 lt_prog_compiler_wl='-Wl,'
8221 lt_prog_compiler_pic='--shared'
8222 lt_prog_compiler_static='--static'
8225 # NAG Fortran compiler
8226 lt_prog_compiler_wl='-Wl,-Wl,,'
8227 lt_prog_compiler_pic='-PIC'
8228 lt_prog_compiler_static='-Bstatic'
8230 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8231 # Portland Group compilers (*not* the Pentium gcc compiler,
8232 # which looks to be a dead project)
8233 lt_prog_compiler_wl='-Wl,'
8234 lt_prog_compiler_pic='-fpic'
8235 lt_prog_compiler_static='-Bstatic'
8238 lt_prog_compiler_wl='-Wl,'
8239 # All Alpha code is PIC.
8240 lt_prog_compiler_static='-non_shared'
8242 xl* | bgxl* | bgf* | mpixl*)
8243 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8244 lt_prog_compiler_wl='-Wl,'
8245 lt_prog_compiler_pic='-qpic'
8246 lt_prog_compiler_static='-qstaticlink'
8249 case `$CC -V 2>&1 | sed 5q` in
8250 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8251 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8252 lt_prog_compiler_pic='-KPIC'
8253 lt_prog_compiler_static='-Bstatic'
8254 lt_prog_compiler_wl=''
8256 *Sun\ F* | *Sun*Fortran*)
8257 lt_prog_compiler_pic='-KPIC'
8258 lt_prog_compiler_static='-Bstatic'
8259 lt_prog_compiler_wl='-Qoption ld '
8263 lt_prog_compiler_pic='-KPIC'
8264 lt_prog_compiler_static='-Bstatic'
8265 lt_prog_compiler_wl='-Wl,'
8267 *Intel*\ [CF]*Compiler*)
8268 lt_prog_compiler_wl='-Wl,'
8269 lt_prog_compiler_pic='-fPIC'
8270 lt_prog_compiler_static='-static'
8273 lt_prog_compiler_wl='-Wl,'
8274 lt_prog_compiler_pic='-fpic'
8275 lt_prog_compiler_static='-Bstatic'
8283 lt_prog_compiler_pic='-KPIC'
8284 lt_prog_compiler_static='-Bstatic'
8288 # QNX uses GNU C++, but need to define -shared option too, otherwise
8290 lt_prog_compiler_pic='-fPIC -shared'
8293 osf3* | osf4* | osf5*)
8294 lt_prog_compiler_wl='-Wl,'
8295 # All OSF/1 code is PIC.
8296 lt_prog_compiler_static='-non_shared'
8300 lt_prog_compiler_static='-non_shared'
8304 lt_prog_compiler_pic='-KPIC'
8305 lt_prog_compiler_static='-Bstatic'
8306 case $cc_basename in
8307 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8308 lt_prog_compiler_wl='-Qoption ld ';;
8310 lt_prog_compiler_wl='-Wl,';;
8315 lt_prog_compiler_wl='-Qoption ld '
8316 lt_prog_compiler_pic='-PIC'
8317 lt_prog_compiler_static='-Bstatic'
8320 sysv4 | sysv4.2uw2* | sysv4.3*)
8321 lt_prog_compiler_wl='-Wl,'
8322 lt_prog_compiler_pic='-KPIC'
8323 lt_prog_compiler_static='-Bstatic'
8327 if test -d /usr/nec ;then
8328 lt_prog_compiler_pic='-Kconform_pic'
8329 lt_prog_compiler_static='-Bstatic'
8333 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8334 lt_prog_compiler_wl='-Wl,'
8335 lt_prog_compiler_pic='-KPIC'
8336 lt_prog_compiler_static='-Bstatic'
8340 lt_prog_compiler_wl='-Wl,'
8341 lt_prog_compiler_can_build_shared=no
8345 lt_prog_compiler_pic='-pic'
8346 lt_prog_compiler_static='-Bstatic'
8350 lt_prog_compiler_can_build_shared=no
8356 # For platforms which do not support PIC, -DPIC is meaningless:
8358 lt_prog_compiler_pic=
8361 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8366 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8367 if ${lt_cv_prog_compiler_pic+:} false; then :
8368 $as_echo_n "(cached) " >&6
8370 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8373 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8374 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8377 # Check to make sure the PIC flag actually works.
8379 if test -n "$lt_prog_compiler_pic"; then
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8381 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8382 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8383 $as_echo_n "(cached) " >&6
8385 lt_cv_prog_compiler_pic_works=no
8386 ac_outfile=conftest.$ac_objext
8387 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8388 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8389 # Insert the option either (1) after the last *FLAGS variable, or
8390 # (2) before a word containing "conftest.", or (3) at the end.
8391 # Note that $ac_compile itself does not contain backslashes and begins
8392 # with a dollar sign (not a hyphen), so the echo should work correctly.
8393 # The option is referenced via a variable to avoid confusing sed.
8394 lt_compile=`echo "$ac_compile" | $SED \
8395 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8396 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8397 -e 's:$: $lt_compiler_flag:'`
8398 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8399 (eval "$lt_compile" 2>conftest.err)
8401 cat conftest.err >&5
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 if (exit $ac_status) && test -s "$ac_outfile"; then
8404 # The compiler can only warn and ignore the option if not recognized
8405 # So say no if there are warnings other than the usual output.
8406 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8407 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8408 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8409 lt_cv_prog_compiler_pic_works=yes
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8416 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8418 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8419 case $lt_prog_compiler_pic in
8421 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8424 lt_prog_compiler_pic=
8425 lt_prog_compiler_can_build_shared=no
8441 # Check to make sure the static flag actually works.
8443 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8445 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8446 if ${lt_cv_prog_compiler_static_works+:} false; then :
8447 $as_echo_n "(cached) " >&6
8449 lt_cv_prog_compiler_static_works=no
8450 save_LDFLAGS="$LDFLAGS"
8451 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8452 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8453 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8454 # The linker can only warn and ignore the option if not recognized
8455 # So say no if there are warnings
8456 if test -s conftest.err; then
8457 # Append any errors to the config.log.
8458 cat conftest.err 1>&5
8459 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8460 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8461 if diff conftest.exp conftest.er2 >/dev/null; then
8462 lt_cv_prog_compiler_static_works=yes
8465 lt_cv_prog_compiler_static_works=yes
8469 LDFLAGS="$save_LDFLAGS"
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8473 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8475 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8478 lt_prog_compiler_static=
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8488 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8489 if ${lt_cv_prog_compiler_c_o+:} false; then :
8490 $as_echo_n "(cached) " >&6
8492 lt_cv_prog_compiler_c_o=no
8493 $RM -r conftest 2>/dev/null
8497 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8499 lt_compiler_flag="-o out/conftest2.$ac_objext"
8500 # Insert the option either (1) after the last *FLAGS variable, or
8501 # (2) before a word containing "conftest.", or (3) at the end.
8502 # Note that $ac_compile itself does not contain backslashes and begins
8503 # with a dollar sign (not a hyphen), so the echo should work correctly.
8504 lt_compile=`echo "$ac_compile" | $SED \
8505 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8506 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8507 -e 's:$: $lt_compiler_flag:'`
8508 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8509 (eval "$lt_compile" 2>out/conftest.err)
8511 cat out/conftest.err >&5
8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8515 # The compiler can only warn and ignore the option if not recognized
8516 # So say no if there are warnings
8517 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8518 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8519 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8520 lt_cv_prog_compiler_c_o=yes
8525 # SGI C++ compiler will create directory out/ii_files/ for
8526 # template instantiation
8527 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8528 $RM out/* && rmdir out
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8535 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8543 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8544 if ${lt_cv_prog_compiler_c_o+:} false; then :
8545 $as_echo_n "(cached) " >&6
8547 lt_cv_prog_compiler_c_o=no
8548 $RM -r conftest 2>/dev/null
8552 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8554 lt_compiler_flag="-o out/conftest2.$ac_objext"
8555 # Insert the option either (1) after the last *FLAGS variable, or
8556 # (2) before a word containing "conftest.", or (3) at the end.
8557 # Note that $ac_compile itself does not contain backslashes and begins
8558 # with a dollar sign (not a hyphen), so the echo should work correctly.
8559 lt_compile=`echo "$ac_compile" | $SED \
8560 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8561 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8562 -e 's:$: $lt_compiler_flag:'`
8563 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8564 (eval "$lt_compile" 2>out/conftest.err)
8566 cat out/conftest.err >&5
8567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8570 # The compiler can only warn and ignore the option if not recognized
8571 # So say no if there are warnings
8572 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8573 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8574 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8575 lt_cv_prog_compiler_c_o=yes
8580 # SGI C++ compiler will create directory out/ii_files/ for
8581 # template instantiation
8582 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8583 $RM out/* && rmdir out
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8590 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8595 hard_links="nottested"
8596 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8597 # do not overwrite the value of need_locks provided by the user
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8599 $as_echo_n "checking if we can lock with hard links... " >&6; }
8602 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8604 ln conftest.a conftest.b 2>&5 || hard_links=no
8605 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8607 $as_echo "$hard_links" >&6; }
8608 if test "$hard_links" = no; then
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8610 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8623 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8626 allow_undefined_flag=
8627 always_export_symbols=no
8629 archive_expsym_cmds=
8630 compiler_needs_object=no
8631 enable_shared_with_static_runtimes=no
8632 export_dynamic_flag_spec=
8633 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8634 hardcode_automatic=no
8636 hardcode_direct_absolute=no
8637 hardcode_libdir_flag_spec=
8638 hardcode_libdir_separator=
8640 hardcode_shlibpath_var=unsupported
8642 link_all_deplibs=unknown
8645 old_archive_from_new_cmds=
8646 old_archive_from_expsyms_cmds=
8647 thread_safe_flag_spec=
8648 whole_archive_flag_spec=
8649 # include_expsyms should be a list of space-separated symbols to be *always*
8650 # included in the symbol list
8652 # exclude_expsyms can be an extended regexp of symbols to exclude
8653 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8654 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8655 # as well as any symbol that contains `d'.
8656 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8657 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8658 # platforms (ab)use it in PIC code, but their linkers get confused if
8659 # the symbol is explicitly referenced. Since portable code cannot
8660 # rely on this symbol name, it's probably fine to never include it in
8661 # preloaded symbol tables.
8662 # Exclude shared library initialization/finalization symbols.
8663 extract_expsyms_cmds=
8666 cygwin* | mingw* | pw32* | cegcc*)
8667 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8668 # When not using gcc, we currently assume that we are using
8669 # Microsoft Visual C++.
8670 if test "$GCC" != yes; then
8675 # we just hope/assume this is gcc and not c89 (= MSVC++)
8681 linux* | k*bsd*-gnu | gnu*)
8688 # On some targets, GNU ld is compatible enough with the native linker
8689 # that we're better off using the native interface for both.
8690 lt_use_gnu_ld_interface=no
8691 if test "$with_gnu_ld" = yes; then
8694 # The AIX port of GNU ld has always aspired to compatibility
8695 # with the native linker. However, as the warning in the GNU ld
8696 # block says, versions before 2.19.5* couldn't really create working
8697 # shared libraries, regardless of the interface used.
8698 case `$LD -v 2>&1` in
8699 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8700 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8701 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8703 lt_use_gnu_ld_interface=yes
8708 lt_use_gnu_ld_interface=yes
8713 if test "$lt_use_gnu_ld_interface" = yes; then
8714 # If archive_cmds runs LD, not CC, wlarc should be empty
8717 # Set some defaults for GNU ld with shared library support. These
8718 # are reset later if shared libraries are not supported. Putting them
8719 # here allows them to be overridden if necessary.
8720 runpath_var=LD_RUN_PATH
8721 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8722 export_dynamic_flag_spec='${wl}--export-dynamic'
8723 # ancient GNU ld didn't support --whole-archive et. al.
8724 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8725 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8727 whole_archive_flag_spec=
8729 supports_anon_versioning=no
8730 case `$LD -v 2>&1` in
8731 *GNU\ gold*) supports_anon_versioning=yes ;;
8732 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8733 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8734 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8735 *\ 2.11.*) ;; # other 2.11 versions
8736 *) supports_anon_versioning=yes ;;
8739 # See if GNU ld supports shared libraries.
8742 # On AIX/PPC, the GNU linker is very broken
8743 if test "$host_cpu" != ia64; then
8747 *** Warning: the GNU linker, at least up to release 2.19, is reported
8748 *** to be unable to reliably create shared libraries on AIX.
8749 *** Therefore, libtool is disabling shared libraries support. If you
8750 *** really care for shared libraries, you may want to install binutils
8751 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8752 *** You will then need to restart the configuration process.
8761 # see comment about AmigaOS4 .so support
8762 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8763 archive_expsym_cmds=''
8766 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)'
8767 hardcode_libdir_flag_spec='-L$libdir'
8768 hardcode_minus_L=yes
8774 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8775 allow_undefined_flag=unsupported
8776 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8777 # support --undefined. This deserves some investigation. FIXME
8778 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8784 cygwin* | mingw* | pw32* | cegcc*)
8785 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8786 # as there is no search path for DLLs.
8787 hardcode_libdir_flag_spec='-L$libdir'
8788 export_dynamic_flag_spec='${wl}--export-all-symbols'
8789 allow_undefined_flag=unsupported
8790 always_export_symbols=no
8791 enable_shared_with_static_runtimes=yes
8792 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8793 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8795 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8796 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8797 # If the export-symbols file already is a .def file (1st line
8798 # is EXPORTS), use it as is; otherwise, prepend...
8799 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8800 cp $export_symbols $output_objdir/$soname.def;
8802 echo EXPORTS > $output_objdir/$soname.def;
8803 cat $export_symbols >> $output_objdir/$soname.def;
8805 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8812 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8813 link_all_deplibs=yes
8818 hardcode_shlibpath_var=no
8819 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8820 export_dynamic_flag_spec='${wl}-E'
8821 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8822 # Instead, shared libraries are loaded at an image base (0x10000000 by
8823 # default) and relocated if they conflict, which is a slow very memory
8824 # consuming and fragmenting process. To avoid this, we pick a random,
8825 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8826 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8827 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8828 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'
8831 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8833 if test "$host_os" = linux-dietlibc; then
8834 case $cc_basename in
8835 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8838 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8839 && test "$tmp_diet" = no
8841 tmp_addflag=' $pic_flag'
8842 tmp_sharedflag='-shared'
8843 case $cc_basename,$host_cpu in
8844 pgcc*) # Portland Group C compiler
8845 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8846 tmp_addflag=' $pic_flag'
8848 pgf77* | pgf90* | pgf95* | pgfortran*)
8849 # Portland Group f77 and f90 compilers
8850 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8851 tmp_addflag=' $pic_flag -Mnomain' ;;
8852 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8853 tmp_addflag=' -i_dynamic' ;;
8854 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8855 tmp_addflag=' -i_dynamic -nofor_main' ;;
8856 ifc* | ifort*) # Intel Fortran compiler
8857 tmp_addflag=' -nofor_main' ;;
8858 lf95*) # Lahey Fortran 8.1
8859 whole_archive_flag_spec=
8860 tmp_sharedflag='--shared' ;;
8861 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8862 tmp_sharedflag='-qmkshrobj'
8864 nvcc*) # Cuda Compiler Driver 2.2
8865 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8866 compiler_needs_object=yes
8869 case `$CC -V 2>&1 | sed 5q` in
8870 *Sun\ C*) # Sun C 5.9
8871 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8872 compiler_needs_object=yes
8873 tmp_sharedflag='-G' ;;
8874 *Sun\ F*) # Sun Fortran 8.3
8875 tmp_sharedflag='-G' ;;
8877 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8879 if test "x$supports_anon_versioning" = xyes; then
8880 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8881 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8882 echo "local: *; };" >> $output_objdir/$libname.ver~
8883 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8886 case $cc_basename in
8887 xlf* | bgf* | bgxlf* | mpixlf*)
8888 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8889 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8890 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8891 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8892 if test "x$supports_anon_versioning" = xyes; then
8893 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8894 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8895 echo "local: *; };" >> $output_objdir/$libname.ver~
8896 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8905 netbsd* | netbsdelf*-gnu)
8906 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8907 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8910 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8911 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8916 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8920 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8921 *** create shared libraries on Solaris systems. Therefore, libtool
8922 *** is disabling shared libraries support. We urge you to upgrade GNU
8923 *** binutils to release 2.9.1 or newer. Another option is to modify
8924 *** your PATH or compiler configuration so that the native linker is
8925 *** used, and then restart.
8928 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8929 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8930 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8936 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8937 case `$LD -v 2>&1` in
8938 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8942 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8943 *** reliably create shared libraries on SCO systems. Therefore, libtool
8944 *** is disabling shared libraries support. We urge you to upgrade GNU
8945 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8946 *** your PATH or compiler configuration so that the native linker is
8947 *** used, and then restart.
8952 # For security reasons, it is highly recommended that you always
8953 # use absolute paths for naming shared libraries, and exclude the
8954 # DT_RUNPATH tag from executables and libraries. But doing so
8955 # requires that you compile everything twice, which is a pain.
8956 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8957 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8958 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8959 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8968 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8971 hardcode_shlibpath_var=no
8975 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8976 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8977 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8984 if test "$ld_shlibs" = no; then
8986 hardcode_libdir_flag_spec=
8987 export_dynamic_flag_spec=
8988 whole_archive_flag_spec=
8991 # PORTME fill in a description of your system's linker (not GNU ld)
8994 allow_undefined_flag=unsupported
8995 always_export_symbols=yes
8996 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'
8997 # Note: this linker hardcodes the directories in LIBPATH if there
8998 # are no directories specified by -L.
8999 hardcode_minus_L=yes
9000 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9001 # Neither direct hardcoding nor static linking is supported with a
9003 hardcode_direct=unsupported
9008 if test "$host_cpu" = ia64; then
9009 # On IA64, the linker does run time linking by default, so we don't
9010 # have to do anything special.
9011 aix_use_runtimelinking=no
9012 exp_sym_flag='-Bexport'
9015 # If we're using GNU nm, then we don't want the "-C" option.
9016 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9017 # Also, AIX nm treats weak defined symbols like other global
9018 # defined symbols, whereas GNU nm marks them as "W".
9019 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9020 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9022 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'
9024 aix_use_runtimelinking=no
9026 # Test if we are trying to use run time linking or normal
9027 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9028 # need to do runtime linking.
9029 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9030 for ld_flag in $LDFLAGS; do
9031 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9032 aix_use_runtimelinking=yes
9039 exp_sym_flag='-bexport'
9040 no_entry_flag='-bnoentry'
9043 # When large executables or shared objects are built, AIX ld can
9044 # have problems creating the table of contents. If linking a library
9045 # or program results in "error TOC overflow" add -mminimal-toc to
9046 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9047 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9051 hardcode_direct_absolute=yes
9052 hardcode_libdir_separator=':'
9053 link_all_deplibs=yes
9054 file_list_spec='${wl}-f,'
9056 if test "$GCC" = yes; then
9057 case $host_os in aix4.[012]|aix4.[012].*)
9058 # We only want to do this on AIX 4.2 and lower, the check
9059 # below for broken collect2 doesn't work under 4.3+
9060 collect2name=`${CC} -print-prog-name=collect2`
9061 if test -f "$collect2name" &&
9062 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9064 # We have reworked collect2
9067 # We have old collect2
9068 hardcode_direct=unsupported
9069 # It fails to find uninstalled libraries when the uninstalled
9070 # path is not listed in the libpath. Setting hardcode_minus_L
9071 # to unsupported forces relinking
9072 hardcode_minus_L=yes
9073 hardcode_libdir_flag_spec='-L$libdir'
9074 hardcode_libdir_separator=
9078 shared_flag='-shared'
9079 if test "$aix_use_runtimelinking" = yes; then
9080 shared_flag="$shared_flag "'${wl}-G'
9085 if test "$host_cpu" = ia64; then
9086 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9087 # chokes on -Wl,-G. The following line is correct:
9090 if test "$aix_use_runtimelinking" = yes; then
9091 shared_flag='${wl}-G'
9093 shared_flag='${wl}-bM:SRE'
9098 export_dynamic_flag_spec='${wl}-bexpall'
9099 # It seems that -bexpall does not export symbols beginning with
9100 # underscore (_), so it is better to generate a list of symbols to export.
9101 always_export_symbols=yes
9102 if test "$aix_use_runtimelinking" = yes; then
9103 # Warning - without using the other runtime loading flags (-brtl),
9104 # -berok will link without error, but may produce a broken library.
9105 allow_undefined_flag='-berok'
9106 # Determine the default libpath from the value encoded in an
9108 if test "${lt_cv_aix_libpath+set}" = set; then
9109 aix_libpath=$lt_cv_aix_libpath
9111 if ${lt_cv_aix_libpath_+:} false; then :
9112 $as_echo_n "(cached) " >&6
9114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9115 /* end confdefs.h. */
9125 if ac_fn_c_try_link "$LINENO"; then :
9127 lt_aix_libpath_sed='
9128 /Import File Strings/,/^$/ {
9130 s/^0 *\([^ ]*\) *$/\1/
9134 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9135 # Check for a 64-bit object if we didn't find anything.
9136 if test -z "$lt_cv_aix_libpath_"; then
9137 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9140 rm -f core conftest.err conftest.$ac_objext \
9141 conftest$ac_exeext conftest.$ac_ext
9142 if test -z "$lt_cv_aix_libpath_"; then
9143 lt_cv_aix_libpath_="/usr/lib:/lib"
9148 aix_libpath=$lt_cv_aix_libpath_
9151 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9152 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9154 if test "$host_cpu" = ia64; then
9155 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9156 allow_undefined_flag="-z nodefs"
9157 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"
9159 # Determine the default libpath from the value encoded in an
9161 if test "${lt_cv_aix_libpath+set}" = set; then
9162 aix_libpath=$lt_cv_aix_libpath
9164 if ${lt_cv_aix_libpath_+:} false; then :
9165 $as_echo_n "(cached) " >&6
9167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9168 /* end confdefs.h. */
9178 if ac_fn_c_try_link "$LINENO"; then :
9180 lt_aix_libpath_sed='
9181 /Import File Strings/,/^$/ {
9183 s/^0 *\([^ ]*\) *$/\1/
9187 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9188 # Check for a 64-bit object if we didn't find anything.
9189 if test -z "$lt_cv_aix_libpath_"; then
9190 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9193 rm -f core conftest.err conftest.$ac_objext \
9194 conftest$ac_exeext conftest.$ac_ext
9195 if test -z "$lt_cv_aix_libpath_"; then
9196 lt_cv_aix_libpath_="/usr/lib:/lib"
9201 aix_libpath=$lt_cv_aix_libpath_
9204 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9205 # Warning - without using the other run time loading flags,
9206 # -berok will link without error, but may produce a broken library.
9207 no_undefined_flag=' ${wl}-bernotok'
9208 allow_undefined_flag=' ${wl}-berok'
9209 if test "$with_gnu_ld" = yes; then
9210 # We only use this code for GNU lds that support --whole-archive.
9211 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9213 # Exported symbols can be pulled into shared objects from archives
9214 whole_archive_flag_spec='$convenience'
9216 archive_cmds_need_lc=yes
9217 # This is similar to how AIX traditionally builds its shared libraries.
9218 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'
9226 # see comment about AmigaOS4 .so support
9227 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9228 archive_expsym_cmds=''
9231 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)'
9232 hardcode_libdir_flag_spec='-L$libdir'
9233 hardcode_minus_L=yes
9239 export_dynamic_flag_spec=-rdynamic
9242 cygwin* | mingw* | pw32* | cegcc*)
9243 # When not using gcc, we currently assume that we are using
9244 # Microsoft Visual C++.
9245 # hardcode_libdir_flag_spec is actually meaningless, as there is
9246 # no search path for DLLs.
9247 case $cc_basename in
9250 hardcode_libdir_flag_spec=' '
9251 allow_undefined_flag=unsupported
9252 always_export_symbols=yes
9254 # Tell ltmain to make .lib files, not .a files.
9256 # Tell ltmain to make .dll files, not .so files.
9258 # FIXME: Setting linknames here is a bad hack.
9259 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9260 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9261 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9263 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9265 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9267 # The linker will not automatically build a static lib if we build a DLL.
9268 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9269 enable_shared_with_static_runtimes=yes
9270 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9271 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9273 old_postinstall_cmds='chmod 644 $oldlib'
9274 postlink_cmds='lt_outputfile="@OUTPUT@"~
9275 lt_tool_outputfile="@TOOL_OUTPUT@"~
9276 case $lt_outputfile in
9279 lt_outputfile="$lt_outputfile.exe"
9280 lt_tool_outputfile="$lt_tool_outputfile.exe"
9283 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9284 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9285 $RM "$lt_outputfile.manifest";
9289 # Assume MSVC wrapper
9290 hardcode_libdir_flag_spec=' '
9291 allow_undefined_flag=unsupported
9292 # Tell ltmain to make .lib files, not .a files.
9294 # Tell ltmain to make .dll files, not .so files.
9296 # FIXME: Setting linknames here is a bad hack.
9297 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9298 # The linker will automatically build a .lib file if we build a DLL.
9299 old_archive_from_new_cmds='true'
9300 # FIXME: Should let the user specify the lib program.
9301 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9302 enable_shared_with_static_runtimes=yes
9307 darwin* | rhapsody*)
9310 archive_cmds_need_lc=no
9312 hardcode_automatic=yes
9313 hardcode_shlibpath_var=unsupported
9314 if test "$lt_cv_ld_force_load" = "yes"; then
9315 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9318 whole_archive_flag_spec=''
9320 link_all_deplibs=yes
9321 allow_undefined_flag="$_lt_dar_allow_undefined"
9322 case $cc_basename in
9323 ifort*) _lt_dar_can_shared=yes ;;
9324 *) _lt_dar_can_shared=$GCC ;;
9326 if test "$_lt_dar_can_shared" = "yes"; then
9327 output_verbose_link_cmd=func_echo_all
9328 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9329 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9330 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}"
9331 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}"
9340 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9341 hardcode_libdir_flag_spec='-L$libdir'
9342 hardcode_shlibpath_var=no
9345 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9346 # support. Future versions do this automatically, but an explicit c++rt0.o
9347 # does not break anything, and helps significantly (at the cost of a little
9350 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9351 hardcode_libdir_flag_spec='-R$libdir'
9353 hardcode_shlibpath_var=no
9356 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9358 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9360 hardcode_minus_L=yes
9361 hardcode_shlibpath_var=no
9364 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9365 freebsd* | dragonfly*)
9366 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9367 hardcode_libdir_flag_spec='-R$libdir'
9369 hardcode_shlibpath_var=no
9373 if test "$GCC" = yes; then
9374 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9376 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'
9378 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9379 hardcode_libdir_separator=:
9382 # hardcode_minus_L: Not really in the search PATH,
9383 # but as the default location of the library.
9384 hardcode_minus_L=yes
9385 export_dynamic_flag_spec='${wl}-E'
9389 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9390 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9392 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9394 if test "$with_gnu_ld" = no; then
9395 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9396 hardcode_libdir_separator=:
9398 hardcode_direct_absolute=yes
9399 export_dynamic_flag_spec='${wl}-E'
9400 # hardcode_minus_L: Not really in the search PATH,
9401 # but as the default location of the library.
9402 hardcode_minus_L=yes
9407 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9410 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9413 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9416 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9422 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9425 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9429 # Older versions of the 11.00 compiler do not understand -b yet
9430 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9432 $as_echo_n "checking if $CC understands -b... " >&6; }
9433 if ${lt_cv_prog_compiler__b+:} false; then :
9434 $as_echo_n "(cached) " >&6
9436 lt_cv_prog_compiler__b=no
9437 save_LDFLAGS="$LDFLAGS"
9438 LDFLAGS="$LDFLAGS -b"
9439 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9440 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9441 # The linker can only warn and ignore the option if not recognized
9442 # So say no if there are warnings
9443 if test -s conftest.err; then
9444 # Append any errors to the config.log.
9445 cat conftest.err 1>&5
9446 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9447 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9448 if diff conftest.exp conftest.er2 >/dev/null; then
9449 lt_cv_prog_compiler__b=yes
9452 lt_cv_prog_compiler__b=yes
9456 LDFLAGS="$save_LDFLAGS"
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9460 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9462 if test x"$lt_cv_prog_compiler__b" = xyes; then
9463 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9465 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9471 if test "$with_gnu_ld" = no; then
9472 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9473 hardcode_libdir_separator=:
9478 hardcode_shlibpath_var=no
9482 hardcode_direct_absolute=yes
9483 export_dynamic_flag_spec='${wl}-E'
9485 # hardcode_minus_L: Not really in the search PATH,
9486 # but as the default location of the library.
9487 hardcode_minus_L=yes
9493 irix5* | irix6* | nonstopux*)
9494 if test "$GCC" = yes; then
9495 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9496 # Try to use the -exported_symbol ld option, if it does not
9497 # work, assume that -exports_file does not work either and
9498 # implicitly export all symbols.
9499 # This should be the same for all languages, so no per-tag cache variable.
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9501 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9502 if ${lt_cv_irix_exported_symbol+:} false; then :
9503 $as_echo_n "(cached) " >&6
9505 save_LDFLAGS="$LDFLAGS"
9506 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9508 /* end confdefs.h. */
9509 int foo (void) { return 0; }
9511 if ac_fn_c_try_link "$LINENO"; then :
9512 lt_cv_irix_exported_symbol=yes
9514 lt_cv_irix_exported_symbol=no
9516 rm -f core conftest.err conftest.$ac_objext \
9517 conftest$ac_exeext conftest.$ac_ext
9518 LDFLAGS="$save_LDFLAGS"
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9521 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9522 if test "$lt_cv_irix_exported_symbol" = yes; then
9523 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9526 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9527 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9529 archive_cmds_need_lc='no'
9530 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9531 hardcode_libdir_separator=:
9533 link_all_deplibs=yes
9536 netbsd* | netbsdelf*-gnu)
9537 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9538 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9540 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9542 hardcode_libdir_flag_spec='-R$libdir'
9544 hardcode_shlibpath_var=no
9548 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9550 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9551 hardcode_libdir_separator=:
9552 hardcode_shlibpath_var=no
9559 if test -f /usr/libexec/ld.so; then
9561 hardcode_shlibpath_var=no
9562 hardcode_direct_absolute=yes
9563 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9564 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9565 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9566 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9567 export_dynamic_flag_spec='${wl}-E'
9570 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9571 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9572 hardcode_libdir_flag_spec='-R$libdir'
9575 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9576 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9586 hardcode_libdir_flag_spec='-L$libdir'
9587 hardcode_minus_L=yes
9588 allow_undefined_flag=unsupported
9589 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'
9590 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9594 if test "$GCC" = yes; then
9595 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9596 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9598 allow_undefined_flag=' -expect_unresolved \*'
9599 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9601 archive_cmds_need_lc='no'
9602 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9603 hardcode_libdir_separator=:
9606 osf4* | osf5*) # as osf3* with the addition of -msym flag
9607 if test "$GCC" = yes; then
9608 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9609 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9610 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9612 allow_undefined_flag=' -expect_unresolved \*'
9613 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9614 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~
9615 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9617 # Both c and cxx compiler support -rpath directly
9618 hardcode_libdir_flag_spec='-rpath $libdir'
9620 archive_cmds_need_lc='no'
9621 hardcode_libdir_separator=:
9625 no_undefined_flag=' -z defs'
9626 if test "$GCC" = yes; then
9628 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9629 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9630 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9632 case `$CC -V 2>&1` in
9635 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9636 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9637 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9641 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9642 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9643 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9647 hardcode_libdir_flag_spec='-R$libdir'
9648 hardcode_shlibpath_var=no
9650 solaris2.[0-5] | solaris2.[0-5].*) ;;
9652 # The compiler driver will combine and reorder linker options,
9653 # but understands `-z linker_flag'. GCC discards it without `$wl',
9654 # but is careful enough not to reorder.
9655 # Supported since Solaris 2.6 (maybe 2.5.1?)
9656 if test "$GCC" = yes; then
9657 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9659 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9663 link_all_deplibs=yes
9667 if test "x$host_vendor" = xsequent; then
9668 # Use $CC to link under sequent, because it throws in some extra .o
9669 # files that make .init and .fini sections work.
9670 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9672 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9674 hardcode_libdir_flag_spec='-L$libdir'
9676 hardcode_minus_L=yes
9677 hardcode_shlibpath_var=no
9681 case $host_vendor in
9683 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9684 hardcode_direct=yes # is this really true???
9687 ## LD is ld it makes a PLAMLIB
9688 ## CC just makes a GrossModule.
9689 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9690 reload_cmds='$CC -r -o $output$reload_objs'
9694 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9695 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9698 runpath_var='LD_RUN_PATH'
9699 hardcode_shlibpath_var=no
9703 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9704 hardcode_shlibpath_var=no
9705 export_dynamic_flag_spec='-Bexport'
9709 if test -d /usr/nec; then
9710 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9711 hardcode_shlibpath_var=no
9712 runpath_var=LD_RUN_PATH
9713 hardcode_runpath_var=yes
9718 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9719 no_undefined_flag='${wl}-z,text'
9720 archive_cmds_need_lc=no
9721 hardcode_shlibpath_var=no
9722 runpath_var='LD_RUN_PATH'
9724 if test "$GCC" = yes; then
9725 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9726 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9728 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9729 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9733 sysv5* | sco3.2v5* | sco5v6*)
9734 # Note: We can NOT use -z defs as we might desire, because we do not
9735 # link with -lc, and that would cause any symbols used from libc to
9736 # always be unresolved, which means just about no library would
9737 # ever link correctly. If we're not using GNU ld we use -z text
9738 # though, which does catch some bad symbols but isn't as heavy-handed
9740 no_undefined_flag='${wl}-z,text'
9741 allow_undefined_flag='${wl}-z,nodefs'
9742 archive_cmds_need_lc=no
9743 hardcode_shlibpath_var=no
9744 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9745 hardcode_libdir_separator=':'
9746 link_all_deplibs=yes
9747 export_dynamic_flag_spec='${wl}-Bexport'
9748 runpath_var='LD_RUN_PATH'
9750 if test "$GCC" = yes; then
9751 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9752 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9754 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9755 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9760 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9761 hardcode_libdir_flag_spec='-L$libdir'
9762 hardcode_shlibpath_var=no
9770 if test x$host_vendor = xsni; then
9772 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9773 export_dynamic_flag_spec='${wl}-Blargedynsym'
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9780 $as_echo "$ld_shlibs" >&6; }
9781 test "$ld_shlibs" = no && can_build_shared=no
9783 with_gnu_ld=$with_gnu_ld
9800 # Do we need to explicitly link libc?
9802 case "x$archive_cmds_need_lc" in
9804 # Assume -lc should be added
9805 archive_cmds_need_lc=yes
9807 if test "$enable_shared" = yes && test "$GCC" = yes; then
9808 case $archive_cmds in
9810 # FIXME: we may have to deal with multi-command sequences.
9813 # Test whether the compiler implicitly links with -lc since on some
9814 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9815 # to ld, don't add -lc before -lgcc.
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9817 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9818 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9819 $as_echo_n "(cached) " >&6
9822 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9824 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9825 (eval $ac_compile) 2>&5
9827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9828 test $ac_status = 0; } 2>conftest.err; then
9831 libobjs=conftest.$ac_objext
9833 wl=$lt_prog_compiler_wl
9834 pic_flag=$lt_prog_compiler_pic
9840 lt_save_allow_undefined_flag=$allow_undefined_flag
9841 allow_undefined_flag=
9842 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9843 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9846 test $ac_status = 0; }
9848 lt_cv_archive_cmds_need_lc=no
9850 lt_cv_archive_cmds_need_lc=yes
9852 allow_undefined_flag=$lt_save_allow_undefined_flag
9854 cat conftest.err 1>&5
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9860 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9861 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10020 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10022 if test "$GCC" = yes; then
10024 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10025 *) lt_awk_arg="/^libraries:/" ;;
10028 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10029 *) lt_sed_strip_eq="s,=/,/,g" ;;
10031 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10032 case $lt_search_path_spec in
10034 # if the path contains ";" then we assume it to be the separator
10035 # otherwise default to the standard path separator (i.e. ":") - it is
10036 # assumed that no part of a normal pathname contains ";" but that should
10037 # okay in the real world where ";" in dirpaths is itself problematic.
10038 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10041 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10044 # Ok, now we have the path, separated by spaces, we can step through it
10045 # and add multilib dir if necessary.
10046 lt_tmp_lt_search_path_spec=
10047 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10048 for lt_sys_path in $lt_search_path_spec; do
10049 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10050 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10052 test -d "$lt_sys_path" && \
10053 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10056 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10057 BEGIN {RS=" "; FS="/|\n";} {
10060 for (lt_i = NF; lt_i > 0; lt_i--) {
10061 if ($lt_i != "" && $lt_i != ".") {
10062 if ($lt_i == "..") {
10065 if (lt_count == 0) {
10066 lt_foo="/" $lt_i lt_foo;
10073 if (lt_foo != "") { lt_freq[lt_foo]++; }
10074 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10076 # AWK program above erroneously prepends '/' to C:/dos/paths
10079 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10080 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10082 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10084 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10086 library_names_spec=
10087 libname_spec='lib$name'
10091 postuninstall_cmds=
10095 shlibpath_overrides_runpath=unknown
10097 dynamic_linker="$host_os ld.so"
10098 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10099 need_lib_prefix=unknown
10100 hardcode_into_libs=no
10102 # when you set need_version to no, make sure it does not cause -set_version
10103 # flags to be left without arguments
10104 need_version=unknown
10108 version_type=linux # correct to gnu/linux during the next big refactor
10109 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10110 shlibpath_var=LIBPATH
10112 # AIX 3 has no versioning support, so we append a major version to the name.
10113 soname_spec='${libname}${release}${shared_ext}$major'
10117 version_type=linux # correct to gnu/linux during the next big refactor
10120 hardcode_into_libs=yes
10121 if test "$host_cpu" = ia64; then
10122 # AIX 5 supports IA64
10123 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10124 shlibpath_var=LD_LIBRARY_PATH
10126 # With GCC up to 2.95.x, collect2 would create an import file
10127 # for dependence libraries. The import file would start with
10128 # the line `#! .'. This would cause the generated library to
10129 # depend on `.', always an invalid library. This was fixed in
10130 # development snapshots of GCC prior to 3.0.
10132 aix4 | aix4.[01] | aix4.[01].*)
10133 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10135 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10138 can_build_shared=no
10142 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10143 # soname into executable. Probably we can add versioning support to
10144 # collect2, so additional links can be useful in future.
10145 if test "$aix_use_runtimelinking" = yes; then
10146 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10147 # instead of lib<name>.a to let people know that these are not
10148 # typical AIX shared libraries.
10149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10151 # We preserve .a as extension for shared libraries through AIX4.2
10152 # and later when we are not doing run time linking.
10153 library_names_spec='${libname}${release}.a $libname.a'
10154 soname_spec='${libname}${release}${shared_ext}$major'
10156 shlibpath_var=LIBPATH
10163 # Since July 2007 AmigaOS4 officially supports .so libraries.
10164 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10168 library_names_spec='$libname.ixlibrary $libname.a'
10169 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10170 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10176 library_names_spec='${libname}${shared_ext}'
10177 dynamic_linker="$host_os ld.so"
10178 shlibpath_var=LIBRARY_PATH
10182 version_type=linux # correct to gnu/linux during the next big refactor
10184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10185 soname_spec='${libname}${release}${shared_ext}$major'
10186 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10187 shlibpath_var=LD_LIBRARY_PATH
10188 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10189 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10190 # the default ld.so.conf also contains /usr/contrib/lib and
10191 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10192 # libtool to hard-code these into programs
10195 cygwin* | mingw* | pw32* | cegcc*)
10196 version_type=windows
10201 case $GCC,$cc_basename in
10204 library_names_spec='$libname.dll.a'
10205 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10206 postinstall_cmds='base_file=`basename \${file}`~
10207 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10208 dldir=$destdir/`dirname \$dlpath`~
10209 test -d \$dldir || mkdir -p \$dldir~
10210 $install_prog $dir/$dlname \$dldir/$dlname~
10211 chmod a+x \$dldir/$dlname~
10212 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10213 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10215 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10216 dlpath=$dir/\$dldll~
10218 shlibpath_overrides_runpath=yes
10222 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10223 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10225 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10228 # MinGW DLLs use traditional 'lib' prefix
10229 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10232 # pw32 DLLs use 'pw' prefix rather than 'lib'
10233 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10236 dynamic_linker='Win32 ld.exe'
10241 libname_spec='$name'
10242 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10243 library_names_spec='${libname}.dll.lib'
10247 sys_lib_search_path_spec=
10250 for lt_path in $LIB
10253 # Let DOS variable expansion print the short 8.3 style file name.
10254 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10255 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10258 # Convert to MSYS style.
10259 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10262 # Convert to unix form, then to dos form, then back to unix form
10263 # but this time dos style (no spaces!) so that the unix form looks
10264 # like /cygdrive/c/PROGRA~1:/cygdr...
10265 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10266 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10267 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10270 sys_lib_search_path_spec="$LIB"
10271 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10272 # It is most probably a Windows format PATH.
10273 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10275 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10277 # FIXME: find the short name or the path components, as spaces are
10278 # common. (e.g. "Program Files" -> "PROGRA~1")
10282 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10283 postinstall_cmds='base_file=`basename \${file}`~
10284 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10285 dldir=$destdir/`dirname \$dlpath`~
10286 test -d \$dldir || mkdir -p \$dldir~
10287 $install_prog $dir/$dlname \$dldir/$dlname'
10288 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10289 dlpath=$dir/\$dldll~
10291 shlibpath_overrides_runpath=yes
10292 dynamic_linker='Win32 link.exe'
10296 # Assume MSVC wrapper
10297 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10298 dynamic_linker='Win32 ld.exe'
10301 # FIXME: first we should search . and the directory the executable is in
10305 darwin* | rhapsody*)
10306 dynamic_linker="$host_os dyld"
10307 version_type=darwin
10310 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10311 soname_spec='${libname}${release}${major}$shared_ext'
10312 shlibpath_overrides_runpath=yes
10313 shlibpath_var=DYLD_LIBRARY_PATH
10314 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10316 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10317 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10321 version_type=linux # correct to gnu/linux during the next big refactor
10324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10325 soname_spec='${libname}${release}${shared_ext}$major'
10326 shlibpath_var=LD_LIBRARY_PATH
10329 freebsd* | dragonfly*)
10330 # DragonFly does not have aout. When/if they implement a new
10331 # versioning mechanism, adjust this.
10332 if test -x /usr/bin/objformat; then
10333 objformat=`/usr/bin/objformat`
10336 freebsd[23].*) objformat=aout ;;
10337 *) objformat=elf ;;
10340 version_type=freebsd-$objformat
10341 case $version_type in
10343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10348 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10352 shlibpath_var=LD_LIBRARY_PATH
10355 shlibpath_overrides_runpath=yes
10357 freebsd3.[01]* | freebsdelf3.[01]*)
10358 shlibpath_overrides_runpath=yes
10359 hardcode_into_libs=yes
10361 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10362 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10363 shlibpath_overrides_runpath=no
10364 hardcode_into_libs=yes
10366 *) # from 4.6 on, and DragonFly
10367 shlibpath_overrides_runpath=yes
10368 hardcode_into_libs=yes
10374 version_type=linux # correct to gnu/linux during the next big refactor
10377 dynamic_linker="$host_os runtime_loader"
10378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10379 soname_spec='${libname}${release}${shared_ext}$major'
10380 shlibpath_var=LIBRARY_PATH
10381 shlibpath_overrides_runpath=yes
10382 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10383 hardcode_into_libs=yes
10386 hpux9* | hpux10* | hpux11*)
10387 # Give a soname corresponding to the major version so that dld.sl refuses to
10388 # link against other versions.
10395 hardcode_into_libs=yes
10396 dynamic_linker="$host_os dld.so"
10397 shlibpath_var=LD_LIBRARY_PATH
10398 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10400 soname_spec='${libname}${release}${shared_ext}$major'
10401 if test "X$HPUX_IA64_MODE" = X32; then
10402 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10404 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10406 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10410 hardcode_into_libs=yes
10411 dynamic_linker="$host_os dld.sl"
10412 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10413 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10415 soname_spec='${libname}${release}${shared_ext}$major'
10416 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10417 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10421 dynamic_linker="$host_os dld.sl"
10422 shlibpath_var=SHLIB_PATH
10423 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10425 soname_spec='${libname}${release}${shared_ext}$major'
10428 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10429 postinstall_cmds='chmod 555 $lib'
10430 # or fails outright, so override atomically:
10431 install_override_mode=555
10435 version_type=linux # correct to gnu/linux during the next big refactor
10438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10439 soname_spec='${libname}${release}${shared_ext}$major'
10440 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10441 shlibpath_var=LD_LIBRARY_PATH
10442 shlibpath_overrides_runpath=no
10443 hardcode_into_libs=yes
10446 irix5* | irix6* | nonstopux*)
10448 nonstopux*) version_type=nonstopux ;;
10450 if test "$lt_cv_prog_gnu_ld" = yes; then
10451 version_type=linux # correct to gnu/linux during the next big refactor
10458 soname_spec='${libname}${release}${shared_ext}$major'
10459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10461 irix5* | nonstopux*)
10462 libsuff= shlibsuff=
10465 case $LD in # libtool.m4 will add one of these switches to LD
10466 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10467 libsuff= shlibsuff= libmagic=32-bit;;
10468 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10469 libsuff=32 shlibsuff=N32 libmagic=N32;;
10470 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10471 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10472 *) libsuff= shlibsuff= libmagic=never-match;;
10476 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10477 shlibpath_overrides_runpath=no
10478 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10479 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10480 hardcode_into_libs=yes
10483 # No shared lib support for Linux oldld, aout, or coff.
10484 linux*oldld* | linux*aout* | linux*coff*)
10488 # This must be glibc/ELF.
10489 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10490 version_type=linux # correct to gnu/linux during the next big refactor
10493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10494 soname_spec='${libname}${release}${shared_ext}$major'
10495 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10496 shlibpath_var=LD_LIBRARY_PATH
10497 shlibpath_overrides_runpath=no
10499 # Some binutils ld are patched to set DT_RUNPATH
10500 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10501 $as_echo_n "(cached) " >&6
10503 lt_cv_shlibpath_overrides_runpath=no
10504 save_LDFLAGS=$LDFLAGS
10505 save_libdir=$libdir
10506 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10507 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10509 /* end confdefs.h. */
10519 if ac_fn_c_try_link "$LINENO"; then :
10520 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10521 lt_cv_shlibpath_overrides_runpath=yes
10524 rm -f core conftest.err conftest.$ac_objext \
10525 conftest$ac_exeext conftest.$ac_ext
10526 LDFLAGS=$save_LDFLAGS
10527 libdir=$save_libdir
10531 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10533 # This implies no fast_install, which is unacceptable.
10534 # Some rework will be needed to allow for fast_install
10535 # before this can be enabled.
10536 hardcode_into_libs=yes
10538 # Append ld.so.conf contents to the search path
10539 if test -f /etc/ld.so.conf; then
10540 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10541 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10544 # We used to test for /lib/ld.so.1 and disable shared libraries on
10545 # powerpc, because MkLinux only supported shared libraries with the
10546 # GNU dynamic linker. Since this was broken with cross compilers,
10547 # most powerpc-linux boxes support dynamic linking these days and
10548 # people can always --disable-shared, the test was removed, and we
10549 # assume the GNU/Linux dynamic linker is in use.
10550 dynamic_linker='GNU/Linux ld.so'
10557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10558 soname_spec='${libname}${release}${shared_ext}$major'
10559 shlibpath_var=LD_LIBRARY_PATH
10560 shlibpath_overrides_runpath=no
10561 hardcode_into_libs=yes
10562 dynamic_linker='NetBSD ld.elf_so'
10569 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10571 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10572 dynamic_linker='NetBSD (a.out) ld.so'
10574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10575 soname_spec='${libname}${release}${shared_ext}$major'
10576 dynamic_linker='NetBSD ld.elf_so'
10578 shlibpath_var=LD_LIBRARY_PATH
10579 shlibpath_overrides_runpath=yes
10580 hardcode_into_libs=yes
10584 version_type=linux # correct to gnu/linux during the next big refactor
10585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10586 shlibpath_var=LD_LIBRARY_PATH
10587 shlibpath_overrides_runpath=yes
10594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10595 soname_spec='${libname}${release}${shared_ext}$major'
10596 shlibpath_var=LD_LIBRARY_PATH
10597 shlibpath_overrides_runpath=no
10598 hardcode_into_libs=yes
10599 dynamic_linker='ldqnx.so'
10604 sys_lib_dlsearch_path_spec="/usr/lib"
10606 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10608 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10609 *) need_version=no ;;
10611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10612 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10613 shlibpath_var=LD_LIBRARY_PATH
10614 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10616 openbsd2.[89] | openbsd2.[89].*)
10617 shlibpath_overrides_runpath=no
10620 shlibpath_overrides_runpath=yes
10624 shlibpath_overrides_runpath=yes
10629 libname_spec='$name'
10632 library_names_spec='$libname${shared_ext} $libname.a'
10633 dynamic_linker='OS/2 ld.exe'
10634 shlibpath_var=LIBPATH
10637 osf3* | osf4* | osf5*)
10641 soname_spec='${libname}${release}${shared_ext}$major'
10642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10643 shlibpath_var=LD_LIBRARY_PATH
10644 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10645 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10653 version_type=linux # correct to gnu/linux during the next big refactor
10656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10657 soname_spec='${libname}${release}${shared_ext}$major'
10658 shlibpath_var=LD_LIBRARY_PATH
10659 shlibpath_overrides_runpath=yes
10660 hardcode_into_libs=yes
10661 # ldd complains unless libraries are executable
10662 postinstall_cmds='chmod +x $lib'
10667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10668 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10669 shlibpath_var=LD_LIBRARY_PATH
10670 shlibpath_overrides_runpath=yes
10671 if test "$with_gnu_ld" = yes; then
10678 version_type=linux # correct to gnu/linux during the next big refactor
10679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10680 soname_spec='${libname}${release}${shared_ext}$major'
10681 shlibpath_var=LD_LIBRARY_PATH
10682 case $host_vendor in
10684 shlibpath_overrides_runpath=no
10686 runpath_var=LD_RUN_PATH
10694 shlibpath_overrides_runpath=no
10695 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10701 if test -d /usr/nec ;then
10702 version_type=linux # correct to gnu/linux during the next big refactor
10703 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10704 soname_spec='$libname${shared_ext}.$major'
10705 shlibpath_var=LD_LIBRARY_PATH
10709 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10710 version_type=freebsd-elf
10713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10714 soname_spec='${libname}${release}${shared_ext}$major'
10715 shlibpath_var=LD_LIBRARY_PATH
10716 shlibpath_overrides_runpath=yes
10717 hardcode_into_libs=yes
10718 if test "$with_gnu_ld" = yes; then
10719 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10721 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10724 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10728 sys_lib_dlsearch_path_spec='/usr/lib'
10732 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10733 version_type=linux # correct to gnu/linux during the next big refactor
10736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10737 shlibpath_var=LD_LIBRARY_PATH
10738 shlibpath_overrides_runpath=no
10739 hardcode_into_libs=yes
10743 version_type=linux # correct to gnu/linux during the next big refactor
10744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10745 soname_spec='${libname}${release}${shared_ext}$major'
10746 shlibpath_var=LD_LIBRARY_PATH
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10754 $as_echo "$dynamic_linker" >&6; }
10755 test "$dynamic_linker" = no && can_build_shared=no
10757 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10758 if test "$GCC" = yes; then
10759 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10762 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10763 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10765 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10766 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10861 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10863 if test -n "$hardcode_libdir_flag_spec" ||
10864 test -n "$runpath_var" ||
10865 test "X$hardcode_automatic" = "Xyes" ; then
10867 # We can hardcode non-existent directories.
10868 if test "$hardcode_direct" != no &&
10869 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10870 # have to relink, otherwise we might link with an installed library
10871 # when we should be linking with a yet-to-be-installed one
10872 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10873 test "$hardcode_minus_L" != no; then
10874 # Linking always hardcodes the temporary library directory.
10875 hardcode_action=relink
10877 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10878 hardcode_action=immediate
10881 # We cannot hardcode anything, or else we can only hardcode existing
10883 hardcode_action=unsupported
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10886 $as_echo "$hardcode_action" >&6; }
10888 if test "$hardcode_action" = relink ||
10889 test "$inherit_rpath" = yes; then
10890 # Fast installation is not supported
10891 enable_fast_install=no
10892 elif test "$shlibpath_overrides_runpath" = yes ||
10893 test "$enable_shared" = no; then
10894 # Fast installation is not necessary
10895 enable_fast_install=needless
10903 if test "x$enable_dlopen" != xyes; then
10904 enable_dlopen=unknown
10905 enable_dlopen_self=unknown
10906 enable_dlopen_self_static=unknown
10913 lt_cv_dlopen="load_add_on"
10915 lt_cv_dlopen_self=yes
10918 mingw* | pw32* | cegcc*)
10919 lt_cv_dlopen="LoadLibrary"
10924 lt_cv_dlopen="dlopen"
10929 # if libdl is installed we need to link against it
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10931 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10932 if ${ac_cv_lib_dl_dlopen+:} false; then :
10933 $as_echo_n "(cached) " >&6
10935 ac_check_lib_save_LIBS=$LIBS
10937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10938 /* end confdefs.h. */
10940 /* Override any GCC internal prototype to avoid an error.
10941 Use char because int might match the return type of a GCC
10942 builtin and then its argument prototype would still apply. */
10955 if ac_fn_c_try_link "$LINENO"; then :
10956 ac_cv_lib_dl_dlopen=yes
10958 ac_cv_lib_dl_dlopen=no
10960 rm -f core conftest.err conftest.$ac_objext \
10961 conftest$ac_exeext conftest.$ac_ext
10962 LIBS=$ac_check_lib_save_LIBS
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10965 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10966 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10967 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10970 lt_cv_dlopen="dyld"
10972 lt_cv_dlopen_self=yes
10979 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10980 if test "x$ac_cv_func_shl_load" = xyes; then :
10981 lt_cv_dlopen="shl_load"
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10984 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10985 if ${ac_cv_lib_dld_shl_load+:} false; then :
10986 $as_echo_n "(cached) " >&6
10988 ac_check_lib_save_LIBS=$LIBS
10990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10991 /* end confdefs.h. */
10993 /* Override any GCC internal prototype to avoid an error.
10994 Use char because int might match the return type of a GCC
10995 builtin and then its argument prototype would still apply. */
11003 return shl_load ();
11008 if ac_fn_c_try_link "$LINENO"; then :
11009 ac_cv_lib_dld_shl_load=yes
11011 ac_cv_lib_dld_shl_load=no
11013 rm -f core conftest.err conftest.$ac_objext \
11014 conftest$ac_exeext conftest.$ac_ext
11015 LIBS=$ac_check_lib_save_LIBS
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11018 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11019 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11020 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11022 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11023 if test "x$ac_cv_func_dlopen" = xyes; then :
11024 lt_cv_dlopen="dlopen"
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11027 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11028 if ${ac_cv_lib_dl_dlopen+:} false; then :
11029 $as_echo_n "(cached) " >&6
11031 ac_check_lib_save_LIBS=$LIBS
11033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11034 /* end confdefs.h. */
11036 /* Override any GCC internal prototype to avoid an error.
11037 Use char because int might match the return type of a GCC
11038 builtin and then its argument prototype would still apply. */
11051 if ac_fn_c_try_link "$LINENO"; then :
11052 ac_cv_lib_dl_dlopen=yes
11054 ac_cv_lib_dl_dlopen=no
11056 rm -f core conftest.err conftest.$ac_objext \
11057 conftest$ac_exeext conftest.$ac_ext
11058 LIBS=$ac_check_lib_save_LIBS
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11061 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11062 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11063 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11066 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11067 if ${ac_cv_lib_svld_dlopen+:} false; then :
11068 $as_echo_n "(cached) " >&6
11070 ac_check_lib_save_LIBS=$LIBS
11071 LIBS="-lsvld $LIBS"
11072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11073 /* end confdefs.h. */
11075 /* Override any GCC internal prototype to avoid an error.
11076 Use char because int might match the return type of a GCC
11077 builtin and then its argument prototype would still apply. */
11090 if ac_fn_c_try_link "$LINENO"; then :
11091 ac_cv_lib_svld_dlopen=yes
11093 ac_cv_lib_svld_dlopen=no
11095 rm -f core conftest.err conftest.$ac_objext \
11096 conftest$ac_exeext conftest.$ac_ext
11097 LIBS=$ac_check_lib_save_LIBS
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11100 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11101 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11102 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11105 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11106 if ${ac_cv_lib_dld_dld_link+:} false; then :
11107 $as_echo_n "(cached) " >&6
11109 ac_check_lib_save_LIBS=$LIBS
11111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11112 /* end confdefs.h. */
11114 /* Override any GCC internal prototype to avoid an error.
11115 Use char because int might match the return type of a GCC
11116 builtin and then its argument prototype would still apply. */
11124 return dld_link ();
11129 if ac_fn_c_try_link "$LINENO"; then :
11130 ac_cv_lib_dld_dld_link=yes
11132 ac_cv_lib_dld_dld_link=no
11134 rm -f core conftest.err conftest.$ac_objext \
11135 conftest$ac_exeext conftest.$ac_ext
11136 LIBS=$ac_check_lib_save_LIBS
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11139 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11140 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11141 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11162 if test "x$lt_cv_dlopen" != xno; then
11168 case $lt_cv_dlopen in
11170 save_CPPFLAGS="$CPPFLAGS"
11171 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11173 save_LDFLAGS="$LDFLAGS"
11174 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11177 LIBS="$lt_cv_dlopen_libs $LIBS"
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11180 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11181 if ${lt_cv_dlopen_self+:} false; then :
11182 $as_echo_n "(cached) " >&6
11184 if test "$cross_compiling" = yes; then :
11185 lt_cv_dlopen_self=cross
11187 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11188 lt_status=$lt_dlunknown
11189 cat > conftest.$ac_ext <<_LT_EOF
11190 #line $LINENO "configure"
11191 #include "confdefs.h"
11200 # define LT_DLGLOBAL RTLD_GLOBAL
11203 # define LT_DLGLOBAL DL_GLOBAL
11205 # define LT_DLGLOBAL 0
11209 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11210 find out it does not work in some platform. */
11211 #ifndef LT_DLLAZY_OR_NOW
11213 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11216 # define LT_DLLAZY_OR_NOW DL_LAZY
11219 # define LT_DLLAZY_OR_NOW RTLD_NOW
11222 # define LT_DLLAZY_OR_NOW DL_NOW
11224 # define LT_DLLAZY_OR_NOW 0
11231 /* When -fvisbility=hidden is used, assume the code has been annotated
11232 correspondingly for the symbols needed. */
11233 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11234 int fnord () __attribute__((visibility("default")));
11237 int fnord () { return 42; }
11240 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11241 int status = $lt_dlunknown;
11245 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11248 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11249 else puts (dlerror ());
11251 /* dlclose (self); */
11259 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11260 (eval $ac_link) 2>&5
11262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11263 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11264 (./conftest; exit; ) >&5 2>/dev/null
11266 case x$lt_status in
11267 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11268 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11269 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11272 # compilation failed
11273 lt_cv_dlopen_self=no
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11281 $as_echo "$lt_cv_dlopen_self" >&6; }
11283 if test "x$lt_cv_dlopen_self" = xyes; then
11284 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11286 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11287 if ${lt_cv_dlopen_self_static+:} false; then :
11288 $as_echo_n "(cached) " >&6
11290 if test "$cross_compiling" = yes; then :
11291 lt_cv_dlopen_self_static=cross
11293 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11294 lt_status=$lt_dlunknown
11295 cat > conftest.$ac_ext <<_LT_EOF
11296 #line $LINENO "configure"
11297 #include "confdefs.h"
11306 # define LT_DLGLOBAL RTLD_GLOBAL
11309 # define LT_DLGLOBAL DL_GLOBAL
11311 # define LT_DLGLOBAL 0
11315 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11316 find out it does not work in some platform. */
11317 #ifndef LT_DLLAZY_OR_NOW
11319 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11322 # define LT_DLLAZY_OR_NOW DL_LAZY
11325 # define LT_DLLAZY_OR_NOW RTLD_NOW
11328 # define LT_DLLAZY_OR_NOW DL_NOW
11330 # define LT_DLLAZY_OR_NOW 0
11337 /* When -fvisbility=hidden is used, assume the code has been annotated
11338 correspondingly for the symbols needed. */
11339 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11340 int fnord () __attribute__((visibility("default")));
11343 int fnord () { return 42; }
11346 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11347 int status = $lt_dlunknown;
11351 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11354 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11355 else puts (dlerror ());
11357 /* dlclose (self); */
11365 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11366 (eval $ac_link) 2>&5
11368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11369 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11370 (./conftest; exit; ) >&5 2>/dev/null
11372 case x$lt_status in
11373 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11374 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11375 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11378 # compilation failed
11379 lt_cv_dlopen_self_static=no
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11387 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11390 CPPFLAGS="$save_CPPFLAGS"
11391 LDFLAGS="$save_LDFLAGS"
11396 case $lt_cv_dlopen_self in
11397 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11398 *) enable_dlopen_self=unknown ;;
11401 case $lt_cv_dlopen_self_static in
11402 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11403 *) enable_dlopen_self_static=unknown ;;
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11426 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11427 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11428 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11429 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11431 $as_echo "yes" >&6; }
11433 # FIXME - insert some real tests, host_os isn't really good enough
11436 if test -n "$STRIP" ; then
11437 striplib="$STRIP -x"
11438 old_striplib="$STRIP -S"
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11440 $as_echo "yes" >&6; }
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11443 $as_echo "no" >&6; }
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11448 $as_echo "no" >&6; }
11464 # Report which library types will actually be built
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11466 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11468 $as_echo "$can_build_shared" >&6; }
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11471 $as_echo_n "checking whether to build shared libraries... " >&6; }
11472 test "$can_build_shared" = "no" && enable_shared=no
11474 # On AIX, shared libraries and static libraries use the same namespace, and
11475 # are all built from PIC.
11478 test "$enable_shared" = yes && enable_static=no
11479 if test -n "$RANLIB"; then
11480 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11481 postinstall_cmds='$RANLIB $lib'
11486 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11487 test "$enable_shared" = yes && enable_static=no
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11492 $as_echo "$enable_shared" >&6; }
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11495 $as_echo_n "checking whether to build static libraries... " >&6; }
11496 # Make sure either enable_shared or enable_static is yes.
11497 test "$enable_shared" = yes || enable_static=yes
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11499 $as_echo "$enable_static" >&6; }
11506 ac_cpp='$CPP $CPPFLAGS'
11507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11527 ac_config_commands="$ac_config_commands libtool"
11532 # Only expand once:
11536 ac_cpp='$CPP $CPPFLAGS'
11537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11540 if test -n "$ac_tool_prefix"; then
11541 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11542 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11544 $as_echo_n "checking for $ac_word... " >&6; }
11545 if ${ac_cv_prog_CC+:} false; then :
11546 $as_echo_n "(cached) " >&6
11548 if test -n "$CC"; then
11549 ac_cv_prog_CC="$CC" # Let the user override the test.
11551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11552 for as_dir in $PATH
11555 test -z "$as_dir" && as_dir=.
11556 for ac_exec_ext in '' $ac_executable_extensions; do
11557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11558 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11569 if test -n "$CC"; then
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11571 $as_echo "$CC" >&6; }
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11574 $as_echo "no" >&6; }
11579 if test -z "$ac_cv_prog_CC"; then
11581 # Extract the first word of "gcc", so it can be a program name with args.
11582 set dummy gcc; ac_word=$2
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11584 $as_echo_n "checking for $ac_word... " >&6; }
11585 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11586 $as_echo_n "(cached) " >&6
11588 if test -n "$ac_ct_CC"; then
11589 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11592 for as_dir in $PATH
11595 test -z "$as_dir" && as_dir=.
11596 for ac_exec_ext in '' $ac_executable_extensions; do
11597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11598 ac_cv_prog_ac_ct_CC="gcc"
11599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11608 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11609 if test -n "$ac_ct_CC"; then
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11611 $as_echo "$ac_ct_CC" >&6; }
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11614 $as_echo "no" >&6; }
11617 if test "x$ac_ct_CC" = x; then
11620 case $cross_compiling:$ac_tool_warned in
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11624 ac_tool_warned=yes ;;
11629 CC="$ac_cv_prog_CC"
11632 if test -z "$CC"; then
11633 if test -n "$ac_tool_prefix"; then
11634 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11635 set dummy ${ac_tool_prefix}cc; ac_word=$2
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11637 $as_echo_n "checking for $ac_word... " >&6; }
11638 if ${ac_cv_prog_CC+:} false; then :
11639 $as_echo_n "(cached) " >&6
11641 if test -n "$CC"; then
11642 ac_cv_prog_CC="$CC" # Let the user override the test.
11644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11645 for as_dir in $PATH
11648 test -z "$as_dir" && as_dir=.
11649 for ac_exec_ext in '' $ac_executable_extensions; do
11650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11651 ac_cv_prog_CC="${ac_tool_prefix}cc"
11652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11662 if test -n "$CC"; then
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11664 $as_echo "$CC" >&6; }
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11667 $as_echo "no" >&6; }
11673 if test -z "$CC"; then
11674 # Extract the first word of "cc", so it can be a program name with args.
11675 set dummy cc; ac_word=$2
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11677 $as_echo_n "checking for $ac_word... " >&6; }
11678 if ${ac_cv_prog_CC+:} false; then :
11679 $as_echo_n "(cached) " >&6
11681 if test -n "$CC"; then
11682 ac_cv_prog_CC="$CC" # Let the user override the test.
11684 ac_prog_rejected=no
11685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11686 for as_dir in $PATH
11689 test -z "$as_dir" && as_dir=.
11690 for ac_exec_ext in '' $ac_executable_extensions; do
11691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11692 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11693 ac_prog_rejected=yes
11697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11704 if test $ac_prog_rejected = yes; then
11705 # We found a bogon in the path, so make sure we never use it.
11706 set dummy $ac_cv_prog_CC
11708 if test $# != 0; then
11709 # We chose a different compiler from the bogus one.
11710 # However, it has the same basename, so the bogon will be chosen
11711 # first if we set CC to just the basename; use the full file name.
11713 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11719 if test -n "$CC"; then
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11721 $as_echo "$CC" >&6; }
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11724 $as_echo "no" >&6; }
11729 if test -z "$CC"; then
11730 if test -n "$ac_tool_prefix"; then
11731 for ac_prog in cl.exe
11733 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11734 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11736 $as_echo_n "checking for $ac_word... " >&6; }
11737 if ${ac_cv_prog_CC+:} false; then :
11738 $as_echo_n "(cached) " >&6
11740 if test -n "$CC"; then
11741 ac_cv_prog_CC="$CC" # Let the user override the test.
11743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11744 for as_dir in $PATH
11747 test -z "$as_dir" && as_dir=.
11748 for ac_exec_ext in '' $ac_executable_extensions; do
11749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11750 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11761 if test -n "$CC"; then
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11763 $as_echo "$CC" >&6; }
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11766 $as_echo "no" >&6; }
11770 test -n "$CC" && break
11773 if test -z "$CC"; then
11775 for ac_prog in cl.exe
11777 # Extract the first word of "$ac_prog", so it can be a program name with args.
11778 set dummy $ac_prog; ac_word=$2
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11780 $as_echo_n "checking for $ac_word... " >&6; }
11781 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11782 $as_echo_n "(cached) " >&6
11784 if test -n "$ac_ct_CC"; then
11785 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11788 for as_dir in $PATH
11791 test -z "$as_dir" && as_dir=.
11792 for ac_exec_ext in '' $ac_executable_extensions; do
11793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11794 ac_cv_prog_ac_ct_CC="$ac_prog"
11795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11804 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11805 if test -n "$ac_ct_CC"; then
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11807 $as_echo "$ac_ct_CC" >&6; }
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11810 $as_echo "no" >&6; }
11814 test -n "$ac_ct_CC" && break
11817 if test "x$ac_ct_CC" = x; then
11820 case $cross_compiling:$ac_tool_warned in
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11823 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11824 ac_tool_warned=yes ;;
11833 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11835 as_fn_error $? "no acceptable C compiler found in \$PATH
11836 See \`config.log' for more details" "$LINENO" 5; }
11838 # Provide some information about the compiler.
11839 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11842 for ac_option in --version -v -V -qversion; do
11843 { { ac_try="$ac_compiler $ac_option >&5"
11844 case "(($ac_try" in
11845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11846 *) ac_try_echo=$ac_try;;
11848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11849 $as_echo "$ac_try_echo"; } >&5
11850 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11852 if test -s conftest.err; then
11854 ... rest of stderr output deleted ...
11855 10q' conftest.err >conftest.er1
11856 cat conftest.er1 >&5
11858 rm -f conftest.er1 conftest.err
11859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11860 test $ac_status = 0; }
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11864 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11865 if ${ac_cv_c_compiler_gnu+:} false; then :
11866 $as_echo_n "(cached) " >&6
11868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11869 /* end confdefs.h. */
11882 if ac_fn_c_try_compile "$LINENO"; then :
11883 ac_compiler_gnu=yes
11887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11888 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11892 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11893 if test $ac_compiler_gnu = yes; then
11898 ac_test_CFLAGS=${CFLAGS+set}
11899 ac_save_CFLAGS=$CFLAGS
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11901 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11902 if ${ac_cv_prog_cc_g+:} false; then :
11903 $as_echo_n "(cached) " >&6
11905 ac_save_c_werror_flag=$ac_c_werror_flag
11906 ac_c_werror_flag=yes
11909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11910 /* end confdefs.h. */
11920 if ac_fn_c_try_compile "$LINENO"; then :
11921 ac_cv_prog_cc_g=yes
11924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11925 /* end confdefs.h. */
11935 if ac_fn_c_try_compile "$LINENO"; then :
11938 ac_c_werror_flag=$ac_save_c_werror_flag
11940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11941 /* end confdefs.h. */
11951 if ac_fn_c_try_compile "$LINENO"; then :
11952 ac_cv_prog_cc_g=yes
11954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11959 ac_c_werror_flag=$ac_save_c_werror_flag
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11962 $as_echo "$ac_cv_prog_cc_g" >&6; }
11963 if test "$ac_test_CFLAGS" = set; then
11964 CFLAGS=$ac_save_CFLAGS
11965 elif test $ac_cv_prog_cc_g = yes; then
11966 if test "$GCC" = yes; then
11972 if test "$GCC" = yes; then
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11979 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11980 if ${ac_cv_prog_cc_c89+:} false; then :
11981 $as_echo_n "(cached) " >&6
11983 ac_cv_prog_cc_c89=no
11985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11986 /* end confdefs.h. */
11987 #include <stdarg.h>
11990 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11991 struct buf { int x; };
11992 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11993 static char *e (p, i)
11999 static char *f (char * (*g) (char **, int), char **p, ...)
12004 s = g (p, va_arg (v,int));
12009 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12010 function prototypes and stuff, but not '\xHH' hex character constants.
12011 These don't provoke an error unfortunately, instead are silently treated
12012 as 'x'. The following induces an error, until -std is added to get
12013 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12014 array size at least. It's necessary to write '\x00'==0 to get something
12015 that's true only with -std. */
12016 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12018 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12019 inside strings and character constants. */
12021 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12023 int test (int i, double x);
12024 struct s1 {int (*f) (int a);};
12025 struct s2 {int (*f) (double a);};
12026 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12032 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12037 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12038 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12040 CC="$ac_save_CC $ac_arg"
12041 if ac_fn_c_try_compile "$LINENO"; then :
12042 ac_cv_prog_cc_c89=$ac_arg
12044 rm -f core conftest.err conftest.$ac_objext
12045 test "x$ac_cv_prog_cc_c89" != "xno" && break
12047 rm -f conftest.$ac_ext
12052 case "x$ac_cv_prog_cc_c89" in
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12055 $as_echo "none needed" >&6; } ;;
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12058 $as_echo "unsupported" >&6; } ;;
12060 CC="$CC $ac_cv_prog_cc_c89"
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12062 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12064 if test "x$ac_cv_prog_cc_c89" != xno; then :
12069 ac_cpp='$CPP $CPPFLAGS'
12070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12075 ac_cpp='$CPP $CPPFLAGS'
12076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12080 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12081 if ${am_cv_prog_cc_c_o+:} false; then :
12082 $as_echo_n "(cached) " >&6
12084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12085 /* end confdefs.h. */
12095 # Make sure it works both with $CC and with simple cc.
12096 # Following AC_PROG_CC_C_O, we do the test twice because some
12097 # compilers refuse to overwrite an existing .o file with -o,
12098 # though they will create one.
12099 am_cv_prog_cc_c_o=yes
12100 for am_i in 1 2; do
12101 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
12102 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
12104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12105 (exit $ac_status); } \
12106 && test -f conftest2.$ac_objext; then
12109 am_cv_prog_cc_c_o=no
12113 rm -f core conftest*
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
12117 $as_echo "$am_cv_prog_cc_c_o" >&6; }
12118 if test "$am_cv_prog_cc_c_o" != yes; then
12119 # Losing compiler, so override with the script.
12120 # FIXME: It is wrong to rewrite CC.
12121 # But if we don't then we get into trouble of one sort or another.
12122 # A longer-term fix would be to have automake use am__CC in this case,
12123 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12124 CC="$am_aux_dir/compile $CC"
12127 ac_cpp='$CPP $CPPFLAGS'
12128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12133 depcc="$CC" am_compiler_list=
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12136 $as_echo_n "checking dependency style of $depcc... " >&6; }
12137 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12138 $as_echo_n "(cached) " >&6
12140 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12141 # We make a subdir and do the tests there. Otherwise we can end up
12142 # making bogus files that we don't know about and never remove. For
12143 # instance it was reported that on HP-UX the gcc test will end up
12144 # making a dummy file named 'D' -- because '-MD' means "put the output
12146 rm -rf conftest.dir
12148 # Copy depcomp to subdir because otherwise we won't find it if we're
12149 # using a relative directory.
12150 cp "$am_depcomp" conftest.dir
12152 # We will build objects and dependencies in a subdirectory because
12153 # it helps to detect inapplicable dependency modes. For instance
12154 # both Tru64's cc and ICC support -MD to output dependencies as a
12155 # side effect of compilation, but ICC will put the dependencies in
12156 # the current directory while Tru64 will put them in the object
12160 am_cv_CC_dependencies_compiler_type=none
12161 if test "$am_compiler_list" = ""; then
12162 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12164 am__universal=false
12165 case " $depcc " in #(
12166 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12169 for depmode in $am_compiler_list; do
12170 # Setup a source with many dependencies, because some compilers
12171 # like to wrap large dependency lists on column 80 (with \), and
12172 # we should not choose a depcomp mode which is confused by this.
12174 # We need to recreate these files for each test, as the compiler may
12175 # overwrite some of them when testing with obscure command lines.
12176 # This happens at least with the AIX C compiler.
12178 for i in 1 2 3 4 5 6; do
12179 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12180 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12181 # Solaris 10 /bin/sh.
12182 echo '/* dummy */' > sub/conftst$i.h
12184 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12186 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12187 # mode. It turns out that the SunPro C++ compiler does not properly
12188 # handle '-M -o', and we need to detect this. Also, some Intel
12189 # versions had trouble with output in subdirs.
12190 am__obj=sub/conftest.${OBJEXT-o}
12191 am__minus_obj="-o $am__obj"
12194 # This depmode causes a compiler race in universal mode.
12195 test "$am__universal" = false || continue
12198 # After this tag, mechanisms are not by side-effect, so they'll
12199 # only be used when explicitly requested.
12200 if test "x$enable_dependency_tracking" = xyes; then
12206 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12207 # This compiler won't grok '-c -o', but also, the minuso test has
12208 # not run yet. These depmodes are late enough in the game, and
12209 # so weak that their functioning should not be impacted.
12210 am__obj=conftest.${OBJEXT-o}
12215 if depmode=$depmode \
12216 source=sub/conftest.c object=$am__obj \
12217 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12218 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12219 >/dev/null 2>conftest.err &&
12220 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12221 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12222 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12223 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12224 # icc doesn't choke on unknown options, it will just issue warnings
12225 # or remarks (even with -Werror). So we grep stderr for any message
12226 # that says an option was ignored or not supported.
12227 # When given -MP, icc 7.0 and 7.1 complain thusly:
12228 # icc: Command line warning: ignoring option '-M'; no argument required
12229 # The diagnosis changed in icc 8.0:
12230 # icc: Command line remark: option '-MP' not supported
12231 if (grep 'ignoring option' conftest.err ||
12232 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12233 am_cv_CC_dependencies_compiler_type=$depmode
12240 rm -rf conftest.dir
12242 am_cv_CC_dependencies_compiler_type=none
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12247 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12248 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12251 test "x$enable_dependency_tracking" != xno \
12252 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12253 am__fastdepCC_TRUE=
12254 am__fastdepCC_FALSE='#'
12256 am__fastdepCC_TRUE='#'
12257 am__fastdepCC_FALSE=
12265 *linux*) arch=linux;;
12266 *netbsd*) arch=netbsd;;
12271 if test "$ac_env_CFLAGS_set" != set; then
12272 CFLAGS="-Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing"
12275 # Check whether --enable-lib was given.
12276 if test "${enable_lib+set}" = set; then :
12277 enableval=$enable_lib;
12280 # Check whether --enable-util was given.
12281 if test "${enable_util+set}" = set; then :
12282 enableval=$enable_util;
12285 # Check whether --enable-example was given.
12286 if test "${enable_example+set}" = set; then :
12287 enableval=$enable_example;
12290 # Check whether --enable-mtab was given.
12291 if test "${enable_mtab+set}" = set; then :
12292 enableval=$enable_mtab;
12297 # Check whether --with-pkgconfigdir was given.
12298 if test "${with_pkgconfigdir+set}" = set; then :
12299 withval=$with_pkgconfigdir; pkgconfigdir=$withval
12301 pkgconfigdir='${libdir}/pkgconfig'
12308 if test "$enable_lib" != "no"; then
12309 subdirs2="$subdirs2 lib";
12311 if test "$arch" = linux -a "$enable_util" != "no"; then
12312 subdirs2="$subdirs2 util";
12314 if test "$enable_example" != "no"; then
12315 subdirs2="$subdirs2 example";
12317 if test "$enable_mtab" = "no"; then
12319 $as_echo "#define IGNORE_MTAB 1" >>confdefs.h
12323 for ac_func in fork setxattr fdatasync splice vmsplice utimensat
12325 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12326 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12327 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12328 cat >>confdefs.h <<_ACEOF
12329 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12335 for ac_func in posix_fallocate
12337 ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
12338 if test "x$ac_cv_func_posix_fallocate" = xyes; then :
12339 cat >>confdefs.h <<_ACEOF
12340 #define HAVE_POSIX_FALLOCATE 1
12346 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12347 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
12349 cat >>confdefs.h <<_ACEOF
12350 #define HAVE_STRUCT_STAT_ST_ATIM 1
12356 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec" "ac_cv_member_struct_stat_st_atimespec" "$ac_includes_default"
12357 if test "x$ac_cv_member_struct_stat_st_atimespec" = xyes; then :
12359 cat >>confdefs.h <<_ACEOF
12360 #define HAVE_STRUCT_STAT_ST_ATIMESPEC 1
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12369 $as_echo_n "checking for library containing dlopen... " >&6; }
12370 if ${ac_cv_search_dlopen+:} false; then :
12371 $as_echo_n "(cached) " >&6
12373 ac_func_search_save_LIBS=$LIBS
12374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12375 /* end confdefs.h. */
12377 /* Override any GCC internal prototype to avoid an error.
12378 Use char because int might match the return type of a GCC
12379 builtin and then its argument prototype would still apply. */
12392 for ac_lib in '' dl; do
12393 if test -z "$ac_lib"; then
12394 ac_res="none required"
12397 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12399 if ac_fn_c_try_link "$LINENO"; then :
12400 ac_cv_search_dlopen=$ac_res
12402 rm -f core conftest.err conftest.$ac_objext \
12404 if ${ac_cv_search_dlopen+:} false; then :
12408 if ${ac_cv_search_dlopen+:} false; then :
12411 ac_cv_search_dlopen=no
12413 rm conftest.$ac_ext
12414 LIBS=$ac_func_search_save_LIBS
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12417 $as_echo "$ac_cv_search_dlopen" >&6; }
12418 ac_res=$ac_cv_search_dlopen
12419 if test "$ac_res" != no; then :
12420 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
12425 $as_echo_n "checking for library containing clock_gettime... " >&6; }
12426 if ${ac_cv_search_clock_gettime+:} false; then :
12427 $as_echo_n "(cached) " >&6
12429 ac_func_search_save_LIBS=$LIBS
12430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12431 /* end confdefs.h. */
12433 /* Override any GCC internal prototype to avoid an error.
12434 Use char because int might match the return type of a GCC
12435 builtin and then its argument prototype would still apply. */
12439 char clock_gettime ();
12443 return clock_gettime ();
12448 for ac_lib in '' rt; do
12449 if test -z "$ac_lib"; then
12450 ac_res="none required"
12453 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12455 if ac_fn_c_try_link "$LINENO"; then :
12456 ac_cv_search_clock_gettime=$ac_res
12458 rm -f core conftest.err conftest.$ac_objext \
12460 if ${ac_cv_search_clock_gettime+:} false; then :
12464 if ${ac_cv_search_clock_gettime+:} false; then :
12467 ac_cv_search_clock_gettime=no
12469 rm conftest.$ac_ext
12470 LIBS=$ac_func_search_save_LIBS
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
12473 $as_echo "$ac_cv_search_clock_gettime" >&6; }
12474 ac_res=$ac_cv_search_clock_gettime
12475 if test "$ac_res" != no; then :
12476 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12483 # Check whether --with-libiconv-prefix was given.
12484 if test "${with_libiconv_prefix+set}" = set; then :
12485 withval=$with_libiconv_prefix;
12486 for dir in `echo "$withval" | tr : ' '`; do
12487 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
12488 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
12494 if test "X$prefix" = "XNONE"; then
12495 acl_final_prefix="$ac_default_prefix"
12497 acl_final_prefix="$prefix"
12499 if test "X$exec_prefix" = "XNONE"; then
12500 acl_final_exec_prefix='${prefix}'
12502 acl_final_exec_prefix="$exec_prefix"
12504 acl_save_prefix="$prefix"
12505 prefix="$acl_final_prefix"
12506 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
12507 prefix="$acl_save_prefix"
12511 # Check whether --with-gnu-ld was given.
12512 if test "${with_gnu_ld+set}" = set; then :
12513 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12518 # Prepare PATH_SEPARATOR.
12519 # The user is always right.
12520 if test "${PATH_SEPARATOR+set}" != set; then
12521 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
12522 # contains only /bin. Note that ksh looks also at the FPATH variable,
12523 # so we have to set that as well for the test.
12525 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
12526 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
12527 || PATH_SEPARATOR=';'
12532 if test "$GCC" = yes; then
12533 # Check if gcc -print-prog-name=ld gives a path.
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12535 $as_echo_n "checking for ld used by $CC... " >&6; }
12538 # gcc leaves a trailing carriage return which upsets mingw
12539 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12541 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12544 # Accept absolute paths.
12546 re_direlt='/[^/][^/]*/\.\./'
12547 # Canonicalize the pathname of ld
12548 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
12549 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
12550 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12552 test -z "$LD" && LD="$ac_prog"
12555 # If it fails, then pretend we aren't using GCC.
12559 # If it is relative, then search for the first ld in PATH.
12560 with_gnu_ld=unknown
12563 elif test "$with_gnu_ld" = yes; then
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12565 $as_echo_n "checking for GNU ld... " >&6; }
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12568 $as_echo_n "checking for non-GNU ld... " >&6; }
12570 if ${acl_cv_path_LD+:} false; then :
12571 $as_echo_n "(cached) " >&6
12573 if test -z "$LD"; then
12574 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12575 for ac_dir in $PATH; do
12576 IFS="$acl_save_ifs"
12577 test -z "$ac_dir" && ac_dir=.
12578 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12579 acl_cv_path_LD="$ac_dir/$ac_prog"
12580 # Check to see if the program is GNU ld. I'd rather use --version,
12581 # but apparently some variants of GNU ld only accept -v.
12582 # Break only if it was the GNU/non-GNU ld that we prefer.
12583 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
12584 *GNU* | *'with BFD'*)
12585 test "$with_gnu_ld" != no && break
12588 test "$with_gnu_ld" != yes && break
12593 IFS="$acl_save_ifs"
12595 acl_cv_path_LD="$LD" # Let the user override the test with a path.
12599 LD="$acl_cv_path_LD"
12600 if test -n "$LD"; then
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12602 $as_echo "$LD" >&6; }
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12605 $as_echo "no" >&6; }
12607 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12609 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12610 if ${acl_cv_prog_gnu_ld+:} false; then :
12611 $as_echo_n "(cached) " >&6
12613 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12614 case `$LD -v 2>&1 </dev/null` in
12615 *GNU* | *'with BFD'*)
12616 acl_cv_prog_gnu_ld=yes
12619 acl_cv_prog_gnu_ld=no
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
12624 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
12625 with_gnu_ld=$acl_cv_prog_gnu_ld
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
12631 $as_echo_n "checking for shared library run path origin... " >&6; }
12632 if ${acl_cv_rpath+:} false; then :
12633 $as_echo_n "(cached) " >&6
12636 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12637 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12639 rm -f ./conftest.sh
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
12644 $as_echo "$acl_cv_rpath" >&6; }
12646 acl_libext="$acl_cv_libext"
12647 acl_shlibext="$acl_cv_shlibext"
12648 acl_libname_spec="$acl_cv_libname_spec"
12649 acl_library_names_spec="$acl_cv_library_names_spec"
12650 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12651 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12652 acl_hardcode_direct="$acl_cv_hardcode_direct"
12653 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
12654 # Check whether --enable-rpath was given.
12655 if test "${enable_rpath+set}" = set; then :
12656 enableval=$enable_rpath; :
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
12669 $as_echo_n "checking for 64-bit host... " >&6; }
12670 if ${gl_cv_solaris_64bit+:} false; then :
12671 $as_echo_n "(cached) " >&6
12673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12674 /* end confdefs.h. */
12681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12682 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
12683 gl_cv_solaris_64bit=yes
12685 gl_cv_solaris_64bit=no
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
12692 $as_echo "$gl_cv_solaris_64bit" >&6; }
12693 if test $gl_cv_solaris_64bit = yes; then
12694 acl_libdirstem=lib/64
12695 case "$host_cpu" in
12696 sparc*) acl_libdirstem2=lib/sparcv9 ;;
12697 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
12702 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
12703 if test -n "$searchpath"; then
12704 acl_save_IFS="${IFS= }"; IFS=":"
12705 for searchdir in $searchpath; do
12706 if test -d "$searchdir"; then
12707 case "$searchdir" in
12708 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
12710 # Better ignore directories of this form. They are misleading.
12712 *) searchdir=`cd "$searchdir" && pwd`
12713 case "$searchdir" in
12714 */lib64 ) acl_libdirstem=lib64 ;;
12719 IFS="$acl_save_IFS"
12723 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
12738 acl_save_prefix="$prefix"
12739 prefix="$acl_final_prefix"
12740 acl_save_exec_prefix="$exec_prefix"
12741 exec_prefix="$acl_final_exec_prefix"
12743 eval additional_includedir=\"$includedir\"
12744 eval additional_libdir=\"$libdir\"
12746 exec_prefix="$acl_save_exec_prefix"
12747 prefix="$acl_save_prefix"
12750 # Check whether --with-libiconv-prefix was given.
12751 if test "${with_libiconv_prefix+set}" = set; then :
12752 withval=$with_libiconv_prefix;
12753 if test "X$withval" = "Xno"; then
12756 if test "X$withval" = "X"; then
12758 acl_save_prefix="$prefix"
12759 prefix="$acl_final_prefix"
12760 acl_save_exec_prefix="$exec_prefix"
12761 exec_prefix="$acl_final_exec_prefix"
12763 eval additional_includedir=\"$includedir\"
12764 eval additional_libdir=\"$libdir\"
12766 exec_prefix="$acl_save_exec_prefix"
12767 prefix="$acl_save_prefix"
12770 additional_includedir="$withval/include"
12771 additional_libdir="$withval/$acl_libdirstem"
12772 if test "$acl_libdirstem2" != "$acl_libdirstem" \
12773 && ! test -d "$withval/$acl_libdirstem"; then
12774 additional_libdir="$withval/$acl_libdirstem2"
12788 names_already_handled=
12789 names_next_round='iconv '
12790 while test -n "$names_next_round"; do
12791 names_this_round="$names_next_round"
12793 for name in $names_this_round; do
12795 for n in $names_already_handled; do
12796 if test "$n" = "$name"; then
12797 already_handled=yes
12801 if test -z "$already_handled"; then
12802 names_already_handled="$names_already_handled $name"
12803 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
12804 eval value=\"\$HAVE_LIB$uppername\"
12805 if test -n "$value"; then
12806 if test "$value" = yes; then
12807 eval value=\"\$LIB$uppername\"
12808 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
12809 eval value=\"\$LTLIB$uppername\"
12810 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
12819 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
12820 if test -n "$acl_shlibext"; then
12821 shrext=".$acl_shlibext" # typically: shrext=.so
12825 if test $use_additional = yes; then
12826 dir="$additional_libdir"
12827 if test -n "$acl_shlibext"; then
12828 if test -f "$dir/$libname$shrext"; then
12830 found_so="$dir/$libname$shrext"
12832 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12833 ver=`(cd "$dir" && \
12834 for f in "$libname$shrext".*; do echo "$f"; done \
12835 | sed -e "s,^$libname$shrext\\\\.,," \
12836 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12837 | sed 1q ) 2>/dev/null`
12838 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12840 found_so="$dir/$libname$shrext.$ver"
12843 eval library_names=\"$acl_library_names_spec\"
12844 for f in $library_names; do
12845 if test -f "$dir/$f"; then
12854 if test "X$found_dir" = "X"; then
12855 if test -f "$dir/$libname.$acl_libext"; then
12857 found_a="$dir/$libname.$acl_libext"
12860 if test "X$found_dir" != "X"; then
12861 if test -f "$dir/$libname.la"; then
12862 found_la="$dir/$libname.la"
12866 if test "X$found_dir" = "X"; then
12867 for x in $LDFLAGS $LTLIBICONV; do
12869 acl_save_prefix="$prefix"
12870 prefix="$acl_final_prefix"
12871 acl_save_exec_prefix="$exec_prefix"
12872 exec_prefix="$acl_final_exec_prefix"
12874 exec_prefix="$acl_save_exec_prefix"
12875 prefix="$acl_save_prefix"
12879 dir=`echo "X$x" | sed -e 's/^X-L//'`
12880 if test -n "$acl_shlibext"; then
12881 if test -f "$dir/$libname$shrext"; then
12883 found_so="$dir/$libname$shrext"
12885 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12886 ver=`(cd "$dir" && \
12887 for f in "$libname$shrext".*; do echo "$f"; done \
12888 | sed -e "s,^$libname$shrext\\\\.,," \
12889 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12890 | sed 1q ) 2>/dev/null`
12891 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12893 found_so="$dir/$libname$shrext.$ver"
12896 eval library_names=\"$acl_library_names_spec\"
12897 for f in $library_names; do
12898 if test -f "$dir/$f"; then
12907 if test "X$found_dir" = "X"; then
12908 if test -f "$dir/$libname.$acl_libext"; then
12910 found_a="$dir/$libname.$acl_libext"
12913 if test "X$found_dir" != "X"; then
12914 if test -f "$dir/$libname.la"; then
12915 found_la="$dir/$libname.la"
12920 if test "X$found_dir" != "X"; then
12925 if test "X$found_dir" != "X"; then
12926 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
12927 if test "X$found_so" != "X"; then
12928 if test "$enable_rpath" = no \
12929 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
12930 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
12931 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12934 for x in $ltrpathdirs; do
12935 if test "X$x" = "X$found_dir"; then
12940 if test -z "$haveit"; then
12941 ltrpathdirs="$ltrpathdirs $found_dir"
12943 if test "$acl_hardcode_direct" = yes; then
12944 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12946 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12947 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12949 for x in $rpathdirs; do
12950 if test "X$x" = "X$found_dir"; then
12955 if test -z "$haveit"; then
12956 rpathdirs="$rpathdirs $found_dir"
12960 for x in $LDFLAGS $LIBICONV; do
12962 acl_save_prefix="$prefix"
12963 prefix="$acl_final_prefix"
12964 acl_save_exec_prefix="$exec_prefix"
12965 exec_prefix="$acl_final_exec_prefix"
12967 exec_prefix="$acl_save_exec_prefix"
12968 prefix="$acl_save_prefix"
12970 if test "X$x" = "X-L$found_dir"; then
12975 if test -z "$haveit"; then
12976 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
12978 if test "$acl_hardcode_minus_L" != no; then
12979 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12981 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12987 if test "X$found_a" != "X"; then
12988 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
12990 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
12993 additional_includedir=
12994 case "$found_dir" in
12995 */$acl_libdirstem | */$acl_libdirstem/)
12996 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12997 if test "$name" = 'iconv'; then
12998 LIBICONV_PREFIX="$basedir"
13000 additional_includedir="$basedir/include"
13002 */$acl_libdirstem2 | */$acl_libdirstem2/)
13003 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
13004 if test "$name" = 'iconv'; then
13005 LIBICONV_PREFIX="$basedir"
13007 additional_includedir="$basedir/include"
13010 if test "X$additional_includedir" != "X"; then
13011 if test "X$additional_includedir" != "X/usr/include"; then
13013 if test "X$additional_includedir" = "X/usr/local/include"; then
13014 if test -n "$GCC"; then
13016 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13020 if test -z "$haveit"; then
13021 for x in $CPPFLAGS $INCICONV; do
13023 acl_save_prefix="$prefix"
13024 prefix="$acl_final_prefix"
13025 acl_save_exec_prefix="$exec_prefix"
13026 exec_prefix="$acl_final_exec_prefix"
13028 exec_prefix="$acl_save_exec_prefix"
13029 prefix="$acl_save_prefix"
13031 if test "X$x" = "X-I$additional_includedir"; then
13036 if test -z "$haveit"; then
13037 if test -d "$additional_includedir"; then
13038 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13044 if test -n "$found_la"; then
13045 save_libdir="$libdir"
13046 case "$found_la" in
13047 */* | *\\*) . "$found_la" ;;
13048 *) . "./$found_la" ;;
13050 libdir="$save_libdir"
13051 for dep in $dependency_libs; do
13054 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13055 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
13056 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
13058 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
13059 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
13060 if test -n "$GCC"; then
13062 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13066 if test -z "$haveit"; then
13068 for x in $LDFLAGS $LIBICONV; do
13070 acl_save_prefix="$prefix"
13071 prefix="$acl_final_prefix"
13072 acl_save_exec_prefix="$exec_prefix"
13073 exec_prefix="$acl_final_exec_prefix"
13075 exec_prefix="$acl_save_exec_prefix"
13076 prefix="$acl_save_prefix"
13078 if test "X$x" = "X-L$additional_libdir"; then
13083 if test -z "$haveit"; then
13084 if test -d "$additional_libdir"; then
13085 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13089 for x in $LDFLAGS $LTLIBICONV; do
13091 acl_save_prefix="$prefix"
13092 prefix="$acl_final_prefix"
13093 acl_save_exec_prefix="$exec_prefix"
13094 exec_prefix="$acl_final_exec_prefix"
13096 exec_prefix="$acl_save_exec_prefix"
13097 prefix="$acl_save_prefix"
13099 if test "X$x" = "X-L$additional_libdir"; then
13104 if test -z "$haveit"; then
13105 if test -d "$additional_libdir"; then
13106 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13113 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13114 if test "$enable_rpath" != no; then
13116 for x in $rpathdirs; do
13117 if test "X$x" = "X$dir"; then
13122 if test -z "$haveit"; then
13123 rpathdirs="$rpathdirs $dir"
13126 for x in $ltrpathdirs; do
13127 if test "X$x" = "X$dir"; then
13132 if test -z "$haveit"; then
13133 ltrpathdirs="$ltrpathdirs $dir"
13138 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13141 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13144 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
13145 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
13151 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13152 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
13158 if test "X$rpathdirs" != "X"; then
13159 if test -n "$acl_hardcode_libdir_separator"; then
13161 for found_dir in $rpathdirs; do
13162 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13164 acl_save_libdir="$libdir"
13166 eval flag=\"$acl_hardcode_libdir_flag_spec\"
13167 libdir="$acl_save_libdir"
13168 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13170 for found_dir in $rpathdirs; do
13171 acl_save_libdir="$libdir"
13172 libdir="$found_dir"
13173 eval flag=\"$acl_hardcode_libdir_flag_spec\"
13174 libdir="$acl_save_libdir"
13175 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13179 if test "X$ltrpathdirs" != "X"; then
13180 for found_dir in $ltrpathdirs; do
13181 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
13196 am_save_CPPFLAGS="$CPPFLAGS"
13198 for element in $INCICONV; do
13200 for x in $CPPFLAGS; do
13202 acl_save_prefix="$prefix"
13203 prefix="$acl_final_prefix"
13204 acl_save_exec_prefix="$exec_prefix"
13205 exec_prefix="$acl_final_exec_prefix"
13207 exec_prefix="$acl_save_exec_prefix"
13208 prefix="$acl_save_prefix"
13210 if test "X$x" = "X$element"; then
13215 if test -z "$haveit"; then
13216 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13222 $as_echo_n "checking for iconv... " >&6; }
13223 if ${am_cv_func_iconv+:} false; then :
13224 $as_echo_n "(cached) " >&6
13227 am_cv_func_iconv="no, consider installing GNU libiconv"
13229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13230 /* end confdefs.h. */
13232 #include <stdlib.h>
13238 iconv_t cd = iconv_open("","");
13239 iconv(cd,NULL,NULL,NULL,NULL);
13245 if ac_fn_c_try_link "$LINENO"; then :
13246 am_cv_func_iconv=yes
13248 rm -f core conftest.err conftest.$ac_objext \
13249 conftest$ac_exeext conftest.$ac_ext
13250 if test "$am_cv_func_iconv" != yes; then
13251 am_save_LIBS="$LIBS"
13252 LIBS="$LIBS $LIBICONV"
13253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13254 /* end confdefs.h. */
13256 #include <stdlib.h>
13262 iconv_t cd = iconv_open("","");
13263 iconv(cd,NULL,NULL,NULL,NULL);
13269 if ac_fn_c_try_link "$LINENO"; then :
13270 am_cv_lib_iconv=yes
13271 am_cv_func_iconv=yes
13273 rm -f core conftest.err conftest.$ac_objext \
13274 conftest$ac_exeext conftest.$ac_ext
13275 LIBS="$am_save_LIBS"
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13280 $as_echo "$am_cv_func_iconv" >&6; }
13281 if test "$am_cv_func_iconv" = yes; then
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
13283 $as_echo_n "checking for working iconv... " >&6; }
13284 if ${am_cv_func_iconv_works+:} false; then :
13285 $as_echo_n "(cached) " >&6
13288 am_save_LIBS="$LIBS"
13289 if test $am_cv_lib_iconv = yes; then
13290 LIBS="$LIBS $LIBICONV"
13292 if test "$cross_compiling" = yes; then :
13295 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
13296 *) am_cv_func_iconv_works="guessing yes" ;;
13300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13301 /* end confdefs.h. */
13304 #include <string.h>
13308 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
13311 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
13312 if (cd_utf8_to_88591 != (iconv_t)(-1))
13314 static const char input[] = "\342\202\254"; /* EURO SIGN */
13316 const char *inptr = input;
13317 size_t inbytesleft = strlen (input);
13318 char *outptr = buf;
13319 size_t outbytesleft = sizeof (buf);
13320 size_t res = iconv (cd_utf8_to_88591,
13321 (char **) &inptr, &inbytesleft,
13322 &outptr, &outbytesleft);
13325 iconv_close (cd_utf8_to_88591);
13328 /* Test against Solaris 10 bug: Failures are not distinguishable from
13329 successful returns. */
13331 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
13332 if (cd_ascii_to_88591 != (iconv_t)(-1))
13334 static const char input[] = "\263";
13336 const char *inptr = input;
13337 size_t inbytesleft = strlen (input);
13338 char *outptr = buf;
13339 size_t outbytesleft = sizeof (buf);
13340 size_t res = iconv (cd_ascii_to_88591,
13341 (char **) &inptr, &inbytesleft,
13342 &outptr, &outbytesleft);
13345 iconv_close (cd_ascii_to_88591);
13348 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
13350 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
13351 if (cd_88591_to_utf8 != (iconv_t)(-1))
13353 static const char input[] = "\304";
13354 static char buf[2] = { (char)0xDE, (char)0xAD };
13355 const char *inptr = input;
13356 size_t inbytesleft = 1;
13357 char *outptr = buf;
13358 size_t outbytesleft = 1;
13359 size_t res = iconv (cd_88591_to_utf8,
13360 (char **) &inptr, &inbytesleft,
13361 &outptr, &outbytesleft);
13362 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
13364 iconv_close (cd_88591_to_utf8);
13367 #if 0 /* This bug could be worked around by the caller. */
13368 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
13370 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
13371 if (cd_88591_to_utf8 != (iconv_t)(-1))
13373 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
13375 const char *inptr = input;
13376 size_t inbytesleft = strlen (input);
13377 char *outptr = buf;
13378 size_t outbytesleft = sizeof (buf);
13379 size_t res = iconv (cd_88591_to_utf8,
13380 (char **) &inptr, &inbytesleft,
13381 &outptr, &outbytesleft);
13384 iconv_close (cd_88591_to_utf8);
13388 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
13390 if (/* Try standardized names. */
13391 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
13392 /* Try IRIX, OSF/1 names. */
13393 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
13394 /* Try AIX names. */
13395 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
13396 /* Try HP-UX names. */
13397 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
13402 if ac_fn_c_try_run "$LINENO"; then :
13403 am_cv_func_iconv_works=yes
13405 am_cv_func_iconv_works=no
13407 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13408 conftest.$ac_objext conftest.beam conftest.$ac_ext
13411 LIBS="$am_save_LIBS"
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
13415 $as_echo "$am_cv_func_iconv_works" >&6; }
13416 case "$am_cv_func_iconv_works" in
13417 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
13418 *) am_func_iconv=yes ;;
13421 am_func_iconv=no am_cv_lib_iconv=no
13423 if test "$am_func_iconv" = yes; then
13425 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
13428 if test "$am_cv_lib_iconv" = yes; then
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
13430 $as_echo_n "checking how to link with libiconv... " >&6; }
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
13432 $as_echo "$LIBICONV" >&6; }
13434 CPPFLAGS="$am_save_CPPFLAGS"
13441 if test "$am_cv_func_iconv" = yes; then
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
13443 $as_echo_n "checking for iconv declaration... " >&6; }
13444 if ${am_cv_proto_iconv+:} false; then :
13445 $as_echo_n "(cached) " >&6
13448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13449 /* end confdefs.h. */
13451 #include <stdlib.h>
13457 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
13458 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13471 if ac_fn_c_try_compile "$LINENO"; then :
13472 am_cv_proto_iconv_arg1=""
13474 am_cv_proto_iconv_arg1="const"
13476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13477 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
13480 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
13482 $am_cv_proto_iconv" >&5
13484 $am_cv_proto_iconv" >&6; }
13486 cat >>confdefs.h <<_ACEOF
13487 #define ICONV_CONST $am_cv_proto_iconv_arg1
13493 libfuse_libs="$libfuse_libs $LTLIBICONV"
13494 if test "$am_cv_func_iconv" = yes; then
13504 if test -z "$MOUNT_FUSE_PATH"; then
13505 MOUNT_FUSE_PATH=/sbin
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: MOUNT_FUSE_PATH env var not set, using default $MOUNT_FUSE_PATH" >&5
13507 $as_echo "$as_me: MOUNT_FUSE_PATH env var not set, using default $MOUNT_FUSE_PATH" >&6;}
13510 if test -z "$UDEV_RULES_PATH"; then
13511 UDEV_RULES_PATH=/etc/udev/rules.d
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: UDEV_RULES_PATH env var not set, using default $UDEV_RULES_PATH" >&5
13513 $as_echo "$as_me: UDEV_RULES_PATH env var not set, using default $UDEV_RULES_PATH" >&6;}
13516 if test -z "$INIT_D_PATH"; then
13517 INIT_D_PATH=/etc/init.d
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: INIT_D_PATH env var not set, using default $INIT_D_PATH" >&5
13519 $as_echo "$as_me: INIT_D_PATH env var not set, using default $INIT_D_PATH" >&6;}
13525 if test "$arch" = linux; then
13533 if test "$arch" = netbsd; then
13541 if test "$arch" = bsd; then
13551 if test "$arch" = linux -a "$cross_compiling" != "yes"; then
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umount supports --fake --no-canonicalize" >&5
13553 $as_echo_n "checking if umount supports --fake --no-canonicalize... " >&6; }
13554 # exit code of umount is 1 if option is unrecognised, 2 otherwise
13555 umount --fake --no-canonicalize > /dev/null 2>&1
13556 if test $? != 1; then
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13558 $as_echo "yes" >&6; }
13560 firstline=`umount --fake --no-canonicalize 2>&1 | head -1`
13561 if test "$firstline" = 'umount: only root can use "--fake" option'; then
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13563 $as_echo "yes" >&6; }
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $firstline" >&5
13566 $as_echo "$firstline" >&6; }
13572 ac_config_files="$ac_config_files fuse.pc Makefile lib/Makefile util/Makefile example/Makefile include/Makefile doc/Makefile"
13574 cat >confcache <<\_ACEOF
13575 # This file is a shell script that caches the results of configure
13576 # tests run on this system so they can be shared between configure
13577 # scripts and configure runs, see configure's option --config-cache.
13578 # It is not useful on other systems. If it contains results you don't
13579 # want to keep, you may remove or edit it.
13581 # config.status only pays attention to the cache file if you give it
13582 # the --recheck option to rerun configure.
13584 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13585 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13586 # following values.
13590 # The following way of writing the cache mishandles newlines in values,
13591 # but we know of no workaround that is simple, portable, and efficient.
13592 # So, we kill variables containing newlines.
13593 # Ultrix sh set writes to stderr and can't be redirected directly,
13594 # and sets the high bit in the cache file unless we assign to the vars.
13596 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13597 eval ac_val=\$$ac_var
13601 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13602 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13605 _ | IFS | as_nl) ;; #(
13606 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13607 *) { eval $ac_var=; unset $ac_var;} ;;
13613 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13614 *${as_nl}ac_space=\ *)
13615 # `set' does not quote correctly, so add quotes: double-quote
13616 # substitution turns \\\\ into \\, and sed turns \\ into \.
13619 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13622 # `set' quotes correctly as required by POSIX, so do not add quotes.
13623 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13632 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13634 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13636 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13637 if test -w "$cache_file"; then
13638 if test "x$cache_file" != "x/dev/null"; then
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13640 $as_echo "$as_me: updating cache $cache_file" >&6;}
13641 if test ! -f "$cache_file" || test -h "$cache_file"; then
13642 cat confcache >"$cache_file"
13644 case $cache_file in #(
13646 mv -f confcache "$cache_file"$$ &&
13647 mv -f "$cache_file"$$ "$cache_file" ;; #(
13649 mv -f confcache "$cache_file" ;;
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13655 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13660 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13661 # Let make expand exec_prefix.
13662 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13664 DEFS=-DHAVE_CONFIG_H
13669 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13670 # 1. Remove the extension, and $U if already installed.
13671 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13672 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13673 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13674 # will be set to the directory where LIBOBJS objects are built.
13675 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13676 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13678 LIBOBJS=$ac_libobjs
13680 LTLIBOBJS=$ac_ltlibobjs
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13684 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13685 if test -n "$am_sleep_pid"; then
13686 # Hide warnings about reused PIDs.
13687 wait $am_sleep_pid 2>/dev/null
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13690 $as_echo "done" >&6; }
13691 if test -n "$EXEEXT"; then
13693 am__EXEEXT_FALSE='#'
13695 am__EXEEXT_TRUE='#'
13699 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13700 as_fn_error $? "conditional \"AMDEP\" was never defined.
13701 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13703 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13704 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13705 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13707 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13708 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13709 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13711 if test -z "${ICONV_TRUE}" && test -z "${ICONV_FALSE}"; then
13712 as_fn_error $? "conditional \"ICONV\" was never defined.
13713 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13715 if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then
13716 as_fn_error $? "conditional \"LINUX\" was never defined.
13717 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13719 if test -z "${NETBSD_TRUE}" && test -z "${NETBSD_FALSE}"; then
13720 as_fn_error $? "conditional \"NETBSD\" was never defined.
13721 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13723 if test -z "${BSD_TRUE}" && test -z "${BSD_FALSE}"; then
13724 as_fn_error $? "conditional \"BSD\" was never defined.
13725 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13728 : "${CONFIG_STATUS=./config.status}"
13730 ac_clean_files_save=$ac_clean_files
13731 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13733 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13735 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13737 # Generated by $as_me.
13738 # Run this file to recreate the current configuration.
13739 # Compiler output produced by configure, useful for debugging
13740 # configure, is in config.log if it exists.
13743 ac_cs_recheck=false
13746 SHELL=\${CONFIG_SHELL-$SHELL}
13749 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13750 ## -------------------- ##
13751 ## M4sh Initialization. ##
13752 ## -------------------- ##
13754 # Be more Bourne compatible
13755 DUALCASE=1; export DUALCASE # for MKS sh
13756 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13759 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13760 # is contrary to our usage. Disable this feature.
13761 alias -g '${1+"$@"}'='"$@"'
13762 setopt NO_GLOB_SUBST
13764 case `(set -o) 2>/dev/null` in #(
13776 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13777 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13778 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13779 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13780 # Prefer a ksh shell builtin over an external printf program on Solaris,
13781 # but without wasting forks for bash or zsh.
13782 if test -z "$BASH_VERSION$ZSH_VERSION" \
13783 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13784 as_echo='print -r --'
13785 as_echo_n='print -rn --'
13786 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13787 as_echo='printf %s\n'
13788 as_echo_n='printf %s'
13790 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13791 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13792 as_echo_n='/usr/ucb/echo -n'
13794 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13795 as_echo_n_body='eval
13799 expr "X$arg" : "X\\(.*\\)$as_nl";
13800 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13802 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13804 export as_echo_n_body
13805 as_echo_n='sh -c $as_echo_n_body as_echo'
13807 export as_echo_body
13808 as_echo='sh -c $as_echo_body as_echo'
13811 # The user is always right.
13812 if test "${PATH_SEPARATOR+set}" != set; then
13814 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13815 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13822 # We need space, tab and new line, in precisely that order. Quoting is
13823 # there to prevent editors from complaining about space-tab.
13824 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13825 # splitting by setting IFS to empty value.)
13828 # Find who we are. Look in the path if we contain no directory separator.
13831 *[\\/]* ) as_myself=$0 ;;
13832 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13833 for as_dir in $PATH
13836 test -z "$as_dir" && as_dir=.
13837 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13843 # We did not find ourselves, most probably we were run as `sh COMMAND'
13844 # in which case we are not to be found in the path.
13845 if test "x$as_myself" = x; then
13848 if test ! -f "$as_myself"; then
13849 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13853 # Unset variables that we do not need and which cause bugs (e.g. in
13854 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13855 # suppresses any "Segmentation fault" message there. '((' could
13856 # trigger a bug in pdksh 5.2.14.
13857 for as_var in BASH_ENV ENV MAIL MAILPATH
13858 do eval test x\${$as_var+set} = xset \
13859 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13872 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13875 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13876 # ----------------------------------------
13877 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13878 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13879 # script with STATUS, using 1 if that was 0.
13882 as_status=$1; test $as_status -eq 0 && as_status=1
13884 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13885 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13887 $as_echo "$as_me: error: $2" >&2
13888 as_fn_exit $as_status
13892 # as_fn_set_status STATUS
13893 # -----------------------
13894 # Set $? to STATUS, without forking.
13895 as_fn_set_status ()
13898 } # as_fn_set_status
13900 # as_fn_exit STATUS
13901 # -----------------
13902 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13906 as_fn_set_status $1
13912 # Portably unset VAR.
13915 { eval $1=; unset $1;}
13917 as_unset=as_fn_unset
13918 # as_fn_append VAR VALUE
13919 # ----------------------
13920 # Append the text in VALUE to the end of the definition contained in VAR. Take
13921 # advantage of any shell optimizations that allow amortized linear growth over
13922 # repeated appends, instead of the typical quadratic growth present in naive
13924 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13925 eval 'as_fn_append ()
13936 # as_fn_arith ARG...
13937 # ------------------
13938 # Perform arithmetic evaluation on the ARGs, and store the result in the
13939 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13940 # must be portable across $(()) and expr.
13941 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13942 eval 'as_fn_arith ()
13949 as_val=`expr "$@" || test $? -eq 1`
13954 if expr a : '\(a\)' >/dev/null 2>&1 &&
13955 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13961 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13962 as_basename=basename
13967 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13973 as_me=`$as_basename -- "$0" ||
13974 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13975 X"$0" : 'X\(//\)$' \| \
13976 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13978 sed '/^.*\/\([^/][^/]*\)\/*$/{
13992 # Avoid depending upon Character Ranges.
13993 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13994 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13995 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13996 as_cr_digits='0123456789'
13997 as_cr_alnum=$as_cr_Letters$as_cr_digits
13999 ECHO_C= ECHO_N= ECHO_T=
14000 case `echo -n x` in #(((((
14002 case `echo 'xy\c'` in
14003 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14005 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14012 rm -f conf$$ conf$$.exe conf$$.file
14013 if test -d conf$$.dir; then
14014 rm -f conf$$.dir/conf$$.file
14017 mkdir conf$$.dir 2>/dev/null
14019 if (echo >conf$$.file) 2>/dev/null; then
14020 if ln -s conf$$.file conf$$ 2>/dev/null; then
14022 # ... but there are two gotchas:
14023 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14024 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14025 # In both cases, we have to default to `cp -pR'.
14026 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14028 elif ln conf$$.file conf$$ 2>/dev/null; then
14036 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14037 rmdir conf$$.dir 2>/dev/null
14042 # Create "$as_dir" as a directory, including parents if necessary.
14047 -*) as_dir=./$as_dir;;
14049 test -d "$as_dir" || eval $as_mkdir_p || {
14053 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14054 *) as_qdir=$as_dir;;
14056 as_dirs="'$as_qdir' $as_dirs"
14057 as_dir=`$as_dirname -- "$as_dir" ||
14058 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14059 X"$as_dir" : 'X\(//\)[^/]' \| \
14060 X"$as_dir" : 'X\(//\)$' \| \
14061 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14062 $as_echo X"$as_dir" |
14063 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14067 /^X\(\/\/\)[^/].*/{
14080 test -d "$as_dir" && break
14082 test -z "$as_dirs" || eval "mkdir $as_dirs"
14083 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14087 if mkdir -p . 2>/dev/null; then
14088 as_mkdir_p='mkdir -p "$as_dir"'
14090 test -d ./-p && rmdir ./-p
14095 # as_fn_executable_p FILE
14096 # -----------------------
14097 # Test if FILE is an executable regular file.
14098 as_fn_executable_p ()
14100 test -f "$1" && test -x "$1"
14101 } # as_fn_executable_p
14102 as_test_x='test -x'
14103 as_executable_p=as_fn_executable_p
14105 # Sed expression to map a string onto a valid CPP name.
14106 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14108 # Sed expression to map a string onto a valid variable name.
14109 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14113 ## ----------------------------------- ##
14114 ## Main body of $CONFIG_STATUS script. ##
14115 ## ----------------------------------- ##
14117 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14119 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14120 # Save the log message, to keep $0 and so on meaningful, and to
14121 # report actual input values of CONFIG_FILES etc. instead of their
14122 # values after options handling.
14124 This file was extended by fuse $as_me 2.9.6, which was
14125 generated by GNU Autoconf 2.69. Invocation command line was
14127 CONFIG_FILES = $CONFIG_FILES
14128 CONFIG_HEADERS = $CONFIG_HEADERS
14129 CONFIG_LINKS = $CONFIG_LINKS
14130 CONFIG_COMMANDS = $CONFIG_COMMANDS
14133 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14138 case $ac_config_files in *"
14139 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14142 case $ac_config_headers in *"
14143 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14147 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14148 # Files that config.status was made for.
14149 config_files="$ac_config_files"
14150 config_headers="$ac_config_headers"
14151 config_commands="$ac_config_commands"
14155 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14157 \`$as_me' instantiates files and other configuration actions
14158 from templates according to the current configuration. Unless the files
14159 and actions are specified as TAGs, all are instantiated by default.
14161 Usage: $0 [OPTION]... [TAG]...
14163 -h, --help print this help, then exit
14164 -V, --version print version number and configuration settings, then exit
14165 --config print configuration, then exit
14166 -q, --quiet, --silent
14167 do not print progress messages
14168 -d, --debug don't remove temporary files
14169 --recheck update $as_me by reconfiguring in the same conditions
14170 --file=FILE[:TEMPLATE]
14171 instantiate the configuration file FILE
14172 --header=FILE[:TEMPLATE]
14173 instantiate the configuration header FILE
14175 Configuration files:
14178 Configuration headers:
14181 Configuration commands:
14184 Report bugs to the package provider."
14187 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14188 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14190 fuse config.status 2.9.6
14191 configured by $0, generated by GNU Autoconf 2.69,
14192 with options \\"\$ac_cs_config\\"
14194 Copyright (C) 2012 Free Software Foundation, Inc.
14195 This config.status script is free software; the Free Software Foundation
14196 gives unlimited permission to copy, distribute and modify it."
14203 test -n "\$AWK" || AWK=awk
14206 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14207 # The default lists apply if the user does not specify any file.
14213 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14214 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14218 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14230 # Handling of the options.
14231 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14233 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14234 $as_echo "$ac_cs_version"; exit ;;
14235 --config | --confi | --conf | --con | --co | --c )
14236 $as_echo "$ac_cs_config"; exit ;;
14237 --debug | --debu | --deb | --de | --d | -d )
14239 --file | --fil | --fi | --f )
14242 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14243 '') as_fn_error $? "missing file argument" ;;
14245 as_fn_append CONFIG_FILES " '$ac_optarg'"
14246 ac_need_defaults=false;;
14247 --header | --heade | --head | --hea )
14250 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14252 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14253 ac_need_defaults=false;;
14255 # Conflict between --help and --header
14256 as_fn_error $? "ambiguous option: \`$1'
14257 Try \`$0 --help' for more information.";;
14258 --help | --hel | -h )
14259 $as_echo "$ac_cs_usage"; exit ;;
14260 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14261 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14264 # This is an error.
14265 -*) as_fn_error $? "unrecognized option: \`$1'
14266 Try \`$0 --help' for more information." ;;
14268 *) as_fn_append ac_config_targets " $1"
14269 ac_need_defaults=false ;;
14275 ac_configure_extra_args=
14277 if $ac_cs_silent; then
14279 ac_configure_extra_args="$ac_configure_extra_args --silent"
14283 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14284 if \$ac_cs_recheck; then
14285 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14287 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14288 CONFIG_SHELL='$SHELL'
14289 export CONFIG_SHELL
14294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14298 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14299 ## Running $as_me. ##
14305 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14309 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14312 # The HP-UX ksh and POSIX shell print the target directory to stdout
14313 # if CDPATH is set.
14314 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14316 sed_quote_subst='$sed_quote_subst'
14317 double_quote_subst='$double_quote_subst'
14318 delay_variable_subst='$delay_variable_subst'
14319 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14320 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14321 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14322 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14323 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14324 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14325 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14326 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14327 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14328 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14329 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14330 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14331 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14332 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14333 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14334 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14335 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14336 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14337 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14338 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14339 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14340 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14341 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14342 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14343 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14344 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14345 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14346 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14347 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14348 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14349 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14350 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14351 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14352 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14353 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14354 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14355 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14356 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14357 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14358 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14359 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14360 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14361 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14362 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14363 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14364 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14365 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14366 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14367 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14368 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14369 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14370 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14371 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14372 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14373 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14374 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14375 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
14376 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14377 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14378 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14379 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14380 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14381 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14382 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14383 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14384 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14385 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14386 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14387 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14388 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14389 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14390 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14391 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14392 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14393 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14394 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14395 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14396 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14397 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14398 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14399 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14400 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14401 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14402 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14403 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14404 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14405 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14406 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14407 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14408 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14409 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14410 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14411 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14412 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14413 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14414 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14415 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14416 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14417 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14418 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14419 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14420 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14421 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14422 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14423 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14424 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14425 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14426 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14427 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14428 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14429 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14430 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14431 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14432 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14433 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14434 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14435 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14436 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14437 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14438 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14439 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14440 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14441 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14442 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14443 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14444 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14445 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14446 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14447 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14448 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14451 LTCFLAGS='$LTCFLAGS'
14452 compiler='$compiler_DEFAULT'
14454 # A function that is used when there is no print builtin or printf.
14455 func_fallback_echo ()
14457 eval 'cat <<_LTECHO_EOF
14462 # Quote evaled strings.
14477 deplibs_check_method \
14482 sharedlib_from_linklib_cmd \
14485 archiver_list_spec \
14491 lt_cv_sys_global_symbol_pipe \
14492 lt_cv_sys_global_symbol_to_cdecl \
14493 lt_cv_sys_global_symbol_to_c_name_address \
14494 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14495 nm_file_list_spec \
14496 lt_prog_compiler_no_builtin_flag \
14497 lt_prog_compiler_pic \
14498 lt_prog_compiler_wl \
14499 lt_prog_compiler_static \
14500 lt_cv_prog_compiler_c_o \
14509 export_dynamic_flag_spec \
14510 whole_archive_flag_spec \
14511 compiler_needs_object \
14513 allow_undefined_flag \
14514 no_undefined_flag \
14515 hardcode_libdir_flag_spec \
14516 hardcode_libdir_separator \
14520 variables_saved_for_relink \
14522 library_names_spec \
14524 install_override_mode \
14528 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14529 *[\\\\\\\`\\"\\\$]*)
14530 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14533 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14538 # Double-quote double-evaled strings.
14539 for var in reload_cmds \
14540 old_postinstall_cmds \
14541 old_postuninstall_cmds \
14543 extract_expsyms_cmds \
14544 old_archive_from_new_cmds \
14545 old_archive_from_expsyms_cmds \
14547 archive_expsym_cmds \
14549 module_expsym_cmds \
14550 export_symbols_cmds \
14554 postuninstall_cmds \
14556 sys_lib_search_path_spec \
14557 sys_lib_dlsearch_path_spec; do
14558 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14559 *[\\\\\\\`\\"\\\$]*)
14560 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14563 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14568 ac_aux_dir='$ac_aux_dir'
14569 xsi_shell='$xsi_shell'
14570 lt_shell_append='$lt_shell_append'
14572 # See if we are running on zsh, and set the options which allow our
14573 # commands through without removal of \ escapes INIT.
14574 if test -n "\${ZSH_VERSION+set}" ; then
14575 setopt NO_GLOB_SUBST
14581 TIMESTAMP='$TIMESTAMP'
14590 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14592 # Handling of arguments.
14593 for ac_config_target in $ac_config_targets
14595 case $ac_config_target in
14596 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
14597 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14598 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14599 "fuse.pc") CONFIG_FILES="$CONFIG_FILES fuse.pc" ;;
14600 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14601 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
14602 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
14603 "example/Makefile") CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
14604 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14605 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14607 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14612 # If the user did not use the arguments to specify the items to instantiate,
14613 # then the envvar interface is used. Set only those that are not.
14614 # We use the long form for the default assignment because of an extremely
14615 # bizarre bug on SunOS 4.1.3.
14616 if $ac_need_defaults; then
14617 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14618 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14619 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14622 # Have a temporary directory for convenience. Make it in the build tree
14623 # simply because there is no reason against having it here, and in addition,
14624 # creating and moving files from /tmp can sometimes cause problems.
14625 # Hook for its removal unless debugging.
14626 # Note that there is a small window in which the directory will not be cleaned:
14627 # after its creation but before its name has been assigned to `$tmp'.
14631 trap 'exit_status=$?
14632 : "${ac_tmp:=$tmp}"
14633 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14635 trap 'as_fn_exit 1' 1 2 13 15
14637 # Create a (secure) tmp directory for tmp files.
14640 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14644 tmp=./conf$$-$RANDOM
14645 (umask 077 && mkdir "$tmp")
14646 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14649 # Set up the scripts for CONFIG_FILES section.
14650 # No need to generate them if there are no CONFIG_FILES.
14651 # This happens for instance with `./config.status config.h'.
14652 if test -n "$CONFIG_FILES"; then
14655 ac_cr=`echo X | tr X '\015'`
14656 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14657 # But we know of no other shell where ac_cr would be empty at this
14658 # point, so we can use a bashism as a fallback.
14659 if test "x$ac_cr" = x; then
14660 eval ac_cr=\$\'\\r\'
14662 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14663 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14666 ac_cs_awk_cr=$ac_cr
14669 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14674 echo "cat >conf$$subs.awk <<_ACEOF" &&
14675 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14677 } >conf$$subs.sh ||
14678 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14679 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14681 for ac_last_try in false false false false false :; do
14682 . ./conf$$subs.sh ||
14683 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14685 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14686 if test $ac_delim_n = $ac_delim_num; then
14688 elif $ac_last_try; then
14689 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14691 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14694 rm -f conf$$subs.sh
14696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14697 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14701 s/^/S["/; s/!.*/"]=/
14711 s/\(.\{148\}\)..*/\1/
14713 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14718 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14725 s/\(.\{148\}\)..*/\1/
14727 s/["\\]/\\&/g; s/^/"/; s/$/"/
14731 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14736 ' <conf$$subs.awk | sed '
14741 ' >>$CONFIG_STATUS || ac_write_fail=1
14742 rm -f conf$$subs.awk
14743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14745 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14746 for (key in S) S_is_set[key] = 1
14752 nfields = split(line, field, "@")
14754 len = length(field[1])
14755 for (i = 2; i < nfields; i++) {
14757 keylen = length(key)
14758 if (S_is_set[key]) {
14760 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14761 len += length(value) + length(field[++i])
14772 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14773 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14774 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14777 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14778 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14781 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14782 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14783 # trailing colons and then remove the whole line if VPATH becomes empty
14784 # (actually we leave an empty line to preserve line numbers).
14785 if test "x$srcdir" = x.; then
14786 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14805 fi # test -n "$CONFIG_FILES"
14807 # Set up the scripts for CONFIG_HEADERS section.
14808 # No need to generate them if there are no CONFIG_HEADERS.
14809 # This happens for instance with `./config.status Makefile'.
14810 if test -n "$CONFIG_HEADERS"; then
14811 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14815 # Transform confdefs.h into an awk script `defines.awk', embedded as
14816 # here-document in config.status, that substitutes the proper values into
14817 # config.h.in to produce config.h.
14819 # Create a delimiter string that does not exist in confdefs.h, to ease
14820 # handling of long lines.
14822 for ac_last_try in false false :; do
14823 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14824 if test -z "$ac_tt"; then
14826 elif $ac_last_try; then
14827 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14829 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14833 # For the awk script, D is an array of macro values keyed by name,
14834 # likewise P contains macro parameters if any. Preserve backslash
14835 # newline sequences.
14837 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14839 s/.\{148\}/&'"$ac_delim"'/g
14842 s/^[ ]*#[ ]*define[ ][ ]*/ /
14849 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14851 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14855 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14856 D["\1"]=" \3\\\\\\n"\\/p
14858 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14863 s/.\{148\}/&'"$ac_delim"'/g
14868 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14871 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14873 ' <confdefs.h | sed '
14874 s/'"$ac_delim"'/"\\\
14875 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14877 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14878 for (key in D) D_is_set[key] = 1
14881 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14883 split(line, arg, " ")
14884 if (arg[1] == "#") {
14888 defundef = substr(arg[1], 2)
14891 split(mac1, mac2, "(") #)
14893 prefix = substr(line, 1, index(line, defundef) - 1)
14894 if (D_is_set[macro]) {
14895 # Preserve the white space surrounding the "#".
14896 print prefix "define", macro P[macro] D[macro]
14899 # Replace #undef with comments. This is necessary, for example,
14900 # in the case of _POSIX_SOURCE, which is predefined and required
14901 # on some systems where configure will not decide to define it.
14902 if (defundef == "undef") {
14903 print "/*", prefix defundef, macro, "*/"
14911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14912 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14913 fi # test -n "$CONFIG_HEADERS"
14916 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14921 :[FHLC]) ac_mode=$ac_tag; continue;;
14923 case $ac_mode$ac_tag in
14925 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14926 :[FH]-) ac_tag=-:-;;
14927 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14944 -) ac_f="$ac_tmp/stdin";;
14945 *) # Look for the file first in the build tree, then in the source tree
14946 # (if the path is not absolute). The absolute path cannot be DOS-style,
14947 # because $ac_f cannot contain `:'.
14951 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14953 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14955 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14956 as_fn_append ac_file_inputs " '$ac_f'"
14959 # Let's still pretend it is `configure' which instantiates (i.e., don't
14960 # use $as_me), people would be surprised to read:
14961 # /* config.h. Generated by config.status. */
14962 configure_input='Generated from '`
14963 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14965 if test x"$ac_file" != x-; then
14966 configure_input="$ac_file. $configure_input"
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14968 $as_echo "$as_me: creating $ac_file" >&6;}
14970 # Neutralize special characters interpreted by sed in replacement strings.
14971 case $configure_input in #(
14972 *\&* | *\|* | *\\* )
14973 ac_sed_conf_input=`$as_echo "$configure_input" |
14974 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14975 *) ac_sed_conf_input=$configure_input;;
14979 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14980 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14985 ac_dir=`$as_dirname -- "$ac_file" ||
14986 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14987 X"$ac_file" : 'X\(//\)[^/]' \| \
14988 X"$ac_file" : 'X\(//\)$' \| \
14989 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14990 $as_echo X"$ac_file" |
14991 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14995 /^X\(\/\/\)[^/].*/{
15008 as_dir="$ac_dir"; as_fn_mkdir_p
15012 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15014 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15015 # A ".." for each directory in $ac_dir_suffix.
15016 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15017 case $ac_top_builddir_sub in
15018 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15019 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15022 ac_abs_top_builddir=$ac_pwd
15023 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15024 # for backward compatibility:
15025 ac_top_builddir=$ac_top_build_prefix
15028 .) # We are building in place.
15030 ac_top_srcdir=$ac_top_builddir_sub
15031 ac_abs_top_srcdir=$ac_pwd ;;
15032 [\\/]* | ?:[\\/]* ) # Absolute name.
15033 ac_srcdir=$srcdir$ac_dir_suffix;
15034 ac_top_srcdir=$srcdir
15035 ac_abs_top_srcdir=$srcdir ;;
15036 *) # Relative name.
15037 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15038 ac_top_srcdir=$ac_top_build_prefix$srcdir
15039 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15041 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15051 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15052 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15054 ac_MKDIR_P=$MKDIR_P
15056 [\\/$]* | ?:[\\/]* ) ;;
15057 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15062 # If the template does not know about datarootdir, expand it.
15063 # FIXME: This hack should be removed a few years after 2.60.
15064 ac_datarootdir_hack=; ac_datarootdir_seen=
15075 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15076 *datarootdir*) ac_datarootdir_seen=yes;;
15077 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15079 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15082 ac_datarootdir_hack='
15083 s&@datadir@&$datadir&g
15084 s&@docdir@&$docdir&g
15085 s&@infodir@&$infodir&g
15086 s&@localedir@&$localedir&g
15087 s&@mandir@&$mandir&g
15088 s&\\\${datarootdir}&$datarootdir&g' ;;
15092 # Neutralize VPATH when `$srcdir' = `.'.
15093 # Shell code in configure.ac might set extrasub.
15094 # FIXME: do we really want to maintain this feature?
15095 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15096 ac_sed_extra="$ac_vpsub
15099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15101 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15102 s|@configure_input@|$ac_sed_conf_input|;t t
15103 s&@top_builddir@&$ac_top_builddir_sub&;t t
15104 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15105 s&@srcdir@&$ac_srcdir&;t t
15106 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15107 s&@top_srcdir@&$ac_top_srcdir&;t t
15108 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15109 s&@builddir@&$ac_builddir&;t t
15110 s&@abs_builddir@&$ac_abs_builddir&;t t
15111 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15112 s&@INSTALL@&$ac_INSTALL&;t t
15113 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15114 $ac_datarootdir_hack
15116 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15117 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15119 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15120 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15121 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15122 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15124 which seems to be undefined. Please make sure it is defined" >&5
15125 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15126 which seems to be undefined. Please make sure it is defined" >&2;}
15128 rm -f "$ac_tmp/stdin"
15130 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15131 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15133 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15139 if test x"$ac_file" != x-; then
15141 $as_echo "/* $configure_input */" \
15142 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15143 } >"$ac_tmp/config.h" \
15144 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15145 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15146 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15147 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15150 mv "$ac_tmp/config.h" "$ac_file" \
15151 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15154 $as_echo "/* $configure_input */" \
15155 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15156 || as_fn_error $? "could not create -" "$LINENO" 5
15158 # Compute "$ac_file"'s index in $config_headers.
15161 for _am_header in $config_headers :; do
15162 case $_am_header in
15163 $_am_arg | $_am_arg:* )
15166 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15169 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15170 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15171 X"$_am_arg" : 'X\(//\)[^/]' \| \
15172 X"$_am_arg" : 'X\(//\)$' \| \
15173 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15174 $as_echo X"$_am_arg" |
15175 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15179 /^X\(\/\/\)[^/].*/{
15191 s/.*/./; q'`/stamp-h$_am_stamp_count
15194 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15195 $as_echo "$as_me: executing $ac_file commands" >&6;}
15200 case $ac_file$ac_mode in
15201 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15202 # Older Autoconf quotes --file arguments for eval, but not when files
15203 # are listed without --file. Let's play safe and only enable the eval
15204 # if we detect the quoting.
15205 case $CONFIG_FILES in
15206 *\'*) eval set x "$CONFIG_FILES" ;;
15207 *) set x $CONFIG_FILES ;;
15212 # Strip MF so we end up with the name of the file.
15213 mf=`echo "$mf" | sed -e 's/:.*$//'`
15214 # Check whether this is an Automake generated Makefile or not.
15215 # We used to match only the files named 'Makefile.in', but
15216 # some people rename them; so instead we look at the file content.
15217 # Grep'ing the first line is not enough: some people post-process
15218 # each Makefile.in and add a new line on top of each file to say so.
15219 # Grep'ing the whole file is not good either: AIX grep has a line
15220 # limit of 2048, but all sed's we know have understand at least 4000.
15221 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15222 dirpart=`$as_dirname -- "$mf" ||
15223 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15224 X"$mf" : 'X\(//\)[^/]' \| \
15225 X"$mf" : 'X\(//\)$' \| \
15226 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15228 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15232 /^X\(\/\/\)[^/].*/{
15248 # Extract the definition of DEPDIR, am__include, and am__quote
15249 # from the Makefile without running 'make'.
15250 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15251 test -z "$DEPDIR" && continue
15252 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15253 test -z "$am__include" && continue
15254 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15255 # Find all dependency output files, they are included files with
15256 # $(DEPDIR) in their names. We invoke sed twice because it is the
15257 # simplest approach to changing $(DEPDIR) to its actual value in the
15259 for file in `sed -n "
15260 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15261 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15262 # Make sure the directory exists.
15263 test -f "$dirpart/$file" && continue
15264 fdir=`$as_dirname -- "$file" ||
15265 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15266 X"$file" : 'X\(//\)[^/]' \| \
15267 X"$file" : 'X\(//\)$' \| \
15268 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15269 $as_echo X"$file" |
15270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15274 /^X\(\/\/\)[^/].*/{
15287 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15288 # echo "creating $dirpart/$file"
15289 echo '# dummy' > "$dirpart/$file"
15296 # See if we are running on zsh, and set the options which allow our
15297 # commands through without removal of \ escapes.
15298 if test -n "${ZSH_VERSION+set}" ; then
15299 setopt NO_GLOB_SUBST
15302 cfgfile="${ofile}T"
15303 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15306 cat <<_LT_EOF >> "$cfgfile"
15309 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15310 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15311 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15312 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15314 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15315 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
15317 # Written by Gordon Matzigkeit, 1996
15319 # This file is part of GNU Libtool.
15321 # GNU Libtool is free software; you can redistribute it and/or
15322 # modify it under the terms of the GNU General Public License as
15323 # published by the Free Software Foundation; either version 2 of
15324 # the License, or (at your option) any later version.
15326 # As a special exception to the GNU General Public License,
15327 # if you distribute this file as part of a program or library that
15328 # is built using GNU Libtool, you may include this file under the
15329 # same distribution terms that you use for the rest of that program.
15331 # GNU Libtool is distributed in the hope that it will be useful,
15332 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15333 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15334 # GNU General Public License for more details.
15336 # You should have received a copy of the GNU General Public License
15337 # along with GNU Libtool; see the file COPYING. If not, a copy
15338 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15339 # obtained by writing to the Free Software Foundation, Inc.,
15340 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15343 # The names of the tagged configurations supported by this script.
15346 # ### BEGIN LIBTOOL CONFIG
15348 # Which release of libtool.m4 was used?
15349 macro_version=$macro_version
15350 macro_revision=$macro_revision
15352 # Whether or not to build shared libraries.
15353 build_libtool_libs=$enable_shared
15355 # Whether or not to build static libraries.
15356 build_old_libs=$enable_static
15358 # What type of objects to build.
15361 # Whether or not to optimize for fast installation.
15362 fast_install=$enable_fast_install
15364 # Shell to use when invoking shell scripts.
15367 # An echo program that protects backslashes.
15370 # The PATH separator for the build system.
15371 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15374 host_alias=$host_alias
15378 # The build system.
15379 build_alias=$build_alias
15383 # A sed program that does not truncate output.
15386 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15387 Xsed="\$SED -e 1s/^X//"
15389 # A grep program that handles long lines.
15395 # A literal string matcher.
15398 # A BSD- or MS-compatible name lister.
15401 # Whether we need soft or hard links.
15404 # What is the maximum length of a command?
15405 max_cmd_len=$max_cmd_len
15407 # Object file suffix (normally "o").
15410 # Executable file suffix (normally "").
15413 # whether the shell understands "unset".
15416 # turn spaces into newlines.
15419 # turn newlines into spaces.
15422 # convert \$build file names to \$host format.
15423 to_host_file_cmd=$lt_cv_to_host_file_cmd
15425 # convert \$build files to toolchain format.
15426 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15428 # An object symbol dumper.
15429 OBJDUMP=$lt_OBJDUMP
15431 # Method to check whether dependent libraries are shared objects.
15432 deplibs_check_method=$lt_deplibs_check_method
15434 # Command to use when deplibs_check_method = "file_magic".
15435 file_magic_cmd=$lt_file_magic_cmd
15437 # How to find potential files when deplibs_check_method = "file_magic".
15438 file_magic_glob=$lt_file_magic_glob
15440 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15441 want_nocaseglob=$lt_want_nocaseglob
15443 # DLL creation program.
15444 DLLTOOL=$lt_DLLTOOL
15446 # Command to associate shared and link libraries.
15447 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15452 # Flags to create an archive.
15453 AR_FLAGS=$lt_AR_FLAGS
15455 # How to feed a file listing to the archiver.
15456 archiver_list_spec=$lt_archiver_list_spec
15458 # A symbol stripping program.
15461 # Commands used to install an old-style archive.
15463 old_postinstall_cmds=$lt_old_postinstall_cmds
15464 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15466 # Whether to use a lock for old archive extraction.
15467 lock_old_archive_extraction=$lock_old_archive_extraction
15472 # LTCC compiler flags.
15473 LTCFLAGS=$lt_CFLAGS
15475 # Take the output of nm and produce a listing of raw symbols and C names.
15476 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15478 # Transform the output of nm in a proper C declaration.
15479 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15481 # Transform the output of nm in a C name address pair.
15482 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15484 # Transform the output of nm in a C name address pair when lib prefix is needed.
15485 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15487 # Specify filename containing input files for \$NM.
15488 nm_file_list_spec=$lt_nm_file_list_spec
15490 # The root where to search for dependent libraries,and in which our libraries should be installed.
15491 lt_sysroot=$lt_sysroot
15493 # The name of the directory that contains temporary libtool files.
15496 # Used to examine libraries when file_magic_cmd begins with "file".
15497 MAGIC_CMD=$MAGIC_CMD
15499 # Must we lock files when doing compilation?
15500 need_locks=$lt_need_locks
15503 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15505 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15506 DSYMUTIL=$lt_DSYMUTIL
15508 # Tool to change global to local symbols on Mac OS X.
15511 # Tool to manipulate fat objects and archives on Mac OS X.
15514 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15517 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15518 OTOOL64=$lt_OTOOL64
15520 # Old archive suffix (normally "a").
15523 # Shared library suffix (normally ".so").
15524 shrext_cmds=$lt_shrext_cmds
15526 # The commands to extract the exported symbol list from a shared archive.
15527 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15529 # Variables whose values should be saved in libtool wrapper scripts and
15530 # restored at link time.
15531 variables_saved_for_relink=$lt_variables_saved_for_relink
15533 # Do we need the "lib" prefix for modules?
15534 need_lib_prefix=$need_lib_prefix
15536 # Do we need a version for libraries?
15537 need_version=$need_version
15539 # Library versioning type.
15540 version_type=$version_type
15542 # Shared library runtime path variable.
15543 runpath_var=$runpath_var
15545 # Shared library path variable.
15546 shlibpath_var=$shlibpath_var
15548 # Is shlibpath searched before the hard-coded library search path?
15549 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15551 # Format of library name prefix.
15552 libname_spec=$lt_libname_spec
15554 # List of archive names. First name is the real one, the rest are links.
15555 # The last name is the one that the linker finds with -lNAME
15556 library_names_spec=$lt_library_names_spec
15558 # The coded name of the library, if different from the real name.
15559 soname_spec=$lt_soname_spec
15561 # Permission mode override for installation of shared libraries.
15562 install_override_mode=$lt_install_override_mode
15564 # Command to use after installation of a shared archive.
15565 postinstall_cmds=$lt_postinstall_cmds
15567 # Command to use after uninstallation of a shared archive.
15568 postuninstall_cmds=$lt_postuninstall_cmds
15570 # Commands used to finish a libtool library installation in a directory.
15571 finish_cmds=$lt_finish_cmds
15573 # As "finish_cmds", except a single script fragment to be evaled but
15575 finish_eval=$lt_finish_eval
15577 # Whether we should hardcode library paths into libraries.
15578 hardcode_into_libs=$hardcode_into_libs
15580 # Compile-time system search path for libraries.
15581 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15583 # Run-time system search path for libraries.
15584 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15586 # Whether dlopen is supported.
15587 dlopen_support=$enable_dlopen
15589 # Whether dlopen of programs is supported.
15590 dlopen_self=$enable_dlopen_self
15592 # Whether dlopen of statically linked programs is supported.
15593 dlopen_self_static=$enable_dlopen_self_static
15595 # Commands to strip libraries.
15596 old_striplib=$lt_old_striplib
15597 striplib=$lt_striplib
15600 # The linker used to build libraries.
15603 # How to create reloadable object files.
15604 reload_flag=$lt_reload_flag
15605 reload_cmds=$lt_reload_cmds
15607 # Commands used to build an old-style archive.
15608 old_archive_cmds=$lt_old_archive_cmds
15610 # A language specific compiler.
15613 # Is the compiler the GNU compiler?
15616 # Compiler flag to turn off builtin functions.
15617 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15619 # Additional compiler flags for building library objects.
15620 pic_flag=$lt_lt_prog_compiler_pic
15622 # How to pass a linker flag through the compiler.
15623 wl=$lt_lt_prog_compiler_wl
15625 # Compiler flag to prevent dynamic linking.
15626 link_static_flag=$lt_lt_prog_compiler_static
15628 # Does compiler simultaneously support -c and -o options?
15629 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15631 # Whether or not to add -lc for building shared libraries.
15632 build_libtool_need_lc=$archive_cmds_need_lc
15634 # Whether or not to disallow shared libs when runtime libs are static.
15635 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15637 # Compiler flag to allow reflexive dlopens.
15638 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15640 # Compiler flag to generate shared objects directly from archives.
15641 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15643 # Whether the compiler copes with passing no objects directly.
15644 compiler_needs_object=$lt_compiler_needs_object
15646 # Create an old-style archive from a shared archive.
15647 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15649 # Create a temporary old-style archive to link instead of a shared archive.
15650 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15652 # Commands used to build a shared archive.
15653 archive_cmds=$lt_archive_cmds
15654 archive_expsym_cmds=$lt_archive_expsym_cmds
15656 # Commands used to build a loadable module if different from building
15657 # a shared archive.
15658 module_cmds=$lt_module_cmds
15659 module_expsym_cmds=$lt_module_expsym_cmds
15661 # Whether we are building with GNU ld or not.
15662 with_gnu_ld=$lt_with_gnu_ld
15664 # Flag that allows shared libraries with undefined symbols to be built.
15665 allow_undefined_flag=$lt_allow_undefined_flag
15667 # Flag that enforces no undefined symbols.
15668 no_undefined_flag=$lt_no_undefined_flag
15670 # Flag to hardcode \$libdir into a binary during linking.
15671 # This must work even if \$libdir does not exist
15672 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15674 # Whether we need a single "-rpath" flag with a separated argument.
15675 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15677 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15678 # DIR into the resulting binary.
15679 hardcode_direct=$hardcode_direct
15681 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15682 # DIR into the resulting binary and the resulting library dependency is
15683 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15684 # library is relocated.
15685 hardcode_direct_absolute=$hardcode_direct_absolute
15687 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15688 # into the resulting binary.
15689 hardcode_minus_L=$hardcode_minus_L
15691 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15692 # into the resulting binary.
15693 hardcode_shlibpath_var=$hardcode_shlibpath_var
15695 # Set to "yes" if building a shared library automatically hardcodes DIR
15696 # into the library and all subsequent libraries and executables linked
15698 hardcode_automatic=$hardcode_automatic
15700 # Set to yes if linker adds runtime paths of dependent libraries
15701 # to runtime path list.
15702 inherit_rpath=$inherit_rpath
15704 # Whether libtool must link a program against all its dependency libraries.
15705 link_all_deplibs=$link_all_deplibs
15707 # Set to "yes" if exported symbols are required.
15708 always_export_symbols=$always_export_symbols
15710 # The commands to list exported symbols.
15711 export_symbols_cmds=$lt_export_symbols_cmds
15713 # Symbols that should not be listed in the preloaded symbols.
15714 exclude_expsyms=$lt_exclude_expsyms
15716 # Symbols that must always be exported.
15717 include_expsyms=$lt_include_expsyms
15719 # Commands necessary for linking programs (against libraries) with templates.
15720 prelink_cmds=$lt_prelink_cmds
15722 # Commands necessary for finishing linking programs.
15723 postlink_cmds=$lt_postlink_cmds
15725 # Specify filename containing input files.
15726 file_list_spec=$lt_file_list_spec
15728 # How to hardcode a shared library path into an executable.
15729 hardcode_action=$hardcode_action
15731 # ### END LIBTOOL CONFIG
15737 cat <<\_LT_EOF >> "$cfgfile"
15738 # AIX sometimes has problems with the GCC collect2 program. For some
15739 # reason, if we set the COLLECT_NAMES environment variable, the problems
15740 # vanish in a puff of smoke.
15741 if test "X${COLLECT_NAMES+set}" != Xset; then
15743 export COLLECT_NAMES
15750 ltmain="$ac_aux_dir/ltmain.sh"
15753 # We use sed instead of cat because bash on DJGPP gets confused if
15754 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15755 # text mode, it properly converts lines to CR/LF. This bash problem
15756 # is reportedly fixed, but why not run on old versions too?
15757 sed '$q' "$ltmain" >> "$cfgfile" \
15758 || (rm -f "$cfgfile"; exit 1)
15760 if test x"$xsi_shell" = xyes; then
15761 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15765 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15766 \ * ) func_dirname_result="${3}" ;;\
15768 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15769 && mv -f "$cfgfile.tmp" "$cfgfile" \
15770 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15771 test 0 -eq $? || _lt_function_replace_fail=:
15774 sed -e '/^func_basename ()$/,/^} # func_basename /c\
15777 \ func_basename_result="${1##*/}"\
15778 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15779 && mv -f "$cfgfile.tmp" "$cfgfile" \
15780 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15781 test 0 -eq $? || _lt_function_replace_fail=:
15784 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15785 func_dirname_and_basename ()\
15788 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15789 \ * ) func_dirname_result="${3}" ;;\
15791 \ func_basename_result="${1##*/}"\
15792 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15793 && mv -f "$cfgfile.tmp" "$cfgfile" \
15794 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15795 test 0 -eq $? || _lt_function_replace_fail=:
15798 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15801 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15802 \ # positional parameters, so assign one to ordinary parameter first.\
15803 \ func_stripname_result=${3}\
15804 \ func_stripname_result=${func_stripname_result#"${1}"}\
15805 \ func_stripname_result=${func_stripname_result%"${2}"}\
15806 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15807 && mv -f "$cfgfile.tmp" "$cfgfile" \
15808 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15809 test 0 -eq $? || _lt_function_replace_fail=:
15812 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15813 func_split_long_opt ()\
15815 \ func_split_long_opt_name=${1%%=*}\
15816 \ func_split_long_opt_arg=${1#*=}\
15817 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15818 && mv -f "$cfgfile.tmp" "$cfgfile" \
15819 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15820 test 0 -eq $? || _lt_function_replace_fail=:
15823 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15824 func_split_short_opt ()\
15826 \ func_split_short_opt_arg=${1#??}\
15827 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15828 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15829 && mv -f "$cfgfile.tmp" "$cfgfile" \
15830 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15831 test 0 -eq $? || _lt_function_replace_fail=:
15834 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15838 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15839 \ *) func_lo2o_result=${1} ;;\
15841 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15842 && mv -f "$cfgfile.tmp" "$cfgfile" \
15843 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15844 test 0 -eq $? || _lt_function_replace_fail=:
15847 sed -e '/^func_xform ()$/,/^} # func_xform /c\
15850 func_xform_result=${1%.*}.lo\
15851 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15852 && mv -f "$cfgfile.tmp" "$cfgfile" \
15853 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15854 test 0 -eq $? || _lt_function_replace_fail=:
15857 sed -e '/^func_arith ()$/,/^} # func_arith /c\
15860 func_arith_result=$(( $* ))\
15861 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15862 && mv -f "$cfgfile.tmp" "$cfgfile" \
15863 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15864 test 0 -eq $? || _lt_function_replace_fail=:
15867 sed -e '/^func_len ()$/,/^} # func_len /c\
15870 func_len_result=${#1}\
15871 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15872 && mv -f "$cfgfile.tmp" "$cfgfile" \
15873 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15874 test 0 -eq $? || _lt_function_replace_fail=:
15878 if test x"$lt_shell_append" = xyes; then
15879 sed -e '/^func_append ()$/,/^} # func_append /c\
15882 eval "${1}+=\\${2}"\
15883 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15884 && mv -f "$cfgfile.tmp" "$cfgfile" \
15885 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15886 test 0 -eq $? || _lt_function_replace_fail=:
15889 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15890 func_append_quoted ()\
15892 \ func_quote_for_eval "${2}"\
15893 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15894 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15895 && mv -f "$cfgfile.tmp" "$cfgfile" \
15896 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15897 test 0 -eq $? || _lt_function_replace_fail=:
15900 # Save a `func_append' function call where possible by direct use of '+='
15901 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15902 && mv -f "$cfgfile.tmp" "$cfgfile" \
15903 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15904 test 0 -eq $? || _lt_function_replace_fail=:
15906 # Save a `func_append' function call even when '+=' is not available
15907 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15908 && mv -f "$cfgfile.tmp" "$cfgfile" \
15909 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15910 test 0 -eq $? || _lt_function_replace_fail=:
15913 if test x"$_lt_function_replace_fail" = x":"; then
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15915 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15919 mv -f "$cfgfile" "$ofile" ||
15920 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15931 ac_clean_files=$ac_clean_files_save
15933 test $ac_write_fail = 0 ||
15934 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15937 # configure is writing to config.log, and then calls config.status.
15938 # config.status does its own redirection, appending to config.log.
15939 # Unfortunately, on DOS this fails, as config.log is still kept open
15940 # by configure, so config.status won't be able to write to it; its
15941 # output is simply discarded. So we exec the FD to /dev/null,
15942 # effectively closing config.log, so it can be properly (re)opened and
15943 # appended to by config.status. When coming back to configure, we
15944 # need to make the FD available again.
15945 if test "$no_create" != yes; then
15947 ac_config_status_args=
15948 test "$silent" = yes &&
15949 ac_config_status_args="$ac_config_status_args --quiet"
15951 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15953 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15954 # would make configure fail if this is the last instruction.
15955 $ac_cs_success || as_fn_exit 1
15957 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15959 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15963 if test "$util_linux_ok" = no; then
15964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15965 ******************************************************************
15966 * Please install util-linux version 2.18 or later which supports *
15967 * --fake and --no-canonicalize options in mount and umount *
15968 ******************************************************************" >&5
15969 $as_echo "$as_me: WARNING:
15970 ******************************************************************
15971 * Please install util-linux version 2.18 or later which supports *
15972 * --fake and --no-canonicalize options in mount and umount *
15973 ******************************************************************" >&2;}