2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for c-ares-test -.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and - about your
278 $0: system, including any error possibly output before this
279 $0: message. Then install a modern shell, or manually run
280 $0: the script under such a shell if you do have one."
286 SHELL=${CONFIG_SHELL-/bin/sh}
288 # Unset more variables known to interfere with behavior of common tools.
289 CLICOLOR_FORCE= GREP_OPTIONS=
290 unset CLICOLOR_FORCE GREP_OPTIONS
292 ## --------------------- ##
293 ## M4sh Shell Functions. ##
294 ## --------------------- ##
297 # Portably unset VAR.
300 { eval $1=; unset $1;}
304 # as_fn_set_status STATUS
305 # -----------------------
306 # Set $? to STATUS, without forking.
314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
324 # Create "$as_dir" as a directory, including parents if necessary.
329 -*) as_dir=./$as_dir;;
331 test -d "$as_dir" || eval $as_mkdir_p || {
335 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 as_dirs="'$as_qdir' $as_dirs"
339 as_dir=`$as_dirname -- "$as_dir" ||
340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341 X"$as_dir" : 'X\(//\)[^/]' \| \
342 X"$as_dir" : 'X\(//\)$' \| \
343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344 $as_echo X"$as_dir" |
345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
362 test -d "$as_dir" && break
364 test -z "$as_dirs" || eval "mkdir $as_dirs"
365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370 # as_fn_executable_p FILE
371 # -----------------------
372 # Test if FILE is an executable regular file.
373 as_fn_executable_p ()
375 test -f "$1" && test -x "$1"
376 } # as_fn_executable_p
377 # as_fn_append VAR VALUE
378 # ----------------------
379 # Append the text in VALUE to the end of the definition contained in VAR. Take
380 # advantage of any shell optimizations that allow amortized linear growth over
381 # repeated appends, instead of the typical quadratic growth present in naive
383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
384 eval 'as_fn_append ()
397 # Perform arithmetic evaluation on the ARGs, and store the result in the
398 # global $as_val. Take advantage of shells that can avoid forks. The arguments
399 # must be portable across $(()) and expr.
400 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
408 as_val=`expr "$@" || test $? -eq 1`
413 # as_fn_error STATUS ERROR [LINENO LOG_FD]
414 # ----------------------------------------
415 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
416 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
417 # script with STATUS, using 1 if that was 0.
420 as_status=$1; test $as_status -eq 0 && as_status=1
422 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
423 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 $as_echo "$as_me: error: $2" >&2
426 as_fn_exit $as_status
429 if expr a : '\(a\)' >/dev/null 2>&1 &&
430 test "X`expr 00001 : '.*\(...\)'`" = X001; then
436 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
442 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
448 as_me=`$as_basename -- "$0" ||
449 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
450 X"$0" : 'X\(//\)$' \| \
451 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 sed '/^.*\/\([^/][^/]*\)\/*$/{
467 # Avoid depending upon Character Ranges.
468 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
469 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
470 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
471 as_cr_digits='0123456789'
472 as_cr_alnum=$as_cr_Letters$as_cr_digits
475 as_lineno_1=$LINENO as_lineno_1a=$LINENO
476 as_lineno_2=$LINENO as_lineno_2a=$LINENO
477 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
478 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
479 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
491 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
495 chmod +x "$as_me.lineno" ||
496 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
499 # already done that, so ensure we don't try to do so again and fall
500 # in an infinite loop. This has already happened in practice.
501 _as_can_reexec=no; export _as_can_reexec
502 # Don't try to exec as it changes $[0], causing all sort of problems
503 # (the dirname of $[0] is not the place where we might find the
504 # original and so on. Autoconf is especially sensitive to this).
506 # Exit status is that of the last command.
510 ECHO_C= ECHO_N= ECHO_T=
511 case `echo -n x` in #(((((
513 case `echo 'xy\c'` in
514 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
523 rm -f conf$$ conf$$.exe conf$$.file
524 if test -d conf$$.dir; then
525 rm -f conf$$.dir/conf$$.file
528 mkdir conf$$.dir 2>/dev/null
530 if (echo >conf$$.file) 2>/dev/null; then
531 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 # ... but there are two gotchas:
534 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
535 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
536 # In both cases, we have to default to `cp -pR'.
537 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 elif ln conf$$.file conf$$ 2>/dev/null; then
547 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
548 rmdir conf$$.dir 2>/dev/null
550 if mkdir -p . 2>/dev/null; then
551 as_mkdir_p='mkdir -p "$as_dir"'
553 test -d ./-p && rmdir ./-p
558 as_executable_p=as_fn_executable_p
560 # Sed expression to map a string onto a valid CPP name.
561 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563 # Sed expression to map a string onto a valid variable name.
564 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566 SHELL=${CONFIG_SHELL-/bin/sh}
569 test -n "$DJDIR" || exec 7<&0 </dev/null
573 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
574 # so uname gets run too.
575 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580 ac_default_prefix=/usr/local
582 ac_config_libobj_dir=.
589 # Identity of this package.
590 PACKAGE_NAME='c-ares-test'
591 PACKAGE_TARNAME='c-ares-test'
593 PACKAGE_STRING='c-ares-test -'
594 PACKAGE_BUGREPORT='-'
597 ac_unique_file="ares-test.cc"
598 # Factoring default headers for most tests.
599 ac_includes_default="\
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
611 # ifdef HAVE_STDLIB_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
634 ac_subst_vars='am__EXEEXT_FALSE
639 CODE_COVERAGE_LDFLAGS
644 CODE_COVERAGE_ENABLED
645 CODE_COVERAGE_ENABLED_FALSE
646 CODE_COVERAGE_ENABLED_TRUE
720 INSTALL_STRIP_PROGRAM
763 program_transform_name
776 enable_option_checking
778 enable_dependency_tracking
790 ac_precious_vars='build_alias
806 # Initialize some variables set by options.
808 ac_init_version=false
809 ac_unrecognized_opts=
811 # The variables have the same names as the options, with
812 # dashes changed to underlines.
820 program_transform_name=s,x,x,
828 # Installation directory options.
829 # These are left unexpanded so users can "make install exec_prefix=/foo"
830 # and all the variables that are supposed to be based on exec_prefix
831 # by default will actually change.
832 # Use braces instead of parens because sh, perl, etc. also accept them.
833 # (The list follows the same order as the GNU Coding Standards.)
834 bindir='${exec_prefix}/bin'
835 sbindir='${exec_prefix}/sbin'
836 libexecdir='${exec_prefix}/libexec'
837 datarootdir='${prefix}/share'
838 datadir='${datarootdir}'
839 sysconfdir='${prefix}/etc'
840 sharedstatedir='${prefix}/com'
841 localstatedir='${prefix}/var'
842 runstatedir='${localstatedir}/run'
843 includedir='${prefix}/include'
844 oldincludedir='/usr/include'
845 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
846 infodir='${datarootdir}/info'
851 libdir='${exec_prefix}/lib'
852 localedir='${datarootdir}/locale'
853 mandir='${datarootdir}/man'
859 # If the previous option needs an argument, assign it.
860 if test -n "$ac_prev"; then
861 eval $ac_prev=\$ac_option
867 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
872 # Accept the important Cygnus configure options, so we can diagnose typos.
874 case $ac_dashdash$ac_option in
878 -bindir | --bindir | --bindi | --bind | --bin | --bi)
880 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
883 -build | --build | --buil | --bui | --bu)
884 ac_prev=build_alias ;;
885 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
886 build_alias=$ac_optarg ;;
888 -cache-file | --cache-file | --cache-fil | --cache-fi \
889 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
890 ac_prev=cache_file ;;
891 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
892 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
893 cache_file=$ac_optarg ;;
896 cache_file=config.cache ;;
898 -datadir | --datadir | --datadi | --datad)
900 -datadir=* | --datadir=* | --datadi=* | --datad=*)
901 datadir=$ac_optarg ;;
903 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
904 | --dataroo | --dataro | --datar)
905 ac_prev=datarootdir ;;
906 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
907 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
908 datarootdir=$ac_optarg ;;
910 -disable-* | --disable-*)
911 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
912 # Reject names that are not valid shell variable names.
913 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
914 as_fn_error $? "invalid feature name: $ac_useropt"
915 ac_useropt_orig=$ac_useropt
916 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
917 case $ac_user_opts in
921 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
922 ac_unrecognized_sep=', ';;
924 eval enable_$ac_useropt=no ;;
926 -docdir | --docdir | --docdi | --doc | --do)
928 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
931 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
933 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
936 -enable-* | --enable-*)
937 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
938 # Reject names that are not valid shell variable names.
939 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
940 as_fn_error $? "invalid feature name: $ac_useropt"
941 ac_useropt_orig=$ac_useropt
942 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
943 case $ac_user_opts in
947 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
948 ac_unrecognized_sep=', ';;
950 eval enable_$ac_useropt=\$ac_optarg ;;
952 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
953 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
954 | --exec | --exe | --ex)
955 ac_prev=exec_prefix ;;
956 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
957 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
958 | --exec=* | --exe=* | --ex=*)
959 exec_prefix=$ac_optarg ;;
961 -gas | --gas | --ga | --g)
962 # Obsolete; use --with-gas.
965 -help | --help | --hel | --he | -h)
967 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
968 ac_init_help=recursive ;;
969 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
970 ac_init_help=short ;;
972 -host | --host | --hos | --ho)
973 ac_prev=host_alias ;;
974 -host=* | --host=* | --hos=* | --ho=*)
975 host_alias=$ac_optarg ;;
977 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
979 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
981 htmldir=$ac_optarg ;;
983 -includedir | --includedir | --includedi | --included | --include \
984 | --includ | --inclu | --incl | --inc)
985 ac_prev=includedir ;;
986 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
987 | --includ=* | --inclu=* | --incl=* | --inc=*)
988 includedir=$ac_optarg ;;
990 -infodir | --infodir | --infodi | --infod | --info | --inf)
992 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
993 infodir=$ac_optarg ;;
995 -libdir | --libdir | --libdi | --libd)
997 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1000 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1001 | --libexe | --libex | --libe)
1002 ac_prev=libexecdir ;;
1003 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1004 | --libexe=* | --libex=* | --libe=*)
1005 libexecdir=$ac_optarg ;;
1007 -localedir | --localedir | --localedi | --localed | --locale)
1008 ac_prev=localedir ;;
1009 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1010 localedir=$ac_optarg ;;
1012 -localstatedir | --localstatedir | --localstatedi | --localstated \
1013 | --localstate | --localstat | --localsta | --localst | --locals)
1014 ac_prev=localstatedir ;;
1015 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1016 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1017 localstatedir=$ac_optarg ;;
1019 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1021 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1022 mandir=$ac_optarg ;;
1024 -nfp | --nfp | --nf)
1025 # Obsolete; use --without-fp.
1028 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1029 | --no-cr | --no-c | -n)
1032 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1033 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1036 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1037 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1038 | --oldin | --oldi | --old | --ol | --o)
1039 ac_prev=oldincludedir ;;
1040 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1041 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1042 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1043 oldincludedir=$ac_optarg ;;
1045 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1047 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1048 prefix=$ac_optarg ;;
1050 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1051 | --program-pre | --program-pr | --program-p)
1052 ac_prev=program_prefix ;;
1053 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1054 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1055 program_prefix=$ac_optarg ;;
1057 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1058 | --program-suf | --program-su | --program-s)
1059 ac_prev=program_suffix ;;
1060 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1061 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1062 program_suffix=$ac_optarg ;;
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 ac_prev=program_transform_name ;;
1072 -program-transform-name=* | --program-transform-name=* \
1073 | --program-transform-nam=* | --program-transform-na=* \
1074 | --program-transform-n=* | --program-transform-=* \
1075 | --program-transform=* | --program-transfor=* \
1076 | --program-transfo=* | --program-transf=* \
1077 | --program-trans=* | --program-tran=* \
1078 | --progr-tra=* | --program-tr=* | --program-t=*)
1079 program_transform_name=$ac_optarg ;;
1081 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1083 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1084 pdfdir=$ac_optarg ;;
1086 -psdir | --psdir | --psdi | --psd | --ps)
1088 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1092 | -silent | --silent | --silen | --sile | --sil)
1095 -runstatedir | --runstatedir | --runstatedi | --runstated \
1096 | --runstate | --runstat | --runsta | --runst | --runs \
1097 | --run | --ru | --r)
1098 ac_prev=runstatedir ;;
1099 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1100 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1101 | --run=* | --ru=* | --r=*)
1102 runstatedir=$ac_optarg ;;
1104 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1106 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1108 sbindir=$ac_optarg ;;
1110 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1111 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1112 | --sharedst | --shareds | --shared | --share | --shar \
1114 ac_prev=sharedstatedir ;;
1115 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1116 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1117 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1119 sharedstatedir=$ac_optarg ;;
1121 -site | --site | --sit)
1123 -site=* | --site=* | --sit=*)
1126 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1128 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1129 srcdir=$ac_optarg ;;
1131 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1132 | --syscon | --sysco | --sysc | --sys | --sy)
1133 ac_prev=sysconfdir ;;
1134 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1135 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1136 sysconfdir=$ac_optarg ;;
1138 -target | --target | --targe | --targ | --tar | --ta | --t)
1139 ac_prev=target_alias ;;
1140 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1141 target_alias=$ac_optarg ;;
1143 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1146 -version | --version | --versio | --versi | --vers | -V)
1147 ac_init_version=: ;;
1150 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153 as_fn_error $? "invalid package name: $ac_useropt"
1154 ac_useropt_orig=$ac_useropt
1155 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1156 case $ac_user_opts in
1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1161 ac_unrecognized_sep=', ';;
1163 eval with_$ac_useropt=\$ac_optarg ;;
1165 -without-* | --without-*)
1166 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1167 # Reject names that are not valid shell variable names.
1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169 as_fn_error $? "invalid package name: $ac_useropt"
1170 ac_useropt_orig=$ac_useropt
1171 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172 case $ac_user_opts in
1176 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1177 ac_unrecognized_sep=', ';;
1179 eval with_$ac_useropt=no ;;
1182 # Obsolete; use --with-x.
1185 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1186 | --x-incl | --x-inc | --x-in | --x-i)
1187 ac_prev=x_includes ;;
1188 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1189 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1190 x_includes=$ac_optarg ;;
1192 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1193 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1194 ac_prev=x_libraries ;;
1195 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1196 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1197 x_libraries=$ac_optarg ;;
1199 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1200 Try \`$0 --help' for more information"
1204 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1205 # Reject names that are not valid shell variable names.
1206 case $ac_envvar in #(
1207 '' | [0-9]* | *[!_$as_cr_alnum]* )
1208 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1210 eval $ac_envvar=\$ac_optarg
1211 export $ac_envvar ;;
1214 # FIXME: should be removed in autoconf 3.0.
1215 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1216 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1217 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1218 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1224 if test -n "$ac_prev"; then
1225 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1226 as_fn_error $? "missing argument to $ac_option"
1229 if test -n "$ac_unrecognized_opts"; then
1230 case $enable_option_checking in
1232 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1233 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1237 # Check all directory arguments for consistency.
1238 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1239 datadir sysconfdir sharedstatedir localstatedir includedir \
1240 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1241 libdir localedir mandir runstatedir
1243 eval ac_val=\$$ac_var
1244 # Remove trailing slashes.
1247 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1248 eval $ac_var=\$ac_val;;
1250 # Be sure to have absolute directory names.
1252 [\\/$]* | ?:[\\/]* ) continue;;
1253 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1255 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1258 # There might be people who depend on the old broken behavior: `$host'
1259 # used to hold the argument of --host etc.
1260 # FIXME: To remove some day.
1263 target=$target_alias
1265 # FIXME: To remove some day.
1266 if test "x$host_alias" != x; then
1267 if test "x$build_alias" = x; then
1268 cross_compiling=maybe
1269 elif test "x$build_alias" != "x$host_alias"; then
1275 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1277 test "$silent" = yes && exec 6>/dev/null
1280 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1281 ac_ls_di=`ls -di .` &&
1282 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1283 as_fn_error $? "working directory cannot be determined"
1284 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1285 as_fn_error $? "pwd does not report name of working directory"
1288 # Find the source files, if location was not specified.
1289 if test -z "$srcdir"; then
1290 ac_srcdir_defaulted=yes
1291 # Try the directory containing this script, then the parent directory.
1292 ac_confdir=`$as_dirname -- "$as_myself" ||
1293 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1294 X"$as_myself" : 'X\(//\)[^/]' \| \
1295 X"$as_myself" : 'X\(//\)$' \| \
1296 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1297 $as_echo X"$as_myself" |
1298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1316 if test ! -r "$srcdir/$ac_unique_file"; then
1320 ac_srcdir_defaulted=no
1322 if test ! -r "$srcdir/$ac_unique_file"; then
1323 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1324 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1326 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1328 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1330 # When building in place, set srcdir=.
1331 if test "$ac_abs_confdir" = "$ac_pwd"; then
1334 # Remove unnecessary trailing slashes from srcdir.
1335 # Double slashes in file names in object file debugging info
1336 # mess up M-x gdb in Emacs.
1338 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1340 for ac_var in $ac_precious_vars; do
1341 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1342 eval ac_env_${ac_var}_value=\$${ac_var}
1343 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1344 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1348 # Report the --help message.
1350 if test "$ac_init_help" = "long"; then
1351 # Omit some internal or obsolete options to make the list less imposing.
1352 # This message is too long to be a string in the A/UX 3.1 sh.
1354 \`configure' configures c-ares-test - to adapt to many kinds of systems.
1356 Usage: $0 [OPTION]... [VAR=VALUE]...
1358 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1359 VAR=VALUE. See below for descriptions of some of the useful variables.
1361 Defaults for the options are specified in brackets.
1364 -h, --help display this help and exit
1365 --help=short display options specific to this package
1366 --help=recursive display the short help of all the included packages
1367 -V, --version display version information and exit
1368 -q, --quiet, --silent do not print \`checking ...' messages
1369 --cache-file=FILE cache test results in FILE [disabled]
1370 -C, --config-cache alias for \`--cache-file=config.cache'
1371 -n, --no-create do not create output files
1372 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1374 Installation directories:
1375 --prefix=PREFIX install architecture-independent files in PREFIX
1376 [$ac_default_prefix]
1377 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1380 By default, \`make install' will install all the files in
1381 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1382 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1383 for instance \`--prefix=\$HOME'.
1385 For better control, use the options below.
1387 Fine tuning of the installation directories:
1388 --bindir=DIR user executables [EPREFIX/bin]
1389 --sbindir=DIR system admin executables [EPREFIX/sbin]
1390 --libexecdir=DIR program executables [EPREFIX/libexec]
1391 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1392 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1393 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1394 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1395 --libdir=DIR object code libraries [EPREFIX/lib]
1396 --includedir=DIR C header files [PREFIX/include]
1397 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1398 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1399 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1400 --infodir=DIR info documentation [DATAROOTDIR/info]
1401 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1402 --mandir=DIR man documentation [DATAROOTDIR/man]
1403 --docdir=DIR documentation root [DATAROOTDIR/doc/c-ares-test]
1404 --htmldir=DIR html documentation [DOCDIR]
1405 --dvidir=DIR dvi documentation [DOCDIR]
1406 --pdfdir=DIR pdf documentation [DOCDIR]
1407 --psdir=DIR ps documentation [DOCDIR]
1413 --program-prefix=PREFIX prepend PREFIX to installed program names
1414 --program-suffix=SUFFIX append SUFFIX to installed program names
1415 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1418 --build=BUILD configure for building on BUILD [guessed]
1419 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1423 if test -n "$ac_init_help"; then
1424 case $ac_init_help in
1425 short | recursive ) echo "Configuration of c-ares-test -:";;
1430 --disable-option-checking ignore unrecognized --enable/--with options
1431 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1432 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1433 --enable-silent-rules less verbose build output (undo: "make V=1")
1434 --disable-silent-rules verbose build output (undo: "make V=0")
1435 --enable-dependency-tracking
1436 do not reject slow dependency extractors
1437 --disable-dependency-tracking
1438 speeds up one-time build
1439 --enable-shared[=PKGS] build shared libraries [default=yes]
1440 --enable-static[=PKGS] build static libraries [default=yes]
1441 --enable-fast-install[=PKGS]
1442 optimize for fast installation [default=yes]
1443 --disable-libtool-lock avoid locking (might break parallel builds)
1444 --enable-code-coverage Whether to enable code coverage support
1447 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1448 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1449 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1451 --with-aix-soname=aix|svr4|both
1452 shared library versioning (aka "SONAME") variant to
1453 provide on AIX, [default=aix].
1454 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1455 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1456 compiler's sysroot if not specified).
1457 --with-gcov=GCOV use given GCOV for coverage (GCOV=gcov).
1459 Some influential environment variables:
1460 CXX C++ compiler command
1461 CXXFLAGS C++ compiler flags
1462 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1463 nonstandard directory <lib dir>
1464 LIBS libraries to pass to the linker, e.g. -l<library>
1465 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1466 you have headers in a nonstandard directory <include dir>
1467 CC C compiler command
1468 CFLAGS C compiler flags
1470 User-defined run-time library search path.
1472 CXXCPP C++ preprocessor
1474 Use these variables to override the choices made by `configure' or to help
1475 it to find libraries and programs with nonstandard names/locations.
1482 if test "$ac_init_help" = "recursive"; then
1483 # If there are subdirs, report their specific --help.
1484 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1485 test -d "$ac_dir" ||
1486 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1491 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1494 # A ".." for each directory in $ac_dir_suffix.
1495 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1496 case $ac_top_builddir_sub in
1497 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1498 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1501 ac_abs_top_builddir=$ac_pwd
1502 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1503 # for backward compatibility:
1504 ac_top_builddir=$ac_top_build_prefix
1507 .) # We are building in place.
1509 ac_top_srcdir=$ac_top_builddir_sub
1510 ac_abs_top_srcdir=$ac_pwd ;;
1511 [\\/]* | ?:[\\/]* ) # Absolute name.
1512 ac_srcdir=$srcdir$ac_dir_suffix;
1513 ac_top_srcdir=$srcdir
1514 ac_abs_top_srcdir=$srcdir ;;
1516 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1517 ac_top_srcdir=$ac_top_build_prefix$srcdir
1518 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1520 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1522 cd "$ac_dir" || { ac_status=$?; continue; }
1523 # Check for guested configure.
1524 if test -f "$ac_srcdir/configure.gnu"; then
1526 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1527 elif test -f "$ac_srcdir/configure"; then
1529 $SHELL "$ac_srcdir/configure" --help=recursive
1531 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1533 cd "$ac_pwd" || { ac_status=$?; break; }
1537 test -n "$ac_init_help" && exit $ac_status
1538 if $ac_init_version; then
1540 c-ares-test configure -
1541 generated by GNU Autoconf 2.69
1543 Copyright (C) 2012 Free Software Foundation, Inc.
1544 This configure script is free software; the Free Software Foundation
1545 gives unlimited permission to copy, distribute and modify it.
1550 ## ------------------------ ##
1551 ## Autoconf initialization. ##
1552 ## ------------------------ ##
1554 # ac_fn_cxx_try_compile LINENO
1555 # ----------------------------
1556 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1557 ac_fn_cxx_try_compile ()
1559 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1560 rm -f conftest.$ac_objext
1561 if { { ac_try="$ac_compile"
1563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1564 *) ac_try_echo=$ac_try;;
1566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1567 $as_echo "$ac_try_echo"; } >&5
1568 (eval "$ac_compile") 2>conftest.err
1570 if test -s conftest.err; then
1571 grep -v '^ *+' conftest.err >conftest.er1
1572 cat conftest.er1 >&5
1573 mv -f conftest.er1 conftest.err
1575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1576 test $ac_status = 0; } && {
1577 test -z "$ac_cxx_werror_flag" ||
1578 test ! -s conftest.err
1579 } && test -s conftest.$ac_objext; then :
1582 $as_echo "$as_me: failed program was:" >&5
1583 sed 's/^/| /' conftest.$ac_ext >&5
1587 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1588 as_fn_set_status $ac_retval
1590 } # ac_fn_cxx_try_compile
1592 # ac_fn_c_try_compile LINENO
1593 # --------------------------
1594 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1595 ac_fn_c_try_compile ()
1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598 rm -f conftest.$ac_objext
1599 if { { ac_try="$ac_compile"
1601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1602 *) ac_try_echo=$ac_try;;
1604 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605 $as_echo "$ac_try_echo"; } >&5
1606 (eval "$ac_compile") 2>conftest.err
1608 if test -s conftest.err; then
1609 grep -v '^ *+' conftest.err >conftest.er1
1610 cat conftest.er1 >&5
1611 mv -f conftest.er1 conftest.err
1613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614 test $ac_status = 0; } && {
1615 test -z "$ac_c_werror_flag" ||
1616 test ! -s conftest.err
1617 } && test -s conftest.$ac_objext; then :
1620 $as_echo "$as_me: failed program was:" >&5
1621 sed 's/^/| /' conftest.$ac_ext >&5
1625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1626 as_fn_set_status $ac_retval
1628 } # ac_fn_c_try_compile
1630 # ac_fn_c_try_link LINENO
1631 # -----------------------
1632 # Try to link conftest.$ac_ext, and return whether this succeeded.
1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636 rm -f conftest.$ac_objext conftest$ac_exeext
1637 if { { ac_try="$ac_link"
1639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1640 *) ac_try_echo=$ac_try;;
1642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643 $as_echo "$ac_try_echo"; } >&5
1644 (eval "$ac_link") 2>conftest.err
1646 if test -s conftest.err; then
1647 grep -v '^ *+' conftest.err >conftest.er1
1648 cat conftest.er1 >&5
1649 mv -f conftest.er1 conftest.err
1651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1652 test $ac_status = 0; } && {
1653 test -z "$ac_c_werror_flag" ||
1654 test ! -s conftest.err
1655 } && test -s conftest$ac_exeext && {
1656 test "$cross_compiling" = yes ||
1657 test -x conftest$ac_exeext
1661 $as_echo "$as_me: failed program was:" >&5
1662 sed 's/^/| /' conftest.$ac_ext >&5
1666 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1667 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1668 # interfere with the next link command; also delete a directory that is
1669 # left behind by Apple's compiler. We do this before executing the actions.
1670 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672 as_fn_set_status $ac_retval
1674 } # ac_fn_c_try_link
1676 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1677 # -------------------------------------------------------
1678 # Tests whether HEADER exists and can be compiled using the include files in
1679 # INCLUDES, setting the cache variable VAR accordingly.
1680 ac_fn_c_check_header_compile ()
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1684 $as_echo_n "checking for $2... " >&6; }
1685 if eval \${$3+:} false; then :
1686 $as_echo_n "(cached) " >&6
1688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1689 /* end confdefs.h. */
1693 if ac_fn_c_try_compile "$LINENO"; then :
1698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1702 $as_echo "$ac_res" >&6; }
1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705 } # ac_fn_c_check_header_compile
1707 # ac_fn_c_try_cpp LINENO
1708 # ----------------------
1709 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 if { { ac_try="$ac_cpp conftest.$ac_ext"
1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716 *) ac_try_echo=$ac_try;;
1718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719 $as_echo "$ac_try_echo"; } >&5
1720 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1722 if test -s conftest.err; then
1723 grep -v '^ *+' conftest.err >conftest.er1
1724 cat conftest.er1 >&5
1725 mv -f conftest.er1 conftest.err
1727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728 test $ac_status = 0; } > conftest.i && {
1729 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1730 test ! -s conftest.err
1734 $as_echo "$as_me: failed program was:" >&5
1735 sed 's/^/| /' conftest.$ac_ext >&5
1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740 as_fn_set_status $ac_retval
1744 # ac_fn_c_try_run LINENO
1745 # ----------------------
1746 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1747 # that executables *can* be run.
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 if { { ac_try="$ac_link"
1753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754 *) ac_try_echo=$ac_try;;
1756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757 $as_echo "$ac_try_echo"; } >&5
1758 (eval "$ac_link") 2>&5
1760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1762 { { case "(($ac_try" in
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 $as_echo "$ac_try_echo"; } >&5
1768 (eval "$ac_try") 2>&5
1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771 test $ac_status = 0; }; }; then :
1774 $as_echo "$as_me: program exited with status $ac_status" >&5
1775 $as_echo "$as_me: failed program was:" >&5
1776 sed 's/^/| /' conftest.$ac_ext >&5
1778 ac_retval=$ac_status
1780 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782 as_fn_set_status $ac_retval
1786 # ac_fn_c_check_func LINENO FUNC VAR
1787 # ----------------------------------
1788 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1789 ac_fn_c_check_func ()
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1793 $as_echo_n "checking for $2... " >&6; }
1794 if eval \${$3+:} false; then :
1795 $as_echo_n "(cached) " >&6
1797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798 /* end confdefs.h. */
1799 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1801 #define $2 innocuous_$2
1803 /* System header to define __stub macros and hopefully few prototypes,
1804 which can conflict with char $2 (); below.
1805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1806 <limits.h> exists even on freestanding compilers. */
1809 # include <limits.h>
1811 # include <assert.h>
1816 /* Override any GCC internal prototype to avoid an error.
1817 Use char because int might match the return type of a GCC
1818 builtin and then its argument prototype would still apply. */
1823 /* The GNU C library defines this for functions which it implements
1824 to always fail with ENOSYS. Some functions are actually named
1825 something starting with __ and the normal name is an alias. */
1826 #if defined __stub_$2 || defined __stub___$2
1838 if ac_fn_c_try_link "$LINENO"; then :
1843 rm -f core conftest.err conftest.$ac_objext \
1844 conftest$ac_exeext conftest.$ac_ext
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1848 $as_echo "$ac_res" >&6; }
1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1851 } # ac_fn_c_check_func
1853 # ac_fn_cxx_try_cpp LINENO
1854 # ------------------------
1855 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1856 ac_fn_cxx_try_cpp ()
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 if { { ac_try="$ac_cpp conftest.$ac_ext"
1861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1862 *) ac_try_echo=$ac_try;;
1864 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1865 $as_echo "$ac_try_echo"; } >&5
1866 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1868 if test -s conftest.err; then
1869 grep -v '^ *+' conftest.err >conftest.er1
1870 cat conftest.er1 >&5
1871 mv -f conftest.er1 conftest.err
1873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1874 test $ac_status = 0; } > conftest.i && {
1875 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1876 test ! -s conftest.err
1880 $as_echo "$as_me: failed program was:" >&5
1881 sed 's/^/| /' conftest.$ac_ext >&5
1885 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1886 as_fn_set_status $ac_retval
1888 } # ac_fn_cxx_try_cpp
1890 # ac_fn_cxx_try_link LINENO
1891 # -------------------------
1892 # Try to link conftest.$ac_ext, and return whether this succeeded.
1893 ac_fn_cxx_try_link ()
1895 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1896 rm -f conftest.$ac_objext conftest$ac_exeext
1897 if { { ac_try="$ac_link"
1899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1900 *) ac_try_echo=$ac_try;;
1902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1903 $as_echo "$ac_try_echo"; } >&5
1904 (eval "$ac_link") 2>conftest.err
1906 if test -s conftest.err; then
1907 grep -v '^ *+' conftest.err >conftest.er1
1908 cat conftest.er1 >&5
1909 mv -f conftest.er1 conftest.err
1911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912 test $ac_status = 0; } && {
1913 test -z "$ac_cxx_werror_flag" ||
1914 test ! -s conftest.err
1915 } && test -s conftest$ac_exeext && {
1916 test "$cross_compiling" = yes ||
1917 test -x conftest$ac_exeext
1921 $as_echo "$as_me: failed program was:" >&5
1922 sed 's/^/| /' conftest.$ac_ext >&5
1926 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1927 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1928 # interfere with the next link command; also delete a directory that is
1929 # left behind by Apple's compiler. We do this before executing the actions.
1930 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1931 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1932 as_fn_set_status $ac_retval
1934 } # ac_fn_cxx_try_link
1936 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1937 # -------------------------------------------------------
1938 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1939 # the include files in INCLUDES and setting the cache variable VAR
1941 ac_fn_c_check_header_mongrel ()
1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944 if eval \${$3+:} false; then :
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1946 $as_echo_n "checking for $2... " >&6; }
1947 if eval \${$3+:} false; then :
1948 $as_echo_n "(cached) " >&6
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1952 $as_echo "$ac_res" >&6; }
1954 # Is the header compilable?
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1956 $as_echo_n "checking $2 usability... " >&6; }
1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h. */
1962 if ac_fn_c_try_compile "$LINENO"; then :
1963 ac_header_compiler=yes
1965 ac_header_compiler=no
1967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1969 $as_echo "$ac_header_compiler" >&6; }
1971 # Is the header present?
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1973 $as_echo_n "checking $2 presence... " >&6; }
1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h. */
1978 if ac_fn_c_try_cpp "$LINENO"; then :
1979 ac_header_preproc=yes
1981 ac_header_preproc=no
1983 rm -f conftest.err conftest.i conftest.$ac_ext
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1985 $as_echo "$ac_header_preproc" >&6; }
1987 # So? What about this header?
1988 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1991 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1993 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1997 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1999 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2001 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2003 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2005 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2006 ( $as_echo "## ---------------- ##
2007 ## Report this to - ##
2008 ## ---------------- ##"
2009 ) | sed "s/^/$as_me: WARNING: /" >&2
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2013 $as_echo_n "checking for $2... " >&6; }
2014 if eval \${$3+:} false; then :
2015 $as_echo_n "(cached) " >&6
2017 eval "$3=\$ac_header_compiler"
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2021 $as_echo "$ac_res" >&6; }
2023 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2025 } # ac_fn_c_check_header_mongrel
2026 cat >config.log <<_ACEOF
2027 This file contains any messages produced by compilers while
2028 running configure, to aid debugging if configure makes a mistake.
2030 It was created by c-ares-test $as_me -, which was
2031 generated by GNU Autoconf 2.69. Invocation command line was
2043 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2044 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2045 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2046 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2047 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2049 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2050 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2052 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2053 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2054 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2055 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2056 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2057 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2058 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2066 test -z "$as_dir" && as_dir=.
2067 $as_echo "PATH: $as_dir"
2083 # Keep a trace of the command line.
2084 # Strip out --no-create and --no-recursion so they do not pile up.
2085 # Strip out --silent because we don't want to record it for future runs.
2086 # Also quote any args containing shell meta-characters.
2087 # Make two passes to allow for proper duplicate-argument suppression.
2091 ac_must_keep_next=false
2097 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2098 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2099 | -silent | --silent | --silen | --sile | --sil)
2102 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2105 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2107 as_fn_append ac_configure_args1 " '$ac_arg'"
2108 if test $ac_must_keep_next = true; then
2109 ac_must_keep_next=false # Got value, back to normal.
2112 *=* | --config-cache | -C | -disable-* | --disable-* \
2113 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2114 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2115 | -with-* | --with-* | -without-* | --without-* | --x)
2116 case "$ac_configure_args0 " in
2117 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2120 -* ) ac_must_keep_next=true ;;
2123 as_fn_append ac_configure_args " '$ac_arg'"
2128 { ac_configure_args0=; unset ac_configure_args0;}
2129 { ac_configure_args1=; unset ac_configure_args1;}
2131 # When interrupted or exit'd, cleanup temporary files, and complete
2132 # config.log. We remove comments because anyway the quotes in there
2133 # would cause problems or look ugly.
2134 # WARNING: Use '\'' to represent an apostrophe within the trap.
2135 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2136 trap 'exit_status=$?
2137 # Save into config.log some information that might help in debugging.
2141 $as_echo "## ---------------- ##
2142 ## Cache variables. ##
2143 ## ---------------- ##"
2145 # The following way of writing the cache mishandles newlines in values,
2147 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2148 eval ac_val=\$$ac_var
2152 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2153 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2156 _ | IFS | as_nl) ;; #(
2157 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2158 *) { eval $ac_var=; unset $ac_var;} ;;
2163 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2164 *${as_nl}ac_space=\ *)
2166 "s/'\''/'\''\\\\'\'''\''/g;
2167 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2170 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2177 $as_echo "## ----------------- ##
2178 ## Output variables. ##
2179 ## ----------------- ##"
2181 for ac_var in $ac_subst_vars
2183 eval ac_val=\$$ac_var
2185 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2187 $as_echo "$ac_var='\''$ac_val'\''"
2191 if test -n "$ac_subst_files"; then
2192 $as_echo "## ------------------- ##
2193 ## File substitutions. ##
2194 ## ------------------- ##"
2196 for ac_var in $ac_subst_files
2198 eval ac_val=\$$ac_var
2200 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2202 $as_echo "$ac_var='\''$ac_val'\''"
2207 if test -s confdefs.h; then
2208 $as_echo "## ----------- ##
2215 test "$ac_signal" != 0 &&
2216 $as_echo "$as_me: caught signal $ac_signal"
2217 $as_echo "$as_me: exit $exit_status"
2219 rm -f core *.core core.conftest.* &&
2220 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2223 for ac_signal in 1 2 13 15; do
2224 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2228 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2229 rm -f -r conftest* confdefs.h
2231 $as_echo "/* confdefs.h */" > confdefs.h
2233 # Predefined preprocessor variables.
2235 cat >>confdefs.h <<_ACEOF
2236 #define PACKAGE_NAME "$PACKAGE_NAME"
2239 cat >>confdefs.h <<_ACEOF
2240 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2243 cat >>confdefs.h <<_ACEOF
2244 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2247 cat >>confdefs.h <<_ACEOF
2248 #define PACKAGE_STRING "$PACKAGE_STRING"
2251 cat >>confdefs.h <<_ACEOF
2252 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2255 cat >>confdefs.h <<_ACEOF
2256 #define PACKAGE_URL "$PACKAGE_URL"
2260 # Let the site file select an alternate cache file if it wants to.
2261 # Prefer an explicitly selected file to automatically selected ones.
2264 if test -n "$CONFIG_SITE"; then
2265 # We do not want a PATH search for config.site.
2266 case $CONFIG_SITE in #((
2267 -*) ac_site_file1=./$CONFIG_SITE;;
2268 */*) ac_site_file1=$CONFIG_SITE;;
2269 *) ac_site_file1=./$CONFIG_SITE;;
2271 elif test "x$prefix" != xNONE; then
2272 ac_site_file1=$prefix/share/config.site
2273 ac_site_file2=$prefix/etc/config.site
2275 ac_site_file1=$ac_default_prefix/share/config.site
2276 ac_site_file2=$ac_default_prefix/etc/config.site
2278 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2280 test "x$ac_site_file" = xNONE && continue
2281 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2283 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2284 sed 's/^/| /' "$ac_site_file" >&5
2286 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2288 as_fn_error $? "failed to load site script $ac_site_file
2289 See \`config.log' for more details" "$LINENO" 5; }
2293 if test -r "$cache_file"; then
2294 # Some versions of bash will fail to source /dev/null (special files
2295 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2296 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2298 $as_echo "$as_me: loading cache $cache_file" >&6;}
2300 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2301 *) . "./$cache_file";;
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2306 $as_echo "$as_me: creating cache $cache_file" >&6;}
2310 # Check that the precious variables saved in the cache have kept the same
2312 ac_cache_corrupted=false
2313 for ac_var in $ac_precious_vars; do
2314 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2315 eval ac_new_set=\$ac_env_${ac_var}_set
2316 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2317 eval ac_new_val=\$ac_env_${ac_var}_value
2318 case $ac_old_set,$ac_new_set in
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2321 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2322 ac_cache_corrupted=: ;;
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2325 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2326 ac_cache_corrupted=: ;;
2329 if test "x$ac_old_val" != "x$ac_new_val"; then
2330 # differences in whitespace do not lead to failure.
2331 ac_old_val_w=`echo x $ac_old_val`
2332 ac_new_val_w=`echo x $ac_new_val`
2333 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2335 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2336 ac_cache_corrupted=:
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2339 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2340 eval $ac_var=\$ac_old_val
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2343 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2345 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2348 # Pass precious variables to config.status.
2349 if test "$ac_new_set" = set; then
2351 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2352 *) ac_arg=$ac_var=$ac_new_val ;;
2354 case " $ac_configure_args " in
2355 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2356 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2360 if $ac_cache_corrupted; then
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2362 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2364 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2365 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2367 ## -------------------- ##
2368 ## Main body of script. ##
2369 ## -------------------- ##
2372 ac_cpp='$CPP $CPPFLAGS'
2373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2381 am__api_version='1.15'
2384 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2385 if test -f "$ac_dir/install-sh"; then
2387 ac_install_sh="$ac_aux_dir/install-sh -c"
2389 elif test -f "$ac_dir/install.sh"; then
2391 ac_install_sh="$ac_aux_dir/install.sh -c"
2393 elif test -f "$ac_dir/shtool"; then
2395 ac_install_sh="$ac_aux_dir/shtool install -c"
2399 if test -z "$ac_aux_dir"; then
2400 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2403 # These three variables are undocumented and unsupported,
2404 # and are intended to be withdrawn in a future Autoconf release.
2405 # They can cause serious problems if a builder's source tree is in a directory
2406 # whose full name contains unusual characters.
2407 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2408 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2409 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2412 # Find a good install program. We prefer a C program (faster),
2413 # so one script is as good as another. But avoid the broken or
2414 # incompatible versions:
2415 # SysV /etc/install, /usr/sbin/install
2416 # SunOS /usr/etc/install
2417 # IRIX /sbin/install
2419 # AmigaOS /C/install, which installs bootblocks on floppy discs
2420 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2421 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2422 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2423 # OS/2's system install, which has a completely different semantic
2424 # ./install, which can be erroneously created by make from ./install.sh.
2425 # Reject install programs that cannot install multiple files.
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2427 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2428 if test -z "$INSTALL"; then
2429 if ${ac_cv_path_install+:} false; then :
2430 $as_echo_n "(cached) " >&6
2432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436 test -z "$as_dir" && as_dir=.
2437 # Account for people who put trailing slashes in PATH elements.
2438 case $as_dir/ in #((
2439 ./ | .// | /[cC]/* | \
2440 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2441 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2444 # OSF1 and SCO ODT 3.0 have their own names for install.
2445 # Don't use installbsd from OSF since it installs stuff as root
2447 for ac_prog in ginstall scoinst install; do
2448 for ac_exec_ext in '' $ac_executable_extensions; do
2449 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2450 if test $ac_prog = install &&
2451 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2452 # AIX install. It has an incompatible calling convention.
2454 elif test $ac_prog = install &&
2455 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2456 # program-specific install script used by HP pwplus--don't use.
2459 rm -rf conftest.one conftest.two conftest.dir
2460 echo one > conftest.one
2461 echo two > conftest.two
2463 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2464 test -s conftest.one && test -s conftest.two &&
2465 test -s conftest.dir/conftest.one &&
2466 test -s conftest.dir/conftest.two
2468 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2481 rm -rf conftest.one conftest.two conftest.dir
2484 if test "${ac_cv_path_install+set}" = set; then
2485 INSTALL=$ac_cv_path_install
2487 # As a last resort, use the slow shell script. Don't cache a
2488 # value for INSTALL within a source directory, because that will
2489 # break other packages using the cache if that directory is
2490 # removed, or if the value is a relative name.
2491 INSTALL=$ac_install_sh
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2495 $as_echo "$INSTALL" >&6; }
2497 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2498 # It thinks the first close brace ends the variable substitution.
2499 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2501 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2503 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2506 $as_echo_n "checking whether build environment is sane... " >&6; }
2507 # Reject unsafe characters in $srcdir or the absolute working directory
2508 # name. Accept space and tab only in the latter.
2512 *[\\\"\#\$\&\'\`$am_lf]*)
2513 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2516 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2517 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2520 # Do 'set' in a subshell so we don't clobber the current shell's
2521 # arguments. Must try -L first in case configure is actually a
2522 # symlink; some systems play weird games with the mod time of symlinks
2523 # (eg FreeBSD returns the mod time of the symlink's containing
2527 for am_try in 1 2; do
2528 echo "timestamp, slept: $am_has_slept" > conftest.file
2529 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2530 if test "$*" = "X"; then
2532 set X `ls -t "$srcdir/configure" conftest.file`
2534 if test "$*" != "X $srcdir/configure conftest.file" \
2535 && test "$*" != "X conftest.file $srcdir/configure"; then
2537 # If neither matched, then we have a broken ls. This can happen
2538 # if, for instance, CONFIG_SHELL is bash and it inherits a
2539 # broken ls alias from the environment. This has actually
2540 # happened. Such a system could not be considered "sane".
2541 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2542 alias in your environment" "$LINENO" 5
2544 if test "$2" = conftest.file || test $am_try -eq 2; then
2551 test "$2" = conftest.file
2557 as_fn_error $? "newly created file is older than distributed files!
2558 Check your system clock" "$LINENO" 5
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2561 $as_echo "yes" >&6; }
2562 # If we didn't sleep, we still need to ensure time stamps of config.status and
2563 # generated files are strictly newer.
2565 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2572 test "$program_prefix" != NONE &&
2573 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2574 # Use a double $ so make ignores it.
2575 test "$program_suffix" != NONE &&
2576 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2577 # Double any \ or $.
2578 # By default was `s,x,x', remove it if useless.
2579 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2580 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2582 # Expand $ac_aux_dir to an absolute path.
2583 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2585 if test x"${MISSING+set}" != xset; then
2588 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2590 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2593 # Use eval to expand $SHELL
2594 if eval "$MISSING --is-lightweight"; then
2595 am_missing_run="$MISSING "
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2599 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2602 if test x"${install_sh+set}" != xset; then
2605 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2607 install_sh="\${SHELL} $am_aux_dir/install-sh"
2611 # Installed binaries are usually stripped using 'strip' when the user
2612 # run "make install-strip". However 'strip' might not be the right
2613 # tool to use in cross-compilation environments, therefore Automake
2614 # will honor the 'STRIP' environment variable to overrule this program.
2615 if test "$cross_compiling" != no; then
2616 if test -n "$ac_tool_prefix"; then
2617 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2618 set dummy ${ac_tool_prefix}strip; ac_word=$2
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2620 $as_echo_n "checking for $ac_word... " >&6; }
2621 if ${ac_cv_prog_STRIP+:} false; then :
2622 $as_echo_n "(cached) " >&6
2624 if test -n "$STRIP"; then
2625 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631 test -z "$as_dir" && as_dir=.
2632 for ac_exec_ext in '' $ac_executable_extensions; do
2633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2634 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2644 STRIP=$ac_cv_prog_STRIP
2645 if test -n "$STRIP"; then
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2647 $as_echo "$STRIP" >&6; }
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2650 $as_echo "no" >&6; }
2655 if test -z "$ac_cv_prog_STRIP"; then
2657 # Extract the first word of "strip", so it can be a program name with args.
2658 set dummy strip; ac_word=$2
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2660 $as_echo_n "checking for $ac_word... " >&6; }
2661 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2662 $as_echo_n "(cached) " >&6
2664 if test -n "$ac_ct_STRIP"; then
2665 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671 test -z "$as_dir" && as_dir=.
2672 for ac_exec_ext in '' $ac_executable_extensions; do
2673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2674 ac_cv_prog_ac_ct_STRIP="strip"
2675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2684 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2685 if test -n "$ac_ct_STRIP"; then
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2687 $as_echo "$ac_ct_STRIP" >&6; }
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2690 $as_echo "no" >&6; }
2693 if test "x$ac_ct_STRIP" = x; then
2696 case $cross_compiling:$ac_tool_warned in
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2699 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2700 ac_tool_warned=yes ;;
2705 STRIP="$ac_cv_prog_STRIP"
2709 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2712 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2713 if test -z "$MKDIR_P"; then
2714 if ${ac_cv_path_mkdir+:} false; then :
2715 $as_echo_n "(cached) " >&6
2717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2721 test -z "$as_dir" && as_dir=.
2722 for ac_prog in mkdir gmkdir; do
2723 for ac_exec_ext in '' $ac_executable_extensions; do
2724 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2725 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2726 'mkdir (GNU coreutils) '* | \
2727 'mkdir (coreutils) '* | \
2728 'mkdir (fileutils) '4.1*)
2729 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2739 test -d ./--version && rmdir ./--version
2740 if test "${ac_cv_path_mkdir+set}" = set; then
2741 MKDIR_P="$ac_cv_path_mkdir -p"
2743 # As a last resort, use the slow shell script. Don't cache a
2744 # value for MKDIR_P within a source directory, because that will
2745 # break other packages using the cache if that directory is
2746 # removed, or if the value is a relative name.
2747 MKDIR_P="$ac_install_sh -d"
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2751 $as_echo "$MKDIR_P" >&6; }
2753 for ac_prog in gawk mawk nawk awk
2755 # Extract the first word of "$ac_prog", so it can be a program name with args.
2756 set dummy $ac_prog; ac_word=$2
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2758 $as_echo_n "checking for $ac_word... " >&6; }
2759 if ${ac_cv_prog_AWK+:} false; then :
2760 $as_echo_n "(cached) " >&6
2762 if test -n "$AWK"; then
2763 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2769 test -z "$as_dir" && as_dir=.
2770 for ac_exec_ext in '' $ac_executable_extensions; do
2771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2772 ac_cv_prog_AWK="$ac_prog"
2773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2783 if test -n "$AWK"; then
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2785 $as_echo "$AWK" >&6; }
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2788 $as_echo "no" >&6; }
2792 test -n "$AWK" && break
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2796 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2798 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2799 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2800 $as_echo_n "(cached) " >&6
2802 cat >conftest.make <<\_ACEOF
2805 @echo '@@@%%%=$(MAKE)=@@@%%%'
2807 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2808 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2810 eval ac_cv_prog_make_${ac_make}_set=yes;;
2812 eval ac_cv_prog_make_${ac_make}_set=no;;
2816 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2818 $as_echo "yes" >&6; }
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2822 $as_echo "no" >&6; }
2823 SET_MAKE="MAKE=${MAKE-make}"
2826 rm -rf .tst 2>/dev/null
2827 mkdir .tst 2>/dev/null
2828 if test -d .tst; then
2833 rmdir .tst 2>/dev/null
2835 # Check whether --enable-silent-rules was given.
2836 if test "${enable_silent_rules+set}" = set; then :
2837 enableval=$enable_silent_rules;
2840 case $enable_silent_rules in # (((
2841 yes) AM_DEFAULT_VERBOSITY=0;;
2842 no) AM_DEFAULT_VERBOSITY=1;;
2843 *) AM_DEFAULT_VERBOSITY=1;;
2845 am_make=${MAKE-make}
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2847 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2848 if ${am_cv_make_support_nested_variables+:} false; then :
2849 $as_echo_n "(cached) " >&6
2851 if $as_echo 'TRUE=$(BAR$(V))
2857 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2858 am_cv_make_support_nested_variables=yes
2860 am_cv_make_support_nested_variables=no
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2864 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2865 if test $am_cv_make_support_nested_variables = yes; then
2867 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2869 AM_V=$AM_DEFAULT_VERBOSITY
2870 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2874 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2875 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2876 # is not polluted with repeated "-I."
2877 am__isrc=' -I$(srcdir)'
2878 # test to see if srcdir already configured
2879 if test -f $srcdir/config.status; then
2880 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2884 # test whether we have cygpath
2885 if test -z "$CYGPATH_W"; then
2886 if (cygpath --version) >/dev/null 2>/dev/null; then
2887 CYGPATH_W='cygpath -w'
2894 # Define the identity of the package.
2895 PACKAGE='c-ares-test'
2899 # Some tools Automake needs.
2901 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2904 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2907 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2910 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2913 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2915 # For better backward compatibility. To be removed once Automake 1.9.x
2916 # dies out for good. For more background, see:
2917 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2918 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2919 mkdir_p='$(MKDIR_P)'
2921 # We need awk for the "check" target (and possibly the TAP driver). The
2922 # system "awk" is bad on some platforms.
2923 # Always define AMTAR for backward compatibility. Yes, it's still used
2924 # in the wild :-( We should find a proper way to deprecate it ...
2928 # We'll loop over all known methods to create a tar archive until one works.
2929 _am_tools='gnutar pax cpio none'
2931 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2938 # POSIX will say in a future version that running "rm -f" with no argument
2939 # is OK; and we want to be able to make that assumption in our Makefile
2940 # recipes. So use an aggressive probe to check that the usage we want is
2941 # actually supported "in the wild" to an acceptable degree.
2942 # See automake bug#10828.
2943 # To make any issue more visible, cause the running configure to be aborted
2944 # by default if the 'rm' program in use doesn't match our expectations; the
2945 # user can still override this though.
2946 if rm -f && rm -fr && rm -rf; then : OK; else
2950 Your 'rm' program seems unable to run without file operands specified
2951 on the command line, even when the '-f' option is present. This is contrary
2952 to the behaviour of most rm programs out there, and not conforming with
2953 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2955 Please tell bug-automake@gnu.org about your system, including the value
2956 of your $PATH and any error possibly output before this message. This
2957 can help us improve future automake versions.
2960 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2961 echo 'Configuration will proceed anyway, since you have set the' >&2
2962 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2966 Aborting the configuration process, to ensure you take notice of the issue.
2968 You can download and install GNU coreutils to get an 'rm' implementation
2969 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2971 If you want to complete the configuration process using your problematic
2972 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2973 to "yes", and re-run configure.
2976 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2980 # Check whether --enable-silent-rules was given.
2981 if test "${enable_silent_rules+set}" = set; then :
2982 enableval=$enable_silent_rules;
2985 case $enable_silent_rules in # (((
2986 yes) AM_DEFAULT_VERBOSITY=0;;
2987 no) AM_DEFAULT_VERBOSITY=1;;
2988 *) AM_DEFAULT_VERBOSITY=0;;
2990 am_make=${MAKE-make}
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2992 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2993 if ${am_cv_make_support_nested_variables+:} false; then :
2994 $as_echo_n "(cached) " >&6
2996 if $as_echo 'TRUE=$(BAR$(V))
3002 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3003 am_cv_make_support_nested_variables=yes
3005 am_cv_make_support_nested_variables=no
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3009 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3010 if test $am_cv_make_support_nested_variables = yes; then
3012 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3014 AM_V=$AM_DEFAULT_VERBOSITY
3015 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3021 ac_cpp='$CXXCPP $CPPFLAGS'
3022 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3023 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3024 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3025 if test -z "$CXX"; then
3026 if test -n "$CCC"; then
3029 if test -n "$ac_tool_prefix"; then
3030 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3032 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3033 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3035 $as_echo_n "checking for $ac_word... " >&6; }
3036 if ${ac_cv_prog_CXX+:} false; then :
3037 $as_echo_n "(cached) " >&6
3039 if test -n "$CXX"; then
3040 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046 test -z "$as_dir" && as_dir=.
3047 for ac_exec_ext in '' $ac_executable_extensions; do
3048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3049 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3060 if test -n "$CXX"; then
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3062 $as_echo "$CXX" >&6; }
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3065 $as_echo "no" >&6; }
3069 test -n "$CXX" && break
3072 if test -z "$CXX"; then
3074 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3076 # Extract the first word of "$ac_prog", so it can be a program name with args.
3077 set dummy $ac_prog; ac_word=$2
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3079 $as_echo_n "checking for $ac_word... " >&6; }
3080 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3081 $as_echo_n "(cached) " >&6
3083 if test -n "$ac_ct_CXX"; then
3084 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090 test -z "$as_dir" && as_dir=.
3091 for ac_exec_ext in '' $ac_executable_extensions; do
3092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3093 ac_cv_prog_ac_ct_CXX="$ac_prog"
3094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3103 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3104 if test -n "$ac_ct_CXX"; then
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3106 $as_echo "$ac_ct_CXX" >&6; }
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3109 $as_echo "no" >&6; }
3113 test -n "$ac_ct_CXX" && break
3116 if test "x$ac_ct_CXX" = x; then
3119 case $cross_compiling:$ac_tool_warned in
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3122 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3123 ac_tool_warned=yes ;;
3131 # Provide some information about the compiler.
3132 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3135 for ac_option in --version -v -V -qversion; do
3136 { { ac_try="$ac_compiler $ac_option >&5"
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3141 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3142 $as_echo "$ac_try_echo"; } >&5
3143 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3145 if test -s conftest.err; then
3147 ... rest of stderr output deleted ...
3148 10q' conftest.err >conftest.er1
3149 cat conftest.er1 >&5
3151 rm -f conftest.er1 conftest.err
3152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3153 test $ac_status = 0; }
3156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3157 /* end confdefs.h. */
3167 ac_clean_files_save=$ac_clean_files
3168 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3169 # Try to create an executable without -o first, disregard a.out.
3170 # It will help us diagnose broken compilers, and finding out an intuition
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3173 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3174 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3176 # The possible output files:
3177 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3180 for ac_file in $ac_files
3183 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3184 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3189 if { { ac_try="$ac_link_default"
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3195 $as_echo "$ac_try_echo"; } >&5
3196 (eval "$ac_link_default") 2>&5
3198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3199 test $ac_status = 0; }; then :
3200 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3201 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3202 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3203 # so that the user can short-circuit this test for compilers unknown to
3205 for ac_file in $ac_files ''
3207 test -f "$ac_file" || continue
3209 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3212 # We found the default executable, but exeext='' is most
3216 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3218 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3220 # We set ac_cv_exeext here because the later test for it is not
3221 # safe: cross compilers may not add the suffix if given an `-o'
3222 # argument, so we may need to know it at that point already.
3223 # Even if this section looks crufty: it has the advantage of
3230 test "$ac_cv_exeext" = no && ac_cv_exeext=
3235 if test -z "$ac_file"; then :
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237 $as_echo "no" >&6; }
3238 $as_echo "$as_me: failed program was:" >&5
3239 sed 's/^/| /' conftest.$ac_ext >&5
3241 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3243 as_fn_error 77 "C++ compiler cannot create executables
3244 See \`config.log' for more details" "$LINENO" 5; }
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3247 $as_echo "yes" >&6; }
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3250 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3252 $as_echo "$ac_file" >&6; }
3253 ac_exeext=$ac_cv_exeext
3255 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3256 ac_clean_files=$ac_clean_files_save
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3258 $as_echo_n "checking for suffix of executables... " >&6; }
3259 if { { ac_try="$ac_link"
3261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262 *) ac_try_echo=$ac_try;;
3264 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3265 $as_echo "$ac_try_echo"; } >&5
3266 (eval "$ac_link") 2>&5
3268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3269 test $ac_status = 0; }; then :
3270 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3271 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3272 # work properly (i.e., refer to `conftest.exe'), while it won't with
3274 for ac_file in conftest.exe conftest conftest.*; do
3275 test -f "$ac_file" || continue
3277 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3278 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3284 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3286 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3287 See \`config.log' for more details" "$LINENO" 5; }
3289 rm -f conftest conftest$ac_cv_exeext
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3291 $as_echo "$ac_cv_exeext" >&6; }
3293 rm -f conftest.$ac_ext
3294 EXEEXT=$ac_cv_exeext
3296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3297 /* end confdefs.h. */
3302 FILE *f = fopen ("conftest.out", "w");
3303 return ferror (f) || fclose (f) != 0;
3309 ac_clean_files="$ac_clean_files conftest.out"
3310 # Check that the compiler produces executables we can run. If not, either
3311 # the compiler is broken, or we cross compile.
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3313 $as_echo_n "checking whether we are cross compiling... " >&6; }
3314 if test "$cross_compiling" != yes; then
3315 { { ac_try="$ac_link"
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3320 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3321 $as_echo "$ac_try_echo"; } >&5
3322 (eval "$ac_link") 2>&5
3324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3325 test $ac_status = 0; }
3326 if { ac_try='./conftest$ac_cv_exeext'
3327 { { case "(($ac_try" in
3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329 *) ac_try_echo=$ac_try;;
3331 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3332 $as_echo "$ac_try_echo"; } >&5
3333 (eval "$ac_try") 2>&5
3335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3336 test $ac_status = 0; }; }; then
3339 if test "$cross_compiling" = maybe; then
3342 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3343 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3344 as_fn_error $? "cannot run C++ compiled programs.
3345 If you meant to cross compile, use \`--host'.
3346 See \`config.log' for more details" "$LINENO" 5; }
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3351 $as_echo "$cross_compiling" >&6; }
3353 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3354 ac_clean_files=$ac_clean_files_save
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3356 $as_echo_n "checking for suffix of object files... " >&6; }
3357 if ${ac_cv_objext+:} false; then :
3358 $as_echo_n "(cached) " >&6
3360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3361 /* end confdefs.h. */
3371 rm -f conftest.o conftest.obj
3372 if { { ac_try="$ac_compile"
3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375 *) ac_try_echo=$ac_try;;
3377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3378 $as_echo "$ac_try_echo"; } >&5
3379 (eval "$ac_compile") 2>&5
3381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3382 test $ac_status = 0; }; then :
3383 for ac_file in conftest.o conftest.obj conftest.*; do
3384 test -f "$ac_file" || continue;
3386 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3387 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3392 $as_echo "$as_me: failed program was:" >&5
3393 sed 's/^/| /' conftest.$ac_ext >&5
3395 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3397 as_fn_error $? "cannot compute suffix of object files: cannot compile
3398 See \`config.log' for more details" "$LINENO" 5; }
3400 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3403 $as_echo "$ac_cv_objext" >&6; }
3404 OBJEXT=$ac_cv_objext
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3407 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3408 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3409 $as_echo_n "(cached) " >&6
3411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3412 /* end confdefs.h. */
3425 if ac_fn_cxx_try_compile "$LINENO"; then :
3430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3431 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3435 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3436 if test $ac_compiler_gnu = yes; then
3441 ac_test_CXXFLAGS=${CXXFLAGS+set}
3442 ac_save_CXXFLAGS=$CXXFLAGS
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3444 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3445 if ${ac_cv_prog_cxx_g+:} false; then :
3446 $as_echo_n "(cached) " >&6
3448 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3449 ac_cxx_werror_flag=yes
3452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3453 /* end confdefs.h. */
3463 if ac_fn_cxx_try_compile "$LINENO"; then :
3464 ac_cv_prog_cxx_g=yes
3467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468 /* end confdefs.h. */
3478 if ac_fn_cxx_try_compile "$LINENO"; then :
3481 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3484 /* end confdefs.h. */
3494 if ac_fn_cxx_try_compile "$LINENO"; then :
3495 ac_cv_prog_cxx_g=yes
3497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3502 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3505 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3506 if test "$ac_test_CXXFLAGS" = set; then
3507 CXXFLAGS=$ac_save_CXXFLAGS
3508 elif test $ac_cv_prog_cxx_g = yes; then
3509 if test "$GXX" = yes; then
3515 if test "$GXX" = yes; then
3522 ac_cpp='$CPP $CPPFLAGS'
3523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3526 DEPDIR="${am__leading_dot}deps"
3528 ac_config_commands="$ac_config_commands depfiles"
3531 am_make=${MAKE-make}
3532 cat > confinc << 'END'
3534 @echo this is the am__doit target
3537 # If we don't find an include directive, just comment out the code.
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3539 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3543 # First try GNU make style include.
3544 echo "include confinc" > confmf
3545 # Ignore all kinds of additional output from 'make'.
3546 case `$am_make -s -f confmf 2> /dev/null` in #(
3547 *the\ am__doit\ target*)
3553 # Now try BSD make style include.
3554 if test "$am__include" = "#"; then
3555 echo '.include "confinc"' > confmf
3556 case `$am_make -s -f confmf 2> /dev/null` in #(
3557 *the\ am__doit\ target*)
3558 am__include=.include
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3567 $as_echo "$_am_result" >&6; }
3568 rm -f confinc confmf
3570 # Check whether --enable-dependency-tracking was given.
3571 if test "${enable_dependency_tracking+set}" = set; then :
3572 enableval=$enable_dependency_tracking;
3575 if test "x$enable_dependency_tracking" != xno; then
3576 am_depcomp="$ac_aux_dir/depcomp"
3580 if test "x$enable_dependency_tracking" != xno; then
3590 depcc="$CXX" am_compiler_list=
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3593 $as_echo_n "checking dependency style of $depcc... " >&6; }
3594 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3595 $as_echo_n "(cached) " >&6
3597 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3598 # We make a subdir and do the tests there. Otherwise we can end up
3599 # making bogus files that we don't know about and never remove. For
3600 # instance it was reported that on HP-UX the gcc test will end up
3601 # making a dummy file named 'D' -- because '-MD' means "put the output
3605 # Copy depcomp to subdir because otherwise we won't find it if we're
3606 # using a relative directory.
3607 cp "$am_depcomp" conftest.dir
3609 # We will build objects and dependencies in a subdirectory because
3610 # it helps to detect inapplicable dependency modes. For instance
3611 # both Tru64's cc and ICC support -MD to output dependencies as a
3612 # side effect of compilation, but ICC will put the dependencies in
3613 # the current directory while Tru64 will put them in the object
3617 am_cv_CXX_dependencies_compiler_type=none
3618 if test "$am_compiler_list" = ""; then
3619 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3622 case " $depcc " in #(
3623 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3626 for depmode in $am_compiler_list; do
3627 # Setup a source with many dependencies, because some compilers
3628 # like to wrap large dependency lists on column 80 (with \), and
3629 # we should not choose a depcomp mode which is confused by this.
3631 # We need to recreate these files for each test, as the compiler may
3632 # overwrite some of them when testing with obscure command lines.
3633 # This happens at least with the AIX C compiler.
3635 for i in 1 2 3 4 5 6; do
3636 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3637 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3638 # Solaris 10 /bin/sh.
3639 echo '/* dummy */' > sub/conftst$i.h
3641 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3643 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3644 # mode. It turns out that the SunPro C++ compiler does not properly
3645 # handle '-M -o', and we need to detect this. Also, some Intel
3646 # versions had trouble with output in subdirs.
3647 am__obj=sub/conftest.${OBJEXT-o}
3648 am__minus_obj="-o $am__obj"
3651 # This depmode causes a compiler race in universal mode.
3652 test "$am__universal" = false || continue
3655 # After this tag, mechanisms are not by side-effect, so they'll
3656 # only be used when explicitly requested.
3657 if test "x$enable_dependency_tracking" = xyes; then
3663 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3664 # This compiler won't grok '-c -o', but also, the minuso test has
3665 # not run yet. These depmodes are late enough in the game, and
3666 # so weak that their functioning should not be impacted.
3667 am__obj=conftest.${OBJEXT-o}
3672 if depmode=$depmode \
3673 source=sub/conftest.c object=$am__obj \
3674 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3675 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3676 >/dev/null 2>conftest.err &&
3677 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3678 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3679 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3680 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3681 # icc doesn't choke on unknown options, it will just issue warnings
3682 # or remarks (even with -Werror). So we grep stderr for any message
3683 # that says an option was ignored or not supported.
3684 # When given -MP, icc 7.0 and 7.1 complain thusly:
3685 # icc: Command line warning: ignoring option '-M'; no argument required
3686 # The diagnosis changed in icc 8.0:
3687 # icc: Command line remark: option '-MP' not supported
3688 if (grep 'ignoring option' conftest.err ||
3689 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3690 am_cv_CXX_dependencies_compiler_type=$depmode
3699 am_cv_CXX_dependencies_compiler_type=none
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3704 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3705 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3708 test "x$enable_dependency_tracking" != xno \
3709 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3710 am__fastdepCXX_TRUE=
3711 am__fastdepCXX_FALSE='#'
3713 am__fastdepCXX_TRUE='#'
3714 am__fastdepCXX_FALSE=
3719 ax_cxx_compile_cxx11_required=true
3721 ac_cpp='$CXXCPP $CPPFLAGS'
3722 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3723 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3724 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
3727 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
3728 if ${ax_cv_cxx_compile_cxx11+:} false; then :
3729 $as_echo_n "(cached) " >&6
3731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732 /* end confdefs.h. */
3734 template <typename T>
3737 static_assert(sizeof(int) <= sizeof(T), "not big enough");
3743 struct Child : public Base {
3744 virtual void f() override {}
3747 typedef check<check<bool>> right_angle_brackets;
3752 typedef check<int> check_type;
3754 check_type&& cr = static_cast<check_type&&>(c);
3759 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
3760 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this
3761 namespace test_template_alias_sfinae {
3764 template<typename T>
3765 using member = typename T::member_type;
3767 template<typename T>
3770 template<typename T>
3771 void func(member<T>*) {}
3781 if ac_fn_cxx_try_compile "$LINENO"; then :
3782 ax_cv_cxx_compile_cxx11=yes
3784 ax_cv_cxx_compile_cxx11=no
3786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
3789 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
3790 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
3796 if test x$ac_success = xno; then
3797 for switch in -std=c++11 -std=c++0x; do
3798 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
3800 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
3801 if eval \${$cachevar+:} false; then :
3802 $as_echo_n "(cached) " >&6
3804 ac_save_CXXFLAGS="$CXXFLAGS"
3805 CXXFLAGS="$CXXFLAGS $switch"
3806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807 /* end confdefs.h. */
3809 template <typename T>
3812 static_assert(sizeof(int) <= sizeof(T), "not big enough");
3818 struct Child : public Base {
3819 virtual void f() override {}
3822 typedef check<check<bool>> right_angle_brackets;
3827 typedef check<int> check_type;
3829 check_type&& cr = static_cast<check_type&&>(c);
3834 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
3835 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this
3836 namespace test_template_alias_sfinae {
3839 template<typename T>
3840 using member = typename T::member_type;
3842 template<typename T>
3845 template<typename T>
3846 void func(member<T>*) {}
3856 if ac_fn_cxx_try_compile "$LINENO"; then :
3861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3862 CXXFLAGS="$ac_save_CXXFLAGS"
3864 eval ac_res=\$$cachevar
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3866 $as_echo "$ac_res" >&6; }
3867 if eval test x\$$cachevar = xyes; then
3868 CXXFLAGS="$CXXFLAGS $switch"
3875 ac_cpp='$CPP $CPPFLAGS'
3876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3880 if test x$ax_cxx_compile_cxx11_required = xtrue; then
3881 if test x$ac_success = xno; then
3882 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
3885 if test x$ac_success = xno; then
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
3888 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
3892 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3902 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3907 macro_version='2.4.6'
3908 macro_revision='2.4.6'
3922 ltmain=$ac_aux_dir/ltmain.sh
3924 # Make sure we can run config.sub.
3925 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3926 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3929 $as_echo_n "checking build system type... " >&6; }
3930 if ${ac_cv_build+:} false; then :
3931 $as_echo_n "(cached) " >&6
3933 ac_build_alias=$build_alias
3934 test "x$ac_build_alias" = x &&
3935 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3936 test "x$ac_build_alias" = x &&
3937 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3938 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3939 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3943 $as_echo "$ac_cv_build" >&6; }
3944 case $ac_cv_build in
3946 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3949 ac_save_IFS=$IFS; IFS='-'
3955 # Remember, the first character of IFS is used to create $*,
3956 # except with old shells:
3959 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3963 $as_echo_n "checking host system type... " >&6; }
3964 if ${ac_cv_host+:} false; then :
3965 $as_echo_n "(cached) " >&6
3967 if test "x$host_alias" = x; then
3968 ac_cv_host=$ac_cv_build
3970 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3971 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3976 $as_echo "$ac_cv_host" >&6; }
3979 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3982 ac_save_IFS=$IFS; IFS='-'
3988 # Remember, the first character of IFS is used to create $*,
3989 # except with old shells:
3992 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3995 # Backslashify metacharacters that are still active within
3996 # double-quoted strings.
3997 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3999 # Same as above, but do not quote variable references.
4000 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4002 # Sed substitution to delay expansion of an escaped shell variable in a
4003 # double_quote_subst'ed string.
4004 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4006 # Sed substitution to delay expansion of an escaped single quote.
4007 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4009 # Sed substitution to avoid accidental globbing in evaled expressions
4010 no_glob_subst='s/\*/\\\*/g'
4012 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4013 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4014 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4017 $as_echo_n "checking how to print strings... " >&6; }
4018 # Test print first, because it will be a builtin if present.
4019 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4020 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4022 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4025 # Use this function as a fallback that always works.
4026 func_fallback_echo ()
4028 eval 'cat <<_LTECHO_EOF
4032 ECHO='func_fallback_echo'
4035 # func_echo_all arg...
4036 # Invoke $ECHO with all args, space-separated.
4043 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4044 $as_echo "printf" >&6; } ;;
4045 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4046 $as_echo "print -r" >&6; } ;;
4047 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4048 $as_echo "cat" >&6; } ;;
4065 ac_cpp='$CPP $CPPFLAGS'
4066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4069 if test -n "$ac_tool_prefix"; then
4070 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4071 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4073 $as_echo_n "checking for $ac_word... " >&6; }
4074 if ${ac_cv_prog_CC+:} false; then :
4075 $as_echo_n "(cached) " >&6
4077 if test -n "$CC"; then
4078 ac_cv_prog_CC="$CC" # Let the user override the test.
4080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4084 test -z "$as_dir" && as_dir=.
4085 for ac_exec_ext in '' $ac_executable_extensions; do
4086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4087 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4098 if test -n "$CC"; then
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4100 $as_echo "$CC" >&6; }
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4103 $as_echo "no" >&6; }
4108 if test -z "$ac_cv_prog_CC"; then
4110 # Extract the first word of "gcc", so it can be a program name with args.
4111 set dummy gcc; ac_word=$2
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4113 $as_echo_n "checking for $ac_word... " >&6; }
4114 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4115 $as_echo_n "(cached) " >&6
4117 if test -n "$ac_ct_CC"; then
4118 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4124 test -z "$as_dir" && as_dir=.
4125 for ac_exec_ext in '' $ac_executable_extensions; do
4126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4127 ac_cv_prog_ac_ct_CC="gcc"
4128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4137 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4138 if test -n "$ac_ct_CC"; then
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4140 $as_echo "$ac_ct_CC" >&6; }
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4143 $as_echo "no" >&6; }
4146 if test "x$ac_ct_CC" = x; then
4149 case $cross_compiling:$ac_tool_warned in
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4152 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4153 ac_tool_warned=yes ;;
4161 if test -z "$CC"; then
4162 if test -n "$ac_tool_prefix"; then
4163 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4164 set dummy ${ac_tool_prefix}cc; ac_word=$2
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4166 $as_echo_n "checking for $ac_word... " >&6; }
4167 if ${ac_cv_prog_CC+:} false; then :
4168 $as_echo_n "(cached) " >&6
4170 if test -n "$CC"; then
4171 ac_cv_prog_CC="$CC" # Let the user override the test.
4173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4177 test -z "$as_dir" && as_dir=.
4178 for ac_exec_ext in '' $ac_executable_extensions; do
4179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4180 ac_cv_prog_CC="${ac_tool_prefix}cc"
4181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4191 if test -n "$CC"; then
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4193 $as_echo "$CC" >&6; }
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4196 $as_echo "no" >&6; }
4202 if test -z "$CC"; then
4203 # Extract the first word of "cc", so it can be a program name with args.
4204 set dummy cc; ac_word=$2
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4206 $as_echo_n "checking for $ac_word... " >&6; }
4207 if ${ac_cv_prog_CC+:} false; then :
4208 $as_echo_n "(cached) " >&6
4210 if test -n "$CC"; then
4211 ac_cv_prog_CC="$CC" # Let the user override the test.
4214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4218 test -z "$as_dir" && as_dir=.
4219 for ac_exec_ext in '' $ac_executable_extensions; do
4220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4221 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4222 ac_prog_rejected=yes
4226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4233 if test $ac_prog_rejected = yes; then
4234 # We found a bogon in the path, so make sure we never use it.
4235 set dummy $ac_cv_prog_CC
4237 if test $# != 0; then
4238 # We chose a different compiler from the bogus one.
4239 # However, it has the same basename, so the bogon will be chosen
4240 # first if we set CC to just the basename; use the full file name.
4242 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4248 if test -n "$CC"; then
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4250 $as_echo "$CC" >&6; }
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4253 $as_echo "no" >&6; }
4258 if test -z "$CC"; then
4259 if test -n "$ac_tool_prefix"; then
4260 for ac_prog in cl.exe
4262 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4263 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4265 $as_echo_n "checking for $ac_word... " >&6; }
4266 if ${ac_cv_prog_CC+:} false; then :
4267 $as_echo_n "(cached) " >&6
4269 if test -n "$CC"; then
4270 ac_cv_prog_CC="$CC" # Let the user override the test.
4272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4276 test -z "$as_dir" && as_dir=.
4277 for ac_exec_ext in '' $ac_executable_extensions; do
4278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4279 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4290 if test -n "$CC"; then
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4292 $as_echo "$CC" >&6; }
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4295 $as_echo "no" >&6; }
4299 test -n "$CC" && break
4302 if test -z "$CC"; then
4304 for ac_prog in cl.exe
4306 # Extract the first word of "$ac_prog", so it can be a program name with args.
4307 set dummy $ac_prog; ac_word=$2
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4309 $as_echo_n "checking for $ac_word... " >&6; }
4310 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4311 $as_echo_n "(cached) " >&6
4313 if test -n "$ac_ct_CC"; then
4314 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320 test -z "$as_dir" && as_dir=.
4321 for ac_exec_ext in '' $ac_executable_extensions; do
4322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4323 ac_cv_prog_ac_ct_CC="$ac_prog"
4324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4333 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4334 if test -n "$ac_ct_CC"; then
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4336 $as_echo "$ac_ct_CC" >&6; }
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4339 $as_echo "no" >&6; }
4343 test -n "$ac_ct_CC" && break
4346 if test "x$ac_ct_CC" = x; then
4349 case $cross_compiling:$ac_tool_warned in
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4352 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4353 ac_tool_warned=yes ;;
4362 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4364 as_fn_error $? "no acceptable C compiler found in \$PATH
4365 See \`config.log' for more details" "$LINENO" 5; }
4367 # Provide some information about the compiler.
4368 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4371 for ac_option in --version -v -V -qversion; do
4372 { { ac_try="$ac_compiler $ac_option >&5"
4374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4375 *) ac_try_echo=$ac_try;;
4377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4378 $as_echo "$ac_try_echo"; } >&5
4379 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4381 if test -s conftest.err; then
4383 ... rest of stderr output deleted ...
4384 10q' conftest.err >conftest.er1
4385 cat conftest.er1 >&5
4387 rm -f conftest.er1 conftest.err
4388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4389 test $ac_status = 0; }
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4393 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4394 if ${ac_cv_c_compiler_gnu+:} false; then :
4395 $as_echo_n "(cached) " >&6
4397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4398 /* end confdefs.h. */
4411 if ac_fn_c_try_compile "$LINENO"; then :
4416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4417 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4421 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4422 if test $ac_compiler_gnu = yes; then
4427 ac_test_CFLAGS=${CFLAGS+set}
4428 ac_save_CFLAGS=$CFLAGS
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4430 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4431 if ${ac_cv_prog_cc_g+:} false; then :
4432 $as_echo_n "(cached) " >&6
4434 ac_save_c_werror_flag=$ac_c_werror_flag
4435 ac_c_werror_flag=yes
4438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4439 /* end confdefs.h. */
4449 if ac_fn_c_try_compile "$LINENO"; then :
4453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4454 /* end confdefs.h. */
4464 if ac_fn_c_try_compile "$LINENO"; then :
4467 ac_c_werror_flag=$ac_save_c_werror_flag
4469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4470 /* end confdefs.h. */
4480 if ac_fn_c_try_compile "$LINENO"; then :
4483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4488 ac_c_werror_flag=$ac_save_c_werror_flag
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4491 $as_echo "$ac_cv_prog_cc_g" >&6; }
4492 if test "$ac_test_CFLAGS" = set; then
4493 CFLAGS=$ac_save_CFLAGS
4494 elif test $ac_cv_prog_cc_g = yes; then
4495 if test "$GCC" = yes; then
4501 if test "$GCC" = yes; then
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4508 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4509 if ${ac_cv_prog_cc_c89+:} false; then :
4510 $as_echo_n "(cached) " >&6
4512 ac_cv_prog_cc_c89=no
4514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4515 /* end confdefs.h. */
4519 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4520 struct buf { int x; };
4521 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4522 static char *e (p, i)
4528 static char *f (char * (*g) (char **, int), char **p, ...)
4533 s = g (p, va_arg (v,int));
4538 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4539 function prototypes and stuff, but not '\xHH' hex character constants.
4540 These don't provoke an error unfortunately, instead are silently treated
4541 as 'x'. The following induces an error, until -std is added to get
4542 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4543 array size at least. It's necessary to write '\x00'==0 to get something
4544 that's true only with -std. */
4545 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4547 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4548 inside strings and character constants. */
4550 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4552 int test (int i, double x);
4553 struct s1 {int (*f) (int a);};
4554 struct s2 {int (*f) (double a);};
4555 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4561 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4566 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4567 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4569 CC="$ac_save_CC $ac_arg"
4570 if ac_fn_c_try_compile "$LINENO"; then :
4571 ac_cv_prog_cc_c89=$ac_arg
4573 rm -f core conftest.err conftest.$ac_objext
4574 test "x$ac_cv_prog_cc_c89" != "xno" && break
4576 rm -f conftest.$ac_ext
4581 case "x$ac_cv_prog_cc_c89" in
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4584 $as_echo "none needed" >&6; } ;;
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4587 $as_echo "unsupported" >&6; } ;;
4589 CC="$CC $ac_cv_prog_cc_c89"
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4591 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4593 if test "x$ac_cv_prog_cc_c89" != xno; then :
4598 ac_cpp='$CPP $CPPFLAGS'
4599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4604 ac_cpp='$CPP $CPPFLAGS'
4605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4609 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4610 if ${am_cv_prog_cc_c_o+:} false; then :
4611 $as_echo_n "(cached) " >&6
4613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4614 /* end confdefs.h. */
4624 # Make sure it works both with $CC and with simple cc.
4625 # Following AC_PROG_CC_C_O, we do the test twice because some
4626 # compilers refuse to overwrite an existing .o file with -o,
4627 # though they will create one.
4628 am_cv_prog_cc_c_o=yes
4630 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4631 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634 (exit $ac_status); } \
4635 && test -f conftest2.$ac_objext; then
4638 am_cv_prog_cc_c_o=no
4642 rm -f core conftest*
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4646 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4647 if test "$am_cv_prog_cc_c_o" != yes; then
4648 # Losing compiler, so override with the script.
4649 # FIXME: It is wrong to rewrite CC.
4650 # But if we don't then we get into trouble of one sort or another.
4651 # A longer-term fix would be to have automake use am__CC in this case,
4652 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4653 CC="$am_aux_dir/compile $CC"
4656 ac_cpp='$CPP $CPPFLAGS'
4657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4662 depcc="$CC" am_compiler_list=
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4665 $as_echo_n "checking dependency style of $depcc... " >&6; }
4666 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4667 $as_echo_n "(cached) " >&6
4669 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4670 # We make a subdir and do the tests there. Otherwise we can end up
4671 # making bogus files that we don't know about and never remove. For
4672 # instance it was reported that on HP-UX the gcc test will end up
4673 # making a dummy file named 'D' -- because '-MD' means "put the output
4677 # Copy depcomp to subdir because otherwise we won't find it if we're
4678 # using a relative directory.
4679 cp "$am_depcomp" conftest.dir
4681 # We will build objects and dependencies in a subdirectory because
4682 # it helps to detect inapplicable dependency modes. For instance
4683 # both Tru64's cc and ICC support -MD to output dependencies as a
4684 # side effect of compilation, but ICC will put the dependencies in
4685 # the current directory while Tru64 will put them in the object
4689 am_cv_CC_dependencies_compiler_type=none
4690 if test "$am_compiler_list" = ""; then
4691 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4694 case " $depcc " in #(
4695 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4698 for depmode in $am_compiler_list; do
4699 # Setup a source with many dependencies, because some compilers
4700 # like to wrap large dependency lists on column 80 (with \), and
4701 # we should not choose a depcomp mode which is confused by this.
4703 # We need to recreate these files for each test, as the compiler may
4704 # overwrite some of them when testing with obscure command lines.
4705 # This happens at least with the AIX C compiler.
4707 for i in 1 2 3 4 5 6; do
4708 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4709 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4710 # Solaris 10 /bin/sh.
4711 echo '/* dummy */' > sub/conftst$i.h
4713 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4715 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4716 # mode. It turns out that the SunPro C++ compiler does not properly
4717 # handle '-M -o', and we need to detect this. Also, some Intel
4718 # versions had trouble with output in subdirs.
4719 am__obj=sub/conftest.${OBJEXT-o}
4720 am__minus_obj="-o $am__obj"
4723 # This depmode causes a compiler race in universal mode.
4724 test "$am__universal" = false || continue
4727 # After this tag, mechanisms are not by side-effect, so they'll
4728 # only be used when explicitly requested.
4729 if test "x$enable_dependency_tracking" = xyes; then
4735 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4736 # This compiler won't grok '-c -o', but also, the minuso test has
4737 # not run yet. These depmodes are late enough in the game, and
4738 # so weak that their functioning should not be impacted.
4739 am__obj=conftest.${OBJEXT-o}
4744 if depmode=$depmode \
4745 source=sub/conftest.c object=$am__obj \
4746 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4747 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4748 >/dev/null 2>conftest.err &&
4749 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4750 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4751 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4752 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4753 # icc doesn't choke on unknown options, it will just issue warnings
4754 # or remarks (even with -Werror). So we grep stderr for any message
4755 # that says an option was ignored or not supported.
4756 # When given -MP, icc 7.0 and 7.1 complain thusly:
4757 # icc: Command line warning: ignoring option '-M'; no argument required
4758 # The diagnosis changed in icc 8.0:
4759 # icc: Command line remark: option '-MP' not supported
4760 if (grep 'ignoring option' conftest.err ||
4761 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4762 am_cv_CC_dependencies_compiler_type=$depmode
4771 am_cv_CC_dependencies_compiler_type=none
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4776 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4777 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4780 test "x$enable_dependency_tracking" != xno \
4781 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4783 am__fastdepCC_FALSE='#'
4785 am__fastdepCC_TRUE='#'
4786 am__fastdepCC_FALSE=
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4791 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4792 if ${ac_cv_path_SED+:} false; then :
4793 $as_echo_n "(cached) " >&6
4795 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4796 for ac_i in 1 2 3 4 5 6 7; do
4797 ac_script="$ac_script$as_nl$ac_script"
4799 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4800 { ac_script=; unset ac_script;}
4801 if test -z "$SED"; then
4802 ac_path_SED_found=false
4803 # Loop through the user's path and test for each of PROGNAME-LIST
4804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4808 test -z "$as_dir" && as_dir=.
4809 for ac_prog in sed gsed; do
4810 for ac_exec_ext in '' $ac_executable_extensions; do
4811 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4812 as_fn_executable_p "$ac_path_SED" || continue
4813 # Check for GNU ac_path_SED and select it if it is found.
4814 # Check for GNU $ac_path_SED
4815 case `"$ac_path_SED" --version 2>&1` in
4817 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4820 $as_echo_n 0123456789 >"conftest.in"
4823 cat "conftest.in" "conftest.in" >"conftest.tmp"
4824 mv "conftest.tmp" "conftest.in"
4825 cp "conftest.in" "conftest.nl"
4826 $as_echo '' >> "conftest.nl"
4827 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4828 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4829 as_fn_arith $ac_count + 1 && ac_count=$as_val
4830 if test $ac_count -gt ${ac_path_SED_max-0}; then
4831 # Best one so far, save it but keep looking for a better one
4832 ac_cv_path_SED="$ac_path_SED"
4833 ac_path_SED_max=$ac_count
4835 # 10*(2^10) chars as input seems more than enough
4836 test $ac_count -gt 10 && break
4838 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4841 $ac_path_SED_found && break 3
4846 if test -z "$ac_cv_path_SED"; then
4847 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4855 $as_echo "$ac_cv_path_SED" >&6; }
4856 SED="$ac_cv_path_SED"
4859 test -z "$SED" && SED=sed
4860 Xsed="$SED -e 1s/^X//"
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4873 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4874 if ${ac_cv_path_GREP+:} false; then :
4875 $as_echo_n "(cached) " >&6
4877 if test -z "$GREP"; then
4878 ac_path_GREP_found=false
4879 # Loop through the user's path and test for each of PROGNAME-LIST
4880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4884 test -z "$as_dir" && as_dir=.
4885 for ac_prog in grep ggrep; do
4886 for ac_exec_ext in '' $ac_executable_extensions; do
4887 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4888 as_fn_executable_p "$ac_path_GREP" || continue
4889 # Check for GNU ac_path_GREP and select it if it is found.
4890 # Check for GNU $ac_path_GREP
4891 case `"$ac_path_GREP" --version 2>&1` in
4893 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4896 $as_echo_n 0123456789 >"conftest.in"
4899 cat "conftest.in" "conftest.in" >"conftest.tmp"
4900 mv "conftest.tmp" "conftest.in"
4901 cp "conftest.in" "conftest.nl"
4902 $as_echo 'GREP' >> "conftest.nl"
4903 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4904 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4905 as_fn_arith $ac_count + 1 && ac_count=$as_val
4906 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4907 # Best one so far, save it but keep looking for a better one
4908 ac_cv_path_GREP="$ac_path_GREP"
4909 ac_path_GREP_max=$ac_count
4911 # 10*(2^10) chars as input seems more than enough
4912 test $ac_count -gt 10 && break
4914 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4917 $ac_path_GREP_found && break 3
4922 if test -z "$ac_cv_path_GREP"; then
4923 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4926 ac_cv_path_GREP=$GREP
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4931 $as_echo "$ac_cv_path_GREP" >&6; }
4932 GREP="$ac_cv_path_GREP"
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4936 $as_echo_n "checking for egrep... " >&6; }
4937 if ${ac_cv_path_EGREP+:} false; then :
4938 $as_echo_n "(cached) " >&6
4940 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4941 then ac_cv_path_EGREP="$GREP -E"
4943 if test -z "$EGREP"; then
4944 ac_path_EGREP_found=false
4945 # Loop through the user's path and test for each of PROGNAME-LIST
4946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4950 test -z "$as_dir" && as_dir=.
4951 for ac_prog in egrep; do
4952 for ac_exec_ext in '' $ac_executable_extensions; do
4953 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4954 as_fn_executable_p "$ac_path_EGREP" || continue
4955 # Check for GNU ac_path_EGREP and select it if it is found.
4956 # Check for GNU $ac_path_EGREP
4957 case `"$ac_path_EGREP" --version 2>&1` in
4959 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4962 $as_echo_n 0123456789 >"conftest.in"
4965 cat "conftest.in" "conftest.in" >"conftest.tmp"
4966 mv "conftest.tmp" "conftest.in"
4967 cp "conftest.in" "conftest.nl"
4968 $as_echo 'EGREP' >> "conftest.nl"
4969 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4970 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4971 as_fn_arith $ac_count + 1 && ac_count=$as_val
4972 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4973 # Best one so far, save it but keep looking for a better one
4974 ac_cv_path_EGREP="$ac_path_EGREP"
4975 ac_path_EGREP_max=$ac_count
4977 # 10*(2^10) chars as input seems more than enough
4978 test $ac_count -gt 10 && break
4980 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4983 $ac_path_EGREP_found && break 3
4988 if test -z "$ac_cv_path_EGREP"; then
4989 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4992 ac_cv_path_EGREP=$EGREP
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4998 $as_echo "$ac_cv_path_EGREP" >&6; }
4999 EGREP="$ac_cv_path_EGREP"
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5003 $as_echo_n "checking for fgrep... " >&6; }
5004 if ${ac_cv_path_FGREP+:} false; then :
5005 $as_echo_n "(cached) " >&6
5007 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5008 then ac_cv_path_FGREP="$GREP -F"
5010 if test -z "$FGREP"; then
5011 ac_path_FGREP_found=false
5012 # Loop through the user's path and test for each of PROGNAME-LIST
5013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5014 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5017 test -z "$as_dir" && as_dir=.
5018 for ac_prog in fgrep; do
5019 for ac_exec_ext in '' $ac_executable_extensions; do
5020 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5021 as_fn_executable_p "$ac_path_FGREP" || continue
5022 # Check for GNU ac_path_FGREP and select it if it is found.
5023 # Check for GNU $ac_path_FGREP
5024 case `"$ac_path_FGREP" --version 2>&1` in
5026 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5029 $as_echo_n 0123456789 >"conftest.in"
5032 cat "conftest.in" "conftest.in" >"conftest.tmp"
5033 mv "conftest.tmp" "conftest.in"
5034 cp "conftest.in" "conftest.nl"
5035 $as_echo 'FGREP' >> "conftest.nl"
5036 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5037 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5038 as_fn_arith $ac_count + 1 && ac_count=$as_val
5039 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5040 # Best one so far, save it but keep looking for a better one
5041 ac_cv_path_FGREP="$ac_path_FGREP"
5042 ac_path_FGREP_max=$ac_count
5044 # 10*(2^10) chars as input seems more than enough
5045 test $ac_count -gt 10 && break
5047 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5050 $ac_path_FGREP_found && break 3
5055 if test -z "$ac_cv_path_FGREP"; then
5056 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5059 ac_cv_path_FGREP=$FGREP
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5065 $as_echo "$ac_cv_path_FGREP" >&6; }
5066 FGREP="$ac_cv_path_FGREP"
5069 test -z "$GREP" && GREP=grep
5089 # Check whether --with-gnu-ld was given.
5090 if test "${with_gnu_ld+set}" = set; then :
5091 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5097 if test yes = "$GCC"; then
5098 # Check if gcc -print-prog-name=ld gives a path.
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5100 $as_echo_n "checking for ld used by $CC... " >&6; }
5103 # gcc leaves a trailing carriage return, which upsets mingw
5104 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5106 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5109 # Accept absolute paths.
5111 re_direlt='/[^/][^/]*/\.\./'
5112 # Canonicalize the pathname of ld
5113 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5114 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5115 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5117 test -z "$LD" && LD=$ac_prog
5120 # If it fails, then pretend we aren't using GCC.
5124 # If it is relative, then search for the first ld in PATH.
5128 elif test yes = "$with_gnu_ld"; then
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5130 $as_echo_n "checking for GNU ld... " >&6; }
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5133 $as_echo_n "checking for non-GNU ld... " >&6; }
5135 if ${lt_cv_path_LD+:} false; then :
5136 $as_echo_n "(cached) " >&6
5138 if test -z "$LD"; then
5139 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5140 for ac_dir in $PATH; do
5142 test -z "$ac_dir" && ac_dir=.
5143 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5144 lt_cv_path_LD=$ac_dir/$ac_prog
5145 # Check to see if the program is GNU ld. I'd rather use --version,
5146 # but apparently some variants of GNU ld only accept -v.
5147 # Break only if it was the GNU/non-GNU ld that we prefer.
5148 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5149 *GNU* | *'with BFD'*)
5150 test no != "$with_gnu_ld" && break
5153 test yes != "$with_gnu_ld" && break
5160 lt_cv_path_LD=$LD # Let the user override the test with a path.
5165 if test -n "$LD"; then
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5167 $as_echo "$LD" >&6; }
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5170 $as_echo "no" >&6; }
5172 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5174 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5175 if ${lt_cv_prog_gnu_ld+:} false; then :
5176 $as_echo_n "(cached) " >&6
5178 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5179 case `$LD -v 2>&1 </dev/null` in
5180 *GNU* | *'with BFD'*)
5181 lt_cv_prog_gnu_ld=yes
5184 lt_cv_prog_gnu_ld=no
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5189 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5190 with_gnu_ld=$lt_cv_prog_gnu_ld
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5201 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5202 if ${lt_cv_path_NM+:} false; then :
5203 $as_echo_n "(cached) " >&6
5205 if test -n "$NM"; then
5206 # Let the user override the test.
5209 lt_nm_to_check=${ac_tool_prefix}nm
5210 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5211 lt_nm_to_check="$lt_nm_to_check nm"
5213 for lt_tmp_nm in $lt_nm_to_check; do
5214 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5215 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5217 test -z "$ac_dir" && ac_dir=.
5218 tmp_nm=$ac_dir/$lt_tmp_nm
5219 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5220 # Check to see if the nm accepts a BSD-compat flag.
5221 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5222 # nm: unknown option "B" ignored
5223 # Tru64's nm complains that /dev/null is an invalid object file
5224 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5226 mingw*) lt_bad_file=conftest.nm/nofile ;;
5227 *) lt_bad_file=/dev/null ;;
5229 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5230 *$lt_bad_file* | *'Invalid file or object type'*)
5231 lt_cv_path_NM="$tmp_nm -B"
5235 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5237 lt_cv_path_NM="$tmp_nm -p"
5241 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5242 continue # so that we can try to find one that supports BSD flags
5251 : ${lt_cv_path_NM=no}
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5255 $as_echo "$lt_cv_path_NM" >&6; }
5256 if test no != "$lt_cv_path_NM"; then
5259 # Didn't find any BSD compatible name lister, look for dumpbin.
5260 if test -n "$DUMPBIN"; then :
5261 # Let the user override the test.
5263 if test -n "$ac_tool_prefix"; then
5264 for ac_prog in dumpbin "link -dump"
5266 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5267 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5269 $as_echo_n "checking for $ac_word... " >&6; }
5270 if ${ac_cv_prog_DUMPBIN+:} false; then :
5271 $as_echo_n "(cached) " >&6
5273 if test -n "$DUMPBIN"; then
5274 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5280 test -z "$as_dir" && as_dir=.
5281 for ac_exec_ext in '' $ac_executable_extensions; do
5282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5283 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5293 DUMPBIN=$ac_cv_prog_DUMPBIN
5294 if test -n "$DUMPBIN"; then
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5296 $as_echo "$DUMPBIN" >&6; }
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5299 $as_echo "no" >&6; }
5303 test -n "$DUMPBIN" && break
5306 if test -z "$DUMPBIN"; then
5307 ac_ct_DUMPBIN=$DUMPBIN
5308 for ac_prog in dumpbin "link -dump"
5310 # Extract the first word of "$ac_prog", so it can be a program name with args.
5311 set dummy $ac_prog; ac_word=$2
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5313 $as_echo_n "checking for $ac_word... " >&6; }
5314 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5315 $as_echo_n "(cached) " >&6
5317 if test -n "$ac_ct_DUMPBIN"; then
5318 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324 test -z "$as_dir" && as_dir=.
5325 for ac_exec_ext in '' $ac_executable_extensions; do
5326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5327 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5337 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5338 if test -n "$ac_ct_DUMPBIN"; then
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5340 $as_echo "$ac_ct_DUMPBIN" >&6; }
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5343 $as_echo "no" >&6; }
5347 test -n "$ac_ct_DUMPBIN" && break
5350 if test "x$ac_ct_DUMPBIN" = x; then
5353 case $cross_compiling:$ac_tool_warned in
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5357 ac_tool_warned=yes ;;
5359 DUMPBIN=$ac_ct_DUMPBIN
5363 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5365 DUMPBIN="$DUMPBIN -symbols -headers"
5373 if test : != "$DUMPBIN"; then
5377 test -z "$NM" && NM=nm
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5385 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5386 if ${lt_cv_nm_interface+:} false; then :
5387 $as_echo_n "(cached) " >&6
5389 lt_cv_nm_interface="BSD nm"
5390 echo "int some_variable = 0;" > conftest.$ac_ext
5391 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5392 (eval "$ac_compile" 2>conftest.err)
5393 cat conftest.err >&5
5394 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5395 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5396 cat conftest.err >&5
5397 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5398 cat conftest.out >&5
5399 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5400 lt_cv_nm_interface="MS dumpbin"
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5405 $as_echo "$lt_cv_nm_interface" >&6; }
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5408 $as_echo_n "checking whether ln -s works... " >&6; }
5410 if test "$LN_S" = "ln -s"; then
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5412 $as_echo "yes" >&6; }
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5415 $as_echo "no, using $LN_S" >&6; }
5418 # find the maximum length of command line arguments
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5420 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5421 if ${lt_cv_sys_max_cmd_len+:} false; then :
5422 $as_echo_n "(cached) " >&6
5429 # On DJGPP, this test can blow up pretty badly due to problems in libc
5430 # (any single argument exceeding 2000 bytes causes a buffer overrun
5431 # during glob expansion). Even if it were fixed, the result of this
5432 # check would be larger than it should be.
5433 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5437 # Under GNU Hurd, this test is not required because there is
5438 # no limit to the length of command line arguments.
5439 # Libtool will interpret -1 as no limit whatsoever
5440 lt_cv_sys_max_cmd_len=-1;
5443 cygwin* | mingw* | cegcc*)
5444 # On Win9x/ME, this test blows up -- it succeeds, but takes
5445 # about 5 minutes as the teststring grows exponentially.
5446 # Worse, since 9x/ME are not pre-emptively multitasking,
5447 # you end up with a "frozen" computer, even though with patience
5448 # the test eventually succeeds (with a max line length of 256k).
5449 # Instead, let's just punt: use the minimum linelength reported by
5450 # all of the supported platforms: 8192 (on NT/2K/XP).
5451 lt_cv_sys_max_cmd_len=8192;
5455 # On MiNT this can take a long time and run out of memory.
5456 lt_cv_sys_max_cmd_len=8192;
5460 # On AmigaOS with pdksh, this test takes hours, literally.
5461 # So we just punt and use a minimum line length of 8192.
5462 lt_cv_sys_max_cmd_len=8192;
5465 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5466 # This has been around since 386BSD, at least. Likely further.
5467 if test -x /sbin/sysctl; then
5468 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5469 elif test -x /usr/sbin/sysctl; then
5470 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5472 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5474 # And add a safety zone
5475 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5476 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5480 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5481 lt_cv_sys_max_cmd_len=196608
5485 # The test takes a long time on OS/2.
5486 lt_cv_sys_max_cmd_len=8192
5490 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5491 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5492 # nice to cause kernel panics so lets avoid the loop below.
5493 # First set a reasonable default.
5494 lt_cv_sys_max_cmd_len=16384
5496 if test -x /sbin/sysconfig; then
5497 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5498 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5503 lt_cv_sys_max_cmd_len=102400
5505 sysv5* | sco5v6* | sysv4.2uw2*)
5506 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5507 if test -n "$kargmax"; then
5508 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5510 lt_cv_sys_max_cmd_len=32768
5514 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5515 if test -n "$lt_cv_sys_max_cmd_len" && \
5516 test undefined != "$lt_cv_sys_max_cmd_len"; then
5517 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5518 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5520 # Make teststring a little bigger before we do anything with it.
5521 # a 1K string should be a reasonable start.
5522 for i in 1 2 3 4 5 6 7 8; do
5523 teststring=$teststring$teststring
5525 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5526 # If test is not a shell built-in, we'll probably end up computing a
5527 # maximum length that is only half of the actual maximum length, but
5529 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5530 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5531 test 17 != "$i" # 1/2 MB should be enough
5534 teststring=$teststring$teststring
5536 # Only check the string length outside the loop.
5537 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5539 # Add a significant safety factor because C++ compilers can tack on
5540 # massive amounts of additional arguments before passing them to the
5541 # linker. It appears as though 1/2 is a usable value.
5542 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5549 if test -n "$lt_cv_sys_max_cmd_len"; then
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5551 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5554 $as_echo "none" >&6; }
5556 max_cmd_len=$lt_cv_sys_max_cmd_len
5567 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5577 # test EBCDIC or ASCII
5578 case `echo X|tr X '\101'` in
5579 A) # ASCII based system
5580 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5581 lt_SP2NL='tr \040 \012'
5582 lt_NL2SP='tr \015\012 \040\040'
5584 *) # EBCDIC based system
5585 lt_SP2NL='tr \100 \n'
5586 lt_NL2SP='tr \r\n \100\100'
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5599 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5600 if ${lt_cv_to_host_file_cmd+:} false; then :
5601 $as_echo_n "(cached) " >&6
5606 *-*-mingw* ) # actually msys
5607 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5610 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5612 * ) # otherwise, assume *nix
5613 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5619 *-*-mingw* ) # actually msys
5620 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5623 lt_cv_to_host_file_cmd=func_convert_file_noop
5625 * ) # otherwise, assume *nix
5626 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5630 * ) # unhandled hosts (and "normal" native builds)
5631 lt_cv_to_host_file_cmd=func_convert_file_noop
5637 to_host_file_cmd=$lt_cv_to_host_file_cmd
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5639 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5646 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5647 if ${lt_cv_to_tool_file_cmd+:} false; then :
5648 $as_echo_n "(cached) " >&6
5650 #assume ordinary cross tools, or native build.
5651 lt_cv_to_tool_file_cmd=func_convert_file_noop
5655 *-*-mingw* ) # actually msys
5656 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5664 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5666 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5673 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5674 if ${lt_cv_ld_reload_flag+:} false; then :
5675 $as_echo_n "(cached) " >&6
5677 lt_cv_ld_reload_flag='-r'
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5680 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5681 reload_flag=$lt_cv_ld_reload_flag
5682 case $reload_flag in
5684 *) reload_flag=" $reload_flag" ;;
5686 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5688 cygwin* | mingw* | pw32* | cegcc*)
5689 if test yes != "$GCC"; then
5694 if test yes = "$GCC"; then
5695 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5697 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5710 if test -n "$ac_tool_prefix"; then
5711 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5712 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5714 $as_echo_n "checking for $ac_word... " >&6; }
5715 if ${ac_cv_prog_OBJDUMP+:} false; then :
5716 $as_echo_n "(cached) " >&6
5718 if test -n "$OBJDUMP"; then
5719 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5725 test -z "$as_dir" && as_dir=.
5726 for ac_exec_ext in '' $ac_executable_extensions; do
5727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5728 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5738 OBJDUMP=$ac_cv_prog_OBJDUMP
5739 if test -n "$OBJDUMP"; then
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5741 $as_echo "$OBJDUMP" >&6; }
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5744 $as_echo "no" >&6; }
5749 if test -z "$ac_cv_prog_OBJDUMP"; then
5750 ac_ct_OBJDUMP=$OBJDUMP
5751 # Extract the first word of "objdump", so it can be a program name with args.
5752 set dummy objdump; ac_word=$2
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5754 $as_echo_n "checking for $ac_word... " >&6; }
5755 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5756 $as_echo_n "(cached) " >&6
5758 if test -n "$ac_ct_OBJDUMP"; then
5759 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5765 test -z "$as_dir" && as_dir=.
5766 for ac_exec_ext in '' $ac_executable_extensions; do
5767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5768 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5778 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5779 if test -n "$ac_ct_OBJDUMP"; then
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5781 $as_echo "$ac_ct_OBJDUMP" >&6; }
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5784 $as_echo "no" >&6; }
5787 if test "x$ac_ct_OBJDUMP" = x; then
5790 case $cross_compiling:$ac_tool_warned in
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5793 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5794 ac_tool_warned=yes ;;
5796 OBJDUMP=$ac_ct_OBJDUMP
5799 OBJDUMP="$ac_cv_prog_OBJDUMP"
5802 test -z "$OBJDUMP" && OBJDUMP=objdump
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5813 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5814 if ${lt_cv_deplibs_check_method+:} false; then :
5815 $as_echo_n "(cached) " >&6
5817 lt_cv_file_magic_cmd='$MAGIC_CMD'
5818 lt_cv_file_magic_test_file=
5819 lt_cv_deplibs_check_method='unknown'
5820 # Need to set the preceding variable on all platforms that support
5821 # interlibrary dependencies.
5822 # 'none' -- dependencies not supported.
5823 # 'unknown' -- same as none, but documents that we really don't know.
5824 # 'pass_all' -- all dependencies passed with no checks.
5825 # 'test_compile' -- check by making test program.
5826 # 'file_magic [[regex]]' -- check by looking for files in library path
5827 # that responds to the $file_magic_cmd with a given extended regex.
5828 # If you have 'file' or equivalent on your system and you're not sure
5829 # whether 'pass_all' will *always* work, you probably want this one.
5833 lt_cv_deplibs_check_method=pass_all
5837 lt_cv_deplibs_check_method=pass_all
5841 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5842 lt_cv_file_magic_cmd='/usr/bin/file -L'
5843 lt_cv_file_magic_test_file=/shlib/libc.so
5847 # func_win32_libid is a shell function defined in ltmain.sh
5848 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5849 lt_cv_file_magic_cmd='func_win32_libid'
5853 # Base MSYS/MinGW do not provide the 'file' command needed by
5854 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5855 # unless we find 'file', for example because we are cross-compiling.
5856 if ( file / ) >/dev/null 2>&1; then
5857 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5858 lt_cv_file_magic_cmd='func_win32_libid'
5860 # Keep this pattern in sync with the one in func_win32_libid.
5861 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5862 lt_cv_file_magic_cmd='$OBJDUMP -f'
5867 # use the weaker test based on 'objdump'. See mingw*.
5868 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5869 lt_cv_file_magic_cmd='$OBJDUMP -f'
5872 darwin* | rhapsody*)
5873 lt_cv_deplibs_check_method=pass_all
5876 freebsd* | dragonfly*)
5877 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5880 # Not sure whether the presence of OpenBSD here was a mistake.
5881 # Let's accept both of them until this is cleared up.
5882 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5883 lt_cv_file_magic_cmd=/usr/bin/file
5884 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5888 lt_cv_deplibs_check_method=pass_all
5893 lt_cv_deplibs_check_method=pass_all
5896 hpux10.20* | hpux11*)
5897 lt_cv_file_magic_cmd=/usr/bin/file
5900 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5901 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5904 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]'
5905 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5908 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5909 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5915 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5916 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5919 irix5* | irix6* | nonstopux*)
5921 *-32|*"-32 ") libmagic=32-bit;;
5922 *-n32|*"-n32 ") libmagic=N32;;
5923 *-64|*"-64 ") libmagic=64-bit;;
5924 *) libmagic=never-match;;
5926 lt_cv_deplibs_check_method=pass_all
5929 # This must be glibc/ELF.
5930 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5931 lt_cv_deplibs_check_method=pass_all
5934 netbsd* | netbsdelf*-gnu)
5935 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5936 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5938 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5943 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5944 lt_cv_file_magic_cmd=/usr/bin/file
5945 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5949 lt_cv_deplibs_check_method=pass_all
5953 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5954 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5956 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5960 osf3* | osf4* | osf5*)
5961 lt_cv_deplibs_check_method=pass_all
5965 lt_cv_deplibs_check_method=pass_all
5969 lt_cv_deplibs_check_method=pass_all
5972 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5973 lt_cv_deplibs_check_method=pass_all
5977 case $host_vendor in
5979 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]'
5980 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5983 lt_cv_deplibs_check_method=pass_all
5986 lt_cv_file_magic_cmd='/bin/file'
5987 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5990 lt_cv_file_magic_cmd='/bin/file'
5991 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5992 lt_cv_file_magic_test_file=/lib/libc.so
5995 lt_cv_deplibs_check_method=pass_all
5998 lt_cv_deplibs_check_method=pass_all
6004 lt_cv_deplibs_check_method=pass_all
6007 lt_cv_deplibs_check_method=pass_all
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6013 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6017 if test "$build" = "$host"; then
6020 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6023 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6029 file_magic_cmd=$lt_cv_file_magic_cmd
6030 deplibs_check_method=$lt_cv_deplibs_check_method
6031 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6054 if test -n "$ac_tool_prefix"; then
6055 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6056 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6058 $as_echo_n "checking for $ac_word... " >&6; }
6059 if ${ac_cv_prog_DLLTOOL+:} false; then :
6060 $as_echo_n "(cached) " >&6
6062 if test -n "$DLLTOOL"; then
6063 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6069 test -z "$as_dir" && as_dir=.
6070 for ac_exec_ext in '' $ac_executable_extensions; do
6071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6072 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6082 DLLTOOL=$ac_cv_prog_DLLTOOL
6083 if test -n "$DLLTOOL"; then
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6085 $as_echo "$DLLTOOL" >&6; }
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6088 $as_echo "no" >&6; }
6093 if test -z "$ac_cv_prog_DLLTOOL"; then
6094 ac_ct_DLLTOOL=$DLLTOOL
6095 # Extract the first word of "dlltool", so it can be a program name with args.
6096 set dummy dlltool; ac_word=$2
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6098 $as_echo_n "checking for $ac_word... " >&6; }
6099 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6100 $as_echo_n "(cached) " >&6
6102 if test -n "$ac_ct_DLLTOOL"; then
6103 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6109 test -z "$as_dir" && as_dir=.
6110 for ac_exec_ext in '' $ac_executable_extensions; do
6111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6112 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6122 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6123 if test -n "$ac_ct_DLLTOOL"; then
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6125 $as_echo "$ac_ct_DLLTOOL" >&6; }
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6128 $as_echo "no" >&6; }
6131 if test "x$ac_ct_DLLTOOL" = x; then
6134 case $cross_compiling:$ac_tool_warned in
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6138 ac_tool_warned=yes ;;
6140 DLLTOOL=$ac_ct_DLLTOOL
6143 DLLTOOL="$ac_cv_prog_DLLTOOL"
6146 test -z "$DLLTOOL" && DLLTOOL=dlltool
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6158 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6159 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6160 $as_echo_n "(cached) " >&6
6162 lt_cv_sharedlib_from_linklib_cmd='unknown'
6165 cygwin* | mingw* | pw32* | cegcc*)
6166 # two different shell functions defined in ltmain.sh;
6167 # decide which one to use based on capabilities of $DLLTOOL
6168 case `$DLLTOOL --help 2>&1` in
6169 *--identify-strict*)
6170 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6173 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6178 # fallback: assume linklib IS sharedlib
6179 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6185 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6186 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6187 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6196 if test -n "$ac_tool_prefix"; then
6199 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6200 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6202 $as_echo_n "checking for $ac_word... " >&6; }
6203 if ${ac_cv_prog_AR+:} false; then :
6204 $as_echo_n "(cached) " >&6
6206 if test -n "$AR"; then
6207 ac_cv_prog_AR="$AR" # Let the user override the test.
6209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6213 test -z "$as_dir" && as_dir=.
6214 for ac_exec_ext in '' $ac_executable_extensions; do
6215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6216 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6227 if test -n "$AR"; then
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6229 $as_echo "$AR" >&6; }
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6232 $as_echo "no" >&6; }
6236 test -n "$AR" && break
6239 if test -z "$AR"; then
6243 # Extract the first word of "$ac_prog", so it can be a program name with args.
6244 set dummy $ac_prog; ac_word=$2
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6246 $as_echo_n "checking for $ac_word... " >&6; }
6247 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6248 $as_echo_n "(cached) " >&6
6250 if test -n "$ac_ct_AR"; then
6251 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6257 test -z "$as_dir" && as_dir=.
6258 for ac_exec_ext in '' $ac_executable_extensions; do
6259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6260 ac_cv_prog_ac_ct_AR="$ac_prog"
6261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6270 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6271 if test -n "$ac_ct_AR"; then
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6273 $as_echo "$ac_ct_AR" >&6; }
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6276 $as_echo "no" >&6; }
6280 test -n "$ac_ct_AR" && break
6283 if test "x$ac_ct_AR" = x; then
6286 case $cross_compiling:$ac_tool_warned in
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6289 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6290 ac_tool_warned=yes ;;
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6310 $as_echo_n "checking for archiver @FILE support... " >&6; }
6311 if ${lt_cv_ar_at_file+:} false; then :
6312 $as_echo_n "(cached) " >&6
6315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6316 /* end confdefs.h. */
6326 if ac_fn_c_try_compile "$LINENO"; then :
6327 echo conftest.$ac_objext > conftest.lst
6328 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6329 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6330 (eval $lt_ar_try) 2>&5
6332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6333 test $ac_status = 0; }
6334 if test 0 -eq "$ac_status"; then
6335 # Ensure the archiver fails upon bogus file names.
6336 rm -f conftest.$ac_objext libconftest.a
6337 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6338 (eval $lt_ar_try) 2>&5
6340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6341 test $ac_status = 0; }
6342 if test 0 -ne "$ac_status"; then
6346 rm -f conftest.* libconftest.a
6349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6353 $as_echo "$lt_cv_ar_at_file" >&6; }
6355 if test no = "$lt_cv_ar_at_file"; then
6358 archiver_list_spec=$lt_cv_ar_at_file
6367 if test -n "$ac_tool_prefix"; then
6368 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6369 set dummy ${ac_tool_prefix}strip; ac_word=$2
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6371 $as_echo_n "checking for $ac_word... " >&6; }
6372 if ${ac_cv_prog_STRIP+:} false; then :
6373 $as_echo_n "(cached) " >&6
6375 if test -n "$STRIP"; then
6376 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6382 test -z "$as_dir" && as_dir=.
6383 for ac_exec_ext in '' $ac_executable_extensions; do
6384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6385 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6395 STRIP=$ac_cv_prog_STRIP
6396 if test -n "$STRIP"; then
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6398 $as_echo "$STRIP" >&6; }
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6401 $as_echo "no" >&6; }
6406 if test -z "$ac_cv_prog_STRIP"; then
6408 # Extract the first word of "strip", so it can be a program name with args.
6409 set dummy strip; ac_word=$2
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6411 $as_echo_n "checking for $ac_word... " >&6; }
6412 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6413 $as_echo_n "(cached) " >&6
6415 if test -n "$ac_ct_STRIP"; then
6416 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6422 test -z "$as_dir" && as_dir=.
6423 for ac_exec_ext in '' $ac_executable_extensions; do
6424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6425 ac_cv_prog_ac_ct_STRIP="strip"
6426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6435 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6436 if test -n "$ac_ct_STRIP"; then
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6438 $as_echo "$ac_ct_STRIP" >&6; }
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6441 $as_echo "no" >&6; }
6444 if test "x$ac_ct_STRIP" = x; then
6447 case $cross_compiling:$ac_tool_warned in
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6450 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6451 ac_tool_warned=yes ;;
6456 STRIP="$ac_cv_prog_STRIP"
6459 test -z "$STRIP" && STRIP=:
6466 if test -n "$ac_tool_prefix"; then
6467 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6468 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6470 $as_echo_n "checking for $ac_word... " >&6; }
6471 if ${ac_cv_prog_RANLIB+:} false; then :
6472 $as_echo_n "(cached) " >&6
6474 if test -n "$RANLIB"; then
6475 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6481 test -z "$as_dir" && as_dir=.
6482 for ac_exec_ext in '' $ac_executable_extensions; do
6483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6484 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6494 RANLIB=$ac_cv_prog_RANLIB
6495 if test -n "$RANLIB"; then
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6497 $as_echo "$RANLIB" >&6; }
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6500 $as_echo "no" >&6; }
6505 if test -z "$ac_cv_prog_RANLIB"; then
6506 ac_ct_RANLIB=$RANLIB
6507 # Extract the first word of "ranlib", so it can be a program name with args.
6508 set dummy ranlib; ac_word=$2
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6510 $as_echo_n "checking for $ac_word... " >&6; }
6511 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6512 $as_echo_n "(cached) " >&6
6514 if test -n "$ac_ct_RANLIB"; then
6515 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6521 test -z "$as_dir" && as_dir=.
6522 for ac_exec_ext in '' $ac_executable_extensions; do
6523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6524 ac_cv_prog_ac_ct_RANLIB="ranlib"
6525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6534 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6535 if test -n "$ac_ct_RANLIB"; then
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6537 $as_echo "$ac_ct_RANLIB" >&6; }
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6540 $as_echo "no" >&6; }
6543 if test "x$ac_ct_RANLIB" = x; then
6546 case $cross_compiling:$ac_tool_warned in
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6549 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6550 ac_tool_warned=yes ;;
6552 RANLIB=$ac_ct_RANLIB
6555 RANLIB="$ac_cv_prog_RANLIB"
6558 test -z "$RANLIB" && RANLIB=:
6565 # Determine commands to create old-style static archives.
6566 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6567 old_postinstall_cmds='chmod 644 $oldlib'
6568 old_postuninstall_cmds=
6570 if test -n "$RANLIB"; then
6573 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6576 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6579 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6584 lock_old_archive_extraction=yes ;;
6586 lock_old_archive_extraction=no ;;
6627 # If no C compiler was specified, use CC.
6630 # If no C compiler flags were specified, use CFLAGS.
6631 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6633 # Allow CC to be a program name with arguments.
6637 # Check for command to grab the raw symbol name followed by C symbol from nm.
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6639 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6640 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6641 $as_echo_n "(cached) " >&6
6644 # These are sane defaults that work on at least a few old systems.
6645 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6647 # Character class describing NM global symbol codes.
6648 symcode='[BCDEGRST]'
6650 # Regexp to match symbols that can be accessed directly from C.
6651 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6653 # Define system-specific variables.
6658 cygwin* | mingw* | pw32* | cegcc*)
6659 symcode='[ABCDGISTW]'
6662 if test ia64 = "$host_cpu"; then
6663 symcode='[ABCDEGRST]'
6667 symcode='[BCDEGRST]'
6670 symcode='[BCDEGQRST]'
6681 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6689 # If we're using GNU nm, then use its standard symbol codes.
6690 case `$NM -V 2>&1` in
6691 *GNU* | *'with BFD'*)
6692 symcode='[ABCDGIRSTW]' ;;
6695 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6696 # Gets list of data symbols to import.
6697 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6698 # Adjust the below global symbol transforms to fixup imported variables.
6699 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6700 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6701 lt_c_name_lib_hook="\
6702 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6703 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6705 # Disable hooks by default.
6706 lt_cv_sys_global_symbol_to_import=
6712 # Transform an extracted symbol line into a proper C declaration.
6713 # Some systems (esp. on ia64) link data and code symbols differently,
6714 # so use this general approach.
6715 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6717 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6718 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6720 # Transform an extracted symbol line into symbol name and symbol address
6721 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6723 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6724 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6726 # Transform an extracted symbol line into symbol name with lib prefix and
6728 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6729 $lt_c_name_lib_hook\
6730 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6731 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6732 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6734 # Handle CRLF in mingw tool chain
6738 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6742 # Try without a prefix underscore, then with it.
6743 for ac_symprfx in "" "_"; do
6745 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6746 symxfrm="\\1 $ac_symprfx\\2 \\2"
6748 # Write the raw and C identifiers.
6749 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6750 # Fake it for dumpbin and say T for any non-static function,
6751 # D for any global variable and I for any imported variable.
6752 # Also find C++ and __fastcall symbols from MSVC++,
6753 # which start with @ or ?.
6754 lt_cv_sys_global_symbol_pipe="$AWK '"\
6755 " {last_section=section; section=\$ 3};"\
6756 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6757 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6758 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6759 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6760 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6761 " \$ 0!~/External *\|/{next};"\
6762 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6763 " {if(hide[section]) next};"\
6764 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6765 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6766 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6767 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6768 " ' prfx=^$ac_symprfx"
6770 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6772 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6774 # Check to see that the pipe works correctly.
6778 cat > conftest.$ac_ext <<_LT_EOF
6783 void nm_test_func(void);
6784 void nm_test_func(void){}
6788 int main(){nm_test_var='a';nm_test_func();return(0);}
6791 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6792 (eval $ac_compile) 2>&5
6794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6795 test $ac_status = 0; }; then
6796 # Now try to grab the symbols.
6798 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6799 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6802 test $ac_status = 0; } && test -s "$nlist"; then
6803 # Try sorting and uniquifying the output.
6804 if sort "$nlist" | uniq > "$nlist"T; then
6805 mv -f "$nlist"T "$nlist"
6810 # Make sure that we snagged all the symbols we need.
6811 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6812 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6813 cat <<_LT_EOF > conftest.$ac_ext
6814 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6815 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6816 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6817 relocations are performed -- see ld's documentation on pseudo-relocs. */
6818 # define LT_DLSYM_CONST
6819 #elif defined __osf__
6820 /* This system does not cope well with relocations in const data. */
6821 # define LT_DLSYM_CONST
6823 # define LT_DLSYM_CONST const
6831 # Now generate the symbol file.
6832 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6834 cat <<_LT_EOF >> conftest.$ac_ext
6836 /* The mapping between symbol names and symbols. */
6837 LT_DLSYM_CONST struct {
6841 lt__PROGRAM__LTX_preloaded_symbols[] =
6843 { "@PROGRAM@", (void *) 0 },
6845 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6846 cat <<\_LT_EOF >> conftest.$ac_ext
6850 /* This works around a problem in FreeBSD linker */
6851 #ifdef FREEBSD_WORKAROUND
6852 static const void *lt_preloaded_setup() {
6853 return lt__PROGRAM__LTX_preloaded_symbols;
6861 # Now try linking the two files.
6862 mv -f conftest.$ac_objext conftstm.$ac_objext
6863 lt_globsym_save_LIBS=$LIBS
6864 lt_globsym_save_CFLAGS=$CFLAGS
6865 LIBS=conftstm.$ac_objext
6866 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6867 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6868 (eval $ac_link) 2>&5
6870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6871 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6874 LIBS=$lt_globsym_save_LIBS
6875 CFLAGS=$lt_globsym_save_CFLAGS
6877 echo "cannot find nm_test_func in $nlist" >&5
6880 echo "cannot find nm_test_var in $nlist" >&5
6883 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6886 echo "$progname: failed program was:" >&5
6887 cat conftest.$ac_ext >&5
6889 rm -rf conftest* conftst*
6891 # Do not use the global_symbol_pipe unless it works.
6892 if test yes = "$pipe_works"; then
6895 lt_cv_sys_global_symbol_pipe=
6901 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6902 lt_cv_sys_global_symbol_to_cdecl=
6904 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6906 $as_echo "failed" >&6; }
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6909 $as_echo "ok" >&6; }
6912 # Response file support.
6913 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6914 nm_file_list_spec='@'
6915 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6916 nm_file_list_spec='@'
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6956 $as_echo_n "checking for sysroot... " >&6; }
6958 # Check whether --with-sysroot was given.
6959 if test "${with_sysroot+set}" = set; then :
6960 withval=$with_sysroot;
6967 case $with_sysroot in #(
6969 if test yes = "$GCC"; then
6970 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6974 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6980 $as_echo "$with_sysroot" >&6; }
6981 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6986 $as_echo "${lt_sysroot:-no}" >&6; }
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6993 $as_echo_n "checking for a working dd... " >&6; }
6994 if ${ac_cv_path_lt_DD+:} false; then :
6995 $as_echo_n "(cached) " >&6
6997 printf 0123456789abcdef0123456789abcdef >conftest.i
6998 cat conftest.i conftest.i >conftest2.i
7000 if test -z "$lt_DD"; then
7001 ac_path_lt_DD_found=false
7002 # Loop through the user's path and test for each of PROGNAME-LIST
7003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7007 test -z "$as_dir" && as_dir=.
7008 for ac_prog in dd; do
7009 for ac_exec_ext in '' $ac_executable_extensions; do
7010 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7011 as_fn_executable_p "$ac_path_lt_DD" || continue
7012 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7013 cmp -s conftest.i conftest.out \
7014 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7016 $ac_path_lt_DD_found && break 3
7021 if test -z "$ac_cv_path_lt_DD"; then
7025 ac_cv_path_lt_DD=$lt_DD
7028 rm -f conftest.i conftest2.i conftest.out
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7031 $as_echo "$ac_cv_path_lt_DD" >&6; }
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7035 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7036 if ${lt_cv_truncate_bin+:} false; then :
7037 $as_echo_n "(cached) " >&6
7039 printf 0123456789abcdef0123456789abcdef >conftest.i
7040 cat conftest.i conftest.i >conftest2.i
7042 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7043 cmp -s conftest.i conftest.out \
7044 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7046 rm -f conftest.i conftest2.i conftest.out
7047 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7050 $as_echo "$lt_cv_truncate_bin" >&6; }
7058 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7061 for cc_temp in $*""; do
7063 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7064 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7069 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7072 # Check whether --enable-libtool-lock was given.
7073 if test "${enable_libtool_lock+set}" = set; then :
7074 enableval=$enable_libtool_lock;
7077 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7079 # Some flags need to be propagated to the compiler or linker for good
7083 # Find out what ABI is being produced by ac_compile, and set mode
7084 # options accordingly.
7085 echo 'int i;' > conftest.$ac_ext
7086 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7087 (eval $ac_compile) 2>&5
7089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7090 test $ac_status = 0; }; then
7091 case `/usr/bin/file conftest.$ac_objext` in
7103 # Find out what ABI is being produced by ac_compile, and set linker
7104 # options accordingly.
7105 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7106 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7107 (eval $ac_compile) 2>&5
7109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7110 test $ac_status = 0; }; then
7111 if test yes = "$lt_cv_prog_gnu_ld"; then
7112 case `/usr/bin/file conftest.$ac_objext` in
7114 LD="${LD-ld} -melf32bsmip"
7117 LD="${LD-ld} -melf32bmipn32"
7120 LD="${LD-ld} -melf64bmip"
7124 case `/usr/bin/file conftest.$ac_objext` in
7141 # Find out what ABI is being produced by ac_compile, and set linker
7142 # options accordingly.
7143 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7144 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7145 (eval $ac_compile) 2>&5
7147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7148 test $ac_status = 0; }; then
7150 case `/usr/bin/file conftest.$ac_objext` in
7158 case `/usr/bin/file conftest.$ac_objext` in
7160 emul="${emul}btsmip"
7163 emul="${emul}ltsmip"
7166 case `/usr/bin/file conftest.$ac_objext` in
7171 LD="${LD-ld} -m $emul"
7176 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7177 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7178 # Find out what ABI is being produced by ac_compile, and set linker
7179 # options accordingly. Note that the listed cases only cover the
7180 # situations where additional linker options are needed (such as when
7181 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7182 # vice versa); the common cases where no linker options are needed do
7183 # not appear in the list.
7184 echo 'int i;' > conftest.$ac_ext
7185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7186 (eval $ac_compile) 2>&5
7188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7189 test $ac_status = 0; }; then
7190 case `/usr/bin/file conftest.o` in
7193 x86_64-*kfreebsd*-gnu)
7194 LD="${LD-ld} -m elf_i386_fbsd"
7197 case `/usr/bin/file conftest.o` in
7199 LD="${LD-ld} -m elf32_x86_64"
7202 LD="${LD-ld} -m elf_i386"
7206 powerpc64le-*linux*)
7207 LD="${LD-ld} -m elf32lppclinux"
7210 LD="${LD-ld} -m elf32ppclinux"
7213 LD="${LD-ld} -m elf_s390"
7216 LD="${LD-ld} -m elf32_sparc"
7222 x86_64-*kfreebsd*-gnu)
7223 LD="${LD-ld} -m elf_x86_64_fbsd"
7226 LD="${LD-ld} -m elf_x86_64"
7229 LD="${LD-ld} -m elf64lppc"
7232 LD="${LD-ld} -m elf64ppc"
7234 s390*-*linux*|s390*-*tpf*)
7235 LD="${LD-ld} -m elf64_s390"
7238 LD="${LD-ld} -m elf64_sparc"
7248 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7250 CFLAGS="$CFLAGS -belf"
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7252 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7253 if ${lt_cv_cc_needs_belf+:} false; then :
7254 $as_echo_n "(cached) " >&6
7257 ac_cpp='$CPP $CPPFLAGS'
7258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7263 /* end confdefs.h. */
7273 if ac_fn_c_try_link "$LINENO"; then :
7274 lt_cv_cc_needs_belf=yes
7276 lt_cv_cc_needs_belf=no
7278 rm -f core conftest.err conftest.$ac_objext \
7279 conftest$ac_exeext conftest.$ac_ext
7281 ac_cpp='$CPP $CPPFLAGS'
7282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7288 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7289 if test yes != "$lt_cv_cc_needs_belf"; then
7290 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7295 # Find out what ABI is being produced by ac_compile, and set linker
7296 # options accordingly.
7297 echo 'int i;' > conftest.$ac_ext
7298 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7299 (eval $ac_compile) 2>&5
7301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7302 test $ac_status = 0; }; then
7303 case `/usr/bin/file conftest.o` in
7305 case $lt_cv_prog_gnu_ld in
7308 i?86-*-solaris*|x86_64-*-solaris*)
7309 LD="${LD-ld} -m elf_x86_64"
7312 LD="${LD-ld} -m elf64_sparc"
7315 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7316 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7321 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7333 need_locks=$enable_libtool_lock
7335 if test -n "$ac_tool_prefix"; then
7336 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7337 set dummy ${ac_tool_prefix}mt; ac_word=$2
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7339 $as_echo_n "checking for $ac_word... " >&6; }
7340 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7341 $as_echo_n "(cached) " >&6
7343 if test -n "$MANIFEST_TOOL"; then
7344 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7350 test -z "$as_dir" && as_dir=.
7351 for ac_exec_ext in '' $ac_executable_extensions; do
7352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7353 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7363 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7364 if test -n "$MANIFEST_TOOL"; then
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7366 $as_echo "$MANIFEST_TOOL" >&6; }
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7369 $as_echo "no" >&6; }
7374 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7375 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7376 # Extract the first word of "mt", so it can be a program name with args.
7377 set dummy mt; ac_word=$2
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7379 $as_echo_n "checking for $ac_word... " >&6; }
7380 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7381 $as_echo_n "(cached) " >&6
7383 if test -n "$ac_ct_MANIFEST_TOOL"; then
7384 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7390 test -z "$as_dir" && as_dir=.
7391 for ac_exec_ext in '' $ac_executable_extensions; do
7392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7393 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7403 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7404 if test -n "$ac_ct_MANIFEST_TOOL"; then
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7406 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7409 $as_echo "no" >&6; }
7412 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7415 case $cross_compiling:$ac_tool_warned in
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7418 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7419 ac_tool_warned=yes ;;
7421 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7424 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7427 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7429 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7430 if ${lt_cv_path_mainfest_tool+:} false; then :
7431 $as_echo_n "(cached) " >&6
7433 lt_cv_path_mainfest_tool=no
7434 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7435 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7436 cat conftest.err >&5
7437 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7438 lt_cv_path_mainfest_tool=yes
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7443 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7444 if test yes != "$lt_cv_path_mainfest_tool"; then
7454 rhapsody* | darwin*)
7455 if test -n "$ac_tool_prefix"; then
7456 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7457 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7459 $as_echo_n "checking for $ac_word... " >&6; }
7460 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7461 $as_echo_n "(cached) " >&6
7463 if test -n "$DSYMUTIL"; then
7464 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470 test -z "$as_dir" && as_dir=.
7471 for ac_exec_ext in '' $ac_executable_extensions; do
7472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7473 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7483 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7484 if test -n "$DSYMUTIL"; then
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7486 $as_echo "$DSYMUTIL" >&6; }
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7489 $as_echo "no" >&6; }
7494 if test -z "$ac_cv_prog_DSYMUTIL"; then
7495 ac_ct_DSYMUTIL=$DSYMUTIL
7496 # Extract the first word of "dsymutil", so it can be a program name with args.
7497 set dummy dsymutil; ac_word=$2
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7499 $as_echo_n "checking for $ac_word... " >&6; }
7500 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7501 $as_echo_n "(cached) " >&6
7503 if test -n "$ac_ct_DSYMUTIL"; then
7504 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7510 test -z "$as_dir" && as_dir=.
7511 for ac_exec_ext in '' $ac_executable_extensions; do
7512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7513 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7523 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7524 if test -n "$ac_ct_DSYMUTIL"; then
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7526 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7529 $as_echo "no" >&6; }
7532 if test "x$ac_ct_DSYMUTIL" = x; then
7535 case $cross_compiling:$ac_tool_warned in
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7539 ac_tool_warned=yes ;;
7541 DSYMUTIL=$ac_ct_DSYMUTIL
7544 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7547 if test -n "$ac_tool_prefix"; then
7548 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7549 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7551 $as_echo_n "checking for $ac_word... " >&6; }
7552 if ${ac_cv_prog_NMEDIT+:} false; then :
7553 $as_echo_n "(cached) " >&6
7555 if test -n "$NMEDIT"; then
7556 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7562 test -z "$as_dir" && as_dir=.
7563 for ac_exec_ext in '' $ac_executable_extensions; do
7564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7565 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7575 NMEDIT=$ac_cv_prog_NMEDIT
7576 if test -n "$NMEDIT"; then
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7578 $as_echo "$NMEDIT" >&6; }
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7581 $as_echo "no" >&6; }
7586 if test -z "$ac_cv_prog_NMEDIT"; then
7587 ac_ct_NMEDIT=$NMEDIT
7588 # Extract the first word of "nmedit", so it can be a program name with args.
7589 set dummy nmedit; ac_word=$2
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7591 $as_echo_n "checking for $ac_word... " >&6; }
7592 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7593 $as_echo_n "(cached) " >&6
7595 if test -n "$ac_ct_NMEDIT"; then
7596 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7602 test -z "$as_dir" && as_dir=.
7603 for ac_exec_ext in '' $ac_executable_extensions; do
7604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7605 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7615 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7616 if test -n "$ac_ct_NMEDIT"; then
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7618 $as_echo "$ac_ct_NMEDIT" >&6; }
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7621 $as_echo "no" >&6; }
7624 if test "x$ac_ct_NMEDIT" = x; then
7627 case $cross_compiling:$ac_tool_warned in
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7630 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7631 ac_tool_warned=yes ;;
7633 NMEDIT=$ac_ct_NMEDIT
7636 NMEDIT="$ac_cv_prog_NMEDIT"
7639 if test -n "$ac_tool_prefix"; then
7640 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7641 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7643 $as_echo_n "checking for $ac_word... " >&6; }
7644 if ${ac_cv_prog_LIPO+:} false; then :
7645 $as_echo_n "(cached) " >&6
7647 if test -n "$LIPO"; then
7648 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7654 test -z "$as_dir" && as_dir=.
7655 for ac_exec_ext in '' $ac_executable_extensions; do
7656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7657 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7667 LIPO=$ac_cv_prog_LIPO
7668 if test -n "$LIPO"; then
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7670 $as_echo "$LIPO" >&6; }
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7673 $as_echo "no" >&6; }
7678 if test -z "$ac_cv_prog_LIPO"; then
7680 # Extract the first word of "lipo", so it can be a program name with args.
7681 set dummy lipo; ac_word=$2
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7683 $as_echo_n "checking for $ac_word... " >&6; }
7684 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7685 $as_echo_n "(cached) " >&6
7687 if test -n "$ac_ct_LIPO"; then
7688 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7694 test -z "$as_dir" && as_dir=.
7695 for ac_exec_ext in '' $ac_executable_extensions; do
7696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7697 ac_cv_prog_ac_ct_LIPO="lipo"
7698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7707 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7708 if test -n "$ac_ct_LIPO"; then
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7710 $as_echo "$ac_ct_LIPO" >&6; }
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7713 $as_echo "no" >&6; }
7716 if test "x$ac_ct_LIPO" = x; then
7719 case $cross_compiling:$ac_tool_warned in
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7722 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7723 ac_tool_warned=yes ;;
7728 LIPO="$ac_cv_prog_LIPO"
7731 if test -n "$ac_tool_prefix"; then
7732 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7733 set dummy ${ac_tool_prefix}otool; ac_word=$2
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7735 $as_echo_n "checking for $ac_word... " >&6; }
7736 if ${ac_cv_prog_OTOOL+:} false; then :
7737 $as_echo_n "(cached) " >&6
7739 if test -n "$OTOOL"; then
7740 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7746 test -z "$as_dir" && as_dir=.
7747 for ac_exec_ext in '' $ac_executable_extensions; do
7748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7749 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7759 OTOOL=$ac_cv_prog_OTOOL
7760 if test -n "$OTOOL"; then
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7762 $as_echo "$OTOOL" >&6; }
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7765 $as_echo "no" >&6; }
7770 if test -z "$ac_cv_prog_OTOOL"; then
7772 # Extract the first word of "otool", so it can be a program name with args.
7773 set dummy otool; ac_word=$2
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7775 $as_echo_n "checking for $ac_word... " >&6; }
7776 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7777 $as_echo_n "(cached) " >&6
7779 if test -n "$ac_ct_OTOOL"; then
7780 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7786 test -z "$as_dir" && as_dir=.
7787 for ac_exec_ext in '' $ac_executable_extensions; do
7788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7789 ac_cv_prog_ac_ct_OTOOL="otool"
7790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7799 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7800 if test -n "$ac_ct_OTOOL"; then
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7802 $as_echo "$ac_ct_OTOOL" >&6; }
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7805 $as_echo "no" >&6; }
7808 if test "x$ac_ct_OTOOL" = x; then
7811 case $cross_compiling:$ac_tool_warned in
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7814 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7815 ac_tool_warned=yes ;;
7820 OTOOL="$ac_cv_prog_OTOOL"
7823 if test -n "$ac_tool_prefix"; then
7824 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7825 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7827 $as_echo_n "checking for $ac_word... " >&6; }
7828 if ${ac_cv_prog_OTOOL64+:} false; then :
7829 $as_echo_n "(cached) " >&6
7831 if test -n "$OTOOL64"; then
7832 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7838 test -z "$as_dir" && as_dir=.
7839 for ac_exec_ext in '' $ac_executable_extensions; do
7840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7841 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7851 OTOOL64=$ac_cv_prog_OTOOL64
7852 if test -n "$OTOOL64"; then
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7854 $as_echo "$OTOOL64" >&6; }
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7857 $as_echo "no" >&6; }
7862 if test -z "$ac_cv_prog_OTOOL64"; then
7863 ac_ct_OTOOL64=$OTOOL64
7864 # Extract the first word of "otool64", so it can be a program name with args.
7865 set dummy otool64; ac_word=$2
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7867 $as_echo_n "checking for $ac_word... " >&6; }
7868 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7869 $as_echo_n "(cached) " >&6
7871 if test -n "$ac_ct_OTOOL64"; then
7872 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7878 test -z "$as_dir" && as_dir=.
7879 for ac_exec_ext in '' $ac_executable_extensions; do
7880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7881 ac_cv_prog_ac_ct_OTOOL64="otool64"
7882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7891 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7892 if test -n "$ac_ct_OTOOL64"; then
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7894 $as_echo "$ac_ct_OTOOL64" >&6; }
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7897 $as_echo "no" >&6; }
7900 if test "x$ac_ct_OTOOL64" = x; then
7903 case $cross_compiling:$ac_tool_warned in
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7906 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7907 ac_tool_warned=yes ;;
7909 OTOOL64=$ac_ct_OTOOL64
7912 OTOOL64="$ac_cv_prog_OTOOL64"
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7942 $as_echo_n "checking for -single_module linker flag... " >&6; }
7943 if ${lt_cv_apple_cc_single_mod+:} false; then :
7944 $as_echo_n "(cached) " >&6
7946 lt_cv_apple_cc_single_mod=no
7947 if test -z "$LT_MULTI_MODULE"; then
7948 # By default we will add the -single_module flag. You can override
7949 # by either setting the environment variable LT_MULTI_MODULE
7950 # non-empty at configure time, or by adding -multi_module to the
7952 rm -rf libconftest.dylib*
7953 echo "int foo(void){return 1;}" > conftest.c
7954 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7955 -dynamiclib -Wl,-single_module conftest.c" >&5
7956 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7957 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7959 # If there is a non-empty error log, and "single_module"
7960 # appears in it, assume the flag caused a linker warning
7961 if test -s conftest.err && $GREP single_module conftest.err; then
7962 cat conftest.err >&5
7963 # Otherwise, if the output was created with a 0 exit code from
7964 # the compiler, it worked.
7965 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7966 lt_cv_apple_cc_single_mod=yes
7968 cat conftest.err >&5
7970 rm -rf libconftest.dylib*
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7975 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7978 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7979 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7980 $as_echo_n "(cached) " >&6
7982 lt_cv_ld_exported_symbols_list=no
7983 save_LDFLAGS=$LDFLAGS
7984 echo "_main" > conftest.sym
7985 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7987 /* end confdefs.h. */
7997 if ac_fn_c_try_link "$LINENO"; then :
7998 lt_cv_ld_exported_symbols_list=yes
8000 lt_cv_ld_exported_symbols_list=no
8002 rm -f core conftest.err conftest.$ac_objext \
8003 conftest$ac_exeext conftest.$ac_ext
8004 LDFLAGS=$save_LDFLAGS
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8008 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8011 $as_echo_n "checking for -force_load linker flag... " >&6; }
8012 if ${lt_cv_ld_force_load+:} false; then :
8013 $as_echo_n "(cached) " >&6
8015 lt_cv_ld_force_load=no
8016 cat > conftest.c << _LT_EOF
8017 int forced_loaded() { return 2;}
8019 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8020 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8021 echo "$AR cru libconftest.a conftest.o" >&5
8022 $AR cru libconftest.a conftest.o 2>&5
8023 echo "$RANLIB libconftest.a" >&5
8024 $RANLIB libconftest.a 2>&5
8025 cat > conftest.c << _LT_EOF
8026 int main() { return 0;}
8028 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8029 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8031 if test -s conftest.err && $GREP force_load conftest.err; then
8032 cat conftest.err >&5
8033 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8034 lt_cv_ld_force_load=yes
8036 cat conftest.err >&5
8038 rm -f conftest.err libconftest.a conftest conftest.c
8039 rm -rf conftest.dSYM
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8043 $as_echo "$lt_cv_ld_force_load" >&6; }
8045 rhapsody* | darwin1.[012])
8046 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8048 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8049 darwin*) # darwin 5.x on
8050 # if running on 10.5 or later, the deployment target defaults
8051 # to the OS version, if on x86, and 10.4, the deployment
8052 # target defaults to 10.4. Don't you love it?
8053 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8054 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8055 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8057 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8059 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8063 if test yes = "$lt_cv_apple_cc_single_mod"; then
8064 _lt_dar_single_mod='$single_module'
8066 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8067 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8069 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8071 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8072 _lt_dsymutil='~$DSYMUTIL $lib || :'
8079 # func_munge_path_list VARIABLE PATH
8080 # -----------------------------------
8081 # VARIABLE is name of variable containing _space_ separated list of
8082 # directories to be munged by the contents of PATH, which is string
8085 # string "DIR[ DIR]" will be prepended to VARIABLE
8087 # string "DIR[ DIR]" will be appended to VARIABLE
8088 # "DIRP[:DIRP]::[DIRA:]DIRA"
8089 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8090 # "DIRA[ DIRA]" will be appended to VARIABLE
8092 # VARIABLE will be replaced by "DIR[ DIR]"
8093 func_munge_path_list ()
8099 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8102 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8105 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8106 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8109 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8115 ac_cpp='$CPP $CPPFLAGS'
8116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8120 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8121 # On Suns, sometimes $CPP names a directory.
8122 if test -n "$CPP" && test -d "$CPP"; then
8125 if test -z "$CPP"; then
8126 if ${ac_cv_prog_CPP+:} false; then :
8127 $as_echo_n "(cached) " >&6
8129 # Double quotes because CPP needs to be expanded
8130 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8133 for ac_c_preproc_warn_flag in '' yes
8135 # Use a header file that comes with gcc, so configuring glibc
8136 # with a fresh cross-compiler works.
8137 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8138 # <limits.h> exists even on freestanding compilers.
8139 # On the NeXT, cc -E runs the code through the compiler's parser,
8140 # not just through cpp. "Syntax error" is here to catch this case.
8141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8142 /* end confdefs.h. */
8144 # include <limits.h>
8146 # include <assert.h>
8150 if ac_fn_c_try_cpp "$LINENO"; then :
8153 # Broken: fails on valid input.
8156 rm -f conftest.err conftest.i conftest.$ac_ext
8158 # OK, works on sane cases. Now check whether nonexistent headers
8159 # can be detected and how.
8160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8161 /* end confdefs.h. */
8162 #include <ac_nonexistent.h>
8164 if ac_fn_c_try_cpp "$LINENO"; then :
8165 # Broken: success on invalid input.
8168 # Passes both tests.
8172 rm -f conftest.err conftest.i conftest.$ac_ext
8175 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8176 rm -f conftest.i conftest.err conftest.$ac_ext
8177 if $ac_preproc_ok; then :
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8190 $as_echo "$CPP" >&6; }
8192 for ac_c_preproc_warn_flag in '' yes
8194 # Use a header file that comes with gcc, so configuring glibc
8195 # with a fresh cross-compiler works.
8196 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8197 # <limits.h> exists even on freestanding compilers.
8198 # On the NeXT, cc -E runs the code through the compiler's parser,
8199 # not just through cpp. "Syntax error" is here to catch this case.
8200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8201 /* end confdefs.h. */
8203 # include <limits.h>
8205 # include <assert.h>
8209 if ac_fn_c_try_cpp "$LINENO"; then :
8212 # Broken: fails on valid input.
8215 rm -f conftest.err conftest.i conftest.$ac_ext
8217 # OK, works on sane cases. Now check whether nonexistent headers
8218 # can be detected and how.
8219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8220 /* end confdefs.h. */
8221 #include <ac_nonexistent.h>
8223 if ac_fn_c_try_cpp "$LINENO"; then :
8224 # Broken: success on invalid input.
8227 # Passes both tests.
8231 rm -f conftest.err conftest.i conftest.$ac_ext
8234 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8235 rm -f conftest.i conftest.err conftest.$ac_ext
8236 if $ac_preproc_ok; then :
8239 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8240 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8241 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8242 See \`config.log' for more details" "$LINENO" 5; }
8246 ac_cpp='$CPP $CPPFLAGS'
8247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8253 $as_echo_n "checking for ANSI C header files... " >&6; }
8254 if ${ac_cv_header_stdc+:} false; then :
8255 $as_echo_n "(cached) " >&6
8257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8258 /* end confdefs.h. */
8272 if ac_fn_c_try_compile "$LINENO"; then :
8273 ac_cv_header_stdc=yes
8275 ac_cv_header_stdc=no
8277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8279 if test $ac_cv_header_stdc = yes; then
8280 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8282 /* end confdefs.h. */
8286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8287 $EGREP "memchr" >/dev/null 2>&1; then :
8290 ac_cv_header_stdc=no
8296 if test $ac_cv_header_stdc = yes; then
8297 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8299 /* end confdefs.h. */
8303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8304 $EGREP "free" >/dev/null 2>&1; then :
8307 ac_cv_header_stdc=no
8313 if test $ac_cv_header_stdc = yes; then
8314 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8315 if test "$cross_compiling" = yes; then :
8318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8319 /* end confdefs.h. */
8322 #if ((' ' & 0x0FF) == 0x020)
8323 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8324 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8326 # define ISLOWER(c) \
8327 (('a' <= (c) && (c) <= 'i') \
8328 || ('j' <= (c) && (c) <= 'r') \
8329 || ('s' <= (c) && (c) <= 'z'))
8330 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8333 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8338 for (i = 0; i < 256; i++)
8339 if (XOR (islower (i), ISLOWER (i))
8340 || toupper (i) != TOUPPER (i))
8345 if ac_fn_c_try_run "$LINENO"; then :
8348 ac_cv_header_stdc=no
8350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8351 conftest.$ac_objext conftest.beam conftest.$ac_ext
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8357 $as_echo "$ac_cv_header_stdc" >&6; }
8358 if test $ac_cv_header_stdc = yes; then
8360 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8364 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8365 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8366 inttypes.h stdint.h unistd.h
8368 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8369 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8371 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8372 cat >>confdefs.h <<_ACEOF
8373 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8381 for ac_header in dlfcn.h
8383 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8385 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8386 cat >>confdefs.h <<_ACEOF
8387 #define HAVE_DLFCN_H 1
8396 func_stripname_cnf ()
8399 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
8400 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
8402 } # func_stripname_cnf
8418 # Check whether --enable-shared was given.
8419 if test "${enable_shared+set}" = set; then :
8420 enableval=$enable_shared; p=${PACKAGE-default}
8422 yes) enable_shared=yes ;;
8423 no) enable_shared=no ;;
8426 # Look at the argument we got. We use all the common list separators.
8427 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8428 for pkg in $enableval; do
8430 if test "X$pkg" = "X$p"; then
8449 # Check whether --enable-static was given.
8450 if test "${enable_static+set}" = set; then :
8451 enableval=$enable_static; p=${PACKAGE-default}
8453 yes) enable_static=yes ;;
8454 no) enable_static=no ;;
8457 # Look at the argument we got. We use all the common list separators.
8458 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8459 for pkg in $enableval; do
8461 if test "X$pkg" = "X$p"; then
8481 # Check whether --with-pic was given.
8482 if test "${with_pic+set}" = set; then :
8483 withval=$with_pic; lt_p=${PACKAGE-default}
8485 yes|no) pic_mode=$withval ;;
8488 # Look at the argument we got. We use all the common list separators.
8489 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8490 for lt_pkg in $withval; do
8492 if test "X$lt_pkg" = "X$lt_p"; then
8510 # Check whether --enable-fast-install was given.
8511 if test "${enable_fast_install+set}" = set; then :
8512 enableval=$enable_fast_install; p=${PACKAGE-default}
8514 yes) enable_fast_install=yes ;;
8515 no) enable_fast_install=no ;;
8517 enable_fast_install=no
8518 # Look at the argument we got. We use all the common list separators.
8519 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8520 for pkg in $enableval; do
8522 if test "X$pkg" = "X$p"; then
8523 enable_fast_install=yes
8530 enable_fast_install=yes
8540 shared_archive_member_spec=
8541 case $host,$enable_shared in
8542 power*-*-aix[5-9]*,yes)
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8544 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8546 # Check whether --with-aix-soname was given.
8547 if test "${with_aix_soname+set}" = set; then :
8548 withval=$with_aix_soname; case $withval in
8552 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8555 lt_cv_with_aix_soname=$with_aix_soname
8557 if ${lt_cv_with_aix_soname+:} false; then :
8558 $as_echo_n "(cached) " >&6
8560 lt_cv_with_aix_soname=aix
8563 with_aix_soname=$lt_cv_with_aix_soname
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8567 $as_echo "$with_aix_soname" >&6; }
8568 if test aix != "$with_aix_soname"; then
8569 # For the AIX way of multilib, we name the shared archive member
8570 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8571 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8572 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8573 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8574 if test 64 = "${OBJECT_MODE-32}"; then
8575 shared_archive_member_spec=shr_64
8577 shared_archive_member_spec=shr
8595 # This can be used to rebuild libtool when needed
8596 LIBTOOL_DEPS=$ltmain
8598 # Always use our own libtool.
8599 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8630 test -z "$LN_S" && LN_S="ln -s"
8645 if test -n "${ZSH_VERSION+set}"; then
8646 setopt NO_GLOB_SUBST
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8650 $as_echo_n "checking for objdir... " >&6; }
8651 if ${lt_cv_objdir+:} false; then :
8652 $as_echo_n "(cached) " >&6
8654 rm -f .libs 2>/dev/null
8655 mkdir .libs 2>/dev/null
8656 if test -d .libs; then
8659 # MS-DOS does not allow filenames that begin with a dot.
8662 rmdir .libs 2>/dev/null
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8665 $as_echo "$lt_cv_objdir" >&6; }
8666 objdir=$lt_cv_objdir
8672 cat >>confdefs.h <<_ACEOF
8673 #define LT_OBJDIR "$lt_cv_objdir/"
8681 # AIX sometimes has problems with the GCC collect2 program. For some
8682 # reason, if we set the COLLECT_NAMES environment variable, the problems
8683 # vanish in a puff of smoke.
8684 if test set != "${COLLECT_NAMES+set}"; then
8686 export COLLECT_NAMES
8693 can_build_shared=yes
8695 # All known linkers require a '.a' archive for static linking (except MSVC,
8696 # which needs '.lib').
8699 with_gnu_ld=$lt_cv_prog_gnu_ld
8704 # Set sane defaults for various variables
8705 test -z "$CC" && CC=cc
8706 test -z "$LTCC" && LTCC=$CC
8707 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8708 test -z "$LD" && LD=ld
8709 test -z "$ac_objext" && ac_objext=o
8711 func_cc_basename $compiler
8712 cc_basename=$func_cc_basename_result
8715 # Only perform the check for file, if the check method requires it
8716 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8717 case $deplibs_check_method in
8719 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8721 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8722 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8723 $as_echo_n "(cached) " >&6
8727 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8730 lt_save_MAGIC_CMD=$MAGIC_CMD
8731 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8732 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8733 for ac_dir in $ac_dummy; do
8735 test -z "$ac_dir" && ac_dir=.
8736 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8737 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8738 if test -n "$file_magic_test_file"; then
8739 case $deplibs_check_method in
8741 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8742 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8743 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8744 $EGREP "$file_magic_regex" > /dev/null; then
8749 *** Warning: the command libtool uses to detect shared libraries,
8750 *** $file_magic_cmd, produces output that libtool cannot recognize.
8751 *** The result is that libtool may fail to recognize shared libraries
8752 *** as such. This will affect the creation of libtool libraries that
8753 *** depend on shared libraries, but programs linked with such libtool
8754 *** libraries will work regardless of this problem. Nevertheless, you
8755 *** may want to report the problem to your system manager and/or to
8756 *** bug-libtool@gnu.org
8766 MAGIC_CMD=$lt_save_MAGIC_CMD
8771 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8772 if test -n "$MAGIC_CMD"; then
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8774 $as_echo "$MAGIC_CMD" >&6; }
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8777 $as_echo "no" >&6; }
8784 if test -z "$lt_cv_path_MAGIC_CMD"; then
8785 if test -n "$ac_tool_prefix"; then
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8787 $as_echo_n "checking for file... " >&6; }
8788 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8789 $as_echo_n "(cached) " >&6
8793 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8796 lt_save_MAGIC_CMD=$MAGIC_CMD
8797 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8798 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8799 for ac_dir in $ac_dummy; do
8801 test -z "$ac_dir" && ac_dir=.
8802 if test -f "$ac_dir/file"; then
8803 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8804 if test -n "$file_magic_test_file"; then
8805 case $deplibs_check_method in
8807 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8808 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8809 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8810 $EGREP "$file_magic_regex" > /dev/null; then
8815 *** Warning: the command libtool uses to detect shared libraries,
8816 *** $file_magic_cmd, produces output that libtool cannot recognize.
8817 *** The result is that libtool may fail to recognize shared libraries
8818 *** as such. This will affect the creation of libtool libraries that
8819 *** depend on shared libraries, but programs linked with such libtool
8820 *** libraries will work regardless of this problem. Nevertheless, you
8821 *** may want to report the problem to your system manager and/or to
8822 *** bug-libtool@gnu.org
8832 MAGIC_CMD=$lt_save_MAGIC_CMD
8837 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8838 if test -n "$MAGIC_CMD"; then
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8840 $as_echo "$MAGIC_CMD" >&6; }
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8843 $as_echo "no" >&6; }
8856 # Use C for the default configuration in the libtool script
8860 ac_cpp='$CPP $CPPFLAGS'
8861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8866 # Source file extension for C test sources.
8869 # Object file extension for compiled C test sources.
8873 # Code to be used in simple compile tests
8874 lt_simple_compile_test_code="int some_variable = 0;"
8876 # Code to be used in simple link tests
8877 lt_simple_link_test_code='int main(){return(0);}'
8885 # If no C compiler was specified, use CC.
8888 # If no C compiler flags were specified, use CFLAGS.
8889 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8891 # Allow CC to be a program name with arguments.
8894 # Save the default compiler, since it gets overwritten when the other
8895 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8896 compiler_DEFAULT=$CC
8898 # save warnings/boilerplate of simple test code
8899 ac_outfile=conftest.$ac_objext
8900 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8901 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8902 _lt_compiler_boilerplate=`cat conftest.err`
8905 ac_outfile=conftest.$ac_objext
8906 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8907 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8908 _lt_linker_boilerplate=`cat conftest.err`
8913 ## There is no encapsulation within the following macros, do not change
8914 ## the running order or otherwise move them around unless you know exactly
8915 ## what you are doing...
8916 if test -n "$compiler"; then
8918 lt_prog_compiler_no_builtin_flag=
8920 if test yes = "$GCC"; then
8921 case $cc_basename in
8923 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8925 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8929 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8930 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8931 $as_echo_n "(cached) " >&6
8933 lt_cv_prog_compiler_rtti_exceptions=no
8934 ac_outfile=conftest.$ac_objext
8935 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8936 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8937 # Insert the option either (1) after the last *FLAGS variable, or
8938 # (2) before a word containing "conftest.", or (3) at the end.
8939 # Note that $ac_compile itself does not contain backslashes and begins
8940 # with a dollar sign (not a hyphen), so the echo should work correctly.
8941 # The option is referenced via a variable to avoid confusing sed.
8942 lt_compile=`echo "$ac_compile" | $SED \
8943 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8944 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8945 -e 's:$: $lt_compiler_flag:'`
8946 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8947 (eval "$lt_compile" 2>conftest.err)
8949 cat conftest.err >&5
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 if (exit $ac_status) && test -s "$ac_outfile"; then
8952 # The compiler can only warn and ignore the option if not recognized
8953 # So say no if there are warnings other than the usual output.
8954 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8955 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8956 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8957 lt_cv_prog_compiler_rtti_exceptions=yes
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8964 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8966 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8967 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8979 lt_prog_compiler_wl=
8980 lt_prog_compiler_pic=
8981 lt_prog_compiler_static=
8984 if test yes = "$GCC"; then
8985 lt_prog_compiler_wl='-Wl,'
8986 lt_prog_compiler_static='-static'
8990 # All AIX code is PIC.
8991 if test ia64 = "$host_cpu"; then
8992 # AIX 5 now supports IA64 processor
8993 lt_prog_compiler_static='-Bstatic'
8995 lt_prog_compiler_pic='-fPIC'
9001 # see comment about AmigaOS4 .so support
9002 lt_prog_compiler_pic='-fPIC'
9005 # FIXME: we need at least 68020 code to build shared libraries, but
9006 # adding the '-m68020' flag to GCC prevents building anything better,
9008 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9013 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9014 # PIC is the default for these OSes.
9017 mingw* | cygwin* | pw32* | os2* | cegcc*)
9018 # This hack is so that the source file can tell whether it is being
9019 # built for inclusion in a dll (and should export symbols for example).
9020 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9021 # (--disable-auto-import) libraries
9022 lt_prog_compiler_pic='-DDLL_EXPORT'
9025 lt_prog_compiler_static='$wl-static'
9030 darwin* | rhapsody*)
9031 # PIC is the default on this platform
9032 # Common symbols not allowed in MH_DYLIB files
9033 lt_prog_compiler_pic='-fno-common'
9037 # PIC is the default for Haiku.
9038 # The "-static" flag exists, but is broken.
9039 lt_prog_compiler_static=
9043 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9044 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9045 # sets the default TLS model and affects inlining.
9051 lt_prog_compiler_pic='-fPIC'
9057 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9058 # Instead, we relocate shared libraries at runtime.
9062 # Just because we use GCC doesn't mean we suddenly get shared libraries
9063 # on systems that don't support them.
9064 lt_prog_compiler_can_build_shared=no
9069 # QNX uses GNU C++, but need to define -shared option too, otherwise
9071 lt_prog_compiler_pic='-fPIC -shared'
9075 if test -d /usr/nec; then
9076 lt_prog_compiler_pic=-Kconform_pic
9081 lt_prog_compiler_pic='-fPIC'
9085 case $cc_basename in
9086 nvcc*) # Cuda Compiler Driver 2.2
9087 lt_prog_compiler_wl='-Xlinker '
9088 if test -n "$lt_prog_compiler_pic"; then
9089 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9094 # PORTME Check for flag to pass linker flags through the system compiler.
9097 lt_prog_compiler_wl='-Wl,'
9098 if test ia64 = "$host_cpu"; then
9099 # AIX 5 now supports IA64 processor
9100 lt_prog_compiler_static='-Bstatic'
9102 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9106 darwin* | rhapsody*)
9107 # PIC is the default on this platform
9108 # Common symbols not allowed in MH_DYLIB files
9109 lt_prog_compiler_pic='-fno-common'
9110 case $cc_basename in
9112 # NAG Fortran compiler
9113 lt_prog_compiler_wl='-Wl,-Wl,,'
9114 lt_prog_compiler_pic='-PIC'
9115 lt_prog_compiler_static='-Bstatic'
9120 mingw* | cygwin* | pw32* | os2* | cegcc*)
9121 # This hack is so that the source file can tell whether it is being
9122 # built for inclusion in a dll (and should export symbols for example).
9123 lt_prog_compiler_pic='-DDLL_EXPORT'
9126 lt_prog_compiler_static='$wl-static'
9131 hpux9* | hpux10* | hpux11*)
9132 lt_prog_compiler_wl='-Wl,'
9133 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9140 lt_prog_compiler_pic='+Z'
9143 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9144 lt_prog_compiler_static='$wl-a ${wl}archive'
9147 irix5* | irix6* | nonstopux*)
9148 lt_prog_compiler_wl='-Wl,'
9149 # PIC (with -KPIC) is the default.
9150 lt_prog_compiler_static='-non_shared'
9153 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9154 case $cc_basename in
9155 # old Intel for x86_64, which still supported -KPIC.
9157 lt_prog_compiler_wl='-Wl,'
9158 lt_prog_compiler_pic='-KPIC'
9159 lt_prog_compiler_static='-static'
9161 # icc used to be incompatible with GCC.
9162 # ICC 10 doesn't accept -KPIC any more.
9164 lt_prog_compiler_wl='-Wl,'
9165 lt_prog_compiler_pic='-fPIC'
9166 lt_prog_compiler_static='-static'
9168 # Lahey Fortran 8.1.
9170 lt_prog_compiler_wl='-Wl,'
9171 lt_prog_compiler_pic='--shared'
9172 lt_prog_compiler_static='--static'
9175 # NAG Fortran compiler
9176 lt_prog_compiler_wl='-Wl,-Wl,,'
9177 lt_prog_compiler_pic='-PIC'
9178 lt_prog_compiler_static='-Bstatic'
9181 # Fabrice Bellard et al's Tiny C Compiler
9182 lt_prog_compiler_wl='-Wl,'
9183 lt_prog_compiler_pic='-fPIC'
9184 lt_prog_compiler_static='-static'
9186 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9187 # Portland Group compilers (*not* the Pentium gcc compiler,
9188 # which looks to be a dead project)
9189 lt_prog_compiler_wl='-Wl,'
9190 lt_prog_compiler_pic='-fpic'
9191 lt_prog_compiler_static='-Bstatic'
9194 lt_prog_compiler_wl='-Wl,'
9195 # All Alpha code is PIC.
9196 lt_prog_compiler_static='-non_shared'
9198 xl* | bgxl* | bgf* | mpixl*)
9199 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9200 lt_prog_compiler_wl='-Wl,'
9201 lt_prog_compiler_pic='-qpic'
9202 lt_prog_compiler_static='-qstaticlink'
9205 case `$CC -V 2>&1 | sed 5q` in
9206 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9207 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9208 lt_prog_compiler_pic='-KPIC'
9209 lt_prog_compiler_static='-Bstatic'
9210 lt_prog_compiler_wl=''
9212 *Sun\ F* | *Sun*Fortran*)
9213 lt_prog_compiler_pic='-KPIC'
9214 lt_prog_compiler_static='-Bstatic'
9215 lt_prog_compiler_wl='-Qoption ld '
9219 lt_prog_compiler_pic='-KPIC'
9220 lt_prog_compiler_static='-Bstatic'
9221 lt_prog_compiler_wl='-Wl,'
9223 *Intel*\ [CF]*Compiler*)
9224 lt_prog_compiler_wl='-Wl,'
9225 lt_prog_compiler_pic='-fPIC'
9226 lt_prog_compiler_static='-static'
9229 lt_prog_compiler_wl='-Wl,'
9230 lt_prog_compiler_pic='-fpic'
9231 lt_prog_compiler_static='-Bstatic'
9239 lt_prog_compiler_pic='-KPIC'
9240 lt_prog_compiler_static='-Bstatic'
9244 # QNX uses GNU C++, but need to define -shared option too, otherwise
9246 lt_prog_compiler_pic='-fPIC -shared'
9249 osf3* | osf4* | osf5*)
9250 lt_prog_compiler_wl='-Wl,'
9251 # All OSF/1 code is PIC.
9252 lt_prog_compiler_static='-non_shared'
9256 lt_prog_compiler_static='-non_shared'
9260 lt_prog_compiler_pic='-KPIC'
9261 lt_prog_compiler_static='-Bstatic'
9262 case $cc_basename in
9263 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9264 lt_prog_compiler_wl='-Qoption ld ';;
9266 lt_prog_compiler_wl='-Wl,';;
9271 lt_prog_compiler_wl='-Qoption ld '
9272 lt_prog_compiler_pic='-PIC'
9273 lt_prog_compiler_static='-Bstatic'
9276 sysv4 | sysv4.2uw2* | sysv4.3*)
9277 lt_prog_compiler_wl='-Wl,'
9278 lt_prog_compiler_pic='-KPIC'
9279 lt_prog_compiler_static='-Bstatic'
9283 if test -d /usr/nec; then
9284 lt_prog_compiler_pic='-Kconform_pic'
9285 lt_prog_compiler_static='-Bstatic'
9289 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9290 lt_prog_compiler_wl='-Wl,'
9291 lt_prog_compiler_pic='-KPIC'
9292 lt_prog_compiler_static='-Bstatic'
9296 lt_prog_compiler_wl='-Wl,'
9297 lt_prog_compiler_can_build_shared=no
9301 lt_prog_compiler_pic='-pic'
9302 lt_prog_compiler_static='-Bstatic'
9306 lt_prog_compiler_can_build_shared=no
9312 # For platforms that do not support PIC, -DPIC is meaningless:
9314 lt_prog_compiler_pic=
9317 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9322 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9323 if ${lt_cv_prog_compiler_pic+:} false; then :
9324 $as_echo_n "(cached) " >&6
9326 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9329 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9330 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9333 # Check to make sure the PIC flag actually works.
9335 if test -n "$lt_prog_compiler_pic"; then
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9337 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9338 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9339 $as_echo_n "(cached) " >&6
9341 lt_cv_prog_compiler_pic_works=no
9342 ac_outfile=conftest.$ac_objext
9343 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9344 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9345 # Insert the option either (1) after the last *FLAGS variable, or
9346 # (2) before a word containing "conftest.", or (3) at the end.
9347 # Note that $ac_compile itself does not contain backslashes and begins
9348 # with a dollar sign (not a hyphen), so the echo should work correctly.
9349 # The option is referenced via a variable to avoid confusing sed.
9350 lt_compile=`echo "$ac_compile" | $SED \
9351 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9352 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9353 -e 's:$: $lt_compiler_flag:'`
9354 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9355 (eval "$lt_compile" 2>conftest.err)
9357 cat conftest.err >&5
9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 if (exit $ac_status) && test -s "$ac_outfile"; then
9360 # The compiler can only warn and ignore the option if not recognized
9361 # So say no if there are warnings other than the usual output.
9362 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9363 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9364 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9365 lt_cv_prog_compiler_pic_works=yes
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9372 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9374 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9375 case $lt_prog_compiler_pic in
9377 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9380 lt_prog_compiler_pic=
9381 lt_prog_compiler_can_build_shared=no
9397 # Check to make sure the static flag actually works.
9399 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9401 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9402 if ${lt_cv_prog_compiler_static_works+:} false; then :
9403 $as_echo_n "(cached) " >&6
9405 lt_cv_prog_compiler_static_works=no
9406 save_LDFLAGS=$LDFLAGS
9407 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9408 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9409 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9410 # The linker can only warn and ignore the option if not recognized
9411 # So say no if there are warnings
9412 if test -s conftest.err; then
9413 # Append any errors to the config.log.
9414 cat conftest.err 1>&5
9415 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9416 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9417 if diff conftest.exp conftest.er2 >/dev/null; then
9418 lt_cv_prog_compiler_static_works=yes
9421 lt_cv_prog_compiler_static_works=yes
9425 LDFLAGS=$save_LDFLAGS
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9429 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9431 if test yes = "$lt_cv_prog_compiler_static_works"; then
9434 lt_prog_compiler_static=
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9444 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9445 if ${lt_cv_prog_compiler_c_o+:} false; then :
9446 $as_echo_n "(cached) " >&6
9448 lt_cv_prog_compiler_c_o=no
9449 $RM -r conftest 2>/dev/null
9453 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9455 lt_compiler_flag="-o out/conftest2.$ac_objext"
9456 # Insert the option either (1) after the last *FLAGS variable, or
9457 # (2) before a word containing "conftest.", or (3) at the end.
9458 # Note that $ac_compile itself does not contain backslashes and begins
9459 # with a dollar sign (not a hyphen), so the echo should work correctly.
9460 lt_compile=`echo "$ac_compile" | $SED \
9461 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9462 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9463 -e 's:$: $lt_compiler_flag:'`
9464 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9465 (eval "$lt_compile" 2>out/conftest.err)
9467 cat out/conftest.err >&5
9468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9471 # The compiler can only warn and ignore the option if not recognized
9472 # So say no if there are warnings
9473 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9474 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9475 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9476 lt_cv_prog_compiler_c_o=yes
9481 # SGI C++ compiler will create directory out/ii_files/ for
9482 # template instantiation
9483 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9484 $RM out/* && rmdir out
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9491 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9499 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9500 if ${lt_cv_prog_compiler_c_o+:} false; then :
9501 $as_echo_n "(cached) " >&6
9503 lt_cv_prog_compiler_c_o=no
9504 $RM -r conftest 2>/dev/null
9508 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9510 lt_compiler_flag="-o out/conftest2.$ac_objext"
9511 # Insert the option either (1) after the last *FLAGS variable, or
9512 # (2) before a word containing "conftest.", or (3) at the end.
9513 # Note that $ac_compile itself does not contain backslashes and begins
9514 # with a dollar sign (not a hyphen), so the echo should work correctly.
9515 lt_compile=`echo "$ac_compile" | $SED \
9516 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9517 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9518 -e 's:$: $lt_compiler_flag:'`
9519 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9520 (eval "$lt_compile" 2>out/conftest.err)
9522 cat out/conftest.err >&5
9523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9526 # The compiler can only warn and ignore the option if not recognized
9527 # So say no if there are warnings
9528 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9529 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9530 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9531 lt_cv_prog_compiler_c_o=yes
9536 # SGI C++ compiler will create directory out/ii_files/ for
9537 # template instantiation
9538 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9539 $RM out/* && rmdir out
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9546 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9551 hard_links=nottested
9552 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9553 # do not overwrite the value of need_locks provided by the user
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9555 $as_echo_n "checking if we can lock with hard links... " >&6; }
9558 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9560 ln conftest.a conftest.b 2>&5 || hard_links=no
9561 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9563 $as_echo "$hard_links" >&6; }
9564 if test no = "$hard_links"; then
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9566 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9579 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9582 allow_undefined_flag=
9583 always_export_symbols=no
9585 archive_expsym_cmds=
9586 compiler_needs_object=no
9587 enable_shared_with_static_runtimes=no
9588 export_dynamic_flag_spec=
9589 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9590 hardcode_automatic=no
9592 hardcode_direct_absolute=no
9593 hardcode_libdir_flag_spec=
9594 hardcode_libdir_separator=
9596 hardcode_shlibpath_var=unsupported
9598 link_all_deplibs=unknown
9601 old_archive_from_new_cmds=
9602 old_archive_from_expsyms_cmds=
9603 thread_safe_flag_spec=
9604 whole_archive_flag_spec=
9605 # include_expsyms should be a list of space-separated symbols to be *always*
9606 # included in the symbol list
9608 # exclude_expsyms can be an extended regexp of symbols to exclude
9609 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9610 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9611 # as well as any symbol that contains 'd'.
9612 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9613 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9614 # platforms (ab)use it in PIC code, but their linkers get confused if
9615 # the symbol is explicitly referenced. Since portable code cannot
9616 # rely on this symbol name, it's probably fine to never include it in
9617 # preloaded symbol tables.
9618 # Exclude shared library initialization/finalization symbols.
9619 extract_expsyms_cmds=
9622 cygwin* | mingw* | pw32* | cegcc*)
9623 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9624 # When not using gcc, we currently assume that we are using
9625 # Microsoft Visual C++.
9626 if test yes != "$GCC"; then
9631 # we just hope/assume this is gcc and not c89 (= MSVC++)
9637 linux* | k*bsd*-gnu | gnu*)
9644 # On some targets, GNU ld is compatible enough with the native linker
9645 # that we're better off using the native interface for both.
9646 lt_use_gnu_ld_interface=no
9647 if test yes = "$with_gnu_ld"; then
9650 # The AIX port of GNU ld has always aspired to compatibility
9651 # with the native linker. However, as the warning in the GNU ld
9652 # block says, versions before 2.19.5* couldn't really create working
9653 # shared libraries, regardless of the interface used.
9654 case `$LD -v 2>&1` in
9655 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9656 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9657 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9659 lt_use_gnu_ld_interface=yes
9664 lt_use_gnu_ld_interface=yes
9669 if test yes = "$lt_use_gnu_ld_interface"; then
9670 # If archive_cmds runs LD, not CC, wlarc should be empty
9673 # Set some defaults for GNU ld with shared library support. These
9674 # are reset later if shared libraries are not supported. Putting them
9675 # here allows them to be overridden if necessary.
9676 runpath_var=LD_RUN_PATH
9677 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9678 export_dynamic_flag_spec='$wl--export-dynamic'
9679 # ancient GNU ld didn't support --whole-archive et. al.
9680 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9681 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9683 whole_archive_flag_spec=
9685 supports_anon_versioning=no
9686 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9687 *GNU\ gold*) supports_anon_versioning=yes ;;
9688 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9689 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9690 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9691 *\ 2.11.*) ;; # other 2.11 versions
9692 *) supports_anon_versioning=yes ;;
9695 # See if GNU ld supports shared libraries.
9698 # On AIX/PPC, the GNU linker is very broken
9699 if test ia64 != "$host_cpu"; then
9703 *** Warning: the GNU linker, at least up to release 2.19, is reported
9704 *** to be unable to reliably create shared libraries on AIX.
9705 *** Therefore, libtool is disabling shared libraries support. If you
9706 *** really care for shared libraries, you may want to install binutils
9707 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9708 *** You will then need to restart the configuration process.
9717 # see comment about AmigaOS4 .so support
9718 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9719 archive_expsym_cmds=''
9722 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)'
9723 hardcode_libdir_flag_spec='-L$libdir'
9724 hardcode_minus_L=yes
9730 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9731 allow_undefined_flag=unsupported
9732 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9733 # support --undefined. This deserves some investigation. FIXME
9734 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9740 cygwin* | mingw* | pw32* | cegcc*)
9741 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9742 # as there is no search path for DLLs.
9743 hardcode_libdir_flag_spec='-L$libdir'
9744 export_dynamic_flag_spec='$wl--export-all-symbols'
9745 allow_undefined_flag=unsupported
9746 always_export_symbols=no
9747 enable_shared_with_static_runtimes=yes
9748 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'
9749 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9751 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9752 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9753 # If the export-symbols file already is a .def file, use it as
9754 # is; otherwise, prepend EXPORTS...
9755 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9756 cp $export_symbols $output_objdir/$soname.def;
9758 echo EXPORTS > $output_objdir/$soname.def;
9759 cat $export_symbols >> $output_objdir/$soname.def;
9761 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9768 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9769 link_all_deplibs=yes
9773 hardcode_libdir_flag_spec='-L$libdir'
9774 hardcode_minus_L=yes
9775 allow_undefined_flag=unsupported
9777 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9778 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9779 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9780 $ECHO EXPORTS >> $output_objdir/$libname.def~
9781 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9782 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9783 emximp -o $lib $output_objdir/$libname.def'
9784 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9785 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9786 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9787 $ECHO EXPORTS >> $output_objdir/$libname.def~
9789 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9790 prefix_cmds="$prefix_cmds -e 1d";
9792 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9793 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9794 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9795 emximp -o $lib $output_objdir/$libname.def'
9796 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9797 enable_shared_with_static_runtimes=yes
9802 hardcode_shlibpath_var=no
9803 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9804 export_dynamic_flag_spec='$wl-E'
9805 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9806 # Instead, shared libraries are loaded at an image base (0x10000000 by
9807 # default) and relocated if they conflict, which is a slow very memory
9808 # consuming and fragmenting process. To avoid this, we pick a random,
9809 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9810 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9811 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9812 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'
9815 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9817 if test linux-dietlibc = "$host_os"; then
9818 case $cc_basename in
9819 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9822 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9823 && test no = "$tmp_diet"
9825 tmp_addflag=' $pic_flag'
9826 tmp_sharedflag='-shared'
9827 case $cc_basename,$host_cpu in
9828 pgcc*) # Portland Group C compiler
9829 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'
9830 tmp_addflag=' $pic_flag'
9832 pgf77* | pgf90* | pgf95* | pgfortran*)
9833 # Portland Group f77 and f90 compilers
9834 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'
9835 tmp_addflag=' $pic_flag -Mnomain' ;;
9836 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9837 tmp_addflag=' -i_dynamic' ;;
9838 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9839 tmp_addflag=' -i_dynamic -nofor_main' ;;
9840 ifc* | ifort*) # Intel Fortran compiler
9841 tmp_addflag=' -nofor_main' ;;
9842 lf95*) # Lahey Fortran 8.1
9843 whole_archive_flag_spec=
9844 tmp_sharedflag='--shared' ;;
9845 nagfor*) # NAGFOR 5.3
9846 tmp_sharedflag='-Wl,-shared' ;;
9847 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9848 tmp_sharedflag='-qmkshrobj'
9850 nvcc*) # Cuda Compiler Driver 2.2
9851 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'
9852 compiler_needs_object=yes
9855 case `$CC -V 2>&1 | sed 5q` in
9856 *Sun\ C*) # Sun C 5.9
9857 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'
9858 compiler_needs_object=yes
9859 tmp_sharedflag='-G' ;;
9860 *Sun\ F*) # Sun Fortran 8.3
9861 tmp_sharedflag='-G' ;;
9863 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9865 if test yes = "$supports_anon_versioning"; then
9866 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9867 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9868 echo "local: *; };" >> $output_objdir/$libname.ver~
9869 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9872 case $cc_basename in
9874 export_dynamic_flag_spec='-rdynamic'
9876 xlf* | bgf* | bgxlf* | mpixlf*)
9877 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9878 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9879 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9880 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9881 if test yes = "$supports_anon_versioning"; then
9882 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9883 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9884 echo "local: *; };" >> $output_objdir/$libname.ver~
9885 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9894 netbsd* | netbsdelf*-gnu)
9895 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9896 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9899 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9900 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9905 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9909 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9910 *** create shared libraries on Solaris systems. Therefore, libtool
9911 *** is disabling shared libraries support. We urge you to upgrade GNU
9912 *** binutils to release 2.9.1 or newer. Another option is to modify
9913 *** your PATH or compiler configuration so that the native linker is
9914 *** used, and then restart.
9917 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9918 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9919 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9925 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9926 case `$LD -v 2>&1` in
9927 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9931 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9932 *** reliably create shared libraries on SCO systems. Therefore, libtool
9933 *** is disabling shared libraries support. We urge you to upgrade GNU
9934 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9935 *** your PATH or compiler configuration so that the native linker is
9936 *** used, and then restart.
9941 # For security reasons, it is highly recommended that you always
9942 # use absolute paths for naming shared libraries, and exclude the
9943 # DT_RUNPATH tag from executables and libraries. But doing so
9944 # requires that you compile everything twice, which is a pain.
9945 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9946 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9947 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9948 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9957 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9960 hardcode_shlibpath_var=no
9964 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9965 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9966 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9973 if test no = "$ld_shlibs"; then
9975 hardcode_libdir_flag_spec=
9976 export_dynamic_flag_spec=
9977 whole_archive_flag_spec=
9980 # PORTME fill in a description of your system's linker (not GNU ld)
9983 allow_undefined_flag=unsupported
9984 always_export_symbols=yes
9985 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'
9986 # Note: this linker hardcodes the directories in LIBPATH if there
9987 # are no directories specified by -L.
9988 hardcode_minus_L=yes
9989 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9990 # Neither direct hardcoding nor static linking is supported with a
9992 hardcode_direct=unsupported
9997 if test ia64 = "$host_cpu"; then
9998 # On IA64, the linker does run time linking by default, so we don't
9999 # have to do anything special.
10000 aix_use_runtimelinking=no
10001 exp_sym_flag='-Bexport'
10004 # If we're using GNU nm, then we don't want the "-C" option.
10005 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10006 # Without the "-l" option, or with the "-B" option, AIX nm treats
10007 # weak defined symbols like other global defined symbols, whereas
10008 # GNU nm marks them as "W".
10009 # While the 'weak' keyword is ignored in the Export File, we need
10010 # it in the Import File for the 'aix-soname' feature, so we have
10011 # to replace the "-B" option with "-P" for AIX nm.
10012 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10013 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10015 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10017 aix_use_runtimelinking=no
10019 # Test if we are trying to use run time linking or normal
10020 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10021 # have runtime linking enabled, and use it for executables.
10022 # For shared libraries, we enable/disable runtime linking
10023 # depending on the kind of the shared library created -
10024 # when "with_aix_soname,aix_use_runtimelinking" is:
10025 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10026 # "aix,yes" lib.so shared, rtl:yes, for executables
10027 # lib.a static archive
10028 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10029 # lib.a(lib.so.V) shared, rtl:no, for executables
10030 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10031 # lib.a(lib.so.V) shared, rtl:no
10032 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10033 # lib.a static archive
10034 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10035 for ld_flag in $LDFLAGS; do
10036 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10037 aix_use_runtimelinking=yes
10041 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10042 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10043 # so we don't have lib.a shared libs to link our executables.
10044 # We have to force runtime linking in this case.
10045 aix_use_runtimelinking=yes
10046 LDFLAGS="$LDFLAGS -Wl,-brtl"
10051 exp_sym_flag='-bexport'
10052 no_entry_flag='-bnoentry'
10055 # When large executables or shared objects are built, AIX ld can
10056 # have problems creating the table of contents. If linking a library
10057 # or program results in "error TOC overflow" add -mminimal-toc to
10058 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10059 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10062 hardcode_direct=yes
10063 hardcode_direct_absolute=yes
10064 hardcode_libdir_separator=':'
10065 link_all_deplibs=yes
10066 file_list_spec='$wl-f,'
10067 case $with_aix_soname,$aix_use_runtimelinking in
10068 aix,*) ;; # traditional, no import file
10069 svr4,* | *,yes) # use import file
10070 # The Import File defines what to hardcode.
10072 hardcode_direct_absolute=no
10076 if test yes = "$GCC"; then
10077 case $host_os in aix4.[012]|aix4.[012].*)
10078 # We only want to do this on AIX 4.2 and lower, the check
10079 # below for broken collect2 doesn't work under 4.3+
10080 collect2name=`$CC -print-prog-name=collect2`
10081 if test -f "$collect2name" &&
10082 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10084 # We have reworked collect2
10087 # We have old collect2
10088 hardcode_direct=unsupported
10089 # It fails to find uninstalled libraries when the uninstalled
10090 # path is not listed in the libpath. Setting hardcode_minus_L
10091 # to unsupported forces relinking
10092 hardcode_minus_L=yes
10093 hardcode_libdir_flag_spec='-L$libdir'
10094 hardcode_libdir_separator=
10098 shared_flag='-shared'
10099 if test yes = "$aix_use_runtimelinking"; then
10100 shared_flag="$shared_flag "'$wl-G'
10102 # Need to ensure runtime linking is disabled for the traditional
10103 # shared library, or the linker may eventually find shared libraries
10104 # /with/ Import File - we do not want to mix them.
10105 shared_flag_aix='-shared'
10106 shared_flag_svr4='-shared $wl-G'
10109 if test ia64 = "$host_cpu"; then
10110 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10111 # chokes on -Wl,-G. The following line is correct:
10114 if test yes = "$aix_use_runtimelinking"; then
10115 shared_flag='$wl-G'
10117 shared_flag='$wl-bM:SRE'
10119 shared_flag_aix='$wl-bM:SRE'
10120 shared_flag_svr4='$wl-G'
10124 export_dynamic_flag_spec='$wl-bexpall'
10125 # It seems that -bexpall does not export symbols beginning with
10126 # underscore (_), so it is better to generate a list of symbols to export.
10127 always_export_symbols=yes
10128 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10129 # Warning - without using the other runtime loading flags (-brtl),
10130 # -berok will link without error, but may produce a broken library.
10131 allow_undefined_flag='-berok'
10132 # Determine the default libpath from the value encoded in an
10133 # empty executable.
10134 if test set = "${lt_cv_aix_libpath+set}"; then
10135 aix_libpath=$lt_cv_aix_libpath
10137 if ${lt_cv_aix_libpath_+:} false; then :
10138 $as_echo_n "(cached) " >&6
10140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10141 /* end confdefs.h. */
10151 if ac_fn_c_try_link "$LINENO"; then :
10153 lt_aix_libpath_sed='
10154 /Import File Strings/,/^$/ {
10156 s/^0 *\([^ ]*\) *$/\1/
10160 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10161 # Check for a 64-bit object if we didn't find anything.
10162 if test -z "$lt_cv_aix_libpath_"; then
10163 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10166 rm -f core conftest.err conftest.$ac_objext \
10167 conftest$ac_exeext conftest.$ac_ext
10168 if test -z "$lt_cv_aix_libpath_"; then
10169 lt_cv_aix_libpath_=/usr/lib:/lib
10174 aix_libpath=$lt_cv_aix_libpath_
10177 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10178 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10180 if test ia64 = "$host_cpu"; then
10181 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10182 allow_undefined_flag="-z nodefs"
10183 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"
10185 # Determine the default libpath from the value encoded in an
10186 # empty executable.
10187 if test set = "${lt_cv_aix_libpath+set}"; then
10188 aix_libpath=$lt_cv_aix_libpath
10190 if ${lt_cv_aix_libpath_+:} false; then :
10191 $as_echo_n "(cached) " >&6
10193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10194 /* end confdefs.h. */
10204 if ac_fn_c_try_link "$LINENO"; then :
10206 lt_aix_libpath_sed='
10207 /Import File Strings/,/^$/ {
10209 s/^0 *\([^ ]*\) *$/\1/
10213 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10214 # Check for a 64-bit object if we didn't find anything.
10215 if test -z "$lt_cv_aix_libpath_"; then
10216 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10219 rm -f core conftest.err conftest.$ac_objext \
10220 conftest$ac_exeext conftest.$ac_ext
10221 if test -z "$lt_cv_aix_libpath_"; then
10222 lt_cv_aix_libpath_=/usr/lib:/lib
10227 aix_libpath=$lt_cv_aix_libpath_
10230 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10231 # Warning - without using the other run time loading flags,
10232 # -berok will link without error, but may produce a broken library.
10233 no_undefined_flag=' $wl-bernotok'
10234 allow_undefined_flag=' $wl-berok'
10235 if test yes = "$with_gnu_ld"; then
10236 # We only use this code for GNU lds that support --whole-archive.
10237 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10239 # Exported symbols can be pulled into shared objects from archives
10240 whole_archive_flag_spec='$convenience'
10242 archive_cmds_need_lc=yes
10243 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10244 # -brtl affects multiple linker settings, -berok does not and is overridden later
10245 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10246 if test svr4 != "$with_aix_soname"; then
10247 # This is similar to how AIX traditionally builds its shared libraries.
10248 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10250 if test aix != "$with_aix_soname"; then
10251 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10253 # used by -dlpreopen to get the symbols
10254 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10256 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10264 # see comment about AmigaOS4 .so support
10265 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10266 archive_expsym_cmds=''
10269 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)'
10270 hardcode_libdir_flag_spec='-L$libdir'
10271 hardcode_minus_L=yes
10277 export_dynamic_flag_spec=-rdynamic
10280 cygwin* | mingw* | pw32* | cegcc*)
10281 # When not using gcc, we currently assume that we are using
10282 # Microsoft Visual C++.
10283 # hardcode_libdir_flag_spec is actually meaningless, as there is
10284 # no search path for DLLs.
10285 case $cc_basename in
10288 hardcode_libdir_flag_spec=' '
10289 allow_undefined_flag=unsupported
10290 always_export_symbols=yes
10292 # Tell ltmain to make .lib files, not .a files.
10294 # Tell ltmain to make .dll files, not .so files.
10296 # FIXME: Setting linknames here is a bad hack.
10297 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10298 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10299 cp "$export_symbols" "$output_objdir/$soname.def";
10300 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10302 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10304 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10306 # The linker will not automatically build a static lib if we build a DLL.
10307 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10308 enable_shared_with_static_runtimes=yes
10309 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10310 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10312 old_postinstall_cmds='chmod 644 $oldlib'
10313 postlink_cmds='lt_outputfile="@OUTPUT@"~
10314 lt_tool_outputfile="@TOOL_OUTPUT@"~
10315 case $lt_outputfile in
10318 lt_outputfile=$lt_outputfile.exe
10319 lt_tool_outputfile=$lt_tool_outputfile.exe
10322 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10323 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10324 $RM "$lt_outputfile.manifest";
10328 # Assume MSVC wrapper
10329 hardcode_libdir_flag_spec=' '
10330 allow_undefined_flag=unsupported
10331 # Tell ltmain to make .lib files, not .a files.
10333 # Tell ltmain to make .dll files, not .so files.
10335 # FIXME: Setting linknames here is a bad hack.
10336 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10337 # The linker will automatically build a .lib file if we build a DLL.
10338 old_archive_from_new_cmds='true'
10339 # FIXME: Should let the user specify the lib program.
10340 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10341 enable_shared_with_static_runtimes=yes
10346 darwin* | rhapsody*)
10349 archive_cmds_need_lc=no
10351 hardcode_automatic=yes
10352 hardcode_shlibpath_var=unsupported
10353 if test yes = "$lt_cv_ld_force_load"; then
10354 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\"`'
10357 whole_archive_flag_spec=''
10359 link_all_deplibs=yes
10360 allow_undefined_flag=$_lt_dar_allow_undefined
10361 case $cc_basename in
10362 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10363 *) _lt_dar_can_shared=$GCC ;;
10365 if test yes = "$_lt_dar_can_shared"; then
10366 output_verbose_link_cmd=func_echo_all
10367 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10368 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10369 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"
10370 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"
10379 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10380 hardcode_libdir_flag_spec='-L$libdir'
10381 hardcode_shlibpath_var=no
10384 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10385 # support. Future versions do this automatically, but an explicit c++rt0.o
10386 # does not break anything, and helps significantly (at the cost of a little
10389 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10390 hardcode_libdir_flag_spec='-R$libdir'
10391 hardcode_direct=yes
10392 hardcode_shlibpath_var=no
10395 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10397 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10398 hardcode_direct=yes
10399 hardcode_minus_L=yes
10400 hardcode_shlibpath_var=no
10403 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10404 freebsd* | dragonfly*)
10405 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10406 hardcode_libdir_flag_spec='-R$libdir'
10407 hardcode_direct=yes
10408 hardcode_shlibpath_var=no
10412 if test yes = "$GCC"; then
10413 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv -f $output_objdir/$soname $lib'
10415 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv -f $output_objdir/$soname $lib'
10417 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10418 hardcode_libdir_separator=:
10419 hardcode_direct=yes
10421 # hardcode_minus_L: Not really in the search PATH,
10422 # but as the default location of the library.
10423 hardcode_minus_L=yes
10424 export_dynamic_flag_spec='$wl-E'
10428 if test yes,no = "$GCC,$with_gnu_ld"; then
10429 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10431 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10433 if test no = "$with_gnu_ld"; then
10434 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10435 hardcode_libdir_separator=:
10436 hardcode_direct=yes
10437 hardcode_direct_absolute=yes
10438 export_dynamic_flag_spec='$wl-E'
10439 # hardcode_minus_L: Not really in the search PATH,
10440 # but as the default location of the library.
10441 hardcode_minus_L=yes
10446 if test yes,no = "$GCC,$with_gnu_ld"; then
10449 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10452 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10455 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10461 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10464 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10468 # Older versions of the 11.00 compiler do not understand -b yet
10469 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10471 $as_echo_n "checking if $CC understands -b... " >&6; }
10472 if ${lt_cv_prog_compiler__b+:} false; then :
10473 $as_echo_n "(cached) " >&6
10475 lt_cv_prog_compiler__b=no
10476 save_LDFLAGS=$LDFLAGS
10477 LDFLAGS="$LDFLAGS -b"
10478 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10479 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10480 # The linker can only warn and ignore the option if not recognized
10481 # So say no if there are warnings
10482 if test -s conftest.err; then
10483 # Append any errors to the config.log.
10484 cat conftest.err 1>&5
10485 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10486 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10487 if diff conftest.exp conftest.er2 >/dev/null; then
10488 lt_cv_prog_compiler__b=yes
10491 lt_cv_prog_compiler__b=yes
10495 LDFLAGS=$save_LDFLAGS
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10499 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10501 if test yes = "$lt_cv_prog_compiler__b"; then
10502 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10504 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10510 if test no = "$with_gnu_ld"; then
10511 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10512 hardcode_libdir_separator=:
10517 hardcode_shlibpath_var=no
10520 hardcode_direct=yes
10521 hardcode_direct_absolute=yes
10522 export_dynamic_flag_spec='$wl-E'
10524 # hardcode_minus_L: Not really in the search PATH,
10525 # but as the default location of the library.
10526 hardcode_minus_L=yes
10532 irix5* | irix6* | nonstopux*)
10533 if test yes = "$GCC"; then
10534 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'
10535 # Try to use the -exported_symbol ld option, if it does not
10536 # work, assume that -exports_file does not work either and
10537 # implicitly export all symbols.
10538 # This should be the same for all languages, so no per-tag cache variable.
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10540 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10541 if ${lt_cv_irix_exported_symbol+:} false; then :
10542 $as_echo_n "(cached) " >&6
10544 save_LDFLAGS=$LDFLAGS
10545 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10547 /* end confdefs.h. */
10548 int foo (void) { return 0; }
10550 if ac_fn_c_try_link "$LINENO"; then :
10551 lt_cv_irix_exported_symbol=yes
10553 lt_cv_irix_exported_symbol=no
10555 rm -f core conftest.err conftest.$ac_objext \
10556 conftest$ac_exeext conftest.$ac_ext
10557 LDFLAGS=$save_LDFLAGS
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10560 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10561 if test yes = "$lt_cv_irix_exported_symbol"; then
10562 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'
10564 link_all_deplibs=no
10566 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'
10567 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'
10569 archive_cmds_need_lc='no'
10570 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10571 hardcode_libdir_separator=:
10573 link_all_deplibs=yes
10577 case $cc_basename in
10579 # Fabrice Bellard et al's Tiny C Compiler
10581 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10586 netbsd* | netbsdelf*-gnu)
10587 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10588 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10590 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10592 hardcode_libdir_flag_spec='-R$libdir'
10593 hardcode_direct=yes
10594 hardcode_shlibpath_var=no
10598 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10599 hardcode_direct=yes
10600 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10601 hardcode_libdir_separator=:
10602 hardcode_shlibpath_var=no
10608 openbsd* | bitrig*)
10609 if test -f /usr/libexec/ld.so; then
10610 hardcode_direct=yes
10611 hardcode_shlibpath_var=no
10612 hardcode_direct_absolute=yes
10613 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10614 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10615 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10616 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10617 export_dynamic_flag_spec='$wl-E'
10619 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10620 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10628 hardcode_libdir_flag_spec='-L$libdir'
10629 hardcode_minus_L=yes
10630 allow_undefined_flag=unsupported
10632 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10633 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10634 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10635 $ECHO EXPORTS >> $output_objdir/$libname.def~
10636 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10637 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10638 emximp -o $lib $output_objdir/$libname.def'
10639 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10640 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10641 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10642 $ECHO EXPORTS >> $output_objdir/$libname.def~
10643 prefix_cmds="$SED"~
10644 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10645 prefix_cmds="$prefix_cmds -e 1d";
10647 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10648 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10649 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10650 emximp -o $lib $output_objdir/$libname.def'
10651 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10652 enable_shared_with_static_runtimes=yes
10656 if test yes = "$GCC"; then
10657 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10658 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'
10660 allow_undefined_flag=' -expect_unresolved \*'
10661 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'
10663 archive_cmds_need_lc='no'
10664 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10665 hardcode_libdir_separator=:
10668 osf4* | osf5*) # as osf3* with the addition of -msym flag
10669 if test yes = "$GCC"; then
10670 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10671 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'
10672 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10674 allow_undefined_flag=' -expect_unresolved \*'
10675 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'
10676 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~
10677 $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'
10679 # Both c and cxx compiler support -rpath directly
10680 hardcode_libdir_flag_spec='-rpath $libdir'
10682 archive_cmds_need_lc='no'
10683 hardcode_libdir_separator=:
10687 no_undefined_flag=' -z defs'
10688 if test yes = "$GCC"; then
10690 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10691 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10692 $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'
10694 case `$CC -V 2>&1` in
10697 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10698 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10699 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10703 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10704 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10705 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10709 hardcode_libdir_flag_spec='-R$libdir'
10710 hardcode_shlibpath_var=no
10712 solaris2.[0-5] | solaris2.[0-5].*) ;;
10714 # The compiler driver will combine and reorder linker options,
10715 # but understands '-z linker_flag'. GCC discards it without '$wl',
10716 # but is careful enough not to reorder.
10717 # Supported since Solaris 2.6 (maybe 2.5.1?)
10718 if test yes = "$GCC"; then
10719 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10721 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10725 link_all_deplibs=yes
10729 if test sequent = "$host_vendor"; then
10730 # Use $CC to link under sequent, because it throws in some extra .o
10731 # files that make .init and .fini sections work.
10732 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10734 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10736 hardcode_libdir_flag_spec='-L$libdir'
10737 hardcode_direct=yes
10738 hardcode_minus_L=yes
10739 hardcode_shlibpath_var=no
10743 case $host_vendor in
10745 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10746 hardcode_direct=yes # is this really true???
10749 ## LD is ld it makes a PLAMLIB
10750 ## CC just makes a GrossModule.
10751 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10752 reload_cmds='$CC -r -o $output$reload_objs'
10756 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10757 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10760 runpath_var='LD_RUN_PATH'
10761 hardcode_shlibpath_var=no
10765 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10766 hardcode_shlibpath_var=no
10767 export_dynamic_flag_spec='-Bexport'
10771 if test -d /usr/nec; then
10772 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10773 hardcode_shlibpath_var=no
10774 runpath_var=LD_RUN_PATH
10775 hardcode_runpath_var=yes
10780 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10781 no_undefined_flag='$wl-z,text'
10782 archive_cmds_need_lc=no
10783 hardcode_shlibpath_var=no
10784 runpath_var='LD_RUN_PATH'
10786 if test yes = "$GCC"; then
10787 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10788 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10790 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10791 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10795 sysv5* | sco3.2v5* | sco5v6*)
10796 # Note: We CANNOT use -z defs as we might desire, because we do not
10797 # link with -lc, and that would cause any symbols used from libc to
10798 # always be unresolved, which means just about no library would
10799 # ever link correctly. If we're not using GNU ld we use -z text
10800 # though, which does catch some bad symbols but isn't as heavy-handed
10802 no_undefined_flag='$wl-z,text'
10803 allow_undefined_flag='$wl-z,nodefs'
10804 archive_cmds_need_lc=no
10805 hardcode_shlibpath_var=no
10806 hardcode_libdir_flag_spec='$wl-R,$libdir'
10807 hardcode_libdir_separator=':'
10808 link_all_deplibs=yes
10809 export_dynamic_flag_spec='$wl-Bexport'
10810 runpath_var='LD_RUN_PATH'
10812 if test yes = "$GCC"; then
10813 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10814 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10816 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10817 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10822 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10823 hardcode_libdir_flag_spec='-L$libdir'
10824 hardcode_shlibpath_var=no
10832 if test sni = "$host_vendor"; then
10834 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10835 export_dynamic_flag_spec='$wl-Blargedynsym'
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10842 $as_echo "$ld_shlibs" >&6; }
10843 test no = "$ld_shlibs" && can_build_shared=no
10845 with_gnu_ld=$with_gnu_ld
10862 # Do we need to explicitly link libc?
10864 case "x$archive_cmds_need_lc" in
10866 # Assume -lc should be added
10867 archive_cmds_need_lc=yes
10869 if test yes,yes = "$GCC,$enable_shared"; then
10870 case $archive_cmds in
10872 # FIXME: we may have to deal with multi-command sequences.
10875 # Test whether the compiler implicitly links with -lc since on some
10876 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10877 # to ld, don't add -lc before -lgcc.
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10879 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10880 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10881 $as_echo_n "(cached) " >&6
10884 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10886 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10887 (eval $ac_compile) 2>&5
10889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10890 test $ac_status = 0; } 2>conftest.err; then
10893 libobjs=conftest.$ac_objext
10895 wl=$lt_prog_compiler_wl
10896 pic_flag=$lt_prog_compiler_pic
10902 lt_save_allow_undefined_flag=$allow_undefined_flag
10903 allow_undefined_flag=
10904 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10905 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10908 test $ac_status = 0; }
10910 lt_cv_archive_cmds_need_lc=no
10912 lt_cv_archive_cmds_need_lc=yes
10914 allow_undefined_flag=$lt_save_allow_undefined_flag
10916 cat conftest.err 1>&5
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10922 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10923 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11082 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11084 if test yes = "$GCC"; then
11086 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11087 *) lt_awk_arg='/^libraries:/' ;;
11090 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11091 *) lt_sed_strip_eq='s|=/|/|g' ;;
11093 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11094 case $lt_search_path_spec in
11096 # if the path contains ";" then we assume it to be the separator
11097 # otherwise default to the standard path separator (i.e. ":") - it is
11098 # assumed that no part of a normal pathname contains ";" but that should
11099 # okay in the real world where ";" in dirpaths is itself problematic.
11100 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11103 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11106 # Ok, now we have the path, separated by spaces, we can step through it
11107 # and add multilib dir if necessary...
11108 lt_tmp_lt_search_path_spec=
11109 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11110 # ...but if some path component already ends with the multilib dir we assume
11111 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11112 case "$lt_multi_os_dir; $lt_search_path_spec " in
11113 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11117 for lt_sys_path in $lt_search_path_spec; do
11118 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11119 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11120 elif test -n "$lt_multi_os_dir"; then
11121 test -d "$lt_sys_path" && \
11122 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11125 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11126 BEGIN {RS = " "; FS = "/|\n";} {
11129 for (lt_i = NF; lt_i > 0; lt_i--) {
11130 if ($lt_i != "" && $lt_i != ".") {
11131 if ($lt_i == "..") {
11134 if (lt_count == 0) {
11135 lt_foo = "/" $lt_i lt_foo;
11142 if (lt_foo != "") { lt_freq[lt_foo]++; }
11143 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11145 # AWK program above erroneously prepends '/' to C:/dos/paths
11148 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11149 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11151 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11153 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11155 library_names_spec=
11156 libname_spec='lib$name'
11160 postuninstall_cmds=
11164 shlibpath_overrides_runpath=unknown
11166 dynamic_linker="$host_os ld.so"
11167 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11168 need_lib_prefix=unknown
11169 hardcode_into_libs=no
11171 # when you set need_version to no, make sure it does not cause -set_version
11172 # flags to be left without arguments
11173 need_version=unknown
11179 version_type=linux # correct to gnu/linux during the next big refactor
11180 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11181 shlibpath_var=LIBPATH
11183 # AIX 3 has no versioning support, so we append a major version to the name.
11184 soname_spec='$libname$release$shared_ext$major'
11188 version_type=linux # correct to gnu/linux during the next big refactor
11191 hardcode_into_libs=yes
11192 if test ia64 = "$host_cpu"; then
11193 # AIX 5 supports IA64
11194 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11195 shlibpath_var=LD_LIBRARY_PATH
11197 # With GCC up to 2.95.x, collect2 would create an import file
11198 # for dependence libraries. The import file would start with
11199 # the line '#! .'. This would cause the generated library to
11200 # depend on '.', always an invalid library. This was fixed in
11201 # development snapshots of GCC prior to 3.0.
11203 aix4 | aix4.[01] | aix4.[01].*)
11204 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11206 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11209 can_build_shared=no
11213 # Using Import Files as archive members, it is possible to support
11214 # filename-based versioning of shared library archives on AIX. While
11215 # this would work for both with and without runtime linking, it will
11216 # prevent static linking of such archives. So we do filename-based
11217 # shared library versioning with .so extension only, which is used
11218 # when both runtime linking and shared linking is enabled.
11219 # Unfortunately, runtime linking may impact performance, so we do
11220 # not want this to be the default eventually. Also, we use the
11221 # versioned .so libs for executables only if there is the -brtl
11222 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11223 # To allow for filename-based versioning support, we need to create
11224 # libNAME.so.V as an archive file, containing:
11225 # *) an Import File, referring to the versioned filename of the
11226 # archive as well as the shared archive member, telling the
11227 # bitwidth (32 or 64) of that shared object, and providing the
11228 # list of exported symbols of that shared object, eventually
11229 # decorated with the 'weak' keyword
11230 # *) the shared object with the F_LOADONLY flag set, to really avoid
11231 # it being seen by the linker.
11232 # At run time we better use the real file rather than another symlink,
11233 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11235 case $with_aix_soname,$aix_use_runtimelinking in
11236 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11237 # soname into executable. Probably we can add versioning support to
11238 # collect2, so additional links can be useful in future.
11239 aix,yes) # traditional libtool
11240 dynamic_linker='AIX unversionable lib.so'
11241 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11242 # instead of lib<name>.a to let people know that these are not
11243 # typical AIX shared libraries.
11244 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11246 aix,no) # traditional AIX only
11247 dynamic_linker='AIX lib.a(lib.so.V)'
11248 # We preserve .a as extension for shared libraries through AIX4.2
11249 # and later when we are not doing run time linking.
11250 library_names_spec='$libname$release.a $libname.a'
11251 soname_spec='$libname$release$shared_ext$major'
11253 svr4,*) # full svr4 only
11254 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11255 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11256 # We do not specify a path in Import Files, so LIBPATH fires.
11257 shlibpath_overrides_runpath=yes
11259 *,yes) # both, prefer svr4
11260 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11261 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11262 # unpreferred sharedlib libNAME.a needs extra handling
11263 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11264 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11265 # We do not specify a path in Import Files, so LIBPATH fires.
11266 shlibpath_overrides_runpath=yes
11268 *,no) # both, prefer aix
11269 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11270 library_names_spec='$libname$release.a $libname.a'
11271 soname_spec='$libname$release$shared_ext$major'
11272 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11273 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11274 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11277 shlibpath_var=LIBPATH
11284 # Since July 2007 AmigaOS4 officially supports .so libraries.
11285 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11286 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11289 library_names_spec='$libname.ixlibrary $libname.a'
11290 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11291 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
11297 library_names_spec='$libname$shared_ext'
11298 dynamic_linker="$host_os ld.so"
11299 shlibpath_var=LIBRARY_PATH
11303 version_type=linux # correct to gnu/linux during the next big refactor
11305 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11306 soname_spec='$libname$release$shared_ext$major'
11307 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11308 shlibpath_var=LD_LIBRARY_PATH
11309 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11310 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11311 # the default ld.so.conf also contains /usr/contrib/lib and
11312 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11313 # libtool to hard-code these into programs
11316 cygwin* | mingw* | pw32* | cegcc*)
11317 version_type=windows
11322 case $GCC,$cc_basename in
11325 library_names_spec='$libname.dll.a'
11326 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11327 postinstall_cmds='base_file=`basename \$file`~
11328 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11329 dldir=$destdir/`dirname \$dlpath`~
11330 test -d \$dldir || mkdir -p \$dldir~
11331 $install_prog $dir/$dlname \$dldir/$dlname~
11332 chmod a+x \$dldir/$dlname~
11333 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11334 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11336 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11337 dlpath=$dir/\$dldll~
11339 shlibpath_overrides_runpath=yes
11343 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11344 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11346 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11349 # MinGW DLLs use traditional 'lib' prefix
11350 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11353 # pw32 DLLs use 'pw' prefix rather than 'lib'
11354 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11357 dynamic_linker='Win32 ld.exe'
11362 libname_spec='$name'
11363 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11364 library_names_spec='$libname.dll.lib'
11368 sys_lib_search_path_spec=
11371 for lt_path in $LIB
11374 # Let DOS variable expansion print the short 8.3 style file name.
11375 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11376 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11379 # Convert to MSYS style.
11380 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11383 # Convert to unix form, then to dos form, then back to unix form
11384 # but this time dos style (no spaces!) so that the unix form looks
11385 # like /cygdrive/c/PROGRA~1:/cygdr...
11386 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11387 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11388 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11391 sys_lib_search_path_spec=$LIB
11392 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11393 # It is most probably a Windows format PATH.
11394 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11396 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11398 # FIXME: find the short name or the path components, as spaces are
11399 # common. (e.g. "Program Files" -> "PROGRA~1")
11403 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11404 postinstall_cmds='base_file=`basename \$file`~
11405 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11406 dldir=$destdir/`dirname \$dlpath`~
11407 test -d \$dldir || mkdir -p \$dldir~
11408 $install_prog $dir/$dlname \$dldir/$dlname'
11409 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11410 dlpath=$dir/\$dldll~
11412 shlibpath_overrides_runpath=yes
11413 dynamic_linker='Win32 link.exe'
11417 # Assume MSVC wrapper
11418 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11419 dynamic_linker='Win32 ld.exe'
11422 # FIXME: first we should search . and the directory the executable is in
11426 darwin* | rhapsody*)
11427 dynamic_linker="$host_os dyld"
11428 version_type=darwin
11431 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11432 soname_spec='$libname$release$major$shared_ext'
11433 shlibpath_overrides_runpath=yes
11434 shlibpath_var=DYLD_LIBRARY_PATH
11435 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11437 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11438 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11442 version_type=linux # correct to gnu/linux during the next big refactor
11445 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11446 soname_spec='$libname$release$shared_ext$major'
11447 shlibpath_var=LD_LIBRARY_PATH
11450 freebsd* | dragonfly*)
11451 # DragonFly does not have aout. When/if they implement a new
11452 # versioning mechanism, adjust this.
11453 if test -x /usr/bin/objformat; then
11454 objformat=`/usr/bin/objformat`
11457 freebsd[23].*) objformat=aout ;;
11458 *) objformat=elf ;;
11461 version_type=freebsd-$objformat
11462 case $version_type in
11464 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11465 soname_spec='$libname$release$shared_ext$major'
11470 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11474 shlibpath_var=LD_LIBRARY_PATH
11477 shlibpath_overrides_runpath=yes
11479 freebsd3.[01]* | freebsdelf3.[01]*)
11480 shlibpath_overrides_runpath=yes
11481 hardcode_into_libs=yes
11483 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11484 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11485 shlibpath_overrides_runpath=no
11486 hardcode_into_libs=yes
11488 *) # from 4.6 on, and DragonFly
11489 shlibpath_overrides_runpath=yes
11490 hardcode_into_libs=yes
11496 version_type=linux # correct to gnu/linux during the next big refactor
11499 dynamic_linker="$host_os runtime_loader"
11500 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11501 soname_spec='$libname$release$shared_ext$major'
11502 shlibpath_var=LIBRARY_PATH
11503 shlibpath_overrides_runpath=no
11504 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11505 hardcode_into_libs=yes
11508 hpux9* | hpux10* | hpux11*)
11509 # Give a soname corresponding to the major version so that dld.sl refuses to
11510 # link against other versions.
11517 hardcode_into_libs=yes
11518 dynamic_linker="$host_os dld.so"
11519 shlibpath_var=LD_LIBRARY_PATH
11520 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11521 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11522 soname_spec='$libname$release$shared_ext$major'
11523 if test 32 = "$HPUX_IA64_MODE"; then
11524 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11525 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11527 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11528 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11533 hardcode_into_libs=yes
11534 dynamic_linker="$host_os dld.sl"
11535 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11536 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11537 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11538 soname_spec='$libname$release$shared_ext$major'
11539 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11540 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11544 dynamic_linker="$host_os dld.sl"
11545 shlibpath_var=SHLIB_PATH
11546 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11547 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11548 soname_spec='$libname$release$shared_ext$major'
11551 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11552 postinstall_cmds='chmod 555 $lib'
11553 # or fails outright, so override atomically:
11554 install_override_mode=555
11558 version_type=linux # correct to gnu/linux during the next big refactor
11561 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11562 soname_spec='$libname$release$shared_ext$major'
11563 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11564 shlibpath_var=LD_LIBRARY_PATH
11565 shlibpath_overrides_runpath=no
11566 hardcode_into_libs=yes
11569 irix5* | irix6* | nonstopux*)
11571 nonstopux*) version_type=nonstopux ;;
11573 if test yes = "$lt_cv_prog_gnu_ld"; then
11574 version_type=linux # correct to gnu/linux during the next big refactor
11581 soname_spec='$libname$release$shared_ext$major'
11582 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11584 irix5* | nonstopux*)
11585 libsuff= shlibsuff=
11588 case $LD in # libtool.m4 will add one of these switches to LD
11589 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11590 libsuff= shlibsuff= libmagic=32-bit;;
11591 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11592 libsuff=32 shlibsuff=N32 libmagic=N32;;
11593 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11594 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11595 *) libsuff= shlibsuff= libmagic=never-match;;
11599 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11600 shlibpath_overrides_runpath=no
11601 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11602 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11603 hardcode_into_libs=yes
11606 # No shared lib support for Linux oldld, aout, or coff.
11607 linux*oldld* | linux*aout* | linux*coff*)
11612 version_type=none # Android doesn't support versioned libraries.
11615 library_names_spec='$libname$release$shared_ext'
11616 soname_spec='$libname$release$shared_ext'
11618 shlibpath_var=LD_LIBRARY_PATH
11619 shlibpath_overrides_runpath=yes
11621 # This implies no fast_install, which is unacceptable.
11622 # Some rework will be needed to allow for fast_install
11623 # before this can be enabled.
11624 hardcode_into_libs=yes
11626 dynamic_linker='Android linker'
11627 # Don't embed -rpath directories since the linker doesn't support them.
11628 hardcode_libdir_flag_spec='-L$libdir'
11631 # This must be glibc/ELF.
11632 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11633 version_type=linux # correct to gnu/linux during the next big refactor
11636 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11637 soname_spec='$libname$release$shared_ext$major'
11638 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11639 shlibpath_var=LD_LIBRARY_PATH
11640 shlibpath_overrides_runpath=no
11642 # Some binutils ld are patched to set DT_RUNPATH
11643 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11644 $as_echo_n "(cached) " >&6
11646 lt_cv_shlibpath_overrides_runpath=no
11647 save_LDFLAGS=$LDFLAGS
11648 save_libdir=$libdir
11649 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11650 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11652 /* end confdefs.h. */
11662 if ac_fn_c_try_link "$LINENO"; then :
11663 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11664 lt_cv_shlibpath_overrides_runpath=yes
11667 rm -f core conftest.err conftest.$ac_objext \
11668 conftest$ac_exeext conftest.$ac_ext
11669 LDFLAGS=$save_LDFLAGS
11670 libdir=$save_libdir
11674 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11676 # This implies no fast_install, which is unacceptable.
11677 # Some rework will be needed to allow for fast_install
11678 # before this can be enabled.
11679 hardcode_into_libs=yes
11681 # Ideally, we could use ldconfig to report *all* directores which are
11682 # searched for libraries, however this is still not possible. Aside from not
11683 # being certain /sbin/ldconfig is available, command
11684 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11685 # even though it is searched at run-time. Try to do the best guess by
11686 # appending ld.so.conf contents (and includes) to the search path.
11687 if test -f /etc/ld.so.conf; then
11688 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' ' '`
11689 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11692 # We used to test for /lib/ld.so.1 and disable shared libraries on
11693 # powerpc, because MkLinux only supported shared libraries with the
11694 # GNU dynamic linker. Since this was broken with cross compilers,
11695 # most powerpc-linux boxes support dynamic linking these days and
11696 # people can always --disable-shared, the test was removed, and we
11697 # assume the GNU/Linux dynamic linker is in use.
11698 dynamic_linker='GNU/Linux ld.so'
11705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11706 soname_spec='${libname}${release}${shared_ext}$major'
11707 shlibpath_var=LD_LIBRARY_PATH
11708 shlibpath_overrides_runpath=no
11709 hardcode_into_libs=yes
11710 dynamic_linker='NetBSD ld.elf_so'
11717 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11718 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11719 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11720 dynamic_linker='NetBSD (a.out) ld.so'
11722 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11723 soname_spec='$libname$release$shared_ext$major'
11724 dynamic_linker='NetBSD ld.elf_so'
11726 shlibpath_var=LD_LIBRARY_PATH
11727 shlibpath_overrides_runpath=yes
11728 hardcode_into_libs=yes
11732 version_type=linux # correct to gnu/linux during the next big refactor
11733 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11734 shlibpath_var=LD_LIBRARY_PATH
11735 shlibpath_overrides_runpath=yes
11742 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11743 soname_spec='$libname$release$shared_ext$major'
11744 shlibpath_var=LD_LIBRARY_PATH
11745 shlibpath_overrides_runpath=no
11746 hardcode_into_libs=yes
11747 dynamic_linker='ldqnx.so'
11750 openbsd* | bitrig*)
11752 sys_lib_dlsearch_path_spec=/usr/lib
11754 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11759 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11760 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11761 shlibpath_var=LD_LIBRARY_PATH
11762 shlibpath_overrides_runpath=yes
11766 libname_spec='$name'
11767 version_type=windows
11771 # OS/2 can only load a DLL with a base name of 8 characters or less.
11772 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11773 v=$($ECHO $release$versuffix | tr -d .-);
11774 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11775 $ECHO $n$v`$shared_ext'
11776 library_names_spec='${libname}_dll.$libext'
11777 dynamic_linker='OS/2 ld.exe'
11778 shlibpath_var=BEGINLIBPATH
11779 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11780 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11781 postinstall_cmds='base_file=`basename \$file`~
11782 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11783 dldir=$destdir/`dirname \$dlpath`~
11784 test -d \$dldir || mkdir -p \$dldir~
11785 $install_prog $dir/$dlname \$dldir/$dlname~
11786 chmod a+x \$dldir/$dlname~
11787 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11788 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11790 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11791 dlpath=$dir/\$dldll~
11795 osf3* | osf4* | osf5*)
11799 soname_spec='$libname$release$shared_ext$major'
11800 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11801 shlibpath_var=LD_LIBRARY_PATH
11802 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11803 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11811 version_type=linux # correct to gnu/linux during the next big refactor
11814 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11815 soname_spec='$libname$release$shared_ext$major'
11816 shlibpath_var=LD_LIBRARY_PATH
11817 shlibpath_overrides_runpath=yes
11818 hardcode_into_libs=yes
11819 # ldd complains unless libraries are executable
11820 postinstall_cmds='chmod +x $lib'
11825 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11826 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11827 shlibpath_var=LD_LIBRARY_PATH
11828 shlibpath_overrides_runpath=yes
11829 if test yes = "$with_gnu_ld"; then
11836 version_type=linux # correct to gnu/linux during the next big refactor
11837 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11838 soname_spec='$libname$release$shared_ext$major'
11839 shlibpath_var=LD_LIBRARY_PATH
11840 case $host_vendor in
11842 shlibpath_overrides_runpath=no
11844 runpath_var=LD_RUN_PATH
11852 shlibpath_overrides_runpath=no
11853 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11859 if test -d /usr/nec; then
11860 version_type=linux # correct to gnu/linux during the next big refactor
11861 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11862 soname_spec='$libname$shared_ext.$major'
11863 shlibpath_var=LD_LIBRARY_PATH
11867 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11871 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11872 soname_spec='$libname$release$shared_ext$major'
11873 shlibpath_var=LD_LIBRARY_PATH
11874 shlibpath_overrides_runpath=yes
11875 hardcode_into_libs=yes
11876 if test yes = "$with_gnu_ld"; then
11877 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11879 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11882 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11886 sys_lib_dlsearch_path_spec='/usr/lib'
11890 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11891 version_type=linux # correct to gnu/linux during the next big refactor
11894 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11895 shlibpath_var=LD_LIBRARY_PATH
11896 shlibpath_overrides_runpath=no
11897 hardcode_into_libs=yes
11901 version_type=linux # correct to gnu/linux during the next big refactor
11902 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11903 soname_spec='$libname$release$shared_ext$major'
11904 shlibpath_var=LD_LIBRARY_PATH
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11912 $as_echo "$dynamic_linker" >&6; }
11913 test no = "$dynamic_linker" && can_build_shared=no
11915 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11916 if test yes = "$GCC"; then
11917 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11920 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11921 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11924 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11925 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11928 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11929 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11931 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11932 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11934 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11935 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12034 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12036 if test -n "$hardcode_libdir_flag_spec" ||
12037 test -n "$runpath_var" ||
12038 test yes = "$hardcode_automatic"; then
12040 # We can hardcode non-existent directories.
12041 if test no != "$hardcode_direct" &&
12042 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12043 # have to relink, otherwise we might link with an installed library
12044 # when we should be linking with a yet-to-be-installed one
12045 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12046 test no != "$hardcode_minus_L"; then
12047 # Linking always hardcodes the temporary library directory.
12048 hardcode_action=relink
12050 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12051 hardcode_action=immediate
12054 # We cannot hardcode anything, or else we can only hardcode existing
12056 hardcode_action=unsupported
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12059 $as_echo "$hardcode_action" >&6; }
12061 if test relink = "$hardcode_action" ||
12062 test yes = "$inherit_rpath"; then
12063 # Fast installation is not supported
12064 enable_fast_install=no
12065 elif test yes = "$shlibpath_overrides_runpath" ||
12066 test no = "$enable_shared"; then
12067 # Fast installation is not necessary
12068 enable_fast_install=needless
12076 if test yes != "$enable_dlopen"; then
12077 enable_dlopen=unknown
12078 enable_dlopen_self=unknown
12079 enable_dlopen_self_static=unknown
12086 lt_cv_dlopen=load_add_on
12088 lt_cv_dlopen_self=yes
12091 mingw* | pw32* | cegcc*)
12092 lt_cv_dlopen=LoadLibrary
12097 lt_cv_dlopen=dlopen
12102 # if libdl is installed we need to link against it
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12104 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12105 if ${ac_cv_lib_dl_dlopen+:} false; then :
12106 $as_echo_n "(cached) " >&6
12108 ac_check_lib_save_LIBS=$LIBS
12110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12111 /* end confdefs.h. */
12113 /* Override any GCC internal prototype to avoid an error.
12114 Use char because int might match the return type of a GCC
12115 builtin and then its argument prototype would still apply. */
12128 if ac_fn_c_try_link "$LINENO"; then :
12129 ac_cv_lib_dl_dlopen=yes
12131 ac_cv_lib_dl_dlopen=no
12133 rm -f core conftest.err conftest.$ac_objext \
12134 conftest$ac_exeext conftest.$ac_ext
12135 LIBS=$ac_check_lib_save_LIBS
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12138 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12139 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12140 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12145 lt_cv_dlopen_self=yes
12152 # Don't try to run any link tests for TPF. We know it's impossible
12153 # because TPF is a cross-compiler, and we know how we open DSOs.
12154 lt_cv_dlopen=dlopen
12156 lt_cv_dlopen_self=no
12160 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12161 if test "x$ac_cv_func_shl_load" = xyes; then :
12162 lt_cv_dlopen=shl_load
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12165 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12166 if ${ac_cv_lib_dld_shl_load+:} false; then :
12167 $as_echo_n "(cached) " >&6
12169 ac_check_lib_save_LIBS=$LIBS
12171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12172 /* end confdefs.h. */
12174 /* Override any GCC internal prototype to avoid an error.
12175 Use char because int might match the return type of a GCC
12176 builtin and then its argument prototype would still apply. */
12184 return shl_load ();
12189 if ac_fn_c_try_link "$LINENO"; then :
12190 ac_cv_lib_dld_shl_load=yes
12192 ac_cv_lib_dld_shl_load=no
12194 rm -f core conftest.err conftest.$ac_objext \
12195 conftest$ac_exeext conftest.$ac_ext
12196 LIBS=$ac_check_lib_save_LIBS
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12199 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12200 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12201 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12203 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12204 if test "x$ac_cv_func_dlopen" = xyes; then :
12205 lt_cv_dlopen=dlopen
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12208 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12209 if ${ac_cv_lib_dl_dlopen+:} false; then :
12210 $as_echo_n "(cached) " >&6
12212 ac_check_lib_save_LIBS=$LIBS
12214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12215 /* end confdefs.h. */
12217 /* Override any GCC internal prototype to avoid an error.
12218 Use char because int might match the return type of a GCC
12219 builtin and then its argument prototype would still apply. */
12232 if ac_fn_c_try_link "$LINENO"; then :
12233 ac_cv_lib_dl_dlopen=yes
12235 ac_cv_lib_dl_dlopen=no
12237 rm -f core conftest.err conftest.$ac_objext \
12238 conftest$ac_exeext conftest.$ac_ext
12239 LIBS=$ac_check_lib_save_LIBS
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12242 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12243 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12244 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12247 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12248 if ${ac_cv_lib_svld_dlopen+:} false; then :
12249 $as_echo_n "(cached) " >&6
12251 ac_check_lib_save_LIBS=$LIBS
12252 LIBS="-lsvld $LIBS"
12253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12254 /* end confdefs.h. */
12256 /* Override any GCC internal prototype to avoid an error.
12257 Use char because int might match the return type of a GCC
12258 builtin and then its argument prototype would still apply. */
12271 if ac_fn_c_try_link "$LINENO"; then :
12272 ac_cv_lib_svld_dlopen=yes
12274 ac_cv_lib_svld_dlopen=no
12276 rm -f core conftest.err conftest.$ac_objext \
12277 conftest$ac_exeext conftest.$ac_ext
12278 LIBS=$ac_check_lib_save_LIBS
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12281 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12282 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12283 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12286 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12287 if ${ac_cv_lib_dld_dld_link+:} false; then :
12288 $as_echo_n "(cached) " >&6
12290 ac_check_lib_save_LIBS=$LIBS
12292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12293 /* end confdefs.h. */
12295 /* Override any GCC internal prototype to avoid an error.
12296 Use char because int might match the return type of a GCC
12297 builtin and then its argument prototype would still apply. */
12305 return dld_link ();
12310 if ac_fn_c_try_link "$LINENO"; then :
12311 ac_cv_lib_dld_dld_link=yes
12313 ac_cv_lib_dld_dld_link=no
12315 rm -f core conftest.err conftest.$ac_objext \
12316 conftest$ac_exeext conftest.$ac_ext
12317 LIBS=$ac_check_lib_save_LIBS
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12320 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12321 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12322 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12343 if test no = "$lt_cv_dlopen"; then
12349 case $lt_cv_dlopen in
12351 save_CPPFLAGS=$CPPFLAGS
12352 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12354 save_LDFLAGS=$LDFLAGS
12355 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12358 LIBS="$lt_cv_dlopen_libs $LIBS"
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12361 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12362 if ${lt_cv_dlopen_self+:} false; then :
12363 $as_echo_n "(cached) " >&6
12365 if test yes = "$cross_compiling"; then :
12366 lt_cv_dlopen_self=cross
12368 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12369 lt_status=$lt_dlunknown
12370 cat > conftest.$ac_ext <<_LT_EOF
12371 #line $LINENO "configure"
12372 #include "confdefs.h"
12381 # define LT_DLGLOBAL RTLD_GLOBAL
12384 # define LT_DLGLOBAL DL_GLOBAL
12386 # define LT_DLGLOBAL 0
12390 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12391 find out it does not work in some platform. */
12392 #ifndef LT_DLLAZY_OR_NOW
12394 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12397 # define LT_DLLAZY_OR_NOW DL_LAZY
12400 # define LT_DLLAZY_OR_NOW RTLD_NOW
12403 # define LT_DLLAZY_OR_NOW DL_NOW
12405 # define LT_DLLAZY_OR_NOW 0
12412 /* When -fvisibility=hidden is used, assume the code has been annotated
12413 correspondingly for the symbols needed. */
12414 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12415 int fnord () __attribute__((visibility("default")));
12418 int fnord () { return 42; }
12421 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12422 int status = $lt_dlunknown;
12426 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12429 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12430 else puts (dlerror ());
12432 /* dlclose (self); */
12440 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12441 (eval $ac_link) 2>&5
12443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12444 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12445 (./conftest; exit; ) >&5 2>/dev/null
12447 case x$lt_status in
12448 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12449 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12450 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12453 # compilation failed
12454 lt_cv_dlopen_self=no
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12462 $as_echo "$lt_cv_dlopen_self" >&6; }
12464 if test yes = "$lt_cv_dlopen_self"; then
12465 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12467 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12468 if ${lt_cv_dlopen_self_static+:} false; then :
12469 $as_echo_n "(cached) " >&6
12471 if test yes = "$cross_compiling"; then :
12472 lt_cv_dlopen_self_static=cross
12474 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12475 lt_status=$lt_dlunknown
12476 cat > conftest.$ac_ext <<_LT_EOF
12477 #line $LINENO "configure"
12478 #include "confdefs.h"
12487 # define LT_DLGLOBAL RTLD_GLOBAL
12490 # define LT_DLGLOBAL DL_GLOBAL
12492 # define LT_DLGLOBAL 0
12496 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12497 find out it does not work in some platform. */
12498 #ifndef LT_DLLAZY_OR_NOW
12500 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12503 # define LT_DLLAZY_OR_NOW DL_LAZY
12506 # define LT_DLLAZY_OR_NOW RTLD_NOW
12509 # define LT_DLLAZY_OR_NOW DL_NOW
12511 # define LT_DLLAZY_OR_NOW 0
12518 /* When -fvisibility=hidden is used, assume the code has been annotated
12519 correspondingly for the symbols needed. */
12520 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12521 int fnord () __attribute__((visibility("default")));
12524 int fnord () { return 42; }
12527 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12528 int status = $lt_dlunknown;
12532 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12535 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12536 else puts (dlerror ());
12538 /* dlclose (self); */
12546 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12547 (eval $ac_link) 2>&5
12549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12550 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12551 (./conftest; exit; ) >&5 2>/dev/null
12553 case x$lt_status in
12554 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12555 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12556 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12559 # compilation failed
12560 lt_cv_dlopen_self_static=no
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12568 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12571 CPPFLAGS=$save_CPPFLAGS
12572 LDFLAGS=$save_LDFLAGS
12577 case $lt_cv_dlopen_self in
12578 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12579 *) enable_dlopen_self=unknown ;;
12582 case $lt_cv_dlopen_self_static in
12583 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12584 *) enable_dlopen_self_static=unknown ;;
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12607 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12608 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12609 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12610 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12612 $as_echo "yes" >&6; }
12614 # FIXME - insert some real tests, host_os isn't really good enough
12617 if test -n "$STRIP"; then
12618 striplib="$STRIP -x"
12619 old_striplib="$STRIP -S"
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12621 $as_echo "yes" >&6; }
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12624 $as_echo "no" >&6; }
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12629 $as_echo "no" >&6; }
12645 # Report what library types will actually be built
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12647 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12649 $as_echo "$can_build_shared" >&6; }
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12652 $as_echo_n "checking whether to build shared libraries... " >&6; }
12653 test no = "$can_build_shared" && enable_shared=no
12655 # On AIX, shared libraries and static libraries use the same namespace, and
12656 # are all built from PIC.
12659 test yes = "$enable_shared" && enable_static=no
12660 if test -n "$RANLIB"; then
12661 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12662 postinstall_cmds='$RANLIB $lib'
12667 if test ia64 != "$host_cpu"; then
12668 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12669 yes,aix,yes) ;; # shared object as lib.so file only
12670 yes,svr4,*) ;; # shared object as lib.so archive member only
12671 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12677 $as_echo "$enable_shared" >&6; }
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12680 $as_echo_n "checking whether to build static libraries... " >&6; }
12681 # Make sure either enable_shared or enable_static is yes.
12682 test yes = "$enable_shared" || enable_static=yes
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12684 $as_echo "$enable_static" >&6; }
12691 ac_cpp='$CPP $CPPFLAGS'
12692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12698 if test -n "$CXX" && ( test no != "$CXX" &&
12699 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
12700 (test g++ != "$CXX"))); then
12702 ac_cpp='$CXXCPP $CPPFLAGS'
12703 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12704 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12705 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12707 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12708 if test -z "$CXXCPP"; then
12709 if ${ac_cv_prog_CXXCPP+:} false; then :
12710 $as_echo_n "(cached) " >&6
12712 # Double quotes because CXXCPP needs to be expanded
12713 for CXXCPP in "$CXX -E" "/lib/cpp"
12715 ac_preproc_ok=false
12716 for ac_cxx_preproc_warn_flag in '' yes
12718 # Use a header file that comes with gcc, so configuring glibc
12719 # with a fresh cross-compiler works.
12720 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12721 # <limits.h> exists even on freestanding compilers.
12722 # On the NeXT, cc -E runs the code through the compiler's parser,
12723 # not just through cpp. "Syntax error" is here to catch this case.
12724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12725 /* end confdefs.h. */
12727 # include <limits.h>
12729 # include <assert.h>
12733 if ac_fn_cxx_try_cpp "$LINENO"; then :
12736 # Broken: fails on valid input.
12739 rm -f conftest.err conftest.i conftest.$ac_ext
12741 # OK, works on sane cases. Now check whether nonexistent headers
12742 # can be detected and how.
12743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12744 /* end confdefs.h. */
12745 #include <ac_nonexistent.h>
12747 if ac_fn_cxx_try_cpp "$LINENO"; then :
12748 # Broken: success on invalid input.
12751 # Passes both tests.
12755 rm -f conftest.err conftest.i conftest.$ac_ext
12758 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12759 rm -f conftest.i conftest.err conftest.$ac_ext
12760 if $ac_preproc_ok; then :
12765 ac_cv_prog_CXXCPP=$CXXCPP
12768 CXXCPP=$ac_cv_prog_CXXCPP
12770 ac_cv_prog_CXXCPP=$CXXCPP
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12773 $as_echo "$CXXCPP" >&6; }
12774 ac_preproc_ok=false
12775 for ac_cxx_preproc_warn_flag in '' yes
12777 # Use a header file that comes with gcc, so configuring glibc
12778 # with a fresh cross-compiler works.
12779 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12780 # <limits.h> exists even on freestanding compilers.
12781 # On the NeXT, cc -E runs the code through the compiler's parser,
12782 # not just through cpp. "Syntax error" is here to catch this case.
12783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12784 /* end confdefs.h. */
12786 # include <limits.h>
12788 # include <assert.h>
12792 if ac_fn_cxx_try_cpp "$LINENO"; then :
12795 # Broken: fails on valid input.
12798 rm -f conftest.err conftest.i conftest.$ac_ext
12800 # OK, works on sane cases. Now check whether nonexistent headers
12801 # can be detected and how.
12802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12803 /* end confdefs.h. */
12804 #include <ac_nonexistent.h>
12806 if ac_fn_cxx_try_cpp "$LINENO"; then :
12807 # Broken: success on invalid input.
12810 # Passes both tests.
12814 rm -f conftest.err conftest.i conftest.$ac_ext
12817 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12818 rm -f conftest.i conftest.err conftest.$ac_ext
12819 if $ac_preproc_ok; then :
12822 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12823 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12824 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12825 See \`config.log' for more details" "$LINENO" 5; }
12829 ac_cpp='$CPP $CPPFLAGS'
12830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12835 _lt_caught_CXX_error=yes
12839 ac_cpp='$CXXCPP $CPPFLAGS'
12840 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12841 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12842 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12844 archive_cmds_need_lc_CXX=no
12845 allow_undefined_flag_CXX=
12846 always_export_symbols_CXX=no
12847 archive_expsym_cmds_CXX=
12848 compiler_needs_object_CXX=no
12849 export_dynamic_flag_spec_CXX=
12850 hardcode_direct_CXX=no
12851 hardcode_direct_absolute_CXX=no
12852 hardcode_libdir_flag_spec_CXX=
12853 hardcode_libdir_separator_CXX=
12854 hardcode_minus_L_CXX=no
12855 hardcode_shlibpath_var_CXX=unsupported
12856 hardcode_automatic_CXX=no
12857 inherit_rpath_CXX=no
12859 module_expsym_cmds_CXX=
12860 link_all_deplibs_CXX=unknown
12861 old_archive_cmds_CXX=$old_archive_cmds
12862 reload_flag_CXX=$reload_flag
12863 reload_cmds_CXX=$reload_cmds
12864 no_undefined_flag_CXX=
12865 whole_archive_flag_spec_CXX=
12866 enable_shared_with_static_runtimes_CXX=no
12868 # Source file extension for C++ test sources.
12871 # Object file extension for compiled C++ test sources.
12875 # No sense in running all these tests if we already determined that
12876 # the CXX compiler isn't working. Some variables (like enable_shared)
12877 # are currently assumed to apply to all compilers on this platform,
12878 # and will be corrupted by setting them based on a non-working compiler.
12879 if test yes != "$_lt_caught_CXX_error"; then
12880 # Code to be used in simple compile tests
12881 lt_simple_compile_test_code="int some_variable = 0;"
12883 # Code to be used in simple link tests
12884 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12886 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12893 # If no C compiler was specified, use CC.
12896 # If no C compiler flags were specified, use CFLAGS.
12897 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12899 # Allow CC to be a program name with arguments.
12903 # save warnings/boilerplate of simple test code
12904 ac_outfile=conftest.$ac_objext
12905 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12906 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12907 _lt_compiler_boilerplate=`cat conftest.err`
12910 ac_outfile=conftest.$ac_objext
12911 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12912 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12913 _lt_linker_boilerplate=`cat conftest.err`
12917 # Allow CC to be a program name with arguments.
12919 lt_save_CFLAGS=$CFLAGS
12923 lt_save_with_gnu_ld=$with_gnu_ld
12924 lt_save_path_LD=$lt_cv_path_LD
12925 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12926 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12928 $as_unset lt_cv_prog_gnu_ld
12930 if test -n "${lt_cv_path_LDCXX+set}"; then
12931 lt_cv_path_LD=$lt_cv_path_LDCXX
12933 $as_unset lt_cv_path_LD
12935 test -z "${LDCXX+set}" || LD=$LDCXX
12940 func_cc_basename $compiler
12941 cc_basename=$func_cc_basename_result
12944 if test -n "$compiler"; then
12945 # We don't want -fno-exception when compiling C++ code, so set the
12946 # no_builtin_flag separately
12947 if test yes = "$GXX"; then
12948 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12950 lt_prog_compiler_no_builtin_flag_CXX=
12953 if test yes = "$GXX"; then
12954 # Set up default GNU C++ configuration
12958 # Check whether --with-gnu-ld was given.
12959 if test "${with_gnu_ld+set}" = set; then :
12960 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
12966 if test yes = "$GCC"; then
12967 # Check if gcc -print-prog-name=ld gives a path.
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12969 $as_echo_n "checking for ld used by $CC... " >&6; }
12972 # gcc leaves a trailing carriage return, which upsets mingw
12973 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12975 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12978 # Accept absolute paths.
12980 re_direlt='/[^/][^/]*/\.\./'
12981 # Canonicalize the pathname of ld
12982 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12983 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12984 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12986 test -z "$LD" && LD=$ac_prog
12989 # If it fails, then pretend we aren't using GCC.
12993 # If it is relative, then search for the first ld in PATH.
12994 with_gnu_ld=unknown
12997 elif test yes = "$with_gnu_ld"; then
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12999 $as_echo_n "checking for GNU ld... " >&6; }
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13002 $as_echo_n "checking for non-GNU ld... " >&6; }
13004 if ${lt_cv_path_LD+:} false; then :
13005 $as_echo_n "(cached) " >&6
13007 if test -z "$LD"; then
13008 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13009 for ac_dir in $PATH; do
13011 test -z "$ac_dir" && ac_dir=.
13012 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13013 lt_cv_path_LD=$ac_dir/$ac_prog
13014 # Check to see if the program is GNU ld. I'd rather use --version,
13015 # but apparently some variants of GNU ld only accept -v.
13016 # Break only if it was the GNU/non-GNU ld that we prefer.
13017 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13018 *GNU* | *'with BFD'*)
13019 test no != "$with_gnu_ld" && break
13022 test yes != "$with_gnu_ld" && break
13029 lt_cv_path_LD=$LD # Let the user override the test with a path.
13034 if test -n "$LD"; then
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13036 $as_echo "$LD" >&6; }
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13039 $as_echo "no" >&6; }
13041 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13043 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13044 if ${lt_cv_prog_gnu_ld+:} false; then :
13045 $as_echo_n "(cached) " >&6
13047 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13048 case `$LD -v 2>&1 </dev/null` in
13049 *GNU* | *'with BFD'*)
13050 lt_cv_prog_gnu_ld=yes
13053 lt_cv_prog_gnu_ld=no
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13058 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13059 with_gnu_ld=$lt_cv_prog_gnu_ld
13067 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13068 # archiving commands below assume that GNU ld is being used.
13069 if test yes = "$with_gnu_ld"; then
13070 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13071 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13073 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13074 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13076 # If archive_cmds runs LD, not CC, wlarc should be empty
13077 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13078 # investigate it a little bit more. (MM)
13081 # ancient GNU ld didn't support --whole-archive et. al.
13082 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13083 $GREP 'no-whole-archive' > /dev/null; then
13084 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13086 whole_archive_flag_spec_CXX=
13092 # A generic and very simple default shared library creation
13093 # command for GNU C++ for the case where it uses the native
13094 # linker, instead of GNU ld. If possible, this setting should
13095 # overridden to take advantage of the native linker features on
13096 # the platform it is being used on.
13097 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13100 # Commands to make compiler produce verbose output that lists
13101 # what "hidden" libraries, object files and flags are used when
13102 # linking a shared library.
13103 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13111 # PORTME: fill in a description of your system's C++ link characteristics
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13113 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13117 # FIXME: insert proper C++ library support
13121 if test ia64 = "$host_cpu"; then
13122 # On IA64, the linker does run time linking by default, so we don't
13123 # have to do anything special.
13124 aix_use_runtimelinking=no
13125 exp_sym_flag='-Bexport'
13128 aix_use_runtimelinking=no
13130 # Test if we are trying to use run time linking or normal
13131 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13132 # have runtime linking enabled, and use it for executables.
13133 # For shared libraries, we enable/disable runtime linking
13134 # depending on the kind of the shared library created -
13135 # when "with_aix_soname,aix_use_runtimelinking" is:
13136 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13137 # "aix,yes" lib.so shared, rtl:yes, for executables
13138 # lib.a static archive
13139 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13140 # lib.a(lib.so.V) shared, rtl:no, for executables
13141 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13142 # lib.a(lib.so.V) shared, rtl:no
13143 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13144 # lib.a static archive
13145 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13146 for ld_flag in $LDFLAGS; do
13149 aix_use_runtimelinking=yes
13154 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13155 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13156 # so we don't have lib.a shared libs to link our executables.
13157 # We have to force runtime linking in this case.
13158 aix_use_runtimelinking=yes
13159 LDFLAGS="$LDFLAGS -Wl,-brtl"
13164 exp_sym_flag='-bexport'
13165 no_entry_flag='-bnoentry'
13168 # When large executables or shared objects are built, AIX ld can
13169 # have problems creating the table of contents. If linking a library
13170 # or program results in "error TOC overflow" add -mminimal-toc to
13171 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13172 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13174 archive_cmds_CXX=''
13175 hardcode_direct_CXX=yes
13176 hardcode_direct_absolute_CXX=yes
13177 hardcode_libdir_separator_CXX=':'
13178 link_all_deplibs_CXX=yes
13179 file_list_spec_CXX='$wl-f,'
13180 case $with_aix_soname,$aix_use_runtimelinking in
13181 aix,*) ;; # no import file
13182 svr4,* | *,yes) # use import file
13183 # The Import File defines what to hardcode.
13184 hardcode_direct_CXX=no
13185 hardcode_direct_absolute_CXX=no
13189 if test yes = "$GXX"; then
13190 case $host_os in aix4.[012]|aix4.[012].*)
13191 # We only want to do this on AIX 4.2 and lower, the check
13192 # below for broken collect2 doesn't work under 4.3+
13193 collect2name=`$CC -print-prog-name=collect2`
13194 if test -f "$collect2name" &&
13195 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13197 # We have reworked collect2
13200 # We have old collect2
13201 hardcode_direct_CXX=unsupported
13202 # It fails to find uninstalled libraries when the uninstalled
13203 # path is not listed in the libpath. Setting hardcode_minus_L
13204 # to unsupported forces relinking
13205 hardcode_minus_L_CXX=yes
13206 hardcode_libdir_flag_spec_CXX='-L$libdir'
13207 hardcode_libdir_separator_CXX=
13210 shared_flag='-shared'
13211 if test yes = "$aix_use_runtimelinking"; then
13212 shared_flag=$shared_flag' $wl-G'
13214 # Need to ensure runtime linking is disabled for the traditional
13215 # shared library, or the linker may eventually find shared libraries
13216 # /with/ Import File - we do not want to mix them.
13217 shared_flag_aix='-shared'
13218 shared_flag_svr4='-shared $wl-G'
13221 if test ia64 = "$host_cpu"; then
13222 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13223 # chokes on -Wl,-G. The following line is correct:
13226 if test yes = "$aix_use_runtimelinking"; then
13227 shared_flag='$wl-G'
13229 shared_flag='$wl-bM:SRE'
13231 shared_flag_aix='$wl-bM:SRE'
13232 shared_flag_svr4='$wl-G'
13236 export_dynamic_flag_spec_CXX='$wl-bexpall'
13237 # It seems that -bexpall does not export symbols beginning with
13238 # underscore (_), so it is better to generate a list of symbols to
13240 always_export_symbols_CXX=yes
13241 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13242 # Warning - without using the other runtime loading flags (-brtl),
13243 # -berok will link without error, but may produce a broken library.
13244 # The "-G" linker flag allows undefined symbols.
13245 no_undefined_flag_CXX='-bernotok'
13246 # Determine the default libpath from the value encoded in an empty
13248 if test set = "${lt_cv_aix_libpath+set}"; then
13249 aix_libpath=$lt_cv_aix_libpath
13251 if ${lt_cv_aix_libpath__CXX+:} false; then :
13252 $as_echo_n "(cached) " >&6
13254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13255 /* end confdefs.h. */
13265 if ac_fn_cxx_try_link "$LINENO"; then :
13267 lt_aix_libpath_sed='
13268 /Import File Strings/,/^$/ {
13270 s/^0 *\([^ ]*\) *$/\1/
13274 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13275 # Check for a 64-bit object if we didn't find anything.
13276 if test -z "$lt_cv_aix_libpath__CXX"; then
13277 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13280 rm -f core conftest.err conftest.$ac_objext \
13281 conftest$ac_exeext conftest.$ac_ext
13282 if test -z "$lt_cv_aix_libpath__CXX"; then
13283 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13288 aix_libpath=$lt_cv_aix_libpath__CXX
13291 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13293 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
13295 if test ia64 = "$host_cpu"; then
13296 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13297 allow_undefined_flag_CXX="-z nodefs"
13298 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
13300 # Determine the default libpath from the value encoded in an
13301 # empty executable.
13302 if test set = "${lt_cv_aix_libpath+set}"; then
13303 aix_libpath=$lt_cv_aix_libpath
13305 if ${lt_cv_aix_libpath__CXX+:} false; then :
13306 $as_echo_n "(cached) " >&6
13308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13309 /* end confdefs.h. */
13319 if ac_fn_cxx_try_link "$LINENO"; then :
13321 lt_aix_libpath_sed='
13322 /Import File Strings/,/^$/ {
13324 s/^0 *\([^ ]*\) *$/\1/
13328 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13329 # Check for a 64-bit object if we didn't find anything.
13330 if test -z "$lt_cv_aix_libpath__CXX"; then
13331 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13334 rm -f core conftest.err conftest.$ac_objext \
13335 conftest$ac_exeext conftest.$ac_ext
13336 if test -z "$lt_cv_aix_libpath__CXX"; then
13337 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13342 aix_libpath=$lt_cv_aix_libpath__CXX
13345 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13346 # Warning - without using the other run time loading flags,
13347 # -berok will link without error, but may produce a broken library.
13348 no_undefined_flag_CXX=' $wl-bernotok'
13349 allow_undefined_flag_CXX=' $wl-berok'
13350 if test yes = "$with_gnu_ld"; then
13351 # We only use this code for GNU lds that support --whole-archive.
13352 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13354 # Exported symbols can be pulled into shared objects from archives
13355 whole_archive_flag_spec_CXX='$convenience'
13357 archive_cmds_need_lc_CXX=yes
13358 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13359 # -brtl affects multiple linker settings, -berok does not and is overridden later
13360 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13361 if test svr4 != "$with_aix_soname"; then
13362 # This is similar to how AIX traditionally builds its shared
13363 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13364 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
13366 if test aix != "$with_aix_soname"; then
13367 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
13369 # used by -dlpreopen to get the symbols
13370 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13372 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
13378 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13379 allow_undefined_flag_CXX=unsupported
13380 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13381 # support --undefined. This deserves some investigation. FIXME
13382 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13389 case $cc_basename in
13391 # FIXME: insert proper C++ library support
13397 cygwin* | mingw* | pw32* | cegcc*)
13398 case $GXX,$cc_basename in
13401 # hardcode_libdir_flag_spec is actually meaningless, as there is
13402 # no search path for DLLs.
13403 hardcode_libdir_flag_spec_CXX=' '
13404 allow_undefined_flag_CXX=unsupported
13405 always_export_symbols_CXX=yes
13406 file_list_spec_CXX='@'
13407 # Tell ltmain to make .lib files, not .a files.
13409 # Tell ltmain to make .dll files, not .so files.
13411 # FIXME: Setting linknames here is a bad hack.
13412 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13413 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13414 cp "$export_symbols" "$output_objdir/$soname.def";
13415 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13417 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13419 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13421 # The linker will not automatically build a static lib if we build a DLL.
13422 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13423 enable_shared_with_static_runtimes_CXX=yes
13425 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13426 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13427 lt_tool_outputfile="@TOOL_OUTPUT@"~
13428 case $lt_outputfile in
13431 lt_outputfile=$lt_outputfile.exe
13432 lt_tool_outputfile=$lt_tool_outputfile.exe
13435 func_to_tool_file "$lt_outputfile"~
13436 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13437 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13438 $RM "$lt_outputfile.manifest";
13443 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13444 # as there is no search path for DLLs.
13445 hardcode_libdir_flag_spec_CXX='-L$libdir'
13446 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
13447 allow_undefined_flag_CXX=unsupported
13448 always_export_symbols_CXX=no
13449 enable_shared_with_static_runtimes_CXX=yes
13451 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13452 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13453 # If the export-symbols file already is a .def file, use it as
13454 # is; otherwise, prepend EXPORTS...
13455 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13456 cp $export_symbols $output_objdir/$soname.def;
13458 echo EXPORTS > $output_objdir/$soname.def;
13459 cat $export_symbols >> $output_objdir/$soname.def;
13461 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13468 darwin* | rhapsody*)
13471 archive_cmds_need_lc_CXX=no
13472 hardcode_direct_CXX=no
13473 hardcode_automatic_CXX=yes
13474 hardcode_shlibpath_var_CXX=unsupported
13475 if test yes = "$lt_cv_ld_force_load"; then
13476 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13479 whole_archive_flag_spec_CXX=''
13481 link_all_deplibs_CXX=yes
13482 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
13483 case $cc_basename in
13484 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13485 *) _lt_dar_can_shared=$GCC ;;
13487 if test yes = "$_lt_dar_can_shared"; then
13488 output_verbose_link_cmd=func_echo_all
13489 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13490 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13491 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
13492 module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
13493 if test yes != "$lt_cv_apple_cc_single_mod"; then
13494 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
13495 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
13505 hardcode_libdir_flag_spec_CXX='-L$libdir'
13506 hardcode_minus_L_CXX=yes
13507 allow_undefined_flag_CXX=unsupported
13509 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13510 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13511 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13512 $ECHO EXPORTS >> $output_objdir/$libname.def~
13513 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13514 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13515 emximp -o $lib $output_objdir/$libname.def'
13516 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13517 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13518 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13519 $ECHO EXPORTS >> $output_objdir/$libname.def~
13520 prefix_cmds="$SED"~
13521 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13522 prefix_cmds="$prefix_cmds -e 1d";
13524 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13525 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13526 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13527 emximp -o $lib $output_objdir/$libname.def'
13528 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13529 enable_shared_with_static_runtimes_CXX=yes
13533 case $cc_basename in
13535 # FIXME: insert proper C++ library support
13539 # Green Hills C++ Compiler
13540 # FIXME: insert proper C++ library support
13544 # FIXME: insert proper C++ library support
13551 # C++ shared libraries reported to be fairly broken before
13557 archive_cmds_need_lc_CXX=no
13560 freebsd* | dragonfly*)
13561 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13567 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13568 link_all_deplibs_CXX=yes
13572 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13573 hardcode_libdir_separator_CXX=:
13574 export_dynamic_flag_spec_CXX='$wl-E'
13575 hardcode_direct_CXX=yes
13576 hardcode_minus_L_CXX=yes # Not in the search PATH,
13577 # but as the default
13578 # location of the library.
13580 case $cc_basename in
13582 # FIXME: insert proper C++ library support
13586 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv -f $output_objdir/$soname $lib'
13587 # Commands to make compiler produce verbose output that lists
13588 # what "hidden" libraries, object files and flags are used when
13589 # linking a shared library.
13591 # There doesn't appear to be a way to prevent this compiler from
13592 # explicitly linking system object files so we need to strip them
13593 # from the output so that they don't get included in the library
13595 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13598 if test yes = "$GXX"; then
13599 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv -f $output_objdir/$soname $lib'
13601 # FIXME: insert proper C++ library support
13609 if test no = "$with_gnu_ld"; then
13610 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13611 hardcode_libdir_separator_CXX=:
13617 export_dynamic_flag_spec_CXX='$wl-E'
13623 hardcode_direct_CXX=no
13624 hardcode_shlibpath_var_CXX=no
13627 hardcode_direct_CXX=yes
13628 hardcode_direct_absolute_CXX=yes
13629 hardcode_minus_L_CXX=yes # Not in the search PATH,
13630 # but as the default
13631 # location of the library.
13635 case $cc_basename in
13637 # FIXME: insert proper C++ library support
13643 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13646 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13649 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13652 # Commands to make compiler produce verbose output that lists
13653 # what "hidden" libraries, object files and flags are used when
13654 # linking a shared library.
13656 # There doesn't appear to be a way to prevent this compiler from
13657 # explicitly linking system object files so we need to strip them
13658 # from the output so that they don't get included in the library
13660 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13663 if test yes = "$GXX"; then
13664 if test no = "$with_gnu_ld"; then
13667 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13670 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13673 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13678 # FIXME: insert proper C++ library support
13686 hardcode_direct_CXX=no
13687 hardcode_shlibpath_var_CXX=no
13688 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13689 export_dynamic_flag_spec_CXX='$wl-E'
13690 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13691 # Instead, shared libraries are loaded at an image base (0x10000000 by
13692 # default) and relocated if they conflict, which is a slow very memory
13693 # consuming and fragmenting process. To avoid this, we pick a random,
13694 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13695 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13696 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13697 archive_expsym_cmds_CXX='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13700 case $cc_basename in
13703 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
13705 # Archives containing C++ object files must be created using
13706 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13707 # necessary to make sure instantiated templates are included
13709 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13712 if test yes = "$GXX"; then
13713 if test no = "$with_gnu_ld"; then
13714 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
13716 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
13719 link_all_deplibs_CXX=yes
13722 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13723 hardcode_libdir_separator_CXX=:
13724 inherit_rpath_CXX=yes
13727 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13728 case $cc_basename in
13730 # Kuck and Associates, Inc. (KAI) C++ Compiler
13732 # KCC will only create a shared library if the output file
13733 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13734 # to its proper name (with version) after linking.
13735 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv -f \$templib $lib'
13736 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv -f \$templib $lib'
13737 # Commands to make compiler produce verbose output that lists
13738 # what "hidden" libraries, object files and flags are used when
13739 # linking a shared library.
13741 # There doesn't appear to be a way to prevent this compiler from
13742 # explicitly linking system object files so we need to strip them
13743 # from the output so that they don't get included in the library
13745 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13747 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13748 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13750 # Archives containing C++ object files must be created using
13751 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13752 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13757 # version 8.0 and above of icpc choke on multiply defined symbols
13758 # if we add $predep_objects and $postdep_objects, however 7.1 and
13759 # earlier do not add the objects themselves.
13760 case `$CC -V 2>&1` in
13762 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13763 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13765 *) # Version 8.0 or newer
13768 ia64*) tmp_idyn=' -i_dynamic';;
13770 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13771 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13774 archive_cmds_need_lc_CXX=no
13775 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13776 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13777 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13780 # Portland Group C++ compiler
13782 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13783 prelink_cmds_CXX='tpldir=Template.dir~
13785 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13786 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13787 old_archive_cmds_CXX='tpldir=Template.dir~
13789 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13790 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13792 archive_cmds_CXX='tpldir=Template.dir~
13794 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13795 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13796 archive_expsym_cmds_CXX='tpldir=Template.dir~
13798 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13799 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13801 *) # Version 6 and above use weak symbols
13802 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13803 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13807 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
13808 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13809 whole_archive_flag_spec_CXX='$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'
13813 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13814 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
13816 runpath_var=LD_RUN_PATH
13817 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13818 hardcode_libdir_separator_CXX=:
13820 # Commands to make compiler produce verbose output that lists
13821 # what "hidden" libraries, object files and flags are used when
13822 # linking a shared library.
13824 # There doesn't appear to be a way to prevent this compiler from
13825 # explicitly linking system object files so we need to strip them
13826 # from the output so that they don't get included in the library
13828 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13830 xl* | mpixl* | bgxl*)
13831 # IBM XL 8.0 on PPC, with GNU ld
13832 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13833 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13834 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13835 if test yes = "$supports_anon_versioning"; then
13836 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13837 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13838 echo "local: *; };" >> $output_objdir/$libname.ver~
13839 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13843 case `$CC -V 2>&1 | sed 5q` in
13846 no_undefined_flag_CXX=' -zdefs'
13847 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13848 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
13849 hardcode_libdir_flag_spec_CXX='-R$libdir'
13850 whole_archive_flag_spec_CXX='$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'
13851 compiler_needs_object_CXX=yes
13853 # Not sure whether something based on
13854 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13856 output_verbose_link_cmd='func_echo_all'
13858 # Archives containing C++ object files must be created using
13859 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13860 # necessary to make sure instantiated templates are included
13862 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13870 # FIXME: insert proper C++ library support
13875 # FIXME: insert proper C++ library support
13880 case $cc_basename in
13882 # FIXME: insert proper C++ library support
13886 # FIXME: insert proper C++ library support
13893 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13894 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13896 hardcode_libdir_flag_spec_CXX='-R$libdir'
13897 hardcode_direct_CXX=yes
13898 hardcode_shlibpath_var_CXX=no
13900 # Workaround some broken pre-1.5 toolchains
13901 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13908 openbsd* | bitrig*)
13909 if test -f /usr/libexec/ld.so; then
13910 hardcode_direct_CXX=yes
13911 hardcode_shlibpath_var_CXX=no
13912 hardcode_direct_absolute_CXX=yes
13913 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13914 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13915 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
13916 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
13917 export_dynamic_flag_spec_CXX='$wl-E'
13918 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13920 output_verbose_link_cmd=func_echo_all
13926 osf3* | osf4* | osf5*)
13927 case $cc_basename in
13929 # Kuck and Associates, Inc. (KAI) C++ Compiler
13931 # KCC will only create a shared library if the output file
13932 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13933 # to its proper name (with version) after linking.
13934 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv -f \$templib $lib'
13936 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13937 hardcode_libdir_separator_CXX=:
13939 # Archives containing C++ object files must be created using
13940 # the KAI C++ compiler.
13942 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13943 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13947 # Rational C++ 2.4.1
13948 # FIXME: insert proper C++ library support
13954 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13955 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
13956 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13959 allow_undefined_flag_CXX=' -expect_unresolved \*'
13960 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
13961 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13962 echo "-hidden">> $lib.exp~
13963 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
13965 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13969 hardcode_libdir_separator_CXX=:
13971 # Commands to make compiler produce verbose output that lists
13972 # what "hidden" libraries, object files and flags are used when
13973 # linking a shared library.
13975 # There doesn't appear to be a way to prevent this compiler from
13976 # explicitly linking system object files so we need to strip them
13977 # from the output so that they don't get included in the library
13979 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13982 if test yes,no = "$GXX,$with_gnu_ld"; then
13983 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13986 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
13989 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
13993 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13994 hardcode_libdir_separator_CXX=:
13996 # Commands to make compiler produce verbose output that lists
13997 # what "hidden" libraries, object files and flags are used when
13998 # linking a shared library.
13999 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14002 # FIXME: insert proper C++ library support
14010 # FIXME: insert proper C++ library support
14015 case $cc_basename in
14018 # FIXME: insert proper C++ library support
14023 # FIXME: insert proper C++ library support
14027 # FIXME: insert proper C++ library support
14034 case $cc_basename in
14036 # Sun C++ 4.2, 5.x and Centerline C++
14037 archive_cmds_need_lc_CXX=yes
14038 no_undefined_flag_CXX=' -zdefs'
14039 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14040 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14041 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14043 hardcode_libdir_flag_spec_CXX='-R$libdir'
14044 hardcode_shlibpath_var_CXX=no
14046 solaris2.[0-5] | solaris2.[0-5].*) ;;
14048 # The compiler driver will combine and reorder linker options,
14049 # but understands '-z linker_flag'.
14050 # Supported since Solaris 2.6 (maybe 2.5.1?)
14051 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14054 link_all_deplibs_CXX=yes
14056 output_verbose_link_cmd='func_echo_all'
14058 # Archives containing C++ object files must be created using
14059 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14060 # necessary to make sure instantiated templates are included
14062 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14065 # Green Hills C++ Compiler
14066 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14068 # The C++ compiler must be used to create the archive.
14069 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14072 # GNU C++ compiler with Solaris linker
14073 if test yes,no = "$GXX,$with_gnu_ld"; then
14074 no_undefined_flag_CXX=' $wl-z ${wl}defs'
14075 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14076 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14077 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14078 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14080 # Commands to make compiler produce verbose output that lists
14081 # what "hidden" libraries, object files and flags are used when
14082 # linking a shared library.
14083 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14085 # g++ 2.7 appears to require '-G' NOT '-shared' on this
14087 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14088 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14089 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14091 # Commands to make compiler produce verbose output that lists
14092 # what "hidden" libraries, object files and flags are used when
14093 # linking a shared library.
14094 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14097 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14099 solaris2.[0-5] | solaris2.[0-5].*) ;;
14101 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14109 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14110 no_undefined_flag_CXX='$wl-z,text'
14111 archive_cmds_need_lc_CXX=no
14112 hardcode_shlibpath_var_CXX=no
14113 runpath_var='LD_RUN_PATH'
14115 case $cc_basename in
14117 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14118 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14121 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14122 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14127 sysv5* | sco3.2v5* | sco5v6*)
14128 # Note: We CANNOT use -z defs as we might desire, because we do not
14129 # link with -lc, and that would cause any symbols used from libc to
14130 # always be unresolved, which means just about no library would
14131 # ever link correctly. If we're not using GNU ld we use -z text
14132 # though, which does catch some bad symbols but isn't as heavy-handed
14134 no_undefined_flag_CXX='$wl-z,text'
14135 allow_undefined_flag_CXX='$wl-z,nodefs'
14136 archive_cmds_need_lc_CXX=no
14137 hardcode_shlibpath_var_CXX=no
14138 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14139 hardcode_libdir_separator_CXX=':'
14140 link_all_deplibs_CXX=yes
14141 export_dynamic_flag_spec_CXX='$wl-Bexport'
14142 runpath_var='LD_RUN_PATH'
14144 case $cc_basename in
14146 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14147 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14148 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14149 '"$old_archive_cmds_CXX"
14150 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14151 '"$reload_cmds_CXX"
14154 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14155 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14161 case $cc_basename in
14163 # NonStop-UX NCC 3.20
14164 # FIXME: insert proper C++ library support
14168 # FIXME: insert proper C++ library support
14175 # FIXME: insert proper C++ library support
14180 # FIXME: insert proper C++ library support
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14186 $as_echo "$ld_shlibs_CXX" >&6; }
14187 test no = "$ld_shlibs_CXX" && can_build_shared=no
14193 ## There is no encapsulation within the following macros, do not change
14194 ## the running order or otherwise move them around unless you know exactly
14195 ## what you are doing...
14196 # Dependencies to place before and after the object being linked:
14197 predep_objects_CXX=
14198 postdep_objects_CXX=
14201 compiler_lib_search_path_CXX=
14203 cat > conftest.$ac_ext <<_LT_EOF
14207 Foo (void) { a = 0; }
14214 _lt_libdeps_save_CFLAGS=$CFLAGS
14215 case "$CC $CFLAGS " in #(
14216 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14217 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14218 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14221 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14222 (eval $ac_compile) 2>&5
14224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14225 test $ac_status = 0; }; then
14226 # Parse the compiler output and extract the necessary
14227 # objects, libraries and library flags.
14229 # Sentinel used to keep track of whether or not we are before
14230 # the conftest object file.
14231 pre_test_object_deps_done=no
14233 for p in `eval "$output_verbose_link_cmd"`; do
14237 # Some compilers place space between "-{L,R}" and the path.
14238 # Remove the space.
14239 if test x-L = "$p" ||
14240 test x-R = "$p"; then
14245 # Expand the sysroot to ease extracting the directories later.
14246 if test -z "$prev"; then
14248 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14249 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14250 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14254 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14256 if test no = "$pre_test_object_deps_done"; then
14259 # Internal compiler library paths should come after those
14260 # provided the user. The postdeps already come after the
14261 # user supplied libs so there is no need to process them.
14262 if test -z "$compiler_lib_search_path_CXX"; then
14263 compiler_lib_search_path_CXX=$prev$p
14265 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14268 # The "-l" case would never come before the object being
14269 # linked, so don't bother handling this case.
14272 if test -z "$postdeps_CXX"; then
14273 postdeps_CXX=$prev$p
14275 postdeps_CXX="${postdeps_CXX} $prev$p"
14281 *.lto.$objext) ;; # Ignore GCC LTO objects
14283 # This assumes that the test object file only shows up
14284 # once in the compiler output.
14285 if test "$p" = "conftest.$objext"; then
14286 pre_test_object_deps_done=yes
14290 if test no = "$pre_test_object_deps_done"; then
14291 if test -z "$predep_objects_CXX"; then
14292 predep_objects_CXX=$p
14294 predep_objects_CXX="$predep_objects_CXX $p"
14297 if test -z "$postdep_objects_CXX"; then
14298 postdep_objects_CXX=$p
14300 postdep_objects_CXX="$postdep_objects_CXX $p"
14305 *) ;; # Ignore the rest.
14313 echo "libtool.m4: error: problem compiling CXX test program"
14316 $RM -f confest.$objext
14317 CFLAGS=$_lt_libdeps_save_CFLAGS
14319 # PORTME: override above test on systems where it is broken
14322 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14323 # hack all around it, let's just trust "g++" to DTRT.
14324 predep_objects_CXX=
14325 postdep_objects_CXX=
14331 case " $postdeps_CXX " in
14332 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14334 compiler_lib_search_dirs_CXX=
14335 if test -n "${compiler_lib_search_path_CXX}"; then
14336 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14369 lt_prog_compiler_wl_CXX=
14370 lt_prog_compiler_pic_CXX=
14371 lt_prog_compiler_static_CXX=
14374 # C++ specific cases for pic, static, wl, etc.
14375 if test yes = "$GXX"; then
14376 lt_prog_compiler_wl_CXX='-Wl,'
14377 lt_prog_compiler_static_CXX='-static'
14381 # All AIX code is PIC.
14382 if test ia64 = "$host_cpu"; then
14383 # AIX 5 now supports IA64 processor
14384 lt_prog_compiler_static_CXX='-Bstatic'
14386 lt_prog_compiler_pic_CXX='-fPIC'
14392 # see comment about AmigaOS4 .so support
14393 lt_prog_compiler_pic_CXX='-fPIC'
14396 # FIXME: we need at least 68020 code to build shared libraries, but
14397 # adding the '-m68020' flag to GCC prevents building anything better,
14399 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14404 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14405 # PIC is the default for these OSes.
14407 mingw* | cygwin* | os2* | pw32* | cegcc*)
14408 # This hack is so that the source file can tell whether it is being
14409 # built for inclusion in a dll (and should export symbols for example).
14410 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14411 # (--disable-auto-import) libraries
14412 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14415 lt_prog_compiler_static_CXX='$wl-static'
14419 darwin* | rhapsody*)
14420 # PIC is the default on this platform
14421 # Common symbols not allowed in MH_DYLIB files
14422 lt_prog_compiler_pic_CXX='-fno-common'
14425 # DJGPP does not support shared libraries at all
14426 lt_prog_compiler_pic_CXX=
14429 # PIC is the default for Haiku.
14430 # The "-static" flag exists, but is broken.
14431 lt_prog_compiler_static_CXX=
14434 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14435 # Instead, we relocate shared libraries at runtime.
14438 if test -d /usr/nec; then
14439 lt_prog_compiler_pic_CXX=-Kconform_pic
14443 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14444 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14445 # sets the default TLS model and affects inlining.
14450 lt_prog_compiler_pic_CXX='-fPIC'
14455 # QNX uses GNU C++, but need to define -shared option too, otherwise
14456 # it will coredump.
14457 lt_prog_compiler_pic_CXX='-fPIC -shared'
14460 lt_prog_compiler_pic_CXX='-fPIC'
14466 # All AIX code is PIC.
14467 if test ia64 = "$host_cpu"; then
14468 # AIX 5 now supports IA64 processor
14469 lt_prog_compiler_static_CXX='-Bstatic'
14471 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14475 case $cc_basename in
14477 # Green Hills C++ Compiler
14478 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14482 mingw* | cygwin* | os2* | pw32* | cegcc*)
14483 # This hack is so that the source file can tell whether it is being
14484 # built for inclusion in a dll (and should export symbols for example).
14485 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14488 case $cc_basename in
14490 lt_prog_compiler_pic_CXX='-KPIC'
14493 # Green Hills C++ Compiler
14494 lt_prog_compiler_pic_CXX='-pic'
14500 freebsd* | dragonfly*)
14501 # FreeBSD uses GNU C++
14503 hpux9* | hpux10* | hpux11*)
14504 case $cc_basename in
14506 lt_prog_compiler_wl_CXX='-Wl,'
14507 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14508 if test ia64 != "$host_cpu"; then
14509 lt_prog_compiler_pic_CXX='+Z'
14513 lt_prog_compiler_wl_CXX='-Wl,'
14514 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14520 lt_prog_compiler_pic_CXX='+Z'
14529 # This is c89, which is MS Visual C++ (no shared libs)
14530 # Anyone wants to do a port?
14532 irix5* | irix6* | nonstopux*)
14533 case $cc_basename in
14535 lt_prog_compiler_wl_CXX='-Wl,'
14536 lt_prog_compiler_static_CXX='-non_shared'
14537 # CC pic flag -KPIC is the default.
14543 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14544 case $cc_basename in
14547 lt_prog_compiler_wl_CXX='--backend -Wl,'
14548 lt_prog_compiler_pic_CXX='-fPIC'
14551 # old Intel C++ for x86_64, which still supported -KPIC.
14552 lt_prog_compiler_wl_CXX='-Wl,'
14553 lt_prog_compiler_pic_CXX='-KPIC'
14554 lt_prog_compiler_static_CXX='-static'
14557 # Intel C++, used to be incompatible with GCC.
14558 # ICC 10 doesn't accept -KPIC any more.
14559 lt_prog_compiler_wl_CXX='-Wl,'
14560 lt_prog_compiler_pic_CXX='-fPIC'
14561 lt_prog_compiler_static_CXX='-static'
14564 # Portland Group C++ compiler
14565 lt_prog_compiler_wl_CXX='-Wl,'
14566 lt_prog_compiler_pic_CXX='-fpic'
14567 lt_prog_compiler_static_CXX='-Bstatic'
14571 # Make sure the PIC flag is empty. It appears that all Alpha
14572 # Linux and Compaq Tru64 Unix objects are PIC.
14573 lt_prog_compiler_pic_CXX=
14574 lt_prog_compiler_static_CXX='-non_shared'
14576 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14577 # IBM XL 8.0, 9.0 on PPC and BlueGene
14578 lt_prog_compiler_wl_CXX='-Wl,'
14579 lt_prog_compiler_pic_CXX='-qpic'
14580 lt_prog_compiler_static_CXX='-qstaticlink'
14583 case `$CC -V 2>&1 | sed 5q` in
14586 lt_prog_compiler_pic_CXX='-KPIC'
14587 lt_prog_compiler_static_CXX='-Bstatic'
14588 lt_prog_compiler_wl_CXX='-Qoption ld '
14599 case $cc_basename in
14601 lt_prog_compiler_pic_CXX='-W c,exportall'
14607 netbsd* | netbsdelf*-gnu)
14610 # QNX uses GNU C++, but need to define -shared option too, otherwise
14611 # it will coredump.
14612 lt_prog_compiler_pic_CXX='-fPIC -shared'
14614 osf3* | osf4* | osf5*)
14615 case $cc_basename in
14617 lt_prog_compiler_wl_CXX='--backend -Wl,'
14620 # Rational C++ 2.4.1
14621 lt_prog_compiler_pic_CXX='-pic'
14624 # Digital/Compaq C++
14625 lt_prog_compiler_wl_CXX='-Wl,'
14626 # Make sure the PIC flag is empty. It appears that all Alpha
14627 # Linux and Compaq Tru64 Unix objects are PIC.
14628 lt_prog_compiler_pic_CXX=
14629 lt_prog_compiler_static_CXX='-non_shared'
14638 case $cc_basename in
14640 # Sun C++ 4.2, 5.x and Centerline C++
14641 lt_prog_compiler_pic_CXX='-KPIC'
14642 lt_prog_compiler_static_CXX='-Bstatic'
14643 lt_prog_compiler_wl_CXX='-Qoption ld '
14646 # Green Hills C++ Compiler
14647 lt_prog_compiler_pic_CXX='-PIC'
14654 case $cc_basename in
14657 lt_prog_compiler_pic_CXX='-pic'
14658 lt_prog_compiler_static_CXX='-Bstatic'
14662 lt_prog_compiler_pic_CXX='-pic'
14668 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14669 case $cc_basename in
14671 lt_prog_compiler_wl_CXX='-Wl,'
14672 lt_prog_compiler_pic_CXX='-KPIC'
14673 lt_prog_compiler_static_CXX='-Bstatic'
14678 case $cc_basename in
14680 # NonStop-UX NCC 3.20
14681 lt_prog_compiler_pic_CXX='-KPIC'
14690 lt_prog_compiler_can_build_shared_CXX=no
14696 # For platforms that do not support PIC, -DPIC is meaningless:
14698 lt_prog_compiler_pic_CXX=
14701 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14706 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14707 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14708 $as_echo_n "(cached) " >&6
14710 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14713 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14714 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14717 # Check to make sure the PIC flag actually works.
14719 if test -n "$lt_prog_compiler_pic_CXX"; then
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14721 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14722 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14723 $as_echo_n "(cached) " >&6
14725 lt_cv_prog_compiler_pic_works_CXX=no
14726 ac_outfile=conftest.$ac_objext
14727 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14728 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
14729 # Insert the option either (1) after the last *FLAGS variable, or
14730 # (2) before a word containing "conftest.", or (3) at the end.
14731 # Note that $ac_compile itself does not contain backslashes and begins
14732 # with a dollar sign (not a hyphen), so the echo should work correctly.
14733 # The option is referenced via a variable to avoid confusing sed.
14734 lt_compile=`echo "$ac_compile" | $SED \
14735 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14736 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14737 -e 's:$: $lt_compiler_flag:'`
14738 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14739 (eval "$lt_compile" 2>conftest.err)
14741 cat conftest.err >&5
14742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 if (exit $ac_status) && test -s "$ac_outfile"; then
14744 # The compiler can only warn and ignore the option if not recognized
14745 # So say no if there are warnings other than the usual output.
14746 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14747 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14748 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14749 lt_cv_prog_compiler_pic_works_CXX=yes
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14756 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14758 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
14759 case $lt_prog_compiler_pic_CXX in
14761 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14764 lt_prog_compiler_pic_CXX=
14765 lt_prog_compiler_can_build_shared_CXX=no
14775 # Check to make sure the static flag actually works.
14777 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14779 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14780 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14781 $as_echo_n "(cached) " >&6
14783 lt_cv_prog_compiler_static_works_CXX=no
14784 save_LDFLAGS=$LDFLAGS
14785 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14786 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14787 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14788 # The linker can only warn and ignore the option if not recognized
14789 # So say no if there are warnings
14790 if test -s conftest.err; then
14791 # Append any errors to the config.log.
14792 cat conftest.err 1>&5
14793 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14794 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14795 if diff conftest.exp conftest.er2 >/dev/null; then
14796 lt_cv_prog_compiler_static_works_CXX=yes
14799 lt_cv_prog_compiler_static_works_CXX=yes
14803 LDFLAGS=$save_LDFLAGS
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14807 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14809 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
14812 lt_prog_compiler_static_CXX=
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14819 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14820 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14821 $as_echo_n "(cached) " >&6
14823 lt_cv_prog_compiler_c_o_CXX=no
14824 $RM -r conftest 2>/dev/null
14828 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14830 lt_compiler_flag="-o out/conftest2.$ac_objext"
14831 # Insert the option either (1) after the last *FLAGS variable, or
14832 # (2) before a word containing "conftest.", or (3) at the end.
14833 # Note that $ac_compile itself does not contain backslashes and begins
14834 # with a dollar sign (not a hyphen), so the echo should work correctly.
14835 lt_compile=`echo "$ac_compile" | $SED \
14836 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14837 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14838 -e 's:$: $lt_compiler_flag:'`
14839 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14840 (eval "$lt_compile" 2>out/conftest.err)
14842 cat out/conftest.err >&5
14843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14846 # The compiler can only warn and ignore the option if not recognized
14847 # So say no if there are warnings
14848 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14849 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14850 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14851 lt_cv_prog_compiler_c_o_CXX=yes
14856 # SGI C++ compiler will create directory out/ii_files/ for
14857 # template instantiation
14858 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14859 $RM out/* && rmdir out
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14866 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14871 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14872 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14873 $as_echo_n "(cached) " >&6
14875 lt_cv_prog_compiler_c_o_CXX=no
14876 $RM -r conftest 2>/dev/null
14880 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14882 lt_compiler_flag="-o out/conftest2.$ac_objext"
14883 # Insert the option either (1) after the last *FLAGS variable, or
14884 # (2) before a word containing "conftest.", or (3) at the end.
14885 # Note that $ac_compile itself does not contain backslashes and begins
14886 # with a dollar sign (not a hyphen), so the echo should work correctly.
14887 lt_compile=`echo "$ac_compile" | $SED \
14888 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14889 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14890 -e 's:$: $lt_compiler_flag:'`
14891 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14892 (eval "$lt_compile" 2>out/conftest.err)
14894 cat out/conftest.err >&5
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14898 # The compiler can only warn and ignore the option if not recognized
14899 # So say no if there are warnings
14900 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14901 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14902 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14903 lt_cv_prog_compiler_c_o_CXX=yes
14908 # SGI C++ compiler will create directory out/ii_files/ for
14909 # template instantiation
14910 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14911 $RM out/* && rmdir out
14917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14918 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14923 hard_links=nottested
14924 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
14925 # do not overwrite the value of need_locks provided by the user
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14927 $as_echo_n "checking if we can lock with hard links... " >&6; }
14930 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14932 ln conftest.a conftest.b 2>&5 || hard_links=no
14933 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14935 $as_echo "$hard_links" >&6; }
14936 if test no = "$hard_links"; then
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
14938 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14948 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14950 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14951 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14954 # If we're using GNU nm, then we don't want the "-C" option.
14955 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
14956 # Without the "-l" option, or with the "-B" option, AIX nm treats
14957 # weak defined symbols like other global defined symbols, whereas
14958 # GNU nm marks them as "W".
14959 # While the 'weak' keyword is ignored in the Export File, we need
14960 # it in the Import File for the 'aix-soname' feature, so we have
14961 # to replace the "-B" option with "-P" for AIX nm.
14962 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14963 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
14965 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
14969 export_symbols_cmds_CXX=$ltdll_cmds
14971 cygwin* | mingw* | cegcc*)
14972 case $cc_basename in
14974 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14977 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14978 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14982 linux* | k*bsd*-gnu | gnu*)
14983 link_all_deplibs_CXX=no
14986 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14991 $as_echo "$ld_shlibs_CXX" >&6; }
14992 test no = "$ld_shlibs_CXX" && can_build_shared=no
14994 with_gnu_ld_CXX=$with_gnu_ld
15002 # Do we need to explicitly link libc?
15004 case "x$archive_cmds_need_lc_CXX" in
15006 # Assume -lc should be added
15007 archive_cmds_need_lc_CXX=yes
15009 if test yes,yes = "$GCC,$enable_shared"; then
15010 case $archive_cmds_CXX in
15012 # FIXME: we may have to deal with multi-command sequences.
15015 # Test whether the compiler implicitly links with -lc since on some
15016 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15017 # to ld, don't add -lc before -lgcc.
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15019 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15020 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15021 $as_echo_n "(cached) " >&6
15024 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15026 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15027 (eval $ac_compile) 2>&5
15029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15030 test $ac_status = 0; } 2>conftest.err; then
15033 libobjs=conftest.$ac_objext
15035 wl=$lt_prog_compiler_wl_CXX
15036 pic_flag=$lt_prog_compiler_pic_CXX
15042 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15043 allow_undefined_flag_CXX=
15044 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15045 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15048 test $ac_status = 0; }
15050 lt_cv_archive_cmds_need_lc_CXX=no
15052 lt_cv_archive_cmds_need_lc_CXX=yes
15054 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15056 cat conftest.err 1>&5
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15062 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15063 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15132 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15134 library_names_spec=
15135 libname_spec='lib$name'
15139 postuninstall_cmds=
15143 shlibpath_overrides_runpath=unknown
15145 dynamic_linker="$host_os ld.so"
15146 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15147 need_lib_prefix=unknown
15148 hardcode_into_libs=no
15150 # when you set need_version to no, make sure it does not cause -set_version
15151 # flags to be left without arguments
15152 need_version=unknown
15158 version_type=linux # correct to gnu/linux during the next big refactor
15159 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15160 shlibpath_var=LIBPATH
15162 # AIX 3 has no versioning support, so we append a major version to the name.
15163 soname_spec='$libname$release$shared_ext$major'
15167 version_type=linux # correct to gnu/linux during the next big refactor
15170 hardcode_into_libs=yes
15171 if test ia64 = "$host_cpu"; then
15172 # AIX 5 supports IA64
15173 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15174 shlibpath_var=LD_LIBRARY_PATH
15176 # With GCC up to 2.95.x, collect2 would create an import file
15177 # for dependence libraries. The import file would start with
15178 # the line '#! .'. This would cause the generated library to
15179 # depend on '.', always an invalid library. This was fixed in
15180 # development snapshots of GCC prior to 3.0.
15182 aix4 | aix4.[01] | aix4.[01].*)
15183 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15185 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15188 can_build_shared=no
15192 # Using Import Files as archive members, it is possible to support
15193 # filename-based versioning of shared library archives on AIX. While
15194 # this would work for both with and without runtime linking, it will
15195 # prevent static linking of such archives. So we do filename-based
15196 # shared library versioning with .so extension only, which is used
15197 # when both runtime linking and shared linking is enabled.
15198 # Unfortunately, runtime linking may impact performance, so we do
15199 # not want this to be the default eventually. Also, we use the
15200 # versioned .so libs for executables only if there is the -brtl
15201 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15202 # To allow for filename-based versioning support, we need to create
15203 # libNAME.so.V as an archive file, containing:
15204 # *) an Import File, referring to the versioned filename of the
15205 # archive as well as the shared archive member, telling the
15206 # bitwidth (32 or 64) of that shared object, and providing the
15207 # list of exported symbols of that shared object, eventually
15208 # decorated with the 'weak' keyword
15209 # *) the shared object with the F_LOADONLY flag set, to really avoid
15210 # it being seen by the linker.
15211 # At run time we better use the real file rather than another symlink,
15212 # but for link time we create the symlink libNAME.so -> libNAME.so.V
15214 case $with_aix_soname,$aix_use_runtimelinking in
15215 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15216 # soname into executable. Probably we can add versioning support to
15217 # collect2, so additional links can be useful in future.
15218 aix,yes) # traditional libtool
15219 dynamic_linker='AIX unversionable lib.so'
15220 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15221 # instead of lib<name>.a to let people know that these are not
15222 # typical AIX shared libraries.
15223 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15225 aix,no) # traditional AIX only
15226 dynamic_linker='AIX lib.a(lib.so.V)'
15227 # We preserve .a as extension for shared libraries through AIX4.2
15228 # and later when we are not doing run time linking.
15229 library_names_spec='$libname$release.a $libname.a'
15230 soname_spec='$libname$release$shared_ext$major'
15232 svr4,*) # full svr4 only
15233 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15234 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15235 # We do not specify a path in Import Files, so LIBPATH fires.
15236 shlibpath_overrides_runpath=yes
15238 *,yes) # both, prefer svr4
15239 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15240 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15241 # unpreferred sharedlib libNAME.a needs extra handling
15242 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
15243 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
15244 # We do not specify a path in Import Files, so LIBPATH fires.
15245 shlibpath_overrides_runpath=yes
15247 *,no) # both, prefer aix
15248 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15249 library_names_spec='$libname$release.a $libname.a'
15250 soname_spec='$libname$release$shared_ext$major'
15251 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15252 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
15253 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
15256 shlibpath_var=LIBPATH
15263 # Since July 2007 AmigaOS4 officially supports .so libraries.
15264 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15265 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15268 library_names_spec='$libname.ixlibrary $libname.a'
15269 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15270 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
15276 library_names_spec='$libname$shared_ext'
15277 dynamic_linker="$host_os ld.so"
15278 shlibpath_var=LIBRARY_PATH
15282 version_type=linux # correct to gnu/linux during the next big refactor
15284 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15285 soname_spec='$libname$release$shared_ext$major'
15286 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15287 shlibpath_var=LD_LIBRARY_PATH
15288 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15289 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15290 # the default ld.so.conf also contains /usr/contrib/lib and
15291 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15292 # libtool to hard-code these into programs
15295 cygwin* | mingw* | pw32* | cegcc*)
15296 version_type=windows
15301 case $GCC,$cc_basename in
15304 library_names_spec='$libname.dll.a'
15305 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15306 postinstall_cmds='base_file=`basename \$file`~
15307 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15308 dldir=$destdir/`dirname \$dlpath`~
15309 test -d \$dldir || mkdir -p \$dldir~
15310 $install_prog $dir/$dlname \$dldir/$dlname~
15311 chmod a+x \$dldir/$dlname~
15312 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15313 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15315 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15316 dlpath=$dir/\$dldll~
15318 shlibpath_overrides_runpath=yes
15322 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15323 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15327 # MinGW DLLs use traditional 'lib' prefix
15328 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15331 # pw32 DLLs use 'pw' prefix rather than 'lib'
15332 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15335 dynamic_linker='Win32 ld.exe'
15340 libname_spec='$name'
15341 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15342 library_names_spec='$libname.dll.lib'
15346 sys_lib_search_path_spec=
15349 for lt_path in $LIB
15352 # Let DOS variable expansion print the short 8.3 style file name.
15353 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15354 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15357 # Convert to MSYS style.
15358 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15361 # Convert to unix form, then to dos form, then back to unix form
15362 # but this time dos style (no spaces!) so that the unix form looks
15363 # like /cygdrive/c/PROGRA~1:/cygdr...
15364 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15365 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15366 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15369 sys_lib_search_path_spec=$LIB
15370 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15371 # It is most probably a Windows format PATH.
15372 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15374 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15376 # FIXME: find the short name or the path components, as spaces are
15377 # common. (e.g. "Program Files" -> "PROGRA~1")
15381 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15382 postinstall_cmds='base_file=`basename \$file`~
15383 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15384 dldir=$destdir/`dirname \$dlpath`~
15385 test -d \$dldir || mkdir -p \$dldir~
15386 $install_prog $dir/$dlname \$dldir/$dlname'
15387 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15388 dlpath=$dir/\$dldll~
15390 shlibpath_overrides_runpath=yes
15391 dynamic_linker='Win32 link.exe'
15395 # Assume MSVC wrapper
15396 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15397 dynamic_linker='Win32 ld.exe'
15400 # FIXME: first we should search . and the directory the executable is in
15404 darwin* | rhapsody*)
15405 dynamic_linker="$host_os dyld"
15406 version_type=darwin
15409 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15410 soname_spec='$libname$release$major$shared_ext'
15411 shlibpath_overrides_runpath=yes
15412 shlibpath_var=DYLD_LIBRARY_PATH
15413 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15415 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15419 version_type=linux # correct to gnu/linux during the next big refactor
15422 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15423 soname_spec='$libname$release$shared_ext$major'
15424 shlibpath_var=LD_LIBRARY_PATH
15427 freebsd* | dragonfly*)
15428 # DragonFly does not have aout. When/if they implement a new
15429 # versioning mechanism, adjust this.
15430 if test -x /usr/bin/objformat; then
15431 objformat=`/usr/bin/objformat`
15434 freebsd[23].*) objformat=aout ;;
15435 *) objformat=elf ;;
15438 version_type=freebsd-$objformat
15439 case $version_type in
15441 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15442 soname_spec='$libname$release$shared_ext$major'
15447 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15451 shlibpath_var=LD_LIBRARY_PATH
15454 shlibpath_overrides_runpath=yes
15456 freebsd3.[01]* | freebsdelf3.[01]*)
15457 shlibpath_overrides_runpath=yes
15458 hardcode_into_libs=yes
15460 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15461 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15462 shlibpath_overrides_runpath=no
15463 hardcode_into_libs=yes
15465 *) # from 4.6 on, and DragonFly
15466 shlibpath_overrides_runpath=yes
15467 hardcode_into_libs=yes
15473 version_type=linux # correct to gnu/linux during the next big refactor
15476 dynamic_linker="$host_os runtime_loader"
15477 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15478 soname_spec='$libname$release$shared_ext$major'
15479 shlibpath_var=LIBRARY_PATH
15480 shlibpath_overrides_runpath=no
15481 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15482 hardcode_into_libs=yes
15485 hpux9* | hpux10* | hpux11*)
15486 # Give a soname corresponding to the major version so that dld.sl refuses to
15487 # link against other versions.
15494 hardcode_into_libs=yes
15495 dynamic_linker="$host_os dld.so"
15496 shlibpath_var=LD_LIBRARY_PATH
15497 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15498 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15499 soname_spec='$libname$release$shared_ext$major'
15500 if test 32 = "$HPUX_IA64_MODE"; then
15501 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15502 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15504 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15505 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15510 hardcode_into_libs=yes
15511 dynamic_linker="$host_os dld.sl"
15512 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15513 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15514 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15515 soname_spec='$libname$release$shared_ext$major'
15516 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15517 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15521 dynamic_linker="$host_os dld.sl"
15522 shlibpath_var=SHLIB_PATH
15523 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15524 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15525 soname_spec='$libname$release$shared_ext$major'
15528 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15529 postinstall_cmds='chmod 555 $lib'
15530 # or fails outright, so override atomically:
15531 install_override_mode=555
15535 version_type=linux # correct to gnu/linux during the next big refactor
15538 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15539 soname_spec='$libname$release$shared_ext$major'
15540 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15541 shlibpath_var=LD_LIBRARY_PATH
15542 shlibpath_overrides_runpath=no
15543 hardcode_into_libs=yes
15546 irix5* | irix6* | nonstopux*)
15548 nonstopux*) version_type=nonstopux ;;
15550 if test yes = "$lt_cv_prog_gnu_ld"; then
15551 version_type=linux # correct to gnu/linux during the next big refactor
15558 soname_spec='$libname$release$shared_ext$major'
15559 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15561 irix5* | nonstopux*)
15562 libsuff= shlibsuff=
15565 case $LD in # libtool.m4 will add one of these switches to LD
15566 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15567 libsuff= shlibsuff= libmagic=32-bit;;
15568 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15569 libsuff=32 shlibsuff=N32 libmagic=N32;;
15570 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15571 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15572 *) libsuff= shlibsuff= libmagic=never-match;;
15576 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15577 shlibpath_overrides_runpath=no
15578 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15579 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15580 hardcode_into_libs=yes
15583 # No shared lib support for Linux oldld, aout, or coff.
15584 linux*oldld* | linux*aout* | linux*coff*)
15589 version_type=none # Android doesn't support versioned libraries.
15592 library_names_spec='$libname$release$shared_ext'
15593 soname_spec='$libname$release$shared_ext'
15595 shlibpath_var=LD_LIBRARY_PATH
15596 shlibpath_overrides_runpath=yes
15598 # This implies no fast_install, which is unacceptable.
15599 # Some rework will be needed to allow for fast_install
15600 # before this can be enabled.
15601 hardcode_into_libs=yes
15603 dynamic_linker='Android linker'
15604 # Don't embed -rpath directories since the linker doesn't support them.
15605 hardcode_libdir_flag_spec_CXX='-L$libdir'
15608 # This must be glibc/ELF.
15609 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15610 version_type=linux # correct to gnu/linux during the next big refactor
15613 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15614 soname_spec='$libname$release$shared_ext$major'
15615 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15616 shlibpath_var=LD_LIBRARY_PATH
15617 shlibpath_overrides_runpath=no
15619 # Some binutils ld are patched to set DT_RUNPATH
15620 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15621 $as_echo_n "(cached) " >&6
15623 lt_cv_shlibpath_overrides_runpath=no
15624 save_LDFLAGS=$LDFLAGS
15625 save_libdir=$libdir
15626 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15627 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15629 /* end confdefs.h. */
15639 if ac_fn_cxx_try_link "$LINENO"; then :
15640 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15641 lt_cv_shlibpath_overrides_runpath=yes
15644 rm -f core conftest.err conftest.$ac_objext \
15645 conftest$ac_exeext conftest.$ac_ext
15646 LDFLAGS=$save_LDFLAGS
15647 libdir=$save_libdir
15651 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15653 # This implies no fast_install, which is unacceptable.
15654 # Some rework will be needed to allow for fast_install
15655 # before this can be enabled.
15656 hardcode_into_libs=yes
15658 # Ideally, we could use ldconfig to report *all* directores which are
15659 # searched for libraries, however this is still not possible. Aside from not
15660 # being certain /sbin/ldconfig is available, command
15661 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15662 # even though it is searched at run-time. Try to do the best guess by
15663 # appending ld.so.conf contents (and includes) to the search path.
15664 if test -f /etc/ld.so.conf; then
15665 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' ' '`
15666 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15669 # We used to test for /lib/ld.so.1 and disable shared libraries on
15670 # powerpc, because MkLinux only supported shared libraries with the
15671 # GNU dynamic linker. Since this was broken with cross compilers,
15672 # most powerpc-linux boxes support dynamic linking these days and
15673 # people can always --disable-shared, the test was removed, and we
15674 # assume the GNU/Linux dynamic linker is in use.
15675 dynamic_linker='GNU/Linux ld.so'
15682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15683 soname_spec='${libname}${release}${shared_ext}$major'
15684 shlibpath_var=LD_LIBRARY_PATH
15685 shlibpath_overrides_runpath=no
15686 hardcode_into_libs=yes
15687 dynamic_linker='NetBSD ld.elf_so'
15694 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15695 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15696 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15697 dynamic_linker='NetBSD (a.out) ld.so'
15699 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15700 soname_spec='$libname$release$shared_ext$major'
15701 dynamic_linker='NetBSD ld.elf_so'
15703 shlibpath_var=LD_LIBRARY_PATH
15704 shlibpath_overrides_runpath=yes
15705 hardcode_into_libs=yes
15709 version_type=linux # correct to gnu/linux during the next big refactor
15710 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15711 shlibpath_var=LD_LIBRARY_PATH
15712 shlibpath_overrides_runpath=yes
15719 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15720 soname_spec='$libname$release$shared_ext$major'
15721 shlibpath_var=LD_LIBRARY_PATH
15722 shlibpath_overrides_runpath=no
15723 hardcode_into_libs=yes
15724 dynamic_linker='ldqnx.so'
15727 openbsd* | bitrig*)
15729 sys_lib_dlsearch_path_spec=/usr/lib
15731 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15736 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15737 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15738 shlibpath_var=LD_LIBRARY_PATH
15739 shlibpath_overrides_runpath=yes
15743 libname_spec='$name'
15744 version_type=windows
15748 # OS/2 can only load a DLL with a base name of 8 characters or less.
15749 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15750 v=$($ECHO $release$versuffix | tr -d .-);
15751 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15752 $ECHO $n$v`$shared_ext'
15753 library_names_spec='${libname}_dll.$libext'
15754 dynamic_linker='OS/2 ld.exe'
15755 shlibpath_var=BEGINLIBPATH
15756 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15757 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15758 postinstall_cmds='base_file=`basename \$file`~
15759 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15760 dldir=$destdir/`dirname \$dlpath`~
15761 test -d \$dldir || mkdir -p \$dldir~
15762 $install_prog $dir/$dlname \$dldir/$dlname~
15763 chmod a+x \$dldir/$dlname~
15764 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15765 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15767 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15768 dlpath=$dir/\$dldll~
15772 osf3* | osf4* | osf5*)
15776 soname_spec='$libname$release$shared_ext$major'
15777 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15778 shlibpath_var=LD_LIBRARY_PATH
15779 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15780 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15788 version_type=linux # correct to gnu/linux during the next big refactor
15791 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15792 soname_spec='$libname$release$shared_ext$major'
15793 shlibpath_var=LD_LIBRARY_PATH
15794 shlibpath_overrides_runpath=yes
15795 hardcode_into_libs=yes
15796 # ldd complains unless libraries are executable
15797 postinstall_cmds='chmod +x $lib'
15802 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15803 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15804 shlibpath_var=LD_LIBRARY_PATH
15805 shlibpath_overrides_runpath=yes
15806 if test yes = "$with_gnu_ld"; then
15813 version_type=linux # correct to gnu/linux during the next big refactor
15814 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15815 soname_spec='$libname$release$shared_ext$major'
15816 shlibpath_var=LD_LIBRARY_PATH
15817 case $host_vendor in
15819 shlibpath_overrides_runpath=no
15821 runpath_var=LD_RUN_PATH
15829 shlibpath_overrides_runpath=no
15830 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15836 if test -d /usr/nec; then
15837 version_type=linux # correct to gnu/linux during the next big refactor
15838 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15839 soname_spec='$libname$shared_ext.$major'
15840 shlibpath_var=LD_LIBRARY_PATH
15844 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15848 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15849 soname_spec='$libname$release$shared_ext$major'
15850 shlibpath_var=LD_LIBRARY_PATH
15851 shlibpath_overrides_runpath=yes
15852 hardcode_into_libs=yes
15853 if test yes = "$with_gnu_ld"; then
15854 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15856 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15859 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15863 sys_lib_dlsearch_path_spec='/usr/lib'
15867 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15868 version_type=linux # correct to gnu/linux during the next big refactor
15871 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15872 shlibpath_var=LD_LIBRARY_PATH
15873 shlibpath_overrides_runpath=no
15874 hardcode_into_libs=yes
15878 version_type=linux # correct to gnu/linux during the next big refactor
15879 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15880 soname_spec='$libname$release$shared_ext$major'
15881 shlibpath_var=LD_LIBRARY_PATH
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15889 $as_echo "$dynamic_linker" >&6; }
15890 test no = "$dynamic_linker" && can_build_shared=no
15892 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15893 if test yes = "$GCC"; then
15894 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15897 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15898 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15901 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15902 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15905 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15906 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15908 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15909 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15911 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15912 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15954 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15955 hardcode_action_CXX=
15956 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15957 test -n "$runpath_var_CXX" ||
15958 test yes = "$hardcode_automatic_CXX"; then
15960 # We can hardcode non-existent directories.
15961 if test no != "$hardcode_direct_CXX" &&
15962 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15963 # have to relink, otherwise we might link with an installed library
15964 # when we should be linking with a yet-to-be-installed one
15965 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
15966 test no != "$hardcode_minus_L_CXX"; then
15967 # Linking always hardcodes the temporary library directory.
15968 hardcode_action_CXX=relink
15970 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15971 hardcode_action_CXX=immediate
15974 # We cannot hardcode anything, or else we can only hardcode existing
15976 hardcode_action_CXX=unsupported
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15979 $as_echo "$hardcode_action_CXX" >&6; }
15981 if test relink = "$hardcode_action_CXX" ||
15982 test yes = "$inherit_rpath_CXX"; then
15983 # Fast installation is not supported
15984 enable_fast_install=no
15985 elif test yes = "$shlibpath_overrides_runpath" ||
15986 test no = "$enable_shared"; then
15987 # Fast installation is not necessary
15988 enable_fast_install=needless
15997 fi # test -n "$compiler"
16000 CFLAGS=$lt_save_CFLAGS
16004 with_gnu_ld=$lt_save_with_gnu_ld
16005 lt_cv_path_LDCXX=$lt_cv_path_LD
16006 lt_cv_path_LD=$lt_save_path_LD
16007 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16008 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16009 fi # test yes != "$_lt_caught_CXX_error"
16012 ac_cpp='$CPP $CPPFLAGS'
16013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16031 ac_config_commands="$ac_config_commands libtool"
16036 # Only expand once:
16043 ac_cpp='$CPP $CPPFLAGS'
16044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16050 # We used to check for pthread.h first, but this fails if pthread.h
16051 # requires special compiler flags (e.g. on True64 or Sequent).
16052 # It gets checked for in the link test anyway.
16054 # First of all, check if the user has set any of the PTHREAD_LIBS,
16055 # etcetera environment variables, and if threads linking works using
16057 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
16058 save_CFLAGS="$CFLAGS"
16059 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16061 LIBS="$PTHREAD_LIBS $LIBS"
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
16063 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
16064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16065 /* end confdefs.h. */
16067 /* Override any GCC internal prototype to avoid an error.
16068 Use char because int might match the return type of a GCC
16069 builtin and then its argument prototype would still apply. */
16073 char pthread_join ();
16077 return pthread_join ();
16082 if ac_fn_c_try_link "$LINENO"; then :
16085 rm -f core conftest.err conftest.$ac_objext \
16086 conftest$ac_exeext conftest.$ac_ext
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16088 $as_echo "$ax_pthread_ok" >&6; }
16089 if test x"$ax_pthread_ok" = xno; then
16094 CFLAGS="$save_CFLAGS"
16097 # We must check for the threads library under a number of different
16098 # names; the ordering is very important because some systems
16099 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16100 # libraries is broken (non-POSIX).
16102 # Create a list of thread flags to try. Items starting with a "-" are
16103 # C compiler flags, and other items are library names, except for "none"
16104 # which indicates that we try without any flags at all, and "pthread-config"
16105 # which is a program returning the flags for the Pth emulation library.
16107 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
16109 # The ordering *is* (sometimes) important. Some notes on the
16110 # individual items follow:
16112 # pthreads: AIX (must check this before -lpthread)
16113 # none: in case threads are in libc; should be tried before -Kthread and
16114 # other compiler flags to prevent continual compiler warnings
16115 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16116 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16117 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16118 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16119 # -pthreads: Solaris/gcc
16120 # -mthreads: Mingw32/gcc, Lynx/gcc
16121 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16122 # doesn't hurt to check since this sometimes defines pthreads too;
16123 # also defines -D_REENTRANT)
16124 # ... -mt is also the pthreads flag for HP/aCC
16125 # pthread: Linux, etcetera
16126 # --thread-safe: KAI C++
16127 # pthread-config: use pthread-config program (for GNU Pth library)
16132 # On Solaris (at least, for some versions), libc contains stubbed
16133 # (non-functional) versions of the pthreads routines, so link-based
16134 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
16135 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
16136 # a function called by this macro, so we could check for that, but
16137 # who knows whether they'll stub that too in a future libc.) So,
16138 # we'll just look for -pthreads and -lpthread first:
16140 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
16144 ax_pthread_flags="-pthread $ax_pthread_flags"
16148 # Clang doesn't consider unrecognized options an error unless we specify
16149 # -Werror. We throw in some extra Clang-specific options to ensure that
16150 # this doesn't happen for GCC, which also accepts -Werror.
16152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
16153 $as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
16154 save_CFLAGS="$CFLAGS"
16155 ax_pthread_extra_flags="-Werror"
16156 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
16157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16158 /* end confdefs.h. */
16168 if ac_fn_c_try_compile "$LINENO"; then :
16169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16170 $as_echo "yes" >&6; }
16172 ax_pthread_extra_flags=
16173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16174 $as_echo "no" >&6; }
16176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16177 CFLAGS="$save_CFLAGS"
16179 if test x"$ax_pthread_ok" = xno; then
16180 for flag in $ax_pthread_flags; do
16184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16185 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
16189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
16190 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
16191 PTHREAD_CFLAGS="$flag"
16195 # Extract the first word of "pthread-config", so it can be a program name with args.
16196 set dummy pthread-config; ac_word=$2
16197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16198 $as_echo_n "checking for $ac_word... " >&6; }
16199 if ${ac_cv_prog_ax_pthread_config+:} false; then :
16200 $as_echo_n "(cached) " >&6
16202 if test -n "$ax_pthread_config"; then
16203 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
16205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16206 for as_dir in $PATH
16209 test -z "$as_dir" && as_dir=.
16210 for ac_exec_ext in '' $ac_executable_extensions; do
16211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16212 ac_cv_prog_ax_pthread_config="yes"
16213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16220 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
16223 ax_pthread_config=$ac_cv_prog_ax_pthread_config
16224 if test -n "$ax_pthread_config"; then
16225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
16226 $as_echo "$ax_pthread_config" >&6; }
16228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16229 $as_echo "no" >&6; }
16233 if test x"$ax_pthread_config" = xno; then continue; fi
16234 PTHREAD_CFLAGS="`pthread-config --cflags`"
16235 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
16240 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
16241 PTHREAD_LIBS="-l$flag"
16246 save_CFLAGS="$CFLAGS"
16247 LIBS="$PTHREAD_LIBS $LIBS"
16248 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
16250 # Check for various functions. We must include pthread.h,
16251 # since some functions may be macros. (On the Sequent, we
16252 # need a special flag -Kthread to make this header compile.)
16253 # We check for pthread_join because it is in -lpthread on IRIX
16254 # while pthread_create is in libc. We check for pthread_attr_init
16255 # due to DEC craziness with -lpthreads. We check for
16256 # pthread_cleanup_push because it is one of the few pthread
16257 # functions on Solaris that doesn't have a non-functional libc stub.
16258 # We try pthread_create on general principles.
16259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16260 /* end confdefs.h. */
16261 #include <pthread.h>
16262 static void routine(void *a) { a = 0; }
16263 static void *start_routine(void *a) { return a; }
16267 pthread_t th; pthread_attr_t attr;
16268 pthread_create(&th, 0, start_routine, 0);
16269 pthread_join(th, 0);
16270 pthread_attr_init(&attr);
16271 pthread_cleanup_push(routine, 0);
16272 pthread_cleanup_pop(0) /* ; */
16277 if ac_fn_c_try_link "$LINENO"; then :
16280 rm -f core conftest.err conftest.$ac_objext \
16281 conftest$ac_exeext conftest.$ac_ext
16284 CFLAGS="$save_CFLAGS"
16286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16287 $as_echo "$ax_pthread_ok" >&6; }
16288 if test "x$ax_pthread_ok" = xyes; then
16297 # Various other checks:
16298 if test "x$ax_pthread_ok" = xyes; then
16300 LIBS="$PTHREAD_LIBS $LIBS"
16301 save_CFLAGS="$CFLAGS"
16302 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16304 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16306 $as_echo_n "checking for joinable pthread attribute... " >&6; }
16308 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16310 /* end confdefs.h. */
16311 #include <pthread.h>
16315 int attr = $attr; return attr /* ; */
16320 if ac_fn_c_try_link "$LINENO"; then :
16321 attr_name=$attr; break
16323 rm -f core conftest.err conftest.$ac_objext \
16324 conftest$ac_exeext conftest.$ac_ext
16326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
16327 $as_echo "$attr_name" >&6; }
16328 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
16330 cat >>confdefs.h <<_ACEOF
16331 #define PTHREAD_CREATE_JOINABLE $attr_name
16336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
16337 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
16340 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
16341 osf* | hpux*) flag="-D_REENTRANT";;
16343 if test "$GCC" = "yes"; then
16344 flag="-D_REENTRANT"
16346 # TODO: What about Clang on Solaris?
16347 flag="-mt -D_REENTRANT"
16351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
16352 $as_echo "$flag" >&6; }
16353 if test "x$flag" != xno; then
16354 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
16358 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
16359 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
16360 $as_echo_n "(cached) " >&6
16363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16364 /* end confdefs.h. */
16365 #include <pthread.h>
16369 int i = PTHREAD_PRIO_INHERIT;
16374 if ac_fn_c_try_link "$LINENO"; then :
16375 ax_cv_PTHREAD_PRIO_INHERIT=yes
16377 ax_cv_PTHREAD_PRIO_INHERIT=no
16379 rm -f core conftest.err conftest.$ac_objext \
16380 conftest$ac_exeext conftest.$ac_ext
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
16384 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
16385 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
16387 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
16392 CFLAGS="$save_CFLAGS"
16394 # More AIX lossage: compile with *_r variant
16395 if test "x$GCC" != xyes; then
16399 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
16400 #handle absolute path differently from PATH based program lookup
16403 if as_fn_executable_p ${CC}_r; then :
16404 PTHREAD_CC="${CC}_r"
16407 for ac_prog in ${CC}_r
16409 # Extract the first word of "$ac_prog", so it can be a program name with args.
16410 set dummy $ac_prog; ac_word=$2
16411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16412 $as_echo_n "checking for $ac_word... " >&6; }
16413 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
16414 $as_echo_n "(cached) " >&6
16416 if test -n "$PTHREAD_CC"; then
16417 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16420 for as_dir in $PATH
16423 test -z "$as_dir" && as_dir=.
16424 for ac_exec_ext in '' $ac_executable_extensions; do
16425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16426 ac_cv_prog_PTHREAD_CC="$ac_prog"
16427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16436 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16437 if test -n "$PTHREAD_CC"; then
16438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16439 $as_echo "$PTHREAD_CC" >&6; }
16441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16442 $as_echo "no" >&6; }
16446 test -n "$PTHREAD_CC" && break
16448 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16459 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16465 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16466 if test x"$ax_pthread_ok" = xyes; then
16468 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
16476 ac_cpp='$CPP $CPPFLAGS'
16477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16485 # allow to override gcov location
16487 # Check whether --with-gcov was given.
16488 if test "${with_gcov+set}" = set; then :
16489 withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
16491 _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
16495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
16496 $as_echo_n "checking whether to build with code coverage support... " >&6; }
16497 # Check whether --enable-code-coverage was given.
16498 if test "${enable_code_coverage+set}" = set; then :
16499 enableval=$enable_code_coverage;
16501 enable_code_coverage=no
16505 if test x$enable_code_coverage = xyes; then
16506 CODE_COVERAGE_ENABLED_TRUE=
16507 CODE_COVERAGE_ENABLED_FALSE='#'
16509 CODE_COVERAGE_ENABLED_TRUE='#'
16510 CODE_COVERAGE_ENABLED_FALSE=
16513 CODE_COVERAGE_ENABLED=$enable_code_coverage
16515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
16516 $as_echo "$enable_code_coverage" >&6; }
16518 if test "$enable_code_coverage" = "yes" ; then :
16521 if test -n "$ac_tool_prefix"; then
16522 # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
16523 set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
16524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16525 $as_echo_n "checking for $ac_word... " >&6; }
16526 if ${ac_cv_prog_GCOV+:} false; then :
16527 $as_echo_n "(cached) " >&6
16529 if test -n "$GCOV"; then
16530 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
16532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16533 for as_dir in $PATH
16536 test -z "$as_dir" && as_dir=.
16537 for ac_exec_ext in '' $ac_executable_extensions; do
16538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16539 ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
16540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16549 GCOV=$ac_cv_prog_GCOV
16550 if test -n "$GCOV"; then
16551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
16552 $as_echo "$GCOV" >&6; }
16554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16555 $as_echo "no" >&6; }
16560 if test -z "$ac_cv_prog_GCOV"; then
16562 # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
16563 set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
16564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16565 $as_echo_n "checking for $ac_word... " >&6; }
16566 if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
16567 $as_echo_n "(cached) " >&6
16569 if test -n "$ac_ct_GCOV"; then
16570 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
16572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16573 for as_dir in $PATH
16576 test -z "$as_dir" && as_dir=.
16577 for ac_exec_ext in '' $ac_executable_extensions; do
16578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16579 ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
16580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16589 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
16590 if test -n "$ac_ct_GCOV"; then
16591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
16592 $as_echo "$ac_ct_GCOV" >&6; }
16594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16595 $as_echo "no" >&6; }
16598 if test "x$ac_ct_GCOV" = x; then
16601 case $cross_compiling:$ac_tool_warned in
16603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16604 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16605 ac_tool_warned=yes ;;
16610 GCOV="$ac_cv_prog_GCOV"
16613 if test "X$GCOV" = "X:"; then :
16614 as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
16618 if test "$GCC" = "no" ; then :
16620 as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
16624 # List of supported lcov versions.
16625 lcov_version_list="1.6 1.7 1.8 1.9 1.10 1.11"
16627 # Extract the first word of "lcov", so it can be a program name with args.
16628 set dummy lcov; ac_word=$2
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16630 $as_echo_n "checking for $ac_word... " >&6; }
16631 if ${ac_cv_prog_LCOV+:} false; then :
16632 $as_echo_n "(cached) " >&6
16634 if test -n "$LCOV"; then
16635 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
16637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16638 for as_dir in $PATH
16641 test -z "$as_dir" && as_dir=.
16642 for ac_exec_ext in '' $ac_executable_extensions; do
16643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16644 ac_cv_prog_LCOV="lcov"
16645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16654 LCOV=$ac_cv_prog_LCOV
16655 if test -n "$LCOV"; then
16656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
16657 $as_echo "$LCOV" >&6; }
16659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16660 $as_echo "no" >&6; }
16664 # Extract the first word of "genhtml", so it can be a program name with args.
16665 set dummy genhtml; ac_word=$2
16666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16667 $as_echo_n "checking for $ac_word... " >&6; }
16668 if ${ac_cv_prog_GENHTML+:} false; then :
16669 $as_echo_n "(cached) " >&6
16671 if test -n "$GENHTML"; then
16672 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
16674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16675 for as_dir in $PATH
16678 test -z "$as_dir" && as_dir=.
16679 for ac_exec_ext in '' $ac_executable_extensions; do
16680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16681 ac_cv_prog_GENHTML="genhtml"
16682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16691 GENHTML=$ac_cv_prog_GENHTML
16692 if test -n "$GENHTML"; then
16693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
16694 $as_echo "$GENHTML" >&6; }
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16697 $as_echo "no" >&6; }
16702 if test "$LCOV" ; then :
16704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcov version" >&5
16705 $as_echo_n "checking for lcov version... " >&6; }
16706 if ${ax_cv_lcov_version+:} false; then :
16707 $as_echo_n "(cached) " >&6
16710 ax_cv_lcov_version=invalid
16711 lcov_version=`$LCOV -v 2>/dev/null | $SED -e 's/^.* //'`
16712 for lcov_check_version in $lcov_version_list; do
16713 if test "$lcov_version" = "$lcov_check_version"; then
16714 ax_cv_lcov_version="$lcov_check_version (ok)"
16719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lcov_version" >&5
16720 $as_echo "$ax_cv_lcov_version" >&6; }
16724 lcov_msg="To enable code coverage reporting you must have one of the following lcov versions installed: $lcov_version_list"
16725 as_fn_error $? "$lcov_msg" "$LINENO" 5
16729 case $ax_cv_lcov_version in
16731 lcov_msg="You must have one of the following versions of lcov: $lcov_version_list (found: $lcov_version)."
16732 as_fn_error $? "$lcov_msg" "$LINENO" 5
16737 if test -z "$GENHTML" ; then :
16739 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
16743 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
16744 CODE_COVERAGE_LDFLAGS="-lgcov"
16749 CODE_COVERAGE_RULES='
16753 # - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
16754 # (Default: $(top_builddir))
16755 # - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
16756 # by lcov for code coverage. (Default:
16757 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
16758 # - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
16759 # reports to be created. (Default:
16760 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
16761 # - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
16762 # - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the lcov instance.
16763 # (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
16764 # - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the lcov instance.
16765 # (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
16766 # - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
16767 # instance. (Default: empty)
16768 # - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
16770 # The generated report will be titled using the $(PACKAGE_NAME) and
16771 # $(PACKAGE_VERSION). In order to add the current git hash to the title,
16772 # use the git-version-gen script, available online.
16774 # Optional variables
16775 CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
16776 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
16777 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
16778 CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
16779 CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
16780 CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
16781 CODE_COVERAGE_GENHTML_OPTIONS ?=
16782 CODE_COVERAGE_IGNORE_PATTERN ?=
16784 code_coverage_quiet = $(code_coverage_quiet_$(V))
16785 code_coverage_quiet_ =
16786 code_coverage_quiet_0 = --quiet
16788 # Use recursive makes in order to ignore errors during check
16789 check-code-coverage:
16790 -$(MAKE) $(AM_MAKEFLAGS) -k check
16791 $(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
16793 # Capture code coverage data
16794 code-coverage-capture: code-coverage-capture-hook
16795 $(LCOV) $(code_coverage_quiet) --directory $(CODE_COVERAGE_DIRECTORY) --capture --output-file "$(CODE_COVERAGE_OUTPUT_FILE).tmp" --test-name "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" --no-checksum --compat-libtool $(CODE_COVERAGE_LCOV_OPTIONS)
16796 $(LCOV) $(code_coverage_quiet) --directory $(CODE_COVERAGE_DIRECTORY) --remove "$(CODE_COVERAGE_OUTPUT_FILE).tmp" "/tmp/*" $(CODE_COVERAGE_IGNORE_PATTERN) --output-file "$(CODE_COVERAGE_OUTPUT_FILE)"
16797 -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
16798 LANG=C $(GENHTML) $(code_coverage_quiet) --prefix $(CODE_COVERAGE_DIRECTORY) --output-directory "$(CODE_COVERAGE_OUTPUT_DIRECTORY)" --title "$(PACKAGE_NAME)-$(PACKAGE_VERSION) Code Coverage" --legend --show-details "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_GENHTML_OPTIONS)
16799 @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
16801 # Hook rule executed before code-coverage-capture, overridable by the user
16802 code-coverage-capture-hook:
16804 clean: code-coverage-clean
16805 code-coverage-clean:
16806 -$(LCOV) --directory $(top_builddir) -z
16807 -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
16808 -find . -name "*.gcda" -o -name "*.gcov" -delete
16811 GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
16813 DISTCHECK_CONFIGURE_FLAGS ?=
16814 DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
16816 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
16824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether user namespaces are supported" >&5
16825 $as_echo_n "checking whether user namespaces are supported... " >&6; }
16826 if ${ax_cv_user_namespace+:} false; then :
16827 $as_echo_n "(cached) " >&6
16831 ac_cpp='$CPP $CPPFLAGS'
16832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16836 if test "$cross_compiling" = yes; then :
16837 ax_cv_user_namespace=no
16839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16840 /* end confdefs.h. */
16842 #define _GNU_SOURCE
16845 #include <signal.h>
16847 #include <string.h>
16848 #include <sys/types.h>
16849 #include <sys/wait.h>
16851 int userfn(void *d) {
16852 usleep(100000); /* synchronize by sleep */
16853 return (getuid() != 0);
16855 char userst[1024*1024];
16858 int rc, status, fd;
16859 pid_t child = clone(userfn, userst + 1024*1024, CLONE_NEWUSER|SIGCHLD, 0);
16860 if (child < 0) return 1;
16862 sprintf(buffer, "/proc/%d/uid_map", child);
16863 fd = open(buffer, O_CREAT|O_WRONLY|O_TRUNC, 0755);
16864 sprintf(buffer, "0 %d 1\n", getuid());
16865 write(fd, buffer, strlen(buffer));
16868 rc = waitpid(child, &status, 0);
16869 if (rc <= 0) return 1;
16870 if (!WIFEXITED(status)) return 1;
16871 return WEXITSTATUS(status);
16875 if ac_fn_c_try_run "$LINENO"; then :
16876 ax_cv_user_namespace=yes
16878 ax_cv_user_namespace=no
16880 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16881 conftest.$ac_objext conftest.beam conftest.$ac_ext
16885 ac_cpp='$CPP $CPPFLAGS'
16886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_user_namespace" >&5
16893 $as_echo "$ax_cv_user_namespace" >&6; }
16894 if test "$ax_cv_user_namespace" = yes; then
16896 $as_echo "#define HAVE_USER_NAMESPACE 1" >>confdefs.h
16900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UTS namespaces are supported" >&5
16901 $as_echo_n "checking whether UTS namespaces are supported... " >&6; }
16902 if ${ax_cv_uts_namespace+:} false; then :
16903 $as_echo_n "(cached) " >&6
16907 ac_cpp='$CPP $CPPFLAGS'
16908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16912 if test "$cross_compiling" = yes; then :
16913 ax_cv_uts_namespace=no
16915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16916 /* end confdefs.h. */
16918 #define _GNU_SOURCE
16920 #include <signal.h>
16922 #include <string.h>
16924 #include <unistd.h>
16925 #include <sys/types.h>
16926 #include <sys/wait.h>
16928 int utsfn(void *d) {
16930 const char *name = "autoconftest";
16931 int rc = sethostname(name, strlen(name));
16932 if (rc != 0) return 1;
16933 gethostname(buffer, 1024);
16934 return (strcmp(buffer, name) != 0);
16937 char st2[1024*1024];
16941 usleep(100000); /* synchronize by sleep */
16942 if (getuid() != 0) return 1;
16943 child = clone(utsfn, st2 + 1024*1024, CLONE_NEWUTS|SIGCHLD, 0);
16944 if (child < 0) return 1;
16945 rc = waitpid(child, &status, 0);
16946 if (rc <= 0) return 1;
16947 if (!WIFEXITED(status)) return 1;
16948 return WEXITSTATUS(status);
16950 char st[1024*1024];
16953 int rc, status, fd;
16954 pid_t child = clone(fn, st + 1024*1024, CLONE_NEWUSER|SIGCHLD, 0);
16955 if (child < 0) return 1;
16957 sprintf(buffer, "/proc/%d/uid_map", child);
16958 fd = open(buffer, O_CREAT|O_WRONLY|O_TRUNC, 0755);
16959 sprintf(buffer, "0 %d 1\n", getuid());
16960 write(fd, buffer, strlen(buffer));
16963 rc = waitpid(child, &status, 0);
16964 if (rc <= 0) return 1;
16965 if (!WIFEXITED(status)) return 1;
16966 return WEXITSTATUS(status);
16971 if ac_fn_c_try_run "$LINENO"; then :
16972 ax_cv_uts_namespace=yes
16974 ax_cv_uts_namespace=no
16976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16977 conftest.$ac_objext conftest.beam conftest.$ac_ext
16981 ac_cpp='$CPP $CPPFLAGS'
16982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_uts_namespace" >&5
16989 $as_echo "$ax_cv_uts_namespace" >&6; }
16990 if test "$ax_cv_uts_namespace" = yes; then
16992 $as_echo "#define HAVE_UTS_NAMESPACE 1" >>confdefs.h
16997 for ac_header in netdb.h netinet/tcp.h
16999 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17000 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17001 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17002 cat >>confdefs.h <<_ACEOF
17003 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17010 ac_config_headers="$ac_config_headers config.h"
17012 ac_config_files="$ac_config_files Makefile"
17014 cat >confcache <<\_ACEOF
17015 # This file is a shell script that caches the results of configure
17016 # tests run on this system so they can be shared between configure
17017 # scripts and configure runs, see configure's option --config-cache.
17018 # It is not useful on other systems. If it contains results you don't
17019 # want to keep, you may remove or edit it.
17021 # config.status only pays attention to the cache file if you give it
17022 # the --recheck option to rerun configure.
17024 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17025 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17026 # following values.
17030 # The following way of writing the cache mishandles newlines in values,
17031 # but we know of no workaround that is simple, portable, and efficient.
17032 # So, we kill variables containing newlines.
17033 # Ultrix sh set writes to stderr and can't be redirected directly,
17034 # and sets the high bit in the cache file unless we assign to the vars.
17036 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17037 eval ac_val=\$$ac_var
17041 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17042 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17045 _ | IFS | as_nl) ;; #(
17046 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17047 *) { eval $ac_var=; unset $ac_var;} ;;
17053 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17054 *${as_nl}ac_space=\ *)
17055 # `set' does not quote correctly, so add quotes: double-quote
17056 # substitution turns \\\\ into \\, and sed turns \\ into \.
17059 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17062 # `set' quotes correctly as required by POSIX, so do not add quotes.
17063 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17072 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17074 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17076 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17077 if test -w "$cache_file"; then
17078 if test "x$cache_file" != "x/dev/null"; then
17079 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17080 $as_echo "$as_me: updating cache $cache_file" >&6;}
17081 if test ! -f "$cache_file" || test -h "$cache_file"; then
17082 cat confcache >"$cache_file"
17084 case $cache_file in #(
17086 mv -f confcache "$cache_file"$$ &&
17087 mv -f "$cache_file"$$ "$cache_file" ;; #(
17089 mv -f confcache "$cache_file" ;;
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17095 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17100 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17101 # Let make expand exec_prefix.
17102 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17104 DEFS=-DHAVE_CONFIG_H
17109 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17110 # 1. Remove the extension, and $U if already installed.
17111 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17112 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17113 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17114 # will be set to the directory where LIBOBJS objects are built.
17115 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17116 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17118 LIBOBJS=$ac_libobjs
17120 LTLIBOBJS=$ac_ltlibobjs
17123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17124 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17125 if test -n "$am_sleep_pid"; then
17126 # Hide warnings about reused PIDs.
17127 wait $am_sleep_pid 2>/dev/null
17129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17130 $as_echo "done" >&6; }
17131 if test -n "$EXEEXT"; then
17133 am__EXEEXT_FALSE='#'
17135 am__EXEEXT_TRUE='#'
17139 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17140 as_fn_error $? "conditional \"AMDEP\" was never defined.
17141 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17143 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17144 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17145 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17147 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17148 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17149 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17151 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
17152 as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
17153 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17156 : "${CONFIG_STATUS=./config.status}"
17158 ac_clean_files_save=$ac_clean_files
17159 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17160 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17161 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17163 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17165 # Generated by $as_me.
17166 # Run this file to recreate the current configuration.
17167 # Compiler output produced by configure, useful for debugging
17168 # configure, is in config.log if it exists.
17171 ac_cs_recheck=false
17174 SHELL=\${CONFIG_SHELL-$SHELL}
17177 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17178 ## -------------------- ##
17179 ## M4sh Initialization. ##
17180 ## -------------------- ##
17182 # Be more Bourne compatible
17183 DUALCASE=1; export DUALCASE # for MKS sh
17184 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17187 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17188 # is contrary to our usage. Disable this feature.
17189 alias -g '${1+"$@"}'='"$@"'
17190 setopt NO_GLOB_SUBST
17192 case `(set -o) 2>/dev/null` in #(
17204 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17205 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17206 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17207 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17208 # Prefer a ksh shell builtin over an external printf program on Solaris,
17209 # but without wasting forks for bash or zsh.
17210 if test -z "$BASH_VERSION$ZSH_VERSION" \
17211 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17212 as_echo='print -r --'
17213 as_echo_n='print -rn --'
17214 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17215 as_echo='printf %s\n'
17216 as_echo_n='printf %s'
17218 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17219 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17220 as_echo_n='/usr/ucb/echo -n'
17222 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17223 as_echo_n_body='eval
17227 expr "X$arg" : "X\\(.*\\)$as_nl";
17228 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17230 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17232 export as_echo_n_body
17233 as_echo_n='sh -c $as_echo_n_body as_echo'
17235 export as_echo_body
17236 as_echo='sh -c $as_echo_body as_echo'
17239 # The user is always right.
17240 if test "${PATH_SEPARATOR+set}" != set; then
17242 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17243 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17250 # We need space, tab and new line, in precisely that order. Quoting is
17251 # there to prevent editors from complaining about space-tab.
17252 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17253 # splitting by setting IFS to empty value.)
17256 # Find who we are. Look in the path if we contain no directory separator.
17259 *[\\/]* ) as_myself=$0 ;;
17260 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17261 for as_dir in $PATH
17264 test -z "$as_dir" && as_dir=.
17265 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17271 # We did not find ourselves, most probably we were run as `sh COMMAND'
17272 # in which case we are not to be found in the path.
17273 if test "x$as_myself" = x; then
17276 if test ! -f "$as_myself"; then
17277 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17281 # Unset variables that we do not need and which cause bugs (e.g. in
17282 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17283 # suppresses any "Segmentation fault" message there. '((' could
17284 # trigger a bug in pdksh 5.2.14.
17285 for as_var in BASH_ENV ENV MAIL MAILPATH
17286 do eval test x\${$as_var+set} = xset \
17287 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17300 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17303 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17304 # ----------------------------------------
17305 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17306 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17307 # script with STATUS, using 1 if that was 0.
17310 as_status=$1; test $as_status -eq 0 && as_status=1
17312 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17313 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17315 $as_echo "$as_me: error: $2" >&2
17316 as_fn_exit $as_status
17320 # as_fn_set_status STATUS
17321 # -----------------------
17322 # Set $? to STATUS, without forking.
17323 as_fn_set_status ()
17326 } # as_fn_set_status
17328 # as_fn_exit STATUS
17329 # -----------------
17330 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17334 as_fn_set_status $1
17340 # Portably unset VAR.
17343 { eval $1=; unset $1;}
17345 as_unset=as_fn_unset
17346 # as_fn_append VAR VALUE
17347 # ----------------------
17348 # Append the text in VALUE to the end of the definition contained in VAR. Take
17349 # advantage of any shell optimizations that allow amortized linear growth over
17350 # repeated appends, instead of the typical quadratic growth present in naive
17352 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17353 eval 'as_fn_append ()
17364 # as_fn_arith ARG...
17365 # ------------------
17366 # Perform arithmetic evaluation on the ARGs, and store the result in the
17367 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17368 # must be portable across $(()) and expr.
17369 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17370 eval 'as_fn_arith ()
17377 as_val=`expr "$@" || test $? -eq 1`
17382 if expr a : '\(a\)' >/dev/null 2>&1 &&
17383 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17389 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17390 as_basename=basename
17395 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17401 as_me=`$as_basename -- "$0" ||
17402 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17403 X"$0" : 'X\(//\)$' \| \
17404 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17406 sed '/^.*\/\([^/][^/]*\)\/*$/{
17420 # Avoid depending upon Character Ranges.
17421 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17422 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17423 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17424 as_cr_digits='0123456789'
17425 as_cr_alnum=$as_cr_Letters$as_cr_digits
17427 ECHO_C= ECHO_N= ECHO_T=
17428 case `echo -n x` in #(((((
17430 case `echo 'xy\c'` in
17431 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17433 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17440 rm -f conf$$ conf$$.exe conf$$.file
17441 if test -d conf$$.dir; then
17442 rm -f conf$$.dir/conf$$.file
17445 mkdir conf$$.dir 2>/dev/null
17447 if (echo >conf$$.file) 2>/dev/null; then
17448 if ln -s conf$$.file conf$$ 2>/dev/null; then
17450 # ... but there are two gotchas:
17451 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17452 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17453 # In both cases, we have to default to `cp -pR'.
17454 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17456 elif ln conf$$.file conf$$ 2>/dev/null; then
17464 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17465 rmdir conf$$.dir 2>/dev/null
17470 # Create "$as_dir" as a directory, including parents if necessary.
17475 -*) as_dir=./$as_dir;;
17477 test -d "$as_dir" || eval $as_mkdir_p || {
17481 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17482 *) as_qdir=$as_dir;;
17484 as_dirs="'$as_qdir' $as_dirs"
17485 as_dir=`$as_dirname -- "$as_dir" ||
17486 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17487 X"$as_dir" : 'X\(//\)[^/]' \| \
17488 X"$as_dir" : 'X\(//\)$' \| \
17489 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17490 $as_echo X"$as_dir" |
17491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17495 /^X\(\/\/\)[^/].*/{
17508 test -d "$as_dir" && break
17510 test -z "$as_dirs" || eval "mkdir $as_dirs"
17511 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17515 if mkdir -p . 2>/dev/null; then
17516 as_mkdir_p='mkdir -p "$as_dir"'
17518 test -d ./-p && rmdir ./-p
17523 # as_fn_executable_p FILE
17524 # -----------------------
17525 # Test if FILE is an executable regular file.
17526 as_fn_executable_p ()
17528 test -f "$1" && test -x "$1"
17529 } # as_fn_executable_p
17530 as_test_x='test -x'
17531 as_executable_p=as_fn_executable_p
17533 # Sed expression to map a string onto a valid CPP name.
17534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17536 # Sed expression to map a string onto a valid variable name.
17537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17541 ## ----------------------------------- ##
17542 ## Main body of $CONFIG_STATUS script. ##
17543 ## ----------------------------------- ##
17545 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17547 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17548 # Save the log message, to keep $0 and so on meaningful, and to
17549 # report actual input values of CONFIG_FILES etc. instead of their
17550 # values after options handling.
17552 This file was extended by c-ares-test $as_me -, which was
17553 generated by GNU Autoconf 2.69. Invocation command line was
17555 CONFIG_FILES = $CONFIG_FILES
17556 CONFIG_HEADERS = $CONFIG_HEADERS
17557 CONFIG_LINKS = $CONFIG_LINKS
17558 CONFIG_COMMANDS = $CONFIG_COMMANDS
17561 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17566 case $ac_config_files in *"
17567 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17570 case $ac_config_headers in *"
17571 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17576 # Files that config.status was made for.
17577 config_files="$ac_config_files"
17578 config_headers="$ac_config_headers"
17579 config_commands="$ac_config_commands"
17583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17585 \`$as_me' instantiates files and other configuration actions
17586 from templates according to the current configuration. Unless the files
17587 and actions are specified as TAGs, all are instantiated by default.
17589 Usage: $0 [OPTION]... [TAG]...
17591 -h, --help print this help, then exit
17592 -V, --version print version number and configuration settings, then exit
17593 --config print configuration, then exit
17594 -q, --quiet, --silent
17595 do not print progress messages
17596 -d, --debug don't remove temporary files
17597 --recheck update $as_me by reconfiguring in the same conditions
17598 --file=FILE[:TEMPLATE]
17599 instantiate the configuration file FILE
17600 --header=FILE[:TEMPLATE]
17601 instantiate the configuration header FILE
17603 Configuration files:
17606 Configuration headers:
17609 Configuration commands:
17612 Report bugs to <->."
17615 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17616 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17618 c-ares-test config.status -
17619 configured by $0, generated by GNU Autoconf 2.69,
17620 with options \\"\$ac_cs_config\\"
17622 Copyright (C) 2012 Free Software Foundation, Inc.
17623 This config.status script is free software; the Free Software Foundation
17624 gives unlimited permission to copy, distribute and modify it."
17631 test -n "\$AWK" || AWK=awk
17634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17635 # The default lists apply if the user does not specify any file.
17641 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17642 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17646 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17658 # Handling of the options.
17659 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17661 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17662 $as_echo "$ac_cs_version"; exit ;;
17663 --config | --confi | --conf | --con | --co | --c )
17664 $as_echo "$ac_cs_config"; exit ;;
17665 --debug | --debu | --deb | --de | --d | -d )
17667 --file | --fil | --fi | --f )
17670 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17671 '') as_fn_error $? "missing file argument" ;;
17673 as_fn_append CONFIG_FILES " '$ac_optarg'"
17674 ac_need_defaults=false;;
17675 --header | --heade | --head | --hea )
17678 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17680 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17681 ac_need_defaults=false;;
17683 # Conflict between --help and --header
17684 as_fn_error $? "ambiguous option: \`$1'
17685 Try \`$0 --help' for more information.";;
17686 --help | --hel | -h )
17687 $as_echo "$ac_cs_usage"; exit ;;
17688 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17689 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17692 # This is an error.
17693 -*) as_fn_error $? "unrecognized option: \`$1'
17694 Try \`$0 --help' for more information." ;;
17696 *) as_fn_append ac_config_targets " $1"
17697 ac_need_defaults=false ;;
17703 ac_configure_extra_args=
17705 if $ac_cs_silent; then
17707 ac_configure_extra_args="$ac_configure_extra_args --silent"
17711 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17712 if \$ac_cs_recheck; then
17713 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17715 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17716 CONFIG_SHELL='$SHELL'
17717 export CONFIG_SHELL
17722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17726 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17727 ## Running $as_me. ##
17733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17737 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17740 # The HP-UX ksh and POSIX shell print the target directory to stdout
17741 # if CDPATH is set.
17742 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17744 sed_quote_subst='$sed_quote_subst'
17745 double_quote_subst='$double_quote_subst'
17746 delay_variable_subst='$delay_variable_subst'
17747 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17748 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17749 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17750 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17751 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17752 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17753 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17754 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17755 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17756 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17757 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17758 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17759 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17760 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17761 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17762 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17763 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17764 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17765 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17766 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17767 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17768 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17769 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17770 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17771 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17772 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17773 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17774 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17775 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17776 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17777 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17778 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17779 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17780 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17781 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17782 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17783 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17784 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17785 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17786 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17787 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17788 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17789 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17790 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17791 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17792 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17793 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17794 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17795 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17796 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17797 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17798 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17799 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17800 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17801 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17802 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17803 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17804 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17805 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"`'
17806 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17807 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17808 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17809 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17810 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17811 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17812 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17813 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17814 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17815 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17816 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17817 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17818 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17819 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17820 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17821 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17822 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17823 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17824 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17825 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17826 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17827 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17828 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17829 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17830 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17831 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17832 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17833 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17834 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17835 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17836 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17837 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17838 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17839 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17840 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17841 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17842 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17843 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17844 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17845 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17846 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17847 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17848 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17849 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17850 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17851 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17852 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17853 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17854 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17855 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17856 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17857 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17858 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17859 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17860 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17861 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17862 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17863 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17864 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17865 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17866 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17867 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17868 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17869 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17870 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17871 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17872 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17873 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17874 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17875 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17876 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17877 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17878 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17879 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17880 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17881 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17882 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17883 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17884 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17885 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17886 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17887 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17888 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17889 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17890 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17891 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17892 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17893 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17894 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17895 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17896 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17897 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17898 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17899 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17900 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17901 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17902 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17903 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17904 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17905 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17906 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17907 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17908 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17909 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17910 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17911 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17912 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17913 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17914 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17915 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17916 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17917 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17918 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17919 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17920 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17921 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17922 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17923 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17924 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17925 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17926 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17927 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17928 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17929 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17930 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17931 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17932 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17933 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17934 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17935 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17938 LTCFLAGS='$LTCFLAGS'
17939 compiler='$compiler_DEFAULT'
17941 # A function that is used when there is no print builtin or printf.
17942 func_fallback_echo ()
17944 eval 'cat <<_LTECHO_EOF
17949 # Quote evaled strings.
17964 deplibs_check_method \
17969 sharedlib_from_linklib_cmd \
17972 archiver_list_spec \
17978 lt_cv_sys_global_symbol_pipe \
17979 lt_cv_sys_global_symbol_to_cdecl \
17980 lt_cv_sys_global_symbol_to_import \
17981 lt_cv_sys_global_symbol_to_c_name_address \
17982 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17983 lt_cv_nm_interface \
17984 nm_file_list_spec \
17985 lt_cv_truncate_bin \
17986 lt_prog_compiler_no_builtin_flag \
17987 lt_prog_compiler_pic \
17988 lt_prog_compiler_wl \
17989 lt_prog_compiler_static \
17990 lt_cv_prog_compiler_c_o \
17999 export_dynamic_flag_spec \
18000 whole_archive_flag_spec \
18001 compiler_needs_object \
18003 allow_undefined_flag \
18004 no_undefined_flag \
18005 hardcode_libdir_flag_spec \
18006 hardcode_libdir_separator \
18010 variables_saved_for_relink \
18012 library_names_spec \
18014 install_override_mode \
18018 compiler_lib_search_dirs \
18023 compiler_lib_search_path \
18027 lt_prog_compiler_no_builtin_flag_CXX \
18028 lt_prog_compiler_pic_CXX \
18029 lt_prog_compiler_wl_CXX \
18030 lt_prog_compiler_static_CXX \
18031 lt_cv_prog_compiler_c_o_CXX \
18032 export_dynamic_flag_spec_CXX \
18033 whole_archive_flag_spec_CXX \
18034 compiler_needs_object_CXX \
18036 allow_undefined_flag_CXX \
18037 no_undefined_flag_CXX \
18038 hardcode_libdir_flag_spec_CXX \
18039 hardcode_libdir_separator_CXX \
18040 exclude_expsyms_CXX \
18041 include_expsyms_CXX \
18042 file_list_spec_CXX \
18043 compiler_lib_search_dirs_CXX \
18044 predep_objects_CXX \
18045 postdep_objects_CXX \
18048 compiler_lib_search_path_CXX; do
18049 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18050 *[\\\\\\\`\\"\\\$]*)
18051 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18054 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18059 # Double-quote double-evaled strings.
18060 for var in reload_cmds \
18061 old_postinstall_cmds \
18062 old_postuninstall_cmds \
18064 extract_expsyms_cmds \
18065 old_archive_from_new_cmds \
18066 old_archive_from_expsyms_cmds \
18068 archive_expsym_cmds \
18070 module_expsym_cmds \
18071 export_symbols_cmds \
18075 postuninstall_cmds \
18077 sys_lib_search_path_spec \
18078 configure_time_dlsearch_path \
18079 configure_time_lt_sys_library_path \
18081 old_archive_cmds_CXX \
18082 old_archive_from_new_cmds_CXX \
18083 old_archive_from_expsyms_cmds_CXX \
18085 archive_expsym_cmds_CXX \
18087 module_expsym_cmds_CXX \
18088 export_symbols_cmds_CXX \
18090 postlink_cmds_CXX; do
18091 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18092 *[\\\\\\\`\\"\\\$]*)
18093 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18096 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18101 ac_aux_dir='$ac_aux_dir'
18103 # See if we are running on zsh, and set the options that allow our
18104 # commands through without removal of \ escapes INIT.
18105 if test -n "\${ZSH_VERSION+set}"; then
18106 setopt NO_GLOB_SUBST
18122 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18124 # Handling of arguments.
18125 for ac_config_target in $ac_config_targets
18127 case $ac_config_target in
18128 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18129 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18130 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18131 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18133 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18138 # If the user did not use the arguments to specify the items to instantiate,
18139 # then the envvar interface is used. Set only those that are not.
18140 # We use the long form for the default assignment because of an extremely
18141 # bizarre bug on SunOS 4.1.3.
18142 if $ac_need_defaults; then
18143 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18144 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18145 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18148 # Have a temporary directory for convenience. Make it in the build tree
18149 # simply because there is no reason against having it here, and in addition,
18150 # creating and moving files from /tmp can sometimes cause problems.
18151 # Hook for its removal unless debugging.
18152 # Note that there is a small window in which the directory will not be cleaned:
18153 # after its creation but before its name has been assigned to `$tmp'.
18157 trap 'exit_status=$?
18158 : "${ac_tmp:=$tmp}"
18159 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18161 trap 'as_fn_exit 1' 1 2 13 15
18163 # Create a (secure) tmp directory for tmp files.
18166 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18170 tmp=./conf$$-$RANDOM
18171 (umask 077 && mkdir "$tmp")
18172 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18175 # Set up the scripts for CONFIG_FILES section.
18176 # No need to generate them if there are no CONFIG_FILES.
18177 # This happens for instance with `./config.status config.h'.
18178 if test -n "$CONFIG_FILES"; then
18181 ac_cr=`echo X | tr X '\015'`
18182 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18183 # But we know of no other shell where ac_cr would be empty at this
18184 # point, so we can use a bashism as a fallback.
18185 if test "x$ac_cr" = x; then
18186 eval ac_cr=\$\'\\r\'
18188 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18189 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18192 ac_cs_awk_cr=$ac_cr
18195 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18200 echo "cat >conf$$subs.awk <<_ACEOF" &&
18201 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18203 } >conf$$subs.sh ||
18204 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18205 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18207 for ac_last_try in false false false false false :; do
18208 . ./conf$$subs.sh ||
18209 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18211 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18212 if test $ac_delim_n = $ac_delim_num; then
18214 elif $ac_last_try; then
18215 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18217 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18220 rm -f conf$$subs.sh
18222 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18223 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18227 s/^/S["/; s/!.*/"]=/
18237 s/\(.\{148\}\)..*/\1/
18239 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18244 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18251 s/\(.\{148\}\)..*/\1/
18253 s/["\\]/\\&/g; s/^/"/; s/$/"/
18257 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18262 ' <conf$$subs.awk | sed '
18267 ' >>$CONFIG_STATUS || ac_write_fail=1
18268 rm -f conf$$subs.awk
18269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18271 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18272 for (key in S) S_is_set[key] = 1
18278 nfields = split(line, field, "@")
18280 len = length(field[1])
18281 for (i = 2; i < nfields; i++) {
18283 keylen = length(key)
18284 if (S_is_set[key]) {
18286 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18287 len += length(value) + length(field[++i])
18298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18299 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18300 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18303 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18304 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18307 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18308 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18309 # trailing colons and then remove the whole line if VPATH becomes empty
18310 # (actually we leave an empty line to preserve line numbers).
18311 if test "x$srcdir" = x.; then
18312 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18330 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18331 fi # test -n "$CONFIG_FILES"
18333 # Set up the scripts for CONFIG_HEADERS section.
18334 # No need to generate them if there are no CONFIG_HEADERS.
18335 # This happens for instance with `./config.status Makefile'.
18336 if test -n "$CONFIG_HEADERS"; then
18337 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18341 # Transform confdefs.h into an awk script `defines.awk', embedded as
18342 # here-document in config.status, that substitutes the proper values into
18343 # config.h.in to produce config.h.
18345 # Create a delimiter string that does not exist in confdefs.h, to ease
18346 # handling of long lines.
18348 for ac_last_try in false false :; do
18349 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18350 if test -z "$ac_tt"; then
18352 elif $ac_last_try; then
18353 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18355 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18359 # For the awk script, D is an array of macro values keyed by name,
18360 # likewise P contains macro parameters if any. Preserve backslash
18361 # newline sequences.
18363 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18365 s/.\{148\}/&'"$ac_delim"'/g
18368 s/^[ ]*#[ ]*define[ ][ ]*/ /
18375 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18377 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18381 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18382 D["\1"]=" \3\\\\\\n"\\/p
18384 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18389 s/.\{148\}/&'"$ac_delim"'/g
18394 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18397 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18399 ' <confdefs.h | sed '
18400 s/'"$ac_delim"'/"\\\
18401 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18403 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18404 for (key in D) D_is_set[key] = 1
18407 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18409 split(line, arg, " ")
18410 if (arg[1] == "#") {
18414 defundef = substr(arg[1], 2)
18417 split(mac1, mac2, "(") #)
18419 prefix = substr(line, 1, index(line, defundef) - 1)
18420 if (D_is_set[macro]) {
18421 # Preserve the white space surrounding the "#".
18422 print prefix "define", macro P[macro] D[macro]
18425 # Replace #undef with comments. This is necessary, for example,
18426 # in the case of _POSIX_SOURCE, which is predefined and required
18427 # on some systems where configure will not decide to define it.
18428 if (defundef == "undef") {
18429 print "/*", prefix defundef, macro, "*/"
18437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18438 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18439 fi # test -n "$CONFIG_HEADERS"
18442 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18447 :[FHLC]) ac_mode=$ac_tag; continue;;
18449 case $ac_mode$ac_tag in
18451 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18452 :[FH]-) ac_tag=-:-;;
18453 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18470 -) ac_f="$ac_tmp/stdin";;
18471 *) # Look for the file first in the build tree, then in the source tree
18472 # (if the path is not absolute). The absolute path cannot be DOS-style,
18473 # because $ac_f cannot contain `:'.
18477 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18479 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18481 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18482 as_fn_append ac_file_inputs " '$ac_f'"
18485 # Let's still pretend it is `configure' which instantiates (i.e., don't
18486 # use $as_me), people would be surprised to read:
18487 # /* config.h. Generated by config.status. */
18488 configure_input='Generated from '`
18489 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18491 if test x"$ac_file" != x-; then
18492 configure_input="$ac_file. $configure_input"
18493 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18494 $as_echo "$as_me: creating $ac_file" >&6;}
18496 # Neutralize special characters interpreted by sed in replacement strings.
18497 case $configure_input in #(
18498 *\&* | *\|* | *\\* )
18499 ac_sed_conf_input=`$as_echo "$configure_input" |
18500 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18501 *) ac_sed_conf_input=$configure_input;;
18505 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18506 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18511 ac_dir=`$as_dirname -- "$ac_file" ||
18512 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18513 X"$ac_file" : 'X\(//\)[^/]' \| \
18514 X"$ac_file" : 'X\(//\)$' \| \
18515 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18516 $as_echo X"$ac_file" |
18517 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18521 /^X\(\/\/\)[^/].*/{
18534 as_dir="$ac_dir"; as_fn_mkdir_p
18538 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18540 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18541 # A ".." for each directory in $ac_dir_suffix.
18542 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18543 case $ac_top_builddir_sub in
18544 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18545 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18548 ac_abs_top_builddir=$ac_pwd
18549 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18550 # for backward compatibility:
18551 ac_top_builddir=$ac_top_build_prefix
18554 .) # We are building in place.
18556 ac_top_srcdir=$ac_top_builddir_sub
18557 ac_abs_top_srcdir=$ac_pwd ;;
18558 [\\/]* | ?:[\\/]* ) # Absolute name.
18559 ac_srcdir=$srcdir$ac_dir_suffix;
18560 ac_top_srcdir=$srcdir
18561 ac_abs_top_srcdir=$srcdir ;;
18562 *) # Relative name.
18563 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18564 ac_top_srcdir=$ac_top_build_prefix$srcdir
18565 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18567 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18577 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18578 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18580 ac_MKDIR_P=$MKDIR_P
18582 [\\/$]* | ?:[\\/]* ) ;;
18583 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18587 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18588 # If the template does not know about datarootdir, expand it.
18589 # FIXME: This hack should be removed a few years after 2.60.
18590 ac_datarootdir_hack=; ac_datarootdir_seen=
18601 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18602 *datarootdir*) ac_datarootdir_seen=yes;;
18603 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18605 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18607 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18608 ac_datarootdir_hack='
18609 s&@datadir@&$datadir&g
18610 s&@docdir@&$docdir&g
18611 s&@infodir@&$infodir&g
18612 s&@localedir@&$localedir&g
18613 s&@mandir@&$mandir&g
18614 s&\\\${datarootdir}&$datarootdir&g' ;;
18618 # Neutralize VPATH when `$srcdir' = `.'.
18619 # Shell code in configure.ac might set extrasub.
18620 # FIXME: do we really want to maintain this feature?
18621 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18622 ac_sed_extra="$ac_vpsub
18625 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18627 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18628 s|@configure_input@|$ac_sed_conf_input|;t t
18629 s&@top_builddir@&$ac_top_builddir_sub&;t t
18630 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18631 s&@srcdir@&$ac_srcdir&;t t
18632 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18633 s&@top_srcdir@&$ac_top_srcdir&;t t
18634 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18635 s&@builddir@&$ac_builddir&;t t
18636 s&@abs_builddir@&$ac_abs_builddir&;t t
18637 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18638 s&@INSTALL@&$ac_INSTALL&;t t
18639 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18640 $ac_datarootdir_hack
18642 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18643 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18645 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18646 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18647 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18648 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18650 which seems to be undefined. Please make sure it is defined" >&5
18651 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18652 which seems to be undefined. Please make sure it is defined" >&2;}
18654 rm -f "$ac_tmp/stdin"
18656 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18657 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18659 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18665 if test x"$ac_file" != x-; then
18667 $as_echo "/* $configure_input */" \
18668 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18669 } >"$ac_tmp/config.h" \
18670 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18671 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18672 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18673 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18676 mv "$ac_tmp/config.h" "$ac_file" \
18677 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18680 $as_echo "/* $configure_input */" \
18681 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18682 || as_fn_error $? "could not create -" "$LINENO" 5
18684 # Compute "$ac_file"'s index in $config_headers.
18687 for _am_header in $config_headers :; do
18688 case $_am_header in
18689 $_am_arg | $_am_arg:* )
18692 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18695 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18696 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18697 X"$_am_arg" : 'X\(//\)[^/]' \| \
18698 X"$_am_arg" : 'X\(//\)$' \| \
18699 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18700 $as_echo X"$_am_arg" |
18701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18705 /^X\(\/\/\)[^/].*/{
18717 s/.*/./; q'`/stamp-h$_am_stamp_count
18720 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18721 $as_echo "$as_me: executing $ac_file commands" >&6;}
18726 case $ac_file$ac_mode in
18727 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18728 # Older Autoconf quotes --file arguments for eval, but not when files
18729 # are listed without --file. Let's play safe and only enable the eval
18730 # if we detect the quoting.
18731 case $CONFIG_FILES in
18732 *\'*) eval set x "$CONFIG_FILES" ;;
18733 *) set x $CONFIG_FILES ;;
18738 # Strip MF so we end up with the name of the file.
18739 mf=`echo "$mf" | sed -e 's/:.*$//'`
18740 # Check whether this is an Automake generated Makefile or not.
18741 # We used to match only the files named 'Makefile.in', but
18742 # some people rename them; so instead we look at the file content.
18743 # Grep'ing the first line is not enough: some people post-process
18744 # each Makefile.in and add a new line on top of each file to say so.
18745 # Grep'ing the whole file is not good either: AIX grep has a line
18746 # limit of 2048, but all sed's we know have understand at least 4000.
18747 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18748 dirpart=`$as_dirname -- "$mf" ||
18749 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18750 X"$mf" : 'X\(//\)[^/]' \| \
18751 X"$mf" : 'X\(//\)$' \| \
18752 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18754 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18758 /^X\(\/\/\)[^/].*/{
18774 # Extract the definition of DEPDIR, am__include, and am__quote
18775 # from the Makefile without running 'make'.
18776 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18777 test -z "$DEPDIR" && continue
18778 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18779 test -z "$am__include" && continue
18780 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18781 # Find all dependency output files, they are included files with
18782 # $(DEPDIR) in their names. We invoke sed twice because it is the
18783 # simplest approach to changing $(DEPDIR) to its actual value in the
18785 for file in `sed -n "
18786 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18787 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18788 # Make sure the directory exists.
18789 test -f "$dirpart/$file" && continue
18790 fdir=`$as_dirname -- "$file" ||
18791 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18792 X"$file" : 'X\(//\)[^/]' \| \
18793 X"$file" : 'X\(//\)$' \| \
18794 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18795 $as_echo X"$file" |
18796 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18800 /^X\(\/\/\)[^/].*/{
18813 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18814 # echo "creating $dirpart/$file"
18815 echo '# dummy' > "$dirpart/$file"
18822 # See if we are running on zsh, and set the options that allow our
18823 # commands through without removal of \ escapes.
18824 if test -n "${ZSH_VERSION+set}"; then
18825 setopt NO_GLOB_SUBST
18829 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18832 cat <<_LT_EOF >> "$cfgfile"
18834 # Generated automatically by $as_me ($PACKAGE) $VERSION
18835 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18836 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18838 # Provide generalized library-building support services.
18839 # Written by Gordon Matzigkeit, 1996
18841 # Copyright (C) 2014 Free Software Foundation, Inc.
18842 # This is free software; see the source for copying conditions. There is NO
18843 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18845 # GNU Libtool is free software; you can redistribute it and/or modify
18846 # it under the terms of the GNU General Public License as published by
18847 # the Free Software Foundation; either version 2 of of the License, or
18848 # (at your option) any later version.
18850 # As a special exception to the GNU General Public License, if you
18851 # distribute this file as part of a program or library that is built
18852 # using GNU Libtool, you may include this file under the same
18853 # distribution terms that you use for the rest of that program.
18855 # GNU Libtool is distributed in the hope that it will be useful, but
18856 # WITHOUT ANY WARRANTY; without even the implied warranty of
18857 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18858 # GNU General Public License for more details.
18860 # You should have received a copy of the GNU General Public License
18861 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18864 # The names of the tagged configurations supported by this script.
18865 available_tags='CXX '
18867 # Configured defaults for sys_lib_dlsearch_path munging.
18868 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18870 # ### BEGIN LIBTOOL CONFIG
18872 # Which release of libtool.m4 was used?
18873 macro_version=$macro_version
18874 macro_revision=$macro_revision
18876 # Whether or not to build shared libraries.
18877 build_libtool_libs=$enable_shared
18879 # Whether or not to build static libraries.
18880 build_old_libs=$enable_static
18882 # What type of objects to build.
18885 # Whether or not to optimize for fast installation.
18886 fast_install=$enable_fast_install
18888 # Shared archive member basename,for filename based shared library versioning on AIX.
18889 shared_archive_member_spec=$shared_archive_member_spec
18891 # Shell to use when invoking shell scripts.
18894 # An echo program that protects backslashes.
18897 # The PATH separator for the build system.
18898 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18901 host_alias=$host_alias
18905 # The build system.
18906 build_alias=$build_alias
18910 # A sed program that does not truncate output.
18913 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18914 Xsed="\$SED -e 1s/^X//"
18916 # A grep program that handles long lines.
18922 # A literal string matcher.
18925 # A BSD- or MS-compatible name lister.
18928 # Whether we need soft or hard links.
18931 # What is the maximum length of a command?
18932 max_cmd_len=$max_cmd_len
18934 # Object file suffix (normally "o").
18937 # Executable file suffix (normally "").
18940 # whether the shell understands "unset".
18943 # turn spaces into newlines.
18946 # turn newlines into spaces.
18949 # convert \$build file names to \$host format.
18950 to_host_file_cmd=$lt_cv_to_host_file_cmd
18952 # convert \$build files to toolchain format.
18953 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18955 # An object symbol dumper.
18956 OBJDUMP=$lt_OBJDUMP
18958 # Method to check whether dependent libraries are shared objects.
18959 deplibs_check_method=$lt_deplibs_check_method
18961 # Command to use when deplibs_check_method = "file_magic".
18962 file_magic_cmd=$lt_file_magic_cmd
18964 # How to find potential files when deplibs_check_method = "file_magic".
18965 file_magic_glob=$lt_file_magic_glob
18967 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18968 want_nocaseglob=$lt_want_nocaseglob
18970 # DLL creation program.
18971 DLLTOOL=$lt_DLLTOOL
18973 # Command to associate shared and link libraries.
18974 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18979 # Flags to create an archive.
18980 AR_FLAGS=$lt_AR_FLAGS
18982 # How to feed a file listing to the archiver.
18983 archiver_list_spec=$lt_archiver_list_spec
18985 # A symbol stripping program.
18988 # Commands used to install an old-style archive.
18990 old_postinstall_cmds=$lt_old_postinstall_cmds
18991 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18993 # Whether to use a lock for old archive extraction.
18994 lock_old_archive_extraction=$lock_old_archive_extraction
18999 # LTCC compiler flags.
19000 LTCFLAGS=$lt_CFLAGS
19002 # Take the output of nm and produce a listing of raw symbols and C names.
19003 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19005 # Transform the output of nm in a proper C declaration.
19006 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19008 # Transform the output of nm into a list of symbols to manually relocate.
19009 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19011 # Transform the output of nm in a C name address pair.
19012 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19014 # Transform the output of nm in a C name address pair when lib prefix is needed.
19015 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19017 # The name lister interface.
19018 nm_interface=$lt_lt_cv_nm_interface
19020 # Specify filename containing input files for \$NM.
19021 nm_file_list_spec=$lt_nm_file_list_spec
19023 # The root where to search for dependent libraries,and where our libraries should be installed.
19024 lt_sysroot=$lt_sysroot
19026 # Command to truncate a binary pipe.
19027 lt_truncate_bin=$lt_lt_cv_truncate_bin
19029 # The name of the directory that contains temporary libtool files.
19032 # Used to examine libraries when file_magic_cmd begins with "file".
19033 MAGIC_CMD=$MAGIC_CMD
19035 # Must we lock files when doing compilation?
19036 need_locks=$lt_need_locks
19039 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19041 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19042 DSYMUTIL=$lt_DSYMUTIL
19044 # Tool to change global to local symbols on Mac OS X.
19047 # Tool to manipulate fat objects and archives on Mac OS X.
19050 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19053 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19054 OTOOL64=$lt_OTOOL64
19056 # Old archive suffix (normally "a").
19059 # Shared library suffix (normally ".so").
19060 shrext_cmds=$lt_shrext_cmds
19062 # The commands to extract the exported symbol list from a shared archive.
19063 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19065 # Variables whose values should be saved in libtool wrapper scripts and
19066 # restored at link time.
19067 variables_saved_for_relink=$lt_variables_saved_for_relink
19069 # Do we need the "lib" prefix for modules?
19070 need_lib_prefix=$need_lib_prefix
19072 # Do we need a version for libraries?
19073 need_version=$need_version
19075 # Library versioning type.
19076 version_type=$version_type
19078 # Shared library runtime path variable.
19079 runpath_var=$runpath_var
19081 # Shared library path variable.
19082 shlibpath_var=$shlibpath_var
19084 # Is shlibpath searched before the hard-coded library search path?
19085 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19087 # Format of library name prefix.
19088 libname_spec=$lt_libname_spec
19090 # List of archive names. First name is the real one, the rest are links.
19091 # The last name is the one that the linker finds with -lNAME
19092 library_names_spec=$lt_library_names_spec
19094 # The coded name of the library, if different from the real name.
19095 soname_spec=$lt_soname_spec
19097 # Permission mode override for installation of shared libraries.
19098 install_override_mode=$lt_install_override_mode
19100 # Command to use after installation of a shared archive.
19101 postinstall_cmds=$lt_postinstall_cmds
19103 # Command to use after uninstallation of a shared archive.
19104 postuninstall_cmds=$lt_postuninstall_cmds
19106 # Commands used to finish a libtool library installation in a directory.
19107 finish_cmds=$lt_finish_cmds
19109 # As "finish_cmds", except a single script fragment to be evaled but
19111 finish_eval=$lt_finish_eval
19113 # Whether we should hardcode library paths into libraries.
19114 hardcode_into_libs=$hardcode_into_libs
19116 # Compile-time system search path for libraries.
19117 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19119 # Detected run-time system search path for libraries.
19120 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19122 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19123 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19125 # Whether dlopen is supported.
19126 dlopen_support=$enable_dlopen
19128 # Whether dlopen of programs is supported.
19129 dlopen_self=$enable_dlopen_self
19131 # Whether dlopen of statically linked programs is supported.
19132 dlopen_self_static=$enable_dlopen_self_static
19134 # Commands to strip libraries.
19135 old_striplib=$lt_old_striplib
19136 striplib=$lt_striplib
19139 # The linker used to build libraries.
19142 # How to create reloadable object files.
19143 reload_flag=$lt_reload_flag
19144 reload_cmds=$lt_reload_cmds
19146 # Commands used to build an old-style archive.
19147 old_archive_cmds=$lt_old_archive_cmds
19149 # A language specific compiler.
19152 # Is the compiler the GNU compiler?
19155 # Compiler flag to turn off builtin functions.
19156 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19158 # Additional compiler flags for building library objects.
19159 pic_flag=$lt_lt_prog_compiler_pic
19161 # How to pass a linker flag through the compiler.
19162 wl=$lt_lt_prog_compiler_wl
19164 # Compiler flag to prevent dynamic linking.
19165 link_static_flag=$lt_lt_prog_compiler_static
19167 # Does compiler simultaneously support -c and -o options?
19168 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19170 # Whether or not to add -lc for building shared libraries.
19171 build_libtool_need_lc=$archive_cmds_need_lc
19173 # Whether or not to disallow shared libs when runtime libs are static.
19174 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19176 # Compiler flag to allow reflexive dlopens.
19177 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19179 # Compiler flag to generate shared objects directly from archives.
19180 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19182 # Whether the compiler copes with passing no objects directly.
19183 compiler_needs_object=$lt_compiler_needs_object
19185 # Create an old-style archive from a shared archive.
19186 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19188 # Create a temporary old-style archive to link instead of a shared archive.
19189 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19191 # Commands used to build a shared archive.
19192 archive_cmds=$lt_archive_cmds
19193 archive_expsym_cmds=$lt_archive_expsym_cmds
19195 # Commands used to build a loadable module if different from building
19196 # a shared archive.
19197 module_cmds=$lt_module_cmds
19198 module_expsym_cmds=$lt_module_expsym_cmds
19200 # Whether we are building with GNU ld or not.
19201 with_gnu_ld=$lt_with_gnu_ld
19203 # Flag that allows shared libraries with undefined symbols to be built.
19204 allow_undefined_flag=$lt_allow_undefined_flag
19206 # Flag that enforces no undefined symbols.
19207 no_undefined_flag=$lt_no_undefined_flag
19209 # Flag to hardcode \$libdir into a binary during linking.
19210 # This must work even if \$libdir does not exist
19211 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19213 # Whether we need a single "-rpath" flag with a separated argument.
19214 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19216 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19217 # DIR into the resulting binary.
19218 hardcode_direct=$hardcode_direct
19220 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19221 # DIR into the resulting binary and the resulting library dependency is
19222 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19223 # library is relocated.
19224 hardcode_direct_absolute=$hardcode_direct_absolute
19226 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19227 # into the resulting binary.
19228 hardcode_minus_L=$hardcode_minus_L
19230 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19231 # into the resulting binary.
19232 hardcode_shlibpath_var=$hardcode_shlibpath_var
19234 # Set to "yes" if building a shared library automatically hardcodes DIR
19235 # into the library and all subsequent libraries and executables linked
19237 hardcode_automatic=$hardcode_automatic
19239 # Set to yes if linker adds runtime paths of dependent libraries
19240 # to runtime path list.
19241 inherit_rpath=$inherit_rpath
19243 # Whether libtool must link a program against all its dependency libraries.
19244 link_all_deplibs=$link_all_deplibs
19246 # Set to "yes" if exported symbols are required.
19247 always_export_symbols=$always_export_symbols
19249 # The commands to list exported symbols.
19250 export_symbols_cmds=$lt_export_symbols_cmds
19252 # Symbols that should not be listed in the preloaded symbols.
19253 exclude_expsyms=$lt_exclude_expsyms
19255 # Symbols that must always be exported.
19256 include_expsyms=$lt_include_expsyms
19258 # Commands necessary for linking programs (against libraries) with templates.
19259 prelink_cmds=$lt_prelink_cmds
19261 # Commands necessary for finishing linking programs.
19262 postlink_cmds=$lt_postlink_cmds
19264 # Specify filename containing input files.
19265 file_list_spec=$lt_file_list_spec
19267 # How to hardcode a shared library path into an executable.
19268 hardcode_action=$hardcode_action
19270 # The directories searched by this compiler when creating a shared library.
19271 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19273 # Dependencies to place before and after the objects being linked to
19274 # create a shared library.
19275 predep_objects=$lt_predep_objects
19276 postdep_objects=$lt_postdep_objects
19277 predeps=$lt_predeps
19278 postdeps=$lt_postdeps
19280 # The library search path used internally by the compiler when linking
19281 # a shared library.
19282 compiler_lib_search_path=$lt_compiler_lib_search_path
19284 # ### END LIBTOOL CONFIG
19288 cat <<'_LT_EOF' >> "$cfgfile"
19290 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19292 # func_munge_path_list VARIABLE PATH
19293 # -----------------------------------
19294 # VARIABLE is name of variable containing _space_ separated list of
19295 # directories to be munged by the contents of PATH, which is string
19298 # string "DIR[ DIR]" will be prepended to VARIABLE
19300 # string "DIR[ DIR]" will be appended to VARIABLE
19301 # "DIRP[:DIRP]::[DIRA:]DIRA"
19302 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19303 # "DIRA[ DIRA]" will be appended to VARIABLE
19305 # VARIABLE will be replaced by "DIR[ DIR]"
19306 func_munge_path_list ()
19312 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19315 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19318 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19319 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19322 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19328 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
19329 func_cc_basename ()
19331 for cc_temp in $*""; do
19333 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19334 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19339 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19343 # ### END FUNCTIONS SHARED WITH CONFIGURE
19349 cat <<\_LT_EOF >> "$cfgfile"
19350 # AIX sometimes has problems with the GCC collect2 program. For some
19351 # reason, if we set the COLLECT_NAMES environment variable, the problems
19352 # vanish in a puff of smoke.
19353 if test set != "${COLLECT_NAMES+set}"; then
19355 export COLLECT_NAMES
19362 ltmain=$ac_aux_dir/ltmain.sh
19365 # We use sed instead of cat because bash on DJGPP gets confused if
19366 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19367 # text mode, it properly converts lines to CR/LF. This bash problem
19368 # is reportedly fixed, but why not run on old versions too?
19369 sed '$q' "$ltmain" >> "$cfgfile" \
19370 || (rm -f "$cfgfile"; exit 1)
19372 mv -f "$cfgfile" "$ofile" ||
19373 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19377 cat <<_LT_EOF >> "$ofile"
19379 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19381 # The linker used to build libraries.
19384 # How to create reloadable object files.
19385 reload_flag=$lt_reload_flag_CXX
19386 reload_cmds=$lt_reload_cmds_CXX
19388 # Commands used to build an old-style archive.
19389 old_archive_cmds=$lt_old_archive_cmds_CXX
19391 # A language specific compiler.
19392 CC=$lt_compiler_CXX
19394 # Is the compiler the GNU compiler?
19397 # Compiler flag to turn off builtin functions.
19398 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19400 # Additional compiler flags for building library objects.
19401 pic_flag=$lt_lt_prog_compiler_pic_CXX
19403 # How to pass a linker flag through the compiler.
19404 wl=$lt_lt_prog_compiler_wl_CXX
19406 # Compiler flag to prevent dynamic linking.
19407 link_static_flag=$lt_lt_prog_compiler_static_CXX
19409 # Does compiler simultaneously support -c and -o options?
19410 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19412 # Whether or not to add -lc for building shared libraries.
19413 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19415 # Whether or not to disallow shared libs when runtime libs are static.
19416 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19418 # Compiler flag to allow reflexive dlopens.
19419 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19421 # Compiler flag to generate shared objects directly from archives.
19422 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19424 # Whether the compiler copes with passing no objects directly.
19425 compiler_needs_object=$lt_compiler_needs_object_CXX
19427 # Create an old-style archive from a shared archive.
19428 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19430 # Create a temporary old-style archive to link instead of a shared archive.
19431 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19433 # Commands used to build a shared archive.
19434 archive_cmds=$lt_archive_cmds_CXX
19435 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19437 # Commands used to build a loadable module if different from building
19438 # a shared archive.
19439 module_cmds=$lt_module_cmds_CXX
19440 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19442 # Whether we are building with GNU ld or not.
19443 with_gnu_ld=$lt_with_gnu_ld_CXX
19445 # Flag that allows shared libraries with undefined symbols to be built.
19446 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19448 # Flag that enforces no undefined symbols.
19449 no_undefined_flag=$lt_no_undefined_flag_CXX
19451 # Flag to hardcode \$libdir into a binary during linking.
19452 # This must work even if \$libdir does not exist
19453 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19455 # Whether we need a single "-rpath" flag with a separated argument.
19456 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19458 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19459 # DIR into the resulting binary.
19460 hardcode_direct=$hardcode_direct_CXX
19462 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19463 # DIR into the resulting binary and the resulting library dependency is
19464 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19465 # library is relocated.
19466 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19468 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19469 # into the resulting binary.
19470 hardcode_minus_L=$hardcode_minus_L_CXX
19472 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19473 # into the resulting binary.
19474 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19476 # Set to "yes" if building a shared library automatically hardcodes DIR
19477 # into the library and all subsequent libraries and executables linked
19479 hardcode_automatic=$hardcode_automatic_CXX
19481 # Set to yes if linker adds runtime paths of dependent libraries
19482 # to runtime path list.
19483 inherit_rpath=$inherit_rpath_CXX
19485 # Whether libtool must link a program against all its dependency libraries.
19486 link_all_deplibs=$link_all_deplibs_CXX
19488 # Set to "yes" if exported symbols are required.
19489 always_export_symbols=$always_export_symbols_CXX
19491 # The commands to list exported symbols.
19492 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19494 # Symbols that should not be listed in the preloaded symbols.
19495 exclude_expsyms=$lt_exclude_expsyms_CXX
19497 # Symbols that must always be exported.
19498 include_expsyms=$lt_include_expsyms_CXX
19500 # Commands necessary for linking programs (against libraries) with templates.
19501 prelink_cmds=$lt_prelink_cmds_CXX
19503 # Commands necessary for finishing linking programs.
19504 postlink_cmds=$lt_postlink_cmds_CXX
19506 # Specify filename containing input files.
19507 file_list_spec=$lt_file_list_spec_CXX
19509 # How to hardcode a shared library path into an executable.
19510 hardcode_action=$hardcode_action_CXX
19512 # The directories searched by this compiler when creating a shared library.
19513 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19515 # Dependencies to place before and after the objects being linked to
19516 # create a shared library.
19517 predep_objects=$lt_predep_objects_CXX
19518 postdep_objects=$lt_postdep_objects_CXX
19519 predeps=$lt_predeps_CXX
19520 postdeps=$lt_postdeps_CXX
19522 # The library search path used internally by the compiler when linking
19523 # a shared library.
19524 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19526 # ### END LIBTOOL TAG CONFIG: CXX
19537 ac_clean_files=$ac_clean_files_save
19539 test $ac_write_fail = 0 ||
19540 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19543 # configure is writing to config.log, and then calls config.status.
19544 # config.status does its own redirection, appending to config.log.
19545 # Unfortunately, on DOS this fails, as config.log is still kept open
19546 # by configure, so config.status won't be able to write to it; its
19547 # output is simply discarded. So we exec the FD to /dev/null,
19548 # effectively closing config.log, so it can be properly (re)opened and
19549 # appended to by config.status. When coming back to configure, we
19550 # need to make the FD available again.
19551 if test "$no_create" != yes; then
19553 ac_config_status_args=
19554 test "$silent" = yes &&
19555 ac_config_status_args="$ac_config_status_args --quiet"
19557 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19559 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19560 # would make configure fail if this is the last instruction.
19561 $ac_cs_success || as_fn_exit 1
19563 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19565 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}