2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for OpenFst 1.7.7.
5 # Report bugs to <help@www.openfst.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: help@www.openfst.org about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
591 PACKAGE_NAME='OpenFst'
592 PACKAGE_TARNAME='openfst'
593 PACKAGE_VERSION='1.7.7'
594 PACKAGE_STRING='OpenFst 1.7.7'
595 PACKAGE_BUGREPORT='help@www.openfst.org'
598 # Factoring default headers for most tests.
599 ac_includes_default="\
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
611 # ifdef HAVE_STDLIB_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
634 ac_unique_file="src/lib/fst.cc"
635 ac_subst_vars='am__EXEEXT_FALSE
751 INSTALL_STRIP_PROGRAM
794 program_transform_name
808 enable_option_checking
810 enable_dependency_tracking
824 enable_lookahead_fsts
835 ac_precious_vars='build_alias
853 # Initialize some variables set by options.
855 ac_init_version=false
856 ac_unrecognized_opts=
858 # The variables have the same names as the options, with
859 # dashes changed to underlines.
867 program_transform_name=s,x,x,
875 # Installation directory options.
876 # These are left unexpanded so users can "make install exec_prefix=/foo"
877 # and all the variables that are supposed to be based on exec_prefix
878 # by default will actually change.
879 # Use braces instead of parens because sh, perl, etc. also accept them.
880 # (The list follows the same order as the GNU Coding Standards.)
881 bindir='${exec_prefix}/bin'
882 sbindir='${exec_prefix}/sbin'
883 libexecdir='${exec_prefix}/libexec'
884 datarootdir='${prefix}/share'
885 datadir='${datarootdir}'
886 sysconfdir='${prefix}/etc'
887 sharedstatedir='${prefix}/com'
888 localstatedir='${prefix}/var'
889 runstatedir='${localstatedir}/run'
890 includedir='${prefix}/include'
891 oldincludedir='/usr/include'
892 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
893 infodir='${datarootdir}/info'
898 libdir='${exec_prefix}/lib'
899 localedir='${datarootdir}/locale'
900 mandir='${datarootdir}/man'
906 # If the previous option needs an argument, assign it.
907 if test -n "$ac_prev"; then
908 eval $ac_prev=\$ac_option
914 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
919 # Accept the important Cygnus configure options, so we can diagnose typos.
921 case $ac_dashdash$ac_option in
925 -bindir | --bindir | --bindi | --bind | --bin | --bi)
927 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
930 -build | --build | --buil | --bui | --bu)
931 ac_prev=build_alias ;;
932 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
933 build_alias=$ac_optarg ;;
935 -cache-file | --cache-file | --cache-fil | --cache-fi \
936 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
937 ac_prev=cache_file ;;
938 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
939 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
940 cache_file=$ac_optarg ;;
943 cache_file=config.cache ;;
945 -datadir | --datadir | --datadi | --datad)
947 -datadir=* | --datadir=* | --datadi=* | --datad=*)
948 datadir=$ac_optarg ;;
950 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
951 | --dataroo | --dataro | --datar)
952 ac_prev=datarootdir ;;
953 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
954 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
955 datarootdir=$ac_optarg ;;
957 -disable-* | --disable-*)
958 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
959 # Reject names that are not valid shell variable names.
960 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
961 as_fn_error $? "invalid feature name: $ac_useropt"
962 ac_useropt_orig=$ac_useropt
963 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
964 case $ac_user_opts in
968 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
969 ac_unrecognized_sep=', ';;
971 eval enable_$ac_useropt=no ;;
973 -docdir | --docdir | --docdi | --doc | --do)
975 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
978 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
980 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
983 -enable-* | --enable-*)
984 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
985 # Reject names that are not valid shell variable names.
986 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
987 as_fn_error $? "invalid feature name: $ac_useropt"
988 ac_useropt_orig=$ac_useropt
989 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
990 case $ac_user_opts in
994 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
995 ac_unrecognized_sep=', ';;
997 eval enable_$ac_useropt=\$ac_optarg ;;
999 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1000 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1001 | --exec | --exe | --ex)
1002 ac_prev=exec_prefix ;;
1003 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1004 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1005 | --exec=* | --exe=* | --ex=*)
1006 exec_prefix=$ac_optarg ;;
1008 -gas | --gas | --ga | --g)
1009 # Obsolete; use --with-gas.
1012 -help | --help | --hel | --he | -h)
1013 ac_init_help=long ;;
1014 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1015 ac_init_help=recursive ;;
1016 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1017 ac_init_help=short ;;
1019 -host | --host | --hos | --ho)
1020 ac_prev=host_alias ;;
1021 -host=* | --host=* | --hos=* | --ho=*)
1022 host_alias=$ac_optarg ;;
1024 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1026 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1028 htmldir=$ac_optarg ;;
1030 -includedir | --includedir | --includedi | --included | --include \
1031 | --includ | --inclu | --incl | --inc)
1032 ac_prev=includedir ;;
1033 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1034 | --includ=* | --inclu=* | --incl=* | --inc=*)
1035 includedir=$ac_optarg ;;
1037 -infodir | --infodir | --infodi | --infod | --info | --inf)
1039 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1040 infodir=$ac_optarg ;;
1042 -libdir | --libdir | --libdi | --libd)
1044 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1045 libdir=$ac_optarg ;;
1047 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1048 | --libexe | --libex | --libe)
1049 ac_prev=libexecdir ;;
1050 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1051 | --libexe=* | --libex=* | --libe=*)
1052 libexecdir=$ac_optarg ;;
1054 -localedir | --localedir | --localedi | --localed | --locale)
1055 ac_prev=localedir ;;
1056 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1057 localedir=$ac_optarg ;;
1059 -localstatedir | --localstatedir | --localstatedi | --localstated \
1060 | --localstate | --localstat | --localsta | --localst | --locals)
1061 ac_prev=localstatedir ;;
1062 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1063 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1064 localstatedir=$ac_optarg ;;
1066 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1068 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1069 mandir=$ac_optarg ;;
1071 -nfp | --nfp | --nf)
1072 # Obsolete; use --without-fp.
1075 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1076 | --no-cr | --no-c | -n)
1079 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1080 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1083 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1084 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1085 | --oldin | --oldi | --old | --ol | --o)
1086 ac_prev=oldincludedir ;;
1087 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1088 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1089 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1090 oldincludedir=$ac_optarg ;;
1092 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1094 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1095 prefix=$ac_optarg ;;
1097 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1098 | --program-pre | --program-pr | --program-p)
1099 ac_prev=program_prefix ;;
1100 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1101 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1102 program_prefix=$ac_optarg ;;
1104 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1105 | --program-suf | --program-su | --program-s)
1106 ac_prev=program_suffix ;;
1107 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1108 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1109 program_suffix=$ac_optarg ;;
1111 -program-transform-name | --program-transform-name \
1112 | --program-transform-nam | --program-transform-na \
1113 | --program-transform-n | --program-transform- \
1114 | --program-transform | --program-transfor \
1115 | --program-transfo | --program-transf \
1116 | --program-trans | --program-tran \
1117 | --progr-tra | --program-tr | --program-t)
1118 ac_prev=program_transform_name ;;
1119 -program-transform-name=* | --program-transform-name=* \
1120 | --program-transform-nam=* | --program-transform-na=* \
1121 | --program-transform-n=* | --program-transform-=* \
1122 | --program-transform=* | --program-transfor=* \
1123 | --program-transfo=* | --program-transf=* \
1124 | --program-trans=* | --program-tran=* \
1125 | --progr-tra=* | --program-tr=* | --program-t=*)
1126 program_transform_name=$ac_optarg ;;
1128 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1130 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1131 pdfdir=$ac_optarg ;;
1133 -psdir | --psdir | --psdi | --psd | --ps)
1135 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1138 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1139 | -silent | --silent | --silen | --sile | --sil)
1142 -runstatedir | --runstatedir | --runstatedi | --runstated \
1143 | --runstate | --runstat | --runsta | --runst | --runs \
1144 | --run | --ru | --r)
1145 ac_prev=runstatedir ;;
1146 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1147 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1148 | --run=* | --ru=* | --r=*)
1149 runstatedir=$ac_optarg ;;
1151 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1153 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1155 sbindir=$ac_optarg ;;
1157 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1158 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1159 | --sharedst | --shareds | --shared | --share | --shar \
1161 ac_prev=sharedstatedir ;;
1162 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1163 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1164 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1166 sharedstatedir=$ac_optarg ;;
1168 -site | --site | --sit)
1170 -site=* | --site=* | --sit=*)
1173 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1175 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1176 srcdir=$ac_optarg ;;
1178 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1179 | --syscon | --sysco | --sysc | --sys | --sy)
1180 ac_prev=sysconfdir ;;
1181 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1182 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1183 sysconfdir=$ac_optarg ;;
1185 -target | --target | --targe | --targ | --tar | --ta | --t)
1186 ac_prev=target_alias ;;
1187 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1188 target_alias=$ac_optarg ;;
1190 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1193 -version | --version | --versio | --versi | --vers | -V)
1194 ac_init_version=: ;;
1197 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1198 # Reject names that are not valid shell variable names.
1199 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1200 as_fn_error $? "invalid package name: $ac_useropt"
1201 ac_useropt_orig=$ac_useropt
1202 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1203 case $ac_user_opts in
1207 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1208 ac_unrecognized_sep=', ';;
1210 eval with_$ac_useropt=\$ac_optarg ;;
1212 -without-* | --without-*)
1213 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1214 # Reject names that are not valid shell variable names.
1215 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1216 as_fn_error $? "invalid package name: $ac_useropt"
1217 ac_useropt_orig=$ac_useropt
1218 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1219 case $ac_user_opts in
1223 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1224 ac_unrecognized_sep=', ';;
1226 eval with_$ac_useropt=no ;;
1229 # Obsolete; use --with-x.
1232 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1233 | --x-incl | --x-inc | --x-in | --x-i)
1234 ac_prev=x_includes ;;
1235 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1236 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1237 x_includes=$ac_optarg ;;
1239 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1240 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1241 ac_prev=x_libraries ;;
1242 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1243 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1244 x_libraries=$ac_optarg ;;
1246 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1247 Try \`$0 --help' for more information"
1251 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1252 # Reject names that are not valid shell variable names.
1253 case $ac_envvar in #(
1254 '' | [0-9]* | *[!_$as_cr_alnum]* )
1255 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1257 eval $ac_envvar=\$ac_optarg
1258 export $ac_envvar ;;
1261 # FIXME: should be removed in autoconf 3.0.
1262 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1263 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1264 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1265 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1271 if test -n "$ac_prev"; then
1272 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1273 as_fn_error $? "missing argument to $ac_option"
1276 if test -n "$ac_unrecognized_opts"; then
1277 case $enable_option_checking in
1279 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1280 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1284 # Check all directory arguments for consistency.
1285 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1286 datadir sysconfdir sharedstatedir localstatedir includedir \
1287 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1288 libdir localedir mandir runstatedir
1290 eval ac_val=\$$ac_var
1291 # Remove trailing slashes.
1294 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1295 eval $ac_var=\$ac_val;;
1297 # Be sure to have absolute directory names.
1299 [\\/$]* | ?:[\\/]* ) continue;;
1300 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1302 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1305 # There might be people who depend on the old broken behavior: `$host'
1306 # used to hold the argument of --host etc.
1307 # FIXME: To remove some day.
1310 target=$target_alias
1312 # FIXME: To remove some day.
1313 if test "x$host_alias" != x; then
1314 if test "x$build_alias" = x; then
1315 cross_compiling=maybe
1316 elif test "x$build_alias" != "x$host_alias"; then
1322 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1324 test "$silent" = yes && exec 6>/dev/null
1327 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1328 ac_ls_di=`ls -di .` &&
1329 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1330 as_fn_error $? "working directory cannot be determined"
1331 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1332 as_fn_error $? "pwd does not report name of working directory"
1335 # Find the source files, if location was not specified.
1336 if test -z "$srcdir"; then
1337 ac_srcdir_defaulted=yes
1338 # Try the directory containing this script, then the parent directory.
1339 ac_confdir=`$as_dirname -- "$as_myself" ||
1340 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1341 X"$as_myself" : 'X\(//\)[^/]' \| \
1342 X"$as_myself" : 'X\(//\)$' \| \
1343 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1344 $as_echo X"$as_myself" |
1345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1363 if test ! -r "$srcdir/$ac_unique_file"; then
1367 ac_srcdir_defaulted=no
1369 if test ! -r "$srcdir/$ac_unique_file"; then
1370 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1371 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1373 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1375 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1377 # When building in place, set srcdir=.
1378 if test "$ac_abs_confdir" = "$ac_pwd"; then
1381 # Remove unnecessary trailing slashes from srcdir.
1382 # Double slashes in file names in object file debugging info
1383 # mess up M-x gdb in Emacs.
1385 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1387 for ac_var in $ac_precious_vars; do
1388 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1389 eval ac_env_${ac_var}_value=\$${ac_var}
1390 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1391 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1395 # Report the --help message.
1397 if test "$ac_init_help" = "long"; then
1398 # Omit some internal or obsolete options to make the list less imposing.
1399 # This message is too long to be a string in the A/UX 3.1 sh.
1401 \`configure' configures OpenFst 1.7.7 to adapt to many kinds of systems.
1403 Usage: $0 [OPTION]... [VAR=VALUE]...
1405 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1406 VAR=VALUE. See below for descriptions of some of the useful variables.
1408 Defaults for the options are specified in brackets.
1411 -h, --help display this help and exit
1412 --help=short display options specific to this package
1413 --help=recursive display the short help of all the included packages
1414 -V, --version display version information and exit
1415 -q, --quiet, --silent do not print \`checking ...' messages
1416 --cache-file=FILE cache test results in FILE [disabled]
1417 -C, --config-cache alias for \`--cache-file=config.cache'
1418 -n, --no-create do not create output files
1419 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1421 Installation directories:
1422 --prefix=PREFIX install architecture-independent files in PREFIX
1423 [$ac_default_prefix]
1424 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1427 By default, \`make install' will install all the files in
1428 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1429 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1430 for instance \`--prefix=\$HOME'.
1432 For better control, use the options below.
1434 Fine tuning of the installation directories:
1435 --bindir=DIR user executables [EPREFIX/bin]
1436 --sbindir=DIR system admin executables [EPREFIX/sbin]
1437 --libexecdir=DIR program executables [EPREFIX/libexec]
1438 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1439 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1440 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1441 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1442 --libdir=DIR object code libraries [EPREFIX/lib]
1443 --includedir=DIR C header files [PREFIX/include]
1444 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1445 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1446 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1447 --infodir=DIR info documentation [DATAROOTDIR/info]
1448 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1449 --mandir=DIR man documentation [DATAROOTDIR/man]
1450 --docdir=DIR documentation root [DATAROOTDIR/doc/openfst]
1451 --htmldir=DIR html documentation [DOCDIR]
1452 --dvidir=DIR dvi documentation [DOCDIR]
1453 --pdfdir=DIR pdf documentation [DOCDIR]
1454 --psdir=DIR ps documentation [DOCDIR]
1460 --program-prefix=PREFIX prepend PREFIX to installed program names
1461 --program-suffix=SUFFIX append SUFFIX to installed program names
1462 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1465 --build=BUILD configure for building on BUILD [guessed]
1466 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1470 if test -n "$ac_init_help"; then
1471 case $ac_init_help in
1472 short | recursive ) echo "Configuration of OpenFst 1.7.7:";;
1477 --disable-option-checking ignore unrecognized --enable/--with options
1478 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1479 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1480 --enable-silent-rules less verbose build output (undo: "make V=1")
1481 --disable-silent-rules verbose build output (undo: "make V=0")
1482 --enable-dependency-tracking
1483 do not reject slow dependency extractors
1484 --disable-dependency-tracking
1485 speeds up one-time build
1486 --enable-static[=PKGS] build static libraries [default=no]
1487 --enable-shared[=PKGS] build shared libraries [default=yes]
1488 --enable-fast-install[=PKGS]
1489 optimize for fast installation [default=yes]
1490 --disable-libtool-lock avoid locking (might break parallel builds)
1491 --enable-compact-fsts enable CompactFst extensions
1492 --enable-compress enable compression extension
1493 --enable-const-fsts enable ConstFst extensions
1494 --enable-far enable FAR extensions
1495 --enable-linear-fsts enable LinearTagger/ClassifierFst extensions
1496 --enable-lookahead-fsts enable LookAheadFst extensions
1497 --enable-mpdt enable MPDT extensions
1498 --enable-ngram-fsts enable NGramFst extension
1499 --enable-pdt enable PDT extensions
1500 --enable-python enable Python extensions
1501 --enable-special enable special-matcher extensions
1502 --enable-bin enable fst::script and command-line binaries
1503 --enable-fsts enable all FST SOs
1504 --enable-grm enable all dependencies of OpenGrm
1507 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1508 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1509 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1511 --with-aix-soname=aix|svr4|both
1512 shared library versioning (aka "SONAME") variant to
1513 provide on AIX, [default=aix].
1514 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1515 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1516 compiler's sysroot if not specified).
1517 --with-libfstdir=DIR fst dynamic extensions [LIBDIR/fst]
1519 Some influential environment variables:
1520 CC C compiler command
1521 CFLAGS C compiler flags
1522 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1523 nonstandard directory <lib dir>
1524 LIBS libraries to pass to the linker, e.g. -l<library>
1525 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1526 you have headers in a nonstandard directory <include dir>
1527 CXX C++ compiler command
1528 CXXFLAGS C++ compiler flags
1530 User-defined run-time library search path.
1532 CXXCPP C++ preprocessor
1533 PYTHON the Python interpreter
1535 The installed Python version to use, for example '2.3'. This
1536 string will be appended to the Python interpreter canonical
1539 Use these variables to override the choices made by `configure' or to help
1540 it to find libraries and programs with nonstandard names/locations.
1542 Report bugs to <help@www.openfst.org>.
1547 if test "$ac_init_help" = "recursive"; then
1548 # If there are subdirs, report their specific --help.
1549 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1550 test -d "$ac_dir" ||
1551 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1556 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1558 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1559 # A ".." for each directory in $ac_dir_suffix.
1560 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1561 case $ac_top_builddir_sub in
1562 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1563 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1566 ac_abs_top_builddir=$ac_pwd
1567 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1568 # for backward compatibility:
1569 ac_top_builddir=$ac_top_build_prefix
1572 .) # We are building in place.
1574 ac_top_srcdir=$ac_top_builddir_sub
1575 ac_abs_top_srcdir=$ac_pwd ;;
1576 [\\/]* | ?:[\\/]* ) # Absolute name.
1577 ac_srcdir=$srcdir$ac_dir_suffix;
1578 ac_top_srcdir=$srcdir
1579 ac_abs_top_srcdir=$srcdir ;;
1581 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1582 ac_top_srcdir=$ac_top_build_prefix$srcdir
1583 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1585 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1587 cd "$ac_dir" || { ac_status=$?; continue; }
1588 # Check for guested configure.
1589 if test -f "$ac_srcdir/configure.gnu"; then
1591 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1592 elif test -f "$ac_srcdir/configure"; then
1594 $SHELL "$ac_srcdir/configure" --help=recursive
1596 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1598 cd "$ac_pwd" || { ac_status=$?; break; }
1602 test -n "$ac_init_help" && exit $ac_status
1603 if $ac_init_version; then
1605 OpenFst configure 1.7.7
1606 generated by GNU Autoconf 2.69
1608 Copyright (C) 2012 Free Software Foundation, Inc.
1609 This configure script is free software; the Free Software Foundation
1610 gives unlimited permission to copy, distribute and modify it.
1615 ## ------------------------ ##
1616 ## Autoconf initialization. ##
1617 ## ------------------------ ##
1619 # ac_fn_c_try_compile LINENO
1620 # --------------------------
1621 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1622 ac_fn_c_try_compile ()
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 rm -f conftest.$ac_objext
1626 if { { ac_try="$ac_compile"
1628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1629 *) ac_try_echo=$ac_try;;
1631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632 $as_echo "$ac_try_echo"; } >&5
1633 (eval "$ac_compile") 2>conftest.err
1635 if test -s conftest.err; then
1636 grep -v '^ *+' conftest.err >conftest.er1
1637 cat conftest.er1 >&5
1638 mv -f conftest.er1 conftest.err
1640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641 test $ac_status = 0; } && {
1642 test -z "$ac_c_werror_flag" ||
1643 test ! -s conftest.err
1644 } && test -s conftest.$ac_objext; then :
1647 $as_echo "$as_me: failed program was:" >&5
1648 sed 's/^/| /' conftest.$ac_ext >&5
1652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653 as_fn_set_status $ac_retval
1655 } # ac_fn_c_try_compile
1657 # ac_fn_cxx_try_compile LINENO
1658 # ----------------------------
1659 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1660 ac_fn_cxx_try_compile ()
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 rm -f conftest.$ac_objext
1664 if { { ac_try="$ac_compile"
1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667 *) ac_try_echo=$ac_try;;
1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670 $as_echo "$ac_try_echo"; } >&5
1671 (eval "$ac_compile") 2>conftest.err
1673 if test -s conftest.err; then
1674 grep -v '^ *+' conftest.err >conftest.er1
1675 cat conftest.er1 >&5
1676 mv -f conftest.er1 conftest.err
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; } && {
1680 test -z "$ac_cxx_werror_flag" ||
1681 test ! -s conftest.err
1682 } && test -s conftest.$ac_objext; then :
1685 $as_echo "$as_me: failed program was:" >&5
1686 sed 's/^/| /' conftest.$ac_ext >&5
1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1691 as_fn_set_status $ac_retval
1693 } # ac_fn_cxx_try_compile
1695 # ac_fn_c_try_link LINENO
1696 # -----------------------
1697 # Try to link conftest.$ac_ext, and return whether this succeeded.
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 rm -f conftest.$ac_objext conftest$ac_exeext
1702 if { { ac_try="$ac_link"
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_link") 2>conftest.err
1711 if test -s conftest.err; then
1712 grep -v '^ *+' conftest.err >conftest.er1
1713 cat conftest.er1 >&5
1714 mv -f conftest.er1 conftest.err
1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717 test $ac_status = 0; } && {
1718 test -z "$ac_c_werror_flag" ||
1719 test ! -s conftest.err
1720 } && test -s conftest$ac_exeext && {
1721 test "$cross_compiling" = yes ||
1722 test -x conftest$ac_exeext
1726 $as_echo "$as_me: failed program was:" >&5
1727 sed 's/^/| /' conftest.$ac_ext >&5
1731 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1732 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1733 # interfere with the next link command; also delete a directory that is
1734 # left behind by Apple's compiler. We do this before executing the actions.
1735 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737 as_fn_set_status $ac_retval
1739 } # ac_fn_c_try_link
1741 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1742 # -------------------------------------------------------
1743 # Tests whether HEADER exists and can be compiled using the include files in
1744 # INCLUDES, setting the cache variable VAR accordingly.
1745 ac_fn_c_check_header_compile ()
1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1749 $as_echo_n "checking for $2... " >&6; }
1750 if eval \${$3+:} false; then :
1751 $as_echo_n "(cached) " >&6
1753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754 /* end confdefs.h. */
1758 if ac_fn_c_try_compile "$LINENO"; then :
1763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1767 $as_echo "$ac_res" >&6; }
1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1770 } # ac_fn_c_check_header_compile
1772 # ac_fn_c_try_cpp LINENO
1773 # ----------------------
1774 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 if { { ac_try="$ac_cpp conftest.$ac_ext"
1780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781 *) ac_try_echo=$ac_try;;
1783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784 $as_echo "$ac_try_echo"; } >&5
1785 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1787 if test -s conftest.err; then
1788 grep -v '^ *+' conftest.err >conftest.er1
1789 cat conftest.er1 >&5
1790 mv -f conftest.er1 conftest.err
1792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793 test $ac_status = 0; } > conftest.i && {
1794 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1795 test ! -s conftest.err
1799 $as_echo "$as_me: failed program was:" >&5
1800 sed 's/^/| /' conftest.$ac_ext >&5
1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805 as_fn_set_status $ac_retval
1809 # ac_fn_c_try_run LINENO
1810 # ----------------------
1811 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1812 # that executables *can* be run.
1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816 if { { ac_try="$ac_link"
1818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1819 *) ac_try_echo=$ac_try;;
1821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1822 $as_echo "$ac_try_echo"; } >&5
1823 (eval "$ac_link") 2>&5
1825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1827 { { case "(($ac_try" in
1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829 *) ac_try_echo=$ac_try;;
1831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832 $as_echo "$ac_try_echo"; } >&5
1833 (eval "$ac_try") 2>&5
1835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836 test $ac_status = 0; }; }; then :
1839 $as_echo "$as_me: program exited with status $ac_status" >&5
1840 $as_echo "$as_me: failed program was:" >&5
1841 sed 's/^/| /' conftest.$ac_ext >&5
1843 ac_retval=$ac_status
1845 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1846 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1847 as_fn_set_status $ac_retval
1851 # ac_fn_c_check_func LINENO FUNC VAR
1852 # ----------------------------------
1853 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1854 ac_fn_c_check_func ()
1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1858 $as_echo_n "checking for $2... " >&6; }
1859 if eval \${$3+:} false; then :
1860 $as_echo_n "(cached) " >&6
1862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1863 /* end confdefs.h. */
1864 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1866 #define $2 innocuous_$2
1868 /* System header to define __stub macros and hopefully few prototypes,
1869 which can conflict with char $2 (); below.
1870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1871 <limits.h> exists even on freestanding compilers. */
1874 # include <limits.h>
1876 # include <assert.h>
1881 /* Override any GCC internal prototype to avoid an error.
1882 Use char because int might match the return type of a GCC
1883 builtin and then its argument prototype would still apply. */
1888 /* The GNU C library defines this for functions which it implements
1889 to always fail with ENOSYS. Some functions are actually named
1890 something starting with __ and the normal name is an alias. */
1891 #if defined __stub_$2 || defined __stub___$2
1903 if ac_fn_c_try_link "$LINENO"; then :
1908 rm -f core conftest.err conftest.$ac_objext \
1909 conftest$ac_exeext conftest.$ac_ext
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1913 $as_echo "$ac_res" >&6; }
1914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1916 } # ac_fn_c_check_func
1918 # ac_fn_cxx_try_cpp LINENO
1919 # ------------------------
1920 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1921 ac_fn_cxx_try_cpp ()
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 if { { ac_try="$ac_cpp conftest.$ac_ext"
1926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1927 *) ac_try_echo=$ac_try;;
1929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1930 $as_echo "$ac_try_echo"; } >&5
1931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1933 if test -s conftest.err; then
1934 grep -v '^ *+' conftest.err >conftest.er1
1935 cat conftest.er1 >&5
1936 mv -f conftest.er1 conftest.err
1938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1939 test $ac_status = 0; } > conftest.i && {
1940 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1941 test ! -s conftest.err
1945 $as_echo "$as_me: failed program was:" >&5
1946 sed 's/^/| /' conftest.$ac_ext >&5
1950 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1951 as_fn_set_status $ac_retval
1953 } # ac_fn_cxx_try_cpp
1955 # ac_fn_cxx_try_link LINENO
1956 # -------------------------
1957 # Try to link conftest.$ac_ext, and return whether this succeeded.
1958 ac_fn_cxx_try_link ()
1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961 rm -f conftest.$ac_objext conftest$ac_exeext
1962 if { { ac_try="$ac_link"
1964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1965 *) ac_try_echo=$ac_try;;
1967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1968 $as_echo "$ac_try_echo"; } >&5
1969 (eval "$ac_link") 2>conftest.err
1971 if test -s conftest.err; then
1972 grep -v '^ *+' conftest.err >conftest.er1
1973 cat conftest.er1 >&5
1974 mv -f conftest.er1 conftest.err
1976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1977 test $ac_status = 0; } && {
1978 test -z "$ac_cxx_werror_flag" ||
1979 test ! -s conftest.err
1980 } && test -s conftest$ac_exeext && {
1981 test "$cross_compiling" = yes ||
1982 test -x conftest$ac_exeext
1986 $as_echo "$as_me: failed program was:" >&5
1987 sed 's/^/| /' conftest.$ac_ext >&5
1991 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1992 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1993 # interfere with the next link command; also delete a directory that is
1994 # left behind by Apple's compiler. We do this before executing the actions.
1995 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1996 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1997 as_fn_set_status $ac_retval
1999 } # ac_fn_cxx_try_link
2001 # ac_fn_cxx_try_run LINENO
2002 # ------------------------
2003 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2004 # that executables *can* be run.
2005 ac_fn_cxx_try_run ()
2007 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2008 if { { ac_try="$ac_link"
2010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2011 *) ac_try_echo=$ac_try;;
2013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2014 $as_echo "$ac_try_echo"; } >&5
2015 (eval "$ac_link") 2>&5
2017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2018 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2019 { { case "(($ac_try" in
2020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2021 *) ac_try_echo=$ac_try;;
2023 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2024 $as_echo "$ac_try_echo"; } >&5
2025 (eval "$ac_try") 2>&5
2027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2028 test $ac_status = 0; }; }; then :
2031 $as_echo "$as_me: program exited with status $ac_status" >&5
2032 $as_echo "$as_me: failed program was:" >&5
2033 sed 's/^/| /' conftest.$ac_ext >&5
2035 ac_retval=$ac_status
2037 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2038 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2039 as_fn_set_status $ac_retval
2041 } # ac_fn_cxx_try_run
2042 cat >config.log <<_ACEOF
2043 This file contains any messages produced by compilers while
2044 running configure, to aid debugging if configure makes a mistake.
2046 It was created by OpenFst $as_me 1.7.7, which was
2047 generated by GNU Autoconf 2.69. Invocation command line was
2059 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2060 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2061 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2062 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2063 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2065 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2066 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2068 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2069 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2070 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2071 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2072 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2073 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2074 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2082 test -z "$as_dir" && as_dir=.
2083 $as_echo "PATH: $as_dir"
2099 # Keep a trace of the command line.
2100 # Strip out --no-create and --no-recursion so they do not pile up.
2101 # Strip out --silent because we don't want to record it for future runs.
2102 # Also quote any args containing shell meta-characters.
2103 # Make two passes to allow for proper duplicate-argument suppression.
2107 ac_must_keep_next=false
2113 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2114 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2115 | -silent | --silent | --silen | --sile | --sil)
2118 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2121 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2123 as_fn_append ac_configure_args1 " '$ac_arg'"
2124 if test $ac_must_keep_next = true; then
2125 ac_must_keep_next=false # Got value, back to normal.
2128 *=* | --config-cache | -C | -disable-* | --disable-* \
2129 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2130 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2131 | -with-* | --with-* | -without-* | --without-* | --x)
2132 case "$ac_configure_args0 " in
2133 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2136 -* ) ac_must_keep_next=true ;;
2139 as_fn_append ac_configure_args " '$ac_arg'"
2144 { ac_configure_args0=; unset ac_configure_args0;}
2145 { ac_configure_args1=; unset ac_configure_args1;}
2147 # When interrupted or exit'd, cleanup temporary files, and complete
2148 # config.log. We remove comments because anyway the quotes in there
2149 # would cause problems or look ugly.
2150 # WARNING: Use '\'' to represent an apostrophe within the trap.
2151 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2152 trap 'exit_status=$?
2153 # Save into config.log some information that might help in debugging.
2157 $as_echo "## ---------------- ##
2158 ## Cache variables. ##
2159 ## ---------------- ##"
2161 # The following way of writing the cache mishandles newlines in values,
2163 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2164 eval ac_val=\$$ac_var
2168 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2169 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2172 _ | IFS | as_nl) ;; #(
2173 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2174 *) { eval $ac_var=; unset $ac_var;} ;;
2179 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2180 *${as_nl}ac_space=\ *)
2182 "s/'\''/'\''\\\\'\'''\''/g;
2183 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2186 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2193 $as_echo "## ----------------- ##
2194 ## Output variables. ##
2195 ## ----------------- ##"
2197 for ac_var in $ac_subst_vars
2199 eval ac_val=\$$ac_var
2201 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2203 $as_echo "$ac_var='\''$ac_val'\''"
2207 if test -n "$ac_subst_files"; then
2208 $as_echo "## ------------------- ##
2209 ## File substitutions. ##
2210 ## ------------------- ##"
2212 for ac_var in $ac_subst_files
2214 eval ac_val=\$$ac_var
2216 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2218 $as_echo "$ac_var='\''$ac_val'\''"
2223 if test -s confdefs.h; then
2224 $as_echo "## ----------- ##
2231 test "$ac_signal" != 0 &&
2232 $as_echo "$as_me: caught signal $ac_signal"
2233 $as_echo "$as_me: exit $exit_status"
2235 rm -f core *.core core.conftest.* &&
2236 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2239 for ac_signal in 1 2 13 15; do
2240 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2244 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2245 rm -f -r conftest* confdefs.h
2247 $as_echo "/* confdefs.h */" > confdefs.h
2249 # Predefined preprocessor variables.
2251 cat >>confdefs.h <<_ACEOF
2252 #define PACKAGE_NAME "$PACKAGE_NAME"
2255 cat >>confdefs.h <<_ACEOF
2256 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2259 cat >>confdefs.h <<_ACEOF
2260 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2263 cat >>confdefs.h <<_ACEOF
2264 #define PACKAGE_STRING "$PACKAGE_STRING"
2267 cat >>confdefs.h <<_ACEOF
2268 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2271 cat >>confdefs.h <<_ACEOF
2272 #define PACKAGE_URL "$PACKAGE_URL"
2276 # Let the site file select an alternate cache file if it wants to.
2277 # Prefer an explicitly selected file to automatically selected ones.
2280 if test -n "$CONFIG_SITE"; then
2281 # We do not want a PATH search for config.site.
2282 case $CONFIG_SITE in #((
2283 -*) ac_site_file1=./$CONFIG_SITE;;
2284 */*) ac_site_file1=$CONFIG_SITE;;
2285 *) ac_site_file1=./$CONFIG_SITE;;
2287 elif test "x$prefix" != xNONE; then
2288 ac_site_file1=$prefix/share/config.site
2289 ac_site_file2=$prefix/etc/config.site
2291 ac_site_file1=$ac_default_prefix/share/config.site
2292 ac_site_file2=$ac_default_prefix/etc/config.site
2294 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2296 test "x$ac_site_file" = xNONE && continue
2297 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2299 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2300 sed 's/^/| /' "$ac_site_file" >&5
2302 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2304 as_fn_error $? "failed to load site script $ac_site_file
2305 See \`config.log' for more details" "$LINENO" 5; }
2309 if test -r "$cache_file"; then
2310 # Some versions of bash will fail to source /dev/null (special files
2311 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2312 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2314 $as_echo "$as_me: loading cache $cache_file" >&6;}
2316 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2317 *) . "./$cache_file";;
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2322 $as_echo "$as_me: creating cache $cache_file" >&6;}
2326 # Check that the precious variables saved in the cache have kept the same
2328 ac_cache_corrupted=false
2329 for ac_var in $ac_precious_vars; do
2330 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2331 eval ac_new_set=\$ac_env_${ac_var}_set
2332 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2333 eval ac_new_val=\$ac_env_${ac_var}_value
2334 case $ac_old_set,$ac_new_set in
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2337 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2338 ac_cache_corrupted=: ;;
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2341 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2342 ac_cache_corrupted=: ;;
2345 if test "x$ac_old_val" != "x$ac_new_val"; then
2346 # differences in whitespace do not lead to failure.
2347 ac_old_val_w=`echo x $ac_old_val`
2348 ac_new_val_w=`echo x $ac_new_val`
2349 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2351 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2352 ac_cache_corrupted=:
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2355 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2356 eval $ac_var=\$ac_old_val
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2359 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2361 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2364 # Pass precious variables to config.status.
2365 if test "$ac_new_set" = set; then
2367 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2368 *) ac_arg=$ac_var=$ac_new_val ;;
2370 case " $ac_configure_args " in
2371 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2372 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2376 if $ac_cache_corrupted; then
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2380 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2381 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2383 ## -------------------- ##
2384 ## Main body of script. ##
2385 ## -------------------- ##
2388 ac_cpp='$CPP $CPPFLAGS'
2389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2394 am__api_version='1.16'
2397 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2398 if test -f "$ac_dir/install-sh"; then
2400 ac_install_sh="$ac_aux_dir/install-sh -c"
2402 elif test -f "$ac_dir/install.sh"; then
2404 ac_install_sh="$ac_aux_dir/install.sh -c"
2406 elif test -f "$ac_dir/shtool"; then
2408 ac_install_sh="$ac_aux_dir/shtool install -c"
2412 if test -z "$ac_aux_dir"; then
2413 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2416 # These three variables are undocumented and unsupported,
2417 # and are intended to be withdrawn in a future Autoconf release.
2418 # They can cause serious problems if a builder's source tree is in a directory
2419 # whose full name contains unusual characters.
2420 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2421 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2422 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2425 # Find a good install program. We prefer a C program (faster),
2426 # so one script is as good as another. But avoid the broken or
2427 # incompatible versions:
2428 # SysV /etc/install, /usr/sbin/install
2429 # SunOS /usr/etc/install
2430 # IRIX /sbin/install
2432 # AmigaOS /C/install, which installs bootblocks on floppy discs
2433 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2434 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2435 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2436 # OS/2's system install, which has a completely different semantic
2437 # ./install, which can be erroneously created by make from ./install.sh.
2438 # Reject install programs that cannot install multiple files.
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2440 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2441 if test -z "$INSTALL"; then
2442 if ${ac_cv_path_install+:} false; then :
2443 $as_echo_n "(cached) " >&6
2445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449 test -z "$as_dir" && as_dir=.
2450 # Account for people who put trailing slashes in PATH elements.
2451 case $as_dir/ in #((
2452 ./ | .// | /[cC]/* | \
2453 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2454 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2457 # OSF1 and SCO ODT 3.0 have their own names for install.
2458 # Don't use installbsd from OSF since it installs stuff as root
2460 for ac_prog in ginstall scoinst install; do
2461 for ac_exec_ext in '' $ac_executable_extensions; do
2462 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2463 if test $ac_prog = install &&
2464 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2465 # AIX install. It has an incompatible calling convention.
2467 elif test $ac_prog = install &&
2468 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2469 # program-specific install script used by HP pwplus--don't use.
2472 rm -rf conftest.one conftest.two conftest.dir
2473 echo one > conftest.one
2474 echo two > conftest.two
2476 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2477 test -s conftest.one && test -s conftest.two &&
2478 test -s conftest.dir/conftest.one &&
2479 test -s conftest.dir/conftest.two
2481 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2494 rm -rf conftest.one conftest.two conftest.dir
2497 if test "${ac_cv_path_install+set}" = set; then
2498 INSTALL=$ac_cv_path_install
2500 # As a last resort, use the slow shell script. Don't cache a
2501 # value for INSTALL within a source directory, because that will
2502 # break other packages using the cache if that directory is
2503 # removed, or if the value is a relative name.
2504 INSTALL=$ac_install_sh
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2508 $as_echo "$INSTALL" >&6; }
2510 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2511 # It thinks the first close brace ends the variable substitution.
2512 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2514 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2516 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2519 $as_echo_n "checking whether build environment is sane... " >&6; }
2520 # Reject unsafe characters in $srcdir or the absolute working directory
2521 # name. Accept space and tab only in the latter.
2525 *[\\\"\#\$\&\'\`$am_lf]*)
2526 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2529 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2530 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2533 # Do 'set' in a subshell so we don't clobber the current shell's
2534 # arguments. Must try -L first in case configure is actually a
2535 # symlink; some systems play weird games with the mod time of symlinks
2536 # (eg FreeBSD returns the mod time of the symlink's containing
2540 for am_try in 1 2; do
2541 echo "timestamp, slept: $am_has_slept" > conftest.file
2542 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2543 if test "$*" = "X"; then
2545 set X `ls -t "$srcdir/configure" conftest.file`
2547 if test "$*" != "X $srcdir/configure conftest.file" \
2548 && test "$*" != "X conftest.file $srcdir/configure"; then
2550 # If neither matched, then we have a broken ls. This can happen
2551 # if, for instance, CONFIG_SHELL is bash and it inherits a
2552 # broken ls alias from the environment. This has actually
2553 # happened. Such a system could not be considered "sane".
2554 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2555 alias in your environment" "$LINENO" 5
2557 if test "$2" = conftest.file || test $am_try -eq 2; then
2564 test "$2" = conftest.file
2570 as_fn_error $? "newly created file is older than distributed files!
2571 Check your system clock" "$LINENO" 5
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2574 $as_echo "yes" >&6; }
2575 # If we didn't sleep, we still need to ensure time stamps of config.status and
2576 # generated files are strictly newer.
2578 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2585 test "$program_prefix" != NONE &&
2586 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2587 # Use a double $ so make ignores it.
2588 test "$program_suffix" != NONE &&
2589 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2590 # Double any \ or $.
2591 # By default was `s,x,x', remove it if useless.
2592 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2593 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2595 # Expand $ac_aux_dir to an absolute path.
2596 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2598 if test x"${MISSING+set}" != xset; then
2601 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2603 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2606 # Use eval to expand $SHELL
2607 if eval "$MISSING --is-lightweight"; then
2608 am_missing_run="$MISSING "
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2612 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2615 if test x"${install_sh+set}" != xset; then
2618 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2620 install_sh="\${SHELL} $am_aux_dir/install-sh"
2624 # Installed binaries are usually stripped using 'strip' when the user
2625 # run "make install-strip". However 'strip' might not be the right
2626 # tool to use in cross-compilation environments, therefore Automake
2627 # will honor the 'STRIP' environment variable to overrule this program.
2628 if test "$cross_compiling" != no; then
2629 if test -n "$ac_tool_prefix"; then
2630 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2631 set dummy ${ac_tool_prefix}strip; ac_word=$2
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2633 $as_echo_n "checking for $ac_word... " >&6; }
2634 if ${ac_cv_prog_STRIP+:} false; then :
2635 $as_echo_n "(cached) " >&6
2637 if test -n "$STRIP"; then
2638 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644 test -z "$as_dir" && as_dir=.
2645 for ac_exec_ext in '' $ac_executable_extensions; do
2646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2647 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2657 STRIP=$ac_cv_prog_STRIP
2658 if test -n "$STRIP"; then
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2660 $as_echo "$STRIP" >&6; }
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2663 $as_echo "no" >&6; }
2668 if test -z "$ac_cv_prog_STRIP"; then
2670 # Extract the first word of "strip", so it can be a program name with args.
2671 set dummy strip; ac_word=$2
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2673 $as_echo_n "checking for $ac_word... " >&6; }
2674 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2675 $as_echo_n "(cached) " >&6
2677 if test -n "$ac_ct_STRIP"; then
2678 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684 test -z "$as_dir" && as_dir=.
2685 for ac_exec_ext in '' $ac_executable_extensions; do
2686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2687 ac_cv_prog_ac_ct_STRIP="strip"
2688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2697 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2698 if test -n "$ac_ct_STRIP"; then
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2700 $as_echo "$ac_ct_STRIP" >&6; }
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2703 $as_echo "no" >&6; }
2706 if test "x$ac_ct_STRIP" = x; then
2709 case $cross_compiling:$ac_tool_warned in
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2713 ac_tool_warned=yes ;;
2718 STRIP="$ac_cv_prog_STRIP"
2722 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2725 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2726 if test -z "$MKDIR_P"; then
2727 if ${ac_cv_path_mkdir+:} false; then :
2728 $as_echo_n "(cached) " >&6
2730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2734 test -z "$as_dir" && as_dir=.
2735 for ac_prog in mkdir gmkdir; do
2736 for ac_exec_ext in '' $ac_executable_extensions; do
2737 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2738 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2739 'mkdir (GNU coreutils) '* | \
2740 'mkdir (coreutils) '* | \
2741 'mkdir (fileutils) '4.1*)
2742 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2752 test -d ./--version && rmdir ./--version
2753 if test "${ac_cv_path_mkdir+set}" = set; then
2754 MKDIR_P="$ac_cv_path_mkdir -p"
2756 # As a last resort, use the slow shell script. Don't cache a
2757 # value for MKDIR_P within a source directory, because that will
2758 # break other packages using the cache if that directory is
2759 # removed, or if the value is a relative name.
2760 MKDIR_P="$ac_install_sh -d"
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2764 $as_echo "$MKDIR_P" >&6; }
2766 for ac_prog in gawk mawk nawk awk
2768 # Extract the first word of "$ac_prog", so it can be a program name with args.
2769 set dummy $ac_prog; ac_word=$2
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2771 $as_echo_n "checking for $ac_word... " >&6; }
2772 if ${ac_cv_prog_AWK+:} false; then :
2773 $as_echo_n "(cached) " >&6
2775 if test -n "$AWK"; then
2776 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782 test -z "$as_dir" && as_dir=.
2783 for ac_exec_ext in '' $ac_executable_extensions; do
2784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2785 ac_cv_prog_AWK="$ac_prog"
2786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2796 if test -n "$AWK"; then
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2798 $as_echo "$AWK" >&6; }
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2801 $as_echo "no" >&6; }
2805 test -n "$AWK" && break
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2809 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2811 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2812 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2813 $as_echo_n "(cached) " >&6
2815 cat >conftest.make <<\_ACEOF
2818 @echo '@@@%%%=$(MAKE)=@@@%%%'
2820 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2821 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2823 eval ac_cv_prog_make_${ac_make}_set=yes;;
2825 eval ac_cv_prog_make_${ac_make}_set=no;;
2829 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2831 $as_echo "yes" >&6; }
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2835 $as_echo "no" >&6; }
2836 SET_MAKE="MAKE=${MAKE-make}"
2839 rm -rf .tst 2>/dev/null
2840 mkdir .tst 2>/dev/null
2841 if test -d .tst; then
2846 rmdir .tst 2>/dev/null
2848 # Check whether --enable-silent-rules was given.
2849 if test "${enable_silent_rules+set}" = set; then :
2850 enableval=$enable_silent_rules;
2853 case $enable_silent_rules in # (((
2854 yes) AM_DEFAULT_VERBOSITY=0;;
2855 no) AM_DEFAULT_VERBOSITY=1;;
2856 *) AM_DEFAULT_VERBOSITY=1;;
2858 am_make=${MAKE-make}
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2860 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2861 if ${am_cv_make_support_nested_variables+:} false; then :
2862 $as_echo_n "(cached) " >&6
2864 if $as_echo 'TRUE=$(BAR$(V))
2870 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2871 am_cv_make_support_nested_variables=yes
2873 am_cv_make_support_nested_variables=no
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2877 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2878 if test $am_cv_make_support_nested_variables = yes; then
2880 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2882 AM_V=$AM_DEFAULT_VERBOSITY
2883 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2887 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2888 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2889 # is not polluted with repeated "-I."
2890 am__isrc=' -I$(srcdir)'
2891 # test to see if srcdir already configured
2892 if test -f $srcdir/config.status; then
2893 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2897 # test whether we have cygpath
2898 if test -z "$CYGPATH_W"; then
2899 if (cygpath --version) >/dev/null 2>/dev/null; then
2900 CYGPATH_W='cygpath -w'
2907 # Define the identity of the package.
2912 cat >>confdefs.h <<_ACEOF
2913 #define PACKAGE "$PACKAGE"
2917 cat >>confdefs.h <<_ACEOF
2918 #define VERSION "$VERSION"
2921 # Some tools Automake needs.
2923 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2926 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2929 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2932 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2935 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2937 # For better backward compatibility. To be removed once Automake 1.9.x
2938 # dies out for good. For more background, see:
2939 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2940 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2941 mkdir_p='$(MKDIR_P)'
2943 # We need awk for the "check" target (and possibly the TAP driver). The
2944 # system "awk" is bad on some platforms.
2945 # Always define AMTAR for backward compatibility. Yes, it's still used
2946 # in the wild :-( We should find a proper way to deprecate it ...
2950 # We'll loop over all known methods to create a tar archive until one works.
2951 _am_tools='gnutar pax cpio none'
2953 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2960 # POSIX will say in a future version that running "rm -f" with no argument
2961 # is OK; and we want to be able to make that assumption in our Makefile
2962 # recipes. So use an aggressive probe to check that the usage we want is
2963 # actually supported "in the wild" to an acceptable degree.
2964 # See automake bug#10828.
2965 # To make any issue more visible, cause the running configure to be aborted
2966 # by default if the 'rm' program in use doesn't match our expectations; the
2967 # user can still override this though.
2968 if rm -f && rm -fr && rm -rf; then : OK; else
2972 Your 'rm' program seems unable to run without file operands specified
2973 on the command line, even when the '-f' option is present. This is contrary
2974 to the behaviour of most rm programs out there, and not conforming with
2975 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2977 Please tell bug-automake@gnu.org about your system, including the value
2978 of your $PATH and any error possibly output before this message. This
2979 can help us improve future automake versions.
2982 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2983 echo 'Configuration will proceed anyway, since you have set the' >&2
2984 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2988 Aborting the configuration process, to ensure you take notice of the issue.
2990 You can download and install GNU coreutils to get an 'rm' implementation
2991 that behaves properly: <https://www.gnu.org/software/coreutils/>.
2993 If you want to complete the configuration process using your problematic
2994 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2995 to "yes", and re-run configure.
2998 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3002 DEPDIR="${am__leading_dot}deps"
3004 ac_config_commands="$ac_config_commands depfiles"
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3007 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3008 cat > confinc.mk << 'END'
3010 @echo this is the am__doit target >confinc.out
3015 # BSD make does it like this.
3016 echo '.include "confinc.mk" # ignored' > confmf.BSD
3017 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3018 echo 'include confinc.mk # ignored' > confmf.GNU
3020 for s in GNU BSD; do
3021 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3022 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); }
3026 case $?:`cat confinc.out 2>/dev/null` in #(
3027 '0:this is the am__doit target') :
3030 am__include='.include' am__quote='"' ;; #(
3032 am__include='include' am__quote='' ;;
3037 if test "$am__include" != "#"; then
3038 _am_result="yes ($s style)"
3042 rm -f confinc.* confmf.*
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3044 $as_echo "${_am_result}" >&6; }
3046 # Check whether --enable-dependency-tracking was given.
3047 if test "${enable_dependency_tracking+set}" = set; then :
3048 enableval=$enable_dependency_tracking;
3051 if test "x$enable_dependency_tracking" != xno; then
3052 am_depcomp="$ac_aux_dir/depcomp"
3056 if test "x$enable_dependency_tracking" != xno; then
3066 ac_cpp='$CPP $CPPFLAGS'
3067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3070 if test -n "$ac_tool_prefix"; then
3071 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3072 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3074 $as_echo_n "checking for $ac_word... " >&6; }
3075 if ${ac_cv_prog_CC+:} false; then :
3076 $as_echo_n "(cached) " >&6
3078 if test -n "$CC"; then
3079 ac_cv_prog_CC="$CC" # Let the user override the test.
3081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085 test -z "$as_dir" && as_dir=.
3086 for ac_exec_ext in '' $ac_executable_extensions; do
3087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3088 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3099 if test -n "$CC"; then
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3101 $as_echo "$CC" >&6; }
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3104 $as_echo "no" >&6; }
3109 if test -z "$ac_cv_prog_CC"; then
3111 # Extract the first word of "gcc", so it can be a program name with args.
3112 set dummy gcc; ac_word=$2
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3114 $as_echo_n "checking for $ac_word... " >&6; }
3115 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3116 $as_echo_n "(cached) " >&6
3118 if test -n "$ac_ct_CC"; then
3119 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3125 test -z "$as_dir" && as_dir=.
3126 for ac_exec_ext in '' $ac_executable_extensions; do
3127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3128 ac_cv_prog_ac_ct_CC="gcc"
3129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3138 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3139 if test -n "$ac_ct_CC"; then
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3141 $as_echo "$ac_ct_CC" >&6; }
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3144 $as_echo "no" >&6; }
3147 if test "x$ac_ct_CC" = x; then
3150 case $cross_compiling:$ac_tool_warned in
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3154 ac_tool_warned=yes ;;
3162 if test -z "$CC"; then
3163 if test -n "$ac_tool_prefix"; then
3164 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3165 set dummy ${ac_tool_prefix}cc; ac_word=$2
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3167 $as_echo_n "checking for $ac_word... " >&6; }
3168 if ${ac_cv_prog_CC+:} false; then :
3169 $as_echo_n "(cached) " >&6
3171 if test -n "$CC"; then
3172 ac_cv_prog_CC="$CC" # Let the user override the test.
3174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178 test -z "$as_dir" && as_dir=.
3179 for ac_exec_ext in '' $ac_executable_extensions; do
3180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3181 ac_cv_prog_CC="${ac_tool_prefix}cc"
3182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3192 if test -n "$CC"; then
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3194 $as_echo "$CC" >&6; }
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197 $as_echo "no" >&6; }
3203 if test -z "$CC"; then
3204 # Extract the first word of "cc", so it can be a program name with args.
3205 set dummy cc; ac_word=$2
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3207 $as_echo_n "checking for $ac_word... " >&6; }
3208 if ${ac_cv_prog_CC+:} false; then :
3209 $as_echo_n "(cached) " >&6
3211 if test -n "$CC"; then
3212 ac_cv_prog_CC="$CC" # Let the user override the test.
3215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3219 test -z "$as_dir" && as_dir=.
3220 for ac_exec_ext in '' $ac_executable_extensions; do
3221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3222 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3223 ac_prog_rejected=yes
3227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3234 if test $ac_prog_rejected = yes; then
3235 # We found a bogon in the path, so make sure we never use it.
3236 set dummy $ac_cv_prog_CC
3238 if test $# != 0; then
3239 # We chose a different compiler from the bogus one.
3240 # However, it has the same basename, so the bogon will be chosen
3241 # first if we set CC to just the basename; use the full file name.
3243 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3249 if test -n "$CC"; then
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3251 $as_echo "$CC" >&6; }
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254 $as_echo "no" >&6; }
3259 if test -z "$CC"; then
3260 if test -n "$ac_tool_prefix"; then
3261 for ac_prog in cl.exe
3263 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3264 set dummy $ac_tool_prefix$ac_prog; 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$ac_prog"
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; }
3300 test -n "$CC" && break
3303 if test -z "$CC"; then
3305 for ac_prog in cl.exe
3307 # Extract the first word of "$ac_prog", so it can be a program name with args.
3308 set dummy $ac_prog; ac_word=$2
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3310 $as_echo_n "checking for $ac_word... " >&6; }
3311 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3312 $as_echo_n "(cached) " >&6
3314 if test -n "$ac_ct_CC"; then
3315 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321 test -z "$as_dir" && as_dir=.
3322 for ac_exec_ext in '' $ac_executable_extensions; do
3323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3324 ac_cv_prog_ac_ct_CC="$ac_prog"
3325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3334 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3335 if test -n "$ac_ct_CC"; then
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3337 $as_echo "$ac_ct_CC" >&6; }
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3340 $as_echo "no" >&6; }
3344 test -n "$ac_ct_CC" && break
3347 if test "x$ac_ct_CC" = x; then
3350 case $cross_compiling:$ac_tool_warned in
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3354 ac_tool_warned=yes ;;
3363 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3365 as_fn_error $? "no acceptable C compiler found in \$PATH
3366 See \`config.log' for more details" "$LINENO" 5; }
3368 # Provide some information about the compiler.
3369 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3372 for ac_option in --version -v -V -qversion; do
3373 { { ac_try="$ac_compiler $ac_option >&5"
3375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376 *) ac_try_echo=$ac_try;;
3378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3379 $as_echo "$ac_try_echo"; } >&5
3380 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3382 if test -s conftest.err; then
3384 ... rest of stderr output deleted ...
3385 10q' conftest.err >conftest.er1
3386 cat conftest.er1 >&5
3388 rm -f conftest.er1 conftest.err
3389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3390 test $ac_status = 0; }
3393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3394 /* end confdefs.h. */
3404 ac_clean_files_save=$ac_clean_files
3405 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3406 # Try to create an executable without -o first, disregard a.out.
3407 # It will help us diagnose broken compilers, and finding out an intuition
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3410 $as_echo_n "checking whether the C compiler works... " >&6; }
3411 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3413 # The possible output files:
3414 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3417 for ac_file in $ac_files
3420 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3421 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3426 if { { ac_try="$ac_link_default"
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3432 $as_echo "$ac_try_echo"; } >&5
3433 (eval "$ac_link_default") 2>&5
3435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3436 test $ac_status = 0; }; then :
3437 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3438 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3439 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3440 # so that the user can short-circuit this test for compilers unknown to
3442 for ac_file in $ac_files ''
3444 test -f "$ac_file" || continue
3446 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3449 # We found the default executable, but exeext='' is most
3453 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3455 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3457 # We set ac_cv_exeext here because the later test for it is not
3458 # safe: cross compilers may not add the suffix if given an `-o'
3459 # argument, so we may need to know it at that point already.
3460 # Even if this section looks crufty: it has the advantage of
3467 test "$ac_cv_exeext" = no && ac_cv_exeext=
3472 if test -z "$ac_file"; then :
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3474 $as_echo "no" >&6; }
3475 $as_echo "$as_me: failed program was:" >&5
3476 sed 's/^/| /' conftest.$ac_ext >&5
3478 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3479 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3480 as_fn_error 77 "C compiler cannot create executables
3481 See \`config.log' for more details" "$LINENO" 5; }
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3484 $as_echo "yes" >&6; }
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3487 $as_echo_n "checking for C compiler default output file name... " >&6; }
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3489 $as_echo "$ac_file" >&6; }
3490 ac_exeext=$ac_cv_exeext
3492 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3493 ac_clean_files=$ac_clean_files_save
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3495 $as_echo_n "checking for suffix of executables... " >&6; }
3496 if { { ac_try="$ac_link"
3498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499 *) ac_try_echo=$ac_try;;
3501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3502 $as_echo "$ac_try_echo"; } >&5
3503 (eval "$ac_link") 2>&5
3505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3506 test $ac_status = 0; }; then :
3507 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3508 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3509 # work properly (i.e., refer to `conftest.exe'), while it won't with
3511 for ac_file in conftest.exe conftest conftest.*; do
3512 test -f "$ac_file" || continue
3514 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3515 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3521 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3523 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3524 See \`config.log' for more details" "$LINENO" 5; }
3526 rm -f conftest conftest$ac_cv_exeext
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3528 $as_echo "$ac_cv_exeext" >&6; }
3530 rm -f conftest.$ac_ext
3531 EXEEXT=$ac_cv_exeext
3533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534 /* end confdefs.h. */
3539 FILE *f = fopen ("conftest.out", "w");
3540 return ferror (f) || fclose (f) != 0;
3546 ac_clean_files="$ac_clean_files conftest.out"
3547 # Check that the compiler produces executables we can run. If not, either
3548 # the compiler is broken, or we cross compile.
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3550 $as_echo_n "checking whether we are cross compiling... " >&6; }
3551 if test "$cross_compiling" != yes; then
3552 { { ac_try="$ac_link"
3554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555 *) ac_try_echo=$ac_try;;
3557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3558 $as_echo "$ac_try_echo"; } >&5
3559 (eval "$ac_link") 2>&5
3561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3562 test $ac_status = 0; }
3563 if { ac_try='./conftest$ac_cv_exeext'
3564 { { case "(($ac_try" in
3565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566 *) ac_try_echo=$ac_try;;
3568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3569 $as_echo "$ac_try_echo"; } >&5
3570 (eval "$ac_try") 2>&5
3572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3573 test $ac_status = 0; }; }; then
3576 if test "$cross_compiling" = maybe; then
3579 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3581 as_fn_error $? "cannot run C compiled programs.
3582 If you meant to cross compile, use \`--host'.
3583 See \`config.log' for more details" "$LINENO" 5; }
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3588 $as_echo "$cross_compiling" >&6; }
3590 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3591 ac_clean_files=$ac_clean_files_save
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3593 $as_echo_n "checking for suffix of object files... " >&6; }
3594 if ${ac_cv_objext+:} false; then :
3595 $as_echo_n "(cached) " >&6
3597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3598 /* end confdefs.h. */
3608 rm -f conftest.o conftest.obj
3609 if { { ac_try="$ac_compile"
3611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612 *) ac_try_echo=$ac_try;;
3614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3615 $as_echo "$ac_try_echo"; } >&5
3616 (eval "$ac_compile") 2>&5
3618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3619 test $ac_status = 0; }; then :
3620 for ac_file in conftest.o conftest.obj conftest.*; do
3621 test -f "$ac_file" || continue;
3623 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3624 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3629 $as_echo "$as_me: failed program was:" >&5
3630 sed 's/^/| /' conftest.$ac_ext >&5
3632 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3633 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3634 as_fn_error $? "cannot compute suffix of object files: cannot compile
3635 See \`config.log' for more details" "$LINENO" 5; }
3637 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3640 $as_echo "$ac_cv_objext" >&6; }
3641 OBJEXT=$ac_cv_objext
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3644 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3645 if ${ac_cv_c_compiler_gnu+:} false; then :
3646 $as_echo_n "(cached) " >&6
3648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649 /* end confdefs.h. */
3662 if ac_fn_c_try_compile "$LINENO"; then :
3667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3668 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3672 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3673 if test $ac_compiler_gnu = yes; then
3678 ac_test_CFLAGS=${CFLAGS+set}
3679 ac_save_CFLAGS=$CFLAGS
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3681 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3682 if ${ac_cv_prog_cc_g+:} false; then :
3683 $as_echo_n "(cached) " >&6
3685 ac_save_c_werror_flag=$ac_c_werror_flag
3686 ac_c_werror_flag=yes
3689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3690 /* end confdefs.h. */
3700 if ac_fn_c_try_compile "$LINENO"; then :
3704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3705 /* end confdefs.h. */
3715 if ac_fn_c_try_compile "$LINENO"; then :
3718 ac_c_werror_flag=$ac_save_c_werror_flag
3720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721 /* end confdefs.h. */
3731 if ac_fn_c_try_compile "$LINENO"; then :
3734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3739 ac_c_werror_flag=$ac_save_c_werror_flag
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3742 $as_echo "$ac_cv_prog_cc_g" >&6; }
3743 if test "$ac_test_CFLAGS" = set; then
3744 CFLAGS=$ac_save_CFLAGS
3745 elif test $ac_cv_prog_cc_g = yes; then
3746 if test "$GCC" = yes; then
3752 if test "$GCC" = yes; then
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3759 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3760 if ${ac_cv_prog_cc_c89+:} false; then :
3761 $as_echo_n "(cached) " >&6
3763 ac_cv_prog_cc_c89=no
3765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3766 /* end confdefs.h. */
3770 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3771 struct buf { int x; };
3772 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3773 static char *e (p, i)
3779 static char *f (char * (*g) (char **, int), char **p, ...)
3784 s = g (p, va_arg (v,int));
3789 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3790 function prototypes and stuff, but not '\xHH' hex character constants.
3791 These don't provoke an error unfortunately, instead are silently treated
3792 as 'x'. The following induces an error, until -std is added to get
3793 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3794 array size at least. It's necessary to write '\x00'==0 to get something
3795 that's true only with -std. */
3796 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3798 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3799 inside strings and character constants. */
3801 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3803 int test (int i, double x);
3804 struct s1 {int (*f) (int a);};
3805 struct s2 {int (*f) (double a);};
3806 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3812 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3817 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3818 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3820 CC="$ac_save_CC $ac_arg"
3821 if ac_fn_c_try_compile "$LINENO"; then :
3822 ac_cv_prog_cc_c89=$ac_arg
3824 rm -f core conftest.err conftest.$ac_objext
3825 test "x$ac_cv_prog_cc_c89" != "xno" && break
3827 rm -f conftest.$ac_ext
3832 case "x$ac_cv_prog_cc_c89" in
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3835 $as_echo "none needed" >&6; } ;;
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3838 $as_echo "unsupported" >&6; } ;;
3840 CC="$CC $ac_cv_prog_cc_c89"
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3842 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3844 if test "x$ac_cv_prog_cc_c89" != xno; then :
3849 ac_cpp='$CPP $CPPFLAGS'
3850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3855 ac_cpp='$CPP $CPPFLAGS'
3856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3860 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3861 if ${am_cv_prog_cc_c_o+:} false; then :
3862 $as_echo_n "(cached) " >&6
3864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3865 /* end confdefs.h. */
3875 # Make sure it works both with $CC and with simple cc.
3876 # Following AC_PROG_CC_C_O, we do the test twice because some
3877 # compilers refuse to overwrite an existing .o file with -o,
3878 # though they will create one.
3879 am_cv_prog_cc_c_o=yes
3881 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3882 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); } \
3886 && test -f conftest2.$ac_objext; then
3889 am_cv_prog_cc_c_o=no
3893 rm -f core conftest*
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3897 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3898 if test "$am_cv_prog_cc_c_o" != yes; then
3899 # Losing compiler, so override with the script.
3900 # FIXME: It is wrong to rewrite CC.
3901 # But if we don't then we get into trouble of one sort or another.
3902 # A longer-term fix would be to have automake use am__CC in this case,
3903 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3904 CC="$am_aux_dir/compile $CC"
3907 ac_cpp='$CPP $CPPFLAGS'
3908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3913 depcc="$CC" am_compiler_list=
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3916 $as_echo_n "checking dependency style of $depcc... " >&6; }
3917 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3918 $as_echo_n "(cached) " >&6
3920 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3921 # We make a subdir and do the tests there. Otherwise we can end up
3922 # making bogus files that we don't know about and never remove. For
3923 # instance it was reported that on HP-UX the gcc test will end up
3924 # making a dummy file named 'D' -- because '-MD' means "put the output
3928 # Copy depcomp to subdir because otherwise we won't find it if we're
3929 # using a relative directory.
3930 cp "$am_depcomp" conftest.dir
3932 # We will build objects and dependencies in a subdirectory because
3933 # it helps to detect inapplicable dependency modes. For instance
3934 # both Tru64's cc and ICC support -MD to output dependencies as a
3935 # side effect of compilation, but ICC will put the dependencies in
3936 # the current directory while Tru64 will put them in the object
3940 am_cv_CC_dependencies_compiler_type=none
3941 if test "$am_compiler_list" = ""; then
3942 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3945 case " $depcc " in #(
3946 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3949 for depmode in $am_compiler_list; do
3950 # Setup a source with many dependencies, because some compilers
3951 # like to wrap large dependency lists on column 80 (with \), and
3952 # we should not choose a depcomp mode which is confused by this.
3954 # We need to recreate these files for each test, as the compiler may
3955 # overwrite some of them when testing with obscure command lines.
3956 # This happens at least with the AIX C compiler.
3958 for i in 1 2 3 4 5 6; do
3959 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3960 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3961 # Solaris 10 /bin/sh.
3962 echo '/* dummy */' > sub/conftst$i.h
3964 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3966 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3967 # mode. It turns out that the SunPro C++ compiler does not properly
3968 # handle '-M -o', and we need to detect this. Also, some Intel
3969 # versions had trouble with output in subdirs.
3970 am__obj=sub/conftest.${OBJEXT-o}
3971 am__minus_obj="-o $am__obj"
3974 # This depmode causes a compiler race in universal mode.
3975 test "$am__universal" = false || continue
3978 # After this tag, mechanisms are not by side-effect, so they'll
3979 # only be used when explicitly requested.
3980 if test "x$enable_dependency_tracking" = xyes; then
3986 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3987 # This compiler won't grok '-c -o', but also, the minuso test has
3988 # not run yet. These depmodes are late enough in the game, and
3989 # so weak that their functioning should not be impacted.
3990 am__obj=conftest.${OBJEXT-o}
3995 if depmode=$depmode \
3996 source=sub/conftest.c object=$am__obj \
3997 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3998 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3999 >/dev/null 2>conftest.err &&
4000 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4001 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4002 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4003 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4004 # icc doesn't choke on unknown options, it will just issue warnings
4005 # or remarks (even with -Werror). So we grep stderr for any message
4006 # that says an option was ignored or not supported.
4007 # When given -MP, icc 7.0 and 7.1 complain thusly:
4008 # icc: Command line warning: ignoring option '-M'; no argument required
4009 # The diagnosis changed in icc 8.0:
4010 # icc: Command line remark: option '-MP' not supported
4011 if (grep 'ignoring option' conftest.err ||
4012 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4013 am_cv_CC_dependencies_compiler_type=$depmode
4022 am_cv_CC_dependencies_compiler_type=none
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4027 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4028 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4031 test "x$enable_dependency_tracking" != xno \
4032 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4034 am__fastdepCC_FALSE='#'
4036 am__fastdepCC_TRUE='#'
4037 am__fastdepCC_FALSE=
4042 if test -n "$ac_tool_prefix"; then
4043 for ac_prog in ar lib "link -lib"
4045 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4046 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4048 $as_echo_n "checking for $ac_word... " >&6; }
4049 if ${ac_cv_prog_AR+:} false; then :
4050 $as_echo_n "(cached) " >&6
4052 if test -n "$AR"; then
4053 ac_cv_prog_AR="$AR" # Let the user override the test.
4055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4059 test -z "$as_dir" && as_dir=.
4060 for ac_exec_ext in '' $ac_executable_extensions; do
4061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4062 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4073 if test -n "$AR"; then
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4075 $as_echo "$AR" >&6; }
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4078 $as_echo "no" >&6; }
4082 test -n "$AR" && break
4085 if test -z "$AR"; then
4087 for ac_prog in ar lib "link -lib"
4089 # Extract the first word of "$ac_prog", so it can be a program name with args.
4090 set dummy $ac_prog; ac_word=$2
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4092 $as_echo_n "checking for $ac_word... " >&6; }
4093 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4094 $as_echo_n "(cached) " >&6
4096 if test -n "$ac_ct_AR"; then
4097 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4103 test -z "$as_dir" && as_dir=.
4104 for ac_exec_ext in '' $ac_executable_extensions; do
4105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4106 ac_cv_prog_ac_ct_AR="$ac_prog"
4107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4116 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4117 if test -n "$ac_ct_AR"; then
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4119 $as_echo "$ac_ct_AR" >&6; }
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4122 $as_echo "no" >&6; }
4126 test -n "$ac_ct_AR" && break
4129 if test "x$ac_ct_AR" = x; then
4132 case $cross_compiling:$ac_tool_warned in
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4136 ac_tool_warned=yes ;;
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4145 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4146 if ${am_cv_ar_interface+:} false; then :
4147 $as_echo_n "(cached) " >&6
4150 ac_cpp='$CPP $CPPFLAGS'
4151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4155 am_cv_ar_interface=ar
4156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4157 /* end confdefs.h. */
4158 int some_variable = 0;
4160 if ac_fn_c_try_compile "$LINENO"; then :
4161 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4162 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4163 (eval $am_ar_try) 2>&5
4165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4166 test $ac_status = 0; }
4167 if test "$ac_status" -eq 0; then
4168 am_cv_ar_interface=ar
4170 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4171 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4172 (eval $am_ar_try) 2>&5
4174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4175 test $ac_status = 0; }
4176 if test "$ac_status" -eq 0; then
4177 am_cv_ar_interface=lib
4179 am_cv_ar_interface=unknown
4182 rm -f conftest.lib libconftest.a
4185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4187 ac_cpp='$CPP $CPPFLAGS'
4188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4194 $as_echo "$am_cv_ar_interface" >&6; }
4196 case $am_cv_ar_interface in
4200 # Microsoft lib, so override with the ar-lib wrapper script.
4201 # FIXME: It is wrong to rewrite AR.
4202 # But if we don't then we get into trouble of one sort or another.
4203 # A longer-term fix would be to have automake use am__AR in this case,
4204 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4206 AR="$am_aux_dir/ar-lib $AR"
4209 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4215 ac_cpp='$CXXCPP $CPPFLAGS'
4216 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4217 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4218 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4219 if test -z "$CXX"; then
4220 if test -n "$CCC"; then
4223 if test -n "$ac_tool_prefix"; then
4224 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4226 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4227 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4229 $as_echo_n "checking for $ac_word... " >&6; }
4230 if ${ac_cv_prog_CXX+:} false; then :
4231 $as_echo_n "(cached) " >&6
4233 if test -n "$CXX"; then
4234 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240 test -z "$as_dir" && as_dir=.
4241 for ac_exec_ext in '' $ac_executable_extensions; do
4242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4243 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4254 if test -n "$CXX"; then
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4256 $as_echo "$CXX" >&6; }
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4259 $as_echo "no" >&6; }
4263 test -n "$CXX" && break
4266 if test -z "$CXX"; then
4268 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4270 # Extract the first word of "$ac_prog", so it can be a program name with args.
4271 set dummy $ac_prog; ac_word=$2
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4273 $as_echo_n "checking for $ac_word... " >&6; }
4274 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4275 $as_echo_n "(cached) " >&6
4277 if test -n "$ac_ct_CXX"; then
4278 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284 test -z "$as_dir" && as_dir=.
4285 for ac_exec_ext in '' $ac_executable_extensions; do
4286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4287 ac_cv_prog_ac_ct_CXX="$ac_prog"
4288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4297 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4298 if test -n "$ac_ct_CXX"; then
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4300 $as_echo "$ac_ct_CXX" >&6; }
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4303 $as_echo "no" >&6; }
4307 test -n "$ac_ct_CXX" && break
4310 if test "x$ac_ct_CXX" = x; then
4313 case $cross_compiling:$ac_tool_warned in
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4317 ac_tool_warned=yes ;;
4325 # Provide some information about the compiler.
4326 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4329 for ac_option in --version -v -V -qversion; do
4330 { { ac_try="$ac_compiler $ac_option >&5"
4332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4333 *) ac_try_echo=$ac_try;;
4335 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4336 $as_echo "$ac_try_echo"; } >&5
4337 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4339 if test -s conftest.err; then
4341 ... rest of stderr output deleted ...
4342 10q' conftest.err >conftest.er1
4343 cat conftest.er1 >&5
4345 rm -f conftest.er1 conftest.err
4346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4347 test $ac_status = 0; }
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4351 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4352 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4353 $as_echo_n "(cached) " >&6
4355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4356 /* end confdefs.h. */
4369 if ac_fn_cxx_try_compile "$LINENO"; then :
4374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4375 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4379 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4380 if test $ac_compiler_gnu = yes; then
4385 ac_test_CXXFLAGS=${CXXFLAGS+set}
4386 ac_save_CXXFLAGS=$CXXFLAGS
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4388 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4389 if ${ac_cv_prog_cxx_g+:} false; then :
4390 $as_echo_n "(cached) " >&6
4392 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4393 ac_cxx_werror_flag=yes
4396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4397 /* end confdefs.h. */
4407 if ac_fn_cxx_try_compile "$LINENO"; then :
4408 ac_cv_prog_cxx_g=yes
4411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4412 /* end confdefs.h. */
4422 if ac_fn_cxx_try_compile "$LINENO"; then :
4425 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4428 /* end confdefs.h. */
4438 if ac_fn_cxx_try_compile "$LINENO"; then :
4439 ac_cv_prog_cxx_g=yes
4441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4446 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4449 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4450 if test "$ac_test_CXXFLAGS" = set; then
4451 CXXFLAGS=$ac_save_CXXFLAGS
4452 elif test $ac_cv_prog_cxx_g = yes; then
4453 if test "$GXX" = yes; then
4459 if test "$GXX" = yes; then
4466 ac_cpp='$CPP $CPPFLAGS'
4467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4471 depcc="$CXX" am_compiler_list=
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4474 $as_echo_n "checking dependency style of $depcc... " >&6; }
4475 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4476 $as_echo_n "(cached) " >&6
4478 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4479 # We make a subdir and do the tests there. Otherwise we can end up
4480 # making bogus files that we don't know about and never remove. For
4481 # instance it was reported that on HP-UX the gcc test will end up
4482 # making a dummy file named 'D' -- because '-MD' means "put the output
4486 # Copy depcomp to subdir because otherwise we won't find it if we're
4487 # using a relative directory.
4488 cp "$am_depcomp" conftest.dir
4490 # We will build objects and dependencies in a subdirectory because
4491 # it helps to detect inapplicable dependency modes. For instance
4492 # both Tru64's cc and ICC support -MD to output dependencies as a
4493 # side effect of compilation, but ICC will put the dependencies in
4494 # the current directory while Tru64 will put them in the object
4498 am_cv_CXX_dependencies_compiler_type=none
4499 if test "$am_compiler_list" = ""; then
4500 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4503 case " $depcc " in #(
4504 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4507 for depmode in $am_compiler_list; do
4508 # Setup a source with many dependencies, because some compilers
4509 # like to wrap large dependency lists on column 80 (with \), and
4510 # we should not choose a depcomp mode which is confused by this.
4512 # We need to recreate these files for each test, as the compiler may
4513 # overwrite some of them when testing with obscure command lines.
4514 # This happens at least with the AIX C compiler.
4516 for i in 1 2 3 4 5 6; do
4517 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4518 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4519 # Solaris 10 /bin/sh.
4520 echo '/* dummy */' > sub/conftst$i.h
4522 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4524 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4525 # mode. It turns out that the SunPro C++ compiler does not properly
4526 # handle '-M -o', and we need to detect this. Also, some Intel
4527 # versions had trouble with output in subdirs.
4528 am__obj=sub/conftest.${OBJEXT-o}
4529 am__minus_obj="-o $am__obj"
4532 # This depmode causes a compiler race in universal mode.
4533 test "$am__universal" = false || continue
4536 # After this tag, mechanisms are not by side-effect, so they'll
4537 # only be used when explicitly requested.
4538 if test "x$enable_dependency_tracking" = xyes; then
4544 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4545 # This compiler won't grok '-c -o', but also, the minuso test has
4546 # not run yet. These depmodes are late enough in the game, and
4547 # so weak that their functioning should not be impacted.
4548 am__obj=conftest.${OBJEXT-o}
4553 if depmode=$depmode \
4554 source=sub/conftest.c object=$am__obj \
4555 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4556 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4557 >/dev/null 2>conftest.err &&
4558 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4559 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4560 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4561 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4562 # icc doesn't choke on unknown options, it will just issue warnings
4563 # or remarks (even with -Werror). So we grep stderr for any message
4564 # that says an option was ignored or not supported.
4565 # When given -MP, icc 7.0 and 7.1 complain thusly:
4566 # icc: Command line warning: ignoring option '-M'; no argument required
4567 # The diagnosis changed in icc 8.0:
4568 # icc: Command line remark: option '-MP' not supported
4569 if (grep 'ignoring option' conftest.err ||
4570 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4571 am_cv_CXX_dependencies_compiler_type=$depmode
4580 am_cv_CXX_dependencies_compiler_type=none
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4585 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4586 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4589 test "x$enable_dependency_tracking" != xno \
4590 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4591 am__fastdepCXX_TRUE=
4592 am__fastdepCXX_FALSE='#'
4594 am__fastdepCXX_TRUE='#'
4595 am__fastdepCXX_FALSE=
4599 # This library does not throw exceptions, so we do not generate exception
4600 # handling code. However, users are free to re-enable exception handling.
4601 CXX="$CXX -std=c++11 -fno-exceptions"
4603 # Check whether --enable-static was given.
4604 if test "${enable_static+set}" = set; then :
4605 enableval=$enable_static; p=${PACKAGE-default}
4607 yes) enable_static=yes ;;
4608 no) enable_static=no ;;
4611 # Look at the argument we got. We use all the common list separators.
4612 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
4613 for pkg in $enableval; do
4615 if test "X$pkg" = "X$p"; then
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4637 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4642 macro_version='2.4.6'
4643 macro_revision='2.4.6'
4657 ltmain=$ac_aux_dir/ltmain.sh
4659 # Make sure we can run config.sub.
4660 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4661 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4664 $as_echo_n "checking build system type... " >&6; }
4665 if ${ac_cv_build+:} false; then :
4666 $as_echo_n "(cached) " >&6
4668 ac_build_alias=$build_alias
4669 test "x$ac_build_alias" = x &&
4670 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4671 test "x$ac_build_alias" = x &&
4672 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4673 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4674 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4678 $as_echo "$ac_cv_build" >&6; }
4679 case $ac_cv_build in
4681 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4684 ac_save_IFS=$IFS; IFS='-'
4690 # Remember, the first character of IFS is used to create $*,
4691 # except with old shells:
4694 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4698 $as_echo_n "checking host system type... " >&6; }
4699 if ${ac_cv_host+:} false; then :
4700 $as_echo_n "(cached) " >&6
4702 if test "x$host_alias" = x; then
4703 ac_cv_host=$ac_cv_build
4705 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4706 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4711 $as_echo "$ac_cv_host" >&6; }
4714 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4717 ac_save_IFS=$IFS; IFS='-'
4723 # Remember, the first character of IFS is used to create $*,
4724 # except with old shells:
4727 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4730 # Backslashify metacharacters that are still active within
4731 # double-quoted strings.
4732 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4734 # Same as above, but do not quote variable references.
4735 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4737 # Sed substitution to delay expansion of an escaped shell variable in a
4738 # double_quote_subst'ed string.
4739 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4741 # Sed substitution to delay expansion of an escaped single quote.
4742 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4744 # Sed substitution to avoid accidental globbing in evaled expressions
4745 no_glob_subst='s/\*/\\\*/g'
4747 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4748 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4749 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4752 $as_echo_n "checking how to print strings... " >&6; }
4753 # Test print first, because it will be a builtin if present.
4754 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4755 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4757 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4760 # Use this function as a fallback that always works.
4761 func_fallback_echo ()
4763 eval 'cat <<_LTECHO_EOF
4767 ECHO='func_fallback_echo'
4770 # func_echo_all arg...
4771 # Invoke $ECHO with all args, space-separated.
4778 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4779 $as_echo "printf" >&6; } ;;
4780 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4781 $as_echo "print -r" >&6; } ;;
4782 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4783 $as_echo "cat" >&6; } ;;
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4800 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4801 if ${ac_cv_path_SED+:} false; then :
4802 $as_echo_n "(cached) " >&6
4804 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4805 for ac_i in 1 2 3 4 5 6 7; do
4806 ac_script="$ac_script$as_nl$ac_script"
4808 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4809 { ac_script=; unset ac_script;}
4810 if test -z "$SED"; then
4811 ac_path_SED_found=false
4812 # Loop through the user's path and test for each of PROGNAME-LIST
4813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817 test -z "$as_dir" && as_dir=.
4818 for ac_prog in sed gsed; do
4819 for ac_exec_ext in '' $ac_executable_extensions; do
4820 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4821 as_fn_executable_p "$ac_path_SED" || continue
4822 # Check for GNU ac_path_SED and select it if it is found.
4823 # Check for GNU $ac_path_SED
4824 case `"$ac_path_SED" --version 2>&1` in
4826 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4829 $as_echo_n 0123456789 >"conftest.in"
4832 cat "conftest.in" "conftest.in" >"conftest.tmp"
4833 mv "conftest.tmp" "conftest.in"
4834 cp "conftest.in" "conftest.nl"
4835 $as_echo '' >> "conftest.nl"
4836 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4837 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4838 as_fn_arith $ac_count + 1 && ac_count=$as_val
4839 if test $ac_count -gt ${ac_path_SED_max-0}; then
4840 # Best one so far, save it but keep looking for a better one
4841 ac_cv_path_SED="$ac_path_SED"
4842 ac_path_SED_max=$ac_count
4844 # 10*(2^10) chars as input seems more than enough
4845 test $ac_count -gt 10 && break
4847 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4850 $ac_path_SED_found && break 3
4855 if test -z "$ac_cv_path_SED"; then
4856 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4864 $as_echo "$ac_cv_path_SED" >&6; }
4865 SED="$ac_cv_path_SED"
4868 test -z "$SED" && SED=sed
4869 Xsed="$SED -e 1s/^X//"
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4882 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4883 if ${ac_cv_path_GREP+:} false; then :
4884 $as_echo_n "(cached) " >&6
4886 if test -z "$GREP"; then
4887 ac_path_GREP_found=false
4888 # Loop through the user's path and test for each of PROGNAME-LIST
4889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4890 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4893 test -z "$as_dir" && as_dir=.
4894 for ac_prog in grep ggrep; do
4895 for ac_exec_ext in '' $ac_executable_extensions; do
4896 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4897 as_fn_executable_p "$ac_path_GREP" || continue
4898 # Check for GNU ac_path_GREP and select it if it is found.
4899 # Check for GNU $ac_path_GREP
4900 case `"$ac_path_GREP" --version 2>&1` in
4902 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4905 $as_echo_n 0123456789 >"conftest.in"
4908 cat "conftest.in" "conftest.in" >"conftest.tmp"
4909 mv "conftest.tmp" "conftest.in"
4910 cp "conftest.in" "conftest.nl"
4911 $as_echo 'GREP' >> "conftest.nl"
4912 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4913 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4914 as_fn_arith $ac_count + 1 && ac_count=$as_val
4915 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4916 # Best one so far, save it but keep looking for a better one
4917 ac_cv_path_GREP="$ac_path_GREP"
4918 ac_path_GREP_max=$ac_count
4920 # 10*(2^10) chars as input seems more than enough
4921 test $ac_count -gt 10 && break
4923 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4926 $ac_path_GREP_found && break 3
4931 if test -z "$ac_cv_path_GREP"; then
4932 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4935 ac_cv_path_GREP=$GREP
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4940 $as_echo "$ac_cv_path_GREP" >&6; }
4941 GREP="$ac_cv_path_GREP"
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4945 $as_echo_n "checking for egrep... " >&6; }
4946 if ${ac_cv_path_EGREP+:} false; then :
4947 $as_echo_n "(cached) " >&6
4949 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4950 then ac_cv_path_EGREP="$GREP -E"
4952 if test -z "$EGREP"; then
4953 ac_path_EGREP_found=false
4954 # Loop through the user's path and test for each of PROGNAME-LIST
4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4959 test -z "$as_dir" && as_dir=.
4960 for ac_prog in egrep; do
4961 for ac_exec_ext in '' $ac_executable_extensions; do
4962 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4963 as_fn_executable_p "$ac_path_EGREP" || continue
4964 # Check for GNU ac_path_EGREP and select it if it is found.
4965 # Check for GNU $ac_path_EGREP
4966 case `"$ac_path_EGREP" --version 2>&1` in
4968 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4971 $as_echo_n 0123456789 >"conftest.in"
4974 cat "conftest.in" "conftest.in" >"conftest.tmp"
4975 mv "conftest.tmp" "conftest.in"
4976 cp "conftest.in" "conftest.nl"
4977 $as_echo 'EGREP' >> "conftest.nl"
4978 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4979 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4980 as_fn_arith $ac_count + 1 && ac_count=$as_val
4981 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4982 # Best one so far, save it but keep looking for a better one
4983 ac_cv_path_EGREP="$ac_path_EGREP"
4984 ac_path_EGREP_max=$ac_count
4986 # 10*(2^10) chars as input seems more than enough
4987 test $ac_count -gt 10 && break
4989 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4992 $ac_path_EGREP_found && break 3
4997 if test -z "$ac_cv_path_EGREP"; then
4998 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5001 ac_cv_path_EGREP=$EGREP
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5007 $as_echo "$ac_cv_path_EGREP" >&6; }
5008 EGREP="$ac_cv_path_EGREP"
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5012 $as_echo_n "checking for fgrep... " >&6; }
5013 if ${ac_cv_path_FGREP+:} false; then :
5014 $as_echo_n "(cached) " >&6
5016 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5017 then ac_cv_path_FGREP="$GREP -F"
5019 if test -z "$FGREP"; then
5020 ac_path_FGREP_found=false
5021 # Loop through the user's path and test for each of PROGNAME-LIST
5022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5026 test -z "$as_dir" && as_dir=.
5027 for ac_prog in fgrep; do
5028 for ac_exec_ext in '' $ac_executable_extensions; do
5029 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5030 as_fn_executable_p "$ac_path_FGREP" || continue
5031 # Check for GNU ac_path_FGREP and select it if it is found.
5032 # Check for GNU $ac_path_FGREP
5033 case `"$ac_path_FGREP" --version 2>&1` in
5035 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5038 $as_echo_n 0123456789 >"conftest.in"
5041 cat "conftest.in" "conftest.in" >"conftest.tmp"
5042 mv "conftest.tmp" "conftest.in"
5043 cp "conftest.in" "conftest.nl"
5044 $as_echo 'FGREP' >> "conftest.nl"
5045 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5046 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5047 as_fn_arith $ac_count + 1 && ac_count=$as_val
5048 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5049 # Best one so far, save it but keep looking for a better one
5050 ac_cv_path_FGREP="$ac_path_FGREP"
5051 ac_path_FGREP_max=$ac_count
5053 # 10*(2^10) chars as input seems more than enough
5054 test $ac_count -gt 10 && break
5056 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5059 $ac_path_FGREP_found && break 3
5064 if test -z "$ac_cv_path_FGREP"; then
5065 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5068 ac_cv_path_FGREP=$FGREP
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5074 $as_echo "$ac_cv_path_FGREP" >&6; }
5075 FGREP="$ac_cv_path_FGREP"
5078 test -z "$GREP" && GREP=grep
5098 # Check whether --with-gnu-ld was given.
5099 if test "${with_gnu_ld+set}" = set; then :
5100 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5106 if test yes = "$GCC"; then
5107 # Check if gcc -print-prog-name=ld gives a path.
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5109 $as_echo_n "checking for ld used by $CC... " >&6; }
5112 # gcc leaves a trailing carriage return, which upsets mingw
5113 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5115 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5118 # Accept absolute paths.
5120 re_direlt='/[^/][^/]*/\.\./'
5121 # Canonicalize the pathname of ld
5122 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5123 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5124 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5126 test -z "$LD" && LD=$ac_prog
5129 # If it fails, then pretend we aren't using GCC.
5133 # If it is relative, then search for the first ld in PATH.
5137 elif test yes = "$with_gnu_ld"; then
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5139 $as_echo_n "checking for GNU ld... " >&6; }
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5142 $as_echo_n "checking for non-GNU ld... " >&6; }
5144 if ${lt_cv_path_LD+:} false; then :
5145 $as_echo_n "(cached) " >&6
5147 if test -z "$LD"; then
5148 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5149 for ac_dir in $PATH; do
5151 test -z "$ac_dir" && ac_dir=.
5152 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5153 lt_cv_path_LD=$ac_dir/$ac_prog
5154 # Check to see if the program is GNU ld. I'd rather use --version,
5155 # but apparently some variants of GNU ld only accept -v.
5156 # Break only if it was the GNU/non-GNU ld that we prefer.
5157 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5158 *GNU* | *'with BFD'*)
5159 test no != "$with_gnu_ld" && break
5162 test yes != "$with_gnu_ld" && break
5169 lt_cv_path_LD=$LD # Let the user override the test with a path.
5174 if test -n "$LD"; then
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5176 $as_echo "$LD" >&6; }
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5179 $as_echo "no" >&6; }
5181 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5183 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5184 if ${lt_cv_prog_gnu_ld+:} false; then :
5185 $as_echo_n "(cached) " >&6
5187 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5188 case `$LD -v 2>&1 </dev/null` in
5189 *GNU* | *'with BFD'*)
5190 lt_cv_prog_gnu_ld=yes
5193 lt_cv_prog_gnu_ld=no
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5198 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5199 with_gnu_ld=$lt_cv_prog_gnu_ld
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5210 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5211 if ${lt_cv_path_NM+:} false; then :
5212 $as_echo_n "(cached) " >&6
5214 if test -n "$NM"; then
5215 # Let the user override the test.
5218 lt_nm_to_check=${ac_tool_prefix}nm
5219 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5220 lt_nm_to_check="$lt_nm_to_check nm"
5222 for lt_tmp_nm in $lt_nm_to_check; do
5223 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5224 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5226 test -z "$ac_dir" && ac_dir=.
5227 tmp_nm=$ac_dir/$lt_tmp_nm
5228 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5229 # Check to see if the nm accepts a BSD-compat flag.
5230 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5231 # nm: unknown option "B" ignored
5232 # Tru64's nm complains that /dev/null is an invalid object file
5233 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5235 mingw*) lt_bad_file=conftest.nm/nofile ;;
5236 *) lt_bad_file=/dev/null ;;
5238 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5239 *$lt_bad_file* | *'Invalid file or object type'*)
5240 lt_cv_path_NM="$tmp_nm -B"
5244 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5246 lt_cv_path_NM="$tmp_nm -p"
5250 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5251 continue # so that we can try to find one that supports BSD flags
5260 : ${lt_cv_path_NM=no}
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5264 $as_echo "$lt_cv_path_NM" >&6; }
5265 if test no != "$lt_cv_path_NM"; then
5268 # Didn't find any BSD compatible name lister, look for dumpbin.
5269 if test -n "$DUMPBIN"; then :
5270 # Let the user override the test.
5272 if test -n "$ac_tool_prefix"; then
5273 for ac_prog in dumpbin "link -dump"
5275 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5276 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5278 $as_echo_n "checking for $ac_word... " >&6; }
5279 if ${ac_cv_prog_DUMPBIN+:} false; then :
5280 $as_echo_n "(cached) " >&6
5282 if test -n "$DUMPBIN"; then
5283 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289 test -z "$as_dir" && as_dir=.
5290 for ac_exec_ext in '' $ac_executable_extensions; do
5291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5292 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5302 DUMPBIN=$ac_cv_prog_DUMPBIN
5303 if test -n "$DUMPBIN"; then
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5305 $as_echo "$DUMPBIN" >&6; }
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5308 $as_echo "no" >&6; }
5312 test -n "$DUMPBIN" && break
5315 if test -z "$DUMPBIN"; then
5316 ac_ct_DUMPBIN=$DUMPBIN
5317 for ac_prog in dumpbin "link -dump"
5319 # Extract the first word of "$ac_prog", so it can be a program name with args.
5320 set dummy $ac_prog; ac_word=$2
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5322 $as_echo_n "checking for $ac_word... " >&6; }
5323 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5324 $as_echo_n "(cached) " >&6
5326 if test -n "$ac_ct_DUMPBIN"; then
5327 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5333 test -z "$as_dir" && as_dir=.
5334 for ac_exec_ext in '' $ac_executable_extensions; do
5335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5336 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5346 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5347 if test -n "$ac_ct_DUMPBIN"; then
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5349 $as_echo "$ac_ct_DUMPBIN" >&6; }
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5352 $as_echo "no" >&6; }
5356 test -n "$ac_ct_DUMPBIN" && break
5359 if test "x$ac_ct_DUMPBIN" = x; then
5362 case $cross_compiling:$ac_tool_warned in
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5365 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5366 ac_tool_warned=yes ;;
5368 DUMPBIN=$ac_ct_DUMPBIN
5372 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5374 DUMPBIN="$DUMPBIN -symbols -headers"
5382 if test : != "$DUMPBIN"; then
5386 test -z "$NM" && NM=nm
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5394 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5395 if ${lt_cv_nm_interface+:} false; then :
5396 $as_echo_n "(cached) " >&6
5398 lt_cv_nm_interface="BSD nm"
5399 echo "int some_variable = 0;" > conftest.$ac_ext
5400 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5401 (eval "$ac_compile" 2>conftest.err)
5402 cat conftest.err >&5
5403 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5404 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5405 cat conftest.err >&5
5406 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5407 cat conftest.out >&5
5408 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5409 lt_cv_nm_interface="MS dumpbin"
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5414 $as_echo "$lt_cv_nm_interface" >&6; }
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5417 $as_echo_n "checking whether ln -s works... " >&6; }
5419 if test "$LN_S" = "ln -s"; then
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5421 $as_echo "yes" >&6; }
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5424 $as_echo "no, using $LN_S" >&6; }
5427 # find the maximum length of command line arguments
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5429 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5430 if ${lt_cv_sys_max_cmd_len+:} false; then :
5431 $as_echo_n "(cached) " >&6
5438 # On DJGPP, this test can blow up pretty badly due to problems in libc
5439 # (any single argument exceeding 2000 bytes causes a buffer overrun
5440 # during glob expansion). Even if it were fixed, the result of this
5441 # check would be larger than it should be.
5442 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5446 # Under GNU Hurd, this test is not required because there is
5447 # no limit to the length of command line arguments.
5448 # Libtool will interpret -1 as no limit whatsoever
5449 lt_cv_sys_max_cmd_len=-1;
5452 cygwin* | mingw* | cegcc*)
5453 # On Win9x/ME, this test blows up -- it succeeds, but takes
5454 # about 5 minutes as the teststring grows exponentially.
5455 # Worse, since 9x/ME are not pre-emptively multitasking,
5456 # you end up with a "frozen" computer, even though with patience
5457 # the test eventually succeeds (with a max line length of 256k).
5458 # Instead, let's just punt: use the minimum linelength reported by
5459 # all of the supported platforms: 8192 (on NT/2K/XP).
5460 lt_cv_sys_max_cmd_len=8192;
5464 # On MiNT this can take a long time and run out of memory.
5465 lt_cv_sys_max_cmd_len=8192;
5469 # On AmigaOS with pdksh, this test takes hours, literally.
5470 # So we just punt and use a minimum line length of 8192.
5471 lt_cv_sys_max_cmd_len=8192;
5474 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5475 # This has been around since 386BSD, at least. Likely further.
5476 if test -x /sbin/sysctl; then
5477 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5478 elif test -x /usr/sbin/sysctl; then
5479 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5481 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5483 # And add a safety zone
5484 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5485 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5489 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5490 lt_cv_sys_max_cmd_len=196608
5494 # The test takes a long time on OS/2.
5495 lt_cv_sys_max_cmd_len=8192
5499 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5500 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5501 # nice to cause kernel panics so lets avoid the loop below.
5502 # First set a reasonable default.
5503 lt_cv_sys_max_cmd_len=16384
5505 if test -x /sbin/sysconfig; then
5506 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5507 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5512 lt_cv_sys_max_cmd_len=102400
5514 sysv5* | sco5v6* | sysv4.2uw2*)
5515 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5516 if test -n "$kargmax"; then
5517 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5519 lt_cv_sys_max_cmd_len=32768
5523 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5524 if test -n "$lt_cv_sys_max_cmd_len" && \
5525 test undefined != "$lt_cv_sys_max_cmd_len"; then
5526 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5527 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5529 # Make teststring a little bigger before we do anything with it.
5530 # a 1K string should be a reasonable start.
5531 for i in 1 2 3 4 5 6 7 8; do
5532 teststring=$teststring$teststring
5534 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5535 # If test is not a shell built-in, we'll probably end up computing a
5536 # maximum length that is only half of the actual maximum length, but
5538 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5539 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5540 test 17 != "$i" # 1/2 MB should be enough
5543 teststring=$teststring$teststring
5545 # Only check the string length outside the loop.
5546 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5548 # Add a significant safety factor because C++ compilers can tack on
5549 # massive amounts of additional arguments before passing them to the
5550 # linker. It appears as though 1/2 is a usable value.
5551 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5558 if test -n "$lt_cv_sys_max_cmd_len"; then
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5560 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5563 $as_echo "none" >&6; }
5565 max_cmd_len=$lt_cv_sys_max_cmd_len
5576 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5586 # test EBCDIC or ASCII
5587 case `echo X|tr X '\101'` in
5588 A) # ASCII based system
5589 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5590 lt_SP2NL='tr \040 \012'
5591 lt_NL2SP='tr \015\012 \040\040'
5593 *) # EBCDIC based system
5594 lt_SP2NL='tr \100 \n'
5595 lt_NL2SP='tr \r\n \100\100'
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5608 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5609 if ${lt_cv_to_host_file_cmd+:} false; then :
5610 $as_echo_n "(cached) " >&6
5615 *-*-mingw* ) # actually msys
5616 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5619 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5621 * ) # otherwise, assume *nix
5622 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5628 *-*-mingw* ) # actually msys
5629 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5632 lt_cv_to_host_file_cmd=func_convert_file_noop
5634 * ) # otherwise, assume *nix
5635 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5639 * ) # unhandled hosts (and "normal" native builds)
5640 lt_cv_to_host_file_cmd=func_convert_file_noop
5646 to_host_file_cmd=$lt_cv_to_host_file_cmd
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5648 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5655 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5656 if ${lt_cv_to_tool_file_cmd+:} false; then :
5657 $as_echo_n "(cached) " >&6
5659 #assume ordinary cross tools, or native build.
5660 lt_cv_to_tool_file_cmd=func_convert_file_noop
5664 *-*-mingw* ) # actually msys
5665 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5673 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5675 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5682 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5683 if ${lt_cv_ld_reload_flag+:} false; then :
5684 $as_echo_n "(cached) " >&6
5686 lt_cv_ld_reload_flag='-r'
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5689 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5690 reload_flag=$lt_cv_ld_reload_flag
5691 case $reload_flag in
5693 *) reload_flag=" $reload_flag" ;;
5695 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5697 cygwin* | mingw* | pw32* | cegcc*)
5698 if test yes != "$GCC"; then
5703 if test yes = "$GCC"; then
5704 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5706 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5719 if test -n "$ac_tool_prefix"; then
5720 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5721 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5723 $as_echo_n "checking for $ac_word... " >&6; }
5724 if ${ac_cv_prog_OBJDUMP+:} false; then :
5725 $as_echo_n "(cached) " >&6
5727 if test -n "$OBJDUMP"; then
5728 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5734 test -z "$as_dir" && as_dir=.
5735 for ac_exec_ext in '' $ac_executable_extensions; do
5736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5737 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5747 OBJDUMP=$ac_cv_prog_OBJDUMP
5748 if test -n "$OBJDUMP"; then
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5750 $as_echo "$OBJDUMP" >&6; }
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5753 $as_echo "no" >&6; }
5758 if test -z "$ac_cv_prog_OBJDUMP"; then
5759 ac_ct_OBJDUMP=$OBJDUMP
5760 # Extract the first word of "objdump", so it can be a program name with args.
5761 set dummy objdump; ac_word=$2
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5763 $as_echo_n "checking for $ac_word... " >&6; }
5764 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5765 $as_echo_n "(cached) " >&6
5767 if test -n "$ac_ct_OBJDUMP"; then
5768 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774 test -z "$as_dir" && as_dir=.
5775 for ac_exec_ext in '' $ac_executable_extensions; do
5776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5777 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5787 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5788 if test -n "$ac_ct_OBJDUMP"; then
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5790 $as_echo "$ac_ct_OBJDUMP" >&6; }
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5793 $as_echo "no" >&6; }
5796 if test "x$ac_ct_OBJDUMP" = x; then
5799 case $cross_compiling:$ac_tool_warned in
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5802 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5803 ac_tool_warned=yes ;;
5805 OBJDUMP=$ac_ct_OBJDUMP
5808 OBJDUMP="$ac_cv_prog_OBJDUMP"
5811 test -z "$OBJDUMP" && OBJDUMP=objdump
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5822 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5823 if ${lt_cv_deplibs_check_method+:} false; then :
5824 $as_echo_n "(cached) " >&6
5826 lt_cv_file_magic_cmd='$MAGIC_CMD'
5827 lt_cv_file_magic_test_file=
5828 lt_cv_deplibs_check_method='unknown'
5829 # Need to set the preceding variable on all platforms that support
5830 # interlibrary dependencies.
5831 # 'none' -- dependencies not supported.
5832 # 'unknown' -- same as none, but documents that we really don't know.
5833 # 'pass_all' -- all dependencies passed with no checks.
5834 # 'test_compile' -- check by making test program.
5835 # 'file_magic [[regex]]' -- check by looking for files in library path
5836 # that responds to the $file_magic_cmd with a given extended regex.
5837 # If you have 'file' or equivalent on your system and you're not sure
5838 # whether 'pass_all' will *always* work, you probably want this one.
5842 lt_cv_deplibs_check_method=pass_all
5846 lt_cv_deplibs_check_method=pass_all
5850 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5851 lt_cv_file_magic_cmd='/usr/bin/file -L'
5852 lt_cv_file_magic_test_file=/shlib/libc.so
5856 # func_win32_libid is a shell function defined in ltmain.sh
5857 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5858 lt_cv_file_magic_cmd='func_win32_libid'
5862 # Base MSYS/MinGW do not provide the 'file' command needed by
5863 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5864 # unless we find 'file', for example because we are cross-compiling.
5865 if ( file / ) >/dev/null 2>&1; then
5866 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5867 lt_cv_file_magic_cmd='func_win32_libid'
5869 # Keep this pattern in sync with the one in func_win32_libid.
5870 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5871 lt_cv_file_magic_cmd='$OBJDUMP -f'
5876 # use the weaker test based on 'objdump'. See mingw*.
5877 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5878 lt_cv_file_magic_cmd='$OBJDUMP -f'
5881 darwin* | rhapsody*)
5882 lt_cv_deplibs_check_method=pass_all
5885 freebsd* | dragonfly*)
5886 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5889 # Not sure whether the presence of OpenBSD here was a mistake.
5890 # Let's accept both of them until this is cleared up.
5891 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5892 lt_cv_file_magic_cmd=/usr/bin/file
5893 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5897 lt_cv_deplibs_check_method=pass_all
5902 lt_cv_deplibs_check_method=pass_all
5905 hpux10.20* | hpux11*)
5906 lt_cv_file_magic_cmd=/usr/bin/file
5909 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5910 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5913 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]'
5914 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5917 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5918 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5924 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5925 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5928 irix5* | irix6* | nonstopux*)
5930 *-32|*"-32 ") libmagic=32-bit;;
5931 *-n32|*"-n32 ") libmagic=N32;;
5932 *-64|*"-64 ") libmagic=64-bit;;
5933 *) libmagic=never-match;;
5935 lt_cv_deplibs_check_method=pass_all
5938 # This must be glibc/ELF.
5939 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5940 lt_cv_deplibs_check_method=pass_all
5944 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5945 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5947 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5952 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5953 lt_cv_file_magic_cmd=/usr/bin/file
5954 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5958 lt_cv_deplibs_check_method=pass_all
5962 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5963 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5965 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5969 osf3* | osf4* | osf5*)
5970 lt_cv_deplibs_check_method=pass_all
5974 lt_cv_deplibs_check_method=pass_all
5978 lt_cv_deplibs_check_method=pass_all
5981 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5982 lt_cv_deplibs_check_method=pass_all
5986 case $host_vendor in
5988 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]'
5989 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5992 lt_cv_deplibs_check_method=pass_all
5995 lt_cv_file_magic_cmd='/bin/file'
5996 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5999 lt_cv_file_magic_cmd='/bin/file'
6000 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6001 lt_cv_file_magic_test_file=/lib/libc.so
6004 lt_cv_deplibs_check_method=pass_all
6007 lt_cv_deplibs_check_method=pass_all
6013 lt_cv_deplibs_check_method=pass_all
6016 lt_cv_deplibs_check_method=pass_all
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6022 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6026 if test "$build" = "$host"; then
6029 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6032 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6038 file_magic_cmd=$lt_cv_file_magic_cmd
6039 deplibs_check_method=$lt_cv_deplibs_check_method
6040 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6063 if test -n "$ac_tool_prefix"; then
6064 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6065 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6067 $as_echo_n "checking for $ac_word... " >&6; }
6068 if ${ac_cv_prog_DLLTOOL+:} false; then :
6069 $as_echo_n "(cached) " >&6
6071 if test -n "$DLLTOOL"; then
6072 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6078 test -z "$as_dir" && as_dir=.
6079 for ac_exec_ext in '' $ac_executable_extensions; do
6080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6081 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6091 DLLTOOL=$ac_cv_prog_DLLTOOL
6092 if test -n "$DLLTOOL"; then
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6094 $as_echo "$DLLTOOL" >&6; }
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6097 $as_echo "no" >&6; }
6102 if test -z "$ac_cv_prog_DLLTOOL"; then
6103 ac_ct_DLLTOOL=$DLLTOOL
6104 # Extract the first word of "dlltool", so it can be a program name with args.
6105 set dummy dlltool; ac_word=$2
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6107 $as_echo_n "checking for $ac_word... " >&6; }
6108 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6109 $as_echo_n "(cached) " >&6
6111 if test -n "$ac_ct_DLLTOOL"; then
6112 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6118 test -z "$as_dir" && as_dir=.
6119 for ac_exec_ext in '' $ac_executable_extensions; do
6120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6121 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6131 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6132 if test -n "$ac_ct_DLLTOOL"; then
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6134 $as_echo "$ac_ct_DLLTOOL" >&6; }
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6137 $as_echo "no" >&6; }
6140 if test "x$ac_ct_DLLTOOL" = x; then
6143 case $cross_compiling:$ac_tool_warned in
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6146 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6147 ac_tool_warned=yes ;;
6149 DLLTOOL=$ac_ct_DLLTOOL
6152 DLLTOOL="$ac_cv_prog_DLLTOOL"
6155 test -z "$DLLTOOL" && DLLTOOL=dlltool
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6167 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6168 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6169 $as_echo_n "(cached) " >&6
6171 lt_cv_sharedlib_from_linklib_cmd='unknown'
6174 cygwin* | mingw* | pw32* | cegcc*)
6175 # two different shell functions defined in ltmain.sh;
6176 # decide which one to use based on capabilities of $DLLTOOL
6177 case `$DLLTOOL --help 2>&1` in
6178 *--identify-strict*)
6179 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6182 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6187 # fallback: assume linklib IS sharedlib
6188 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6194 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6195 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6196 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6204 if test -n "$ac_tool_prefix"; then
6207 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6208 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6210 $as_echo_n "checking for $ac_word... " >&6; }
6211 if ${ac_cv_prog_AR+:} false; then :
6212 $as_echo_n "(cached) " >&6
6214 if test -n "$AR"; then
6215 ac_cv_prog_AR="$AR" # Let the user override the test.
6217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221 test -z "$as_dir" && as_dir=.
6222 for ac_exec_ext in '' $ac_executable_extensions; do
6223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6224 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6235 if test -n "$AR"; then
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6237 $as_echo "$AR" >&6; }
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6240 $as_echo "no" >&6; }
6244 test -n "$AR" && break
6247 if test -z "$AR"; then
6251 # Extract the first word of "$ac_prog", so it can be a program name with args.
6252 set dummy $ac_prog; ac_word=$2
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6254 $as_echo_n "checking for $ac_word... " >&6; }
6255 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6256 $as_echo_n "(cached) " >&6
6258 if test -n "$ac_ct_AR"; then
6259 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265 test -z "$as_dir" && as_dir=.
6266 for ac_exec_ext in '' $ac_executable_extensions; do
6267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6268 ac_cv_prog_ac_ct_AR="$ac_prog"
6269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6278 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6279 if test -n "$ac_ct_AR"; then
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6281 $as_echo "$ac_ct_AR" >&6; }
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6284 $as_echo "no" >&6; }
6288 test -n "$ac_ct_AR" && break
6291 if test "x$ac_ct_AR" = x; then
6294 case $cross_compiling:$ac_tool_warned in
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6297 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6298 ac_tool_warned=yes ;;
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6318 $as_echo_n "checking for archiver @FILE support... " >&6; }
6319 if ${lt_cv_ar_at_file+:} false; then :
6320 $as_echo_n "(cached) " >&6
6323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6324 /* end confdefs.h. */
6334 if ac_fn_c_try_compile "$LINENO"; then :
6335 echo conftest.$ac_objext > conftest.lst
6336 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6337 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6338 (eval $lt_ar_try) 2>&5
6340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6341 test $ac_status = 0; }
6342 if test 0 -eq "$ac_status"; then
6343 # Ensure the archiver fails upon bogus file names.
6344 rm -f conftest.$ac_objext libconftest.a
6345 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6346 (eval $lt_ar_try) 2>&5
6348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6349 test $ac_status = 0; }
6350 if test 0 -ne "$ac_status"; then
6354 rm -f conftest.* libconftest.a
6357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6361 $as_echo "$lt_cv_ar_at_file" >&6; }
6363 if test no = "$lt_cv_ar_at_file"; then
6366 archiver_list_spec=$lt_cv_ar_at_file
6375 if test -n "$ac_tool_prefix"; then
6376 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6377 set dummy ${ac_tool_prefix}strip; ac_word=$2
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6379 $as_echo_n "checking for $ac_word... " >&6; }
6380 if ${ac_cv_prog_STRIP+:} false; then :
6381 $as_echo_n "(cached) " >&6
6383 if test -n "$STRIP"; then
6384 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390 test -z "$as_dir" && as_dir=.
6391 for ac_exec_ext in '' $ac_executable_extensions; do
6392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6393 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6403 STRIP=$ac_cv_prog_STRIP
6404 if test -n "$STRIP"; then
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6406 $as_echo "$STRIP" >&6; }
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6409 $as_echo "no" >&6; }
6414 if test -z "$ac_cv_prog_STRIP"; then
6416 # Extract the first word of "strip", so it can be a program name with args.
6417 set dummy strip; ac_word=$2
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6419 $as_echo_n "checking for $ac_word... " >&6; }
6420 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6421 $as_echo_n "(cached) " >&6
6423 if test -n "$ac_ct_STRIP"; then
6424 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430 test -z "$as_dir" && as_dir=.
6431 for ac_exec_ext in '' $ac_executable_extensions; do
6432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6433 ac_cv_prog_ac_ct_STRIP="strip"
6434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6443 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6444 if test -n "$ac_ct_STRIP"; then
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6446 $as_echo "$ac_ct_STRIP" >&6; }
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6449 $as_echo "no" >&6; }
6452 if test "x$ac_ct_STRIP" = x; then
6455 case $cross_compiling:$ac_tool_warned in
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6459 ac_tool_warned=yes ;;
6464 STRIP="$ac_cv_prog_STRIP"
6467 test -z "$STRIP" && STRIP=:
6474 if test -n "$ac_tool_prefix"; then
6475 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6476 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6478 $as_echo_n "checking for $ac_word... " >&6; }
6479 if ${ac_cv_prog_RANLIB+:} false; then :
6480 $as_echo_n "(cached) " >&6
6482 if test -n "$RANLIB"; then
6483 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6489 test -z "$as_dir" && as_dir=.
6490 for ac_exec_ext in '' $ac_executable_extensions; do
6491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6492 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6502 RANLIB=$ac_cv_prog_RANLIB
6503 if test -n "$RANLIB"; then
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6505 $as_echo "$RANLIB" >&6; }
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6508 $as_echo "no" >&6; }
6513 if test -z "$ac_cv_prog_RANLIB"; then
6514 ac_ct_RANLIB=$RANLIB
6515 # Extract the first word of "ranlib", so it can be a program name with args.
6516 set dummy ranlib; ac_word=$2
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6518 $as_echo_n "checking for $ac_word... " >&6; }
6519 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6520 $as_echo_n "(cached) " >&6
6522 if test -n "$ac_ct_RANLIB"; then
6523 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6529 test -z "$as_dir" && as_dir=.
6530 for ac_exec_ext in '' $ac_executable_extensions; do
6531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6532 ac_cv_prog_ac_ct_RANLIB="ranlib"
6533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6542 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6543 if test -n "$ac_ct_RANLIB"; then
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6545 $as_echo "$ac_ct_RANLIB" >&6; }
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6548 $as_echo "no" >&6; }
6551 if test "x$ac_ct_RANLIB" = x; then
6554 case $cross_compiling:$ac_tool_warned in
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6558 ac_tool_warned=yes ;;
6560 RANLIB=$ac_ct_RANLIB
6563 RANLIB="$ac_cv_prog_RANLIB"
6566 test -z "$RANLIB" && RANLIB=:
6573 # Determine commands to create old-style static archives.
6574 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6575 old_postinstall_cmds='chmod 644 $oldlib'
6576 old_postuninstall_cmds=
6578 if test -n "$RANLIB"; then
6581 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6584 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6587 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6592 lock_old_archive_extraction=yes ;;
6594 lock_old_archive_extraction=no ;;
6635 # If no C compiler was specified, use CC.
6638 # If no C compiler flags were specified, use CFLAGS.
6639 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6641 # Allow CC to be a program name with arguments.
6645 # Check for command to grab the raw symbol name followed by C symbol from nm.
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6647 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6648 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6649 $as_echo_n "(cached) " >&6
6652 # These are sane defaults that work on at least a few old systems.
6653 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6655 # Character class describing NM global symbol codes.
6656 symcode='[BCDEGRST]'
6658 # Regexp to match symbols that can be accessed directly from C.
6659 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6661 # Define system-specific variables.
6666 cygwin* | mingw* | pw32* | cegcc*)
6667 symcode='[ABCDGISTW]'
6670 if test ia64 = "$host_cpu"; then
6671 symcode='[ABCDEGRST]'
6675 symcode='[BCDEGRST]'
6678 symcode='[BCDEGQRST]'
6689 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6697 # If we're using GNU nm, then use its standard symbol codes.
6698 case `$NM -V 2>&1` in
6699 *GNU* | *'with BFD'*)
6700 symcode='[ABCDGIRSTW]' ;;
6703 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6704 # Gets list of data symbols to import.
6705 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6706 # Adjust the below global symbol transforms to fixup imported variables.
6707 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6708 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6709 lt_c_name_lib_hook="\
6710 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6711 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6713 # Disable hooks by default.
6714 lt_cv_sys_global_symbol_to_import=
6720 # Transform an extracted symbol line into a proper C declaration.
6721 # Some systems (esp. on ia64) link data and code symbols differently,
6722 # so use this general approach.
6723 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6725 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6726 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6728 # Transform an extracted symbol line into symbol name and symbol address
6729 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6731 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6732 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6734 # Transform an extracted symbol line into symbol name with lib prefix and
6736 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6737 $lt_c_name_lib_hook\
6738 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6739 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6740 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6742 # Handle CRLF in mingw tool chain
6746 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6750 # Try without a prefix underscore, then with it.
6751 for ac_symprfx in "" "_"; do
6753 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6754 symxfrm="\\1 $ac_symprfx\\2 \\2"
6756 # Write the raw and C identifiers.
6757 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6758 # Fake it for dumpbin and say T for any non-static function,
6759 # D for any global variable and I for any imported variable.
6760 # Also find C++ and __fastcall symbols from MSVC++,
6761 # which start with @ or ?.
6762 lt_cv_sys_global_symbol_pipe="$AWK '"\
6763 " {last_section=section; section=\$ 3};"\
6764 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6765 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6766 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6767 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6768 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6769 " \$ 0!~/External *\|/{next};"\
6770 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6771 " {if(hide[section]) next};"\
6772 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6773 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6774 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6775 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6776 " ' prfx=^$ac_symprfx"
6778 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6780 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6782 # Check to see that the pipe works correctly.
6786 cat > conftest.$ac_ext <<_LT_EOF
6791 void nm_test_func(void);
6792 void nm_test_func(void){}
6796 int main(){nm_test_var='a';nm_test_func();return(0);}
6799 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6800 (eval $ac_compile) 2>&5
6802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6803 test $ac_status = 0; }; then
6804 # Now try to grab the symbols.
6806 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6807 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6810 test $ac_status = 0; } && test -s "$nlist"; then
6811 # Try sorting and uniquifying the output.
6812 if sort "$nlist" | uniq > "$nlist"T; then
6813 mv -f "$nlist"T "$nlist"
6818 # Make sure that we snagged all the symbols we need.
6819 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6820 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6821 cat <<_LT_EOF > conftest.$ac_ext
6822 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6823 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6824 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6825 relocations are performed -- see ld's documentation on pseudo-relocs. */
6826 # define LT_DLSYM_CONST
6827 #elif defined __osf__
6828 /* This system does not cope well with relocations in const data. */
6829 # define LT_DLSYM_CONST
6831 # define LT_DLSYM_CONST const
6839 # Now generate the symbol file.
6840 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6842 cat <<_LT_EOF >> conftest.$ac_ext
6844 /* The mapping between symbol names and symbols. */
6845 LT_DLSYM_CONST struct {
6849 lt__PROGRAM__LTX_preloaded_symbols[] =
6851 { "@PROGRAM@", (void *) 0 },
6853 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6854 cat <<\_LT_EOF >> conftest.$ac_ext
6858 /* This works around a problem in FreeBSD linker */
6859 #ifdef FREEBSD_WORKAROUND
6860 static const void *lt_preloaded_setup() {
6861 return lt__PROGRAM__LTX_preloaded_symbols;
6869 # Now try linking the two files.
6870 mv conftest.$ac_objext conftstm.$ac_objext
6871 lt_globsym_save_LIBS=$LIBS
6872 lt_globsym_save_CFLAGS=$CFLAGS
6873 LIBS=conftstm.$ac_objext
6874 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6875 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6876 (eval $ac_link) 2>&5
6878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6879 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6882 LIBS=$lt_globsym_save_LIBS
6883 CFLAGS=$lt_globsym_save_CFLAGS
6885 echo "cannot find nm_test_func in $nlist" >&5
6888 echo "cannot find nm_test_var in $nlist" >&5
6891 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6894 echo "$progname: failed program was:" >&5
6895 cat conftest.$ac_ext >&5
6897 rm -rf conftest* conftst*
6899 # Do not use the global_symbol_pipe unless it works.
6900 if test yes = "$pipe_works"; then
6903 lt_cv_sys_global_symbol_pipe=
6909 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6910 lt_cv_sys_global_symbol_to_cdecl=
6912 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6914 $as_echo "failed" >&6; }
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6917 $as_echo "ok" >&6; }
6920 # Response file support.
6921 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6922 nm_file_list_spec='@'
6923 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6924 nm_file_list_spec='@'
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6964 $as_echo_n "checking for sysroot... " >&6; }
6966 # Check whether --with-sysroot was given.
6967 if test "${with_sysroot+set}" = set; then :
6968 withval=$with_sysroot;
6975 case $with_sysroot in #(
6977 if test yes = "$GCC"; then
6978 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6982 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6988 $as_echo "$with_sysroot" >&6; }
6989 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6994 $as_echo "${lt_sysroot:-no}" >&6; }
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7001 $as_echo_n "checking for a working dd... " >&6; }
7002 if ${ac_cv_path_lt_DD+:} false; then :
7003 $as_echo_n "(cached) " >&6
7005 printf 0123456789abcdef0123456789abcdef >conftest.i
7006 cat conftest.i conftest.i >conftest2.i
7008 if test -z "$lt_DD"; then
7009 ac_path_lt_DD_found=false
7010 # Loop through the user's path and test for each of PROGNAME-LIST
7011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015 test -z "$as_dir" && as_dir=.
7016 for ac_prog in dd; do
7017 for ac_exec_ext in '' $ac_executable_extensions; do
7018 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7019 as_fn_executable_p "$ac_path_lt_DD" || continue
7020 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7021 cmp -s conftest.i conftest.out \
7022 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7024 $ac_path_lt_DD_found && break 3
7029 if test -z "$ac_cv_path_lt_DD"; then
7033 ac_cv_path_lt_DD=$lt_DD
7036 rm -f conftest.i conftest2.i conftest.out
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7039 $as_echo "$ac_cv_path_lt_DD" >&6; }
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7043 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7044 if ${lt_cv_truncate_bin+:} false; then :
7045 $as_echo_n "(cached) " >&6
7047 printf 0123456789abcdef0123456789abcdef >conftest.i
7048 cat conftest.i conftest.i >conftest2.i
7050 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7051 cmp -s conftest.i conftest.out \
7052 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7054 rm -f conftest.i conftest2.i conftest.out
7055 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7058 $as_echo "$lt_cv_truncate_bin" >&6; }
7066 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7069 for cc_temp in $*""; do
7071 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7072 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7077 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7080 # Check whether --enable-libtool-lock was given.
7081 if test "${enable_libtool_lock+set}" = set; then :
7082 enableval=$enable_libtool_lock;
7085 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7087 # Some flags need to be propagated to the compiler or linker for good
7091 # Find out what ABI is being produced by ac_compile, and set mode
7092 # options accordingly.
7093 echo 'int i;' > conftest.$ac_ext
7094 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7095 (eval $ac_compile) 2>&5
7097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7098 test $ac_status = 0; }; then
7099 case `/usr/bin/file conftest.$ac_objext` in
7111 # Find out what ABI is being produced by ac_compile, and set linker
7112 # options accordingly.
7113 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7114 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7115 (eval $ac_compile) 2>&5
7117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7118 test $ac_status = 0; }; then
7119 if test yes = "$lt_cv_prog_gnu_ld"; then
7120 case `/usr/bin/file conftest.$ac_objext` in
7122 LD="${LD-ld} -melf32bsmip"
7125 LD="${LD-ld} -melf32bmipn32"
7128 LD="${LD-ld} -melf64bmip"
7132 case `/usr/bin/file conftest.$ac_objext` in
7149 # Find out what ABI is being produced by ac_compile, and set linker
7150 # options accordingly.
7151 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7152 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7153 (eval $ac_compile) 2>&5
7155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7156 test $ac_status = 0; }; then
7158 case `/usr/bin/file conftest.$ac_objext` in
7166 case `/usr/bin/file conftest.$ac_objext` in
7168 emul="${emul}btsmip"
7171 emul="${emul}ltsmip"
7174 case `/usr/bin/file conftest.$ac_objext` in
7179 LD="${LD-ld} -m $emul"
7184 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7185 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7186 # Find out what ABI is being produced by ac_compile, and set linker
7187 # options accordingly. Note that the listed cases only cover the
7188 # situations where additional linker options are needed (such as when
7189 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7190 # vice versa); the common cases where no linker options are needed do
7191 # not appear in the list.
7192 echo 'int i;' > conftest.$ac_ext
7193 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7194 (eval $ac_compile) 2>&5
7196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7197 test $ac_status = 0; }; then
7198 case `/usr/bin/file conftest.o` in
7201 x86_64-*kfreebsd*-gnu)
7202 LD="${LD-ld} -m elf_i386_fbsd"
7205 case `/usr/bin/file conftest.o` in
7207 LD="${LD-ld} -m elf32_x86_64"
7210 LD="${LD-ld} -m elf_i386"
7214 powerpc64le-*linux*)
7215 LD="${LD-ld} -m elf32lppclinux"
7218 LD="${LD-ld} -m elf32ppclinux"
7221 LD="${LD-ld} -m elf_s390"
7224 LD="${LD-ld} -m elf32_sparc"
7230 x86_64-*kfreebsd*-gnu)
7231 LD="${LD-ld} -m elf_x86_64_fbsd"
7234 LD="${LD-ld} -m elf_x86_64"
7237 LD="${LD-ld} -m elf64lppc"
7240 LD="${LD-ld} -m elf64ppc"
7242 s390*-*linux*|s390*-*tpf*)
7243 LD="${LD-ld} -m elf64_s390"
7246 LD="${LD-ld} -m elf64_sparc"
7256 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7258 CFLAGS="$CFLAGS -belf"
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7260 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7261 if ${lt_cv_cc_needs_belf+:} false; then :
7262 $as_echo_n "(cached) " >&6
7265 ac_cpp='$CPP $CPPFLAGS'
7266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7271 /* end confdefs.h. */
7281 if ac_fn_c_try_link "$LINENO"; then :
7282 lt_cv_cc_needs_belf=yes
7284 lt_cv_cc_needs_belf=no
7286 rm -f core conftest.err conftest.$ac_objext \
7287 conftest$ac_exeext conftest.$ac_ext
7289 ac_cpp='$CPP $CPPFLAGS'
7290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7296 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7297 if test yes != "$lt_cv_cc_needs_belf"; then
7298 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7303 # Find out what ABI is being produced by ac_compile, and set linker
7304 # options accordingly.
7305 echo 'int i;' > conftest.$ac_ext
7306 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7307 (eval $ac_compile) 2>&5
7309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7310 test $ac_status = 0; }; then
7311 case `/usr/bin/file conftest.o` in
7313 case $lt_cv_prog_gnu_ld in
7316 i?86-*-solaris*|x86_64-*-solaris*)
7317 LD="${LD-ld} -m elf_x86_64"
7320 LD="${LD-ld} -m elf64_sparc"
7323 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7324 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7329 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7341 need_locks=$enable_libtool_lock
7343 if test -n "$ac_tool_prefix"; then
7344 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7345 set dummy ${ac_tool_prefix}mt; ac_word=$2
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7347 $as_echo_n "checking for $ac_word... " >&6; }
7348 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7349 $as_echo_n "(cached) " >&6
7351 if test -n "$MANIFEST_TOOL"; then
7352 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358 test -z "$as_dir" && as_dir=.
7359 for ac_exec_ext in '' $ac_executable_extensions; do
7360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7361 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7371 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7372 if test -n "$MANIFEST_TOOL"; then
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7374 $as_echo "$MANIFEST_TOOL" >&6; }
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7377 $as_echo "no" >&6; }
7382 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7383 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7384 # Extract the first word of "mt", so it can be a program name with args.
7385 set dummy mt; ac_word=$2
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7387 $as_echo_n "checking for $ac_word... " >&6; }
7388 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7389 $as_echo_n "(cached) " >&6
7391 if test -n "$ac_ct_MANIFEST_TOOL"; then
7392 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398 test -z "$as_dir" && as_dir=.
7399 for ac_exec_ext in '' $ac_executable_extensions; do
7400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7401 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7411 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7412 if test -n "$ac_ct_MANIFEST_TOOL"; then
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7414 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7417 $as_echo "no" >&6; }
7420 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7423 case $cross_compiling:$ac_tool_warned in
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7427 ac_tool_warned=yes ;;
7429 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7432 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7435 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7437 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7438 if ${lt_cv_path_mainfest_tool+:} false; then :
7439 $as_echo_n "(cached) " >&6
7441 lt_cv_path_mainfest_tool=no
7442 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7443 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7444 cat conftest.err >&5
7445 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7446 lt_cv_path_mainfest_tool=yes
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7451 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7452 if test yes != "$lt_cv_path_mainfest_tool"; then
7462 rhapsody* | darwin*)
7463 if test -n "$ac_tool_prefix"; then
7464 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7465 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7467 $as_echo_n "checking for $ac_word... " >&6; }
7468 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7469 $as_echo_n "(cached) " >&6
7471 if test -n "$DSYMUTIL"; then
7472 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7478 test -z "$as_dir" && as_dir=.
7479 for ac_exec_ext in '' $ac_executable_extensions; do
7480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7481 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7491 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7492 if test -n "$DSYMUTIL"; then
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7494 $as_echo "$DSYMUTIL" >&6; }
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7497 $as_echo "no" >&6; }
7502 if test -z "$ac_cv_prog_DSYMUTIL"; then
7503 ac_ct_DSYMUTIL=$DSYMUTIL
7504 # Extract the first word of "dsymutil", so it can be a program name with args.
7505 set dummy dsymutil; ac_word=$2
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7507 $as_echo_n "checking for $ac_word... " >&6; }
7508 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7509 $as_echo_n "(cached) " >&6
7511 if test -n "$ac_ct_DSYMUTIL"; then
7512 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7518 test -z "$as_dir" && as_dir=.
7519 for ac_exec_ext in '' $ac_executable_extensions; do
7520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7521 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7531 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7532 if test -n "$ac_ct_DSYMUTIL"; then
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7534 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7537 $as_echo "no" >&6; }
7540 if test "x$ac_ct_DSYMUTIL" = x; then
7543 case $cross_compiling:$ac_tool_warned in
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7547 ac_tool_warned=yes ;;
7549 DSYMUTIL=$ac_ct_DSYMUTIL
7552 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7555 if test -n "$ac_tool_prefix"; then
7556 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7557 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7559 $as_echo_n "checking for $ac_word... " >&6; }
7560 if ${ac_cv_prog_NMEDIT+:} false; then :
7561 $as_echo_n "(cached) " >&6
7563 if test -n "$NMEDIT"; then
7564 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7570 test -z "$as_dir" && as_dir=.
7571 for ac_exec_ext in '' $ac_executable_extensions; do
7572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7573 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7583 NMEDIT=$ac_cv_prog_NMEDIT
7584 if test -n "$NMEDIT"; then
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7586 $as_echo "$NMEDIT" >&6; }
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7589 $as_echo "no" >&6; }
7594 if test -z "$ac_cv_prog_NMEDIT"; then
7595 ac_ct_NMEDIT=$NMEDIT
7596 # Extract the first word of "nmedit", so it can be a program name with args.
7597 set dummy nmedit; ac_word=$2
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7599 $as_echo_n "checking for $ac_word... " >&6; }
7600 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7601 $as_echo_n "(cached) " >&6
7603 if test -n "$ac_ct_NMEDIT"; then
7604 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7610 test -z "$as_dir" && as_dir=.
7611 for ac_exec_ext in '' $ac_executable_extensions; do
7612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7613 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7623 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7624 if test -n "$ac_ct_NMEDIT"; then
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7626 $as_echo "$ac_ct_NMEDIT" >&6; }
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7629 $as_echo "no" >&6; }
7632 if test "x$ac_ct_NMEDIT" = x; then
7635 case $cross_compiling:$ac_tool_warned in
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7638 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7639 ac_tool_warned=yes ;;
7641 NMEDIT=$ac_ct_NMEDIT
7644 NMEDIT="$ac_cv_prog_NMEDIT"
7647 if test -n "$ac_tool_prefix"; then
7648 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7649 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7651 $as_echo_n "checking for $ac_word... " >&6; }
7652 if ${ac_cv_prog_LIPO+:} false; then :
7653 $as_echo_n "(cached) " >&6
7655 if test -n "$LIPO"; then
7656 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7662 test -z "$as_dir" && as_dir=.
7663 for ac_exec_ext in '' $ac_executable_extensions; do
7664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7665 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7675 LIPO=$ac_cv_prog_LIPO
7676 if test -n "$LIPO"; then
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7678 $as_echo "$LIPO" >&6; }
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7681 $as_echo "no" >&6; }
7686 if test -z "$ac_cv_prog_LIPO"; then
7688 # Extract the first word of "lipo", so it can be a program name with args.
7689 set dummy lipo; ac_word=$2
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7691 $as_echo_n "checking for $ac_word... " >&6; }
7692 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7693 $as_echo_n "(cached) " >&6
7695 if test -n "$ac_ct_LIPO"; then
7696 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7702 test -z "$as_dir" && as_dir=.
7703 for ac_exec_ext in '' $ac_executable_extensions; do
7704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7705 ac_cv_prog_ac_ct_LIPO="lipo"
7706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7715 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7716 if test -n "$ac_ct_LIPO"; then
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7718 $as_echo "$ac_ct_LIPO" >&6; }
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7721 $as_echo "no" >&6; }
7724 if test "x$ac_ct_LIPO" = x; then
7727 case $cross_compiling:$ac_tool_warned in
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7730 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7731 ac_tool_warned=yes ;;
7736 LIPO="$ac_cv_prog_LIPO"
7739 if test -n "$ac_tool_prefix"; then
7740 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7741 set dummy ${ac_tool_prefix}otool; ac_word=$2
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7743 $as_echo_n "checking for $ac_word... " >&6; }
7744 if ${ac_cv_prog_OTOOL+:} false; then :
7745 $as_echo_n "(cached) " >&6
7747 if test -n "$OTOOL"; then
7748 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754 test -z "$as_dir" && as_dir=.
7755 for ac_exec_ext in '' $ac_executable_extensions; do
7756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7757 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7767 OTOOL=$ac_cv_prog_OTOOL
7768 if test -n "$OTOOL"; then
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7770 $as_echo "$OTOOL" >&6; }
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7773 $as_echo "no" >&6; }
7778 if test -z "$ac_cv_prog_OTOOL"; then
7780 # Extract the first word of "otool", so it can be a program name with args.
7781 set dummy otool; ac_word=$2
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7783 $as_echo_n "checking for $ac_word... " >&6; }
7784 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7785 $as_echo_n "(cached) " >&6
7787 if test -n "$ac_ct_OTOOL"; then
7788 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7794 test -z "$as_dir" && as_dir=.
7795 for ac_exec_ext in '' $ac_executable_extensions; do
7796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7797 ac_cv_prog_ac_ct_OTOOL="otool"
7798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7807 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7808 if test -n "$ac_ct_OTOOL"; then
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7810 $as_echo "$ac_ct_OTOOL" >&6; }
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7813 $as_echo "no" >&6; }
7816 if test "x$ac_ct_OTOOL" = x; then
7819 case $cross_compiling:$ac_tool_warned in
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7822 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7823 ac_tool_warned=yes ;;
7828 OTOOL="$ac_cv_prog_OTOOL"
7831 if test -n "$ac_tool_prefix"; then
7832 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7833 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7835 $as_echo_n "checking for $ac_word... " >&6; }
7836 if ${ac_cv_prog_OTOOL64+:} false; then :
7837 $as_echo_n "(cached) " >&6
7839 if test -n "$OTOOL64"; then
7840 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7846 test -z "$as_dir" && as_dir=.
7847 for ac_exec_ext in '' $ac_executable_extensions; do
7848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7849 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7859 OTOOL64=$ac_cv_prog_OTOOL64
7860 if test -n "$OTOOL64"; then
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7862 $as_echo "$OTOOL64" >&6; }
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7865 $as_echo "no" >&6; }
7870 if test -z "$ac_cv_prog_OTOOL64"; then
7871 ac_ct_OTOOL64=$OTOOL64
7872 # Extract the first word of "otool64", so it can be a program name with args.
7873 set dummy otool64; ac_word=$2
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7875 $as_echo_n "checking for $ac_word... " >&6; }
7876 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7877 $as_echo_n "(cached) " >&6
7879 if test -n "$ac_ct_OTOOL64"; then
7880 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7886 test -z "$as_dir" && as_dir=.
7887 for ac_exec_ext in '' $ac_executable_extensions; do
7888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7889 ac_cv_prog_ac_ct_OTOOL64="otool64"
7890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7899 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7900 if test -n "$ac_ct_OTOOL64"; then
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7902 $as_echo "$ac_ct_OTOOL64" >&6; }
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7905 $as_echo "no" >&6; }
7908 if test "x$ac_ct_OTOOL64" = x; then
7911 case $cross_compiling:$ac_tool_warned in
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7914 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7915 ac_tool_warned=yes ;;
7917 OTOOL64=$ac_ct_OTOOL64
7920 OTOOL64="$ac_cv_prog_OTOOL64"
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7950 $as_echo_n "checking for -single_module linker flag... " >&6; }
7951 if ${lt_cv_apple_cc_single_mod+:} false; then :
7952 $as_echo_n "(cached) " >&6
7954 lt_cv_apple_cc_single_mod=no
7955 if test -z "$LT_MULTI_MODULE"; then
7956 # By default we will add the -single_module flag. You can override
7957 # by either setting the environment variable LT_MULTI_MODULE
7958 # non-empty at configure time, or by adding -multi_module to the
7960 rm -rf libconftest.dylib*
7961 echo "int foo(void){return 1;}" > conftest.c
7962 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7963 -dynamiclib -Wl,-single_module conftest.c" >&5
7964 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7965 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7967 # If there is a non-empty error log, and "single_module"
7968 # appears in it, assume the flag caused a linker warning
7969 if test -s conftest.err && $GREP single_module conftest.err; then
7970 cat conftest.err >&5
7971 # Otherwise, if the output was created with a 0 exit code from
7972 # the compiler, it worked.
7973 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7974 lt_cv_apple_cc_single_mod=yes
7976 cat conftest.err >&5
7978 rm -rf libconftest.dylib*
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7983 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7986 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7987 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7988 $as_echo_n "(cached) " >&6
7990 lt_cv_ld_exported_symbols_list=no
7991 save_LDFLAGS=$LDFLAGS
7992 echo "_main" > conftest.sym
7993 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7995 /* end confdefs.h. */
8005 if ac_fn_c_try_link "$LINENO"; then :
8006 lt_cv_ld_exported_symbols_list=yes
8008 lt_cv_ld_exported_symbols_list=no
8010 rm -f core conftest.err conftest.$ac_objext \
8011 conftest$ac_exeext conftest.$ac_ext
8012 LDFLAGS=$save_LDFLAGS
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8016 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8019 $as_echo_n "checking for -force_load linker flag... " >&6; }
8020 if ${lt_cv_ld_force_load+:} false; then :
8021 $as_echo_n "(cached) " >&6
8023 lt_cv_ld_force_load=no
8024 cat > conftest.c << _LT_EOF
8025 int forced_loaded() { return 2;}
8027 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8028 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8029 echo "$AR cru libconftest.a conftest.o" >&5
8030 $AR cru libconftest.a conftest.o 2>&5
8031 echo "$RANLIB libconftest.a" >&5
8032 $RANLIB libconftest.a 2>&5
8033 cat > conftest.c << _LT_EOF
8034 int main() { return 0;}
8036 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8037 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8039 if test -s conftest.err && $GREP force_load conftest.err; then
8040 cat conftest.err >&5
8041 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8042 lt_cv_ld_force_load=yes
8044 cat conftest.err >&5
8046 rm -f conftest.err libconftest.a conftest conftest.c
8047 rm -rf conftest.dSYM
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8051 $as_echo "$lt_cv_ld_force_load" >&6; }
8053 rhapsody* | darwin1.[012])
8054 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8056 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8057 darwin*) # darwin 5.x on
8058 # if running on 10.5 or later, the deployment target defaults
8059 # to the OS version, if on x86, and 10.4, the deployment
8060 # target defaults to 10.4. Don't you love it?
8061 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8062 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8063 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8065 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8067 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8071 if test yes = "$lt_cv_apple_cc_single_mod"; then
8072 _lt_dar_single_mod='$single_module'
8074 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8075 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8077 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8079 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8080 _lt_dsymutil='~$DSYMUTIL $lib || :'
8087 # func_munge_path_list VARIABLE PATH
8088 # -----------------------------------
8089 # VARIABLE is name of variable containing _space_ separated list of
8090 # directories to be munged by the contents of PATH, which is string
8093 # string "DIR[ DIR]" will be prepended to VARIABLE
8095 # string "DIR[ DIR]" will be appended to VARIABLE
8096 # "DIRP[:DIRP]::[DIRA:]DIRA"
8097 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8098 # "DIRA[ DIRA]" will be appended to VARIABLE
8100 # VARIABLE will be replaced by "DIR[ DIR]"
8101 func_munge_path_list ()
8107 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8110 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8113 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8114 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8117 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8123 ac_cpp='$CPP $CPPFLAGS'
8124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8128 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8129 # On Suns, sometimes $CPP names a directory.
8130 if test -n "$CPP" && test -d "$CPP"; then
8133 if test -z "$CPP"; then
8134 if ${ac_cv_prog_CPP+:} false; then :
8135 $as_echo_n "(cached) " >&6
8137 # Double quotes because CPP needs to be expanded
8138 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8141 for ac_c_preproc_warn_flag in '' yes
8143 # Use a header file that comes with gcc, so configuring glibc
8144 # with a fresh cross-compiler works.
8145 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8146 # <limits.h> exists even on freestanding compilers.
8147 # On the NeXT, cc -E runs the code through the compiler's parser,
8148 # not just through cpp. "Syntax error" is here to catch this case.
8149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8150 /* end confdefs.h. */
8152 # include <limits.h>
8154 # include <assert.h>
8158 if ac_fn_c_try_cpp "$LINENO"; then :
8161 # Broken: fails on valid input.
8164 rm -f conftest.err conftest.i conftest.$ac_ext
8166 # OK, works on sane cases. Now check whether nonexistent headers
8167 # can be detected and how.
8168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8169 /* end confdefs.h. */
8170 #include <ac_nonexistent.h>
8172 if ac_fn_c_try_cpp "$LINENO"; then :
8173 # Broken: success on invalid input.
8176 # Passes both tests.
8180 rm -f conftest.err conftest.i conftest.$ac_ext
8183 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8184 rm -f conftest.i conftest.err conftest.$ac_ext
8185 if $ac_preproc_ok; then :
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8198 $as_echo "$CPP" >&6; }
8200 for ac_c_preproc_warn_flag in '' yes
8202 # Use a header file that comes with gcc, so configuring glibc
8203 # with a fresh cross-compiler works.
8204 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8205 # <limits.h> exists even on freestanding compilers.
8206 # On the NeXT, cc -E runs the code through the compiler's parser,
8207 # not just through cpp. "Syntax error" is here to catch this case.
8208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8209 /* end confdefs.h. */
8211 # include <limits.h>
8213 # include <assert.h>
8217 if ac_fn_c_try_cpp "$LINENO"; then :
8220 # Broken: fails on valid input.
8223 rm -f conftest.err conftest.i conftest.$ac_ext
8225 # OK, works on sane cases. Now check whether nonexistent headers
8226 # can be detected and how.
8227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8228 /* end confdefs.h. */
8229 #include <ac_nonexistent.h>
8231 if ac_fn_c_try_cpp "$LINENO"; then :
8232 # Broken: success on invalid input.
8235 # Passes both tests.
8239 rm -f conftest.err conftest.i conftest.$ac_ext
8242 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8243 rm -f conftest.i conftest.err conftest.$ac_ext
8244 if $ac_preproc_ok; then :
8247 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8248 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8249 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8250 See \`config.log' for more details" "$LINENO" 5; }
8254 ac_cpp='$CPP $CPPFLAGS'
8255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8261 $as_echo_n "checking for ANSI C header files... " >&6; }
8262 if ${ac_cv_header_stdc+:} false; then :
8263 $as_echo_n "(cached) " >&6
8265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8266 /* end confdefs.h. */
8280 if ac_fn_c_try_compile "$LINENO"; then :
8281 ac_cv_header_stdc=yes
8283 ac_cv_header_stdc=no
8285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8287 if test $ac_cv_header_stdc = yes; then
8288 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8290 /* end confdefs.h. */
8294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8295 $EGREP "memchr" >/dev/null 2>&1; then :
8298 ac_cv_header_stdc=no
8304 if test $ac_cv_header_stdc = yes; then
8305 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8307 /* end confdefs.h. */
8311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8312 $EGREP "free" >/dev/null 2>&1; then :
8315 ac_cv_header_stdc=no
8321 if test $ac_cv_header_stdc = yes; then
8322 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8323 if test "$cross_compiling" = yes; then :
8326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8327 /* end confdefs.h. */
8330 #if ((' ' & 0x0FF) == 0x020)
8331 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8332 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8334 # define ISLOWER(c) \
8335 (('a' <= (c) && (c) <= 'i') \
8336 || ('j' <= (c) && (c) <= 'r') \
8337 || ('s' <= (c) && (c) <= 'z'))
8338 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8341 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8346 for (i = 0; i < 256; i++)
8347 if (XOR (islower (i), ISLOWER (i))
8348 || toupper (i) != TOUPPER (i))
8353 if ac_fn_c_try_run "$LINENO"; then :
8356 ac_cv_header_stdc=no
8358 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8359 conftest.$ac_objext conftest.beam conftest.$ac_ext
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8365 $as_echo "$ac_cv_header_stdc" >&6; }
8366 if test $ac_cv_header_stdc = yes; then
8368 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8372 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8373 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8374 inttypes.h stdint.h unistd.h
8376 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8377 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8379 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8380 cat >>confdefs.h <<_ACEOF
8381 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8389 for ac_header in dlfcn.h
8391 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8393 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8394 cat >>confdefs.h <<_ACEOF
8395 #define HAVE_DLFCN_H 1
8405 func_stripname_cnf ()
8408 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
8409 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
8411 } # func_stripname_cnf
8427 # Check whether --enable-shared was given.
8428 if test "${enable_shared+set}" = set; then :
8429 enableval=$enable_shared; p=${PACKAGE-default}
8431 yes) enable_shared=yes ;;
8432 no) enable_shared=no ;;
8435 # Look at the argument we got. We use all the common list separators.
8436 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8437 for pkg in $enableval; do
8439 if test "X$pkg" = "X$p"; then
8460 # Check whether --with-pic was given.
8461 if test "${with_pic+set}" = set; then :
8462 withval=$with_pic; lt_p=${PACKAGE-default}
8464 yes|no) pic_mode=$withval ;;
8467 # Look at the argument we got. We use all the common list separators.
8468 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8469 for lt_pkg in $withval; do
8471 if test "X$lt_pkg" = "X$lt_p"; then
8489 # Check whether --enable-fast-install was given.
8490 if test "${enable_fast_install+set}" = set; then :
8491 enableval=$enable_fast_install; p=${PACKAGE-default}
8493 yes) enable_fast_install=yes ;;
8494 no) enable_fast_install=no ;;
8496 enable_fast_install=no
8497 # Look at the argument we got. We use all the common list separators.
8498 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8499 for pkg in $enableval; do
8501 if test "X$pkg" = "X$p"; then
8502 enable_fast_install=yes
8509 enable_fast_install=yes
8519 shared_archive_member_spec=
8520 case $host,$enable_shared in
8521 power*-*-aix[5-9]*,yes)
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8523 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8525 # Check whether --with-aix-soname was given.
8526 if test "${with_aix_soname+set}" = set; then :
8527 withval=$with_aix_soname; case $withval in
8531 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8534 lt_cv_with_aix_soname=$with_aix_soname
8536 if ${lt_cv_with_aix_soname+:} false; then :
8537 $as_echo_n "(cached) " >&6
8539 lt_cv_with_aix_soname=aix
8542 with_aix_soname=$lt_cv_with_aix_soname
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8546 $as_echo "$with_aix_soname" >&6; }
8547 if test aix != "$with_aix_soname"; then
8548 # For the AIX way of multilib, we name the shared archive member
8549 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8550 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8551 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8552 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8553 if test 64 = "${OBJECT_MODE-32}"; then
8554 shared_archive_member_spec=shr_64
8556 shared_archive_member_spec=shr
8574 # This can be used to rebuild libtool when needed
8575 LIBTOOL_DEPS=$ltmain
8577 # Always use our own libtool.
8578 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8609 test -z "$LN_S" && LN_S="ln -s"
8624 if test -n "${ZSH_VERSION+set}"; then
8625 setopt NO_GLOB_SUBST
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8629 $as_echo_n "checking for objdir... " >&6; }
8630 if ${lt_cv_objdir+:} false; then :
8631 $as_echo_n "(cached) " >&6
8633 rm -f .libs 2>/dev/null
8634 mkdir .libs 2>/dev/null
8635 if test -d .libs; then
8638 # MS-DOS does not allow filenames that begin with a dot.
8641 rmdir .libs 2>/dev/null
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8644 $as_echo "$lt_cv_objdir" >&6; }
8645 objdir=$lt_cv_objdir
8651 cat >>confdefs.h <<_ACEOF
8652 #define LT_OBJDIR "$lt_cv_objdir/"
8660 # AIX sometimes has problems with the GCC collect2 program. For some
8661 # reason, if we set the COLLECT_NAMES environment variable, the problems
8662 # vanish in a puff of smoke.
8663 if test set != "${COLLECT_NAMES+set}"; then
8665 export COLLECT_NAMES
8672 can_build_shared=yes
8674 # All known linkers require a '.a' archive for static linking (except MSVC,
8675 # which needs '.lib').
8678 with_gnu_ld=$lt_cv_prog_gnu_ld
8683 # Set sane defaults for various variables
8684 test -z "$CC" && CC=cc
8685 test -z "$LTCC" && LTCC=$CC
8686 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8687 test -z "$LD" && LD=ld
8688 test -z "$ac_objext" && ac_objext=o
8690 func_cc_basename $compiler
8691 cc_basename=$func_cc_basename_result
8694 # Only perform the check for file, if the check method requires it
8695 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8696 case $deplibs_check_method in
8698 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8700 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8701 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8702 $as_echo_n "(cached) " >&6
8706 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8709 lt_save_MAGIC_CMD=$MAGIC_CMD
8710 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8711 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8712 for ac_dir in $ac_dummy; do
8714 test -z "$ac_dir" && ac_dir=.
8715 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8716 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8717 if test -n "$file_magic_test_file"; then
8718 case $deplibs_check_method in
8720 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8721 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8722 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8723 $EGREP "$file_magic_regex" > /dev/null; then
8728 *** Warning: the command libtool uses to detect shared libraries,
8729 *** $file_magic_cmd, produces output that libtool cannot recognize.
8730 *** The result is that libtool may fail to recognize shared libraries
8731 *** as such. This will affect the creation of libtool libraries that
8732 *** depend on shared libraries, but programs linked with such libtool
8733 *** libraries will work regardless of this problem. Nevertheless, you
8734 *** may want to report the problem to your system manager and/or to
8735 *** bug-libtool@gnu.org
8745 MAGIC_CMD=$lt_save_MAGIC_CMD
8750 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8751 if test -n "$MAGIC_CMD"; then
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8753 $as_echo "$MAGIC_CMD" >&6; }
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8756 $as_echo "no" >&6; }
8763 if test -z "$lt_cv_path_MAGIC_CMD"; then
8764 if test -n "$ac_tool_prefix"; then
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8766 $as_echo_n "checking for file... " >&6; }
8767 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8768 $as_echo_n "(cached) " >&6
8772 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8775 lt_save_MAGIC_CMD=$MAGIC_CMD
8776 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8777 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8778 for ac_dir in $ac_dummy; do
8780 test -z "$ac_dir" && ac_dir=.
8781 if test -f "$ac_dir/file"; then
8782 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8783 if test -n "$file_magic_test_file"; then
8784 case $deplibs_check_method in
8786 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8787 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8788 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8789 $EGREP "$file_magic_regex" > /dev/null; then
8794 *** Warning: the command libtool uses to detect shared libraries,
8795 *** $file_magic_cmd, produces output that libtool cannot recognize.
8796 *** The result is that libtool may fail to recognize shared libraries
8797 *** as such. This will affect the creation of libtool libraries that
8798 *** depend on shared libraries, but programs linked with such libtool
8799 *** libraries will work regardless of this problem. Nevertheless, you
8800 *** may want to report the problem to your system manager and/or to
8801 *** bug-libtool@gnu.org
8811 MAGIC_CMD=$lt_save_MAGIC_CMD
8816 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8817 if test -n "$MAGIC_CMD"; then
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8819 $as_echo "$MAGIC_CMD" >&6; }
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8822 $as_echo "no" >&6; }
8835 # Use C for the default configuration in the libtool script
8839 ac_cpp='$CPP $CPPFLAGS'
8840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8845 # Source file extension for C test sources.
8848 # Object file extension for compiled C test sources.
8852 # Code to be used in simple compile tests
8853 lt_simple_compile_test_code="int some_variable = 0;"
8855 # Code to be used in simple link tests
8856 lt_simple_link_test_code='int main(){return(0);}'
8864 # If no C compiler was specified, use CC.
8867 # If no C compiler flags were specified, use CFLAGS.
8868 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8870 # Allow CC to be a program name with arguments.
8873 # Save the default compiler, since it gets overwritten when the other
8874 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8875 compiler_DEFAULT=$CC
8877 # save warnings/boilerplate of simple test code
8878 ac_outfile=conftest.$ac_objext
8879 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8880 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8881 _lt_compiler_boilerplate=`cat conftest.err`
8884 ac_outfile=conftest.$ac_objext
8885 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8886 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8887 _lt_linker_boilerplate=`cat conftest.err`
8892 ## There is no encapsulation within the following macros, do not change
8893 ## the running order or otherwise move them around unless you know exactly
8894 ## what you are doing...
8895 if test -n "$compiler"; then
8897 lt_prog_compiler_no_builtin_flag=
8899 if test yes = "$GCC"; then
8900 case $cc_basename in
8902 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8904 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8908 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8909 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8910 $as_echo_n "(cached) " >&6
8912 lt_cv_prog_compiler_rtti_exceptions=no
8913 ac_outfile=conftest.$ac_objext
8914 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8915 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8916 # Insert the option either (1) after the last *FLAGS variable, or
8917 # (2) before a word containing "conftest.", or (3) at the end.
8918 # Note that $ac_compile itself does not contain backslashes and begins
8919 # with a dollar sign (not a hyphen), so the echo should work correctly.
8920 # The option is referenced via a variable to avoid confusing sed.
8921 lt_compile=`echo "$ac_compile" | $SED \
8922 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8923 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8924 -e 's:$: $lt_compiler_flag:'`
8925 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8926 (eval "$lt_compile" 2>conftest.err)
8928 cat conftest.err >&5
8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 if (exit $ac_status) && test -s "$ac_outfile"; then
8931 # The compiler can only warn and ignore the option if not recognized
8932 # So say no if there are warnings other than the usual output.
8933 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8934 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8935 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8936 lt_cv_prog_compiler_rtti_exceptions=yes
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8943 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8945 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8946 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8958 lt_prog_compiler_wl=
8959 lt_prog_compiler_pic=
8960 lt_prog_compiler_static=
8963 if test yes = "$GCC"; then
8964 lt_prog_compiler_wl='-Wl,'
8965 lt_prog_compiler_static='-static'
8969 # All AIX code is PIC.
8970 if test ia64 = "$host_cpu"; then
8971 # AIX 5 now supports IA64 processor
8972 lt_prog_compiler_static='-Bstatic'
8974 lt_prog_compiler_pic='-fPIC'
8980 # see comment about AmigaOS4 .so support
8981 lt_prog_compiler_pic='-fPIC'
8984 # FIXME: we need at least 68020 code to build shared libraries, but
8985 # adding the '-m68020' flag to GCC prevents building anything better,
8987 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8992 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8993 # PIC is the default for these OSes.
8996 mingw* | cygwin* | pw32* | os2* | cegcc*)
8997 # This hack is so that the source file can tell whether it is being
8998 # built for inclusion in a dll (and should export symbols for example).
8999 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9000 # (--disable-auto-import) libraries
9001 lt_prog_compiler_pic='-DDLL_EXPORT'
9004 lt_prog_compiler_static='$wl-static'
9009 darwin* | rhapsody*)
9010 # PIC is the default on this platform
9011 # Common symbols not allowed in MH_DYLIB files
9012 lt_prog_compiler_pic='-fno-common'
9016 # PIC is the default for Haiku.
9017 # The "-static" flag exists, but is broken.
9018 lt_prog_compiler_static=
9022 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9023 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9024 # sets the default TLS model and affects inlining.
9030 lt_prog_compiler_pic='-fPIC'
9036 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9037 # Instead, we relocate shared libraries at runtime.
9041 # Just because we use GCC doesn't mean we suddenly get shared libraries
9042 # on systems that don't support them.
9043 lt_prog_compiler_can_build_shared=no
9048 # QNX uses GNU C++, but need to define -shared option too, otherwise
9050 lt_prog_compiler_pic='-fPIC -shared'
9054 if test -d /usr/nec; then
9055 lt_prog_compiler_pic=-Kconform_pic
9060 lt_prog_compiler_pic='-fPIC'
9064 case $cc_basename in
9065 nvcc*) # Cuda Compiler Driver 2.2
9066 lt_prog_compiler_wl='-Xlinker '
9067 if test -n "$lt_prog_compiler_pic"; then
9068 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9073 # PORTME Check for flag to pass linker flags through the system compiler.
9076 lt_prog_compiler_wl='-Wl,'
9077 if test ia64 = "$host_cpu"; then
9078 # AIX 5 now supports IA64 processor
9079 lt_prog_compiler_static='-Bstatic'
9081 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9085 darwin* | rhapsody*)
9086 # PIC is the default on this platform
9087 # Common symbols not allowed in MH_DYLIB files
9088 lt_prog_compiler_pic='-fno-common'
9089 case $cc_basename in
9091 # NAG Fortran compiler
9092 lt_prog_compiler_wl='-Wl,-Wl,,'
9093 lt_prog_compiler_pic='-PIC'
9094 lt_prog_compiler_static='-Bstatic'
9099 mingw* | cygwin* | pw32* | os2* | cegcc*)
9100 # This hack is so that the source file can tell whether it is being
9101 # built for inclusion in a dll (and should export symbols for example).
9102 lt_prog_compiler_pic='-DDLL_EXPORT'
9105 lt_prog_compiler_static='$wl-static'
9110 hpux9* | hpux10* | hpux11*)
9111 lt_prog_compiler_wl='-Wl,'
9112 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9119 lt_prog_compiler_pic='+Z'
9122 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9123 lt_prog_compiler_static='$wl-a ${wl}archive'
9126 irix5* | irix6* | nonstopux*)
9127 lt_prog_compiler_wl='-Wl,'
9128 # PIC (with -KPIC) is the default.
9129 lt_prog_compiler_static='-non_shared'
9132 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9133 case $cc_basename in
9134 # old Intel for x86_64, which still supported -KPIC.
9136 lt_prog_compiler_wl='-Wl,'
9137 lt_prog_compiler_pic='-KPIC'
9138 lt_prog_compiler_static='-static'
9140 # icc used to be incompatible with GCC.
9141 # ICC 10 doesn't accept -KPIC any more.
9143 lt_prog_compiler_wl='-Wl,'
9144 lt_prog_compiler_pic='-fPIC'
9145 lt_prog_compiler_static='-static'
9147 # Lahey Fortran 8.1.
9149 lt_prog_compiler_wl='-Wl,'
9150 lt_prog_compiler_pic='--shared'
9151 lt_prog_compiler_static='--static'
9154 # NAG Fortran compiler
9155 lt_prog_compiler_wl='-Wl,-Wl,,'
9156 lt_prog_compiler_pic='-PIC'
9157 lt_prog_compiler_static='-Bstatic'
9160 # Fabrice Bellard et al's Tiny C Compiler
9161 lt_prog_compiler_wl='-Wl,'
9162 lt_prog_compiler_pic='-fPIC'
9163 lt_prog_compiler_static='-static'
9165 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9166 # Portland Group compilers (*not* the Pentium gcc compiler,
9167 # which looks to be a dead project)
9168 lt_prog_compiler_wl='-Wl,'
9169 lt_prog_compiler_pic='-fpic'
9170 lt_prog_compiler_static='-Bstatic'
9173 lt_prog_compiler_wl='-Wl,'
9174 # All Alpha code is PIC.
9175 lt_prog_compiler_static='-non_shared'
9177 xl* | bgxl* | bgf* | mpixl*)
9178 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9179 lt_prog_compiler_wl='-Wl,'
9180 lt_prog_compiler_pic='-qpic'
9181 lt_prog_compiler_static='-qstaticlink'
9184 case `$CC -V 2>&1 | sed 5q` in
9185 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9186 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9187 lt_prog_compiler_pic='-KPIC'
9188 lt_prog_compiler_static='-Bstatic'
9189 lt_prog_compiler_wl=''
9191 *Sun\ F* | *Sun*Fortran*)
9192 lt_prog_compiler_pic='-KPIC'
9193 lt_prog_compiler_static='-Bstatic'
9194 lt_prog_compiler_wl='-Qoption ld '
9198 lt_prog_compiler_pic='-KPIC'
9199 lt_prog_compiler_static='-Bstatic'
9200 lt_prog_compiler_wl='-Wl,'
9202 *Intel*\ [CF]*Compiler*)
9203 lt_prog_compiler_wl='-Wl,'
9204 lt_prog_compiler_pic='-fPIC'
9205 lt_prog_compiler_static='-static'
9208 lt_prog_compiler_wl='-Wl,'
9209 lt_prog_compiler_pic='-fpic'
9210 lt_prog_compiler_static='-Bstatic'
9218 lt_prog_compiler_pic='-KPIC'
9219 lt_prog_compiler_static='-Bstatic'
9223 # QNX uses GNU C++, but need to define -shared option too, otherwise
9225 lt_prog_compiler_pic='-fPIC -shared'
9228 osf3* | osf4* | osf5*)
9229 lt_prog_compiler_wl='-Wl,'
9230 # All OSF/1 code is PIC.
9231 lt_prog_compiler_static='-non_shared'
9235 lt_prog_compiler_static='-non_shared'
9239 lt_prog_compiler_pic='-KPIC'
9240 lt_prog_compiler_static='-Bstatic'
9241 case $cc_basename in
9242 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9243 lt_prog_compiler_wl='-Qoption ld ';;
9245 lt_prog_compiler_wl='-Wl,';;
9250 lt_prog_compiler_wl='-Qoption ld '
9251 lt_prog_compiler_pic='-PIC'
9252 lt_prog_compiler_static='-Bstatic'
9255 sysv4 | sysv4.2uw2* | sysv4.3*)
9256 lt_prog_compiler_wl='-Wl,'
9257 lt_prog_compiler_pic='-KPIC'
9258 lt_prog_compiler_static='-Bstatic'
9262 if test -d /usr/nec; then
9263 lt_prog_compiler_pic='-Kconform_pic'
9264 lt_prog_compiler_static='-Bstatic'
9268 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9269 lt_prog_compiler_wl='-Wl,'
9270 lt_prog_compiler_pic='-KPIC'
9271 lt_prog_compiler_static='-Bstatic'
9275 lt_prog_compiler_wl='-Wl,'
9276 lt_prog_compiler_can_build_shared=no
9280 lt_prog_compiler_pic='-pic'
9281 lt_prog_compiler_static='-Bstatic'
9285 lt_prog_compiler_can_build_shared=no
9291 # For platforms that do not support PIC, -DPIC is meaningless:
9293 lt_prog_compiler_pic=
9296 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9301 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9302 if ${lt_cv_prog_compiler_pic+:} false; then :
9303 $as_echo_n "(cached) " >&6
9305 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9308 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9309 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9312 # Check to make sure the PIC flag actually works.
9314 if test -n "$lt_prog_compiler_pic"; then
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9316 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9317 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9318 $as_echo_n "(cached) " >&6
9320 lt_cv_prog_compiler_pic_works=no
9321 ac_outfile=conftest.$ac_objext
9322 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9323 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9324 # Insert the option either (1) after the last *FLAGS variable, or
9325 # (2) before a word containing "conftest.", or (3) at the end.
9326 # Note that $ac_compile itself does not contain backslashes and begins
9327 # with a dollar sign (not a hyphen), so the echo should work correctly.
9328 # The option is referenced via a variable to avoid confusing sed.
9329 lt_compile=`echo "$ac_compile" | $SED \
9330 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9331 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9332 -e 's:$: $lt_compiler_flag:'`
9333 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9334 (eval "$lt_compile" 2>conftest.err)
9336 cat conftest.err >&5
9337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338 if (exit $ac_status) && test -s "$ac_outfile"; then
9339 # The compiler can only warn and ignore the option if not recognized
9340 # So say no if there are warnings other than the usual output.
9341 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9342 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9343 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9344 lt_cv_prog_compiler_pic_works=yes
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9351 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9353 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9354 case $lt_prog_compiler_pic in
9356 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9359 lt_prog_compiler_pic=
9360 lt_prog_compiler_can_build_shared=no
9376 # Check to make sure the static flag actually works.
9378 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9380 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9381 if ${lt_cv_prog_compiler_static_works+:} false; then :
9382 $as_echo_n "(cached) " >&6
9384 lt_cv_prog_compiler_static_works=no
9385 save_LDFLAGS=$LDFLAGS
9386 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9387 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9388 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9389 # The linker can only warn and ignore the option if not recognized
9390 # So say no if there are warnings
9391 if test -s conftest.err; then
9392 # Append any errors to the config.log.
9393 cat conftest.err 1>&5
9394 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9395 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9396 if diff conftest.exp conftest.er2 >/dev/null; then
9397 lt_cv_prog_compiler_static_works=yes
9400 lt_cv_prog_compiler_static_works=yes
9404 LDFLAGS=$save_LDFLAGS
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9408 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9410 if test yes = "$lt_cv_prog_compiler_static_works"; then
9413 lt_prog_compiler_static=
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9423 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9424 if ${lt_cv_prog_compiler_c_o+:} false; then :
9425 $as_echo_n "(cached) " >&6
9427 lt_cv_prog_compiler_c_o=no
9428 $RM -r conftest 2>/dev/null
9432 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9434 lt_compiler_flag="-o out/conftest2.$ac_objext"
9435 # Insert the option either (1) after the last *FLAGS variable, or
9436 # (2) before a word containing "conftest.", or (3) at the end.
9437 # Note that $ac_compile itself does not contain backslashes and begins
9438 # with a dollar sign (not a hyphen), so the echo should work correctly.
9439 lt_compile=`echo "$ac_compile" | $SED \
9440 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9441 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9442 -e 's:$: $lt_compiler_flag:'`
9443 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9444 (eval "$lt_compile" 2>out/conftest.err)
9446 cat out/conftest.err >&5
9447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9450 # The compiler can only warn and ignore the option if not recognized
9451 # So say no if there are warnings
9452 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9453 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9454 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9455 lt_cv_prog_compiler_c_o=yes
9460 # SGI C++ compiler will create directory out/ii_files/ for
9461 # template instantiation
9462 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9463 $RM out/* && rmdir out
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9470 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9478 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9479 if ${lt_cv_prog_compiler_c_o+:} false; then :
9480 $as_echo_n "(cached) " >&6
9482 lt_cv_prog_compiler_c_o=no
9483 $RM -r conftest 2>/dev/null
9487 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9489 lt_compiler_flag="-o out/conftest2.$ac_objext"
9490 # Insert the option either (1) after the last *FLAGS variable, or
9491 # (2) before a word containing "conftest.", or (3) at the end.
9492 # Note that $ac_compile itself does not contain backslashes and begins
9493 # with a dollar sign (not a hyphen), so the echo should work correctly.
9494 lt_compile=`echo "$ac_compile" | $SED \
9495 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9496 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9497 -e 's:$: $lt_compiler_flag:'`
9498 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9499 (eval "$lt_compile" 2>out/conftest.err)
9501 cat out/conftest.err >&5
9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9505 # The compiler can only warn and ignore the option if not recognized
9506 # So say no if there are warnings
9507 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9508 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9509 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9510 lt_cv_prog_compiler_c_o=yes
9515 # SGI C++ compiler will create directory out/ii_files/ for
9516 # template instantiation
9517 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9518 $RM out/* && rmdir out
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9525 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9530 hard_links=nottested
9531 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9532 # do not overwrite the value of need_locks provided by the user
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9534 $as_echo_n "checking if we can lock with hard links... " >&6; }
9537 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9539 ln conftest.a conftest.b 2>&5 || hard_links=no
9540 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9542 $as_echo "$hard_links" >&6; }
9543 if test no = "$hard_links"; then
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9545 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9558 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9561 allow_undefined_flag=
9562 always_export_symbols=no
9564 archive_expsym_cmds=
9565 compiler_needs_object=no
9566 enable_shared_with_static_runtimes=no
9567 export_dynamic_flag_spec=
9568 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9569 hardcode_automatic=no
9571 hardcode_direct_absolute=no
9572 hardcode_libdir_flag_spec=
9573 hardcode_libdir_separator=
9575 hardcode_shlibpath_var=unsupported
9577 link_all_deplibs=unknown
9580 old_archive_from_new_cmds=
9581 old_archive_from_expsyms_cmds=
9582 thread_safe_flag_spec=
9583 whole_archive_flag_spec=
9584 # include_expsyms should be a list of space-separated symbols to be *always*
9585 # included in the symbol list
9587 # exclude_expsyms can be an extended regexp of symbols to exclude
9588 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9589 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9590 # as well as any symbol that contains 'd'.
9591 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9592 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9593 # platforms (ab)use it in PIC code, but their linkers get confused if
9594 # the symbol is explicitly referenced. Since portable code cannot
9595 # rely on this symbol name, it's probably fine to never include it in
9596 # preloaded symbol tables.
9597 # Exclude shared library initialization/finalization symbols.
9598 extract_expsyms_cmds=
9601 cygwin* | mingw* | pw32* | cegcc*)
9602 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9603 # When not using gcc, we currently assume that we are using
9604 # Microsoft Visual C++.
9605 if test yes != "$GCC"; then
9610 # we just hope/assume this is gcc and not c89 (= MSVC++)
9620 # On some targets, GNU ld is compatible enough with the native linker
9621 # that we're better off using the native interface for both.
9622 lt_use_gnu_ld_interface=no
9623 if test yes = "$with_gnu_ld"; then
9626 # The AIX port of GNU ld has always aspired to compatibility
9627 # with the native linker. However, as the warning in the GNU ld
9628 # block says, versions before 2.19.5* couldn't really create working
9629 # shared libraries, regardless of the interface used.
9630 case `$LD -v 2>&1` in
9631 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9632 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9633 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9635 lt_use_gnu_ld_interface=yes
9640 lt_use_gnu_ld_interface=yes
9645 if test yes = "$lt_use_gnu_ld_interface"; then
9646 # If archive_cmds runs LD, not CC, wlarc should be empty
9649 # Set some defaults for GNU ld with shared library support. These
9650 # are reset later if shared libraries are not supported. Putting them
9651 # here allows them to be overridden if necessary.
9652 runpath_var=LD_RUN_PATH
9653 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9654 export_dynamic_flag_spec='$wl--export-dynamic'
9655 # ancient GNU ld didn't support --whole-archive et. al.
9656 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9657 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9659 whole_archive_flag_spec=
9661 supports_anon_versioning=no
9662 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9663 *GNU\ gold*) supports_anon_versioning=yes ;;
9664 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9665 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9666 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9667 *\ 2.11.*) ;; # other 2.11 versions
9668 *) supports_anon_versioning=yes ;;
9671 # See if GNU ld supports shared libraries.
9674 # On AIX/PPC, the GNU linker is very broken
9675 if test ia64 != "$host_cpu"; then
9679 *** Warning: the GNU linker, at least up to release 2.19, is reported
9680 *** to be unable to reliably create shared libraries on AIX.
9681 *** Therefore, libtool is disabling shared libraries support. If you
9682 *** really care for shared libraries, you may want to install binutils
9683 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9684 *** You will then need to restart the configuration process.
9693 # see comment about AmigaOS4 .so support
9694 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9695 archive_expsym_cmds=''
9698 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)'
9699 hardcode_libdir_flag_spec='-L$libdir'
9700 hardcode_minus_L=yes
9706 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9707 allow_undefined_flag=unsupported
9708 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9709 # support --undefined. This deserves some investigation. FIXME
9710 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9716 cygwin* | mingw* | pw32* | cegcc*)
9717 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9718 # as there is no search path for DLLs.
9719 hardcode_libdir_flag_spec='-L$libdir'
9720 export_dynamic_flag_spec='$wl--export-all-symbols'
9721 allow_undefined_flag=unsupported
9722 always_export_symbols=no
9723 enable_shared_with_static_runtimes=yes
9724 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'
9725 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9727 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9728 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9729 # If the export-symbols file already is a .def file, use it as
9730 # is; otherwise, prepend EXPORTS...
9731 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9732 cp $export_symbols $output_objdir/$soname.def;
9734 echo EXPORTS > $output_objdir/$soname.def;
9735 cat $export_symbols >> $output_objdir/$soname.def;
9737 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9744 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9745 link_all_deplibs=yes
9749 hardcode_libdir_flag_spec='-L$libdir'
9750 hardcode_minus_L=yes
9751 allow_undefined_flag=unsupported
9753 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9754 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9755 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9756 $ECHO EXPORTS >> $output_objdir/$libname.def~
9757 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9758 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9759 emximp -o $lib $output_objdir/$libname.def'
9760 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9761 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9762 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9763 $ECHO EXPORTS >> $output_objdir/$libname.def~
9765 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9766 prefix_cmds="$prefix_cmds -e 1d";
9768 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9769 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9770 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9771 emximp -o $lib $output_objdir/$libname.def'
9772 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9773 enable_shared_with_static_runtimes=yes
9778 hardcode_shlibpath_var=no
9779 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9780 export_dynamic_flag_spec='$wl-E'
9781 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9782 # Instead, shared libraries are loaded at an image base (0x10000000 by
9783 # default) and relocated if they conflict, which is a slow very memory
9784 # consuming and fragmenting process. To avoid this, we pick a random,
9785 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9786 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9787 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9788 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'
9791 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9793 if test linux-dietlibc = "$host_os"; then
9794 case $cc_basename in
9795 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9798 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9799 && test no = "$tmp_diet"
9801 tmp_addflag=' $pic_flag'
9802 tmp_sharedflag='-shared'
9803 case $cc_basename,$host_cpu in
9804 pgcc*) # Portland Group C compiler
9805 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'
9806 tmp_addflag=' $pic_flag'
9808 pgf77* | pgf90* | pgf95* | pgfortran*)
9809 # Portland Group f77 and f90 compilers
9810 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'
9811 tmp_addflag=' $pic_flag -Mnomain' ;;
9812 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9813 tmp_addflag=' -i_dynamic' ;;
9814 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9815 tmp_addflag=' -i_dynamic -nofor_main' ;;
9816 ifc* | ifort*) # Intel Fortran compiler
9817 tmp_addflag=' -nofor_main' ;;
9818 lf95*) # Lahey Fortran 8.1
9819 whole_archive_flag_spec=
9820 tmp_sharedflag='--shared' ;;
9821 nagfor*) # NAGFOR 5.3
9822 tmp_sharedflag='-Wl,-shared' ;;
9823 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9824 tmp_sharedflag='-qmkshrobj'
9826 nvcc*) # Cuda Compiler Driver 2.2
9827 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'
9828 compiler_needs_object=yes
9831 case `$CC -V 2>&1 | sed 5q` in
9832 *Sun\ C*) # Sun C 5.9
9833 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'
9834 compiler_needs_object=yes
9835 tmp_sharedflag='-G' ;;
9836 *Sun\ F*) # Sun Fortran 8.3
9837 tmp_sharedflag='-G' ;;
9839 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9841 if test yes = "$supports_anon_versioning"; then
9842 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9843 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9844 echo "local: *; };" >> $output_objdir/$libname.ver~
9845 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9848 case $cc_basename in
9850 export_dynamic_flag_spec='-rdynamic'
9852 xlf* | bgf* | bgxlf* | mpixlf*)
9853 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9854 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9855 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9856 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9857 if test yes = "$supports_anon_versioning"; then
9858 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9859 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9860 echo "local: *; };" >> $output_objdir/$libname.ver~
9861 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9871 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9872 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9875 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9876 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9881 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9885 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9886 *** create shared libraries on Solaris systems. Therefore, libtool
9887 *** is disabling shared libraries support. We urge you to upgrade GNU
9888 *** binutils to release 2.9.1 or newer. Another option is to modify
9889 *** your PATH or compiler configuration so that the native linker is
9890 *** used, and then restart.
9893 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9894 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9895 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9901 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9902 case `$LD -v 2>&1` in
9903 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9907 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9908 *** reliably create shared libraries on SCO systems. Therefore, libtool
9909 *** is disabling shared libraries support. We urge you to upgrade GNU
9910 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9911 *** your PATH or compiler configuration so that the native linker is
9912 *** used, and then restart.
9917 # For security reasons, it is highly recommended that you always
9918 # use absolute paths for naming shared libraries, and exclude the
9919 # DT_RUNPATH tag from executables and libraries. But doing so
9920 # requires that you compile everything twice, which is a pain.
9921 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9922 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9923 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9924 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9933 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9936 hardcode_shlibpath_var=no
9940 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9941 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9942 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9949 if test no = "$ld_shlibs"; then
9951 hardcode_libdir_flag_spec=
9952 export_dynamic_flag_spec=
9953 whole_archive_flag_spec=
9956 # PORTME fill in a description of your system's linker (not GNU ld)
9959 allow_undefined_flag=unsupported
9960 always_export_symbols=yes
9961 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'
9962 # Note: this linker hardcodes the directories in LIBPATH if there
9963 # are no directories specified by -L.
9964 hardcode_minus_L=yes
9965 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9966 # Neither direct hardcoding nor static linking is supported with a
9968 hardcode_direct=unsupported
9973 if test ia64 = "$host_cpu"; then
9974 # On IA64, the linker does run time linking by default, so we don't
9975 # have to do anything special.
9976 aix_use_runtimelinking=no
9977 exp_sym_flag='-Bexport'
9980 # If we're using GNU nm, then we don't want the "-C" option.
9981 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9982 # Without the "-l" option, or with the "-B" option, AIX nm treats
9983 # weak defined symbols like other global defined symbols, whereas
9984 # GNU nm marks them as "W".
9985 # While the 'weak' keyword is ignored in the Export File, we need
9986 # it in the Import File for the 'aix-soname' feature, so we have
9987 # to replace the "-B" option with "-P" for AIX nm.
9988 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9989 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'
9991 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'
9993 aix_use_runtimelinking=no
9995 # Test if we are trying to use run time linking or normal
9996 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9997 # have runtime linking enabled, and use it for executables.
9998 # For shared libraries, we enable/disable runtime linking
9999 # depending on the kind of the shared library created -
10000 # when "with_aix_soname,aix_use_runtimelinking" is:
10001 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10002 # "aix,yes" lib.so shared, rtl:yes, for executables
10003 # lib.a static archive
10004 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10005 # lib.a(lib.so.V) shared, rtl:no, for executables
10006 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10007 # lib.a(lib.so.V) shared, rtl:no
10008 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10009 # lib.a static archive
10010 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10011 for ld_flag in $LDFLAGS; do
10012 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10013 aix_use_runtimelinking=yes
10017 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10018 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10019 # so we don't have lib.a shared libs to link our executables.
10020 # We have to force runtime linking in this case.
10021 aix_use_runtimelinking=yes
10022 LDFLAGS="$LDFLAGS -Wl,-brtl"
10027 exp_sym_flag='-bexport'
10028 no_entry_flag='-bnoentry'
10031 # When large executables or shared objects are built, AIX ld can
10032 # have problems creating the table of contents. If linking a library
10033 # or program results in "error TOC overflow" add -mminimal-toc to
10034 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10035 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10038 hardcode_direct=yes
10039 hardcode_direct_absolute=yes
10040 hardcode_libdir_separator=':'
10041 link_all_deplibs=yes
10042 file_list_spec='$wl-f,'
10043 case $with_aix_soname,$aix_use_runtimelinking in
10044 aix,*) ;; # traditional, no import file
10045 svr4,* | *,yes) # use import file
10046 # The Import File defines what to hardcode.
10048 hardcode_direct_absolute=no
10052 if test yes = "$GCC"; then
10053 case $host_os in aix4.[012]|aix4.[012].*)
10054 # We only want to do this on AIX 4.2 and lower, the check
10055 # below for broken collect2 doesn't work under 4.3+
10056 collect2name=`$CC -print-prog-name=collect2`
10057 if test -f "$collect2name" &&
10058 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10060 # We have reworked collect2
10063 # We have old collect2
10064 hardcode_direct=unsupported
10065 # It fails to find uninstalled libraries when the uninstalled
10066 # path is not listed in the libpath. Setting hardcode_minus_L
10067 # to unsupported forces relinking
10068 hardcode_minus_L=yes
10069 hardcode_libdir_flag_spec='-L$libdir'
10070 hardcode_libdir_separator=
10074 shared_flag='-shared'
10075 if test yes = "$aix_use_runtimelinking"; then
10076 shared_flag="$shared_flag "'$wl-G'
10078 # Need to ensure runtime linking is disabled for the traditional
10079 # shared library, or the linker may eventually find shared libraries
10080 # /with/ Import File - we do not want to mix them.
10081 shared_flag_aix='-shared'
10082 shared_flag_svr4='-shared $wl-G'
10085 if test ia64 = "$host_cpu"; then
10086 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10087 # chokes on -Wl,-G. The following line is correct:
10090 if test yes = "$aix_use_runtimelinking"; then
10091 shared_flag='$wl-G'
10093 shared_flag='$wl-bM:SRE'
10095 shared_flag_aix='$wl-bM:SRE'
10096 shared_flag_svr4='$wl-G'
10100 export_dynamic_flag_spec='$wl-bexpall'
10101 # It seems that -bexpall does not export symbols beginning with
10102 # underscore (_), so it is better to generate a list of symbols to export.
10103 always_export_symbols=yes
10104 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10105 # Warning - without using the other runtime loading flags (-brtl),
10106 # -berok will link without error, but may produce a broken library.
10107 allow_undefined_flag='-berok'
10108 # Determine the default libpath from the value encoded in an
10109 # empty executable.
10110 if test set = "${lt_cv_aix_libpath+set}"; then
10111 aix_libpath=$lt_cv_aix_libpath
10113 if ${lt_cv_aix_libpath_+:} false; then :
10114 $as_echo_n "(cached) " >&6
10116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10117 /* end confdefs.h. */
10127 if ac_fn_c_try_link "$LINENO"; then :
10129 lt_aix_libpath_sed='
10130 /Import File Strings/,/^$/ {
10132 s/^0 *\([^ ]*\) *$/\1/
10136 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10137 # Check for a 64-bit object if we didn't find anything.
10138 if test -z "$lt_cv_aix_libpath_"; then
10139 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10142 rm -f core conftest.err conftest.$ac_objext \
10143 conftest$ac_exeext conftest.$ac_ext
10144 if test -z "$lt_cv_aix_libpath_"; then
10145 lt_cv_aix_libpath_=/usr/lib:/lib
10150 aix_libpath=$lt_cv_aix_libpath_
10153 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10154 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
10156 if test ia64 = "$host_cpu"; then
10157 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10158 allow_undefined_flag="-z nodefs"
10159 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"
10161 # Determine the default libpath from the value encoded in an
10162 # empty executable.
10163 if test set = "${lt_cv_aix_libpath+set}"; then
10164 aix_libpath=$lt_cv_aix_libpath
10166 if ${lt_cv_aix_libpath_+:} false; then :
10167 $as_echo_n "(cached) " >&6
10169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10170 /* end confdefs.h. */
10180 if ac_fn_c_try_link "$LINENO"; then :
10182 lt_aix_libpath_sed='
10183 /Import File Strings/,/^$/ {
10185 s/^0 *\([^ ]*\) *$/\1/
10189 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10190 # Check for a 64-bit object if we didn't find anything.
10191 if test -z "$lt_cv_aix_libpath_"; then
10192 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10195 rm -f core conftest.err conftest.$ac_objext \
10196 conftest$ac_exeext conftest.$ac_ext
10197 if test -z "$lt_cv_aix_libpath_"; then
10198 lt_cv_aix_libpath_=/usr/lib:/lib
10203 aix_libpath=$lt_cv_aix_libpath_
10206 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10207 # Warning - without using the other run time loading flags,
10208 # -berok will link without error, but may produce a broken library.
10209 no_undefined_flag=' $wl-bernotok'
10210 allow_undefined_flag=' $wl-berok'
10211 if test yes = "$with_gnu_ld"; then
10212 # We only use this code for GNU lds that support --whole-archive.
10213 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10215 # Exported symbols can be pulled into shared objects from archives
10216 whole_archive_flag_spec='$convenience'
10218 archive_cmds_need_lc=yes
10219 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10220 # -brtl affects multiple linker settings, -berok does not and is overridden later
10221 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10222 if test svr4 != "$with_aix_soname"; then
10223 # This is similar to how AIX traditionally builds its shared libraries.
10224 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'
10226 if test aix != "$with_aix_soname"; then
10227 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'
10229 # used by -dlpreopen to get the symbols
10230 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10232 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10240 # see comment about AmigaOS4 .so support
10241 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10242 archive_expsym_cmds=''
10245 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)'
10246 hardcode_libdir_flag_spec='-L$libdir'
10247 hardcode_minus_L=yes
10253 export_dynamic_flag_spec=-rdynamic
10256 cygwin* | mingw* | pw32* | cegcc*)
10257 # When not using gcc, we currently assume that we are using
10258 # Microsoft Visual C++.
10259 # hardcode_libdir_flag_spec is actually meaningless, as there is
10260 # no search path for DLLs.
10261 case $cc_basename in
10264 hardcode_libdir_flag_spec=' '
10265 allow_undefined_flag=unsupported
10266 always_export_symbols=yes
10268 # Tell ltmain to make .lib files, not .a files.
10270 # Tell ltmain to make .dll files, not .so files.
10272 # FIXME: Setting linknames here is a bad hack.
10273 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10274 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10275 cp "$export_symbols" "$output_objdir/$soname.def";
10276 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10278 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10280 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10282 # The linker will not automatically build a static lib if we build a DLL.
10283 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10284 enable_shared_with_static_runtimes=yes
10285 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10286 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10288 old_postinstall_cmds='chmod 644 $oldlib'
10289 postlink_cmds='lt_outputfile="@OUTPUT@"~
10290 lt_tool_outputfile="@TOOL_OUTPUT@"~
10291 case $lt_outputfile in
10294 lt_outputfile=$lt_outputfile.exe
10295 lt_tool_outputfile=$lt_tool_outputfile.exe
10298 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10299 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10300 $RM "$lt_outputfile.manifest";
10304 # Assume MSVC wrapper
10305 hardcode_libdir_flag_spec=' '
10306 allow_undefined_flag=unsupported
10307 # Tell ltmain to make .lib files, not .a files.
10309 # Tell ltmain to make .dll files, not .so files.
10311 # FIXME: Setting linknames here is a bad hack.
10312 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10313 # The linker will automatically build a .lib file if we build a DLL.
10314 old_archive_from_new_cmds='true'
10315 # FIXME: Should let the user specify the lib program.
10316 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10317 enable_shared_with_static_runtimes=yes
10322 darwin* | rhapsody*)
10325 archive_cmds_need_lc=no
10327 hardcode_automatic=yes
10328 hardcode_shlibpath_var=unsupported
10329 if test yes = "$lt_cv_ld_force_load"; then
10330 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\"`'
10333 whole_archive_flag_spec=''
10335 link_all_deplibs=yes
10336 allow_undefined_flag=$_lt_dar_allow_undefined
10337 case $cc_basename in
10338 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10339 *) _lt_dar_can_shared=$GCC ;;
10341 if test yes = "$_lt_dar_can_shared"; then
10342 output_verbose_link_cmd=func_echo_all
10343 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10344 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10345 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"
10346 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"
10355 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10356 hardcode_libdir_flag_spec='-L$libdir'
10357 hardcode_shlibpath_var=no
10360 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10361 # support. Future versions do this automatically, but an explicit c++rt0.o
10362 # does not break anything, and helps significantly (at the cost of a little
10365 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10366 hardcode_libdir_flag_spec='-R$libdir'
10367 hardcode_direct=yes
10368 hardcode_shlibpath_var=no
10371 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10373 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10374 hardcode_direct=yes
10375 hardcode_minus_L=yes
10376 hardcode_shlibpath_var=no
10379 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10380 freebsd* | dragonfly*)
10381 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10382 hardcode_libdir_flag_spec='-R$libdir'
10383 hardcode_direct=yes
10384 hardcode_shlibpath_var=no
10388 if test yes = "$GCC"; then
10389 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'
10391 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'
10393 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10394 hardcode_libdir_separator=:
10395 hardcode_direct=yes
10397 # hardcode_minus_L: Not really in the search PATH,
10398 # but as the default location of the library.
10399 hardcode_minus_L=yes
10400 export_dynamic_flag_spec='$wl-E'
10404 if test yes,no = "$GCC,$with_gnu_ld"; then
10405 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10407 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10409 if test no = "$with_gnu_ld"; then
10410 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10411 hardcode_libdir_separator=:
10412 hardcode_direct=yes
10413 hardcode_direct_absolute=yes
10414 export_dynamic_flag_spec='$wl-E'
10415 # hardcode_minus_L: Not really in the search PATH,
10416 # but as the default location of the library.
10417 hardcode_minus_L=yes
10422 if test yes,no = "$GCC,$with_gnu_ld"; then
10425 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10428 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10431 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10437 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10440 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10444 # Older versions of the 11.00 compiler do not understand -b yet
10445 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10447 $as_echo_n "checking if $CC understands -b... " >&6; }
10448 if ${lt_cv_prog_compiler__b+:} false; then :
10449 $as_echo_n "(cached) " >&6
10451 lt_cv_prog_compiler__b=no
10452 save_LDFLAGS=$LDFLAGS
10453 LDFLAGS="$LDFLAGS -b"
10454 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10455 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10456 # The linker can only warn and ignore the option if not recognized
10457 # So say no if there are warnings
10458 if test -s conftest.err; then
10459 # Append any errors to the config.log.
10460 cat conftest.err 1>&5
10461 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10462 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10463 if diff conftest.exp conftest.er2 >/dev/null; then
10464 lt_cv_prog_compiler__b=yes
10467 lt_cv_prog_compiler__b=yes
10471 LDFLAGS=$save_LDFLAGS
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10475 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10477 if test yes = "$lt_cv_prog_compiler__b"; then
10478 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10480 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10486 if test no = "$with_gnu_ld"; then
10487 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10488 hardcode_libdir_separator=:
10493 hardcode_shlibpath_var=no
10496 hardcode_direct=yes
10497 hardcode_direct_absolute=yes
10498 export_dynamic_flag_spec='$wl-E'
10500 # hardcode_minus_L: Not really in the search PATH,
10501 # but as the default location of the library.
10502 hardcode_minus_L=yes
10508 irix5* | irix6* | nonstopux*)
10509 if test yes = "$GCC"; then
10510 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'
10511 # Try to use the -exported_symbol ld option, if it does not
10512 # work, assume that -exports_file does not work either and
10513 # implicitly export all symbols.
10514 # This should be the same for all languages, so no per-tag cache variable.
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10516 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10517 if ${lt_cv_irix_exported_symbol+:} false; then :
10518 $as_echo_n "(cached) " >&6
10520 save_LDFLAGS=$LDFLAGS
10521 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10523 /* end confdefs.h. */
10524 int foo (void) { return 0; }
10526 if ac_fn_c_try_link "$LINENO"; then :
10527 lt_cv_irix_exported_symbol=yes
10529 lt_cv_irix_exported_symbol=no
10531 rm -f core conftest.err conftest.$ac_objext \
10532 conftest$ac_exeext conftest.$ac_ext
10533 LDFLAGS=$save_LDFLAGS
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10536 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10537 if test yes = "$lt_cv_irix_exported_symbol"; then
10538 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'
10541 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'
10542 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'
10544 archive_cmds_need_lc='no'
10545 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10546 hardcode_libdir_separator=:
10548 link_all_deplibs=yes
10552 case $cc_basename in
10554 # Fabrice Bellard et al's Tiny C Compiler
10556 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10562 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10563 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10565 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10567 hardcode_libdir_flag_spec='-R$libdir'
10568 hardcode_direct=yes
10569 hardcode_shlibpath_var=no
10573 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10574 hardcode_direct=yes
10575 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10576 hardcode_libdir_separator=:
10577 hardcode_shlibpath_var=no
10583 openbsd* | bitrig*)
10584 if test -f /usr/libexec/ld.so; then
10585 hardcode_direct=yes
10586 hardcode_shlibpath_var=no
10587 hardcode_direct_absolute=yes
10588 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10589 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10590 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10591 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10592 export_dynamic_flag_spec='$wl-E'
10594 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10595 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10603 hardcode_libdir_flag_spec='-L$libdir'
10604 hardcode_minus_L=yes
10605 allow_undefined_flag=unsupported
10607 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10608 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10609 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10610 $ECHO EXPORTS >> $output_objdir/$libname.def~
10611 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10612 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10613 emximp -o $lib $output_objdir/$libname.def'
10614 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10615 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10616 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10617 $ECHO EXPORTS >> $output_objdir/$libname.def~
10618 prefix_cmds="$SED"~
10619 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10620 prefix_cmds="$prefix_cmds -e 1d";
10622 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10623 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10624 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10625 emximp -o $lib $output_objdir/$libname.def'
10626 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10627 enable_shared_with_static_runtimes=yes
10631 if test yes = "$GCC"; then
10632 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10633 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'
10635 allow_undefined_flag=' -expect_unresolved \*'
10636 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'
10638 archive_cmds_need_lc='no'
10639 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10640 hardcode_libdir_separator=:
10643 osf4* | osf5*) # as osf3* with the addition of -msym flag
10644 if test yes = "$GCC"; then
10645 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10646 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'
10647 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10649 allow_undefined_flag=' -expect_unresolved \*'
10650 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'
10651 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~
10652 $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'
10654 # Both c and cxx compiler support -rpath directly
10655 hardcode_libdir_flag_spec='-rpath $libdir'
10657 archive_cmds_need_lc='no'
10658 hardcode_libdir_separator=:
10662 no_undefined_flag=' -z defs'
10663 if test yes = "$GCC"; then
10665 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10666 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10667 $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'
10669 case `$CC -V 2>&1` in
10672 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10673 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10674 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10678 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10679 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10680 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10684 hardcode_libdir_flag_spec='-R$libdir'
10685 hardcode_shlibpath_var=no
10687 solaris2.[0-5] | solaris2.[0-5].*) ;;
10689 # The compiler driver will combine and reorder linker options,
10690 # but understands '-z linker_flag'. GCC discards it without '$wl',
10691 # but is careful enough not to reorder.
10692 # Supported since Solaris 2.6 (maybe 2.5.1?)
10693 if test yes = "$GCC"; then
10694 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10696 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10700 link_all_deplibs=yes
10704 if test sequent = "$host_vendor"; then
10705 # Use $CC to link under sequent, because it throws in some extra .o
10706 # files that make .init and .fini sections work.
10707 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10709 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10711 hardcode_libdir_flag_spec='-L$libdir'
10712 hardcode_direct=yes
10713 hardcode_minus_L=yes
10714 hardcode_shlibpath_var=no
10718 case $host_vendor in
10720 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10721 hardcode_direct=yes # is this really true???
10724 ## LD is ld it makes a PLAMLIB
10725 ## CC just makes a GrossModule.
10726 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10727 reload_cmds='$CC -r -o $output$reload_objs'
10731 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10732 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10735 runpath_var='LD_RUN_PATH'
10736 hardcode_shlibpath_var=no
10740 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10741 hardcode_shlibpath_var=no
10742 export_dynamic_flag_spec='-Bexport'
10746 if test -d /usr/nec; then
10747 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10748 hardcode_shlibpath_var=no
10749 runpath_var=LD_RUN_PATH
10750 hardcode_runpath_var=yes
10755 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10756 no_undefined_flag='$wl-z,text'
10757 archive_cmds_need_lc=no
10758 hardcode_shlibpath_var=no
10759 runpath_var='LD_RUN_PATH'
10761 if test yes = "$GCC"; then
10762 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10763 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10765 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10766 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10770 sysv5* | sco3.2v5* | sco5v6*)
10771 # Note: We CANNOT use -z defs as we might desire, because we do not
10772 # link with -lc, and that would cause any symbols used from libc to
10773 # always be unresolved, which means just about no library would
10774 # ever link correctly. If we're not using GNU ld we use -z text
10775 # though, which does catch some bad symbols but isn't as heavy-handed
10777 no_undefined_flag='$wl-z,text'
10778 allow_undefined_flag='$wl-z,nodefs'
10779 archive_cmds_need_lc=no
10780 hardcode_shlibpath_var=no
10781 hardcode_libdir_flag_spec='$wl-R,$libdir'
10782 hardcode_libdir_separator=':'
10783 link_all_deplibs=yes
10784 export_dynamic_flag_spec='$wl-Bexport'
10785 runpath_var='LD_RUN_PATH'
10787 if test yes = "$GCC"; then
10788 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10789 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10791 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10792 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10797 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10798 hardcode_libdir_flag_spec='-L$libdir'
10799 hardcode_shlibpath_var=no
10807 if test sni = "$host_vendor"; then
10809 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10810 export_dynamic_flag_spec='$wl-Blargedynsym'
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10817 $as_echo "$ld_shlibs" >&6; }
10818 test no = "$ld_shlibs" && can_build_shared=no
10820 with_gnu_ld=$with_gnu_ld
10837 # Do we need to explicitly link libc?
10839 case "x$archive_cmds_need_lc" in
10841 # Assume -lc should be added
10842 archive_cmds_need_lc=yes
10844 if test yes,yes = "$GCC,$enable_shared"; then
10845 case $archive_cmds in
10847 # FIXME: we may have to deal with multi-command sequences.
10850 # Test whether the compiler implicitly links with -lc since on some
10851 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10852 # to ld, don't add -lc before -lgcc.
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10854 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10855 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10856 $as_echo_n "(cached) " >&6
10859 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10861 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10862 (eval $ac_compile) 2>&5
10864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10865 test $ac_status = 0; } 2>conftest.err; then
10868 libobjs=conftest.$ac_objext
10870 wl=$lt_prog_compiler_wl
10871 pic_flag=$lt_prog_compiler_pic
10877 lt_save_allow_undefined_flag=$allow_undefined_flag
10878 allow_undefined_flag=
10879 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10880 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10883 test $ac_status = 0; }
10885 lt_cv_archive_cmds_need_lc=no
10887 lt_cv_archive_cmds_need_lc=yes
10889 allow_undefined_flag=$lt_save_allow_undefined_flag
10891 cat conftest.err 1>&5
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10897 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10898 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11057 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11059 if test yes = "$GCC"; then
11061 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11062 *) lt_awk_arg='/^libraries:/' ;;
11065 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11066 *) lt_sed_strip_eq='s|=/|/|g' ;;
11068 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11069 case $lt_search_path_spec in
11071 # if the path contains ";" then we assume it to be the separator
11072 # otherwise default to the standard path separator (i.e. ":") - it is
11073 # assumed that no part of a normal pathname contains ";" but that should
11074 # okay in the real world where ";" in dirpaths is itself problematic.
11075 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11078 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11081 # Ok, now we have the path, separated by spaces, we can step through it
11082 # and add multilib dir if necessary...
11083 lt_tmp_lt_search_path_spec=
11084 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11085 # ...but if some path component already ends with the multilib dir we assume
11086 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11087 case "$lt_multi_os_dir; $lt_search_path_spec " in
11088 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11092 for lt_sys_path in $lt_search_path_spec; do
11093 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11094 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11095 elif test -n "$lt_multi_os_dir"; then
11096 test -d "$lt_sys_path" && \
11097 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11100 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11101 BEGIN {RS = " "; FS = "/|\n";} {
11104 for (lt_i = NF; lt_i > 0; lt_i--) {
11105 if ($lt_i != "" && $lt_i != ".") {
11106 if ($lt_i == "..") {
11109 if (lt_count == 0) {
11110 lt_foo = "/" $lt_i lt_foo;
11117 if (lt_foo != "") { lt_freq[lt_foo]++; }
11118 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11120 # AWK program above erroneously prepends '/' to C:/dos/paths
11123 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11124 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11126 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11128 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11130 library_names_spec=
11131 libname_spec='lib$name'
11135 postuninstall_cmds=
11139 shlibpath_overrides_runpath=unknown
11141 dynamic_linker="$host_os ld.so"
11142 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11143 need_lib_prefix=unknown
11144 hardcode_into_libs=no
11146 # when you set need_version to no, make sure it does not cause -set_version
11147 # flags to be left without arguments
11148 need_version=unknown
11154 version_type=linux # correct to gnu/linux during the next big refactor
11155 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11156 shlibpath_var=LIBPATH
11158 # AIX 3 has no versioning support, so we append a major version to the name.
11159 soname_spec='$libname$release$shared_ext$major'
11163 version_type=linux # correct to gnu/linux during the next big refactor
11166 hardcode_into_libs=yes
11167 if test ia64 = "$host_cpu"; then
11168 # AIX 5 supports IA64
11169 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11170 shlibpath_var=LD_LIBRARY_PATH
11172 # With GCC up to 2.95.x, collect2 would create an import file
11173 # for dependence libraries. The import file would start with
11174 # the line '#! .'. This would cause the generated library to
11175 # depend on '.', always an invalid library. This was fixed in
11176 # development snapshots of GCC prior to 3.0.
11178 aix4 | aix4.[01] | aix4.[01].*)
11179 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11181 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11184 can_build_shared=no
11188 # Using Import Files as archive members, it is possible to support
11189 # filename-based versioning of shared library archives on AIX. While
11190 # this would work for both with and without runtime linking, it will
11191 # prevent static linking of such archives. So we do filename-based
11192 # shared library versioning with .so extension only, which is used
11193 # when both runtime linking and shared linking is enabled.
11194 # Unfortunately, runtime linking may impact performance, so we do
11195 # not want this to be the default eventually. Also, we use the
11196 # versioned .so libs for executables only if there is the -brtl
11197 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11198 # To allow for filename-based versioning support, we need to create
11199 # libNAME.so.V as an archive file, containing:
11200 # *) an Import File, referring to the versioned filename of the
11201 # archive as well as the shared archive member, telling the
11202 # bitwidth (32 or 64) of that shared object, and providing the
11203 # list of exported symbols of that shared object, eventually
11204 # decorated with the 'weak' keyword
11205 # *) the shared object with the F_LOADONLY flag set, to really avoid
11206 # it being seen by the linker.
11207 # At run time we better use the real file rather than another symlink,
11208 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11210 case $with_aix_soname,$aix_use_runtimelinking in
11211 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11212 # soname into executable. Probably we can add versioning support to
11213 # collect2, so additional links can be useful in future.
11214 aix,yes) # traditional libtool
11215 dynamic_linker='AIX unversionable lib.so'
11216 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11217 # instead of lib<name>.a to let people know that these are not
11218 # typical AIX shared libraries.
11219 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11221 aix,no) # traditional AIX only
11222 dynamic_linker='AIX lib.a(lib.so.V)'
11223 # We preserve .a as extension for shared libraries through AIX4.2
11224 # and later when we are not doing run time linking.
11225 library_names_spec='$libname$release.a $libname.a'
11226 soname_spec='$libname$release$shared_ext$major'
11228 svr4,*) # full svr4 only
11229 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11230 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11231 # We do not specify a path in Import Files, so LIBPATH fires.
11232 shlibpath_overrides_runpath=yes
11234 *,yes) # both, prefer svr4
11235 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11236 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11237 # unpreferred sharedlib libNAME.a needs extra handling
11238 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"'
11239 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"'
11240 # We do not specify a path in Import Files, so LIBPATH fires.
11241 shlibpath_overrides_runpath=yes
11243 *,no) # both, prefer aix
11244 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11245 library_names_spec='$libname$release.a $libname.a'
11246 soname_spec='$libname$release$shared_ext$major'
11247 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11248 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)'
11249 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"'
11252 shlibpath_var=LIBPATH
11259 # Since July 2007 AmigaOS4 officially supports .so libraries.
11260 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11261 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11264 library_names_spec='$libname.ixlibrary $libname.a'
11265 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11266 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'
11272 library_names_spec='$libname$shared_ext'
11273 dynamic_linker="$host_os ld.so"
11274 shlibpath_var=LIBRARY_PATH
11278 version_type=linux # correct to gnu/linux during the next big refactor
11280 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11281 soname_spec='$libname$release$shared_ext$major'
11282 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11283 shlibpath_var=LD_LIBRARY_PATH
11284 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11285 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11286 # the default ld.so.conf also contains /usr/contrib/lib and
11287 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11288 # libtool to hard-code these into programs
11291 cygwin* | mingw* | pw32* | cegcc*)
11292 version_type=windows
11297 case $GCC,$cc_basename in
11300 library_names_spec='$libname.dll.a'
11301 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11302 postinstall_cmds='base_file=`basename \$file`~
11303 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11304 dldir=$destdir/`dirname \$dlpath`~
11305 test -d \$dldir || mkdir -p \$dldir~
11306 $install_prog $dir/$dlname \$dldir/$dlname~
11307 chmod a+x \$dldir/$dlname~
11308 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11309 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11311 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11312 dlpath=$dir/\$dldll~
11314 shlibpath_overrides_runpath=yes
11318 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11319 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11321 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11324 # MinGW DLLs use traditional 'lib' prefix
11325 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11328 # pw32 DLLs use 'pw' prefix rather than 'lib'
11329 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11332 dynamic_linker='Win32 ld.exe'
11337 libname_spec='$name'
11338 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11339 library_names_spec='$libname.dll.lib'
11343 sys_lib_search_path_spec=
11346 for lt_path in $LIB
11349 # Let DOS variable expansion print the short 8.3 style file name.
11350 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11351 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11354 # Convert to MSYS style.
11355 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11358 # Convert to unix form, then to dos form, then back to unix form
11359 # but this time dos style (no spaces!) so that the unix form looks
11360 # like /cygdrive/c/PROGRA~1:/cygdr...
11361 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11362 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11363 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11366 sys_lib_search_path_spec=$LIB
11367 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11368 # It is most probably a Windows format PATH.
11369 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11371 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11373 # FIXME: find the short name or the path components, as spaces are
11374 # common. (e.g. "Program Files" -> "PROGRA~1")
11378 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11379 postinstall_cmds='base_file=`basename \$file`~
11380 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11381 dldir=$destdir/`dirname \$dlpath`~
11382 test -d \$dldir || mkdir -p \$dldir~
11383 $install_prog $dir/$dlname \$dldir/$dlname'
11384 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11385 dlpath=$dir/\$dldll~
11387 shlibpath_overrides_runpath=yes
11388 dynamic_linker='Win32 link.exe'
11392 # Assume MSVC wrapper
11393 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11394 dynamic_linker='Win32 ld.exe'
11397 # FIXME: first we should search . and the directory the executable is in
11401 darwin* | rhapsody*)
11402 dynamic_linker="$host_os dyld"
11403 version_type=darwin
11406 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11407 soname_spec='$libname$release$major$shared_ext'
11408 shlibpath_overrides_runpath=yes
11409 shlibpath_var=DYLD_LIBRARY_PATH
11410 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11412 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11413 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11417 version_type=linux # correct to gnu/linux during the next big refactor
11420 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11421 soname_spec='$libname$release$shared_ext$major'
11422 shlibpath_var=LD_LIBRARY_PATH
11425 freebsd* | dragonfly*)
11426 # DragonFly does not have aout. When/if they implement a new
11427 # versioning mechanism, adjust this.
11428 if test -x /usr/bin/objformat; then
11429 objformat=`/usr/bin/objformat`
11432 freebsd[23].*) objformat=aout ;;
11433 *) objformat=elf ;;
11436 version_type=freebsd-$objformat
11437 case $version_type in
11439 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11440 soname_spec='$libname$release$shared_ext$major'
11445 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11449 shlibpath_var=LD_LIBRARY_PATH
11452 shlibpath_overrides_runpath=yes
11454 freebsd3.[01]* | freebsdelf3.[01]*)
11455 shlibpath_overrides_runpath=yes
11456 hardcode_into_libs=yes
11458 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11459 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11460 shlibpath_overrides_runpath=no
11461 hardcode_into_libs=yes
11463 *) # from 4.6 on, and DragonFly
11464 shlibpath_overrides_runpath=yes
11465 hardcode_into_libs=yes
11471 version_type=linux # correct to gnu/linux during the next big refactor
11474 dynamic_linker="$host_os runtime_loader"
11475 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11476 soname_spec='$libname$release$shared_ext$major'
11477 shlibpath_var=LIBRARY_PATH
11478 shlibpath_overrides_runpath=no
11479 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11480 hardcode_into_libs=yes
11483 hpux9* | hpux10* | hpux11*)
11484 # Give a soname corresponding to the major version so that dld.sl refuses to
11485 # link against other versions.
11492 hardcode_into_libs=yes
11493 dynamic_linker="$host_os dld.so"
11494 shlibpath_var=LD_LIBRARY_PATH
11495 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11496 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11497 soname_spec='$libname$release$shared_ext$major'
11498 if test 32 = "$HPUX_IA64_MODE"; then
11499 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11500 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11502 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11503 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11508 hardcode_into_libs=yes
11509 dynamic_linker="$host_os dld.sl"
11510 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11511 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11512 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11513 soname_spec='$libname$release$shared_ext$major'
11514 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11515 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11519 dynamic_linker="$host_os dld.sl"
11520 shlibpath_var=SHLIB_PATH
11521 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11522 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11523 soname_spec='$libname$release$shared_ext$major'
11526 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11527 postinstall_cmds='chmod 555 $lib'
11528 # or fails outright, so override atomically:
11529 install_override_mode=555
11533 version_type=linux # correct to gnu/linux during the next big refactor
11536 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11537 soname_spec='$libname$release$shared_ext$major'
11538 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11539 shlibpath_var=LD_LIBRARY_PATH
11540 shlibpath_overrides_runpath=no
11541 hardcode_into_libs=yes
11544 irix5* | irix6* | nonstopux*)
11546 nonstopux*) version_type=nonstopux ;;
11548 if test yes = "$lt_cv_prog_gnu_ld"; then
11549 version_type=linux # correct to gnu/linux during the next big refactor
11556 soname_spec='$libname$release$shared_ext$major'
11557 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11559 irix5* | nonstopux*)
11560 libsuff= shlibsuff=
11563 case $LD in # libtool.m4 will add one of these switches to LD
11564 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11565 libsuff= shlibsuff= libmagic=32-bit;;
11566 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11567 libsuff=32 shlibsuff=N32 libmagic=N32;;
11568 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11569 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11570 *) libsuff= shlibsuff= libmagic=never-match;;
11574 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11575 shlibpath_overrides_runpath=no
11576 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11577 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11578 hardcode_into_libs=yes
11581 # No shared lib support for Linux oldld, aout, or coff.
11582 linux*oldld* | linux*aout* | linux*coff*)
11587 version_type=none # Android doesn't support versioned libraries.
11590 library_names_spec='$libname$release$shared_ext'
11591 soname_spec='$libname$release$shared_ext'
11593 shlibpath_var=LD_LIBRARY_PATH
11594 shlibpath_overrides_runpath=yes
11596 # This implies no fast_install, which is unacceptable.
11597 # Some rework will be needed to allow for fast_install
11598 # before this can be enabled.
11599 hardcode_into_libs=yes
11601 dynamic_linker='Android linker'
11602 # Don't embed -rpath directories since the linker doesn't support them.
11603 hardcode_libdir_flag_spec='-L$libdir'
11606 # This must be glibc/ELF.
11607 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11608 version_type=linux # correct to gnu/linux during the next big refactor
11611 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11612 soname_spec='$libname$release$shared_ext$major'
11613 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11614 shlibpath_var=LD_LIBRARY_PATH
11615 shlibpath_overrides_runpath=no
11617 # Some binutils ld are patched to set DT_RUNPATH
11618 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11619 $as_echo_n "(cached) " >&6
11621 lt_cv_shlibpath_overrides_runpath=no
11622 save_LDFLAGS=$LDFLAGS
11623 save_libdir=$libdir
11624 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11625 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11627 /* end confdefs.h. */
11637 if ac_fn_c_try_link "$LINENO"; then :
11638 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11639 lt_cv_shlibpath_overrides_runpath=yes
11642 rm -f core conftest.err conftest.$ac_objext \
11643 conftest$ac_exeext conftest.$ac_ext
11644 LDFLAGS=$save_LDFLAGS
11645 libdir=$save_libdir
11649 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11651 # This implies no fast_install, which is unacceptable.
11652 # Some rework will be needed to allow for fast_install
11653 # before this can be enabled.
11654 hardcode_into_libs=yes
11656 # Ideally, we could use ldconfig to report *all* directores which are
11657 # searched for libraries, however this is still not possible. Aside from not
11658 # being certain /sbin/ldconfig is available, command
11659 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11660 # even though it is searched at run-time. Try to do the best guess by
11661 # appending ld.so.conf contents (and includes) to the search path.
11662 if test -f /etc/ld.so.conf; then
11663 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' ' '`
11664 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11667 # We used to test for /lib/ld.so.1 and disable shared libraries on
11668 # powerpc, because MkLinux only supported shared libraries with the
11669 # GNU dynamic linker. Since this was broken with cross compilers,
11670 # most powerpc-linux boxes support dynamic linking these days and
11671 # people can always --disable-shared, the test was removed, and we
11672 # assume the GNU/Linux dynamic linker is in use.
11673 dynamic_linker='GNU/Linux ld.so'
11680 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11681 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11682 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11683 dynamic_linker='NetBSD (a.out) ld.so'
11685 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11686 soname_spec='$libname$release$shared_ext$major'
11687 dynamic_linker='NetBSD ld.elf_so'
11689 shlibpath_var=LD_LIBRARY_PATH
11690 shlibpath_overrides_runpath=yes
11691 hardcode_into_libs=yes
11695 version_type=linux # correct to gnu/linux during the next big refactor
11696 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11697 shlibpath_var=LD_LIBRARY_PATH
11698 shlibpath_overrides_runpath=yes
11705 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11706 soname_spec='$libname$release$shared_ext$major'
11707 shlibpath_var=LD_LIBRARY_PATH
11708 shlibpath_overrides_runpath=no
11709 hardcode_into_libs=yes
11710 dynamic_linker='ldqnx.so'
11713 openbsd* | bitrig*)
11715 sys_lib_dlsearch_path_spec=/usr/lib
11717 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11722 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11723 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11724 shlibpath_var=LD_LIBRARY_PATH
11725 shlibpath_overrides_runpath=yes
11729 libname_spec='$name'
11730 version_type=windows
11734 # OS/2 can only load a DLL with a base name of 8 characters or less.
11735 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11736 v=$($ECHO $release$versuffix | tr -d .-);
11737 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11738 $ECHO $n$v`$shared_ext'
11739 library_names_spec='${libname}_dll.$libext'
11740 dynamic_linker='OS/2 ld.exe'
11741 shlibpath_var=BEGINLIBPATH
11742 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11743 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11744 postinstall_cmds='base_file=`basename \$file`~
11745 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11746 dldir=$destdir/`dirname \$dlpath`~
11747 test -d \$dldir || mkdir -p \$dldir~
11748 $install_prog $dir/$dlname \$dldir/$dlname~
11749 chmod a+x \$dldir/$dlname~
11750 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11751 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11753 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11754 dlpath=$dir/\$dldll~
11758 osf3* | osf4* | osf5*)
11762 soname_spec='$libname$release$shared_ext$major'
11763 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11764 shlibpath_var=LD_LIBRARY_PATH
11765 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11766 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11774 version_type=linux # correct to gnu/linux during the next big refactor
11777 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11778 soname_spec='$libname$release$shared_ext$major'
11779 shlibpath_var=LD_LIBRARY_PATH
11780 shlibpath_overrides_runpath=yes
11781 hardcode_into_libs=yes
11782 # ldd complains unless libraries are executable
11783 postinstall_cmds='chmod +x $lib'
11788 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11789 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11790 shlibpath_var=LD_LIBRARY_PATH
11791 shlibpath_overrides_runpath=yes
11792 if test yes = "$with_gnu_ld"; then
11799 version_type=linux # correct to gnu/linux during the next big refactor
11800 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11801 soname_spec='$libname$release$shared_ext$major'
11802 shlibpath_var=LD_LIBRARY_PATH
11803 case $host_vendor in
11805 shlibpath_overrides_runpath=no
11807 runpath_var=LD_RUN_PATH
11815 shlibpath_overrides_runpath=no
11816 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11822 if test -d /usr/nec; then
11823 version_type=linux # correct to gnu/linux during the next big refactor
11824 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11825 soname_spec='$libname$shared_ext.$major'
11826 shlibpath_var=LD_LIBRARY_PATH
11830 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11834 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11835 soname_spec='$libname$release$shared_ext$major'
11836 shlibpath_var=LD_LIBRARY_PATH
11837 shlibpath_overrides_runpath=yes
11838 hardcode_into_libs=yes
11839 if test yes = "$with_gnu_ld"; then
11840 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11842 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11845 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11849 sys_lib_dlsearch_path_spec='/usr/lib'
11853 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11854 version_type=linux # correct to gnu/linux during the next big refactor
11857 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11858 shlibpath_var=LD_LIBRARY_PATH
11859 shlibpath_overrides_runpath=no
11860 hardcode_into_libs=yes
11864 version_type=linux # correct to gnu/linux during the next big refactor
11865 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11866 soname_spec='$libname$release$shared_ext$major'
11867 shlibpath_var=LD_LIBRARY_PATH
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11875 $as_echo "$dynamic_linker" >&6; }
11876 test no = "$dynamic_linker" && can_build_shared=no
11878 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11879 if test yes = "$GCC"; then
11880 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11883 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11884 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11887 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11888 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11891 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11892 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11894 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11895 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11897 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11898 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11997 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11999 if test -n "$hardcode_libdir_flag_spec" ||
12000 test -n "$runpath_var" ||
12001 test yes = "$hardcode_automatic"; then
12003 # We can hardcode non-existent directories.
12004 if test no != "$hardcode_direct" &&
12005 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12006 # have to relink, otherwise we might link with an installed library
12007 # when we should be linking with a yet-to-be-installed one
12008 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12009 test no != "$hardcode_minus_L"; then
12010 # Linking always hardcodes the temporary library directory.
12011 hardcode_action=relink
12013 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12014 hardcode_action=immediate
12017 # We cannot hardcode anything, or else we can only hardcode existing
12019 hardcode_action=unsupported
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12022 $as_echo "$hardcode_action" >&6; }
12024 if test relink = "$hardcode_action" ||
12025 test yes = "$inherit_rpath"; then
12026 # Fast installation is not supported
12027 enable_fast_install=no
12028 elif test yes = "$shlibpath_overrides_runpath" ||
12029 test no = "$enable_shared"; then
12030 # Fast installation is not necessary
12031 enable_fast_install=needless
12039 if test yes != "$enable_dlopen"; then
12040 enable_dlopen=unknown
12041 enable_dlopen_self=unknown
12042 enable_dlopen_self_static=unknown
12049 lt_cv_dlopen=load_add_on
12051 lt_cv_dlopen_self=yes
12054 mingw* | pw32* | cegcc*)
12055 lt_cv_dlopen=LoadLibrary
12060 lt_cv_dlopen=dlopen
12065 # if libdl is installed we need to link against it
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12067 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12068 if ${ac_cv_lib_dl_dlopen+:} false; then :
12069 $as_echo_n "(cached) " >&6
12071 ac_check_lib_save_LIBS=$LIBS
12073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12074 /* end confdefs.h. */
12076 /* Override any GCC internal prototype to avoid an error.
12077 Use char because int might match the return type of a GCC
12078 builtin and then its argument prototype would still apply. */
12091 if ac_fn_c_try_link "$LINENO"; then :
12092 ac_cv_lib_dl_dlopen=yes
12094 ac_cv_lib_dl_dlopen=no
12096 rm -f core conftest.err conftest.$ac_objext \
12097 conftest$ac_exeext conftest.$ac_ext
12098 LIBS=$ac_check_lib_save_LIBS
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12101 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12102 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12103 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12108 lt_cv_dlopen_self=yes
12115 # Don't try to run any link tests for TPF. We know it's impossible
12116 # because TPF is a cross-compiler, and we know how we open DSOs.
12117 lt_cv_dlopen=dlopen
12119 lt_cv_dlopen_self=no
12123 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12124 if test "x$ac_cv_func_shl_load" = xyes; then :
12125 lt_cv_dlopen=shl_load
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12128 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12129 if ${ac_cv_lib_dld_shl_load+:} false; then :
12130 $as_echo_n "(cached) " >&6
12132 ac_check_lib_save_LIBS=$LIBS
12134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12135 /* end confdefs.h. */
12137 /* Override any GCC internal prototype to avoid an error.
12138 Use char because int might match the return type of a GCC
12139 builtin and then its argument prototype would still apply. */
12147 return shl_load ();
12152 if ac_fn_c_try_link "$LINENO"; then :
12153 ac_cv_lib_dld_shl_load=yes
12155 ac_cv_lib_dld_shl_load=no
12157 rm -f core conftest.err conftest.$ac_objext \
12158 conftest$ac_exeext conftest.$ac_ext
12159 LIBS=$ac_check_lib_save_LIBS
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12162 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12163 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12164 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12166 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12167 if test "x$ac_cv_func_dlopen" = xyes; then :
12168 lt_cv_dlopen=dlopen
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12171 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12172 if ${ac_cv_lib_dl_dlopen+:} false; then :
12173 $as_echo_n "(cached) " >&6
12175 ac_check_lib_save_LIBS=$LIBS
12177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12178 /* end confdefs.h. */
12180 /* Override any GCC internal prototype to avoid an error.
12181 Use char because int might match the return type of a GCC
12182 builtin and then its argument prototype would still apply. */
12195 if ac_fn_c_try_link "$LINENO"; then :
12196 ac_cv_lib_dl_dlopen=yes
12198 ac_cv_lib_dl_dlopen=no
12200 rm -f core conftest.err conftest.$ac_objext \
12201 conftest$ac_exeext conftest.$ac_ext
12202 LIBS=$ac_check_lib_save_LIBS
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12205 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12206 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12207 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12210 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12211 if ${ac_cv_lib_svld_dlopen+:} false; then :
12212 $as_echo_n "(cached) " >&6
12214 ac_check_lib_save_LIBS=$LIBS
12215 LIBS="-lsvld $LIBS"
12216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12217 /* end confdefs.h. */
12219 /* Override any GCC internal prototype to avoid an error.
12220 Use char because int might match the return type of a GCC
12221 builtin and then its argument prototype would still apply. */
12234 if ac_fn_c_try_link "$LINENO"; then :
12235 ac_cv_lib_svld_dlopen=yes
12237 ac_cv_lib_svld_dlopen=no
12239 rm -f core conftest.err conftest.$ac_objext \
12240 conftest$ac_exeext conftest.$ac_ext
12241 LIBS=$ac_check_lib_save_LIBS
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12244 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12245 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12246 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12249 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12250 if ${ac_cv_lib_dld_dld_link+:} false; then :
12251 $as_echo_n "(cached) " >&6
12253 ac_check_lib_save_LIBS=$LIBS
12255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12256 /* end confdefs.h. */
12258 /* Override any GCC internal prototype to avoid an error.
12259 Use char because int might match the return type of a GCC
12260 builtin and then its argument prototype would still apply. */
12268 return dld_link ();
12273 if ac_fn_c_try_link "$LINENO"; then :
12274 ac_cv_lib_dld_dld_link=yes
12276 ac_cv_lib_dld_dld_link=no
12278 rm -f core conftest.err conftest.$ac_objext \
12279 conftest$ac_exeext conftest.$ac_ext
12280 LIBS=$ac_check_lib_save_LIBS
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12283 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12284 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12285 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12306 if test no = "$lt_cv_dlopen"; then
12312 case $lt_cv_dlopen in
12314 save_CPPFLAGS=$CPPFLAGS
12315 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12317 save_LDFLAGS=$LDFLAGS
12318 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12321 LIBS="$lt_cv_dlopen_libs $LIBS"
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12324 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12325 if ${lt_cv_dlopen_self+:} false; then :
12326 $as_echo_n "(cached) " >&6
12328 if test yes = "$cross_compiling"; then :
12329 lt_cv_dlopen_self=cross
12331 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12332 lt_status=$lt_dlunknown
12333 cat > conftest.$ac_ext <<_LT_EOF
12334 #line $LINENO "configure"
12335 #include "confdefs.h"
12344 # define LT_DLGLOBAL RTLD_GLOBAL
12347 # define LT_DLGLOBAL DL_GLOBAL
12349 # define LT_DLGLOBAL 0
12353 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12354 find out it does not work in some platform. */
12355 #ifndef LT_DLLAZY_OR_NOW
12357 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12360 # define LT_DLLAZY_OR_NOW DL_LAZY
12363 # define LT_DLLAZY_OR_NOW RTLD_NOW
12366 # define LT_DLLAZY_OR_NOW DL_NOW
12368 # define LT_DLLAZY_OR_NOW 0
12375 /* When -fvisibility=hidden is used, assume the code has been annotated
12376 correspondingly for the symbols needed. */
12377 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12378 int fnord () __attribute__((visibility("default")));
12381 int fnord () { return 42; }
12384 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12385 int status = $lt_dlunknown;
12389 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12392 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12393 else puts (dlerror ());
12395 /* dlclose (self); */
12403 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12404 (eval $ac_link) 2>&5
12406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12407 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12408 (./conftest; exit; ) >&5 2>/dev/null
12410 case x$lt_status in
12411 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12412 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12413 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12416 # compilation failed
12417 lt_cv_dlopen_self=no
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12425 $as_echo "$lt_cv_dlopen_self" >&6; }
12427 if test yes = "$lt_cv_dlopen_self"; then
12428 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12430 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12431 if ${lt_cv_dlopen_self_static+:} false; then :
12432 $as_echo_n "(cached) " >&6
12434 if test yes = "$cross_compiling"; then :
12435 lt_cv_dlopen_self_static=cross
12437 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12438 lt_status=$lt_dlunknown
12439 cat > conftest.$ac_ext <<_LT_EOF
12440 #line $LINENO "configure"
12441 #include "confdefs.h"
12450 # define LT_DLGLOBAL RTLD_GLOBAL
12453 # define LT_DLGLOBAL DL_GLOBAL
12455 # define LT_DLGLOBAL 0
12459 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12460 find out it does not work in some platform. */
12461 #ifndef LT_DLLAZY_OR_NOW
12463 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12466 # define LT_DLLAZY_OR_NOW DL_LAZY
12469 # define LT_DLLAZY_OR_NOW RTLD_NOW
12472 # define LT_DLLAZY_OR_NOW DL_NOW
12474 # define LT_DLLAZY_OR_NOW 0
12481 /* When -fvisibility=hidden is used, assume the code has been annotated
12482 correspondingly for the symbols needed. */
12483 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12484 int fnord () __attribute__((visibility("default")));
12487 int fnord () { return 42; }
12490 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12491 int status = $lt_dlunknown;
12495 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12498 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12499 else puts (dlerror ());
12501 /* dlclose (self); */
12509 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12510 (eval $ac_link) 2>&5
12512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12513 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12514 (./conftest; exit; ) >&5 2>/dev/null
12516 case x$lt_status in
12517 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12518 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12519 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12522 # compilation failed
12523 lt_cv_dlopen_self_static=no
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12531 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12534 CPPFLAGS=$save_CPPFLAGS
12535 LDFLAGS=$save_LDFLAGS
12540 case $lt_cv_dlopen_self in
12541 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12542 *) enable_dlopen_self=unknown ;;
12545 case $lt_cv_dlopen_self_static in
12546 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12547 *) enable_dlopen_self_static=unknown ;;
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12570 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12571 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12572 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12573 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12575 $as_echo "yes" >&6; }
12577 # FIXME - insert some real tests, host_os isn't really good enough
12580 if test -n "$STRIP"; then
12581 striplib="$STRIP -x"
12582 old_striplib="$STRIP -S"
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12584 $as_echo "yes" >&6; }
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12587 $as_echo "no" >&6; }
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12592 $as_echo "no" >&6; }
12608 # Report what library types will actually be built
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12610 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12612 $as_echo "$can_build_shared" >&6; }
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12615 $as_echo_n "checking whether to build shared libraries... " >&6; }
12616 test no = "$can_build_shared" && enable_shared=no
12618 # On AIX, shared libraries and static libraries use the same namespace, and
12619 # are all built from PIC.
12622 test yes = "$enable_shared" && enable_static=no
12623 if test -n "$RANLIB"; then
12624 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12625 postinstall_cmds='$RANLIB $lib'
12630 if test ia64 != "$host_cpu"; then
12631 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12632 yes,aix,yes) ;; # shared object as lib.so file only
12633 yes,svr4,*) ;; # shared object as lib.so archive member only
12634 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12640 $as_echo "$enable_shared" >&6; }
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12643 $as_echo_n "checking whether to build static libraries... " >&6; }
12644 # Make sure either enable_shared or enable_static is yes.
12645 test yes = "$enable_shared" || enable_static=yes
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12647 $as_echo "$enable_static" >&6; }
12654 ac_cpp='$CPP $CPPFLAGS'
12655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12661 if test -n "$CXX" && ( test no != "$CXX" &&
12662 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
12663 (test g++ != "$CXX"))); then
12665 ac_cpp='$CXXCPP $CPPFLAGS'
12666 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12667 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12668 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12670 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12671 if test -z "$CXXCPP"; then
12672 if ${ac_cv_prog_CXXCPP+:} false; then :
12673 $as_echo_n "(cached) " >&6
12675 # Double quotes because CXXCPP needs to be expanded
12676 for CXXCPP in "$CXX -E" "/lib/cpp"
12678 ac_preproc_ok=false
12679 for ac_cxx_preproc_warn_flag in '' yes
12681 # Use a header file that comes with gcc, so configuring glibc
12682 # with a fresh cross-compiler works.
12683 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12684 # <limits.h> exists even on freestanding compilers.
12685 # On the NeXT, cc -E runs the code through the compiler's parser,
12686 # not just through cpp. "Syntax error" is here to catch this case.
12687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12688 /* end confdefs.h. */
12690 # include <limits.h>
12692 # include <assert.h>
12696 if ac_fn_cxx_try_cpp "$LINENO"; then :
12699 # Broken: fails on valid input.
12702 rm -f conftest.err conftest.i conftest.$ac_ext
12704 # OK, works on sane cases. Now check whether nonexistent headers
12705 # can be detected and how.
12706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12707 /* end confdefs.h. */
12708 #include <ac_nonexistent.h>
12710 if ac_fn_cxx_try_cpp "$LINENO"; then :
12711 # Broken: success on invalid input.
12714 # Passes both tests.
12718 rm -f conftest.err conftest.i conftest.$ac_ext
12721 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12722 rm -f conftest.i conftest.err conftest.$ac_ext
12723 if $ac_preproc_ok; then :
12728 ac_cv_prog_CXXCPP=$CXXCPP
12731 CXXCPP=$ac_cv_prog_CXXCPP
12733 ac_cv_prog_CXXCPP=$CXXCPP
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12736 $as_echo "$CXXCPP" >&6; }
12737 ac_preproc_ok=false
12738 for ac_cxx_preproc_warn_flag in '' yes
12740 # Use a header file that comes with gcc, so configuring glibc
12741 # with a fresh cross-compiler works.
12742 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12743 # <limits.h> exists even on freestanding compilers.
12744 # On the NeXT, cc -E runs the code through the compiler's parser,
12745 # not just through cpp. "Syntax error" is here to catch this case.
12746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12747 /* end confdefs.h. */
12749 # include <limits.h>
12751 # include <assert.h>
12755 if ac_fn_cxx_try_cpp "$LINENO"; then :
12758 # Broken: fails on valid input.
12761 rm -f conftest.err conftest.i conftest.$ac_ext
12763 # OK, works on sane cases. Now check whether nonexistent headers
12764 # can be detected and how.
12765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12766 /* end confdefs.h. */
12767 #include <ac_nonexistent.h>
12769 if ac_fn_cxx_try_cpp "$LINENO"; then :
12770 # Broken: success on invalid input.
12773 # Passes both tests.
12777 rm -f conftest.err conftest.i conftest.$ac_ext
12780 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12781 rm -f conftest.i conftest.err conftest.$ac_ext
12782 if $ac_preproc_ok; then :
12785 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12787 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12788 See \`config.log' for more details" "$LINENO" 5; }
12792 ac_cpp='$CPP $CPPFLAGS'
12793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12798 _lt_caught_CXX_error=yes
12802 ac_cpp='$CXXCPP $CPPFLAGS'
12803 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12804 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12805 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12807 archive_cmds_need_lc_CXX=no
12808 allow_undefined_flag_CXX=
12809 always_export_symbols_CXX=no
12810 archive_expsym_cmds_CXX=
12811 compiler_needs_object_CXX=no
12812 export_dynamic_flag_spec_CXX=
12813 hardcode_direct_CXX=no
12814 hardcode_direct_absolute_CXX=no
12815 hardcode_libdir_flag_spec_CXX=
12816 hardcode_libdir_separator_CXX=
12817 hardcode_minus_L_CXX=no
12818 hardcode_shlibpath_var_CXX=unsupported
12819 hardcode_automatic_CXX=no
12820 inherit_rpath_CXX=no
12822 module_expsym_cmds_CXX=
12823 link_all_deplibs_CXX=unknown
12824 old_archive_cmds_CXX=$old_archive_cmds
12825 reload_flag_CXX=$reload_flag
12826 reload_cmds_CXX=$reload_cmds
12827 no_undefined_flag_CXX=
12828 whole_archive_flag_spec_CXX=
12829 enable_shared_with_static_runtimes_CXX=no
12831 # Source file extension for C++ test sources.
12834 # Object file extension for compiled C++ test sources.
12838 # No sense in running all these tests if we already determined that
12839 # the CXX compiler isn't working. Some variables (like enable_shared)
12840 # are currently assumed to apply to all compilers on this platform,
12841 # and will be corrupted by setting them based on a non-working compiler.
12842 if test yes != "$_lt_caught_CXX_error"; then
12843 # Code to be used in simple compile tests
12844 lt_simple_compile_test_code="int some_variable = 0;"
12846 # Code to be used in simple link tests
12847 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12849 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12856 # If no C compiler was specified, use CC.
12859 # If no C compiler flags were specified, use CFLAGS.
12860 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12862 # Allow CC to be a program name with arguments.
12866 # save warnings/boilerplate of simple test code
12867 ac_outfile=conftest.$ac_objext
12868 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12869 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12870 _lt_compiler_boilerplate=`cat conftest.err`
12873 ac_outfile=conftest.$ac_objext
12874 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12875 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12876 _lt_linker_boilerplate=`cat conftest.err`
12880 # Allow CC to be a program name with arguments.
12882 lt_save_CFLAGS=$CFLAGS
12886 lt_save_with_gnu_ld=$with_gnu_ld
12887 lt_save_path_LD=$lt_cv_path_LD
12888 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12889 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12891 $as_unset lt_cv_prog_gnu_ld
12893 if test -n "${lt_cv_path_LDCXX+set}"; then
12894 lt_cv_path_LD=$lt_cv_path_LDCXX
12896 $as_unset lt_cv_path_LD
12898 test -z "${LDCXX+set}" || LD=$LDCXX
12903 func_cc_basename $compiler
12904 cc_basename=$func_cc_basename_result
12907 if test -n "$compiler"; then
12908 # We don't want -fno-exception when compiling C++ code, so set the
12909 # no_builtin_flag separately
12910 if test yes = "$GXX"; then
12911 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12913 lt_prog_compiler_no_builtin_flag_CXX=
12916 if test yes = "$GXX"; then
12917 # Set up default GNU C++ configuration
12921 # Check whether --with-gnu-ld was given.
12922 if test "${with_gnu_ld+set}" = set; then :
12923 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
12929 if test yes = "$GCC"; then
12930 # Check if gcc -print-prog-name=ld gives a path.
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12932 $as_echo_n "checking for ld used by $CC... " >&6; }
12935 # gcc leaves a trailing carriage return, which upsets mingw
12936 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12938 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12941 # Accept absolute paths.
12943 re_direlt='/[^/][^/]*/\.\./'
12944 # Canonicalize the pathname of ld
12945 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12946 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12947 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12949 test -z "$LD" && LD=$ac_prog
12952 # If it fails, then pretend we aren't using GCC.
12956 # If it is relative, then search for the first ld in PATH.
12957 with_gnu_ld=unknown
12960 elif test yes = "$with_gnu_ld"; then
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12962 $as_echo_n "checking for GNU ld... " >&6; }
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12965 $as_echo_n "checking for non-GNU ld... " >&6; }
12967 if ${lt_cv_path_LD+:} false; then :
12968 $as_echo_n "(cached) " >&6
12970 if test -z "$LD"; then
12971 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12972 for ac_dir in $PATH; do
12974 test -z "$ac_dir" && ac_dir=.
12975 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12976 lt_cv_path_LD=$ac_dir/$ac_prog
12977 # Check to see if the program is GNU ld. I'd rather use --version,
12978 # but apparently some variants of GNU ld only accept -v.
12979 # Break only if it was the GNU/non-GNU ld that we prefer.
12980 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12981 *GNU* | *'with BFD'*)
12982 test no != "$with_gnu_ld" && break
12985 test yes != "$with_gnu_ld" && break
12992 lt_cv_path_LD=$LD # Let the user override the test with a path.
12997 if test -n "$LD"; then
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12999 $as_echo "$LD" >&6; }
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13002 $as_echo "no" >&6; }
13004 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13006 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13007 if ${lt_cv_prog_gnu_ld+:} false; then :
13008 $as_echo_n "(cached) " >&6
13010 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13011 case `$LD -v 2>&1 </dev/null` in
13012 *GNU* | *'with BFD'*)
13013 lt_cv_prog_gnu_ld=yes
13016 lt_cv_prog_gnu_ld=no
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13021 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13022 with_gnu_ld=$lt_cv_prog_gnu_ld
13030 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13031 # archiving commands below assume that GNU ld is being used.
13032 if test yes = "$with_gnu_ld"; then
13033 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13034 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'
13036 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13037 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13039 # If archive_cmds runs LD, not CC, wlarc should be empty
13040 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13041 # investigate it a little bit more. (MM)
13044 # ancient GNU ld didn't support --whole-archive et. al.
13045 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13046 $GREP 'no-whole-archive' > /dev/null; then
13047 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13049 whole_archive_flag_spec_CXX=
13055 # A generic and very simple default shared library creation
13056 # command for GNU C++ for the case where it uses the native
13057 # linker, instead of GNU ld. If possible, this setting should
13058 # overridden to take advantage of the native linker features on
13059 # the platform it is being used on.
13060 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13063 # Commands to make compiler produce verbose output that lists
13064 # what "hidden" libraries, object files and flags are used when
13065 # linking a shared library.
13066 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13074 # PORTME: fill in a description of your system's C++ link characteristics
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13076 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13080 # FIXME: insert proper C++ library support
13084 if test ia64 = "$host_cpu"; then
13085 # On IA64, the linker does run time linking by default, so we don't
13086 # have to do anything special.
13087 aix_use_runtimelinking=no
13088 exp_sym_flag='-Bexport'
13091 aix_use_runtimelinking=no
13093 # Test if we are trying to use run time linking or normal
13094 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13095 # have runtime linking enabled, and use it for executables.
13096 # For shared libraries, we enable/disable runtime linking
13097 # depending on the kind of the shared library created -
13098 # when "with_aix_soname,aix_use_runtimelinking" is:
13099 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13100 # "aix,yes" lib.so shared, rtl:yes, for executables
13101 # lib.a static archive
13102 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13103 # lib.a(lib.so.V) shared, rtl:no, for executables
13104 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13105 # lib.a(lib.so.V) shared, rtl:no
13106 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13107 # lib.a static archive
13108 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13109 for ld_flag in $LDFLAGS; do
13112 aix_use_runtimelinking=yes
13117 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13118 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13119 # so we don't have lib.a shared libs to link our executables.
13120 # We have to force runtime linking in this case.
13121 aix_use_runtimelinking=yes
13122 LDFLAGS="$LDFLAGS -Wl,-brtl"
13127 exp_sym_flag='-bexport'
13128 no_entry_flag='-bnoentry'
13131 # When large executables or shared objects are built, AIX ld can
13132 # have problems creating the table of contents. If linking a library
13133 # or program results in "error TOC overflow" add -mminimal-toc to
13134 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13135 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13137 archive_cmds_CXX=''
13138 hardcode_direct_CXX=yes
13139 hardcode_direct_absolute_CXX=yes
13140 hardcode_libdir_separator_CXX=':'
13141 link_all_deplibs_CXX=yes
13142 file_list_spec_CXX='$wl-f,'
13143 case $with_aix_soname,$aix_use_runtimelinking in
13144 aix,*) ;; # no import file
13145 svr4,* | *,yes) # use import file
13146 # The Import File defines what to hardcode.
13147 hardcode_direct_CXX=no
13148 hardcode_direct_absolute_CXX=no
13152 if test yes = "$GXX"; then
13153 case $host_os in aix4.[012]|aix4.[012].*)
13154 # We only want to do this on AIX 4.2 and lower, the check
13155 # below for broken collect2 doesn't work under 4.3+
13156 collect2name=`$CC -print-prog-name=collect2`
13157 if test -f "$collect2name" &&
13158 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13160 # We have reworked collect2
13163 # We have old collect2
13164 hardcode_direct_CXX=unsupported
13165 # It fails to find uninstalled libraries when the uninstalled
13166 # path is not listed in the libpath. Setting hardcode_minus_L
13167 # to unsupported forces relinking
13168 hardcode_minus_L_CXX=yes
13169 hardcode_libdir_flag_spec_CXX='-L$libdir'
13170 hardcode_libdir_separator_CXX=
13173 shared_flag='-shared'
13174 if test yes = "$aix_use_runtimelinking"; then
13175 shared_flag=$shared_flag' $wl-G'
13177 # Need to ensure runtime linking is disabled for the traditional
13178 # shared library, or the linker may eventually find shared libraries
13179 # /with/ Import File - we do not want to mix them.
13180 shared_flag_aix='-shared'
13181 shared_flag_svr4='-shared $wl-G'
13184 if test ia64 = "$host_cpu"; then
13185 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13186 # chokes on -Wl,-G. The following line is correct:
13189 if test yes = "$aix_use_runtimelinking"; then
13190 shared_flag='$wl-G'
13192 shared_flag='$wl-bM:SRE'
13194 shared_flag_aix='$wl-bM:SRE'
13195 shared_flag_svr4='$wl-G'
13199 export_dynamic_flag_spec_CXX='$wl-bexpall'
13200 # It seems that -bexpall does not export symbols beginning with
13201 # underscore (_), so it is better to generate a list of symbols to
13203 always_export_symbols_CXX=yes
13204 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13205 # Warning - without using the other runtime loading flags (-brtl),
13206 # -berok will link without error, but may produce a broken library.
13207 # The "-G" linker flag allows undefined symbols.
13208 no_undefined_flag_CXX='-bernotok'
13209 # Determine the default libpath from the value encoded in an empty
13211 if test set = "${lt_cv_aix_libpath+set}"; then
13212 aix_libpath=$lt_cv_aix_libpath
13214 if ${lt_cv_aix_libpath__CXX+:} false; then :
13215 $as_echo_n "(cached) " >&6
13217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13218 /* end confdefs.h. */
13228 if ac_fn_cxx_try_link "$LINENO"; then :
13230 lt_aix_libpath_sed='
13231 /Import File Strings/,/^$/ {
13233 s/^0 *\([^ ]*\) *$/\1/
13237 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13238 # Check for a 64-bit object if we didn't find anything.
13239 if test -z "$lt_cv_aix_libpath__CXX"; then
13240 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13243 rm -f core conftest.err conftest.$ac_objext \
13244 conftest$ac_exeext conftest.$ac_ext
13245 if test -z "$lt_cv_aix_libpath__CXX"; then
13246 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13251 aix_libpath=$lt_cv_aix_libpath__CXX
13254 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13256 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
13258 if test ia64 = "$host_cpu"; then
13259 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13260 allow_undefined_flag_CXX="-z nodefs"
13261 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"
13263 # Determine the default libpath from the value encoded in an
13264 # empty executable.
13265 if test set = "${lt_cv_aix_libpath+set}"; then
13266 aix_libpath=$lt_cv_aix_libpath
13268 if ${lt_cv_aix_libpath__CXX+:} false; then :
13269 $as_echo_n "(cached) " >&6
13271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13272 /* end confdefs.h. */
13282 if ac_fn_cxx_try_link "$LINENO"; then :
13284 lt_aix_libpath_sed='
13285 /Import File Strings/,/^$/ {
13287 s/^0 *\([^ ]*\) *$/\1/
13291 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13292 # Check for a 64-bit object if we didn't find anything.
13293 if test -z "$lt_cv_aix_libpath__CXX"; then
13294 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13297 rm -f core conftest.err conftest.$ac_objext \
13298 conftest$ac_exeext conftest.$ac_ext
13299 if test -z "$lt_cv_aix_libpath__CXX"; then
13300 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13305 aix_libpath=$lt_cv_aix_libpath__CXX
13308 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13309 # Warning - without using the other run time loading flags,
13310 # -berok will link without error, but may produce a broken library.
13311 no_undefined_flag_CXX=' $wl-bernotok'
13312 allow_undefined_flag_CXX=' $wl-berok'
13313 if test yes = "$with_gnu_ld"; then
13314 # We only use this code for GNU lds that support --whole-archive.
13315 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13317 # Exported symbols can be pulled into shared objects from archives
13318 whole_archive_flag_spec_CXX='$convenience'
13320 archive_cmds_need_lc_CXX=yes
13321 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13322 # -brtl affects multiple linker settings, -berok does not and is overridden later
13323 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13324 if test svr4 != "$with_aix_soname"; then
13325 # This is similar to how AIX traditionally builds its shared
13326 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13327 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'
13329 if test aix != "$with_aix_soname"; then
13330 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'
13332 # used by -dlpreopen to get the symbols
13333 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13335 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
13341 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13342 allow_undefined_flag_CXX=unsupported
13343 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13344 # support --undefined. This deserves some investigation. FIXME
13345 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13352 case $cc_basename in
13354 # FIXME: insert proper C++ library support
13360 cygwin* | mingw* | pw32* | cegcc*)
13361 case $GXX,$cc_basename in
13364 # hardcode_libdir_flag_spec is actually meaningless, as there is
13365 # no search path for DLLs.
13366 hardcode_libdir_flag_spec_CXX=' '
13367 allow_undefined_flag_CXX=unsupported
13368 always_export_symbols_CXX=yes
13369 file_list_spec_CXX='@'
13370 # Tell ltmain to make .lib files, not .a files.
13372 # Tell ltmain to make .dll files, not .so files.
13374 # FIXME: Setting linknames here is a bad hack.
13375 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13376 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13377 cp "$export_symbols" "$output_objdir/$soname.def";
13378 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13380 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13382 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13384 # The linker will not automatically build a static lib if we build a DLL.
13385 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13386 enable_shared_with_static_runtimes_CXX=yes
13388 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13389 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13390 lt_tool_outputfile="@TOOL_OUTPUT@"~
13391 case $lt_outputfile in
13394 lt_outputfile=$lt_outputfile.exe
13395 lt_tool_outputfile=$lt_tool_outputfile.exe
13398 func_to_tool_file "$lt_outputfile"~
13399 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13400 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13401 $RM "$lt_outputfile.manifest";
13406 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13407 # as there is no search path for DLLs.
13408 hardcode_libdir_flag_spec_CXX='-L$libdir'
13409 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
13410 allow_undefined_flag_CXX=unsupported
13411 always_export_symbols_CXX=no
13412 enable_shared_with_static_runtimes_CXX=yes
13414 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13415 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'
13416 # If the export-symbols file already is a .def file, use it as
13417 # is; otherwise, prepend EXPORTS...
13418 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13419 cp $export_symbols $output_objdir/$soname.def;
13421 echo EXPORTS > $output_objdir/$soname.def;
13422 cat $export_symbols >> $output_objdir/$soname.def;
13424 $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'
13431 darwin* | rhapsody*)
13434 archive_cmds_need_lc_CXX=no
13435 hardcode_direct_CXX=no
13436 hardcode_automatic_CXX=yes
13437 hardcode_shlibpath_var_CXX=unsupported
13438 if test yes = "$lt_cv_ld_force_load"; then
13439 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\"`'
13442 whole_archive_flag_spec_CXX=''
13444 link_all_deplibs_CXX=yes
13445 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
13446 case $cc_basename in
13447 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13448 *) _lt_dar_can_shared=$GCC ;;
13450 if test yes = "$_lt_dar_can_shared"; then
13451 output_verbose_link_cmd=func_echo_all
13452 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"
13453 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13454 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"
13455 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"
13456 if test yes != "$lt_cv_apple_cc_single_mod"; then
13457 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"
13458 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"
13468 hardcode_libdir_flag_spec_CXX='-L$libdir'
13469 hardcode_minus_L_CXX=yes
13470 allow_undefined_flag_CXX=unsupported
13472 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13473 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13474 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13475 $ECHO EXPORTS >> $output_objdir/$libname.def~
13476 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13477 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13478 emximp -o $lib $output_objdir/$libname.def'
13479 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13480 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13481 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13482 $ECHO EXPORTS >> $output_objdir/$libname.def~
13483 prefix_cmds="$SED"~
13484 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13485 prefix_cmds="$prefix_cmds -e 1d";
13487 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13488 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13489 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13490 emximp -o $lib $output_objdir/$libname.def'
13491 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13492 enable_shared_with_static_runtimes_CXX=yes
13496 case $cc_basename in
13498 # FIXME: insert proper C++ library support
13502 # Green Hills C++ Compiler
13503 # FIXME: insert proper C++ library support
13507 # FIXME: insert proper C++ library support
13514 # C++ shared libraries reported to be fairly broken before
13520 archive_cmds_need_lc_CXX=no
13523 freebsd* | dragonfly*)
13524 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13530 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13531 link_all_deplibs_CXX=yes
13535 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13536 hardcode_libdir_separator_CXX=:
13537 export_dynamic_flag_spec_CXX='$wl-E'
13538 hardcode_direct_CXX=yes
13539 hardcode_minus_L_CXX=yes # Not in the search PATH,
13540 # but as the default
13541 # location of the library.
13543 case $cc_basename in
13545 # FIXME: insert proper C++ library support
13549 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'
13550 # Commands to make compiler produce verbose output that lists
13551 # what "hidden" libraries, object files and flags are used when
13552 # linking a shared library.
13554 # There doesn't appear to be a way to prevent this compiler from
13555 # explicitly linking system object files so we need to strip them
13556 # from the output so that they don't get included in the library
13558 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"'
13561 if test yes = "$GXX"; then
13562 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'
13564 # FIXME: insert proper C++ library support
13572 if test no = "$with_gnu_ld"; then
13573 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13574 hardcode_libdir_separator_CXX=:
13580 export_dynamic_flag_spec_CXX='$wl-E'
13586 hardcode_direct_CXX=no
13587 hardcode_shlibpath_var_CXX=no
13590 hardcode_direct_CXX=yes
13591 hardcode_direct_absolute_CXX=yes
13592 hardcode_minus_L_CXX=yes # Not in the search PATH,
13593 # but as the default
13594 # location of the library.
13598 case $cc_basename in
13600 # FIXME: insert proper C++ library support
13606 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13609 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13612 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13615 # Commands to make compiler produce verbose output that lists
13616 # what "hidden" libraries, object files and flags are used when
13617 # linking a shared library.
13619 # There doesn't appear to be a way to prevent this compiler from
13620 # explicitly linking system object files so we need to strip them
13621 # from the output so that they don't get included in the library
13623 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"'
13626 if test yes = "$GXX"; then
13627 if test no = "$with_gnu_ld"; then
13630 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13633 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13636 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'
13641 # FIXME: insert proper C++ library support
13649 hardcode_direct_CXX=no
13650 hardcode_shlibpath_var_CXX=no
13651 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13652 export_dynamic_flag_spec_CXX='$wl-E'
13653 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13654 # Instead, shared libraries are loaded at an image base (0x10000000 by
13655 # default) and relocated if they conflict, which is a slow very memory
13656 # consuming and fragmenting process. To avoid this, we pick a random,
13657 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13658 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13659 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'
13660 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'
13663 case $cc_basename in
13666 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'
13668 # Archives containing C++ object files must be created using
13669 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13670 # necessary to make sure instantiated templates are included
13672 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13675 if test yes = "$GXX"; then
13676 if test no = "$with_gnu_ld"; then
13677 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'
13679 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'
13682 link_all_deplibs_CXX=yes
13685 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13686 hardcode_libdir_separator_CXX=:
13687 inherit_rpath_CXX=yes
13690 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13691 case $cc_basename in
13693 # Kuck and Associates, Inc. (KAI) C++ Compiler
13695 # KCC will only create a shared library if the output file
13696 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13697 # to its proper name (with version) after linking.
13698 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'
13699 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'
13700 # Commands to make compiler produce verbose output that lists
13701 # what "hidden" libraries, object files and flags are used when
13702 # linking a shared library.
13704 # There doesn't appear to be a way to prevent this compiler from
13705 # explicitly linking system object files so we need to strip them
13706 # from the output so that they don't get included in the library
13708 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"'
13710 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13711 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13713 # Archives containing C++ object files must be created using
13714 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13715 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13720 # version 8.0 and above of icpc choke on multiply defined symbols
13721 # if we add $predep_objects and $postdep_objects, however 7.1 and
13722 # earlier do not add the objects themselves.
13723 case `$CC -V 2>&1` in
13725 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13726 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'
13728 *) # Version 8.0 or newer
13731 ia64*) tmp_idyn=' -i_dynamic';;
13733 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13734 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'
13737 archive_cmds_need_lc_CXX=no
13738 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13739 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13740 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13743 # Portland Group C++ compiler
13745 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13746 prelink_cmds_CXX='tpldir=Template.dir~
13748 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13749 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13750 old_archive_cmds_CXX='tpldir=Template.dir~
13752 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13753 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13755 archive_cmds_CXX='tpldir=Template.dir~
13757 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13758 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13759 archive_expsym_cmds_CXX='tpldir=Template.dir~
13761 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13762 $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'
13764 *) # Version 6 and above use weak symbols
13765 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13766 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'
13770 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
13771 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13772 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'
13776 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13777 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'
13779 runpath_var=LD_RUN_PATH
13780 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13781 hardcode_libdir_separator_CXX=:
13783 # Commands to make compiler produce verbose output that lists
13784 # what "hidden" libraries, object files and flags are used when
13785 # linking a shared library.
13787 # There doesn't appear to be a way to prevent this compiler from
13788 # explicitly linking system object files so we need to strip them
13789 # from the output so that they don't get included in the library
13791 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'
13793 xl* | mpixl* | bgxl*)
13794 # IBM XL 8.0 on PPC, with GNU ld
13795 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13796 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13797 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13798 if test yes = "$supports_anon_versioning"; then
13799 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13800 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13801 echo "local: *; };" >> $output_objdir/$libname.ver~
13802 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13806 case `$CC -V 2>&1 | sed 5q` in
13809 no_undefined_flag_CXX=' -zdefs'
13810 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13811 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'
13812 hardcode_libdir_flag_spec_CXX='-R$libdir'
13813 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'
13814 compiler_needs_object_CXX=yes
13816 # Not sure whether something based on
13817 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13819 output_verbose_link_cmd='func_echo_all'
13821 # Archives containing C++ object files must be created using
13822 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13823 # necessary to make sure instantiated templates are included
13825 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13833 # FIXME: insert proper C++ library support
13838 # FIXME: insert proper C++ library support
13843 case $cc_basename in
13845 # FIXME: insert proper C++ library support
13849 # FIXME: insert proper C++ library support
13856 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13857 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13859 hardcode_libdir_flag_spec_CXX='-R$libdir'
13860 hardcode_direct_CXX=yes
13861 hardcode_shlibpath_var_CXX=no
13863 # Workaround some broken pre-1.5 toolchains
13864 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13871 openbsd* | bitrig*)
13872 if test -f /usr/libexec/ld.so; then
13873 hardcode_direct_CXX=yes
13874 hardcode_shlibpath_var_CXX=no
13875 hardcode_direct_absolute_CXX=yes
13876 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13877 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13878 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
13879 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
13880 export_dynamic_flag_spec_CXX='$wl-E'
13881 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13883 output_verbose_link_cmd=func_echo_all
13889 osf3* | osf4* | osf5*)
13890 case $cc_basename in
13892 # Kuck and Associates, Inc. (KAI) C++ Compiler
13894 # KCC will only create a shared library if the output file
13895 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13896 # to its proper name (with version) after linking.
13897 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'
13899 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13900 hardcode_libdir_separator_CXX=:
13902 # Archives containing C++ object files must be created using
13903 # the KAI C++ compiler.
13905 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13906 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13910 # Rational C++ 2.4.1
13911 # FIXME: insert proper C++ library support
13917 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13918 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'
13919 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13922 allow_undefined_flag_CXX=' -expect_unresolved \*'
13923 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'
13924 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13925 echo "-hidden">> $lib.exp~
13926 $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~
13928 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13932 hardcode_libdir_separator_CXX=:
13934 # Commands to make compiler produce verbose output that lists
13935 # what "hidden" libraries, object files and flags are used when
13936 # linking a shared library.
13938 # There doesn't appear to be a way to prevent this compiler from
13939 # explicitly linking system object files so we need to strip them
13940 # from the output so that they don't get included in the library
13942 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"'
13945 if test yes,no = "$GXX,$with_gnu_ld"; then
13946 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13949 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'
13952 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'
13956 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13957 hardcode_libdir_separator_CXX=:
13959 # Commands to make compiler produce verbose output that lists
13960 # what "hidden" libraries, object files and flags are used when
13961 # linking a shared library.
13962 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13965 # FIXME: insert proper C++ library support
13973 # FIXME: insert proper C++ library support
13978 case $cc_basename in
13981 # FIXME: insert proper C++ library support
13986 # FIXME: insert proper C++ library support
13990 # FIXME: insert proper C++ library support
13997 case $cc_basename in
13999 # Sun C++ 4.2, 5.x and Centerline C++
14000 archive_cmds_need_lc_CXX=yes
14001 no_undefined_flag_CXX=' -zdefs'
14002 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14003 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14004 $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'
14006 hardcode_libdir_flag_spec_CXX='-R$libdir'
14007 hardcode_shlibpath_var_CXX=no
14009 solaris2.[0-5] | solaris2.[0-5].*) ;;
14011 # The compiler driver will combine and reorder linker options,
14012 # but understands '-z linker_flag'.
14013 # Supported since Solaris 2.6 (maybe 2.5.1?)
14014 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14017 link_all_deplibs_CXX=yes
14019 output_verbose_link_cmd='func_echo_all'
14021 # Archives containing C++ object files must be created using
14022 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14023 # necessary to make sure instantiated templates are included
14025 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14028 # Green Hills C++ Compiler
14029 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14031 # The C++ compiler must be used to create the archive.
14032 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14035 # GNU C++ compiler with Solaris linker
14036 if test yes,no = "$GXX,$with_gnu_ld"; then
14037 no_undefined_flag_CXX=' $wl-z ${wl}defs'
14038 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14039 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14040 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14041 $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'
14043 # Commands to make compiler produce verbose output that lists
14044 # what "hidden" libraries, object files and flags are used when
14045 # linking a shared library.
14046 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14048 # g++ 2.7 appears to require '-G' NOT '-shared' on this
14050 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14051 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14052 $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'
14054 # Commands to make compiler produce verbose output that lists
14055 # what "hidden" libraries, object files and flags are used when
14056 # linking a shared library.
14057 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14060 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14062 solaris2.[0-5] | solaris2.[0-5].*) ;;
14064 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14072 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14073 no_undefined_flag_CXX='$wl-z,text'
14074 archive_cmds_need_lc_CXX=no
14075 hardcode_shlibpath_var_CXX=no
14076 runpath_var='LD_RUN_PATH'
14078 case $cc_basename in
14080 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14081 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14084 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14085 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14090 sysv5* | sco3.2v5* | sco5v6*)
14091 # Note: We CANNOT use -z defs as we might desire, because we do not
14092 # link with -lc, and that would cause any symbols used from libc to
14093 # always be unresolved, which means just about no library would
14094 # ever link correctly. If we're not using GNU ld we use -z text
14095 # though, which does catch some bad symbols but isn't as heavy-handed
14097 no_undefined_flag_CXX='$wl-z,text'
14098 allow_undefined_flag_CXX='$wl-z,nodefs'
14099 archive_cmds_need_lc_CXX=no
14100 hardcode_shlibpath_var_CXX=no
14101 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14102 hardcode_libdir_separator_CXX=':'
14103 link_all_deplibs_CXX=yes
14104 export_dynamic_flag_spec_CXX='$wl-Bexport'
14105 runpath_var='LD_RUN_PATH'
14107 case $cc_basename in
14109 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14110 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14111 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14112 '"$old_archive_cmds_CXX"
14113 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14114 '"$reload_cmds_CXX"
14117 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14118 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14124 case $cc_basename in
14126 # NonStop-UX NCC 3.20
14127 # FIXME: insert proper C++ library support
14131 # FIXME: insert proper C++ library support
14138 # FIXME: insert proper C++ library support
14143 # FIXME: insert proper C++ library support
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14149 $as_echo "$ld_shlibs_CXX" >&6; }
14150 test no = "$ld_shlibs_CXX" && can_build_shared=no
14156 ## There is no encapsulation within the following macros, do not change
14157 ## the running order or otherwise move them around unless you know exactly
14158 ## what you are doing...
14159 # Dependencies to place before and after the object being linked:
14160 predep_objects_CXX=
14161 postdep_objects_CXX=
14164 compiler_lib_search_path_CXX=
14166 cat > conftest.$ac_ext <<_LT_EOF
14170 Foo (void) { a = 0; }
14177 _lt_libdeps_save_CFLAGS=$CFLAGS
14178 case "$CC $CFLAGS " in #(
14179 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14180 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14181 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14184 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14185 (eval $ac_compile) 2>&5
14187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14188 test $ac_status = 0; }; then
14189 # Parse the compiler output and extract the necessary
14190 # objects, libraries and library flags.
14192 # Sentinel used to keep track of whether or not we are before
14193 # the conftest object file.
14194 pre_test_object_deps_done=no
14196 for p in `eval "$output_verbose_link_cmd"`; do
14200 # Some compilers place space between "-{L,R}" and the path.
14201 # Remove the space.
14202 if test x-L = "$p" ||
14203 test x-R = "$p"; then
14208 # Expand the sysroot to ease extracting the directories later.
14209 if test -z "$prev"; then
14211 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14212 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14213 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14217 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14219 if test no = "$pre_test_object_deps_done"; then
14222 # Internal compiler library paths should come after those
14223 # provided the user. The postdeps already come after the
14224 # user supplied libs so there is no need to process them.
14225 if test -z "$compiler_lib_search_path_CXX"; then
14226 compiler_lib_search_path_CXX=$prev$p
14228 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14231 # The "-l" case would never come before the object being
14232 # linked, so don't bother handling this case.
14235 if test -z "$postdeps_CXX"; then
14236 postdeps_CXX=$prev$p
14238 postdeps_CXX="${postdeps_CXX} $prev$p"
14244 *.lto.$objext) ;; # Ignore GCC LTO objects
14246 # This assumes that the test object file only shows up
14247 # once in the compiler output.
14248 if test "$p" = "conftest.$objext"; then
14249 pre_test_object_deps_done=yes
14253 if test no = "$pre_test_object_deps_done"; then
14254 if test -z "$predep_objects_CXX"; then
14255 predep_objects_CXX=$p
14257 predep_objects_CXX="$predep_objects_CXX $p"
14260 if test -z "$postdep_objects_CXX"; then
14261 postdep_objects_CXX=$p
14263 postdep_objects_CXX="$postdep_objects_CXX $p"
14268 *) ;; # Ignore the rest.
14276 echo "libtool.m4: error: problem compiling CXX test program"
14279 $RM -f confest.$objext
14280 CFLAGS=$_lt_libdeps_save_CFLAGS
14282 # PORTME: override above test on systems where it is broken
14285 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14286 # hack all around it, let's just trust "g++" to DTRT.
14287 predep_objects_CXX=
14288 postdep_objects_CXX=
14294 case " $postdeps_CXX " in
14295 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14297 compiler_lib_search_dirs_CXX=
14298 if test -n "${compiler_lib_search_path_CXX}"; then
14299 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14332 lt_prog_compiler_wl_CXX=
14333 lt_prog_compiler_pic_CXX=
14334 lt_prog_compiler_static_CXX=
14337 # C++ specific cases for pic, static, wl, etc.
14338 if test yes = "$GXX"; then
14339 lt_prog_compiler_wl_CXX='-Wl,'
14340 lt_prog_compiler_static_CXX='-static'
14344 # All AIX code is PIC.
14345 if test ia64 = "$host_cpu"; then
14346 # AIX 5 now supports IA64 processor
14347 lt_prog_compiler_static_CXX='-Bstatic'
14349 lt_prog_compiler_pic_CXX='-fPIC'
14355 # see comment about AmigaOS4 .so support
14356 lt_prog_compiler_pic_CXX='-fPIC'
14359 # FIXME: we need at least 68020 code to build shared libraries, but
14360 # adding the '-m68020' flag to GCC prevents building anything better,
14362 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14367 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14368 # PIC is the default for these OSes.
14370 mingw* | cygwin* | os2* | pw32* | cegcc*)
14371 # This hack is so that the source file can tell whether it is being
14372 # built for inclusion in a dll (and should export symbols for example).
14373 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14374 # (--disable-auto-import) libraries
14375 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14378 lt_prog_compiler_static_CXX='$wl-static'
14382 darwin* | rhapsody*)
14383 # PIC is the default on this platform
14384 # Common symbols not allowed in MH_DYLIB files
14385 lt_prog_compiler_pic_CXX='-fno-common'
14388 # DJGPP does not support shared libraries at all
14389 lt_prog_compiler_pic_CXX=
14392 # PIC is the default for Haiku.
14393 # The "-static" flag exists, but is broken.
14394 lt_prog_compiler_static_CXX=
14397 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14398 # Instead, we relocate shared libraries at runtime.
14401 if test -d /usr/nec; then
14402 lt_prog_compiler_pic_CXX=-Kconform_pic
14406 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14407 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14408 # sets the default TLS model and affects inlining.
14413 lt_prog_compiler_pic_CXX='-fPIC'
14418 # QNX uses GNU C++, but need to define -shared option too, otherwise
14419 # it will coredump.
14420 lt_prog_compiler_pic_CXX='-fPIC -shared'
14423 lt_prog_compiler_pic_CXX='-fPIC'
14429 # All AIX code is PIC.
14430 if test ia64 = "$host_cpu"; then
14431 # AIX 5 now supports IA64 processor
14432 lt_prog_compiler_static_CXX='-Bstatic'
14434 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14438 case $cc_basename in
14440 # Green Hills C++ Compiler
14441 # _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"
14445 mingw* | cygwin* | os2* | pw32* | cegcc*)
14446 # This hack is so that the source file can tell whether it is being
14447 # built for inclusion in a dll (and should export symbols for example).
14448 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14451 case $cc_basename in
14453 lt_prog_compiler_pic_CXX='-KPIC'
14456 # Green Hills C++ Compiler
14457 lt_prog_compiler_pic_CXX='-pic'
14463 freebsd* | dragonfly*)
14464 # FreeBSD uses GNU C++
14466 hpux9* | hpux10* | hpux11*)
14467 case $cc_basename in
14469 lt_prog_compiler_wl_CXX='-Wl,'
14470 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14471 if test ia64 != "$host_cpu"; then
14472 lt_prog_compiler_pic_CXX='+Z'
14476 lt_prog_compiler_wl_CXX='-Wl,'
14477 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14483 lt_prog_compiler_pic_CXX='+Z'
14492 # This is c89, which is MS Visual C++ (no shared libs)
14493 # Anyone wants to do a port?
14495 irix5* | irix6* | nonstopux*)
14496 case $cc_basename in
14498 lt_prog_compiler_wl_CXX='-Wl,'
14499 lt_prog_compiler_static_CXX='-non_shared'
14500 # CC pic flag -KPIC is the default.
14506 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14507 case $cc_basename in
14510 lt_prog_compiler_wl_CXX='--backend -Wl,'
14511 lt_prog_compiler_pic_CXX='-fPIC'
14514 # old Intel C++ for x86_64, which still supported -KPIC.
14515 lt_prog_compiler_wl_CXX='-Wl,'
14516 lt_prog_compiler_pic_CXX='-KPIC'
14517 lt_prog_compiler_static_CXX='-static'
14520 # Intel C++, used to be incompatible with GCC.
14521 # ICC 10 doesn't accept -KPIC any more.
14522 lt_prog_compiler_wl_CXX='-Wl,'
14523 lt_prog_compiler_pic_CXX='-fPIC'
14524 lt_prog_compiler_static_CXX='-static'
14527 # Portland Group C++ compiler
14528 lt_prog_compiler_wl_CXX='-Wl,'
14529 lt_prog_compiler_pic_CXX='-fpic'
14530 lt_prog_compiler_static_CXX='-Bstatic'
14534 # Make sure the PIC flag is empty. It appears that all Alpha
14535 # Linux and Compaq Tru64 Unix objects are PIC.
14536 lt_prog_compiler_pic_CXX=
14537 lt_prog_compiler_static_CXX='-non_shared'
14539 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14540 # IBM XL 8.0, 9.0 on PPC and BlueGene
14541 lt_prog_compiler_wl_CXX='-Wl,'
14542 lt_prog_compiler_pic_CXX='-qpic'
14543 lt_prog_compiler_static_CXX='-qstaticlink'
14546 case `$CC -V 2>&1 | sed 5q` in
14549 lt_prog_compiler_pic_CXX='-KPIC'
14550 lt_prog_compiler_static_CXX='-Bstatic'
14551 lt_prog_compiler_wl_CXX='-Qoption ld '
14562 case $cc_basename in
14564 lt_prog_compiler_pic_CXX='-W c,exportall'
14573 # QNX uses GNU C++, but need to define -shared option too, otherwise
14574 # it will coredump.
14575 lt_prog_compiler_pic_CXX='-fPIC -shared'
14577 osf3* | osf4* | osf5*)
14578 case $cc_basename in
14580 lt_prog_compiler_wl_CXX='--backend -Wl,'
14583 # Rational C++ 2.4.1
14584 lt_prog_compiler_pic_CXX='-pic'
14587 # Digital/Compaq C++
14588 lt_prog_compiler_wl_CXX='-Wl,'
14589 # Make sure the PIC flag is empty. It appears that all Alpha
14590 # Linux and Compaq Tru64 Unix objects are PIC.
14591 lt_prog_compiler_pic_CXX=
14592 lt_prog_compiler_static_CXX='-non_shared'
14601 case $cc_basename in
14603 # Sun C++ 4.2, 5.x and Centerline C++
14604 lt_prog_compiler_pic_CXX='-KPIC'
14605 lt_prog_compiler_static_CXX='-Bstatic'
14606 lt_prog_compiler_wl_CXX='-Qoption ld '
14609 # Green Hills C++ Compiler
14610 lt_prog_compiler_pic_CXX='-PIC'
14617 case $cc_basename in
14620 lt_prog_compiler_pic_CXX='-pic'
14621 lt_prog_compiler_static_CXX='-Bstatic'
14625 lt_prog_compiler_pic_CXX='-pic'
14631 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14632 case $cc_basename in
14634 lt_prog_compiler_wl_CXX='-Wl,'
14635 lt_prog_compiler_pic_CXX='-KPIC'
14636 lt_prog_compiler_static_CXX='-Bstatic'
14641 case $cc_basename in
14643 # NonStop-UX NCC 3.20
14644 lt_prog_compiler_pic_CXX='-KPIC'
14653 lt_prog_compiler_can_build_shared_CXX=no
14659 # For platforms that do not support PIC, -DPIC is meaningless:
14661 lt_prog_compiler_pic_CXX=
14664 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14669 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14670 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14671 $as_echo_n "(cached) " >&6
14673 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14676 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14677 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14680 # Check to make sure the PIC flag actually works.
14682 if test -n "$lt_prog_compiler_pic_CXX"; then
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14684 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14685 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14686 $as_echo_n "(cached) " >&6
14688 lt_cv_prog_compiler_pic_works_CXX=no
14689 ac_outfile=conftest.$ac_objext
14690 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14691 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
14692 # Insert the option either (1) after the last *FLAGS variable, or
14693 # (2) before a word containing "conftest.", or (3) at the end.
14694 # Note that $ac_compile itself does not contain backslashes and begins
14695 # with a dollar sign (not a hyphen), so the echo should work correctly.
14696 # The option is referenced via a variable to avoid confusing sed.
14697 lt_compile=`echo "$ac_compile" | $SED \
14698 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14699 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14700 -e 's:$: $lt_compiler_flag:'`
14701 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14702 (eval "$lt_compile" 2>conftest.err)
14704 cat conftest.err >&5
14705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706 if (exit $ac_status) && test -s "$ac_outfile"; then
14707 # The compiler can only warn and ignore the option if not recognized
14708 # So say no if there are warnings other than the usual output.
14709 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14710 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14711 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14712 lt_cv_prog_compiler_pic_works_CXX=yes
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14719 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14721 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
14722 case $lt_prog_compiler_pic_CXX in
14724 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14727 lt_prog_compiler_pic_CXX=
14728 lt_prog_compiler_can_build_shared_CXX=no
14738 # Check to make sure the static flag actually works.
14740 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14742 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14743 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14744 $as_echo_n "(cached) " >&6
14746 lt_cv_prog_compiler_static_works_CXX=no
14747 save_LDFLAGS=$LDFLAGS
14748 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14749 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14750 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14751 # The linker can only warn and ignore the option if not recognized
14752 # So say no if there are warnings
14753 if test -s conftest.err; then
14754 # Append any errors to the config.log.
14755 cat conftest.err 1>&5
14756 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14757 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14758 if diff conftest.exp conftest.er2 >/dev/null; then
14759 lt_cv_prog_compiler_static_works_CXX=yes
14762 lt_cv_prog_compiler_static_works_CXX=yes
14766 LDFLAGS=$save_LDFLAGS
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14770 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14772 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
14775 lt_prog_compiler_static_CXX=
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14782 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14783 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14784 $as_echo_n "(cached) " >&6
14786 lt_cv_prog_compiler_c_o_CXX=no
14787 $RM -r conftest 2>/dev/null
14791 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14793 lt_compiler_flag="-o out/conftest2.$ac_objext"
14794 # Insert the option either (1) after the last *FLAGS variable, or
14795 # (2) before a word containing "conftest.", or (3) at the end.
14796 # Note that $ac_compile itself does not contain backslashes and begins
14797 # with a dollar sign (not a hyphen), so the echo should work correctly.
14798 lt_compile=`echo "$ac_compile" | $SED \
14799 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14800 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14801 -e 's:$: $lt_compiler_flag:'`
14802 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14803 (eval "$lt_compile" 2>out/conftest.err)
14805 cat out/conftest.err >&5
14806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14809 # The compiler can only warn and ignore the option if not recognized
14810 # So say no if there are warnings
14811 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14812 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14813 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14814 lt_cv_prog_compiler_c_o_CXX=yes
14819 # SGI C++ compiler will create directory out/ii_files/ for
14820 # template instantiation
14821 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14822 $RM out/* && rmdir out
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14829 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14834 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14835 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14836 $as_echo_n "(cached) " >&6
14838 lt_cv_prog_compiler_c_o_CXX=no
14839 $RM -r conftest 2>/dev/null
14843 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14845 lt_compiler_flag="-o out/conftest2.$ac_objext"
14846 # Insert the option either (1) after the last *FLAGS variable, or
14847 # (2) before a word containing "conftest.", or (3) at the end.
14848 # Note that $ac_compile itself does not contain backslashes and begins
14849 # with a dollar sign (not a hyphen), so the echo should work correctly.
14850 lt_compile=`echo "$ac_compile" | $SED \
14851 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14852 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14853 -e 's:$: $lt_compiler_flag:'`
14854 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14855 (eval "$lt_compile" 2>out/conftest.err)
14857 cat out/conftest.err >&5
14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14861 # The compiler can only warn and ignore the option if not recognized
14862 # So say no if there are warnings
14863 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14864 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14865 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14866 lt_cv_prog_compiler_c_o_CXX=yes
14871 # SGI C++ compiler will create directory out/ii_files/ for
14872 # template instantiation
14873 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14874 $RM out/* && rmdir out
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14881 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14886 hard_links=nottested
14887 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
14888 # do not overwrite the value of need_locks provided by the user
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14890 $as_echo_n "checking if we can lock with hard links... " >&6; }
14893 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14895 ln conftest.a conftest.b 2>&5 || hard_links=no
14896 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14898 $as_echo "$hard_links" >&6; }
14899 if test no = "$hard_links"; then
14900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
14901 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
14910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14911 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14913 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14914 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14917 # If we're using GNU nm, then we don't want the "-C" option.
14918 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
14919 # Without the "-l" option, or with the "-B" option, AIX nm treats
14920 # weak defined symbols like other global defined symbols, whereas
14921 # GNU nm marks them as "W".
14922 # While the 'weak' keyword is ignored in the Export File, we need
14923 # it in the Import File for the 'aix-soname' feature, so we have
14924 # to replace the "-B" option with "-P" for AIX nm.
14925 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14926 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'
14928 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'
14932 export_symbols_cmds_CXX=$ltdll_cmds
14934 cygwin* | mingw* | cegcc*)
14935 case $cc_basename in
14937 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14940 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'
14941 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14946 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14951 $as_echo "$ld_shlibs_CXX" >&6; }
14952 test no = "$ld_shlibs_CXX" && can_build_shared=no
14954 with_gnu_ld_CXX=$with_gnu_ld
14962 # Do we need to explicitly link libc?
14964 case "x$archive_cmds_need_lc_CXX" in
14966 # Assume -lc should be added
14967 archive_cmds_need_lc_CXX=yes
14969 if test yes,yes = "$GCC,$enable_shared"; then
14970 case $archive_cmds_CXX in
14972 # FIXME: we may have to deal with multi-command sequences.
14975 # Test whether the compiler implicitly links with -lc since on some
14976 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14977 # to ld, don't add -lc before -lgcc.
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14979 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14980 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14981 $as_echo_n "(cached) " >&6
14984 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14986 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14987 (eval $ac_compile) 2>&5
14989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14990 test $ac_status = 0; } 2>conftest.err; then
14993 libobjs=conftest.$ac_objext
14995 wl=$lt_prog_compiler_wl_CXX
14996 pic_flag=$lt_prog_compiler_pic_CXX
15002 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15003 allow_undefined_flag_CXX=
15004 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15005 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15008 test $ac_status = 0; }
15010 lt_cv_archive_cmds_need_lc_CXX=no
15012 lt_cv_archive_cmds_need_lc_CXX=yes
15014 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15016 cat conftest.err 1>&5
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15022 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15023 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15092 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15094 library_names_spec=
15095 libname_spec='lib$name'
15099 postuninstall_cmds=
15103 shlibpath_overrides_runpath=unknown
15105 dynamic_linker="$host_os ld.so"
15106 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15107 need_lib_prefix=unknown
15108 hardcode_into_libs=no
15110 # when you set need_version to no, make sure it does not cause -set_version
15111 # flags to be left without arguments
15112 need_version=unknown
15118 version_type=linux # correct to gnu/linux during the next big refactor
15119 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15120 shlibpath_var=LIBPATH
15122 # AIX 3 has no versioning support, so we append a major version to the name.
15123 soname_spec='$libname$release$shared_ext$major'
15127 version_type=linux # correct to gnu/linux during the next big refactor
15130 hardcode_into_libs=yes
15131 if test ia64 = "$host_cpu"; then
15132 # AIX 5 supports IA64
15133 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15134 shlibpath_var=LD_LIBRARY_PATH
15136 # With GCC up to 2.95.x, collect2 would create an import file
15137 # for dependence libraries. The import file would start with
15138 # the line '#! .'. This would cause the generated library to
15139 # depend on '.', always an invalid library. This was fixed in
15140 # development snapshots of GCC prior to 3.0.
15142 aix4 | aix4.[01] | aix4.[01].*)
15143 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15145 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15148 can_build_shared=no
15152 # Using Import Files as archive members, it is possible to support
15153 # filename-based versioning of shared library archives on AIX. While
15154 # this would work for both with and without runtime linking, it will
15155 # prevent static linking of such archives. So we do filename-based
15156 # shared library versioning with .so extension only, which is used
15157 # when both runtime linking and shared linking is enabled.
15158 # Unfortunately, runtime linking may impact performance, so we do
15159 # not want this to be the default eventually. Also, we use the
15160 # versioned .so libs for executables only if there is the -brtl
15161 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15162 # To allow for filename-based versioning support, we need to create
15163 # libNAME.so.V as an archive file, containing:
15164 # *) an Import File, referring to the versioned filename of the
15165 # archive as well as the shared archive member, telling the
15166 # bitwidth (32 or 64) of that shared object, and providing the
15167 # list of exported symbols of that shared object, eventually
15168 # decorated with the 'weak' keyword
15169 # *) the shared object with the F_LOADONLY flag set, to really avoid
15170 # it being seen by the linker.
15171 # At run time we better use the real file rather than another symlink,
15172 # but for link time we create the symlink libNAME.so -> libNAME.so.V
15174 case $with_aix_soname,$aix_use_runtimelinking in
15175 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15176 # soname into executable. Probably we can add versioning support to
15177 # collect2, so additional links can be useful in future.
15178 aix,yes) # traditional libtool
15179 dynamic_linker='AIX unversionable lib.so'
15180 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15181 # instead of lib<name>.a to let people know that these are not
15182 # typical AIX shared libraries.
15183 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15185 aix,no) # traditional AIX only
15186 dynamic_linker='AIX lib.a(lib.so.V)'
15187 # We preserve .a as extension for shared libraries through AIX4.2
15188 # and later when we are not doing run time linking.
15189 library_names_spec='$libname$release.a $libname.a'
15190 soname_spec='$libname$release$shared_ext$major'
15192 svr4,*) # full svr4 only
15193 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15194 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15195 # We do not specify a path in Import Files, so LIBPATH fires.
15196 shlibpath_overrides_runpath=yes
15198 *,yes) # both, prefer svr4
15199 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15200 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15201 # unpreferred sharedlib libNAME.a needs extra handling
15202 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"'
15203 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"'
15204 # We do not specify a path in Import Files, so LIBPATH fires.
15205 shlibpath_overrides_runpath=yes
15207 *,no) # both, prefer aix
15208 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15209 library_names_spec='$libname$release.a $libname.a'
15210 soname_spec='$libname$release$shared_ext$major'
15211 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15212 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)'
15213 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"'
15216 shlibpath_var=LIBPATH
15223 # Since July 2007 AmigaOS4 officially supports .so libraries.
15224 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15225 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15228 library_names_spec='$libname.ixlibrary $libname.a'
15229 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15230 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'
15236 library_names_spec='$libname$shared_ext'
15237 dynamic_linker="$host_os ld.so"
15238 shlibpath_var=LIBRARY_PATH
15242 version_type=linux # correct to gnu/linux during the next big refactor
15244 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15245 soname_spec='$libname$release$shared_ext$major'
15246 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15247 shlibpath_var=LD_LIBRARY_PATH
15248 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15249 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15250 # the default ld.so.conf also contains /usr/contrib/lib and
15251 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15252 # libtool to hard-code these into programs
15255 cygwin* | mingw* | pw32* | cegcc*)
15256 version_type=windows
15261 case $GCC,$cc_basename in
15264 library_names_spec='$libname.dll.a'
15265 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15266 postinstall_cmds='base_file=`basename \$file`~
15267 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15268 dldir=$destdir/`dirname \$dlpath`~
15269 test -d \$dldir || mkdir -p \$dldir~
15270 $install_prog $dir/$dlname \$dldir/$dlname~
15271 chmod a+x \$dldir/$dlname~
15272 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15273 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15275 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15276 dlpath=$dir/\$dldll~
15278 shlibpath_overrides_runpath=yes
15282 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15283 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15287 # MinGW DLLs use traditional 'lib' prefix
15288 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15291 # pw32 DLLs use 'pw' prefix rather than 'lib'
15292 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15295 dynamic_linker='Win32 ld.exe'
15300 libname_spec='$name'
15301 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15302 library_names_spec='$libname.dll.lib'
15306 sys_lib_search_path_spec=
15309 for lt_path in $LIB
15312 # Let DOS variable expansion print the short 8.3 style file name.
15313 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15314 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15317 # Convert to MSYS style.
15318 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15321 # Convert to unix form, then to dos form, then back to unix form
15322 # but this time dos style (no spaces!) so that the unix form looks
15323 # like /cygdrive/c/PROGRA~1:/cygdr...
15324 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15325 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15326 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15329 sys_lib_search_path_spec=$LIB
15330 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15331 # It is most probably a Windows format PATH.
15332 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15334 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15336 # FIXME: find the short name or the path components, as spaces are
15337 # common. (e.g. "Program Files" -> "PROGRA~1")
15341 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15342 postinstall_cmds='base_file=`basename \$file`~
15343 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15344 dldir=$destdir/`dirname \$dlpath`~
15345 test -d \$dldir || mkdir -p \$dldir~
15346 $install_prog $dir/$dlname \$dldir/$dlname'
15347 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15348 dlpath=$dir/\$dldll~
15350 shlibpath_overrides_runpath=yes
15351 dynamic_linker='Win32 link.exe'
15355 # Assume MSVC wrapper
15356 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15357 dynamic_linker='Win32 ld.exe'
15360 # FIXME: first we should search . and the directory the executable is in
15364 darwin* | rhapsody*)
15365 dynamic_linker="$host_os dyld"
15366 version_type=darwin
15369 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15370 soname_spec='$libname$release$major$shared_ext'
15371 shlibpath_overrides_runpath=yes
15372 shlibpath_var=DYLD_LIBRARY_PATH
15373 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15375 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15379 version_type=linux # correct to gnu/linux during the next big refactor
15382 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15383 soname_spec='$libname$release$shared_ext$major'
15384 shlibpath_var=LD_LIBRARY_PATH
15387 freebsd* | dragonfly*)
15388 # DragonFly does not have aout. When/if they implement a new
15389 # versioning mechanism, adjust this.
15390 if test -x /usr/bin/objformat; then
15391 objformat=`/usr/bin/objformat`
15394 freebsd[23].*) objformat=aout ;;
15395 *) objformat=elf ;;
15398 version_type=freebsd-$objformat
15399 case $version_type in
15401 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15402 soname_spec='$libname$release$shared_ext$major'
15407 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15411 shlibpath_var=LD_LIBRARY_PATH
15414 shlibpath_overrides_runpath=yes
15416 freebsd3.[01]* | freebsdelf3.[01]*)
15417 shlibpath_overrides_runpath=yes
15418 hardcode_into_libs=yes
15420 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15421 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15422 shlibpath_overrides_runpath=no
15423 hardcode_into_libs=yes
15425 *) # from 4.6 on, and DragonFly
15426 shlibpath_overrides_runpath=yes
15427 hardcode_into_libs=yes
15433 version_type=linux # correct to gnu/linux during the next big refactor
15436 dynamic_linker="$host_os runtime_loader"
15437 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15438 soname_spec='$libname$release$shared_ext$major'
15439 shlibpath_var=LIBRARY_PATH
15440 shlibpath_overrides_runpath=no
15441 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15442 hardcode_into_libs=yes
15445 hpux9* | hpux10* | hpux11*)
15446 # Give a soname corresponding to the major version so that dld.sl refuses to
15447 # link against other versions.
15454 hardcode_into_libs=yes
15455 dynamic_linker="$host_os dld.so"
15456 shlibpath_var=LD_LIBRARY_PATH
15457 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15458 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15459 soname_spec='$libname$release$shared_ext$major'
15460 if test 32 = "$HPUX_IA64_MODE"; then
15461 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15462 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15464 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15465 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15470 hardcode_into_libs=yes
15471 dynamic_linker="$host_os dld.sl"
15472 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15473 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15474 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15475 soname_spec='$libname$release$shared_ext$major'
15476 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15477 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15481 dynamic_linker="$host_os dld.sl"
15482 shlibpath_var=SHLIB_PATH
15483 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15484 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15485 soname_spec='$libname$release$shared_ext$major'
15488 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15489 postinstall_cmds='chmod 555 $lib'
15490 # or fails outright, so override atomically:
15491 install_override_mode=555
15495 version_type=linux # correct to gnu/linux during the next big refactor
15498 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15499 soname_spec='$libname$release$shared_ext$major'
15500 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15501 shlibpath_var=LD_LIBRARY_PATH
15502 shlibpath_overrides_runpath=no
15503 hardcode_into_libs=yes
15506 irix5* | irix6* | nonstopux*)
15508 nonstopux*) version_type=nonstopux ;;
15510 if test yes = "$lt_cv_prog_gnu_ld"; then
15511 version_type=linux # correct to gnu/linux during the next big refactor
15518 soname_spec='$libname$release$shared_ext$major'
15519 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15521 irix5* | nonstopux*)
15522 libsuff= shlibsuff=
15525 case $LD in # libtool.m4 will add one of these switches to LD
15526 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15527 libsuff= shlibsuff= libmagic=32-bit;;
15528 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15529 libsuff=32 shlibsuff=N32 libmagic=N32;;
15530 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15531 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15532 *) libsuff= shlibsuff= libmagic=never-match;;
15536 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15537 shlibpath_overrides_runpath=no
15538 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15539 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15540 hardcode_into_libs=yes
15543 # No shared lib support for Linux oldld, aout, or coff.
15544 linux*oldld* | linux*aout* | linux*coff*)
15549 version_type=none # Android doesn't support versioned libraries.
15552 library_names_spec='$libname$release$shared_ext'
15553 soname_spec='$libname$release$shared_ext'
15555 shlibpath_var=LD_LIBRARY_PATH
15556 shlibpath_overrides_runpath=yes
15558 # This implies no fast_install, which is unacceptable.
15559 # Some rework will be needed to allow for fast_install
15560 # before this can be enabled.
15561 hardcode_into_libs=yes
15563 dynamic_linker='Android linker'
15564 # Don't embed -rpath directories since the linker doesn't support them.
15565 hardcode_libdir_flag_spec_CXX='-L$libdir'
15568 # This must be glibc/ELF.
15569 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15570 version_type=linux # correct to gnu/linux during the next big refactor
15573 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15574 soname_spec='$libname$release$shared_ext$major'
15575 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15576 shlibpath_var=LD_LIBRARY_PATH
15577 shlibpath_overrides_runpath=no
15579 # Some binutils ld are patched to set DT_RUNPATH
15580 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15581 $as_echo_n "(cached) " >&6
15583 lt_cv_shlibpath_overrides_runpath=no
15584 save_LDFLAGS=$LDFLAGS
15585 save_libdir=$libdir
15586 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15587 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15589 /* end confdefs.h. */
15599 if ac_fn_cxx_try_link "$LINENO"; then :
15600 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15601 lt_cv_shlibpath_overrides_runpath=yes
15604 rm -f core conftest.err conftest.$ac_objext \
15605 conftest$ac_exeext conftest.$ac_ext
15606 LDFLAGS=$save_LDFLAGS
15607 libdir=$save_libdir
15611 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15613 # This implies no fast_install, which is unacceptable.
15614 # Some rework will be needed to allow for fast_install
15615 # before this can be enabled.
15616 hardcode_into_libs=yes
15618 # Ideally, we could use ldconfig to report *all* directores which are
15619 # searched for libraries, however this is still not possible. Aside from not
15620 # being certain /sbin/ldconfig is available, command
15621 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15622 # even though it is searched at run-time. Try to do the best guess by
15623 # appending ld.so.conf contents (and includes) to the search path.
15624 if test -f /etc/ld.so.conf; then
15625 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' ' '`
15626 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15629 # We used to test for /lib/ld.so.1 and disable shared libraries on
15630 # powerpc, because MkLinux only supported shared libraries with the
15631 # GNU dynamic linker. Since this was broken with cross compilers,
15632 # most powerpc-linux boxes support dynamic linking these days and
15633 # people can always --disable-shared, the test was removed, and we
15634 # assume the GNU/Linux dynamic linker is in use.
15635 dynamic_linker='GNU/Linux ld.so'
15642 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15643 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15644 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15645 dynamic_linker='NetBSD (a.out) ld.so'
15647 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15648 soname_spec='$libname$release$shared_ext$major'
15649 dynamic_linker='NetBSD ld.elf_so'
15651 shlibpath_var=LD_LIBRARY_PATH
15652 shlibpath_overrides_runpath=yes
15653 hardcode_into_libs=yes
15657 version_type=linux # correct to gnu/linux during the next big refactor
15658 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15659 shlibpath_var=LD_LIBRARY_PATH
15660 shlibpath_overrides_runpath=yes
15667 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15668 soname_spec='$libname$release$shared_ext$major'
15669 shlibpath_var=LD_LIBRARY_PATH
15670 shlibpath_overrides_runpath=no
15671 hardcode_into_libs=yes
15672 dynamic_linker='ldqnx.so'
15675 openbsd* | bitrig*)
15677 sys_lib_dlsearch_path_spec=/usr/lib
15679 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15684 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15685 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15686 shlibpath_var=LD_LIBRARY_PATH
15687 shlibpath_overrides_runpath=yes
15691 libname_spec='$name'
15692 version_type=windows
15696 # OS/2 can only load a DLL with a base name of 8 characters or less.
15697 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15698 v=$($ECHO $release$versuffix | tr -d .-);
15699 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15700 $ECHO $n$v`$shared_ext'
15701 library_names_spec='${libname}_dll.$libext'
15702 dynamic_linker='OS/2 ld.exe'
15703 shlibpath_var=BEGINLIBPATH
15704 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15705 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15706 postinstall_cmds='base_file=`basename \$file`~
15707 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15708 dldir=$destdir/`dirname \$dlpath`~
15709 test -d \$dldir || mkdir -p \$dldir~
15710 $install_prog $dir/$dlname \$dldir/$dlname~
15711 chmod a+x \$dldir/$dlname~
15712 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15713 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15715 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15716 dlpath=$dir/\$dldll~
15720 osf3* | osf4* | osf5*)
15724 soname_spec='$libname$release$shared_ext$major'
15725 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15726 shlibpath_var=LD_LIBRARY_PATH
15727 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15728 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15736 version_type=linux # correct to gnu/linux during the next big refactor
15739 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15740 soname_spec='$libname$release$shared_ext$major'
15741 shlibpath_var=LD_LIBRARY_PATH
15742 shlibpath_overrides_runpath=yes
15743 hardcode_into_libs=yes
15744 # ldd complains unless libraries are executable
15745 postinstall_cmds='chmod +x $lib'
15750 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15751 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15752 shlibpath_var=LD_LIBRARY_PATH
15753 shlibpath_overrides_runpath=yes
15754 if test yes = "$with_gnu_ld"; then
15761 version_type=linux # correct to gnu/linux during the next big refactor
15762 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15763 soname_spec='$libname$release$shared_ext$major'
15764 shlibpath_var=LD_LIBRARY_PATH
15765 case $host_vendor in
15767 shlibpath_overrides_runpath=no
15769 runpath_var=LD_RUN_PATH
15777 shlibpath_overrides_runpath=no
15778 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15784 if test -d /usr/nec; then
15785 version_type=linux # correct to gnu/linux during the next big refactor
15786 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15787 soname_spec='$libname$shared_ext.$major'
15788 shlibpath_var=LD_LIBRARY_PATH
15792 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15796 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15797 soname_spec='$libname$release$shared_ext$major'
15798 shlibpath_var=LD_LIBRARY_PATH
15799 shlibpath_overrides_runpath=yes
15800 hardcode_into_libs=yes
15801 if test yes = "$with_gnu_ld"; then
15802 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15804 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15807 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15811 sys_lib_dlsearch_path_spec='/usr/lib'
15815 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15816 version_type=linux # correct to gnu/linux during the next big refactor
15819 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15820 shlibpath_var=LD_LIBRARY_PATH
15821 shlibpath_overrides_runpath=no
15822 hardcode_into_libs=yes
15826 version_type=linux # correct to gnu/linux during the next big refactor
15827 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15828 soname_spec='$libname$release$shared_ext$major'
15829 shlibpath_var=LD_LIBRARY_PATH
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15837 $as_echo "$dynamic_linker" >&6; }
15838 test no = "$dynamic_linker" && can_build_shared=no
15840 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15841 if test yes = "$GCC"; then
15842 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15845 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15846 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15849 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15850 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15853 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15854 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15856 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15857 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15859 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15860 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15902 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15903 hardcode_action_CXX=
15904 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15905 test -n "$runpath_var_CXX" ||
15906 test yes = "$hardcode_automatic_CXX"; then
15908 # We can hardcode non-existent directories.
15909 if test no != "$hardcode_direct_CXX" &&
15910 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15911 # have to relink, otherwise we might link with an installed library
15912 # when we should be linking with a yet-to-be-installed one
15913 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
15914 test no != "$hardcode_minus_L_CXX"; then
15915 # Linking always hardcodes the temporary library directory.
15916 hardcode_action_CXX=relink
15918 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15919 hardcode_action_CXX=immediate
15922 # We cannot hardcode anything, or else we can only hardcode existing
15924 hardcode_action_CXX=unsupported
15926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15927 $as_echo "$hardcode_action_CXX" >&6; }
15929 if test relink = "$hardcode_action_CXX" ||
15930 test yes = "$inherit_rpath_CXX"; then
15931 # Fast installation is not supported
15932 enable_fast_install=no
15933 elif test yes = "$shlibpath_overrides_runpath" ||
15934 test no = "$enable_shared"; then
15935 # Fast installation is not necessary
15936 enable_fast_install=needless
15945 fi # test -n "$compiler"
15948 CFLAGS=$lt_save_CFLAGS
15952 with_gnu_ld=$lt_save_with_gnu_ld
15953 lt_cv_path_LDCXX=$lt_cv_path_LD
15954 lt_cv_path_LD=$lt_save_path_LD
15955 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15956 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15957 fi # test yes != "$_lt_caught_CXX_error"
15960 ac_cpp='$CPP $CPPFLAGS'
15961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15979 ac_config_commands="$ac_config_commands libtool"
15984 # Only expand once:
15988 ac_config_headers="$ac_config_headers config.h src/include/fst/config.h"
15991 ac_config_files="$ac_config_files Makefile src/Makefile src/include/Makefile src/lib/Makefile src/bin/Makefile src/test/Makefile src/extensions/Makefile src/extensions/compact/Makefile src/extensions/compress/Makefile src/extensions/const/Makefile src/extensions/far/Makefile src/extensions/linear/Makefile src/extensions/lookahead/Makefile src/extensions/mpdt/Makefile src/extensions/ngram/Makefile src/extensions/pdt/Makefile src/extensions/python/Makefile src/extensions/special/Makefile src/script/Makefile"
15995 ac_cpp='$CXXCPP $CPPFLAGS'
15996 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15997 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15998 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16001 # Check whether --enable-compact-fsts was given.
16002 if test "${enable_compact_fsts+set}" = set; then :
16003 enableval=$enable_compact_fsts;
16005 enable_compact_fsts=no
16008 if test "x$enable_compact_fsts" != xno; then
16010 HAVE_COMPACT_FALSE='#'
16012 HAVE_COMPACT_TRUE='#'
16013 HAVE_COMPACT_FALSE=
16017 # Check whether --enable-compress was given.
16018 if test "${enable_compress+set}" = set; then :
16019 enableval=$enable_compress;
16024 if test "x$enable_compress" != xno; then
16025 HAVE_COMPRESS_TRUE=
16026 HAVE_COMPRESS_FALSE='#'
16028 HAVE_COMPRESS_TRUE='#'
16029 HAVE_COMPRESS_FALSE=
16033 # Check whether --enable-const-fsts was given.
16034 if test "${enable_const_fsts+set}" = set; then :
16035 enableval=$enable_const_fsts;
16037 enable_const_fsts=no
16040 if test "x$enable_const_fsts" != xno; then
16042 HAVE_CONST_FALSE='#'
16044 HAVE_CONST_TRUE='#'
16049 # Check whether --enable-far was given.
16050 if test "${enable_far+set}" = set; then :
16051 enableval=$enable_far;
16056 if test "x$enable_far" != xno; then
16065 # Check whether --enable-linear-fsts was given.
16066 if test "${enable_linear_fsts+set}" = set; then :
16067 enableval=$enable_linear_fsts;
16069 enable_linear_fsts=no
16072 if test "x$enable_linear_fsts" != xno; then
16074 HAVE_LINEAR_FALSE='#'
16076 HAVE_LINEAR_TRUE='#'
16081 # Check whether --enable-lookahead-fsts was given.
16082 if test "${enable_lookahead_fsts+set}" = set; then :
16083 enableval=$enable_lookahead_fsts;
16085 enable_lookahead_fsts=no
16088 if test "x$enable_lookahead_fsts" != xno; then
16089 HAVE_LOOKAHEAD_TRUE=
16090 HAVE_LOOKAHEAD_FALSE='#'
16092 HAVE_LOOKAHEAD_TRUE='#'
16093 HAVE_LOOKAHEAD_FALSE=
16097 # Check whether --enable-mpdt was given.
16098 if test "${enable_mpdt+set}" = set; then :
16099 enableval=$enable_mpdt;
16104 if test "x$enable_mpdt" != xno; then
16106 HAVE_MPDT_FALSE='#'
16113 # Check whether --enable-ngram-fsts was given.
16114 if test "${enable_ngram_fsts+set}" = set; then :
16115 enableval=$enable_ngram_fsts;
16117 enable_ngram_fsts=no
16120 if test "x$enable_ngram_fsts" != xno; then
16122 HAVE_NGRAM_FALSE='#'
16124 HAVE_NGRAM_TRUE='#'
16129 # Check whether --enable-pdt was given.
16130 if test "${enable_pdt+set}" = set; then :
16131 enableval=$enable_pdt;
16136 if test "x$enable_pdt" != xno; then
16145 # Check whether --enable-python was given.
16146 if test "${enable_python+set}" = set; then :
16147 enableval=$enable_python;
16152 if test "x$enable_python" != xno; then
16154 HAVE_PYTHON_FALSE='#'
16156 HAVE_PYTHON_TRUE='#'
16160 if test "x$enable_python" != xno; then
16167 if test -n "$PYTHON"; then
16168 # If the user set $PYTHON, use it and don't search something else.
16169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.7" >&5
16170 $as_echo_n "checking whether $PYTHON version is >= 2.7... " >&6; }
16172 # split strings by '.' and convert to numeric. Append some zeros
16173 # because we need at least 4 digits for the hex conversion.
16174 # map returns an iterator in Python 3.0 and a list in 2.x
16175 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
16177 # xrange is not present in Python 3.0 and range returns an iterator
16178 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
16179 sys.exit(sys.hexversion < minverhex)"
16180 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
16181 ($PYTHON -c "$prog") >&5 2>&5
16183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); }; then :
16185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16186 $as_echo "yes" >&6; }
16188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16189 $as_echo "no" >&6; }
16190 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
16192 am_display_PYTHON=$PYTHON
16194 # Otherwise, try each interpreter until we find one that satisfies
16196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.7" >&5
16197 $as_echo_n "checking for a Python interpreter with version >= 2.7... " >&6; }
16198 if ${am_cv_pathless_PYTHON+:} false; then :
16199 $as_echo_n "(cached) " >&6
16202 for am_cv_pathless_PYTHON in python python2 python3 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
16203 test "$am_cv_pathless_PYTHON" = none && break
16205 # split strings by '.' and convert to numeric. Append some zeros
16206 # because we need at least 4 digits for the hex conversion.
16207 # map returns an iterator in Python 3.0 and a list in 2.x
16208 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
16210 # xrange is not present in Python 3.0 and range returns an iterator
16211 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
16212 sys.exit(sys.hexversion < minverhex)"
16213 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
16214 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
16216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217 (exit $ac_status); }; then :
16222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
16223 $as_echo "$am_cv_pathless_PYTHON" >&6; }
16224 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
16225 if test "$am_cv_pathless_PYTHON" = none; then
16228 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
16229 set dummy $am_cv_pathless_PYTHON; ac_word=$2
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16231 $as_echo_n "checking for $ac_word... " >&6; }
16232 if ${ac_cv_path_PYTHON+:} false; then :
16233 $as_echo_n "(cached) " >&6
16237 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
16240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16241 for as_dir in $PATH
16244 test -z "$as_dir" && as_dir=.
16245 for ac_exec_ext in '' $ac_executable_extensions; do
16246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16247 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
16248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16258 PYTHON=$ac_cv_path_PYTHON
16259 if test -n "$PYTHON"; then
16260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
16261 $as_echo "$PYTHON" >&6; }
16263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16264 $as_echo "no" >&6; }
16269 am_display_PYTHON=$am_cv_pathless_PYTHON
16273 if test "$PYTHON" = :; then
16274 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
16278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
16279 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
16280 if ${am_cv_python_version+:} false; then :
16281 $as_echo_n "(cached) " >&6
16283 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
16285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
16286 $as_echo "$am_cv_python_version" >&6; }
16287 PYTHON_VERSION=$am_cv_python_version
16291 PYTHON_PREFIX='${prefix}'
16293 PYTHON_EXEC_PREFIX='${exec_prefix}'
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
16298 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
16299 if ${am_cv_python_platform+:} false; then :
16300 $as_echo_n "(cached) " >&6
16302 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
16305 $as_echo "$am_cv_python_platform" >&6; }
16306 PYTHON_PLATFORM=$am_cv_python_platform
16309 # Just factor out some code duplication.
16310 am_python_setup_sysconfig="\
16312 # Prefer sysconfig over distutils.sysconfig, for better compatibility
16313 # with python 3.x. See automake bug#10227.
16316 except ImportError:
16317 can_use_sysconfig = 0
16319 can_use_sysconfig = 1
16320 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
16321 # <https://github.com/pypa/virtualenv/issues/118>
16323 from platform import python_implementation
16324 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
16325 can_use_sysconfig = 0
16326 except ImportError:
16330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
16331 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
16332 if ${am_cv_python_pythondir+:} false; then :
16333 $as_echo_n "(cached) " >&6
16335 if test "x$prefix" = xNONE
16337 am_py_prefix=$ac_default_prefix
16339 am_py_prefix=$prefix
16341 am_cv_python_pythondir=`$PYTHON -c "
16342 $am_python_setup_sysconfig
16343 if can_use_sysconfig:
16344 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
16346 from distutils import sysconfig
16347 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
16348 sys.stdout.write(sitedir)"`
16349 case $am_cv_python_pythondir in
16351 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
16352 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
16355 case $am_py_prefix in
16358 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
16365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
16366 $as_echo "$am_cv_python_pythondir" >&6; }
16367 pythondir=$am_cv_python_pythondir
16371 pkgpythondir=\${pythondir}/$PACKAGE
16374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
16375 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
16376 if ${am_cv_python_pyexecdir+:} false; then :
16377 $as_echo_n "(cached) " >&6
16379 if test "x$exec_prefix" = xNONE
16381 am_py_exec_prefix=$am_py_prefix
16383 am_py_exec_prefix=$exec_prefix
16385 am_cv_python_pyexecdir=`$PYTHON -c "
16386 $am_python_setup_sysconfig
16387 if can_use_sysconfig:
16388 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
16390 from distutils import sysconfig
16391 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
16392 sys.stdout.write(sitedir)"`
16393 case $am_cv_python_pyexecdir in
16394 $am_py_exec_prefix*)
16395 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
16396 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
16399 case $am_py_exec_prefix in
16402 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
16409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
16410 $as_echo "$am_cv_python_pyexecdir" >&6; }
16411 pyexecdir=$am_cv_python_pyexecdir
16415 pkgpyexecdir=\${pyexecdir}/$PACKAGE
16424 # Allow the use of a (user set) custom python version
16428 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
16429 set dummy python$PYTHON_VERSION; ac_word=$2
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16431 $as_echo_n "checking for $ac_word... " >&6; }
16432 if ${ac_cv_path_PYTHON+:} false; then :
16433 $as_echo_n "(cached) " >&6
16437 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
16440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16441 for as_dir in $PATH
16444 test -z "$as_dir" && as_dir=.
16445 for ac_exec_ext in '' $ac_executable_extensions; do
16446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16447 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
16448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16458 PYTHON=$ac_cv_path_PYTHON
16459 if test -n "$PYTHON"; then
16460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
16461 $as_echo "$PYTHON" >&6; }
16463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16464 $as_echo "no" >&6; }
16468 if test -z "$PYTHON"; then
16469 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
16474 # Check for a version of Python >= 2.1.0
16476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
16477 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
16478 ac_supports_python_ver=`$PYTHON -c "import sys; \
16479 ver = sys.version.split ()[0]; \
16480 print (ver >= '2.1.0')"`
16481 if test "$ac_supports_python_ver" != "True"; then
16482 if test -z "$PYTHON_NOVERSIONCHECK"; then
16483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16484 $as_echo "no" >&6; }
16485 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16488 This version of the AC_PYTHON_DEVEL macro
16489 doesn't work properly with versions of Python before
16490 2.1.0. You may need to re-run configure, setting the
16491 variables PYTHON_CPPFLAGS, PYTHON_LIBS, PYTHON_SITE_PKG,
16492 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
16493 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
16494 to something else than an empty string.
16496 See \`config.log' for more details" "$LINENO" 5; }
16498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
16499 $as_echo "skip at user request" >&6; }
16502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16503 $as_echo "yes" >&6; }
16507 # if the macro parameter ``version'' is set, honour it
16509 if test -n ">= '2.7'"; then
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.7'" >&5
16511 $as_echo_n "checking for a version of Python >= '2.7'... " >&6; }
16512 ac_supports_python_ver=`$PYTHON -c "import sys; \
16513 ver = sys.version.split ()[0]; \
16514 print (ver >= '2.7')"`
16515 if test "$ac_supports_python_ver" = "True"; then
16516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16517 $as_echo "yes" >&6; }
16519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16520 $as_echo "no" >&6; }
16521 as_fn_error $? "this package requires Python >= '2.7'.
16522 If you have it installed, but it isn't the default Python
16523 interpreter in your system path, please pass the PYTHON_VERSION
16524 variable to configure. See \`\`configure --help'' for reference.
16531 # Check if you have distutils, else fail
16533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
16534 $as_echo_n "checking for the distutils Python package... " >&6; }
16535 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
16536 if test $? -eq 0; then
16537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16538 $as_echo "yes" >&6; }
16540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16541 $as_echo "no" >&6; }
16542 as_fn_error $? "cannot import Python module \"distutils\".
16543 Please check your Python installation. The error was:
16544 $ac_distutils_result" "$LINENO" 5
16549 # Check for Python include path
16551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
16552 $as_echo_n "checking for Python include path... " >&6; }
16553 if test -z "$PYTHON_CPPFLAGS"; then
16554 python_path=`$PYTHON -c "import distutils.sysconfig; \
16555 print (distutils.sysconfig.get_python_inc ());"`
16556 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
16557 print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
16558 if test -n "${python_path}"; then
16559 if test "${plat_python_path}" != "${python_path}"; then
16560 python_path="-I$python_path -I$plat_python_path"
16562 python_path="-I$python_path"
16565 PYTHON_CPPFLAGS=$python_path
16567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
16568 $as_echo "$PYTHON_CPPFLAGS" >&6; }
16572 # Check for Python library path
16574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
16575 $as_echo_n "checking for Python library path... " >&6; }
16576 if test -z "$PYTHON_LIBS"; then
16577 # (makes two attempts to ensure we've got a version number
16578 # from the interpreter)
16579 ac_python_version=`cat<<EOD | $PYTHON -
16581 # join all versioning strings, on some systems
16582 # major/minor numbers could be in different list elements
16583 from distutils.sysconfig import *
16584 e = get_config_var('VERSION')
16589 if test -z "$ac_python_version"; then
16590 if test -n "$PYTHON_VERSION"; then
16591 ac_python_version=$PYTHON_VERSION
16593 ac_python_version=`$PYTHON -c "import sys; \
16594 print (sys.version[:3])"`
16598 # Make the versioning information available to the compiler
16600 cat >>confdefs.h <<_ACEOF
16601 #define HAVE_PYTHON "$ac_python_version"
16605 # First, the library directory:
16606 ac_python_libdir=`cat<<EOD | $PYTHON -
16608 # There should be only one
16609 import distutils.sysconfig
16610 e = distutils.sysconfig.get_config_var('LIBDIR')
16615 # Now, for the library:
16616 ac_python_library=`cat<<EOD | $PYTHON -
16618 import distutils.sysconfig
16619 c = distutils.sysconfig.get_config_vars()
16620 if 'LDVERSION' in c:
16621 print ('python'+c['LDVERSION'])
16623 print ('python'+c['VERSION'])
16626 # This small piece shamelessly adapted from PostgreSQL python macro;
16627 # credits goes to momjian, I think. I'd like to put the right name
16628 # in the credits, if someone can point me in the right direction... ?
16630 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
16632 # use the official shared library
16633 ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
16634 PYTHON_LIBS="-L$ac_python_libdir -l$ac_python_library"
16636 # old way: use libpython from python_configdir
16637 ac_python_libdir=`$PYTHON -c \
16638 "from distutils.sysconfig import get_python_lib as f; \
16640 print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
16641 PYTHON_LIBS="-L$ac_python_libdir -lpython$ac_python_version"
16644 if test -z "PYTHON_LIBS"; then
16646 Cannot determine location of your Python DSO. Please check it was installed with
16647 dynamic libraries enabled, or try setting PYTHON_LIBS by hand.
16651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LIBS" >&5
16652 $as_echo "$PYTHON_LIBS" >&6; }
16656 # Check for site packages
16658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
16659 $as_echo_n "checking for Python site-packages path... " >&6; }
16660 if test -z "$PYTHON_SITE_PKG"; then
16661 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
16662 print (distutils.sysconfig.get_python_lib(0,0));"`
16664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
16665 $as_echo "$PYTHON_SITE_PKG" >&6; }
16669 # libraries which must be linked in when embedding
16671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
16672 $as_echo_n "checking python extra libraries... " >&6; }
16673 if test -z "$PYTHON_EXTRA_LIBS"; then
16674 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
16675 conf = distutils.sysconfig.get_config_var; \
16676 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
16678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
16679 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
16683 # linking flags needed when embedding
16685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
16686 $as_echo_n "checking python extra linking flags... " >&6; }
16687 if test -z "$PYTHON_EXTRA_LDFLAGS"; then
16688 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
16689 conf = distutils.sysconfig.get_config_var; \
16690 print (conf('LINKFORSHARED'))"`
16692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
16693 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
16697 # final check to see if everything compiles alright
16699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
16700 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
16701 # save current global flags
16702 ac_save_LIBS="$LIBS"
16703 ac_save_LDFLAGS="$LDFLAGS"
16704 ac_save_CPPFLAGS="$CPPFLAGS"
16705 LIBS="$ac_save_LIBS $PYTHON_LIBS $PYTHON_EXTRA_LIBS $PYTHON_EXTRA_LIBS"
16706 LDFLAGS="$ac_save_LDFLAGS $PYTHON_EXTRA_LDFLAGS"
16707 CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
16709 ac_cpp='$CPP $CPPFLAGS'
16710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16715 /* end confdefs.h. */
16717 #include <Python.h>
16727 if ac_fn_c_try_link "$LINENO"; then :
16732 rm -f core conftest.err conftest.$ac_objext \
16733 conftest$ac_exeext conftest.$ac_ext
16735 ac_cpp='$CXXCPP $CPPFLAGS'
16736 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16737 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16738 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16740 # turn back to default flags
16741 CPPFLAGS="$ac_save_CPPFLAGS"
16742 LIBS="$ac_save_LIBS"
16743 LDFLAGS="$ac_save_LDFLAGS"
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
16746 $as_echo "$pythonexists" >&6; }
16748 if test ! "x$pythonexists" = "xyes"; then
16749 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16750 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16752 Could not link test program to Python. Maybe the main Python library has been
16753 installed in some non-standard library path. If so, pass it to configure,
16754 via the LIBS environment variable.
16755 Example: ./configure LIBS=\"-L/usr/non-standard-path/python/lib\"
16756 ============================================================================
16758 You probably have to install the development version of the Python package
16759 for your distribution. The exact name of this package varies among them.
16760 ============================================================================
16762 See \`config.log' for more details" "$LINENO" 5; }
16772 # Check whether --enable-special was given.
16773 if test "${enable_special+set}" = set; then :
16774 enableval=$enable_special;
16779 if test "x$enable_special" != xno; then
16781 HAVE_SPECIAL_FALSE='#'
16783 HAVE_SPECIAL_TRUE='#'
16784 HAVE_SPECIAL_FALSE=
16788 # --enable-bin enables script and bin "extensions".
16789 # Check whether --enable-bin was given.
16790 if test "${enable_bin+set}" = set; then :
16791 enableval=$enable_bin;
16796 if test "x$enable_bin" != xno; then
16804 if test "x$enable_bin" != xno; then
16806 HAVE_SCRIPT_FALSE='#'
16808 HAVE_SCRIPT_TRUE='#'
16813 # --enable-fsts is an alias to enable FST SO extensions: compact, const,
16814 # linear, lookahead, and ngram.
16815 # Check whether --enable-fsts was given.
16816 if test "${enable_fsts+set}" = set; then :
16817 enableval=$enable_fsts;
16822 if test "x$enable_fsts" != xno; then
16824 HAVE_FSTS_FALSE='#'
16831 # --enable-grm is an alias to enable all dependencies of OpenGrm: far, mpdt,
16833 # Check whether --enable-grm was given.
16834 if test "${enable_grm+set}" = set; then :
16835 enableval=$enable_grm;
16840 if test "x$enable_grm" != xno; then
16850 # Check whether --with-libfstdir was given.
16851 if test "${with_libfstdir+set}" = set; then :
16852 withval=$with_libfstdir;
16854 with_libfstdir=${libdir}/fst
16858 libfstdir=$with_libfstdir
16861 # Flags may be changed after configuring, so this is checked again by
16862 # weight_test.cc. The check here is to save time in the common case,
16863 # or when someone does not run `make check`.
16864 if test "$cross_compiling" = yes; then :
16865 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16866 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16867 as_fn_error $? "cannot run test program while cross compiling
16868 See \`config.log' for more details" "$LINENO" 5; }
16870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16871 /* end confdefs.h. */
16875 template <typename T>
16876 bool FloatEqIsReflexive(T m) {
16877 volatile T x = 1.111;
16890 volatile double test_value = 1.1;
16891 if (!FloatEqIsReflexive(static_cast<float>(test_value))) {
16892 printf("float FAIL\n");
16895 if (!FloatEqIsReflexive(test_value)) {
16896 printf("double FAIL\n");
16904 if ac_fn_cxx_try_run "$LINENO"; then :
16905 echo "Float equality is good"
16907 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16908 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16909 as_fn_error $? "Test float equality failed! Compile with -msse -mfpmath=sse if using g++.
16910 See \`config.log' for more details" "$LINENO" 5; }
16912 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16913 conftest.$ac_objext conftest.beam conftest.$ac_ext
16917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16918 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16919 if ${ac_cv_lib_dl_dlopen+:} false; then :
16920 $as_echo_n "(cached) " >&6
16922 ac_check_lib_save_LIBS=$LIBS
16924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16925 /* end confdefs.h. */
16927 /* Override any GCC internal prototype to avoid an error.
16928 Use char because int might match the return type of a GCC
16929 builtin and then its argument prototype would still apply. */
16942 if ac_fn_cxx_try_link "$LINENO"; then :
16943 ac_cv_lib_dl_dlopen=yes
16945 ac_cv_lib_dl_dlopen=no
16947 rm -f core conftest.err conftest.$ac_objext \
16948 conftest$ac_exeext conftest.$ac_ext
16949 LIBS=$ac_check_lib_save_LIBS
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16952 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16953 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16959 cat >confcache <<\_ACEOF
16960 # This file is a shell script that caches the results of configure
16961 # tests run on this system so they can be shared between configure
16962 # scripts and configure runs, see configure's option --config-cache.
16963 # It is not useful on other systems. If it contains results you don't
16964 # want to keep, you may remove or edit it.
16966 # config.status only pays attention to the cache file if you give it
16967 # the --recheck option to rerun configure.
16969 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16970 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16971 # following values.
16975 # The following way of writing the cache mishandles newlines in values,
16976 # but we know of no workaround that is simple, portable, and efficient.
16977 # So, we kill variables containing newlines.
16978 # Ultrix sh set writes to stderr and can't be redirected directly,
16979 # and sets the high bit in the cache file unless we assign to the vars.
16981 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16982 eval ac_val=\$$ac_var
16986 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16987 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16990 _ | IFS | as_nl) ;; #(
16991 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16992 *) { eval $ac_var=; unset $ac_var;} ;;
16998 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16999 *${as_nl}ac_space=\ *)
17000 # `set' does not quote correctly, so add quotes: double-quote
17001 # substitution turns \\\\ into \\, and sed turns \\ into \.
17004 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17007 # `set' quotes correctly as required by POSIX, so do not add quotes.
17008 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17017 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17019 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17021 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17022 if test -w "$cache_file"; then
17023 if test "x$cache_file" != "x/dev/null"; then
17024 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17025 $as_echo "$as_me: updating cache $cache_file" >&6;}
17026 if test ! -f "$cache_file" || test -h "$cache_file"; then
17027 cat confcache >"$cache_file"
17029 case $cache_file in #(
17031 mv -f confcache "$cache_file"$$ &&
17032 mv -f "$cache_file"$$ "$cache_file" ;; #(
17034 mv -f confcache "$cache_file" ;;
17039 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17040 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17045 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17046 # Let make expand exec_prefix.
17047 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17049 DEFS=-DHAVE_CONFIG_H
17054 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17055 # 1. Remove the extension, and $U if already installed.
17056 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17057 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17058 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17059 # will be set to the directory where LIBOBJS objects are built.
17060 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17061 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17063 LIBOBJS=$ac_libobjs
17065 LTLIBOBJS=$ac_ltlibobjs
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17069 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17070 if test -n "$am_sleep_pid"; then
17071 # Hide warnings about reused PIDs.
17072 wait $am_sleep_pid 2>/dev/null
17074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17075 $as_echo "done" >&6; }
17076 if test -n "$EXEEXT"; then
17078 am__EXEEXT_FALSE='#'
17080 am__EXEEXT_TRUE='#'
17084 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17085 as_fn_error $? "conditional \"AMDEP\" was never defined.
17086 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17088 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17089 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17090 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17092 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17093 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17094 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17096 if test -z "${HAVE_COMPACT_TRUE}" && test -z "${HAVE_COMPACT_FALSE}"; then
17097 as_fn_error $? "conditional \"HAVE_COMPACT\" was never defined.
17098 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17100 if test -z "${HAVE_COMPRESS_TRUE}" && test -z "${HAVE_COMPRESS_FALSE}"; then
17101 as_fn_error $? "conditional \"HAVE_COMPRESS\" was never defined.
17102 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17104 if test -z "${HAVE_CONST_TRUE}" && test -z "${HAVE_CONST_FALSE}"; then
17105 as_fn_error $? "conditional \"HAVE_CONST\" was never defined.
17106 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17108 if test -z "${HAVE_FAR_TRUE}" && test -z "${HAVE_FAR_FALSE}"; then
17109 as_fn_error $? "conditional \"HAVE_FAR\" was never defined.
17110 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17112 if test -z "${HAVE_LINEAR_TRUE}" && test -z "${HAVE_LINEAR_FALSE}"; then
17113 as_fn_error $? "conditional \"HAVE_LINEAR\" was never defined.
17114 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17116 if test -z "${HAVE_LOOKAHEAD_TRUE}" && test -z "${HAVE_LOOKAHEAD_FALSE}"; then
17117 as_fn_error $? "conditional \"HAVE_LOOKAHEAD\" was never defined.
17118 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17120 if test -z "${HAVE_MPDT_TRUE}" && test -z "${HAVE_MPDT_FALSE}"; then
17121 as_fn_error $? "conditional \"HAVE_MPDT\" was never defined.
17122 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17124 if test -z "${HAVE_NGRAM_TRUE}" && test -z "${HAVE_NGRAM_FALSE}"; then
17125 as_fn_error $? "conditional \"HAVE_NGRAM\" was never defined.
17126 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17128 if test -z "${HAVE_PDT_TRUE}" && test -z "${HAVE_PDT_FALSE}"; then
17129 as_fn_error $? "conditional \"HAVE_PDT\" was never defined.
17130 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17132 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
17133 as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
17134 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17136 if test -z "${HAVE_SPECIAL_TRUE}" && test -z "${HAVE_SPECIAL_FALSE}"; then
17137 as_fn_error $? "conditional \"HAVE_SPECIAL\" was never defined.
17138 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17140 if test -z "${HAVE_BIN_TRUE}" && test -z "${HAVE_BIN_FALSE}"; then
17141 as_fn_error $? "conditional \"HAVE_BIN\" was never defined.
17142 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17144 if test -z "${HAVE_SCRIPT_TRUE}" && test -z "${HAVE_SCRIPT_FALSE}"; then
17145 as_fn_error $? "conditional \"HAVE_SCRIPT\" was never defined.
17146 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17148 if test -z "${HAVE_FSTS_TRUE}" && test -z "${HAVE_FSTS_FALSE}"; then
17149 as_fn_error $? "conditional \"HAVE_FSTS\" was never defined.
17150 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17152 if test -z "${HAVE_GRM_TRUE}" && test -z "${HAVE_GRM_FALSE}"; then
17153 as_fn_error $? "conditional \"HAVE_GRM\" was never defined.
17154 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17157 : "${CONFIG_STATUS=./config.status}"
17159 ac_clean_files_save=$ac_clean_files
17160 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17161 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17162 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17164 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17166 # Generated by $as_me.
17167 # Run this file to recreate the current configuration.
17168 # Compiler output produced by configure, useful for debugging
17169 # configure, is in config.log if it exists.
17172 ac_cs_recheck=false
17175 SHELL=\${CONFIG_SHELL-$SHELL}
17178 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17179 ## -------------------- ##
17180 ## M4sh Initialization. ##
17181 ## -------------------- ##
17183 # Be more Bourne compatible
17184 DUALCASE=1; export DUALCASE # for MKS sh
17185 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17188 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17189 # is contrary to our usage. Disable this feature.
17190 alias -g '${1+"$@"}'='"$@"'
17191 setopt NO_GLOB_SUBST
17193 case `(set -o) 2>/dev/null` in #(
17205 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17206 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17207 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17208 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17209 # Prefer a ksh shell builtin over an external printf program on Solaris,
17210 # but without wasting forks for bash or zsh.
17211 if test -z "$BASH_VERSION$ZSH_VERSION" \
17212 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17213 as_echo='print -r --'
17214 as_echo_n='print -rn --'
17215 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17216 as_echo='printf %s\n'
17217 as_echo_n='printf %s'
17219 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17220 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17221 as_echo_n='/usr/ucb/echo -n'
17223 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17224 as_echo_n_body='eval
17228 expr "X$arg" : "X\\(.*\\)$as_nl";
17229 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17231 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17233 export as_echo_n_body
17234 as_echo_n='sh -c $as_echo_n_body as_echo'
17236 export as_echo_body
17237 as_echo='sh -c $as_echo_body as_echo'
17240 # The user is always right.
17241 if test "${PATH_SEPARATOR+set}" != set; then
17243 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17244 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17251 # We need space, tab and new line, in precisely that order. Quoting is
17252 # there to prevent editors from complaining about space-tab.
17253 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17254 # splitting by setting IFS to empty value.)
17257 # Find who we are. Look in the path if we contain no directory separator.
17260 *[\\/]* ) as_myself=$0 ;;
17261 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17262 for as_dir in $PATH
17265 test -z "$as_dir" && as_dir=.
17266 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17272 # We did not find ourselves, most probably we were run as `sh COMMAND'
17273 # in which case we are not to be found in the path.
17274 if test "x$as_myself" = x; then
17277 if test ! -f "$as_myself"; then
17278 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17282 # Unset variables that we do not need and which cause bugs (e.g. in
17283 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17284 # suppresses any "Segmentation fault" message there. '((' could
17285 # trigger a bug in pdksh 5.2.14.
17286 for as_var in BASH_ENV ENV MAIL MAILPATH
17287 do eval test x\${$as_var+set} = xset \
17288 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17301 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17304 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17305 # ----------------------------------------
17306 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17307 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17308 # script with STATUS, using 1 if that was 0.
17311 as_status=$1; test $as_status -eq 0 && as_status=1
17313 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17314 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17316 $as_echo "$as_me: error: $2" >&2
17317 as_fn_exit $as_status
17321 # as_fn_set_status STATUS
17322 # -----------------------
17323 # Set $? to STATUS, without forking.
17324 as_fn_set_status ()
17327 } # as_fn_set_status
17329 # as_fn_exit STATUS
17330 # -----------------
17331 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17335 as_fn_set_status $1
17341 # Portably unset VAR.
17344 { eval $1=; unset $1;}
17346 as_unset=as_fn_unset
17347 # as_fn_append VAR VALUE
17348 # ----------------------
17349 # Append the text in VALUE to the end of the definition contained in VAR. Take
17350 # advantage of any shell optimizations that allow amortized linear growth over
17351 # repeated appends, instead of the typical quadratic growth present in naive
17353 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17354 eval 'as_fn_append ()
17365 # as_fn_arith ARG...
17366 # ------------------
17367 # Perform arithmetic evaluation on the ARGs, and store the result in the
17368 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17369 # must be portable across $(()) and expr.
17370 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17371 eval 'as_fn_arith ()
17378 as_val=`expr "$@" || test $? -eq 1`
17383 if expr a : '\(a\)' >/dev/null 2>&1 &&
17384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17391 as_basename=basename
17396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17402 as_me=`$as_basename -- "$0" ||
17403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17404 X"$0" : 'X\(//\)$' \| \
17405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17407 sed '/^.*\/\([^/][^/]*\)\/*$/{
17421 # Avoid depending upon Character Ranges.
17422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17425 as_cr_digits='0123456789'
17426 as_cr_alnum=$as_cr_Letters$as_cr_digits
17428 ECHO_C= ECHO_N= ECHO_T=
17429 case `echo -n x` in #(((((
17431 case `echo 'xy\c'` in
17432 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17434 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17441 rm -f conf$$ conf$$.exe conf$$.file
17442 if test -d conf$$.dir; then
17443 rm -f conf$$.dir/conf$$.file
17446 mkdir conf$$.dir 2>/dev/null
17448 if (echo >conf$$.file) 2>/dev/null; then
17449 if ln -s conf$$.file conf$$ 2>/dev/null; then
17451 # ... but there are two gotchas:
17452 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17453 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17454 # In both cases, we have to default to `cp -pR'.
17455 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17457 elif ln conf$$.file conf$$ 2>/dev/null; then
17465 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17466 rmdir conf$$.dir 2>/dev/null
17471 # Create "$as_dir" as a directory, including parents if necessary.
17476 -*) as_dir=./$as_dir;;
17478 test -d "$as_dir" || eval $as_mkdir_p || {
17482 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17483 *) as_qdir=$as_dir;;
17485 as_dirs="'$as_qdir' $as_dirs"
17486 as_dir=`$as_dirname -- "$as_dir" ||
17487 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17488 X"$as_dir" : 'X\(//\)[^/]' \| \
17489 X"$as_dir" : 'X\(//\)$' \| \
17490 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17491 $as_echo X"$as_dir" |
17492 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17496 /^X\(\/\/\)[^/].*/{
17509 test -d "$as_dir" && break
17511 test -z "$as_dirs" || eval "mkdir $as_dirs"
17512 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17516 if mkdir -p . 2>/dev/null; then
17517 as_mkdir_p='mkdir -p "$as_dir"'
17519 test -d ./-p && rmdir ./-p
17524 # as_fn_executable_p FILE
17525 # -----------------------
17526 # Test if FILE is an executable regular file.
17527 as_fn_executable_p ()
17529 test -f "$1" && test -x "$1"
17530 } # as_fn_executable_p
17531 as_test_x='test -x'
17532 as_executable_p=as_fn_executable_p
17534 # Sed expression to map a string onto a valid CPP name.
17535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17537 # Sed expression to map a string onto a valid variable name.
17538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17542 ## ----------------------------------- ##
17543 ## Main body of $CONFIG_STATUS script. ##
17544 ## ----------------------------------- ##
17546 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17548 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17549 # Save the log message, to keep $0 and so on meaningful, and to
17550 # report actual input values of CONFIG_FILES etc. instead of their
17551 # values after options handling.
17553 This file was extended by OpenFst $as_me 1.7.7, which was
17554 generated by GNU Autoconf 2.69. Invocation command line was
17556 CONFIG_FILES = $CONFIG_FILES
17557 CONFIG_HEADERS = $CONFIG_HEADERS
17558 CONFIG_LINKS = $CONFIG_LINKS
17559 CONFIG_COMMANDS = $CONFIG_COMMANDS
17562 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17567 case $ac_config_files in *"
17568 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17571 case $ac_config_headers in *"
17572 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17577 # Files that config.status was made for.
17578 config_files="$ac_config_files"
17579 config_headers="$ac_config_headers"
17580 config_commands="$ac_config_commands"
17584 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17586 \`$as_me' instantiates files and other configuration actions
17587 from templates according to the current configuration. Unless the files
17588 and actions are specified as TAGs, all are instantiated by default.
17590 Usage: $0 [OPTION]... [TAG]...
17592 -h, --help print this help, then exit
17593 -V, --version print version number and configuration settings, then exit
17594 --config print configuration, then exit
17595 -q, --quiet, --silent
17596 do not print progress messages
17597 -d, --debug don't remove temporary files
17598 --recheck update $as_me by reconfiguring in the same conditions
17599 --file=FILE[:TEMPLATE]
17600 instantiate the configuration file FILE
17601 --header=FILE[:TEMPLATE]
17602 instantiate the configuration header FILE
17604 Configuration files:
17607 Configuration headers:
17610 Configuration commands:
17613 Report bugs to <help@www.openfst.org>."
17616 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17617 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17619 OpenFst config.status 1.7.7
17620 configured by $0, generated by GNU Autoconf 2.69,
17621 with options \\"\$ac_cs_config\\"
17623 Copyright (C) 2012 Free Software Foundation, Inc.
17624 This config.status script is free software; the Free Software Foundation
17625 gives unlimited permission to copy, distribute and modify it."
17632 test -n "\$AWK" || AWK=awk
17635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17636 # The default lists apply if the user does not specify any file.
17642 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17643 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17647 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17659 # Handling of the options.
17660 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17662 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17663 $as_echo "$ac_cs_version"; exit ;;
17664 --config | --confi | --conf | --con | --co | --c )
17665 $as_echo "$ac_cs_config"; exit ;;
17666 --debug | --debu | --deb | --de | --d | -d )
17668 --file | --fil | --fi | --f )
17671 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17672 '') as_fn_error $? "missing file argument" ;;
17674 as_fn_append CONFIG_FILES " '$ac_optarg'"
17675 ac_need_defaults=false;;
17676 --header | --heade | --head | --hea )
17679 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17681 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17682 ac_need_defaults=false;;
17684 # Conflict between --help and --header
17685 as_fn_error $? "ambiguous option: \`$1'
17686 Try \`$0 --help' for more information.";;
17687 --help | --hel | -h )
17688 $as_echo "$ac_cs_usage"; exit ;;
17689 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17690 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17693 # This is an error.
17694 -*) as_fn_error $? "unrecognized option: \`$1'
17695 Try \`$0 --help' for more information." ;;
17697 *) as_fn_append ac_config_targets " $1"
17698 ac_need_defaults=false ;;
17704 ac_configure_extra_args=
17706 if $ac_cs_silent; then
17708 ac_configure_extra_args="$ac_configure_extra_args --silent"
17712 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17713 if \$ac_cs_recheck; then
17714 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17716 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17717 CONFIG_SHELL='$SHELL'
17718 export CONFIG_SHELL
17723 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17727 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17728 ## Running $as_me. ##
17734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17738 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
17741 # The HP-UX ksh and POSIX shell print the target directory to stdout
17742 # if CDPATH is set.
17743 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17745 sed_quote_subst='$sed_quote_subst'
17746 double_quote_subst='$double_quote_subst'
17747 delay_variable_subst='$delay_variable_subst'
17748 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17749 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17750 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17751 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17752 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17753 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17754 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17755 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17756 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17757 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17758 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17759 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17760 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17761 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17762 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17763 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17764 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17765 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17766 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17767 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17768 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17769 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17770 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17771 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17772 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17773 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17774 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17775 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17776 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17777 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17778 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17779 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17780 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17781 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17782 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17783 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17784 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17785 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17786 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17787 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17788 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17789 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17790 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17791 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17792 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17793 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17794 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17795 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17796 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17797 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17798 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17799 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17800 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17801 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17802 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17803 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17804 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17805 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17806 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"`'
17807 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17808 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17809 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17810 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17811 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17812 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17813 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17814 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17815 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17816 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17817 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17818 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17819 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17820 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17821 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17822 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17823 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17824 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17825 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17826 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17827 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17828 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17829 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17830 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17831 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17832 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17833 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17834 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17835 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17836 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17837 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17838 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17839 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17840 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17841 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17842 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17843 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17844 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17845 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17846 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17847 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17848 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17849 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17850 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17851 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17852 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17853 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17854 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17855 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17856 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17857 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17858 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17859 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17860 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17861 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17862 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17863 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17864 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17865 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17866 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17867 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17868 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17869 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17870 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17871 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17872 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17873 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17874 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17875 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17876 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17877 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17878 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17879 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17880 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17881 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17882 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17883 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17884 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17885 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17886 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17887 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17888 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17889 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17890 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17891 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17892 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17893 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17894 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17895 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17896 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17897 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17898 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17899 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17900 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17901 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17902 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17903 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17904 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17905 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17906 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17907 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17908 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17909 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17910 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17911 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17912 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17913 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17914 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17915 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17916 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17917 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17918 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17919 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17920 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17921 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17922 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17923 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17924 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17925 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17926 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17927 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17928 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17929 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17930 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17931 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17932 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17933 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17934 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17935 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17936 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17939 LTCFLAGS='$LTCFLAGS'
17940 compiler='$compiler_DEFAULT'
17942 # A function that is used when there is no print builtin or printf.
17943 func_fallback_echo ()
17945 eval 'cat <<_LTECHO_EOF
17950 # Quote evaled strings.
17965 deplibs_check_method \
17970 sharedlib_from_linklib_cmd \
17973 archiver_list_spec \
17979 lt_cv_sys_global_symbol_pipe \
17980 lt_cv_sys_global_symbol_to_cdecl \
17981 lt_cv_sys_global_symbol_to_import \
17982 lt_cv_sys_global_symbol_to_c_name_address \
17983 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17984 lt_cv_nm_interface \
17985 nm_file_list_spec \
17986 lt_cv_truncate_bin \
17987 lt_prog_compiler_no_builtin_flag \
17988 lt_prog_compiler_pic \
17989 lt_prog_compiler_wl \
17990 lt_prog_compiler_static \
17991 lt_cv_prog_compiler_c_o \
18000 export_dynamic_flag_spec \
18001 whole_archive_flag_spec \
18002 compiler_needs_object \
18004 allow_undefined_flag \
18005 no_undefined_flag \
18006 hardcode_libdir_flag_spec \
18007 hardcode_libdir_separator \
18011 variables_saved_for_relink \
18013 library_names_spec \
18015 install_override_mode \
18019 compiler_lib_search_dirs \
18024 compiler_lib_search_path \
18028 lt_prog_compiler_no_builtin_flag_CXX \
18029 lt_prog_compiler_pic_CXX \
18030 lt_prog_compiler_wl_CXX \
18031 lt_prog_compiler_static_CXX \
18032 lt_cv_prog_compiler_c_o_CXX \
18033 export_dynamic_flag_spec_CXX \
18034 whole_archive_flag_spec_CXX \
18035 compiler_needs_object_CXX \
18037 allow_undefined_flag_CXX \
18038 no_undefined_flag_CXX \
18039 hardcode_libdir_flag_spec_CXX \
18040 hardcode_libdir_separator_CXX \
18041 exclude_expsyms_CXX \
18042 include_expsyms_CXX \
18043 file_list_spec_CXX \
18044 compiler_lib_search_dirs_CXX \
18045 predep_objects_CXX \
18046 postdep_objects_CXX \
18049 compiler_lib_search_path_CXX; do
18050 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18051 *[\\\\\\\`\\"\\\$]*)
18052 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18055 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18060 # Double-quote double-evaled strings.
18061 for var in reload_cmds \
18062 old_postinstall_cmds \
18063 old_postuninstall_cmds \
18065 extract_expsyms_cmds \
18066 old_archive_from_new_cmds \
18067 old_archive_from_expsyms_cmds \
18069 archive_expsym_cmds \
18071 module_expsym_cmds \
18072 export_symbols_cmds \
18076 postuninstall_cmds \
18078 sys_lib_search_path_spec \
18079 configure_time_dlsearch_path \
18080 configure_time_lt_sys_library_path \
18082 old_archive_cmds_CXX \
18083 old_archive_from_new_cmds_CXX \
18084 old_archive_from_expsyms_cmds_CXX \
18086 archive_expsym_cmds_CXX \
18088 module_expsym_cmds_CXX \
18089 export_symbols_cmds_CXX \
18091 postlink_cmds_CXX; do
18092 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18093 *[\\\\\\\`\\"\\\$]*)
18094 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18097 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18102 ac_aux_dir='$ac_aux_dir'
18104 # See if we are running on zsh, and set the options that allow our
18105 # commands through without removal of \ escapes INIT.
18106 if test -n "\${ZSH_VERSION+set}"; then
18107 setopt NO_GLOB_SUBST
18123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18125 # Handling of arguments.
18126 for ac_config_target in $ac_config_targets
18128 case $ac_config_target in
18129 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18130 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18131 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18132 "src/include/fst/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/fst/config.h" ;;
18133 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18134 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18135 "src/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
18136 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
18137 "src/bin/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/Makefile" ;;
18138 "src/test/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
18139 "src/extensions/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/Makefile" ;;
18140 "src/extensions/compact/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/compact/Makefile" ;;
18141 "src/extensions/compress/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/compress/Makefile" ;;
18142 "src/extensions/const/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/const/Makefile" ;;
18143 "src/extensions/far/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/far/Makefile" ;;
18144 "src/extensions/linear/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/linear/Makefile" ;;
18145 "src/extensions/lookahead/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/lookahead/Makefile" ;;
18146 "src/extensions/mpdt/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/mpdt/Makefile" ;;
18147 "src/extensions/ngram/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/ngram/Makefile" ;;
18148 "src/extensions/pdt/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/pdt/Makefile" ;;
18149 "src/extensions/python/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/python/Makefile" ;;
18150 "src/extensions/special/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/special/Makefile" ;;
18151 "src/script/Makefile") CONFIG_FILES="$CONFIG_FILES src/script/Makefile" ;;
18153 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18158 # If the user did not use the arguments to specify the items to instantiate,
18159 # then the envvar interface is used. Set only those that are not.
18160 # We use the long form for the default assignment because of an extremely
18161 # bizarre bug on SunOS 4.1.3.
18162 if $ac_need_defaults; then
18163 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18164 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18165 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18168 # Have a temporary directory for convenience. Make it in the build tree
18169 # simply because there is no reason against having it here, and in addition,
18170 # creating and moving files from /tmp can sometimes cause problems.
18171 # Hook for its removal unless debugging.
18172 # Note that there is a small window in which the directory will not be cleaned:
18173 # after its creation but before its name has been assigned to `$tmp'.
18177 trap 'exit_status=$?
18178 : "${ac_tmp:=$tmp}"
18179 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18181 trap 'as_fn_exit 1' 1 2 13 15
18183 # Create a (secure) tmp directory for tmp files.
18186 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18190 tmp=./conf$$-$RANDOM
18191 (umask 077 && mkdir "$tmp")
18192 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18195 # Set up the scripts for CONFIG_FILES section.
18196 # No need to generate them if there are no CONFIG_FILES.
18197 # This happens for instance with `./config.status config.h'.
18198 if test -n "$CONFIG_FILES"; then
18201 ac_cr=`echo X | tr X '\015'`
18202 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18203 # But we know of no other shell where ac_cr would be empty at this
18204 # point, so we can use a bashism as a fallback.
18205 if test "x$ac_cr" = x; then
18206 eval ac_cr=\$\'\\r\'
18208 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18209 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18212 ac_cs_awk_cr=$ac_cr
18215 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18220 echo "cat >conf$$subs.awk <<_ACEOF" &&
18221 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18223 } >conf$$subs.sh ||
18224 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18225 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18227 for ac_last_try in false false false false false :; do
18228 . ./conf$$subs.sh ||
18229 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18231 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18232 if test $ac_delim_n = $ac_delim_num; then
18234 elif $ac_last_try; then
18235 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18237 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18240 rm -f conf$$subs.sh
18242 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18243 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18247 s/^/S["/; s/!.*/"]=/
18257 s/\(.\{148\}\)..*/\1/
18259 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18264 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18271 s/\(.\{148\}\)..*/\1/
18273 s/["\\]/\\&/g; s/^/"/; s/$/"/
18277 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18282 ' <conf$$subs.awk | sed '
18287 ' >>$CONFIG_STATUS || ac_write_fail=1
18288 rm -f conf$$subs.awk
18289 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18291 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18292 for (key in S) S_is_set[key] = 1
18298 nfields = split(line, field, "@")
18300 len = length(field[1])
18301 for (i = 2; i < nfields; i++) {
18303 keylen = length(key)
18304 if (S_is_set[key]) {
18306 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18307 len += length(value) + length(field[++i])
18318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18319 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18320 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18323 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18324 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18327 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18328 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18329 # trailing colons and then remove the whole line if VPATH becomes empty
18330 # (actually we leave an empty line to preserve line numbers).
18331 if test "x$srcdir" = x.; then
18332 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18351 fi # test -n "$CONFIG_FILES"
18353 # Set up the scripts for CONFIG_HEADERS section.
18354 # No need to generate them if there are no CONFIG_HEADERS.
18355 # This happens for instance with `./config.status Makefile'.
18356 if test -n "$CONFIG_HEADERS"; then
18357 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18361 # Transform confdefs.h into an awk script `defines.awk', embedded as
18362 # here-document in config.status, that substitutes the proper values into
18363 # config.h.in to produce config.h.
18365 # Create a delimiter string that does not exist in confdefs.h, to ease
18366 # handling of long lines.
18368 for ac_last_try in false false :; do
18369 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18370 if test -z "$ac_tt"; then
18372 elif $ac_last_try; then
18373 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18375 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18379 # For the awk script, D is an array of macro values keyed by name,
18380 # likewise P contains macro parameters if any. Preserve backslash
18381 # newline sequences.
18383 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18385 s/.\{148\}/&'"$ac_delim"'/g
18388 s/^[ ]*#[ ]*define[ ][ ]*/ /
18395 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18397 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18401 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18402 D["\1"]=" \3\\\\\\n"\\/p
18404 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18409 s/.\{148\}/&'"$ac_delim"'/g
18414 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18417 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18419 ' <confdefs.h | sed '
18420 s/'"$ac_delim"'/"\\\
18421 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18423 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18424 for (key in D) D_is_set[key] = 1
18427 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18429 split(line, arg, " ")
18430 if (arg[1] == "#") {
18434 defundef = substr(arg[1], 2)
18437 split(mac1, mac2, "(") #)
18439 prefix = substr(line, 1, index(line, defundef) - 1)
18440 if (D_is_set[macro]) {
18441 # Preserve the white space surrounding the "#".
18442 print prefix "define", macro P[macro] D[macro]
18445 # Replace #undef with comments. This is necessary, for example,
18446 # in the case of _POSIX_SOURCE, which is predefined and required
18447 # on some systems where configure will not decide to define it.
18448 if (defundef == "undef") {
18449 print "/*", prefix defundef, macro, "*/"
18457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18458 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18459 fi # test -n "$CONFIG_HEADERS"
18462 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18467 :[FHLC]) ac_mode=$ac_tag; continue;;
18469 case $ac_mode$ac_tag in
18471 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18472 :[FH]-) ac_tag=-:-;;
18473 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18490 -) ac_f="$ac_tmp/stdin";;
18491 *) # Look for the file first in the build tree, then in the source tree
18492 # (if the path is not absolute). The absolute path cannot be DOS-style,
18493 # because $ac_f cannot contain `:'.
18497 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18499 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18501 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18502 as_fn_append ac_file_inputs " '$ac_f'"
18505 # Let's still pretend it is `configure' which instantiates (i.e., don't
18506 # use $as_me), people would be surprised to read:
18507 # /* config.h. Generated by config.status. */
18508 configure_input='Generated from '`
18509 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18511 if test x"$ac_file" != x-; then
18512 configure_input="$ac_file. $configure_input"
18513 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18514 $as_echo "$as_me: creating $ac_file" >&6;}
18516 # Neutralize special characters interpreted by sed in replacement strings.
18517 case $configure_input in #(
18518 *\&* | *\|* | *\\* )
18519 ac_sed_conf_input=`$as_echo "$configure_input" |
18520 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18521 *) ac_sed_conf_input=$configure_input;;
18525 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18526 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18531 ac_dir=`$as_dirname -- "$ac_file" ||
18532 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18533 X"$ac_file" : 'X\(//\)[^/]' \| \
18534 X"$ac_file" : 'X\(//\)$' \| \
18535 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18536 $as_echo X"$ac_file" |
18537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18541 /^X\(\/\/\)[^/].*/{
18554 as_dir="$ac_dir"; as_fn_mkdir_p
18558 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18560 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18561 # A ".." for each directory in $ac_dir_suffix.
18562 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18563 case $ac_top_builddir_sub in
18564 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18565 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18568 ac_abs_top_builddir=$ac_pwd
18569 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18570 # for backward compatibility:
18571 ac_top_builddir=$ac_top_build_prefix
18574 .) # We are building in place.
18576 ac_top_srcdir=$ac_top_builddir_sub
18577 ac_abs_top_srcdir=$ac_pwd ;;
18578 [\\/]* | ?:[\\/]* ) # Absolute name.
18579 ac_srcdir=$srcdir$ac_dir_suffix;
18580 ac_top_srcdir=$srcdir
18581 ac_abs_top_srcdir=$srcdir ;;
18582 *) # Relative name.
18583 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18584 ac_top_srcdir=$ac_top_build_prefix$srcdir
18585 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18587 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18597 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18598 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18600 ac_MKDIR_P=$MKDIR_P
18602 [\\/$]* | ?:[\\/]* ) ;;
18603 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18608 # If the template does not know about datarootdir, expand it.
18609 # FIXME: This hack should be removed a few years after 2.60.
18610 ac_datarootdir_hack=; ac_datarootdir_seen=
18621 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18622 *datarootdir*) ac_datarootdir_seen=yes;;
18623 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18625 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18628 ac_datarootdir_hack='
18629 s&@datadir@&$datadir&g
18630 s&@docdir@&$docdir&g
18631 s&@infodir@&$infodir&g
18632 s&@localedir@&$localedir&g
18633 s&@mandir@&$mandir&g
18634 s&\\\${datarootdir}&$datarootdir&g' ;;
18638 # Neutralize VPATH when `$srcdir' = `.'.
18639 # Shell code in configure.ac might set extrasub.
18640 # FIXME: do we really want to maintain this feature?
18641 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18642 ac_sed_extra="$ac_vpsub
18645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18647 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18648 s|@configure_input@|$ac_sed_conf_input|;t t
18649 s&@top_builddir@&$ac_top_builddir_sub&;t t
18650 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18651 s&@srcdir@&$ac_srcdir&;t t
18652 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18653 s&@top_srcdir@&$ac_top_srcdir&;t t
18654 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18655 s&@builddir@&$ac_builddir&;t t
18656 s&@abs_builddir@&$ac_abs_builddir&;t t
18657 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18658 s&@INSTALL@&$ac_INSTALL&;t t
18659 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18660 $ac_datarootdir_hack
18662 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18663 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18665 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18666 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18667 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18668 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18670 which seems to be undefined. Please make sure it is defined" >&5
18671 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18672 which seems to be undefined. Please make sure it is defined" >&2;}
18674 rm -f "$ac_tmp/stdin"
18676 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18677 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18679 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18685 if test x"$ac_file" != x-; then
18687 $as_echo "/* $configure_input */" \
18688 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18689 } >"$ac_tmp/config.h" \
18690 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18691 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18692 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18693 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18696 mv "$ac_tmp/config.h" "$ac_file" \
18697 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18700 $as_echo "/* $configure_input */" \
18701 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18702 || as_fn_error $? "could not create -" "$LINENO" 5
18704 # Compute "$ac_file"'s index in $config_headers.
18707 for _am_header in $config_headers :; do
18708 case $_am_header in
18709 $_am_arg | $_am_arg:* )
18712 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18715 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18716 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18717 X"$_am_arg" : 'X\(//\)[^/]' \| \
18718 X"$_am_arg" : 'X\(//\)$' \| \
18719 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18720 $as_echo X"$_am_arg" |
18721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18725 /^X\(\/\/\)[^/].*/{
18737 s/.*/./; q'`/stamp-h$_am_stamp_count
18740 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18741 $as_echo "$as_me: executing $ac_file commands" >&6;}
18746 case $ac_file$ac_mode in
18747 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18748 # Older Autoconf quotes --file arguments for eval, but not when files
18749 # are listed without --file. Let's play safe and only enable the eval
18750 # if we detect the quoting.
18751 # TODO: see whether this extra hack can be removed once we start
18752 # requiring Autoconf 2.70 or later.
18753 case $CONFIG_FILES in #(
18755 eval set x "$CONFIG_FILES" ;; #(
18757 set x $CONFIG_FILES ;; #(
18762 # Used to flag and report bootstrapping failures.
18766 # Strip MF so we end up with the name of the file.
18767 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
18768 # Check whether this is an Automake generated Makefile which includes
18769 # dependency-tracking related rules and includes.
18770 # Grep'ing the whole file directly is not great: AIX grep has a line
18771 # limit of 2048, but all sed's we know have understand at least 4000.
18772 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
18774 am_dirpart=`$as_dirname -- "$am_mf" ||
18775 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18776 X"$am_mf" : 'X\(//\)[^/]' \| \
18777 X"$am_mf" : 'X\(//\)$' \| \
18778 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18779 $as_echo X"$am_mf" |
18780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18784 /^X\(\/\/\)[^/].*/{
18797 am_filepart=`$as_basename -- "$am_mf" ||
18798 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
18799 X"$am_mf" : 'X\(//\)$' \| \
18800 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18801 $as_echo X/"$am_mf" |
18802 sed '/^.*\/\([^/][^/]*\)\/*$/{
18815 { echo "$as_me:$LINENO: cd "$am_dirpart" \
18816 && sed -e '/# am--include-marker/d' "$am_filepart" \
18817 | $MAKE -f - am--depfiles" >&5
18818 (cd "$am_dirpart" \
18819 && sed -e '/# am--include-marker/d' "$am_filepart" \
18820 | $MAKE -f - am--depfiles) >&5 2>&5
18822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823 (exit $ac_status); } || am_rc=$?
18825 if test $am_rc -ne 0; then
18826 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18827 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18828 as_fn_error $? "Something went wrong bootstrapping makefile fragments
18829 for automatic dependency tracking. Try re-running configure with the
18830 '--disable-dependency-tracking' option to at least be able to build
18831 the package (albeit without support for automatic dependency tracking).
18832 See \`config.log' for more details" "$LINENO" 5; }
18834 { am_dirpart=; unset am_dirpart;}
18835 { am_filepart=; unset am_filepart;}
18836 { am_mf=; unset am_mf;}
18837 { am_rc=; unset am_rc;}
18838 rm -f conftest-deps.mk
18843 # See if we are running on zsh, and set the options that allow our
18844 # commands through without removal of \ escapes.
18845 if test -n "${ZSH_VERSION+set}"; then
18846 setopt NO_GLOB_SUBST
18850 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18853 cat <<_LT_EOF >> "$cfgfile"
18855 # Generated automatically by $as_me ($PACKAGE) $VERSION
18856 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18857 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18859 # Provide generalized library-building support services.
18860 # Written by Gordon Matzigkeit, 1996
18862 # Copyright (C) 2014 Free Software Foundation, Inc.
18863 # This is free software; see the source for copying conditions. There is NO
18864 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18866 # GNU Libtool is free software; you can redistribute it and/or modify
18867 # it under the terms of the GNU General Public License as published by
18868 # the Free Software Foundation; either version 2 of of the License, or
18869 # (at your option) any later version.
18871 # As a special exception to the GNU General Public License, if you
18872 # distribute this file as part of a program or library that is built
18873 # using GNU Libtool, you may include this file under the same
18874 # distribution terms that you use for the rest of that program.
18876 # GNU Libtool is distributed in the hope that it will be useful, but
18877 # WITHOUT ANY WARRANTY; without even the implied warranty of
18878 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18879 # GNU General Public License for more details.
18881 # You should have received a copy of the GNU General Public License
18882 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18885 # The names of the tagged configurations supported by this script.
18886 available_tags='CXX '
18888 # Configured defaults for sys_lib_dlsearch_path munging.
18889 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18891 # ### BEGIN LIBTOOL CONFIG
18893 # Whether or not to build static libraries.
18894 build_old_libs=$enable_static
18896 # Which release of libtool.m4 was used?
18897 macro_version=$macro_version
18898 macro_revision=$macro_revision
18900 # Whether or not to build shared libraries.
18901 build_libtool_libs=$enable_shared
18903 # What type of objects to build.
18906 # Whether or not to optimize for fast installation.
18907 fast_install=$enable_fast_install
18909 # Shared archive member basename,for filename based shared library versioning on AIX.
18910 shared_archive_member_spec=$shared_archive_member_spec
18912 # Shell to use when invoking shell scripts.
18915 # An echo program that protects backslashes.
18918 # The PATH separator for the build system.
18919 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18922 host_alias=$host_alias
18926 # The build system.
18927 build_alias=$build_alias
18931 # A sed program that does not truncate output.
18934 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18935 Xsed="\$SED -e 1s/^X//"
18937 # A grep program that handles long lines.
18943 # A literal string matcher.
18946 # A BSD- or MS-compatible name lister.
18949 # Whether we need soft or hard links.
18952 # What is the maximum length of a command?
18953 max_cmd_len=$max_cmd_len
18955 # Object file suffix (normally "o").
18958 # Executable file suffix (normally "").
18961 # whether the shell understands "unset".
18964 # turn spaces into newlines.
18967 # turn newlines into spaces.
18970 # convert \$build file names to \$host format.
18971 to_host_file_cmd=$lt_cv_to_host_file_cmd
18973 # convert \$build files to toolchain format.
18974 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18976 # An object symbol dumper.
18977 OBJDUMP=$lt_OBJDUMP
18979 # Method to check whether dependent libraries are shared objects.
18980 deplibs_check_method=$lt_deplibs_check_method
18982 # Command to use when deplibs_check_method = "file_magic".
18983 file_magic_cmd=$lt_file_magic_cmd
18985 # How to find potential files when deplibs_check_method = "file_magic".
18986 file_magic_glob=$lt_file_magic_glob
18988 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18989 want_nocaseglob=$lt_want_nocaseglob
18991 # DLL creation program.
18992 DLLTOOL=$lt_DLLTOOL
18994 # Command to associate shared and link libraries.
18995 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19000 # Flags to create an archive.
19001 AR_FLAGS=$lt_AR_FLAGS
19003 # How to feed a file listing to the archiver.
19004 archiver_list_spec=$lt_archiver_list_spec
19006 # A symbol stripping program.
19009 # Commands used to install an old-style archive.
19011 old_postinstall_cmds=$lt_old_postinstall_cmds
19012 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19014 # Whether to use a lock for old archive extraction.
19015 lock_old_archive_extraction=$lock_old_archive_extraction
19020 # LTCC compiler flags.
19021 LTCFLAGS=$lt_CFLAGS
19023 # Take the output of nm and produce a listing of raw symbols and C names.
19024 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19026 # Transform the output of nm in a proper C declaration.
19027 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19029 # Transform the output of nm into a list of symbols to manually relocate.
19030 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19032 # Transform the output of nm in a C name address pair.
19033 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19035 # Transform the output of nm in a C name address pair when lib prefix is needed.
19036 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19038 # The name lister interface.
19039 nm_interface=$lt_lt_cv_nm_interface
19041 # Specify filename containing input files for \$NM.
19042 nm_file_list_spec=$lt_nm_file_list_spec
19044 # The root where to search for dependent libraries,and where our libraries should be installed.
19045 lt_sysroot=$lt_sysroot
19047 # Command to truncate a binary pipe.
19048 lt_truncate_bin=$lt_lt_cv_truncate_bin
19050 # The name of the directory that contains temporary libtool files.
19053 # Used to examine libraries when file_magic_cmd begins with "file".
19054 MAGIC_CMD=$MAGIC_CMD
19056 # Must we lock files when doing compilation?
19057 need_locks=$lt_need_locks
19060 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19062 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19063 DSYMUTIL=$lt_DSYMUTIL
19065 # Tool to change global to local symbols on Mac OS X.
19068 # Tool to manipulate fat objects and archives on Mac OS X.
19071 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19074 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19075 OTOOL64=$lt_OTOOL64
19077 # Old archive suffix (normally "a").
19080 # Shared library suffix (normally ".so").
19081 shrext_cmds=$lt_shrext_cmds
19083 # The commands to extract the exported symbol list from a shared archive.
19084 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19086 # Variables whose values should be saved in libtool wrapper scripts and
19087 # restored at link time.
19088 variables_saved_for_relink=$lt_variables_saved_for_relink
19090 # Do we need the "lib" prefix for modules?
19091 need_lib_prefix=$need_lib_prefix
19093 # Do we need a version for libraries?
19094 need_version=$need_version
19096 # Library versioning type.
19097 version_type=$version_type
19099 # Shared library runtime path variable.
19100 runpath_var=$runpath_var
19102 # Shared library path variable.
19103 shlibpath_var=$shlibpath_var
19105 # Is shlibpath searched before the hard-coded library search path?
19106 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19108 # Format of library name prefix.
19109 libname_spec=$lt_libname_spec
19111 # List of archive names. First name is the real one, the rest are links.
19112 # The last name is the one that the linker finds with -lNAME
19113 library_names_spec=$lt_library_names_spec
19115 # The coded name of the library, if different from the real name.
19116 soname_spec=$lt_soname_spec
19118 # Permission mode override for installation of shared libraries.
19119 install_override_mode=$lt_install_override_mode
19121 # Command to use after installation of a shared archive.
19122 postinstall_cmds=$lt_postinstall_cmds
19124 # Command to use after uninstallation of a shared archive.
19125 postuninstall_cmds=$lt_postuninstall_cmds
19127 # Commands used to finish a libtool library installation in a directory.
19128 finish_cmds=$lt_finish_cmds
19130 # As "finish_cmds", except a single script fragment to be evaled but
19132 finish_eval=$lt_finish_eval
19134 # Whether we should hardcode library paths into libraries.
19135 hardcode_into_libs=$hardcode_into_libs
19137 # Compile-time system search path for libraries.
19138 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19140 # Detected run-time system search path for libraries.
19141 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19143 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19144 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19146 # Whether dlopen is supported.
19147 dlopen_support=$enable_dlopen
19149 # Whether dlopen of programs is supported.
19150 dlopen_self=$enable_dlopen_self
19152 # Whether dlopen of statically linked programs is supported.
19153 dlopen_self_static=$enable_dlopen_self_static
19155 # Commands to strip libraries.
19156 old_striplib=$lt_old_striplib
19157 striplib=$lt_striplib
19160 # The linker used to build libraries.
19163 # How to create reloadable object files.
19164 reload_flag=$lt_reload_flag
19165 reload_cmds=$lt_reload_cmds
19167 # Commands used to build an old-style archive.
19168 old_archive_cmds=$lt_old_archive_cmds
19170 # A language specific compiler.
19173 # Is the compiler the GNU compiler?
19176 # Compiler flag to turn off builtin functions.
19177 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19179 # Additional compiler flags for building library objects.
19180 pic_flag=$lt_lt_prog_compiler_pic
19182 # How to pass a linker flag through the compiler.
19183 wl=$lt_lt_prog_compiler_wl
19185 # Compiler flag to prevent dynamic linking.
19186 link_static_flag=$lt_lt_prog_compiler_static
19188 # Does compiler simultaneously support -c and -o options?
19189 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19191 # Whether or not to add -lc for building shared libraries.
19192 build_libtool_need_lc=$archive_cmds_need_lc
19194 # Whether or not to disallow shared libs when runtime libs are static.
19195 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19197 # Compiler flag to allow reflexive dlopens.
19198 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19200 # Compiler flag to generate shared objects directly from archives.
19201 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19203 # Whether the compiler copes with passing no objects directly.
19204 compiler_needs_object=$lt_compiler_needs_object
19206 # Create an old-style archive from a shared archive.
19207 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19209 # Create a temporary old-style archive to link instead of a shared archive.
19210 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19212 # Commands used to build a shared archive.
19213 archive_cmds=$lt_archive_cmds
19214 archive_expsym_cmds=$lt_archive_expsym_cmds
19216 # Commands used to build a loadable module if different from building
19217 # a shared archive.
19218 module_cmds=$lt_module_cmds
19219 module_expsym_cmds=$lt_module_expsym_cmds
19221 # Whether we are building with GNU ld or not.
19222 with_gnu_ld=$lt_with_gnu_ld
19224 # Flag that allows shared libraries with undefined symbols to be built.
19225 allow_undefined_flag=$lt_allow_undefined_flag
19227 # Flag that enforces no undefined symbols.
19228 no_undefined_flag=$lt_no_undefined_flag
19230 # Flag to hardcode \$libdir into a binary during linking.
19231 # This must work even if \$libdir does not exist
19232 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19234 # Whether we need a single "-rpath" flag with a separated argument.
19235 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19237 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19238 # DIR into the resulting binary.
19239 hardcode_direct=$hardcode_direct
19241 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19242 # DIR into the resulting binary and the resulting library dependency is
19243 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19244 # library is relocated.
19245 hardcode_direct_absolute=$hardcode_direct_absolute
19247 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19248 # into the resulting binary.
19249 hardcode_minus_L=$hardcode_minus_L
19251 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19252 # into the resulting binary.
19253 hardcode_shlibpath_var=$hardcode_shlibpath_var
19255 # Set to "yes" if building a shared library automatically hardcodes DIR
19256 # into the library and all subsequent libraries and executables linked
19258 hardcode_automatic=$hardcode_automatic
19260 # Set to yes if linker adds runtime paths of dependent libraries
19261 # to runtime path list.
19262 inherit_rpath=$inherit_rpath
19264 # Whether libtool must link a program against all its dependency libraries.
19265 link_all_deplibs=$link_all_deplibs
19267 # Set to "yes" if exported symbols are required.
19268 always_export_symbols=$always_export_symbols
19270 # The commands to list exported symbols.
19271 export_symbols_cmds=$lt_export_symbols_cmds
19273 # Symbols that should not be listed in the preloaded symbols.
19274 exclude_expsyms=$lt_exclude_expsyms
19276 # Symbols that must always be exported.
19277 include_expsyms=$lt_include_expsyms
19279 # Commands necessary for linking programs (against libraries) with templates.
19280 prelink_cmds=$lt_prelink_cmds
19282 # Commands necessary for finishing linking programs.
19283 postlink_cmds=$lt_postlink_cmds
19285 # Specify filename containing input files.
19286 file_list_spec=$lt_file_list_spec
19288 # How to hardcode a shared library path into an executable.
19289 hardcode_action=$hardcode_action
19291 # The directories searched by this compiler when creating a shared library.
19292 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19294 # Dependencies to place before and after the objects being linked to
19295 # create a shared library.
19296 predep_objects=$lt_predep_objects
19297 postdep_objects=$lt_postdep_objects
19298 predeps=$lt_predeps
19299 postdeps=$lt_postdeps
19301 # The library search path used internally by the compiler when linking
19302 # a shared library.
19303 compiler_lib_search_path=$lt_compiler_lib_search_path
19305 # ### END LIBTOOL CONFIG
19309 cat <<'_LT_EOF' >> "$cfgfile"
19311 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19313 # func_munge_path_list VARIABLE PATH
19314 # -----------------------------------
19315 # VARIABLE is name of variable containing _space_ separated list of
19316 # directories to be munged by the contents of PATH, which is string
19319 # string "DIR[ DIR]" will be prepended to VARIABLE
19321 # string "DIR[ DIR]" will be appended to VARIABLE
19322 # "DIRP[:DIRP]::[DIRA:]DIRA"
19323 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19324 # "DIRA[ DIRA]" will be appended to VARIABLE
19326 # VARIABLE will be replaced by "DIR[ DIR]"
19327 func_munge_path_list ()
19333 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19336 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19339 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19340 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19343 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19349 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
19350 func_cc_basename ()
19352 for cc_temp in $*""; do
19354 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19355 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19360 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19364 # ### END FUNCTIONS SHARED WITH CONFIGURE
19370 cat <<\_LT_EOF >> "$cfgfile"
19371 # AIX sometimes has problems with the GCC collect2 program. For some
19372 # reason, if we set the COLLECT_NAMES environment variable, the problems
19373 # vanish in a puff of smoke.
19374 if test set != "${COLLECT_NAMES+set}"; then
19376 export COLLECT_NAMES
19383 ltmain=$ac_aux_dir/ltmain.sh
19386 # We use sed instead of cat because bash on DJGPP gets confused if
19387 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19388 # text mode, it properly converts lines to CR/LF. This bash problem
19389 # is reportedly fixed, but why not run on old versions too?
19390 sed '$q' "$ltmain" >> "$cfgfile" \
19391 || (rm -f "$cfgfile"; exit 1)
19393 mv -f "$cfgfile" "$ofile" ||
19394 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19398 cat <<_LT_EOF >> "$ofile"
19400 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19402 # The linker used to build libraries.
19405 # How to create reloadable object files.
19406 reload_flag=$lt_reload_flag_CXX
19407 reload_cmds=$lt_reload_cmds_CXX
19409 # Commands used to build an old-style archive.
19410 old_archive_cmds=$lt_old_archive_cmds_CXX
19412 # A language specific compiler.
19413 CC=$lt_compiler_CXX
19415 # Is the compiler the GNU compiler?
19418 # Compiler flag to turn off builtin functions.
19419 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19421 # Additional compiler flags for building library objects.
19422 pic_flag=$lt_lt_prog_compiler_pic_CXX
19424 # How to pass a linker flag through the compiler.
19425 wl=$lt_lt_prog_compiler_wl_CXX
19427 # Compiler flag to prevent dynamic linking.
19428 link_static_flag=$lt_lt_prog_compiler_static_CXX
19430 # Does compiler simultaneously support -c and -o options?
19431 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19433 # Whether or not to add -lc for building shared libraries.
19434 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19436 # Whether or not to disallow shared libs when runtime libs are static.
19437 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19439 # Compiler flag to allow reflexive dlopens.
19440 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19442 # Compiler flag to generate shared objects directly from archives.
19443 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19445 # Whether the compiler copes with passing no objects directly.
19446 compiler_needs_object=$lt_compiler_needs_object_CXX
19448 # Create an old-style archive from a shared archive.
19449 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19451 # Create a temporary old-style archive to link instead of a shared archive.
19452 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19454 # Commands used to build a shared archive.
19455 archive_cmds=$lt_archive_cmds_CXX
19456 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19458 # Commands used to build a loadable module if different from building
19459 # a shared archive.
19460 module_cmds=$lt_module_cmds_CXX
19461 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19463 # Whether we are building with GNU ld or not.
19464 with_gnu_ld=$lt_with_gnu_ld_CXX
19466 # Flag that allows shared libraries with undefined symbols to be built.
19467 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19469 # Flag that enforces no undefined symbols.
19470 no_undefined_flag=$lt_no_undefined_flag_CXX
19472 # Flag to hardcode \$libdir into a binary during linking.
19473 # This must work even if \$libdir does not exist
19474 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19476 # Whether we need a single "-rpath" flag with a separated argument.
19477 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19479 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19480 # DIR into the resulting binary.
19481 hardcode_direct=$hardcode_direct_CXX
19483 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19484 # DIR into the resulting binary and the resulting library dependency is
19485 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19486 # library is relocated.
19487 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19489 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19490 # into the resulting binary.
19491 hardcode_minus_L=$hardcode_minus_L_CXX
19493 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19494 # into the resulting binary.
19495 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19497 # Set to "yes" if building a shared library automatically hardcodes DIR
19498 # into the library and all subsequent libraries and executables linked
19500 hardcode_automatic=$hardcode_automatic_CXX
19502 # Set to yes if linker adds runtime paths of dependent libraries
19503 # to runtime path list.
19504 inherit_rpath=$inherit_rpath_CXX
19506 # Whether libtool must link a program against all its dependency libraries.
19507 link_all_deplibs=$link_all_deplibs_CXX
19509 # Set to "yes" if exported symbols are required.
19510 always_export_symbols=$always_export_symbols_CXX
19512 # The commands to list exported symbols.
19513 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19515 # Symbols that should not be listed in the preloaded symbols.
19516 exclude_expsyms=$lt_exclude_expsyms_CXX
19518 # Symbols that must always be exported.
19519 include_expsyms=$lt_include_expsyms_CXX
19521 # Commands necessary for linking programs (against libraries) with templates.
19522 prelink_cmds=$lt_prelink_cmds_CXX
19524 # Commands necessary for finishing linking programs.
19525 postlink_cmds=$lt_postlink_cmds_CXX
19527 # Specify filename containing input files.
19528 file_list_spec=$lt_file_list_spec_CXX
19530 # How to hardcode a shared library path into an executable.
19531 hardcode_action=$hardcode_action_CXX
19533 # The directories searched by this compiler when creating a shared library.
19534 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19536 # Dependencies to place before and after the objects being linked to
19537 # create a shared library.
19538 predep_objects=$lt_predep_objects_CXX
19539 postdep_objects=$lt_postdep_objects_CXX
19540 predeps=$lt_predeps_CXX
19541 postdeps=$lt_postdeps_CXX
19543 # The library search path used internally by the compiler when linking
19544 # a shared library.
19545 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19547 # ### END LIBTOOL TAG CONFIG: CXX
19558 ac_clean_files=$ac_clean_files_save
19560 test $ac_write_fail = 0 ||
19561 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19564 # configure is writing to config.log, and then calls config.status.
19565 # config.status does its own redirection, appending to config.log.
19566 # Unfortunately, on DOS this fails, as config.log is still kept open
19567 # by configure, so config.status won't be able to write to it; its
19568 # output is simply discarded. So we exec the FD to /dev/null,
19569 # effectively closing config.log, so it can be properly (re)opened and
19570 # appended to by config.status. When coming back to configure, we
19571 # need to make the FD available again.
19572 if test "$no_create" != yes; then
19574 ac_config_status_args=
19575 test "$silent" = yes &&
19576 ac_config_status_args="$ac_config_status_args --quiet"
19578 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19580 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19581 # would make configure fail if this is the last instruction.
19582 $ac_cs_success || as_fn_exit 1
19584 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19586 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}