2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.69 for Jerasure 2.0.
6 @%:@ Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 @%:@ This configure script is free software; the Free Software Foundation
10 @%:@ gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in @%:@(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in @%:@(
171 set -o posix ;; @%:@(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir=.
223 case $as_dir in @%:@(
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
246 if test "x$CONFIG_SHELL" != x; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
256 *v*x* | *x*v* ) as_opts=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 @%:@ Portably unset VAR.
298 { eval $1=; unset $1;}
302 @%:@ as_fn_set_status STATUS
303 @%:@ -----------------------
304 @%:@ Set @S|@? to STATUS, without forking.
308 } @%:@ as_fn_set_status
310 @%:@ as_fn_exit STATUS
311 @%:@ -----------------
312 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
327 -*) as_dir=./$as_dir;;
329 test -d "$as_dir" || eval $as_mkdir_p || {
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368 @%:@ as_fn_executable_p FILE
369 @%:@ -----------------------
370 @%:@ Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } @%:@ as_fn_executable_p
375 @%:@ as_fn_append VAR VALUE
376 @%:@ ----------------------
377 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
378 @%:@ advantage of any shell optimizations that allow amortized linear growth over
379 @%:@ repeated appends, instead of the typical quadratic growth present in naive
380 @%:@ implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
393 @%:@ as_fn_arith ARG...
394 @%:@ ------------------
395 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
396 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
397 @%:@ must be portable across @S|@(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
406 as_val=`expr "$@" || test $? -eq 1`
411 @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
412 @%:@ ----------------------------------------
413 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 @%:@ script with STATUS, using 1 if that was 0.
418 as_status=$1; test $as_status -eq 0 && as_status=1
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in @%:@(((((
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
537 elif ln conf$$.file conf$$ 2>/dev/null; then
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
551 test -d ./-p && rmdir ./-p
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix=/usr/local
580 ac_config_libobj_dir=.
587 # Identity of this package.
588 PACKAGE_NAME='Jerasure'
589 PACKAGE_TARNAME='jerasure'
590 PACKAGE_VERSION='2.0'
591 PACKAGE_STRING='Jerasure 2.0'
593 PACKAGE_URL='https://jerasure.org/jerasure/jerasure'
595 ac_unique_file="src/jerasure.c"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
609 # ifdef HAVE_STDLIB_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
632 ac_subst_vars='am__EXEEXT_FALSE
704 INSTALL_STRIP_PROGRAM
747 program_transform_name
760 enable_option_checking
767 enable_dependency_tracking
773 ac_precious_vars='build_alias
789 # Initialize some variables set by options.
791 ac_init_version=false
792 ac_unrecognized_opts=
794 # The variables have the same names as the options, with
795 # dashes changed to underlines.
803 program_transform_name=s,x,x,
811 # Installation directory options.
812 # These are left unexpanded so users can "make install exec_prefix=/foo"
813 # and all the variables that are supposed to be based on exec_prefix
814 # by default will actually change.
815 # Use braces instead of parens because sh, perl, etc. also accept them.
816 # (The list follows the same order as the GNU Coding Standards.)
817 bindir='${exec_prefix}/bin'
818 sbindir='${exec_prefix}/sbin'
819 libexecdir='${exec_prefix}/libexec'
820 datarootdir='${prefix}/share'
821 datadir='${datarootdir}'
822 sysconfdir='${prefix}/etc'
823 sharedstatedir='${prefix}/com'
824 localstatedir='${prefix}/var'
825 runstatedir='${localstatedir}/run'
826 includedir='${prefix}/include'
827 oldincludedir='/usr/include'
828 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
829 infodir='${datarootdir}/info'
834 libdir='${exec_prefix}/lib'
835 localedir='${datarootdir}/locale'
836 mandir='${datarootdir}/man'
842 # If the previous option needs an argument, assign it.
843 if test -n "$ac_prev"; then
844 eval $ac_prev=\$ac_option
850 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
855 # Accept the important Cygnus configure options, so we can diagnose typos.
857 case $ac_dashdash$ac_option in
861 -bindir | --bindir | --bindi | --bind | --bin | --bi)
863 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
866 -build | --build | --buil | --bui | --bu)
867 ac_prev=build_alias ;;
868 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
869 build_alias=$ac_optarg ;;
871 -cache-file | --cache-file | --cache-fil | --cache-fi \
872 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
873 ac_prev=cache_file ;;
874 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
875 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
876 cache_file=$ac_optarg ;;
879 cache_file=config.cache ;;
881 -datadir | --datadir | --datadi | --datad)
883 -datadir=* | --datadir=* | --datadi=* | --datad=*)
884 datadir=$ac_optarg ;;
886 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
887 | --dataroo | --dataro | --datar)
888 ac_prev=datarootdir ;;
889 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
890 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
891 datarootdir=$ac_optarg ;;
893 -disable-* | --disable-*)
894 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
895 # Reject names that are not valid shell variable names.
896 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
897 as_fn_error $? "invalid feature name: $ac_useropt"
898 ac_useropt_orig=$ac_useropt
899 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
900 case $ac_user_opts in
904 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
905 ac_unrecognized_sep=', ';;
907 eval enable_$ac_useropt=no ;;
909 -docdir | --docdir | --docdi | --doc | --do)
911 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
914 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
916 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
919 -enable-* | --enable-*)
920 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
921 # Reject names that are not valid shell variable names.
922 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
923 as_fn_error $? "invalid feature name: $ac_useropt"
924 ac_useropt_orig=$ac_useropt
925 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
926 case $ac_user_opts in
930 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
931 ac_unrecognized_sep=', ';;
933 eval enable_$ac_useropt=\$ac_optarg ;;
935 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
936 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
937 | --exec | --exe | --ex)
938 ac_prev=exec_prefix ;;
939 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
940 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
941 | --exec=* | --exe=* | --ex=*)
942 exec_prefix=$ac_optarg ;;
944 -gas | --gas | --ga | --g)
945 # Obsolete; use --with-gas.
948 -help | --help | --hel | --he | -h)
950 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
951 ac_init_help=recursive ;;
952 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
953 ac_init_help=short ;;
955 -host | --host | --hos | --ho)
956 ac_prev=host_alias ;;
957 -host=* | --host=* | --hos=* | --ho=*)
958 host_alias=$ac_optarg ;;
960 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
962 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
964 htmldir=$ac_optarg ;;
966 -includedir | --includedir | --includedi | --included | --include \
967 | --includ | --inclu | --incl | --inc)
968 ac_prev=includedir ;;
969 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
970 | --includ=* | --inclu=* | --incl=* | --inc=*)
971 includedir=$ac_optarg ;;
973 -infodir | --infodir | --infodi | --infod | --info | --inf)
975 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
976 infodir=$ac_optarg ;;
978 -libdir | --libdir | --libdi | --libd)
980 -libdir=* | --libdir=* | --libdi=* | --libd=*)
983 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
984 | --libexe | --libex | --libe)
985 ac_prev=libexecdir ;;
986 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
987 | --libexe=* | --libex=* | --libe=*)
988 libexecdir=$ac_optarg ;;
990 -localedir | --localedir | --localedi | --localed | --locale)
992 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
993 localedir=$ac_optarg ;;
995 -localstatedir | --localstatedir | --localstatedi | --localstated \
996 | --localstate | --localstat | --localsta | --localst | --locals)
997 ac_prev=localstatedir ;;
998 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
999 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1000 localstatedir=$ac_optarg ;;
1002 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1004 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1005 mandir=$ac_optarg ;;
1007 -nfp | --nfp | --nf)
1008 # Obsolete; use --without-fp.
1011 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1012 | --no-cr | --no-c | -n)
1015 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1016 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1019 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1020 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1021 | --oldin | --oldi | --old | --ol | --o)
1022 ac_prev=oldincludedir ;;
1023 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1024 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1025 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1026 oldincludedir=$ac_optarg ;;
1028 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1030 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1031 prefix=$ac_optarg ;;
1033 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1034 | --program-pre | --program-pr | --program-p)
1035 ac_prev=program_prefix ;;
1036 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1037 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1038 program_prefix=$ac_optarg ;;
1040 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1041 | --program-suf | --program-su | --program-s)
1042 ac_prev=program_suffix ;;
1043 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1044 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1045 program_suffix=$ac_optarg ;;
1047 -program-transform-name | --program-transform-name \
1048 | --program-transform-nam | --program-transform-na \
1049 | --program-transform-n | --program-transform- \
1050 | --program-transform | --program-transfor \
1051 | --program-transfo | --program-transf \
1052 | --program-trans | --program-tran \
1053 | --progr-tra | --program-tr | --program-t)
1054 ac_prev=program_transform_name ;;
1055 -program-transform-name=* | --program-transform-name=* \
1056 | --program-transform-nam=* | --program-transform-na=* \
1057 | --program-transform-n=* | --program-transform-=* \
1058 | --program-transform=* | --program-transfor=* \
1059 | --program-transfo=* | --program-transf=* \
1060 | --program-trans=* | --program-tran=* \
1061 | --progr-tra=* | --program-tr=* | --program-t=*)
1062 program_transform_name=$ac_optarg ;;
1064 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1066 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1067 pdfdir=$ac_optarg ;;
1069 -psdir | --psdir | --psdi | --psd | --ps)
1071 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1074 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1075 | -silent | --silent | --silen | --sile | --sil)
1078 -runstatedir | --runstatedir | --runstatedi | --runstated \
1079 | --runstate | --runstat | --runsta | --runst | --runs \
1080 | --run | --ru | --r)
1081 ac_prev=runstatedir ;;
1082 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1083 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1084 | --run=* | --ru=* | --r=*)
1085 runstatedir=$ac_optarg ;;
1087 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1089 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1091 sbindir=$ac_optarg ;;
1093 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1094 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1095 | --sharedst | --shareds | --shared | --share | --shar \
1097 ac_prev=sharedstatedir ;;
1098 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1099 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1100 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1102 sharedstatedir=$ac_optarg ;;
1104 -site | --site | --sit)
1106 -site=* | --site=* | --sit=*)
1109 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1111 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1112 srcdir=$ac_optarg ;;
1114 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1115 | --syscon | --sysco | --sysc | --sys | --sy)
1116 ac_prev=sysconfdir ;;
1117 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1118 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1119 sysconfdir=$ac_optarg ;;
1121 -target | --target | --targe | --targ | --tar | --ta | --t)
1122 ac_prev=target_alias ;;
1123 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1124 target_alias=$ac_optarg ;;
1126 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1129 -version | --version | --versio | --versi | --vers | -V)
1130 ac_init_version=: ;;
1133 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1134 # Reject names that are not valid shell variable names.
1135 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136 as_fn_error $? "invalid package name: $ac_useropt"
1137 ac_useropt_orig=$ac_useropt
1138 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139 case $ac_user_opts in
1143 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1144 ac_unrecognized_sep=', ';;
1146 eval with_$ac_useropt=\$ac_optarg ;;
1148 -without-* | --without-*)
1149 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1152 as_fn_error $? "invalid package name: $ac_useropt"
1153 ac_useropt_orig=$ac_useropt
1154 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1155 case $ac_user_opts in
1159 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1160 ac_unrecognized_sep=', ';;
1162 eval with_$ac_useropt=no ;;
1165 # Obsolete; use --with-x.
1168 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1169 | --x-incl | --x-inc | --x-in | --x-i)
1170 ac_prev=x_includes ;;
1171 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1172 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1173 x_includes=$ac_optarg ;;
1175 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1176 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1177 ac_prev=x_libraries ;;
1178 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1179 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1180 x_libraries=$ac_optarg ;;
1182 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1183 Try \`$0 --help' for more information"
1187 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1188 # Reject names that are not valid shell variable names.
1189 case $ac_envvar in #(
1190 '' | [0-9]* | *[!_$as_cr_alnum]* )
1191 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1193 eval $ac_envvar=\$ac_optarg
1194 export $ac_envvar ;;
1197 # FIXME: should be removed in autoconf 3.0.
1198 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1199 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1200 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1201 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1207 if test -n "$ac_prev"; then
1208 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1209 as_fn_error $? "missing argument to $ac_option"
1212 if test -n "$ac_unrecognized_opts"; then
1213 case $enable_option_checking in
1215 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1216 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1220 # Check all directory arguments for consistency.
1221 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1222 datadir sysconfdir sharedstatedir localstatedir includedir \
1223 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1224 libdir localedir mandir runstatedir
1226 eval ac_val=\$$ac_var
1227 # Remove trailing slashes.
1230 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1231 eval $ac_var=\$ac_val;;
1233 # Be sure to have absolute directory names.
1235 [\\/$]* | ?:[\\/]* ) continue;;
1236 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1238 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1241 # There might be people who depend on the old broken behavior: `$host'
1242 # used to hold the argument of --host etc.
1243 # FIXME: To remove some day.
1246 target=$target_alias
1248 # FIXME: To remove some day.
1249 if test "x$host_alias" != x; then
1250 if test "x$build_alias" = x; then
1251 cross_compiling=maybe
1252 elif test "x$build_alias" != "x$host_alias"; then
1258 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1260 test "$silent" = yes && exec 6>/dev/null
1263 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1264 ac_ls_di=`ls -di .` &&
1265 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1266 as_fn_error $? "working directory cannot be determined"
1267 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1268 as_fn_error $? "pwd does not report name of working directory"
1271 # Find the source files, if location was not specified.
1272 if test -z "$srcdir"; then
1273 ac_srcdir_defaulted=yes
1274 # Try the directory containing this script, then the parent directory.
1275 ac_confdir=`$as_dirname -- "$as_myself" ||
1276 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1277 X"$as_myself" : 'X\(//\)[^/]' \| \
1278 X"$as_myself" : 'X\(//\)$' \| \
1279 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1280 $as_echo X"$as_myself" |
1281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1299 if test ! -r "$srcdir/$ac_unique_file"; then
1303 ac_srcdir_defaulted=no
1305 if test ! -r "$srcdir/$ac_unique_file"; then
1306 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1307 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1309 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1311 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1313 # When building in place, set srcdir=.
1314 if test "$ac_abs_confdir" = "$ac_pwd"; then
1317 # Remove unnecessary trailing slashes from srcdir.
1318 # Double slashes in file names in object file debugging info
1319 # mess up M-x gdb in Emacs.
1321 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1323 for ac_var in $ac_precious_vars; do
1324 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1325 eval ac_env_${ac_var}_value=\$${ac_var}
1326 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1327 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1331 # Report the --help message.
1333 if test "$ac_init_help" = "long"; then
1334 # Omit some internal or obsolete options to make the list less imposing.
1335 # This message is too long to be a string in the A/UX 3.1 sh.
1337 \`configure' configures Jerasure 2.0 to adapt to many kinds of systems.
1339 Usage: $0 [OPTION]... [VAR=VALUE]...
1341 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1342 VAR=VALUE. See below for descriptions of some of the useful variables.
1344 Defaults for the options are specified in brackets.
1347 -h, --help display this help and exit
1348 --help=short display options specific to this package
1349 --help=recursive display the short help of all the included packages
1350 -V, --version display version information and exit
1351 -q, --quiet, --silent do not print \`checking ...' messages
1352 --cache-file=FILE cache test results in FILE [disabled]
1353 -C, --config-cache alias for \`--cache-file=config.cache'
1354 -n, --no-create do not create output files
1355 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1357 Installation directories:
1358 --prefix=PREFIX install architecture-independent files in PREFIX
1359 @<:@@S|@ac_default_prefix@:>@
1360 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1363 By default, \`make install' will install all the files in
1364 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1365 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1366 for instance \`--prefix=\$HOME'.
1368 For better control, use the options below.
1370 Fine tuning of the installation directories:
1371 --bindir=DIR user executables [EPREFIX/bin]
1372 --sbindir=DIR system admin executables [EPREFIX/sbin]
1373 --libexecdir=DIR program executables [EPREFIX/libexec]
1374 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1375 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1376 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1377 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1378 --libdir=DIR object code libraries [EPREFIX/lib]
1379 --includedir=DIR C header files [PREFIX/include]
1380 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1381 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1382 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1383 --infodir=DIR info documentation [DATAROOTDIR/info]
1384 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1385 --mandir=DIR man documentation [DATAROOTDIR/man]
1386 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/jerasure@:>@
1387 --htmldir=DIR html documentation [DOCDIR]
1388 --dvidir=DIR dvi documentation [DOCDIR]
1389 --pdfdir=DIR pdf documentation [DOCDIR]
1390 --psdir=DIR ps documentation [DOCDIR]
1396 --program-prefix=PREFIX prepend PREFIX to installed program names
1397 --program-suffix=SUFFIX append SUFFIX to installed program names
1398 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1401 --build=BUILD configure for building on BUILD [guessed]
1402 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1406 if test -n "$ac_init_help"; then
1407 case $ac_init_help in
1408 short | recursive ) echo "Configuration of Jerasure 2.0:";;
1413 --disable-option-checking ignore unrecognized --enable/--with options
1414 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1415 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1416 --enable-silent-rules less verbose build output (undo: "make V=1")
1417 --disable-silent-rules verbose build output (undo: "make V=0")
1418 --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=no@:>@
1419 --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
1420 --enable-fast-install@<:@=PKGS@:>@
1421 optimize for fast installation @<:@default=yes@:>@
1422 --enable-dependency-tracking
1423 do not reject slow dependency extractors
1424 --disable-dependency-tracking
1425 speeds up one-time build
1426 --disable-libtool-lock avoid locking (might break parallel builds)
1427 --disable-sse Build without SSE optimizations
1430 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1431 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1432 --with-pic@<:@=PKGS@:>@ try to use only PIC/non-PIC objects @<:@default=use
1434 --with-aix-soname=aix|svr4|both
1435 shared library versioning (aka "SONAME") variant to
1436 provide on AIX, @<:@default=aix@:>@.
1437 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
1438 --with-sysroot@<:@=DIR@:>@ Search for dependent libraries within DIR (or the
1439 compiler's sysroot if not specified).
1441 Some influential environment variables:
1442 CC C compiler command
1443 CFLAGS C compiler flags
1444 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1445 nonstandard directory <lib dir>
1446 LIBS libraries to pass to the linker, e.g. -l<library>
1447 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1448 you have headers in a nonstandard directory <include dir>
1450 User-defined run-time library search path.
1452 CXX C++ compiler command
1453 CXXFLAGS C++ compiler flags
1454 CXXCPP C++ preprocessor
1456 Use these variables to override the choices made by `configure' or to help
1457 it to find libraries and programs with nonstandard names/locations.
1459 Report bugs to the package provider.
1460 Jerasure home page: <https://jerasure.org/jerasure/jerasure>.
1465 if test "$ac_init_help" = "recursive"; then
1466 # If there are subdirs, report their specific --help.
1467 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1468 test -d "$ac_dir" ||
1469 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1474 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1477 # A ".." for each directory in $ac_dir_suffix.
1478 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1479 case $ac_top_builddir_sub in
1480 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1481 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1484 ac_abs_top_builddir=$ac_pwd
1485 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1486 # for backward compatibility:
1487 ac_top_builddir=$ac_top_build_prefix
1490 .) # We are building in place.
1492 ac_top_srcdir=$ac_top_builddir_sub
1493 ac_abs_top_srcdir=$ac_pwd ;;
1494 [\\/]* | ?:[\\/]* ) # Absolute name.
1495 ac_srcdir=$srcdir$ac_dir_suffix;
1496 ac_top_srcdir=$srcdir
1497 ac_abs_top_srcdir=$srcdir ;;
1499 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1500 ac_top_srcdir=$ac_top_build_prefix$srcdir
1501 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1503 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1505 cd "$ac_dir" || { ac_status=$?; continue; }
1506 # Check for guested configure.
1507 if test -f "$ac_srcdir/configure.gnu"; then
1509 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1510 elif test -f "$ac_srcdir/configure"; then
1512 $SHELL "$ac_srcdir/configure" --help=recursive
1514 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1516 cd "$ac_pwd" || { ac_status=$?; break; }
1520 test -n "$ac_init_help" && exit $ac_status
1521 if $ac_init_version; then
1523 Jerasure configure 2.0
1524 generated by GNU Autoconf 2.69
1526 Copyright (C) 2012 Free Software Foundation, Inc.
1527 This configure script is free software; the Free Software Foundation
1528 gives unlimited permission to copy, distribute and modify it.
1533 ## ------------------------ ##
1534 ## Autoconf initialization. ##
1535 ## ------------------------ ##
1537 @%:@ ac_fn_c_try_compile LINENO
1538 @%:@ --------------------------
1539 @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1540 ac_fn_c_try_compile ()
1542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1543 rm -f conftest.$ac_objext
1544 if { { ac_try="$ac_compile"
1546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1547 *) ac_try_echo=$ac_try;;
1549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1550 $as_echo "$ac_try_echo"; } >&5
1551 (eval "$ac_compile") 2>conftest.err
1553 if test -s conftest.err; then
1554 grep -v '^ *+' conftest.err >conftest.er1
1555 cat conftest.er1 >&5
1556 mv -f conftest.er1 conftest.err
1558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1559 test $ac_status = 0; } && {
1560 test -z "$ac_c_werror_flag" ||
1561 test ! -s conftest.err
1562 } && test -s conftest.$ac_objext; then :
1565 $as_echo "$as_me: failed program was:" >&5
1566 sed 's/^/| /' conftest.$ac_ext >&5
1570 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1571 as_fn_set_status $ac_retval
1573 } @%:@ ac_fn_c_try_compile
1575 @%:@ ac_fn_c_try_link LINENO
1576 @%:@ -----------------------
1577 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581 rm -f conftest.$ac_objext conftest$ac_exeext
1582 if { { ac_try="$ac_link"
1584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1585 *) ac_try_echo=$ac_try;;
1587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588 $as_echo "$ac_try_echo"; } >&5
1589 (eval "$ac_link") 2>conftest.err
1591 if test -s conftest.err; then
1592 grep -v '^ *+' conftest.err >conftest.er1
1593 cat conftest.er1 >&5
1594 mv -f conftest.er1 conftest.err
1596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1597 test $ac_status = 0; } && {
1598 test -z "$ac_c_werror_flag" ||
1599 test ! -s conftest.err
1600 } && test -s conftest$ac_exeext && {
1601 test "$cross_compiling" = yes ||
1602 test -x conftest$ac_exeext
1606 $as_echo "$as_me: failed program was:" >&5
1607 sed 's/^/| /' conftest.$ac_ext >&5
1611 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1612 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1613 # interfere with the next link command; also delete a directory that is
1614 # left behind by Apple's compiler. We do this before executing the actions.
1615 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1616 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1617 as_fn_set_status $ac_retval
1619 } @%:@ ac_fn_c_try_link
1621 @%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1622 @%:@ -------------------------------------------------------
1623 @%:@ Tests whether HEADER exists and can be compiled using the include files in
1624 @%:@ INCLUDES, setting the cache variable VAR accordingly.
1625 ac_fn_c_check_header_compile ()
1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1629 $as_echo_n "checking for $2... " >&6; }
1630 if eval \${$3+:} false; then :
1631 $as_echo_n "(cached) " >&6
1633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1634 /* end confdefs.h. */
1638 if ac_fn_c_try_compile "$LINENO"; then :
1643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1647 $as_echo "$ac_res" >&6; }
1648 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650 } @%:@ ac_fn_c_check_header_compile
1652 @%:@ ac_fn_c_try_cpp LINENO
1653 @%:@ ----------------------
1654 @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 if { { ac_try="$ac_cpp conftest.$ac_ext"
1660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661 *) ac_try_echo=$ac_try;;
1663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664 $as_echo "$ac_try_echo"; } >&5
1665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1667 if test -s conftest.err; then
1668 grep -v '^ *+' conftest.err >conftest.er1
1669 cat conftest.er1 >&5
1670 mv -f conftest.er1 conftest.err
1672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673 test $ac_status = 0; } > conftest.i && {
1674 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1675 test ! -s conftest.err
1679 $as_echo "$as_me: failed program was:" >&5
1680 sed 's/^/| /' conftest.$ac_ext >&5
1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685 as_fn_set_status $ac_retval
1687 } @%:@ ac_fn_c_try_cpp
1689 @%:@ ac_fn_c_try_run LINENO
1690 @%:@ ----------------------
1691 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
1692 @%:@ that executables *can* be run.
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 if { { ac_try="$ac_link"
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_link") 2>&5
1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1707 { { case "(($ac_try" in
1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712 $as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_try") 2>&5
1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716 test $ac_status = 0; }; }; then :
1719 $as_echo "$as_me: program exited with status $ac_status" >&5
1720 $as_echo "$as_me: failed program was:" >&5
1721 sed 's/^/| /' conftest.$ac_ext >&5
1723 ac_retval=$ac_status
1725 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727 as_fn_set_status $ac_retval
1729 } @%:@ ac_fn_c_try_run
1731 @%:@ ac_fn_c_check_func LINENO FUNC VAR
1732 @%:@ ----------------------------------
1733 @%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
1734 ac_fn_c_check_func ()
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1738 $as_echo_n "checking for $2... " >&6; }
1739 if eval \${$3+:} false; then :
1740 $as_echo_n "(cached) " >&6
1742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1743 /* end confdefs.h. */
1744 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1745 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1746 #define $2 innocuous_$2
1748 /* System header to define __stub macros and hopefully few prototypes,
1749 which can conflict with char $2 (); below.
1750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1751 <limits.h> exists even on freestanding compilers. */
1754 # include <limits.h>
1756 # include <assert.h>
1761 /* Override any GCC internal prototype to avoid an error.
1762 Use char because int might match the return type of a GCC
1763 builtin and then its argument prototype would still apply. */
1768 /* The GNU C library defines this for functions which it implements
1769 to always fail with ENOSYS. Some functions are actually named
1770 something starting with __ and the normal name is an alias. */
1771 #if defined __stub_$2 || defined __stub___$2
1783 if ac_fn_c_try_link "$LINENO"; then :
1788 rm -f core conftest.err conftest.$ac_objext \
1789 conftest$ac_exeext conftest.$ac_ext
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1793 $as_echo "$ac_res" >&6; }
1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796 } @%:@ ac_fn_c_check_func
1798 @%:@ ac_fn_cxx_try_compile LINENO
1799 @%:@ ----------------------------
1800 @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1801 ac_fn_cxx_try_compile ()
1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804 rm -f conftest.$ac_objext
1805 if { { ac_try="$ac_compile"
1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808 *) ac_try_echo=$ac_try;;
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 $as_echo "$ac_try_echo"; } >&5
1812 (eval "$ac_compile") 2>conftest.err
1814 if test -s conftest.err; then
1815 grep -v '^ *+' conftest.err >conftest.er1
1816 cat conftest.er1 >&5
1817 mv -f conftest.er1 conftest.err
1819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820 test $ac_status = 0; } && {
1821 test -z "$ac_cxx_werror_flag" ||
1822 test ! -s conftest.err
1823 } && test -s conftest.$ac_objext; then :
1826 $as_echo "$as_me: failed program was:" >&5
1827 sed 's/^/| /' conftest.$ac_ext >&5
1831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832 as_fn_set_status $ac_retval
1834 } @%:@ ac_fn_cxx_try_compile
1836 @%:@ ac_fn_cxx_try_cpp LINENO
1837 @%:@ ------------------------
1838 @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1839 ac_fn_cxx_try_cpp ()
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 if { { ac_try="$ac_cpp conftest.$ac_ext"
1844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1845 *) ac_try_echo=$ac_try;;
1847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1848 $as_echo "$ac_try_echo"; } >&5
1849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1851 if test -s conftest.err; then
1852 grep -v '^ *+' conftest.err >conftest.er1
1853 cat conftest.er1 >&5
1854 mv -f conftest.er1 conftest.err
1856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857 test $ac_status = 0; } > conftest.i && {
1858 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1859 test ! -s conftest.err
1863 $as_echo "$as_me: failed program was:" >&5
1864 sed 's/^/| /' conftest.$ac_ext >&5
1868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869 as_fn_set_status $ac_retval
1871 } @%:@ ac_fn_cxx_try_cpp
1873 @%:@ ac_fn_cxx_try_link LINENO
1874 @%:@ -------------------------
1875 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1876 ac_fn_cxx_try_link ()
1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879 rm -f conftest.$ac_objext conftest$ac_exeext
1880 if { { ac_try="$ac_link"
1882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1883 *) ac_try_echo=$ac_try;;
1885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1886 $as_echo "$ac_try_echo"; } >&5
1887 (eval "$ac_link") 2>conftest.err
1889 if test -s conftest.err; then
1890 grep -v '^ *+' conftest.err >conftest.er1
1891 cat conftest.er1 >&5
1892 mv -f conftest.er1 conftest.err
1894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1895 test $ac_status = 0; } && {
1896 test -z "$ac_cxx_werror_flag" ||
1897 test ! -s conftest.err
1898 } && test -s conftest$ac_exeext && {
1899 test "$cross_compiling" = yes ||
1900 test -x conftest$ac_exeext
1904 $as_echo "$as_me: failed program was:" >&5
1905 sed 's/^/| /' conftest.$ac_ext >&5
1909 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1910 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1911 # interfere with the next link command; also delete a directory that is
1912 # left behind by Apple's compiler. We do this before executing the actions.
1913 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915 as_fn_set_status $ac_retval
1917 } @%:@ ac_fn_cxx_try_link
1919 @%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1920 @%:@ -------------------------------------------------------
1921 @%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
1922 @%:@ the include files in INCLUDES and setting the cache variable VAR
1924 ac_fn_c_check_header_mongrel ()
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 if eval \${$3+:} false; then :
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1929 $as_echo_n "checking for $2... " >&6; }
1930 if eval \${$3+:} false; then :
1931 $as_echo_n "(cached) " >&6
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1935 $as_echo "$ac_res" >&6; }
1937 # Is the header compilable?
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1939 $as_echo_n "checking $2 usability... " >&6; }
1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941 /* end confdefs.h. */
1945 if ac_fn_c_try_compile "$LINENO"; then :
1946 ac_header_compiler=yes
1948 ac_header_compiler=no
1950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1952 $as_echo "$ac_header_compiler" >&6; }
1954 # Is the header present?
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1956 $as_echo_n "checking $2 presence... " >&6; }
1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h. */
1961 if ac_fn_c_try_cpp "$LINENO"; then :
1962 ac_header_preproc=yes
1964 ac_header_preproc=no
1966 rm -f conftest.err conftest.i conftest.$ac_ext
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1968 $as_echo "$ac_header_preproc" >&6; }
1970 # So? What about this header?
1971 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1974 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1976 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1980 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1982 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1984 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1986 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1988 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1992 $as_echo_n "checking for $2... " >&6; }
1993 if eval \${$3+:} false; then :
1994 $as_echo_n "(cached) " >&6
1996 eval "$3=\$ac_header_compiler"
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2000 $as_echo "$ac_res" >&6; }
2002 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2004 } @%:@ ac_fn_c_check_header_mongrel
2006 @%:@ ac_fn_c_find_uintX_t LINENO BITS VAR
2007 @%:@ ------------------------------------
2008 @%:@ Finds an unsigned integer type with width BITS, setting cache variable VAR
2010 ac_fn_c_find_uintX_t ()
2012 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2014 $as_echo_n "checking for uint$2_t... " >&6; }
2015 if eval \${$3+:} false; then :
2016 $as_echo_n "(cached) " >&6
2019 # Order is important - never check a type that is potentially smaller
2020 # than half of the expected target width.
2021 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2022 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h. */
2025 $ac_includes_default
2029 static int test_array @<:@1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)@:>@;
2030 test_array @<:@0@:>@ = 0;
2031 return test_array @<:@0@:>@;
2037 if ac_fn_c_try_compile "$LINENO"; then :
2038 case $ac_type in @%:@(
2040 eval "$3=yes" ;; @%:@(
2042 eval "$3=\$ac_type" ;;
2045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2046 if eval test \"x\$"$3"\" = x"no"; then :
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2055 $as_echo "$ac_res" >&6; }
2056 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2058 } @%:@ ac_fn_c_find_uintX_t
2059 cat >config.log <<_ACEOF
2060 This file contains any messages produced by compilers while
2061 running configure, to aid debugging if configure makes a mistake.
2063 It was created by Jerasure $as_me 2.0, which was
2064 generated by GNU Autoconf 2.69. Invocation command line was
2076 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2077 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2078 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2079 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2080 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2082 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2083 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2085 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2086 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2087 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2088 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2089 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2090 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2091 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2099 test -z "$as_dir" && as_dir=.
2100 $as_echo "PATH: $as_dir"
2116 # Keep a trace of the command line.
2117 # Strip out --no-create and --no-recursion so they do not pile up.
2118 # Strip out --silent because we don't want to record it for future runs.
2119 # Also quote any args containing shell meta-characters.
2120 # Make two passes to allow for proper duplicate-argument suppression.
2124 ac_must_keep_next=false
2130 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2131 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2132 | -silent | --silent | --silen | --sile | --sil)
2135 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2138 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2140 as_fn_append ac_configure_args1 " '$ac_arg'"
2141 if test $ac_must_keep_next = true; then
2142 ac_must_keep_next=false # Got value, back to normal.
2145 *=* | --config-cache | -C | -disable-* | --disable-* \
2146 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2147 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2148 | -with-* | --with-* | -without-* | --without-* | --x)
2149 case "$ac_configure_args0 " in
2150 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2153 -* ) ac_must_keep_next=true ;;
2156 as_fn_append ac_configure_args " '$ac_arg'"
2161 { ac_configure_args0=; unset ac_configure_args0;}
2162 { ac_configure_args1=; unset ac_configure_args1;}
2164 # When interrupted or exit'd, cleanup temporary files, and complete
2165 # config.log. We remove comments because anyway the quotes in there
2166 # would cause problems or look ugly.
2167 # WARNING: Use '\'' to represent an apostrophe within the trap.
2168 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2169 trap 'exit_status=$?
2170 # Save into config.log some information that might help in debugging.
2174 $as_echo "## ---------------- ##
2175 ## Cache variables. ##
2176 ## ---------------- ##"
2178 # The following way of writing the cache mishandles newlines in values,
2180 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2181 eval ac_val=\$$ac_var
2185 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2186 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2189 _ | IFS | as_nl) ;; #(
2190 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2191 *) { eval $ac_var=; unset $ac_var;} ;;
2196 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2197 *${as_nl}ac_space=\ *)
2199 "s/'\''/'\''\\\\'\'''\''/g;
2200 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2203 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2210 $as_echo "## ----------------- ##
2211 ## Output variables. ##
2212 ## ----------------- ##"
2214 for ac_var in $ac_subst_vars
2216 eval ac_val=\$$ac_var
2218 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2220 $as_echo "$ac_var='\''$ac_val'\''"
2224 if test -n "$ac_subst_files"; then
2225 $as_echo "## ------------------- ##
2226 ## File substitutions. ##
2227 ## ------------------- ##"
2229 for ac_var in $ac_subst_files
2231 eval ac_val=\$$ac_var
2233 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2235 $as_echo "$ac_var='\''$ac_val'\''"
2240 if test -s confdefs.h; then
2241 $as_echo "## ----------- ##
2248 test "$ac_signal" != 0 &&
2249 $as_echo "$as_me: caught signal $ac_signal"
2250 $as_echo "$as_me: exit $exit_status"
2252 rm -f core *.core core.conftest.* &&
2253 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2256 for ac_signal in 1 2 13 15; do
2257 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2261 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2262 rm -f -r conftest* confdefs.h
2264 $as_echo "/* confdefs.h */" > confdefs.h
2266 # Predefined preprocessor variables.
2268 cat >>confdefs.h <<_ACEOF
2269 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
2272 cat >>confdefs.h <<_ACEOF
2273 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2276 cat >>confdefs.h <<_ACEOF
2277 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2280 cat >>confdefs.h <<_ACEOF
2281 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
2284 cat >>confdefs.h <<_ACEOF
2285 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2288 cat >>confdefs.h <<_ACEOF
2289 @%:@define PACKAGE_URL "$PACKAGE_URL"
2293 # Let the site file select an alternate cache file if it wants to.
2294 # Prefer an explicitly selected file to automatically selected ones.
2297 if test -n "$CONFIG_SITE"; then
2298 # We do not want a PATH search for config.site.
2299 case $CONFIG_SITE in @%:@((
2300 -*) ac_site_file1=./$CONFIG_SITE;;
2301 */*) ac_site_file1=$CONFIG_SITE;;
2302 *) ac_site_file1=./$CONFIG_SITE;;
2304 elif test "x$prefix" != xNONE; then
2305 ac_site_file1=$prefix/share/config.site
2306 ac_site_file2=$prefix/etc/config.site
2308 ac_site_file1=$ac_default_prefix/share/config.site
2309 ac_site_file2=$ac_default_prefix/etc/config.site
2311 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2313 test "x$ac_site_file" = xNONE && continue
2314 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2316 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2317 sed 's/^/| /' "$ac_site_file" >&5
2319 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2321 as_fn_error $? "failed to load site script $ac_site_file
2322 See \`config.log' for more details" "$LINENO" 5; }
2326 if test -r "$cache_file"; then
2327 # Some versions of bash will fail to source /dev/null (special files
2328 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2329 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2331 $as_echo "$as_me: loading cache $cache_file" >&6;}
2333 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2334 *) . "./$cache_file";;
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2339 $as_echo "$as_me: creating cache $cache_file" >&6;}
2343 # Check that the precious variables saved in the cache have kept the same
2345 ac_cache_corrupted=false
2346 for ac_var in $ac_precious_vars; do
2347 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2348 eval ac_new_set=\$ac_env_${ac_var}_set
2349 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2350 eval ac_new_val=\$ac_env_${ac_var}_value
2351 case $ac_old_set,$ac_new_set in
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2354 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2355 ac_cache_corrupted=: ;;
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2358 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2359 ac_cache_corrupted=: ;;
2362 if test "x$ac_old_val" != "x$ac_new_val"; then
2363 # differences in whitespace do not lead to failure.
2364 ac_old_val_w=`echo x $ac_old_val`
2365 ac_new_val_w=`echo x $ac_new_val`
2366 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2368 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2369 ac_cache_corrupted=:
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2372 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2373 eval $ac_var=\$ac_old_val
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2376 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2378 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2381 # Pass precious variables to config.status.
2382 if test "$ac_new_set" = set; then
2384 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2385 *) ac_arg=$ac_var=$ac_new_val ;;
2387 case " $ac_configure_args " in
2388 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2389 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2393 if $ac_cache_corrupted; then
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2395 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2397 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2398 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2400 ## -------------------- ##
2401 ## Main body of script. ##
2402 ## -------------------- ##
2405 ac_cpp='$CPP $CPPFLAGS'
2406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2412 ac_config_headers="$ac_config_headers include/config.h"
2416 for ac_dir in build-aux "$srcdir"/build-aux; do
2417 if test -f "$ac_dir/install-sh"; then
2419 ac_install_sh="$ac_aux_dir/install-sh -c"
2421 elif test -f "$ac_dir/install.sh"; then
2423 ac_install_sh="$ac_aux_dir/install.sh -c"
2425 elif test -f "$ac_dir/shtool"; then
2427 ac_install_sh="$ac_aux_dir/shtool install -c"
2431 if test -z "$ac_aux_dir"; then
2432 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2435 # These three variables are undocumented and unsupported,
2436 # and are intended to be withdrawn in a future Autoconf release.
2437 # They can cause serious problems if a builder's source tree is in a directory
2438 # whose full name contains unusual characters.
2439 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2440 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2441 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2446 am__api_version='1.15'
2448 # Find a good install program. We prefer a C program (faster),
2449 # so one script is as good as another. But avoid the broken or
2450 # incompatible versions:
2451 # SysV /etc/install, /usr/sbin/install
2452 # SunOS /usr/etc/install
2453 # IRIX /sbin/install
2455 # AmigaOS /C/install, which installs bootblocks on floppy discs
2456 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2457 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2458 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2459 # OS/2's system install, which has a completely different semantic
2460 # ./install, which can be erroneously created by make from ./install.sh.
2461 # Reject install programs that cannot install multiple files.
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2463 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2464 if test -z "$INSTALL"; then
2465 if ${ac_cv_path_install+:} false; then :
2466 $as_echo_n "(cached) " >&6
2468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472 test -z "$as_dir" && as_dir=.
2473 # Account for people who put trailing slashes in PATH elements.
2474 case $as_dir/ in @%:@((
2475 ./ | .// | /[cC]/* | \
2476 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2477 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2480 # OSF1 and SCO ODT 3.0 have their own names for install.
2481 # Don't use installbsd from OSF since it installs stuff as root
2483 for ac_prog in ginstall scoinst install; do
2484 for ac_exec_ext in '' $ac_executable_extensions; do
2485 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2486 if test $ac_prog = install &&
2487 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2488 # AIX install. It has an incompatible calling convention.
2490 elif test $ac_prog = install &&
2491 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2492 # program-specific install script used by HP pwplus--don't use.
2495 rm -rf conftest.one conftest.two conftest.dir
2496 echo one > conftest.one
2497 echo two > conftest.two
2499 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2500 test -s conftest.one && test -s conftest.two &&
2501 test -s conftest.dir/conftest.one &&
2502 test -s conftest.dir/conftest.two
2504 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2517 rm -rf conftest.one conftest.two conftest.dir
2520 if test "${ac_cv_path_install+set}" = set; then
2521 INSTALL=$ac_cv_path_install
2523 # As a last resort, use the slow shell script. Don't cache a
2524 # value for INSTALL within a source directory, because that will
2525 # break other packages using the cache if that directory is
2526 # removed, or if the value is a relative name.
2527 INSTALL=$ac_install_sh
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2531 $as_echo "$INSTALL" >&6; }
2533 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2534 # It thinks the first close brace ends the variable substitution.
2535 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2537 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2539 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2542 $as_echo_n "checking whether build environment is sane... " >&6; }
2543 # Reject unsafe characters in $srcdir or the absolute working directory
2544 # name. Accept space and tab only in the latter.
2548 *[\\\"\#\$\&\'\`$am_lf]*)
2549 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2552 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2553 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2556 # Do 'set' in a subshell so we don't clobber the current shell's
2557 # arguments. Must try -L first in case configure is actually a
2558 # symlink; some systems play weird games with the mod time of symlinks
2559 # (eg FreeBSD returns the mod time of the symlink's containing
2563 for am_try in 1 2; do
2564 echo "timestamp, slept: $am_has_slept" > conftest.file
2565 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2566 if test "$*" = "X"; then
2568 set X `ls -t "$srcdir/configure" conftest.file`
2570 if test "$*" != "X $srcdir/configure conftest.file" \
2571 && test "$*" != "X conftest.file $srcdir/configure"; then
2573 # If neither matched, then we have a broken ls. This can happen
2574 # if, for instance, CONFIG_SHELL is bash and it inherits a
2575 # broken ls alias from the environment. This has actually
2576 # happened. Such a system could not be considered "sane".
2577 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2578 alias in your environment" "$LINENO" 5
2580 if test "$2" = conftest.file || test $am_try -eq 2; then
2587 test "$2" = conftest.file
2593 as_fn_error $? "newly created file is older than distributed files!
2594 Check your system clock" "$LINENO" 5
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2597 $as_echo "yes" >&6; }
2598 # If we didn't sleep, we still need to ensure time stamps of config.status and
2599 # generated files are strictly newer.
2601 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2608 test "$program_prefix" != NONE &&
2609 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2610 # Use a double $ so make ignores it.
2611 test "$program_suffix" != NONE &&
2612 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2613 # Double any \ or $.
2614 # By default was `s,x,x', remove it if useless.
2615 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2616 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2618 # Expand $ac_aux_dir to an absolute path.
2619 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2621 if test x"${MISSING+set}" != xset; then
2624 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2626 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2629 # Use eval to expand $SHELL
2630 if eval "$MISSING --is-lightweight"; then
2631 am_missing_run="$MISSING "
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2635 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2638 if test x"${install_sh+set}" != xset; then
2641 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2643 install_sh="\${SHELL} $am_aux_dir/install-sh"
2647 # Installed binaries are usually stripped using 'strip' when the user
2648 # run "make install-strip". However 'strip' might not be the right
2649 # tool to use in cross-compilation environments, therefore Automake
2650 # will honor the 'STRIP' environment variable to overrule this program.
2651 if test "$cross_compiling" != no; then
2652 if test -n "$ac_tool_prefix"; then
2653 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2654 set dummy ${ac_tool_prefix}strip; ac_word=$2
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2656 $as_echo_n "checking for $ac_word... " >&6; }
2657 if ${ac_cv_prog_STRIP+:} false; then :
2658 $as_echo_n "(cached) " >&6
2660 if test -n "$STRIP"; then
2661 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667 test -z "$as_dir" && as_dir=.
2668 for ac_exec_ext in '' $ac_executable_extensions; do
2669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2670 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2680 STRIP=$ac_cv_prog_STRIP
2681 if test -n "$STRIP"; then
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2683 $as_echo "$STRIP" >&6; }
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2686 $as_echo "no" >&6; }
2691 if test -z "$ac_cv_prog_STRIP"; then
2693 # Extract the first word of "strip", so it can be a program name with args.
2694 set dummy strip; ac_word=$2
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2696 $as_echo_n "checking for $ac_word... " >&6; }
2697 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2698 $as_echo_n "(cached) " >&6
2700 if test -n "$ac_ct_STRIP"; then
2701 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707 test -z "$as_dir" && as_dir=.
2708 for ac_exec_ext in '' $ac_executable_extensions; do
2709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2710 ac_cv_prog_ac_ct_STRIP="strip"
2711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2720 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2721 if test -n "$ac_ct_STRIP"; then
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2723 $as_echo "$ac_ct_STRIP" >&6; }
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2726 $as_echo "no" >&6; }
2729 if test "x$ac_ct_STRIP" = x; then
2732 case $cross_compiling:$ac_tool_warned in
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2735 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2736 ac_tool_warned=yes ;;
2741 STRIP="$ac_cv_prog_STRIP"
2745 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2748 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2749 if test -z "$MKDIR_P"; then
2750 if ${ac_cv_path_mkdir+:} false; then :
2751 $as_echo_n "(cached) " >&6
2753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2754 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2757 test -z "$as_dir" && as_dir=.
2758 for ac_prog in mkdir gmkdir; do
2759 for ac_exec_ext in '' $ac_executable_extensions; do
2760 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2761 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2762 'mkdir (GNU coreutils) '* | \
2763 'mkdir (coreutils) '* | \
2764 'mkdir (fileutils) '4.1*)
2765 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2775 test -d ./--version && rmdir ./--version
2776 if test "${ac_cv_path_mkdir+set}" = set; then
2777 MKDIR_P="$ac_cv_path_mkdir -p"
2779 # As a last resort, use the slow shell script. Don't cache a
2780 # value for MKDIR_P within a source directory, because that will
2781 # break other packages using the cache if that directory is
2782 # removed, or if the value is a relative name.
2783 MKDIR_P="$ac_install_sh -d"
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2787 $as_echo "$MKDIR_P" >&6; }
2789 for ac_prog in gawk mawk nawk awk
2791 # Extract the first word of "$ac_prog", so it can be a program name with args.
2792 set dummy $ac_prog; ac_word=$2
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2794 $as_echo_n "checking for $ac_word... " >&6; }
2795 if ${ac_cv_prog_AWK+:} false; then :
2796 $as_echo_n "(cached) " >&6
2798 if test -n "$AWK"; then
2799 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805 test -z "$as_dir" && as_dir=.
2806 for ac_exec_ext in '' $ac_executable_extensions; do
2807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2808 ac_cv_prog_AWK="$ac_prog"
2809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2819 if test -n "$AWK"; then
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2821 $as_echo "$AWK" >&6; }
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2824 $as_echo "no" >&6; }
2828 test -n "$AWK" && break
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2832 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2834 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2835 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2836 $as_echo_n "(cached) " >&6
2838 cat >conftest.make <<\_ACEOF
2841 @echo '@@@%%%=$(MAKE)=@@@%%%'
2843 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2844 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2846 eval ac_cv_prog_make_${ac_make}_set=yes;;
2848 eval ac_cv_prog_make_${ac_make}_set=no;;
2852 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2854 $as_echo "yes" >&6; }
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2858 $as_echo "no" >&6; }
2859 SET_MAKE="MAKE=${MAKE-make}"
2862 rm -rf .tst 2>/dev/null
2863 mkdir .tst 2>/dev/null
2864 if test -d .tst; then
2869 rmdir .tst 2>/dev/null
2871 @%:@ Check whether --enable-silent-rules was given.
2872 if test "${enable_silent_rules+set}" = set; then :
2873 enableval=$enable_silent_rules;
2876 case $enable_silent_rules in @%:@ (((
2877 yes) AM_DEFAULT_VERBOSITY=0;;
2878 no) AM_DEFAULT_VERBOSITY=1;;
2879 *) AM_DEFAULT_VERBOSITY=1;;
2881 am_make=${MAKE-make}
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2883 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2884 if ${am_cv_make_support_nested_variables+:} false; then :
2885 $as_echo_n "(cached) " >&6
2887 if $as_echo 'TRUE=$(BAR$(V))
2893 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2894 am_cv_make_support_nested_variables=yes
2896 am_cv_make_support_nested_variables=no
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2900 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2901 if test $am_cv_make_support_nested_variables = yes; then
2903 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2905 AM_V=$AM_DEFAULT_VERBOSITY
2906 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2910 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2911 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2912 # is not polluted with repeated "-I."
2913 am__isrc=' -I$(srcdir)'
2914 # test to see if srcdir already configured
2915 if test -f $srcdir/config.status; then
2916 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2920 # test whether we have cygpath
2921 if test -z "$CYGPATH_W"; then
2922 if (cygpath --version) >/dev/null 2>/dev/null; then
2923 CYGPATH_W='cygpath -w'
2930 # Define the identity of the package.
2935 cat >>confdefs.h <<_ACEOF
2936 @%:@define PACKAGE "$PACKAGE"
2940 cat >>confdefs.h <<_ACEOF
2941 @%:@define VERSION "$VERSION"
2944 # Some tools Automake needs.
2946 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2949 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2952 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2955 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2958 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2960 # For better backward compatibility. To be removed once Automake 1.9.x
2961 # dies out for good. For more background, see:
2962 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2963 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2964 mkdir_p='$(MKDIR_P)'
2966 # We need awk for the "check" target (and possibly the TAP driver). The
2967 # system "awk" is bad on some platforms.
2968 # Always define AMTAR for backward compatibility. Yes, it's still used
2969 # in the wild :-( We should find a proper way to deprecate it ...
2973 # We'll loop over all known methods to create a tar archive until one works.
2974 _am_tools='gnutar pax cpio none'
2976 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2983 # POSIX will say in a future version that running "rm -f" with no argument
2984 # is OK; and we want to be able to make that assumption in our Makefile
2985 # recipes. So use an aggressive probe to check that the usage we want is
2986 # actually supported "in the wild" to an acceptable degree.
2987 # See automake bug#10828.
2988 # To make any issue more visible, cause the running configure to be aborted
2989 # by default if the 'rm' program in use doesn't match our expectations; the
2990 # user can still override this though.
2991 if rm -f && rm -fr && rm -rf; then : OK; else
2995 Your 'rm' program seems unable to run without file operands specified
2996 on the command line, even when the '-f' option is present. This is contrary
2997 to the behaviour of most rm programs out there, and not conforming with
2998 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3000 Please tell bug-automake@gnu.org about your system, including the value
3001 of your $PATH and any error possibly output before this message. This
3002 can help us improve future automake versions.
3005 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3006 echo 'Configuration will proceed anyway, since you have set the' >&2
3007 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3011 Aborting the configuration process, to ensure you take notice of the issue.
3013 You can download and install GNU coreutils to get an 'rm' implementation
3014 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3016 If you want to complete the configuration process using your problematic
3017 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3018 to "yes", and re-run configure.
3021 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3026 # Package default C compiler flags.
3027 : ${CFLAGS='-g -O3 -Wall'}
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3032 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3037 macro_version='2.4.6'
3038 macro_revision='2.4.6'
3052 ltmain=$ac_aux_dir/ltmain.sh
3054 # Make sure we can run config.sub.
3055 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3056 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3059 $as_echo_n "checking build system type... " >&6; }
3060 if ${ac_cv_build+:} false; then :
3061 $as_echo_n "(cached) " >&6
3063 ac_build_alias=$build_alias
3064 test "x$ac_build_alias" = x &&
3065 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3066 test "x$ac_build_alias" = x &&
3067 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3068 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3069 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3073 $as_echo "$ac_cv_build" >&6; }
3074 case $ac_cv_build in
3076 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3079 ac_save_IFS=$IFS; IFS='-'
3085 # Remember, the first character of IFS is used to create $*,
3086 # except with old shells:
3089 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3093 $as_echo_n "checking host system type... " >&6; }
3094 if ${ac_cv_host+:} false; then :
3095 $as_echo_n "(cached) " >&6
3097 if test "x$host_alias" = x; then
3098 ac_cv_host=$ac_cv_build
3100 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3101 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3106 $as_echo "$ac_cv_host" >&6; }
3109 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3112 ac_save_IFS=$IFS; IFS='-'
3118 # Remember, the first character of IFS is used to create $*,
3119 # except with old shells:
3122 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3125 # Backslashify metacharacters that are still active within
3126 # double-quoted strings.
3127 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3129 # Same as above, but do not quote variable references.
3130 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3132 # Sed substitution to delay expansion of an escaped shell variable in a
3133 # double_quote_subst'ed string.
3134 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3136 # Sed substitution to delay expansion of an escaped single quote.
3137 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3139 # Sed substitution to avoid accidental globbing in evaled expressions
3140 no_glob_subst='s/\*/\\\*/g'
3142 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3143 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3144 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3147 $as_echo_n "checking how to print strings... " >&6; }
3148 # Test print first, because it will be a builtin if present.
3149 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3150 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3152 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3155 # Use this function as a fallback that always works.
3156 func_fallback_echo ()
3158 eval 'cat <<_LTECHO_EOF
3162 ECHO='func_fallback_echo'
3165 # func_echo_all arg...
3166 # Invoke $ECHO with all args, space-separated.
3173 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3174 $as_echo "printf" >&6; } ;;
3175 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3176 $as_echo "print -r" >&6; } ;;
3177 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3178 $as_echo "cat" >&6; } ;;
3194 DEPDIR="${am__leading_dot}deps"
3196 ac_config_commands="$ac_config_commands depfiles"
3199 am_make=${MAKE-make}
3200 cat > confinc << 'END'
3202 @echo this is the am__doit target
3205 # If we don't find an include directive, just comment out the code.
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3207 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3211 # First try GNU make style include.
3212 echo "include confinc" > confmf
3213 # Ignore all kinds of additional output from 'make'.
3214 case `$am_make -s -f confmf 2> /dev/null` in #(
3215 *the\ am__doit\ target*)
3221 # Now try BSD make style include.
3222 if test "$am__include" = "#"; then
3223 echo '.include "confinc"' > confmf
3224 case `$am_make -s -f confmf 2> /dev/null` in #(
3225 *the\ am__doit\ target*)
3226 am__include=.include
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3235 $as_echo "$_am_result" >&6; }
3236 rm -f confinc confmf
3238 @%:@ Check whether --enable-dependency-tracking was given.
3239 if test "${enable_dependency_tracking+set}" = set; then :
3240 enableval=$enable_dependency_tracking;
3243 if test "x$enable_dependency_tracking" != xno; then
3244 am_depcomp="$ac_aux_dir/depcomp"
3248 if test "x$enable_dependency_tracking" != xno; then
3258 ac_cpp='$CPP $CPPFLAGS'
3259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3262 if test -n "$ac_tool_prefix"; then
3263 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3264 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3266 $as_echo_n "checking for $ac_word... " >&6; }
3267 if ${ac_cv_prog_CC+:} false; then :
3268 $as_echo_n "(cached) " >&6
3270 if test -n "$CC"; then
3271 ac_cv_prog_CC="$CC" # Let the user override the test.
3273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277 test -z "$as_dir" && as_dir=.
3278 for ac_exec_ext in '' $ac_executable_extensions; do
3279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3280 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3291 if test -n "$CC"; then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3293 $as_echo "$CC" >&6; }
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296 $as_echo "no" >&6; }
3301 if test -z "$ac_cv_prog_CC"; then
3303 # Extract the first word of "gcc", so it can be a program name with args.
3304 set dummy gcc; ac_word=$2
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3306 $as_echo_n "checking for $ac_word... " >&6; }
3307 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3308 $as_echo_n "(cached) " >&6
3310 if test -n "$ac_ct_CC"; then
3311 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317 test -z "$as_dir" && as_dir=.
3318 for ac_exec_ext in '' $ac_executable_extensions; do
3319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3320 ac_cv_prog_ac_ct_CC="gcc"
3321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3330 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3331 if test -n "$ac_ct_CC"; then
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3333 $as_echo "$ac_ct_CC" >&6; }
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3336 $as_echo "no" >&6; }
3339 if test "x$ac_ct_CC" = x; then
3342 case $cross_compiling:$ac_tool_warned in
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3345 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3346 ac_tool_warned=yes ;;
3354 if test -z "$CC"; then
3355 if test -n "$ac_tool_prefix"; then
3356 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3357 set dummy ${ac_tool_prefix}cc; ac_word=$2
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3359 $as_echo_n "checking for $ac_word... " >&6; }
3360 if ${ac_cv_prog_CC+:} false; then :
3361 $as_echo_n "(cached) " >&6
3363 if test -n "$CC"; then
3364 ac_cv_prog_CC="$CC" # Let the user override the test.
3366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3370 test -z "$as_dir" && as_dir=.
3371 for ac_exec_ext in '' $ac_executable_extensions; do
3372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3373 ac_cv_prog_CC="${ac_tool_prefix}cc"
3374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3384 if test -n "$CC"; then
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3386 $as_echo "$CC" >&6; }
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3389 $as_echo "no" >&6; }
3395 if test -z "$CC"; then
3396 # Extract the first word of "cc", so it can be a program name with args.
3397 set dummy cc; ac_word=$2
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3399 $as_echo_n "checking for $ac_word... " >&6; }
3400 if ${ac_cv_prog_CC+:} false; then :
3401 $as_echo_n "(cached) " >&6
3403 if test -n "$CC"; then
3404 ac_cv_prog_CC="$CC" # Let the user override the test.
3407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3411 test -z "$as_dir" && as_dir=.
3412 for ac_exec_ext in '' $ac_executable_extensions; do
3413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3414 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3415 ac_prog_rejected=yes
3419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3426 if test $ac_prog_rejected = yes; then
3427 # We found a bogon in the path, so make sure we never use it.
3428 set dummy $ac_cv_prog_CC
3430 if test $@%:@ != 0; then
3431 # We chose a different compiler from the bogus one.
3432 # However, it has the same basename, so the bogon will be chosen
3433 # first if we set CC to just the basename; use the full file name.
3435 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3441 if test -n "$CC"; then
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3443 $as_echo "$CC" >&6; }
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3446 $as_echo "no" >&6; }
3451 if test -z "$CC"; then
3452 if test -n "$ac_tool_prefix"; then
3453 for ac_prog in cl.exe
3455 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3456 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3458 $as_echo_n "checking for $ac_word... " >&6; }
3459 if ${ac_cv_prog_CC+:} false; then :
3460 $as_echo_n "(cached) " >&6
3462 if test -n "$CC"; then
3463 ac_cv_prog_CC="$CC" # Let the user override the test.
3465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3469 test -z "$as_dir" && as_dir=.
3470 for ac_exec_ext in '' $ac_executable_extensions; do
3471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3472 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3483 if test -n "$CC"; then
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3485 $as_echo "$CC" >&6; }
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3488 $as_echo "no" >&6; }
3492 test -n "$CC" && break
3495 if test -z "$CC"; then
3497 for ac_prog in cl.exe
3499 # Extract the first word of "$ac_prog", so it can be a program name with args.
3500 set dummy $ac_prog; ac_word=$2
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3502 $as_echo_n "checking for $ac_word... " >&6; }
3503 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3504 $as_echo_n "(cached) " >&6
3506 if test -n "$ac_ct_CC"; then
3507 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3513 test -z "$as_dir" && as_dir=.
3514 for ac_exec_ext in '' $ac_executable_extensions; do
3515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3516 ac_cv_prog_ac_ct_CC="$ac_prog"
3517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3526 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3527 if test -n "$ac_ct_CC"; then
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3529 $as_echo "$ac_ct_CC" >&6; }
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3532 $as_echo "no" >&6; }
3536 test -n "$ac_ct_CC" && break
3539 if test "x$ac_ct_CC" = x; then
3542 case $cross_compiling:$ac_tool_warned in
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3545 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3546 ac_tool_warned=yes ;;
3555 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3556 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3557 as_fn_error $? "no acceptable C compiler found in \$PATH
3558 See \`config.log' for more details" "$LINENO" 5; }
3560 # Provide some information about the compiler.
3561 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3564 for ac_option in --version -v -V -qversion; do
3565 { { ac_try="$ac_compiler $ac_option >&5"
3567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568 *) ac_try_echo=$ac_try;;
3570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3571 $as_echo "$ac_try_echo"; } >&5
3572 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3574 if test -s conftest.err; then
3576 ... rest of stderr output deleted ...
3577 10q' conftest.err >conftest.er1
3578 cat conftest.er1 >&5
3580 rm -f conftest.er1 conftest.err
3581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3582 test $ac_status = 0; }
3585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586 /* end confdefs.h. */
3596 ac_clean_files_save=$ac_clean_files
3597 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3598 # Try to create an executable without -o first, disregard a.out.
3599 # It will help us diagnose broken compilers, and finding out an intuition
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3602 $as_echo_n "checking whether the C compiler works... " >&6; }
3603 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3605 # The possible output files:
3606 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3609 for ac_file in $ac_files
3612 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3613 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3618 if { { ac_try="$ac_link_default"
3620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3621 *) ac_try_echo=$ac_try;;
3623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3624 $as_echo "$ac_try_echo"; } >&5
3625 (eval "$ac_link_default") 2>&5
3627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3628 test $ac_status = 0; }; then :
3629 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3630 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3631 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3632 # so that the user can short-circuit this test for compilers unknown to
3634 for ac_file in $ac_files ''
3636 test -f "$ac_file" || continue
3638 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3641 # We found the default executable, but exeext='' is most
3645 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3647 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3649 # We set ac_cv_exeext here because the later test for it is not
3650 # safe: cross compilers may not add the suffix if given an `-o'
3651 # argument, so we may need to know it at that point already.
3652 # Even if this section looks crufty: it has the advantage of
3659 test "$ac_cv_exeext" = no && ac_cv_exeext=
3664 if test -z "$ac_file"; then :
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3666 $as_echo "no" >&6; }
3667 $as_echo "$as_me: failed program was:" >&5
3668 sed 's/^/| /' conftest.$ac_ext >&5
3670 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3672 as_fn_error 77 "C compiler cannot create executables
3673 See \`config.log' for more details" "$LINENO" 5; }
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3676 $as_echo "yes" >&6; }
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3679 $as_echo_n "checking for C compiler default output file name... " >&6; }
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3681 $as_echo "$ac_file" >&6; }
3682 ac_exeext=$ac_cv_exeext
3684 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3685 ac_clean_files=$ac_clean_files_save
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3687 $as_echo_n "checking for suffix of executables... " >&6; }
3688 if { { ac_try="$ac_link"
3690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3691 *) ac_try_echo=$ac_try;;
3693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3694 $as_echo "$ac_try_echo"; } >&5
3695 (eval "$ac_link") 2>&5
3697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3698 test $ac_status = 0; }; then :
3699 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3700 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3701 # work properly (i.e., refer to `conftest.exe'), while it won't with
3703 for ac_file in conftest.exe conftest conftest.*; do
3704 test -f "$ac_file" || continue
3706 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3707 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3713 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3714 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3715 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3716 See \`config.log' for more details" "$LINENO" 5; }
3718 rm -f conftest conftest$ac_cv_exeext
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3720 $as_echo "$ac_cv_exeext" >&6; }
3722 rm -f conftest.$ac_ext
3723 EXEEXT=$ac_cv_exeext
3725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3726 /* end confdefs.h. */
3727 @%:@include <stdio.h>
3731 FILE *f = fopen ("conftest.out", "w");
3732 return ferror (f) || fclose (f) != 0;
3738 ac_clean_files="$ac_clean_files conftest.out"
3739 # Check that the compiler produces executables we can run. If not, either
3740 # the compiler is broken, or we cross compile.
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3742 $as_echo_n "checking whether we are cross compiling... " >&6; }
3743 if test "$cross_compiling" != yes; then
3744 { { ac_try="$ac_link"
3746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3747 *) ac_try_echo=$ac_try;;
3749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3750 $as_echo "$ac_try_echo"; } >&5
3751 (eval "$ac_link") 2>&5
3753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3754 test $ac_status = 0; }
3755 if { ac_try='./conftest$ac_cv_exeext'
3756 { { case "(($ac_try" in
3757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3758 *) ac_try_echo=$ac_try;;
3760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3761 $as_echo "$ac_try_echo"; } >&5
3762 (eval "$ac_try") 2>&5
3764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3765 test $ac_status = 0; }; }; then
3768 if test "$cross_compiling" = maybe; then
3771 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3772 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3773 as_fn_error $? "cannot run C compiled programs.
3774 If you meant to cross compile, use \`--host'.
3775 See \`config.log' for more details" "$LINENO" 5; }
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3780 $as_echo "$cross_compiling" >&6; }
3782 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3783 ac_clean_files=$ac_clean_files_save
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3785 $as_echo_n "checking for suffix of object files... " >&6; }
3786 if ${ac_cv_objext+:} false; then :
3787 $as_echo_n "(cached) " >&6
3789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3790 /* end confdefs.h. */
3800 rm -f conftest.o conftest.obj
3801 if { { ac_try="$ac_compile"
3803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3804 *) ac_try_echo=$ac_try;;
3806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3807 $as_echo "$ac_try_echo"; } >&5
3808 (eval "$ac_compile") 2>&5
3810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3811 test $ac_status = 0; }; then :
3812 for ac_file in conftest.o conftest.obj conftest.*; do
3813 test -f "$ac_file" || continue;
3815 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3816 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3821 $as_echo "$as_me: failed program was:" >&5
3822 sed 's/^/| /' conftest.$ac_ext >&5
3824 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3825 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3826 as_fn_error $? "cannot compute suffix of object files: cannot compile
3827 See \`config.log' for more details" "$LINENO" 5; }
3829 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3832 $as_echo "$ac_cv_objext" >&6; }
3833 OBJEXT=$ac_cv_objext
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3836 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3837 if ${ac_cv_c_compiler_gnu+:} false; then :
3838 $as_echo_n "(cached) " >&6
3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h. */
3854 if ac_fn_c_try_compile "$LINENO"; then :
3859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3860 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3864 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3865 if test $ac_compiler_gnu = yes; then
3870 ac_test_CFLAGS=${CFLAGS+set}
3871 ac_save_CFLAGS=$CFLAGS
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3873 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3874 if ${ac_cv_prog_cc_g+:} false; then :
3875 $as_echo_n "(cached) " >&6
3877 ac_save_c_werror_flag=$ac_c_werror_flag
3878 ac_c_werror_flag=yes
3881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3882 /* end confdefs.h. */
3892 if ac_fn_c_try_compile "$LINENO"; then :
3896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897 /* end confdefs.h. */
3907 if ac_fn_c_try_compile "$LINENO"; then :
3910 ac_c_werror_flag=$ac_save_c_werror_flag
3912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3913 /* end confdefs.h. */
3923 if ac_fn_c_try_compile "$LINENO"; then :
3926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3931 ac_c_werror_flag=$ac_save_c_werror_flag
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3934 $as_echo "$ac_cv_prog_cc_g" >&6; }
3935 if test "$ac_test_CFLAGS" = set; then
3936 CFLAGS=$ac_save_CFLAGS
3937 elif test $ac_cv_prog_cc_g = yes; then
3938 if test "$GCC" = yes; then
3944 if test "$GCC" = yes; then
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3951 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3952 if ${ac_cv_prog_cc_c89+:} false; then :
3953 $as_echo_n "(cached) " >&6
3955 ac_cv_prog_cc_c89=no
3957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3958 /* end confdefs.h. */
3962 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3963 struct buf { int x; };
3964 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3965 static char *e (p, i)
3971 static char *f (char * (*g) (char **, int), char **p, ...)
3976 s = g (p, va_arg (v,int));
3981 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3982 function prototypes and stuff, but not '\xHH' hex character constants.
3983 These don't provoke an error unfortunately, instead are silently treated
3984 as 'x'. The following induces an error, until -std is added to get
3985 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3986 array size at least. It's necessary to write '\x00'==0 to get something
3987 that's true only with -std. */
3988 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3990 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3991 inside strings and character constants. */
3993 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3995 int test (int i, double x);
3996 struct s1 {int (*f) (int a);};
3997 struct s2 {int (*f) (double a);};
3998 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4004 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4009 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4010 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4012 CC="$ac_save_CC $ac_arg"
4013 if ac_fn_c_try_compile "$LINENO"; then :
4014 ac_cv_prog_cc_c89=$ac_arg
4016 rm -f core conftest.err conftest.$ac_objext
4017 test "x$ac_cv_prog_cc_c89" != "xno" && break
4019 rm -f conftest.$ac_ext
4024 case "x$ac_cv_prog_cc_c89" in
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4027 $as_echo "none needed" >&6; } ;;
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4030 $as_echo "unsupported" >&6; } ;;
4032 CC="$CC $ac_cv_prog_cc_c89"
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4034 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4036 if test "x$ac_cv_prog_cc_c89" != xno; then :
4041 ac_cpp='$CPP $CPPFLAGS'
4042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4047 ac_cpp='$CPP $CPPFLAGS'
4048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4052 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4053 if ${am_cv_prog_cc_c_o+:} false; then :
4054 $as_echo_n "(cached) " >&6
4056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4057 /* end confdefs.h. */
4067 # Make sure it works both with $CC and with simple cc.
4068 # Following AC_PROG_CC_C_O, we do the test twice because some
4069 # compilers refuse to overwrite an existing .o file with -o,
4070 # though they will create one.
4071 am_cv_prog_cc_c_o=yes
4073 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4074 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); } \
4078 && test -f conftest2.$ac_objext; then
4081 am_cv_prog_cc_c_o=no
4085 rm -f core conftest*
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4089 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4090 if test "$am_cv_prog_cc_c_o" != yes; then
4091 # Losing compiler, so override with the script.
4092 # FIXME: It is wrong to rewrite CC.
4093 # But if we don't then we get into trouble of one sort or another.
4094 # A longer-term fix would be to have automake use am__CC in this case,
4095 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4096 CC="$am_aux_dir/compile $CC"
4099 ac_cpp='$CPP $CPPFLAGS'
4100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4105 depcc="$CC" am_compiler_list=
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4108 $as_echo_n "checking dependency style of $depcc... " >&6; }
4109 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4110 $as_echo_n "(cached) " >&6
4112 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4113 # We make a subdir and do the tests there. Otherwise we can end up
4114 # making bogus files that we don't know about and never remove. For
4115 # instance it was reported that on HP-UX the gcc test will end up
4116 # making a dummy file named 'D' -- because '-MD' means "put the output
4120 # Copy depcomp to subdir because otherwise we won't find it if we're
4121 # using a relative directory.
4122 cp "$am_depcomp" conftest.dir
4124 # We will build objects and dependencies in a subdirectory because
4125 # it helps to detect inapplicable dependency modes. For instance
4126 # both Tru64's cc and ICC support -MD to output dependencies as a
4127 # side effect of compilation, but ICC will put the dependencies in
4128 # the current directory while Tru64 will put them in the object
4132 am_cv_CC_dependencies_compiler_type=none
4133 if test "$am_compiler_list" = ""; then
4134 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4137 case " $depcc " in #(
4138 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4141 for depmode in $am_compiler_list; do
4142 # Setup a source with many dependencies, because some compilers
4143 # like to wrap large dependency lists on column 80 (with \), and
4144 # we should not choose a depcomp mode which is confused by this.
4146 # We need to recreate these files for each test, as the compiler may
4147 # overwrite some of them when testing with obscure command lines.
4148 # This happens at least with the AIX C compiler.
4150 for i in 1 2 3 4 5 6; do
4151 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4152 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4153 # Solaris 10 /bin/sh.
4154 echo '/* dummy */' > sub/conftst$i.h
4156 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4158 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4159 # mode. It turns out that the SunPro C++ compiler does not properly
4160 # handle '-M -o', and we need to detect this. Also, some Intel
4161 # versions had trouble with output in subdirs.
4162 am__obj=sub/conftest.${OBJEXT-o}
4163 am__minus_obj="-o $am__obj"
4166 # This depmode causes a compiler race in universal mode.
4167 test "$am__universal" = false || continue
4170 # After this tag, mechanisms are not by side-effect, so they'll
4171 # only be used when explicitly requested.
4172 if test "x$enable_dependency_tracking" = xyes; then
4178 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4179 # This compiler won't grok '-c -o', but also, the minuso test has
4180 # not run yet. These depmodes are late enough in the game, and
4181 # so weak that their functioning should not be impacted.
4182 am__obj=conftest.${OBJEXT-o}
4187 if depmode=$depmode \
4188 source=sub/conftest.c object=$am__obj \
4189 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4190 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4191 >/dev/null 2>conftest.err &&
4192 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4193 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4194 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4195 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4196 # icc doesn't choke on unknown options, it will just issue warnings
4197 # or remarks (even with -Werror). So we grep stderr for any message
4198 # that says an option was ignored or not supported.
4199 # When given -MP, icc 7.0 and 7.1 complain thusly:
4200 # icc: Command line warning: ignoring option '-M'; no argument required
4201 # The diagnosis changed in icc 8.0:
4202 # icc: Command line remark: option '-MP' not supported
4203 if (grep 'ignoring option' conftest.err ||
4204 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4205 am_cv_CC_dependencies_compiler_type=$depmode
4214 am_cv_CC_dependencies_compiler_type=none
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4219 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4220 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4223 test "x$enable_dependency_tracking" != xno \
4224 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4226 am__fastdepCC_FALSE='#'
4228 am__fastdepCC_TRUE='#'
4229 am__fastdepCC_FALSE=
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4234 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4235 if ${ac_cv_path_SED+:} false; then :
4236 $as_echo_n "(cached) " >&6
4238 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4239 for ac_i in 1 2 3 4 5 6 7; do
4240 ac_script="$ac_script$as_nl$ac_script"
4242 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4243 { ac_script=; unset ac_script;}
4244 if test -z "$SED"; then
4245 ac_path_SED_found=false
4246 # Loop through the user's path and test for each of PROGNAME-LIST
4247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251 test -z "$as_dir" && as_dir=.
4252 for ac_prog in sed gsed; do
4253 for ac_exec_ext in '' $ac_executable_extensions; do
4254 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4255 as_fn_executable_p "$ac_path_SED" || continue
4256 # Check for GNU ac_path_SED and select it if it is found.
4257 # Check for GNU $ac_path_SED
4258 case `"$ac_path_SED" --version 2>&1` in
4260 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4263 $as_echo_n 0123456789 >"conftest.in"
4266 cat "conftest.in" "conftest.in" >"conftest.tmp"
4267 mv "conftest.tmp" "conftest.in"
4268 cp "conftest.in" "conftest.nl"
4269 $as_echo '' >> "conftest.nl"
4270 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4271 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4272 as_fn_arith $ac_count + 1 && ac_count=$as_val
4273 if test $ac_count -gt ${ac_path_SED_max-0}; then
4274 # Best one so far, save it but keep looking for a better one
4275 ac_cv_path_SED="$ac_path_SED"
4276 ac_path_SED_max=$ac_count
4278 # 10*(2^10) chars as input seems more than enough
4279 test $ac_count -gt 10 && break
4281 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4284 $ac_path_SED_found && break 3
4289 if test -z "$ac_cv_path_SED"; then
4290 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4298 $as_echo "$ac_cv_path_SED" >&6; }
4299 SED="$ac_cv_path_SED"
4302 test -z "$SED" && SED=sed
4303 Xsed="$SED -e 1s/^X//"
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4316 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4317 if ${ac_cv_path_GREP+:} false; then :
4318 $as_echo_n "(cached) " >&6
4320 if test -z "$GREP"; then
4321 ac_path_GREP_found=false
4322 # Loop through the user's path and test for each of PROGNAME-LIST
4323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4324 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4327 test -z "$as_dir" && as_dir=.
4328 for ac_prog in grep ggrep; do
4329 for ac_exec_ext in '' $ac_executable_extensions; do
4330 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4331 as_fn_executable_p "$ac_path_GREP" || continue
4332 # Check for GNU ac_path_GREP and select it if it is found.
4333 # Check for GNU $ac_path_GREP
4334 case `"$ac_path_GREP" --version 2>&1` in
4336 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4339 $as_echo_n 0123456789 >"conftest.in"
4342 cat "conftest.in" "conftest.in" >"conftest.tmp"
4343 mv "conftest.tmp" "conftest.in"
4344 cp "conftest.in" "conftest.nl"
4345 $as_echo 'GREP' >> "conftest.nl"
4346 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4347 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4348 as_fn_arith $ac_count + 1 && ac_count=$as_val
4349 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4350 # Best one so far, save it but keep looking for a better one
4351 ac_cv_path_GREP="$ac_path_GREP"
4352 ac_path_GREP_max=$ac_count
4354 # 10*(2^10) chars as input seems more than enough
4355 test $ac_count -gt 10 && break
4357 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4360 $ac_path_GREP_found && break 3
4365 if test -z "$ac_cv_path_GREP"; then
4366 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4369 ac_cv_path_GREP=$GREP
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4374 $as_echo "$ac_cv_path_GREP" >&6; }
4375 GREP="$ac_cv_path_GREP"
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4379 $as_echo_n "checking for egrep... " >&6; }
4380 if ${ac_cv_path_EGREP+:} false; then :
4381 $as_echo_n "(cached) " >&6
4383 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4384 then ac_cv_path_EGREP="$GREP -E"
4386 if test -z "$EGREP"; then
4387 ac_path_EGREP_found=false
4388 # Loop through the user's path and test for each of PROGNAME-LIST
4389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4393 test -z "$as_dir" && as_dir=.
4394 for ac_prog in egrep; do
4395 for ac_exec_ext in '' $ac_executable_extensions; do
4396 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4397 as_fn_executable_p "$ac_path_EGREP" || continue
4398 # Check for GNU ac_path_EGREP and select it if it is found.
4399 # Check for GNU $ac_path_EGREP
4400 case `"$ac_path_EGREP" --version 2>&1` in
4402 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4405 $as_echo_n 0123456789 >"conftest.in"
4408 cat "conftest.in" "conftest.in" >"conftest.tmp"
4409 mv "conftest.tmp" "conftest.in"
4410 cp "conftest.in" "conftest.nl"
4411 $as_echo 'EGREP' >> "conftest.nl"
4412 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4413 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4414 as_fn_arith $ac_count + 1 && ac_count=$as_val
4415 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4416 # Best one so far, save it but keep looking for a better one
4417 ac_cv_path_EGREP="$ac_path_EGREP"
4418 ac_path_EGREP_max=$ac_count
4420 # 10*(2^10) chars as input seems more than enough
4421 test $ac_count -gt 10 && break
4423 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4426 $ac_path_EGREP_found && break 3
4431 if test -z "$ac_cv_path_EGREP"; then
4432 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4435 ac_cv_path_EGREP=$EGREP
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4441 $as_echo "$ac_cv_path_EGREP" >&6; }
4442 EGREP="$ac_cv_path_EGREP"
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4446 $as_echo_n "checking for fgrep... " >&6; }
4447 if ${ac_cv_path_FGREP+:} false; then :
4448 $as_echo_n "(cached) " >&6
4450 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4451 then ac_cv_path_FGREP="$GREP -F"
4453 if test -z "$FGREP"; then
4454 ac_path_FGREP_found=false
4455 # Loop through the user's path and test for each of PROGNAME-LIST
4456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4457 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4460 test -z "$as_dir" && as_dir=.
4461 for ac_prog in fgrep; do
4462 for ac_exec_ext in '' $ac_executable_extensions; do
4463 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4464 as_fn_executable_p "$ac_path_FGREP" || continue
4465 # Check for GNU ac_path_FGREP and select it if it is found.
4466 # Check for GNU $ac_path_FGREP
4467 case `"$ac_path_FGREP" --version 2>&1` in
4469 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4472 $as_echo_n 0123456789 >"conftest.in"
4475 cat "conftest.in" "conftest.in" >"conftest.tmp"
4476 mv "conftest.tmp" "conftest.in"
4477 cp "conftest.in" "conftest.nl"
4478 $as_echo 'FGREP' >> "conftest.nl"
4479 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4480 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4481 as_fn_arith $ac_count + 1 && ac_count=$as_val
4482 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4483 # Best one so far, save it but keep looking for a better one
4484 ac_cv_path_FGREP="$ac_path_FGREP"
4485 ac_path_FGREP_max=$ac_count
4487 # 10*(2^10) chars as input seems more than enough
4488 test $ac_count -gt 10 && break
4490 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4493 $ac_path_FGREP_found && break 3
4498 if test -z "$ac_cv_path_FGREP"; then
4499 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4502 ac_cv_path_FGREP=$FGREP
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4508 $as_echo "$ac_cv_path_FGREP" >&6; }
4509 FGREP="$ac_cv_path_FGREP"
4512 test -z "$GREP" && GREP=grep
4532 @%:@ Check whether --with-gnu-ld was given.
4533 if test "${with_gnu_ld+set}" = set; then :
4534 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4540 if test yes = "$GCC"; then
4541 # Check if gcc -print-prog-name=ld gives a path.
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4543 $as_echo_n "checking for ld used by $CC... " >&6; }
4546 # gcc leaves a trailing carriage return, which upsets mingw
4547 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4549 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4552 # Accept absolute paths.
4554 re_direlt='/[^/][^/]*/\.\./'
4555 # Canonicalize the pathname of ld
4556 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4557 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4558 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4560 test -z "$LD" && LD=$ac_prog
4563 # If it fails, then pretend we aren't using GCC.
4567 # If it is relative, then search for the first ld in PATH.
4571 elif test yes = "$with_gnu_ld"; then
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4573 $as_echo_n "checking for GNU ld... " >&6; }
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4576 $as_echo_n "checking for non-GNU ld... " >&6; }
4578 if ${lt_cv_path_LD+:} false; then :
4579 $as_echo_n "(cached) " >&6
4581 if test -z "$LD"; then
4582 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4583 for ac_dir in $PATH; do
4585 test -z "$ac_dir" && ac_dir=.
4586 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4587 lt_cv_path_LD=$ac_dir/$ac_prog
4588 # Check to see if the program is GNU ld. I'd rather use --version,
4589 # but apparently some variants of GNU ld only accept -v.
4590 # Break only if it was the GNU/non-GNU ld that we prefer.
4591 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4592 *GNU* | *'with BFD'*)
4593 test no != "$with_gnu_ld" && break
4596 test yes != "$with_gnu_ld" && break
4603 lt_cv_path_LD=$LD # Let the user override the test with a path.
4608 if test -n "$LD"; then
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4610 $as_echo "$LD" >&6; }
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4613 $as_echo "no" >&6; }
4615 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4617 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4618 if ${lt_cv_prog_gnu_ld+:} false; then :
4619 $as_echo_n "(cached) " >&6
4621 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4622 case `$LD -v 2>&1 </dev/null` in
4623 *GNU* | *'with BFD'*)
4624 lt_cv_prog_gnu_ld=yes
4627 lt_cv_prog_gnu_ld=no
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4632 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4633 with_gnu_ld=$lt_cv_prog_gnu_ld
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4644 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4645 if ${lt_cv_path_NM+:} false; then :
4646 $as_echo_n "(cached) " >&6
4648 if test -n "$NM"; then
4649 # Let the user override the test.
4652 lt_nm_to_check=${ac_tool_prefix}nm
4653 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4654 lt_nm_to_check="$lt_nm_to_check nm"
4656 for lt_tmp_nm in $lt_nm_to_check; do
4657 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4658 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4660 test -z "$ac_dir" && ac_dir=.
4661 tmp_nm=$ac_dir/$lt_tmp_nm
4662 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4663 # Check to see if the nm accepts a BSD-compat flag.
4664 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4665 # nm: unknown option "B" ignored
4666 # Tru64's nm complains that /dev/null is an invalid object file
4667 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4669 mingw*) lt_bad_file=conftest.nm/nofile ;;
4670 *) lt_bad_file=/dev/null ;;
4672 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4673 *$lt_bad_file* | *'Invalid file or object type'*)
4674 lt_cv_path_NM="$tmp_nm -B"
4678 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4680 lt_cv_path_NM="$tmp_nm -p"
4684 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4685 continue # so that we can try to find one that supports BSD flags
4694 : ${lt_cv_path_NM=no}
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4698 $as_echo "$lt_cv_path_NM" >&6; }
4699 if test no != "$lt_cv_path_NM"; then
4702 # Didn't find any BSD compatible name lister, look for dumpbin.
4703 if test -n "$DUMPBIN"; then :
4704 # Let the user override the test.
4706 if test -n "$ac_tool_prefix"; then
4707 for ac_prog in dumpbin "link -dump"
4709 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4710 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4712 $as_echo_n "checking for $ac_word... " >&6; }
4713 if ${ac_cv_prog_DUMPBIN+:} false; then :
4714 $as_echo_n "(cached) " >&6
4716 if test -n "$DUMPBIN"; then
4717 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4723 test -z "$as_dir" && as_dir=.
4724 for ac_exec_ext in '' $ac_executable_extensions; do
4725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4726 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4736 DUMPBIN=$ac_cv_prog_DUMPBIN
4737 if test -n "$DUMPBIN"; then
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4739 $as_echo "$DUMPBIN" >&6; }
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4742 $as_echo "no" >&6; }
4746 test -n "$DUMPBIN" && break
4749 if test -z "$DUMPBIN"; then
4750 ac_ct_DUMPBIN=$DUMPBIN
4751 for ac_prog in dumpbin "link -dump"
4753 # Extract the first word of "$ac_prog", so it can be a program name with args.
4754 set dummy $ac_prog; ac_word=$2
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4756 $as_echo_n "checking for $ac_word... " >&6; }
4757 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4758 $as_echo_n "(cached) " >&6
4760 if test -n "$ac_ct_DUMPBIN"; then
4761 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4767 test -z "$as_dir" && as_dir=.
4768 for ac_exec_ext in '' $ac_executable_extensions; do
4769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4770 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4780 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4781 if test -n "$ac_ct_DUMPBIN"; then
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4783 $as_echo "$ac_ct_DUMPBIN" >&6; }
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4786 $as_echo "no" >&6; }
4790 test -n "$ac_ct_DUMPBIN" && break
4793 if test "x$ac_ct_DUMPBIN" = x; then
4796 case $cross_compiling:$ac_tool_warned in
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4799 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4800 ac_tool_warned=yes ;;
4802 DUMPBIN=$ac_ct_DUMPBIN
4806 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4808 DUMPBIN="$DUMPBIN -symbols -headers"
4816 if test : != "$DUMPBIN"; then
4820 test -z "$NM" && NM=nm
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4828 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4829 if ${lt_cv_nm_interface+:} false; then :
4830 $as_echo_n "(cached) " >&6
4832 lt_cv_nm_interface="BSD nm"
4833 echo "int some_variable = 0;" > conftest.$ac_ext
4834 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4835 (eval "$ac_compile" 2>conftest.err)
4836 cat conftest.err >&5
4837 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4838 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4839 cat conftest.err >&5
4840 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4841 cat conftest.out >&5
4842 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4843 lt_cv_nm_interface="MS dumpbin"
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4848 $as_echo "$lt_cv_nm_interface" >&6; }
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4851 $as_echo_n "checking whether ln -s works... " >&6; }
4853 if test "$LN_S" = "ln -s"; then
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4855 $as_echo "yes" >&6; }
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4858 $as_echo "no, using $LN_S" >&6; }
4861 # find the maximum length of command line arguments
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4863 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4864 if ${lt_cv_sys_max_cmd_len+:} false; then :
4865 $as_echo_n "(cached) " >&6
4872 # On DJGPP, this test can blow up pretty badly due to problems in libc
4873 # (any single argument exceeding 2000 bytes causes a buffer overrun
4874 # during glob expansion). Even if it were fixed, the result of this
4875 # check would be larger than it should be.
4876 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4880 # Under GNU Hurd, this test is not required because there is
4881 # no limit to the length of command line arguments.
4882 # Libtool will interpret -1 as no limit whatsoever
4883 lt_cv_sys_max_cmd_len=-1;
4886 cygwin* | mingw* | cegcc*)
4887 # On Win9x/ME, this test blows up -- it succeeds, but takes
4888 # about 5 minutes as the teststring grows exponentially.
4889 # Worse, since 9x/ME are not pre-emptively multitasking,
4890 # you end up with a "frozen" computer, even though with patience
4891 # the test eventually succeeds (with a max line length of 256k).
4892 # Instead, let's just punt: use the minimum linelength reported by
4893 # all of the supported platforms: 8192 (on NT/2K/XP).
4894 lt_cv_sys_max_cmd_len=8192;
4898 # On MiNT this can take a long time and run out of memory.
4899 lt_cv_sys_max_cmd_len=8192;
4903 # On AmigaOS with pdksh, this test takes hours, literally.
4904 # So we just punt and use a minimum line length of 8192.
4905 lt_cv_sys_max_cmd_len=8192;
4908 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4909 # This has been around since 386BSD, at least. Likely further.
4910 if test -x /sbin/sysctl; then
4911 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4912 elif test -x /usr/sbin/sysctl; then
4913 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4915 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4917 # And add a safety zone
4918 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4919 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4923 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4924 lt_cv_sys_max_cmd_len=196608
4928 # The test takes a long time on OS/2.
4929 lt_cv_sys_max_cmd_len=8192
4933 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4934 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4935 # nice to cause kernel panics so lets avoid the loop below.
4936 # First set a reasonable default.
4937 lt_cv_sys_max_cmd_len=16384
4939 if test -x /sbin/sysconfig; then
4940 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4941 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4946 lt_cv_sys_max_cmd_len=102400
4948 sysv5* | sco5v6* | sysv4.2uw2*)
4949 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4950 if test -n "$kargmax"; then
4951 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4953 lt_cv_sys_max_cmd_len=32768
4957 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4958 if test -n "$lt_cv_sys_max_cmd_len" && \
4959 test undefined != "$lt_cv_sys_max_cmd_len"; then
4960 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4961 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4963 # Make teststring a little bigger before we do anything with it.
4964 # a 1K string should be a reasonable start.
4965 for i in 1 2 3 4 5 6 7 8; do
4966 teststring=$teststring$teststring
4968 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4969 # If test is not a shell built-in, we'll probably end up computing a
4970 # maximum length that is only half of the actual maximum length, but
4972 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4973 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4974 test 17 != "$i" # 1/2 MB should be enough
4977 teststring=$teststring$teststring
4979 # Only check the string length outside the loop.
4980 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4982 # Add a significant safety factor because C++ compilers can tack on
4983 # massive amounts of additional arguments before passing them to the
4984 # linker. It appears as though 1/2 is a usable value.
4985 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4992 if test -n "$lt_cv_sys_max_cmd_len"; then
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4994 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4997 $as_echo "none" >&6; }
4999 max_cmd_len=$lt_cv_sys_max_cmd_len
5010 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5020 # test EBCDIC or ASCII
5021 case `echo X|tr X '\101'` in
5022 A) # ASCII based system
5023 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5024 lt_SP2NL='tr \040 \012'
5025 lt_NL2SP='tr \015\012 \040\040'
5027 *) # EBCDIC based system
5028 lt_SP2NL='tr \100 \n'
5029 lt_NL2SP='tr \r\n \100\100'
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5042 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5043 if ${lt_cv_to_host_file_cmd+:} false; then :
5044 $as_echo_n "(cached) " >&6
5049 *-*-mingw* ) # actually msys
5050 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5053 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5055 * ) # otherwise, assume *nix
5056 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5062 *-*-mingw* ) # actually msys
5063 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5066 lt_cv_to_host_file_cmd=func_convert_file_noop
5068 * ) # otherwise, assume *nix
5069 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5073 * ) # unhandled hosts (and "normal" native builds)
5074 lt_cv_to_host_file_cmd=func_convert_file_noop
5080 to_host_file_cmd=$lt_cv_to_host_file_cmd
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5082 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5089 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5090 if ${lt_cv_to_tool_file_cmd+:} false; then :
5091 $as_echo_n "(cached) " >&6
5093 #assume ordinary cross tools, or native build.
5094 lt_cv_to_tool_file_cmd=func_convert_file_noop
5098 *-*-mingw* ) # actually msys
5099 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5107 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5109 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5116 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5117 if ${lt_cv_ld_reload_flag+:} false; then :
5118 $as_echo_n "(cached) " >&6
5120 lt_cv_ld_reload_flag='-r'
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5123 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5124 reload_flag=$lt_cv_ld_reload_flag
5125 case $reload_flag in
5127 *) reload_flag=" $reload_flag" ;;
5129 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5131 cygwin* | mingw* | pw32* | cegcc*)
5132 if test yes != "$GCC"; then
5137 if test yes = "$GCC"; then
5138 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5140 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5153 if test -n "$ac_tool_prefix"; then
5154 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5155 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5157 $as_echo_n "checking for $ac_word... " >&6; }
5158 if ${ac_cv_prog_OBJDUMP+:} false; then :
5159 $as_echo_n "(cached) " >&6
5161 if test -n "$OBJDUMP"; then
5162 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168 test -z "$as_dir" && as_dir=.
5169 for ac_exec_ext in '' $ac_executable_extensions; do
5170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5171 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5181 OBJDUMP=$ac_cv_prog_OBJDUMP
5182 if test -n "$OBJDUMP"; then
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5184 $as_echo "$OBJDUMP" >&6; }
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5187 $as_echo "no" >&6; }
5192 if test -z "$ac_cv_prog_OBJDUMP"; then
5193 ac_ct_OBJDUMP=$OBJDUMP
5194 # Extract the first word of "objdump", so it can be a program name with args.
5195 set dummy objdump; ac_word=$2
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5197 $as_echo_n "checking for $ac_word... " >&6; }
5198 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5199 $as_echo_n "(cached) " >&6
5201 if test -n "$ac_ct_OBJDUMP"; then
5202 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5208 test -z "$as_dir" && as_dir=.
5209 for ac_exec_ext in '' $ac_executable_extensions; do
5210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5211 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5221 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5222 if test -n "$ac_ct_OBJDUMP"; then
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5224 $as_echo "$ac_ct_OBJDUMP" >&6; }
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5227 $as_echo "no" >&6; }
5230 if test "x$ac_ct_OBJDUMP" = x; then
5233 case $cross_compiling:$ac_tool_warned in
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5236 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5237 ac_tool_warned=yes ;;
5239 OBJDUMP=$ac_ct_OBJDUMP
5242 OBJDUMP="$ac_cv_prog_OBJDUMP"
5245 test -z "$OBJDUMP" && OBJDUMP=objdump
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5256 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5257 if ${lt_cv_deplibs_check_method+:} false; then :
5258 $as_echo_n "(cached) " >&6
5260 lt_cv_file_magic_cmd='$MAGIC_CMD'
5261 lt_cv_file_magic_test_file=
5262 lt_cv_deplibs_check_method='unknown'
5263 # Need to set the preceding variable on all platforms that support
5264 # interlibrary dependencies.
5265 # 'none' -- dependencies not supported.
5266 # 'unknown' -- same as none, but documents that we really don't know.
5267 # 'pass_all' -- all dependencies passed with no checks.
5268 # 'test_compile' -- check by making test program.
5269 # 'file_magic [[regex]]' -- check by looking for files in library path
5270 # that responds to the $file_magic_cmd with a given extended regex.
5271 # If you have 'file' or equivalent on your system and you're not sure
5272 # whether 'pass_all' will *always* work, you probably want this one.
5276 lt_cv_deplibs_check_method=pass_all
5280 lt_cv_deplibs_check_method=pass_all
5284 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5285 lt_cv_file_magic_cmd='/usr/bin/file -L'
5286 lt_cv_file_magic_test_file=/shlib/libc.so
5290 # func_win32_libid is a shell function defined in ltmain.sh
5291 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5292 lt_cv_file_magic_cmd='func_win32_libid'
5296 # Base MSYS/MinGW do not provide the 'file' command needed by
5297 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5298 # unless we find 'file', for example because we are cross-compiling.
5299 if ( file / ) >/dev/null 2>&1; then
5300 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5301 lt_cv_file_magic_cmd='func_win32_libid'
5303 # Keep this pattern in sync with the one in func_win32_libid.
5304 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5305 lt_cv_file_magic_cmd='$OBJDUMP -f'
5310 # use the weaker test based on 'objdump'. See mingw*.
5311 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5312 lt_cv_file_magic_cmd='$OBJDUMP -f'
5315 darwin* | rhapsody*)
5316 lt_cv_deplibs_check_method=pass_all
5319 freebsd* | dragonfly*)
5320 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5323 # Not sure whether the presence of OpenBSD here was a mistake.
5324 # Let's accept both of them until this is cleared up.
5325 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5326 lt_cv_file_magic_cmd=/usr/bin/file
5327 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5331 lt_cv_deplibs_check_method=pass_all
5336 lt_cv_deplibs_check_method=pass_all
5339 hpux10.20* | hpux11*)
5340 lt_cv_file_magic_cmd=/usr/bin/file
5343 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5344 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5347 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]'
5348 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5351 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5352 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5358 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5359 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5362 irix5* | irix6* | nonstopux*)
5364 *-32|*"-32 ") libmagic=32-bit;;
5365 *-n32|*"-n32 ") libmagic=N32;;
5366 *-64|*"-64 ") libmagic=64-bit;;
5367 *) libmagic=never-match;;
5369 lt_cv_deplibs_check_method=pass_all
5372 # This must be glibc/ELF.
5373 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5374 lt_cv_deplibs_check_method=pass_all
5377 netbsd* | netbsdelf*-gnu)
5378 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5379 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5381 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5386 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5387 lt_cv_file_magic_cmd=/usr/bin/file
5388 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5392 lt_cv_deplibs_check_method=pass_all
5396 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5397 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5399 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5403 osf3* | osf4* | osf5*)
5404 lt_cv_deplibs_check_method=pass_all
5408 lt_cv_deplibs_check_method=pass_all
5412 lt_cv_deplibs_check_method=pass_all
5415 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5416 lt_cv_deplibs_check_method=pass_all
5420 case $host_vendor in
5422 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]'
5423 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5426 lt_cv_deplibs_check_method=pass_all
5429 lt_cv_file_magic_cmd='/bin/file'
5430 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5433 lt_cv_file_magic_cmd='/bin/file'
5434 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5435 lt_cv_file_magic_test_file=/lib/libc.so
5438 lt_cv_deplibs_check_method=pass_all
5441 lt_cv_deplibs_check_method=pass_all
5447 lt_cv_deplibs_check_method=pass_all
5450 lt_cv_deplibs_check_method=pass_all
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5456 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5460 if test "$build" = "$host"; then
5463 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5466 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5472 file_magic_cmd=$lt_cv_file_magic_cmd
5473 deplibs_check_method=$lt_cv_deplibs_check_method
5474 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5497 if test -n "$ac_tool_prefix"; then
5498 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5499 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5501 $as_echo_n "checking for $ac_word... " >&6; }
5502 if ${ac_cv_prog_DLLTOOL+:} false; then :
5503 $as_echo_n "(cached) " >&6
5505 if test -n "$DLLTOOL"; then
5506 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5512 test -z "$as_dir" && as_dir=.
5513 for ac_exec_ext in '' $ac_executable_extensions; do
5514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5515 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5525 DLLTOOL=$ac_cv_prog_DLLTOOL
5526 if test -n "$DLLTOOL"; then
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5528 $as_echo "$DLLTOOL" >&6; }
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5531 $as_echo "no" >&6; }
5536 if test -z "$ac_cv_prog_DLLTOOL"; then
5537 ac_ct_DLLTOOL=$DLLTOOL
5538 # Extract the first word of "dlltool", so it can be a program name with args.
5539 set dummy dlltool; ac_word=$2
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5541 $as_echo_n "checking for $ac_word... " >&6; }
5542 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5543 $as_echo_n "(cached) " >&6
5545 if test -n "$ac_ct_DLLTOOL"; then
5546 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5552 test -z "$as_dir" && as_dir=.
5553 for ac_exec_ext in '' $ac_executable_extensions; do
5554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5555 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5565 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5566 if test -n "$ac_ct_DLLTOOL"; then
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5568 $as_echo "$ac_ct_DLLTOOL" >&6; }
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5571 $as_echo "no" >&6; }
5574 if test "x$ac_ct_DLLTOOL" = x; then
5577 case $cross_compiling:$ac_tool_warned in
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5581 ac_tool_warned=yes ;;
5583 DLLTOOL=$ac_ct_DLLTOOL
5586 DLLTOOL="$ac_cv_prog_DLLTOOL"
5589 test -z "$DLLTOOL" && DLLTOOL=dlltool
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5601 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5602 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5603 $as_echo_n "(cached) " >&6
5605 lt_cv_sharedlib_from_linklib_cmd='unknown'
5608 cygwin* | mingw* | pw32* | cegcc*)
5609 # two different shell functions defined in ltmain.sh;
5610 # decide which one to use based on capabilities of $DLLTOOL
5611 case `$DLLTOOL --help 2>&1` in
5612 *--identify-strict*)
5613 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5616 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5621 # fallback: assume linklib IS sharedlib
5622 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5628 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5629 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5630 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5639 if test -n "$ac_tool_prefix"; then
5642 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5643 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5645 $as_echo_n "checking for $ac_word... " >&6; }
5646 if ${ac_cv_prog_AR+:} false; then :
5647 $as_echo_n "(cached) " >&6
5649 if test -n "$AR"; then
5650 ac_cv_prog_AR="$AR" # Let the user override the test.
5652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5656 test -z "$as_dir" && as_dir=.
5657 for ac_exec_ext in '' $ac_executable_extensions; do
5658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5659 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5670 if test -n "$AR"; then
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5672 $as_echo "$AR" >&6; }
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5675 $as_echo "no" >&6; }
5679 test -n "$AR" && break
5682 if test -z "$AR"; then
5686 # Extract the first word of "$ac_prog", so it can be a program name with args.
5687 set dummy $ac_prog; ac_word=$2
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5689 $as_echo_n "checking for $ac_word... " >&6; }
5690 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5691 $as_echo_n "(cached) " >&6
5693 if test -n "$ac_ct_AR"; then
5694 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5700 test -z "$as_dir" && as_dir=.
5701 for ac_exec_ext in '' $ac_executable_extensions; do
5702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5703 ac_cv_prog_ac_ct_AR="$ac_prog"
5704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5713 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5714 if test -n "$ac_ct_AR"; then
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5716 $as_echo "$ac_ct_AR" >&6; }
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5719 $as_echo "no" >&6; }
5723 test -n "$ac_ct_AR" && break
5726 if test "x$ac_ct_AR" = x; then
5729 case $cross_compiling:$ac_tool_warned in
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5732 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5733 ac_tool_warned=yes ;;
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5753 $as_echo_n "checking for archiver @FILE support... " >&6; }
5754 if ${lt_cv_ar_at_file+:} false; then :
5755 $as_echo_n "(cached) " >&6
5758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5759 /* end confdefs.h. */
5769 if ac_fn_c_try_compile "$LINENO"; then :
5770 echo conftest.$ac_objext > conftest.lst
5771 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5772 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5773 (eval $lt_ar_try) 2>&5
5775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5776 test $ac_status = 0; }
5777 if test 0 -eq "$ac_status"; then
5778 # Ensure the archiver fails upon bogus file names.
5779 rm -f conftest.$ac_objext libconftest.a
5780 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5781 (eval $lt_ar_try) 2>&5
5783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5784 test $ac_status = 0; }
5785 if test 0 -ne "$ac_status"; then
5789 rm -f conftest.* libconftest.a
5792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5796 $as_echo "$lt_cv_ar_at_file" >&6; }
5798 if test no = "$lt_cv_ar_at_file"; then
5801 archiver_list_spec=$lt_cv_ar_at_file
5810 if test -n "$ac_tool_prefix"; then
5811 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5812 set dummy ${ac_tool_prefix}strip; ac_word=$2
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5814 $as_echo_n "checking for $ac_word... " >&6; }
5815 if ${ac_cv_prog_STRIP+:} false; then :
5816 $as_echo_n "(cached) " >&6
5818 if test -n "$STRIP"; then
5819 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5825 test -z "$as_dir" && as_dir=.
5826 for ac_exec_ext in '' $ac_executable_extensions; do
5827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5828 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5838 STRIP=$ac_cv_prog_STRIP
5839 if test -n "$STRIP"; then
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5841 $as_echo "$STRIP" >&6; }
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5844 $as_echo "no" >&6; }
5849 if test -z "$ac_cv_prog_STRIP"; then
5851 # Extract the first word of "strip", so it can be a program name with args.
5852 set dummy strip; ac_word=$2
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5854 $as_echo_n "checking for $ac_word... " >&6; }
5855 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5856 $as_echo_n "(cached) " >&6
5858 if test -n "$ac_ct_STRIP"; then
5859 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5865 test -z "$as_dir" && as_dir=.
5866 for ac_exec_ext in '' $ac_executable_extensions; do
5867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5868 ac_cv_prog_ac_ct_STRIP="strip"
5869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5878 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5879 if test -n "$ac_ct_STRIP"; then
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5881 $as_echo "$ac_ct_STRIP" >&6; }
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5884 $as_echo "no" >&6; }
5887 if test "x$ac_ct_STRIP" = x; then
5890 case $cross_compiling:$ac_tool_warned in
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5894 ac_tool_warned=yes ;;
5899 STRIP="$ac_cv_prog_STRIP"
5902 test -z "$STRIP" && STRIP=:
5909 if test -n "$ac_tool_prefix"; then
5910 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5911 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5913 $as_echo_n "checking for $ac_word... " >&6; }
5914 if ${ac_cv_prog_RANLIB+:} false; then :
5915 $as_echo_n "(cached) " >&6
5917 if test -n "$RANLIB"; then
5918 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924 test -z "$as_dir" && as_dir=.
5925 for ac_exec_ext in '' $ac_executable_extensions; do
5926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5927 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5937 RANLIB=$ac_cv_prog_RANLIB
5938 if test -n "$RANLIB"; then
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5940 $as_echo "$RANLIB" >&6; }
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5943 $as_echo "no" >&6; }
5948 if test -z "$ac_cv_prog_RANLIB"; then
5949 ac_ct_RANLIB=$RANLIB
5950 # Extract the first word of "ranlib", so it can be a program name with args.
5951 set dummy ranlib; ac_word=$2
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5953 $as_echo_n "checking for $ac_word... " >&6; }
5954 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5955 $as_echo_n "(cached) " >&6
5957 if test -n "$ac_ct_RANLIB"; then
5958 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5964 test -z "$as_dir" && as_dir=.
5965 for ac_exec_ext in '' $ac_executable_extensions; do
5966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5967 ac_cv_prog_ac_ct_RANLIB="ranlib"
5968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5977 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5978 if test -n "$ac_ct_RANLIB"; then
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5980 $as_echo "$ac_ct_RANLIB" >&6; }
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5983 $as_echo "no" >&6; }
5986 if test "x$ac_ct_RANLIB" = x; then
5989 case $cross_compiling:$ac_tool_warned in
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5993 ac_tool_warned=yes ;;
5995 RANLIB=$ac_ct_RANLIB
5998 RANLIB="$ac_cv_prog_RANLIB"
6001 test -z "$RANLIB" && RANLIB=:
6008 # Determine commands to create old-style static archives.
6009 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6010 old_postinstall_cmds='chmod 644 $oldlib'
6011 old_postuninstall_cmds=
6013 if test -n "$RANLIB"; then
6016 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6019 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6022 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6027 lock_old_archive_extraction=yes ;;
6029 lock_old_archive_extraction=no ;;
6070 # If no C compiler was specified, use CC.
6073 # If no C compiler flags were specified, use CFLAGS.
6074 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6076 # Allow CC to be a program name with arguments.
6080 # Check for command to grab the raw symbol name followed by C symbol from nm.
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6082 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6083 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6084 $as_echo_n "(cached) " >&6
6087 # These are sane defaults that work on at least a few old systems.
6088 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6090 # Character class describing NM global symbol codes.
6091 symcode='[BCDEGRST]'
6093 # Regexp to match symbols that can be accessed directly from C.
6094 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6096 # Define system-specific variables.
6101 cygwin* | mingw* | pw32* | cegcc*)
6102 symcode='[ABCDGISTW]'
6105 if test ia64 = "$host_cpu"; then
6106 symcode='[ABCDEGRST]'
6110 symcode='[BCDEGRST]'
6113 symcode='[BCDEGQRST]'
6124 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6132 # If we're using GNU nm, then use its standard symbol codes.
6133 case `$NM -V 2>&1` in
6134 *GNU* | *'with BFD'*)
6135 symcode='[ABCDGIRSTW]' ;;
6138 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6139 # Gets list of data symbols to import.
6140 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6141 # Adjust the below global symbol transforms to fixup imported variables.
6142 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6143 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6144 lt_c_name_lib_hook="\
6145 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6146 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6148 # Disable hooks by default.
6149 lt_cv_sys_global_symbol_to_import=
6155 # Transform an extracted symbol line into a proper C declaration.
6156 # Some systems (esp. on ia64) link data and code symbols differently,
6157 # so use this general approach.
6158 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6160 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6161 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6163 # Transform an extracted symbol line into symbol name and symbol address
6164 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6166 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6167 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6169 # Transform an extracted symbol line into symbol name with lib prefix and
6171 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6172 $lt_c_name_lib_hook\
6173 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6174 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6175 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6177 # Handle CRLF in mingw tool chain
6181 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6185 # Try without a prefix underscore, then with it.
6186 for ac_symprfx in "" "_"; do
6188 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6189 symxfrm="\\1 $ac_symprfx\\2 \\2"
6191 # Write the raw and C identifiers.
6192 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6193 # Fake it for dumpbin and say T for any non-static function,
6194 # D for any global variable and I for any imported variable.
6195 # Also find C++ and __fastcall symbols from MSVC++,
6196 # which start with @ or ?.
6197 lt_cv_sys_global_symbol_pipe="$AWK '"\
6198 " {last_section=section; section=\$ 3};"\
6199 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6200 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6201 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6202 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6203 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6204 " \$ 0!~/External *\|/{next};"\
6205 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6206 " {if(hide[section]) next};"\
6207 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6208 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6209 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6210 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6211 " ' prfx=^$ac_symprfx"
6213 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6215 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6217 # Check to see that the pipe works correctly.
6221 cat > conftest.$ac_ext <<_LT_EOF
6226 void nm_test_func(void);
6227 void nm_test_func(void){}
6231 int main(){nm_test_var='a';nm_test_func();return(0);}
6234 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6235 (eval $ac_compile) 2>&5
6237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6238 test $ac_status = 0; }; then
6239 # Now try to grab the symbols.
6241 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6242 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6245 test $ac_status = 0; } && test -s "$nlist"; then
6246 # Try sorting and uniquifying the output.
6247 if sort "$nlist" | uniq > "$nlist"T; then
6248 mv -f "$nlist"T "$nlist"
6253 # Make sure that we snagged all the symbols we need.
6254 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6255 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6256 cat <<_LT_EOF > conftest.$ac_ext
6257 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6258 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6259 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6260 relocations are performed -- see ld's documentation on pseudo-relocs. */
6261 # define LT@&t@_DLSYM_CONST
6262 #elif defined __osf__
6263 /* This system does not cope well with relocations in const data. */
6264 # define LT@&t@_DLSYM_CONST
6266 # define LT@&t@_DLSYM_CONST const
6274 # Now generate the symbol file.
6275 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6277 cat <<_LT_EOF >> conftest.$ac_ext
6279 /* The mapping between symbol names and symbols. */
6280 LT@&t@_DLSYM_CONST struct {
6284 lt__PROGRAM__LTX_preloaded_symbols[] =
6286 { "@PROGRAM@", (void *) 0 },
6288 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6289 cat <<\_LT_EOF >> conftest.$ac_ext
6293 /* This works around a problem in FreeBSD linker */
6294 #ifdef FREEBSD_WORKAROUND
6295 static const void *lt_preloaded_setup() {
6296 return lt__PROGRAM__LTX_preloaded_symbols;
6304 # Now try linking the two files.
6305 mv conftest.$ac_objext conftstm.$ac_objext
6306 lt_globsym_save_LIBS=$LIBS
6307 lt_globsym_save_CFLAGS=$CFLAGS
6308 LIBS=conftstm.$ac_objext
6309 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6310 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6311 (eval $ac_link) 2>&5
6313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6314 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6317 LIBS=$lt_globsym_save_LIBS
6318 CFLAGS=$lt_globsym_save_CFLAGS
6320 echo "cannot find nm_test_func in $nlist" >&5
6323 echo "cannot find nm_test_var in $nlist" >&5
6326 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6329 echo "$progname: failed program was:" >&5
6330 cat conftest.$ac_ext >&5
6332 rm -rf conftest* conftst*
6334 # Do not use the global_symbol_pipe unless it works.
6335 if test yes = "$pipe_works"; then
6338 lt_cv_sys_global_symbol_pipe=
6344 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6345 lt_cv_sys_global_symbol_to_cdecl=
6347 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6349 $as_echo "failed" >&6; }
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6352 $as_echo "ok" >&6; }
6355 # Response file support.
6356 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6357 nm_file_list_spec='@'
6358 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6359 nm_file_list_spec='@'
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6399 $as_echo_n "checking for sysroot... " >&6; }
6401 @%:@ Check whether --with-sysroot was given.
6402 if test "${with_sysroot+set}" = set; then :
6403 withval=$with_sysroot;
6410 case $with_sysroot in #(
6412 if test yes = "$GCC"; then
6413 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6417 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6423 $as_echo "$with_sysroot" >&6; }
6424 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6429 $as_echo "${lt_sysroot:-no}" >&6; }
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6436 $as_echo_n "checking for a working dd... " >&6; }
6437 if ${ac_cv_path_lt_DD+:} false; then :
6438 $as_echo_n "(cached) " >&6
6440 printf 0123456789abcdef0123456789abcdef >conftest.i
6441 cat conftest.i conftest.i >conftest2.i
6443 if test -z "$lt_DD"; then
6444 ac_path_lt_DD_found=false
6445 # Loop through the user's path and test for each of PROGNAME-LIST
6446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450 test -z "$as_dir" && as_dir=.
6451 for ac_prog in dd; do
6452 for ac_exec_ext in '' $ac_executable_extensions; do
6453 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6454 as_fn_executable_p "$ac_path_lt_DD" || continue
6455 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6456 cmp -s conftest.i conftest.out \
6457 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6459 $ac_path_lt_DD_found && break 3
6464 if test -z "$ac_cv_path_lt_DD"; then
6468 ac_cv_path_lt_DD=$lt_DD
6471 rm -f conftest.i conftest2.i conftest.out
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6474 $as_echo "$ac_cv_path_lt_DD" >&6; }
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6478 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6479 if ${lt_cv_truncate_bin+:} false; then :
6480 $as_echo_n "(cached) " >&6
6482 printf 0123456789abcdef0123456789abcdef >conftest.i
6483 cat conftest.i conftest.i >conftest2.i
6485 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6486 cmp -s conftest.i conftest.out \
6487 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6489 rm -f conftest.i conftest2.i conftest.out
6490 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6493 $as_echo "$lt_cv_truncate_bin" >&6; }
6501 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6504 for cc_temp in @S|@*""; do
6506 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6507 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6512 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6515 @%:@ Check whether --enable-libtool-lock was given.
6516 if test "${enable_libtool_lock+set}" = set; then :
6517 enableval=$enable_libtool_lock;
6520 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6522 # Some flags need to be propagated to the compiler or linker for good
6526 # Find out what ABI is being produced by ac_compile, and set mode
6527 # options accordingly.
6528 echo 'int i;' > conftest.$ac_ext
6529 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6530 (eval $ac_compile) 2>&5
6532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6533 test $ac_status = 0; }; then
6534 case `/usr/bin/file conftest.$ac_objext` in
6546 # Find out what ABI is being produced by ac_compile, and set linker
6547 # options accordingly.
6548 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6549 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6550 (eval $ac_compile) 2>&5
6552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6553 test $ac_status = 0; }; then
6554 if test yes = "$lt_cv_prog_gnu_ld"; then
6555 case `/usr/bin/file conftest.$ac_objext` in
6557 LD="${LD-ld} -melf32bsmip"
6560 LD="${LD-ld} -melf32bmipn32"
6563 LD="${LD-ld} -melf64bmip"
6567 case `/usr/bin/file conftest.$ac_objext` in
6584 # Find out what ABI is being produced by ac_compile, and set linker
6585 # options accordingly.
6586 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6587 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6588 (eval $ac_compile) 2>&5
6590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6591 test $ac_status = 0; }; then
6593 case `/usr/bin/file conftest.$ac_objext` in
6601 case `/usr/bin/file conftest.$ac_objext` in
6603 emul="${emul}btsmip"
6606 emul="${emul}ltsmip"
6609 case `/usr/bin/file conftest.$ac_objext` in
6614 LD="${LD-ld} -m $emul"
6619 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6620 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6621 # Find out what ABI is being produced by ac_compile, and set linker
6622 # options accordingly. Note that the listed cases only cover the
6623 # situations where additional linker options are needed (such as when
6624 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6625 # vice versa); the common cases where no linker options are needed do
6626 # not appear in the list.
6627 echo 'int i;' > conftest.$ac_ext
6628 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6629 (eval $ac_compile) 2>&5
6631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6632 test $ac_status = 0; }; then
6633 case `/usr/bin/file conftest.o` in
6636 x86_64-*kfreebsd*-gnu)
6637 LD="${LD-ld} -m elf_i386_fbsd"
6640 case `/usr/bin/file conftest.o` in
6642 LD="${LD-ld} -m elf32_x86_64"
6645 LD="${LD-ld} -m elf_i386"
6649 powerpc64le-*linux*)
6650 LD="${LD-ld} -m elf32lppclinux"
6653 LD="${LD-ld} -m elf32ppclinux"
6656 LD="${LD-ld} -m elf_s390"
6659 LD="${LD-ld} -m elf32_sparc"
6665 x86_64-*kfreebsd*-gnu)
6666 LD="${LD-ld} -m elf_x86_64_fbsd"
6669 LD="${LD-ld} -m elf_x86_64"
6672 LD="${LD-ld} -m elf64lppc"
6675 LD="${LD-ld} -m elf64ppc"
6677 s390*-*linux*|s390*-*tpf*)
6678 LD="${LD-ld} -m elf64_s390"
6681 LD="${LD-ld} -m elf64_sparc"
6691 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6693 CFLAGS="$CFLAGS -belf"
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6695 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6696 if ${lt_cv_cc_needs_belf+:} false; then :
6697 $as_echo_n "(cached) " >&6
6700 ac_cpp='$CPP $CPPFLAGS'
6701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6706 /* end confdefs.h. */
6716 if ac_fn_c_try_link "$LINENO"; then :
6717 lt_cv_cc_needs_belf=yes
6719 lt_cv_cc_needs_belf=no
6721 rm -f core conftest.err conftest.$ac_objext \
6722 conftest$ac_exeext conftest.$ac_ext
6724 ac_cpp='$CPP $CPPFLAGS'
6725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6731 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6732 if test yes != "$lt_cv_cc_needs_belf"; then
6733 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6738 # Find out what ABI is being produced by ac_compile, and set linker
6739 # options accordingly.
6740 echo 'int i;' > conftest.$ac_ext
6741 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6742 (eval $ac_compile) 2>&5
6744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6745 test $ac_status = 0; }; then
6746 case `/usr/bin/file conftest.o` in
6748 case $lt_cv_prog_gnu_ld in
6751 i?86-*-solaris*|x86_64-*-solaris*)
6752 LD="${LD-ld} -m elf_x86_64"
6755 LD="${LD-ld} -m elf64_sparc"
6758 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6759 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6764 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6776 need_locks=$enable_libtool_lock
6778 if test -n "$ac_tool_prefix"; then
6779 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6780 set dummy ${ac_tool_prefix}mt; ac_word=$2
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6782 $as_echo_n "checking for $ac_word... " >&6; }
6783 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6784 $as_echo_n "(cached) " >&6
6786 if test -n "$MANIFEST_TOOL"; then
6787 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6793 test -z "$as_dir" && as_dir=.
6794 for ac_exec_ext in '' $ac_executable_extensions; do
6795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6796 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6806 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6807 if test -n "$MANIFEST_TOOL"; then
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6809 $as_echo "$MANIFEST_TOOL" >&6; }
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6812 $as_echo "no" >&6; }
6817 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6818 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6819 # Extract the first word of "mt", so it can be a program name with args.
6820 set dummy mt; ac_word=$2
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6822 $as_echo_n "checking for $ac_word... " >&6; }
6823 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6824 $as_echo_n "(cached) " >&6
6826 if test -n "$ac_ct_MANIFEST_TOOL"; then
6827 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833 test -z "$as_dir" && as_dir=.
6834 for ac_exec_ext in '' $ac_executable_extensions; do
6835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6836 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6846 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6847 if test -n "$ac_ct_MANIFEST_TOOL"; then
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6849 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6852 $as_echo "no" >&6; }
6855 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6858 case $cross_compiling:$ac_tool_warned in
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6861 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6862 ac_tool_warned=yes ;;
6864 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6867 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6870 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6872 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6873 if ${lt_cv_path_mainfest_tool+:} false; then :
6874 $as_echo_n "(cached) " >&6
6876 lt_cv_path_mainfest_tool=no
6877 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6878 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6879 cat conftest.err >&5
6880 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6881 lt_cv_path_mainfest_tool=yes
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6886 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6887 if test yes != "$lt_cv_path_mainfest_tool"; then
6897 rhapsody* | darwin*)
6898 if test -n "$ac_tool_prefix"; then
6899 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6900 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6902 $as_echo_n "checking for $ac_word... " >&6; }
6903 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6904 $as_echo_n "(cached) " >&6
6906 if test -n "$DSYMUTIL"; then
6907 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913 test -z "$as_dir" && as_dir=.
6914 for ac_exec_ext in '' $ac_executable_extensions; do
6915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6916 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6926 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6927 if test -n "$DSYMUTIL"; then
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6929 $as_echo "$DSYMUTIL" >&6; }
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6932 $as_echo "no" >&6; }
6937 if test -z "$ac_cv_prog_DSYMUTIL"; then
6938 ac_ct_DSYMUTIL=$DSYMUTIL
6939 # Extract the first word of "dsymutil", so it can be a program name with args.
6940 set dummy dsymutil; ac_word=$2
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6942 $as_echo_n "checking for $ac_word... " >&6; }
6943 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6944 $as_echo_n "(cached) " >&6
6946 if test -n "$ac_ct_DSYMUTIL"; then
6947 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6953 test -z "$as_dir" && as_dir=.
6954 for ac_exec_ext in '' $ac_executable_extensions; do
6955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6956 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6966 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6967 if test -n "$ac_ct_DSYMUTIL"; then
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6969 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6972 $as_echo "no" >&6; }
6975 if test "x$ac_ct_DSYMUTIL" = x; then
6978 case $cross_compiling:$ac_tool_warned in
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6981 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6982 ac_tool_warned=yes ;;
6984 DSYMUTIL=$ac_ct_DSYMUTIL
6987 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6990 if test -n "$ac_tool_prefix"; then
6991 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6992 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6994 $as_echo_n "checking for $ac_word... " >&6; }
6995 if ${ac_cv_prog_NMEDIT+:} false; then :
6996 $as_echo_n "(cached) " >&6
6998 if test -n "$NMEDIT"; then
6999 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7005 test -z "$as_dir" && as_dir=.
7006 for ac_exec_ext in '' $ac_executable_extensions; do
7007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7008 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7018 NMEDIT=$ac_cv_prog_NMEDIT
7019 if test -n "$NMEDIT"; then
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7021 $as_echo "$NMEDIT" >&6; }
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7024 $as_echo "no" >&6; }
7029 if test -z "$ac_cv_prog_NMEDIT"; then
7030 ac_ct_NMEDIT=$NMEDIT
7031 # Extract the first word of "nmedit", so it can be a program name with args.
7032 set dummy nmedit; ac_word=$2
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7034 $as_echo_n "checking for $ac_word... " >&6; }
7035 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7036 $as_echo_n "(cached) " >&6
7038 if test -n "$ac_ct_NMEDIT"; then
7039 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7045 test -z "$as_dir" && as_dir=.
7046 for ac_exec_ext in '' $ac_executable_extensions; do
7047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7048 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7058 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7059 if test -n "$ac_ct_NMEDIT"; then
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7061 $as_echo "$ac_ct_NMEDIT" >&6; }
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7064 $as_echo "no" >&6; }
7067 if test "x$ac_ct_NMEDIT" = x; then
7070 case $cross_compiling:$ac_tool_warned in
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7074 ac_tool_warned=yes ;;
7076 NMEDIT=$ac_ct_NMEDIT
7079 NMEDIT="$ac_cv_prog_NMEDIT"
7082 if test -n "$ac_tool_prefix"; then
7083 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7084 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7086 $as_echo_n "checking for $ac_word... " >&6; }
7087 if ${ac_cv_prog_LIPO+:} false; then :
7088 $as_echo_n "(cached) " >&6
7090 if test -n "$LIPO"; then
7091 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7097 test -z "$as_dir" && as_dir=.
7098 for ac_exec_ext in '' $ac_executable_extensions; do
7099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7100 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7110 LIPO=$ac_cv_prog_LIPO
7111 if test -n "$LIPO"; then
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7113 $as_echo "$LIPO" >&6; }
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7116 $as_echo "no" >&6; }
7121 if test -z "$ac_cv_prog_LIPO"; then
7123 # Extract the first word of "lipo", so it can be a program name with args.
7124 set dummy lipo; ac_word=$2
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7126 $as_echo_n "checking for $ac_word... " >&6; }
7127 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7128 $as_echo_n "(cached) " >&6
7130 if test -n "$ac_ct_LIPO"; then
7131 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137 test -z "$as_dir" && as_dir=.
7138 for ac_exec_ext in '' $ac_executable_extensions; do
7139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7140 ac_cv_prog_ac_ct_LIPO="lipo"
7141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7150 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7151 if test -n "$ac_ct_LIPO"; then
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7153 $as_echo "$ac_ct_LIPO" >&6; }
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7156 $as_echo "no" >&6; }
7159 if test "x$ac_ct_LIPO" = x; then
7162 case $cross_compiling:$ac_tool_warned in
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7165 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7166 ac_tool_warned=yes ;;
7171 LIPO="$ac_cv_prog_LIPO"
7174 if test -n "$ac_tool_prefix"; then
7175 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7176 set dummy ${ac_tool_prefix}otool; ac_word=$2
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7178 $as_echo_n "checking for $ac_word... " >&6; }
7179 if ${ac_cv_prog_OTOOL+:} false; then :
7180 $as_echo_n "(cached) " >&6
7182 if test -n "$OTOOL"; then
7183 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189 test -z "$as_dir" && as_dir=.
7190 for ac_exec_ext in '' $ac_executable_extensions; do
7191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7192 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7202 OTOOL=$ac_cv_prog_OTOOL
7203 if test -n "$OTOOL"; then
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7205 $as_echo "$OTOOL" >&6; }
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7208 $as_echo "no" >&6; }
7213 if test -z "$ac_cv_prog_OTOOL"; then
7215 # Extract the first word of "otool", so it can be a program name with args.
7216 set dummy otool; ac_word=$2
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7218 $as_echo_n "checking for $ac_word... " >&6; }
7219 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7220 $as_echo_n "(cached) " >&6
7222 if test -n "$ac_ct_OTOOL"; then
7223 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7229 test -z "$as_dir" && as_dir=.
7230 for ac_exec_ext in '' $ac_executable_extensions; do
7231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7232 ac_cv_prog_ac_ct_OTOOL="otool"
7233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7242 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7243 if test -n "$ac_ct_OTOOL"; then
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7245 $as_echo "$ac_ct_OTOOL" >&6; }
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7248 $as_echo "no" >&6; }
7251 if test "x$ac_ct_OTOOL" = x; then
7254 case $cross_compiling:$ac_tool_warned in
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7257 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7258 ac_tool_warned=yes ;;
7263 OTOOL="$ac_cv_prog_OTOOL"
7266 if test -n "$ac_tool_prefix"; then
7267 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7268 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7270 $as_echo_n "checking for $ac_word... " >&6; }
7271 if ${ac_cv_prog_OTOOL64+:} false; then :
7272 $as_echo_n "(cached) " >&6
7274 if test -n "$OTOOL64"; then
7275 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7281 test -z "$as_dir" && as_dir=.
7282 for ac_exec_ext in '' $ac_executable_extensions; do
7283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7284 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7294 OTOOL64=$ac_cv_prog_OTOOL64
7295 if test -n "$OTOOL64"; then
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7297 $as_echo "$OTOOL64" >&6; }
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7300 $as_echo "no" >&6; }
7305 if test -z "$ac_cv_prog_OTOOL64"; then
7306 ac_ct_OTOOL64=$OTOOL64
7307 # Extract the first word of "otool64", so it can be a program name with args.
7308 set dummy otool64; ac_word=$2
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7310 $as_echo_n "checking for $ac_word... " >&6; }
7311 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7312 $as_echo_n "(cached) " >&6
7314 if test -n "$ac_ct_OTOOL64"; then
7315 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7321 test -z "$as_dir" && as_dir=.
7322 for ac_exec_ext in '' $ac_executable_extensions; do
7323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7324 ac_cv_prog_ac_ct_OTOOL64="otool64"
7325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7334 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7335 if test -n "$ac_ct_OTOOL64"; then
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7337 $as_echo "$ac_ct_OTOOL64" >&6; }
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7340 $as_echo "no" >&6; }
7343 if test "x$ac_ct_OTOOL64" = x; then
7346 case $cross_compiling:$ac_tool_warned in
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7349 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7350 ac_tool_warned=yes ;;
7352 OTOOL64=$ac_ct_OTOOL64
7355 OTOOL64="$ac_cv_prog_OTOOL64"
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7385 $as_echo_n "checking for -single_module linker flag... " >&6; }
7386 if ${lt_cv_apple_cc_single_mod+:} false; then :
7387 $as_echo_n "(cached) " >&6
7389 lt_cv_apple_cc_single_mod=no
7390 if test -z "$LT_MULTI_MODULE"; then
7391 # By default we will add the -single_module flag. You can override
7392 # by either setting the environment variable LT_MULTI_MODULE
7393 # non-empty at configure time, or by adding -multi_module to the
7395 rm -rf libconftest.dylib*
7396 echo "int foo(void){return 1;}" > conftest.c
7397 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7398 -dynamiclib -Wl,-single_module conftest.c" >&5
7399 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7400 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7402 # If there is a non-empty error log, and "single_module"
7403 # appears in it, assume the flag caused a linker warning
7404 if test -s conftest.err && $GREP single_module conftest.err; then
7405 cat conftest.err >&5
7406 # Otherwise, if the output was created with a 0 exit code from
7407 # the compiler, it worked.
7408 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7409 lt_cv_apple_cc_single_mod=yes
7411 cat conftest.err >&5
7413 rm -rf libconftest.dylib*
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7418 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7421 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7422 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7423 $as_echo_n "(cached) " >&6
7425 lt_cv_ld_exported_symbols_list=no
7426 save_LDFLAGS=$LDFLAGS
7427 echo "_main" > conftest.sym
7428 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7430 /* end confdefs.h. */
7440 if ac_fn_c_try_link "$LINENO"; then :
7441 lt_cv_ld_exported_symbols_list=yes
7443 lt_cv_ld_exported_symbols_list=no
7445 rm -f core conftest.err conftest.$ac_objext \
7446 conftest$ac_exeext conftest.$ac_ext
7447 LDFLAGS=$save_LDFLAGS
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7451 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7454 $as_echo_n "checking for -force_load linker flag... " >&6; }
7455 if ${lt_cv_ld_force_load+:} false; then :
7456 $as_echo_n "(cached) " >&6
7458 lt_cv_ld_force_load=no
7459 cat > conftest.c << _LT_EOF
7460 int forced_loaded() { return 2;}
7462 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7463 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7464 echo "$AR cru libconftest.a conftest.o" >&5
7465 $AR cru libconftest.a conftest.o 2>&5
7466 echo "$RANLIB libconftest.a" >&5
7467 $RANLIB libconftest.a 2>&5
7468 cat > conftest.c << _LT_EOF
7469 int main() { return 0;}
7471 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7472 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7474 if test -s conftest.err && $GREP force_load conftest.err; then
7475 cat conftest.err >&5
7476 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7477 lt_cv_ld_force_load=yes
7479 cat conftest.err >&5
7481 rm -f conftest.err libconftest.a conftest conftest.c
7482 rm -rf conftest.dSYM
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7486 $as_echo "$lt_cv_ld_force_load" >&6; }
7488 rhapsody* | darwin1.[012])
7489 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7491 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7492 darwin*) # darwin 5.x on
7493 # if running on 10.5 or later, the deployment target defaults
7494 # to the OS version, if on x86, and 10.4, the deployment
7495 # target defaults to 10.4. Don't you love it?
7496 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7497 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7498 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7500 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7502 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7506 if test yes = "$lt_cv_apple_cc_single_mod"; then
7507 _lt_dar_single_mod='$single_module'
7509 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7510 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7512 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7514 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7515 _lt_dsymutil='~$DSYMUTIL $lib || :'
7522 # func_munge_path_list VARIABLE PATH
7523 # -----------------------------------
7524 # VARIABLE is name of variable containing _space_ separated list of
7525 # directories to be munged by the contents of PATH, which is string
7528 # string "DIR[ DIR]" will be prepended to VARIABLE
7530 # string "DIR[ DIR]" will be appended to VARIABLE
7531 # "DIRP[:DIRP]::[DIRA:]DIRA"
7532 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7533 # "DIRA[ DIRA]" will be appended to VARIABLE
7535 # VARIABLE will be replaced by "DIR[ DIR]"
7536 func_munge_path_list ()
7542 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\"
7545 eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\"
7548 eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7549 eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\"
7552 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\"
7558 ac_cpp='$CPP $CPPFLAGS'
7559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7563 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7564 # On Suns, sometimes $CPP names a directory.
7565 if test -n "$CPP" && test -d "$CPP"; then
7568 if test -z "$CPP"; then
7569 if ${ac_cv_prog_CPP+:} false; then :
7570 $as_echo_n "(cached) " >&6
7572 # Double quotes because CPP needs to be expanded
7573 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7576 for ac_c_preproc_warn_flag in '' yes
7578 # Use a header file that comes with gcc, so configuring glibc
7579 # with a fresh cross-compiler works.
7580 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7581 # <limits.h> exists even on freestanding compilers.
7582 # On the NeXT, cc -E runs the code through the compiler's parser,
7583 # not just through cpp. "Syntax error" is here to catch this case.
7584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7585 /* end confdefs.h. */
7587 @%:@ include <limits.h>
7589 @%:@ include <assert.h>
7593 if ac_fn_c_try_cpp "$LINENO"; then :
7596 # Broken: fails on valid input.
7599 rm -f conftest.err conftest.i conftest.$ac_ext
7601 # OK, works on sane cases. Now check whether nonexistent headers
7602 # can be detected and how.
7603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7604 /* end confdefs.h. */
7605 @%:@include <ac_nonexistent.h>
7607 if ac_fn_c_try_cpp "$LINENO"; then :
7608 # Broken: success on invalid input.
7611 # Passes both tests.
7615 rm -f conftest.err conftest.i conftest.$ac_ext
7618 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7619 rm -f conftest.i conftest.err conftest.$ac_ext
7620 if $ac_preproc_ok; then :
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7633 $as_echo "$CPP" >&6; }
7635 for ac_c_preproc_warn_flag in '' yes
7637 # Use a header file that comes with gcc, so configuring glibc
7638 # with a fresh cross-compiler works.
7639 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7640 # <limits.h> exists even on freestanding compilers.
7641 # On the NeXT, cc -E runs the code through the compiler's parser,
7642 # not just through cpp. "Syntax error" is here to catch this case.
7643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7644 /* end confdefs.h. */
7646 @%:@ include <limits.h>
7648 @%:@ include <assert.h>
7652 if ac_fn_c_try_cpp "$LINENO"; then :
7655 # Broken: fails on valid input.
7658 rm -f conftest.err conftest.i conftest.$ac_ext
7660 # OK, works on sane cases. Now check whether nonexistent headers
7661 # can be detected and how.
7662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7663 /* end confdefs.h. */
7664 @%:@include <ac_nonexistent.h>
7666 if ac_fn_c_try_cpp "$LINENO"; then :
7667 # Broken: success on invalid input.
7670 # Passes both tests.
7674 rm -f conftest.err conftest.i conftest.$ac_ext
7677 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7678 rm -f conftest.i conftest.err conftest.$ac_ext
7679 if $ac_preproc_ok; then :
7682 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7683 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7684 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7685 See \`config.log' for more details" "$LINENO" 5; }
7689 ac_cpp='$CPP $CPPFLAGS'
7690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7696 $as_echo_n "checking for ANSI C header files... " >&6; }
7697 if ${ac_cv_header_stdc+:} false; then :
7698 $as_echo_n "(cached) " >&6
7700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7701 /* end confdefs.h. */
7715 if ac_fn_c_try_compile "$LINENO"; then :
7716 ac_cv_header_stdc=yes
7718 ac_cv_header_stdc=no
7720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7722 if test $ac_cv_header_stdc = yes; then
7723 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7725 /* end confdefs.h. */
7729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7730 $EGREP "memchr" >/dev/null 2>&1; then :
7733 ac_cv_header_stdc=no
7739 if test $ac_cv_header_stdc = yes; then
7740 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7742 /* end confdefs.h. */
7746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7747 $EGREP "free" >/dev/null 2>&1; then :
7750 ac_cv_header_stdc=no
7756 if test $ac_cv_header_stdc = yes; then
7757 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7758 if test "$cross_compiling" = yes; then :
7761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7762 /* end confdefs.h. */
7765 #if ((' ' & 0x0FF) == 0x020)
7766 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7767 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7769 # define ISLOWER(c) \
7770 (('a' <= (c) && (c) <= 'i') \
7771 || ('j' <= (c) && (c) <= 'r') \
7772 || ('s' <= (c) && (c) <= 'z'))
7773 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7776 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7781 for (i = 0; i < 256; i++)
7782 if (XOR (islower (i), ISLOWER (i))
7783 || toupper (i) != TOUPPER (i))
7788 if ac_fn_c_try_run "$LINENO"; then :
7791 ac_cv_header_stdc=no
7793 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7794 conftest.$ac_objext conftest.beam conftest.$ac_ext
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7800 $as_echo "$ac_cv_header_stdc" >&6; }
7801 if test $ac_cv_header_stdc = yes; then
7803 $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
7807 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7808 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7809 inttypes.h stdint.h unistd.h
7811 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7812 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7814 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7815 cat >>confdefs.h <<_ACEOF
7816 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7824 for ac_header in dlfcn.h
7826 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7828 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7829 cat >>confdefs.h <<_ACEOF
7830 @%:@define HAVE_DLFCN_H 1
7842 @%:@ Check whether --enable-static was given.
7843 if test "${enable_static+set}" = set; then :
7844 enableval=$enable_static; p=${PACKAGE-default}
7846 yes) enable_static=yes ;;
7847 no) enable_static=no ;;
7850 # Look at the argument we got. We use all the common list separators.
7851 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7852 for pkg in $enableval; do
7854 if test "X$pkg" = "X$p"; then
7880 @%:@ Check whether --enable-shared was given.
7881 if test "${enable_shared+set}" = set; then :
7882 enableval=$enable_shared; p=${PACKAGE-default}
7884 yes) enable_shared=yes ;;
7885 no) enable_shared=no ;;
7888 # Look at the argument we got. We use all the common list separators.
7889 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7890 for pkg in $enableval; do
7892 if test "X$pkg" = "X$p"; then
7913 @%:@ Check whether --with-pic was given.
7914 if test "${with_pic+set}" = set; then :
7915 withval=$with_pic; lt_p=${PACKAGE-default}
7917 yes|no) pic_mode=$withval ;;
7920 # Look at the argument we got. We use all the common list separators.
7921 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7922 for lt_pkg in $withval; do
7924 if test "X$lt_pkg" = "X$lt_p"; then
7942 @%:@ Check whether --enable-fast-install was given.
7943 if test "${enable_fast_install+set}" = set; then :
7944 enableval=$enable_fast_install; p=${PACKAGE-default}
7946 yes) enable_fast_install=yes ;;
7947 no) enable_fast_install=no ;;
7949 enable_fast_install=no
7950 # Look at the argument we got. We use all the common list separators.
7951 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7952 for pkg in $enableval; do
7954 if test "X$pkg" = "X$p"; then
7955 enable_fast_install=yes
7962 enable_fast_install=yes
7972 shared_archive_member_spec=
7973 case $host,$enable_shared in
7974 power*-*-aix[5-9]*,yes)
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7976 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7978 @%:@ Check whether --with-aix-soname was given.
7979 if test "${with_aix_soname+set}" = set; then :
7980 withval=$with_aix_soname; case $withval in
7984 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7987 lt_cv_with_aix_soname=$with_aix_soname
7989 if ${lt_cv_with_aix_soname+:} false; then :
7990 $as_echo_n "(cached) " >&6
7992 lt_cv_with_aix_soname=aix
7995 with_aix_soname=$lt_cv_with_aix_soname
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7999 $as_echo "$with_aix_soname" >&6; }
8000 if test aix != "$with_aix_soname"; then
8001 # For the AIX way of multilib, we name the shared archive member
8002 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8003 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8004 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8005 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8006 if test 64 = "${OBJECT_MODE-32}"; then
8007 shared_archive_member_spec=shr_64
8009 shared_archive_member_spec=shr
8027 # This can be used to rebuild libtool when needed
8028 LIBTOOL_DEPS=$ltmain
8030 # Always use our own libtool.
8031 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8062 test -z "$LN_S" && LN_S="ln -s"
8077 if test -n "${ZSH_VERSION+set}"; then
8078 setopt NO_GLOB_SUBST
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8082 $as_echo_n "checking for objdir... " >&6; }
8083 if ${lt_cv_objdir+:} false; then :
8084 $as_echo_n "(cached) " >&6
8086 rm -f .libs 2>/dev/null
8087 mkdir .libs 2>/dev/null
8088 if test -d .libs; then
8091 # MS-DOS does not allow filenames that begin with a dot.
8094 rmdir .libs 2>/dev/null
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8097 $as_echo "$lt_cv_objdir" >&6; }
8098 objdir=$lt_cv_objdir
8104 cat >>confdefs.h <<_ACEOF
8105 @%:@define LT_OBJDIR "$lt_cv_objdir/"
8113 # AIX sometimes has problems with the GCC collect2 program. For some
8114 # reason, if we set the COLLECT_NAMES environment variable, the problems
8115 # vanish in a puff of smoke.
8116 if test set != "${COLLECT_NAMES+set}"; then
8118 export COLLECT_NAMES
8125 can_build_shared=yes
8127 # All known linkers require a '.a' archive for static linking (except MSVC,
8128 # which needs '.lib').
8131 with_gnu_ld=$lt_cv_prog_gnu_ld
8136 # Set sane defaults for various variables
8137 test -z "$CC" && CC=cc
8138 test -z "$LTCC" && LTCC=$CC
8139 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8140 test -z "$LD" && LD=ld
8141 test -z "$ac_objext" && ac_objext=o
8143 func_cc_basename $compiler
8144 cc_basename=$func_cc_basename_result
8147 # Only perform the check for file, if the check method requires it
8148 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8149 case $deplibs_check_method in
8151 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8153 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8154 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8155 $as_echo_n "(cached) " >&6
8159 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8162 lt_save_MAGIC_CMD=$MAGIC_CMD
8163 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8164 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8165 for ac_dir in $ac_dummy; do
8167 test -z "$ac_dir" && ac_dir=.
8168 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8169 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8170 if test -n "$file_magic_test_file"; then
8171 case $deplibs_check_method in
8173 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8174 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8175 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8176 $EGREP "$file_magic_regex" > /dev/null; then
8181 *** Warning: the command libtool uses to detect shared libraries,
8182 *** $file_magic_cmd, produces output that libtool cannot recognize.
8183 *** The result is that libtool may fail to recognize shared libraries
8184 *** as such. This will affect the creation of libtool libraries that
8185 *** depend on shared libraries, but programs linked with such libtool
8186 *** libraries will work regardless of this problem. Nevertheless, you
8187 *** may want to report the problem to your system manager and/or to
8188 *** bug-libtool@gnu.org
8198 MAGIC_CMD=$lt_save_MAGIC_CMD
8203 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8204 if test -n "$MAGIC_CMD"; then
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8206 $as_echo "$MAGIC_CMD" >&6; }
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8209 $as_echo "no" >&6; }
8216 if test -z "$lt_cv_path_MAGIC_CMD"; then
8217 if test -n "$ac_tool_prefix"; then
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8219 $as_echo_n "checking for file... " >&6; }
8220 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8221 $as_echo_n "(cached) " >&6
8225 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8228 lt_save_MAGIC_CMD=$MAGIC_CMD
8229 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8230 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8231 for ac_dir in $ac_dummy; do
8233 test -z "$ac_dir" && ac_dir=.
8234 if test -f "$ac_dir/file"; then
8235 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8236 if test -n "$file_magic_test_file"; then
8237 case $deplibs_check_method in
8239 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8240 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8241 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8242 $EGREP "$file_magic_regex" > /dev/null; then
8247 *** Warning: the command libtool uses to detect shared libraries,
8248 *** $file_magic_cmd, produces output that libtool cannot recognize.
8249 *** The result is that libtool may fail to recognize shared libraries
8250 *** as such. This will affect the creation of libtool libraries that
8251 *** depend on shared libraries, but programs linked with such libtool
8252 *** libraries will work regardless of this problem. Nevertheless, you
8253 *** may want to report the problem to your system manager and/or to
8254 *** bug-libtool@gnu.org
8264 MAGIC_CMD=$lt_save_MAGIC_CMD
8269 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8270 if test -n "$MAGIC_CMD"; then
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8272 $as_echo "$MAGIC_CMD" >&6; }
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8275 $as_echo "no" >&6; }
8288 # Use C for the default configuration in the libtool script
8292 ac_cpp='$CPP $CPPFLAGS'
8293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8298 # Source file extension for C test sources.
8301 # Object file extension for compiled C test sources.
8305 # Code to be used in simple compile tests
8306 lt_simple_compile_test_code="int some_variable = 0;"
8308 # Code to be used in simple link tests
8309 lt_simple_link_test_code='int main(){return(0);}'
8317 # If no C compiler was specified, use CC.
8320 # If no C compiler flags were specified, use CFLAGS.
8321 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8323 # Allow CC to be a program name with arguments.
8326 # Save the default compiler, since it gets overwritten when the other
8327 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8328 compiler_DEFAULT=$CC
8330 # save warnings/boilerplate of simple test code
8331 ac_outfile=conftest.$ac_objext
8332 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8333 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8334 _lt_compiler_boilerplate=`cat conftest.err`
8337 ac_outfile=conftest.$ac_objext
8338 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8339 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8340 _lt_linker_boilerplate=`cat conftest.err`
8345 ## There is no encapsulation within the following macros, do not change
8346 ## the running order or otherwise move them around unless you know exactly
8347 ## what you are doing...
8348 if test -n "$compiler"; then
8350 lt_prog_compiler_no_builtin_flag=
8352 if test yes = "$GCC"; then
8353 case $cc_basename in
8355 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8357 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8361 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8362 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8363 $as_echo_n "(cached) " >&6
8365 lt_cv_prog_compiler_rtti_exceptions=no
8366 ac_outfile=conftest.$ac_objext
8367 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8368 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8369 # Insert the option either (1) after the last *FLAGS variable, or
8370 # (2) before a word containing "conftest.", or (3) at the end.
8371 # Note that $ac_compile itself does not contain backslashes and begins
8372 # with a dollar sign (not a hyphen), so the echo should work correctly.
8373 # The option is referenced via a variable to avoid confusing sed.
8374 lt_compile=`echo "$ac_compile" | $SED \
8375 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8376 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8377 -e 's:$: $lt_compiler_flag:'`
8378 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8379 (eval "$lt_compile" 2>conftest.err)
8381 cat conftest.err >&5
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 if (exit $ac_status) && test -s "$ac_outfile"; then
8384 # The compiler can only warn and ignore the option if not recognized
8385 # So say no if there are warnings other than the usual output.
8386 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8387 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8388 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8389 lt_cv_prog_compiler_rtti_exceptions=yes
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8396 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8398 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8399 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8411 lt_prog_compiler_wl=
8412 lt_prog_compiler_pic=
8413 lt_prog_compiler_static=
8416 if test yes = "$GCC"; then
8417 lt_prog_compiler_wl='-Wl,'
8418 lt_prog_compiler_static='-static'
8422 # All AIX code is PIC.
8423 if test ia64 = "$host_cpu"; then
8424 # AIX 5 now supports IA64 processor
8425 lt_prog_compiler_static='-Bstatic'
8427 lt_prog_compiler_pic='-fPIC'
8433 # see comment about AmigaOS4 .so support
8434 lt_prog_compiler_pic='-fPIC'
8437 # FIXME: we need at least 68020 code to build shared libraries, but
8438 # adding the '-m68020' flag to GCC prevents building anything better,
8440 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8445 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8446 # PIC is the default for these OSes.
8449 mingw* | cygwin* | pw32* | os2* | cegcc*)
8450 # This hack is so that the source file can tell whether it is being
8451 # built for inclusion in a dll (and should export symbols for example).
8452 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8453 # (--disable-auto-import) libraries
8454 lt_prog_compiler_pic='-DDLL_EXPORT'
8457 lt_prog_compiler_static='$wl-static'
8462 darwin* | rhapsody*)
8463 # PIC is the default on this platform
8464 # Common symbols not allowed in MH_DYLIB files
8465 lt_prog_compiler_pic='-fno-common'
8469 # PIC is the default for Haiku.
8470 # The "-static" flag exists, but is broken.
8471 lt_prog_compiler_static=
8475 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8476 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8477 # sets the default TLS model and affects inlining.
8483 lt_prog_compiler_pic='-fPIC'
8489 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8490 # Instead, we relocate shared libraries at runtime.
8494 # Just because we use GCC doesn't mean we suddenly get shared libraries
8495 # on systems that don't support them.
8496 lt_prog_compiler_can_build_shared=no
8501 # QNX uses GNU C++, but need to define -shared option too, otherwise
8503 lt_prog_compiler_pic='-fPIC -shared'
8507 if test -d /usr/nec; then
8508 lt_prog_compiler_pic=-Kconform_pic
8513 lt_prog_compiler_pic='-fPIC'
8517 case $cc_basename in
8518 nvcc*) # Cuda Compiler Driver 2.2
8519 lt_prog_compiler_wl='-Xlinker '
8520 if test -n "$lt_prog_compiler_pic"; then
8521 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8526 # PORTME Check for flag to pass linker flags through the system compiler.
8529 lt_prog_compiler_wl='-Wl,'
8530 if test ia64 = "$host_cpu"; then
8531 # AIX 5 now supports IA64 processor
8532 lt_prog_compiler_static='-Bstatic'
8534 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8538 darwin* | rhapsody*)
8539 # PIC is the default on this platform
8540 # Common symbols not allowed in MH_DYLIB files
8541 lt_prog_compiler_pic='-fno-common'
8542 case $cc_basename in
8544 # NAG Fortran compiler
8545 lt_prog_compiler_wl='-Wl,-Wl,,'
8546 lt_prog_compiler_pic='-PIC'
8547 lt_prog_compiler_static='-Bstatic'
8552 mingw* | cygwin* | pw32* | os2* | cegcc*)
8553 # This hack is so that the source file can tell whether it is being
8554 # built for inclusion in a dll (and should export symbols for example).
8555 lt_prog_compiler_pic='-DDLL_EXPORT'
8558 lt_prog_compiler_static='$wl-static'
8563 hpux9* | hpux10* | hpux11*)
8564 lt_prog_compiler_wl='-Wl,'
8565 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8572 lt_prog_compiler_pic='+Z'
8575 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8576 lt_prog_compiler_static='$wl-a ${wl}archive'
8579 irix5* | irix6* | nonstopux*)
8580 lt_prog_compiler_wl='-Wl,'
8581 # PIC (with -KPIC) is the default.
8582 lt_prog_compiler_static='-non_shared'
8585 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8586 case $cc_basename in
8587 # old Intel for x86_64, which still supported -KPIC.
8589 lt_prog_compiler_wl='-Wl,'
8590 lt_prog_compiler_pic='-KPIC'
8591 lt_prog_compiler_static='-static'
8593 # icc used to be incompatible with GCC.
8594 # ICC 10 doesn't accept -KPIC any more.
8596 lt_prog_compiler_wl='-Wl,'
8597 lt_prog_compiler_pic='-fPIC'
8598 lt_prog_compiler_static='-static'
8600 # Lahey Fortran 8.1.
8602 lt_prog_compiler_wl='-Wl,'
8603 lt_prog_compiler_pic='--shared'
8604 lt_prog_compiler_static='--static'
8607 # NAG Fortran compiler
8608 lt_prog_compiler_wl='-Wl,-Wl,,'
8609 lt_prog_compiler_pic='-PIC'
8610 lt_prog_compiler_static='-Bstatic'
8613 # Fabrice Bellard et al's Tiny C Compiler
8614 lt_prog_compiler_wl='-Wl,'
8615 lt_prog_compiler_pic='-fPIC'
8616 lt_prog_compiler_static='-static'
8618 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8619 # Portland Group compilers (*not* the Pentium gcc compiler,
8620 # which looks to be a dead project)
8621 lt_prog_compiler_wl='-Wl,'
8622 lt_prog_compiler_pic='-fpic'
8623 lt_prog_compiler_static='-Bstatic'
8626 lt_prog_compiler_wl='-Wl,'
8627 # All Alpha code is PIC.
8628 lt_prog_compiler_static='-non_shared'
8630 xl* | bgxl* | bgf* | mpixl*)
8631 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8632 lt_prog_compiler_wl='-Wl,'
8633 lt_prog_compiler_pic='-qpic'
8634 lt_prog_compiler_static='-qstaticlink'
8637 case `$CC -V 2>&1 | sed 5q` in
8638 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8639 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8640 lt_prog_compiler_pic='-KPIC'
8641 lt_prog_compiler_static='-Bstatic'
8642 lt_prog_compiler_wl=''
8644 *Sun\ F* | *Sun*Fortran*)
8645 lt_prog_compiler_pic='-KPIC'
8646 lt_prog_compiler_static='-Bstatic'
8647 lt_prog_compiler_wl='-Qoption ld '
8651 lt_prog_compiler_pic='-KPIC'
8652 lt_prog_compiler_static='-Bstatic'
8653 lt_prog_compiler_wl='-Wl,'
8655 *Intel*\ [CF]*Compiler*)
8656 lt_prog_compiler_wl='-Wl,'
8657 lt_prog_compiler_pic='-fPIC'
8658 lt_prog_compiler_static='-static'
8661 lt_prog_compiler_wl='-Wl,'
8662 lt_prog_compiler_pic='-fpic'
8663 lt_prog_compiler_static='-Bstatic'
8671 lt_prog_compiler_pic='-KPIC'
8672 lt_prog_compiler_static='-Bstatic'
8676 # QNX uses GNU C++, but need to define -shared option too, otherwise
8678 lt_prog_compiler_pic='-fPIC -shared'
8681 osf3* | osf4* | osf5*)
8682 lt_prog_compiler_wl='-Wl,'
8683 # All OSF/1 code is PIC.
8684 lt_prog_compiler_static='-non_shared'
8688 lt_prog_compiler_static='-non_shared'
8692 lt_prog_compiler_pic='-KPIC'
8693 lt_prog_compiler_static='-Bstatic'
8694 case $cc_basename in
8695 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8696 lt_prog_compiler_wl='-Qoption ld ';;
8698 lt_prog_compiler_wl='-Wl,';;
8703 lt_prog_compiler_wl='-Qoption ld '
8704 lt_prog_compiler_pic='-PIC'
8705 lt_prog_compiler_static='-Bstatic'
8708 sysv4 | sysv4.2uw2* | sysv4.3*)
8709 lt_prog_compiler_wl='-Wl,'
8710 lt_prog_compiler_pic='-KPIC'
8711 lt_prog_compiler_static='-Bstatic'
8715 if test -d /usr/nec; then
8716 lt_prog_compiler_pic='-Kconform_pic'
8717 lt_prog_compiler_static='-Bstatic'
8721 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8722 lt_prog_compiler_wl='-Wl,'
8723 lt_prog_compiler_pic='-KPIC'
8724 lt_prog_compiler_static='-Bstatic'
8728 lt_prog_compiler_wl='-Wl,'
8729 lt_prog_compiler_can_build_shared=no
8733 lt_prog_compiler_pic='-pic'
8734 lt_prog_compiler_static='-Bstatic'
8738 lt_prog_compiler_can_build_shared=no
8744 # For platforms that do not support PIC, -DPIC is meaningless:
8746 lt_prog_compiler_pic=
8749 lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8754 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8755 if ${lt_cv_prog_compiler_pic+:} false; then :
8756 $as_echo_n "(cached) " >&6
8758 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8761 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8762 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8765 # Check to make sure the PIC flag actually works.
8767 if test -n "$lt_prog_compiler_pic"; then
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8769 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8770 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8771 $as_echo_n "(cached) " >&6
8773 lt_cv_prog_compiler_pic_works=no
8774 ac_outfile=conftest.$ac_objext
8775 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8776 lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC" ## exclude from sc_useless_quotes_in_assignment
8777 # Insert the option either (1) after the last *FLAGS variable, or
8778 # (2) before a word containing "conftest.", or (3) at the end.
8779 # Note that $ac_compile itself does not contain backslashes and begins
8780 # with a dollar sign (not a hyphen), so the echo should work correctly.
8781 # The option is referenced via a variable to avoid confusing sed.
8782 lt_compile=`echo "$ac_compile" | $SED \
8783 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8784 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8785 -e 's:$: $lt_compiler_flag:'`
8786 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8787 (eval "$lt_compile" 2>conftest.err)
8789 cat conftest.err >&5
8790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791 if (exit $ac_status) && test -s "$ac_outfile"; then
8792 # The compiler can only warn and ignore the option if not recognized
8793 # So say no if there are warnings other than the usual output.
8794 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8795 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8796 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8797 lt_cv_prog_compiler_pic_works=yes
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8804 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8806 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8807 case $lt_prog_compiler_pic in
8809 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8812 lt_prog_compiler_pic=
8813 lt_prog_compiler_can_build_shared=no
8829 # Check to make sure the static flag actually works.
8831 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8833 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8834 if ${lt_cv_prog_compiler_static_works+:} false; then :
8835 $as_echo_n "(cached) " >&6
8837 lt_cv_prog_compiler_static_works=no
8838 save_LDFLAGS=$LDFLAGS
8839 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8840 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8841 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8842 # The linker can only warn and ignore the option if not recognized
8843 # So say no if there are warnings
8844 if test -s conftest.err; then
8845 # Append any errors to the config.log.
8846 cat conftest.err 1>&5
8847 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8848 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8849 if diff conftest.exp conftest.er2 >/dev/null; then
8850 lt_cv_prog_compiler_static_works=yes
8853 lt_cv_prog_compiler_static_works=yes
8857 LDFLAGS=$save_LDFLAGS
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8861 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8863 if test yes = "$lt_cv_prog_compiler_static_works"; then
8866 lt_prog_compiler_static=
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8876 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8877 if ${lt_cv_prog_compiler_c_o+:} false; then :
8878 $as_echo_n "(cached) " >&6
8880 lt_cv_prog_compiler_c_o=no
8881 $RM -r conftest 2>/dev/null
8885 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8887 lt_compiler_flag="-o out/conftest2.$ac_objext"
8888 # Insert the option either (1) after the last *FLAGS variable, or
8889 # (2) before a word containing "conftest.", or (3) at the end.
8890 # Note that $ac_compile itself does not contain backslashes and begins
8891 # with a dollar sign (not a hyphen), so the echo should work correctly.
8892 lt_compile=`echo "$ac_compile" | $SED \
8893 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8894 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8895 -e 's:$: $lt_compiler_flag:'`
8896 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8897 (eval "$lt_compile" 2>out/conftest.err)
8899 cat out/conftest.err >&5
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8903 # The compiler can only warn and ignore the option if not recognized
8904 # So say no if there are warnings
8905 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8906 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8907 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8908 lt_cv_prog_compiler_c_o=yes
8913 # SGI C++ compiler will create directory out/ii_files/ for
8914 # template instantiation
8915 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8916 $RM out/* && rmdir out
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8923 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8931 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8932 if ${lt_cv_prog_compiler_c_o+:} false; then :
8933 $as_echo_n "(cached) " >&6
8935 lt_cv_prog_compiler_c_o=no
8936 $RM -r conftest 2>/dev/null
8940 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8942 lt_compiler_flag="-o out/conftest2.$ac_objext"
8943 # Insert the option either (1) after the last *FLAGS variable, or
8944 # (2) before a word containing "conftest.", or (3) at the end.
8945 # Note that $ac_compile itself does not contain backslashes and begins
8946 # with a dollar sign (not a hyphen), so the echo should work correctly.
8947 lt_compile=`echo "$ac_compile" | $SED \
8948 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8949 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8950 -e 's:$: $lt_compiler_flag:'`
8951 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8952 (eval "$lt_compile" 2>out/conftest.err)
8954 cat out/conftest.err >&5
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8958 # The compiler can only warn and ignore the option if not recognized
8959 # So say no if there are warnings
8960 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8961 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8962 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8963 lt_cv_prog_compiler_c_o=yes
8968 # SGI C++ compiler will create directory out/ii_files/ for
8969 # template instantiation
8970 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8971 $RM out/* && rmdir out
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8978 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8983 hard_links=nottested
8984 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8985 # do not overwrite the value of need_locks provided by the user
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8987 $as_echo_n "checking if we can lock with hard links... " >&6; }
8990 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8992 ln conftest.a conftest.b 2>&5 || hard_links=no
8993 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8995 $as_echo "$hard_links" >&6; }
8996 if test no = "$hard_links"; then
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8998 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9011 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9014 allow_undefined_flag=
9015 always_export_symbols=no
9017 archive_expsym_cmds=
9018 compiler_needs_object=no
9019 enable_shared_with_static_runtimes=no
9020 export_dynamic_flag_spec=
9021 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9022 hardcode_automatic=no
9024 hardcode_direct_absolute=no
9025 hardcode_libdir_flag_spec=
9026 hardcode_libdir_separator=
9028 hardcode_shlibpath_var=unsupported
9030 link_all_deplibs=unknown
9033 old_archive_from_new_cmds=
9034 old_archive_from_expsyms_cmds=
9035 thread_safe_flag_spec=
9036 whole_archive_flag_spec=
9037 # include_expsyms should be a list of space-separated symbols to be *always*
9038 # included in the symbol list
9040 # exclude_expsyms can be an extended regexp of symbols to exclude
9041 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9042 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9043 # as well as any symbol that contains 'd'.
9044 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9045 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9046 # platforms (ab)use it in PIC code, but their linkers get confused if
9047 # the symbol is explicitly referenced. Since portable code cannot
9048 # rely on this symbol name, it's probably fine to never include it in
9049 # preloaded symbol tables.
9050 # Exclude shared library initialization/finalization symbols.
9051 extract_expsyms_cmds=
9054 cygwin* | mingw* | pw32* | cegcc*)
9055 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9056 # When not using gcc, we currently assume that we are using
9057 # Microsoft Visual C++.
9058 if test yes != "$GCC"; then
9063 # we just hope/assume this is gcc and not c89 (= MSVC++)
9069 linux* | k*bsd*-gnu | gnu*)
9076 # On some targets, GNU ld is compatible enough with the native linker
9077 # that we're better off using the native interface for both.
9078 lt_use_gnu_ld_interface=no
9079 if test yes = "$with_gnu_ld"; then
9082 # The AIX port of GNU ld has always aspired to compatibility
9083 # with the native linker. However, as the warning in the GNU ld
9084 # block says, versions before 2.19.5* couldn't really create working
9085 # shared libraries, regardless of the interface used.
9086 case `$LD -v 2>&1` in
9087 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9088 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9089 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9091 lt_use_gnu_ld_interface=yes
9096 lt_use_gnu_ld_interface=yes
9101 if test yes = "$lt_use_gnu_ld_interface"; then
9102 # If archive_cmds runs LD, not CC, wlarc should be empty
9105 # Set some defaults for GNU ld with shared library support. These
9106 # are reset later if shared libraries are not supported. Putting them
9107 # here allows them to be overridden if necessary.
9108 runpath_var=LD_RUN_PATH
9109 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9110 export_dynamic_flag_spec='$wl--export-dynamic'
9111 # ancient GNU ld didn't support --whole-archive et. al.
9112 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9113 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9115 whole_archive_flag_spec=
9117 supports_anon_versioning=no
9118 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9119 *GNU\ gold*) supports_anon_versioning=yes ;;
9120 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9121 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9122 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9123 *\ 2.11.*) ;; # other 2.11 versions
9124 *) supports_anon_versioning=yes ;;
9127 # See if GNU ld supports shared libraries.
9130 # On AIX/PPC, the GNU linker is very broken
9131 if test ia64 != "$host_cpu"; then
9135 *** Warning: the GNU linker, at least up to release 2.19, is reported
9136 *** to be unable to reliably create shared libraries on AIX.
9137 *** Therefore, libtool is disabling shared libraries support. If you
9138 *** really care for shared libraries, you may want to install binutils
9139 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9140 *** You will then need to restart the configuration process.
9149 # see comment about AmigaOS4 .so support
9150 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9151 archive_expsym_cmds=''
9154 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)'
9155 hardcode_libdir_flag_spec='-L$libdir'
9156 hardcode_minus_L=yes
9162 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9163 allow_undefined_flag=unsupported
9164 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9165 # support --undefined. This deserves some investigation. FIXME
9166 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9172 cygwin* | mingw* | pw32* | cegcc*)
9173 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9174 # as there is no search path for DLLs.
9175 hardcode_libdir_flag_spec='-L$libdir'
9176 export_dynamic_flag_spec='$wl--export-all-symbols'
9177 allow_undefined_flag=unsupported
9178 always_export_symbols=no
9179 enable_shared_with_static_runtimes=yes
9180 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'
9181 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9183 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9184 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9185 # If the export-symbols file already is a .def file, use it as
9186 # is; otherwise, prepend EXPORTS...
9187 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9188 cp $export_symbols $output_objdir/$soname.def;
9190 echo EXPORTS > $output_objdir/$soname.def;
9191 cat $export_symbols >> $output_objdir/$soname.def;
9193 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9200 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9201 link_all_deplibs=yes
9205 hardcode_libdir_flag_spec='-L$libdir'
9206 hardcode_minus_L=yes
9207 allow_undefined_flag=unsupported
9209 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9210 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9211 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9212 $ECHO EXPORTS >> $output_objdir/$libname.def~
9213 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9214 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9215 emximp -o $lib $output_objdir/$libname.def'
9216 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9217 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9218 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9219 $ECHO EXPORTS >> $output_objdir/$libname.def~
9221 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9222 prefix_cmds="$prefix_cmds -e 1d";
9224 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9225 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9226 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9227 emximp -o $lib $output_objdir/$libname.def'
9228 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9229 enable_shared_with_static_runtimes=yes
9234 hardcode_shlibpath_var=no
9235 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9236 export_dynamic_flag_spec='$wl-E'
9237 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9238 # Instead, shared libraries are loaded at an image base (0x10000000 by
9239 # default) and relocated if they conflict, which is a slow very memory
9240 # consuming and fragmenting process. To avoid this, we pick a random,
9241 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9242 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9243 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9244 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'
9247 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9249 if test linux-dietlibc = "$host_os"; then
9250 case $cc_basename in
9251 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9254 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9255 && test no = "$tmp_diet"
9257 tmp_addflag=' $pic_flag'
9258 tmp_sharedflag='-shared'
9259 case $cc_basename,$host_cpu in
9260 pgcc*) # Portland Group C compiler
9261 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'
9262 tmp_addflag=' $pic_flag'
9264 pgf77* | pgf90* | pgf95* | pgfortran*)
9265 # Portland Group f77 and f90 compilers
9266 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'
9267 tmp_addflag=' $pic_flag -Mnomain' ;;
9268 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9269 tmp_addflag=' -i_dynamic' ;;
9270 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9271 tmp_addflag=' -i_dynamic -nofor_main' ;;
9272 ifc* | ifort*) # Intel Fortran compiler
9273 tmp_addflag=' -nofor_main' ;;
9274 lf95*) # Lahey Fortran 8.1
9275 whole_archive_flag_spec=
9276 tmp_sharedflag='--shared' ;;
9277 nagfor*) # NAGFOR 5.3
9278 tmp_sharedflag='-Wl,-shared' ;;
9279 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9280 tmp_sharedflag='-qmkshrobj'
9282 nvcc*) # Cuda Compiler Driver 2.2
9283 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'
9284 compiler_needs_object=yes
9287 case `$CC -V 2>&1 | sed 5q` in
9288 *Sun\ C*) # Sun C 5.9
9289 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'
9290 compiler_needs_object=yes
9291 tmp_sharedflag='-G' ;;
9292 *Sun\ F*) # Sun Fortran 8.3
9293 tmp_sharedflag='-G' ;;
9295 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9297 if test yes = "$supports_anon_versioning"; then
9298 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9299 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9300 echo "local: *; };" >> $output_objdir/$libname.ver~
9301 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9304 case $cc_basename in
9306 export_dynamic_flag_spec='-rdynamic'
9308 xlf* | bgf* | bgxlf* | mpixlf*)
9309 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9310 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9311 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9312 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9313 if test yes = "$supports_anon_versioning"; then
9314 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9315 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9316 echo "local: *; };" >> $output_objdir/$libname.ver~
9317 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9326 netbsd* | netbsdelf*-gnu)
9327 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9328 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9331 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9332 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9337 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9341 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9342 *** create shared libraries on Solaris systems. Therefore, libtool
9343 *** is disabling shared libraries support. We urge you to upgrade GNU
9344 *** binutils to release 2.9.1 or newer. Another option is to modify
9345 *** your PATH or compiler configuration so that the native linker is
9346 *** used, and then restart.
9349 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9350 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9351 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9357 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9358 case `$LD -v 2>&1` in
9359 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9363 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9364 *** reliably create shared libraries on SCO systems. Therefore, libtool
9365 *** is disabling shared libraries support. We urge you to upgrade GNU
9366 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9367 *** your PATH or compiler configuration so that the native linker is
9368 *** used, and then restart.
9373 # For security reasons, it is highly recommended that you always
9374 # use absolute paths for naming shared libraries, and exclude the
9375 # DT_RUNPATH tag from executables and libraries. But doing so
9376 # requires that you compile everything twice, which is a pain.
9377 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9378 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9379 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9380 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9389 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9392 hardcode_shlibpath_var=no
9396 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9397 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9398 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9405 if test no = "$ld_shlibs"; then
9407 hardcode_libdir_flag_spec=
9408 export_dynamic_flag_spec=
9409 whole_archive_flag_spec=
9412 # PORTME fill in a description of your system's linker (not GNU ld)
9415 allow_undefined_flag=unsupported
9416 always_export_symbols=yes
9417 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'
9418 # Note: this linker hardcodes the directories in LIBPATH if there
9419 # are no directories specified by -L.
9420 hardcode_minus_L=yes
9421 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9422 # Neither direct hardcoding nor static linking is supported with a
9424 hardcode_direct=unsupported
9429 if test ia64 = "$host_cpu"; then
9430 # On IA64, the linker does run time linking by default, so we don't
9431 # have to do anything special.
9432 aix_use_runtimelinking=no
9433 exp_sym_flag='-Bexport'
9436 # If we're using GNU nm, then we don't want the "-C" option.
9437 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9438 # Without the "-l" option, or with the "-B" option, AIX nm treats
9439 # weak defined symbols like other global defined symbols, whereas
9440 # GNU nm marks them as "W".
9441 # While the 'weak' keyword is ignored in the Export File, we need
9442 # it in the Import File for the 'aix-soname' feature, so we have
9443 # to replace the "-B" option with "-P" for AIX nm.
9444 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9445 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'
9447 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'
9449 aix_use_runtimelinking=no
9451 # Test if we are trying to use run time linking or normal
9452 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9453 # have runtime linking enabled, and use it for executables.
9454 # For shared libraries, we enable/disable runtime linking
9455 # depending on the kind of the shared library created -
9456 # when "with_aix_soname,aix_use_runtimelinking" is:
9457 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9458 # "aix,yes" lib.so shared, rtl:yes, for executables
9459 # lib.a static archive
9460 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9461 # lib.a(lib.so.V) shared, rtl:no, for executables
9462 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9463 # lib.a(lib.so.V) shared, rtl:no
9464 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9465 # lib.a static archive
9466 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9467 for ld_flag in $LDFLAGS; do
9468 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9469 aix_use_runtimelinking=yes
9473 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9474 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9475 # so we don't have lib.a shared libs to link our executables.
9476 # We have to force runtime linking in this case.
9477 aix_use_runtimelinking=yes
9478 LDFLAGS="$LDFLAGS -Wl,-brtl"
9483 exp_sym_flag='-bexport'
9484 no_entry_flag='-bnoentry'
9487 # When large executables or shared objects are built, AIX ld can
9488 # have problems creating the table of contents. If linking a library
9489 # or program results in "error TOC overflow" add -mminimal-toc to
9490 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9491 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9495 hardcode_direct_absolute=yes
9496 hardcode_libdir_separator=':'
9497 link_all_deplibs=yes
9498 file_list_spec='$wl-f,'
9499 case $with_aix_soname,$aix_use_runtimelinking in
9500 aix,*) ;; # traditional, no import file
9501 svr4,* | *,yes) # use import file
9502 # The Import File defines what to hardcode.
9504 hardcode_direct_absolute=no
9508 if test yes = "$GCC"; then
9509 case $host_os in aix4.[012]|aix4.[012].*)
9510 # We only want to do this on AIX 4.2 and lower, the check
9511 # below for broken collect2 doesn't work under 4.3+
9512 collect2name=`$CC -print-prog-name=collect2`
9513 if test -f "$collect2name" &&
9514 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9516 # We have reworked collect2
9519 # We have old collect2
9520 hardcode_direct=unsupported
9521 # It fails to find uninstalled libraries when the uninstalled
9522 # path is not listed in the libpath. Setting hardcode_minus_L
9523 # to unsupported forces relinking
9524 hardcode_minus_L=yes
9525 hardcode_libdir_flag_spec='-L$libdir'
9526 hardcode_libdir_separator=
9530 shared_flag='-shared'
9531 if test yes = "$aix_use_runtimelinking"; then
9532 shared_flag="$shared_flag "'$wl-G'
9534 # Need to ensure runtime linking is disabled for the traditional
9535 # shared library, or the linker may eventually find shared libraries
9536 # /with/ Import File - we do not want to mix them.
9537 shared_flag_aix='-shared'
9538 shared_flag_svr4='-shared $wl-G'
9541 if test ia64 = "$host_cpu"; then
9542 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9543 # chokes on -Wl,-G. The following line is correct:
9546 if test yes = "$aix_use_runtimelinking"; then
9549 shared_flag='$wl-bM:SRE'
9551 shared_flag_aix='$wl-bM:SRE'
9552 shared_flag_svr4='$wl-G'
9556 export_dynamic_flag_spec='$wl-bexpall'
9557 # It seems that -bexpall does not export symbols beginning with
9558 # underscore (_), so it is better to generate a list of symbols to export.
9559 always_export_symbols=yes
9560 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9561 # Warning - without using the other runtime loading flags (-brtl),
9562 # -berok will link without error, but may produce a broken library.
9563 allow_undefined_flag='-berok'
9564 # Determine the default libpath from the value encoded in an
9566 if test set = "${lt_cv_aix_libpath+set}"; then
9567 aix_libpath=$lt_cv_aix_libpath
9569 if ${lt_cv_aix_libpath_+:} false; then :
9570 $as_echo_n "(cached) " >&6
9572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9573 /* end confdefs.h. */
9583 if ac_fn_c_try_link "$LINENO"; then :
9585 lt_aix_libpath_sed='
9586 /Import File Strings/,/^$/ {
9588 s/^0 *\([^ ]*\) *$/\1/
9592 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9593 # Check for a 64-bit object if we didn't find anything.
9594 if test -z "$lt_cv_aix_libpath_"; then
9595 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9598 rm -f core conftest.err conftest.$ac_objext \
9599 conftest$ac_exeext conftest.$ac_ext
9600 if test -z "$lt_cv_aix_libpath_"; then
9601 lt_cv_aix_libpath_=/usr/lib:/lib
9606 aix_libpath=$lt_cv_aix_libpath_
9609 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9610 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
9612 if test ia64 = "$host_cpu"; then
9613 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9614 allow_undefined_flag="-z nodefs"
9615 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"
9617 # Determine the default libpath from the value encoded in an
9619 if test set = "${lt_cv_aix_libpath+set}"; then
9620 aix_libpath=$lt_cv_aix_libpath
9622 if ${lt_cv_aix_libpath_+:} false; then :
9623 $as_echo_n "(cached) " >&6
9625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9626 /* end confdefs.h. */
9636 if ac_fn_c_try_link "$LINENO"; then :
9638 lt_aix_libpath_sed='
9639 /Import File Strings/,/^$/ {
9641 s/^0 *\([^ ]*\) *$/\1/
9645 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9646 # Check for a 64-bit object if we didn't find anything.
9647 if test -z "$lt_cv_aix_libpath_"; then
9648 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9651 rm -f core conftest.err conftest.$ac_objext \
9652 conftest$ac_exeext conftest.$ac_ext
9653 if test -z "$lt_cv_aix_libpath_"; then
9654 lt_cv_aix_libpath_=/usr/lib:/lib
9659 aix_libpath=$lt_cv_aix_libpath_
9662 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9663 # Warning - without using the other run time loading flags,
9664 # -berok will link without error, but may produce a broken library.
9665 no_undefined_flag=' $wl-bernotok'
9666 allow_undefined_flag=' $wl-berok'
9667 if test yes = "$with_gnu_ld"; then
9668 # We only use this code for GNU lds that support --whole-archive.
9669 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9671 # Exported symbols can be pulled into shared objects from archives
9672 whole_archive_flag_spec='$convenience'
9674 archive_cmds_need_lc=yes
9675 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9676 # -brtl affects multiple linker settings, -berok does not and is overridden later
9677 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9678 if test svr4 != "$with_aix_soname"; then
9679 # This is similar to how AIX traditionally builds its shared libraries.
9680 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'
9682 if test aix != "$with_aix_soname"; then
9683 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'
9685 # used by -dlpreopen to get the symbols
9686 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9688 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9696 # see comment about AmigaOS4 .so support
9697 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9698 archive_expsym_cmds=''
9701 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)'
9702 hardcode_libdir_flag_spec='-L$libdir'
9703 hardcode_minus_L=yes
9709 export_dynamic_flag_spec=-rdynamic
9712 cygwin* | mingw* | pw32* | cegcc*)
9713 # When not using gcc, we currently assume that we are using
9714 # Microsoft Visual C++.
9715 # hardcode_libdir_flag_spec is actually meaningless, as there is
9716 # no search path for DLLs.
9717 case $cc_basename in
9720 hardcode_libdir_flag_spec=' '
9721 allow_undefined_flag=unsupported
9722 always_export_symbols=yes
9724 # Tell ltmain to make .lib files, not .a files.
9726 # Tell ltmain to make .dll files, not .so files.
9728 # FIXME: Setting linknames here is a bad hack.
9729 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9730 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9731 cp "$export_symbols" "$output_objdir/$soname.def";
9732 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9734 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9736 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9738 # The linker will not automatically build a static lib if we build a DLL.
9739 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9740 enable_shared_with_static_runtimes=yes
9741 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9742 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9744 old_postinstall_cmds='chmod 644 $oldlib'
9745 postlink_cmds='lt_outputfile="@OUTPUT@"~
9746 lt_tool_outputfile="@TOOL_OUTPUT@"~
9747 case $lt_outputfile in
9750 lt_outputfile=$lt_outputfile.exe
9751 lt_tool_outputfile=$lt_tool_outputfile.exe
9754 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9755 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9756 $RM "$lt_outputfile.manifest";
9760 # Assume MSVC wrapper
9761 hardcode_libdir_flag_spec=' '
9762 allow_undefined_flag=unsupported
9763 # Tell ltmain to make .lib files, not .a files.
9765 # Tell ltmain to make .dll files, not .so files.
9767 # FIXME: Setting linknames here is a bad hack.
9768 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9769 # The linker will automatically build a .lib file if we build a DLL.
9770 old_archive_from_new_cmds='true'
9771 # FIXME: Should let the user specify the lib program.
9772 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9773 enable_shared_with_static_runtimes=yes
9778 darwin* | rhapsody*)
9781 archive_cmds_need_lc=no
9783 hardcode_automatic=yes
9784 hardcode_shlibpath_var=unsupported
9785 if test yes = "$lt_cv_ld_force_load"; then
9786 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\"`'
9789 whole_archive_flag_spec=''
9791 link_all_deplibs=yes
9792 allow_undefined_flag=$_lt_dar_allow_undefined
9793 case $cc_basename in
9794 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9795 *) _lt_dar_can_shared=$GCC ;;
9797 if test yes = "$_lt_dar_can_shared"; then
9798 output_verbose_link_cmd=func_echo_all
9799 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9800 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9801 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"
9802 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"
9811 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9812 hardcode_libdir_flag_spec='-L$libdir'
9813 hardcode_shlibpath_var=no
9816 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9817 # support. Future versions do this automatically, but an explicit c++rt0.o
9818 # does not break anything, and helps significantly (at the cost of a little
9821 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9822 hardcode_libdir_flag_spec='-R$libdir'
9824 hardcode_shlibpath_var=no
9827 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9829 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9831 hardcode_minus_L=yes
9832 hardcode_shlibpath_var=no
9835 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9836 freebsd* | dragonfly*)
9837 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9838 hardcode_libdir_flag_spec='-R$libdir'
9840 hardcode_shlibpath_var=no
9844 if test yes = "$GCC"; then
9845 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 $output_objdir/$soname $lib'
9847 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 $output_objdir/$soname $lib'
9849 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9850 hardcode_libdir_separator=:
9853 # hardcode_minus_L: Not really in the search PATH,
9854 # but as the default location of the library.
9855 hardcode_minus_L=yes
9856 export_dynamic_flag_spec='$wl-E'
9860 if test yes,no = "$GCC,$with_gnu_ld"; then
9861 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9863 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9865 if test no = "$with_gnu_ld"; then
9866 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9867 hardcode_libdir_separator=:
9869 hardcode_direct_absolute=yes
9870 export_dynamic_flag_spec='$wl-E'
9871 # hardcode_minus_L: Not really in the search PATH,
9872 # but as the default location of the library.
9873 hardcode_minus_L=yes
9878 if test yes,no = "$GCC,$with_gnu_ld"; then
9881 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9884 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9887 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9893 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9896 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9900 # Older versions of the 11.00 compiler do not understand -b yet
9901 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9903 $as_echo_n "checking if $CC understands -b... " >&6; }
9904 if ${lt_cv_prog_compiler__b+:} false; then :
9905 $as_echo_n "(cached) " >&6
9907 lt_cv_prog_compiler__b=no
9908 save_LDFLAGS=$LDFLAGS
9909 LDFLAGS="$LDFLAGS -b"
9910 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9911 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9912 # The linker can only warn and ignore the option if not recognized
9913 # So say no if there are warnings
9914 if test -s conftest.err; then
9915 # Append any errors to the config.log.
9916 cat conftest.err 1>&5
9917 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9918 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9919 if diff conftest.exp conftest.er2 >/dev/null; then
9920 lt_cv_prog_compiler__b=yes
9923 lt_cv_prog_compiler__b=yes
9927 LDFLAGS=$save_LDFLAGS
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9931 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9933 if test yes = "$lt_cv_prog_compiler__b"; then
9934 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9936 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9942 if test no = "$with_gnu_ld"; then
9943 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9944 hardcode_libdir_separator=:
9949 hardcode_shlibpath_var=no
9953 hardcode_direct_absolute=yes
9954 export_dynamic_flag_spec='$wl-E'
9956 # hardcode_minus_L: Not really in the search PATH,
9957 # but as the default location of the library.
9958 hardcode_minus_L=yes
9964 irix5* | irix6* | nonstopux*)
9965 if test yes = "$GCC"; then
9966 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'
9967 # Try to use the -exported_symbol ld option, if it does not
9968 # work, assume that -exports_file does not work either and
9969 # implicitly export all symbols.
9970 # This should be the same for all languages, so no per-tag cache variable.
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9972 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9973 if ${lt_cv_irix_exported_symbol+:} false; then :
9974 $as_echo_n "(cached) " >&6
9976 save_LDFLAGS=$LDFLAGS
9977 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9979 /* end confdefs.h. */
9980 int foo (void) { return 0; }
9982 if ac_fn_c_try_link "$LINENO"; then :
9983 lt_cv_irix_exported_symbol=yes
9985 lt_cv_irix_exported_symbol=no
9987 rm -f core conftest.err conftest.$ac_objext \
9988 conftest$ac_exeext conftest.$ac_ext
9989 LDFLAGS=$save_LDFLAGS
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9992 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9993 if test yes = "$lt_cv_irix_exported_symbol"; then
9994 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'
9998 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'
9999 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'
10001 archive_cmds_need_lc='no'
10002 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10003 hardcode_libdir_separator=:
10005 link_all_deplibs=yes
10009 case $cc_basename in
10011 # Fabrice Bellard et al's Tiny C Compiler
10013 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10018 netbsd* | netbsdelf*-gnu)
10019 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10020 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10022 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10024 hardcode_libdir_flag_spec='-R$libdir'
10025 hardcode_direct=yes
10026 hardcode_shlibpath_var=no
10030 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10031 hardcode_direct=yes
10032 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10033 hardcode_libdir_separator=:
10034 hardcode_shlibpath_var=no
10040 openbsd* | bitrig*)
10041 if test -f /usr/libexec/ld.so; then
10042 hardcode_direct=yes
10043 hardcode_shlibpath_var=no
10044 hardcode_direct_absolute=yes
10045 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10046 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10047 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10048 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10049 export_dynamic_flag_spec='$wl-E'
10051 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10052 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10060 hardcode_libdir_flag_spec='-L$libdir'
10061 hardcode_minus_L=yes
10062 allow_undefined_flag=unsupported
10064 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10065 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10066 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10067 $ECHO EXPORTS >> $output_objdir/$libname.def~
10068 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10069 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10070 emximp -o $lib $output_objdir/$libname.def'
10071 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10072 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10073 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10074 $ECHO EXPORTS >> $output_objdir/$libname.def~
10075 prefix_cmds="$SED"~
10076 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10077 prefix_cmds="$prefix_cmds -e 1d";
10079 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10080 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10081 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10082 emximp -o $lib $output_objdir/$libname.def'
10083 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10084 enable_shared_with_static_runtimes=yes
10088 if test yes = "$GCC"; then
10089 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10090 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'
10092 allow_undefined_flag=' -expect_unresolved \*'
10093 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'
10095 archive_cmds_need_lc='no'
10096 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10097 hardcode_libdir_separator=:
10100 osf4* | osf5*) # as osf3* with the addition of -msym flag
10101 if test yes = "$GCC"; then
10102 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10103 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'
10104 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10106 allow_undefined_flag=' -expect_unresolved \*'
10107 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'
10108 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~
10109 $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'
10111 # Both c and cxx compiler support -rpath directly
10112 hardcode_libdir_flag_spec='-rpath $libdir'
10114 archive_cmds_need_lc='no'
10115 hardcode_libdir_separator=:
10119 no_undefined_flag=' -z defs'
10120 if test yes = "$GCC"; then
10122 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10123 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10124 $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'
10126 case `$CC -V 2>&1` in
10129 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10130 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10131 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10135 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10136 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10137 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10141 hardcode_libdir_flag_spec='-R$libdir'
10142 hardcode_shlibpath_var=no
10144 solaris2.[0-5] | solaris2.[0-5].*) ;;
10146 # The compiler driver will combine and reorder linker options,
10147 # but understands '-z linker_flag'. GCC discards it without '$wl',
10148 # but is careful enough not to reorder.
10149 # Supported since Solaris 2.6 (maybe 2.5.1?)
10150 if test yes = "$GCC"; then
10151 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10153 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10157 link_all_deplibs=yes
10161 if test sequent = "$host_vendor"; then
10162 # Use $CC to link under sequent, because it throws in some extra .o
10163 # files that make .init and .fini sections work.
10164 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10166 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10168 hardcode_libdir_flag_spec='-L$libdir'
10169 hardcode_direct=yes
10170 hardcode_minus_L=yes
10171 hardcode_shlibpath_var=no
10175 case $host_vendor in
10177 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10178 hardcode_direct=yes # is this really true???
10181 ## LD is ld it makes a PLAMLIB
10182 ## CC just makes a GrossModule.
10183 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10184 reload_cmds='$CC -r -o $output$reload_objs'
10188 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10189 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10192 runpath_var='LD_RUN_PATH'
10193 hardcode_shlibpath_var=no
10197 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10198 hardcode_shlibpath_var=no
10199 export_dynamic_flag_spec='-Bexport'
10203 if test -d /usr/nec; then
10204 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10205 hardcode_shlibpath_var=no
10206 runpath_var=LD_RUN_PATH
10207 hardcode_runpath_var=yes
10212 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10213 no_undefined_flag='$wl-z,text'
10214 archive_cmds_need_lc=no
10215 hardcode_shlibpath_var=no
10216 runpath_var='LD_RUN_PATH'
10218 if test yes = "$GCC"; then
10219 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10220 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10222 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10223 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10227 sysv5* | sco3.2v5* | sco5v6*)
10228 # Note: We CANNOT use -z defs as we might desire, because we do not
10229 # link with -lc, and that would cause any symbols used from libc to
10230 # always be unresolved, which means just about no library would
10231 # ever link correctly. If we're not using GNU ld we use -z text
10232 # though, which does catch some bad symbols but isn't as heavy-handed
10234 no_undefined_flag='$wl-z,text'
10235 allow_undefined_flag='$wl-z,nodefs'
10236 archive_cmds_need_lc=no
10237 hardcode_shlibpath_var=no
10238 hardcode_libdir_flag_spec='$wl-R,$libdir'
10239 hardcode_libdir_separator=':'
10240 link_all_deplibs=yes
10241 export_dynamic_flag_spec='$wl-Bexport'
10242 runpath_var='LD_RUN_PATH'
10244 if test yes = "$GCC"; then
10245 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10246 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10248 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10249 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10254 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10255 hardcode_libdir_flag_spec='-L$libdir'
10256 hardcode_shlibpath_var=no
10264 if test sni = "$host_vendor"; then
10266 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10267 export_dynamic_flag_spec='$wl-Blargedynsym'
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10274 $as_echo "$ld_shlibs" >&6; }
10275 test no = "$ld_shlibs" && can_build_shared=no
10277 with_gnu_ld=$with_gnu_ld
10294 # Do we need to explicitly link libc?
10296 case "x$archive_cmds_need_lc" in
10298 # Assume -lc should be added
10299 archive_cmds_need_lc=yes
10301 if test yes,yes = "$GCC,$enable_shared"; then
10302 case $archive_cmds in
10304 # FIXME: we may have to deal with multi-command sequences.
10307 # Test whether the compiler implicitly links with -lc since on some
10308 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10309 # to ld, don't add -lc before -lgcc.
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10311 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10312 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10313 $as_echo_n "(cached) " >&6
10316 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10318 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10319 (eval $ac_compile) 2>&5
10321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10322 test $ac_status = 0; } 2>conftest.err; then
10325 libobjs=conftest.$ac_objext
10327 wl=$lt_prog_compiler_wl
10328 pic_flag=$lt_prog_compiler_pic
10334 lt_save_allow_undefined_flag=$allow_undefined_flag
10335 allow_undefined_flag=
10336 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10337 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10340 test $ac_status = 0; }
10342 lt_cv_archive_cmds_need_lc=no
10344 lt_cv_archive_cmds_need_lc=yes
10346 allow_undefined_flag=$lt_save_allow_undefined_flag
10348 cat conftest.err 1>&5
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10354 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10355 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10514 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10516 if test yes = "$GCC"; then
10518 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10519 *) lt_awk_arg='/^libraries:/' ;;
10522 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10523 *) lt_sed_strip_eq='s|=/|/|g' ;;
10525 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10526 case $lt_search_path_spec in
10528 # if the path contains ";" then we assume it to be the separator
10529 # otherwise default to the standard path separator (i.e. ":") - it is
10530 # assumed that no part of a normal pathname contains ";" but that should
10531 # okay in the real world where ";" in dirpaths is itself problematic.
10532 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10535 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10538 # Ok, now we have the path, separated by spaces, we can step through it
10539 # and add multilib dir if necessary...
10540 lt_tmp_lt_search_path_spec=
10541 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10542 # ...but if some path component already ends with the multilib dir we assume
10543 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10544 case "$lt_multi_os_dir; $lt_search_path_spec " in
10545 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10549 for lt_sys_path in $lt_search_path_spec; do
10550 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10551 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10552 elif test -n "$lt_multi_os_dir"; then
10553 test -d "$lt_sys_path" && \
10554 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10557 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10558 BEGIN {RS = " "; FS = "/|\n";} {
10561 for (lt_i = NF; lt_i > 0; lt_i--) {
10562 if ($lt_i != "" && $lt_i != ".") {
10563 if ($lt_i == "..") {
10566 if (lt_count == 0) {
10567 lt_foo = "/" $lt_i lt_foo;
10574 if (lt_foo != "") { lt_freq[lt_foo]++; }
10575 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10577 # AWK program above erroneously prepends '/' to C:/dos/paths
10580 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10581 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10583 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10585 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10587 library_names_spec=
10588 libname_spec='lib$name'
10592 postuninstall_cmds=
10596 shlibpath_overrides_runpath=unknown
10598 dynamic_linker="$host_os ld.so"
10599 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10600 need_lib_prefix=unknown
10601 hardcode_into_libs=no
10603 # when you set need_version to no, make sure it does not cause -set_version
10604 # flags to be left without arguments
10605 need_version=unknown
10611 version_type=linux # correct to gnu/linux during the next big refactor
10612 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10613 shlibpath_var=LIBPATH
10615 # AIX 3 has no versioning support, so we append a major version to the name.
10616 soname_spec='$libname$release$shared_ext$major'
10620 version_type=linux # correct to gnu/linux during the next big refactor
10623 hardcode_into_libs=yes
10624 if test ia64 = "$host_cpu"; then
10625 # AIX 5 supports IA64
10626 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10627 shlibpath_var=LD_LIBRARY_PATH
10629 # With GCC up to 2.95.x, collect2 would create an import file
10630 # for dependence libraries. The import file would start with
10631 # the line '#! .'. This would cause the generated library to
10632 # depend on '.', always an invalid library. This was fixed in
10633 # development snapshots of GCC prior to 3.0.
10635 aix4 | aix4.[01] | aix4.[01].*)
10636 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10638 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10641 can_build_shared=no
10645 # Using Import Files as archive members, it is possible to support
10646 # filename-based versioning of shared library archives on AIX. While
10647 # this would work for both with and without runtime linking, it will
10648 # prevent static linking of such archives. So we do filename-based
10649 # shared library versioning with .so extension only, which is used
10650 # when both runtime linking and shared linking is enabled.
10651 # Unfortunately, runtime linking may impact performance, so we do
10652 # not want this to be the default eventually. Also, we use the
10653 # versioned .so libs for executables only if there is the -brtl
10654 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10655 # To allow for filename-based versioning support, we need to create
10656 # libNAME.so.V as an archive file, containing:
10657 # *) an Import File, referring to the versioned filename of the
10658 # archive as well as the shared archive member, telling the
10659 # bitwidth (32 or 64) of that shared object, and providing the
10660 # list of exported symbols of that shared object, eventually
10661 # decorated with the 'weak' keyword
10662 # *) the shared object with the F_LOADONLY flag set, to really avoid
10663 # it being seen by the linker.
10664 # At run time we better use the real file rather than another symlink,
10665 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10667 case $with_aix_soname,$aix_use_runtimelinking in
10668 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10669 # soname into executable. Probably we can add versioning support to
10670 # collect2, so additional links can be useful in future.
10671 aix,yes) # traditional libtool
10672 dynamic_linker='AIX unversionable lib.so'
10673 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10674 # instead of lib<name>.a to let people know that these are not
10675 # typical AIX shared libraries.
10676 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10678 aix,no) # traditional AIX only
10679 dynamic_linker='AIX lib.a(lib.so.V)'
10680 # We preserve .a as extension for shared libraries through AIX4.2
10681 # and later when we are not doing run time linking.
10682 library_names_spec='$libname$release.a $libname.a'
10683 soname_spec='$libname$release$shared_ext$major'
10685 svr4,*) # full svr4 only
10686 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10687 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10688 # We do not specify a path in Import Files, so LIBPATH fires.
10689 shlibpath_overrides_runpath=yes
10691 *,yes) # both, prefer svr4
10692 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10693 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10694 # unpreferred sharedlib libNAME.a needs extra handling
10695 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"'
10696 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"'
10697 # We do not specify a path in Import Files, so LIBPATH fires.
10698 shlibpath_overrides_runpath=yes
10700 *,no) # both, prefer aix
10701 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10702 library_names_spec='$libname$release.a $libname.a'
10703 soname_spec='$libname$release$shared_ext$major'
10704 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10705 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)'
10706 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"'
10709 shlibpath_var=LIBPATH
10716 # Since July 2007 AmigaOS4 officially supports .so libraries.
10717 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10718 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10721 library_names_spec='$libname.ixlibrary $libname.a'
10722 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10723 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'
10729 library_names_spec='$libname$shared_ext'
10730 dynamic_linker="$host_os ld.so"
10731 shlibpath_var=LIBRARY_PATH
10735 version_type=linux # correct to gnu/linux during the next big refactor
10737 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10738 soname_spec='$libname$release$shared_ext$major'
10739 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10740 shlibpath_var=LD_LIBRARY_PATH
10741 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10742 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10743 # the default ld.so.conf also contains /usr/contrib/lib and
10744 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10745 # libtool to hard-code these into programs
10748 cygwin* | mingw* | pw32* | cegcc*)
10749 version_type=windows
10754 case $GCC,$cc_basename in
10757 library_names_spec='$libname.dll.a'
10758 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10759 postinstall_cmds='base_file=`basename \$file`~
10760 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10761 dldir=$destdir/`dirname \$dlpath`~
10762 test -d \$dldir || mkdir -p \$dldir~
10763 $install_prog $dir/$dlname \$dldir/$dlname~
10764 chmod a+x \$dldir/$dlname~
10765 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10766 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10768 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10769 dlpath=$dir/\$dldll~
10771 shlibpath_overrides_runpath=yes
10775 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10776 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10778 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10781 # MinGW DLLs use traditional 'lib' prefix
10782 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10785 # pw32 DLLs use 'pw' prefix rather than 'lib'
10786 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10789 dynamic_linker='Win32 ld.exe'
10794 libname_spec='$name'
10795 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10796 library_names_spec='$libname.dll.lib'
10800 sys_lib_search_path_spec=
10803 for lt_path in $LIB
10806 # Let DOS variable expansion print the short 8.3 style file name.
10807 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10808 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10811 # Convert to MSYS style.
10812 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10815 # Convert to unix form, then to dos form, then back to unix form
10816 # but this time dos style (no spaces!) so that the unix form looks
10817 # like /cygdrive/c/PROGRA~1:/cygdr...
10818 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10819 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10820 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10823 sys_lib_search_path_spec=$LIB
10824 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10825 # It is most probably a Windows format PATH.
10826 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10828 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10830 # FIXME: find the short name or the path components, as spaces are
10831 # common. (e.g. "Program Files" -> "PROGRA~1")
10835 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10836 postinstall_cmds='base_file=`basename \$file`~
10837 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10838 dldir=$destdir/`dirname \$dlpath`~
10839 test -d \$dldir || mkdir -p \$dldir~
10840 $install_prog $dir/$dlname \$dldir/$dlname'
10841 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10842 dlpath=$dir/\$dldll~
10844 shlibpath_overrides_runpath=yes
10845 dynamic_linker='Win32 link.exe'
10849 # Assume MSVC wrapper
10850 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10851 dynamic_linker='Win32 ld.exe'
10854 # FIXME: first we should search . and the directory the executable is in
10858 darwin* | rhapsody*)
10859 dynamic_linker="$host_os dyld"
10860 version_type=darwin
10863 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10864 soname_spec='$libname$release$major$shared_ext'
10865 shlibpath_overrides_runpath=yes
10866 shlibpath_var=DYLD_LIBRARY_PATH
10867 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10869 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10870 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10874 version_type=linux # correct to gnu/linux during the next big refactor
10877 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10878 soname_spec='$libname$release$shared_ext$major'
10879 shlibpath_var=LD_LIBRARY_PATH
10882 freebsd* | dragonfly*)
10883 # DragonFly does not have aout. When/if they implement a new
10884 # versioning mechanism, adjust this.
10885 if test -x /usr/bin/objformat; then
10886 objformat=`/usr/bin/objformat`
10889 freebsd[23].*) objformat=aout ;;
10890 *) objformat=elf ;;
10893 version_type=freebsd-$objformat
10894 case $version_type in
10896 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10897 soname_spec='$libname$release$shared_ext$major'
10902 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10906 shlibpath_var=LD_LIBRARY_PATH
10909 shlibpath_overrides_runpath=yes
10911 freebsd3.[01]* | freebsdelf3.[01]*)
10912 shlibpath_overrides_runpath=yes
10913 hardcode_into_libs=yes
10915 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10916 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10917 shlibpath_overrides_runpath=no
10918 hardcode_into_libs=yes
10920 *) # from 4.6 on, and DragonFly
10921 shlibpath_overrides_runpath=yes
10922 hardcode_into_libs=yes
10928 version_type=linux # correct to gnu/linux during the next big refactor
10931 dynamic_linker="$host_os runtime_loader"
10932 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10933 soname_spec='$libname$release$shared_ext$major'
10934 shlibpath_var=LIBRARY_PATH
10935 shlibpath_overrides_runpath=no
10936 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10937 hardcode_into_libs=yes
10940 hpux9* | hpux10* | hpux11*)
10941 # Give a soname corresponding to the major version so that dld.sl refuses to
10942 # link against other versions.
10949 hardcode_into_libs=yes
10950 dynamic_linker="$host_os dld.so"
10951 shlibpath_var=LD_LIBRARY_PATH
10952 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10953 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10954 soname_spec='$libname$release$shared_ext$major'
10955 if test 32 = "$HPUX_IA64_MODE"; then
10956 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10957 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10959 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10960 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10965 hardcode_into_libs=yes
10966 dynamic_linker="$host_os dld.sl"
10967 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10968 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10969 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10970 soname_spec='$libname$release$shared_ext$major'
10971 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10972 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10976 dynamic_linker="$host_os dld.sl"
10977 shlibpath_var=SHLIB_PATH
10978 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10979 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10980 soname_spec='$libname$release$shared_ext$major'
10983 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10984 postinstall_cmds='chmod 555 $lib'
10985 # or fails outright, so override atomically:
10986 install_override_mode=555
10990 version_type=linux # correct to gnu/linux during the next big refactor
10993 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10994 soname_spec='$libname$release$shared_ext$major'
10995 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10996 shlibpath_var=LD_LIBRARY_PATH
10997 shlibpath_overrides_runpath=no
10998 hardcode_into_libs=yes
11001 irix5* | irix6* | nonstopux*)
11003 nonstopux*) version_type=nonstopux ;;
11005 if test yes = "$lt_cv_prog_gnu_ld"; then
11006 version_type=linux # correct to gnu/linux during the next big refactor
11013 soname_spec='$libname$release$shared_ext$major'
11014 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11016 irix5* | nonstopux*)
11017 libsuff= shlibsuff=
11020 case $LD in # libtool.m4 will add one of these switches to LD
11021 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11022 libsuff= shlibsuff= libmagic=32-bit;;
11023 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11024 libsuff=32 shlibsuff=N32 libmagic=N32;;
11025 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11026 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11027 *) libsuff= shlibsuff= libmagic=never-match;;
11031 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11032 shlibpath_overrides_runpath=no
11033 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11034 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11035 hardcode_into_libs=yes
11038 # No shared lib support for Linux oldld, aout, or coff.
11039 linux*oldld* | linux*aout* | linux*coff*)
11044 version_type=none # Android doesn't support versioned libraries.
11047 library_names_spec='$libname$release$shared_ext'
11048 soname_spec='$libname$release$shared_ext'
11050 shlibpath_var=LD_LIBRARY_PATH
11051 shlibpath_overrides_runpath=yes
11053 # This implies no fast_install, which is unacceptable.
11054 # Some rework will be needed to allow for fast_install
11055 # before this can be enabled.
11056 hardcode_into_libs=yes
11058 dynamic_linker='Android linker'
11059 # Don't embed -rpath directories since the linker doesn't support them.
11060 hardcode_libdir_flag_spec='-L$libdir'
11063 # This must be glibc/ELF.
11064 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11065 version_type=linux # correct to gnu/linux during the next big refactor
11068 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11069 soname_spec='$libname$release$shared_ext$major'
11070 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11071 shlibpath_var=LD_LIBRARY_PATH
11072 shlibpath_overrides_runpath=no
11074 # Some binutils ld are patched to set DT_RUNPATH
11075 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11076 $as_echo_n "(cached) " >&6
11078 lt_cv_shlibpath_overrides_runpath=no
11079 save_LDFLAGS=$LDFLAGS
11080 save_libdir=$libdir
11081 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11082 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11084 /* end confdefs.h. */
11094 if ac_fn_c_try_link "$LINENO"; then :
11095 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11096 lt_cv_shlibpath_overrides_runpath=yes
11099 rm -f core conftest.err conftest.$ac_objext \
11100 conftest$ac_exeext conftest.$ac_ext
11101 LDFLAGS=$save_LDFLAGS
11102 libdir=$save_libdir
11106 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11108 # This implies no fast_install, which is unacceptable.
11109 # Some rework will be needed to allow for fast_install
11110 # before this can be enabled.
11111 hardcode_into_libs=yes
11113 # Ideally, we could use ldconfig to report *all* directores which are
11114 # searched for libraries, however this is still not possible. Aside from not
11115 # being certain /sbin/ldconfig is available, command
11116 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11117 # even though it is searched at run-time. Try to do the best guess by
11118 # appending ld.so.conf contents (and includes) to the search path.
11119 if test -f /etc/ld.so.conf; then
11120 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' ' '`
11121 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11124 # We used to test for /lib/ld.so.1 and disable shared libraries on
11125 # powerpc, because MkLinux only supported shared libraries with the
11126 # GNU dynamic linker. Since this was broken with cross compilers,
11127 # most powerpc-linux boxes support dynamic linking these days and
11128 # people can always --disable-shared, the test was removed, and we
11129 # assume the GNU/Linux dynamic linker is in use.
11130 dynamic_linker='GNU/Linux ld.so'
11137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11138 soname_spec='${libname}${release}${shared_ext}$major'
11139 shlibpath_var=LD_LIBRARY_PATH
11140 shlibpath_overrides_runpath=no
11141 hardcode_into_libs=yes
11142 dynamic_linker='NetBSD ld.elf_so'
11149 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11150 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11151 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11152 dynamic_linker='NetBSD (a.out) ld.so'
11154 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11155 soname_spec='$libname$release$shared_ext$major'
11156 dynamic_linker='NetBSD ld.elf_so'
11158 shlibpath_var=LD_LIBRARY_PATH
11159 shlibpath_overrides_runpath=yes
11160 hardcode_into_libs=yes
11164 version_type=linux # correct to gnu/linux during the next big refactor
11165 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11166 shlibpath_var=LD_LIBRARY_PATH
11167 shlibpath_overrides_runpath=yes
11174 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11175 soname_spec='$libname$release$shared_ext$major'
11176 shlibpath_var=LD_LIBRARY_PATH
11177 shlibpath_overrides_runpath=no
11178 hardcode_into_libs=yes
11179 dynamic_linker='ldqnx.so'
11182 openbsd* | bitrig*)
11184 sys_lib_dlsearch_path_spec=/usr/lib
11186 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11191 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11192 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11193 shlibpath_var=LD_LIBRARY_PATH
11194 shlibpath_overrides_runpath=yes
11198 libname_spec='$name'
11199 version_type=windows
11203 # OS/2 can only load a DLL with a base name of 8 characters or less.
11204 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11205 v=$($ECHO $release$versuffix | tr -d .-);
11206 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11207 $ECHO $n$v`$shared_ext'
11208 library_names_spec='${libname}_dll.$libext'
11209 dynamic_linker='OS/2 ld.exe'
11210 shlibpath_var=BEGINLIBPATH
11211 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11212 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11213 postinstall_cmds='base_file=`basename \$file`~
11214 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11215 dldir=$destdir/`dirname \$dlpath`~
11216 test -d \$dldir || mkdir -p \$dldir~
11217 $install_prog $dir/$dlname \$dldir/$dlname~
11218 chmod a+x \$dldir/$dlname~
11219 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11220 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11222 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11223 dlpath=$dir/\$dldll~
11227 osf3* | osf4* | osf5*)
11231 soname_spec='$libname$release$shared_ext$major'
11232 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11233 shlibpath_var=LD_LIBRARY_PATH
11234 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11235 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11243 version_type=linux # correct to gnu/linux during the next big refactor
11246 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11247 soname_spec='$libname$release$shared_ext$major'
11248 shlibpath_var=LD_LIBRARY_PATH
11249 shlibpath_overrides_runpath=yes
11250 hardcode_into_libs=yes
11251 # ldd complains unless libraries are executable
11252 postinstall_cmds='chmod +x $lib'
11257 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11258 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11259 shlibpath_var=LD_LIBRARY_PATH
11260 shlibpath_overrides_runpath=yes
11261 if test yes = "$with_gnu_ld"; then
11268 version_type=linux # correct to gnu/linux during the next big refactor
11269 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11270 soname_spec='$libname$release$shared_ext$major'
11271 shlibpath_var=LD_LIBRARY_PATH
11272 case $host_vendor in
11274 shlibpath_overrides_runpath=no
11276 runpath_var=LD_RUN_PATH
11284 shlibpath_overrides_runpath=no
11285 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11291 if test -d /usr/nec; then
11292 version_type=linux # correct to gnu/linux during the next big refactor
11293 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11294 soname_spec='$libname$shared_ext.$major'
11295 shlibpath_var=LD_LIBRARY_PATH
11299 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11303 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11304 soname_spec='$libname$release$shared_ext$major'
11305 shlibpath_var=LD_LIBRARY_PATH
11306 shlibpath_overrides_runpath=yes
11307 hardcode_into_libs=yes
11308 if test yes = "$with_gnu_ld"; then
11309 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11311 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11314 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11318 sys_lib_dlsearch_path_spec='/usr/lib'
11322 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11323 version_type=linux # correct to gnu/linux during the next big refactor
11326 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11327 shlibpath_var=LD_LIBRARY_PATH
11328 shlibpath_overrides_runpath=no
11329 hardcode_into_libs=yes
11333 version_type=linux # correct to gnu/linux during the next big refactor
11334 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11335 soname_spec='$libname$release$shared_ext$major'
11336 shlibpath_var=LD_LIBRARY_PATH
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11344 $as_echo "$dynamic_linker" >&6; }
11345 test no = "$dynamic_linker" && can_build_shared=no
11347 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11348 if test yes = "$GCC"; then
11349 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11352 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11353 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11356 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11357 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11360 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11361 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11363 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11364 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11366 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11367 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11466 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11468 if test -n "$hardcode_libdir_flag_spec" ||
11469 test -n "$runpath_var" ||
11470 test yes = "$hardcode_automatic"; then
11472 # We can hardcode non-existent directories.
11473 if test no != "$hardcode_direct" &&
11474 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11475 # have to relink, otherwise we might link with an installed library
11476 # when we should be linking with a yet-to-be-installed one
11477 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11478 test no != "$hardcode_minus_L"; then
11479 # Linking always hardcodes the temporary library directory.
11480 hardcode_action=relink
11482 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11483 hardcode_action=immediate
11486 # We cannot hardcode anything, or else we can only hardcode existing
11488 hardcode_action=unsupported
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11491 $as_echo "$hardcode_action" >&6; }
11493 if test relink = "$hardcode_action" ||
11494 test yes = "$inherit_rpath"; then
11495 # Fast installation is not supported
11496 enable_fast_install=no
11497 elif test yes = "$shlibpath_overrides_runpath" ||
11498 test no = "$enable_shared"; then
11499 # Fast installation is not necessary
11500 enable_fast_install=needless
11508 if test yes != "$enable_dlopen"; then
11509 enable_dlopen=unknown
11510 enable_dlopen_self=unknown
11511 enable_dlopen_self_static=unknown
11518 lt_cv_dlopen=load_add_on
11520 lt_cv_dlopen_self=yes
11523 mingw* | pw32* | cegcc*)
11524 lt_cv_dlopen=LoadLibrary
11529 lt_cv_dlopen=dlopen
11534 # if libdl is installed we need to link against it
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11536 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11537 if ${ac_cv_lib_dl_dlopen+:} false; then :
11538 $as_echo_n "(cached) " >&6
11540 ac_check_lib_save_LIBS=$LIBS
11542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11543 /* end confdefs.h. */
11545 /* Override any GCC internal prototype to avoid an error.
11546 Use char because int might match the return type of a GCC
11547 builtin and then its argument prototype would still apply. */
11560 if ac_fn_c_try_link "$LINENO"; then :
11561 ac_cv_lib_dl_dlopen=yes
11563 ac_cv_lib_dl_dlopen=no
11565 rm -f core conftest.err conftest.$ac_objext \
11566 conftest$ac_exeext conftest.$ac_ext
11567 LIBS=$ac_check_lib_save_LIBS
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11570 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11571 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11572 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11577 lt_cv_dlopen_self=yes
11584 # Don't try to run any link tests for TPF. We know it's impossible
11585 # because TPF is a cross-compiler, and we know how we open DSOs.
11586 lt_cv_dlopen=dlopen
11588 lt_cv_dlopen_self=no
11592 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11593 if test "x$ac_cv_func_shl_load" = xyes; then :
11594 lt_cv_dlopen=shl_load
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11597 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11598 if ${ac_cv_lib_dld_shl_load+:} false; then :
11599 $as_echo_n "(cached) " >&6
11601 ac_check_lib_save_LIBS=$LIBS
11603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11604 /* end confdefs.h. */
11606 /* Override any GCC internal prototype to avoid an error.
11607 Use char because int might match the return type of a GCC
11608 builtin and then its argument prototype would still apply. */
11616 return shl_load ();
11621 if ac_fn_c_try_link "$LINENO"; then :
11622 ac_cv_lib_dld_shl_load=yes
11624 ac_cv_lib_dld_shl_load=no
11626 rm -f core conftest.err conftest.$ac_objext \
11627 conftest$ac_exeext conftest.$ac_ext
11628 LIBS=$ac_check_lib_save_LIBS
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11631 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11632 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11633 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11635 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11636 if test "x$ac_cv_func_dlopen" = xyes; then :
11637 lt_cv_dlopen=dlopen
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11640 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11641 if ${ac_cv_lib_dl_dlopen+:} false; then :
11642 $as_echo_n "(cached) " >&6
11644 ac_check_lib_save_LIBS=$LIBS
11646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11647 /* end confdefs.h. */
11649 /* Override any GCC internal prototype to avoid an error.
11650 Use char because int might match the return type of a GCC
11651 builtin and then its argument prototype would still apply. */
11664 if ac_fn_c_try_link "$LINENO"; then :
11665 ac_cv_lib_dl_dlopen=yes
11667 ac_cv_lib_dl_dlopen=no
11669 rm -f core conftest.err conftest.$ac_objext \
11670 conftest$ac_exeext conftest.$ac_ext
11671 LIBS=$ac_check_lib_save_LIBS
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11674 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11675 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11676 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11679 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11680 if ${ac_cv_lib_svld_dlopen+:} false; then :
11681 $as_echo_n "(cached) " >&6
11683 ac_check_lib_save_LIBS=$LIBS
11684 LIBS="-lsvld $LIBS"
11685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11686 /* end confdefs.h. */
11688 /* Override any GCC internal prototype to avoid an error.
11689 Use char because int might match the return type of a GCC
11690 builtin and then its argument prototype would still apply. */
11703 if ac_fn_c_try_link "$LINENO"; then :
11704 ac_cv_lib_svld_dlopen=yes
11706 ac_cv_lib_svld_dlopen=no
11708 rm -f core conftest.err conftest.$ac_objext \
11709 conftest$ac_exeext conftest.$ac_ext
11710 LIBS=$ac_check_lib_save_LIBS
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11713 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11714 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11715 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11718 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11719 if ${ac_cv_lib_dld_dld_link+:} false; then :
11720 $as_echo_n "(cached) " >&6
11722 ac_check_lib_save_LIBS=$LIBS
11724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11725 /* end confdefs.h. */
11727 /* Override any GCC internal prototype to avoid an error.
11728 Use char because int might match the return type of a GCC
11729 builtin and then its argument prototype would still apply. */
11737 return dld_link ();
11742 if ac_fn_c_try_link "$LINENO"; then :
11743 ac_cv_lib_dld_dld_link=yes
11745 ac_cv_lib_dld_dld_link=no
11747 rm -f core conftest.err conftest.$ac_objext \
11748 conftest$ac_exeext conftest.$ac_ext
11749 LIBS=$ac_check_lib_save_LIBS
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11752 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11753 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11754 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11775 if test no = "$lt_cv_dlopen"; then
11781 case $lt_cv_dlopen in
11783 save_CPPFLAGS=$CPPFLAGS
11784 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11786 save_LDFLAGS=$LDFLAGS
11787 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11790 LIBS="$lt_cv_dlopen_libs $LIBS"
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11793 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11794 if ${lt_cv_dlopen_self+:} false; then :
11795 $as_echo_n "(cached) " >&6
11797 if test yes = "$cross_compiling"; then :
11798 lt_cv_dlopen_self=cross
11800 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11801 lt_status=$lt_dlunknown
11802 cat > conftest.$ac_ext <<_LT_EOF
11803 #line $LINENO "configure"
11804 #include "confdefs.h"
11813 # define LT_DLGLOBAL RTLD_GLOBAL
11816 # define LT_DLGLOBAL DL_GLOBAL
11818 # define LT_DLGLOBAL 0
11822 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11823 find out it does not work in some platform. */
11824 #ifndef LT_DLLAZY_OR_NOW
11826 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11829 # define LT_DLLAZY_OR_NOW DL_LAZY
11832 # define LT_DLLAZY_OR_NOW RTLD_NOW
11835 # define LT_DLLAZY_OR_NOW DL_NOW
11837 # define LT_DLLAZY_OR_NOW 0
11844 /* When -fvisibility=hidden is used, assume the code has been annotated
11845 correspondingly for the symbols needed. */
11846 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11847 int fnord () __attribute__((visibility("default")));
11850 int fnord () { return 42; }
11853 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11854 int status = $lt_dlunknown;
11858 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11861 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11862 else puts (dlerror ());
11864 /* dlclose (self); */
11872 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11873 (eval $ac_link) 2>&5
11875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11876 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11877 (./conftest; exit; ) >&5 2>/dev/null
11879 case x$lt_status in
11880 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11881 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11882 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11885 # compilation failed
11886 lt_cv_dlopen_self=no
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11894 $as_echo "$lt_cv_dlopen_self" >&6; }
11896 if test yes = "$lt_cv_dlopen_self"; then
11897 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11899 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11900 if ${lt_cv_dlopen_self_static+:} false; then :
11901 $as_echo_n "(cached) " >&6
11903 if test yes = "$cross_compiling"; then :
11904 lt_cv_dlopen_self_static=cross
11906 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11907 lt_status=$lt_dlunknown
11908 cat > conftest.$ac_ext <<_LT_EOF
11909 #line $LINENO "configure"
11910 #include "confdefs.h"
11919 # define LT_DLGLOBAL RTLD_GLOBAL
11922 # define LT_DLGLOBAL DL_GLOBAL
11924 # define LT_DLGLOBAL 0
11928 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11929 find out it does not work in some platform. */
11930 #ifndef LT_DLLAZY_OR_NOW
11932 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11935 # define LT_DLLAZY_OR_NOW DL_LAZY
11938 # define LT_DLLAZY_OR_NOW RTLD_NOW
11941 # define LT_DLLAZY_OR_NOW DL_NOW
11943 # define LT_DLLAZY_OR_NOW 0
11950 /* When -fvisibility=hidden is used, assume the code has been annotated
11951 correspondingly for the symbols needed. */
11952 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11953 int fnord () __attribute__((visibility("default")));
11956 int fnord () { return 42; }
11959 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11960 int status = $lt_dlunknown;
11964 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11967 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11968 else puts (dlerror ());
11970 /* dlclose (self); */
11978 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11979 (eval $ac_link) 2>&5
11981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11982 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11983 (./conftest; exit; ) >&5 2>/dev/null
11985 case x$lt_status in
11986 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11987 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11988 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11991 # compilation failed
11992 lt_cv_dlopen_self_static=no
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12000 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12003 CPPFLAGS=$save_CPPFLAGS
12004 LDFLAGS=$save_LDFLAGS
12009 case $lt_cv_dlopen_self in
12010 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12011 *) enable_dlopen_self=unknown ;;
12014 case $lt_cv_dlopen_self_static in
12015 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12016 *) enable_dlopen_self_static=unknown ;;
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12039 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12040 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12041 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12042 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12044 $as_echo "yes" >&6; }
12046 # FIXME - insert some real tests, host_os isn't really good enough
12049 if test -n "$STRIP"; then
12050 striplib="$STRIP -x"
12051 old_striplib="$STRIP -S"
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12053 $as_echo "yes" >&6; }
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12056 $as_echo "no" >&6; }
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12061 $as_echo "no" >&6; }
12077 # Report what library types will actually be built
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12079 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12081 $as_echo "$can_build_shared" >&6; }
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12084 $as_echo_n "checking whether to build shared libraries... " >&6; }
12085 test no = "$can_build_shared" && enable_shared=no
12087 # On AIX, shared libraries and static libraries use the same namespace, and
12088 # are all built from PIC.
12091 test yes = "$enable_shared" && enable_static=no
12092 if test -n "$RANLIB"; then
12093 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12094 postinstall_cmds='$RANLIB $lib'
12099 if test ia64 != "$host_cpu"; then
12100 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12101 yes,aix,yes) ;; # shared object as lib.so file only
12102 yes,svr4,*) ;; # shared object as lib.so archive member only
12103 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12109 $as_echo "$enable_shared" >&6; }
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12112 $as_echo_n "checking whether to build static libraries... " >&6; }
12113 # Make sure either enable_shared or enable_static is yes.
12114 test yes = "$enable_shared" || enable_static=yes
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12116 $as_echo "$enable_static" >&6; }
12123 ac_cpp='$CPP $CPPFLAGS'
12124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12144 ac_config_commands="$ac_config_commands libtool"
12149 # Only expand once:
12153 # Checks for programs.
12155 ac_cpp='$CPP $CPPFLAGS'
12156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12159 if test -n "$ac_tool_prefix"; then
12160 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12161 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12163 $as_echo_n "checking for $ac_word... " >&6; }
12164 if ${ac_cv_prog_CC+:} false; then :
12165 $as_echo_n "(cached) " >&6
12167 if test -n "$CC"; then
12168 ac_cv_prog_CC="$CC" # Let the user override the test.
12170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12171 for as_dir in $PATH
12174 test -z "$as_dir" && as_dir=.
12175 for ac_exec_ext in '' $ac_executable_extensions; do
12176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12177 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12188 if test -n "$CC"; then
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12190 $as_echo "$CC" >&6; }
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12193 $as_echo "no" >&6; }
12198 if test -z "$ac_cv_prog_CC"; then
12200 # Extract the first word of "gcc", so it can be a program name with args.
12201 set dummy gcc; ac_word=$2
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12203 $as_echo_n "checking for $ac_word... " >&6; }
12204 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12205 $as_echo_n "(cached) " >&6
12207 if test -n "$ac_ct_CC"; then
12208 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12211 for as_dir in $PATH
12214 test -z "$as_dir" && as_dir=.
12215 for ac_exec_ext in '' $ac_executable_extensions; do
12216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12217 ac_cv_prog_ac_ct_CC="gcc"
12218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12227 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12228 if test -n "$ac_ct_CC"; then
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12230 $as_echo "$ac_ct_CC" >&6; }
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12233 $as_echo "no" >&6; }
12236 if test "x$ac_ct_CC" = x; then
12239 case $cross_compiling:$ac_tool_warned in
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12243 ac_tool_warned=yes ;;
12248 CC="$ac_cv_prog_CC"
12251 if test -z "$CC"; then
12252 if test -n "$ac_tool_prefix"; then
12253 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12254 set dummy ${ac_tool_prefix}cc; ac_word=$2
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12256 $as_echo_n "checking for $ac_word... " >&6; }
12257 if ${ac_cv_prog_CC+:} false; then :
12258 $as_echo_n "(cached) " >&6
12260 if test -n "$CC"; then
12261 ac_cv_prog_CC="$CC" # Let the user override the test.
12263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12264 for as_dir in $PATH
12267 test -z "$as_dir" && as_dir=.
12268 for ac_exec_ext in '' $ac_executable_extensions; do
12269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12270 ac_cv_prog_CC="${ac_tool_prefix}cc"
12271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12281 if test -n "$CC"; then
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12283 $as_echo "$CC" >&6; }
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12286 $as_echo "no" >&6; }
12292 if test -z "$CC"; then
12293 # Extract the first word of "cc", so it can be a program name with args.
12294 set dummy cc; ac_word=$2
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12296 $as_echo_n "checking for $ac_word... " >&6; }
12297 if ${ac_cv_prog_CC+:} false; then :
12298 $as_echo_n "(cached) " >&6
12300 if test -n "$CC"; then
12301 ac_cv_prog_CC="$CC" # Let the user override the test.
12303 ac_prog_rejected=no
12304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12305 for as_dir in $PATH
12308 test -z "$as_dir" && as_dir=.
12309 for ac_exec_ext in '' $ac_executable_extensions; do
12310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12311 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12312 ac_prog_rejected=yes
12316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12323 if test $ac_prog_rejected = yes; then
12324 # We found a bogon in the path, so make sure we never use it.
12325 set dummy $ac_cv_prog_CC
12327 if test $@%:@ != 0; then
12328 # We chose a different compiler from the bogus one.
12329 # However, it has the same basename, so the bogon will be chosen
12330 # first if we set CC to just the basename; use the full file name.
12332 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12338 if test -n "$CC"; then
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12340 $as_echo "$CC" >&6; }
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12343 $as_echo "no" >&6; }
12348 if test -z "$CC"; then
12349 if test -n "$ac_tool_prefix"; then
12350 for ac_prog in cl.exe
12352 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12353 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12355 $as_echo_n "checking for $ac_word... " >&6; }
12356 if ${ac_cv_prog_CC+:} false; then :
12357 $as_echo_n "(cached) " >&6
12359 if test -n "$CC"; then
12360 ac_cv_prog_CC="$CC" # Let the user override the test.
12362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12363 for as_dir in $PATH
12366 test -z "$as_dir" && as_dir=.
12367 for ac_exec_ext in '' $ac_executable_extensions; do
12368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12369 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12380 if test -n "$CC"; then
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12382 $as_echo "$CC" >&6; }
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12385 $as_echo "no" >&6; }
12389 test -n "$CC" && break
12392 if test -z "$CC"; then
12394 for ac_prog in cl.exe
12396 # Extract the first word of "$ac_prog", so it can be a program name with args.
12397 set dummy $ac_prog; ac_word=$2
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12399 $as_echo_n "checking for $ac_word... " >&6; }
12400 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12401 $as_echo_n "(cached) " >&6
12403 if test -n "$ac_ct_CC"; then
12404 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12407 for as_dir in $PATH
12410 test -z "$as_dir" && as_dir=.
12411 for ac_exec_ext in '' $ac_executable_extensions; do
12412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12413 ac_cv_prog_ac_ct_CC="$ac_prog"
12414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12423 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12424 if test -n "$ac_ct_CC"; then
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12426 $as_echo "$ac_ct_CC" >&6; }
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12429 $as_echo "no" >&6; }
12433 test -n "$ac_ct_CC" && break
12436 if test "x$ac_ct_CC" = x; then
12439 case $cross_compiling:$ac_tool_warned in
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12442 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12443 ac_tool_warned=yes ;;
12452 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12454 as_fn_error $? "no acceptable C compiler found in \$PATH
12455 See \`config.log' for more details" "$LINENO" 5; }
12457 # Provide some information about the compiler.
12458 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12461 for ac_option in --version -v -V -qversion; do
12462 { { ac_try="$ac_compiler $ac_option >&5"
12463 case "(($ac_try" in
12464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12465 *) ac_try_echo=$ac_try;;
12467 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12468 $as_echo "$ac_try_echo"; } >&5
12469 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12471 if test -s conftest.err; then
12473 ... rest of stderr output deleted ...
12474 10q' conftest.err >conftest.er1
12475 cat conftest.er1 >&5
12477 rm -f conftest.er1 conftest.err
12478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12479 test $ac_status = 0; }
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12483 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12484 if ${ac_cv_c_compiler_gnu+:} false; then :
12485 $as_echo_n "(cached) " >&6
12487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12488 /* end confdefs.h. */
12501 if ac_fn_c_try_compile "$LINENO"; then :
12502 ac_compiler_gnu=yes
12506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12507 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12511 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12512 if test $ac_compiler_gnu = yes; then
12517 ac_test_CFLAGS=${CFLAGS+set}
12518 ac_save_CFLAGS=$CFLAGS
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12520 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12521 if ${ac_cv_prog_cc_g+:} false; then :
12522 $as_echo_n "(cached) " >&6
12524 ac_save_c_werror_flag=$ac_c_werror_flag
12525 ac_c_werror_flag=yes
12528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12529 /* end confdefs.h. */
12539 if ac_fn_c_try_compile "$LINENO"; then :
12540 ac_cv_prog_cc_g=yes
12543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12544 /* end confdefs.h. */
12554 if ac_fn_c_try_compile "$LINENO"; then :
12557 ac_c_werror_flag=$ac_save_c_werror_flag
12559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12560 /* end confdefs.h. */
12570 if ac_fn_c_try_compile "$LINENO"; then :
12571 ac_cv_prog_cc_g=yes
12573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12578 ac_c_werror_flag=$ac_save_c_werror_flag
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12581 $as_echo "$ac_cv_prog_cc_g" >&6; }
12582 if test "$ac_test_CFLAGS" = set; then
12583 CFLAGS=$ac_save_CFLAGS
12584 elif test $ac_cv_prog_cc_g = yes; then
12585 if test "$GCC" = yes; then
12591 if test "$GCC" = yes; then
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12598 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12599 if ${ac_cv_prog_cc_c89+:} false; then :
12600 $as_echo_n "(cached) " >&6
12602 ac_cv_prog_cc_c89=no
12604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12605 /* end confdefs.h. */
12606 #include <stdarg.h>
12609 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12610 struct buf { int x; };
12611 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12612 static char *e (p, i)
12618 static char *f (char * (*g) (char **, int), char **p, ...)
12623 s = g (p, va_arg (v,int));
12628 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12629 function prototypes and stuff, but not '\xHH' hex character constants.
12630 These don't provoke an error unfortunately, instead are silently treated
12631 as 'x'. The following induces an error, until -std is added to get
12632 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12633 array size at least. It's necessary to write '\x00'==0 to get something
12634 that's true only with -std. */
12635 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12637 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12638 inside strings and character constants. */
12640 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12642 int test (int i, double x);
12643 struct s1 {int (*f) (int a);};
12644 struct s2 {int (*f) (double a);};
12645 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12651 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12656 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12657 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12659 CC="$ac_save_CC $ac_arg"
12660 if ac_fn_c_try_compile "$LINENO"; then :
12661 ac_cv_prog_cc_c89=$ac_arg
12663 rm -f core conftest.err conftest.$ac_objext
12664 test "x$ac_cv_prog_cc_c89" != "xno" && break
12666 rm -f conftest.$ac_ext
12671 case "x$ac_cv_prog_cc_c89" in
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12674 $as_echo "none needed" >&6; } ;;
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12677 $as_echo "unsupported" >&6; } ;;
12679 CC="$CC $ac_cv_prog_cc_c89"
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12681 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12683 if test "x$ac_cv_prog_cc_c89" != xno; then :
12688 ac_cpp='$CPP $CPPFLAGS'
12689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12694 ac_cpp='$CPP $CPPFLAGS'
12695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12699 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12700 if ${am_cv_prog_cc_c_o+:} false; then :
12701 $as_echo_n "(cached) " >&6
12703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12704 /* end confdefs.h. */
12714 # Make sure it works both with $CC and with simple cc.
12715 # Following AC_PROG_CC_C_O, we do the test twice because some
12716 # compilers refuse to overwrite an existing .o file with -o,
12717 # though they will create one.
12718 am_cv_prog_cc_c_o=yes
12719 for am_i in 1 2; do
12720 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
12721 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
12723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); } \
12725 && test -f conftest2.$ac_objext; then
12728 am_cv_prog_cc_c_o=no
12732 rm -f core conftest*
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
12736 $as_echo "$am_cv_prog_cc_c_o" >&6; }
12737 if test "$am_cv_prog_cc_c_o" != yes; then
12738 # Losing compiler, so override with the script.
12739 # FIXME: It is wrong to rewrite CC.
12740 # But if we don't then we get into trouble of one sort or another.
12741 # A longer-term fix would be to have automake use am__CC in this case,
12742 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12743 CC="$am_aux_dir/compile $CC"
12746 ac_cpp='$CPP $CPPFLAGS'
12747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12752 depcc="$CC" am_compiler_list=
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12755 $as_echo_n "checking dependency style of $depcc... " >&6; }
12756 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12757 $as_echo_n "(cached) " >&6
12759 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12760 # We make a subdir and do the tests there. Otherwise we can end up
12761 # making bogus files that we don't know about and never remove. For
12762 # instance it was reported that on HP-UX the gcc test will end up
12763 # making a dummy file named 'D' -- because '-MD' means "put the output
12765 rm -rf conftest.dir
12767 # Copy depcomp to subdir because otherwise we won't find it if we're
12768 # using a relative directory.
12769 cp "$am_depcomp" conftest.dir
12771 # We will build objects and dependencies in a subdirectory because
12772 # it helps to detect inapplicable dependency modes. For instance
12773 # both Tru64's cc and ICC support -MD to output dependencies as a
12774 # side effect of compilation, but ICC will put the dependencies in
12775 # the current directory while Tru64 will put them in the object
12779 am_cv_CC_dependencies_compiler_type=none
12780 if test "$am_compiler_list" = ""; then
12781 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12783 am__universal=false
12784 case " $depcc " in #(
12785 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12788 for depmode in $am_compiler_list; do
12789 # Setup a source with many dependencies, because some compilers
12790 # like to wrap large dependency lists on column 80 (with \), and
12791 # we should not choose a depcomp mode which is confused by this.
12793 # We need to recreate these files for each test, as the compiler may
12794 # overwrite some of them when testing with obscure command lines.
12795 # This happens at least with the AIX C compiler.
12797 for i in 1 2 3 4 5 6; do
12798 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12799 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12800 # Solaris 10 /bin/sh.
12801 echo '/* dummy */' > sub/conftst$i.h
12803 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12805 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12806 # mode. It turns out that the SunPro C++ compiler does not properly
12807 # handle '-M -o', and we need to detect this. Also, some Intel
12808 # versions had trouble with output in subdirs.
12809 am__obj=sub/conftest.${OBJEXT-o}
12810 am__minus_obj="-o $am__obj"
12813 # This depmode causes a compiler race in universal mode.
12814 test "$am__universal" = false || continue
12817 # After this tag, mechanisms are not by side-effect, so they'll
12818 # only be used when explicitly requested.
12819 if test "x$enable_dependency_tracking" = xyes; then
12825 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12826 # This compiler won't grok '-c -o', but also, the minuso test has
12827 # not run yet. These depmodes are late enough in the game, and
12828 # so weak that their functioning should not be impacted.
12829 am__obj=conftest.${OBJEXT-o}
12834 if depmode=$depmode \
12835 source=sub/conftest.c object=$am__obj \
12836 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12837 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12838 >/dev/null 2>conftest.err &&
12839 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12840 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12841 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12842 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12843 # icc doesn't choke on unknown options, it will just issue warnings
12844 # or remarks (even with -Werror). So we grep stderr for any message
12845 # that says an option was ignored or not supported.
12846 # When given -MP, icc 7.0 and 7.1 complain thusly:
12847 # icc: Command line warning: ignoring option '-M'; no argument required
12848 # The diagnosis changed in icc 8.0:
12849 # icc: Command line remark: option '-MP' not supported
12850 if (grep 'ignoring option' conftest.err ||
12851 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12852 am_cv_CC_dependencies_compiler_type=$depmode
12859 rm -rf conftest.dir
12861 am_cv_CC_dependencies_compiler_type=none
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12866 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12867 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12870 test "x$enable_dependency_tracking" != xno \
12871 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12872 am__fastdepCC_TRUE=
12873 am__fastdepCC_FALSE='#'
12875 am__fastdepCC_TRUE='#'
12876 am__fastdepCC_FALSE=
12881 ac_cpp='$CXXCPP $CPPFLAGS'
12882 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12883 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12884 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12885 if test -z "$CXX"; then
12886 if test -n "$CCC"; then
12889 if test -n "$ac_tool_prefix"; then
12890 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12892 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12893 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12895 $as_echo_n "checking for $ac_word... " >&6; }
12896 if ${ac_cv_prog_CXX+:} false; then :
12897 $as_echo_n "(cached) " >&6
12899 if test -n "$CXX"; then
12900 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12903 for as_dir in $PATH
12906 test -z "$as_dir" && as_dir=.
12907 for ac_exec_ext in '' $ac_executable_extensions; do
12908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12909 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12919 CXX=$ac_cv_prog_CXX
12920 if test -n "$CXX"; then
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12922 $as_echo "$CXX" >&6; }
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12925 $as_echo "no" >&6; }
12929 test -n "$CXX" && break
12932 if test -z "$CXX"; then
12934 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12936 # Extract the first word of "$ac_prog", so it can be a program name with args.
12937 set dummy $ac_prog; ac_word=$2
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12939 $as_echo_n "checking for $ac_word... " >&6; }
12940 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12941 $as_echo_n "(cached) " >&6
12943 if test -n "$ac_ct_CXX"; then
12944 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12947 for as_dir in $PATH
12950 test -z "$as_dir" && as_dir=.
12951 for ac_exec_ext in '' $ac_executable_extensions; do
12952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12953 ac_cv_prog_ac_ct_CXX="$ac_prog"
12954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12963 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12964 if test -n "$ac_ct_CXX"; then
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12966 $as_echo "$ac_ct_CXX" >&6; }
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12969 $as_echo "no" >&6; }
12973 test -n "$ac_ct_CXX" && break
12976 if test "x$ac_ct_CXX" = x; then
12979 case $cross_compiling:$ac_tool_warned in
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12983 ac_tool_warned=yes ;;
12991 # Provide some information about the compiler.
12992 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12995 for ac_option in --version -v -V -qversion; do
12996 { { ac_try="$ac_compiler $ac_option >&5"
12997 case "(($ac_try" in
12998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12999 *) ac_try_echo=$ac_try;;
13001 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13002 $as_echo "$ac_try_echo"; } >&5
13003 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13005 if test -s conftest.err; then
13007 ... rest of stderr output deleted ...
13008 10q' conftest.err >conftest.er1
13009 cat conftest.er1 >&5
13011 rm -f conftest.er1 conftest.err
13012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13013 test $ac_status = 0; }
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
13017 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13018 if ${ac_cv_cxx_compiler_gnu+:} false; then :
13019 $as_echo_n "(cached) " >&6
13021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13022 /* end confdefs.h. */
13035 if ac_fn_cxx_try_compile "$LINENO"; then :
13036 ac_compiler_gnu=yes
13040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13041 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13045 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13046 if test $ac_compiler_gnu = yes; then
13051 ac_test_CXXFLAGS=${CXXFLAGS+set}
13052 ac_save_CXXFLAGS=$CXXFLAGS
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13054 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
13055 if ${ac_cv_prog_cxx_g+:} false; then :
13056 $as_echo_n "(cached) " >&6
13058 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13059 ac_cxx_werror_flag=yes
13060 ac_cv_prog_cxx_g=no
13062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13063 /* end confdefs.h. */
13073 if ac_fn_cxx_try_compile "$LINENO"; then :
13074 ac_cv_prog_cxx_g=yes
13077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13078 /* end confdefs.h. */
13088 if ac_fn_cxx_try_compile "$LINENO"; then :
13091 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13094 /* end confdefs.h. */
13104 if ac_fn_cxx_try_compile "$LINENO"; then :
13105 ac_cv_prog_cxx_g=yes
13107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13112 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13115 $as_echo "$ac_cv_prog_cxx_g" >&6; }
13116 if test "$ac_test_CXXFLAGS" = set; then
13117 CXXFLAGS=$ac_save_CXXFLAGS
13118 elif test $ac_cv_prog_cxx_g = yes; then
13119 if test "$GXX" = yes; then
13125 if test "$GXX" = yes; then
13132 ac_cpp='$CPP $CPPFLAGS'
13133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13137 depcc="$CXX" am_compiler_list=
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13140 $as_echo_n "checking dependency style of $depcc... " >&6; }
13141 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
13142 $as_echo_n "(cached) " >&6
13144 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13145 # We make a subdir and do the tests there. Otherwise we can end up
13146 # making bogus files that we don't know about and never remove. For
13147 # instance it was reported that on HP-UX the gcc test will end up
13148 # making a dummy file named 'D' -- because '-MD' means "put the output
13150 rm -rf conftest.dir
13152 # Copy depcomp to subdir because otherwise we won't find it if we're
13153 # using a relative directory.
13154 cp "$am_depcomp" conftest.dir
13156 # We will build objects and dependencies in a subdirectory because
13157 # it helps to detect inapplicable dependency modes. For instance
13158 # both Tru64's cc and ICC support -MD to output dependencies as a
13159 # side effect of compilation, but ICC will put the dependencies in
13160 # the current directory while Tru64 will put them in the object
13164 am_cv_CXX_dependencies_compiler_type=none
13165 if test "$am_compiler_list" = ""; then
13166 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13168 am__universal=false
13169 case " $depcc " in #(
13170 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13173 for depmode in $am_compiler_list; do
13174 # Setup a source with many dependencies, because some compilers
13175 # like to wrap large dependency lists on column 80 (with \), and
13176 # we should not choose a depcomp mode which is confused by this.
13178 # We need to recreate these files for each test, as the compiler may
13179 # overwrite some of them when testing with obscure command lines.
13180 # This happens at least with the AIX C compiler.
13182 for i in 1 2 3 4 5 6; do
13183 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13184 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13185 # Solaris 10 /bin/sh.
13186 echo '/* dummy */' > sub/conftst$i.h
13188 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13190 # We check with '-c' and '-o' for the sake of the "dashmstdout"
13191 # mode. It turns out that the SunPro C++ compiler does not properly
13192 # handle '-M -o', and we need to detect this. Also, some Intel
13193 # versions had trouble with output in subdirs.
13194 am__obj=sub/conftest.${OBJEXT-o}
13195 am__minus_obj="-o $am__obj"
13198 # This depmode causes a compiler race in universal mode.
13199 test "$am__universal" = false || continue
13202 # After this tag, mechanisms are not by side-effect, so they'll
13203 # only be used when explicitly requested.
13204 if test "x$enable_dependency_tracking" = xyes; then
13210 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13211 # This compiler won't grok '-c -o', but also, the minuso test has
13212 # not run yet. These depmodes are late enough in the game, and
13213 # so weak that their functioning should not be impacted.
13214 am__obj=conftest.${OBJEXT-o}
13219 if depmode=$depmode \
13220 source=sub/conftest.c object=$am__obj \
13221 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13222 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13223 >/dev/null 2>conftest.err &&
13224 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13225 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13226 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13227 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13228 # icc doesn't choke on unknown options, it will just issue warnings
13229 # or remarks (even with -Werror). So we grep stderr for any message
13230 # that says an option was ignored or not supported.
13231 # When given -MP, icc 7.0 and 7.1 complain thusly:
13232 # icc: Command line warning: ignoring option '-M'; no argument required
13233 # The diagnosis changed in icc 8.0:
13234 # icc: Command line remark: option '-MP' not supported
13235 if (grep 'ignoring option' conftest.err ||
13236 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13237 am_cv_CXX_dependencies_compiler_type=$depmode
13244 rm -rf conftest.dir
13246 am_cv_CXX_dependencies_compiler_type=none
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
13251 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13252 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13255 test "x$enable_dependency_tracking" != xno \
13256 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13257 am__fastdepCXX_TRUE=
13258 am__fastdepCXX_FALSE='#'
13260 am__fastdepCXX_TRUE='#'
13261 am__fastdepCXX_FALSE=
13267 func_stripname_cnf ()
13270 .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;;
13271 *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;;
13273 } # func_stripname_cnf
13275 if test -n "$CXX" && ( test no != "$CXX" &&
13276 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13277 (test g++ != "$CXX"))); then
13279 ac_cpp='$CXXCPP $CPPFLAGS'
13280 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13281 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13282 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13284 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13285 if test -z "$CXXCPP"; then
13286 if ${ac_cv_prog_CXXCPP+:} false; then :
13287 $as_echo_n "(cached) " >&6
13289 # Double quotes because CXXCPP needs to be expanded
13290 for CXXCPP in "$CXX -E" "/lib/cpp"
13292 ac_preproc_ok=false
13293 for ac_cxx_preproc_warn_flag in '' yes
13295 # Use a header file that comes with gcc, so configuring glibc
13296 # with a fresh cross-compiler works.
13297 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13298 # <limits.h> exists even on freestanding compilers.
13299 # On the NeXT, cc -E runs the code through the compiler's parser,
13300 # not just through cpp. "Syntax error" is here to catch this case.
13301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13302 /* end confdefs.h. */
13304 @%:@ include <limits.h>
13306 @%:@ include <assert.h>
13310 if ac_fn_cxx_try_cpp "$LINENO"; then :
13313 # Broken: fails on valid input.
13316 rm -f conftest.err conftest.i conftest.$ac_ext
13318 # OK, works on sane cases. Now check whether nonexistent headers
13319 # can be detected and how.
13320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13321 /* end confdefs.h. */
13322 @%:@include <ac_nonexistent.h>
13324 if ac_fn_cxx_try_cpp "$LINENO"; then :
13325 # Broken: success on invalid input.
13328 # Passes both tests.
13332 rm -f conftest.err conftest.i conftest.$ac_ext
13335 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13336 rm -f conftest.i conftest.err conftest.$ac_ext
13337 if $ac_preproc_ok; then :
13342 ac_cv_prog_CXXCPP=$CXXCPP
13345 CXXCPP=$ac_cv_prog_CXXCPP
13347 ac_cv_prog_CXXCPP=$CXXCPP
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13350 $as_echo "$CXXCPP" >&6; }
13351 ac_preproc_ok=false
13352 for ac_cxx_preproc_warn_flag in '' yes
13354 # Use a header file that comes with gcc, so configuring glibc
13355 # with a fresh cross-compiler works.
13356 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13357 # <limits.h> exists even on freestanding compilers.
13358 # On the NeXT, cc -E runs the code through the compiler's parser,
13359 # not just through cpp. "Syntax error" is here to catch this case.
13360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13361 /* end confdefs.h. */
13363 @%:@ include <limits.h>
13365 @%:@ include <assert.h>
13369 if ac_fn_cxx_try_cpp "$LINENO"; then :
13372 # Broken: fails on valid input.
13375 rm -f conftest.err conftest.i conftest.$ac_ext
13377 # OK, works on sane cases. Now check whether nonexistent headers
13378 # can be detected and how.
13379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13380 /* end confdefs.h. */
13381 @%:@include <ac_nonexistent.h>
13383 if ac_fn_cxx_try_cpp "$LINENO"; then :
13384 # Broken: success on invalid input.
13387 # Passes both tests.
13391 rm -f conftest.err conftest.i conftest.$ac_ext
13394 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13395 rm -f conftest.i conftest.err conftest.$ac_ext
13396 if $ac_preproc_ok; then :
13399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13401 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13402 See \`config.log' for more details" "$LINENO" 5; }
13406 ac_cpp='$CPP $CPPFLAGS'
13407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13412 _lt_caught_CXX_error=yes
13416 ac_cpp='$CXXCPP $CPPFLAGS'
13417 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13418 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13419 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13421 archive_cmds_need_lc_CXX=no
13422 allow_undefined_flag_CXX=
13423 always_export_symbols_CXX=no
13424 archive_expsym_cmds_CXX=
13425 compiler_needs_object_CXX=no
13426 export_dynamic_flag_spec_CXX=
13427 hardcode_direct_CXX=no
13428 hardcode_direct_absolute_CXX=no
13429 hardcode_libdir_flag_spec_CXX=
13430 hardcode_libdir_separator_CXX=
13431 hardcode_minus_L_CXX=no
13432 hardcode_shlibpath_var_CXX=unsupported
13433 hardcode_automatic_CXX=no
13434 inherit_rpath_CXX=no
13436 module_expsym_cmds_CXX=
13437 link_all_deplibs_CXX=unknown
13438 old_archive_cmds_CXX=$old_archive_cmds
13439 reload_flag_CXX=$reload_flag
13440 reload_cmds_CXX=$reload_cmds
13441 no_undefined_flag_CXX=
13442 whole_archive_flag_spec_CXX=
13443 enable_shared_with_static_runtimes_CXX=no
13445 # Source file extension for C++ test sources.
13448 # Object file extension for compiled C++ test sources.
13452 # No sense in running all these tests if we already determined that
13453 # the CXX compiler isn't working. Some variables (like enable_shared)
13454 # are currently assumed to apply to all compilers on this platform,
13455 # and will be corrupted by setting them based on a non-working compiler.
13456 if test yes != "$_lt_caught_CXX_error"; then
13457 # Code to be used in simple compile tests
13458 lt_simple_compile_test_code="int some_variable = 0;"
13460 # Code to be used in simple link tests
13461 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13463 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13470 # If no C compiler was specified, use CC.
13473 # If no C compiler flags were specified, use CFLAGS.
13474 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13476 # Allow CC to be a program name with arguments.
13480 # save warnings/boilerplate of simple test code
13481 ac_outfile=conftest.$ac_objext
13482 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13483 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13484 _lt_compiler_boilerplate=`cat conftest.err`
13487 ac_outfile=conftest.$ac_objext
13488 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13489 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13490 _lt_linker_boilerplate=`cat conftest.err`
13494 # Allow CC to be a program name with arguments.
13496 lt_save_CFLAGS=$CFLAGS
13500 lt_save_with_gnu_ld=$with_gnu_ld
13501 lt_save_path_LD=$lt_cv_path_LD
13502 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13503 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13505 $as_unset lt_cv_prog_gnu_ld
13507 if test -n "${lt_cv_path_LDCXX+set}"; then
13508 lt_cv_path_LD=$lt_cv_path_LDCXX
13510 $as_unset lt_cv_path_LD
13512 test -z "${LDCXX+set}" || LD=$LDCXX
13517 func_cc_basename $compiler
13518 cc_basename=$func_cc_basename_result
13521 if test -n "$compiler"; then
13522 # We don't want -fno-exception when compiling C++ code, so set the
13523 # no_builtin_flag separately
13524 if test yes = "$GXX"; then
13525 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13527 lt_prog_compiler_no_builtin_flag_CXX=
13530 if test yes = "$GXX"; then
13531 # Set up default GNU C++ configuration
13535 @%:@ Check whether --with-gnu-ld was given.
13536 if test "${with_gnu_ld+set}" = set; then :
13537 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13543 if test yes = "$GCC"; then
13544 # Check if gcc -print-prog-name=ld gives a path.
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13546 $as_echo_n "checking for ld used by $CC... " >&6; }
13549 # gcc leaves a trailing carriage return, which upsets mingw
13550 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13552 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13555 # Accept absolute paths.
13557 re_direlt='/[^/][^/]*/\.\./'
13558 # Canonicalize the pathname of ld
13559 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13560 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13561 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13563 test -z "$LD" && LD=$ac_prog
13566 # If it fails, then pretend we aren't using GCC.
13570 # If it is relative, then search for the first ld in PATH.
13571 with_gnu_ld=unknown
13574 elif test yes = "$with_gnu_ld"; then
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13576 $as_echo_n "checking for GNU ld... " >&6; }
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13579 $as_echo_n "checking for non-GNU ld... " >&6; }
13581 if ${lt_cv_path_LD+:} false; then :
13582 $as_echo_n "(cached) " >&6
13584 if test -z "$LD"; then
13585 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13586 for ac_dir in $PATH; do
13588 test -z "$ac_dir" && ac_dir=.
13589 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13590 lt_cv_path_LD=$ac_dir/$ac_prog
13591 # Check to see if the program is GNU ld. I'd rather use --version,
13592 # but apparently some variants of GNU ld only accept -v.
13593 # Break only if it was the GNU/non-GNU ld that we prefer.
13594 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13595 *GNU* | *'with BFD'*)
13596 test no != "$with_gnu_ld" && break
13599 test yes != "$with_gnu_ld" && break
13606 lt_cv_path_LD=$LD # Let the user override the test with a path.
13611 if test -n "$LD"; then
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13613 $as_echo "$LD" >&6; }
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13616 $as_echo "no" >&6; }
13618 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13620 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13621 if ${lt_cv_prog_gnu_ld+:} false; then :
13622 $as_echo_n "(cached) " >&6
13624 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13625 case `$LD -v 2>&1 </dev/null` in
13626 *GNU* | *'with BFD'*)
13627 lt_cv_prog_gnu_ld=yes
13630 lt_cv_prog_gnu_ld=no
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13635 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13636 with_gnu_ld=$lt_cv_prog_gnu_ld
13644 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13645 # archiving commands below assume that GNU ld is being used.
13646 if test yes = "$with_gnu_ld"; then
13647 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13648 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'
13650 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13651 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13653 # If archive_cmds runs LD, not CC, wlarc should be empty
13654 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13655 # investigate it a little bit more. (MM)
13658 # ancient GNU ld didn't support --whole-archive et. al.
13659 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13660 $GREP 'no-whole-archive' > /dev/null; then
13661 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13663 whole_archive_flag_spec_CXX=
13669 # A generic and very simple default shared library creation
13670 # command for GNU C++ for the case where it uses the native
13671 # linker, instead of GNU ld. If possible, this setting should
13672 # overridden to take advantage of the native linker features on
13673 # the platform it is being used on.
13674 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13677 # Commands to make compiler produce verbose output that lists
13678 # what "hidden" libraries, object files and flags are used when
13679 # linking a shared library.
13680 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13688 # PORTME: fill in a description of your system's C++ link characteristics
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13690 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13694 # FIXME: insert proper C++ library support
13698 if test ia64 = "$host_cpu"; then
13699 # On IA64, the linker does run time linking by default, so we don't
13700 # have to do anything special.
13701 aix_use_runtimelinking=no
13702 exp_sym_flag='-Bexport'
13705 aix_use_runtimelinking=no
13707 # Test if we are trying to use run time linking or normal
13708 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13709 # have runtime linking enabled, and use it for executables.
13710 # For shared libraries, we enable/disable runtime linking
13711 # depending on the kind of the shared library created -
13712 # when "with_aix_soname,aix_use_runtimelinking" is:
13713 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13714 # "aix,yes" lib.so shared, rtl:yes, for executables
13715 # lib.a static archive
13716 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13717 # lib.a(lib.so.V) shared, rtl:no, for executables
13718 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13719 # lib.a(lib.so.V) shared, rtl:no
13720 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13721 # lib.a static archive
13722 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13723 for ld_flag in $LDFLAGS; do
13726 aix_use_runtimelinking=yes
13731 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13732 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13733 # so we don't have lib.a shared libs to link our executables.
13734 # We have to force runtime linking in this case.
13735 aix_use_runtimelinking=yes
13736 LDFLAGS="$LDFLAGS -Wl,-brtl"
13741 exp_sym_flag='-bexport'
13742 no_entry_flag='-bnoentry'
13745 # When large executables or shared objects are built, AIX ld can
13746 # have problems creating the table of contents. If linking a library
13747 # or program results in "error TOC overflow" add -mminimal-toc to
13748 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13749 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13751 archive_cmds_CXX=''
13752 hardcode_direct_CXX=yes
13753 hardcode_direct_absolute_CXX=yes
13754 hardcode_libdir_separator_CXX=':'
13755 link_all_deplibs_CXX=yes
13756 file_list_spec_CXX='$wl-f,'
13757 case $with_aix_soname,$aix_use_runtimelinking in
13758 aix,*) ;; # no import file
13759 svr4,* | *,yes) # use import file
13760 # The Import File defines what to hardcode.
13761 hardcode_direct_CXX=no
13762 hardcode_direct_absolute_CXX=no
13766 if test yes = "$GXX"; then
13767 case $host_os in aix4.[012]|aix4.[012].*)
13768 # We only want to do this on AIX 4.2 and lower, the check
13769 # below for broken collect2 doesn't work under 4.3+
13770 collect2name=`$CC -print-prog-name=collect2`
13771 if test -f "$collect2name" &&
13772 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13774 # We have reworked collect2
13777 # We have old collect2
13778 hardcode_direct_CXX=unsupported
13779 # It fails to find uninstalled libraries when the uninstalled
13780 # path is not listed in the libpath. Setting hardcode_minus_L
13781 # to unsupported forces relinking
13782 hardcode_minus_L_CXX=yes
13783 hardcode_libdir_flag_spec_CXX='-L$libdir'
13784 hardcode_libdir_separator_CXX=
13787 shared_flag='-shared'
13788 if test yes = "$aix_use_runtimelinking"; then
13789 shared_flag=$shared_flag' $wl-G'
13791 # Need to ensure runtime linking is disabled for the traditional
13792 # shared library, or the linker may eventually find shared libraries
13793 # /with/ Import File - we do not want to mix them.
13794 shared_flag_aix='-shared'
13795 shared_flag_svr4='-shared $wl-G'
13798 if test ia64 = "$host_cpu"; then
13799 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13800 # chokes on -Wl,-G. The following line is correct:
13803 if test yes = "$aix_use_runtimelinking"; then
13804 shared_flag='$wl-G'
13806 shared_flag='$wl-bM:SRE'
13808 shared_flag_aix='$wl-bM:SRE'
13809 shared_flag_svr4='$wl-G'
13813 export_dynamic_flag_spec_CXX='$wl-bexpall'
13814 # It seems that -bexpall does not export symbols beginning with
13815 # underscore (_), so it is better to generate a list of symbols to
13817 always_export_symbols_CXX=yes
13818 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13819 # Warning - without using the other runtime loading flags (-brtl),
13820 # -berok will link without error, but may produce a broken library.
13821 # The "-G" linker flag allows undefined symbols.
13822 no_undefined_flag_CXX='-bernotok'
13823 # Determine the default libpath from the value encoded in an empty
13825 if test set = "${lt_cv_aix_libpath+set}"; then
13826 aix_libpath=$lt_cv_aix_libpath
13828 if ${lt_cv_aix_libpath__CXX+:} false; then :
13829 $as_echo_n "(cached) " >&6
13831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13832 /* end confdefs.h. */
13842 if ac_fn_cxx_try_link "$LINENO"; then :
13844 lt_aix_libpath_sed='
13845 /Import File Strings/,/^$/ {
13847 s/^0 *\([^ ]*\) *$/\1/
13851 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13852 # Check for a 64-bit object if we didn't find anything.
13853 if test -z "$lt_cv_aix_libpath__CXX"; then
13854 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13857 rm -f core conftest.err conftest.$ac_objext \
13858 conftest$ac_exeext conftest.$ac_ext
13859 if test -z "$lt_cv_aix_libpath__CXX"; then
13860 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13865 aix_libpath=$lt_cv_aix_libpath__CXX
13868 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13870 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
13872 if test ia64 = "$host_cpu"; then
13873 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13874 allow_undefined_flag_CXX="-z nodefs"
13875 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"
13877 # Determine the default libpath from the value encoded in an
13878 # empty executable.
13879 if test set = "${lt_cv_aix_libpath+set}"; then
13880 aix_libpath=$lt_cv_aix_libpath
13882 if ${lt_cv_aix_libpath__CXX+:} false; then :
13883 $as_echo_n "(cached) " >&6
13885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13886 /* end confdefs.h. */
13896 if ac_fn_cxx_try_link "$LINENO"; then :
13898 lt_aix_libpath_sed='
13899 /Import File Strings/,/^$/ {
13901 s/^0 *\([^ ]*\) *$/\1/
13905 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13906 # Check for a 64-bit object if we didn't find anything.
13907 if test -z "$lt_cv_aix_libpath__CXX"; then
13908 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13911 rm -f core conftest.err conftest.$ac_objext \
13912 conftest$ac_exeext conftest.$ac_ext
13913 if test -z "$lt_cv_aix_libpath__CXX"; then
13914 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13919 aix_libpath=$lt_cv_aix_libpath__CXX
13922 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13923 # Warning - without using the other run time loading flags,
13924 # -berok will link without error, but may produce a broken library.
13925 no_undefined_flag_CXX=' $wl-bernotok'
13926 allow_undefined_flag_CXX=' $wl-berok'
13927 if test yes = "$with_gnu_ld"; then
13928 # We only use this code for GNU lds that support --whole-archive.
13929 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13931 # Exported symbols can be pulled into shared objects from archives
13932 whole_archive_flag_spec_CXX='$convenience'
13934 archive_cmds_need_lc_CXX=yes
13935 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13936 # -brtl affects multiple linker settings, -berok does not and is overridden later
13937 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13938 if test svr4 != "$with_aix_soname"; then
13939 # This is similar to how AIX traditionally builds its shared
13940 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13941 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'
13943 if test aix != "$with_aix_soname"; then
13944 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'
13946 # used by -dlpreopen to get the symbols
13947 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13949 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
13955 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13956 allow_undefined_flag_CXX=unsupported
13957 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13958 # support --undefined. This deserves some investigation. FIXME
13959 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13966 case $cc_basename in
13968 # FIXME: insert proper C++ library support
13974 cygwin* | mingw* | pw32* | cegcc*)
13975 case $GXX,$cc_basename in
13978 # hardcode_libdir_flag_spec is actually meaningless, as there is
13979 # no search path for DLLs.
13980 hardcode_libdir_flag_spec_CXX=' '
13981 allow_undefined_flag_CXX=unsupported
13982 always_export_symbols_CXX=yes
13983 file_list_spec_CXX='@'
13984 # Tell ltmain to make .lib files, not .a files.
13986 # Tell ltmain to make .dll files, not .so files.
13988 # FIXME: Setting linknames here is a bad hack.
13989 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13990 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13991 cp "$export_symbols" "$output_objdir/$soname.def";
13992 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13994 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13996 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13998 # The linker will not automatically build a static lib if we build a DLL.
13999 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14000 enable_shared_with_static_runtimes_CXX=yes
14002 old_postinstall_cmds_CXX='chmod 644 $oldlib'
14003 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14004 lt_tool_outputfile="@TOOL_OUTPUT@"~
14005 case $lt_outputfile in
14008 lt_outputfile=$lt_outputfile.exe
14009 lt_tool_outputfile=$lt_tool_outputfile.exe
14012 func_to_tool_file "$lt_outputfile"~
14013 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14014 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14015 $RM "$lt_outputfile.manifest";
14020 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14021 # as there is no search path for DLLs.
14022 hardcode_libdir_flag_spec_CXX='-L$libdir'
14023 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14024 allow_undefined_flag_CXX=unsupported
14025 always_export_symbols_CXX=no
14026 enable_shared_with_static_runtimes_CXX=yes
14028 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14029 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'
14030 # If the export-symbols file already is a .def file, use it as
14031 # is; otherwise, prepend EXPORTS...
14032 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14033 cp $export_symbols $output_objdir/$soname.def;
14035 echo EXPORTS > $output_objdir/$soname.def;
14036 cat $export_symbols >> $output_objdir/$soname.def;
14038 $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'
14045 darwin* | rhapsody*)
14048 archive_cmds_need_lc_CXX=no
14049 hardcode_direct_CXX=no
14050 hardcode_automatic_CXX=yes
14051 hardcode_shlibpath_var_CXX=unsupported
14052 if test yes = "$lt_cv_ld_force_load"; then
14053 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\"`'
14056 whole_archive_flag_spec_CXX=''
14058 link_all_deplibs_CXX=yes
14059 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14060 case $cc_basename in
14061 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14062 *) _lt_dar_can_shared=$GCC ;;
14064 if test yes = "$_lt_dar_can_shared"; then
14065 output_verbose_link_cmd=func_echo_all
14066 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"
14067 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14068 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"
14069 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"
14070 if test yes != "$lt_cv_apple_cc_single_mod"; then
14071 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"
14072 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"
14082 hardcode_libdir_flag_spec_CXX='-L$libdir'
14083 hardcode_minus_L_CXX=yes
14084 allow_undefined_flag_CXX=unsupported
14086 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14087 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14088 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14089 $ECHO EXPORTS >> $output_objdir/$libname.def~
14090 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14091 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14092 emximp -o $lib $output_objdir/$libname.def'
14093 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14094 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14095 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14096 $ECHO EXPORTS >> $output_objdir/$libname.def~
14097 prefix_cmds="$SED"~
14098 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14099 prefix_cmds="$prefix_cmds -e 1d";
14101 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14102 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14103 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14104 emximp -o $lib $output_objdir/$libname.def'
14105 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14106 enable_shared_with_static_runtimes_CXX=yes
14110 case $cc_basename in
14112 # FIXME: insert proper C++ library support
14116 # Green Hills C++ Compiler
14117 # FIXME: insert proper C++ library support
14121 # FIXME: insert proper C++ library support
14128 # C++ shared libraries reported to be fairly broken before
14134 archive_cmds_need_lc_CXX=no
14137 freebsd* | dragonfly*)
14138 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14144 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14145 link_all_deplibs_CXX=yes
14149 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14150 hardcode_libdir_separator_CXX=:
14151 export_dynamic_flag_spec_CXX='$wl-E'
14152 hardcode_direct_CXX=yes
14153 hardcode_minus_L_CXX=yes # Not in the search PATH,
14154 # but as the default
14155 # location of the library.
14157 case $cc_basename in
14159 # FIXME: insert proper C++ library support
14163 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 $output_objdir/$soname $lib'
14164 # Commands to make compiler produce verbose output that lists
14165 # what "hidden" libraries, object files and flags are used when
14166 # linking a shared library.
14168 # There doesn't appear to be a way to prevent this compiler from
14169 # explicitly linking system object files so we need to strip them
14170 # from the output so that they don't get included in the library
14172 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"'
14175 if test yes = "$GXX"; then
14176 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 $output_objdir/$soname $lib'
14178 # FIXME: insert proper C++ library support
14186 if test no = "$with_gnu_ld"; then
14187 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14188 hardcode_libdir_separator_CXX=:
14194 export_dynamic_flag_spec_CXX='$wl-E'
14200 hardcode_direct_CXX=no
14201 hardcode_shlibpath_var_CXX=no
14204 hardcode_direct_CXX=yes
14205 hardcode_direct_absolute_CXX=yes
14206 hardcode_minus_L_CXX=yes # Not in the search PATH,
14207 # but as the default
14208 # location of the library.
14212 case $cc_basename in
14214 # FIXME: insert proper C++ library support
14220 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14223 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14226 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14229 # Commands to make compiler produce verbose output that lists
14230 # what "hidden" libraries, object files and flags are used when
14231 # linking a shared library.
14233 # There doesn't appear to be a way to prevent this compiler from
14234 # explicitly linking system object files so we need to strip them
14235 # from the output so that they don't get included in the library
14237 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"'
14240 if test yes = "$GXX"; then
14241 if test no = "$with_gnu_ld"; then
14244 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14247 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14250 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'
14255 # FIXME: insert proper C++ library support
14263 hardcode_direct_CXX=no
14264 hardcode_shlibpath_var_CXX=no
14265 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14266 export_dynamic_flag_spec_CXX='$wl-E'
14267 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14268 # Instead, shared libraries are loaded at an image base (0x10000000 by
14269 # default) and relocated if they conflict, which is a slow very memory
14270 # consuming and fragmenting process. To avoid this, we pick a random,
14271 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14272 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14273 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'
14274 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'
14277 case $cc_basename in
14280 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'
14282 # Archives containing C++ object files must be created using
14283 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14284 # necessary to make sure instantiated templates are included
14286 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14289 if test yes = "$GXX"; then
14290 if test no = "$with_gnu_ld"; then
14291 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'
14293 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'
14296 link_all_deplibs_CXX=yes
14299 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14300 hardcode_libdir_separator_CXX=:
14301 inherit_rpath_CXX=yes
14304 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14305 case $cc_basename in
14307 # Kuck and Associates, Inc. (KAI) C++ Compiler
14309 # KCC will only create a shared library if the output file
14310 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14311 # to its proper name (with version) after linking.
14312 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14313 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
14314 # Commands to make compiler produce verbose output that lists
14315 # what "hidden" libraries, object files and flags are used when
14316 # linking a shared library.
14318 # There doesn't appear to be a way to prevent this compiler from
14319 # explicitly linking system object files so we need to strip them
14320 # from the output so that they don't get included in the library
14322 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"'
14324 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14325 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14327 # Archives containing C++ object files must be created using
14328 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14329 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14334 # version 8.0 and above of icpc choke on multiply defined symbols
14335 # if we add $predep_objects and $postdep_objects, however 7.1 and
14336 # earlier do not add the objects themselves.
14337 case `$CC -V 2>&1` in
14339 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14340 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'
14342 *) # Version 8.0 or newer
14345 ia64*) tmp_idyn=' -i_dynamic';;
14347 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14348 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'
14351 archive_cmds_need_lc_CXX=no
14352 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14353 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14354 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14357 # Portland Group C++ compiler
14359 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14360 prelink_cmds_CXX='tpldir=Template.dir~
14362 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14363 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14364 old_archive_cmds_CXX='tpldir=Template.dir~
14366 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14367 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14369 archive_cmds_CXX='tpldir=Template.dir~
14371 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14372 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14373 archive_expsym_cmds_CXX='tpldir=Template.dir~
14375 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14376 $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'
14378 *) # Version 6 and above use weak symbols
14379 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14380 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'
14384 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14385 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14386 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'
14390 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14391 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'
14393 runpath_var=LD_RUN_PATH
14394 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14395 hardcode_libdir_separator_CXX=:
14397 # Commands to make compiler produce verbose output that lists
14398 # what "hidden" libraries, object files and flags are used when
14399 # linking a shared library.
14401 # There doesn't appear to be a way to prevent this compiler from
14402 # explicitly linking system object files so we need to strip them
14403 # from the output so that they don't get included in the library
14405 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'
14407 xl* | mpixl* | bgxl*)
14408 # IBM XL 8.0 on PPC, with GNU ld
14409 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14410 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14411 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14412 if test yes = "$supports_anon_versioning"; then
14413 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14414 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14415 echo "local: *; };" >> $output_objdir/$libname.ver~
14416 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14420 case `$CC -V 2>&1 | sed 5q` in
14423 no_undefined_flag_CXX=' -zdefs'
14424 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14425 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'
14426 hardcode_libdir_flag_spec_CXX='-R$libdir'
14427 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'
14428 compiler_needs_object_CXX=yes
14430 # Not sure whether something based on
14431 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14433 output_verbose_link_cmd='func_echo_all'
14435 # Archives containing C++ object files must be created using
14436 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14437 # necessary to make sure instantiated templates are included
14439 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14447 # FIXME: insert proper C++ library support
14452 # FIXME: insert proper C++ library support
14457 case $cc_basename in
14459 # FIXME: insert proper C++ library support
14463 # FIXME: insert proper C++ library support
14470 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14471 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14473 hardcode_libdir_flag_spec_CXX='-R$libdir'
14474 hardcode_direct_CXX=yes
14475 hardcode_shlibpath_var_CXX=no
14477 # Workaround some broken pre-1.5 toolchains
14478 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14485 openbsd* | bitrig*)
14486 if test -f /usr/libexec/ld.so; then
14487 hardcode_direct_CXX=yes
14488 hardcode_shlibpath_var_CXX=no
14489 hardcode_direct_absolute_CXX=yes
14490 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14491 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14492 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14493 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14494 export_dynamic_flag_spec_CXX='$wl-E'
14495 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14497 output_verbose_link_cmd=func_echo_all
14503 osf3* | osf4* | osf5*)
14504 case $cc_basename in
14506 # Kuck and Associates, Inc. (KAI) C++ Compiler
14508 # KCC will only create a shared library if the output file
14509 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14510 # to its proper name (with version) after linking.
14511 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14513 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14514 hardcode_libdir_separator_CXX=:
14516 # Archives containing C++ object files must be created using
14517 # the KAI C++ compiler.
14519 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14520 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14524 # Rational C++ 2.4.1
14525 # FIXME: insert proper C++ library support
14531 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14532 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'
14533 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14536 allow_undefined_flag_CXX=' -expect_unresolved \*'
14537 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'
14538 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14539 echo "-hidden">> $lib.exp~
14540 $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~
14542 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14546 hardcode_libdir_separator_CXX=:
14548 # Commands to make compiler produce verbose output that lists
14549 # what "hidden" libraries, object files and flags are used when
14550 # linking a shared library.
14552 # There doesn't appear to be a way to prevent this compiler from
14553 # explicitly linking system object files so we need to strip them
14554 # from the output so that they don't get included in the library
14556 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"'
14559 if test yes,no = "$GXX,$with_gnu_ld"; then
14560 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14563 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'
14566 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'
14570 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14571 hardcode_libdir_separator_CXX=:
14573 # Commands to make compiler produce verbose output that lists
14574 # what "hidden" libraries, object files and flags are used when
14575 # linking a shared library.
14576 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14579 # FIXME: insert proper C++ library support
14587 # FIXME: insert proper C++ library support
14592 case $cc_basename in
14595 # FIXME: insert proper C++ library support
14600 # FIXME: insert proper C++ library support
14604 # FIXME: insert proper C++ library support
14611 case $cc_basename in
14613 # Sun C++ 4.2, 5.x and Centerline C++
14614 archive_cmds_need_lc_CXX=yes
14615 no_undefined_flag_CXX=' -zdefs'
14616 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14617 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14618 $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'
14620 hardcode_libdir_flag_spec_CXX='-R$libdir'
14621 hardcode_shlibpath_var_CXX=no
14623 solaris2.[0-5] | solaris2.[0-5].*) ;;
14625 # The compiler driver will combine and reorder linker options,
14626 # but understands '-z linker_flag'.
14627 # Supported since Solaris 2.6 (maybe 2.5.1?)
14628 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14631 link_all_deplibs_CXX=yes
14633 output_verbose_link_cmd='func_echo_all'
14635 # Archives containing C++ object files must be created using
14636 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14637 # necessary to make sure instantiated templates are included
14639 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14642 # Green Hills C++ Compiler
14643 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14645 # The C++ compiler must be used to create the archive.
14646 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14649 # GNU C++ compiler with Solaris linker
14650 if test yes,no = "$GXX,$with_gnu_ld"; then
14651 no_undefined_flag_CXX=' $wl-z ${wl}defs'
14652 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14653 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14654 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14655 $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'
14657 # Commands to make compiler produce verbose output that lists
14658 # what "hidden" libraries, object files and flags are used when
14659 # linking a shared library.
14660 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14662 # g++ 2.7 appears to require '-G' NOT '-shared' on this
14664 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14665 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14666 $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'
14668 # Commands to make compiler produce verbose output that lists
14669 # what "hidden" libraries, object files and flags are used when
14670 # linking a shared library.
14671 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14674 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14676 solaris2.[0-5] | solaris2.[0-5].*) ;;
14678 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14686 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14687 no_undefined_flag_CXX='$wl-z,text'
14688 archive_cmds_need_lc_CXX=no
14689 hardcode_shlibpath_var_CXX=no
14690 runpath_var='LD_RUN_PATH'
14692 case $cc_basename in
14694 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14695 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14698 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14699 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14704 sysv5* | sco3.2v5* | sco5v6*)
14705 # Note: We CANNOT use -z defs as we might desire, because we do not
14706 # link with -lc, and that would cause any symbols used from libc to
14707 # always be unresolved, which means just about no library would
14708 # ever link correctly. If we're not using GNU ld we use -z text
14709 # though, which does catch some bad symbols but isn't as heavy-handed
14711 no_undefined_flag_CXX='$wl-z,text'
14712 allow_undefined_flag_CXX='$wl-z,nodefs'
14713 archive_cmds_need_lc_CXX=no
14714 hardcode_shlibpath_var_CXX=no
14715 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14716 hardcode_libdir_separator_CXX=':'
14717 link_all_deplibs_CXX=yes
14718 export_dynamic_flag_spec_CXX='$wl-Bexport'
14719 runpath_var='LD_RUN_PATH'
14721 case $cc_basename in
14723 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14724 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14725 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14726 '"$old_archive_cmds_CXX"
14727 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14728 '"$reload_cmds_CXX"
14731 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14732 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14738 case $cc_basename in
14740 # NonStop-UX NCC 3.20
14741 # FIXME: insert proper C++ library support
14745 # FIXME: insert proper C++ library support
14752 # FIXME: insert proper C++ library support
14757 # FIXME: insert proper C++ library support
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14763 $as_echo "$ld_shlibs_CXX" >&6; }
14764 test no = "$ld_shlibs_CXX" && can_build_shared=no
14770 ## There is no encapsulation within the following macros, do not change
14771 ## the running order or otherwise move them around unless you know exactly
14772 ## what you are doing...
14773 # Dependencies to place before and after the object being linked:
14774 predep_objects_CXX=
14775 postdep_objects_CXX=
14778 compiler_lib_search_path_CXX=
14780 cat > conftest.$ac_ext <<_LT_EOF
14784 Foo (void) { a = 0; }
14791 _lt_libdeps_save_CFLAGS=$CFLAGS
14792 case "$CC $CFLAGS " in #(
14793 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14794 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14795 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14798 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14799 (eval $ac_compile) 2>&5
14801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14802 test $ac_status = 0; }; then
14803 # Parse the compiler output and extract the necessary
14804 # objects, libraries and library flags.
14806 # Sentinel used to keep track of whether or not we are before
14807 # the conftest object file.
14808 pre_test_object_deps_done=no
14810 for p in `eval "$output_verbose_link_cmd"`; do
14814 # Some compilers place space between "-{L,R}" and the path.
14815 # Remove the space.
14816 if test x-L = "$p" ||
14817 test x-R = "$p"; then
14822 # Expand the sysroot to ease extracting the directories later.
14823 if test -z "$prev"; then
14825 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14826 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14827 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14831 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14833 if test no = "$pre_test_object_deps_done"; then
14836 # Internal compiler library paths should come after those
14837 # provided the user. The postdeps already come after the
14838 # user supplied libs so there is no need to process them.
14839 if test -z "$compiler_lib_search_path_CXX"; then
14840 compiler_lib_search_path_CXX=$prev$p
14842 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14845 # The "-l" case would never come before the object being
14846 # linked, so don't bother handling this case.
14849 if test -z "$postdeps_CXX"; then
14850 postdeps_CXX=$prev$p
14852 postdeps_CXX="${postdeps_CXX} $prev$p"
14858 *.lto.$objext) ;; # Ignore GCC LTO objects
14860 # This assumes that the test object file only shows up
14861 # once in the compiler output.
14862 if test "$p" = "conftest.$objext"; then
14863 pre_test_object_deps_done=yes
14867 if test no = "$pre_test_object_deps_done"; then
14868 if test -z "$predep_objects_CXX"; then
14869 predep_objects_CXX=$p
14871 predep_objects_CXX="$predep_objects_CXX $p"
14874 if test -z "$postdep_objects_CXX"; then
14875 postdep_objects_CXX=$p
14877 postdep_objects_CXX="$postdep_objects_CXX $p"
14882 *) ;; # Ignore the rest.
14890 echo "libtool.m4: error: problem compiling CXX test program"
14893 $RM -f confest.$objext
14894 CFLAGS=$_lt_libdeps_save_CFLAGS
14896 # PORTME: override above test on systems where it is broken
14899 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14900 # hack all around it, let's just trust "g++" to DTRT.
14901 predep_objects_CXX=
14902 postdep_objects_CXX=
14908 case " $postdeps_CXX " in
14909 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14911 compiler_lib_search_dirs_CXX=
14912 if test -n "${compiler_lib_search_path_CXX}"; then
14913 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14946 lt_prog_compiler_wl_CXX=
14947 lt_prog_compiler_pic_CXX=
14948 lt_prog_compiler_static_CXX=
14951 # C++ specific cases for pic, static, wl, etc.
14952 if test yes = "$GXX"; then
14953 lt_prog_compiler_wl_CXX='-Wl,'
14954 lt_prog_compiler_static_CXX='-static'
14958 # All AIX code is PIC.
14959 if test ia64 = "$host_cpu"; then
14960 # AIX 5 now supports IA64 processor
14961 lt_prog_compiler_static_CXX='-Bstatic'
14963 lt_prog_compiler_pic_CXX='-fPIC'
14969 # see comment about AmigaOS4 .so support
14970 lt_prog_compiler_pic_CXX='-fPIC'
14973 # FIXME: we need at least 68020 code to build shared libraries, but
14974 # adding the '-m68020' flag to GCC prevents building anything better,
14976 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14981 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14982 # PIC is the default for these OSes.
14984 mingw* | cygwin* | os2* | pw32* | cegcc*)
14985 # This hack is so that the source file can tell whether it is being
14986 # built for inclusion in a dll (and should export symbols for example).
14987 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14988 # (--disable-auto-import) libraries
14989 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14992 lt_prog_compiler_static_CXX='$wl-static'
14996 darwin* | rhapsody*)
14997 # PIC is the default on this platform
14998 # Common symbols not allowed in MH_DYLIB files
14999 lt_prog_compiler_pic_CXX='-fno-common'
15002 # DJGPP does not support shared libraries at all
15003 lt_prog_compiler_pic_CXX=
15006 # PIC is the default for Haiku.
15007 # The "-static" flag exists, but is broken.
15008 lt_prog_compiler_static_CXX=
15011 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15012 # Instead, we relocate shared libraries at runtime.
15015 if test -d /usr/nec; then
15016 lt_prog_compiler_pic_CXX=-Kconform_pic
15020 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15021 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15022 # sets the default TLS model and affects inlining.
15027 lt_prog_compiler_pic_CXX='-fPIC'
15032 # QNX uses GNU C++, but need to define -shared option too, otherwise
15033 # it will coredump.
15034 lt_prog_compiler_pic_CXX='-fPIC -shared'
15037 lt_prog_compiler_pic_CXX='-fPIC'
15043 # All AIX code is PIC.
15044 if test ia64 = "$host_cpu"; then
15045 # AIX 5 now supports IA64 processor
15046 lt_prog_compiler_static_CXX='-Bstatic'
15048 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15052 case $cc_basename in
15054 # Green Hills C++ Compiler
15055 # _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"
15059 mingw* | cygwin* | os2* | pw32* | cegcc*)
15060 # This hack is so that the source file can tell whether it is being
15061 # built for inclusion in a dll (and should export symbols for example).
15062 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15065 case $cc_basename in
15067 lt_prog_compiler_pic_CXX='-KPIC'
15070 # Green Hills C++ Compiler
15071 lt_prog_compiler_pic_CXX='-pic'
15077 freebsd* | dragonfly*)
15078 # FreeBSD uses GNU C++
15080 hpux9* | hpux10* | hpux11*)
15081 case $cc_basename in
15083 lt_prog_compiler_wl_CXX='-Wl,'
15084 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15085 if test ia64 != "$host_cpu"; then
15086 lt_prog_compiler_pic_CXX='+Z'
15090 lt_prog_compiler_wl_CXX='-Wl,'
15091 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15097 lt_prog_compiler_pic_CXX='+Z'
15106 # This is c89, which is MS Visual C++ (no shared libs)
15107 # Anyone wants to do a port?
15109 irix5* | irix6* | nonstopux*)
15110 case $cc_basename in
15112 lt_prog_compiler_wl_CXX='-Wl,'
15113 lt_prog_compiler_static_CXX='-non_shared'
15114 # CC pic flag -KPIC is the default.
15120 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15121 case $cc_basename in
15124 lt_prog_compiler_wl_CXX='--backend -Wl,'
15125 lt_prog_compiler_pic_CXX='-fPIC'
15128 # old Intel C++ for x86_64, which still supported -KPIC.
15129 lt_prog_compiler_wl_CXX='-Wl,'
15130 lt_prog_compiler_pic_CXX='-KPIC'
15131 lt_prog_compiler_static_CXX='-static'
15134 # Intel C++, used to be incompatible with GCC.
15135 # ICC 10 doesn't accept -KPIC any more.
15136 lt_prog_compiler_wl_CXX='-Wl,'
15137 lt_prog_compiler_pic_CXX='-fPIC'
15138 lt_prog_compiler_static_CXX='-static'
15141 # Portland Group C++ compiler
15142 lt_prog_compiler_wl_CXX='-Wl,'
15143 lt_prog_compiler_pic_CXX='-fpic'
15144 lt_prog_compiler_static_CXX='-Bstatic'
15148 # Make sure the PIC flag is empty. It appears that all Alpha
15149 # Linux and Compaq Tru64 Unix objects are PIC.
15150 lt_prog_compiler_pic_CXX=
15151 lt_prog_compiler_static_CXX='-non_shared'
15153 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15154 # IBM XL 8.0, 9.0 on PPC and BlueGene
15155 lt_prog_compiler_wl_CXX='-Wl,'
15156 lt_prog_compiler_pic_CXX='-qpic'
15157 lt_prog_compiler_static_CXX='-qstaticlink'
15160 case `$CC -V 2>&1 | sed 5q` in
15163 lt_prog_compiler_pic_CXX='-KPIC'
15164 lt_prog_compiler_static_CXX='-Bstatic'
15165 lt_prog_compiler_wl_CXX='-Qoption ld '
15176 case $cc_basename in
15178 lt_prog_compiler_pic_CXX='-W c,exportall'
15184 netbsd* | netbsdelf*-gnu)
15187 # QNX uses GNU C++, but need to define -shared option too, otherwise
15188 # it will coredump.
15189 lt_prog_compiler_pic_CXX='-fPIC -shared'
15191 osf3* | osf4* | osf5*)
15192 case $cc_basename in
15194 lt_prog_compiler_wl_CXX='--backend -Wl,'
15197 # Rational C++ 2.4.1
15198 lt_prog_compiler_pic_CXX='-pic'
15201 # Digital/Compaq C++
15202 lt_prog_compiler_wl_CXX='-Wl,'
15203 # Make sure the PIC flag is empty. It appears that all Alpha
15204 # Linux and Compaq Tru64 Unix objects are PIC.
15205 lt_prog_compiler_pic_CXX=
15206 lt_prog_compiler_static_CXX='-non_shared'
15215 case $cc_basename in
15217 # Sun C++ 4.2, 5.x and Centerline C++
15218 lt_prog_compiler_pic_CXX='-KPIC'
15219 lt_prog_compiler_static_CXX='-Bstatic'
15220 lt_prog_compiler_wl_CXX='-Qoption ld '
15223 # Green Hills C++ Compiler
15224 lt_prog_compiler_pic_CXX='-PIC'
15231 case $cc_basename in
15234 lt_prog_compiler_pic_CXX='-pic'
15235 lt_prog_compiler_static_CXX='-Bstatic'
15239 lt_prog_compiler_pic_CXX='-pic'
15245 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15246 case $cc_basename in
15248 lt_prog_compiler_wl_CXX='-Wl,'
15249 lt_prog_compiler_pic_CXX='-KPIC'
15250 lt_prog_compiler_static_CXX='-Bstatic'
15255 case $cc_basename in
15257 # NonStop-UX NCC 3.20
15258 lt_prog_compiler_pic_CXX='-KPIC'
15267 lt_prog_compiler_can_build_shared_CXX=no
15273 # For platforms that do not support PIC, -DPIC is meaningless:
15275 lt_prog_compiler_pic_CXX=
15278 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX@&t@ -DPIC"
15282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15283 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15284 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15285 $as_echo_n "(cached) " >&6
15287 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15290 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15291 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15294 # Check to make sure the PIC flag actually works.
15296 if test -n "$lt_prog_compiler_pic_CXX"; then
15297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15298 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15299 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15300 $as_echo_n "(cached) " >&6
15302 lt_cv_prog_compiler_pic_works_CXX=no
15303 ac_outfile=conftest.$ac_objext
15304 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15305 lt_compiler_flag="$lt_prog_compiler_pic_CXX@&t@ -DPIC" ## exclude from sc_useless_quotes_in_assignment
15306 # Insert the option either (1) after the last *FLAGS variable, or
15307 # (2) before a word containing "conftest.", or (3) at the end.
15308 # Note that $ac_compile itself does not contain backslashes and begins
15309 # with a dollar sign (not a hyphen), so the echo should work correctly.
15310 # The option is referenced via a variable to avoid confusing sed.
15311 lt_compile=`echo "$ac_compile" | $SED \
15312 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15313 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15314 -e 's:$: $lt_compiler_flag:'`
15315 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15316 (eval "$lt_compile" 2>conftest.err)
15318 cat conftest.err >&5
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 if (exit $ac_status) && test -s "$ac_outfile"; then
15321 # The compiler can only warn and ignore the option if not recognized
15322 # So say no if there are warnings other than the usual output.
15323 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15324 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15325 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15326 lt_cv_prog_compiler_pic_works_CXX=yes
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15333 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15335 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15336 case $lt_prog_compiler_pic_CXX in
15338 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15341 lt_prog_compiler_pic_CXX=
15342 lt_prog_compiler_can_build_shared_CXX=no
15352 # Check to make sure the static flag actually works.
15354 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15356 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15357 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15358 $as_echo_n "(cached) " >&6
15360 lt_cv_prog_compiler_static_works_CXX=no
15361 save_LDFLAGS=$LDFLAGS
15362 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15363 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15364 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15365 # The linker can only warn and ignore the option if not recognized
15366 # So say no if there are warnings
15367 if test -s conftest.err; then
15368 # Append any errors to the config.log.
15369 cat conftest.err 1>&5
15370 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15371 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15372 if diff conftest.exp conftest.er2 >/dev/null; then
15373 lt_cv_prog_compiler_static_works_CXX=yes
15376 lt_cv_prog_compiler_static_works_CXX=yes
15380 LDFLAGS=$save_LDFLAGS
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15384 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15386 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15389 lt_prog_compiler_static_CXX=
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15396 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15397 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15398 $as_echo_n "(cached) " >&6
15400 lt_cv_prog_compiler_c_o_CXX=no
15401 $RM -r conftest 2>/dev/null
15405 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15407 lt_compiler_flag="-o out/conftest2.$ac_objext"
15408 # Insert the option either (1) after the last *FLAGS variable, or
15409 # (2) before a word containing "conftest.", or (3) at the end.
15410 # Note that $ac_compile itself does not contain backslashes and begins
15411 # with a dollar sign (not a hyphen), so the echo should work correctly.
15412 lt_compile=`echo "$ac_compile" | $SED \
15413 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15414 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15415 -e 's:$: $lt_compiler_flag:'`
15416 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15417 (eval "$lt_compile" 2>out/conftest.err)
15419 cat out/conftest.err >&5
15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15423 # The compiler can only warn and ignore the option if not recognized
15424 # So say no if there are warnings
15425 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15426 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15427 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15428 lt_cv_prog_compiler_c_o_CXX=yes
15433 # SGI C++ compiler will create directory out/ii_files/ for
15434 # template instantiation
15435 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15436 $RM out/* && rmdir out
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15443 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15448 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15449 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15450 $as_echo_n "(cached) " >&6
15452 lt_cv_prog_compiler_c_o_CXX=no
15453 $RM -r conftest 2>/dev/null
15457 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15459 lt_compiler_flag="-o out/conftest2.$ac_objext"
15460 # Insert the option either (1) after the last *FLAGS variable, or
15461 # (2) before a word containing "conftest.", or (3) at the end.
15462 # Note that $ac_compile itself does not contain backslashes and begins
15463 # with a dollar sign (not a hyphen), so the echo should work correctly.
15464 lt_compile=`echo "$ac_compile" | $SED \
15465 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15466 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15467 -e 's:$: $lt_compiler_flag:'`
15468 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15469 (eval "$lt_compile" 2>out/conftest.err)
15471 cat out/conftest.err >&5
15472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15475 # The compiler can only warn and ignore the option if not recognized
15476 # So say no if there are warnings
15477 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15478 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15479 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15480 lt_cv_prog_compiler_c_o_CXX=yes
15485 # SGI C++ compiler will create directory out/ii_files/ for
15486 # template instantiation
15487 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15488 $RM out/* && rmdir out
15494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15495 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15500 hard_links=nottested
15501 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15502 # do not overwrite the value of need_locks provided by the user
15503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15504 $as_echo_n "checking if we can lock with hard links... " >&6; }
15507 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15509 ln conftest.a conftest.b 2>&5 || hard_links=no
15510 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15512 $as_echo "$hard_links" >&6; }
15513 if test no = "$hard_links"; then
15514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15515 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15525 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15527 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15528 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15531 # If we're using GNU nm, then we don't want the "-C" option.
15532 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15533 # Without the "-l" option, or with the "-B" option, AIX nm treats
15534 # weak defined symbols like other global defined symbols, whereas
15535 # GNU nm marks them as "W".
15536 # While the 'weak' keyword is ignored in the Export File, we need
15537 # it in the Import File for the 'aix-soname' feature, so we have
15538 # to replace the "-B" option with "-P" for AIX nm.
15539 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15540 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'
15542 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'
15546 export_symbols_cmds_CXX=$ltdll_cmds
15548 cygwin* | mingw* | cegcc*)
15549 case $cc_basename in
15551 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15554 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'
15555 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15559 linux* | k*bsd*-gnu | gnu*)
15560 link_all_deplibs_CXX=no
15563 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15568 $as_echo "$ld_shlibs_CXX" >&6; }
15569 test no = "$ld_shlibs_CXX" && can_build_shared=no
15571 with_gnu_ld_CXX=$with_gnu_ld
15579 # Do we need to explicitly link libc?
15581 case "x$archive_cmds_need_lc_CXX" in
15583 # Assume -lc should be added
15584 archive_cmds_need_lc_CXX=yes
15586 if test yes,yes = "$GCC,$enable_shared"; then
15587 case $archive_cmds_CXX in
15589 # FIXME: we may have to deal with multi-command sequences.
15592 # Test whether the compiler implicitly links with -lc since on some
15593 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15594 # to ld, don't add -lc before -lgcc.
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15596 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15597 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15598 $as_echo_n "(cached) " >&6
15601 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15603 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15604 (eval $ac_compile) 2>&5
15606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15607 test $ac_status = 0; } 2>conftest.err; then
15610 libobjs=conftest.$ac_objext
15612 wl=$lt_prog_compiler_wl_CXX
15613 pic_flag=$lt_prog_compiler_pic_CXX
15619 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15620 allow_undefined_flag_CXX=
15621 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15622 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15625 test $ac_status = 0; }
15627 lt_cv_archive_cmds_need_lc_CXX=no
15629 lt_cv_archive_cmds_need_lc_CXX=yes
15631 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15633 cat conftest.err 1>&5
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15639 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15640 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15709 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15711 library_names_spec=
15712 libname_spec='lib$name'
15716 postuninstall_cmds=
15720 shlibpath_overrides_runpath=unknown
15722 dynamic_linker="$host_os ld.so"
15723 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15724 need_lib_prefix=unknown
15725 hardcode_into_libs=no
15727 # when you set need_version to no, make sure it does not cause -set_version
15728 # flags to be left without arguments
15729 need_version=unknown
15735 version_type=linux # correct to gnu/linux during the next big refactor
15736 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15737 shlibpath_var=LIBPATH
15739 # AIX 3 has no versioning support, so we append a major version to the name.
15740 soname_spec='$libname$release$shared_ext$major'
15744 version_type=linux # correct to gnu/linux during the next big refactor
15747 hardcode_into_libs=yes
15748 if test ia64 = "$host_cpu"; then
15749 # AIX 5 supports IA64
15750 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15751 shlibpath_var=LD_LIBRARY_PATH
15753 # With GCC up to 2.95.x, collect2 would create an import file
15754 # for dependence libraries. The import file would start with
15755 # the line '#! .'. This would cause the generated library to
15756 # depend on '.', always an invalid library. This was fixed in
15757 # development snapshots of GCC prior to 3.0.
15759 aix4 | aix4.[01] | aix4.[01].*)
15760 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15762 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15765 can_build_shared=no
15769 # Using Import Files as archive members, it is possible to support
15770 # filename-based versioning of shared library archives on AIX. While
15771 # this would work for both with and without runtime linking, it will
15772 # prevent static linking of such archives. So we do filename-based
15773 # shared library versioning with .so extension only, which is used
15774 # when both runtime linking and shared linking is enabled.
15775 # Unfortunately, runtime linking may impact performance, so we do
15776 # not want this to be the default eventually. Also, we use the
15777 # versioned .so libs for executables only if there is the -brtl
15778 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15779 # To allow for filename-based versioning support, we need to create
15780 # libNAME.so.V as an archive file, containing:
15781 # *) an Import File, referring to the versioned filename of the
15782 # archive as well as the shared archive member, telling the
15783 # bitwidth (32 or 64) of that shared object, and providing the
15784 # list of exported symbols of that shared object, eventually
15785 # decorated with the 'weak' keyword
15786 # *) the shared object with the F_LOADONLY flag set, to really avoid
15787 # it being seen by the linker.
15788 # At run time we better use the real file rather than another symlink,
15789 # but for link time we create the symlink libNAME.so -> libNAME.so.V
15791 case $with_aix_soname,$aix_use_runtimelinking in
15792 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15793 # soname into executable. Probably we can add versioning support to
15794 # collect2, so additional links can be useful in future.
15795 aix,yes) # traditional libtool
15796 dynamic_linker='AIX unversionable lib.so'
15797 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15798 # instead of lib<name>.a to let people know that these are not
15799 # typical AIX shared libraries.
15800 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15802 aix,no) # traditional AIX only
15803 dynamic_linker='AIX lib.a(lib.so.V)'
15804 # We preserve .a as extension for shared libraries through AIX4.2
15805 # and later when we are not doing run time linking.
15806 library_names_spec='$libname$release.a $libname.a'
15807 soname_spec='$libname$release$shared_ext$major'
15809 svr4,*) # full svr4 only
15810 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15811 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15812 # We do not specify a path in Import Files, so LIBPATH fires.
15813 shlibpath_overrides_runpath=yes
15815 *,yes) # both, prefer svr4
15816 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15817 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15818 # unpreferred sharedlib libNAME.a needs extra handling
15819 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"'
15820 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"'
15821 # We do not specify a path in Import Files, so LIBPATH fires.
15822 shlibpath_overrides_runpath=yes
15824 *,no) # both, prefer aix
15825 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15826 library_names_spec='$libname$release.a $libname.a'
15827 soname_spec='$libname$release$shared_ext$major'
15828 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15829 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)'
15830 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"'
15833 shlibpath_var=LIBPATH
15840 # Since July 2007 AmigaOS4 officially supports .so libraries.
15841 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15842 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15845 library_names_spec='$libname.ixlibrary $libname.a'
15846 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15847 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'
15853 library_names_spec='$libname$shared_ext'
15854 dynamic_linker="$host_os ld.so"
15855 shlibpath_var=LIBRARY_PATH
15859 version_type=linux # correct to gnu/linux during the next big refactor
15861 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15862 soname_spec='$libname$release$shared_ext$major'
15863 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15864 shlibpath_var=LD_LIBRARY_PATH
15865 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15866 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15867 # the default ld.so.conf also contains /usr/contrib/lib and
15868 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15869 # libtool to hard-code these into programs
15872 cygwin* | mingw* | pw32* | cegcc*)
15873 version_type=windows
15878 case $GCC,$cc_basename in
15881 library_names_spec='$libname.dll.a'
15882 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15883 postinstall_cmds='base_file=`basename \$file`~
15884 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15885 dldir=$destdir/`dirname \$dlpath`~
15886 test -d \$dldir || mkdir -p \$dldir~
15887 $install_prog $dir/$dlname \$dldir/$dlname~
15888 chmod a+x \$dldir/$dlname~
15889 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15890 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15892 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15893 dlpath=$dir/\$dldll~
15895 shlibpath_overrides_runpath=yes
15899 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15900 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15904 # MinGW DLLs use traditional 'lib' prefix
15905 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15908 # pw32 DLLs use 'pw' prefix rather than 'lib'
15909 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15912 dynamic_linker='Win32 ld.exe'
15917 libname_spec='$name'
15918 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15919 library_names_spec='$libname.dll.lib'
15923 sys_lib_search_path_spec=
15926 for lt_path in $LIB
15929 # Let DOS variable expansion print the short 8.3 style file name.
15930 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15931 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15934 # Convert to MSYS style.
15935 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15938 # Convert to unix form, then to dos form, then back to unix form
15939 # but this time dos style (no spaces!) so that the unix form looks
15940 # like /cygdrive/c/PROGRA~1:/cygdr...
15941 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15942 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15943 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15946 sys_lib_search_path_spec=$LIB
15947 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15948 # It is most probably a Windows format PATH.
15949 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15951 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15953 # FIXME: find the short name or the path components, as spaces are
15954 # common. (e.g. "Program Files" -> "PROGRA~1")
15958 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15959 postinstall_cmds='base_file=`basename \$file`~
15960 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15961 dldir=$destdir/`dirname \$dlpath`~
15962 test -d \$dldir || mkdir -p \$dldir~
15963 $install_prog $dir/$dlname \$dldir/$dlname'
15964 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15965 dlpath=$dir/\$dldll~
15967 shlibpath_overrides_runpath=yes
15968 dynamic_linker='Win32 link.exe'
15972 # Assume MSVC wrapper
15973 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15974 dynamic_linker='Win32 ld.exe'
15977 # FIXME: first we should search . and the directory the executable is in
15981 darwin* | rhapsody*)
15982 dynamic_linker="$host_os dyld"
15983 version_type=darwin
15986 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15987 soname_spec='$libname$release$major$shared_ext'
15988 shlibpath_overrides_runpath=yes
15989 shlibpath_var=DYLD_LIBRARY_PATH
15990 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15992 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15996 version_type=linux # correct to gnu/linux during the next big refactor
15999 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16000 soname_spec='$libname$release$shared_ext$major'
16001 shlibpath_var=LD_LIBRARY_PATH
16004 freebsd* | dragonfly*)
16005 # DragonFly does not have aout. When/if they implement a new
16006 # versioning mechanism, adjust this.
16007 if test -x /usr/bin/objformat; then
16008 objformat=`/usr/bin/objformat`
16011 freebsd[23].*) objformat=aout ;;
16012 *) objformat=elf ;;
16015 version_type=freebsd-$objformat
16016 case $version_type in
16018 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16019 soname_spec='$libname$release$shared_ext$major'
16024 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16028 shlibpath_var=LD_LIBRARY_PATH
16031 shlibpath_overrides_runpath=yes
16033 freebsd3.[01]* | freebsdelf3.[01]*)
16034 shlibpath_overrides_runpath=yes
16035 hardcode_into_libs=yes
16037 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16038 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16039 shlibpath_overrides_runpath=no
16040 hardcode_into_libs=yes
16042 *) # from 4.6 on, and DragonFly
16043 shlibpath_overrides_runpath=yes
16044 hardcode_into_libs=yes
16050 version_type=linux # correct to gnu/linux during the next big refactor
16053 dynamic_linker="$host_os runtime_loader"
16054 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16055 soname_spec='$libname$release$shared_ext$major'
16056 shlibpath_var=LIBRARY_PATH
16057 shlibpath_overrides_runpath=no
16058 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16059 hardcode_into_libs=yes
16062 hpux9* | hpux10* | hpux11*)
16063 # Give a soname corresponding to the major version so that dld.sl refuses to
16064 # link against other versions.
16071 hardcode_into_libs=yes
16072 dynamic_linker="$host_os dld.so"
16073 shlibpath_var=LD_LIBRARY_PATH
16074 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16075 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16076 soname_spec='$libname$release$shared_ext$major'
16077 if test 32 = "$HPUX_IA64_MODE"; then
16078 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16079 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16081 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16082 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16087 hardcode_into_libs=yes
16088 dynamic_linker="$host_os dld.sl"
16089 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16090 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16091 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16092 soname_spec='$libname$release$shared_ext$major'
16093 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16094 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16098 dynamic_linker="$host_os dld.sl"
16099 shlibpath_var=SHLIB_PATH
16100 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16101 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16102 soname_spec='$libname$release$shared_ext$major'
16105 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16106 postinstall_cmds='chmod 555 $lib'
16107 # or fails outright, so override atomically:
16108 install_override_mode=555
16112 version_type=linux # correct to gnu/linux during the next big refactor
16115 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16116 soname_spec='$libname$release$shared_ext$major'
16117 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16118 shlibpath_var=LD_LIBRARY_PATH
16119 shlibpath_overrides_runpath=no
16120 hardcode_into_libs=yes
16123 irix5* | irix6* | nonstopux*)
16125 nonstopux*) version_type=nonstopux ;;
16127 if test yes = "$lt_cv_prog_gnu_ld"; then
16128 version_type=linux # correct to gnu/linux during the next big refactor
16135 soname_spec='$libname$release$shared_ext$major'
16136 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16138 irix5* | nonstopux*)
16139 libsuff= shlibsuff=
16142 case $LD in # libtool.m4 will add one of these switches to LD
16143 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16144 libsuff= shlibsuff= libmagic=32-bit;;
16145 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16146 libsuff=32 shlibsuff=N32 libmagic=N32;;
16147 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16148 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16149 *) libsuff= shlibsuff= libmagic=never-match;;
16153 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16154 shlibpath_overrides_runpath=no
16155 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16156 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16157 hardcode_into_libs=yes
16160 # No shared lib support for Linux oldld, aout, or coff.
16161 linux*oldld* | linux*aout* | linux*coff*)
16166 version_type=none # Android doesn't support versioned libraries.
16169 library_names_spec='$libname$release$shared_ext'
16170 soname_spec='$libname$release$shared_ext'
16172 shlibpath_var=LD_LIBRARY_PATH
16173 shlibpath_overrides_runpath=yes
16175 # This implies no fast_install, which is unacceptable.
16176 # Some rework will be needed to allow for fast_install
16177 # before this can be enabled.
16178 hardcode_into_libs=yes
16180 dynamic_linker='Android linker'
16181 # Don't embed -rpath directories since the linker doesn't support them.
16182 hardcode_libdir_flag_spec_CXX='-L$libdir'
16185 # This must be glibc/ELF.
16186 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16187 version_type=linux # correct to gnu/linux during the next big refactor
16190 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16191 soname_spec='$libname$release$shared_ext$major'
16192 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16193 shlibpath_var=LD_LIBRARY_PATH
16194 shlibpath_overrides_runpath=no
16196 # Some binutils ld are patched to set DT_RUNPATH
16197 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16198 $as_echo_n "(cached) " >&6
16200 lt_cv_shlibpath_overrides_runpath=no
16201 save_LDFLAGS=$LDFLAGS
16202 save_libdir=$libdir
16203 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16204 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16206 /* end confdefs.h. */
16216 if ac_fn_cxx_try_link "$LINENO"; then :
16217 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16218 lt_cv_shlibpath_overrides_runpath=yes
16221 rm -f core conftest.err conftest.$ac_objext \
16222 conftest$ac_exeext conftest.$ac_ext
16223 LDFLAGS=$save_LDFLAGS
16224 libdir=$save_libdir
16228 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16230 # This implies no fast_install, which is unacceptable.
16231 # Some rework will be needed to allow for fast_install
16232 # before this can be enabled.
16233 hardcode_into_libs=yes
16235 # Ideally, we could use ldconfig to report *all* directores which are
16236 # searched for libraries, however this is still not possible. Aside from not
16237 # being certain /sbin/ldconfig is available, command
16238 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16239 # even though it is searched at run-time. Try to do the best guess by
16240 # appending ld.so.conf contents (and includes) to the search path.
16241 if test -f /etc/ld.so.conf; then
16242 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' ' '`
16243 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16246 # We used to test for /lib/ld.so.1 and disable shared libraries on
16247 # powerpc, because MkLinux only supported shared libraries with the
16248 # GNU dynamic linker. Since this was broken with cross compilers,
16249 # most powerpc-linux boxes support dynamic linking these days and
16250 # people can always --disable-shared, the test was removed, and we
16251 # assume the GNU/Linux dynamic linker is in use.
16252 dynamic_linker='GNU/Linux ld.so'
16259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16260 soname_spec='${libname}${release}${shared_ext}$major'
16261 shlibpath_var=LD_LIBRARY_PATH
16262 shlibpath_overrides_runpath=no
16263 hardcode_into_libs=yes
16264 dynamic_linker='NetBSD ld.elf_so'
16271 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16272 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16273 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16274 dynamic_linker='NetBSD (a.out) ld.so'
16276 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16277 soname_spec='$libname$release$shared_ext$major'
16278 dynamic_linker='NetBSD ld.elf_so'
16280 shlibpath_var=LD_LIBRARY_PATH
16281 shlibpath_overrides_runpath=yes
16282 hardcode_into_libs=yes
16286 version_type=linux # correct to gnu/linux during the next big refactor
16287 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16288 shlibpath_var=LD_LIBRARY_PATH
16289 shlibpath_overrides_runpath=yes
16296 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16297 soname_spec='$libname$release$shared_ext$major'
16298 shlibpath_var=LD_LIBRARY_PATH
16299 shlibpath_overrides_runpath=no
16300 hardcode_into_libs=yes
16301 dynamic_linker='ldqnx.so'
16304 openbsd* | bitrig*)
16306 sys_lib_dlsearch_path_spec=/usr/lib
16308 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16313 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16314 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16315 shlibpath_var=LD_LIBRARY_PATH
16316 shlibpath_overrides_runpath=yes
16320 libname_spec='$name'
16321 version_type=windows
16325 # OS/2 can only load a DLL with a base name of 8 characters or less.
16326 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16327 v=$($ECHO $release$versuffix | tr -d .-);
16328 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16329 $ECHO $n$v`$shared_ext'
16330 library_names_spec='${libname}_dll.$libext'
16331 dynamic_linker='OS/2 ld.exe'
16332 shlibpath_var=BEGINLIBPATH
16333 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16334 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16335 postinstall_cmds='base_file=`basename \$file`~
16336 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16337 dldir=$destdir/`dirname \$dlpath`~
16338 test -d \$dldir || mkdir -p \$dldir~
16339 $install_prog $dir/$dlname \$dldir/$dlname~
16340 chmod a+x \$dldir/$dlname~
16341 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16342 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16344 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16345 dlpath=$dir/\$dldll~
16349 osf3* | osf4* | osf5*)
16353 soname_spec='$libname$release$shared_ext$major'
16354 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16355 shlibpath_var=LD_LIBRARY_PATH
16356 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16357 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16365 version_type=linux # correct to gnu/linux during the next big refactor
16368 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16369 soname_spec='$libname$release$shared_ext$major'
16370 shlibpath_var=LD_LIBRARY_PATH
16371 shlibpath_overrides_runpath=yes
16372 hardcode_into_libs=yes
16373 # ldd complains unless libraries are executable
16374 postinstall_cmds='chmod +x $lib'
16379 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16380 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16381 shlibpath_var=LD_LIBRARY_PATH
16382 shlibpath_overrides_runpath=yes
16383 if test yes = "$with_gnu_ld"; then
16390 version_type=linux # correct to gnu/linux during the next big refactor
16391 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16392 soname_spec='$libname$release$shared_ext$major'
16393 shlibpath_var=LD_LIBRARY_PATH
16394 case $host_vendor in
16396 shlibpath_overrides_runpath=no
16398 runpath_var=LD_RUN_PATH
16406 shlibpath_overrides_runpath=no
16407 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16413 if test -d /usr/nec; then
16414 version_type=linux # correct to gnu/linux during the next big refactor
16415 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16416 soname_spec='$libname$shared_ext.$major'
16417 shlibpath_var=LD_LIBRARY_PATH
16421 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16425 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16426 soname_spec='$libname$release$shared_ext$major'
16427 shlibpath_var=LD_LIBRARY_PATH
16428 shlibpath_overrides_runpath=yes
16429 hardcode_into_libs=yes
16430 if test yes = "$with_gnu_ld"; then
16431 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16433 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16436 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16440 sys_lib_dlsearch_path_spec='/usr/lib'
16444 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16445 version_type=linux # correct to gnu/linux during the next big refactor
16448 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16449 shlibpath_var=LD_LIBRARY_PATH
16450 shlibpath_overrides_runpath=no
16451 hardcode_into_libs=yes
16455 version_type=linux # correct to gnu/linux during the next big refactor
16456 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16457 soname_spec='$libname$release$shared_ext$major'
16458 shlibpath_var=LD_LIBRARY_PATH
16465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16466 $as_echo "$dynamic_linker" >&6; }
16467 test no = "$dynamic_linker" && can_build_shared=no
16469 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16470 if test yes = "$GCC"; then
16471 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16474 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16475 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16478 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16479 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16482 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16483 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16485 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16486 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16488 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16489 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16531 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16532 hardcode_action_CXX=
16533 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16534 test -n "$runpath_var_CXX" ||
16535 test yes = "$hardcode_automatic_CXX"; then
16537 # We can hardcode non-existent directories.
16538 if test no != "$hardcode_direct_CXX" &&
16539 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16540 # have to relink, otherwise we might link with an installed library
16541 # when we should be linking with a yet-to-be-installed one
16542 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16543 test no != "$hardcode_minus_L_CXX"; then
16544 # Linking always hardcodes the temporary library directory.
16545 hardcode_action_CXX=relink
16547 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16548 hardcode_action_CXX=immediate
16551 # We cannot hardcode anything, or else we can only hardcode existing
16553 hardcode_action_CXX=unsupported
16555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16556 $as_echo "$hardcode_action_CXX" >&6; }
16558 if test relink = "$hardcode_action_CXX" ||
16559 test yes = "$inherit_rpath_CXX"; then
16560 # Fast installation is not supported
16561 enable_fast_install=no
16562 elif test yes = "$shlibpath_overrides_runpath" ||
16563 test no = "$enable_shared"; then
16564 # Fast installation is not necessary
16565 enable_fast_install=needless
16574 fi # test -n "$compiler"
16577 CFLAGS=$lt_save_CFLAGS
16581 with_gnu_ld=$lt_save_with_gnu_ld
16582 lt_cv_path_LDCXX=$lt_cv_path_LD
16583 lt_cv_path_LD=$lt_save_path_LD
16584 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16585 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16586 fi # test yes != "$_lt_caught_CXX_error"
16589 ac_cpp='$CPP $CPPFLAGS'
16590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16597 # Checks for libraries.
16598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gf_init_easy in -lgf_complete" >&5
16599 $as_echo_n "checking for gf_init_easy in -lgf_complete... " >&6; }
16600 if ${ac_cv_lib_gf_complete_gf_init_easy+:} false; then :
16601 $as_echo_n "(cached) " >&6
16603 ac_check_lib_save_LIBS=$LIBS
16604 LIBS="-lgf_complete $LIBS"
16605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16606 /* end confdefs.h. */
16608 /* Override any GCC internal prototype to avoid an error.
16609 Use char because int might match the return type of a GCC
16610 builtin and then its argument prototype would still apply. */
16614 char gf_init_easy ();
16618 return gf_init_easy ();
16623 if ac_fn_c_try_link "$LINENO"; then :
16624 ac_cv_lib_gf_complete_gf_init_easy=yes
16626 ac_cv_lib_gf_complete_gf_init_easy=no
16628 rm -f core conftest.err conftest.$ac_objext \
16629 conftest$ac_exeext conftest.$ac_ext
16630 LIBS=$ac_check_lib_save_LIBS
16632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gf_complete_gf_init_easy" >&5
16633 $as_echo "$ac_cv_lib_gf_complete_gf_init_easy" >&6; }
16634 if test "x$ac_cv_lib_gf_complete_gf_init_easy" = xyes; then :
16635 cat >>confdefs.h <<_ACEOF
16636 @%:@define HAVE_LIBGF_COMPLETE 1
16639 LIBS="-lgf_complete $LIBS"
16642 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16644 as_fn_error $? "You need to have gf_complete installed.
16645 gf_complete is available from http://jerasure.org/jerasure/gf-complete
16646 See \`config.log' for more details" "$LINENO" 5; }
16651 # Checks for header files.
16652 for ac_header in stddef.h stdint.h stdlib.h string.h sys/time.h unistd.h
16654 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16655 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16656 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16657 cat >>confdefs.h <<_ACEOF
16658 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16665 for ac_header in gf_complete.h gf_general.h gf_method.h gf_rand.h
16667 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16668 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16669 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16670 cat >>confdefs.h <<_ACEOF
16671 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16679 # Checks for typedefs, structures, and compiler characteristics.
16680 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
16681 case $ac_cv_c_uint32_t in #(
16685 $as_echo "@%:@define _UINT32_T 1" >>confdefs.h
16688 cat >>confdefs.h <<_ACEOF
16689 @%:@define uint32_t $ac_cv_c_uint32_t
16694 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
16695 case $ac_cv_c_uint64_t in #(
16699 $as_echo "@%:@define _UINT64_T 1" >>confdefs.h
16702 cat >>confdefs.h <<_ACEOF
16703 @%:@define uint64_t $ac_cv_c_uint64_t
16713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether altivec is supported" >&5
16714 $as_echo_n "checking whether altivec is supported... " >&6; }
16715 if ${ax_cv_have_altivec_ext+:} false; then :
16716 $as_echo_n "(cached) " >&6
16719 if test `/usr/sbin/sysctl -a 2>/dev/null| grep -c hw.optional.altivec` != 0; then
16720 if test `/usr/sbin/sysctl -n hw.optional.altivec` = 1; then
16721 ax_cv_have_altivec_ext=yes
16726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_altivec_ext" >&5
16727 $as_echo "$ax_cv_have_altivec_ext" >&6; }
16729 if test "$ax_cv_have_altivec_ext" = yes; then
16731 $as_echo "@%:@define HAVE_ALTIVEC /**/" >>confdefs.h
16733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -faltivec" >&5
16734 $as_echo_n "checking whether C compiler accepts -faltivec... " >&6; }
16735 if ${ax_cv_check_cflags___faltivec+:} false; then :
16736 $as_echo_n "(cached) " >&6
16739 ax_check_save_flags=$CFLAGS
16740 CFLAGS="$CFLAGS -faltivec"
16741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16742 /* end confdefs.h. */
16752 if ac_fn_c_try_compile "$LINENO"; then :
16753 ax_cv_check_cflags___faltivec=yes
16755 ax_cv_check_cflags___faltivec=no
16757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16758 CFLAGS=$ax_check_save_flags
16760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___faltivec" >&5
16761 $as_echo "$ax_cv_check_cflags___faltivec" >&6; }
16762 if test x"$ax_cv_check_cflags___faltivec" = xyes; then :
16763 SIMD_FLAGS="$SIMD_FLAGS -faltivec"
16772 i[3456]86*|x86_64*|amd64*)
16781 ac_cpp='$CPP $CPPFLAGS'
16782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x00000001 output" >&5
16787 $as_echo_n "checking for x86 cpuid 0x00000001 output... " >&6; }
16788 if ${ax_cv_gcc_x86_cpuid_0x00000001+:} false; then :
16789 $as_echo_n "(cached) " >&6
16791 if test "$cross_compiling" = yes; then :
16792 ax_cv_gcc_x86_cpuid_0x00000001=unknown
16794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16795 /* end confdefs.h. */
16801 int op = 0x00000001, eax, ebx, ecx, edx;
16804 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
16806 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
16807 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
16815 if ac_fn_c_try_run "$LINENO"; then :
16816 ax_cv_gcc_x86_cpuid_0x00000001=`cat conftest_cpuid`; rm -f conftest_cpuid
16818 ax_cv_gcc_x86_cpuid_0x00000001=unknown; rm -f conftest_cpuid
16820 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16821 conftest.$ac_objext conftest.beam conftest.$ac_ext
16825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x00000001" >&5
16826 $as_echo "$ax_cv_gcc_x86_cpuid_0x00000001" >&6; }
16828 ac_cpp='$CPP $CPPFLAGS'
16829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16836 if test "$ax_cv_gcc_x86_cpuid_0x00000001" != "unknown";
16838 ecx=`echo $ax_cv_gcc_x86_cpuid_0x00000001 | cut -d ":" -f 3`
16839 edx=`echo $ax_cv_gcc_x86_cpuid_0x00000001 | cut -d ":" -f 4`
16842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmx is supported" >&5
16843 $as_echo_n "checking whether mmx is supported... " >&6; }
16844 if ${ax_cv_have_mmx_ext+:} false; then :
16845 $as_echo_n "(cached) " >&6
16848 ax_cv_have_mmx_ext=no
16849 if test "$((0x$edx>>23&0x01))" = 1; then
16850 ax_cv_have_mmx_ext=yes
16854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_mmx_ext" >&5
16855 $as_echo "$ax_cv_have_mmx_ext" >&6; }
16857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sse is supported" >&5
16858 $as_echo_n "checking whether sse is supported... " >&6; }
16859 if ${ax_cv_have_sse_ext+:} false; then :
16860 $as_echo_n "(cached) " >&6
16863 ax_cv_have_sse_ext=no
16864 if test "$((0x$edx>>25&0x01))" = 1; then
16865 ax_cv_have_sse_ext=yes
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_sse_ext" >&5
16870 $as_echo "$ax_cv_have_sse_ext" >&6; }
16872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sse2 is supported" >&5
16873 $as_echo_n "checking whether sse2 is supported... " >&6; }
16874 if ${ax_cv_have_sse2_ext+:} false; then :
16875 $as_echo_n "(cached) " >&6
16878 ax_cv_have_sse2_ext=no
16879 if test "$((0x$edx>>26&0x01))" = 1; then
16880 ax_cv_have_sse2_ext=yes
16884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_sse2_ext" >&5
16885 $as_echo "$ax_cv_have_sse2_ext" >&6; }
16887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sse3 is supported" >&5
16888 $as_echo_n "checking whether sse3 is supported... " >&6; }
16889 if ${ax_cv_have_sse3_ext+:} false; then :
16890 $as_echo_n "(cached) " >&6
16893 ax_cv_have_sse3_ext=no
16894 if test "$((0x$ecx&0x01))" = 1; then
16895 ax_cv_have_sse3_ext=yes
16899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_sse3_ext" >&5
16900 $as_echo "$ax_cv_have_sse3_ext" >&6; }
16902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ssse3 is supported" >&5
16903 $as_echo_n "checking whether ssse3 is supported... " >&6; }
16904 if ${ax_cv_have_ssse3_ext+:} false; then :
16905 $as_echo_n "(cached) " >&6
16908 ax_cv_have_ssse3_ext=no
16909 if test "$((0x$ecx>>9&0x01))" = 1; then
16910 ax_cv_have_ssse3_ext=yes
16914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_ssse3_ext" >&5
16915 $as_echo "$ax_cv_have_ssse3_ext" >&6; }
16917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sse4.1 is supported" >&5
16918 $as_echo_n "checking whether sse4.1 is supported... " >&6; }
16919 if ${ax_cv_have_sse41_ext+:} false; then :
16920 $as_echo_n "(cached) " >&6
16923 ax_cv_have_sse41_ext=no
16924 if test "$((0x$ecx>>19&0x01))" = 1; then
16925 ax_cv_have_sse41_ext=yes
16929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_sse41_ext" >&5
16930 $as_echo "$ax_cv_have_sse41_ext" >&6; }
16932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sse4.2 is supported" >&5
16933 $as_echo_n "checking whether sse4.2 is supported... " >&6; }
16934 if ${ax_cv_have_sse42_ext+:} false; then :
16935 $as_echo_n "(cached) " >&6
16938 ax_cv_have_sse42_ext=no
16939 if test "$((0x$ecx>>20&0x01))" = 1; then
16940 ax_cv_have_sse42_ext=yes
16944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_sse42_ext" >&5
16945 $as_echo "$ax_cv_have_sse42_ext" >&6; }
16947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether avx is supported by processor" >&5
16948 $as_echo_n "checking whether avx is supported by processor... " >&6; }
16949 if ${ax_cv_have_avx_cpu_ext+:} false; then :
16950 $as_echo_n "(cached) " >&6
16953 ax_cv_have_avx_cpu_ext=no
16954 if test "$((0x$ecx>>28&0x01))" = 1; then
16955 ax_cv_have_avx_cpu_ext=yes
16959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_avx_cpu_ext" >&5
16960 $as_echo "$ax_cv_have_avx_cpu_ext" >&6; }
16962 if test x"$ax_cv_have_avx_cpu_ext" = x"yes"; then
16965 ac_cpp='$CPP $CPPFLAGS'
16966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86-AVX xgetbv 0x00000000 output" >&5
16971 $as_echo_n "checking for x86-AVX xgetbv 0x00000000 output... " >&6; }
16972 if ${ax_cv_gcc_x86_avx_xgetbv_0x00000000+:} false; then :
16973 $as_echo_n "(cached) " >&6
16975 if test "$cross_compiling" = yes; then :
16976 ax_cv_gcc_x86_avx_xgetbv_0x00000000=unknown
16978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16979 /* end confdefs.h. */
16985 int op = 0x00000000, eax, edx;
16987 /* Opcodes for xgetbv */
16988 __asm__(".byte 0x0f, 0x01, 0xd0"
16989 : "=a" (eax), "=d" (edx)
16991 f = fopen("conftest_xgetbv", "w"); if (!f) return 1;
16992 fprintf(f, "%x:%x\n", eax, edx);
17000 if ac_fn_c_try_run "$LINENO"; then :
17001 ax_cv_gcc_x86_avx_xgetbv_0x00000000=`cat conftest_xgetbv`; rm -f conftest_xgetbv
17003 ax_cv_gcc_x86_avx_xgetbv_0x00000000=unknown; rm -f conftest_xgetbv
17005 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17006 conftest.$ac_objext conftest.beam conftest.$ac_ext
17010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_avx_xgetbv_0x00000000" >&5
17011 $as_echo "$ax_cv_gcc_x86_avx_xgetbv_0x00000000" >&6; }
17013 ac_cpp='$CPP $CPPFLAGS'
17014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17021 if test x"$ax_cv_gcc_x86_avx_xgetbv_0x00000000" != x"unknown"; then
17022 xgetbv_eax=`echo $ax_cv_gcc_x86_avx_xgetbv_0x00000000 | cut -d ":" -f 1`
17025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether avx is supported by operating system" >&5
17026 $as_echo_n "checking whether avx is supported by operating system... " >&6; }
17027 if ${ax_cv_have_avx_ext+:} false; then :
17028 $as_echo_n "(cached) " >&6
17031 ax_cv_have_avx_ext=no
17033 if test "$((0x$ecx>>27&0x01))" = 1; then
17034 if test "$((0x$xgetbv_eax&0x6))" = 6; then
17035 ax_cv_have_avx_ext=yes
17040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_avx_ext" >&5
17041 $as_echo "$ax_cv_have_avx_ext" >&6; }
17042 if test x"$ax_cv_have_avx_ext" = x"no"; then
17043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your processor supports AVX, but your operating system doesn't" >&5
17044 $as_echo "$as_me: WARNING: Your processor supports AVX, but your operating system doesn't" >&2;}
17048 if test "$ax_cv_have_mmx_ext" = yes; then
17049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mmmx" >&5
17050 $as_echo_n "checking whether C compiler accepts -mmmx... " >&6; }
17051 if ${ax_cv_check_cflags___mmmx+:} false; then :
17052 $as_echo_n "(cached) " >&6
17055 ax_check_save_flags=$CFLAGS
17056 CFLAGS="$CFLAGS -mmmx"
17057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17058 /* end confdefs.h. */
17068 if ac_fn_c_try_compile "$LINENO"; then :
17069 ax_cv_check_cflags___mmmx=yes
17071 ax_cv_check_cflags___mmmx=no
17073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17074 CFLAGS=$ax_check_save_flags
17076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mmmx" >&5
17077 $as_echo "$ax_cv_check_cflags___mmmx" >&6; }
17078 if test x"$ax_cv_check_cflags___mmmx" = xyes; then :
17079 ax_cv_support_mmx_ext=yes
17084 if test x"$ax_cv_support_mmx_ext" = x"yes"; then
17085 SIMD_FLAGS="$SIMD_FLAGS -mmmx"
17087 $as_echo "@%:@define HAVE_MMX /**/" >>confdefs.h
17090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your processor supports mmx instructions but not your compiler, can you try another compiler?" >&5
17091 $as_echo "$as_me: WARNING: Your processor supports mmx instructions but not your compiler, can you try another compiler?" >&2;}
17095 if test "$ax_cv_have_sse_ext" = yes; then
17096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse" >&5
17097 $as_echo_n "checking whether C compiler accepts -msse... " >&6; }
17098 if ${ax_cv_check_cflags___msse+:} false; then :
17099 $as_echo_n "(cached) " >&6
17102 ax_check_save_flags=$CFLAGS
17103 CFLAGS="$CFLAGS -msse"
17104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17105 /* end confdefs.h. */
17115 if ac_fn_c_try_compile "$LINENO"; then :
17116 ax_cv_check_cflags___msse=yes
17118 ax_cv_check_cflags___msse=no
17120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17121 CFLAGS=$ax_check_save_flags
17123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse" >&5
17124 $as_echo "$ax_cv_check_cflags___msse" >&6; }
17125 if test x"$ax_cv_check_cflags___msse" = xyes; then :
17126 ax_cv_support_sse_ext=yes
17131 if test x"$ax_cv_support_sse_ext" = x"yes"; then
17132 SIMD_FLAGS="$SIMD_FLAGS -msse"
17134 $as_echo "@%:@define HAVE_SSE /**/" >>confdefs.h
17137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your processor supports sse instructions but not your compiler, can you try another compiler?" >&5
17138 $as_echo "$as_me: WARNING: Your processor supports sse instructions but not your compiler, can you try another compiler?" >&2;}
17142 if test "$ax_cv_have_sse2_ext" = yes; then
17143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse2" >&5
17144 $as_echo_n "checking whether C compiler accepts -msse2... " >&6; }
17145 if ${ax_cv_check_cflags___msse2+:} false; then :
17146 $as_echo_n "(cached) " >&6
17149 ax_check_save_flags=$CFLAGS
17150 CFLAGS="$CFLAGS -msse2"
17151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17152 /* end confdefs.h. */
17162 if ac_fn_c_try_compile "$LINENO"; then :
17163 ax_cv_check_cflags___msse2=yes
17165 ax_cv_check_cflags___msse2=no
17167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17168 CFLAGS=$ax_check_save_flags
17170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse2" >&5
17171 $as_echo "$ax_cv_check_cflags___msse2" >&6; }
17172 if test x"$ax_cv_check_cflags___msse2" = xyes; then :
17173 ax_cv_support_sse2_ext=yes
17178 if test x"$ax_cv_support_sse2_ext" = x"yes"; then
17179 SIMD_FLAGS="$SIMD_FLAGS -msse2"
17181 $as_echo "@%:@define HAVE_SSE2 /**/" >>confdefs.h
17184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your processor supports sse2 instructions but not your compiler, can you try another compiler?" >&5
17185 $as_echo "$as_me: WARNING: Your processor supports sse2 instructions but not your compiler, can you try another compiler?" >&2;}
17189 if test "$ax_cv_have_sse3_ext" = yes; then
17190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse3" >&5
17191 $as_echo_n "checking whether C compiler accepts -msse3... " >&6; }
17192 if ${ax_cv_check_cflags___msse3+:} false; then :
17193 $as_echo_n "(cached) " >&6
17196 ax_check_save_flags=$CFLAGS
17197 CFLAGS="$CFLAGS -msse3"
17198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17199 /* end confdefs.h. */
17209 if ac_fn_c_try_compile "$LINENO"; then :
17210 ax_cv_check_cflags___msse3=yes
17212 ax_cv_check_cflags___msse3=no
17214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17215 CFLAGS=$ax_check_save_flags
17217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse3" >&5
17218 $as_echo "$ax_cv_check_cflags___msse3" >&6; }
17219 if test x"$ax_cv_check_cflags___msse3" = xyes; then :
17220 ax_cv_support_sse3_ext=yes
17225 if test x"$ax_cv_support_sse3_ext" = x"yes"; then
17226 SIMD_FLAGS="$SIMD_FLAGS -msse3"
17228 $as_echo "@%:@define HAVE_SSE3 /**/" >>confdefs.h
17231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your processor supports sse3 instructions but not your compiler, can you try another compiler?" >&5
17232 $as_echo "$as_me: WARNING: Your processor supports sse3 instructions but not your compiler, can you try another compiler?" >&2;}
17236 if test "$ax_cv_have_ssse3_ext" = yes; then
17237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mssse3" >&5
17238 $as_echo_n "checking whether C compiler accepts -mssse3... " >&6; }
17239 if ${ax_cv_check_cflags___mssse3+:} false; then :
17240 $as_echo_n "(cached) " >&6
17243 ax_check_save_flags=$CFLAGS
17244 CFLAGS="$CFLAGS -mssse3"
17245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17246 /* end confdefs.h. */
17256 if ac_fn_c_try_compile "$LINENO"; then :
17257 ax_cv_check_cflags___mssse3=yes
17259 ax_cv_check_cflags___mssse3=no
17261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17262 CFLAGS=$ax_check_save_flags
17264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mssse3" >&5
17265 $as_echo "$ax_cv_check_cflags___mssse3" >&6; }
17266 if test x"$ax_cv_check_cflags___mssse3" = xyes; then :
17267 ax_cv_support_ssse3_ext=yes
17272 if test x"$ax_cv_support_ssse3_ext" = x"yes"; then
17273 SIMD_FLAGS="$SIMD_FLAGS -mssse3"
17275 $as_echo "@%:@define HAVE_SSSE3 /**/" >>confdefs.h
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your processor supports ssse3 instructions but not your compiler, can you try another compiler?" >&5
17279 $as_echo "$as_me: WARNING: Your processor supports ssse3 instructions but not your compiler, can you try another compiler?" >&2;}
17283 if test "$ax_cv_have_sse41_ext" = yes; then
17284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse4.1" >&5
17285 $as_echo_n "checking whether C compiler accepts -msse4.1... " >&6; }
17286 if ${ax_cv_check_cflags___msse4_1+:} false; then :
17287 $as_echo_n "(cached) " >&6
17290 ax_check_save_flags=$CFLAGS
17291 CFLAGS="$CFLAGS -msse4.1"
17292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17293 /* end confdefs.h. */
17303 if ac_fn_c_try_compile "$LINENO"; then :
17304 ax_cv_check_cflags___msse4_1=yes
17306 ax_cv_check_cflags___msse4_1=no
17308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17309 CFLAGS=$ax_check_save_flags
17311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse4_1" >&5
17312 $as_echo "$ax_cv_check_cflags___msse4_1" >&6; }
17313 if test x"$ax_cv_check_cflags___msse4_1" = xyes; then :
17314 ax_cv_support_sse41_ext=yes
17319 if test x"$ax_cv_support_sse41_ext" = x"yes"; then
17320 SIMD_FLAGS="$SIMD_FLAGS -msse4.1"
17322 $as_echo "@%:@define HAVE_SSE4_1 /**/" >>confdefs.h
17325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your processor supports sse4.1 instructions but not your compiler, can you try another compiler?" >&5
17326 $as_echo "$as_me: WARNING: Your processor supports sse4.1 instructions but not your compiler, can you try another compiler?" >&2;}
17330 if test "$ax_cv_have_sse42_ext" = yes; then
17331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse4.2" >&5
17332 $as_echo_n "checking whether C compiler accepts -msse4.2... " >&6; }
17333 if ${ax_cv_check_cflags___msse4_2+:} false; then :
17334 $as_echo_n "(cached) " >&6
17337 ax_check_save_flags=$CFLAGS
17338 CFLAGS="$CFLAGS -msse4.2"
17339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17340 /* end confdefs.h. */
17350 if ac_fn_c_try_compile "$LINENO"; then :
17351 ax_cv_check_cflags___msse4_2=yes
17353 ax_cv_check_cflags___msse4_2=no
17355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17356 CFLAGS=$ax_check_save_flags
17358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse4_2" >&5
17359 $as_echo "$ax_cv_check_cflags___msse4_2" >&6; }
17360 if test x"$ax_cv_check_cflags___msse4_2" = xyes; then :
17361 ax_cv_support_sse42_ext=yes
17366 if test x"$ax_cv_support_sse42_ext" = x"yes"; then
17367 SIMD_FLAGS="$SIMD_FLAGS -msse4.2"
17369 $as_echo "@%:@define HAVE_SSE4_2 /**/" >>confdefs.h
17372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your processor supports sse4.2 instructions but not your compiler, can you try another compiler?" >&5
17373 $as_echo "$as_me: WARNING: Your processor supports sse4.2 instructions but not your compiler, can you try another compiler?" >&2;}
17377 if test "$ax_cv_have_avx_ext" = yes; then
17378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx" >&5
17379 $as_echo_n "checking whether C compiler accepts -mavx... " >&6; }
17380 if ${ax_cv_check_cflags___mavx+:} false; then :
17381 $as_echo_n "(cached) " >&6
17384 ax_check_save_flags=$CFLAGS
17385 CFLAGS="$CFLAGS -mavx"
17386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17387 /* end confdefs.h. */
17397 if ac_fn_c_try_compile "$LINENO"; then :
17398 ax_cv_check_cflags___mavx=yes
17400 ax_cv_check_cflags___mavx=no
17402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17403 CFLAGS=$ax_check_save_flags
17405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mavx" >&5
17406 $as_echo "$ax_cv_check_cflags___mavx" >&6; }
17407 if test x"$ax_cv_check_cflags___mavx" = xyes; then :
17408 ax_cv_support_avx_ext=yes
17413 if test x"$ax_cv_support_avx_ext" = x"yes"; then
17414 SIMD_FLAGS="$SIMD_FLAGS -mavx"
17416 $as_echo "@%:@define HAVE_AVX /**/" >>confdefs.h
17419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your processor supports avx instructions but not your compiler, can you try another compiler?" >&5
17420 $as_echo "$as_me: WARNING: Your processor supports avx instructions but not your compiler, can you try another compiler?" >&2;}
17430 @%:@ Check whether --enable-sse was given.
17431 if test "${enable_sse+set}" = set; then :
17432 enableval=$enable_sse; if test "x$enableval" = "xno" ; then
17434 echo "DISABLED SSE!!!"
17440 # Checks for library functions.
17441 for ac_header in stdlib.h
17443 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
17444 if test "x$ac_cv_header_stdlib_h" = xyes; then :
17445 cat >>confdefs.h <<_ACEOF
17446 @%:@define HAVE_STDLIB_H 1
17453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
17454 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
17455 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
17456 $as_echo_n "(cached) " >&6
17458 if test "$cross_compiling" = yes; then :
17459 ac_cv_func_malloc_0_nonnull=no
17461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17462 /* end confdefs.h. */
17463 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
17464 # include <stdlib.h>
17472 return ! malloc (0);
17477 if ac_fn_c_try_run "$LINENO"; then :
17478 ac_cv_func_malloc_0_nonnull=yes
17480 ac_cv_func_malloc_0_nonnull=no
17482 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17483 conftest.$ac_objext conftest.beam conftest.$ac_ext
17487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
17488 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
17489 if test $ac_cv_func_malloc_0_nonnull = yes; then :
17491 $as_echo "@%:@define HAVE_MALLOC 1" >>confdefs.h
17494 $as_echo "@%:@define HAVE_MALLOC 0" >>confdefs.h
17496 case " $LIB@&t@OBJS " in
17497 *" malloc.$ac_objext "* ) ;;
17498 *) LIB@&t@OBJS="$LIB@&t@OBJS malloc.$ac_objext"
17503 $as_echo "@%:@define malloc rpl_malloc" >>confdefs.h
17508 for ac_func in bzero getcwd gettimeofday mkdir strchr strdup strrchr
17510 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17511 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17512 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17513 cat >>confdefs.h <<_ACEOF
17514 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17521 ac_config_files="$ac_config_files Examples/Makefile Makefile src/Makefile"
17523 cat >confcache <<\_ACEOF
17524 # This file is a shell script that caches the results of configure
17525 # tests run on this system so they can be shared between configure
17526 # scripts and configure runs, see configure's option --config-cache.
17527 # It is not useful on other systems. If it contains results you don't
17528 # want to keep, you may remove or edit it.
17530 # config.status only pays attention to the cache file if you give it
17531 # the --recheck option to rerun configure.
17533 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17534 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17535 # following values.
17539 # The following way of writing the cache mishandles newlines in values,
17540 # but we know of no workaround that is simple, portable, and efficient.
17541 # So, we kill variables containing newlines.
17542 # Ultrix sh set writes to stderr and can't be redirected directly,
17543 # and sets the high bit in the cache file unless we assign to the vars.
17545 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17546 eval ac_val=\$$ac_var
17550 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17551 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17554 _ | IFS | as_nl) ;; #(
17555 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17556 *) { eval $ac_var=; unset $ac_var;} ;;
17562 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17563 *${as_nl}ac_space=\ *)
17564 # `set' does not quote correctly, so add quotes: double-quote
17565 # substitution turns \\\\ into \\, and sed turns \\ into \.
17568 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17571 # `set' quotes correctly as required by POSIX, so do not add quotes.
17572 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17581 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17583 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17585 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17586 if test -w "$cache_file"; then
17587 if test "x$cache_file" != "x/dev/null"; then
17588 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17589 $as_echo "$as_me: updating cache $cache_file" >&6;}
17590 if test ! -f "$cache_file" || test -h "$cache_file"; then
17591 cat confcache >"$cache_file"
17593 case $cache_file in #(
17595 mv -f confcache "$cache_file"$$ &&
17596 mv -f "$cache_file"$$ "$cache_file" ;; #(
17598 mv -f confcache "$cache_file" ;;
17603 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17604 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17609 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17610 # Let make expand exec_prefix.
17611 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17613 DEFS=-DHAVE_CONFIG_H
17618 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
17619 # 1. Remove the extension, and $U if already installed.
17620 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17621 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17622 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17623 # will be set to the directory where LIBOBJS objects are built.
17624 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17625 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17627 LIB@&t@OBJS=$ac_libobjs
17629 LTLIBOBJS=$ac_ltlibobjs
17632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17633 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17634 if test -n "$am_sleep_pid"; then
17635 # Hide warnings about reused PIDs.
17636 wait $am_sleep_pid 2>/dev/null
17638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17639 $as_echo "done" >&6; }
17640 if test -n "$EXEEXT"; then
17642 am__EXEEXT_FALSE='#'
17644 am__EXEEXT_TRUE='#'
17648 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17649 as_fn_error $? "conditional \"AMDEP\" was never defined.
17650 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17652 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17653 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17654 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17656 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17657 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17658 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17660 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17661 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17662 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17665 : "${CONFIG_STATUS=./config.status}"
17667 ac_clean_files_save=$ac_clean_files
17668 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17669 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17670 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17672 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17674 # Generated by $as_me.
17675 # Run this file to recreate the current configuration.
17676 # Compiler output produced by configure, useful for debugging
17677 # configure, is in config.log if it exists.
17680 ac_cs_recheck=false
17683 SHELL=\${CONFIG_SHELL-$SHELL}
17686 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17687 ## -------------------- ##
17688 ## M4sh Initialization. ##
17689 ## -------------------- ##
17691 # Be more Bourne compatible
17692 DUALCASE=1; export DUALCASE # for MKS sh
17693 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17696 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17697 # is contrary to our usage. Disable this feature.
17698 alias -g '${1+"$@"}'='"$@"'
17699 setopt NO_GLOB_SUBST
17701 case `(set -o) 2>/dev/null` in @%:@(
17703 set -o posix ;; @%:@(
17713 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17714 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17715 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17716 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17717 # Prefer a ksh shell builtin over an external printf program on Solaris,
17718 # but without wasting forks for bash or zsh.
17719 if test -z "$BASH_VERSION$ZSH_VERSION" \
17720 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17721 as_echo='print -r --'
17722 as_echo_n='print -rn --'
17723 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17724 as_echo='printf %s\n'
17725 as_echo_n='printf %s'
17727 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17728 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17729 as_echo_n='/usr/ucb/echo -n'
17731 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17732 as_echo_n_body='eval
17736 expr "X$arg" : "X\\(.*\\)$as_nl";
17737 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17739 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17741 export as_echo_n_body
17742 as_echo_n='sh -c $as_echo_n_body as_echo'
17744 export as_echo_body
17745 as_echo='sh -c $as_echo_body as_echo'
17748 # The user is always right.
17749 if test "${PATH_SEPARATOR+set}" != set; then
17751 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17752 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17759 # We need space, tab and new line, in precisely that order. Quoting is
17760 # there to prevent editors from complaining about space-tab.
17761 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17762 # splitting by setting IFS to empty value.)
17765 # Find who we are. Look in the path if we contain no directory separator.
17768 *[\\/]* ) as_myself=$0 ;;
17769 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17770 for as_dir in $PATH
17773 test -z "$as_dir" && as_dir=.
17774 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17780 # We did not find ourselves, most probably we were run as `sh COMMAND'
17781 # in which case we are not to be found in the path.
17782 if test "x$as_myself" = x; then
17785 if test ! -f "$as_myself"; then
17786 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17790 # Unset variables that we do not need and which cause bugs (e.g. in
17791 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17792 # suppresses any "Segmentation fault" message there. '((' could
17793 # trigger a bug in pdksh 5.2.14.
17794 for as_var in BASH_ENV ENV MAIL MAILPATH
17795 do eval test x\${$as_var+set} = xset \
17796 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17809 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17812 @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
17813 @%:@ ----------------------------------------
17814 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17815 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17816 @%:@ script with STATUS, using 1 if that was 0.
17819 as_status=$1; test $as_status -eq 0 && as_status=1
17821 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17822 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17824 $as_echo "$as_me: error: $2" >&2
17825 as_fn_exit $as_status
17829 @%:@ as_fn_set_status STATUS
17830 @%:@ -----------------------
17831 @%:@ Set @S|@? to STATUS, without forking.
17832 as_fn_set_status ()
17835 } @%:@ as_fn_set_status
17837 @%:@ as_fn_exit STATUS
17838 @%:@ -----------------
17839 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17843 as_fn_set_status $1
17847 @%:@ as_fn_unset VAR
17848 @%:@ ---------------
17849 @%:@ Portably unset VAR.
17852 { eval $1=; unset $1;}
17854 as_unset=as_fn_unset
17855 @%:@ as_fn_append VAR VALUE
17856 @%:@ ----------------------
17857 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
17858 @%:@ advantage of any shell optimizations that allow amortized linear growth over
17859 @%:@ repeated appends, instead of the typical quadratic growth present in naive
17860 @%:@ implementations.
17861 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17862 eval 'as_fn_append ()
17873 @%:@ as_fn_arith ARG...
17874 @%:@ ------------------
17875 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
17876 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
17877 @%:@ must be portable across @S|@(()) and expr.
17878 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17879 eval 'as_fn_arith ()
17886 as_val=`expr "$@" || test $? -eq 1`
17891 if expr a : '\(a\)' >/dev/null 2>&1 &&
17892 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17898 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17899 as_basename=basename
17904 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17910 as_me=`$as_basename -- "$0" ||
17911 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17912 X"$0" : 'X\(//\)$' \| \
17913 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17915 sed '/^.*\/\([^/][^/]*\)\/*$/{
17929 # Avoid depending upon Character Ranges.
17930 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17931 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17932 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17933 as_cr_digits='0123456789'
17934 as_cr_alnum=$as_cr_Letters$as_cr_digits
17936 ECHO_C= ECHO_N= ECHO_T=
17937 case `echo -n x` in @%:@(((((
17939 case `echo 'xy\c'` in
17940 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17942 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17949 rm -f conf$$ conf$$.exe conf$$.file
17950 if test -d conf$$.dir; then
17951 rm -f conf$$.dir/conf$$.file
17954 mkdir conf$$.dir 2>/dev/null
17956 if (echo >conf$$.file) 2>/dev/null; then
17957 if ln -s conf$$.file conf$$ 2>/dev/null; then
17959 # ... but there are two gotchas:
17960 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17961 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17962 # In both cases, we have to default to `cp -pR'.
17963 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17965 elif ln conf$$.file conf$$ 2>/dev/null; then
17973 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17974 rmdir conf$$.dir 2>/dev/null
17979 @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
17984 -*) as_dir=./$as_dir;;
17986 test -d "$as_dir" || eval $as_mkdir_p || {
17990 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17991 *) as_qdir=$as_dir;;
17993 as_dirs="'$as_qdir' $as_dirs"
17994 as_dir=`$as_dirname -- "$as_dir" ||
17995 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17996 X"$as_dir" : 'X\(//\)[^/]' \| \
17997 X"$as_dir" : 'X\(//\)$' \| \
17998 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17999 $as_echo X"$as_dir" |
18000 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18004 /^X\(\/\/\)[^/].*/{
18017 test -d "$as_dir" && break
18019 test -z "$as_dirs" || eval "mkdir $as_dirs"
18020 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18023 } @%:@ as_fn_mkdir_p
18024 if mkdir -p . 2>/dev/null; then
18025 as_mkdir_p='mkdir -p "$as_dir"'
18027 test -d ./-p && rmdir ./-p
18032 @%:@ as_fn_executable_p FILE
18033 @%:@ -----------------------
18034 @%:@ Test if FILE is an executable regular file.
18035 as_fn_executable_p ()
18037 test -f "$1" && test -x "$1"
18038 } @%:@ as_fn_executable_p
18039 as_test_x='test -x'
18040 as_executable_p=as_fn_executable_p
18042 # Sed expression to map a string onto a valid CPP name.
18043 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18045 # Sed expression to map a string onto a valid variable name.
18046 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18050 ## ----------------------------------- ##
18051 ## Main body of $CONFIG_STATUS script. ##
18052 ## ----------------------------------- ##
18054 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18057 # Save the log message, to keep $0 and so on meaningful, and to
18058 # report actual input values of CONFIG_FILES etc. instead of their
18059 # values after options handling.
18061 This file was extended by Jerasure $as_me 2.0, which was
18062 generated by GNU Autoconf 2.69. Invocation command line was
18064 CONFIG_FILES = $CONFIG_FILES
18065 CONFIG_HEADERS = $CONFIG_HEADERS
18066 CONFIG_LINKS = $CONFIG_LINKS
18067 CONFIG_COMMANDS = $CONFIG_COMMANDS
18070 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18075 case $ac_config_files in *"
18076 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18079 case $ac_config_headers in *"
18080 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18084 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18085 # Files that config.status was made for.
18086 config_files="$ac_config_files"
18087 config_headers="$ac_config_headers"
18088 config_commands="$ac_config_commands"
18092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18094 \`$as_me' instantiates files and other configuration actions
18095 from templates according to the current configuration. Unless the files
18096 and actions are specified as TAGs, all are instantiated by default.
18098 Usage: $0 [OPTION]... [TAG]...
18100 -h, --help print this help, then exit
18101 -V, --version print version number and configuration settings, then exit
18102 --config print configuration, then exit
18103 -q, --quiet, --silent
18104 do not print progress messages
18105 -d, --debug don't remove temporary files
18106 --recheck update $as_me by reconfiguring in the same conditions
18107 --file=FILE[:TEMPLATE]
18108 instantiate the configuration file FILE
18109 --header=FILE[:TEMPLATE]
18110 instantiate the configuration header FILE
18112 Configuration files:
18115 Configuration headers:
18118 Configuration commands:
18121 Report bugs to the package provider.
18122 Jerasure home page: <https://jerasure.org/jerasure/jerasure>."
18125 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18126 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18128 Jerasure config.status 2.0
18129 configured by $0, generated by GNU Autoconf 2.69,
18130 with options \\"\$ac_cs_config\\"
18132 Copyright (C) 2012 Free Software Foundation, Inc.
18133 This config.status script is free software; the Free Software Foundation
18134 gives unlimited permission to copy, distribute and modify it."
18141 test -n "\$AWK" || AWK=awk
18144 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18145 # The default lists apply if the user does not specify any file.
18151 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18152 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18156 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18168 # Handling of the options.
18169 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18171 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18172 $as_echo "$ac_cs_version"; exit ;;
18173 --config | --confi | --conf | --con | --co | --c )
18174 $as_echo "$ac_cs_config"; exit ;;
18175 --debug | --debu | --deb | --de | --d | -d )
18177 --file | --fil | --fi | --f )
18180 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18181 '') as_fn_error $? "missing file argument" ;;
18183 as_fn_append CONFIG_FILES " '$ac_optarg'"
18184 ac_need_defaults=false;;
18185 --header | --heade | --head | --hea )
18188 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18190 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18191 ac_need_defaults=false;;
18193 # Conflict between --help and --header
18194 as_fn_error $? "ambiguous option: \`$1'
18195 Try \`$0 --help' for more information.";;
18196 --help | --hel | -h )
18197 $as_echo "$ac_cs_usage"; exit ;;
18198 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18199 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18202 # This is an error.
18203 -*) as_fn_error $? "unrecognized option: \`$1'
18204 Try \`$0 --help' for more information." ;;
18206 *) as_fn_append ac_config_targets " $1"
18207 ac_need_defaults=false ;;
18213 ac_configure_extra_args=
18215 if $ac_cs_silent; then
18217 ac_configure_extra_args="$ac_configure_extra_args --silent"
18221 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18222 if \$ac_cs_recheck; then
18223 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18225 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18226 CONFIG_SHELL='$SHELL'
18227 export CONFIG_SHELL
18232 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18236 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
18237 @%:@@%:@ Running $as_me. @%:@@%:@
18243 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18247 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18250 # The HP-UX ksh and POSIX shell print the target directory to stdout
18251 # if CDPATH is set.
18252 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18254 sed_quote_subst='$sed_quote_subst'
18255 double_quote_subst='$double_quote_subst'
18256 delay_variable_subst='$delay_variable_subst'
18257 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18258 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18259 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18260 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18261 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18262 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18263 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18264 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18265 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18266 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18267 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18268 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18269 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18270 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18271 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18272 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18273 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18274 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18275 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18276 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18277 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18278 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18279 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18280 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18281 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18282 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18283 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18284 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18285 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18286 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18287 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18288 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18289 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18290 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18291 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18292 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18293 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18294 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18295 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18296 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18297 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18298 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18299 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18300 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18301 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18302 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18303 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18304 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18305 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18306 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18307 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18308 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18309 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18310 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18311 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18312 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18313 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18314 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18315 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"`'
18316 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18317 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18318 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18319 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18320 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18321 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18322 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18323 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18324 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18325 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18326 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18327 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18328 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18329 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18330 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18331 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18332 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18333 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18334 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18335 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18336 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18337 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18338 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18339 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18340 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18341 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18342 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18343 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18344 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18345 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18346 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18347 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18348 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18349 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18350 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18351 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18352 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18353 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18354 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18355 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18356 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18357 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18358 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18359 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18360 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18361 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18362 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18363 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18364 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18365 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18366 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18367 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18368 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18369 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18370 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18371 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18372 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18373 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18374 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18375 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18376 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18377 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18378 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18379 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18380 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18381 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18382 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18383 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18384 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18385 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18386 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18387 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18388 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18389 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18390 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18391 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18392 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18393 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18394 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18395 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18396 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18397 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18398 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18399 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18400 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18401 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18402 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18403 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18404 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18405 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18406 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18407 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18408 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18409 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18410 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18411 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18412 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18413 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18414 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18415 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18416 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18417 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18418 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18419 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18420 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18421 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18422 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18423 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18424 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18425 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18426 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18427 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18428 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18429 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18430 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18431 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18432 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18433 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18434 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18435 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18436 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18437 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18438 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18439 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18440 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18441 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18442 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18443 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18444 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18445 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18448 LTCFLAGS='$LTCFLAGS'
18449 compiler='$compiler_DEFAULT'
18451 # A function that is used when there is no print builtin or printf.
18452 func_fallback_echo ()
18454 eval 'cat <<_LTECHO_EOF
18459 # Quote evaled strings.
18474 deplibs_check_method \
18479 sharedlib_from_linklib_cmd \
18482 archiver_list_spec \
18488 lt_cv_sys_global_symbol_pipe \
18489 lt_cv_sys_global_symbol_to_cdecl \
18490 lt_cv_sys_global_symbol_to_import \
18491 lt_cv_sys_global_symbol_to_c_name_address \
18492 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18493 lt_cv_nm_interface \
18494 nm_file_list_spec \
18495 lt_cv_truncate_bin \
18496 lt_prog_compiler_no_builtin_flag \
18497 lt_prog_compiler_pic \
18498 lt_prog_compiler_wl \
18499 lt_prog_compiler_static \
18500 lt_cv_prog_compiler_c_o \
18509 export_dynamic_flag_spec \
18510 whole_archive_flag_spec \
18511 compiler_needs_object \
18513 allow_undefined_flag \
18514 no_undefined_flag \
18515 hardcode_libdir_flag_spec \
18516 hardcode_libdir_separator \
18520 variables_saved_for_relink \
18522 library_names_spec \
18524 install_override_mode \
18528 compiler_lib_search_dirs \
18533 compiler_lib_search_path \
18537 lt_prog_compiler_no_builtin_flag_CXX \
18538 lt_prog_compiler_pic_CXX \
18539 lt_prog_compiler_wl_CXX \
18540 lt_prog_compiler_static_CXX \
18541 lt_cv_prog_compiler_c_o_CXX \
18542 export_dynamic_flag_spec_CXX \
18543 whole_archive_flag_spec_CXX \
18544 compiler_needs_object_CXX \
18546 allow_undefined_flag_CXX \
18547 no_undefined_flag_CXX \
18548 hardcode_libdir_flag_spec_CXX \
18549 hardcode_libdir_separator_CXX \
18550 exclude_expsyms_CXX \
18551 include_expsyms_CXX \
18552 file_list_spec_CXX \
18553 compiler_lib_search_dirs_CXX \
18554 predep_objects_CXX \
18555 postdep_objects_CXX \
18558 compiler_lib_search_path_CXX; do
18559 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18560 *[\\\\\\\`\\"\\\$]*)
18561 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18564 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18569 # Double-quote double-evaled strings.
18570 for var in reload_cmds \
18571 old_postinstall_cmds \
18572 old_postuninstall_cmds \
18574 extract_expsyms_cmds \
18575 old_archive_from_new_cmds \
18576 old_archive_from_expsyms_cmds \
18578 archive_expsym_cmds \
18580 module_expsym_cmds \
18581 export_symbols_cmds \
18585 postuninstall_cmds \
18587 sys_lib_search_path_spec \
18588 configure_time_dlsearch_path \
18589 configure_time_lt_sys_library_path \
18591 old_archive_cmds_CXX \
18592 old_archive_from_new_cmds_CXX \
18593 old_archive_from_expsyms_cmds_CXX \
18595 archive_expsym_cmds_CXX \
18597 module_expsym_cmds_CXX \
18598 export_symbols_cmds_CXX \
18600 postlink_cmds_CXX; do
18601 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18602 *[\\\\\\\`\\"\\\$]*)
18603 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18606 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18611 ac_aux_dir='$ac_aux_dir'
18613 # See if we are running on zsh, and set the options that allow our
18614 # commands through without removal of \ escapes INIT.
18615 if test -n "\${ZSH_VERSION+set}"; then
18616 setopt NO_GLOB_SUBST
18632 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18634 # Handling of arguments.
18635 for ac_config_target in $ac_config_targets
18637 case $ac_config_target in
18638 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
18639 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18640 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18641 "Examples/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/Makefile" ;;
18642 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18643 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18645 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18650 # If the user did not use the arguments to specify the items to instantiate,
18651 # then the envvar interface is used. Set only those that are not.
18652 # We use the long form for the default assignment because of an extremely
18653 # bizarre bug on SunOS 4.1.3.
18654 if $ac_need_defaults; then
18655 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18656 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18657 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18660 # Have a temporary directory for convenience. Make it in the build tree
18661 # simply because there is no reason against having it here, and in addition,
18662 # creating and moving files from /tmp can sometimes cause problems.
18663 # Hook for its removal unless debugging.
18664 # Note that there is a small window in which the directory will not be cleaned:
18665 # after its creation but before its name has been assigned to `$tmp'.
18669 trap 'exit_status=$?
18670 : "${ac_tmp:=$tmp}"
18671 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18673 trap 'as_fn_exit 1' 1 2 13 15
18675 # Create a (secure) tmp directory for tmp files.
18678 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18682 tmp=./conf$$-$RANDOM
18683 (umask 077 && mkdir "$tmp")
18684 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18687 # Set up the scripts for CONFIG_FILES section.
18688 # No need to generate them if there are no CONFIG_FILES.
18689 # This happens for instance with `./config.status config.h'.
18690 if test -n "$CONFIG_FILES"; then
18693 ac_cr=`echo X | tr X '\015'`
18694 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18695 # But we know of no other shell where ac_cr would be empty at this
18696 # point, so we can use a bashism as a fallback.
18697 if test "x$ac_cr" = x; then
18698 eval ac_cr=\$\'\\r\'
18700 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18701 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18704 ac_cs_awk_cr=$ac_cr
18707 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18712 echo "cat >conf$$subs.awk <<_ACEOF" &&
18713 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18715 } >conf$$subs.sh ||
18716 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18717 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18719 for ac_last_try in false false false false false :; do
18720 . ./conf$$subs.sh ||
18721 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18723 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18724 if test $ac_delim_n = $ac_delim_num; then
18726 elif $ac_last_try; then
18727 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18729 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18732 rm -f conf$$subs.sh
18734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18735 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18739 s/^/S["/; s/!.*/"]=/
18749 s/\(.\{148\}\)..*/\1/
18751 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18756 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18763 s/\(.\{148\}\)..*/\1/
18765 s/["\\]/\\&/g; s/^/"/; s/$/"/
18769 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18774 ' <conf$$subs.awk | sed '
18779 ' >>$CONFIG_STATUS || ac_write_fail=1
18780 rm -f conf$$subs.awk
18781 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18783 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18784 for (key in S) S_is_set[key] = 1
18790 nfields = split(line, field, "@")
18792 len = length(field[1])
18793 for (i = 2; i < nfields; i++) {
18795 keylen = length(key)
18796 if (S_is_set[key]) {
18798 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18799 len += length(value) + length(field[++i])
18810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18811 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18812 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18815 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18816 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18819 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18820 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18821 # trailing colons and then remove the whole line if VPATH becomes empty
18822 # (actually we leave an empty line to preserve line numbers).
18823 if test "x$srcdir" = x.; then
18824 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18842 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18843 fi # test -n "$CONFIG_FILES"
18845 # Set up the scripts for CONFIG_HEADERS section.
18846 # No need to generate them if there are no CONFIG_HEADERS.
18847 # This happens for instance with `./config.status Makefile'.
18848 if test -n "$CONFIG_HEADERS"; then
18849 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18853 # Transform confdefs.h into an awk script `defines.awk', embedded as
18854 # here-document in config.status, that substitutes the proper values into
18855 # config.h.in to produce config.h.
18857 # Create a delimiter string that does not exist in confdefs.h, to ease
18858 # handling of long lines.
18860 for ac_last_try in false false :; do
18861 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18862 if test -z "$ac_tt"; then
18864 elif $ac_last_try; then
18865 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18867 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18871 # For the awk script, D is an array of macro values keyed by name,
18872 # likewise P contains macro parameters if any. Preserve backslash
18873 # newline sequences.
18875 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18877 s/.\{148\}/&'"$ac_delim"'/g
18880 s/^[ ]*#[ ]*define[ ][ ]*/ /
18887 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18889 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18893 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18894 D["\1"]=" \3\\\\\\n"\\/p
18896 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18901 s/.\{148\}/&'"$ac_delim"'/g
18906 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18909 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18911 ' <confdefs.h | sed '
18912 s/'"$ac_delim"'/"\\\
18913 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18915 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18916 for (key in D) D_is_set[key] = 1
18919 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18921 split(line, arg, " ")
18922 if (arg[1] == "#") {
18926 defundef = substr(arg[1], 2)
18929 split(mac1, mac2, "(") #)
18931 prefix = substr(line, 1, index(line, defundef) - 1)
18932 if (D_is_set[macro]) {
18933 # Preserve the white space surrounding the "#".
18934 print prefix "define", macro P[macro] D[macro]
18937 # Replace #undef with comments. This is necessary, for example,
18938 # in the case of _POSIX_SOURCE, which is predefined and required
18939 # on some systems where configure will not decide to define it.
18940 if (defundef == "undef") {
18941 print "/*", prefix defundef, macro, "*/"
18949 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18950 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18951 fi # test -n "$CONFIG_HEADERS"
18954 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18959 :[FHLC]) ac_mode=$ac_tag; continue;;
18961 case $ac_mode$ac_tag in
18963 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18964 :[FH]-) ac_tag=-:-;;
18965 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18982 -) ac_f="$ac_tmp/stdin";;
18983 *) # Look for the file first in the build tree, then in the source tree
18984 # (if the path is not absolute). The absolute path cannot be DOS-style,
18985 # because $ac_f cannot contain `:'.
18989 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18991 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18993 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18994 as_fn_append ac_file_inputs " '$ac_f'"
18997 # Let's still pretend it is `configure' which instantiates (i.e., don't
18998 # use $as_me), people would be surprised to read:
18999 # /* config.h. Generated by config.status. */
19000 configure_input='Generated from '`
19001 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19003 if test x"$ac_file" != x-; then
19004 configure_input="$ac_file. $configure_input"
19005 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19006 $as_echo "$as_me: creating $ac_file" >&6;}
19008 # Neutralize special characters interpreted by sed in replacement strings.
19009 case $configure_input in #(
19010 *\&* | *\|* | *\\* )
19011 ac_sed_conf_input=`$as_echo "$configure_input" |
19012 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19013 *) ac_sed_conf_input=$configure_input;;
19017 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19018 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19023 ac_dir=`$as_dirname -- "$ac_file" ||
19024 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19025 X"$ac_file" : 'X\(//\)[^/]' \| \
19026 X"$ac_file" : 'X\(//\)$' \| \
19027 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19028 $as_echo X"$ac_file" |
19029 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19033 /^X\(\/\/\)[^/].*/{
19046 as_dir="$ac_dir"; as_fn_mkdir_p
19050 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19052 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19053 # A ".." for each directory in $ac_dir_suffix.
19054 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19055 case $ac_top_builddir_sub in
19056 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19057 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19060 ac_abs_top_builddir=$ac_pwd
19061 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19062 # for backward compatibility:
19063 ac_top_builddir=$ac_top_build_prefix
19066 .) # We are building in place.
19068 ac_top_srcdir=$ac_top_builddir_sub
19069 ac_abs_top_srcdir=$ac_pwd ;;
19070 [\\/]* | ?:[\\/]* ) # Absolute name.
19071 ac_srcdir=$srcdir$ac_dir_suffix;
19072 ac_top_srcdir=$srcdir
19073 ac_abs_top_srcdir=$srcdir ;;
19074 *) # Relative name.
19075 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19076 ac_top_srcdir=$ac_top_build_prefix$srcdir
19077 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19079 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19089 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19090 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19092 ac_MKDIR_P=$MKDIR_P
19094 [\\/$]* | ?:[\\/]* ) ;;
19095 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19100 # If the template does not know about datarootdir, expand it.
19101 # FIXME: This hack should be removed a few years after 2.60.
19102 ac_datarootdir_hack=; ac_datarootdir_seen=
19113 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19114 *datarootdir*) ac_datarootdir_seen=yes;;
19115 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19117 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19120 ac_datarootdir_hack='
19121 s&@datadir@&$datadir&g
19122 s&@docdir@&$docdir&g
19123 s&@infodir@&$infodir&g
19124 s&@localedir@&$localedir&g
19125 s&@mandir@&$mandir&g
19126 s&\\\${datarootdir}&$datarootdir&g' ;;
19130 # Neutralize VPATH when `$srcdir' = `.'.
19131 # Shell code in configure.ac might set extrasub.
19132 # FIXME: do we really want to maintain this feature?
19133 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19134 ac_sed_extra="$ac_vpsub
19137 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19139 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19140 s|@configure_input@|$ac_sed_conf_input|;t t
19141 s&@top_builddir@&$ac_top_builddir_sub&;t t
19142 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19143 s&@srcdir@&$ac_srcdir&;t t
19144 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19145 s&@top_srcdir@&$ac_top_srcdir&;t t
19146 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19147 s&@builddir@&$ac_builddir&;t t
19148 s&@abs_builddir@&$ac_abs_builddir&;t t
19149 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19150 s&@INSTALL@&$ac_INSTALL&;t t
19151 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19152 $ac_datarootdir_hack
19154 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19155 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19157 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19158 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19159 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19160 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19162 which seems to be undefined. Please make sure it is defined" >&5
19163 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19164 which seems to be undefined. Please make sure it is defined" >&2;}
19166 rm -f "$ac_tmp/stdin"
19168 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19169 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19171 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19177 if test x"$ac_file" != x-; then
19179 $as_echo "/* $configure_input */" \
19180 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19181 } >"$ac_tmp/config.h" \
19182 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19183 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19184 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19185 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19188 mv "$ac_tmp/config.h" "$ac_file" \
19189 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19192 $as_echo "/* $configure_input */" \
19193 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19194 || as_fn_error $? "could not create -" "$LINENO" 5
19196 # Compute "$ac_file"'s index in $config_headers.
19199 for _am_header in $config_headers :; do
19200 case $_am_header in
19201 $_am_arg | $_am_arg:* )
19204 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19207 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19208 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19209 X"$_am_arg" : 'X\(//\)[^/]' \| \
19210 X"$_am_arg" : 'X\(//\)$' \| \
19211 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19212 $as_echo X"$_am_arg" |
19213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19217 /^X\(\/\/\)[^/].*/{
19229 s/.*/./; q'`/stamp-h$_am_stamp_count
19232 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19233 $as_echo "$as_me: executing $ac_file commands" >&6;}
19238 case $ac_file$ac_mode in
19239 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19240 # Older Autoconf quotes --file arguments for eval, but not when files
19241 # are listed without --file. Let's play safe and only enable the eval
19242 # if we detect the quoting.
19243 case $CONFIG_FILES in
19244 *\'*) eval set x "$CONFIG_FILES" ;;
19245 *) set x $CONFIG_FILES ;;
19250 # Strip MF so we end up with the name of the file.
19251 mf=`echo "$mf" | sed -e 's/:.*$//'`
19252 # Check whether this is an Automake generated Makefile or not.
19253 # We used to match only the files named 'Makefile.in', but
19254 # some people rename them; so instead we look at the file content.
19255 # Grep'ing the first line is not enough: some people post-process
19256 # each Makefile.in and add a new line on top of each file to say so.
19257 # Grep'ing the whole file is not good either: AIX grep has a line
19258 # limit of 2048, but all sed's we know have understand at least 4000.
19259 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19260 dirpart=`$as_dirname -- "$mf" ||
19261 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19262 X"$mf" : 'X\(//\)[^/]' \| \
19263 X"$mf" : 'X\(//\)$' \| \
19264 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19270 /^X\(\/\/\)[^/].*/{
19286 # Extract the definition of DEPDIR, am__include, and am__quote
19287 # from the Makefile without running 'make'.
19288 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19289 test -z "$DEPDIR" && continue
19290 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19291 test -z "$am__include" && continue
19292 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19293 # Find all dependency output files, they are included files with
19294 # $(DEPDIR) in their names. We invoke sed twice because it is the
19295 # simplest approach to changing $(DEPDIR) to its actual value in the
19297 for file in `sed -n "
19298 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19299 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19300 # Make sure the directory exists.
19301 test -f "$dirpart/$file" && continue
19302 fdir=`$as_dirname -- "$file" ||
19303 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19304 X"$file" : 'X\(//\)[^/]' \| \
19305 X"$file" : 'X\(//\)$' \| \
19306 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19307 $as_echo X"$file" |
19308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19312 /^X\(\/\/\)[^/].*/{
19325 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19326 # echo "creating $dirpart/$file"
19327 echo '# dummy' > "$dirpart/$file"
19334 # See if we are running on zsh, and set the options that allow our
19335 # commands through without removal of \ escapes.
19336 if test -n "${ZSH_VERSION+set}"; then
19337 setopt NO_GLOB_SUBST
19341 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19344 cat <<_LT_EOF >> "$cfgfile"
19346 # Generated automatically by $as_me ($PACKAGE) $VERSION
19347 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19349 # Provide generalized library-building support services.
19350 # Written by Gordon Matzigkeit, 1996
19352 # Copyright (C) 2014 Free Software Foundation, Inc.
19353 # This is free software; see the source for copying conditions. There is NO
19354 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19356 # GNU Libtool is free software; you can redistribute it and/or modify
19357 # it under the terms of the GNU General Public License as published by
19358 # the Free Software Foundation; either version 2 of of the License, or
19359 # (at your option) any later version.
19361 # As a special exception to the GNU General Public License, if you
19362 # distribute this file as part of a program or library that is built
19363 # using GNU Libtool, you may include this file under the same
19364 # distribution terms that you use for the rest of that program.
19366 # GNU Libtool is distributed in the hope that it will be useful, but
19367 # WITHOUT ANY WARRANTY; without even the implied warranty of
19368 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19369 # GNU General Public License for more details.
19371 # You should have received a copy of the GNU General Public License
19372 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19375 # The names of the tagged configurations supported by this script.
19376 available_tags='CXX '
19378 # Configured defaults for sys_lib_dlsearch_path munging.
19379 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19381 # ### BEGIN LIBTOOL CONFIG
19383 # Which release of libtool.m4 was used?
19384 macro_version=$macro_version
19385 macro_revision=$macro_revision
19387 # Whether or not to build static libraries.
19388 build_old_libs=$enable_static
19390 # Whether or not to build shared libraries.
19391 build_libtool_libs=$enable_shared
19393 # What type of objects to build.
19396 # Whether or not to optimize for fast installation.
19397 fast_install=$enable_fast_install
19399 # Shared archive member basename,for filename based shared library versioning on AIX.
19400 shared_archive_member_spec=$shared_archive_member_spec
19402 # Shell to use when invoking shell scripts.
19405 # An echo program that protects backslashes.
19408 # The PATH separator for the build system.
19409 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19412 host_alias=$host_alias
19416 # The build system.
19417 build_alias=$build_alias
19421 # A sed program that does not truncate output.
19424 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19425 Xsed="\$SED -e 1s/^X//"
19427 # A grep program that handles long lines.
19433 # A literal string matcher.
19436 # A BSD- or MS-compatible name lister.
19439 # Whether we need soft or hard links.
19442 # What is the maximum length of a command?
19443 max_cmd_len=$max_cmd_len
19445 # Object file suffix (normally "o").
19448 # Executable file suffix (normally "").
19451 # whether the shell understands "unset".
19454 # turn spaces into newlines.
19457 # turn newlines into spaces.
19460 # convert \$build file names to \$host format.
19461 to_host_file_cmd=$lt_cv_to_host_file_cmd
19463 # convert \$build files to toolchain format.
19464 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19466 # An object symbol dumper.
19467 OBJDUMP=$lt_OBJDUMP
19469 # Method to check whether dependent libraries are shared objects.
19470 deplibs_check_method=$lt_deplibs_check_method
19472 # Command to use when deplibs_check_method = "file_magic".
19473 file_magic_cmd=$lt_file_magic_cmd
19475 # How to find potential files when deplibs_check_method = "file_magic".
19476 file_magic_glob=$lt_file_magic_glob
19478 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19479 want_nocaseglob=$lt_want_nocaseglob
19481 # DLL creation program.
19482 DLLTOOL=$lt_DLLTOOL
19484 # Command to associate shared and link libraries.
19485 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19490 # Flags to create an archive.
19491 AR_FLAGS=$lt_AR_FLAGS
19493 # How to feed a file listing to the archiver.
19494 archiver_list_spec=$lt_archiver_list_spec
19496 # A symbol stripping program.
19499 # Commands used to install an old-style archive.
19501 old_postinstall_cmds=$lt_old_postinstall_cmds
19502 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19504 # Whether to use a lock for old archive extraction.
19505 lock_old_archive_extraction=$lock_old_archive_extraction
19510 # LTCC compiler flags.
19511 LTCFLAGS=$lt_CFLAGS
19513 # Take the output of nm and produce a listing of raw symbols and C names.
19514 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19516 # Transform the output of nm in a proper C declaration.
19517 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19519 # Transform the output of nm into a list of symbols to manually relocate.
19520 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19522 # Transform the output of nm in a C name address pair.
19523 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19525 # Transform the output of nm in a C name address pair when lib prefix is needed.
19526 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19528 # The name lister interface.
19529 nm_interface=$lt_lt_cv_nm_interface
19531 # Specify filename containing input files for \$NM.
19532 nm_file_list_spec=$lt_nm_file_list_spec
19534 # The root where to search for dependent libraries,and where our libraries should be installed.
19535 lt_sysroot=$lt_sysroot
19537 # Command to truncate a binary pipe.
19538 lt_truncate_bin=$lt_lt_cv_truncate_bin
19540 # The name of the directory that contains temporary libtool files.
19543 # Used to examine libraries when file_magic_cmd begins with "file".
19544 MAGIC_CMD=$MAGIC_CMD
19546 # Must we lock files when doing compilation?
19547 need_locks=$lt_need_locks
19550 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19552 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19553 DSYMUTIL=$lt_DSYMUTIL
19555 # Tool to change global to local symbols on Mac OS X.
19558 # Tool to manipulate fat objects and archives on Mac OS X.
19561 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19564 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19565 OTOOL64=$lt_OTOOL64
19567 # Old archive suffix (normally "a").
19570 # Shared library suffix (normally ".so").
19571 shrext_cmds=$lt_shrext_cmds
19573 # The commands to extract the exported symbol list from a shared archive.
19574 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19576 # Variables whose values should be saved in libtool wrapper scripts and
19577 # restored at link time.
19578 variables_saved_for_relink=$lt_variables_saved_for_relink
19580 # Do we need the "lib" prefix for modules?
19581 need_lib_prefix=$need_lib_prefix
19583 # Do we need a version for libraries?
19584 need_version=$need_version
19586 # Library versioning type.
19587 version_type=$version_type
19589 # Shared library runtime path variable.
19590 runpath_var=$runpath_var
19592 # Shared library path variable.
19593 shlibpath_var=$shlibpath_var
19595 # Is shlibpath searched before the hard-coded library search path?
19596 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19598 # Format of library name prefix.
19599 libname_spec=$lt_libname_spec
19601 # List of archive names. First name is the real one, the rest are links.
19602 # The last name is the one that the linker finds with -lNAME
19603 library_names_spec=$lt_library_names_spec
19605 # The coded name of the library, if different from the real name.
19606 soname_spec=$lt_soname_spec
19608 # Permission mode override for installation of shared libraries.
19609 install_override_mode=$lt_install_override_mode
19611 # Command to use after installation of a shared archive.
19612 postinstall_cmds=$lt_postinstall_cmds
19614 # Command to use after uninstallation of a shared archive.
19615 postuninstall_cmds=$lt_postuninstall_cmds
19617 # Commands used to finish a libtool library installation in a directory.
19618 finish_cmds=$lt_finish_cmds
19620 # As "finish_cmds", except a single script fragment to be evaled but
19622 finish_eval=$lt_finish_eval
19624 # Whether we should hardcode library paths into libraries.
19625 hardcode_into_libs=$hardcode_into_libs
19627 # Compile-time system search path for libraries.
19628 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19630 # Detected run-time system search path for libraries.
19631 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19633 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19634 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19636 # Whether dlopen is supported.
19637 dlopen_support=$enable_dlopen
19639 # Whether dlopen of programs is supported.
19640 dlopen_self=$enable_dlopen_self
19642 # Whether dlopen of statically linked programs is supported.
19643 dlopen_self_static=$enable_dlopen_self_static
19645 # Commands to strip libraries.
19646 old_striplib=$lt_old_striplib
19647 striplib=$lt_striplib
19650 # The linker used to build libraries.
19653 # How to create reloadable object files.
19654 reload_flag=$lt_reload_flag
19655 reload_cmds=$lt_reload_cmds
19657 # Commands used to build an old-style archive.
19658 old_archive_cmds=$lt_old_archive_cmds
19660 # A language specific compiler.
19663 # Is the compiler the GNU compiler?
19666 # Compiler flag to turn off builtin functions.
19667 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19669 # Additional compiler flags for building library objects.
19670 pic_flag=$lt_lt_prog_compiler_pic
19672 # How to pass a linker flag through the compiler.
19673 wl=$lt_lt_prog_compiler_wl
19675 # Compiler flag to prevent dynamic linking.
19676 link_static_flag=$lt_lt_prog_compiler_static
19678 # Does compiler simultaneously support -c and -o options?
19679 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19681 # Whether or not to add -lc for building shared libraries.
19682 build_libtool_need_lc=$archive_cmds_need_lc
19684 # Whether or not to disallow shared libs when runtime libs are static.
19685 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19687 # Compiler flag to allow reflexive dlopens.
19688 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19690 # Compiler flag to generate shared objects directly from archives.
19691 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19693 # Whether the compiler copes with passing no objects directly.
19694 compiler_needs_object=$lt_compiler_needs_object
19696 # Create an old-style archive from a shared archive.
19697 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19699 # Create a temporary old-style archive to link instead of a shared archive.
19700 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19702 # Commands used to build a shared archive.
19703 archive_cmds=$lt_archive_cmds
19704 archive_expsym_cmds=$lt_archive_expsym_cmds
19706 # Commands used to build a loadable module if different from building
19707 # a shared archive.
19708 module_cmds=$lt_module_cmds
19709 module_expsym_cmds=$lt_module_expsym_cmds
19711 # Whether we are building with GNU ld or not.
19712 with_gnu_ld=$lt_with_gnu_ld
19714 # Flag that allows shared libraries with undefined symbols to be built.
19715 allow_undefined_flag=$lt_allow_undefined_flag
19717 # Flag that enforces no undefined symbols.
19718 no_undefined_flag=$lt_no_undefined_flag
19720 # Flag to hardcode \$libdir into a binary during linking.
19721 # This must work even if \$libdir does not exist
19722 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19724 # Whether we need a single "-rpath" flag with a separated argument.
19725 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19727 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19728 # DIR into the resulting binary.
19729 hardcode_direct=$hardcode_direct
19731 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19732 # DIR into the resulting binary and the resulting library dependency is
19733 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19734 # library is relocated.
19735 hardcode_direct_absolute=$hardcode_direct_absolute
19737 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19738 # into the resulting binary.
19739 hardcode_minus_L=$hardcode_minus_L
19741 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19742 # into the resulting binary.
19743 hardcode_shlibpath_var=$hardcode_shlibpath_var
19745 # Set to "yes" if building a shared library automatically hardcodes DIR
19746 # into the library and all subsequent libraries and executables linked
19748 hardcode_automatic=$hardcode_automatic
19750 # Set to yes if linker adds runtime paths of dependent libraries
19751 # to runtime path list.
19752 inherit_rpath=$inherit_rpath
19754 # Whether libtool must link a program against all its dependency libraries.
19755 link_all_deplibs=$link_all_deplibs
19757 # Set to "yes" if exported symbols are required.
19758 always_export_symbols=$always_export_symbols
19760 # The commands to list exported symbols.
19761 export_symbols_cmds=$lt_export_symbols_cmds
19763 # Symbols that should not be listed in the preloaded symbols.
19764 exclude_expsyms=$lt_exclude_expsyms
19766 # Symbols that must always be exported.
19767 include_expsyms=$lt_include_expsyms
19769 # Commands necessary for linking programs (against libraries) with templates.
19770 prelink_cmds=$lt_prelink_cmds
19772 # Commands necessary for finishing linking programs.
19773 postlink_cmds=$lt_postlink_cmds
19775 # Specify filename containing input files.
19776 file_list_spec=$lt_file_list_spec
19778 # How to hardcode a shared library path into an executable.
19779 hardcode_action=$hardcode_action
19781 # The directories searched by this compiler when creating a shared library.
19782 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19784 # Dependencies to place before and after the objects being linked to
19785 # create a shared library.
19786 predep_objects=$lt_predep_objects
19787 postdep_objects=$lt_postdep_objects
19788 predeps=$lt_predeps
19789 postdeps=$lt_postdeps
19791 # The library search path used internally by the compiler when linking
19792 # a shared library.
19793 compiler_lib_search_path=$lt_compiler_lib_search_path
19795 # ### END LIBTOOL CONFIG
19799 cat <<'_LT_EOF' >> "$cfgfile"
19801 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19803 # func_munge_path_list VARIABLE PATH
19804 # -----------------------------------
19805 # VARIABLE is name of variable containing _space_ separated list of
19806 # directories to be munged by the contents of PATH, which is string
19809 # string "DIR[ DIR]" will be prepended to VARIABLE
19811 # string "DIR[ DIR]" will be appended to VARIABLE
19812 # "DIRP[:DIRP]::[DIRA:]DIRA"
19813 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19814 # "DIRA[ DIRA]" will be appended to VARIABLE
19816 # VARIABLE will be replaced by "DIR[ DIR]"
19817 func_munge_path_list ()
19823 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\"
19826 eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\"
19829 eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19830 eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\"
19833 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\"
19839 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
19840 func_cc_basename ()
19842 for cc_temp in @S|@*""; do
19844 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19845 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19850 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19854 # ### END FUNCTIONS SHARED WITH CONFIGURE
19860 cat <<\_LT_EOF >> "$cfgfile"
19861 # AIX sometimes has problems with the GCC collect2 program. For some
19862 # reason, if we set the COLLECT_NAMES environment variable, the problems
19863 # vanish in a puff of smoke.
19864 if test set != "${COLLECT_NAMES+set}"; then
19866 export COLLECT_NAMES
19873 ltmain=$ac_aux_dir/ltmain.sh
19876 # We use sed instead of cat because bash on DJGPP gets confused if
19877 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19878 # text mode, it properly converts lines to CR/LF. This bash problem
19879 # is reportedly fixed, but why not run on old versions too?
19880 sed '$q' "$ltmain" >> "$cfgfile" \
19881 || (rm -f "$cfgfile"; exit 1)
19883 mv -f "$cfgfile" "$ofile" ||
19884 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19888 cat <<_LT_EOF >> "$ofile"
19890 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19892 # The linker used to build libraries.
19895 # How to create reloadable object files.
19896 reload_flag=$lt_reload_flag_CXX
19897 reload_cmds=$lt_reload_cmds_CXX
19899 # Commands used to build an old-style archive.
19900 old_archive_cmds=$lt_old_archive_cmds_CXX
19902 # A language specific compiler.
19903 CC=$lt_compiler_CXX
19905 # Is the compiler the GNU compiler?
19908 # Compiler flag to turn off builtin functions.
19909 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19911 # Additional compiler flags for building library objects.
19912 pic_flag=$lt_lt_prog_compiler_pic_CXX
19914 # How to pass a linker flag through the compiler.
19915 wl=$lt_lt_prog_compiler_wl_CXX
19917 # Compiler flag to prevent dynamic linking.
19918 link_static_flag=$lt_lt_prog_compiler_static_CXX
19920 # Does compiler simultaneously support -c and -o options?
19921 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19923 # Whether or not to add -lc for building shared libraries.
19924 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19926 # Whether or not to disallow shared libs when runtime libs are static.
19927 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19929 # Compiler flag to allow reflexive dlopens.
19930 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19932 # Compiler flag to generate shared objects directly from archives.
19933 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19935 # Whether the compiler copes with passing no objects directly.
19936 compiler_needs_object=$lt_compiler_needs_object_CXX
19938 # Create an old-style archive from a shared archive.
19939 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19941 # Create a temporary old-style archive to link instead of a shared archive.
19942 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19944 # Commands used to build a shared archive.
19945 archive_cmds=$lt_archive_cmds_CXX
19946 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19948 # Commands used to build a loadable module if different from building
19949 # a shared archive.
19950 module_cmds=$lt_module_cmds_CXX
19951 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19953 # Whether we are building with GNU ld or not.
19954 with_gnu_ld=$lt_with_gnu_ld_CXX
19956 # Flag that allows shared libraries with undefined symbols to be built.
19957 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19959 # Flag that enforces no undefined symbols.
19960 no_undefined_flag=$lt_no_undefined_flag_CXX
19962 # Flag to hardcode \$libdir into a binary during linking.
19963 # This must work even if \$libdir does not exist
19964 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19966 # Whether we need a single "-rpath" flag with a separated argument.
19967 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19969 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19970 # DIR into the resulting binary.
19971 hardcode_direct=$hardcode_direct_CXX
19973 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19974 # DIR into the resulting binary and the resulting library dependency is
19975 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19976 # library is relocated.
19977 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19979 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19980 # into the resulting binary.
19981 hardcode_minus_L=$hardcode_minus_L_CXX
19983 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19984 # into the resulting binary.
19985 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19987 # Set to "yes" if building a shared library automatically hardcodes DIR
19988 # into the library and all subsequent libraries and executables linked
19990 hardcode_automatic=$hardcode_automatic_CXX
19992 # Set to yes if linker adds runtime paths of dependent libraries
19993 # to runtime path list.
19994 inherit_rpath=$inherit_rpath_CXX
19996 # Whether libtool must link a program against all its dependency libraries.
19997 link_all_deplibs=$link_all_deplibs_CXX
19999 # Set to "yes" if exported symbols are required.
20000 always_export_symbols=$always_export_symbols_CXX
20002 # The commands to list exported symbols.
20003 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20005 # Symbols that should not be listed in the preloaded symbols.
20006 exclude_expsyms=$lt_exclude_expsyms_CXX
20008 # Symbols that must always be exported.
20009 include_expsyms=$lt_include_expsyms_CXX
20011 # Commands necessary for linking programs (against libraries) with templates.
20012 prelink_cmds=$lt_prelink_cmds_CXX
20014 # Commands necessary for finishing linking programs.
20015 postlink_cmds=$lt_postlink_cmds_CXX
20017 # Specify filename containing input files.
20018 file_list_spec=$lt_file_list_spec_CXX
20020 # How to hardcode a shared library path into an executable.
20021 hardcode_action=$hardcode_action_CXX
20023 # The directories searched by this compiler when creating a shared library.
20024 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20026 # Dependencies to place before and after the objects being linked to
20027 # create a shared library.
20028 predep_objects=$lt_predep_objects_CXX
20029 postdep_objects=$lt_postdep_objects_CXX
20030 predeps=$lt_predeps_CXX
20031 postdeps=$lt_postdeps_CXX
20033 # The library search path used internally by the compiler when linking
20034 # a shared library.
20035 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20037 # ### END LIBTOOL TAG CONFIG: CXX
20048 ac_clean_files=$ac_clean_files_save
20050 test $ac_write_fail = 0 ||
20051 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20054 # configure is writing to config.log, and then calls config.status.
20055 # config.status does its own redirection, appending to config.log.
20056 # Unfortunately, on DOS this fails, as config.log is still kept open
20057 # by configure, so config.status won't be able to write to it; its
20058 # output is simply discarded. So we exec the FD to /dev/null,
20059 # effectively closing config.log, so it can be properly (re)opened and
20060 # appended to by config.status. When coming back to configure, we
20061 # need to make the FD available again.
20062 if test "$no_create" != yes; then
20064 ac_config_status_args=
20065 test "$silent" = yes &&
20066 ac_config_status_args="$ac_config_status_args --quiet"
20068 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20070 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20071 # would make configure fail if this is the last instruction.
20072 $ac_cs_success || as_fn_exit 1
20074 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20076 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}