2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for OpenFst 1.6.4.
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.6.4'
594 PACKAGE_STRING='OpenFst 1.6.4'
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
750 INSTALL_STRIP_PROGRAM
793 program_transform_name
806 enable_option_checking
808 enable_dependency_tracking
822 enable_lookahead_fsts
832 ac_precious_vars='build_alias
850 # Initialize some variables set by options.
852 ac_init_version=false
853 ac_unrecognized_opts=
855 # The variables have the same names as the options, with
856 # dashes changed to underlines.
864 program_transform_name=s,x,x,
872 # Installation directory options.
873 # These are left unexpanded so users can "make install exec_prefix=/foo"
874 # and all the variables that are supposed to be based on exec_prefix
875 # by default will actually change.
876 # Use braces instead of parens because sh, perl, etc. also accept them.
877 # (The list follows the same order as the GNU Coding Standards.)
878 bindir='${exec_prefix}/bin'
879 sbindir='${exec_prefix}/sbin'
880 libexecdir='${exec_prefix}/libexec'
881 datarootdir='${prefix}/share'
882 datadir='${datarootdir}'
883 sysconfdir='${prefix}/etc'
884 sharedstatedir='${prefix}/com'
885 localstatedir='${prefix}/var'
886 runstatedir='${localstatedir}/run'
887 includedir='${prefix}/include'
888 oldincludedir='/usr/include'
889 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
890 infodir='${datarootdir}/info'
895 libdir='${exec_prefix}/lib'
896 localedir='${datarootdir}/locale'
897 mandir='${datarootdir}/man'
903 # If the previous option needs an argument, assign it.
904 if test -n "$ac_prev"; then
905 eval $ac_prev=\$ac_option
911 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
916 # Accept the important Cygnus configure options, so we can diagnose typos.
918 case $ac_dashdash$ac_option in
922 -bindir | --bindir | --bindi | --bind | --bin | --bi)
924 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
927 -build | --build | --buil | --bui | --bu)
928 ac_prev=build_alias ;;
929 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
930 build_alias=$ac_optarg ;;
932 -cache-file | --cache-file | --cache-fil | --cache-fi \
933 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
934 ac_prev=cache_file ;;
935 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
936 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
937 cache_file=$ac_optarg ;;
940 cache_file=config.cache ;;
942 -datadir | --datadir | --datadi | --datad)
944 -datadir=* | --datadir=* | --datadi=* | --datad=*)
945 datadir=$ac_optarg ;;
947 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
948 | --dataroo | --dataro | --datar)
949 ac_prev=datarootdir ;;
950 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
951 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
952 datarootdir=$ac_optarg ;;
954 -disable-* | --disable-*)
955 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
956 # Reject names that are not valid shell variable names.
957 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
958 as_fn_error $? "invalid feature name: $ac_useropt"
959 ac_useropt_orig=$ac_useropt
960 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
961 case $ac_user_opts in
965 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
966 ac_unrecognized_sep=', ';;
968 eval enable_$ac_useropt=no ;;
970 -docdir | --docdir | --docdi | --doc | --do)
972 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
975 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
977 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
980 -enable-* | --enable-*)
981 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
982 # Reject names that are not valid shell variable names.
983 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
984 as_fn_error $? "invalid feature name: $ac_useropt"
985 ac_useropt_orig=$ac_useropt
986 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
987 case $ac_user_opts in
991 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
992 ac_unrecognized_sep=', ';;
994 eval enable_$ac_useropt=\$ac_optarg ;;
996 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
997 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
998 | --exec | --exe | --ex)
999 ac_prev=exec_prefix ;;
1000 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1001 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1002 | --exec=* | --exe=* | --ex=*)
1003 exec_prefix=$ac_optarg ;;
1005 -gas | --gas | --ga | --g)
1006 # Obsolete; use --with-gas.
1009 -help | --help | --hel | --he | -h)
1010 ac_init_help=long ;;
1011 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1012 ac_init_help=recursive ;;
1013 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1014 ac_init_help=short ;;
1016 -host | --host | --hos | --ho)
1017 ac_prev=host_alias ;;
1018 -host=* | --host=* | --hos=* | --ho=*)
1019 host_alias=$ac_optarg ;;
1021 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1023 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1025 htmldir=$ac_optarg ;;
1027 -includedir | --includedir | --includedi | --included | --include \
1028 | --includ | --inclu | --incl | --inc)
1029 ac_prev=includedir ;;
1030 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1031 | --includ=* | --inclu=* | --incl=* | --inc=*)
1032 includedir=$ac_optarg ;;
1034 -infodir | --infodir | --infodi | --infod | --info | --inf)
1036 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1037 infodir=$ac_optarg ;;
1039 -libdir | --libdir | --libdi | --libd)
1041 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1042 libdir=$ac_optarg ;;
1044 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1045 | --libexe | --libex | --libe)
1046 ac_prev=libexecdir ;;
1047 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1048 | --libexe=* | --libex=* | --libe=*)
1049 libexecdir=$ac_optarg ;;
1051 -localedir | --localedir | --localedi | --localed | --locale)
1052 ac_prev=localedir ;;
1053 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1054 localedir=$ac_optarg ;;
1056 -localstatedir | --localstatedir | --localstatedi | --localstated \
1057 | --localstate | --localstat | --localsta | --localst | --locals)
1058 ac_prev=localstatedir ;;
1059 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1060 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1061 localstatedir=$ac_optarg ;;
1063 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1065 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1066 mandir=$ac_optarg ;;
1068 -nfp | --nfp | --nf)
1069 # Obsolete; use --without-fp.
1072 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1073 | --no-cr | --no-c | -n)
1076 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1077 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1080 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1081 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1082 | --oldin | --oldi | --old | --ol | --o)
1083 ac_prev=oldincludedir ;;
1084 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1085 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1086 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1087 oldincludedir=$ac_optarg ;;
1089 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1091 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1092 prefix=$ac_optarg ;;
1094 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1095 | --program-pre | --program-pr | --program-p)
1096 ac_prev=program_prefix ;;
1097 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1098 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1099 program_prefix=$ac_optarg ;;
1101 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1102 | --program-suf | --program-su | --program-s)
1103 ac_prev=program_suffix ;;
1104 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1105 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1106 program_suffix=$ac_optarg ;;
1108 -program-transform-name | --program-transform-name \
1109 | --program-transform-nam | --program-transform-na \
1110 | --program-transform-n | --program-transform- \
1111 | --program-transform | --program-transfor \
1112 | --program-transfo | --program-transf \
1113 | --program-trans | --program-tran \
1114 | --progr-tra | --program-tr | --program-t)
1115 ac_prev=program_transform_name ;;
1116 -program-transform-name=* | --program-transform-name=* \
1117 | --program-transform-nam=* | --program-transform-na=* \
1118 | --program-transform-n=* | --program-transform-=* \
1119 | --program-transform=* | --program-transfor=* \
1120 | --program-transfo=* | --program-transf=* \
1121 | --program-trans=* | --program-tran=* \
1122 | --progr-tra=* | --program-tr=* | --program-t=*)
1123 program_transform_name=$ac_optarg ;;
1125 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1127 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1128 pdfdir=$ac_optarg ;;
1130 -psdir | --psdir | --psdi | --psd | --ps)
1132 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1135 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1136 | -silent | --silent | --silen | --sile | --sil)
1139 -runstatedir | --runstatedir | --runstatedi | --runstated \
1140 | --runstate | --runstat | --runsta | --runst | --runs \
1141 | --run | --ru | --r)
1142 ac_prev=runstatedir ;;
1143 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1144 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1145 | --run=* | --ru=* | --r=*)
1146 runstatedir=$ac_optarg ;;
1148 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1150 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1152 sbindir=$ac_optarg ;;
1154 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1155 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1156 | --sharedst | --shareds | --shared | --share | --shar \
1158 ac_prev=sharedstatedir ;;
1159 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1160 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1161 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1163 sharedstatedir=$ac_optarg ;;
1165 -site | --site | --sit)
1167 -site=* | --site=* | --sit=*)
1170 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1172 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1173 srcdir=$ac_optarg ;;
1175 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1176 | --syscon | --sysco | --sysc | --sys | --sy)
1177 ac_prev=sysconfdir ;;
1178 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1179 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1180 sysconfdir=$ac_optarg ;;
1182 -target | --target | --targe | --targ | --tar | --ta | --t)
1183 ac_prev=target_alias ;;
1184 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1185 target_alias=$ac_optarg ;;
1187 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1190 -version | --version | --versio | --versi | --vers | -V)
1191 ac_init_version=: ;;
1194 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197 as_fn_error $? "invalid package name: $ac_useropt"
1198 ac_useropt_orig=$ac_useropt
1199 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1204 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1205 ac_unrecognized_sep=', ';;
1207 eval with_$ac_useropt=\$ac_optarg ;;
1209 -without-* | --without-*)
1210 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1211 # Reject names that are not valid shell variable names.
1212 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213 as_fn_error $? "invalid package name: $ac_useropt"
1214 ac_useropt_orig=$ac_useropt
1215 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1216 case $ac_user_opts in
1220 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1221 ac_unrecognized_sep=', ';;
1223 eval with_$ac_useropt=no ;;
1226 # Obsolete; use --with-x.
1229 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1230 | --x-incl | --x-inc | --x-in | --x-i)
1231 ac_prev=x_includes ;;
1232 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1233 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1234 x_includes=$ac_optarg ;;
1236 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1237 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1238 ac_prev=x_libraries ;;
1239 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1240 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1241 x_libraries=$ac_optarg ;;
1243 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1244 Try \`$0 --help' for more information"
1248 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1249 # Reject names that are not valid shell variable names.
1250 case $ac_envvar in #(
1251 '' | [0-9]* | *[!_$as_cr_alnum]* )
1252 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1254 eval $ac_envvar=\$ac_optarg
1255 export $ac_envvar ;;
1258 # FIXME: should be removed in autoconf 3.0.
1259 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1260 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1261 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1262 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1268 if test -n "$ac_prev"; then
1269 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1270 as_fn_error $? "missing argument to $ac_option"
1273 if test -n "$ac_unrecognized_opts"; then
1274 case $enable_option_checking in
1276 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1277 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1281 # Check all directory arguments for consistency.
1282 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1283 datadir sysconfdir sharedstatedir localstatedir includedir \
1284 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1285 libdir localedir mandir runstatedir
1287 eval ac_val=\$$ac_var
1288 # Remove trailing slashes.
1291 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1292 eval $ac_var=\$ac_val;;
1294 # Be sure to have absolute directory names.
1296 [\\/$]* | ?:[\\/]* ) continue;;
1297 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1299 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1302 # There might be people who depend on the old broken behavior: `$host'
1303 # used to hold the argument of --host etc.
1304 # FIXME: To remove some day.
1307 target=$target_alias
1309 # FIXME: To remove some day.
1310 if test "x$host_alias" != x; then
1311 if test "x$build_alias" = x; then
1312 cross_compiling=maybe
1313 elif test "x$build_alias" != "x$host_alias"; then
1319 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1321 test "$silent" = yes && exec 6>/dev/null
1324 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325 ac_ls_di=`ls -di .` &&
1326 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1327 as_fn_error $? "working directory cannot be determined"
1328 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1329 as_fn_error $? "pwd does not report name of working directory"
1332 # Find the source files, if location was not specified.
1333 if test -z "$srcdir"; then
1334 ac_srcdir_defaulted=yes
1335 # Try the directory containing this script, then the parent directory.
1336 ac_confdir=`$as_dirname -- "$as_myself" ||
1337 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1338 X"$as_myself" : 'X\(//\)[^/]' \| \
1339 X"$as_myself" : 'X\(//\)$' \| \
1340 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1341 $as_echo X"$as_myself" |
1342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1364 ac_srcdir_defaulted=no
1366 if test ! -r "$srcdir/$ac_unique_file"; then
1367 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1368 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1370 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1372 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1374 # When building in place, set srcdir=.
1375 if test "$ac_abs_confdir" = "$ac_pwd"; then
1378 # Remove unnecessary trailing slashes from srcdir.
1379 # Double slashes in file names in object file debugging info
1380 # mess up M-x gdb in Emacs.
1382 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1384 for ac_var in $ac_precious_vars; do
1385 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_env_${ac_var}_value=\$${ac_var}
1387 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1388 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1392 # Report the --help message.
1394 if test "$ac_init_help" = "long"; then
1395 # Omit some internal or obsolete options to make the list less imposing.
1396 # This message is too long to be a string in the A/UX 3.1 sh.
1398 \`configure' configures OpenFst 1.6.4 to adapt to many kinds of systems.
1400 Usage: $0 [OPTION]... [VAR=VALUE]...
1402 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1403 VAR=VALUE. See below for descriptions of some of the useful variables.
1405 Defaults for the options are specified in brackets.
1408 -h, --help display this help and exit
1409 --help=short display options specific to this package
1410 --help=recursive display the short help of all the included packages
1411 -V, --version display version information and exit
1412 -q, --quiet, --silent do not print \`checking ...' messages
1413 --cache-file=FILE cache test results in FILE [disabled]
1414 -C, --config-cache alias for \`--cache-file=config.cache'
1415 -n, --no-create do not create output files
1416 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1418 Installation directories:
1419 --prefix=PREFIX install architecture-independent files in PREFIX
1420 [$ac_default_prefix]
1421 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1424 By default, \`make install' will install all the files in
1425 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1426 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1427 for instance \`--prefix=\$HOME'.
1429 For better control, use the options below.
1431 Fine tuning of the installation directories:
1432 --bindir=DIR user executables [EPREFIX/bin]
1433 --sbindir=DIR system admin executables [EPREFIX/sbin]
1434 --libexecdir=DIR program executables [EPREFIX/libexec]
1435 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1436 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1437 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1438 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1439 --libdir=DIR object code libraries [EPREFIX/lib]
1440 --includedir=DIR C header files [PREFIX/include]
1441 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1442 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1443 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1444 --infodir=DIR info documentation [DATAROOTDIR/info]
1445 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1446 --mandir=DIR man documentation [DATAROOTDIR/man]
1447 --docdir=DIR documentation root [DATAROOTDIR/doc/openfst]
1448 --htmldir=DIR html documentation [DOCDIR]
1449 --dvidir=DIR dvi documentation [DOCDIR]
1450 --pdfdir=DIR pdf documentation [DOCDIR]
1451 --psdir=DIR ps documentation [DOCDIR]
1457 --program-prefix=PREFIX prepend PREFIX to installed program names
1458 --program-suffix=SUFFIX append SUFFIX to installed program names
1459 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1462 --build=BUILD configure for building on BUILD [guessed]
1463 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1467 if test -n "$ac_init_help"; then
1468 case $ac_init_help in
1469 short | recursive ) echo "Configuration of OpenFst 1.6.4:";;
1474 --disable-option-checking ignore unrecognized --enable/--with options
1475 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1476 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1477 --enable-silent-rules less verbose build output (undo: "make V=1")
1478 --disable-silent-rules verbose build output (undo: "make V=0")
1479 --enable-dependency-tracking
1480 do not reject slow dependency extractors
1481 --disable-dependency-tracking
1482 speeds up one-time build
1483 --enable-static[=PKGS] build static libraries [default=no]
1484 --enable-shared[=PKGS] build shared libraries [default=yes]
1485 --enable-fast-install[=PKGS]
1486 optimize for fast installation [default=yes]
1487 --disable-libtool-lock avoid locking (might break parallel builds)
1488 --enable-compact-fsts enable CompactFst extensions
1489 --enable-compress enable compression extension
1490 --enable-const-fsts enable ConstFst extensions
1491 --enable-far enable FAR extensions
1492 --enable-linear-fsts enable LinearTagger/ClassifierFst extensions
1493 --enable-lookahead-fsts enable LookAheadFst extensions
1494 --enable-mpdt enable MPDT extensions
1495 --enable-ngram-fsts enable NGramFst extension
1496 --enable-pdt enable PDT extensions
1497 --enable-python enable Python extensions
1498 --enable-special enable special-matcher extensions
1499 --enable-bin enable fst::script and command-line binaries
1500 --enable-grm enable all dependencies of OpenGrm
1503 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1504 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1505 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1507 --with-aix-soname=aix|svr4|both
1508 shared library versioning (aka "SONAME") variant to
1509 provide on AIX, [default=aix].
1510 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1511 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1512 compiler's sysroot if not specified).
1513 --with-libfstdir=DIR fst dynamic extensions [LIBDIR/fst]
1515 Some influential environment variables:
1516 CC C compiler command
1517 CFLAGS C compiler flags
1518 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1519 nonstandard directory <lib dir>
1520 LIBS libraries to pass to the linker, e.g. -l<library>
1521 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1522 you have headers in a nonstandard directory <include dir>
1523 CXX C++ compiler command
1524 CXXFLAGS C++ compiler flags
1526 User-defined run-time library search path.
1528 CXXCPP C++ preprocessor
1529 PYTHON the Python interpreter
1531 The installed Python version to use, for example '2.3'. This
1532 string will be appended to the Python interpreter canonical
1535 Use these variables to override the choices made by `configure' or to help
1536 it to find libraries and programs with nonstandard names/locations.
1538 Report bugs to <help@www.openfst.org>.
1543 if test "$ac_init_help" = "recursive"; then
1544 # If there are subdirs, report their specific --help.
1545 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1546 test -d "$ac_dir" ||
1547 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1552 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1554 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1555 # A ".." for each directory in $ac_dir_suffix.
1556 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1557 case $ac_top_builddir_sub in
1558 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1562 ac_abs_top_builddir=$ac_pwd
1563 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1564 # for backward compatibility:
1565 ac_top_builddir=$ac_top_build_prefix
1568 .) # We are building in place.
1570 ac_top_srcdir=$ac_top_builddir_sub
1571 ac_abs_top_srcdir=$ac_pwd ;;
1572 [\\/]* | ?:[\\/]* ) # Absolute name.
1573 ac_srcdir=$srcdir$ac_dir_suffix;
1574 ac_top_srcdir=$srcdir
1575 ac_abs_top_srcdir=$srcdir ;;
1577 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1578 ac_top_srcdir=$ac_top_build_prefix$srcdir
1579 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1581 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1583 cd "$ac_dir" || { ac_status=$?; continue; }
1584 # Check for guested configure.
1585 if test -f "$ac_srcdir/configure.gnu"; then
1587 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1588 elif test -f "$ac_srcdir/configure"; then
1590 $SHELL "$ac_srcdir/configure" --help=recursive
1592 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1594 cd "$ac_pwd" || { ac_status=$?; break; }
1598 test -n "$ac_init_help" && exit $ac_status
1599 if $ac_init_version; then
1601 OpenFst configure 1.6.4
1602 generated by GNU Autoconf 2.69
1604 Copyright (C) 2012 Free Software Foundation, Inc.
1605 This configure script is free software; the Free Software Foundation
1606 gives unlimited permission to copy, distribute and modify it.
1611 ## ------------------------ ##
1612 ## Autoconf initialization. ##
1613 ## ------------------------ ##
1615 # ac_fn_c_try_compile LINENO
1616 # --------------------------
1617 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1618 ac_fn_c_try_compile ()
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621 rm -f conftest.$ac_objext
1622 if { { ac_try="$ac_compile"
1624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625 *) ac_try_echo=$ac_try;;
1627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628 $as_echo "$ac_try_echo"; } >&5
1629 (eval "$ac_compile") 2>conftest.err
1631 if test -s conftest.err; then
1632 grep -v '^ *+' conftest.err >conftest.er1
1633 cat conftest.er1 >&5
1634 mv -f conftest.er1 conftest.err
1636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637 test $ac_status = 0; } && {
1638 test -z "$ac_c_werror_flag" ||
1639 test ! -s conftest.err
1640 } && test -s conftest.$ac_objext; then :
1643 $as_echo "$as_me: failed program was:" >&5
1644 sed 's/^/| /' conftest.$ac_ext >&5
1648 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649 as_fn_set_status $ac_retval
1651 } # ac_fn_c_try_compile
1653 # ac_fn_cxx_try_compile LINENO
1654 # ----------------------------
1655 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1656 ac_fn_cxx_try_compile ()
1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659 rm -f conftest.$ac_objext
1660 if { { ac_try="$ac_compile"
1662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1663 *) ac_try_echo=$ac_try;;
1665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666 $as_echo "$ac_try_echo"; } >&5
1667 (eval "$ac_compile") 2>conftest.err
1669 if test -s conftest.err; then
1670 grep -v '^ *+' conftest.err >conftest.er1
1671 cat conftest.er1 >&5
1672 mv -f conftest.er1 conftest.err
1674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675 test $ac_status = 0; } && {
1676 test -z "$ac_cxx_werror_flag" ||
1677 test ! -s conftest.err
1678 } && test -s conftest.$ac_objext; then :
1681 $as_echo "$as_me: failed program was:" >&5
1682 sed 's/^/| /' conftest.$ac_ext >&5
1686 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1687 as_fn_set_status $ac_retval
1689 } # ac_fn_cxx_try_compile
1691 # ac_fn_c_try_link LINENO
1692 # -----------------------
1693 # Try to link conftest.$ac_ext, and return whether this succeeded.
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 rm -f conftest.$ac_objext conftest$ac_exeext
1698 if { { ac_try="$ac_link"
1700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701 *) ac_try_echo=$ac_try;;
1703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704 $as_echo "$ac_try_echo"; } >&5
1705 (eval "$ac_link") 2>conftest.err
1707 if test -s conftest.err; then
1708 grep -v '^ *+' conftest.err >conftest.er1
1709 cat conftest.er1 >&5
1710 mv -f conftest.er1 conftest.err
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; } && {
1714 test -z "$ac_c_werror_flag" ||
1715 test ! -s conftest.err
1716 } && test -s conftest$ac_exeext && {
1717 test "$cross_compiling" = yes ||
1718 test -x conftest$ac_exeext
1722 $as_echo "$as_me: failed program was:" >&5
1723 sed 's/^/| /' conftest.$ac_ext >&5
1727 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1728 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1729 # interfere with the next link command; also delete a directory that is
1730 # left behind by Apple's compiler. We do this before executing the actions.
1731 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733 as_fn_set_status $ac_retval
1735 } # ac_fn_c_try_link
1737 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1738 # -------------------------------------------------------
1739 # Tests whether HEADER exists and can be compiled using the include files in
1740 # INCLUDES, setting the cache variable VAR accordingly.
1741 ac_fn_c_check_header_compile ()
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1745 $as_echo_n "checking for $2... " >&6; }
1746 if eval \${$3+:} false; then :
1747 $as_echo_n "(cached) " >&6
1749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750 /* end confdefs.h. */
1754 if ac_fn_c_try_compile "$LINENO"; then :
1759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1763 $as_echo "$ac_res" >&6; }
1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1766 } # ac_fn_c_check_header_compile
1768 # ac_fn_c_try_cpp LINENO
1769 # ----------------------
1770 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 if { { ac_try="$ac_cpp conftest.$ac_ext"
1776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777 *) ac_try_echo=$ac_try;;
1779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780 $as_echo "$ac_try_echo"; } >&5
1781 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1783 if test -s conftest.err; then
1784 grep -v '^ *+' conftest.err >conftest.er1
1785 cat conftest.er1 >&5
1786 mv -f conftest.er1 conftest.err
1788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789 test $ac_status = 0; } > conftest.i && {
1790 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1791 test ! -s conftest.err
1795 $as_echo "$as_me: failed program was:" >&5
1796 sed 's/^/| /' conftest.$ac_ext >&5
1800 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801 as_fn_set_status $ac_retval
1805 # ac_fn_c_try_run LINENO
1806 # ----------------------
1807 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1808 # that executables *can* be run.
1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812 if { { ac_try="$ac_link"
1814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1815 *) ac_try_echo=$ac_try;;
1817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1818 $as_echo "$ac_try_echo"; } >&5
1819 (eval "$ac_link") 2>&5
1821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1822 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1823 { { case "(($ac_try" in
1824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1825 *) ac_try_echo=$ac_try;;
1827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1828 $as_echo "$ac_try_echo"; } >&5
1829 (eval "$ac_try") 2>&5
1831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1832 test $ac_status = 0; }; }; then :
1835 $as_echo "$as_me: program exited with status $ac_status" >&5
1836 $as_echo "$as_me: failed program was:" >&5
1837 sed 's/^/| /' conftest.$ac_ext >&5
1839 ac_retval=$ac_status
1841 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1843 as_fn_set_status $ac_retval
1847 # ac_fn_c_check_func LINENO FUNC VAR
1848 # ----------------------------------
1849 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1850 ac_fn_c_check_func ()
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1854 $as_echo_n "checking for $2... " >&6; }
1855 if eval \${$3+:} false; then :
1856 $as_echo_n "(cached) " >&6
1858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1859 /* end confdefs.h. */
1860 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1862 #define $2 innocuous_$2
1864 /* System header to define __stub macros and hopefully few prototypes,
1865 which can conflict with char $2 (); below.
1866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1867 <limits.h> exists even on freestanding compilers. */
1870 # include <limits.h>
1872 # include <assert.h>
1877 /* Override any GCC internal prototype to avoid an error.
1878 Use char because int might match the return type of a GCC
1879 builtin and then its argument prototype would still apply. */
1884 /* The GNU C library defines this for functions which it implements
1885 to always fail with ENOSYS. Some functions are actually named
1886 something starting with __ and the normal name is an alias. */
1887 #if defined __stub_$2 || defined __stub___$2
1899 if ac_fn_c_try_link "$LINENO"; then :
1904 rm -f core conftest.err conftest.$ac_objext \
1905 conftest$ac_exeext conftest.$ac_ext
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1909 $as_echo "$ac_res" >&6; }
1910 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1912 } # ac_fn_c_check_func
1914 # ac_fn_cxx_try_cpp LINENO
1915 # ------------------------
1916 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1917 ac_fn_cxx_try_cpp ()
1919 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920 if { { ac_try="$ac_cpp conftest.$ac_ext"
1922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1923 *) ac_try_echo=$ac_try;;
1925 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1926 $as_echo "$ac_try_echo"; } >&5
1927 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1929 if test -s conftest.err; then
1930 grep -v '^ *+' conftest.err >conftest.er1
1931 cat conftest.er1 >&5
1932 mv -f conftest.er1 conftest.err
1934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1935 test $ac_status = 0; } > conftest.i && {
1936 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1937 test ! -s conftest.err
1941 $as_echo "$as_me: failed program was:" >&5
1942 sed 's/^/| /' conftest.$ac_ext >&5
1946 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1947 as_fn_set_status $ac_retval
1949 } # ac_fn_cxx_try_cpp
1951 # ac_fn_cxx_try_link LINENO
1952 # -------------------------
1953 # Try to link conftest.$ac_ext, and return whether this succeeded.
1954 ac_fn_cxx_try_link ()
1956 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957 rm -f conftest.$ac_objext conftest$ac_exeext
1958 if { { ac_try="$ac_link"
1960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1961 *) ac_try_echo=$ac_try;;
1963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1964 $as_echo "$ac_try_echo"; } >&5
1965 (eval "$ac_link") 2>conftest.err
1967 if test -s conftest.err; then
1968 grep -v '^ *+' conftest.err >conftest.er1
1969 cat conftest.er1 >&5
1970 mv -f conftest.er1 conftest.err
1972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1973 test $ac_status = 0; } && {
1974 test -z "$ac_cxx_werror_flag" ||
1975 test ! -s conftest.err
1976 } && test -s conftest$ac_exeext && {
1977 test "$cross_compiling" = yes ||
1978 test -x conftest$ac_exeext
1982 $as_echo "$as_me: failed program was:" >&5
1983 sed 's/^/| /' conftest.$ac_ext >&5
1987 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1988 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1989 # interfere with the next link command; also delete a directory that is
1990 # left behind by Apple's compiler. We do this before executing the actions.
1991 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1992 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1993 as_fn_set_status $ac_retval
1995 } # ac_fn_cxx_try_link
1996 cat >config.log <<_ACEOF
1997 This file contains any messages produced by compilers while
1998 running configure, to aid debugging if configure makes a mistake.
2000 It was created by OpenFst $as_me 1.6.4, which was
2001 generated by GNU Autoconf 2.69. Invocation command line was
2013 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2014 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2015 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2016 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2017 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2019 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2020 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2022 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2023 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2024 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2025 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2026 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2027 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2028 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2036 test -z "$as_dir" && as_dir=.
2037 $as_echo "PATH: $as_dir"
2053 # Keep a trace of the command line.
2054 # Strip out --no-create and --no-recursion so they do not pile up.
2055 # Strip out --silent because we don't want to record it for future runs.
2056 # Also quote any args containing shell meta-characters.
2057 # Make two passes to allow for proper duplicate-argument suppression.
2061 ac_must_keep_next=false
2067 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2069 | -silent | --silent | --silen | --sile | --sil)
2072 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2075 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2077 as_fn_append ac_configure_args1 " '$ac_arg'"
2078 if test $ac_must_keep_next = true; then
2079 ac_must_keep_next=false # Got value, back to normal.
2082 *=* | --config-cache | -C | -disable-* | --disable-* \
2083 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2084 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2085 | -with-* | --with-* | -without-* | --without-* | --x)
2086 case "$ac_configure_args0 " in
2087 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2090 -* ) ac_must_keep_next=true ;;
2093 as_fn_append ac_configure_args " '$ac_arg'"
2098 { ac_configure_args0=; unset ac_configure_args0;}
2099 { ac_configure_args1=; unset ac_configure_args1;}
2101 # When interrupted or exit'd, cleanup temporary files, and complete
2102 # config.log. We remove comments because anyway the quotes in there
2103 # would cause problems or look ugly.
2104 # WARNING: Use '\'' to represent an apostrophe within the trap.
2105 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2106 trap 'exit_status=$?
2107 # Save into config.log some information that might help in debugging.
2111 $as_echo "## ---------------- ##
2112 ## Cache variables. ##
2113 ## ---------------- ##"
2115 # The following way of writing the cache mishandles newlines in values,
2117 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2118 eval ac_val=\$$ac_var
2122 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2123 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2126 _ | IFS | as_nl) ;; #(
2127 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2128 *) { eval $ac_var=; unset $ac_var;} ;;
2133 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2134 *${as_nl}ac_space=\ *)
2136 "s/'\''/'\''\\\\'\'''\''/g;
2137 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2140 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2147 $as_echo "## ----------------- ##
2148 ## Output variables. ##
2149 ## ----------------- ##"
2151 for ac_var in $ac_subst_vars
2153 eval ac_val=\$$ac_var
2155 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2157 $as_echo "$ac_var='\''$ac_val'\''"
2161 if test -n "$ac_subst_files"; then
2162 $as_echo "## ------------------- ##
2163 ## File substitutions. ##
2164 ## ------------------- ##"
2166 for ac_var in $ac_subst_files
2168 eval ac_val=\$$ac_var
2170 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2172 $as_echo "$ac_var='\''$ac_val'\''"
2177 if test -s confdefs.h; then
2178 $as_echo "## ----------- ##
2185 test "$ac_signal" != 0 &&
2186 $as_echo "$as_me: caught signal $ac_signal"
2187 $as_echo "$as_me: exit $exit_status"
2189 rm -f core *.core core.conftest.* &&
2190 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2193 for ac_signal in 1 2 13 15; do
2194 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2198 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2199 rm -f -r conftest* confdefs.h
2201 $as_echo "/* confdefs.h */" > confdefs.h
2203 # Predefined preprocessor variables.
2205 cat >>confdefs.h <<_ACEOF
2206 #define PACKAGE_NAME "$PACKAGE_NAME"
2209 cat >>confdefs.h <<_ACEOF
2210 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2213 cat >>confdefs.h <<_ACEOF
2214 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2217 cat >>confdefs.h <<_ACEOF
2218 #define PACKAGE_STRING "$PACKAGE_STRING"
2221 cat >>confdefs.h <<_ACEOF
2222 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2225 cat >>confdefs.h <<_ACEOF
2226 #define PACKAGE_URL "$PACKAGE_URL"
2230 # Let the site file select an alternate cache file if it wants to.
2231 # Prefer an explicitly selected file to automatically selected ones.
2234 if test -n "$CONFIG_SITE"; then
2235 # We do not want a PATH search for config.site.
2236 case $CONFIG_SITE in #((
2237 -*) ac_site_file1=./$CONFIG_SITE;;
2238 */*) ac_site_file1=$CONFIG_SITE;;
2239 *) ac_site_file1=./$CONFIG_SITE;;
2241 elif test "x$prefix" != xNONE; then
2242 ac_site_file1=$prefix/share/config.site
2243 ac_site_file2=$prefix/etc/config.site
2245 ac_site_file1=$ac_default_prefix/share/config.site
2246 ac_site_file2=$ac_default_prefix/etc/config.site
2248 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2250 test "x$ac_site_file" = xNONE && continue
2251 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2253 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2254 sed 's/^/| /' "$ac_site_file" >&5
2256 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2258 as_fn_error $? "failed to load site script $ac_site_file
2259 See \`config.log' for more details" "$LINENO" 5; }
2263 if test -r "$cache_file"; then
2264 # Some versions of bash will fail to source /dev/null (special files
2265 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2266 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2268 $as_echo "$as_me: loading cache $cache_file" >&6;}
2270 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2271 *) . "./$cache_file";;
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2276 $as_echo "$as_me: creating cache $cache_file" >&6;}
2280 # Check that the precious variables saved in the cache have kept the same
2282 ac_cache_corrupted=false
2283 for ac_var in $ac_precious_vars; do
2284 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2285 eval ac_new_set=\$ac_env_${ac_var}_set
2286 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2287 eval ac_new_val=\$ac_env_${ac_var}_value
2288 case $ac_old_set,$ac_new_set in
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2291 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2292 ac_cache_corrupted=: ;;
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2295 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2296 ac_cache_corrupted=: ;;
2299 if test "x$ac_old_val" != "x$ac_new_val"; then
2300 # differences in whitespace do not lead to failure.
2301 ac_old_val_w=`echo x $ac_old_val`
2302 ac_new_val_w=`echo x $ac_new_val`
2303 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2305 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2306 ac_cache_corrupted=:
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2309 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2310 eval $ac_var=\$ac_old_val
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2313 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2315 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2318 # Pass precious variables to config.status.
2319 if test "$ac_new_set" = set; then
2321 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2322 *) ac_arg=$ac_var=$ac_new_val ;;
2324 case " $ac_configure_args " in
2325 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2326 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2330 if $ac_cache_corrupted; then
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2332 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2334 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2335 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2337 ## -------------------- ##
2338 ## Main body of script. ##
2339 ## -------------------- ##
2342 ac_cpp='$CPP $CPPFLAGS'
2343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2348 am__api_version='1.15'
2351 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2352 if test -f "$ac_dir/install-sh"; then
2354 ac_install_sh="$ac_aux_dir/install-sh -c"
2356 elif test -f "$ac_dir/install.sh"; then
2358 ac_install_sh="$ac_aux_dir/install.sh -c"
2360 elif test -f "$ac_dir/shtool"; then
2362 ac_install_sh="$ac_aux_dir/shtool install -c"
2366 if test -z "$ac_aux_dir"; then
2367 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2370 # These three variables are undocumented and unsupported,
2371 # and are intended to be withdrawn in a future Autoconf release.
2372 # They can cause serious problems if a builder's source tree is in a directory
2373 # whose full name contains unusual characters.
2374 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2375 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2376 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2379 # Find a good install program. We prefer a C program (faster),
2380 # so one script is as good as another. But avoid the broken or
2381 # incompatible versions:
2382 # SysV /etc/install, /usr/sbin/install
2383 # SunOS /usr/etc/install
2384 # IRIX /sbin/install
2386 # AmigaOS /C/install, which installs bootblocks on floppy discs
2387 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2388 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2389 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2390 # OS/2's system install, which has a completely different semantic
2391 # ./install, which can be erroneously created by make from ./install.sh.
2392 # Reject install programs that cannot install multiple files.
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2394 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2395 if test -z "$INSTALL"; then
2396 if ${ac_cv_path_install+:} false; then :
2397 $as_echo_n "(cached) " >&6
2399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403 test -z "$as_dir" && as_dir=.
2404 # Account for people who put trailing slashes in PATH elements.
2405 case $as_dir/ in #((
2406 ./ | .// | /[cC]/* | \
2407 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2408 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2411 # OSF1 and SCO ODT 3.0 have their own names for install.
2412 # Don't use installbsd from OSF since it installs stuff as root
2414 for ac_prog in ginstall scoinst install; do
2415 for ac_exec_ext in '' $ac_executable_extensions; do
2416 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2417 if test $ac_prog = install &&
2418 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2419 # AIX install. It has an incompatible calling convention.
2421 elif test $ac_prog = install &&
2422 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2423 # program-specific install script used by HP pwplus--don't use.
2426 rm -rf conftest.one conftest.two conftest.dir
2427 echo one > conftest.one
2428 echo two > conftest.two
2430 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2431 test -s conftest.one && test -s conftest.two &&
2432 test -s conftest.dir/conftest.one &&
2433 test -s conftest.dir/conftest.two
2435 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2448 rm -rf conftest.one conftest.two conftest.dir
2451 if test "${ac_cv_path_install+set}" = set; then
2452 INSTALL=$ac_cv_path_install
2454 # As a last resort, use the slow shell script. Don't cache a
2455 # value for INSTALL within a source directory, because that will
2456 # break other packages using the cache if that directory is
2457 # removed, or if the value is a relative name.
2458 INSTALL=$ac_install_sh
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2462 $as_echo "$INSTALL" >&6; }
2464 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2465 # It thinks the first close brace ends the variable substitution.
2466 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2468 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2470 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2473 $as_echo_n "checking whether build environment is sane... " >&6; }
2474 # Reject unsafe characters in $srcdir or the absolute working directory
2475 # name. Accept space and tab only in the latter.
2479 *[\\\"\#\$\&\'\`$am_lf]*)
2480 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2483 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2484 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2487 # Do 'set' in a subshell so we don't clobber the current shell's
2488 # arguments. Must try -L first in case configure is actually a
2489 # symlink; some systems play weird games with the mod time of symlinks
2490 # (eg FreeBSD returns the mod time of the symlink's containing
2494 for am_try in 1 2; do
2495 echo "timestamp, slept: $am_has_slept" > conftest.file
2496 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2497 if test "$*" = "X"; then
2499 set X `ls -t "$srcdir/configure" conftest.file`
2501 if test "$*" != "X $srcdir/configure conftest.file" \
2502 && test "$*" != "X conftest.file $srcdir/configure"; then
2504 # If neither matched, then we have a broken ls. This can happen
2505 # if, for instance, CONFIG_SHELL is bash and it inherits a
2506 # broken ls alias from the environment. This has actually
2507 # happened. Such a system could not be considered "sane".
2508 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2509 alias in your environment" "$LINENO" 5
2511 if test "$2" = conftest.file || test $am_try -eq 2; then
2518 test "$2" = conftest.file
2524 as_fn_error $? "newly created file is older than distributed files!
2525 Check your system clock" "$LINENO" 5
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2528 $as_echo "yes" >&6; }
2529 # If we didn't sleep, we still need to ensure time stamps of config.status and
2530 # generated files are strictly newer.
2532 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2539 test "$program_prefix" != NONE &&
2540 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2541 # Use a double $ so make ignores it.
2542 test "$program_suffix" != NONE &&
2543 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2544 # Double any \ or $.
2545 # By default was `s,x,x', remove it if useless.
2546 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2547 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2549 # Expand $ac_aux_dir to an absolute path.
2550 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2552 if test x"${MISSING+set}" != xset; then
2555 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2557 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2560 # Use eval to expand $SHELL
2561 if eval "$MISSING --is-lightweight"; then
2562 am_missing_run="$MISSING "
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2566 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2569 if test x"${install_sh+set}" != xset; then
2572 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2574 install_sh="\${SHELL} $am_aux_dir/install-sh"
2578 # Installed binaries are usually stripped using 'strip' when the user
2579 # run "make install-strip". However 'strip' might not be the right
2580 # tool to use in cross-compilation environments, therefore Automake
2581 # will honor the 'STRIP' environment variable to overrule this program.
2582 if test "$cross_compiling" != no; then
2583 if test -n "$ac_tool_prefix"; then
2584 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2585 set dummy ${ac_tool_prefix}strip; ac_word=$2
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2587 $as_echo_n "checking for $ac_word... " >&6; }
2588 if ${ac_cv_prog_STRIP+:} false; then :
2589 $as_echo_n "(cached) " >&6
2591 if test -n "$STRIP"; then
2592 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598 test -z "$as_dir" && as_dir=.
2599 for ac_exec_ext in '' $ac_executable_extensions; do
2600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2601 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2611 STRIP=$ac_cv_prog_STRIP
2612 if test -n "$STRIP"; then
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2614 $as_echo "$STRIP" >&6; }
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2617 $as_echo "no" >&6; }
2622 if test -z "$ac_cv_prog_STRIP"; then
2624 # Extract the first word of "strip", so it can be a program name with args.
2625 set dummy strip; ac_word=$2
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2627 $as_echo_n "checking for $ac_word... " >&6; }
2628 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2629 $as_echo_n "(cached) " >&6
2631 if test -n "$ac_ct_STRIP"; then
2632 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638 test -z "$as_dir" && as_dir=.
2639 for ac_exec_ext in '' $ac_executable_extensions; do
2640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2641 ac_cv_prog_ac_ct_STRIP="strip"
2642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2651 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2652 if test -n "$ac_ct_STRIP"; then
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2654 $as_echo "$ac_ct_STRIP" >&6; }
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2657 $as_echo "no" >&6; }
2660 if test "x$ac_ct_STRIP" = x; then
2663 case $cross_compiling:$ac_tool_warned in
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2667 ac_tool_warned=yes ;;
2672 STRIP="$ac_cv_prog_STRIP"
2676 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2679 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2680 if test -z "$MKDIR_P"; then
2681 if ${ac_cv_path_mkdir+:} false; then :
2682 $as_echo_n "(cached) " >&6
2684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2688 test -z "$as_dir" && as_dir=.
2689 for ac_prog in mkdir gmkdir; do
2690 for ac_exec_ext in '' $ac_executable_extensions; do
2691 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2692 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2693 'mkdir (GNU coreutils) '* | \
2694 'mkdir (coreutils) '* | \
2695 'mkdir (fileutils) '4.1*)
2696 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2706 test -d ./--version && rmdir ./--version
2707 if test "${ac_cv_path_mkdir+set}" = set; then
2708 MKDIR_P="$ac_cv_path_mkdir -p"
2710 # As a last resort, use the slow shell script. Don't cache a
2711 # value for MKDIR_P within a source directory, because that will
2712 # break other packages using the cache if that directory is
2713 # removed, or if the value is a relative name.
2714 MKDIR_P="$ac_install_sh -d"
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2718 $as_echo "$MKDIR_P" >&6; }
2720 for ac_prog in gawk mawk nawk awk
2722 # Extract the first word of "$ac_prog", so it can be a program name with args.
2723 set dummy $ac_prog; ac_word=$2
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2725 $as_echo_n "checking for $ac_word... " >&6; }
2726 if ${ac_cv_prog_AWK+:} false; then :
2727 $as_echo_n "(cached) " >&6
2729 if test -n "$AWK"; then
2730 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736 test -z "$as_dir" && as_dir=.
2737 for ac_exec_ext in '' $ac_executable_extensions; do
2738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2739 ac_cv_prog_AWK="$ac_prog"
2740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2750 if test -n "$AWK"; then
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2752 $as_echo "$AWK" >&6; }
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2755 $as_echo "no" >&6; }
2759 test -n "$AWK" && break
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2763 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2765 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2766 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2767 $as_echo_n "(cached) " >&6
2769 cat >conftest.make <<\_ACEOF
2772 @echo '@@@%%%=$(MAKE)=@@@%%%'
2774 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2775 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2777 eval ac_cv_prog_make_${ac_make}_set=yes;;
2779 eval ac_cv_prog_make_${ac_make}_set=no;;
2783 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2785 $as_echo "yes" >&6; }
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2789 $as_echo "no" >&6; }
2790 SET_MAKE="MAKE=${MAKE-make}"
2793 rm -rf .tst 2>/dev/null
2794 mkdir .tst 2>/dev/null
2795 if test -d .tst; then
2800 rmdir .tst 2>/dev/null
2802 # Check whether --enable-silent-rules was given.
2803 if test "${enable_silent_rules+set}" = set; then :
2804 enableval=$enable_silent_rules;
2807 case $enable_silent_rules in # (((
2808 yes) AM_DEFAULT_VERBOSITY=0;;
2809 no) AM_DEFAULT_VERBOSITY=1;;
2810 *) AM_DEFAULT_VERBOSITY=1;;
2812 am_make=${MAKE-make}
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2814 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2815 if ${am_cv_make_support_nested_variables+:} false; then :
2816 $as_echo_n "(cached) " >&6
2818 if $as_echo 'TRUE=$(BAR$(V))
2824 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2825 am_cv_make_support_nested_variables=yes
2827 am_cv_make_support_nested_variables=no
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2831 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2832 if test $am_cv_make_support_nested_variables = yes; then
2834 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2836 AM_V=$AM_DEFAULT_VERBOSITY
2837 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2841 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2842 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2843 # is not polluted with repeated "-I."
2844 am__isrc=' -I$(srcdir)'
2845 # test to see if srcdir already configured
2846 if test -f $srcdir/config.status; then
2847 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2851 # test whether we have cygpath
2852 if test -z "$CYGPATH_W"; then
2853 if (cygpath --version) >/dev/null 2>/dev/null; then
2854 CYGPATH_W='cygpath -w'
2861 # Define the identity of the package.
2866 cat >>confdefs.h <<_ACEOF
2867 #define PACKAGE "$PACKAGE"
2871 cat >>confdefs.h <<_ACEOF
2872 #define VERSION "$VERSION"
2875 # Some tools Automake needs.
2877 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2880 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2883 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2886 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2889 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2891 # For better backward compatibility. To be removed once Automake 1.9.x
2892 # dies out for good. For more background, see:
2893 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2894 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2895 mkdir_p='$(MKDIR_P)'
2897 # We need awk for the "check" target (and possibly the TAP driver). The
2898 # system "awk" is bad on some platforms.
2899 # Always define AMTAR for backward compatibility. Yes, it's still used
2900 # in the wild :-( We should find a proper way to deprecate it ...
2904 # We'll loop over all known methods to create a tar archive until one works.
2905 _am_tools='gnutar pax cpio none'
2907 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2914 # POSIX will say in a future version that running "rm -f" with no argument
2915 # is OK; and we want to be able to make that assumption in our Makefile
2916 # recipes. So use an aggressive probe to check that the usage we want is
2917 # actually supported "in the wild" to an acceptable degree.
2918 # See automake bug#10828.
2919 # To make any issue more visible, cause the running configure to be aborted
2920 # by default if the 'rm' program in use doesn't match our expectations; the
2921 # user can still override this though.
2922 if rm -f && rm -fr && rm -rf; then : OK; else
2926 Your 'rm' program seems unable to run without file operands specified
2927 on the command line, even when the '-f' option is present. This is contrary
2928 to the behaviour of most rm programs out there, and not conforming with
2929 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2931 Please tell bug-automake@gnu.org about your system, including the value
2932 of your $PATH and any error possibly output before this message. This
2933 can help us improve future automake versions.
2936 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2937 echo 'Configuration will proceed anyway, since you have set the' >&2
2938 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2942 Aborting the configuration process, to ensure you take notice of the issue.
2944 You can download and install GNU coreutils to get an 'rm' implementation
2945 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2947 If you want to complete the configuration process using your problematic
2948 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2949 to "yes", and re-run configure.
2952 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2956 DEPDIR="${am__leading_dot}deps"
2958 ac_config_commands="$ac_config_commands depfiles"
2961 am_make=${MAKE-make}
2962 cat > confinc << 'END'
2964 @echo this is the am__doit target
2967 # If we don't find an include directive, just comment out the code.
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2969 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2973 # First try GNU make style include.
2974 echo "include confinc" > confmf
2975 # Ignore all kinds of additional output from 'make'.
2976 case `$am_make -s -f confmf 2> /dev/null` in #(
2977 *the\ am__doit\ target*)
2983 # Now try BSD make style include.
2984 if test "$am__include" = "#"; then
2985 echo '.include "confinc"' > confmf
2986 case `$am_make -s -f confmf 2> /dev/null` in #(
2987 *the\ am__doit\ target*)
2988 am__include=.include
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2997 $as_echo "$_am_result" >&6; }
2998 rm -f confinc confmf
3000 # Check whether --enable-dependency-tracking was given.
3001 if test "${enable_dependency_tracking+set}" = set; then :
3002 enableval=$enable_dependency_tracking;
3005 if test "x$enable_dependency_tracking" != xno; then
3006 am_depcomp="$ac_aux_dir/depcomp"
3010 if test "x$enable_dependency_tracking" != xno; then
3020 ac_cpp='$CPP $CPPFLAGS'
3021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3024 if test -n "$ac_tool_prefix"; then
3025 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3026 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3028 $as_echo_n "checking for $ac_word... " >&6; }
3029 if ${ac_cv_prog_CC+:} false; then :
3030 $as_echo_n "(cached) " >&6
3032 if test -n "$CC"; then
3033 ac_cv_prog_CC="$CC" # Let the user override the test.
3035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039 test -z "$as_dir" && as_dir=.
3040 for ac_exec_ext in '' $ac_executable_extensions; do
3041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3042 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3053 if test -n "$CC"; then
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3055 $as_echo "$CC" >&6; }
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3058 $as_echo "no" >&6; }
3063 if test -z "$ac_cv_prog_CC"; then
3065 # Extract the first word of "gcc", so it can be a program name with args.
3066 set dummy gcc; ac_word=$2
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3068 $as_echo_n "checking for $ac_word... " >&6; }
3069 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3070 $as_echo_n "(cached) " >&6
3072 if test -n "$ac_ct_CC"; then
3073 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079 test -z "$as_dir" && as_dir=.
3080 for ac_exec_ext in '' $ac_executable_extensions; do
3081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3082 ac_cv_prog_ac_ct_CC="gcc"
3083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3092 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3093 if test -n "$ac_ct_CC"; then
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3095 $as_echo "$ac_ct_CC" >&6; }
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3098 $as_echo "no" >&6; }
3101 if test "x$ac_ct_CC" = x; then
3104 case $cross_compiling:$ac_tool_warned in
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3108 ac_tool_warned=yes ;;
3116 if test -z "$CC"; then
3117 if test -n "$ac_tool_prefix"; then
3118 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3119 set dummy ${ac_tool_prefix}cc; ac_word=$2
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3121 $as_echo_n "checking for $ac_word... " >&6; }
3122 if ${ac_cv_prog_CC+:} false; then :
3123 $as_echo_n "(cached) " >&6
3125 if test -n "$CC"; then
3126 ac_cv_prog_CC="$CC" # Let the user override the test.
3128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132 test -z "$as_dir" && as_dir=.
3133 for ac_exec_ext in '' $ac_executable_extensions; do
3134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3135 ac_cv_prog_CC="${ac_tool_prefix}cc"
3136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3146 if test -n "$CC"; then
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3148 $as_echo "$CC" >&6; }
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3151 $as_echo "no" >&6; }
3157 if test -z "$CC"; then
3158 # Extract the first word of "cc", so it can be a program name with args.
3159 set dummy cc; ac_word=$2
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3161 $as_echo_n "checking for $ac_word... " >&6; }
3162 if ${ac_cv_prog_CC+:} false; then :
3163 $as_echo_n "(cached) " >&6
3165 if test -n "$CC"; then
3166 ac_cv_prog_CC="$CC" # Let the user override the test.
3169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173 test -z "$as_dir" && as_dir=.
3174 for ac_exec_ext in '' $ac_executable_extensions; do
3175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3176 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3177 ac_prog_rejected=yes
3181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3188 if test $ac_prog_rejected = yes; then
3189 # We found a bogon in the path, so make sure we never use it.
3190 set dummy $ac_cv_prog_CC
3192 if test $# != 0; then
3193 # We chose a different compiler from the bogus one.
3194 # However, it has the same basename, so the bogon will be chosen
3195 # first if we set CC to just the basename; use the full file name.
3197 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3203 if test -n "$CC"; then
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3205 $as_echo "$CC" >&6; }
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3208 $as_echo "no" >&6; }
3213 if test -z "$CC"; then
3214 if test -n "$ac_tool_prefix"; then
3215 for ac_prog in cl.exe
3217 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3218 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3220 $as_echo_n "checking for $ac_word... " >&6; }
3221 if ${ac_cv_prog_CC+:} false; then :
3222 $as_echo_n "(cached) " >&6
3224 if test -n "$CC"; then
3225 ac_cv_prog_CC="$CC" # Let the user override the test.
3227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231 test -z "$as_dir" && as_dir=.
3232 for ac_exec_ext in '' $ac_executable_extensions; do
3233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3234 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3245 if test -n "$CC"; then
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3247 $as_echo "$CC" >&6; }
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3250 $as_echo "no" >&6; }
3254 test -n "$CC" && break
3257 if test -z "$CC"; then
3259 for ac_prog in cl.exe
3261 # Extract the first word of "$ac_prog", so it can be a program name with args.
3262 set dummy $ac_prog; ac_word=$2
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3264 $as_echo_n "checking for $ac_word... " >&6; }
3265 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3266 $as_echo_n "(cached) " >&6
3268 if test -n "$ac_ct_CC"; then
3269 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3275 test -z "$as_dir" && as_dir=.
3276 for ac_exec_ext in '' $ac_executable_extensions; do
3277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3278 ac_cv_prog_ac_ct_CC="$ac_prog"
3279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3288 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3289 if test -n "$ac_ct_CC"; then
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3291 $as_echo "$ac_ct_CC" >&6; }
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294 $as_echo "no" >&6; }
3298 test -n "$ac_ct_CC" && break
3301 if test "x$ac_ct_CC" = x; then
3304 case $cross_compiling:$ac_tool_warned in
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3307 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3308 ac_tool_warned=yes ;;
3317 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3319 as_fn_error $? "no acceptable C compiler found in \$PATH
3320 See \`config.log' for more details" "$LINENO" 5; }
3322 # Provide some information about the compiler.
3323 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3326 for ac_option in --version -v -V -qversion; do
3327 { { ac_try="$ac_compiler $ac_option >&5"
3329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3330 *) ac_try_echo=$ac_try;;
3332 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3333 $as_echo "$ac_try_echo"; } >&5
3334 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3336 if test -s conftest.err; then
3338 ... rest of stderr output deleted ...
3339 10q' conftest.err >conftest.er1
3340 cat conftest.er1 >&5
3342 rm -f conftest.er1 conftest.err
3343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3344 test $ac_status = 0; }
3347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3348 /* end confdefs.h. */
3358 ac_clean_files_save=$ac_clean_files
3359 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3360 # Try to create an executable without -o first, disregard a.out.
3361 # It will help us diagnose broken compilers, and finding out an intuition
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3364 $as_echo_n "checking whether the C compiler works... " >&6; }
3365 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3367 # The possible output files:
3368 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3371 for ac_file in $ac_files
3374 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3375 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3380 if { { ac_try="$ac_link_default"
3382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383 *) ac_try_echo=$ac_try;;
3385 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3386 $as_echo "$ac_try_echo"; } >&5
3387 (eval "$ac_link_default") 2>&5
3389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3390 test $ac_status = 0; }; then :
3391 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3392 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3393 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3394 # so that the user can short-circuit this test for compilers unknown to
3396 for ac_file in $ac_files ''
3398 test -f "$ac_file" || continue
3400 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3403 # We found the default executable, but exeext='' is most
3407 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3409 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3411 # We set ac_cv_exeext here because the later test for it is not
3412 # safe: cross compilers may not add the suffix if given an `-o'
3413 # argument, so we may need to know it at that point already.
3414 # Even if this section looks crufty: it has the advantage of
3421 test "$ac_cv_exeext" = no && ac_cv_exeext=
3426 if test -z "$ac_file"; then :
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3428 $as_echo "no" >&6; }
3429 $as_echo "$as_me: failed program was:" >&5
3430 sed 's/^/| /' conftest.$ac_ext >&5
3432 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3434 as_fn_error 77 "C compiler cannot create executables
3435 See \`config.log' for more details" "$LINENO" 5; }
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3438 $as_echo "yes" >&6; }
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3441 $as_echo_n "checking for C compiler default output file name... " >&6; }
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3443 $as_echo "$ac_file" >&6; }
3444 ac_exeext=$ac_cv_exeext
3446 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3447 ac_clean_files=$ac_clean_files_save
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3449 $as_echo_n "checking for suffix of executables... " >&6; }
3450 if { { ac_try="$ac_link"
3452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3453 *) ac_try_echo=$ac_try;;
3455 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3456 $as_echo "$ac_try_echo"; } >&5
3457 (eval "$ac_link") 2>&5
3459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3460 test $ac_status = 0; }; then :
3461 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3462 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3463 # work properly (i.e., refer to `conftest.exe'), while it won't with
3465 for ac_file in conftest.exe conftest conftest.*; do
3466 test -f "$ac_file" || continue
3468 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3469 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3475 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3476 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3477 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3478 See \`config.log' for more details" "$LINENO" 5; }
3480 rm -f conftest conftest$ac_cv_exeext
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3482 $as_echo "$ac_cv_exeext" >&6; }
3484 rm -f conftest.$ac_ext
3485 EXEEXT=$ac_cv_exeext
3487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3488 /* end confdefs.h. */
3493 FILE *f = fopen ("conftest.out", "w");
3494 return ferror (f) || fclose (f) != 0;
3500 ac_clean_files="$ac_clean_files conftest.out"
3501 # Check that the compiler produces executables we can run. If not, either
3502 # the compiler is broken, or we cross compile.
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3504 $as_echo_n "checking whether we are cross compiling... " >&6; }
3505 if test "$cross_compiling" != yes; then
3506 { { ac_try="$ac_link"
3508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3509 *) ac_try_echo=$ac_try;;
3511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3512 $as_echo "$ac_try_echo"; } >&5
3513 (eval "$ac_link") 2>&5
3515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3516 test $ac_status = 0; }
3517 if { ac_try='./conftest$ac_cv_exeext'
3518 { { case "(($ac_try" in
3519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3520 *) ac_try_echo=$ac_try;;
3522 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3523 $as_echo "$ac_try_echo"; } >&5
3524 (eval "$ac_try") 2>&5
3526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3527 test $ac_status = 0; }; }; then
3530 if test "$cross_compiling" = maybe; then
3533 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3534 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3535 as_fn_error $? "cannot run C compiled programs.
3536 If you meant to cross compile, use \`--host'.
3537 See \`config.log' for more details" "$LINENO" 5; }
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3542 $as_echo "$cross_compiling" >&6; }
3544 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3545 ac_clean_files=$ac_clean_files_save
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3547 $as_echo_n "checking for suffix of object files... " >&6; }
3548 if ${ac_cv_objext+:} false; then :
3549 $as_echo_n "(cached) " >&6
3551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3552 /* end confdefs.h. */
3562 rm -f conftest.o conftest.obj
3563 if { { ac_try="$ac_compile"
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_compile") 2>&5
3572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3573 test $ac_status = 0; }; then :
3574 for ac_file in conftest.o conftest.obj conftest.*; do
3575 test -f "$ac_file" || continue;
3577 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3578 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3583 $as_echo "$as_me: failed program was:" >&5
3584 sed 's/^/| /' conftest.$ac_ext >&5
3586 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3587 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3588 as_fn_error $? "cannot compute suffix of object files: cannot compile
3589 See \`config.log' for more details" "$LINENO" 5; }
3591 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3594 $as_echo "$ac_cv_objext" >&6; }
3595 OBJEXT=$ac_cv_objext
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3598 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3599 if ${ac_cv_c_compiler_gnu+:} false; then :
3600 $as_echo_n "(cached) " >&6
3602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3603 /* end confdefs.h. */
3616 if ac_fn_c_try_compile "$LINENO"; then :
3621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3622 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3626 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3627 if test $ac_compiler_gnu = yes; then
3632 ac_test_CFLAGS=${CFLAGS+set}
3633 ac_save_CFLAGS=$CFLAGS
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3635 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3636 if ${ac_cv_prog_cc_g+:} false; then :
3637 $as_echo_n "(cached) " >&6
3639 ac_save_c_werror_flag=$ac_c_werror_flag
3640 ac_c_werror_flag=yes
3643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3644 /* end confdefs.h. */
3654 if ac_fn_c_try_compile "$LINENO"; then :
3658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3659 /* end confdefs.h. */
3669 if ac_fn_c_try_compile "$LINENO"; then :
3672 ac_c_werror_flag=$ac_save_c_werror_flag
3674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3675 /* end confdefs.h. */
3685 if ac_fn_c_try_compile "$LINENO"; then :
3688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3693 ac_c_werror_flag=$ac_save_c_werror_flag
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3696 $as_echo "$ac_cv_prog_cc_g" >&6; }
3697 if test "$ac_test_CFLAGS" = set; then
3698 CFLAGS=$ac_save_CFLAGS
3699 elif test $ac_cv_prog_cc_g = yes; then
3700 if test "$GCC" = yes; then
3706 if test "$GCC" = yes; then
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3713 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3714 if ${ac_cv_prog_cc_c89+:} false; then :
3715 $as_echo_n "(cached) " >&6
3717 ac_cv_prog_cc_c89=no
3719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720 /* end confdefs.h. */
3724 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3725 struct buf { int x; };
3726 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3727 static char *e (p, i)
3733 static char *f (char * (*g) (char **, int), char **p, ...)
3738 s = g (p, va_arg (v,int));
3743 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3744 function prototypes and stuff, but not '\xHH' hex character constants.
3745 These don't provoke an error unfortunately, instead are silently treated
3746 as 'x'. The following induces an error, until -std is added to get
3747 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3748 array size at least. It's necessary to write '\x00'==0 to get something
3749 that's true only with -std. */
3750 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3752 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3753 inside strings and character constants. */
3755 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3757 int test (int i, double x);
3758 struct s1 {int (*f) (int a);};
3759 struct s2 {int (*f) (double a);};
3760 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3766 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3771 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3772 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3774 CC="$ac_save_CC $ac_arg"
3775 if ac_fn_c_try_compile "$LINENO"; then :
3776 ac_cv_prog_cc_c89=$ac_arg
3778 rm -f core conftest.err conftest.$ac_objext
3779 test "x$ac_cv_prog_cc_c89" != "xno" && break
3781 rm -f conftest.$ac_ext
3786 case "x$ac_cv_prog_cc_c89" in
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3789 $as_echo "none needed" >&6; } ;;
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3792 $as_echo "unsupported" >&6; } ;;
3794 CC="$CC $ac_cv_prog_cc_c89"
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3796 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3798 if test "x$ac_cv_prog_cc_c89" != xno; then :
3803 ac_cpp='$CPP $CPPFLAGS'
3804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3809 ac_cpp='$CPP $CPPFLAGS'
3810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3814 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3815 if ${am_cv_prog_cc_c_o+:} false; then :
3816 $as_echo_n "(cached) " >&6
3818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3819 /* end confdefs.h. */
3829 # Make sure it works both with $CC and with simple cc.
3830 # Following AC_PROG_CC_C_O, we do the test twice because some
3831 # compilers refuse to overwrite an existing .o file with -o,
3832 # though they will create one.
3833 am_cv_prog_cc_c_o=yes
3835 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3836 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); } \
3840 && test -f conftest2.$ac_objext; then
3843 am_cv_prog_cc_c_o=no
3847 rm -f core conftest*
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3851 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3852 if test "$am_cv_prog_cc_c_o" != yes; then
3853 # Losing compiler, so override with the script.
3854 # FIXME: It is wrong to rewrite CC.
3855 # But if we don't then we get into trouble of one sort or another.
3856 # A longer-term fix would be to have automake use am__CC in this case,
3857 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3858 CC="$am_aux_dir/compile $CC"
3861 ac_cpp='$CPP $CPPFLAGS'
3862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3867 depcc="$CC" am_compiler_list=
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3870 $as_echo_n "checking dependency style of $depcc... " >&6; }
3871 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3872 $as_echo_n "(cached) " >&6
3874 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3875 # We make a subdir and do the tests there. Otherwise we can end up
3876 # making bogus files that we don't know about and never remove. For
3877 # instance it was reported that on HP-UX the gcc test will end up
3878 # making a dummy file named 'D' -- because '-MD' means "put the output
3882 # Copy depcomp to subdir because otherwise we won't find it if we're
3883 # using a relative directory.
3884 cp "$am_depcomp" conftest.dir
3886 # We will build objects and dependencies in a subdirectory because
3887 # it helps to detect inapplicable dependency modes. For instance
3888 # both Tru64's cc and ICC support -MD to output dependencies as a
3889 # side effect of compilation, but ICC will put the dependencies in
3890 # the current directory while Tru64 will put them in the object
3894 am_cv_CC_dependencies_compiler_type=none
3895 if test "$am_compiler_list" = ""; then
3896 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3899 case " $depcc " in #(
3900 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3903 for depmode in $am_compiler_list; do
3904 # Setup a source with many dependencies, because some compilers
3905 # like to wrap large dependency lists on column 80 (with \), and
3906 # we should not choose a depcomp mode which is confused by this.
3908 # We need to recreate these files for each test, as the compiler may
3909 # overwrite some of them when testing with obscure command lines.
3910 # This happens at least with the AIX C compiler.
3912 for i in 1 2 3 4 5 6; do
3913 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3914 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3915 # Solaris 10 /bin/sh.
3916 echo '/* dummy */' > sub/conftst$i.h
3918 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3920 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3921 # mode. It turns out that the SunPro C++ compiler does not properly
3922 # handle '-M -o', and we need to detect this. Also, some Intel
3923 # versions had trouble with output in subdirs.
3924 am__obj=sub/conftest.${OBJEXT-o}
3925 am__minus_obj="-o $am__obj"
3928 # This depmode causes a compiler race in universal mode.
3929 test "$am__universal" = false || continue
3932 # After this tag, mechanisms are not by side-effect, so they'll
3933 # only be used when explicitly requested.
3934 if test "x$enable_dependency_tracking" = xyes; then
3940 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3941 # This compiler won't grok '-c -o', but also, the minuso test has
3942 # not run yet. These depmodes are late enough in the game, and
3943 # so weak that their functioning should not be impacted.
3944 am__obj=conftest.${OBJEXT-o}
3949 if depmode=$depmode \
3950 source=sub/conftest.c object=$am__obj \
3951 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3952 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3953 >/dev/null 2>conftest.err &&
3954 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3955 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3956 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3957 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3958 # icc doesn't choke on unknown options, it will just issue warnings
3959 # or remarks (even with -Werror). So we grep stderr for any message
3960 # that says an option was ignored or not supported.
3961 # When given -MP, icc 7.0 and 7.1 complain thusly:
3962 # icc: Command line warning: ignoring option '-M'; no argument required
3963 # The diagnosis changed in icc 8.0:
3964 # icc: Command line remark: option '-MP' not supported
3965 if (grep 'ignoring option' conftest.err ||
3966 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3967 am_cv_CC_dependencies_compiler_type=$depmode
3976 am_cv_CC_dependencies_compiler_type=none
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3981 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3982 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3985 test "x$enable_dependency_tracking" != xno \
3986 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3988 am__fastdepCC_FALSE='#'
3990 am__fastdepCC_TRUE='#'
3991 am__fastdepCC_FALSE=
3996 if test -n "$ac_tool_prefix"; then
3997 for ac_prog in ar lib "link -lib"
3999 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4000 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4002 $as_echo_n "checking for $ac_word... " >&6; }
4003 if ${ac_cv_prog_AR+:} false; then :
4004 $as_echo_n "(cached) " >&6
4006 if test -n "$AR"; then
4007 ac_cv_prog_AR="$AR" # Let the user override the test.
4009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013 test -z "$as_dir" && as_dir=.
4014 for ac_exec_ext in '' $ac_executable_extensions; do
4015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4016 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4027 if test -n "$AR"; then
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4029 $as_echo "$AR" >&6; }
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4032 $as_echo "no" >&6; }
4036 test -n "$AR" && break
4039 if test -z "$AR"; then
4041 for ac_prog in ar lib "link -lib"
4043 # Extract the first word of "$ac_prog", so it can be a program name with args.
4044 set dummy $ac_prog; ac_word=$2
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4046 $as_echo_n "checking for $ac_word... " >&6; }
4047 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4048 $as_echo_n "(cached) " >&6
4050 if test -n "$ac_ct_AR"; then
4051 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4057 test -z "$as_dir" && as_dir=.
4058 for ac_exec_ext in '' $ac_executable_extensions; do
4059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4060 ac_cv_prog_ac_ct_AR="$ac_prog"
4061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4070 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4071 if test -n "$ac_ct_AR"; then
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4073 $as_echo "$ac_ct_AR" >&6; }
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4076 $as_echo "no" >&6; }
4080 test -n "$ac_ct_AR" && break
4083 if test "x$ac_ct_AR" = x; then
4086 case $cross_compiling:$ac_tool_warned in
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4089 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4090 ac_tool_warned=yes ;;
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4099 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4100 if ${am_cv_ar_interface+:} false; then :
4101 $as_echo_n "(cached) " >&6
4104 ac_cpp='$CPP $CPPFLAGS'
4105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4109 am_cv_ar_interface=ar
4110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111 /* end confdefs.h. */
4112 int some_variable = 0;
4114 if ac_fn_c_try_compile "$LINENO"; then :
4115 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4116 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4117 (eval $am_ar_try) 2>&5
4119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4120 test $ac_status = 0; }
4121 if test "$ac_status" -eq 0; then
4122 am_cv_ar_interface=ar
4124 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4125 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4126 (eval $am_ar_try) 2>&5
4128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4129 test $ac_status = 0; }
4130 if test "$ac_status" -eq 0; then
4131 am_cv_ar_interface=lib
4133 am_cv_ar_interface=unknown
4136 rm -f conftest.lib libconftest.a
4139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4141 ac_cpp='$CPP $CPPFLAGS'
4142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4148 $as_echo "$am_cv_ar_interface" >&6; }
4150 case $am_cv_ar_interface in
4154 # Microsoft lib, so override with the ar-lib wrapper script.
4155 # FIXME: It is wrong to rewrite AR.
4156 # But if we don't then we get into trouble of one sort or another.
4157 # A longer-term fix would be to have automake use am__AR in this case,
4158 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4160 AR="$am_aux_dir/ar-lib $AR"
4163 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4168 # OpenFst does not throw exceptions, so we do not generate exception handling
4169 # code. However, users are free to re-enable exception handling.
4170 # OpenFst assumes char is unsigned; -fsigned-char is likely unsafe.
4171 CPPFLAGS="$CPPFLAGS -fno-exceptions -funsigned-char"
4172 CXXFLAGS="$CXXFLAGS -std=c++11"
4175 ac_cpp='$CXXCPP $CPPFLAGS'
4176 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4177 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4178 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4179 if test -z "$CXX"; then
4180 if test -n "$CCC"; then
4183 if test -n "$ac_tool_prefix"; then
4184 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4186 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4187 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4189 $as_echo_n "checking for $ac_word... " >&6; }
4190 if ${ac_cv_prog_CXX+:} false; then :
4191 $as_echo_n "(cached) " >&6
4193 if test -n "$CXX"; then
4194 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4200 test -z "$as_dir" && as_dir=.
4201 for ac_exec_ext in '' $ac_executable_extensions; do
4202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4203 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4214 if test -n "$CXX"; then
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4216 $as_echo "$CXX" >&6; }
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4219 $as_echo "no" >&6; }
4223 test -n "$CXX" && break
4226 if test -z "$CXX"; then
4228 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4230 # Extract the first word of "$ac_prog", so it can be a program name with args.
4231 set dummy $ac_prog; ac_word=$2
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4233 $as_echo_n "checking for $ac_word... " >&6; }
4234 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4235 $as_echo_n "(cached) " >&6
4237 if test -n "$ac_ct_CXX"; then
4238 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244 test -z "$as_dir" && as_dir=.
4245 for ac_exec_ext in '' $ac_executable_extensions; do
4246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4247 ac_cv_prog_ac_ct_CXX="$ac_prog"
4248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4257 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4258 if test -n "$ac_ct_CXX"; then
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4260 $as_echo "$ac_ct_CXX" >&6; }
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4263 $as_echo "no" >&6; }
4267 test -n "$ac_ct_CXX" && break
4270 if test "x$ac_ct_CXX" = x; then
4273 case $cross_compiling:$ac_tool_warned in
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4276 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4277 ac_tool_warned=yes ;;
4285 # Provide some information about the compiler.
4286 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4289 for ac_option in --version -v -V -qversion; do
4290 { { ac_try="$ac_compiler $ac_option >&5"
4292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293 *) ac_try_echo=$ac_try;;
4295 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4296 $as_echo "$ac_try_echo"; } >&5
4297 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4299 if test -s conftest.err; then
4301 ... rest of stderr output deleted ...
4302 10q' conftest.err >conftest.er1
4303 cat conftest.er1 >&5
4305 rm -f conftest.er1 conftest.err
4306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4307 test $ac_status = 0; }
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4311 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4312 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4313 $as_echo_n "(cached) " >&6
4315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316 /* end confdefs.h. */
4329 if ac_fn_cxx_try_compile "$LINENO"; then :
4334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4335 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4339 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4340 if test $ac_compiler_gnu = yes; then
4345 ac_test_CXXFLAGS=${CXXFLAGS+set}
4346 ac_save_CXXFLAGS=$CXXFLAGS
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4348 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4349 if ${ac_cv_prog_cxx_g+:} false; then :
4350 $as_echo_n "(cached) " >&6
4352 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4353 ac_cxx_werror_flag=yes
4356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4357 /* end confdefs.h. */
4367 if ac_fn_cxx_try_compile "$LINENO"; then :
4368 ac_cv_prog_cxx_g=yes
4371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4372 /* end confdefs.h. */
4382 if ac_fn_cxx_try_compile "$LINENO"; then :
4385 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4388 /* end confdefs.h. */
4398 if ac_fn_cxx_try_compile "$LINENO"; then :
4399 ac_cv_prog_cxx_g=yes
4401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4406 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4409 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4410 if test "$ac_test_CXXFLAGS" = set; then
4411 CXXFLAGS=$ac_save_CXXFLAGS
4412 elif test $ac_cv_prog_cxx_g = yes; then
4413 if test "$GXX" = yes; then
4419 if test "$GXX" = yes; then
4426 ac_cpp='$CPP $CPPFLAGS'
4427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4431 depcc="$CXX" am_compiler_list=
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4434 $as_echo_n "checking dependency style of $depcc... " >&6; }
4435 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4436 $as_echo_n "(cached) " >&6
4438 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4439 # We make a subdir and do the tests there. Otherwise we can end up
4440 # making bogus files that we don't know about and never remove. For
4441 # instance it was reported that on HP-UX the gcc test will end up
4442 # making a dummy file named 'D' -- because '-MD' means "put the output
4446 # Copy depcomp to subdir because otherwise we won't find it if we're
4447 # using a relative directory.
4448 cp "$am_depcomp" conftest.dir
4450 # We will build objects and dependencies in a subdirectory because
4451 # it helps to detect inapplicable dependency modes. For instance
4452 # both Tru64's cc and ICC support -MD to output dependencies as a
4453 # side effect of compilation, but ICC will put the dependencies in
4454 # the current directory while Tru64 will put them in the object
4458 am_cv_CXX_dependencies_compiler_type=none
4459 if test "$am_compiler_list" = ""; then
4460 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4463 case " $depcc " in #(
4464 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4467 for depmode in $am_compiler_list; do
4468 # Setup a source with many dependencies, because some compilers
4469 # like to wrap large dependency lists on column 80 (with \), and
4470 # we should not choose a depcomp mode which is confused by this.
4472 # We need to recreate these files for each test, as the compiler may
4473 # overwrite some of them when testing with obscure command lines.
4474 # This happens at least with the AIX C compiler.
4476 for i in 1 2 3 4 5 6; do
4477 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4478 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4479 # Solaris 10 /bin/sh.
4480 echo '/* dummy */' > sub/conftst$i.h
4482 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4484 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4485 # mode. It turns out that the SunPro C++ compiler does not properly
4486 # handle '-M -o', and we need to detect this. Also, some Intel
4487 # versions had trouble with output in subdirs.
4488 am__obj=sub/conftest.${OBJEXT-o}
4489 am__minus_obj="-o $am__obj"
4492 # This depmode causes a compiler race in universal mode.
4493 test "$am__universal" = false || continue
4496 # After this tag, mechanisms are not by side-effect, so they'll
4497 # only be used when explicitly requested.
4498 if test "x$enable_dependency_tracking" = xyes; then
4504 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4505 # This compiler won't grok '-c -o', but also, the minuso test has
4506 # not run yet. These depmodes are late enough in the game, and
4507 # so weak that their functioning should not be impacted.
4508 am__obj=conftest.${OBJEXT-o}
4513 if depmode=$depmode \
4514 source=sub/conftest.c object=$am__obj \
4515 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4516 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4517 >/dev/null 2>conftest.err &&
4518 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4519 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4520 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4521 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4522 # icc doesn't choke on unknown options, it will just issue warnings
4523 # or remarks (even with -Werror). So we grep stderr for any message
4524 # that says an option was ignored or not supported.
4525 # When given -MP, icc 7.0 and 7.1 complain thusly:
4526 # icc: Command line warning: ignoring option '-M'; no argument required
4527 # The diagnosis changed in icc 8.0:
4528 # icc: Command line remark: option '-MP' not supported
4529 if (grep 'ignoring option' conftest.err ||
4530 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4531 am_cv_CXX_dependencies_compiler_type=$depmode
4540 am_cv_CXX_dependencies_compiler_type=none
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4545 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4546 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4549 test "x$enable_dependency_tracking" != xno \
4550 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4551 am__fastdepCXX_TRUE=
4552 am__fastdepCXX_FALSE='#'
4554 am__fastdepCXX_TRUE='#'
4555 am__fastdepCXX_FALSE=
4559 # Check whether --enable-static was given.
4560 if test "${enable_static+set}" = set; then :
4561 enableval=$enable_static; p=${PACKAGE-default}
4563 yes) enable_static=yes ;;
4564 no) enable_static=no ;;
4567 # Look at the argument we got. We use all the common list separators.
4568 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
4569 for pkg in $enableval; do
4571 if test "X$pkg" = "X$p"; then
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4593 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4598 macro_version='2.4.6'
4599 macro_revision='2.4.6'
4613 ltmain=$ac_aux_dir/ltmain.sh
4615 # Make sure we can run config.sub.
4616 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4617 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4620 $as_echo_n "checking build system type... " >&6; }
4621 if ${ac_cv_build+:} false; then :
4622 $as_echo_n "(cached) " >&6
4624 ac_build_alias=$build_alias
4625 test "x$ac_build_alias" = x &&
4626 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4627 test "x$ac_build_alias" = x &&
4628 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4629 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4630 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4634 $as_echo "$ac_cv_build" >&6; }
4635 case $ac_cv_build in
4637 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4640 ac_save_IFS=$IFS; IFS='-'
4646 # Remember, the first character of IFS is used to create $*,
4647 # except with old shells:
4650 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4654 $as_echo_n "checking host system type... " >&6; }
4655 if ${ac_cv_host+:} false; then :
4656 $as_echo_n "(cached) " >&6
4658 if test "x$host_alias" = x; then
4659 ac_cv_host=$ac_cv_build
4661 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4662 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4667 $as_echo "$ac_cv_host" >&6; }
4670 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4673 ac_save_IFS=$IFS; IFS='-'
4679 # Remember, the first character of IFS is used to create $*,
4680 # except with old shells:
4683 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4686 # Backslashify metacharacters that are still active within
4687 # double-quoted strings.
4688 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4690 # Same as above, but do not quote variable references.
4691 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4693 # Sed substitution to delay expansion of an escaped shell variable in a
4694 # double_quote_subst'ed string.
4695 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4697 # Sed substitution to delay expansion of an escaped single quote.
4698 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4700 # Sed substitution to avoid accidental globbing in evaled expressions
4701 no_glob_subst='s/\*/\\\*/g'
4703 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4704 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4705 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4708 $as_echo_n "checking how to print strings... " >&6; }
4709 # Test print first, because it will be a builtin if present.
4710 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4711 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4713 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4716 # Use this function as a fallback that always works.
4717 func_fallback_echo ()
4719 eval 'cat <<_LTECHO_EOF
4723 ECHO='func_fallback_echo'
4726 # func_echo_all arg...
4727 # Invoke $ECHO with all args, space-separated.
4734 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4735 $as_echo "printf" >&6; } ;;
4736 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4737 $as_echo "print -r" >&6; } ;;
4738 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4739 $as_echo "cat" >&6; } ;;
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4756 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4757 if ${ac_cv_path_SED+:} false; then :
4758 $as_echo_n "(cached) " >&6
4760 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4761 for ac_i in 1 2 3 4 5 6 7; do
4762 ac_script="$ac_script$as_nl$ac_script"
4764 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4765 { ac_script=; unset ac_script;}
4766 if test -z "$SED"; then
4767 ac_path_SED_found=false
4768 # Loop through the user's path and test for each of PROGNAME-LIST
4769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773 test -z "$as_dir" && as_dir=.
4774 for ac_prog in sed gsed; do
4775 for ac_exec_ext in '' $ac_executable_extensions; do
4776 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4777 as_fn_executable_p "$ac_path_SED" || continue
4778 # Check for GNU ac_path_SED and select it if it is found.
4779 # Check for GNU $ac_path_SED
4780 case `"$ac_path_SED" --version 2>&1` in
4782 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4785 $as_echo_n 0123456789 >"conftest.in"
4788 cat "conftest.in" "conftest.in" >"conftest.tmp"
4789 mv "conftest.tmp" "conftest.in"
4790 cp "conftest.in" "conftest.nl"
4791 $as_echo '' >> "conftest.nl"
4792 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4793 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4794 as_fn_arith $ac_count + 1 && ac_count=$as_val
4795 if test $ac_count -gt ${ac_path_SED_max-0}; then
4796 # Best one so far, save it but keep looking for a better one
4797 ac_cv_path_SED="$ac_path_SED"
4798 ac_path_SED_max=$ac_count
4800 # 10*(2^10) chars as input seems more than enough
4801 test $ac_count -gt 10 && break
4803 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4806 $ac_path_SED_found && break 3
4811 if test -z "$ac_cv_path_SED"; then
4812 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4820 $as_echo "$ac_cv_path_SED" >&6; }
4821 SED="$ac_cv_path_SED"
4824 test -z "$SED" && SED=sed
4825 Xsed="$SED -e 1s/^X//"
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4838 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4839 if ${ac_cv_path_GREP+:} false; then :
4840 $as_echo_n "(cached) " >&6
4842 if test -z "$GREP"; then
4843 ac_path_GREP_found=false
4844 # Loop through the user's path and test for each of PROGNAME-LIST
4845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4846 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4849 test -z "$as_dir" && as_dir=.
4850 for ac_prog in grep ggrep; do
4851 for ac_exec_ext in '' $ac_executable_extensions; do
4852 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4853 as_fn_executable_p "$ac_path_GREP" || continue
4854 # Check for GNU ac_path_GREP and select it if it is found.
4855 # Check for GNU $ac_path_GREP
4856 case `"$ac_path_GREP" --version 2>&1` in
4858 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4861 $as_echo_n 0123456789 >"conftest.in"
4864 cat "conftest.in" "conftest.in" >"conftest.tmp"
4865 mv "conftest.tmp" "conftest.in"
4866 cp "conftest.in" "conftest.nl"
4867 $as_echo 'GREP' >> "conftest.nl"
4868 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4869 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4870 as_fn_arith $ac_count + 1 && ac_count=$as_val
4871 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4872 # Best one so far, save it but keep looking for a better one
4873 ac_cv_path_GREP="$ac_path_GREP"
4874 ac_path_GREP_max=$ac_count
4876 # 10*(2^10) chars as input seems more than enough
4877 test $ac_count -gt 10 && break
4879 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4882 $ac_path_GREP_found && break 3
4887 if test -z "$ac_cv_path_GREP"; then
4888 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4891 ac_cv_path_GREP=$GREP
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4896 $as_echo "$ac_cv_path_GREP" >&6; }
4897 GREP="$ac_cv_path_GREP"
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4901 $as_echo_n "checking for egrep... " >&6; }
4902 if ${ac_cv_path_EGREP+:} false; then :
4903 $as_echo_n "(cached) " >&6
4905 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4906 then ac_cv_path_EGREP="$GREP -E"
4908 if test -z "$EGREP"; then
4909 ac_path_EGREP_found=false
4910 # Loop through the user's path and test for each of PROGNAME-LIST
4911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4915 test -z "$as_dir" && as_dir=.
4916 for ac_prog in egrep; do
4917 for ac_exec_ext in '' $ac_executable_extensions; do
4918 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4919 as_fn_executable_p "$ac_path_EGREP" || continue
4920 # Check for GNU ac_path_EGREP and select it if it is found.
4921 # Check for GNU $ac_path_EGREP
4922 case `"$ac_path_EGREP" --version 2>&1` in
4924 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4927 $as_echo_n 0123456789 >"conftest.in"
4930 cat "conftest.in" "conftest.in" >"conftest.tmp"
4931 mv "conftest.tmp" "conftest.in"
4932 cp "conftest.in" "conftest.nl"
4933 $as_echo 'EGREP' >> "conftest.nl"
4934 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4935 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4936 as_fn_arith $ac_count + 1 && ac_count=$as_val
4937 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4938 # Best one so far, save it but keep looking for a better one
4939 ac_cv_path_EGREP="$ac_path_EGREP"
4940 ac_path_EGREP_max=$ac_count
4942 # 10*(2^10) chars as input seems more than enough
4943 test $ac_count -gt 10 && break
4945 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4948 $ac_path_EGREP_found && break 3
4953 if test -z "$ac_cv_path_EGREP"; then
4954 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4957 ac_cv_path_EGREP=$EGREP
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4963 $as_echo "$ac_cv_path_EGREP" >&6; }
4964 EGREP="$ac_cv_path_EGREP"
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4968 $as_echo_n "checking for fgrep... " >&6; }
4969 if ${ac_cv_path_FGREP+:} false; then :
4970 $as_echo_n "(cached) " >&6
4972 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4973 then ac_cv_path_FGREP="$GREP -F"
4975 if test -z "$FGREP"; then
4976 ac_path_FGREP_found=false
4977 # Loop through the user's path and test for each of PROGNAME-LIST
4978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4982 test -z "$as_dir" && as_dir=.
4983 for ac_prog in fgrep; do
4984 for ac_exec_ext in '' $ac_executable_extensions; do
4985 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4986 as_fn_executable_p "$ac_path_FGREP" || continue
4987 # Check for GNU ac_path_FGREP and select it if it is found.
4988 # Check for GNU $ac_path_FGREP
4989 case `"$ac_path_FGREP" --version 2>&1` in
4991 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4994 $as_echo_n 0123456789 >"conftest.in"
4997 cat "conftest.in" "conftest.in" >"conftest.tmp"
4998 mv "conftest.tmp" "conftest.in"
4999 cp "conftest.in" "conftest.nl"
5000 $as_echo 'FGREP' >> "conftest.nl"
5001 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5002 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5003 as_fn_arith $ac_count + 1 && ac_count=$as_val
5004 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5005 # Best one so far, save it but keep looking for a better one
5006 ac_cv_path_FGREP="$ac_path_FGREP"
5007 ac_path_FGREP_max=$ac_count
5009 # 10*(2^10) chars as input seems more than enough
5010 test $ac_count -gt 10 && break
5012 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5015 $ac_path_FGREP_found && break 3
5020 if test -z "$ac_cv_path_FGREP"; then
5021 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5024 ac_cv_path_FGREP=$FGREP
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5030 $as_echo "$ac_cv_path_FGREP" >&6; }
5031 FGREP="$ac_cv_path_FGREP"
5034 test -z "$GREP" && GREP=grep
5054 # Check whether --with-gnu-ld was given.
5055 if test "${with_gnu_ld+set}" = set; then :
5056 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5062 if test yes = "$GCC"; then
5063 # Check if gcc -print-prog-name=ld gives a path.
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5065 $as_echo_n "checking for ld used by $CC... " >&6; }
5068 # gcc leaves a trailing carriage return, which upsets mingw
5069 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5071 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5074 # Accept absolute paths.
5076 re_direlt='/[^/][^/]*/\.\./'
5077 # Canonicalize the pathname of ld
5078 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5079 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5080 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5082 test -z "$LD" && LD=$ac_prog
5085 # If it fails, then pretend we aren't using GCC.
5089 # If it is relative, then search for the first ld in PATH.
5093 elif test yes = "$with_gnu_ld"; then
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5095 $as_echo_n "checking for GNU ld... " >&6; }
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5098 $as_echo_n "checking for non-GNU ld... " >&6; }
5100 if ${lt_cv_path_LD+:} false; then :
5101 $as_echo_n "(cached) " >&6
5103 if test -z "$LD"; then
5104 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5105 for ac_dir in $PATH; do
5107 test -z "$ac_dir" && ac_dir=.
5108 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5109 lt_cv_path_LD=$ac_dir/$ac_prog
5110 # Check to see if the program is GNU ld. I'd rather use --version,
5111 # but apparently some variants of GNU ld only accept -v.
5112 # Break only if it was the GNU/non-GNU ld that we prefer.
5113 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5114 *GNU* | *'with BFD'*)
5115 test no != "$with_gnu_ld" && break
5118 test yes != "$with_gnu_ld" && break
5125 lt_cv_path_LD=$LD # Let the user override the test with a path.
5130 if test -n "$LD"; then
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5132 $as_echo "$LD" >&6; }
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5135 $as_echo "no" >&6; }
5137 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5139 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5140 if ${lt_cv_prog_gnu_ld+:} false; then :
5141 $as_echo_n "(cached) " >&6
5143 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5144 case `$LD -v 2>&1 </dev/null` in
5145 *GNU* | *'with BFD'*)
5146 lt_cv_prog_gnu_ld=yes
5149 lt_cv_prog_gnu_ld=no
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5154 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5155 with_gnu_ld=$lt_cv_prog_gnu_ld
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5166 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5167 if ${lt_cv_path_NM+:} false; then :
5168 $as_echo_n "(cached) " >&6
5170 if test -n "$NM"; then
5171 # Let the user override the test.
5174 lt_nm_to_check=${ac_tool_prefix}nm
5175 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5176 lt_nm_to_check="$lt_nm_to_check nm"
5178 for lt_tmp_nm in $lt_nm_to_check; do
5179 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5180 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5182 test -z "$ac_dir" && ac_dir=.
5183 tmp_nm=$ac_dir/$lt_tmp_nm
5184 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5185 # Check to see if the nm accepts a BSD-compat flag.
5186 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5187 # nm: unknown option "B" ignored
5188 # Tru64's nm complains that /dev/null is an invalid object file
5189 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5191 mingw*) lt_bad_file=conftest.nm/nofile ;;
5192 *) lt_bad_file=/dev/null ;;
5194 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5195 *$lt_bad_file* | *'Invalid file or object type'*)
5196 lt_cv_path_NM="$tmp_nm -B"
5200 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5202 lt_cv_path_NM="$tmp_nm -p"
5206 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5207 continue # so that we can try to find one that supports BSD flags
5216 : ${lt_cv_path_NM=no}
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5220 $as_echo "$lt_cv_path_NM" >&6; }
5221 if test no != "$lt_cv_path_NM"; then
5224 # Didn't find any BSD compatible name lister, look for dumpbin.
5225 if test -n "$DUMPBIN"; then :
5226 # Let the user override the test.
5228 if test -n "$ac_tool_prefix"; then
5229 for ac_prog in dumpbin "link -dump"
5231 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5232 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5234 $as_echo_n "checking for $ac_word... " >&6; }
5235 if ${ac_cv_prog_DUMPBIN+:} false; then :
5236 $as_echo_n "(cached) " >&6
5238 if test -n "$DUMPBIN"; then
5239 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245 test -z "$as_dir" && as_dir=.
5246 for ac_exec_ext in '' $ac_executable_extensions; do
5247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5248 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5258 DUMPBIN=$ac_cv_prog_DUMPBIN
5259 if test -n "$DUMPBIN"; then
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5261 $as_echo "$DUMPBIN" >&6; }
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5264 $as_echo "no" >&6; }
5268 test -n "$DUMPBIN" && break
5271 if test -z "$DUMPBIN"; then
5272 ac_ct_DUMPBIN=$DUMPBIN
5273 for ac_prog in dumpbin "link -dump"
5275 # Extract the first word of "$ac_prog", so it can be a program name with args.
5276 set dummy $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_ac_ct_DUMPBIN+:} false; then :
5280 $as_echo_n "(cached) " >&6
5282 if test -n "$ac_ct_DUMPBIN"; then
5283 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_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_ac_ct_DUMPBIN="$ac_prog"
5293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5302 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5303 if test -n "$ac_ct_DUMPBIN"; then
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5305 $as_echo "$ac_ct_DUMPBIN" >&6; }
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5308 $as_echo "no" >&6; }
5312 test -n "$ac_ct_DUMPBIN" && break
5315 if test "x$ac_ct_DUMPBIN" = x; then
5318 case $cross_compiling:$ac_tool_warned in
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5321 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5322 ac_tool_warned=yes ;;
5324 DUMPBIN=$ac_ct_DUMPBIN
5328 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5330 DUMPBIN="$DUMPBIN -symbols -headers"
5338 if test : != "$DUMPBIN"; then
5342 test -z "$NM" && NM=nm
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5350 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5351 if ${lt_cv_nm_interface+:} false; then :
5352 $as_echo_n "(cached) " >&6
5354 lt_cv_nm_interface="BSD nm"
5355 echo "int some_variable = 0;" > conftest.$ac_ext
5356 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5357 (eval "$ac_compile" 2>conftest.err)
5358 cat conftest.err >&5
5359 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5360 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5361 cat conftest.err >&5
5362 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5363 cat conftest.out >&5
5364 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5365 lt_cv_nm_interface="MS dumpbin"
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5370 $as_echo "$lt_cv_nm_interface" >&6; }
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5373 $as_echo_n "checking whether ln -s works... " >&6; }
5375 if test "$LN_S" = "ln -s"; then
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5377 $as_echo "yes" >&6; }
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5380 $as_echo "no, using $LN_S" >&6; }
5383 # find the maximum length of command line arguments
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5385 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5386 if ${lt_cv_sys_max_cmd_len+:} false; then :
5387 $as_echo_n "(cached) " >&6
5394 # On DJGPP, this test can blow up pretty badly due to problems in libc
5395 # (any single argument exceeding 2000 bytes causes a buffer overrun
5396 # during glob expansion). Even if it were fixed, the result of this
5397 # check would be larger than it should be.
5398 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5402 # Under GNU Hurd, this test is not required because there is
5403 # no limit to the length of command line arguments.
5404 # Libtool will interpret -1 as no limit whatsoever
5405 lt_cv_sys_max_cmd_len=-1;
5408 cygwin* | mingw* | cegcc*)
5409 # On Win9x/ME, this test blows up -- it succeeds, but takes
5410 # about 5 minutes as the teststring grows exponentially.
5411 # Worse, since 9x/ME are not pre-emptively multitasking,
5412 # you end up with a "frozen" computer, even though with patience
5413 # the test eventually succeeds (with a max line length of 256k).
5414 # Instead, let's just punt: use the minimum linelength reported by
5415 # all of the supported platforms: 8192 (on NT/2K/XP).
5416 lt_cv_sys_max_cmd_len=8192;
5420 # On MiNT this can take a long time and run out of memory.
5421 lt_cv_sys_max_cmd_len=8192;
5425 # On AmigaOS with pdksh, this test takes hours, literally.
5426 # So we just punt and use a minimum line length of 8192.
5427 lt_cv_sys_max_cmd_len=8192;
5430 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5431 # This has been around since 386BSD, at least. Likely further.
5432 if test -x /sbin/sysctl; then
5433 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5434 elif test -x /usr/sbin/sysctl; then
5435 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5437 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5439 # And add a safety zone
5440 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5441 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5445 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5446 lt_cv_sys_max_cmd_len=196608
5450 # The test takes a long time on OS/2.
5451 lt_cv_sys_max_cmd_len=8192
5455 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5456 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5457 # nice to cause kernel panics so lets avoid the loop below.
5458 # First set a reasonable default.
5459 lt_cv_sys_max_cmd_len=16384
5461 if test -x /sbin/sysconfig; then
5462 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5463 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5468 lt_cv_sys_max_cmd_len=102400
5470 sysv5* | sco5v6* | sysv4.2uw2*)
5471 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5472 if test -n "$kargmax"; then
5473 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5475 lt_cv_sys_max_cmd_len=32768
5479 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5480 if test -n "$lt_cv_sys_max_cmd_len" && \
5481 test undefined != "$lt_cv_sys_max_cmd_len"; then
5482 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5483 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5485 # Make teststring a little bigger before we do anything with it.
5486 # a 1K string should be a reasonable start.
5487 for i in 1 2 3 4 5 6 7 8; do
5488 teststring=$teststring$teststring
5490 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5491 # If test is not a shell built-in, we'll probably end up computing a
5492 # maximum length that is only half of the actual maximum length, but
5494 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5495 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5496 test 17 != "$i" # 1/2 MB should be enough
5499 teststring=$teststring$teststring
5501 # Only check the string length outside the loop.
5502 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5504 # Add a significant safety factor because C++ compilers can tack on
5505 # massive amounts of additional arguments before passing them to the
5506 # linker. It appears as though 1/2 is a usable value.
5507 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5514 if test -n "$lt_cv_sys_max_cmd_len"; then
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5516 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5519 $as_echo "none" >&6; }
5521 max_cmd_len=$lt_cv_sys_max_cmd_len
5532 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5542 # test EBCDIC or ASCII
5543 case `echo X|tr X '\101'` in
5544 A) # ASCII based system
5545 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5546 lt_SP2NL='tr \040 \012'
5547 lt_NL2SP='tr \015\012 \040\040'
5549 *) # EBCDIC based system
5550 lt_SP2NL='tr \100 \n'
5551 lt_NL2SP='tr \r\n \100\100'
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5564 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5565 if ${lt_cv_to_host_file_cmd+:} false; then :
5566 $as_echo_n "(cached) " >&6
5571 *-*-mingw* ) # actually msys
5572 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5575 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5577 * ) # otherwise, assume *nix
5578 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5584 *-*-mingw* ) # actually msys
5585 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5588 lt_cv_to_host_file_cmd=func_convert_file_noop
5590 * ) # otherwise, assume *nix
5591 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5595 * ) # unhandled hosts (and "normal" native builds)
5596 lt_cv_to_host_file_cmd=func_convert_file_noop
5602 to_host_file_cmd=$lt_cv_to_host_file_cmd
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5604 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5611 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5612 if ${lt_cv_to_tool_file_cmd+:} false; then :
5613 $as_echo_n "(cached) " >&6
5615 #assume ordinary cross tools, or native build.
5616 lt_cv_to_tool_file_cmd=func_convert_file_noop
5620 *-*-mingw* ) # actually msys
5621 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5629 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5631 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5638 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5639 if ${lt_cv_ld_reload_flag+:} false; then :
5640 $as_echo_n "(cached) " >&6
5642 lt_cv_ld_reload_flag='-r'
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5645 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5646 reload_flag=$lt_cv_ld_reload_flag
5647 case $reload_flag in
5649 *) reload_flag=" $reload_flag" ;;
5651 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5653 cygwin* | mingw* | pw32* | cegcc*)
5654 if test yes != "$GCC"; then
5659 if test yes = "$GCC"; then
5660 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5662 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5675 if test -n "$ac_tool_prefix"; then
5676 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5677 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5679 $as_echo_n "checking for $ac_word... " >&6; }
5680 if ${ac_cv_prog_OBJDUMP+:} false; then :
5681 $as_echo_n "(cached) " >&6
5683 if test -n "$OBJDUMP"; then
5684 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5690 test -z "$as_dir" && as_dir=.
5691 for ac_exec_ext in '' $ac_executable_extensions; do
5692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5693 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5703 OBJDUMP=$ac_cv_prog_OBJDUMP
5704 if test -n "$OBJDUMP"; then
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5706 $as_echo "$OBJDUMP" >&6; }
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5709 $as_echo "no" >&6; }
5714 if test -z "$ac_cv_prog_OBJDUMP"; then
5715 ac_ct_OBJDUMP=$OBJDUMP
5716 # Extract the first word of "objdump", so it can be a program name with args.
5717 set dummy objdump; ac_word=$2
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5719 $as_echo_n "checking for $ac_word... " >&6; }
5720 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5721 $as_echo_n "(cached) " >&6
5723 if test -n "$ac_ct_OBJDUMP"; then
5724 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5730 test -z "$as_dir" && as_dir=.
5731 for ac_exec_ext in '' $ac_executable_extensions; do
5732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5733 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5743 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5744 if test -n "$ac_ct_OBJDUMP"; then
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5746 $as_echo "$ac_ct_OBJDUMP" >&6; }
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5749 $as_echo "no" >&6; }
5752 if test "x$ac_ct_OBJDUMP" = x; then
5755 case $cross_compiling:$ac_tool_warned in
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5759 ac_tool_warned=yes ;;
5761 OBJDUMP=$ac_ct_OBJDUMP
5764 OBJDUMP="$ac_cv_prog_OBJDUMP"
5767 test -z "$OBJDUMP" && OBJDUMP=objdump
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5778 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5779 if ${lt_cv_deplibs_check_method+:} false; then :
5780 $as_echo_n "(cached) " >&6
5782 lt_cv_file_magic_cmd='$MAGIC_CMD'
5783 lt_cv_file_magic_test_file=
5784 lt_cv_deplibs_check_method='unknown'
5785 # Need to set the preceding variable on all platforms that support
5786 # interlibrary dependencies.
5787 # 'none' -- dependencies not supported.
5788 # 'unknown' -- same as none, but documents that we really don't know.
5789 # 'pass_all' -- all dependencies passed with no checks.
5790 # 'test_compile' -- check by making test program.
5791 # 'file_magic [[regex]]' -- check by looking for files in library path
5792 # that responds to the $file_magic_cmd with a given extended regex.
5793 # If you have 'file' or equivalent on your system and you're not sure
5794 # whether 'pass_all' will *always* work, you probably want this one.
5798 lt_cv_deplibs_check_method=pass_all
5802 lt_cv_deplibs_check_method=pass_all
5806 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5807 lt_cv_file_magic_cmd='/usr/bin/file -L'
5808 lt_cv_file_magic_test_file=/shlib/libc.so
5812 # func_win32_libid is a shell function defined in ltmain.sh
5813 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5814 lt_cv_file_magic_cmd='func_win32_libid'
5818 # Base MSYS/MinGW do not provide the 'file' command needed by
5819 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5820 # unless we find 'file', for example because we are cross-compiling.
5821 if ( file / ) >/dev/null 2>&1; then
5822 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5823 lt_cv_file_magic_cmd='func_win32_libid'
5825 # Keep this pattern in sync with the one in func_win32_libid.
5826 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5827 lt_cv_file_magic_cmd='$OBJDUMP -f'
5832 # use the weaker test based on 'objdump'. See mingw*.
5833 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5834 lt_cv_file_magic_cmd='$OBJDUMP -f'
5837 darwin* | rhapsody*)
5838 lt_cv_deplibs_check_method=pass_all
5841 freebsd* | dragonfly*)
5842 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5845 # Not sure whether the presence of OpenBSD here was a mistake.
5846 # Let's accept both of them until this is cleared up.
5847 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5848 lt_cv_file_magic_cmd=/usr/bin/file
5849 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5853 lt_cv_deplibs_check_method=pass_all
5858 lt_cv_deplibs_check_method=pass_all
5861 hpux10.20* | hpux11*)
5862 lt_cv_file_magic_cmd=/usr/bin/file
5865 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5866 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5869 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]'
5870 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5873 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5874 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5880 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5881 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5884 irix5* | irix6* | nonstopux*)
5886 *-32|*"-32 ") libmagic=32-bit;;
5887 *-n32|*"-n32 ") libmagic=N32;;
5888 *-64|*"-64 ") libmagic=64-bit;;
5889 *) libmagic=never-match;;
5891 lt_cv_deplibs_check_method=pass_all
5894 # This must be glibc/ELF.
5895 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5896 lt_cv_deplibs_check_method=pass_all
5899 netbsd* | netbsdelf*-gnu)
5900 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5901 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5903 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5908 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5909 lt_cv_file_magic_cmd=/usr/bin/file
5910 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5914 lt_cv_deplibs_check_method=pass_all
5918 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5919 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5921 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5925 osf3* | osf4* | osf5*)
5926 lt_cv_deplibs_check_method=pass_all
5930 lt_cv_deplibs_check_method=pass_all
5934 lt_cv_deplibs_check_method=pass_all
5937 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5938 lt_cv_deplibs_check_method=pass_all
5942 case $host_vendor in
5944 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]'
5945 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5948 lt_cv_deplibs_check_method=pass_all
5951 lt_cv_file_magic_cmd='/bin/file'
5952 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5955 lt_cv_file_magic_cmd='/bin/file'
5956 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5957 lt_cv_file_magic_test_file=/lib/libc.so
5960 lt_cv_deplibs_check_method=pass_all
5963 lt_cv_deplibs_check_method=pass_all
5969 lt_cv_deplibs_check_method=pass_all
5972 lt_cv_deplibs_check_method=pass_all
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5978 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5982 if test "$build" = "$host"; then
5985 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5988 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5994 file_magic_cmd=$lt_cv_file_magic_cmd
5995 deplibs_check_method=$lt_cv_deplibs_check_method
5996 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6019 if test -n "$ac_tool_prefix"; then
6020 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6021 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6023 $as_echo_n "checking for $ac_word... " >&6; }
6024 if ${ac_cv_prog_DLLTOOL+:} false; then :
6025 $as_echo_n "(cached) " >&6
6027 if test -n "$DLLTOOL"; then
6028 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6034 test -z "$as_dir" && as_dir=.
6035 for ac_exec_ext in '' $ac_executable_extensions; do
6036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6037 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6047 DLLTOOL=$ac_cv_prog_DLLTOOL
6048 if test -n "$DLLTOOL"; then
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6050 $as_echo "$DLLTOOL" >&6; }
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6053 $as_echo "no" >&6; }
6058 if test -z "$ac_cv_prog_DLLTOOL"; then
6059 ac_ct_DLLTOOL=$DLLTOOL
6060 # Extract the first word of "dlltool", so it can be a program name with args.
6061 set dummy dlltool; ac_word=$2
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6063 $as_echo_n "checking for $ac_word... " >&6; }
6064 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6065 $as_echo_n "(cached) " >&6
6067 if test -n "$ac_ct_DLLTOOL"; then
6068 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6074 test -z "$as_dir" && as_dir=.
6075 for ac_exec_ext in '' $ac_executable_extensions; do
6076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6077 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6087 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6088 if test -n "$ac_ct_DLLTOOL"; then
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6090 $as_echo "$ac_ct_DLLTOOL" >&6; }
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6093 $as_echo "no" >&6; }
6096 if test "x$ac_ct_DLLTOOL" = x; then
6099 case $cross_compiling:$ac_tool_warned in
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6103 ac_tool_warned=yes ;;
6105 DLLTOOL=$ac_ct_DLLTOOL
6108 DLLTOOL="$ac_cv_prog_DLLTOOL"
6111 test -z "$DLLTOOL" && DLLTOOL=dlltool
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6123 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6124 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6125 $as_echo_n "(cached) " >&6
6127 lt_cv_sharedlib_from_linklib_cmd='unknown'
6130 cygwin* | mingw* | pw32* | cegcc*)
6131 # two different shell functions defined in ltmain.sh;
6132 # decide which one to use based on capabilities of $DLLTOOL
6133 case `$DLLTOOL --help 2>&1` in
6134 *--identify-strict*)
6135 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6138 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6143 # fallback: assume linklib IS sharedlib
6144 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6150 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6151 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6152 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6160 if test -n "$ac_tool_prefix"; then
6163 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6164 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6166 $as_echo_n "checking for $ac_word... " >&6; }
6167 if ${ac_cv_prog_AR+:} false; then :
6168 $as_echo_n "(cached) " >&6
6170 if test -n "$AR"; then
6171 ac_cv_prog_AR="$AR" # Let the user override the test.
6173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6177 test -z "$as_dir" && as_dir=.
6178 for ac_exec_ext in '' $ac_executable_extensions; do
6179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6180 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6191 if test -n "$AR"; then
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6193 $as_echo "$AR" >&6; }
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6196 $as_echo "no" >&6; }
6200 test -n "$AR" && break
6203 if test -z "$AR"; then
6207 # Extract the first word of "$ac_prog", so it can be a program name with args.
6208 set dummy $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_ac_ct_AR+:} false; then :
6212 $as_echo_n "(cached) " >&6
6214 if test -n "$ac_ct_AR"; then
6215 ac_cv_prog_ac_ct_AR="$ac_ct_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_ac_ct_AR="$ac_prog"
6225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6234 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6235 if test -n "$ac_ct_AR"; then
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6237 $as_echo "$ac_ct_AR" >&6; }
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6240 $as_echo "no" >&6; }
6244 test -n "$ac_ct_AR" && break
6247 if test "x$ac_ct_AR" = x; then
6250 case $cross_compiling:$ac_tool_warned in
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6254 ac_tool_warned=yes ;;
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6274 $as_echo_n "checking for archiver @FILE support... " >&6; }
6275 if ${lt_cv_ar_at_file+:} false; then :
6276 $as_echo_n "(cached) " >&6
6279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6280 /* end confdefs.h. */
6290 if ac_fn_c_try_compile "$LINENO"; then :
6291 echo conftest.$ac_objext > conftest.lst
6292 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6293 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6294 (eval $lt_ar_try) 2>&5
6296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6297 test $ac_status = 0; }
6298 if test 0 -eq "$ac_status"; then
6299 # Ensure the archiver fails upon bogus file names.
6300 rm -f conftest.$ac_objext libconftest.a
6301 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6302 (eval $lt_ar_try) 2>&5
6304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6305 test $ac_status = 0; }
6306 if test 0 -ne "$ac_status"; then
6310 rm -f conftest.* libconftest.a
6313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6317 $as_echo "$lt_cv_ar_at_file" >&6; }
6319 if test no = "$lt_cv_ar_at_file"; then
6322 archiver_list_spec=$lt_cv_ar_at_file
6331 if test -n "$ac_tool_prefix"; then
6332 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6333 set dummy ${ac_tool_prefix}strip; ac_word=$2
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6335 $as_echo_n "checking for $ac_word... " >&6; }
6336 if ${ac_cv_prog_STRIP+:} false; then :
6337 $as_echo_n "(cached) " >&6
6339 if test -n "$STRIP"; then
6340 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6346 test -z "$as_dir" && as_dir=.
6347 for ac_exec_ext in '' $ac_executable_extensions; do
6348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6349 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6359 STRIP=$ac_cv_prog_STRIP
6360 if test -n "$STRIP"; then
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6362 $as_echo "$STRIP" >&6; }
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6365 $as_echo "no" >&6; }
6370 if test -z "$ac_cv_prog_STRIP"; then
6372 # Extract the first word of "strip", so it can be a program name with args.
6373 set dummy strip; ac_word=$2
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6375 $as_echo_n "checking for $ac_word... " >&6; }
6376 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6377 $as_echo_n "(cached) " >&6
6379 if test -n "$ac_ct_STRIP"; then
6380 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6386 test -z "$as_dir" && as_dir=.
6387 for ac_exec_ext in '' $ac_executable_extensions; do
6388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6389 ac_cv_prog_ac_ct_STRIP="strip"
6390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6399 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6400 if test -n "$ac_ct_STRIP"; then
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6402 $as_echo "$ac_ct_STRIP" >&6; }
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6405 $as_echo "no" >&6; }
6408 if test "x$ac_ct_STRIP" = x; then
6411 case $cross_compiling:$ac_tool_warned in
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6415 ac_tool_warned=yes ;;
6420 STRIP="$ac_cv_prog_STRIP"
6423 test -z "$STRIP" && STRIP=:
6430 if test -n "$ac_tool_prefix"; then
6431 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6432 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6434 $as_echo_n "checking for $ac_word... " >&6; }
6435 if ${ac_cv_prog_RANLIB+:} false; then :
6436 $as_echo_n "(cached) " >&6
6438 if test -n "$RANLIB"; then
6439 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6445 test -z "$as_dir" && as_dir=.
6446 for ac_exec_ext in '' $ac_executable_extensions; do
6447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6448 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6458 RANLIB=$ac_cv_prog_RANLIB
6459 if test -n "$RANLIB"; then
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6461 $as_echo "$RANLIB" >&6; }
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6464 $as_echo "no" >&6; }
6469 if test -z "$ac_cv_prog_RANLIB"; then
6470 ac_ct_RANLIB=$RANLIB
6471 # Extract the first word of "ranlib", so it can be a program name with args.
6472 set dummy ranlib; ac_word=$2
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6474 $as_echo_n "checking for $ac_word... " >&6; }
6475 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6476 $as_echo_n "(cached) " >&6
6478 if test -n "$ac_ct_RANLIB"; then
6479 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6485 test -z "$as_dir" && as_dir=.
6486 for ac_exec_ext in '' $ac_executable_extensions; do
6487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6488 ac_cv_prog_ac_ct_RANLIB="ranlib"
6489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6498 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6499 if test -n "$ac_ct_RANLIB"; then
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6501 $as_echo "$ac_ct_RANLIB" >&6; }
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6504 $as_echo "no" >&6; }
6507 if test "x$ac_ct_RANLIB" = x; then
6510 case $cross_compiling:$ac_tool_warned in
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6513 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6514 ac_tool_warned=yes ;;
6516 RANLIB=$ac_ct_RANLIB
6519 RANLIB="$ac_cv_prog_RANLIB"
6522 test -z "$RANLIB" && RANLIB=:
6529 # Determine commands to create old-style static archives.
6530 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6531 old_postinstall_cmds='chmod 644 $oldlib'
6532 old_postuninstall_cmds=
6534 if test -n "$RANLIB"; then
6537 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6540 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6543 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6548 lock_old_archive_extraction=yes ;;
6550 lock_old_archive_extraction=no ;;
6591 # If no C compiler was specified, use CC.
6594 # If no C compiler flags were specified, use CFLAGS.
6595 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6597 # Allow CC to be a program name with arguments.
6601 # Check for command to grab the raw symbol name followed by C symbol from nm.
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6603 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6604 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6605 $as_echo_n "(cached) " >&6
6608 # These are sane defaults that work on at least a few old systems.
6609 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6611 # Character class describing NM global symbol codes.
6612 symcode='[BCDEGRST]'
6614 # Regexp to match symbols that can be accessed directly from C.
6615 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6617 # Define system-specific variables.
6622 cygwin* | mingw* | pw32* | cegcc*)
6623 symcode='[ABCDGISTW]'
6626 if test ia64 = "$host_cpu"; then
6627 symcode='[ABCDEGRST]'
6631 symcode='[BCDEGRST]'
6634 symcode='[BCDEGQRST]'
6645 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6653 # If we're using GNU nm, then use its standard symbol codes.
6654 case `$NM -V 2>&1` in
6655 *GNU* | *'with BFD'*)
6656 symcode='[ABCDGIRSTW]' ;;
6659 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6660 # Gets list of data symbols to import.
6661 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6662 # Adjust the below global symbol transforms to fixup imported variables.
6663 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6664 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6665 lt_c_name_lib_hook="\
6666 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6667 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6669 # Disable hooks by default.
6670 lt_cv_sys_global_symbol_to_import=
6676 # Transform an extracted symbol line into a proper C declaration.
6677 # Some systems (esp. on ia64) link data and code symbols differently,
6678 # so use this general approach.
6679 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6681 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6682 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6684 # Transform an extracted symbol line into symbol name and symbol address
6685 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6687 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6688 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6690 # Transform an extracted symbol line into symbol name with lib prefix and
6692 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6693 $lt_c_name_lib_hook\
6694 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6695 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6696 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6698 # Handle CRLF in mingw tool chain
6702 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6706 # Try without a prefix underscore, then with it.
6707 for ac_symprfx in "" "_"; do
6709 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6710 symxfrm="\\1 $ac_symprfx\\2 \\2"
6712 # Write the raw and C identifiers.
6713 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6714 # Fake it for dumpbin and say T for any non-static function,
6715 # D for any global variable and I for any imported variable.
6716 # Also find C++ and __fastcall symbols from MSVC++,
6717 # which start with @ or ?.
6718 lt_cv_sys_global_symbol_pipe="$AWK '"\
6719 " {last_section=section; section=\$ 3};"\
6720 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6721 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6722 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6723 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6724 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6725 " \$ 0!~/External *\|/{next};"\
6726 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6727 " {if(hide[section]) next};"\
6728 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6729 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6730 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6731 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6732 " ' prfx=^$ac_symprfx"
6734 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6736 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6738 # Check to see that the pipe works correctly.
6742 cat > conftest.$ac_ext <<_LT_EOF
6747 void nm_test_func(void);
6748 void nm_test_func(void){}
6752 int main(){nm_test_var='a';nm_test_func();return(0);}
6755 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6756 (eval $ac_compile) 2>&5
6758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6759 test $ac_status = 0; }; then
6760 # Now try to grab the symbols.
6762 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6763 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6766 test $ac_status = 0; } && test -s "$nlist"; then
6767 # Try sorting and uniquifying the output.
6768 if sort "$nlist" | uniq > "$nlist"T; then
6769 mv -f "$nlist"T "$nlist"
6774 # Make sure that we snagged all the symbols we need.
6775 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6776 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6777 cat <<_LT_EOF > conftest.$ac_ext
6778 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6779 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6780 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6781 relocations are performed -- see ld's documentation on pseudo-relocs. */
6782 # define LT_DLSYM_CONST
6783 #elif defined __osf__
6784 /* This system does not cope well with relocations in const data. */
6785 # define LT_DLSYM_CONST
6787 # define LT_DLSYM_CONST const
6795 # Now generate the symbol file.
6796 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6798 cat <<_LT_EOF >> conftest.$ac_ext
6800 /* The mapping between symbol names and symbols. */
6801 LT_DLSYM_CONST struct {
6805 lt__PROGRAM__LTX_preloaded_symbols[] =
6807 { "@PROGRAM@", (void *) 0 },
6809 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6810 cat <<\_LT_EOF >> conftest.$ac_ext
6814 /* This works around a problem in FreeBSD linker */
6815 #ifdef FREEBSD_WORKAROUND
6816 static const void *lt_preloaded_setup() {
6817 return lt__PROGRAM__LTX_preloaded_symbols;
6825 # Now try linking the two files.
6826 mv conftest.$ac_objext conftstm.$ac_objext
6827 lt_globsym_save_LIBS=$LIBS
6828 lt_globsym_save_CFLAGS=$CFLAGS
6829 LIBS=conftstm.$ac_objext
6830 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6831 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6832 (eval $ac_link) 2>&5
6834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6835 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6838 LIBS=$lt_globsym_save_LIBS
6839 CFLAGS=$lt_globsym_save_CFLAGS
6841 echo "cannot find nm_test_func in $nlist" >&5
6844 echo "cannot find nm_test_var in $nlist" >&5
6847 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6850 echo "$progname: failed program was:" >&5
6851 cat conftest.$ac_ext >&5
6853 rm -rf conftest* conftst*
6855 # Do not use the global_symbol_pipe unless it works.
6856 if test yes = "$pipe_works"; then
6859 lt_cv_sys_global_symbol_pipe=
6865 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6866 lt_cv_sys_global_symbol_to_cdecl=
6868 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6870 $as_echo "failed" >&6; }
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6873 $as_echo "ok" >&6; }
6876 # Response file support.
6877 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6878 nm_file_list_spec='@'
6879 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6880 nm_file_list_spec='@'
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6920 $as_echo_n "checking for sysroot... " >&6; }
6922 # Check whether --with-sysroot was given.
6923 if test "${with_sysroot+set}" = set; then :
6924 withval=$with_sysroot;
6931 case $with_sysroot in #(
6933 if test yes = "$GCC"; then
6934 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6938 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6944 $as_echo "$with_sysroot" >&6; }
6945 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6950 $as_echo "${lt_sysroot:-no}" >&6; }
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6957 $as_echo_n "checking for a working dd... " >&6; }
6958 if ${ac_cv_path_lt_DD+:} false; then :
6959 $as_echo_n "(cached) " >&6
6961 printf 0123456789abcdef0123456789abcdef >conftest.i
6962 cat conftest.i conftest.i >conftest2.i
6964 if test -z "$lt_DD"; then
6965 ac_path_lt_DD_found=false
6966 # Loop through the user's path and test for each of PROGNAME-LIST
6967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6971 test -z "$as_dir" && as_dir=.
6972 for ac_prog in dd; do
6973 for ac_exec_ext in '' $ac_executable_extensions; do
6974 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6975 as_fn_executable_p "$ac_path_lt_DD" || continue
6976 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6977 cmp -s conftest.i conftest.out \
6978 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6980 $ac_path_lt_DD_found && break 3
6985 if test -z "$ac_cv_path_lt_DD"; then
6989 ac_cv_path_lt_DD=$lt_DD
6992 rm -f conftest.i conftest2.i conftest.out
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6995 $as_echo "$ac_cv_path_lt_DD" >&6; }
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6999 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7000 if ${lt_cv_truncate_bin+:} false; then :
7001 $as_echo_n "(cached) " >&6
7003 printf 0123456789abcdef0123456789abcdef >conftest.i
7004 cat conftest.i conftest.i >conftest2.i
7006 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7007 cmp -s conftest.i conftest.out \
7008 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7010 rm -f conftest.i conftest2.i conftest.out
7011 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7014 $as_echo "$lt_cv_truncate_bin" >&6; }
7022 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7025 for cc_temp in $*""; do
7027 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7028 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7033 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7036 # Check whether --enable-libtool-lock was given.
7037 if test "${enable_libtool_lock+set}" = set; then :
7038 enableval=$enable_libtool_lock;
7041 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7043 # Some flags need to be propagated to the compiler or linker for good
7047 # Find out what ABI is being produced by ac_compile, and set mode
7048 # options accordingly.
7049 echo 'int i;' > conftest.$ac_ext
7050 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7051 (eval $ac_compile) 2>&5
7053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7054 test $ac_status = 0; }; then
7055 case `/usr/bin/file conftest.$ac_objext` in
7067 # Find out what ABI is being produced by ac_compile, and set linker
7068 # options accordingly.
7069 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7070 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7071 (eval $ac_compile) 2>&5
7073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7074 test $ac_status = 0; }; then
7075 if test yes = "$lt_cv_prog_gnu_ld"; then
7076 case `/usr/bin/file conftest.$ac_objext` in
7078 LD="${LD-ld} -melf32bsmip"
7081 LD="${LD-ld} -melf32bmipn32"
7084 LD="${LD-ld} -melf64bmip"
7088 case `/usr/bin/file conftest.$ac_objext` in
7105 # Find out what ABI is being produced by ac_compile, and set linker
7106 # options accordingly.
7107 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7108 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7109 (eval $ac_compile) 2>&5
7111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7112 test $ac_status = 0; }; then
7114 case `/usr/bin/file conftest.$ac_objext` in
7122 case `/usr/bin/file conftest.$ac_objext` in
7124 emul="${emul}btsmip"
7127 emul="${emul}ltsmip"
7130 case `/usr/bin/file conftest.$ac_objext` in
7135 LD="${LD-ld} -m $emul"
7140 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7141 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7142 # Find out what ABI is being produced by ac_compile, and set linker
7143 # options accordingly. Note that the listed cases only cover the
7144 # situations where additional linker options are needed (such as when
7145 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7146 # vice versa); the common cases where no linker options are needed do
7147 # not appear in the list.
7148 echo 'int i;' > conftest.$ac_ext
7149 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7150 (eval $ac_compile) 2>&5
7152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7153 test $ac_status = 0; }; then
7154 case `/usr/bin/file conftest.o` in
7157 x86_64-*kfreebsd*-gnu)
7158 LD="${LD-ld} -m elf_i386_fbsd"
7161 case `/usr/bin/file conftest.o` in
7163 LD="${LD-ld} -m elf32_x86_64"
7166 LD="${LD-ld} -m elf_i386"
7170 powerpc64le-*linux*)
7171 LD="${LD-ld} -m elf32lppclinux"
7174 LD="${LD-ld} -m elf32ppclinux"
7177 LD="${LD-ld} -m elf_s390"
7180 LD="${LD-ld} -m elf32_sparc"
7186 x86_64-*kfreebsd*-gnu)
7187 LD="${LD-ld} -m elf_x86_64_fbsd"
7190 LD="${LD-ld} -m elf_x86_64"
7193 LD="${LD-ld} -m elf64lppc"
7196 LD="${LD-ld} -m elf64ppc"
7198 s390*-*linux*|s390*-*tpf*)
7199 LD="${LD-ld} -m elf64_s390"
7202 LD="${LD-ld} -m elf64_sparc"
7212 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7214 CFLAGS="$CFLAGS -belf"
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7216 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7217 if ${lt_cv_cc_needs_belf+:} false; then :
7218 $as_echo_n "(cached) " >&6
7221 ac_cpp='$CPP $CPPFLAGS'
7222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7227 /* end confdefs.h. */
7237 if ac_fn_c_try_link "$LINENO"; then :
7238 lt_cv_cc_needs_belf=yes
7240 lt_cv_cc_needs_belf=no
7242 rm -f core conftest.err conftest.$ac_objext \
7243 conftest$ac_exeext conftest.$ac_ext
7245 ac_cpp='$CPP $CPPFLAGS'
7246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7252 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7253 if test yes != "$lt_cv_cc_needs_belf"; then
7254 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7259 # Find out what ABI is being produced by ac_compile, and set linker
7260 # options accordingly.
7261 echo 'int i;' > conftest.$ac_ext
7262 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7263 (eval $ac_compile) 2>&5
7265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7266 test $ac_status = 0; }; then
7267 case `/usr/bin/file conftest.o` in
7269 case $lt_cv_prog_gnu_ld in
7272 i?86-*-solaris*|x86_64-*-solaris*)
7273 LD="${LD-ld} -m elf_x86_64"
7276 LD="${LD-ld} -m elf64_sparc"
7279 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7280 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7285 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7297 need_locks=$enable_libtool_lock
7299 if test -n "$ac_tool_prefix"; then
7300 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7301 set dummy ${ac_tool_prefix}mt; ac_word=$2
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7303 $as_echo_n "checking for $ac_word... " >&6; }
7304 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7305 $as_echo_n "(cached) " >&6
7307 if test -n "$MANIFEST_TOOL"; then
7308 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314 test -z "$as_dir" && as_dir=.
7315 for ac_exec_ext in '' $ac_executable_extensions; do
7316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7317 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7327 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7328 if test -n "$MANIFEST_TOOL"; then
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7330 $as_echo "$MANIFEST_TOOL" >&6; }
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7333 $as_echo "no" >&6; }
7338 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7339 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7340 # Extract the first word of "mt", so it can be a program name with args.
7341 set dummy mt; ac_word=$2
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7343 $as_echo_n "checking for $ac_word... " >&6; }
7344 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7345 $as_echo_n "(cached) " >&6
7347 if test -n "$ac_ct_MANIFEST_TOOL"; then
7348 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7354 test -z "$as_dir" && as_dir=.
7355 for ac_exec_ext in '' $ac_executable_extensions; do
7356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7367 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7368 if test -n "$ac_ct_MANIFEST_TOOL"; then
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7370 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7373 $as_echo "no" >&6; }
7376 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7379 case $cross_compiling:$ac_tool_warned in
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7383 ac_tool_warned=yes ;;
7385 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7388 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7391 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7393 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7394 if ${lt_cv_path_mainfest_tool+:} false; then :
7395 $as_echo_n "(cached) " >&6
7397 lt_cv_path_mainfest_tool=no
7398 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7399 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7400 cat conftest.err >&5
7401 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7402 lt_cv_path_mainfest_tool=yes
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7407 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7408 if test yes != "$lt_cv_path_mainfest_tool"; then
7418 rhapsody* | darwin*)
7419 if test -n "$ac_tool_prefix"; then
7420 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7421 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7423 $as_echo_n "checking for $ac_word... " >&6; }
7424 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7425 $as_echo_n "(cached) " >&6
7427 if test -n "$DSYMUTIL"; then
7428 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7434 test -z "$as_dir" && as_dir=.
7435 for ac_exec_ext in '' $ac_executable_extensions; do
7436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7437 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7447 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7448 if test -n "$DSYMUTIL"; then
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7450 $as_echo "$DSYMUTIL" >&6; }
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7453 $as_echo "no" >&6; }
7458 if test -z "$ac_cv_prog_DSYMUTIL"; then
7459 ac_ct_DSYMUTIL=$DSYMUTIL
7460 # Extract the first word of "dsymutil", so it can be a program name with args.
7461 set dummy dsymutil; ac_word=$2
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7463 $as_echo_n "checking for $ac_word... " >&6; }
7464 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7465 $as_echo_n "(cached) " >&6
7467 if test -n "$ac_ct_DSYMUTIL"; then
7468 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7474 test -z "$as_dir" && as_dir=.
7475 for ac_exec_ext in '' $ac_executable_extensions; do
7476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7477 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7487 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7488 if test -n "$ac_ct_DSYMUTIL"; then
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7490 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7493 $as_echo "no" >&6; }
7496 if test "x$ac_ct_DSYMUTIL" = x; then
7499 case $cross_compiling:$ac_tool_warned in
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7502 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7503 ac_tool_warned=yes ;;
7505 DSYMUTIL=$ac_ct_DSYMUTIL
7508 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7511 if test -n "$ac_tool_prefix"; then
7512 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7513 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7515 $as_echo_n "checking for $ac_word... " >&6; }
7516 if ${ac_cv_prog_NMEDIT+:} false; then :
7517 $as_echo_n "(cached) " >&6
7519 if test -n "$NMEDIT"; then
7520 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7526 test -z "$as_dir" && as_dir=.
7527 for ac_exec_ext in '' $ac_executable_extensions; do
7528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7529 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7539 NMEDIT=$ac_cv_prog_NMEDIT
7540 if test -n "$NMEDIT"; then
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7542 $as_echo "$NMEDIT" >&6; }
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7545 $as_echo "no" >&6; }
7550 if test -z "$ac_cv_prog_NMEDIT"; then
7551 ac_ct_NMEDIT=$NMEDIT
7552 # Extract the first word of "nmedit", so it can be a program name with args.
7553 set dummy nmedit; ac_word=$2
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7555 $as_echo_n "checking for $ac_word... " >&6; }
7556 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7557 $as_echo_n "(cached) " >&6
7559 if test -n "$ac_ct_NMEDIT"; then
7560 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7566 test -z "$as_dir" && as_dir=.
7567 for ac_exec_ext in '' $ac_executable_extensions; do
7568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7569 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7579 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7580 if test -n "$ac_ct_NMEDIT"; then
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7582 $as_echo "$ac_ct_NMEDIT" >&6; }
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7585 $as_echo "no" >&6; }
7588 if test "x$ac_ct_NMEDIT" = x; then
7591 case $cross_compiling:$ac_tool_warned in
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7595 ac_tool_warned=yes ;;
7597 NMEDIT=$ac_ct_NMEDIT
7600 NMEDIT="$ac_cv_prog_NMEDIT"
7603 if test -n "$ac_tool_prefix"; then
7604 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7605 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7607 $as_echo_n "checking for $ac_word... " >&6; }
7608 if ${ac_cv_prog_LIPO+:} false; then :
7609 $as_echo_n "(cached) " >&6
7611 if test -n "$LIPO"; then
7612 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7618 test -z "$as_dir" && as_dir=.
7619 for ac_exec_ext in '' $ac_executable_extensions; do
7620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7621 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7631 LIPO=$ac_cv_prog_LIPO
7632 if test -n "$LIPO"; then
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7634 $as_echo "$LIPO" >&6; }
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7637 $as_echo "no" >&6; }
7642 if test -z "$ac_cv_prog_LIPO"; then
7644 # Extract the first word of "lipo", so it can be a program name with args.
7645 set dummy lipo; ac_word=$2
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7647 $as_echo_n "checking for $ac_word... " >&6; }
7648 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7649 $as_echo_n "(cached) " >&6
7651 if test -n "$ac_ct_LIPO"; then
7652 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7658 test -z "$as_dir" && as_dir=.
7659 for ac_exec_ext in '' $ac_executable_extensions; do
7660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7661 ac_cv_prog_ac_ct_LIPO="lipo"
7662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7671 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7672 if test -n "$ac_ct_LIPO"; then
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7674 $as_echo "$ac_ct_LIPO" >&6; }
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7677 $as_echo "no" >&6; }
7680 if test "x$ac_ct_LIPO" = x; then
7683 case $cross_compiling:$ac_tool_warned in
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7687 ac_tool_warned=yes ;;
7692 LIPO="$ac_cv_prog_LIPO"
7695 if test -n "$ac_tool_prefix"; then
7696 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7697 set dummy ${ac_tool_prefix}otool; ac_word=$2
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7699 $as_echo_n "checking for $ac_word... " >&6; }
7700 if ${ac_cv_prog_OTOOL+:} false; then :
7701 $as_echo_n "(cached) " >&6
7703 if test -n "$OTOOL"; then
7704 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7710 test -z "$as_dir" && as_dir=.
7711 for ac_exec_ext in '' $ac_executable_extensions; do
7712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7713 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7723 OTOOL=$ac_cv_prog_OTOOL
7724 if test -n "$OTOOL"; then
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7726 $as_echo "$OTOOL" >&6; }
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7729 $as_echo "no" >&6; }
7734 if test -z "$ac_cv_prog_OTOOL"; then
7736 # Extract the first word of "otool", so it can be a program name with args.
7737 set dummy otool; ac_word=$2
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7739 $as_echo_n "checking for $ac_word... " >&6; }
7740 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7741 $as_echo_n "(cached) " >&6
7743 if test -n "$ac_ct_OTOOL"; then
7744 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7750 test -z "$as_dir" && as_dir=.
7751 for ac_exec_ext in '' $ac_executable_extensions; do
7752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7753 ac_cv_prog_ac_ct_OTOOL="otool"
7754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7763 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7764 if test -n "$ac_ct_OTOOL"; then
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7766 $as_echo "$ac_ct_OTOOL" >&6; }
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7769 $as_echo "no" >&6; }
7772 if test "x$ac_ct_OTOOL" = x; then
7775 case $cross_compiling:$ac_tool_warned in
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7778 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7779 ac_tool_warned=yes ;;
7784 OTOOL="$ac_cv_prog_OTOOL"
7787 if test -n "$ac_tool_prefix"; then
7788 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7789 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7791 $as_echo_n "checking for $ac_word... " >&6; }
7792 if ${ac_cv_prog_OTOOL64+:} false; then :
7793 $as_echo_n "(cached) " >&6
7795 if test -n "$OTOOL64"; then
7796 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7802 test -z "$as_dir" && as_dir=.
7803 for ac_exec_ext in '' $ac_executable_extensions; do
7804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7805 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7815 OTOOL64=$ac_cv_prog_OTOOL64
7816 if test -n "$OTOOL64"; then
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7818 $as_echo "$OTOOL64" >&6; }
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7821 $as_echo "no" >&6; }
7826 if test -z "$ac_cv_prog_OTOOL64"; then
7827 ac_ct_OTOOL64=$OTOOL64
7828 # Extract the first word of "otool64", so it can be a program name with args.
7829 set dummy otool64; ac_word=$2
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7831 $as_echo_n "checking for $ac_word... " >&6; }
7832 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7833 $as_echo_n "(cached) " >&6
7835 if test -n "$ac_ct_OTOOL64"; then
7836 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7842 test -z "$as_dir" && as_dir=.
7843 for ac_exec_ext in '' $ac_executable_extensions; do
7844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7845 ac_cv_prog_ac_ct_OTOOL64="otool64"
7846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7855 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7856 if test -n "$ac_ct_OTOOL64"; then
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7858 $as_echo "$ac_ct_OTOOL64" >&6; }
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7861 $as_echo "no" >&6; }
7864 if test "x$ac_ct_OTOOL64" = x; then
7867 case $cross_compiling:$ac_tool_warned in
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7870 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7871 ac_tool_warned=yes ;;
7873 OTOOL64=$ac_ct_OTOOL64
7876 OTOOL64="$ac_cv_prog_OTOOL64"
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7906 $as_echo_n "checking for -single_module linker flag... " >&6; }
7907 if ${lt_cv_apple_cc_single_mod+:} false; then :
7908 $as_echo_n "(cached) " >&6
7910 lt_cv_apple_cc_single_mod=no
7911 if test -z "$LT_MULTI_MODULE"; then
7912 # By default we will add the -single_module flag. You can override
7913 # by either setting the environment variable LT_MULTI_MODULE
7914 # non-empty at configure time, or by adding -multi_module to the
7916 rm -rf libconftest.dylib*
7917 echo "int foo(void){return 1;}" > conftest.c
7918 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7919 -dynamiclib -Wl,-single_module conftest.c" >&5
7920 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7921 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7923 # If there is a non-empty error log, and "single_module"
7924 # appears in it, assume the flag caused a linker warning
7925 if test -s conftest.err && $GREP single_module conftest.err; then
7926 cat conftest.err >&5
7927 # Otherwise, if the output was created with a 0 exit code from
7928 # the compiler, it worked.
7929 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7930 lt_cv_apple_cc_single_mod=yes
7932 cat conftest.err >&5
7934 rm -rf libconftest.dylib*
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7939 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7942 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7943 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7944 $as_echo_n "(cached) " >&6
7946 lt_cv_ld_exported_symbols_list=no
7947 save_LDFLAGS=$LDFLAGS
7948 echo "_main" > conftest.sym
7949 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7951 /* end confdefs.h. */
7961 if ac_fn_c_try_link "$LINENO"; then :
7962 lt_cv_ld_exported_symbols_list=yes
7964 lt_cv_ld_exported_symbols_list=no
7966 rm -f core conftest.err conftest.$ac_objext \
7967 conftest$ac_exeext conftest.$ac_ext
7968 LDFLAGS=$save_LDFLAGS
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7972 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7975 $as_echo_n "checking for -force_load linker flag... " >&6; }
7976 if ${lt_cv_ld_force_load+:} false; then :
7977 $as_echo_n "(cached) " >&6
7979 lt_cv_ld_force_load=no
7980 cat > conftest.c << _LT_EOF
7981 int forced_loaded() { return 2;}
7983 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7984 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7985 echo "$AR cru libconftest.a conftest.o" >&5
7986 $AR cru libconftest.a conftest.o 2>&5
7987 echo "$RANLIB libconftest.a" >&5
7988 $RANLIB libconftest.a 2>&5
7989 cat > conftest.c << _LT_EOF
7990 int main() { return 0;}
7992 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7993 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7995 if test -s conftest.err && $GREP force_load conftest.err; then
7996 cat conftest.err >&5
7997 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7998 lt_cv_ld_force_load=yes
8000 cat conftest.err >&5
8002 rm -f conftest.err libconftest.a conftest conftest.c
8003 rm -rf conftest.dSYM
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8007 $as_echo "$lt_cv_ld_force_load" >&6; }
8009 rhapsody* | darwin1.[012])
8010 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8012 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8013 darwin*) # darwin 5.x on
8014 # if running on 10.5 or later, the deployment target defaults
8015 # to the OS version, if on x86, and 10.4, the deployment
8016 # target defaults to 10.4. Don't you love it?
8017 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8018 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8019 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8021 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8023 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8027 if test yes = "$lt_cv_apple_cc_single_mod"; then
8028 _lt_dar_single_mod='$single_module'
8030 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8031 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8033 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8035 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8036 _lt_dsymutil='~$DSYMUTIL $lib || :'
8043 # func_munge_path_list VARIABLE PATH
8044 # -----------------------------------
8045 # VARIABLE is name of variable containing _space_ separated list of
8046 # directories to be munged by the contents of PATH, which is string
8049 # string "DIR[ DIR]" will be prepended to VARIABLE
8051 # string "DIR[ DIR]" will be appended to VARIABLE
8052 # "DIRP[:DIRP]::[DIRA:]DIRA"
8053 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8054 # "DIRA[ DIRA]" will be appended to VARIABLE
8056 # VARIABLE will be replaced by "DIR[ DIR]"
8057 func_munge_path_list ()
8063 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8066 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8069 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8070 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8073 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8079 ac_cpp='$CPP $CPPFLAGS'
8080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8084 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8085 # On Suns, sometimes $CPP names a directory.
8086 if test -n "$CPP" && test -d "$CPP"; then
8089 if test -z "$CPP"; then
8090 if ${ac_cv_prog_CPP+:} false; then :
8091 $as_echo_n "(cached) " >&6
8093 # Double quotes because CPP needs to be expanded
8094 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8097 for ac_c_preproc_warn_flag in '' yes
8099 # Use a header file that comes with gcc, so configuring glibc
8100 # with a fresh cross-compiler works.
8101 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8102 # <limits.h> exists even on freestanding compilers.
8103 # On the NeXT, cc -E runs the code through the compiler's parser,
8104 # not just through cpp. "Syntax error" is here to catch this case.
8105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8106 /* end confdefs.h. */
8108 # include <limits.h>
8110 # include <assert.h>
8114 if ac_fn_c_try_cpp "$LINENO"; then :
8117 # Broken: fails on valid input.
8120 rm -f conftest.err conftest.i conftest.$ac_ext
8122 # OK, works on sane cases. Now check whether nonexistent headers
8123 # can be detected and how.
8124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8125 /* end confdefs.h. */
8126 #include <ac_nonexistent.h>
8128 if ac_fn_c_try_cpp "$LINENO"; then :
8129 # Broken: success on invalid input.
8132 # Passes both tests.
8136 rm -f conftest.err conftest.i conftest.$ac_ext
8139 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8140 rm -f conftest.i conftest.err conftest.$ac_ext
8141 if $ac_preproc_ok; then :
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8154 $as_echo "$CPP" >&6; }
8156 for ac_c_preproc_warn_flag in '' yes
8158 # Use a header file that comes with gcc, so configuring glibc
8159 # with a fresh cross-compiler works.
8160 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8161 # <limits.h> exists even on freestanding compilers.
8162 # On the NeXT, cc -E runs the code through the compiler's parser,
8163 # not just through cpp. "Syntax error" is here to catch this case.
8164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8165 /* end confdefs.h. */
8167 # include <limits.h>
8169 # include <assert.h>
8173 if ac_fn_c_try_cpp "$LINENO"; then :
8176 # Broken: fails on valid input.
8179 rm -f conftest.err conftest.i conftest.$ac_ext
8181 # OK, works on sane cases. Now check whether nonexistent headers
8182 # can be detected and how.
8183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8184 /* end confdefs.h. */
8185 #include <ac_nonexistent.h>
8187 if ac_fn_c_try_cpp "$LINENO"; then :
8188 # Broken: success on invalid input.
8191 # Passes both tests.
8195 rm -f conftest.err conftest.i conftest.$ac_ext
8198 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8199 rm -f conftest.i conftest.err conftest.$ac_ext
8200 if $ac_preproc_ok; then :
8203 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8205 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8206 See \`config.log' for more details" "$LINENO" 5; }
8210 ac_cpp='$CPP $CPPFLAGS'
8211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8217 $as_echo_n "checking for ANSI C header files... " >&6; }
8218 if ${ac_cv_header_stdc+:} false; then :
8219 $as_echo_n "(cached) " >&6
8221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8222 /* end confdefs.h. */
8236 if ac_fn_c_try_compile "$LINENO"; then :
8237 ac_cv_header_stdc=yes
8239 ac_cv_header_stdc=no
8241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8243 if test $ac_cv_header_stdc = yes; then
8244 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8246 /* end confdefs.h. */
8250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8251 $EGREP "memchr" >/dev/null 2>&1; then :
8254 ac_cv_header_stdc=no
8260 if test $ac_cv_header_stdc = yes; then
8261 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8263 /* end confdefs.h. */
8267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8268 $EGREP "free" >/dev/null 2>&1; then :
8271 ac_cv_header_stdc=no
8277 if test $ac_cv_header_stdc = yes; then
8278 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8279 if test "$cross_compiling" = yes; then :
8282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8283 /* end confdefs.h. */
8286 #if ((' ' & 0x0FF) == 0x020)
8287 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8288 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8290 # define ISLOWER(c) \
8291 (('a' <= (c) && (c) <= 'i') \
8292 || ('j' <= (c) && (c) <= 'r') \
8293 || ('s' <= (c) && (c) <= 'z'))
8294 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8297 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8302 for (i = 0; i < 256; i++)
8303 if (XOR (islower (i), ISLOWER (i))
8304 || toupper (i) != TOUPPER (i))
8309 if ac_fn_c_try_run "$LINENO"; then :
8312 ac_cv_header_stdc=no
8314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8315 conftest.$ac_objext conftest.beam conftest.$ac_ext
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8321 $as_echo "$ac_cv_header_stdc" >&6; }
8322 if test $ac_cv_header_stdc = yes; then
8324 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8328 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8329 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8330 inttypes.h stdint.h unistd.h
8332 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8333 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8335 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8336 cat >>confdefs.h <<_ACEOF
8337 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8345 for ac_header in dlfcn.h
8347 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8349 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8350 cat >>confdefs.h <<_ACEOF
8351 #define HAVE_DLFCN_H 1
8361 func_stripname_cnf ()
8364 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
8365 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
8367 } # func_stripname_cnf
8383 # Check whether --enable-shared was given.
8384 if test "${enable_shared+set}" = set; then :
8385 enableval=$enable_shared; p=${PACKAGE-default}
8387 yes) enable_shared=yes ;;
8388 no) enable_shared=no ;;
8391 # Look at the argument we got. We use all the common list separators.
8392 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8393 for pkg in $enableval; do
8395 if test "X$pkg" = "X$p"; then
8416 # Check whether --with-pic was given.
8417 if test "${with_pic+set}" = set; then :
8418 withval=$with_pic; lt_p=${PACKAGE-default}
8420 yes|no) pic_mode=$withval ;;
8423 # Look at the argument we got. We use all the common list separators.
8424 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8425 for lt_pkg in $withval; do
8427 if test "X$lt_pkg" = "X$lt_p"; then
8445 # Check whether --enable-fast-install was given.
8446 if test "${enable_fast_install+set}" = set; then :
8447 enableval=$enable_fast_install; p=${PACKAGE-default}
8449 yes) enable_fast_install=yes ;;
8450 no) enable_fast_install=no ;;
8452 enable_fast_install=no
8453 # Look at the argument we got. We use all the common list separators.
8454 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8455 for pkg in $enableval; do
8457 if test "X$pkg" = "X$p"; then
8458 enable_fast_install=yes
8465 enable_fast_install=yes
8475 shared_archive_member_spec=
8476 case $host,$enable_shared in
8477 power*-*-aix[5-9]*,yes)
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8479 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8481 # Check whether --with-aix-soname was given.
8482 if test "${with_aix_soname+set}" = set; then :
8483 withval=$with_aix_soname; case $withval in
8487 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8490 lt_cv_with_aix_soname=$with_aix_soname
8492 if ${lt_cv_with_aix_soname+:} false; then :
8493 $as_echo_n "(cached) " >&6
8495 lt_cv_with_aix_soname=aix
8498 with_aix_soname=$lt_cv_with_aix_soname
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8502 $as_echo "$with_aix_soname" >&6; }
8503 if test aix != "$with_aix_soname"; then
8504 # For the AIX way of multilib, we name the shared archive member
8505 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8506 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8507 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8508 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8509 if test 64 = "${OBJECT_MODE-32}"; then
8510 shared_archive_member_spec=shr_64
8512 shared_archive_member_spec=shr
8530 # This can be used to rebuild libtool when needed
8531 LIBTOOL_DEPS=$ltmain
8533 # Always use our own libtool.
8534 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8565 test -z "$LN_S" && LN_S="ln -s"
8580 if test -n "${ZSH_VERSION+set}"; then
8581 setopt NO_GLOB_SUBST
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8585 $as_echo_n "checking for objdir... " >&6; }
8586 if ${lt_cv_objdir+:} false; then :
8587 $as_echo_n "(cached) " >&6
8589 rm -f .libs 2>/dev/null
8590 mkdir .libs 2>/dev/null
8591 if test -d .libs; then
8594 # MS-DOS does not allow filenames that begin with a dot.
8597 rmdir .libs 2>/dev/null
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8600 $as_echo "$lt_cv_objdir" >&6; }
8601 objdir=$lt_cv_objdir
8607 cat >>confdefs.h <<_ACEOF
8608 #define LT_OBJDIR "$lt_cv_objdir/"
8616 # AIX sometimes has problems with the GCC collect2 program. For some
8617 # reason, if we set the COLLECT_NAMES environment variable, the problems
8618 # vanish in a puff of smoke.
8619 if test set != "${COLLECT_NAMES+set}"; then
8621 export COLLECT_NAMES
8628 can_build_shared=yes
8630 # All known linkers require a '.a' archive for static linking (except MSVC,
8631 # which needs '.lib').
8634 with_gnu_ld=$lt_cv_prog_gnu_ld
8639 # Set sane defaults for various variables
8640 test -z "$CC" && CC=cc
8641 test -z "$LTCC" && LTCC=$CC
8642 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8643 test -z "$LD" && LD=ld
8644 test -z "$ac_objext" && ac_objext=o
8646 func_cc_basename $compiler
8647 cc_basename=$func_cc_basename_result
8650 # Only perform the check for file, if the check method requires it
8651 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8652 case $deplibs_check_method in
8654 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8656 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8657 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8658 $as_echo_n "(cached) " >&6
8662 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8665 lt_save_MAGIC_CMD=$MAGIC_CMD
8666 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8667 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8668 for ac_dir in $ac_dummy; do
8670 test -z "$ac_dir" && ac_dir=.
8671 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8672 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8673 if test -n "$file_magic_test_file"; then
8674 case $deplibs_check_method in
8676 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8677 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8678 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8679 $EGREP "$file_magic_regex" > /dev/null; then
8684 *** Warning: the command libtool uses to detect shared libraries,
8685 *** $file_magic_cmd, produces output that libtool cannot recognize.
8686 *** The result is that libtool may fail to recognize shared libraries
8687 *** as such. This will affect the creation of libtool libraries that
8688 *** depend on shared libraries, but programs linked with such libtool
8689 *** libraries will work regardless of this problem. Nevertheless, you
8690 *** may want to report the problem to your system manager and/or to
8691 *** bug-libtool@gnu.org
8701 MAGIC_CMD=$lt_save_MAGIC_CMD
8706 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8707 if test -n "$MAGIC_CMD"; then
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8709 $as_echo "$MAGIC_CMD" >&6; }
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8712 $as_echo "no" >&6; }
8719 if test -z "$lt_cv_path_MAGIC_CMD"; then
8720 if test -n "$ac_tool_prefix"; then
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8722 $as_echo_n "checking for file... " >&6; }
8723 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8724 $as_echo_n "(cached) " >&6
8728 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8731 lt_save_MAGIC_CMD=$MAGIC_CMD
8732 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8733 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8734 for ac_dir in $ac_dummy; do
8736 test -z "$ac_dir" && ac_dir=.
8737 if test -f "$ac_dir/file"; then
8738 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8739 if test -n "$file_magic_test_file"; then
8740 case $deplibs_check_method in
8742 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8743 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8744 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8745 $EGREP "$file_magic_regex" > /dev/null; then
8750 *** Warning: the command libtool uses to detect shared libraries,
8751 *** $file_magic_cmd, produces output that libtool cannot recognize.
8752 *** The result is that libtool may fail to recognize shared libraries
8753 *** as such. This will affect the creation of libtool libraries that
8754 *** depend on shared libraries, but programs linked with such libtool
8755 *** libraries will work regardless of this problem. Nevertheless, you
8756 *** may want to report the problem to your system manager and/or to
8757 *** bug-libtool@gnu.org
8767 MAGIC_CMD=$lt_save_MAGIC_CMD
8772 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8773 if test -n "$MAGIC_CMD"; then
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8775 $as_echo "$MAGIC_CMD" >&6; }
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8778 $as_echo "no" >&6; }
8791 # Use C for the default configuration in the libtool script
8795 ac_cpp='$CPP $CPPFLAGS'
8796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8801 # Source file extension for C test sources.
8804 # Object file extension for compiled C test sources.
8808 # Code to be used in simple compile tests
8809 lt_simple_compile_test_code="int some_variable = 0;"
8811 # Code to be used in simple link tests
8812 lt_simple_link_test_code='int main(){return(0);}'
8820 # If no C compiler was specified, use CC.
8823 # If no C compiler flags were specified, use CFLAGS.
8824 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8826 # Allow CC to be a program name with arguments.
8829 # Save the default compiler, since it gets overwritten when the other
8830 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8831 compiler_DEFAULT=$CC
8833 # save warnings/boilerplate of simple test code
8834 ac_outfile=conftest.$ac_objext
8835 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8836 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8837 _lt_compiler_boilerplate=`cat conftest.err`
8840 ac_outfile=conftest.$ac_objext
8841 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8842 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8843 _lt_linker_boilerplate=`cat conftest.err`
8848 ## There is no encapsulation within the following macros, do not change
8849 ## the running order or otherwise move them around unless you know exactly
8850 ## what you are doing...
8851 if test -n "$compiler"; then
8853 lt_prog_compiler_no_builtin_flag=
8855 if test yes = "$GCC"; then
8856 case $cc_basename in
8858 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8860 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8864 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8865 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8866 $as_echo_n "(cached) " >&6
8868 lt_cv_prog_compiler_rtti_exceptions=no
8869 ac_outfile=conftest.$ac_objext
8870 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8871 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8872 # Insert the option either (1) after the last *FLAGS variable, or
8873 # (2) before a word containing "conftest.", or (3) at the end.
8874 # Note that $ac_compile itself does not contain backslashes and begins
8875 # with a dollar sign (not a hyphen), so the echo should work correctly.
8876 # The option is referenced via a variable to avoid confusing sed.
8877 lt_compile=`echo "$ac_compile" | $SED \
8878 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8879 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8880 -e 's:$: $lt_compiler_flag:'`
8881 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8882 (eval "$lt_compile" 2>conftest.err)
8884 cat conftest.err >&5
8885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886 if (exit $ac_status) && test -s "$ac_outfile"; then
8887 # The compiler can only warn and ignore the option if not recognized
8888 # So say no if there are warnings other than the usual output.
8889 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8890 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8891 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8892 lt_cv_prog_compiler_rtti_exceptions=yes
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8899 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8901 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8902 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8914 lt_prog_compiler_wl=
8915 lt_prog_compiler_pic=
8916 lt_prog_compiler_static=
8919 if test yes = "$GCC"; then
8920 lt_prog_compiler_wl='-Wl,'
8921 lt_prog_compiler_static='-static'
8925 # All AIX code is PIC.
8926 if test ia64 = "$host_cpu"; then
8927 # AIX 5 now supports IA64 processor
8928 lt_prog_compiler_static='-Bstatic'
8930 lt_prog_compiler_pic='-fPIC'
8936 # see comment about AmigaOS4 .so support
8937 lt_prog_compiler_pic='-fPIC'
8940 # FIXME: we need at least 68020 code to build shared libraries, but
8941 # adding the '-m68020' flag to GCC prevents building anything better,
8943 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8948 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8949 # PIC is the default for these OSes.
8952 mingw* | cygwin* | pw32* | os2* | cegcc*)
8953 # This hack is so that the source file can tell whether it is being
8954 # built for inclusion in a dll (and should export symbols for example).
8955 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8956 # (--disable-auto-import) libraries
8957 lt_prog_compiler_pic='-DDLL_EXPORT'
8960 lt_prog_compiler_static='$wl-static'
8965 darwin* | rhapsody*)
8966 # PIC is the default on this platform
8967 # Common symbols not allowed in MH_DYLIB files
8968 lt_prog_compiler_pic='-fno-common'
8972 # PIC is the default for Haiku.
8973 # The "-static" flag exists, but is broken.
8974 lt_prog_compiler_static=
8978 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8979 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8980 # sets the default TLS model and affects inlining.
8986 lt_prog_compiler_pic='-fPIC'
8992 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8993 # Instead, we relocate shared libraries at runtime.
8997 # Just because we use GCC doesn't mean we suddenly get shared libraries
8998 # on systems that don't support them.
8999 lt_prog_compiler_can_build_shared=no
9004 # QNX uses GNU C++, but need to define -shared option too, otherwise
9006 lt_prog_compiler_pic='-fPIC -shared'
9010 if test -d /usr/nec; then
9011 lt_prog_compiler_pic=-Kconform_pic
9016 lt_prog_compiler_pic='-fPIC'
9020 case $cc_basename in
9021 nvcc*) # Cuda Compiler Driver 2.2
9022 lt_prog_compiler_wl='-Xlinker '
9023 if test -n "$lt_prog_compiler_pic"; then
9024 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9029 # PORTME Check for flag to pass linker flags through the system compiler.
9032 lt_prog_compiler_wl='-Wl,'
9033 if test ia64 = "$host_cpu"; then
9034 # AIX 5 now supports IA64 processor
9035 lt_prog_compiler_static='-Bstatic'
9037 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9041 darwin* | rhapsody*)
9042 # PIC is the default on this platform
9043 # Common symbols not allowed in MH_DYLIB files
9044 lt_prog_compiler_pic='-fno-common'
9045 case $cc_basename in
9047 # NAG Fortran compiler
9048 lt_prog_compiler_wl='-Wl,-Wl,,'
9049 lt_prog_compiler_pic='-PIC'
9050 lt_prog_compiler_static='-Bstatic'
9055 mingw* | cygwin* | pw32* | os2* | cegcc*)
9056 # This hack is so that the source file can tell whether it is being
9057 # built for inclusion in a dll (and should export symbols for example).
9058 lt_prog_compiler_pic='-DDLL_EXPORT'
9061 lt_prog_compiler_static='$wl-static'
9066 hpux9* | hpux10* | hpux11*)
9067 lt_prog_compiler_wl='-Wl,'
9068 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9075 lt_prog_compiler_pic='+Z'
9078 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9079 lt_prog_compiler_static='$wl-a ${wl}archive'
9082 irix5* | irix6* | nonstopux*)
9083 lt_prog_compiler_wl='-Wl,'
9084 # PIC (with -KPIC) is the default.
9085 lt_prog_compiler_static='-non_shared'
9088 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9089 case $cc_basename in
9090 # old Intel for x86_64, which still supported -KPIC.
9092 lt_prog_compiler_wl='-Wl,'
9093 lt_prog_compiler_pic='-KPIC'
9094 lt_prog_compiler_static='-static'
9096 # icc used to be incompatible with GCC.
9097 # ICC 10 doesn't accept -KPIC any more.
9099 lt_prog_compiler_wl='-Wl,'
9100 lt_prog_compiler_pic='-fPIC'
9101 lt_prog_compiler_static='-static'
9103 # Lahey Fortran 8.1.
9105 lt_prog_compiler_wl='-Wl,'
9106 lt_prog_compiler_pic='--shared'
9107 lt_prog_compiler_static='--static'
9110 # NAG Fortran compiler
9111 lt_prog_compiler_wl='-Wl,-Wl,,'
9112 lt_prog_compiler_pic='-PIC'
9113 lt_prog_compiler_static='-Bstatic'
9116 # Fabrice Bellard et al's Tiny C Compiler
9117 lt_prog_compiler_wl='-Wl,'
9118 lt_prog_compiler_pic='-fPIC'
9119 lt_prog_compiler_static='-static'
9121 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9122 # Portland Group compilers (*not* the Pentium gcc compiler,
9123 # which looks to be a dead project)
9124 lt_prog_compiler_wl='-Wl,'
9125 lt_prog_compiler_pic='-fpic'
9126 lt_prog_compiler_static='-Bstatic'
9129 lt_prog_compiler_wl='-Wl,'
9130 # All Alpha code is PIC.
9131 lt_prog_compiler_static='-non_shared'
9133 xl* | bgxl* | bgf* | mpixl*)
9134 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9135 lt_prog_compiler_wl='-Wl,'
9136 lt_prog_compiler_pic='-qpic'
9137 lt_prog_compiler_static='-qstaticlink'
9140 case `$CC -V 2>&1 | sed 5q` in
9141 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9142 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9143 lt_prog_compiler_pic='-KPIC'
9144 lt_prog_compiler_static='-Bstatic'
9145 lt_prog_compiler_wl=''
9147 *Sun\ F* | *Sun*Fortran*)
9148 lt_prog_compiler_pic='-KPIC'
9149 lt_prog_compiler_static='-Bstatic'
9150 lt_prog_compiler_wl='-Qoption ld '
9154 lt_prog_compiler_pic='-KPIC'
9155 lt_prog_compiler_static='-Bstatic'
9156 lt_prog_compiler_wl='-Wl,'
9158 *Intel*\ [CF]*Compiler*)
9159 lt_prog_compiler_wl='-Wl,'
9160 lt_prog_compiler_pic='-fPIC'
9161 lt_prog_compiler_static='-static'
9164 lt_prog_compiler_wl='-Wl,'
9165 lt_prog_compiler_pic='-fpic'
9166 lt_prog_compiler_static='-Bstatic'
9174 lt_prog_compiler_pic='-KPIC'
9175 lt_prog_compiler_static='-Bstatic'
9179 # QNX uses GNU C++, but need to define -shared option too, otherwise
9181 lt_prog_compiler_pic='-fPIC -shared'
9184 osf3* | osf4* | osf5*)
9185 lt_prog_compiler_wl='-Wl,'
9186 # All OSF/1 code is PIC.
9187 lt_prog_compiler_static='-non_shared'
9191 lt_prog_compiler_static='-non_shared'
9195 lt_prog_compiler_pic='-KPIC'
9196 lt_prog_compiler_static='-Bstatic'
9197 case $cc_basename in
9198 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9199 lt_prog_compiler_wl='-Qoption ld ';;
9201 lt_prog_compiler_wl='-Wl,';;
9206 lt_prog_compiler_wl='-Qoption ld '
9207 lt_prog_compiler_pic='-PIC'
9208 lt_prog_compiler_static='-Bstatic'
9211 sysv4 | sysv4.2uw2* | sysv4.3*)
9212 lt_prog_compiler_wl='-Wl,'
9213 lt_prog_compiler_pic='-KPIC'
9214 lt_prog_compiler_static='-Bstatic'
9218 if test -d /usr/nec; then
9219 lt_prog_compiler_pic='-Kconform_pic'
9220 lt_prog_compiler_static='-Bstatic'
9224 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9225 lt_prog_compiler_wl='-Wl,'
9226 lt_prog_compiler_pic='-KPIC'
9227 lt_prog_compiler_static='-Bstatic'
9231 lt_prog_compiler_wl='-Wl,'
9232 lt_prog_compiler_can_build_shared=no
9236 lt_prog_compiler_pic='-pic'
9237 lt_prog_compiler_static='-Bstatic'
9241 lt_prog_compiler_can_build_shared=no
9247 # For platforms that do not support PIC, -DPIC is meaningless:
9249 lt_prog_compiler_pic=
9252 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9257 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9258 if ${lt_cv_prog_compiler_pic+:} false; then :
9259 $as_echo_n "(cached) " >&6
9261 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9264 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9265 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9268 # Check to make sure the PIC flag actually works.
9270 if test -n "$lt_prog_compiler_pic"; then
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9272 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9273 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9274 $as_echo_n "(cached) " >&6
9276 lt_cv_prog_compiler_pic_works=no
9277 ac_outfile=conftest.$ac_objext
9278 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9279 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9280 # Insert the option either (1) after the last *FLAGS variable, or
9281 # (2) before a word containing "conftest.", or (3) at the end.
9282 # Note that $ac_compile itself does not contain backslashes and begins
9283 # with a dollar sign (not a hyphen), so the echo should work correctly.
9284 # The option is referenced via a variable to avoid confusing sed.
9285 lt_compile=`echo "$ac_compile" | $SED \
9286 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9287 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9288 -e 's:$: $lt_compiler_flag:'`
9289 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9290 (eval "$lt_compile" 2>conftest.err)
9292 cat conftest.err >&5
9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 if (exit $ac_status) && test -s "$ac_outfile"; then
9295 # The compiler can only warn and ignore the option if not recognized
9296 # So say no if there are warnings other than the usual output.
9297 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9298 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9299 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9300 lt_cv_prog_compiler_pic_works=yes
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9307 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9309 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9310 case $lt_prog_compiler_pic in
9312 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9315 lt_prog_compiler_pic=
9316 lt_prog_compiler_can_build_shared=no
9332 # Check to make sure the static flag actually works.
9334 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9336 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9337 if ${lt_cv_prog_compiler_static_works+:} false; then :
9338 $as_echo_n "(cached) " >&6
9340 lt_cv_prog_compiler_static_works=no
9341 save_LDFLAGS=$LDFLAGS
9342 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9343 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9344 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9345 # The linker can only warn and ignore the option if not recognized
9346 # So say no if there are warnings
9347 if test -s conftest.err; then
9348 # Append any errors to the config.log.
9349 cat conftest.err 1>&5
9350 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9351 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9352 if diff conftest.exp conftest.er2 >/dev/null; then
9353 lt_cv_prog_compiler_static_works=yes
9356 lt_cv_prog_compiler_static_works=yes
9360 LDFLAGS=$save_LDFLAGS
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9364 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9366 if test yes = "$lt_cv_prog_compiler_static_works"; then
9369 lt_prog_compiler_static=
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9379 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9380 if ${lt_cv_prog_compiler_c_o+:} false; then :
9381 $as_echo_n "(cached) " >&6
9383 lt_cv_prog_compiler_c_o=no
9384 $RM -r conftest 2>/dev/null
9388 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9390 lt_compiler_flag="-o out/conftest2.$ac_objext"
9391 # Insert the option either (1) after the last *FLAGS variable, or
9392 # (2) before a word containing "conftest.", or (3) at the end.
9393 # Note that $ac_compile itself does not contain backslashes and begins
9394 # with a dollar sign (not a hyphen), so the echo should work correctly.
9395 lt_compile=`echo "$ac_compile" | $SED \
9396 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9397 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9398 -e 's:$: $lt_compiler_flag:'`
9399 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9400 (eval "$lt_compile" 2>out/conftest.err)
9402 cat out/conftest.err >&5
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9406 # The compiler can only warn and ignore the option if not recognized
9407 # So say no if there are warnings
9408 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9409 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9410 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9411 lt_cv_prog_compiler_c_o=yes
9416 # SGI C++ compiler will create directory out/ii_files/ for
9417 # template instantiation
9418 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9419 $RM out/* && rmdir out
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9426 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9434 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9435 if ${lt_cv_prog_compiler_c_o+:} false; then :
9436 $as_echo_n "(cached) " >&6
9438 lt_cv_prog_compiler_c_o=no
9439 $RM -r conftest 2>/dev/null
9443 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9445 lt_compiler_flag="-o out/conftest2.$ac_objext"
9446 # Insert the option either (1) after the last *FLAGS variable, or
9447 # (2) before a word containing "conftest.", or (3) at the end.
9448 # Note that $ac_compile itself does not contain backslashes and begins
9449 # with a dollar sign (not a hyphen), so the echo should work correctly.
9450 lt_compile=`echo "$ac_compile" | $SED \
9451 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9452 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9453 -e 's:$: $lt_compiler_flag:'`
9454 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9455 (eval "$lt_compile" 2>out/conftest.err)
9457 cat out/conftest.err >&5
9458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9461 # The compiler can only warn and ignore the option if not recognized
9462 # So say no if there are warnings
9463 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9464 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9465 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9466 lt_cv_prog_compiler_c_o=yes
9471 # SGI C++ compiler will create directory out/ii_files/ for
9472 # template instantiation
9473 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9474 $RM out/* && rmdir out
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9481 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9486 hard_links=nottested
9487 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9488 # do not overwrite the value of need_locks provided by the user
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9490 $as_echo_n "checking if we can lock with hard links... " >&6; }
9493 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9495 ln conftest.a conftest.b 2>&5 || hard_links=no
9496 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9498 $as_echo "$hard_links" >&6; }
9499 if test no = "$hard_links"; then
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9501 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9514 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9517 allow_undefined_flag=
9518 always_export_symbols=no
9520 archive_expsym_cmds=
9521 compiler_needs_object=no
9522 enable_shared_with_static_runtimes=no
9523 export_dynamic_flag_spec=
9524 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9525 hardcode_automatic=no
9527 hardcode_direct_absolute=no
9528 hardcode_libdir_flag_spec=
9529 hardcode_libdir_separator=
9531 hardcode_shlibpath_var=unsupported
9533 link_all_deplibs=unknown
9536 old_archive_from_new_cmds=
9537 old_archive_from_expsyms_cmds=
9538 thread_safe_flag_spec=
9539 whole_archive_flag_spec=
9540 # include_expsyms should be a list of space-separated symbols to be *always*
9541 # included in the symbol list
9543 # exclude_expsyms can be an extended regexp of symbols to exclude
9544 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9545 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9546 # as well as any symbol that contains 'd'.
9547 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9548 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9549 # platforms (ab)use it in PIC code, but their linkers get confused if
9550 # the symbol is explicitly referenced. Since portable code cannot
9551 # rely on this symbol name, it's probably fine to never include it in
9552 # preloaded symbol tables.
9553 # Exclude shared library initialization/finalization symbols.
9554 extract_expsyms_cmds=
9557 cygwin* | mingw* | pw32* | cegcc*)
9558 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9559 # When not using gcc, we currently assume that we are using
9560 # Microsoft Visual C++.
9561 if test yes != "$GCC"; then
9566 # we just hope/assume this is gcc and not c89 (= MSVC++)
9572 linux* | k*bsd*-gnu | gnu*)
9579 # On some targets, GNU ld is compatible enough with the native linker
9580 # that we're better off using the native interface for both.
9581 lt_use_gnu_ld_interface=no
9582 if test yes = "$with_gnu_ld"; then
9585 # The AIX port of GNU ld has always aspired to compatibility
9586 # with the native linker. However, as the warning in the GNU ld
9587 # block says, versions before 2.19.5* couldn't really create working
9588 # shared libraries, regardless of the interface used.
9589 case `$LD -v 2>&1` in
9590 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9591 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9592 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9594 lt_use_gnu_ld_interface=yes
9599 lt_use_gnu_ld_interface=yes
9604 if test yes = "$lt_use_gnu_ld_interface"; then
9605 # If archive_cmds runs LD, not CC, wlarc should be empty
9608 # Set some defaults for GNU ld with shared library support. These
9609 # are reset later if shared libraries are not supported. Putting them
9610 # here allows them to be overridden if necessary.
9611 runpath_var=LD_RUN_PATH
9612 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9613 export_dynamic_flag_spec='$wl--export-dynamic'
9614 # ancient GNU ld didn't support --whole-archive et. al.
9615 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9616 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9618 whole_archive_flag_spec=
9620 supports_anon_versioning=no
9621 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9622 *GNU\ gold*) supports_anon_versioning=yes ;;
9623 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9624 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9625 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9626 *\ 2.11.*) ;; # other 2.11 versions
9627 *) supports_anon_versioning=yes ;;
9630 # See if GNU ld supports shared libraries.
9633 # On AIX/PPC, the GNU linker is very broken
9634 if test ia64 != "$host_cpu"; then
9638 *** Warning: the GNU linker, at least up to release 2.19, is reported
9639 *** to be unable to reliably create shared libraries on AIX.
9640 *** Therefore, libtool is disabling shared libraries support. If you
9641 *** really care for shared libraries, you may want to install binutils
9642 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9643 *** You will then need to restart the configuration process.
9652 # see comment about AmigaOS4 .so support
9653 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9654 archive_expsym_cmds=''
9657 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)'
9658 hardcode_libdir_flag_spec='-L$libdir'
9659 hardcode_minus_L=yes
9665 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9666 allow_undefined_flag=unsupported
9667 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9668 # support --undefined. This deserves some investigation. FIXME
9669 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9675 cygwin* | mingw* | pw32* | cegcc*)
9676 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9677 # as there is no search path for DLLs.
9678 hardcode_libdir_flag_spec='-L$libdir'
9679 export_dynamic_flag_spec='$wl--export-all-symbols'
9680 allow_undefined_flag=unsupported
9681 always_export_symbols=no
9682 enable_shared_with_static_runtimes=yes
9683 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'
9684 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9686 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9687 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9688 # If the export-symbols file already is a .def file, use it as
9689 # is; otherwise, prepend EXPORTS...
9690 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9691 cp $export_symbols $output_objdir/$soname.def;
9693 echo EXPORTS > $output_objdir/$soname.def;
9694 cat $export_symbols >> $output_objdir/$soname.def;
9696 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9703 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9704 link_all_deplibs=yes
9708 hardcode_libdir_flag_spec='-L$libdir'
9709 hardcode_minus_L=yes
9710 allow_undefined_flag=unsupported
9712 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9713 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9714 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9715 $ECHO EXPORTS >> $output_objdir/$libname.def~
9716 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9717 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9718 emximp -o $lib $output_objdir/$libname.def'
9719 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9720 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9721 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9722 $ECHO EXPORTS >> $output_objdir/$libname.def~
9724 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9725 prefix_cmds="$prefix_cmds -e 1d";
9727 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9728 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9729 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9730 emximp -o $lib $output_objdir/$libname.def'
9731 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9732 enable_shared_with_static_runtimes=yes
9737 hardcode_shlibpath_var=no
9738 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9739 export_dynamic_flag_spec='$wl-E'
9740 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9741 # Instead, shared libraries are loaded at an image base (0x10000000 by
9742 # default) and relocated if they conflict, which is a slow very memory
9743 # consuming and fragmenting process. To avoid this, we pick a random,
9744 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9745 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9746 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9747 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'
9750 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9752 if test linux-dietlibc = "$host_os"; then
9753 case $cc_basename in
9754 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9757 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9758 && test no = "$tmp_diet"
9760 tmp_addflag=' $pic_flag'
9761 tmp_sharedflag='-shared'
9762 case $cc_basename,$host_cpu in
9763 pgcc*) # Portland Group C compiler
9764 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'
9765 tmp_addflag=' $pic_flag'
9767 pgf77* | pgf90* | pgf95* | pgfortran*)
9768 # Portland Group f77 and f90 compilers
9769 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'
9770 tmp_addflag=' $pic_flag -Mnomain' ;;
9771 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9772 tmp_addflag=' -i_dynamic' ;;
9773 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9774 tmp_addflag=' -i_dynamic -nofor_main' ;;
9775 ifc* | ifort*) # Intel Fortran compiler
9776 tmp_addflag=' -nofor_main' ;;
9777 lf95*) # Lahey Fortran 8.1
9778 whole_archive_flag_spec=
9779 tmp_sharedflag='--shared' ;;
9780 nagfor*) # NAGFOR 5.3
9781 tmp_sharedflag='-Wl,-shared' ;;
9782 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9783 tmp_sharedflag='-qmkshrobj'
9785 nvcc*) # Cuda Compiler Driver 2.2
9786 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'
9787 compiler_needs_object=yes
9790 case `$CC -V 2>&1 | sed 5q` in
9791 *Sun\ C*) # Sun C 5.9
9792 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'
9793 compiler_needs_object=yes
9794 tmp_sharedflag='-G' ;;
9795 *Sun\ F*) # Sun Fortran 8.3
9796 tmp_sharedflag='-G' ;;
9798 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9800 if test yes = "$supports_anon_versioning"; then
9801 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9802 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9803 echo "local: *; };" >> $output_objdir/$libname.ver~
9804 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9807 case $cc_basename in
9809 export_dynamic_flag_spec='-rdynamic'
9811 xlf* | bgf* | bgxlf* | mpixlf*)
9812 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9813 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9814 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9815 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9816 if test yes = "$supports_anon_versioning"; then
9817 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9818 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9819 echo "local: *; };" >> $output_objdir/$libname.ver~
9820 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9829 netbsd* | netbsdelf*-gnu)
9830 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9831 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9834 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9835 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9840 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9844 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9845 *** create shared libraries on Solaris systems. Therefore, libtool
9846 *** is disabling shared libraries support. We urge you to upgrade GNU
9847 *** binutils to release 2.9.1 or newer. Another option is to modify
9848 *** your PATH or compiler configuration so that the native linker is
9849 *** used, and then restart.
9852 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9853 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9854 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9860 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9861 case `$LD -v 2>&1` in
9862 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9866 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9867 *** reliably create shared libraries on SCO systems. Therefore, libtool
9868 *** is disabling shared libraries support. We urge you to upgrade GNU
9869 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9870 *** your PATH or compiler configuration so that the native linker is
9871 *** used, and then restart.
9876 # For security reasons, it is highly recommended that you always
9877 # use absolute paths for naming shared libraries, and exclude the
9878 # DT_RUNPATH tag from executables and libraries. But doing so
9879 # requires that you compile everything twice, which is a pain.
9880 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9881 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9882 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9883 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9892 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9895 hardcode_shlibpath_var=no
9899 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9900 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9901 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9908 if test no = "$ld_shlibs"; then
9910 hardcode_libdir_flag_spec=
9911 export_dynamic_flag_spec=
9912 whole_archive_flag_spec=
9915 # PORTME fill in a description of your system's linker (not GNU ld)
9918 allow_undefined_flag=unsupported
9919 always_export_symbols=yes
9920 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'
9921 # Note: this linker hardcodes the directories in LIBPATH if there
9922 # are no directories specified by -L.
9923 hardcode_minus_L=yes
9924 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9925 # Neither direct hardcoding nor static linking is supported with a
9927 hardcode_direct=unsupported
9932 if test ia64 = "$host_cpu"; then
9933 # On IA64, the linker does run time linking by default, so we don't
9934 # have to do anything special.
9935 aix_use_runtimelinking=no
9936 exp_sym_flag='-Bexport'
9939 # If we're using GNU nm, then we don't want the "-C" option.
9940 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9941 # Without the "-l" option, or with the "-B" option, AIX nm treats
9942 # weak defined symbols like other global defined symbols, whereas
9943 # GNU nm marks them as "W".
9944 # While the 'weak' keyword is ignored in the Export File, we need
9945 # it in the Import File for the 'aix-soname' feature, so we have
9946 # to replace the "-B" option with "-P" for AIX nm.
9947 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9948 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'
9950 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'
9952 aix_use_runtimelinking=no
9954 # Test if we are trying to use run time linking or normal
9955 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9956 # have runtime linking enabled, and use it for executables.
9957 # For shared libraries, we enable/disable runtime linking
9958 # depending on the kind of the shared library created -
9959 # when "with_aix_soname,aix_use_runtimelinking" is:
9960 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9961 # "aix,yes" lib.so shared, rtl:yes, for executables
9962 # lib.a static archive
9963 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9964 # lib.a(lib.so.V) shared, rtl:no, for executables
9965 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9966 # lib.a(lib.so.V) shared, rtl:no
9967 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9968 # lib.a static archive
9969 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9970 for ld_flag in $LDFLAGS; do
9971 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9972 aix_use_runtimelinking=yes
9976 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9977 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9978 # so we don't have lib.a shared libs to link our executables.
9979 # We have to force runtime linking in this case.
9980 aix_use_runtimelinking=yes
9981 LDFLAGS="$LDFLAGS -Wl,-brtl"
9986 exp_sym_flag='-bexport'
9987 no_entry_flag='-bnoentry'
9990 # When large executables or shared objects are built, AIX ld can
9991 # have problems creating the table of contents. If linking a library
9992 # or program results in "error TOC overflow" add -mminimal-toc to
9993 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9994 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9998 hardcode_direct_absolute=yes
9999 hardcode_libdir_separator=':'
10000 link_all_deplibs=yes
10001 file_list_spec='$wl-f,'
10002 case $with_aix_soname,$aix_use_runtimelinking in
10003 aix,*) ;; # traditional, no import file
10004 svr4,* | *,yes) # use import file
10005 # The Import File defines what to hardcode.
10007 hardcode_direct_absolute=no
10011 if test yes = "$GCC"; then
10012 case $host_os in aix4.[012]|aix4.[012].*)
10013 # We only want to do this on AIX 4.2 and lower, the check
10014 # below for broken collect2 doesn't work under 4.3+
10015 collect2name=`$CC -print-prog-name=collect2`
10016 if test -f "$collect2name" &&
10017 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10019 # We have reworked collect2
10022 # We have old collect2
10023 hardcode_direct=unsupported
10024 # It fails to find uninstalled libraries when the uninstalled
10025 # path is not listed in the libpath. Setting hardcode_minus_L
10026 # to unsupported forces relinking
10027 hardcode_minus_L=yes
10028 hardcode_libdir_flag_spec='-L$libdir'
10029 hardcode_libdir_separator=
10033 shared_flag='-shared'
10034 if test yes = "$aix_use_runtimelinking"; then
10035 shared_flag="$shared_flag "'$wl-G'
10037 # Need to ensure runtime linking is disabled for the traditional
10038 # shared library, or the linker may eventually find shared libraries
10039 # /with/ Import File - we do not want to mix them.
10040 shared_flag_aix='-shared'
10041 shared_flag_svr4='-shared $wl-G'
10044 if test ia64 = "$host_cpu"; then
10045 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10046 # chokes on -Wl,-G. The following line is correct:
10049 if test yes = "$aix_use_runtimelinking"; then
10050 shared_flag='$wl-G'
10052 shared_flag='$wl-bM:SRE'
10054 shared_flag_aix='$wl-bM:SRE'
10055 shared_flag_svr4='$wl-G'
10059 export_dynamic_flag_spec='$wl-bexpall'
10060 # It seems that -bexpall does not export symbols beginning with
10061 # underscore (_), so it is better to generate a list of symbols to export.
10062 always_export_symbols=yes
10063 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10064 # Warning - without using the other runtime loading flags (-brtl),
10065 # -berok will link without error, but may produce a broken library.
10066 allow_undefined_flag='-berok'
10067 # Determine the default libpath from the value encoded in an
10068 # empty executable.
10069 if test set = "${lt_cv_aix_libpath+set}"; then
10070 aix_libpath=$lt_cv_aix_libpath
10072 if ${lt_cv_aix_libpath_+:} false; then :
10073 $as_echo_n "(cached) " >&6
10075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10076 /* end confdefs.h. */
10086 if ac_fn_c_try_link "$LINENO"; then :
10088 lt_aix_libpath_sed='
10089 /Import File Strings/,/^$/ {
10091 s/^0 *\([^ ]*\) *$/\1/
10095 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10096 # Check for a 64-bit object if we didn't find anything.
10097 if test -z "$lt_cv_aix_libpath_"; then
10098 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10101 rm -f core conftest.err conftest.$ac_objext \
10102 conftest$ac_exeext conftest.$ac_ext
10103 if test -z "$lt_cv_aix_libpath_"; then
10104 lt_cv_aix_libpath_=/usr/lib:/lib
10109 aix_libpath=$lt_cv_aix_libpath_
10112 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10113 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
10115 if test ia64 = "$host_cpu"; then
10116 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10117 allow_undefined_flag="-z nodefs"
10118 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"
10120 # Determine the default libpath from the value encoded in an
10121 # empty executable.
10122 if test set = "${lt_cv_aix_libpath+set}"; then
10123 aix_libpath=$lt_cv_aix_libpath
10125 if ${lt_cv_aix_libpath_+:} false; then :
10126 $as_echo_n "(cached) " >&6
10128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10129 /* end confdefs.h. */
10139 if ac_fn_c_try_link "$LINENO"; then :
10141 lt_aix_libpath_sed='
10142 /Import File Strings/,/^$/ {
10144 s/^0 *\([^ ]*\) *$/\1/
10148 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10149 # Check for a 64-bit object if we didn't find anything.
10150 if test -z "$lt_cv_aix_libpath_"; then
10151 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10154 rm -f core conftest.err conftest.$ac_objext \
10155 conftest$ac_exeext conftest.$ac_ext
10156 if test -z "$lt_cv_aix_libpath_"; then
10157 lt_cv_aix_libpath_=/usr/lib:/lib
10162 aix_libpath=$lt_cv_aix_libpath_
10165 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10166 # Warning - without using the other run time loading flags,
10167 # -berok will link without error, but may produce a broken library.
10168 no_undefined_flag=' $wl-bernotok'
10169 allow_undefined_flag=' $wl-berok'
10170 if test yes = "$with_gnu_ld"; then
10171 # We only use this code for GNU lds that support --whole-archive.
10172 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10174 # Exported symbols can be pulled into shared objects from archives
10175 whole_archive_flag_spec='$convenience'
10177 archive_cmds_need_lc=yes
10178 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10179 # -brtl affects multiple linker settings, -berok does not and is overridden later
10180 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10181 if test svr4 != "$with_aix_soname"; then
10182 # This is similar to how AIX traditionally builds its shared libraries.
10183 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'
10185 if test aix != "$with_aix_soname"; then
10186 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'
10188 # used by -dlpreopen to get the symbols
10189 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10191 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10199 # see comment about AmigaOS4 .so support
10200 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10201 archive_expsym_cmds=''
10204 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)'
10205 hardcode_libdir_flag_spec='-L$libdir'
10206 hardcode_minus_L=yes
10212 export_dynamic_flag_spec=-rdynamic
10215 cygwin* | mingw* | pw32* | cegcc*)
10216 # When not using gcc, we currently assume that we are using
10217 # Microsoft Visual C++.
10218 # hardcode_libdir_flag_spec is actually meaningless, as there is
10219 # no search path for DLLs.
10220 case $cc_basename in
10223 hardcode_libdir_flag_spec=' '
10224 allow_undefined_flag=unsupported
10225 always_export_symbols=yes
10227 # Tell ltmain to make .lib files, not .a files.
10229 # Tell ltmain to make .dll files, not .so files.
10231 # FIXME: Setting linknames here is a bad hack.
10232 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10233 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10234 cp "$export_symbols" "$output_objdir/$soname.def";
10235 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10237 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10239 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10241 # The linker will not automatically build a static lib if we build a DLL.
10242 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10243 enable_shared_with_static_runtimes=yes
10244 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10245 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10247 old_postinstall_cmds='chmod 644 $oldlib'
10248 postlink_cmds='lt_outputfile="@OUTPUT@"~
10249 lt_tool_outputfile="@TOOL_OUTPUT@"~
10250 case $lt_outputfile in
10253 lt_outputfile=$lt_outputfile.exe
10254 lt_tool_outputfile=$lt_tool_outputfile.exe
10257 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10258 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10259 $RM "$lt_outputfile.manifest";
10263 # Assume MSVC wrapper
10264 hardcode_libdir_flag_spec=' '
10265 allow_undefined_flag=unsupported
10266 # Tell ltmain to make .lib files, not .a files.
10268 # Tell ltmain to make .dll files, not .so files.
10270 # FIXME: Setting linknames here is a bad hack.
10271 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10272 # The linker will automatically build a .lib file if we build a DLL.
10273 old_archive_from_new_cmds='true'
10274 # FIXME: Should let the user specify the lib program.
10275 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10276 enable_shared_with_static_runtimes=yes
10281 darwin* | rhapsody*)
10284 archive_cmds_need_lc=no
10286 hardcode_automatic=yes
10287 hardcode_shlibpath_var=unsupported
10288 if test yes = "$lt_cv_ld_force_load"; then
10289 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\"`'
10292 whole_archive_flag_spec=''
10294 link_all_deplibs=yes
10295 allow_undefined_flag=$_lt_dar_allow_undefined
10296 case $cc_basename in
10297 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10298 *) _lt_dar_can_shared=$GCC ;;
10300 if test yes = "$_lt_dar_can_shared"; then
10301 output_verbose_link_cmd=func_echo_all
10302 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10303 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10304 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"
10305 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"
10314 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10315 hardcode_libdir_flag_spec='-L$libdir'
10316 hardcode_shlibpath_var=no
10319 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10320 # support. Future versions do this automatically, but an explicit c++rt0.o
10321 # does not break anything, and helps significantly (at the cost of a little
10324 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10325 hardcode_libdir_flag_spec='-R$libdir'
10326 hardcode_direct=yes
10327 hardcode_shlibpath_var=no
10330 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10332 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10333 hardcode_direct=yes
10334 hardcode_minus_L=yes
10335 hardcode_shlibpath_var=no
10338 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10339 freebsd* | dragonfly*)
10340 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10341 hardcode_libdir_flag_spec='-R$libdir'
10342 hardcode_direct=yes
10343 hardcode_shlibpath_var=no
10347 if test yes = "$GCC"; then
10348 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'
10350 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'
10352 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10353 hardcode_libdir_separator=:
10354 hardcode_direct=yes
10356 # hardcode_minus_L: Not really in the search PATH,
10357 # but as the default location of the library.
10358 hardcode_minus_L=yes
10359 export_dynamic_flag_spec='$wl-E'
10363 if test yes,no = "$GCC,$with_gnu_ld"; then
10364 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10366 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10368 if test no = "$with_gnu_ld"; then
10369 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10370 hardcode_libdir_separator=:
10371 hardcode_direct=yes
10372 hardcode_direct_absolute=yes
10373 export_dynamic_flag_spec='$wl-E'
10374 # hardcode_minus_L: Not really in the search PATH,
10375 # but as the default location of the library.
10376 hardcode_minus_L=yes
10381 if test yes,no = "$GCC,$with_gnu_ld"; then
10384 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10387 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10390 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10396 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10399 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10403 # Older versions of the 11.00 compiler do not understand -b yet
10404 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10406 $as_echo_n "checking if $CC understands -b... " >&6; }
10407 if ${lt_cv_prog_compiler__b+:} false; then :
10408 $as_echo_n "(cached) " >&6
10410 lt_cv_prog_compiler__b=no
10411 save_LDFLAGS=$LDFLAGS
10412 LDFLAGS="$LDFLAGS -b"
10413 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10414 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10415 # The linker can only warn and ignore the option if not recognized
10416 # So say no if there are warnings
10417 if test -s conftest.err; then
10418 # Append any errors to the config.log.
10419 cat conftest.err 1>&5
10420 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10421 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10422 if diff conftest.exp conftest.er2 >/dev/null; then
10423 lt_cv_prog_compiler__b=yes
10426 lt_cv_prog_compiler__b=yes
10430 LDFLAGS=$save_LDFLAGS
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10434 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10436 if test yes = "$lt_cv_prog_compiler__b"; then
10437 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10439 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10445 if test no = "$with_gnu_ld"; then
10446 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10447 hardcode_libdir_separator=:
10452 hardcode_shlibpath_var=no
10455 hardcode_direct=yes
10456 hardcode_direct_absolute=yes
10457 export_dynamic_flag_spec='$wl-E'
10459 # hardcode_minus_L: Not really in the search PATH,
10460 # but as the default location of the library.
10461 hardcode_minus_L=yes
10467 irix5* | irix6* | nonstopux*)
10468 if test yes = "$GCC"; then
10469 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'
10470 # Try to use the -exported_symbol ld option, if it does not
10471 # work, assume that -exports_file does not work either and
10472 # implicitly export all symbols.
10473 # This should be the same for all languages, so no per-tag cache variable.
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10475 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10476 if ${lt_cv_irix_exported_symbol+:} false; then :
10477 $as_echo_n "(cached) " >&6
10479 save_LDFLAGS=$LDFLAGS
10480 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10482 /* end confdefs.h. */
10483 int foo (void) { return 0; }
10485 if ac_fn_c_try_link "$LINENO"; then :
10486 lt_cv_irix_exported_symbol=yes
10488 lt_cv_irix_exported_symbol=no
10490 rm -f core conftest.err conftest.$ac_objext \
10491 conftest$ac_exeext conftest.$ac_ext
10492 LDFLAGS=$save_LDFLAGS
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10495 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10496 if test yes = "$lt_cv_irix_exported_symbol"; then
10497 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'
10499 link_all_deplibs=no
10501 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'
10502 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'
10504 archive_cmds_need_lc='no'
10505 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10506 hardcode_libdir_separator=:
10508 link_all_deplibs=yes
10512 case $cc_basename in
10514 # Fabrice Bellard et al's Tiny C Compiler
10516 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10521 netbsd* | netbsdelf*-gnu)
10522 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10523 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10525 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10527 hardcode_libdir_flag_spec='-R$libdir'
10528 hardcode_direct=yes
10529 hardcode_shlibpath_var=no
10533 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10534 hardcode_direct=yes
10535 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10536 hardcode_libdir_separator=:
10537 hardcode_shlibpath_var=no
10543 openbsd* | bitrig*)
10544 if test -f /usr/libexec/ld.so; then
10545 hardcode_direct=yes
10546 hardcode_shlibpath_var=no
10547 hardcode_direct_absolute=yes
10548 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10549 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10550 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10551 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10552 export_dynamic_flag_spec='$wl-E'
10554 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10555 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10563 hardcode_libdir_flag_spec='-L$libdir'
10564 hardcode_minus_L=yes
10565 allow_undefined_flag=unsupported
10567 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10568 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10569 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10570 $ECHO EXPORTS >> $output_objdir/$libname.def~
10571 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10572 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10573 emximp -o $lib $output_objdir/$libname.def'
10574 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10575 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10576 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10577 $ECHO EXPORTS >> $output_objdir/$libname.def~
10578 prefix_cmds="$SED"~
10579 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10580 prefix_cmds="$prefix_cmds -e 1d";
10582 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10583 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10584 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10585 emximp -o $lib $output_objdir/$libname.def'
10586 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10587 enable_shared_with_static_runtimes=yes
10591 if test yes = "$GCC"; then
10592 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10593 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'
10595 allow_undefined_flag=' -expect_unresolved \*'
10596 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'
10598 archive_cmds_need_lc='no'
10599 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10600 hardcode_libdir_separator=:
10603 osf4* | osf5*) # as osf3* with the addition of -msym flag
10604 if test yes = "$GCC"; then
10605 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10606 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'
10607 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10609 allow_undefined_flag=' -expect_unresolved \*'
10610 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'
10611 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~
10612 $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'
10614 # Both c and cxx compiler support -rpath directly
10615 hardcode_libdir_flag_spec='-rpath $libdir'
10617 archive_cmds_need_lc='no'
10618 hardcode_libdir_separator=:
10622 no_undefined_flag=' -z defs'
10623 if test yes = "$GCC"; then
10625 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10626 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10627 $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'
10629 case `$CC -V 2>&1` in
10632 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10633 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10634 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10638 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10639 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10640 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10644 hardcode_libdir_flag_spec='-R$libdir'
10645 hardcode_shlibpath_var=no
10647 solaris2.[0-5] | solaris2.[0-5].*) ;;
10649 # The compiler driver will combine and reorder linker options,
10650 # but understands '-z linker_flag'. GCC discards it without '$wl',
10651 # but is careful enough not to reorder.
10652 # Supported since Solaris 2.6 (maybe 2.5.1?)
10653 if test yes = "$GCC"; then
10654 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10656 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10660 link_all_deplibs=yes
10664 if test sequent = "$host_vendor"; then
10665 # Use $CC to link under sequent, because it throws in some extra .o
10666 # files that make .init and .fini sections work.
10667 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10669 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10671 hardcode_libdir_flag_spec='-L$libdir'
10672 hardcode_direct=yes
10673 hardcode_minus_L=yes
10674 hardcode_shlibpath_var=no
10678 case $host_vendor in
10680 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10681 hardcode_direct=yes # is this really true???
10684 ## LD is ld it makes a PLAMLIB
10685 ## CC just makes a GrossModule.
10686 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10687 reload_cmds='$CC -r -o $output$reload_objs'
10691 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10692 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10695 runpath_var='LD_RUN_PATH'
10696 hardcode_shlibpath_var=no
10700 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10701 hardcode_shlibpath_var=no
10702 export_dynamic_flag_spec='-Bexport'
10706 if test -d /usr/nec; then
10707 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10708 hardcode_shlibpath_var=no
10709 runpath_var=LD_RUN_PATH
10710 hardcode_runpath_var=yes
10715 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10716 no_undefined_flag='$wl-z,text'
10717 archive_cmds_need_lc=no
10718 hardcode_shlibpath_var=no
10719 runpath_var='LD_RUN_PATH'
10721 if test yes = "$GCC"; then
10722 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10723 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10725 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10726 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10730 sysv5* | sco3.2v5* | sco5v6*)
10731 # Note: We CANNOT use -z defs as we might desire, because we do not
10732 # link with -lc, and that would cause any symbols used from libc to
10733 # always be unresolved, which means just about no library would
10734 # ever link correctly. If we're not using GNU ld we use -z text
10735 # though, which does catch some bad symbols but isn't as heavy-handed
10737 no_undefined_flag='$wl-z,text'
10738 allow_undefined_flag='$wl-z,nodefs'
10739 archive_cmds_need_lc=no
10740 hardcode_shlibpath_var=no
10741 hardcode_libdir_flag_spec='$wl-R,$libdir'
10742 hardcode_libdir_separator=':'
10743 link_all_deplibs=yes
10744 export_dynamic_flag_spec='$wl-Bexport'
10745 runpath_var='LD_RUN_PATH'
10747 if test yes = "$GCC"; then
10748 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10749 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10751 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10752 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10757 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10758 hardcode_libdir_flag_spec='-L$libdir'
10759 hardcode_shlibpath_var=no
10767 if test sni = "$host_vendor"; then
10769 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10770 export_dynamic_flag_spec='$wl-Blargedynsym'
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10777 $as_echo "$ld_shlibs" >&6; }
10778 test no = "$ld_shlibs" && can_build_shared=no
10780 with_gnu_ld=$with_gnu_ld
10797 # Do we need to explicitly link libc?
10799 case "x$archive_cmds_need_lc" in
10801 # Assume -lc should be added
10802 archive_cmds_need_lc=yes
10804 if test yes,yes = "$GCC,$enable_shared"; then
10805 case $archive_cmds in
10807 # FIXME: we may have to deal with multi-command sequences.
10810 # Test whether the compiler implicitly links with -lc since on some
10811 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10812 # to ld, don't add -lc before -lgcc.
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10814 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10815 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10816 $as_echo_n "(cached) " >&6
10819 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10821 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10822 (eval $ac_compile) 2>&5
10824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10825 test $ac_status = 0; } 2>conftest.err; then
10828 libobjs=conftest.$ac_objext
10830 wl=$lt_prog_compiler_wl
10831 pic_flag=$lt_prog_compiler_pic
10837 lt_save_allow_undefined_flag=$allow_undefined_flag
10838 allow_undefined_flag=
10839 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10840 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10843 test $ac_status = 0; }
10845 lt_cv_archive_cmds_need_lc=no
10847 lt_cv_archive_cmds_need_lc=yes
10849 allow_undefined_flag=$lt_save_allow_undefined_flag
10851 cat conftest.err 1>&5
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10857 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10858 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11017 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11019 if test yes = "$GCC"; then
11021 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11022 *) lt_awk_arg='/^libraries:/' ;;
11025 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11026 *) lt_sed_strip_eq='s|=/|/|g' ;;
11028 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11029 case $lt_search_path_spec in
11031 # if the path contains ";" then we assume it to be the separator
11032 # otherwise default to the standard path separator (i.e. ":") - it is
11033 # assumed that no part of a normal pathname contains ";" but that should
11034 # okay in the real world where ";" in dirpaths is itself problematic.
11035 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11038 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11041 # Ok, now we have the path, separated by spaces, we can step through it
11042 # and add multilib dir if necessary...
11043 lt_tmp_lt_search_path_spec=
11044 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11045 # ...but if some path component already ends with the multilib dir we assume
11046 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11047 case "$lt_multi_os_dir; $lt_search_path_spec " in
11048 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11052 for lt_sys_path in $lt_search_path_spec; do
11053 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11054 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11055 elif test -n "$lt_multi_os_dir"; then
11056 test -d "$lt_sys_path" && \
11057 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11060 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11061 BEGIN {RS = " "; FS = "/|\n";} {
11064 for (lt_i = NF; lt_i > 0; lt_i--) {
11065 if ($lt_i != "" && $lt_i != ".") {
11066 if ($lt_i == "..") {
11069 if (lt_count == 0) {
11070 lt_foo = "/" $lt_i lt_foo;
11077 if (lt_foo != "") { lt_freq[lt_foo]++; }
11078 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11080 # AWK program above erroneously prepends '/' to C:/dos/paths
11083 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11084 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11086 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11088 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11090 library_names_spec=
11091 libname_spec='lib$name'
11095 postuninstall_cmds=
11099 shlibpath_overrides_runpath=unknown
11101 dynamic_linker="$host_os ld.so"
11102 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11103 need_lib_prefix=unknown
11104 hardcode_into_libs=no
11106 # when you set need_version to no, make sure it does not cause -set_version
11107 # flags to be left without arguments
11108 need_version=unknown
11114 version_type=linux # correct to gnu/linux during the next big refactor
11115 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11116 shlibpath_var=LIBPATH
11118 # AIX 3 has no versioning support, so we append a major version to the name.
11119 soname_spec='$libname$release$shared_ext$major'
11123 version_type=linux # correct to gnu/linux during the next big refactor
11126 hardcode_into_libs=yes
11127 if test ia64 = "$host_cpu"; then
11128 # AIX 5 supports IA64
11129 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11130 shlibpath_var=LD_LIBRARY_PATH
11132 # With GCC up to 2.95.x, collect2 would create an import file
11133 # for dependence libraries. The import file would start with
11134 # the line '#! .'. This would cause the generated library to
11135 # depend on '.', always an invalid library. This was fixed in
11136 # development snapshots of GCC prior to 3.0.
11138 aix4 | aix4.[01] | aix4.[01].*)
11139 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11141 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11144 can_build_shared=no
11148 # Using Import Files as archive members, it is possible to support
11149 # filename-based versioning of shared library archives on AIX. While
11150 # this would work for both with and without runtime linking, it will
11151 # prevent static linking of such archives. So we do filename-based
11152 # shared library versioning with .so extension only, which is used
11153 # when both runtime linking and shared linking is enabled.
11154 # Unfortunately, runtime linking may impact performance, so we do
11155 # not want this to be the default eventually. Also, we use the
11156 # versioned .so libs for executables only if there is the -brtl
11157 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11158 # To allow for filename-based versioning support, we need to create
11159 # libNAME.so.V as an archive file, containing:
11160 # *) an Import File, referring to the versioned filename of the
11161 # archive as well as the shared archive member, telling the
11162 # bitwidth (32 or 64) of that shared object, and providing the
11163 # list of exported symbols of that shared object, eventually
11164 # decorated with the 'weak' keyword
11165 # *) the shared object with the F_LOADONLY flag set, to really avoid
11166 # it being seen by the linker.
11167 # At run time we better use the real file rather than another symlink,
11168 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11170 case $with_aix_soname,$aix_use_runtimelinking in
11171 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11172 # soname into executable. Probably we can add versioning support to
11173 # collect2, so additional links can be useful in future.
11174 aix,yes) # traditional libtool
11175 dynamic_linker='AIX unversionable lib.so'
11176 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11177 # instead of lib<name>.a to let people know that these are not
11178 # typical AIX shared libraries.
11179 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11181 aix,no) # traditional AIX only
11182 dynamic_linker='AIX lib.a(lib.so.V)'
11183 # We preserve .a as extension for shared libraries through AIX4.2
11184 # and later when we are not doing run time linking.
11185 library_names_spec='$libname$release.a $libname.a'
11186 soname_spec='$libname$release$shared_ext$major'
11188 svr4,*) # full svr4 only
11189 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11190 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11191 # We do not specify a path in Import Files, so LIBPATH fires.
11192 shlibpath_overrides_runpath=yes
11194 *,yes) # both, prefer svr4
11195 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11196 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11197 # unpreferred sharedlib libNAME.a needs extra handling
11198 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"'
11199 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"'
11200 # We do not specify a path in Import Files, so LIBPATH fires.
11201 shlibpath_overrides_runpath=yes
11203 *,no) # both, prefer aix
11204 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11205 library_names_spec='$libname$release.a $libname.a'
11206 soname_spec='$libname$release$shared_ext$major'
11207 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11208 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)'
11209 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"'
11212 shlibpath_var=LIBPATH
11219 # Since July 2007 AmigaOS4 officially supports .so libraries.
11220 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11221 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11224 library_names_spec='$libname.ixlibrary $libname.a'
11225 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11226 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'
11232 library_names_spec='$libname$shared_ext'
11233 dynamic_linker="$host_os ld.so"
11234 shlibpath_var=LIBRARY_PATH
11238 version_type=linux # correct to gnu/linux during the next big refactor
11240 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11241 soname_spec='$libname$release$shared_ext$major'
11242 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11243 shlibpath_var=LD_LIBRARY_PATH
11244 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11245 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11246 # the default ld.so.conf also contains /usr/contrib/lib and
11247 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11248 # libtool to hard-code these into programs
11251 cygwin* | mingw* | pw32* | cegcc*)
11252 version_type=windows
11257 case $GCC,$cc_basename in
11260 library_names_spec='$libname.dll.a'
11261 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11262 postinstall_cmds='base_file=`basename \$file`~
11263 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11264 dldir=$destdir/`dirname \$dlpath`~
11265 test -d \$dldir || mkdir -p \$dldir~
11266 $install_prog $dir/$dlname \$dldir/$dlname~
11267 chmod a+x \$dldir/$dlname~
11268 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11269 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11271 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11272 dlpath=$dir/\$dldll~
11274 shlibpath_overrides_runpath=yes
11278 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11279 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11281 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11284 # MinGW DLLs use traditional 'lib' prefix
11285 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11288 # pw32 DLLs use 'pw' prefix rather than 'lib'
11289 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11292 dynamic_linker='Win32 ld.exe'
11297 libname_spec='$name'
11298 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11299 library_names_spec='$libname.dll.lib'
11303 sys_lib_search_path_spec=
11306 for lt_path in $LIB
11309 # Let DOS variable expansion print the short 8.3 style file name.
11310 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11311 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11314 # Convert to MSYS style.
11315 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11318 # Convert to unix form, then to dos form, then back to unix form
11319 # but this time dos style (no spaces!) so that the unix form looks
11320 # like /cygdrive/c/PROGRA~1:/cygdr...
11321 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11322 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11323 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11326 sys_lib_search_path_spec=$LIB
11327 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11328 # It is most probably a Windows format PATH.
11329 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11331 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11333 # FIXME: find the short name or the path components, as spaces are
11334 # common. (e.g. "Program Files" -> "PROGRA~1")
11338 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11339 postinstall_cmds='base_file=`basename \$file`~
11340 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11341 dldir=$destdir/`dirname \$dlpath`~
11342 test -d \$dldir || mkdir -p \$dldir~
11343 $install_prog $dir/$dlname \$dldir/$dlname'
11344 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11345 dlpath=$dir/\$dldll~
11347 shlibpath_overrides_runpath=yes
11348 dynamic_linker='Win32 link.exe'
11352 # Assume MSVC wrapper
11353 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11354 dynamic_linker='Win32 ld.exe'
11357 # FIXME: first we should search . and the directory the executable is in
11361 darwin* | rhapsody*)
11362 dynamic_linker="$host_os dyld"
11363 version_type=darwin
11366 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11367 soname_spec='$libname$release$major$shared_ext'
11368 shlibpath_overrides_runpath=yes
11369 shlibpath_var=DYLD_LIBRARY_PATH
11370 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11372 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11373 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11377 version_type=linux # correct to gnu/linux during the next big refactor
11380 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11381 soname_spec='$libname$release$shared_ext$major'
11382 shlibpath_var=LD_LIBRARY_PATH
11385 freebsd* | dragonfly*)
11386 # DragonFly does not have aout. When/if they implement a new
11387 # versioning mechanism, adjust this.
11388 if test -x /usr/bin/objformat; then
11389 objformat=`/usr/bin/objformat`
11392 freebsd[23].*) objformat=aout ;;
11393 *) objformat=elf ;;
11396 version_type=freebsd-$objformat
11397 case $version_type in
11399 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11400 soname_spec='$libname$release$shared_ext$major'
11405 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11409 shlibpath_var=LD_LIBRARY_PATH
11412 shlibpath_overrides_runpath=yes
11414 freebsd3.[01]* | freebsdelf3.[01]*)
11415 shlibpath_overrides_runpath=yes
11416 hardcode_into_libs=yes
11418 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11419 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11420 shlibpath_overrides_runpath=no
11421 hardcode_into_libs=yes
11423 *) # from 4.6 on, and DragonFly
11424 shlibpath_overrides_runpath=yes
11425 hardcode_into_libs=yes
11431 version_type=linux # correct to gnu/linux during the next big refactor
11434 dynamic_linker="$host_os runtime_loader"
11435 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11436 soname_spec='$libname$release$shared_ext$major'
11437 shlibpath_var=LIBRARY_PATH
11438 shlibpath_overrides_runpath=no
11439 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11440 hardcode_into_libs=yes
11443 hpux9* | hpux10* | hpux11*)
11444 # Give a soname corresponding to the major version so that dld.sl refuses to
11445 # link against other versions.
11452 hardcode_into_libs=yes
11453 dynamic_linker="$host_os dld.so"
11454 shlibpath_var=LD_LIBRARY_PATH
11455 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11456 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11457 soname_spec='$libname$release$shared_ext$major'
11458 if test 32 = "$HPUX_IA64_MODE"; then
11459 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11460 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11462 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11463 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11468 hardcode_into_libs=yes
11469 dynamic_linker="$host_os dld.sl"
11470 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11471 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11472 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11473 soname_spec='$libname$release$shared_ext$major'
11474 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11475 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11479 dynamic_linker="$host_os dld.sl"
11480 shlibpath_var=SHLIB_PATH
11481 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11482 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11483 soname_spec='$libname$release$shared_ext$major'
11486 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11487 postinstall_cmds='chmod 555 $lib'
11488 # or fails outright, so override atomically:
11489 install_override_mode=555
11493 version_type=linux # correct to gnu/linux during the next big refactor
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11499 shlibpath_var=LD_LIBRARY_PATH
11500 shlibpath_overrides_runpath=no
11501 hardcode_into_libs=yes
11504 irix5* | irix6* | nonstopux*)
11506 nonstopux*) version_type=nonstopux ;;
11508 if test yes = "$lt_cv_prog_gnu_ld"; then
11509 version_type=linux # correct to gnu/linux during the next big refactor
11516 soname_spec='$libname$release$shared_ext$major'
11517 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11519 irix5* | nonstopux*)
11520 libsuff= shlibsuff=
11523 case $LD in # libtool.m4 will add one of these switches to LD
11524 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11525 libsuff= shlibsuff= libmagic=32-bit;;
11526 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11527 libsuff=32 shlibsuff=N32 libmagic=N32;;
11528 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11529 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11530 *) libsuff= shlibsuff= libmagic=never-match;;
11534 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11535 shlibpath_overrides_runpath=no
11536 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11537 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11538 hardcode_into_libs=yes
11541 # No shared lib support for Linux oldld, aout, or coff.
11542 linux*oldld* | linux*aout* | linux*coff*)
11547 version_type=none # Android doesn't support versioned libraries.
11550 library_names_spec='$libname$release$shared_ext'
11551 soname_spec='$libname$release$shared_ext'
11553 shlibpath_var=LD_LIBRARY_PATH
11554 shlibpath_overrides_runpath=yes
11556 # This implies no fast_install, which is unacceptable.
11557 # Some rework will be needed to allow for fast_install
11558 # before this can be enabled.
11559 hardcode_into_libs=yes
11561 dynamic_linker='Android linker'
11562 # Don't embed -rpath directories since the linker doesn't support them.
11563 hardcode_libdir_flag_spec='-L$libdir'
11566 # This must be glibc/ELF.
11567 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11568 version_type=linux # correct to gnu/linux during the next big refactor
11571 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11572 soname_spec='$libname$release$shared_ext$major'
11573 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11574 shlibpath_var=LD_LIBRARY_PATH
11575 shlibpath_overrides_runpath=no
11577 # Some binutils ld are patched to set DT_RUNPATH
11578 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11579 $as_echo_n "(cached) " >&6
11581 lt_cv_shlibpath_overrides_runpath=no
11582 save_LDFLAGS=$LDFLAGS
11583 save_libdir=$libdir
11584 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11585 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11587 /* end confdefs.h. */
11597 if ac_fn_c_try_link "$LINENO"; then :
11598 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11599 lt_cv_shlibpath_overrides_runpath=yes
11602 rm -f core conftest.err conftest.$ac_objext \
11603 conftest$ac_exeext conftest.$ac_ext
11604 LDFLAGS=$save_LDFLAGS
11605 libdir=$save_libdir
11609 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11611 # This implies no fast_install, which is unacceptable.
11612 # Some rework will be needed to allow for fast_install
11613 # before this can be enabled.
11614 hardcode_into_libs=yes
11616 # Ideally, we could use ldconfig to report *all* directores which are
11617 # searched for libraries, however this is still not possible. Aside from not
11618 # being certain /sbin/ldconfig is available, command
11619 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11620 # even though it is searched at run-time. Try to do the best guess by
11621 # appending ld.so.conf contents (and includes) to the search path.
11622 if test -f /etc/ld.so.conf; then
11623 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' ' '`
11624 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11627 # We used to test for /lib/ld.so.1 and disable shared libraries on
11628 # powerpc, because MkLinux only supported shared libraries with the
11629 # GNU dynamic linker. Since this was broken with cross compilers,
11630 # most powerpc-linux boxes support dynamic linking these days and
11631 # people can always --disable-shared, the test was removed, and we
11632 # assume the GNU/Linux dynamic linker is in use.
11633 dynamic_linker='GNU/Linux ld.so'
11640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11641 soname_spec='${libname}${release}${shared_ext}$major'
11642 shlibpath_var=LD_LIBRARY_PATH
11643 shlibpath_overrides_runpath=no
11644 hardcode_into_libs=yes
11645 dynamic_linker='NetBSD ld.elf_so'
11652 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11653 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11654 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11655 dynamic_linker='NetBSD (a.out) ld.so'
11657 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11658 soname_spec='$libname$release$shared_ext$major'
11659 dynamic_linker='NetBSD ld.elf_so'
11661 shlibpath_var=LD_LIBRARY_PATH
11662 shlibpath_overrides_runpath=yes
11663 hardcode_into_libs=yes
11667 version_type=linux # correct to gnu/linux during the next big refactor
11668 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11669 shlibpath_var=LD_LIBRARY_PATH
11670 shlibpath_overrides_runpath=yes
11677 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11678 soname_spec='$libname$release$shared_ext$major'
11679 shlibpath_var=LD_LIBRARY_PATH
11680 shlibpath_overrides_runpath=no
11681 hardcode_into_libs=yes
11682 dynamic_linker='ldqnx.so'
11685 openbsd* | bitrig*)
11687 sys_lib_dlsearch_path_spec=/usr/lib
11689 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11694 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11695 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11696 shlibpath_var=LD_LIBRARY_PATH
11697 shlibpath_overrides_runpath=yes
11701 libname_spec='$name'
11702 version_type=windows
11706 # OS/2 can only load a DLL with a base name of 8 characters or less.
11707 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11708 v=$($ECHO $release$versuffix | tr -d .-);
11709 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11710 $ECHO $n$v`$shared_ext'
11711 library_names_spec='${libname}_dll.$libext'
11712 dynamic_linker='OS/2 ld.exe'
11713 shlibpath_var=BEGINLIBPATH
11714 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11715 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11716 postinstall_cmds='base_file=`basename \$file`~
11717 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11718 dldir=$destdir/`dirname \$dlpath`~
11719 test -d \$dldir || mkdir -p \$dldir~
11720 $install_prog $dir/$dlname \$dldir/$dlname~
11721 chmod a+x \$dldir/$dlname~
11722 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11723 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11725 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11726 dlpath=$dir/\$dldll~
11730 osf3* | osf4* | osf5*)
11734 soname_spec='$libname$release$shared_ext$major'
11735 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11736 shlibpath_var=LD_LIBRARY_PATH
11737 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11738 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11746 version_type=linux # correct to gnu/linux during the next big refactor
11749 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11750 soname_spec='$libname$release$shared_ext$major'
11751 shlibpath_var=LD_LIBRARY_PATH
11752 shlibpath_overrides_runpath=yes
11753 hardcode_into_libs=yes
11754 # ldd complains unless libraries are executable
11755 postinstall_cmds='chmod +x $lib'
11760 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11761 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11762 shlibpath_var=LD_LIBRARY_PATH
11763 shlibpath_overrides_runpath=yes
11764 if test yes = "$with_gnu_ld"; then
11771 version_type=linux # correct to gnu/linux during the next big refactor
11772 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11773 soname_spec='$libname$release$shared_ext$major'
11774 shlibpath_var=LD_LIBRARY_PATH
11775 case $host_vendor in
11777 shlibpath_overrides_runpath=no
11779 runpath_var=LD_RUN_PATH
11787 shlibpath_overrides_runpath=no
11788 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11794 if test -d /usr/nec; then
11795 version_type=linux # correct to gnu/linux during the next big refactor
11796 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11797 soname_spec='$libname$shared_ext.$major'
11798 shlibpath_var=LD_LIBRARY_PATH
11802 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11806 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11807 soname_spec='$libname$release$shared_ext$major'
11808 shlibpath_var=LD_LIBRARY_PATH
11809 shlibpath_overrides_runpath=yes
11810 hardcode_into_libs=yes
11811 if test yes = "$with_gnu_ld"; then
11812 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11814 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11817 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11821 sys_lib_dlsearch_path_spec='/usr/lib'
11825 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11826 version_type=linux # correct to gnu/linux during the next big refactor
11829 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11830 shlibpath_var=LD_LIBRARY_PATH
11831 shlibpath_overrides_runpath=no
11832 hardcode_into_libs=yes
11836 version_type=linux # correct to gnu/linux during the next big refactor
11837 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11838 soname_spec='$libname$release$shared_ext$major'
11839 shlibpath_var=LD_LIBRARY_PATH
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11847 $as_echo "$dynamic_linker" >&6; }
11848 test no = "$dynamic_linker" && can_build_shared=no
11850 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11851 if test yes = "$GCC"; then
11852 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11855 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11856 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11859 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11860 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11863 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11864 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11866 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11867 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11869 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11870 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11969 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11971 if test -n "$hardcode_libdir_flag_spec" ||
11972 test -n "$runpath_var" ||
11973 test yes = "$hardcode_automatic"; then
11975 # We can hardcode non-existent directories.
11976 if test no != "$hardcode_direct" &&
11977 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11978 # have to relink, otherwise we might link with an installed library
11979 # when we should be linking with a yet-to-be-installed one
11980 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11981 test no != "$hardcode_minus_L"; then
11982 # Linking always hardcodes the temporary library directory.
11983 hardcode_action=relink
11985 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11986 hardcode_action=immediate
11989 # We cannot hardcode anything, or else we can only hardcode existing
11991 hardcode_action=unsupported
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11994 $as_echo "$hardcode_action" >&6; }
11996 if test relink = "$hardcode_action" ||
11997 test yes = "$inherit_rpath"; then
11998 # Fast installation is not supported
11999 enable_fast_install=no
12000 elif test yes = "$shlibpath_overrides_runpath" ||
12001 test no = "$enable_shared"; then
12002 # Fast installation is not necessary
12003 enable_fast_install=needless
12011 if test yes != "$enable_dlopen"; then
12012 enable_dlopen=unknown
12013 enable_dlopen_self=unknown
12014 enable_dlopen_self_static=unknown
12021 lt_cv_dlopen=load_add_on
12023 lt_cv_dlopen_self=yes
12026 mingw* | pw32* | cegcc*)
12027 lt_cv_dlopen=LoadLibrary
12032 lt_cv_dlopen=dlopen
12037 # if libdl is installed we need to link against it
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12039 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12040 if ${ac_cv_lib_dl_dlopen+:} false; then :
12041 $as_echo_n "(cached) " >&6
12043 ac_check_lib_save_LIBS=$LIBS
12045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12046 /* end confdefs.h. */
12048 /* Override any GCC internal prototype to avoid an error.
12049 Use char because int might match the return type of a GCC
12050 builtin and then its argument prototype would still apply. */
12063 if ac_fn_c_try_link "$LINENO"; then :
12064 ac_cv_lib_dl_dlopen=yes
12066 ac_cv_lib_dl_dlopen=no
12068 rm -f core conftest.err conftest.$ac_objext \
12069 conftest$ac_exeext conftest.$ac_ext
12070 LIBS=$ac_check_lib_save_LIBS
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12073 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12074 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12075 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12080 lt_cv_dlopen_self=yes
12087 # Don't try to run any link tests for TPF. We know it's impossible
12088 # because TPF is a cross-compiler, and we know how we open DSOs.
12089 lt_cv_dlopen=dlopen
12091 lt_cv_dlopen_self=no
12095 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12096 if test "x$ac_cv_func_shl_load" = xyes; then :
12097 lt_cv_dlopen=shl_load
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12100 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12101 if ${ac_cv_lib_dld_shl_load+:} false; then :
12102 $as_echo_n "(cached) " >&6
12104 ac_check_lib_save_LIBS=$LIBS
12106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12107 /* end confdefs.h. */
12109 /* Override any GCC internal prototype to avoid an error.
12110 Use char because int might match the return type of a GCC
12111 builtin and then its argument prototype would still apply. */
12119 return shl_load ();
12124 if ac_fn_c_try_link "$LINENO"; then :
12125 ac_cv_lib_dld_shl_load=yes
12127 ac_cv_lib_dld_shl_load=no
12129 rm -f core conftest.err conftest.$ac_objext \
12130 conftest$ac_exeext conftest.$ac_ext
12131 LIBS=$ac_check_lib_save_LIBS
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12134 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12135 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12136 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12138 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12139 if test "x$ac_cv_func_dlopen" = xyes; then :
12140 lt_cv_dlopen=dlopen
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12143 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12144 if ${ac_cv_lib_dl_dlopen+:} false; then :
12145 $as_echo_n "(cached) " >&6
12147 ac_check_lib_save_LIBS=$LIBS
12149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12150 /* end confdefs.h. */
12152 /* Override any GCC internal prototype to avoid an error.
12153 Use char because int might match the return type of a GCC
12154 builtin and then its argument prototype would still apply. */
12167 if ac_fn_c_try_link "$LINENO"; then :
12168 ac_cv_lib_dl_dlopen=yes
12170 ac_cv_lib_dl_dlopen=no
12172 rm -f core conftest.err conftest.$ac_objext \
12173 conftest$ac_exeext conftest.$ac_ext
12174 LIBS=$ac_check_lib_save_LIBS
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12177 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12178 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12179 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12182 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12183 if ${ac_cv_lib_svld_dlopen+:} false; then :
12184 $as_echo_n "(cached) " >&6
12186 ac_check_lib_save_LIBS=$LIBS
12187 LIBS="-lsvld $LIBS"
12188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12189 /* end confdefs.h. */
12191 /* Override any GCC internal prototype to avoid an error.
12192 Use char because int might match the return type of a GCC
12193 builtin and then its argument prototype would still apply. */
12206 if ac_fn_c_try_link "$LINENO"; then :
12207 ac_cv_lib_svld_dlopen=yes
12209 ac_cv_lib_svld_dlopen=no
12211 rm -f core conftest.err conftest.$ac_objext \
12212 conftest$ac_exeext conftest.$ac_ext
12213 LIBS=$ac_check_lib_save_LIBS
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12216 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12217 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12218 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12221 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12222 if ${ac_cv_lib_dld_dld_link+:} false; then :
12223 $as_echo_n "(cached) " >&6
12225 ac_check_lib_save_LIBS=$LIBS
12227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12228 /* end confdefs.h. */
12230 /* Override any GCC internal prototype to avoid an error.
12231 Use char because int might match the return type of a GCC
12232 builtin and then its argument prototype would still apply. */
12240 return dld_link ();
12245 if ac_fn_c_try_link "$LINENO"; then :
12246 ac_cv_lib_dld_dld_link=yes
12248 ac_cv_lib_dld_dld_link=no
12250 rm -f core conftest.err conftest.$ac_objext \
12251 conftest$ac_exeext conftest.$ac_ext
12252 LIBS=$ac_check_lib_save_LIBS
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12255 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12256 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12257 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12278 if test no = "$lt_cv_dlopen"; then
12284 case $lt_cv_dlopen in
12286 save_CPPFLAGS=$CPPFLAGS
12287 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12289 save_LDFLAGS=$LDFLAGS
12290 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12293 LIBS="$lt_cv_dlopen_libs $LIBS"
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12296 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12297 if ${lt_cv_dlopen_self+:} false; then :
12298 $as_echo_n "(cached) " >&6
12300 if test yes = "$cross_compiling"; then :
12301 lt_cv_dlopen_self=cross
12303 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12304 lt_status=$lt_dlunknown
12305 cat > conftest.$ac_ext <<_LT_EOF
12306 #line $LINENO "configure"
12307 #include "confdefs.h"
12316 # define LT_DLGLOBAL RTLD_GLOBAL
12319 # define LT_DLGLOBAL DL_GLOBAL
12321 # define LT_DLGLOBAL 0
12325 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12326 find out it does not work in some platform. */
12327 #ifndef LT_DLLAZY_OR_NOW
12329 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12332 # define LT_DLLAZY_OR_NOW DL_LAZY
12335 # define LT_DLLAZY_OR_NOW RTLD_NOW
12338 # define LT_DLLAZY_OR_NOW DL_NOW
12340 # define LT_DLLAZY_OR_NOW 0
12347 /* When -fvisibility=hidden is used, assume the code has been annotated
12348 correspondingly for the symbols needed. */
12349 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12350 int fnord () __attribute__((visibility("default")));
12353 int fnord () { return 42; }
12356 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12357 int status = $lt_dlunknown;
12361 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12364 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12365 else puts (dlerror ());
12367 /* dlclose (self); */
12375 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12376 (eval $ac_link) 2>&5
12378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12379 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12380 (./conftest; exit; ) >&5 2>/dev/null
12382 case x$lt_status in
12383 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12384 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12385 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12388 # compilation failed
12389 lt_cv_dlopen_self=no
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12397 $as_echo "$lt_cv_dlopen_self" >&6; }
12399 if test yes = "$lt_cv_dlopen_self"; then
12400 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12402 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12403 if ${lt_cv_dlopen_self_static+:} false; then :
12404 $as_echo_n "(cached) " >&6
12406 if test yes = "$cross_compiling"; then :
12407 lt_cv_dlopen_self_static=cross
12409 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12410 lt_status=$lt_dlunknown
12411 cat > conftest.$ac_ext <<_LT_EOF
12412 #line $LINENO "configure"
12413 #include "confdefs.h"
12422 # define LT_DLGLOBAL RTLD_GLOBAL
12425 # define LT_DLGLOBAL DL_GLOBAL
12427 # define LT_DLGLOBAL 0
12431 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12432 find out it does not work in some platform. */
12433 #ifndef LT_DLLAZY_OR_NOW
12435 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12438 # define LT_DLLAZY_OR_NOW DL_LAZY
12441 # define LT_DLLAZY_OR_NOW RTLD_NOW
12444 # define LT_DLLAZY_OR_NOW DL_NOW
12446 # define LT_DLLAZY_OR_NOW 0
12453 /* When -fvisibility=hidden is used, assume the code has been annotated
12454 correspondingly for the symbols needed. */
12455 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12456 int fnord () __attribute__((visibility("default")));
12459 int fnord () { return 42; }
12462 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12463 int status = $lt_dlunknown;
12467 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12470 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12471 else puts (dlerror ());
12473 /* dlclose (self); */
12481 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12482 (eval $ac_link) 2>&5
12484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12485 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12486 (./conftest; exit; ) >&5 2>/dev/null
12488 case x$lt_status in
12489 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12490 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12491 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12494 # compilation failed
12495 lt_cv_dlopen_self_static=no
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12503 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12506 CPPFLAGS=$save_CPPFLAGS
12507 LDFLAGS=$save_LDFLAGS
12512 case $lt_cv_dlopen_self in
12513 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12514 *) enable_dlopen_self=unknown ;;
12517 case $lt_cv_dlopen_self_static in
12518 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12519 *) enable_dlopen_self_static=unknown ;;
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12542 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12543 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12544 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12545 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12547 $as_echo "yes" >&6; }
12549 # FIXME - insert some real tests, host_os isn't really good enough
12552 if test -n "$STRIP"; then
12553 striplib="$STRIP -x"
12554 old_striplib="$STRIP -S"
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12556 $as_echo "yes" >&6; }
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12559 $as_echo "no" >&6; }
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12564 $as_echo "no" >&6; }
12580 # Report what library types will actually be built
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12582 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12584 $as_echo "$can_build_shared" >&6; }
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12587 $as_echo_n "checking whether to build shared libraries... " >&6; }
12588 test no = "$can_build_shared" && enable_shared=no
12590 # On AIX, shared libraries and static libraries use the same namespace, and
12591 # are all built from PIC.
12594 test yes = "$enable_shared" && enable_static=no
12595 if test -n "$RANLIB"; then
12596 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12597 postinstall_cmds='$RANLIB $lib'
12602 if test ia64 != "$host_cpu"; then
12603 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12604 yes,aix,yes) ;; # shared object as lib.so file only
12605 yes,svr4,*) ;; # shared object as lib.so archive member only
12606 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12612 $as_echo "$enable_shared" >&6; }
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12615 $as_echo_n "checking whether to build static libraries... " >&6; }
12616 # Make sure either enable_shared or enable_static is yes.
12617 test yes = "$enable_shared" || enable_static=yes
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12619 $as_echo "$enable_static" >&6; }
12626 ac_cpp='$CPP $CPPFLAGS'
12627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12633 if test -n "$CXX" && ( test no != "$CXX" &&
12634 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
12635 (test g++ != "$CXX"))); then
12637 ac_cpp='$CXXCPP $CPPFLAGS'
12638 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12639 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12640 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12642 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12643 if test -z "$CXXCPP"; then
12644 if ${ac_cv_prog_CXXCPP+:} false; then :
12645 $as_echo_n "(cached) " >&6
12647 # Double quotes because CXXCPP needs to be expanded
12648 for CXXCPP in "$CXX -E" "/lib/cpp"
12650 ac_preproc_ok=false
12651 for ac_cxx_preproc_warn_flag in '' yes
12653 # Use a header file that comes with gcc, so configuring glibc
12654 # with a fresh cross-compiler works.
12655 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12656 # <limits.h> exists even on freestanding compilers.
12657 # On the NeXT, cc -E runs the code through the compiler's parser,
12658 # not just through cpp. "Syntax error" is here to catch this case.
12659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12660 /* end confdefs.h. */
12662 # include <limits.h>
12664 # include <assert.h>
12668 if ac_fn_cxx_try_cpp "$LINENO"; then :
12671 # Broken: fails on valid input.
12674 rm -f conftest.err conftest.i conftest.$ac_ext
12676 # OK, works on sane cases. Now check whether nonexistent headers
12677 # can be detected and how.
12678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12679 /* end confdefs.h. */
12680 #include <ac_nonexistent.h>
12682 if ac_fn_cxx_try_cpp "$LINENO"; then :
12683 # Broken: success on invalid input.
12686 # Passes both tests.
12690 rm -f conftest.err conftest.i conftest.$ac_ext
12693 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12694 rm -f conftest.i conftest.err conftest.$ac_ext
12695 if $ac_preproc_ok; then :
12700 ac_cv_prog_CXXCPP=$CXXCPP
12703 CXXCPP=$ac_cv_prog_CXXCPP
12705 ac_cv_prog_CXXCPP=$CXXCPP
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12708 $as_echo "$CXXCPP" >&6; }
12709 ac_preproc_ok=false
12710 for ac_cxx_preproc_warn_flag in '' yes
12712 # Use a header file that comes with gcc, so configuring glibc
12713 # with a fresh cross-compiler works.
12714 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12715 # <limits.h> exists even on freestanding compilers.
12716 # On the NeXT, cc -E runs the code through the compiler's parser,
12717 # not just through cpp. "Syntax error" is here to catch this case.
12718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12719 /* end confdefs.h. */
12721 # include <limits.h>
12723 # include <assert.h>
12727 if ac_fn_cxx_try_cpp "$LINENO"; then :
12730 # Broken: fails on valid input.
12733 rm -f conftest.err conftest.i conftest.$ac_ext
12735 # OK, works on sane cases. Now check whether nonexistent headers
12736 # can be detected and how.
12737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12738 /* end confdefs.h. */
12739 #include <ac_nonexistent.h>
12741 if ac_fn_cxx_try_cpp "$LINENO"; then :
12742 # Broken: success on invalid input.
12745 # Passes both tests.
12749 rm -f conftest.err conftest.i conftest.$ac_ext
12752 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12753 rm -f conftest.i conftest.err conftest.$ac_ext
12754 if $ac_preproc_ok; then :
12757 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12758 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12759 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12760 See \`config.log' for more details" "$LINENO" 5; }
12764 ac_cpp='$CPP $CPPFLAGS'
12765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12770 _lt_caught_CXX_error=yes
12774 ac_cpp='$CXXCPP $CPPFLAGS'
12775 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12776 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12777 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12779 archive_cmds_need_lc_CXX=no
12780 allow_undefined_flag_CXX=
12781 always_export_symbols_CXX=no
12782 archive_expsym_cmds_CXX=
12783 compiler_needs_object_CXX=no
12784 export_dynamic_flag_spec_CXX=
12785 hardcode_direct_CXX=no
12786 hardcode_direct_absolute_CXX=no
12787 hardcode_libdir_flag_spec_CXX=
12788 hardcode_libdir_separator_CXX=
12789 hardcode_minus_L_CXX=no
12790 hardcode_shlibpath_var_CXX=unsupported
12791 hardcode_automatic_CXX=no
12792 inherit_rpath_CXX=no
12794 module_expsym_cmds_CXX=
12795 link_all_deplibs_CXX=unknown
12796 old_archive_cmds_CXX=$old_archive_cmds
12797 reload_flag_CXX=$reload_flag
12798 reload_cmds_CXX=$reload_cmds
12799 no_undefined_flag_CXX=
12800 whole_archive_flag_spec_CXX=
12801 enable_shared_with_static_runtimes_CXX=no
12803 # Source file extension for C++ test sources.
12806 # Object file extension for compiled C++ test sources.
12810 # No sense in running all these tests if we already determined that
12811 # the CXX compiler isn't working. Some variables (like enable_shared)
12812 # are currently assumed to apply to all compilers on this platform,
12813 # and will be corrupted by setting them based on a non-working compiler.
12814 if test yes != "$_lt_caught_CXX_error"; then
12815 # Code to be used in simple compile tests
12816 lt_simple_compile_test_code="int some_variable = 0;"
12818 # Code to be used in simple link tests
12819 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12821 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12828 # If no C compiler was specified, use CC.
12831 # If no C compiler flags were specified, use CFLAGS.
12832 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12834 # Allow CC to be a program name with arguments.
12838 # save warnings/boilerplate of simple test code
12839 ac_outfile=conftest.$ac_objext
12840 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12841 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12842 _lt_compiler_boilerplate=`cat conftest.err`
12845 ac_outfile=conftest.$ac_objext
12846 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12847 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12848 _lt_linker_boilerplate=`cat conftest.err`
12852 # Allow CC to be a program name with arguments.
12854 lt_save_CFLAGS=$CFLAGS
12858 lt_save_with_gnu_ld=$with_gnu_ld
12859 lt_save_path_LD=$lt_cv_path_LD
12860 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12861 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12863 $as_unset lt_cv_prog_gnu_ld
12865 if test -n "${lt_cv_path_LDCXX+set}"; then
12866 lt_cv_path_LD=$lt_cv_path_LDCXX
12868 $as_unset lt_cv_path_LD
12870 test -z "${LDCXX+set}" || LD=$LDCXX
12875 func_cc_basename $compiler
12876 cc_basename=$func_cc_basename_result
12879 if test -n "$compiler"; then
12880 # We don't want -fno-exception when compiling C++ code, so set the
12881 # no_builtin_flag separately
12882 if test yes = "$GXX"; then
12883 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12885 lt_prog_compiler_no_builtin_flag_CXX=
12888 if test yes = "$GXX"; then
12889 # Set up default GNU C++ configuration
12893 # Check whether --with-gnu-ld was given.
12894 if test "${with_gnu_ld+set}" = set; then :
12895 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
12901 if test yes = "$GCC"; then
12902 # Check if gcc -print-prog-name=ld gives a path.
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12904 $as_echo_n "checking for ld used by $CC... " >&6; }
12907 # gcc leaves a trailing carriage return, which upsets mingw
12908 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12910 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12913 # Accept absolute paths.
12915 re_direlt='/[^/][^/]*/\.\./'
12916 # Canonicalize the pathname of ld
12917 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12918 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12919 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12921 test -z "$LD" && LD=$ac_prog
12924 # If it fails, then pretend we aren't using GCC.
12928 # If it is relative, then search for the first ld in PATH.
12929 with_gnu_ld=unknown
12932 elif test yes = "$with_gnu_ld"; then
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12934 $as_echo_n "checking for GNU ld... " >&6; }
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12937 $as_echo_n "checking for non-GNU ld... " >&6; }
12939 if ${lt_cv_path_LD+:} false; then :
12940 $as_echo_n "(cached) " >&6
12942 if test -z "$LD"; then
12943 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12944 for ac_dir in $PATH; do
12946 test -z "$ac_dir" && ac_dir=.
12947 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12948 lt_cv_path_LD=$ac_dir/$ac_prog
12949 # Check to see if the program is GNU ld. I'd rather use --version,
12950 # but apparently some variants of GNU ld only accept -v.
12951 # Break only if it was the GNU/non-GNU ld that we prefer.
12952 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12953 *GNU* | *'with BFD'*)
12954 test no != "$with_gnu_ld" && break
12957 test yes != "$with_gnu_ld" && break
12964 lt_cv_path_LD=$LD # Let the user override the test with a path.
12969 if test -n "$LD"; then
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12971 $as_echo "$LD" >&6; }
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12974 $as_echo "no" >&6; }
12976 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12978 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12979 if ${lt_cv_prog_gnu_ld+:} false; then :
12980 $as_echo_n "(cached) " >&6
12982 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12983 case `$LD -v 2>&1 </dev/null` in
12984 *GNU* | *'with BFD'*)
12985 lt_cv_prog_gnu_ld=yes
12988 lt_cv_prog_gnu_ld=no
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12993 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12994 with_gnu_ld=$lt_cv_prog_gnu_ld
13002 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13003 # archiving commands below assume that GNU ld is being used.
13004 if test yes = "$with_gnu_ld"; then
13005 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13006 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'
13008 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13009 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13011 # If archive_cmds runs LD, not CC, wlarc should be empty
13012 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13013 # investigate it a little bit more. (MM)
13016 # ancient GNU ld didn't support --whole-archive et. al.
13017 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13018 $GREP 'no-whole-archive' > /dev/null; then
13019 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13021 whole_archive_flag_spec_CXX=
13027 # A generic and very simple default shared library creation
13028 # command for GNU C++ for the case where it uses the native
13029 # linker, instead of GNU ld. If possible, this setting should
13030 # overridden to take advantage of the native linker features on
13031 # the platform it is being used on.
13032 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13035 # Commands to make compiler produce verbose output that lists
13036 # what "hidden" libraries, object files and flags are used when
13037 # linking a shared library.
13038 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13046 # PORTME: fill in a description of your system's C++ link characteristics
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13048 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13052 # FIXME: insert proper C++ library support
13056 if test ia64 = "$host_cpu"; then
13057 # On IA64, the linker does run time linking by default, so we don't
13058 # have to do anything special.
13059 aix_use_runtimelinking=no
13060 exp_sym_flag='-Bexport'
13063 aix_use_runtimelinking=no
13065 # Test if we are trying to use run time linking or normal
13066 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13067 # have runtime linking enabled, and use it for executables.
13068 # For shared libraries, we enable/disable runtime linking
13069 # depending on the kind of the shared library created -
13070 # when "with_aix_soname,aix_use_runtimelinking" is:
13071 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13072 # "aix,yes" lib.so shared, rtl:yes, for executables
13073 # lib.a static archive
13074 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13075 # lib.a(lib.so.V) shared, rtl:no, for executables
13076 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13077 # lib.a(lib.so.V) shared, rtl:no
13078 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13079 # lib.a static archive
13080 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13081 for ld_flag in $LDFLAGS; do
13084 aix_use_runtimelinking=yes
13089 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13090 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13091 # so we don't have lib.a shared libs to link our executables.
13092 # We have to force runtime linking in this case.
13093 aix_use_runtimelinking=yes
13094 LDFLAGS="$LDFLAGS -Wl,-brtl"
13099 exp_sym_flag='-bexport'
13100 no_entry_flag='-bnoentry'
13103 # When large executables or shared objects are built, AIX ld can
13104 # have problems creating the table of contents. If linking a library
13105 # or program results in "error TOC overflow" add -mminimal-toc to
13106 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13107 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13109 archive_cmds_CXX=''
13110 hardcode_direct_CXX=yes
13111 hardcode_direct_absolute_CXX=yes
13112 hardcode_libdir_separator_CXX=':'
13113 link_all_deplibs_CXX=yes
13114 file_list_spec_CXX='$wl-f,'
13115 case $with_aix_soname,$aix_use_runtimelinking in
13116 aix,*) ;; # no import file
13117 svr4,* | *,yes) # use import file
13118 # The Import File defines what to hardcode.
13119 hardcode_direct_CXX=no
13120 hardcode_direct_absolute_CXX=no
13124 if test yes = "$GXX"; then
13125 case $host_os in aix4.[012]|aix4.[012].*)
13126 # We only want to do this on AIX 4.2 and lower, the check
13127 # below for broken collect2 doesn't work under 4.3+
13128 collect2name=`$CC -print-prog-name=collect2`
13129 if test -f "$collect2name" &&
13130 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13132 # We have reworked collect2
13135 # We have old collect2
13136 hardcode_direct_CXX=unsupported
13137 # It fails to find uninstalled libraries when the uninstalled
13138 # path is not listed in the libpath. Setting hardcode_minus_L
13139 # to unsupported forces relinking
13140 hardcode_minus_L_CXX=yes
13141 hardcode_libdir_flag_spec_CXX='-L$libdir'
13142 hardcode_libdir_separator_CXX=
13145 shared_flag='-shared'
13146 if test yes = "$aix_use_runtimelinking"; then
13147 shared_flag=$shared_flag' $wl-G'
13149 # Need to ensure runtime linking is disabled for the traditional
13150 # shared library, or the linker may eventually find shared libraries
13151 # /with/ Import File - we do not want to mix them.
13152 shared_flag_aix='-shared'
13153 shared_flag_svr4='-shared $wl-G'
13156 if test ia64 = "$host_cpu"; then
13157 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13158 # chokes on -Wl,-G. The following line is correct:
13161 if test yes = "$aix_use_runtimelinking"; then
13162 shared_flag='$wl-G'
13164 shared_flag='$wl-bM:SRE'
13166 shared_flag_aix='$wl-bM:SRE'
13167 shared_flag_svr4='$wl-G'
13171 export_dynamic_flag_spec_CXX='$wl-bexpall'
13172 # It seems that -bexpall does not export symbols beginning with
13173 # underscore (_), so it is better to generate a list of symbols to
13175 always_export_symbols_CXX=yes
13176 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13177 # Warning - without using the other runtime loading flags (-brtl),
13178 # -berok will link without error, but may produce a broken library.
13179 # The "-G" linker flag allows undefined symbols.
13180 no_undefined_flag_CXX='-bernotok'
13181 # Determine the default libpath from the value encoded in an empty
13183 if test set = "${lt_cv_aix_libpath+set}"; then
13184 aix_libpath=$lt_cv_aix_libpath
13186 if ${lt_cv_aix_libpath__CXX+:} false; then :
13187 $as_echo_n "(cached) " >&6
13189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13190 /* end confdefs.h. */
13200 if ac_fn_cxx_try_link "$LINENO"; then :
13202 lt_aix_libpath_sed='
13203 /Import File Strings/,/^$/ {
13205 s/^0 *\([^ ]*\) *$/\1/
13209 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13210 # Check for a 64-bit object if we didn't find anything.
13211 if test -z "$lt_cv_aix_libpath__CXX"; then
13212 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13215 rm -f core conftest.err conftest.$ac_objext \
13216 conftest$ac_exeext conftest.$ac_ext
13217 if test -z "$lt_cv_aix_libpath__CXX"; then
13218 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13223 aix_libpath=$lt_cv_aix_libpath__CXX
13226 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13228 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
13230 if test ia64 = "$host_cpu"; then
13231 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13232 allow_undefined_flag_CXX="-z nodefs"
13233 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"
13235 # Determine the default libpath from the value encoded in an
13236 # empty executable.
13237 if test set = "${lt_cv_aix_libpath+set}"; then
13238 aix_libpath=$lt_cv_aix_libpath
13240 if ${lt_cv_aix_libpath__CXX+:} false; then :
13241 $as_echo_n "(cached) " >&6
13243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13244 /* end confdefs.h. */
13254 if ac_fn_cxx_try_link "$LINENO"; then :
13256 lt_aix_libpath_sed='
13257 /Import File Strings/,/^$/ {
13259 s/^0 *\([^ ]*\) *$/\1/
13263 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13264 # Check for a 64-bit object if we didn't find anything.
13265 if test -z "$lt_cv_aix_libpath__CXX"; then
13266 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13269 rm -f core conftest.err conftest.$ac_objext \
13270 conftest$ac_exeext conftest.$ac_ext
13271 if test -z "$lt_cv_aix_libpath__CXX"; then
13272 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13277 aix_libpath=$lt_cv_aix_libpath__CXX
13280 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13281 # Warning - without using the other run time loading flags,
13282 # -berok will link without error, but may produce a broken library.
13283 no_undefined_flag_CXX=' $wl-bernotok'
13284 allow_undefined_flag_CXX=' $wl-berok'
13285 if test yes = "$with_gnu_ld"; then
13286 # We only use this code for GNU lds that support --whole-archive.
13287 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13289 # Exported symbols can be pulled into shared objects from archives
13290 whole_archive_flag_spec_CXX='$convenience'
13292 archive_cmds_need_lc_CXX=yes
13293 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13294 # -brtl affects multiple linker settings, -berok does not and is overridden later
13295 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13296 if test svr4 != "$with_aix_soname"; then
13297 # This is similar to how AIX traditionally builds its shared
13298 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13299 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'
13301 if test aix != "$with_aix_soname"; then
13302 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'
13304 # used by -dlpreopen to get the symbols
13305 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13307 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
13313 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13314 allow_undefined_flag_CXX=unsupported
13315 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13316 # support --undefined. This deserves some investigation. FIXME
13317 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13324 case $cc_basename in
13326 # FIXME: insert proper C++ library support
13332 cygwin* | mingw* | pw32* | cegcc*)
13333 case $GXX,$cc_basename in
13336 # hardcode_libdir_flag_spec is actually meaningless, as there is
13337 # no search path for DLLs.
13338 hardcode_libdir_flag_spec_CXX=' '
13339 allow_undefined_flag_CXX=unsupported
13340 always_export_symbols_CXX=yes
13341 file_list_spec_CXX='@'
13342 # Tell ltmain to make .lib files, not .a files.
13344 # Tell ltmain to make .dll files, not .so files.
13346 # FIXME: Setting linknames here is a bad hack.
13347 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13348 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13349 cp "$export_symbols" "$output_objdir/$soname.def";
13350 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13352 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13354 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13356 # The linker will not automatically build a static lib if we build a DLL.
13357 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13358 enable_shared_with_static_runtimes_CXX=yes
13360 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13361 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13362 lt_tool_outputfile="@TOOL_OUTPUT@"~
13363 case $lt_outputfile in
13366 lt_outputfile=$lt_outputfile.exe
13367 lt_tool_outputfile=$lt_tool_outputfile.exe
13370 func_to_tool_file "$lt_outputfile"~
13371 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13372 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13373 $RM "$lt_outputfile.manifest";
13378 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13379 # as there is no search path for DLLs.
13380 hardcode_libdir_flag_spec_CXX='-L$libdir'
13381 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
13382 allow_undefined_flag_CXX=unsupported
13383 always_export_symbols_CXX=no
13384 enable_shared_with_static_runtimes_CXX=yes
13386 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13387 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'
13388 # If the export-symbols file already is a .def file, use it as
13389 # is; otherwise, prepend EXPORTS...
13390 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13391 cp $export_symbols $output_objdir/$soname.def;
13393 echo EXPORTS > $output_objdir/$soname.def;
13394 cat $export_symbols >> $output_objdir/$soname.def;
13396 $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'
13403 darwin* | rhapsody*)
13406 archive_cmds_need_lc_CXX=no
13407 hardcode_direct_CXX=no
13408 hardcode_automatic_CXX=yes
13409 hardcode_shlibpath_var_CXX=unsupported
13410 if test yes = "$lt_cv_ld_force_load"; then
13411 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\"`'
13414 whole_archive_flag_spec_CXX=''
13416 link_all_deplibs_CXX=yes
13417 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
13418 case $cc_basename in
13419 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13420 *) _lt_dar_can_shared=$GCC ;;
13422 if test yes = "$_lt_dar_can_shared"; then
13423 output_verbose_link_cmd=func_echo_all
13424 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"
13425 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13426 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"
13427 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"
13428 if test yes != "$lt_cv_apple_cc_single_mod"; then
13429 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"
13430 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"
13440 hardcode_libdir_flag_spec_CXX='-L$libdir'
13441 hardcode_minus_L_CXX=yes
13442 allow_undefined_flag_CXX=unsupported
13444 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13445 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13446 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13447 $ECHO EXPORTS >> $output_objdir/$libname.def~
13448 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13449 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13450 emximp -o $lib $output_objdir/$libname.def'
13451 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13452 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13453 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13454 $ECHO EXPORTS >> $output_objdir/$libname.def~
13455 prefix_cmds="$SED"~
13456 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13457 prefix_cmds="$prefix_cmds -e 1d";
13459 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13460 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13461 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13462 emximp -o $lib $output_objdir/$libname.def'
13463 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13464 enable_shared_with_static_runtimes_CXX=yes
13468 case $cc_basename in
13470 # FIXME: insert proper C++ library support
13474 # Green Hills C++ Compiler
13475 # FIXME: insert proper C++ library support
13479 # FIXME: insert proper C++ library support
13486 # C++ shared libraries reported to be fairly broken before
13492 archive_cmds_need_lc_CXX=no
13495 freebsd* | dragonfly*)
13496 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13502 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13503 link_all_deplibs_CXX=yes
13507 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13508 hardcode_libdir_separator_CXX=:
13509 export_dynamic_flag_spec_CXX='$wl-E'
13510 hardcode_direct_CXX=yes
13511 hardcode_minus_L_CXX=yes # Not in the search PATH,
13512 # but as the default
13513 # location of the library.
13515 case $cc_basename in
13517 # FIXME: insert proper C++ library support
13521 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'
13522 # Commands to make compiler produce verbose output that lists
13523 # what "hidden" libraries, object files and flags are used when
13524 # linking a shared library.
13526 # There doesn't appear to be a way to prevent this compiler from
13527 # explicitly linking system object files so we need to strip them
13528 # from the output so that they don't get included in the library
13530 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"'
13533 if test yes = "$GXX"; then
13534 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'
13536 # FIXME: insert proper C++ library support
13544 if test no = "$with_gnu_ld"; then
13545 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13546 hardcode_libdir_separator_CXX=:
13552 export_dynamic_flag_spec_CXX='$wl-E'
13558 hardcode_direct_CXX=no
13559 hardcode_shlibpath_var_CXX=no
13562 hardcode_direct_CXX=yes
13563 hardcode_direct_absolute_CXX=yes
13564 hardcode_minus_L_CXX=yes # Not in the search PATH,
13565 # but as the default
13566 # location of the library.
13570 case $cc_basename in
13572 # FIXME: insert proper C++ library support
13578 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13581 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13584 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13587 # Commands to make compiler produce verbose output that lists
13588 # what "hidden" libraries, object files and flags are used when
13589 # linking a shared library.
13591 # There doesn't appear to be a way to prevent this compiler from
13592 # explicitly linking system object files so we need to strip them
13593 # from the output so that they don't get included in the library
13595 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $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"'
13598 if test yes = "$GXX"; then
13599 if test no = "$with_gnu_ld"; then
13602 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13605 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13608 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'
13613 # FIXME: insert proper C++ library support
13621 hardcode_direct_CXX=no
13622 hardcode_shlibpath_var_CXX=no
13623 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13624 export_dynamic_flag_spec_CXX='$wl-E'
13625 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13626 # Instead, shared libraries are loaded at an image base (0x10000000 by
13627 # default) and relocated if they conflict, which is a slow very memory
13628 # consuming and fragmenting process. To avoid this, we pick a random,
13629 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13630 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13631 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'
13632 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'
13635 case $cc_basename in
13638 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'
13640 # Archives containing C++ object files must be created using
13641 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13642 # necessary to make sure instantiated templates are included
13644 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13647 if test yes = "$GXX"; then
13648 if test no = "$with_gnu_ld"; then
13649 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'
13651 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'
13654 link_all_deplibs_CXX=yes
13657 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13658 hardcode_libdir_separator_CXX=:
13659 inherit_rpath_CXX=yes
13662 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13663 case $cc_basename in
13665 # Kuck and Associates, Inc. (KAI) C++ Compiler
13667 # KCC will only create a shared library if the output file
13668 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13669 # to its proper name (with version) after linking.
13670 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'
13671 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'
13672 # Commands to make compiler produce verbose output that lists
13673 # what "hidden" libraries, object files and flags are used when
13674 # linking a shared library.
13676 # There doesn't appear to be a way to prevent this compiler from
13677 # explicitly linking system object files so we need to strip them
13678 # from the output so that they don't get included in the library
13680 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"'
13682 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13683 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13685 # Archives containing C++ object files must be created using
13686 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13687 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13692 # version 8.0 and above of icpc choke on multiply defined symbols
13693 # if we add $predep_objects and $postdep_objects, however 7.1 and
13694 # earlier do not add the objects themselves.
13695 case `$CC -V 2>&1` in
13697 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13698 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'
13700 *) # Version 8.0 or newer
13703 ia64*) tmp_idyn=' -i_dynamic';;
13705 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13706 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'
13709 archive_cmds_need_lc_CXX=no
13710 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13711 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13712 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13715 # Portland Group C++ compiler
13717 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13718 prelink_cmds_CXX='tpldir=Template.dir~
13720 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13721 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13722 old_archive_cmds_CXX='tpldir=Template.dir~
13724 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13725 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13727 archive_cmds_CXX='tpldir=Template.dir~
13729 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13730 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13731 archive_expsym_cmds_CXX='tpldir=Template.dir~
13733 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13734 $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'
13736 *) # Version 6 and above use weak symbols
13737 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13738 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'
13742 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
13743 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13744 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'
13748 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13749 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'
13751 runpath_var=LD_RUN_PATH
13752 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13753 hardcode_libdir_separator_CXX=:
13755 # Commands to make compiler produce verbose output that lists
13756 # what "hidden" libraries, object files and flags are used when
13757 # linking a shared library.
13759 # There doesn't appear to be a way to prevent this compiler from
13760 # explicitly linking system object files so we need to strip them
13761 # from the output so that they don't get included in the library
13763 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'
13765 xl* | mpixl* | bgxl*)
13766 # IBM XL 8.0 on PPC, with GNU ld
13767 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13768 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13769 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13770 if test yes = "$supports_anon_versioning"; then
13771 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13772 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13773 echo "local: *; };" >> $output_objdir/$libname.ver~
13774 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13778 case `$CC -V 2>&1 | sed 5q` in
13781 no_undefined_flag_CXX=' -zdefs'
13782 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13783 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'
13784 hardcode_libdir_flag_spec_CXX='-R$libdir'
13785 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'
13786 compiler_needs_object_CXX=yes
13788 # Not sure whether something based on
13789 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13791 output_verbose_link_cmd='func_echo_all'
13793 # Archives containing C++ object files must be created using
13794 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13795 # necessary to make sure instantiated templates are included
13797 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13805 # FIXME: insert proper C++ library support
13810 # FIXME: insert proper C++ library support
13815 case $cc_basename in
13817 # FIXME: insert proper C++ library support
13821 # FIXME: insert proper C++ library support
13828 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13829 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13831 hardcode_libdir_flag_spec_CXX='-R$libdir'
13832 hardcode_direct_CXX=yes
13833 hardcode_shlibpath_var_CXX=no
13835 # Workaround some broken pre-1.5 toolchains
13836 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13843 openbsd* | bitrig*)
13844 if test -f /usr/libexec/ld.so; then
13845 hardcode_direct_CXX=yes
13846 hardcode_shlibpath_var_CXX=no
13847 hardcode_direct_absolute_CXX=yes
13848 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13849 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13850 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
13851 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
13852 export_dynamic_flag_spec_CXX='$wl-E'
13853 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13855 output_verbose_link_cmd=func_echo_all
13861 osf3* | osf4* | osf5*)
13862 case $cc_basename in
13864 # Kuck and Associates, Inc. (KAI) C++ Compiler
13866 # KCC will only create a shared library if the output file
13867 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13868 # to its proper name (with version) after linking.
13869 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'
13871 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13872 hardcode_libdir_separator_CXX=:
13874 # Archives containing C++ object files must be created using
13875 # the KAI C++ compiler.
13877 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13878 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13882 # Rational C++ 2.4.1
13883 # FIXME: insert proper C++ library support
13889 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13890 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'
13891 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13894 allow_undefined_flag_CXX=' -expect_unresolved \*'
13895 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'
13896 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13897 echo "-hidden">> $lib.exp~
13898 $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~
13900 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13904 hardcode_libdir_separator_CXX=:
13906 # Commands to make compiler produce verbose output that lists
13907 # what "hidden" libraries, object files and flags are used when
13908 # linking a shared library.
13910 # There doesn't appear to be a way to prevent this compiler from
13911 # explicitly linking system object files so we need to strip them
13912 # from the output so that they don't get included in the library
13914 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"'
13917 if test yes,no = "$GXX,$with_gnu_ld"; then
13918 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13921 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'
13924 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'
13928 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13929 hardcode_libdir_separator_CXX=:
13931 # Commands to make compiler produce verbose output that lists
13932 # what "hidden" libraries, object files and flags are used when
13933 # linking a shared library.
13934 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13937 # FIXME: insert proper C++ library support
13945 # FIXME: insert proper C++ library support
13950 case $cc_basename in
13953 # FIXME: insert proper C++ library support
13958 # FIXME: insert proper C++ library support
13962 # FIXME: insert proper C++ library support
13969 case $cc_basename in
13971 # Sun C++ 4.2, 5.x and Centerline C++
13972 archive_cmds_need_lc_CXX=yes
13973 no_undefined_flag_CXX=' -zdefs'
13974 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13975 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13976 $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'
13978 hardcode_libdir_flag_spec_CXX='-R$libdir'
13979 hardcode_shlibpath_var_CXX=no
13981 solaris2.[0-5] | solaris2.[0-5].*) ;;
13983 # The compiler driver will combine and reorder linker options,
13984 # but understands '-z linker_flag'.
13985 # Supported since Solaris 2.6 (maybe 2.5.1?)
13986 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13989 link_all_deplibs_CXX=yes
13991 output_verbose_link_cmd='func_echo_all'
13993 # Archives containing C++ object files must be created using
13994 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13995 # necessary to make sure instantiated templates are included
13997 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14000 # Green Hills C++ Compiler
14001 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14003 # The C++ compiler must be used to create the archive.
14004 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14007 # GNU C++ compiler with Solaris linker
14008 if test yes,no = "$GXX,$with_gnu_ld"; then
14009 no_undefined_flag_CXX=' $wl-z ${wl}defs'
14010 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14011 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14012 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14013 $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'
14015 # Commands to make compiler produce verbose output that lists
14016 # what "hidden" libraries, object files and flags are used when
14017 # linking a shared library.
14018 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14020 # g++ 2.7 appears to require '-G' NOT '-shared' on this
14022 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14023 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14024 $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'
14026 # Commands to make compiler produce verbose output that lists
14027 # what "hidden" libraries, object files and flags are used when
14028 # linking a shared library.
14029 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14032 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14034 solaris2.[0-5] | solaris2.[0-5].*) ;;
14036 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14044 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14045 no_undefined_flag_CXX='$wl-z,text'
14046 archive_cmds_need_lc_CXX=no
14047 hardcode_shlibpath_var_CXX=no
14048 runpath_var='LD_RUN_PATH'
14050 case $cc_basename in
14052 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14053 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14056 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14057 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14062 sysv5* | sco3.2v5* | sco5v6*)
14063 # Note: We CANNOT use -z defs as we might desire, because we do not
14064 # link with -lc, and that would cause any symbols used from libc to
14065 # always be unresolved, which means just about no library would
14066 # ever link correctly. If we're not using GNU ld we use -z text
14067 # though, which does catch some bad symbols but isn't as heavy-handed
14069 no_undefined_flag_CXX='$wl-z,text'
14070 allow_undefined_flag_CXX='$wl-z,nodefs'
14071 archive_cmds_need_lc_CXX=no
14072 hardcode_shlibpath_var_CXX=no
14073 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14074 hardcode_libdir_separator_CXX=':'
14075 link_all_deplibs_CXX=yes
14076 export_dynamic_flag_spec_CXX='$wl-Bexport'
14077 runpath_var='LD_RUN_PATH'
14079 case $cc_basename in
14081 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14082 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14083 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14084 '"$old_archive_cmds_CXX"
14085 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14086 '"$reload_cmds_CXX"
14089 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14090 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14096 case $cc_basename in
14098 # NonStop-UX NCC 3.20
14099 # FIXME: insert proper C++ library support
14103 # FIXME: insert proper C++ library support
14110 # FIXME: insert proper C++ library support
14115 # FIXME: insert proper C++ library support
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14121 $as_echo "$ld_shlibs_CXX" >&6; }
14122 test no = "$ld_shlibs_CXX" && can_build_shared=no
14128 ## There is no encapsulation within the following macros, do not change
14129 ## the running order or otherwise move them around unless you know exactly
14130 ## what you are doing...
14131 # Dependencies to place before and after the object being linked:
14132 predep_objects_CXX=
14133 postdep_objects_CXX=
14136 compiler_lib_search_path_CXX=
14138 cat > conftest.$ac_ext <<_LT_EOF
14142 Foo (void) { a = 0; }
14149 _lt_libdeps_save_CFLAGS=$CFLAGS
14150 case "$CC $CFLAGS " in #(
14151 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14152 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14153 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14156 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14157 (eval $ac_compile) 2>&5
14159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14160 test $ac_status = 0; }; then
14161 # Parse the compiler output and extract the necessary
14162 # objects, libraries and library flags.
14164 # Sentinel used to keep track of whether or not we are before
14165 # the conftest object file.
14166 pre_test_object_deps_done=no
14168 for p in `eval "$output_verbose_link_cmd"`; do
14172 # Some compilers place space between "-{L,R}" and the path.
14173 # Remove the space.
14174 if test x-L = "$p" ||
14175 test x-R = "$p"; then
14180 # Expand the sysroot to ease extracting the directories later.
14181 if test -z "$prev"; then
14183 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14184 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14185 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14189 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14191 if test no = "$pre_test_object_deps_done"; then
14194 # Internal compiler library paths should come after those
14195 # provided the user. The postdeps already come after the
14196 # user supplied libs so there is no need to process them.
14197 if test -z "$compiler_lib_search_path_CXX"; then
14198 compiler_lib_search_path_CXX=$prev$p
14200 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14203 # The "-l" case would never come before the object being
14204 # linked, so don't bother handling this case.
14207 if test -z "$postdeps_CXX"; then
14208 postdeps_CXX=$prev$p
14210 postdeps_CXX="${postdeps_CXX} $prev$p"
14216 *.lto.$objext) ;; # Ignore GCC LTO objects
14218 # This assumes that the test object file only shows up
14219 # once in the compiler output.
14220 if test "$p" = "conftest.$objext"; then
14221 pre_test_object_deps_done=yes
14225 if test no = "$pre_test_object_deps_done"; then
14226 if test -z "$predep_objects_CXX"; then
14227 predep_objects_CXX=$p
14229 predep_objects_CXX="$predep_objects_CXX $p"
14232 if test -z "$postdep_objects_CXX"; then
14233 postdep_objects_CXX=$p
14235 postdep_objects_CXX="$postdep_objects_CXX $p"
14240 *) ;; # Ignore the rest.
14248 echo "libtool.m4: error: problem compiling CXX test program"
14251 $RM -f confest.$objext
14252 CFLAGS=$_lt_libdeps_save_CFLAGS
14254 # PORTME: override above test on systems where it is broken
14257 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14258 # hack all around it, let's just trust "g++" to DTRT.
14259 predep_objects_CXX=
14260 postdep_objects_CXX=
14266 case " $postdeps_CXX " in
14267 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14269 compiler_lib_search_dirs_CXX=
14270 if test -n "${compiler_lib_search_path_CXX}"; then
14271 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14304 lt_prog_compiler_wl_CXX=
14305 lt_prog_compiler_pic_CXX=
14306 lt_prog_compiler_static_CXX=
14309 # C++ specific cases for pic, static, wl, etc.
14310 if test yes = "$GXX"; then
14311 lt_prog_compiler_wl_CXX='-Wl,'
14312 lt_prog_compiler_static_CXX='-static'
14316 # All AIX code is PIC.
14317 if test ia64 = "$host_cpu"; then
14318 # AIX 5 now supports IA64 processor
14319 lt_prog_compiler_static_CXX='-Bstatic'
14321 lt_prog_compiler_pic_CXX='-fPIC'
14327 # see comment about AmigaOS4 .so support
14328 lt_prog_compiler_pic_CXX='-fPIC'
14331 # FIXME: we need at least 68020 code to build shared libraries, but
14332 # adding the '-m68020' flag to GCC prevents building anything better,
14334 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14339 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14340 # PIC is the default for these OSes.
14342 mingw* | cygwin* | os2* | pw32* | cegcc*)
14343 # This hack is so that the source file can tell whether it is being
14344 # built for inclusion in a dll (and should export symbols for example).
14345 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14346 # (--disable-auto-import) libraries
14347 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14350 lt_prog_compiler_static_CXX='$wl-static'
14354 darwin* | rhapsody*)
14355 # PIC is the default on this platform
14356 # Common symbols not allowed in MH_DYLIB files
14357 lt_prog_compiler_pic_CXX='-fno-common'
14360 # DJGPP does not support shared libraries at all
14361 lt_prog_compiler_pic_CXX=
14364 # PIC is the default for Haiku.
14365 # The "-static" flag exists, but is broken.
14366 lt_prog_compiler_static_CXX=
14369 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14370 # Instead, we relocate shared libraries at runtime.
14373 if test -d /usr/nec; then
14374 lt_prog_compiler_pic_CXX=-Kconform_pic
14378 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14379 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14380 # sets the default TLS model and affects inlining.
14385 lt_prog_compiler_pic_CXX='-fPIC'
14390 # QNX uses GNU C++, but need to define -shared option too, otherwise
14391 # it will coredump.
14392 lt_prog_compiler_pic_CXX='-fPIC -shared'
14395 lt_prog_compiler_pic_CXX='-fPIC'
14401 # All AIX code is PIC.
14402 if test ia64 = "$host_cpu"; then
14403 # AIX 5 now supports IA64 processor
14404 lt_prog_compiler_static_CXX='-Bstatic'
14406 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14410 case $cc_basename in
14412 # Green Hills C++ Compiler
14413 # _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"
14417 mingw* | cygwin* | os2* | pw32* | cegcc*)
14418 # This hack is so that the source file can tell whether it is being
14419 # built for inclusion in a dll (and should export symbols for example).
14420 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14423 case $cc_basename in
14425 lt_prog_compiler_pic_CXX='-KPIC'
14428 # Green Hills C++ Compiler
14429 lt_prog_compiler_pic_CXX='-pic'
14435 freebsd* | dragonfly*)
14436 # FreeBSD uses GNU C++
14438 hpux9* | hpux10* | hpux11*)
14439 case $cc_basename in
14441 lt_prog_compiler_wl_CXX='-Wl,'
14442 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14443 if test ia64 != "$host_cpu"; then
14444 lt_prog_compiler_pic_CXX='+Z'
14448 lt_prog_compiler_wl_CXX='-Wl,'
14449 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14455 lt_prog_compiler_pic_CXX='+Z'
14464 # This is c89, which is MS Visual C++ (no shared libs)
14465 # Anyone wants to do a port?
14467 irix5* | irix6* | nonstopux*)
14468 case $cc_basename in
14470 lt_prog_compiler_wl_CXX='-Wl,'
14471 lt_prog_compiler_static_CXX='-non_shared'
14472 # CC pic flag -KPIC is the default.
14478 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14479 case $cc_basename in
14482 lt_prog_compiler_wl_CXX='--backend -Wl,'
14483 lt_prog_compiler_pic_CXX='-fPIC'
14486 # old Intel C++ for x86_64, which still supported -KPIC.
14487 lt_prog_compiler_wl_CXX='-Wl,'
14488 lt_prog_compiler_pic_CXX='-KPIC'
14489 lt_prog_compiler_static_CXX='-static'
14492 # Intel C++, used to be incompatible with GCC.
14493 # ICC 10 doesn't accept -KPIC any more.
14494 lt_prog_compiler_wl_CXX='-Wl,'
14495 lt_prog_compiler_pic_CXX='-fPIC'
14496 lt_prog_compiler_static_CXX='-static'
14499 # Portland Group C++ compiler
14500 lt_prog_compiler_wl_CXX='-Wl,'
14501 lt_prog_compiler_pic_CXX='-fpic'
14502 lt_prog_compiler_static_CXX='-Bstatic'
14506 # Make sure the PIC flag is empty. It appears that all Alpha
14507 # Linux and Compaq Tru64 Unix objects are PIC.
14508 lt_prog_compiler_pic_CXX=
14509 lt_prog_compiler_static_CXX='-non_shared'
14511 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14512 # IBM XL 8.0, 9.0 on PPC and BlueGene
14513 lt_prog_compiler_wl_CXX='-Wl,'
14514 lt_prog_compiler_pic_CXX='-qpic'
14515 lt_prog_compiler_static_CXX='-qstaticlink'
14518 case `$CC -V 2>&1 | sed 5q` in
14521 lt_prog_compiler_pic_CXX='-KPIC'
14522 lt_prog_compiler_static_CXX='-Bstatic'
14523 lt_prog_compiler_wl_CXX='-Qoption ld '
14534 case $cc_basename in
14536 lt_prog_compiler_pic_CXX='-W c,exportall'
14542 netbsd* | netbsdelf*-gnu)
14545 # QNX uses GNU C++, but need to define -shared option too, otherwise
14546 # it will coredump.
14547 lt_prog_compiler_pic_CXX='-fPIC -shared'
14549 osf3* | osf4* | osf5*)
14550 case $cc_basename in
14552 lt_prog_compiler_wl_CXX='--backend -Wl,'
14555 # Rational C++ 2.4.1
14556 lt_prog_compiler_pic_CXX='-pic'
14559 # Digital/Compaq C++
14560 lt_prog_compiler_wl_CXX='-Wl,'
14561 # Make sure the PIC flag is empty. It appears that all Alpha
14562 # Linux and Compaq Tru64 Unix objects are PIC.
14563 lt_prog_compiler_pic_CXX=
14564 lt_prog_compiler_static_CXX='-non_shared'
14573 case $cc_basename in
14575 # Sun C++ 4.2, 5.x and Centerline C++
14576 lt_prog_compiler_pic_CXX='-KPIC'
14577 lt_prog_compiler_static_CXX='-Bstatic'
14578 lt_prog_compiler_wl_CXX='-Qoption ld '
14581 # Green Hills C++ Compiler
14582 lt_prog_compiler_pic_CXX='-PIC'
14589 case $cc_basename in
14592 lt_prog_compiler_pic_CXX='-pic'
14593 lt_prog_compiler_static_CXX='-Bstatic'
14597 lt_prog_compiler_pic_CXX='-pic'
14603 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14604 case $cc_basename in
14606 lt_prog_compiler_wl_CXX='-Wl,'
14607 lt_prog_compiler_pic_CXX='-KPIC'
14608 lt_prog_compiler_static_CXX='-Bstatic'
14613 case $cc_basename in
14615 # NonStop-UX NCC 3.20
14616 lt_prog_compiler_pic_CXX='-KPIC'
14625 lt_prog_compiler_can_build_shared_CXX=no
14631 # For platforms that do not support PIC, -DPIC is meaningless:
14633 lt_prog_compiler_pic_CXX=
14636 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14641 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14642 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14643 $as_echo_n "(cached) " >&6
14645 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14648 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14649 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14652 # Check to make sure the PIC flag actually works.
14654 if test -n "$lt_prog_compiler_pic_CXX"; then
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14656 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14657 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14658 $as_echo_n "(cached) " >&6
14660 lt_cv_prog_compiler_pic_works_CXX=no
14661 ac_outfile=conftest.$ac_objext
14662 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14663 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
14664 # Insert the option either (1) after the last *FLAGS variable, or
14665 # (2) before a word containing "conftest.", or (3) at the end.
14666 # Note that $ac_compile itself does not contain backslashes and begins
14667 # with a dollar sign (not a hyphen), so the echo should work correctly.
14668 # The option is referenced via a variable to avoid confusing sed.
14669 lt_compile=`echo "$ac_compile" | $SED \
14670 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14671 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14672 -e 's:$: $lt_compiler_flag:'`
14673 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14674 (eval "$lt_compile" 2>conftest.err)
14676 cat conftest.err >&5
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 if (exit $ac_status) && test -s "$ac_outfile"; then
14679 # The compiler can only warn and ignore the option if not recognized
14680 # So say no if there are warnings other than the usual output.
14681 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14682 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14683 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14684 lt_cv_prog_compiler_pic_works_CXX=yes
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14691 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14693 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
14694 case $lt_prog_compiler_pic_CXX in
14696 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14699 lt_prog_compiler_pic_CXX=
14700 lt_prog_compiler_can_build_shared_CXX=no
14710 # Check to make sure the static flag actually works.
14712 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14714 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14715 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14716 $as_echo_n "(cached) " >&6
14718 lt_cv_prog_compiler_static_works_CXX=no
14719 save_LDFLAGS=$LDFLAGS
14720 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14721 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14722 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14723 # The linker can only warn and ignore the option if not recognized
14724 # So say no if there are warnings
14725 if test -s conftest.err; then
14726 # Append any errors to the config.log.
14727 cat conftest.err 1>&5
14728 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14729 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14730 if diff conftest.exp conftest.er2 >/dev/null; then
14731 lt_cv_prog_compiler_static_works_CXX=yes
14734 lt_cv_prog_compiler_static_works_CXX=yes
14738 LDFLAGS=$save_LDFLAGS
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14742 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14744 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
14747 lt_prog_compiler_static_CXX=
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14754 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14755 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14756 $as_echo_n "(cached) " >&6
14758 lt_cv_prog_compiler_c_o_CXX=no
14759 $RM -r conftest 2>/dev/null
14763 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14765 lt_compiler_flag="-o out/conftest2.$ac_objext"
14766 # Insert the option either (1) after the last *FLAGS variable, or
14767 # (2) before a word containing "conftest.", or (3) at the end.
14768 # Note that $ac_compile itself does not contain backslashes and begins
14769 # with a dollar sign (not a hyphen), so the echo should work correctly.
14770 lt_compile=`echo "$ac_compile" | $SED \
14771 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14772 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14773 -e 's:$: $lt_compiler_flag:'`
14774 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14775 (eval "$lt_compile" 2>out/conftest.err)
14777 cat out/conftest.err >&5
14778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14781 # The compiler can only warn and ignore the option if not recognized
14782 # So say no if there are warnings
14783 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14784 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14785 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14786 lt_cv_prog_compiler_c_o_CXX=yes
14791 # SGI C++ compiler will create directory out/ii_files/ for
14792 # template instantiation
14793 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14794 $RM out/* && rmdir out
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14801 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14806 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14807 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14808 $as_echo_n "(cached) " >&6
14810 lt_cv_prog_compiler_c_o_CXX=no
14811 $RM -r conftest 2>/dev/null
14815 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14817 lt_compiler_flag="-o out/conftest2.$ac_objext"
14818 # Insert the option either (1) after the last *FLAGS variable, or
14819 # (2) before a word containing "conftest.", or (3) at the end.
14820 # Note that $ac_compile itself does not contain backslashes and begins
14821 # with a dollar sign (not a hyphen), so the echo should work correctly.
14822 lt_compile=`echo "$ac_compile" | $SED \
14823 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14824 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14825 -e 's:$: $lt_compiler_flag:'`
14826 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14827 (eval "$lt_compile" 2>out/conftest.err)
14829 cat out/conftest.err >&5
14830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14833 # The compiler can only warn and ignore the option if not recognized
14834 # So say no if there are warnings
14835 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14836 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14837 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14838 lt_cv_prog_compiler_c_o_CXX=yes
14843 # SGI C++ compiler will create directory out/ii_files/ for
14844 # template instantiation
14845 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14846 $RM out/* && rmdir out
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14853 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14858 hard_links=nottested
14859 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
14860 # do not overwrite the value of need_locks provided by the user
14861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14862 $as_echo_n "checking if we can lock with hard links... " >&6; }
14865 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14867 ln conftest.a conftest.b 2>&5 || hard_links=no
14868 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14870 $as_echo "$hard_links" >&6; }
14871 if test no = "$hard_links"; then
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
14873 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14883 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14885 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14886 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14889 # If we're using GNU nm, then we don't want the "-C" option.
14890 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
14891 # Without the "-l" option, or with the "-B" option, AIX nm treats
14892 # weak defined symbols like other global defined symbols, whereas
14893 # GNU nm marks them as "W".
14894 # While the 'weak' keyword is ignored in the Export File, we need
14895 # it in the Import File for the 'aix-soname' feature, so we have
14896 # to replace the "-B" option with "-P" for AIX nm.
14897 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14898 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'
14900 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'
14904 export_symbols_cmds_CXX=$ltdll_cmds
14906 cygwin* | mingw* | cegcc*)
14907 case $cc_basename in
14909 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14912 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'
14913 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14917 linux* | k*bsd*-gnu | gnu*)
14918 link_all_deplibs_CXX=no
14921 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14926 $as_echo "$ld_shlibs_CXX" >&6; }
14927 test no = "$ld_shlibs_CXX" && can_build_shared=no
14929 with_gnu_ld_CXX=$with_gnu_ld
14937 # Do we need to explicitly link libc?
14939 case "x$archive_cmds_need_lc_CXX" in
14941 # Assume -lc should be added
14942 archive_cmds_need_lc_CXX=yes
14944 if test yes,yes = "$GCC,$enable_shared"; then
14945 case $archive_cmds_CXX in
14947 # FIXME: we may have to deal with multi-command sequences.
14950 # Test whether the compiler implicitly links with -lc since on some
14951 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14952 # to ld, don't add -lc before -lgcc.
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14954 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14955 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14956 $as_echo_n "(cached) " >&6
14959 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14961 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14962 (eval $ac_compile) 2>&5
14964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14965 test $ac_status = 0; } 2>conftest.err; then
14968 libobjs=conftest.$ac_objext
14970 wl=$lt_prog_compiler_wl_CXX
14971 pic_flag=$lt_prog_compiler_pic_CXX
14977 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14978 allow_undefined_flag_CXX=
14979 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14980 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14983 test $ac_status = 0; }
14985 lt_cv_archive_cmds_need_lc_CXX=no
14987 lt_cv_archive_cmds_need_lc_CXX=yes
14989 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14991 cat conftest.err 1>&5
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14997 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14998 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15067 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15069 library_names_spec=
15070 libname_spec='lib$name'
15074 postuninstall_cmds=
15078 shlibpath_overrides_runpath=unknown
15080 dynamic_linker="$host_os ld.so"
15081 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15082 need_lib_prefix=unknown
15083 hardcode_into_libs=no
15085 # when you set need_version to no, make sure it does not cause -set_version
15086 # flags to be left without arguments
15087 need_version=unknown
15093 version_type=linux # correct to gnu/linux during the next big refactor
15094 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15095 shlibpath_var=LIBPATH
15097 # AIX 3 has no versioning support, so we append a major version to the name.
15098 soname_spec='$libname$release$shared_ext$major'
15102 version_type=linux # correct to gnu/linux during the next big refactor
15105 hardcode_into_libs=yes
15106 if test ia64 = "$host_cpu"; then
15107 # AIX 5 supports IA64
15108 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15109 shlibpath_var=LD_LIBRARY_PATH
15111 # With GCC up to 2.95.x, collect2 would create an import file
15112 # for dependence libraries. The import file would start with
15113 # the line '#! .'. This would cause the generated library to
15114 # depend on '.', always an invalid library. This was fixed in
15115 # development snapshots of GCC prior to 3.0.
15117 aix4 | aix4.[01] | aix4.[01].*)
15118 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15120 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15123 can_build_shared=no
15127 # Using Import Files as archive members, it is possible to support
15128 # filename-based versioning of shared library archives on AIX. While
15129 # this would work for both with and without runtime linking, it will
15130 # prevent static linking of such archives. So we do filename-based
15131 # shared library versioning with .so extension only, which is used
15132 # when both runtime linking and shared linking is enabled.
15133 # Unfortunately, runtime linking may impact performance, so we do
15134 # not want this to be the default eventually. Also, we use the
15135 # versioned .so libs for executables only if there is the -brtl
15136 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15137 # To allow for filename-based versioning support, we need to create
15138 # libNAME.so.V as an archive file, containing:
15139 # *) an Import File, referring to the versioned filename of the
15140 # archive as well as the shared archive member, telling the
15141 # bitwidth (32 or 64) of that shared object, and providing the
15142 # list of exported symbols of that shared object, eventually
15143 # decorated with the 'weak' keyword
15144 # *) the shared object with the F_LOADONLY flag set, to really avoid
15145 # it being seen by the linker.
15146 # At run time we better use the real file rather than another symlink,
15147 # but for link time we create the symlink libNAME.so -> libNAME.so.V
15149 case $with_aix_soname,$aix_use_runtimelinking in
15150 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15151 # soname into executable. Probably we can add versioning support to
15152 # collect2, so additional links can be useful in future.
15153 aix,yes) # traditional libtool
15154 dynamic_linker='AIX unversionable lib.so'
15155 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15156 # instead of lib<name>.a to let people know that these are not
15157 # typical AIX shared libraries.
15158 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15160 aix,no) # traditional AIX only
15161 dynamic_linker='AIX lib.a(lib.so.V)'
15162 # We preserve .a as extension for shared libraries through AIX4.2
15163 # and later when we are not doing run time linking.
15164 library_names_spec='$libname$release.a $libname.a'
15165 soname_spec='$libname$release$shared_ext$major'
15167 svr4,*) # full svr4 only
15168 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15169 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15170 # We do not specify a path in Import Files, so LIBPATH fires.
15171 shlibpath_overrides_runpath=yes
15173 *,yes) # both, prefer svr4
15174 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15175 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15176 # unpreferred sharedlib libNAME.a needs extra handling
15177 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"'
15178 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"'
15179 # We do not specify a path in Import Files, so LIBPATH fires.
15180 shlibpath_overrides_runpath=yes
15182 *,no) # both, prefer aix
15183 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15184 library_names_spec='$libname$release.a $libname.a'
15185 soname_spec='$libname$release$shared_ext$major'
15186 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15187 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)'
15188 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"'
15191 shlibpath_var=LIBPATH
15198 # Since July 2007 AmigaOS4 officially supports .so libraries.
15199 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15200 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15203 library_names_spec='$libname.ixlibrary $libname.a'
15204 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15205 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'
15211 library_names_spec='$libname$shared_ext'
15212 dynamic_linker="$host_os ld.so"
15213 shlibpath_var=LIBRARY_PATH
15217 version_type=linux # correct to gnu/linux during the next big refactor
15219 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15220 soname_spec='$libname$release$shared_ext$major'
15221 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15222 shlibpath_var=LD_LIBRARY_PATH
15223 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15224 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15225 # the default ld.so.conf also contains /usr/contrib/lib and
15226 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15227 # libtool to hard-code these into programs
15230 cygwin* | mingw* | pw32* | cegcc*)
15231 version_type=windows
15236 case $GCC,$cc_basename in
15239 library_names_spec='$libname.dll.a'
15240 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15241 postinstall_cmds='base_file=`basename \$file`~
15242 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15243 dldir=$destdir/`dirname \$dlpath`~
15244 test -d \$dldir || mkdir -p \$dldir~
15245 $install_prog $dir/$dlname \$dldir/$dlname~
15246 chmod a+x \$dldir/$dlname~
15247 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15248 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15250 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15251 dlpath=$dir/\$dldll~
15253 shlibpath_overrides_runpath=yes
15257 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15258 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15262 # MinGW DLLs use traditional 'lib' prefix
15263 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15266 # pw32 DLLs use 'pw' prefix rather than 'lib'
15267 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15270 dynamic_linker='Win32 ld.exe'
15275 libname_spec='$name'
15276 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15277 library_names_spec='$libname.dll.lib'
15281 sys_lib_search_path_spec=
15284 for lt_path in $LIB
15287 # Let DOS variable expansion print the short 8.3 style file name.
15288 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15289 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15292 # Convert to MSYS style.
15293 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15296 # Convert to unix form, then to dos form, then back to unix form
15297 # but this time dos style (no spaces!) so that the unix form looks
15298 # like /cygdrive/c/PROGRA~1:/cygdr...
15299 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15300 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15301 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15304 sys_lib_search_path_spec=$LIB
15305 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15306 # It is most probably a Windows format PATH.
15307 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15309 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15311 # FIXME: find the short name or the path components, as spaces are
15312 # common. (e.g. "Program Files" -> "PROGRA~1")
15316 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15317 postinstall_cmds='base_file=`basename \$file`~
15318 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15319 dldir=$destdir/`dirname \$dlpath`~
15320 test -d \$dldir || mkdir -p \$dldir~
15321 $install_prog $dir/$dlname \$dldir/$dlname'
15322 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15323 dlpath=$dir/\$dldll~
15325 shlibpath_overrides_runpath=yes
15326 dynamic_linker='Win32 link.exe'
15330 # Assume MSVC wrapper
15331 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15332 dynamic_linker='Win32 ld.exe'
15335 # FIXME: first we should search . and the directory the executable is in
15339 darwin* | rhapsody*)
15340 dynamic_linker="$host_os dyld"
15341 version_type=darwin
15344 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15345 soname_spec='$libname$release$major$shared_ext'
15346 shlibpath_overrides_runpath=yes
15347 shlibpath_var=DYLD_LIBRARY_PATH
15348 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15350 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15354 version_type=linux # correct to gnu/linux during the next big refactor
15357 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15358 soname_spec='$libname$release$shared_ext$major'
15359 shlibpath_var=LD_LIBRARY_PATH
15362 freebsd* | dragonfly*)
15363 # DragonFly does not have aout. When/if they implement a new
15364 # versioning mechanism, adjust this.
15365 if test -x /usr/bin/objformat; then
15366 objformat=`/usr/bin/objformat`
15369 freebsd[23].*) objformat=aout ;;
15370 *) objformat=elf ;;
15373 version_type=freebsd-$objformat
15374 case $version_type in
15376 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15377 soname_spec='$libname$release$shared_ext$major'
15382 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15386 shlibpath_var=LD_LIBRARY_PATH
15389 shlibpath_overrides_runpath=yes
15391 freebsd3.[01]* | freebsdelf3.[01]*)
15392 shlibpath_overrides_runpath=yes
15393 hardcode_into_libs=yes
15395 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15396 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15397 shlibpath_overrides_runpath=no
15398 hardcode_into_libs=yes
15400 *) # from 4.6 on, and DragonFly
15401 shlibpath_overrides_runpath=yes
15402 hardcode_into_libs=yes
15408 version_type=linux # correct to gnu/linux during the next big refactor
15411 dynamic_linker="$host_os runtime_loader"
15412 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15413 soname_spec='$libname$release$shared_ext$major'
15414 shlibpath_var=LIBRARY_PATH
15415 shlibpath_overrides_runpath=no
15416 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15417 hardcode_into_libs=yes
15420 hpux9* | hpux10* | hpux11*)
15421 # Give a soname corresponding to the major version so that dld.sl refuses to
15422 # link against other versions.
15429 hardcode_into_libs=yes
15430 dynamic_linker="$host_os dld.so"
15431 shlibpath_var=LD_LIBRARY_PATH
15432 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15433 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15434 soname_spec='$libname$release$shared_ext$major'
15435 if test 32 = "$HPUX_IA64_MODE"; then
15436 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15437 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15439 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15440 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15445 hardcode_into_libs=yes
15446 dynamic_linker="$host_os dld.sl"
15447 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15448 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15449 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15450 soname_spec='$libname$release$shared_ext$major'
15451 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15452 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15456 dynamic_linker="$host_os dld.sl"
15457 shlibpath_var=SHLIB_PATH
15458 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15459 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15460 soname_spec='$libname$release$shared_ext$major'
15463 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15464 postinstall_cmds='chmod 555 $lib'
15465 # or fails outright, so override atomically:
15466 install_override_mode=555
15470 version_type=linux # correct to gnu/linux during the next big refactor
15473 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15474 soname_spec='$libname$release$shared_ext$major'
15475 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15476 shlibpath_var=LD_LIBRARY_PATH
15477 shlibpath_overrides_runpath=no
15478 hardcode_into_libs=yes
15481 irix5* | irix6* | nonstopux*)
15483 nonstopux*) version_type=nonstopux ;;
15485 if test yes = "$lt_cv_prog_gnu_ld"; then
15486 version_type=linux # correct to gnu/linux during the next big refactor
15493 soname_spec='$libname$release$shared_ext$major'
15494 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15496 irix5* | nonstopux*)
15497 libsuff= shlibsuff=
15500 case $LD in # libtool.m4 will add one of these switches to LD
15501 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15502 libsuff= shlibsuff= libmagic=32-bit;;
15503 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15504 libsuff=32 shlibsuff=N32 libmagic=N32;;
15505 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15506 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15507 *) libsuff= shlibsuff= libmagic=never-match;;
15511 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15512 shlibpath_overrides_runpath=no
15513 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15514 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15515 hardcode_into_libs=yes
15518 # No shared lib support for Linux oldld, aout, or coff.
15519 linux*oldld* | linux*aout* | linux*coff*)
15524 version_type=none # Android doesn't support versioned libraries.
15527 library_names_spec='$libname$release$shared_ext'
15528 soname_spec='$libname$release$shared_ext'
15530 shlibpath_var=LD_LIBRARY_PATH
15531 shlibpath_overrides_runpath=yes
15533 # This implies no fast_install, which is unacceptable.
15534 # Some rework will be needed to allow for fast_install
15535 # before this can be enabled.
15536 hardcode_into_libs=yes
15538 dynamic_linker='Android linker'
15539 # Don't embed -rpath directories since the linker doesn't support them.
15540 hardcode_libdir_flag_spec_CXX='-L$libdir'
15543 # This must be glibc/ELF.
15544 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15545 version_type=linux # correct to gnu/linux during the next big refactor
15548 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15549 soname_spec='$libname$release$shared_ext$major'
15550 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15551 shlibpath_var=LD_LIBRARY_PATH
15552 shlibpath_overrides_runpath=no
15554 # Some binutils ld are patched to set DT_RUNPATH
15555 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15556 $as_echo_n "(cached) " >&6
15558 lt_cv_shlibpath_overrides_runpath=no
15559 save_LDFLAGS=$LDFLAGS
15560 save_libdir=$libdir
15561 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15562 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15564 /* end confdefs.h. */
15574 if ac_fn_cxx_try_link "$LINENO"; then :
15575 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15576 lt_cv_shlibpath_overrides_runpath=yes
15579 rm -f core conftest.err conftest.$ac_objext \
15580 conftest$ac_exeext conftest.$ac_ext
15581 LDFLAGS=$save_LDFLAGS
15582 libdir=$save_libdir
15586 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15588 # This implies no fast_install, which is unacceptable.
15589 # Some rework will be needed to allow for fast_install
15590 # before this can be enabled.
15591 hardcode_into_libs=yes
15593 # Ideally, we could use ldconfig to report *all* directores which are
15594 # searched for libraries, however this is still not possible. Aside from not
15595 # being certain /sbin/ldconfig is available, command
15596 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15597 # even though it is searched at run-time. Try to do the best guess by
15598 # appending ld.so.conf contents (and includes) to the search path.
15599 if test -f /etc/ld.so.conf; then
15600 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' ' '`
15601 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15604 # We used to test for /lib/ld.so.1 and disable shared libraries on
15605 # powerpc, because MkLinux only supported shared libraries with the
15606 # GNU dynamic linker. Since this was broken with cross compilers,
15607 # most powerpc-linux boxes support dynamic linking these days and
15608 # people can always --disable-shared, the test was removed, and we
15609 # assume the GNU/Linux dynamic linker is in use.
15610 dynamic_linker='GNU/Linux ld.so'
15617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15618 soname_spec='${libname}${release}${shared_ext}$major'
15619 shlibpath_var=LD_LIBRARY_PATH
15620 shlibpath_overrides_runpath=no
15621 hardcode_into_libs=yes
15622 dynamic_linker='NetBSD ld.elf_so'
15629 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15630 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15631 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15632 dynamic_linker='NetBSD (a.out) ld.so'
15634 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15635 soname_spec='$libname$release$shared_ext$major'
15636 dynamic_linker='NetBSD ld.elf_so'
15638 shlibpath_var=LD_LIBRARY_PATH
15639 shlibpath_overrides_runpath=yes
15640 hardcode_into_libs=yes
15644 version_type=linux # correct to gnu/linux during the next big refactor
15645 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15646 shlibpath_var=LD_LIBRARY_PATH
15647 shlibpath_overrides_runpath=yes
15654 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15655 soname_spec='$libname$release$shared_ext$major'
15656 shlibpath_var=LD_LIBRARY_PATH
15657 shlibpath_overrides_runpath=no
15658 hardcode_into_libs=yes
15659 dynamic_linker='ldqnx.so'
15662 openbsd* | bitrig*)
15664 sys_lib_dlsearch_path_spec=/usr/lib
15666 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15671 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15672 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15673 shlibpath_var=LD_LIBRARY_PATH
15674 shlibpath_overrides_runpath=yes
15678 libname_spec='$name'
15679 version_type=windows
15683 # OS/2 can only load a DLL with a base name of 8 characters or less.
15684 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15685 v=$($ECHO $release$versuffix | tr -d .-);
15686 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15687 $ECHO $n$v`$shared_ext'
15688 library_names_spec='${libname}_dll.$libext'
15689 dynamic_linker='OS/2 ld.exe'
15690 shlibpath_var=BEGINLIBPATH
15691 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15692 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15693 postinstall_cmds='base_file=`basename \$file`~
15694 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15695 dldir=$destdir/`dirname \$dlpath`~
15696 test -d \$dldir || mkdir -p \$dldir~
15697 $install_prog $dir/$dlname \$dldir/$dlname~
15698 chmod a+x \$dldir/$dlname~
15699 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15700 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15702 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15703 dlpath=$dir/\$dldll~
15707 osf3* | osf4* | osf5*)
15711 soname_spec='$libname$release$shared_ext$major'
15712 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15713 shlibpath_var=LD_LIBRARY_PATH
15714 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15715 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15723 version_type=linux # correct to gnu/linux during the next big refactor
15726 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15727 soname_spec='$libname$release$shared_ext$major'
15728 shlibpath_var=LD_LIBRARY_PATH
15729 shlibpath_overrides_runpath=yes
15730 hardcode_into_libs=yes
15731 # ldd complains unless libraries are executable
15732 postinstall_cmds='chmod +x $lib'
15737 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15738 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15739 shlibpath_var=LD_LIBRARY_PATH
15740 shlibpath_overrides_runpath=yes
15741 if test yes = "$with_gnu_ld"; then
15748 version_type=linux # correct to gnu/linux during the next big refactor
15749 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15750 soname_spec='$libname$release$shared_ext$major'
15751 shlibpath_var=LD_LIBRARY_PATH
15752 case $host_vendor in
15754 shlibpath_overrides_runpath=no
15756 runpath_var=LD_RUN_PATH
15764 shlibpath_overrides_runpath=no
15765 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15771 if test -d /usr/nec; then
15772 version_type=linux # correct to gnu/linux during the next big refactor
15773 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15774 soname_spec='$libname$shared_ext.$major'
15775 shlibpath_var=LD_LIBRARY_PATH
15779 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15783 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15784 soname_spec='$libname$release$shared_ext$major'
15785 shlibpath_var=LD_LIBRARY_PATH
15786 shlibpath_overrides_runpath=yes
15787 hardcode_into_libs=yes
15788 if test yes = "$with_gnu_ld"; then
15789 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15791 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15794 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15798 sys_lib_dlsearch_path_spec='/usr/lib'
15802 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15803 version_type=linux # correct to gnu/linux during the next big refactor
15806 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15807 shlibpath_var=LD_LIBRARY_PATH
15808 shlibpath_overrides_runpath=no
15809 hardcode_into_libs=yes
15813 version_type=linux # correct to gnu/linux during the next big refactor
15814 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15815 soname_spec='$libname$release$shared_ext$major'
15816 shlibpath_var=LD_LIBRARY_PATH
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15824 $as_echo "$dynamic_linker" >&6; }
15825 test no = "$dynamic_linker" && can_build_shared=no
15827 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15828 if test yes = "$GCC"; then
15829 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15832 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15833 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15836 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15837 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15840 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15841 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15843 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15844 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15846 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15847 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15889 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15890 hardcode_action_CXX=
15891 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15892 test -n "$runpath_var_CXX" ||
15893 test yes = "$hardcode_automatic_CXX"; then
15895 # We can hardcode non-existent directories.
15896 if test no != "$hardcode_direct_CXX" &&
15897 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15898 # have to relink, otherwise we might link with an installed library
15899 # when we should be linking with a yet-to-be-installed one
15900 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
15901 test no != "$hardcode_minus_L_CXX"; then
15902 # Linking always hardcodes the temporary library directory.
15903 hardcode_action_CXX=relink
15905 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15906 hardcode_action_CXX=immediate
15909 # We cannot hardcode anything, or else we can only hardcode existing
15911 hardcode_action_CXX=unsupported
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15914 $as_echo "$hardcode_action_CXX" >&6; }
15916 if test relink = "$hardcode_action_CXX" ||
15917 test yes = "$inherit_rpath_CXX"; then
15918 # Fast installation is not supported
15919 enable_fast_install=no
15920 elif test yes = "$shlibpath_overrides_runpath" ||
15921 test no = "$enable_shared"; then
15922 # Fast installation is not necessary
15923 enable_fast_install=needless
15932 fi # test -n "$compiler"
15935 CFLAGS=$lt_save_CFLAGS
15939 with_gnu_ld=$lt_save_with_gnu_ld
15940 lt_cv_path_LDCXX=$lt_cv_path_LD
15941 lt_cv_path_LD=$lt_save_path_LD
15942 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15943 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15944 fi # test yes != "$_lt_caught_CXX_error"
15947 ac_cpp='$CPP $CPPFLAGS'
15948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15966 ac_config_commands="$ac_config_commands libtool"
15971 # Only expand once:
15975 ac_config_headers="$ac_config_headers config.h src/include/fst/config.h"
15978 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"
15982 ac_cpp='$CXXCPP $CPPFLAGS'
15983 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15984 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15985 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15988 # Check whether --enable-compact-fsts was given.
15989 if test "${enable_compact_fsts+set}" = set; then :
15990 enableval=$enable_compact_fsts;
15992 enable_compact_fsts=no
15995 if test "x$enable_compact_fsts" != xno; then
15997 HAVE_COMPACT_FALSE='#'
15999 HAVE_COMPACT_TRUE='#'
16000 HAVE_COMPACT_FALSE=
16004 # Check whether --enable-compress was given.
16005 if test "${enable_compress+set}" = set; then :
16006 enableval=$enable_compress;
16011 if test "x$enable_compress" != xno; then
16012 HAVE_COMPRESS_TRUE=
16013 HAVE_COMPRESS_FALSE='#'
16015 HAVE_COMPRESS_TRUE='#'
16016 HAVE_COMPRESS_FALSE=
16020 # Check whether --enable-const-fsts was given.
16021 if test "${enable_const_fsts+set}" = set; then :
16022 enableval=$enable_const_fsts;
16024 enable_const_fsts=no
16027 if test "x$enable_const_fsts" != xno; then
16029 HAVE_CONST_FALSE='#'
16031 HAVE_CONST_TRUE='#'
16036 # Check whether --enable-far was given.
16037 if test "${enable_far+set}" = set; then :
16038 enableval=$enable_far;
16043 if test "x$enable_far" != xno; then
16052 # Check whether --enable-linear-fsts was given.
16053 if test "${enable_linear_fsts+set}" = set; then :
16054 enableval=$enable_linear_fsts;
16056 enable_linear_fsts=no
16059 if test "x$enable_linear_fsts" != xno; then
16061 HAVE_LINEAR_FALSE='#'
16063 HAVE_LINEAR_TRUE='#'
16068 # Check whether --enable-lookahead-fsts was given.
16069 if test "${enable_lookahead_fsts+set}" = set; then :
16070 enableval=$enable_lookahead_fsts;
16072 enable_lookahead_fsts=no
16075 if test "x$enable_lookahead_fsts" != xno; then
16076 HAVE_LOOKAHEAD_TRUE=
16077 HAVE_LOOKAHEAD_FALSE='#'
16079 HAVE_LOOKAHEAD_TRUE='#'
16080 HAVE_LOOKAHEAD_FALSE=
16084 # Check whether --enable-mpdt was given.
16085 if test "${enable_mpdt+set}" = set; then :
16086 enableval=$enable_mpdt;
16091 if test "x$enable_mpdt" != xno; then
16093 HAVE_MPDT_FALSE='#'
16100 # Check whether --enable-ngram-fsts was given.
16101 if test "${enable_ngram_fsts+set}" = set; then :
16102 enableval=$enable_ngram_fsts;
16104 enable_ngram_fsts=no
16107 if test "x$enable_ngram_fsts" != xno; then
16109 HAVE_NGRAM_FALSE='#'
16111 HAVE_NGRAM_TRUE='#'
16116 # Check whether --enable-pdt was given.
16117 if test "${enable_pdt+set}" = set; then :
16118 enableval=$enable_pdt;
16123 if test "x$enable_pdt" != xno; then
16132 # Check whether --enable-python was given.
16133 if test "${enable_python+set}" = set; then :
16134 enableval=$enable_python;
16139 if test "x$enable_python" != xno; then
16141 HAVE_PYTHON_FALSE='#'
16143 HAVE_PYTHON_TRUE='#'
16147 if test "x$enable_python" != xno; then
16154 if test -n "$PYTHON"; then
16155 # If the user set $PYTHON, use it and don't search something else.
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.7" >&5
16157 $as_echo_n "checking whether $PYTHON version is >= 2.7... " >&6; }
16159 # split strings by '.' and convert to numeric. Append some zeros
16160 # because we need at least 4 digits for the hex conversion.
16161 # map returns an iterator in Python 3.0 and a list in 2.x
16162 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
16164 # xrange is not present in Python 3.0 and range returns an iterator
16165 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
16166 sys.exit(sys.hexversion < minverhex)"
16167 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
16168 ($PYTHON -c "$prog") >&5 2>&5
16170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171 (exit $ac_status); }; then :
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16173 $as_echo "yes" >&6; }
16175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16176 $as_echo "no" >&6; }
16177 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
16179 am_display_PYTHON=$PYTHON
16181 # Otherwise, try each interpreter until we find one that satisfies
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.7" >&5
16184 $as_echo_n "checking for a Python interpreter with version >= 2.7... " >&6; }
16185 if ${am_cv_pathless_PYTHON+:} false; then :
16186 $as_echo_n "(cached) " >&6
16189 for am_cv_pathless_PYTHON in python python2 python3 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
16190 test "$am_cv_pathless_PYTHON" = none && break
16192 # split strings by '.' and convert to numeric. Append some zeros
16193 # because we need at least 4 digits for the hex conversion.
16194 # map returns an iterator in Python 3.0 and a list in 2.x
16195 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
16197 # xrange is not present in Python 3.0 and range returns an iterator
16198 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
16199 sys.exit(sys.hexversion < minverhex)"
16200 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
16201 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
16203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204 (exit $ac_status); }; then :
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
16210 $as_echo "$am_cv_pathless_PYTHON" >&6; }
16211 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
16212 if test "$am_cv_pathless_PYTHON" = none; then
16215 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
16216 set dummy $am_cv_pathless_PYTHON; ac_word=$2
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16218 $as_echo_n "checking for $ac_word... " >&6; }
16219 if ${ac_cv_path_PYTHON+:} false; then :
16220 $as_echo_n "(cached) " >&6
16224 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
16227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16228 for as_dir in $PATH
16231 test -z "$as_dir" && as_dir=.
16232 for ac_exec_ext in '' $ac_executable_extensions; do
16233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16234 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
16235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16245 PYTHON=$ac_cv_path_PYTHON
16246 if test -n "$PYTHON"; then
16247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
16248 $as_echo "$PYTHON" >&6; }
16250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16251 $as_echo "no" >&6; }
16256 am_display_PYTHON=$am_cv_pathless_PYTHON
16260 if test "$PYTHON" = :; then
16261 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
16266 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
16267 if ${am_cv_python_version+:} false; then :
16268 $as_echo_n "(cached) " >&6
16270 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
16272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
16273 $as_echo "$am_cv_python_version" >&6; }
16274 PYTHON_VERSION=$am_cv_python_version
16278 PYTHON_PREFIX='${prefix}'
16280 PYTHON_EXEC_PREFIX='${exec_prefix}'
16284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
16285 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
16286 if ${am_cv_python_platform+:} false; then :
16287 $as_echo_n "(cached) " >&6
16289 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
16291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
16292 $as_echo "$am_cv_python_platform" >&6; }
16293 PYTHON_PLATFORM=$am_cv_python_platform
16296 # Just factor out some code duplication.
16297 am_python_setup_sysconfig="\
16299 # Prefer sysconfig over distutils.sysconfig, for better compatibility
16300 # with python 3.x. See automake bug#10227.
16303 except ImportError:
16304 can_use_sysconfig = 0
16306 can_use_sysconfig = 1
16307 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
16308 # <https://github.com/pypa/virtualenv/issues/118>
16310 from platform import python_implementation
16311 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
16312 can_use_sysconfig = 0
16313 except ImportError:
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
16318 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
16319 if ${am_cv_python_pythondir+:} false; then :
16320 $as_echo_n "(cached) " >&6
16322 if test "x$prefix" = xNONE
16324 am_py_prefix=$ac_default_prefix
16326 am_py_prefix=$prefix
16328 am_cv_python_pythondir=`$PYTHON -c "
16329 $am_python_setup_sysconfig
16330 if can_use_sysconfig:
16331 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
16333 from distutils import sysconfig
16334 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
16335 sys.stdout.write(sitedir)"`
16336 case $am_cv_python_pythondir in
16338 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
16339 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
16342 case $am_py_prefix in
16345 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
16352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
16353 $as_echo "$am_cv_python_pythondir" >&6; }
16354 pythondir=$am_cv_python_pythondir
16358 pkgpythondir=\${pythondir}/$PACKAGE
16361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
16362 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
16363 if ${am_cv_python_pyexecdir+:} false; then :
16364 $as_echo_n "(cached) " >&6
16366 if test "x$exec_prefix" = xNONE
16368 am_py_exec_prefix=$am_py_prefix
16370 am_py_exec_prefix=$exec_prefix
16372 am_cv_python_pyexecdir=`$PYTHON -c "
16373 $am_python_setup_sysconfig
16374 if can_use_sysconfig:
16375 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
16377 from distutils import sysconfig
16378 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
16379 sys.stdout.write(sitedir)"`
16380 case $am_cv_python_pyexecdir in
16381 $am_py_exec_prefix*)
16382 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
16383 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
16386 case $am_py_exec_prefix in
16389 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
16396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
16397 $as_echo "$am_cv_python_pyexecdir" >&6; }
16398 pyexecdir=$am_cv_python_pyexecdir
16402 pkgpyexecdir=\${pyexecdir}/$PACKAGE
16411 # Allow the use of a (user set) custom python version
16415 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
16416 set dummy python$PYTHON_VERSION; ac_word=$2
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16418 $as_echo_n "checking for $ac_word... " >&6; }
16419 if ${ac_cv_path_PYTHON+:} false; then :
16420 $as_echo_n "(cached) " >&6
16424 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
16427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16428 for as_dir in $PATH
16431 test -z "$as_dir" && as_dir=.
16432 for ac_exec_ext in '' $ac_executable_extensions; do
16433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16434 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
16435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16445 PYTHON=$ac_cv_path_PYTHON
16446 if test -n "$PYTHON"; then
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
16448 $as_echo "$PYTHON" >&6; }
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16451 $as_echo "no" >&6; }
16455 if test -z "$PYTHON"; then
16456 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
16461 # Check for a version of Python >= 2.1.0
16463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
16464 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
16465 ac_supports_python_ver=`$PYTHON -c "import sys, string; \
16466 ver = string.split(sys.version)[0]; \
16467 print ver >= '2.1.0'"`
16468 if test "$ac_supports_python_ver" != "True"; then
16469 if test -z "$PYTHON_NOVERSIONCHECK"; then
16470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16471 $as_echo "no" >&6; }
16472 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16473 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16475 This version of the AC_PYTHON_DEVEL macro
16476 doesn't work properly with versions of Python before
16477 2.1.0. You may need to re-run configure, setting the
16478 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
16479 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
16480 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
16481 to something else than an empty string.
16483 See \`config.log' for more details" "$LINENO" 5; }
16485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
16486 $as_echo "skip at user request" >&6; }
16489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16490 $as_echo "yes" >&6; }
16494 # if the macro parameter ``version'' is set, honour it
16496 if test -n ">= '2.7'"; then
16497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.7'" >&5
16498 $as_echo_n "checking for a version of Python >= '2.7'... " >&6; }
16499 ac_supports_python_ver=`$PYTHON -c "import sys, string; \
16500 ver = string.split(sys.version)[0]; \
16501 print ver >= '2.7'"`
16502 if test "$ac_supports_python_ver" = "True"; then
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16504 $as_echo "yes" >&6; }
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16507 $as_echo "no" >&6; }
16508 as_fn_error $? "this package requires Python >= '2.7'.
16509 If you have it installed, but it isn't the default Python
16510 interpreter in your system path, please pass the PYTHON_VERSION
16511 variable to configure. See \`\`configure --help'' for reference.
16518 # Check if you have distutils, else fail
16520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
16521 $as_echo_n "checking for the distutils Python package... " >&6; }
16522 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
16523 if test -z "$ac_distutils_result"; then
16524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16525 $as_echo "yes" >&6; }
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16528 $as_echo "no" >&6; }
16529 as_fn_error $? "cannot import Python module \"distutils\".
16530 Please check your Python installation. The error was:
16531 $ac_distutils_result" "$LINENO" 5
16536 # Check for Python include path
16538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
16539 $as_echo_n "checking for Python include path... " >&6; }
16540 if test -z "$PYTHON_CPPFLAGS"; then
16541 python_path=`$PYTHON -c "import distutils.sysconfig; \
16542 print distutils.sysconfig.get_python_inc();"`
16543 if test -n "${python_path}"; then
16544 python_path="-I$python_path"
16546 PYTHON_CPPFLAGS=$python_path
16548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
16549 $as_echo "$PYTHON_CPPFLAGS" >&6; }
16553 # Check for Python library path
16555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
16556 $as_echo_n "checking for Python library path... " >&6; }
16557 if test -z "$PYTHON_LDFLAGS"; then
16558 # (makes two attempts to ensure we've got a version number
16559 # from the interpreter)
16560 py_version=`$PYTHON -c "from distutils.sysconfig import *; \
16561 from string import join; \
16562 print join(get_config_vars('VERSION'))"`
16563 if test "$py_version" == "None"; then
16564 if test -n "$PYTHON_VERSION"; then
16565 py_version=$PYTHON_VERSION
16567 py_version=`$PYTHON -c "import sys; \
16568 print sys.version[:3]"`
16572 PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \
16573 from string import join; \
16574 print '-L' + get_python_lib(0,1), \
16575 '-lpython';"`$py_version
16577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
16578 $as_echo "$PYTHON_LDFLAGS" >&6; }
16582 # Check for site packages
16584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
16585 $as_echo_n "checking for Python site-packages path... " >&6; }
16586 if test -z "$PYTHON_SITE_PKG"; then
16587 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
16588 print distutils.sysconfig.get_python_lib(0,0);"`
16590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
16591 $as_echo "$PYTHON_SITE_PKG" >&6; }
16595 # libraries which must be linked in when embedding
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
16598 $as_echo_n "checking python extra libraries... " >&6; }
16599 if test -z "$PYTHON_EXTRA_LIBS"; then
16600 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
16601 conf = distutils.sysconfig.get_config_var; \
16602 print conf('LOCALMODLIBS'), conf('LIBS')"`
16604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
16605 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
16609 # linking flags needed when embedding
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
16612 $as_echo_n "checking python extra linking flags... " >&6; }
16613 if test -z "$PYTHON_EXTRA_LDFLAGS"; then
16614 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
16615 conf = distutils.sysconfig.get_config_var; \
16616 print conf('LINKFORSHARED')"`
16618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
16619 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
16623 # final check to see if everything compiles alright
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
16626 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
16628 ac_cpp='$CPP $CPPFLAGS'
16629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16633 # save current global flags
16634 LIBS="$ac_save_LIBS $PYTHON_LDFLAGS"
16635 CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
16636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16637 /* end confdefs.h. */
16639 #include <Python.h>
16651 if ac_fn_c_try_link "$LINENO"; then :
16656 rm -f core conftest.err conftest.$ac_objext \
16657 conftest$ac_exeext conftest.$ac_ext
16659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
16660 $as_echo "$pythonexists" >&6; }
16662 if test ! "$pythonexists" = "yes"; then
16664 Could not link test program to Python. Maybe the main Python library has been
16665 installed in some non-standard library path. If so, pass it to configure,
16666 via the LDFLAGS environment variable.
16667 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
16668 ============================================================================
16670 You probably have to install the development version of the Python package
16671 for your distribution. The exact name of this package varies among them.
16672 ============================================================================
16677 ac_cpp='$CXXCPP $CPPFLAGS'
16678 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16679 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16680 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16682 # turn back to default flags
16683 CPPFLAGS="$ac_save_CPPFLAGS"
16684 LIBS="$ac_save_LIBS"
16692 # Check whether --enable-special was given.
16693 if test "${enable_special+set}" = set; then :
16694 enableval=$enable_special;
16699 if test "x$enable_special" != xno; then
16701 HAVE_SPECIAL_FALSE='#'
16703 HAVE_SPECIAL_TRUE='#'
16704 HAVE_SPECIAL_FALSE=
16708 # --enable-bin enables script and bin "extensions".
16709 # Check whether --enable-bin was given.
16710 if test "${enable_bin+set}" = set; then :
16711 enableval=$enable_bin;
16716 if test "x$enable_bin" != xno; then
16724 if test "x$enable_bin" != xno; then
16726 HAVE_SCRIPT_FALSE='#'
16728 HAVE_SCRIPT_TRUE='#'
16733 # --enable-grm enables dependencies of OpenGrm: far, mpdt, and pdt.
16734 # Check whether --enable-grm was given.
16735 if test "${enable_grm+set}" = set; then :
16736 enableval=$enable_grm;
16741 if test "x$enable_grm" != xno; then
16751 # Check whether --with-libfstdir was given.
16752 if test "${with_libfstdir+set}" = set; then :
16753 withval=$with_libfstdir;
16755 with_libfstdir=${libdir}/fst
16759 libfstdir=$with_libfstdir
16762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16763 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16764 if ${ac_cv_lib_dl_dlopen+:} false; then :
16765 $as_echo_n "(cached) " >&6
16767 ac_check_lib_save_LIBS=$LIBS
16769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16770 /* end confdefs.h. */
16772 /* Override any GCC internal prototype to avoid an error.
16773 Use char because int might match the return type of a GCC
16774 builtin and then its argument prototype would still apply. */
16787 if ac_fn_cxx_try_link "$LINENO"; then :
16788 ac_cv_lib_dl_dlopen=yes
16790 ac_cv_lib_dl_dlopen=no
16792 rm -f core conftest.err conftest.$ac_objext \
16793 conftest$ac_exeext conftest.$ac_ext
16794 LIBS=$ac_check_lib_save_LIBS
16796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16797 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16798 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16804 cat >confcache <<\_ACEOF
16805 # This file is a shell script that caches the results of configure
16806 # tests run on this system so they can be shared between configure
16807 # scripts and configure runs, see configure's option --config-cache.
16808 # It is not useful on other systems. If it contains results you don't
16809 # want to keep, you may remove or edit it.
16811 # config.status only pays attention to the cache file if you give it
16812 # the --recheck option to rerun configure.
16814 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16815 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16816 # following values.
16820 # The following way of writing the cache mishandles newlines in values,
16821 # but we know of no workaround that is simple, portable, and efficient.
16822 # So, we kill variables containing newlines.
16823 # Ultrix sh set writes to stderr and can't be redirected directly,
16824 # and sets the high bit in the cache file unless we assign to the vars.
16826 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16827 eval ac_val=\$$ac_var
16831 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16832 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16835 _ | IFS | as_nl) ;; #(
16836 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16837 *) { eval $ac_var=; unset $ac_var;} ;;
16843 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16844 *${as_nl}ac_space=\ *)
16845 # `set' does not quote correctly, so add quotes: double-quote
16846 # substitution turns \\\\ into \\, and sed turns \\ into \.
16849 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16852 # `set' quotes correctly as required by POSIX, so do not add quotes.
16853 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16862 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16864 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16866 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16867 if test -w "$cache_file"; then
16868 if test "x$cache_file" != "x/dev/null"; then
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16870 $as_echo "$as_me: updating cache $cache_file" >&6;}
16871 if test ! -f "$cache_file" || test -h "$cache_file"; then
16872 cat confcache >"$cache_file"
16874 case $cache_file in #(
16876 mv -f confcache "$cache_file"$$ &&
16877 mv -f "$cache_file"$$ "$cache_file" ;; #(
16879 mv -f confcache "$cache_file" ;;
16884 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16885 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16890 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16891 # Let make expand exec_prefix.
16892 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16894 DEFS=-DHAVE_CONFIG_H
16899 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16900 # 1. Remove the extension, and $U if already installed.
16901 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16902 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16903 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16904 # will be set to the directory where LIBOBJS objects are built.
16905 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16906 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16908 LIBOBJS=$ac_libobjs
16910 LTLIBOBJS=$ac_ltlibobjs
16913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16914 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16915 if test -n "$am_sleep_pid"; then
16916 # Hide warnings about reused PIDs.
16917 wait $am_sleep_pid 2>/dev/null
16919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16920 $as_echo "done" >&6; }
16921 if test -n "$EXEEXT"; then
16923 am__EXEEXT_FALSE='#'
16925 am__EXEEXT_TRUE='#'
16929 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16930 as_fn_error $? "conditional \"AMDEP\" was never defined.
16931 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16933 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16934 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16935 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16937 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16938 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16939 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16941 if test -z "${HAVE_COMPACT_TRUE}" && test -z "${HAVE_COMPACT_FALSE}"; then
16942 as_fn_error $? "conditional \"HAVE_COMPACT\" was never defined.
16943 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16945 if test -z "${HAVE_COMPRESS_TRUE}" && test -z "${HAVE_COMPRESS_FALSE}"; then
16946 as_fn_error $? "conditional \"HAVE_COMPRESS\" was never defined.
16947 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16949 if test -z "${HAVE_CONST_TRUE}" && test -z "${HAVE_CONST_FALSE}"; then
16950 as_fn_error $? "conditional \"HAVE_CONST\" was never defined.
16951 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16953 if test -z "${HAVE_FAR_TRUE}" && test -z "${HAVE_FAR_FALSE}"; then
16954 as_fn_error $? "conditional \"HAVE_FAR\" was never defined.
16955 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16957 if test -z "${HAVE_LINEAR_TRUE}" && test -z "${HAVE_LINEAR_FALSE}"; then
16958 as_fn_error $? "conditional \"HAVE_LINEAR\" was never defined.
16959 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16961 if test -z "${HAVE_LOOKAHEAD_TRUE}" && test -z "${HAVE_LOOKAHEAD_FALSE}"; then
16962 as_fn_error $? "conditional \"HAVE_LOOKAHEAD\" was never defined.
16963 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16965 if test -z "${HAVE_MPDT_TRUE}" && test -z "${HAVE_MPDT_FALSE}"; then
16966 as_fn_error $? "conditional \"HAVE_MPDT\" was never defined.
16967 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16969 if test -z "${HAVE_NGRAM_TRUE}" && test -z "${HAVE_NGRAM_FALSE}"; then
16970 as_fn_error $? "conditional \"HAVE_NGRAM\" was never defined.
16971 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16973 if test -z "${HAVE_PDT_TRUE}" && test -z "${HAVE_PDT_FALSE}"; then
16974 as_fn_error $? "conditional \"HAVE_PDT\" was never defined.
16975 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16977 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
16978 as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
16979 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16981 if test -z "${HAVE_SPECIAL_TRUE}" && test -z "${HAVE_SPECIAL_FALSE}"; then
16982 as_fn_error $? "conditional \"HAVE_SPECIAL\" was never defined.
16983 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16985 if test -z "${HAVE_BIN_TRUE}" && test -z "${HAVE_BIN_FALSE}"; then
16986 as_fn_error $? "conditional \"HAVE_BIN\" was never defined.
16987 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16989 if test -z "${HAVE_SCRIPT_TRUE}" && test -z "${HAVE_SCRIPT_FALSE}"; then
16990 as_fn_error $? "conditional \"HAVE_SCRIPT\" was never defined.
16991 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16993 if test -z "${HAVE_GRM_TRUE}" && test -z "${HAVE_GRM_FALSE}"; then
16994 as_fn_error $? "conditional \"HAVE_GRM\" was never defined.
16995 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16998 : "${CONFIG_STATUS=./config.status}"
17000 ac_clean_files_save=$ac_clean_files
17001 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17002 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17003 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17005 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17007 # Generated by $as_me.
17008 # Run this file to recreate the current configuration.
17009 # Compiler output produced by configure, useful for debugging
17010 # configure, is in config.log if it exists.
17013 ac_cs_recheck=false
17016 SHELL=\${CONFIG_SHELL-$SHELL}
17019 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17020 ## -------------------- ##
17021 ## M4sh Initialization. ##
17022 ## -------------------- ##
17024 # Be more Bourne compatible
17025 DUALCASE=1; export DUALCASE # for MKS sh
17026 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17029 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17030 # is contrary to our usage. Disable this feature.
17031 alias -g '${1+"$@"}'='"$@"'
17032 setopt NO_GLOB_SUBST
17034 case `(set -o) 2>/dev/null` in #(
17046 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17047 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17048 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17049 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17050 # Prefer a ksh shell builtin over an external printf program on Solaris,
17051 # but without wasting forks for bash or zsh.
17052 if test -z "$BASH_VERSION$ZSH_VERSION" \
17053 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17054 as_echo='print -r --'
17055 as_echo_n='print -rn --'
17056 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17057 as_echo='printf %s\n'
17058 as_echo_n='printf %s'
17060 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17061 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17062 as_echo_n='/usr/ucb/echo -n'
17064 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17065 as_echo_n_body='eval
17069 expr "X$arg" : "X\\(.*\\)$as_nl";
17070 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17072 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17074 export as_echo_n_body
17075 as_echo_n='sh -c $as_echo_n_body as_echo'
17077 export as_echo_body
17078 as_echo='sh -c $as_echo_body as_echo'
17081 # The user is always right.
17082 if test "${PATH_SEPARATOR+set}" != set; then
17084 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17085 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17092 # We need space, tab and new line, in precisely that order. Quoting is
17093 # there to prevent editors from complaining about space-tab.
17094 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17095 # splitting by setting IFS to empty value.)
17098 # Find who we are. Look in the path if we contain no directory separator.
17101 *[\\/]* ) as_myself=$0 ;;
17102 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17103 for as_dir in $PATH
17106 test -z "$as_dir" && as_dir=.
17107 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17113 # We did not find ourselves, most probably we were run as `sh COMMAND'
17114 # in which case we are not to be found in the path.
17115 if test "x$as_myself" = x; then
17118 if test ! -f "$as_myself"; then
17119 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17123 # Unset variables that we do not need and which cause bugs (e.g. in
17124 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17125 # suppresses any "Segmentation fault" message there. '((' could
17126 # trigger a bug in pdksh 5.2.14.
17127 for as_var in BASH_ENV ENV MAIL MAILPATH
17128 do eval test x\${$as_var+set} = xset \
17129 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17142 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17145 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17146 # ----------------------------------------
17147 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17148 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17149 # script with STATUS, using 1 if that was 0.
17152 as_status=$1; test $as_status -eq 0 && as_status=1
17154 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17155 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17157 $as_echo "$as_me: error: $2" >&2
17158 as_fn_exit $as_status
17162 # as_fn_set_status STATUS
17163 # -----------------------
17164 # Set $? to STATUS, without forking.
17165 as_fn_set_status ()
17168 } # as_fn_set_status
17170 # as_fn_exit STATUS
17171 # -----------------
17172 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17176 as_fn_set_status $1
17182 # Portably unset VAR.
17185 { eval $1=; unset $1;}
17187 as_unset=as_fn_unset
17188 # as_fn_append VAR VALUE
17189 # ----------------------
17190 # Append the text in VALUE to the end of the definition contained in VAR. Take
17191 # advantage of any shell optimizations that allow amortized linear growth over
17192 # repeated appends, instead of the typical quadratic growth present in naive
17194 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17195 eval 'as_fn_append ()
17206 # as_fn_arith ARG...
17207 # ------------------
17208 # Perform arithmetic evaluation on the ARGs, and store the result in the
17209 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17210 # must be portable across $(()) and expr.
17211 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17212 eval 'as_fn_arith ()
17219 as_val=`expr "$@" || test $? -eq 1`
17224 if expr a : '\(a\)' >/dev/null 2>&1 &&
17225 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17231 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17232 as_basename=basename
17237 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17243 as_me=`$as_basename -- "$0" ||
17244 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17245 X"$0" : 'X\(//\)$' \| \
17246 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17248 sed '/^.*\/\([^/][^/]*\)\/*$/{
17262 # Avoid depending upon Character Ranges.
17263 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17264 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17265 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17266 as_cr_digits='0123456789'
17267 as_cr_alnum=$as_cr_Letters$as_cr_digits
17269 ECHO_C= ECHO_N= ECHO_T=
17270 case `echo -n x` in #(((((
17272 case `echo 'xy\c'` in
17273 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17275 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17282 rm -f conf$$ conf$$.exe conf$$.file
17283 if test -d conf$$.dir; then
17284 rm -f conf$$.dir/conf$$.file
17287 mkdir conf$$.dir 2>/dev/null
17289 if (echo >conf$$.file) 2>/dev/null; then
17290 if ln -s conf$$.file conf$$ 2>/dev/null; then
17292 # ... but there are two gotchas:
17293 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17294 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17295 # In both cases, we have to default to `cp -pR'.
17296 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17298 elif ln conf$$.file conf$$ 2>/dev/null; then
17306 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17307 rmdir conf$$.dir 2>/dev/null
17312 # Create "$as_dir" as a directory, including parents if necessary.
17317 -*) as_dir=./$as_dir;;
17319 test -d "$as_dir" || eval $as_mkdir_p || {
17323 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17324 *) as_qdir=$as_dir;;
17326 as_dirs="'$as_qdir' $as_dirs"
17327 as_dir=`$as_dirname -- "$as_dir" ||
17328 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17329 X"$as_dir" : 'X\(//\)[^/]' \| \
17330 X"$as_dir" : 'X\(//\)$' \| \
17331 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17332 $as_echo X"$as_dir" |
17333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17337 /^X\(\/\/\)[^/].*/{
17350 test -d "$as_dir" && break
17352 test -z "$as_dirs" || eval "mkdir $as_dirs"
17353 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17357 if mkdir -p . 2>/dev/null; then
17358 as_mkdir_p='mkdir -p "$as_dir"'
17360 test -d ./-p && rmdir ./-p
17365 # as_fn_executable_p FILE
17366 # -----------------------
17367 # Test if FILE is an executable regular file.
17368 as_fn_executable_p ()
17370 test -f "$1" && test -x "$1"
17371 } # as_fn_executable_p
17372 as_test_x='test -x'
17373 as_executable_p=as_fn_executable_p
17375 # Sed expression to map a string onto a valid CPP name.
17376 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17378 # Sed expression to map a string onto a valid variable name.
17379 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17383 ## ----------------------------------- ##
17384 ## Main body of $CONFIG_STATUS script. ##
17385 ## ----------------------------------- ##
17387 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17389 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17390 # Save the log message, to keep $0 and so on meaningful, and to
17391 # report actual input values of CONFIG_FILES etc. instead of their
17392 # values after options handling.
17394 This file was extended by OpenFst $as_me 1.6.4, which was
17395 generated by GNU Autoconf 2.69. Invocation command line was
17397 CONFIG_FILES = $CONFIG_FILES
17398 CONFIG_HEADERS = $CONFIG_HEADERS
17399 CONFIG_LINKS = $CONFIG_LINKS
17400 CONFIG_COMMANDS = $CONFIG_COMMANDS
17403 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17408 case $ac_config_files in *"
17409 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17412 case $ac_config_headers in *"
17413 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17417 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17418 # Files that config.status was made for.
17419 config_files="$ac_config_files"
17420 config_headers="$ac_config_headers"
17421 config_commands="$ac_config_commands"
17425 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17427 \`$as_me' instantiates files and other configuration actions
17428 from templates according to the current configuration. Unless the files
17429 and actions are specified as TAGs, all are instantiated by default.
17431 Usage: $0 [OPTION]... [TAG]...
17433 -h, --help print this help, then exit
17434 -V, --version print version number and configuration settings, then exit
17435 --config print configuration, then exit
17436 -q, --quiet, --silent
17437 do not print progress messages
17438 -d, --debug don't remove temporary files
17439 --recheck update $as_me by reconfiguring in the same conditions
17440 --file=FILE[:TEMPLATE]
17441 instantiate the configuration file FILE
17442 --header=FILE[:TEMPLATE]
17443 instantiate the configuration header FILE
17445 Configuration files:
17448 Configuration headers:
17451 Configuration commands:
17454 Report bugs to <help@www.openfst.org>."
17457 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17458 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17460 OpenFst config.status 1.6.4
17461 configured by $0, generated by GNU Autoconf 2.69,
17462 with options \\"\$ac_cs_config\\"
17464 Copyright (C) 2012 Free Software Foundation, Inc.
17465 This config.status script is free software; the Free Software Foundation
17466 gives unlimited permission to copy, distribute and modify it."
17473 test -n "\$AWK" || AWK=awk
17476 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17477 # The default lists apply if the user does not specify any file.
17483 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17484 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17488 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17500 # Handling of the options.
17501 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17503 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17504 $as_echo "$ac_cs_version"; exit ;;
17505 --config | --confi | --conf | --con | --co | --c )
17506 $as_echo "$ac_cs_config"; exit ;;
17507 --debug | --debu | --deb | --de | --d | -d )
17509 --file | --fil | --fi | --f )
17512 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17513 '') as_fn_error $? "missing file argument" ;;
17515 as_fn_append CONFIG_FILES " '$ac_optarg'"
17516 ac_need_defaults=false;;
17517 --header | --heade | --head | --hea )
17520 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17522 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17523 ac_need_defaults=false;;
17525 # Conflict between --help and --header
17526 as_fn_error $? "ambiguous option: \`$1'
17527 Try \`$0 --help' for more information.";;
17528 --help | --hel | -h )
17529 $as_echo "$ac_cs_usage"; exit ;;
17530 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17531 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17534 # This is an error.
17535 -*) as_fn_error $? "unrecognized option: \`$1'
17536 Try \`$0 --help' for more information." ;;
17538 *) as_fn_append ac_config_targets " $1"
17539 ac_need_defaults=false ;;
17545 ac_configure_extra_args=
17547 if $ac_cs_silent; then
17549 ac_configure_extra_args="$ac_configure_extra_args --silent"
17553 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17554 if \$ac_cs_recheck; then
17555 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17557 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17558 CONFIG_SHELL='$SHELL'
17559 export CONFIG_SHELL
17564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17568 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17569 ## Running $as_me. ##
17575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17579 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17582 # The HP-UX ksh and POSIX shell print the target directory to stdout
17583 # if CDPATH is set.
17584 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17586 sed_quote_subst='$sed_quote_subst'
17587 double_quote_subst='$double_quote_subst'
17588 delay_variable_subst='$delay_variable_subst'
17589 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17590 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17591 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17592 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17593 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17594 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17595 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17596 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17597 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17598 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17599 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17600 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17601 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17602 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17603 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17604 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17605 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17606 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17607 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17608 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17609 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17610 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17611 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17612 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17613 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17614 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17615 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17616 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17617 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17618 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17619 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17620 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17621 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17622 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17623 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17624 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17625 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17626 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17627 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17628 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17629 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17630 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17631 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17632 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17633 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17634 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17635 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17636 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17637 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17638 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17639 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17640 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17641 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17642 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17643 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17644 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17645 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17646 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17647 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"`'
17648 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17649 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17650 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17651 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17652 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17653 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17654 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17655 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17656 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17657 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17658 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17659 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17660 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17661 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17662 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17663 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17664 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17665 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17666 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17667 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17668 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17669 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17670 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17671 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17672 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17673 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17674 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17675 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17676 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17677 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17678 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17679 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17680 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17681 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17682 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17683 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17684 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17685 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17686 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17687 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17688 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17689 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17690 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17691 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17692 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17693 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17694 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17695 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17696 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17697 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17698 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17699 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17700 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17701 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17702 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17703 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17704 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17705 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17706 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17707 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17708 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17709 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17710 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17711 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17712 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17713 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17714 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17715 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17716 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17717 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17718 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17719 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17720 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17721 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17722 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17723 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17724 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17725 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17726 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17727 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17728 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17729 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17730 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17731 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17732 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17733 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17734 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17735 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17736 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17737 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17738 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17739 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17740 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17741 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17742 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17743 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17744 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17745 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17746 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17747 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17748 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17749 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17750 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17751 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17752 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17753 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17754 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17755 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17756 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17757 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17758 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17759 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17760 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17761 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17762 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17763 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17764 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17765 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17766 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17767 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17768 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17769 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17770 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17771 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17772 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17773 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17774 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17775 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17776 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17777 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17780 LTCFLAGS='$LTCFLAGS'
17781 compiler='$compiler_DEFAULT'
17783 # A function that is used when there is no print builtin or printf.
17784 func_fallback_echo ()
17786 eval 'cat <<_LTECHO_EOF
17791 # Quote evaled strings.
17806 deplibs_check_method \
17811 sharedlib_from_linklib_cmd \
17814 archiver_list_spec \
17820 lt_cv_sys_global_symbol_pipe \
17821 lt_cv_sys_global_symbol_to_cdecl \
17822 lt_cv_sys_global_symbol_to_import \
17823 lt_cv_sys_global_symbol_to_c_name_address \
17824 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17825 lt_cv_nm_interface \
17826 nm_file_list_spec \
17827 lt_cv_truncate_bin \
17828 lt_prog_compiler_no_builtin_flag \
17829 lt_prog_compiler_pic \
17830 lt_prog_compiler_wl \
17831 lt_prog_compiler_static \
17832 lt_cv_prog_compiler_c_o \
17841 export_dynamic_flag_spec \
17842 whole_archive_flag_spec \
17843 compiler_needs_object \
17845 allow_undefined_flag \
17846 no_undefined_flag \
17847 hardcode_libdir_flag_spec \
17848 hardcode_libdir_separator \
17852 variables_saved_for_relink \
17854 library_names_spec \
17856 install_override_mode \
17860 compiler_lib_search_dirs \
17865 compiler_lib_search_path \
17869 lt_prog_compiler_no_builtin_flag_CXX \
17870 lt_prog_compiler_pic_CXX \
17871 lt_prog_compiler_wl_CXX \
17872 lt_prog_compiler_static_CXX \
17873 lt_cv_prog_compiler_c_o_CXX \
17874 export_dynamic_flag_spec_CXX \
17875 whole_archive_flag_spec_CXX \
17876 compiler_needs_object_CXX \
17878 allow_undefined_flag_CXX \
17879 no_undefined_flag_CXX \
17880 hardcode_libdir_flag_spec_CXX \
17881 hardcode_libdir_separator_CXX \
17882 exclude_expsyms_CXX \
17883 include_expsyms_CXX \
17884 file_list_spec_CXX \
17885 compiler_lib_search_dirs_CXX \
17886 predep_objects_CXX \
17887 postdep_objects_CXX \
17890 compiler_lib_search_path_CXX; do
17891 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17892 *[\\\\\\\`\\"\\\$]*)
17893 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17896 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17901 # Double-quote double-evaled strings.
17902 for var in reload_cmds \
17903 old_postinstall_cmds \
17904 old_postuninstall_cmds \
17906 extract_expsyms_cmds \
17907 old_archive_from_new_cmds \
17908 old_archive_from_expsyms_cmds \
17910 archive_expsym_cmds \
17912 module_expsym_cmds \
17913 export_symbols_cmds \
17917 postuninstall_cmds \
17919 sys_lib_search_path_spec \
17920 configure_time_dlsearch_path \
17921 configure_time_lt_sys_library_path \
17923 old_archive_cmds_CXX \
17924 old_archive_from_new_cmds_CXX \
17925 old_archive_from_expsyms_cmds_CXX \
17927 archive_expsym_cmds_CXX \
17929 module_expsym_cmds_CXX \
17930 export_symbols_cmds_CXX \
17932 postlink_cmds_CXX; do
17933 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17934 *[\\\\\\\`\\"\\\$]*)
17935 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17938 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17943 ac_aux_dir='$ac_aux_dir'
17945 # See if we are running on zsh, and set the options that allow our
17946 # commands through without removal of \ escapes INIT.
17947 if test -n "\${ZSH_VERSION+set}"; then
17948 setopt NO_GLOB_SUBST
17964 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17966 # Handling of arguments.
17967 for ac_config_target in $ac_config_targets
17969 case $ac_config_target in
17970 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17971 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17972 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17973 "src/include/fst/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/fst/config.h" ;;
17974 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17975 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17976 "src/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
17977 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
17978 "src/bin/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/Makefile" ;;
17979 "src/test/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
17980 "src/extensions/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/Makefile" ;;
17981 "src/extensions/compact/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/compact/Makefile" ;;
17982 "src/extensions/compress/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/compress/Makefile" ;;
17983 "src/extensions/const/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/const/Makefile" ;;
17984 "src/extensions/far/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/far/Makefile" ;;
17985 "src/extensions/linear/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/linear/Makefile" ;;
17986 "src/extensions/lookahead/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/lookahead/Makefile" ;;
17987 "src/extensions/mpdt/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/mpdt/Makefile" ;;
17988 "src/extensions/ngram/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/ngram/Makefile" ;;
17989 "src/extensions/pdt/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/pdt/Makefile" ;;
17990 "src/extensions/python/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/python/Makefile" ;;
17991 "src/extensions/special/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/special/Makefile" ;;
17992 "src/script/Makefile") CONFIG_FILES="$CONFIG_FILES src/script/Makefile" ;;
17994 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17999 # If the user did not use the arguments to specify the items to instantiate,
18000 # then the envvar interface is used. Set only those that are not.
18001 # We use the long form for the default assignment because of an extremely
18002 # bizarre bug on SunOS 4.1.3.
18003 if $ac_need_defaults; then
18004 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18005 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18006 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18009 # Have a temporary directory for convenience. Make it in the build tree
18010 # simply because there is no reason against having it here, and in addition,
18011 # creating and moving files from /tmp can sometimes cause problems.
18012 # Hook for its removal unless debugging.
18013 # Note that there is a small window in which the directory will not be cleaned:
18014 # after its creation but before its name has been assigned to `$tmp'.
18018 trap 'exit_status=$?
18019 : "${ac_tmp:=$tmp}"
18020 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18022 trap 'as_fn_exit 1' 1 2 13 15
18024 # Create a (secure) tmp directory for tmp files.
18027 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18031 tmp=./conf$$-$RANDOM
18032 (umask 077 && mkdir "$tmp")
18033 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18036 # Set up the scripts for CONFIG_FILES section.
18037 # No need to generate them if there are no CONFIG_FILES.
18038 # This happens for instance with `./config.status config.h'.
18039 if test -n "$CONFIG_FILES"; then
18042 ac_cr=`echo X | tr X '\015'`
18043 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18044 # But we know of no other shell where ac_cr would be empty at this
18045 # point, so we can use a bashism as a fallback.
18046 if test "x$ac_cr" = x; then
18047 eval ac_cr=\$\'\\r\'
18049 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18050 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18053 ac_cs_awk_cr=$ac_cr
18056 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18061 echo "cat >conf$$subs.awk <<_ACEOF" &&
18062 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18064 } >conf$$subs.sh ||
18065 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18066 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18068 for ac_last_try in false false false false false :; do
18069 . ./conf$$subs.sh ||
18070 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18072 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18073 if test $ac_delim_n = $ac_delim_num; then
18075 elif $ac_last_try; then
18076 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18078 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18081 rm -f conf$$subs.sh
18083 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18084 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18088 s/^/S["/; s/!.*/"]=/
18098 s/\(.\{148\}\)..*/\1/
18100 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18105 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18112 s/\(.\{148\}\)..*/\1/
18114 s/["\\]/\\&/g; s/^/"/; s/$/"/
18118 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18123 ' <conf$$subs.awk | sed '
18128 ' >>$CONFIG_STATUS || ac_write_fail=1
18129 rm -f conf$$subs.awk
18130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18132 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18133 for (key in S) S_is_set[key] = 1
18139 nfields = split(line, field, "@")
18141 len = length(field[1])
18142 for (i = 2; i < nfields; i++) {
18144 keylen = length(key)
18145 if (S_is_set[key]) {
18147 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18148 len += length(value) + length(field[++i])
18159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18160 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18161 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18164 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18165 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18168 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18169 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18170 # trailing colons and then remove the whole line if VPATH becomes empty
18171 # (actually we leave an empty line to preserve line numbers).
18172 if test "x$srcdir" = x.; then
18173 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18191 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18192 fi # test -n "$CONFIG_FILES"
18194 # Set up the scripts for CONFIG_HEADERS section.
18195 # No need to generate them if there are no CONFIG_HEADERS.
18196 # This happens for instance with `./config.status Makefile'.
18197 if test -n "$CONFIG_HEADERS"; then
18198 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18202 # Transform confdefs.h into an awk script `defines.awk', embedded as
18203 # here-document in config.status, that substitutes the proper values into
18204 # config.h.in to produce config.h.
18206 # Create a delimiter string that does not exist in confdefs.h, to ease
18207 # handling of long lines.
18209 for ac_last_try in false false :; do
18210 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18211 if test -z "$ac_tt"; then
18213 elif $ac_last_try; then
18214 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18216 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18220 # For the awk script, D is an array of macro values keyed by name,
18221 # likewise P contains macro parameters if any. Preserve backslash
18222 # newline sequences.
18224 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18226 s/.\{148\}/&'"$ac_delim"'/g
18229 s/^[ ]*#[ ]*define[ ][ ]*/ /
18236 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18238 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18242 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18243 D["\1"]=" \3\\\\\\n"\\/p
18245 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18250 s/.\{148\}/&'"$ac_delim"'/g
18255 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18258 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18260 ' <confdefs.h | sed '
18261 s/'"$ac_delim"'/"\\\
18262 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18264 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18265 for (key in D) D_is_set[key] = 1
18268 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18270 split(line, arg, " ")
18271 if (arg[1] == "#") {
18275 defundef = substr(arg[1], 2)
18278 split(mac1, mac2, "(") #)
18280 prefix = substr(line, 1, index(line, defundef) - 1)
18281 if (D_is_set[macro]) {
18282 # Preserve the white space surrounding the "#".
18283 print prefix "define", macro P[macro] D[macro]
18286 # Replace #undef with comments. This is necessary, for example,
18287 # in the case of _POSIX_SOURCE, which is predefined and required
18288 # on some systems where configure will not decide to define it.
18289 if (defundef == "undef") {
18290 print "/*", prefix defundef, macro, "*/"
18298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18299 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18300 fi # test -n "$CONFIG_HEADERS"
18303 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18308 :[FHLC]) ac_mode=$ac_tag; continue;;
18310 case $ac_mode$ac_tag in
18312 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18313 :[FH]-) ac_tag=-:-;;
18314 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18331 -) ac_f="$ac_tmp/stdin";;
18332 *) # Look for the file first in the build tree, then in the source tree
18333 # (if the path is not absolute). The absolute path cannot be DOS-style,
18334 # because $ac_f cannot contain `:'.
18338 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18340 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18342 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18343 as_fn_append ac_file_inputs " '$ac_f'"
18346 # Let's still pretend it is `configure' which instantiates (i.e., don't
18347 # use $as_me), people would be surprised to read:
18348 # /* config.h. Generated by config.status. */
18349 configure_input='Generated from '`
18350 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18352 if test x"$ac_file" != x-; then
18353 configure_input="$ac_file. $configure_input"
18354 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18355 $as_echo "$as_me: creating $ac_file" >&6;}
18357 # Neutralize special characters interpreted by sed in replacement strings.
18358 case $configure_input in #(
18359 *\&* | *\|* | *\\* )
18360 ac_sed_conf_input=`$as_echo "$configure_input" |
18361 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18362 *) ac_sed_conf_input=$configure_input;;
18366 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18367 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18372 ac_dir=`$as_dirname -- "$ac_file" ||
18373 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18374 X"$ac_file" : 'X\(//\)[^/]' \| \
18375 X"$ac_file" : 'X\(//\)$' \| \
18376 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18377 $as_echo X"$ac_file" |
18378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18382 /^X\(\/\/\)[^/].*/{
18395 as_dir="$ac_dir"; as_fn_mkdir_p
18399 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18401 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18402 # A ".." for each directory in $ac_dir_suffix.
18403 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18404 case $ac_top_builddir_sub in
18405 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18406 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18409 ac_abs_top_builddir=$ac_pwd
18410 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18411 # for backward compatibility:
18412 ac_top_builddir=$ac_top_build_prefix
18415 .) # We are building in place.
18417 ac_top_srcdir=$ac_top_builddir_sub
18418 ac_abs_top_srcdir=$ac_pwd ;;
18419 [\\/]* | ?:[\\/]* ) # Absolute name.
18420 ac_srcdir=$srcdir$ac_dir_suffix;
18421 ac_top_srcdir=$srcdir
18422 ac_abs_top_srcdir=$srcdir ;;
18423 *) # Relative name.
18424 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18425 ac_top_srcdir=$ac_top_build_prefix$srcdir
18426 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18428 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18438 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18439 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18441 ac_MKDIR_P=$MKDIR_P
18443 [\\/$]* | ?:[\\/]* ) ;;
18444 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18448 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18449 # If the template does not know about datarootdir, expand it.
18450 # FIXME: This hack should be removed a few years after 2.60.
18451 ac_datarootdir_hack=; ac_datarootdir_seen=
18462 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18463 *datarootdir*) ac_datarootdir_seen=yes;;
18464 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18466 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18468 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18469 ac_datarootdir_hack='
18470 s&@datadir@&$datadir&g
18471 s&@docdir@&$docdir&g
18472 s&@infodir@&$infodir&g
18473 s&@localedir@&$localedir&g
18474 s&@mandir@&$mandir&g
18475 s&\\\${datarootdir}&$datarootdir&g' ;;
18479 # Neutralize VPATH when `$srcdir' = `.'.
18480 # Shell code in configure.ac might set extrasub.
18481 # FIXME: do we really want to maintain this feature?
18482 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18483 ac_sed_extra="$ac_vpsub
18486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18488 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18489 s|@configure_input@|$ac_sed_conf_input|;t t
18490 s&@top_builddir@&$ac_top_builddir_sub&;t t
18491 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18492 s&@srcdir@&$ac_srcdir&;t t
18493 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18494 s&@top_srcdir@&$ac_top_srcdir&;t t
18495 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18496 s&@builddir@&$ac_builddir&;t t
18497 s&@abs_builddir@&$ac_abs_builddir&;t t
18498 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18499 s&@INSTALL@&$ac_INSTALL&;t t
18500 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18501 $ac_datarootdir_hack
18503 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18504 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18506 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18507 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18508 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18509 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18511 which seems to be undefined. Please make sure it is defined" >&5
18512 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18513 which seems to be undefined. Please make sure it is defined" >&2;}
18515 rm -f "$ac_tmp/stdin"
18517 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18518 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18520 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18526 if test x"$ac_file" != x-; then
18528 $as_echo "/* $configure_input */" \
18529 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18530 } >"$ac_tmp/config.h" \
18531 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18532 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18533 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18534 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18537 mv "$ac_tmp/config.h" "$ac_file" \
18538 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18541 $as_echo "/* $configure_input */" \
18542 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18543 || as_fn_error $? "could not create -" "$LINENO" 5
18545 # Compute "$ac_file"'s index in $config_headers.
18548 for _am_header in $config_headers :; do
18549 case $_am_header in
18550 $_am_arg | $_am_arg:* )
18553 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18556 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18557 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18558 X"$_am_arg" : 'X\(//\)[^/]' \| \
18559 X"$_am_arg" : 'X\(//\)$' \| \
18560 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18561 $as_echo X"$_am_arg" |
18562 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18566 /^X\(\/\/\)[^/].*/{
18578 s/.*/./; q'`/stamp-h$_am_stamp_count
18581 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18582 $as_echo "$as_me: executing $ac_file commands" >&6;}
18587 case $ac_file$ac_mode in
18588 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18589 # Older Autoconf quotes --file arguments for eval, but not when files
18590 # are listed without --file. Let's play safe and only enable the eval
18591 # if we detect the quoting.
18592 case $CONFIG_FILES in
18593 *\'*) eval set x "$CONFIG_FILES" ;;
18594 *) set x $CONFIG_FILES ;;
18599 # Strip MF so we end up with the name of the file.
18600 mf=`echo "$mf" | sed -e 's/:.*$//'`
18601 # Check whether this is an Automake generated Makefile or not.
18602 # We used to match only the files named 'Makefile.in', but
18603 # some people rename them; so instead we look at the file content.
18604 # Grep'ing the first line is not enough: some people post-process
18605 # each Makefile.in and add a new line on top of each file to say so.
18606 # Grep'ing the whole file is not good either: AIX grep has a line
18607 # limit of 2048, but all sed's we know have understand at least 4000.
18608 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18609 dirpart=`$as_dirname -- "$mf" ||
18610 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18611 X"$mf" : 'X\(//\)[^/]' \| \
18612 X"$mf" : 'X\(//\)$' \| \
18613 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18615 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18619 /^X\(\/\/\)[^/].*/{
18635 # Extract the definition of DEPDIR, am__include, and am__quote
18636 # from the Makefile without running 'make'.
18637 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18638 test -z "$DEPDIR" && continue
18639 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18640 test -z "$am__include" && continue
18641 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18642 # Find all dependency output files, they are included files with
18643 # $(DEPDIR) in their names. We invoke sed twice because it is the
18644 # simplest approach to changing $(DEPDIR) to its actual value in the
18646 for file in `sed -n "
18647 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18648 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18649 # Make sure the directory exists.
18650 test -f "$dirpart/$file" && continue
18651 fdir=`$as_dirname -- "$file" ||
18652 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18653 X"$file" : 'X\(//\)[^/]' \| \
18654 X"$file" : 'X\(//\)$' \| \
18655 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18656 $as_echo X"$file" |
18657 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18661 /^X\(\/\/\)[^/].*/{
18674 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18675 # echo "creating $dirpart/$file"
18676 echo '# dummy' > "$dirpart/$file"
18683 # See if we are running on zsh, and set the options that allow our
18684 # commands through without removal of \ escapes.
18685 if test -n "${ZSH_VERSION+set}"; then
18686 setopt NO_GLOB_SUBST
18690 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18693 cat <<_LT_EOF >> "$cfgfile"
18695 # Generated automatically by $as_me ($PACKAGE) $VERSION
18696 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18698 # Provide generalized library-building support services.
18699 # Written by Gordon Matzigkeit, 1996
18701 # Copyright (C) 2014 Free Software Foundation, Inc.
18702 # This is free software; see the source for copying conditions. There is NO
18703 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18705 # GNU Libtool is free software; you can redistribute it and/or modify
18706 # it under the terms of the GNU General Public License as published by
18707 # the Free Software Foundation; either version 2 of of the License, or
18708 # (at your option) any later version.
18710 # As a special exception to the GNU General Public License, if you
18711 # distribute this file as part of a program or library that is built
18712 # using GNU Libtool, you may include this file under the same
18713 # distribution terms that you use for the rest of that program.
18715 # GNU Libtool is distributed in the hope that it will be useful, but
18716 # WITHOUT ANY WARRANTY; without even the implied warranty of
18717 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18718 # GNU General Public License for more details.
18720 # You should have received a copy of the GNU General Public License
18721 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18724 # The names of the tagged configurations supported by this script.
18725 available_tags='CXX '
18727 # Configured defaults for sys_lib_dlsearch_path munging.
18728 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18730 # ### BEGIN LIBTOOL CONFIG
18732 # Whether or not to build static libraries.
18733 build_old_libs=$enable_static
18735 # Which release of libtool.m4 was used?
18736 macro_version=$macro_version
18737 macro_revision=$macro_revision
18739 # Whether or not to build shared libraries.
18740 build_libtool_libs=$enable_shared
18742 # What type of objects to build.
18745 # Whether or not to optimize for fast installation.
18746 fast_install=$enable_fast_install
18748 # Shared archive member basename,for filename based shared library versioning on AIX.
18749 shared_archive_member_spec=$shared_archive_member_spec
18751 # Shell to use when invoking shell scripts.
18754 # An echo program that protects backslashes.
18757 # The PATH separator for the build system.
18758 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18761 host_alias=$host_alias
18765 # The build system.
18766 build_alias=$build_alias
18770 # A sed program that does not truncate output.
18773 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18774 Xsed="\$SED -e 1s/^X//"
18776 # A grep program that handles long lines.
18782 # A literal string matcher.
18785 # A BSD- or MS-compatible name lister.
18788 # Whether we need soft or hard links.
18791 # What is the maximum length of a command?
18792 max_cmd_len=$max_cmd_len
18794 # Object file suffix (normally "o").
18797 # Executable file suffix (normally "").
18800 # whether the shell understands "unset".
18803 # turn spaces into newlines.
18806 # turn newlines into spaces.
18809 # convert \$build file names to \$host format.
18810 to_host_file_cmd=$lt_cv_to_host_file_cmd
18812 # convert \$build files to toolchain format.
18813 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18815 # An object symbol dumper.
18816 OBJDUMP=$lt_OBJDUMP
18818 # Method to check whether dependent libraries are shared objects.
18819 deplibs_check_method=$lt_deplibs_check_method
18821 # Command to use when deplibs_check_method = "file_magic".
18822 file_magic_cmd=$lt_file_magic_cmd
18824 # How to find potential files when deplibs_check_method = "file_magic".
18825 file_magic_glob=$lt_file_magic_glob
18827 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18828 want_nocaseglob=$lt_want_nocaseglob
18830 # DLL creation program.
18831 DLLTOOL=$lt_DLLTOOL
18833 # Command to associate shared and link libraries.
18834 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18839 # Flags to create an archive.
18840 AR_FLAGS=$lt_AR_FLAGS
18842 # How to feed a file listing to the archiver.
18843 archiver_list_spec=$lt_archiver_list_spec
18845 # A symbol stripping program.
18848 # Commands used to install an old-style archive.
18850 old_postinstall_cmds=$lt_old_postinstall_cmds
18851 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18853 # Whether to use a lock for old archive extraction.
18854 lock_old_archive_extraction=$lock_old_archive_extraction
18859 # LTCC compiler flags.
18860 LTCFLAGS=$lt_CFLAGS
18862 # Take the output of nm and produce a listing of raw symbols and C names.
18863 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18865 # Transform the output of nm in a proper C declaration.
18866 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18868 # Transform the output of nm into a list of symbols to manually relocate.
18869 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18871 # Transform the output of nm in a C name address pair.
18872 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18874 # Transform the output of nm in a C name address pair when lib prefix is needed.
18875 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18877 # The name lister interface.
18878 nm_interface=$lt_lt_cv_nm_interface
18880 # Specify filename containing input files for \$NM.
18881 nm_file_list_spec=$lt_nm_file_list_spec
18883 # The root where to search for dependent libraries,and where our libraries should be installed.
18884 lt_sysroot=$lt_sysroot
18886 # Command to truncate a binary pipe.
18887 lt_truncate_bin=$lt_lt_cv_truncate_bin
18889 # The name of the directory that contains temporary libtool files.
18892 # Used to examine libraries when file_magic_cmd begins with "file".
18893 MAGIC_CMD=$MAGIC_CMD
18895 # Must we lock files when doing compilation?
18896 need_locks=$lt_need_locks
18899 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18901 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18902 DSYMUTIL=$lt_DSYMUTIL
18904 # Tool to change global to local symbols on Mac OS X.
18907 # Tool to manipulate fat objects and archives on Mac OS X.
18910 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18913 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18914 OTOOL64=$lt_OTOOL64
18916 # Old archive suffix (normally "a").
18919 # Shared library suffix (normally ".so").
18920 shrext_cmds=$lt_shrext_cmds
18922 # The commands to extract the exported symbol list from a shared archive.
18923 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18925 # Variables whose values should be saved in libtool wrapper scripts and
18926 # restored at link time.
18927 variables_saved_for_relink=$lt_variables_saved_for_relink
18929 # Do we need the "lib" prefix for modules?
18930 need_lib_prefix=$need_lib_prefix
18932 # Do we need a version for libraries?
18933 need_version=$need_version
18935 # Library versioning type.
18936 version_type=$version_type
18938 # Shared library runtime path variable.
18939 runpath_var=$runpath_var
18941 # Shared library path variable.
18942 shlibpath_var=$shlibpath_var
18944 # Is shlibpath searched before the hard-coded library search path?
18945 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18947 # Format of library name prefix.
18948 libname_spec=$lt_libname_spec
18950 # List of archive names. First name is the real one, the rest are links.
18951 # The last name is the one that the linker finds with -lNAME
18952 library_names_spec=$lt_library_names_spec
18954 # The coded name of the library, if different from the real name.
18955 soname_spec=$lt_soname_spec
18957 # Permission mode override for installation of shared libraries.
18958 install_override_mode=$lt_install_override_mode
18960 # Command to use after installation of a shared archive.
18961 postinstall_cmds=$lt_postinstall_cmds
18963 # Command to use after uninstallation of a shared archive.
18964 postuninstall_cmds=$lt_postuninstall_cmds
18966 # Commands used to finish a libtool library installation in a directory.
18967 finish_cmds=$lt_finish_cmds
18969 # As "finish_cmds", except a single script fragment to be evaled but
18971 finish_eval=$lt_finish_eval
18973 # Whether we should hardcode library paths into libraries.
18974 hardcode_into_libs=$hardcode_into_libs
18976 # Compile-time system search path for libraries.
18977 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18979 # Detected run-time system search path for libraries.
18980 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18982 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18983 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18985 # Whether dlopen is supported.
18986 dlopen_support=$enable_dlopen
18988 # Whether dlopen of programs is supported.
18989 dlopen_self=$enable_dlopen_self
18991 # Whether dlopen of statically linked programs is supported.
18992 dlopen_self_static=$enable_dlopen_self_static
18994 # Commands to strip libraries.
18995 old_striplib=$lt_old_striplib
18996 striplib=$lt_striplib
18999 # The linker used to build libraries.
19002 # How to create reloadable object files.
19003 reload_flag=$lt_reload_flag
19004 reload_cmds=$lt_reload_cmds
19006 # Commands used to build an old-style archive.
19007 old_archive_cmds=$lt_old_archive_cmds
19009 # A language specific compiler.
19012 # Is the compiler the GNU compiler?
19015 # Compiler flag to turn off builtin functions.
19016 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19018 # Additional compiler flags for building library objects.
19019 pic_flag=$lt_lt_prog_compiler_pic
19021 # How to pass a linker flag through the compiler.
19022 wl=$lt_lt_prog_compiler_wl
19024 # Compiler flag to prevent dynamic linking.
19025 link_static_flag=$lt_lt_prog_compiler_static
19027 # Does compiler simultaneously support -c and -o options?
19028 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19030 # Whether or not to add -lc for building shared libraries.
19031 build_libtool_need_lc=$archive_cmds_need_lc
19033 # Whether or not to disallow shared libs when runtime libs are static.
19034 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19036 # Compiler flag to allow reflexive dlopens.
19037 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19039 # Compiler flag to generate shared objects directly from archives.
19040 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19042 # Whether the compiler copes with passing no objects directly.
19043 compiler_needs_object=$lt_compiler_needs_object
19045 # Create an old-style archive from a shared archive.
19046 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19048 # Create a temporary old-style archive to link instead of a shared archive.
19049 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19051 # Commands used to build a shared archive.
19052 archive_cmds=$lt_archive_cmds
19053 archive_expsym_cmds=$lt_archive_expsym_cmds
19055 # Commands used to build a loadable module if different from building
19056 # a shared archive.
19057 module_cmds=$lt_module_cmds
19058 module_expsym_cmds=$lt_module_expsym_cmds
19060 # Whether we are building with GNU ld or not.
19061 with_gnu_ld=$lt_with_gnu_ld
19063 # Flag that allows shared libraries with undefined symbols to be built.
19064 allow_undefined_flag=$lt_allow_undefined_flag
19066 # Flag that enforces no undefined symbols.
19067 no_undefined_flag=$lt_no_undefined_flag
19069 # Flag to hardcode \$libdir into a binary during linking.
19070 # This must work even if \$libdir does not exist
19071 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19073 # Whether we need a single "-rpath" flag with a separated argument.
19074 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19076 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19077 # DIR into the resulting binary.
19078 hardcode_direct=$hardcode_direct
19080 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19081 # DIR into the resulting binary and the resulting library dependency is
19082 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19083 # library is relocated.
19084 hardcode_direct_absolute=$hardcode_direct_absolute
19086 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19087 # into the resulting binary.
19088 hardcode_minus_L=$hardcode_minus_L
19090 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19091 # into the resulting binary.
19092 hardcode_shlibpath_var=$hardcode_shlibpath_var
19094 # Set to "yes" if building a shared library automatically hardcodes DIR
19095 # into the library and all subsequent libraries and executables linked
19097 hardcode_automatic=$hardcode_automatic
19099 # Set to yes if linker adds runtime paths of dependent libraries
19100 # to runtime path list.
19101 inherit_rpath=$inherit_rpath
19103 # Whether libtool must link a program against all its dependency libraries.
19104 link_all_deplibs=$link_all_deplibs
19106 # Set to "yes" if exported symbols are required.
19107 always_export_symbols=$always_export_symbols
19109 # The commands to list exported symbols.
19110 export_symbols_cmds=$lt_export_symbols_cmds
19112 # Symbols that should not be listed in the preloaded symbols.
19113 exclude_expsyms=$lt_exclude_expsyms
19115 # Symbols that must always be exported.
19116 include_expsyms=$lt_include_expsyms
19118 # Commands necessary for linking programs (against libraries) with templates.
19119 prelink_cmds=$lt_prelink_cmds
19121 # Commands necessary for finishing linking programs.
19122 postlink_cmds=$lt_postlink_cmds
19124 # Specify filename containing input files.
19125 file_list_spec=$lt_file_list_spec
19127 # How to hardcode a shared library path into an executable.
19128 hardcode_action=$hardcode_action
19130 # The directories searched by this compiler when creating a shared library.
19131 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19133 # Dependencies to place before and after the objects being linked to
19134 # create a shared library.
19135 predep_objects=$lt_predep_objects
19136 postdep_objects=$lt_postdep_objects
19137 predeps=$lt_predeps
19138 postdeps=$lt_postdeps
19140 # The library search path used internally by the compiler when linking
19141 # a shared library.
19142 compiler_lib_search_path=$lt_compiler_lib_search_path
19144 # ### END LIBTOOL CONFIG
19148 cat <<'_LT_EOF' >> "$cfgfile"
19150 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19152 # func_munge_path_list VARIABLE PATH
19153 # -----------------------------------
19154 # VARIABLE is name of variable containing _space_ separated list of
19155 # directories to be munged by the contents of PATH, which is string
19158 # string "DIR[ DIR]" will be prepended to VARIABLE
19160 # string "DIR[ DIR]" will be appended to VARIABLE
19161 # "DIRP[:DIRP]::[DIRA:]DIRA"
19162 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19163 # "DIRA[ DIRA]" will be appended to VARIABLE
19165 # VARIABLE will be replaced by "DIR[ DIR]"
19166 func_munge_path_list ()
19172 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19175 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19178 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19179 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19182 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19188 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
19189 func_cc_basename ()
19191 for cc_temp in $*""; do
19193 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19194 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19199 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19203 # ### END FUNCTIONS SHARED WITH CONFIGURE
19209 cat <<\_LT_EOF >> "$cfgfile"
19210 # AIX sometimes has problems with the GCC collect2 program. For some
19211 # reason, if we set the COLLECT_NAMES environment variable, the problems
19212 # vanish in a puff of smoke.
19213 if test set != "${COLLECT_NAMES+set}"; then
19215 export COLLECT_NAMES
19222 ltmain=$ac_aux_dir/ltmain.sh
19225 # We use sed instead of cat because bash on DJGPP gets confused if
19226 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19227 # text mode, it properly converts lines to CR/LF. This bash problem
19228 # is reportedly fixed, but why not run on old versions too?
19229 sed '$q' "$ltmain" >> "$cfgfile" \
19230 || (rm -f "$cfgfile"; exit 1)
19232 mv -f "$cfgfile" "$ofile" ||
19233 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19237 cat <<_LT_EOF >> "$ofile"
19239 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19241 # The linker used to build libraries.
19244 # How to create reloadable object files.
19245 reload_flag=$lt_reload_flag_CXX
19246 reload_cmds=$lt_reload_cmds_CXX
19248 # Commands used to build an old-style archive.
19249 old_archive_cmds=$lt_old_archive_cmds_CXX
19251 # A language specific compiler.
19252 CC=$lt_compiler_CXX
19254 # Is the compiler the GNU compiler?
19257 # Compiler flag to turn off builtin functions.
19258 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19260 # Additional compiler flags for building library objects.
19261 pic_flag=$lt_lt_prog_compiler_pic_CXX
19263 # How to pass a linker flag through the compiler.
19264 wl=$lt_lt_prog_compiler_wl_CXX
19266 # Compiler flag to prevent dynamic linking.
19267 link_static_flag=$lt_lt_prog_compiler_static_CXX
19269 # Does compiler simultaneously support -c and -o options?
19270 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19272 # Whether or not to add -lc for building shared libraries.
19273 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19275 # Whether or not to disallow shared libs when runtime libs are static.
19276 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19278 # Compiler flag to allow reflexive dlopens.
19279 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19281 # Compiler flag to generate shared objects directly from archives.
19282 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19284 # Whether the compiler copes with passing no objects directly.
19285 compiler_needs_object=$lt_compiler_needs_object_CXX
19287 # Create an old-style archive from a shared archive.
19288 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19290 # Create a temporary old-style archive to link instead of a shared archive.
19291 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19293 # Commands used to build a shared archive.
19294 archive_cmds=$lt_archive_cmds_CXX
19295 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19297 # Commands used to build a loadable module if different from building
19298 # a shared archive.
19299 module_cmds=$lt_module_cmds_CXX
19300 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19302 # Whether we are building with GNU ld or not.
19303 with_gnu_ld=$lt_with_gnu_ld_CXX
19305 # Flag that allows shared libraries with undefined symbols to be built.
19306 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19308 # Flag that enforces no undefined symbols.
19309 no_undefined_flag=$lt_no_undefined_flag_CXX
19311 # Flag to hardcode \$libdir into a binary during linking.
19312 # This must work even if \$libdir does not exist
19313 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19315 # Whether we need a single "-rpath" flag with a separated argument.
19316 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19318 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19319 # DIR into the resulting binary.
19320 hardcode_direct=$hardcode_direct_CXX
19322 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19323 # DIR into the resulting binary and the resulting library dependency is
19324 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19325 # library is relocated.
19326 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19328 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19329 # into the resulting binary.
19330 hardcode_minus_L=$hardcode_minus_L_CXX
19332 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19333 # into the resulting binary.
19334 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19336 # Set to "yes" if building a shared library automatically hardcodes DIR
19337 # into the library and all subsequent libraries and executables linked
19339 hardcode_automatic=$hardcode_automatic_CXX
19341 # Set to yes if linker adds runtime paths of dependent libraries
19342 # to runtime path list.
19343 inherit_rpath=$inherit_rpath_CXX
19345 # Whether libtool must link a program against all its dependency libraries.
19346 link_all_deplibs=$link_all_deplibs_CXX
19348 # Set to "yes" if exported symbols are required.
19349 always_export_symbols=$always_export_symbols_CXX
19351 # The commands to list exported symbols.
19352 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19354 # Symbols that should not be listed in the preloaded symbols.
19355 exclude_expsyms=$lt_exclude_expsyms_CXX
19357 # Symbols that must always be exported.
19358 include_expsyms=$lt_include_expsyms_CXX
19360 # Commands necessary for linking programs (against libraries) with templates.
19361 prelink_cmds=$lt_prelink_cmds_CXX
19363 # Commands necessary for finishing linking programs.
19364 postlink_cmds=$lt_postlink_cmds_CXX
19366 # Specify filename containing input files.
19367 file_list_spec=$lt_file_list_spec_CXX
19369 # How to hardcode a shared library path into an executable.
19370 hardcode_action=$hardcode_action_CXX
19372 # The directories searched by this compiler when creating a shared library.
19373 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19375 # Dependencies to place before and after the objects being linked to
19376 # create a shared library.
19377 predep_objects=$lt_predep_objects_CXX
19378 postdep_objects=$lt_postdep_objects_CXX
19379 predeps=$lt_predeps_CXX
19380 postdeps=$lt_postdeps_CXX
19382 # The library search path used internally by the compiler when linking
19383 # a shared library.
19384 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19386 # ### END LIBTOOL TAG CONFIG: CXX
19397 ac_clean_files=$ac_clean_files_save
19399 test $ac_write_fail = 0 ||
19400 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19403 # configure is writing to config.log, and then calls config.status.
19404 # config.status does its own redirection, appending to config.log.
19405 # Unfortunately, on DOS this fails, as config.log is still kept open
19406 # by configure, so config.status won't be able to write to it; its
19407 # output is simply discarded. So we exec the FD to /dev/null,
19408 # effectively closing config.log, so it can be properly (re)opened and
19409 # appended to by config.status. When coming back to configure, we
19410 # need to make the FD available again.
19411 if test "$no_create" != yes; then
19413 ac_config_status_args=
19414 test "$silent" = yes &&
19415 ac_config_status_args="$ac_config_status_args --quiet"
19417 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19419 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19420 # would make configure fail if this is the last instruction.
19421 $ac_cs_success || as_fn_exit 1
19423 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19425 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}