2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for package-unused version-unused.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
194 test -z "$as_dir" && as_dir=.
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
246 SHELL=${CONFIG_SHELL-/bin/sh}
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
257 # Portably unset VAR.
260 { eval $1=; unset $1;}
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
284 # Create "$as_dir" as a directory, including parents if necessary.
289 -*) as_dir=./$as_dir;;
291 test -d "$as_dir" || eval $as_mkdir_p || {
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
322 test -d "$as_dir" && break
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
360 as_val=`expr "$@" || test $? -eq 1`
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
372 as_status=$?; test $as_status -eq 0 && as_status=1
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
454 # Exit status is that of the last command.
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
487 elif ln conf$$.file conf$$ 2>/dev/null; then
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
501 test -d ./-p && rmdir ./-p
505 if test -x / >/dev/null 2>&1; then
508 if ls -dL / >/dev/null 2>&1; then
515 if test -d "$1"; then
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 ac_default_prefix=/usr/local
549 ac_config_libobj_dir=.
556 # Identity of this package.
557 PACKAGE_NAME='package-unused'
558 PACKAGE_TARNAME='libgo'
559 PACKAGE_VERSION='version-unused'
560 PACKAGE_STRING='package-unused version-unused'
564 ac_unique_file="Makefile.am"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
578 # ifdef HAVE_STDLIB_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
601 ac_subst_vars='am__EXEEXT_FALSE
608 HAVE_STRERROR_R_FALSE
610 HAVE_SYS_MMAN_H_FALSE
616 USING_SPLIT_STACK_FALSE
617 USING_SPLIT_STACK_TRUE
620 GO_DEBUG_PROC_REGS_OS_ARCH_FILE
621 GO_SYSCALLS_SYSCALL_OS_ARCH_FILE
623 LIBGO_IS_X86_64_FALSE
625 LIBGO_IS_SPARC64_FALSE
626 LIBGO_IS_SPARC64_TRUE
633 LIBGO_IS_MIPSO64_FALSE
634 LIBGO_IS_MIPSO64_TRUE
635 LIBGO_IS_MIPSN64_FALSE
636 LIBGO_IS_MIPSN64_TRUE
637 LIBGO_IS_MIPSN32_FALSE
638 LIBGO_IS_MIPSN32_TRUE
639 LIBGO_IS_MIPSO32_FALSE
640 LIBGO_IS_MIPSO32_TRUE
652 LIBGO_IS_SOLARIS_FALSE
653 LIBGO_IS_SOLARIS_TRUE
660 LIBGO_IS_FREEBSD_FALSE
661 LIBGO_IS_FREEBSD_TRUE
662 LIBGO_IS_DARWIN_FALSE
666 glibgo_toolexeclibdir
695 MAINTAINER_MODE_FALSE
723 INSTALL_STRIP_PROGRAM
779 program_transform_name
792 enable_option_checking
794 enable_dependency_tracking
795 enable_maintainer_mode
802 enable_version_specific_runtime_libs
804 with_system_libunwind
805 enable_sjlj_exceptions
807 ac_precious_vars='build_alias
814 # Initialize some variables set by options.
816 ac_init_version=false
817 ac_unrecognized_opts=
819 # The variables have the same names as the options, with
820 # dashes changed to underlines.
828 program_transform_name=s,x,x,
836 # Installation directory options.
837 # These are left unexpanded so users can "make install exec_prefix=/foo"
838 # and all the variables that are supposed to be based on exec_prefix
839 # by default will actually change.
840 # Use braces instead of parens because sh, perl, etc. also accept them.
841 # (The list follows the same order as the GNU Coding Standards.)
842 bindir='${exec_prefix}/bin'
843 sbindir='${exec_prefix}/sbin'
844 libexecdir='${exec_prefix}/libexec'
845 datarootdir='${prefix}/share'
846 datadir='${datarootdir}'
847 sysconfdir='${prefix}/etc'
848 sharedstatedir='${prefix}/com'
849 localstatedir='${prefix}/var'
850 includedir='${prefix}/include'
851 oldincludedir='/usr/include'
852 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
853 infodir='${datarootdir}/info'
858 libdir='${exec_prefix}/lib'
859 localedir='${datarootdir}/locale'
860 mandir='${datarootdir}/man'
866 # If the previous option needs an argument, assign it.
867 if test -n "$ac_prev"; then
868 eval $ac_prev=\$ac_option
874 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
878 # Accept the important Cygnus configure options, so we can diagnose typos.
880 case $ac_dashdash$ac_option in
884 -bindir | --bindir | --bindi | --bind | --bin | --bi)
886 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
889 -build | --build | --buil | --bui | --bu)
890 ac_prev=build_alias ;;
891 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
892 build_alias=$ac_optarg ;;
894 -cache-file | --cache-file | --cache-fil | --cache-fi \
895 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
896 ac_prev=cache_file ;;
897 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
898 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
899 cache_file=$ac_optarg ;;
902 cache_file=config.cache ;;
904 -datadir | --datadir | --datadi | --datad)
906 -datadir=* | --datadir=* | --datadi=* | --datad=*)
907 datadir=$ac_optarg ;;
909 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
910 | --dataroo | --dataro | --datar)
911 ac_prev=datarootdir ;;
912 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
913 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
914 datarootdir=$ac_optarg ;;
916 -disable-* | --disable-*)
917 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
918 # Reject names that are not valid shell variable names.
919 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
920 as_fn_error "invalid feature name: $ac_useropt"
921 ac_useropt_orig=$ac_useropt
922 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
923 case $ac_user_opts in
927 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
928 ac_unrecognized_sep=', ';;
930 eval enable_$ac_useropt=no ;;
932 -docdir | --docdir | --docdi | --doc | --do)
934 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
937 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
939 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
942 -enable-* | --enable-*)
943 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
944 # Reject names that are not valid shell variable names.
945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946 as_fn_error "invalid feature name: $ac_useropt"
947 ac_useropt_orig=$ac_useropt
948 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
949 case $ac_user_opts in
953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
954 ac_unrecognized_sep=', ';;
956 eval enable_$ac_useropt=\$ac_optarg ;;
958 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
959 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
960 | --exec | --exe | --ex)
961 ac_prev=exec_prefix ;;
962 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
963 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
964 | --exec=* | --exe=* | --ex=*)
965 exec_prefix=$ac_optarg ;;
967 -gas | --gas | --ga | --g)
968 # Obsolete; use --with-gas.
971 -help | --help | --hel | --he | -h)
973 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
974 ac_init_help=recursive ;;
975 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
976 ac_init_help=short ;;
978 -host | --host | --hos | --ho)
979 ac_prev=host_alias ;;
980 -host=* | --host=* | --hos=* | --ho=*)
981 host_alias=$ac_optarg ;;
983 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
985 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
987 htmldir=$ac_optarg ;;
989 -includedir | --includedir | --includedi | --included | --include \
990 | --includ | --inclu | --incl | --inc)
991 ac_prev=includedir ;;
992 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
993 | --includ=* | --inclu=* | --incl=* | --inc=*)
994 includedir=$ac_optarg ;;
996 -infodir | --infodir | --infodi | --infod | --info | --inf)
998 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
999 infodir=$ac_optarg ;;
1001 -libdir | --libdir | --libdi | --libd)
1003 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1004 libdir=$ac_optarg ;;
1006 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1007 | --libexe | --libex | --libe)
1008 ac_prev=libexecdir ;;
1009 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1010 | --libexe=* | --libex=* | --libe=*)
1011 libexecdir=$ac_optarg ;;
1013 -localedir | --localedir | --localedi | --localed | --locale)
1014 ac_prev=localedir ;;
1015 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1016 localedir=$ac_optarg ;;
1018 -localstatedir | --localstatedir | --localstatedi | --localstated \
1019 | --localstate | --localstat | --localsta | --localst | --locals)
1020 ac_prev=localstatedir ;;
1021 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1022 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1023 localstatedir=$ac_optarg ;;
1025 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1027 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1028 mandir=$ac_optarg ;;
1030 -nfp | --nfp | --nf)
1031 # Obsolete; use --without-fp.
1034 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1035 | --no-cr | --no-c | -n)
1038 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1039 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1042 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1043 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1044 | --oldin | --oldi | --old | --ol | --o)
1045 ac_prev=oldincludedir ;;
1046 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1047 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1048 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1049 oldincludedir=$ac_optarg ;;
1051 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1053 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1054 prefix=$ac_optarg ;;
1056 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1057 | --program-pre | --program-pr | --program-p)
1058 ac_prev=program_prefix ;;
1059 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1060 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1061 program_prefix=$ac_optarg ;;
1063 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1064 | --program-suf | --program-su | --program-s)
1065 ac_prev=program_suffix ;;
1066 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1067 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1068 program_suffix=$ac_optarg ;;
1070 -program-transform-name | --program-transform-name \
1071 | --program-transform-nam | --program-transform-na \
1072 | --program-transform-n | --program-transform- \
1073 | --program-transform | --program-transfor \
1074 | --program-transfo | --program-transf \
1075 | --program-trans | --program-tran \
1076 | --progr-tra | --program-tr | --program-t)
1077 ac_prev=program_transform_name ;;
1078 -program-transform-name=* | --program-transform-name=* \
1079 | --program-transform-nam=* | --program-transform-na=* \
1080 | --program-transform-n=* | --program-transform-=* \
1081 | --program-transform=* | --program-transfor=* \
1082 | --program-transfo=* | --program-transf=* \
1083 | --program-trans=* | --program-tran=* \
1084 | --progr-tra=* | --program-tr=* | --program-t=*)
1085 program_transform_name=$ac_optarg ;;
1087 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1089 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1090 pdfdir=$ac_optarg ;;
1092 -psdir | --psdir | --psdi | --psd | --ps)
1094 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1097 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1098 | -silent | --silent | --silen | --sile | --sil)
1101 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1103 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1105 sbindir=$ac_optarg ;;
1107 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1108 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1109 | --sharedst | --shareds | --shared | --share | --shar \
1111 ac_prev=sharedstatedir ;;
1112 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1113 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1114 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1116 sharedstatedir=$ac_optarg ;;
1118 -site | --site | --sit)
1120 -site=* | --site=* | --sit=*)
1123 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1125 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1126 srcdir=$ac_optarg ;;
1128 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1129 | --syscon | --sysco | --sysc | --sys | --sy)
1130 ac_prev=sysconfdir ;;
1131 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1132 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1133 sysconfdir=$ac_optarg ;;
1135 -target | --target | --targe | --targ | --tar | --ta | --t)
1136 ac_prev=target_alias ;;
1137 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1138 target_alias=$ac_optarg ;;
1140 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1143 -version | --version | --versio | --versi | --vers | -V)
1144 ac_init_version=: ;;
1147 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1148 # Reject names that are not valid shell variable names.
1149 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1150 as_fn_error "invalid package name: $ac_useropt"
1151 ac_useropt_orig=$ac_useropt
1152 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1153 case $ac_user_opts in
1157 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1158 ac_unrecognized_sep=', ';;
1160 eval with_$ac_useropt=\$ac_optarg ;;
1162 -without-* | --without-*)
1163 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1164 # Reject names that are not valid shell variable names.
1165 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1166 as_fn_error "invalid package name: $ac_useropt"
1167 ac_useropt_orig=$ac_useropt
1168 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1169 case $ac_user_opts in
1173 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1174 ac_unrecognized_sep=', ';;
1176 eval with_$ac_useropt=no ;;
1179 # Obsolete; use --with-x.
1182 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1183 | --x-incl | --x-inc | --x-in | --x-i)
1184 ac_prev=x_includes ;;
1185 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1186 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1187 x_includes=$ac_optarg ;;
1189 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1190 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1191 ac_prev=x_libraries ;;
1192 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1193 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1194 x_libraries=$ac_optarg ;;
1196 -*) as_fn_error "unrecognized option: \`$ac_option'
1197 Try \`$0 --help' for more information."
1201 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1202 # Reject names that are not valid shell variable names.
1203 case $ac_envvar in #(
1204 '' | [0-9]* | *[!_$as_cr_alnum]* )
1205 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1207 eval $ac_envvar=\$ac_optarg
1208 export $ac_envvar ;;
1211 # FIXME: should be removed in autoconf 3.0.
1212 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1213 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1214 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1215 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1221 if test -n "$ac_prev"; then
1222 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1223 as_fn_error "missing argument to $ac_option"
1226 if test -n "$ac_unrecognized_opts"; then
1227 case $enable_option_checking in
1229 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1230 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1234 # Check all directory arguments for consistency.
1235 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1236 datadir sysconfdir sharedstatedir localstatedir includedir \
1237 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1238 libdir localedir mandir
1240 eval ac_val=\$$ac_var
1241 # Remove trailing slashes.
1244 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1245 eval $ac_var=\$ac_val;;
1247 # Be sure to have absolute directory names.
1249 [\\/$]* | ?:[\\/]* ) continue;;
1250 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1252 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1255 # There might be people who depend on the old broken behavior: `$host'
1256 # used to hold the argument of --host etc.
1257 # FIXME: To remove some day.
1260 target=$target_alias
1262 # FIXME: To remove some day.
1263 if test "x$host_alias" != x; then
1264 if test "x$build_alias" = x; then
1265 cross_compiling=maybe
1266 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1267 If a cross compiler is detected then cross compile mode will be used." >&2
1268 elif test "x$build_alias" != "x$host_alias"; then
1274 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1276 test "$silent" = yes && exec 6>/dev/null
1279 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1280 ac_ls_di=`ls -di .` &&
1281 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1282 as_fn_error "working directory cannot be determined"
1283 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1284 as_fn_error "pwd does not report name of working directory"
1287 # Find the source files, if location was not specified.
1288 if test -z "$srcdir"; then
1289 ac_srcdir_defaulted=yes
1290 # Try the directory containing this script, then the parent directory.
1291 ac_confdir=`$as_dirname -- "$as_myself" ||
1292 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1293 X"$as_myself" : 'X\(//\)[^/]' \| \
1294 X"$as_myself" : 'X\(//\)$' \| \
1295 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1296 $as_echo X"$as_myself" |
1297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1315 if test ! -r "$srcdir/$ac_unique_file"; then
1319 ac_srcdir_defaulted=no
1321 if test ! -r "$srcdir/$ac_unique_file"; then
1322 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1323 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1325 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1327 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1329 # When building in place, set srcdir=.
1330 if test "$ac_abs_confdir" = "$ac_pwd"; then
1333 # Remove unnecessary trailing slashes from srcdir.
1334 # Double slashes in file names in object file debugging info
1335 # mess up M-x gdb in Emacs.
1337 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1339 for ac_var in $ac_precious_vars; do
1340 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1341 eval ac_env_${ac_var}_value=\$${ac_var}
1342 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1343 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1347 # Report the --help message.
1349 if test "$ac_init_help" = "long"; then
1350 # Omit some internal or obsolete options to make the list less imposing.
1351 # This message is too long to be a string in the A/UX 3.1 sh.
1353 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1355 Usage: $0 [OPTION]... [VAR=VALUE]...
1357 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1358 VAR=VALUE. See below for descriptions of some of the useful variables.
1360 Defaults for the options are specified in brackets.
1363 -h, --help display this help and exit
1364 --help=short display options specific to this package
1365 --help=recursive display the short help of all the included packages
1366 -V, --version display version information and exit
1367 -q, --quiet, --silent do not print \`checking...' messages
1368 --cache-file=FILE cache test results in FILE [disabled]
1369 -C, --config-cache alias for \`--cache-file=config.cache'
1370 -n, --no-create do not create output files
1371 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1373 Installation directories:
1374 --prefix=PREFIX install architecture-independent files in PREFIX
1375 [$ac_default_prefix]
1376 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1379 By default, \`make install' will install all the files in
1380 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1381 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1382 for instance \`--prefix=\$HOME'.
1384 For better control, use the options below.
1386 Fine tuning of the installation directories:
1387 --bindir=DIR user executables [EPREFIX/bin]
1388 --sbindir=DIR system admin executables [EPREFIX/sbin]
1389 --libexecdir=DIR program executables [EPREFIX/libexec]
1390 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1391 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1392 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1393 --libdir=DIR object code libraries [EPREFIX/lib]
1394 --includedir=DIR C header files [PREFIX/include]
1395 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1396 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1397 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1398 --infodir=DIR info documentation [DATAROOTDIR/info]
1399 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1400 --mandir=DIR man documentation [DATAROOTDIR/man]
1401 --docdir=DIR documentation root [DATAROOTDIR/doc/libgo]
1402 --htmldir=DIR html documentation [DOCDIR]
1403 --dvidir=DIR dvi documentation [DOCDIR]
1404 --pdfdir=DIR pdf documentation [DOCDIR]
1405 --psdir=DIR ps documentation [DOCDIR]
1411 --program-prefix=PREFIX prepend PREFIX to installed program names
1412 --program-suffix=SUFFIX append SUFFIX to installed program names
1413 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1416 --build=BUILD configure for building on BUILD [guessed]
1417 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1418 --target=TARGET configure for building compilers for TARGET [HOST]
1422 if test -n "$ac_init_help"; then
1423 case $ac_init_help in
1424 short | recursive ) echo "Configuration of package-unused version-unused:";;
1429 --disable-option-checking ignore unrecognized --enable/--with options
1430 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1431 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1432 --enable-multilib build many library versions (default)
1433 --disable-dependency-tracking speeds up one-time build
1434 --enable-dependency-tracking do not reject slow dependency extractors
1435 --enable-maintainer-mode enable make rules and dependencies not useful
1436 (and sometimes confusing) to the casual installer
1437 --enable-shared[=PKGS] build shared libraries [default=yes]
1438 --enable-static[=PKGS] build static libraries [default=yes]
1439 --enable-fast-install[=PKGS]
1440 optimize for fast installation [default=yes]
1441 --disable-libtool-lock avoid locking (might break parallel builds)
1442 --enable-version-specific-runtime-libs
1443 Specify that runtime libraries should be installed
1444 in a compiler-specific directory
1445 --enable-sjlj-exceptions
1446 force use of builtin_setjmp for exceptions
1449 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1450 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1451 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1452 --with-pic try to use only PIC/non-PIC objects [default=use
1454 --without-libffi don't use libffi
1455 --with-system-libunwind use installed libunwind
1457 Some influential environment variables:
1458 CC C compiler command
1459 CFLAGS C compiler flags
1460 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1461 nonstandard directory <lib dir>
1462 LIBS libraries to pass to the linker, e.g. -l<library>
1463 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1464 you have headers in a nonstandard directory <include dir>
1465 GOC Go compiler command
1466 GOCFLAGS Go compiler flags
1469 Use these variables to override the choices made by `configure' or to help
1470 it to find libraries and programs with nonstandard names/locations.
1472 Report bugs to the package provider.
1477 if test "$ac_init_help" = "recursive"; then
1478 # If there are subdirs, report their specific --help.
1479 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1480 test -d "$ac_dir" ||
1481 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1486 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1489 # A ".." for each directory in $ac_dir_suffix.
1490 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1491 case $ac_top_builddir_sub in
1492 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1496 ac_abs_top_builddir=$ac_pwd
1497 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1498 # for backward compatibility:
1499 ac_top_builddir=$ac_top_build_prefix
1502 .) # We are building in place.
1504 ac_top_srcdir=$ac_top_builddir_sub
1505 ac_abs_top_srcdir=$ac_pwd ;;
1506 [\\/]* | ?:[\\/]* ) # Absolute name.
1507 ac_srcdir=$srcdir$ac_dir_suffix;
1508 ac_top_srcdir=$srcdir
1509 ac_abs_top_srcdir=$srcdir ;;
1511 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1512 ac_top_srcdir=$ac_top_build_prefix$srcdir
1513 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1515 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1517 cd "$ac_dir" || { ac_status=$?; continue; }
1518 # Check for guested configure.
1519 if test -f "$ac_srcdir/configure.gnu"; then
1521 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1522 elif test -f "$ac_srcdir/configure"; then
1524 $SHELL "$ac_srcdir/configure" --help=recursive
1526 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1528 cd "$ac_pwd" || { ac_status=$?; break; }
1532 test -n "$ac_init_help" && exit $ac_status
1533 if $ac_init_version; then
1535 package-unused configure version-unused
1536 generated by GNU Autoconf 2.64
1538 Copyright (C) 2009 Free Software Foundation, Inc.
1539 This configure script is free software; the Free Software Foundation
1540 gives unlimited permission to copy, distribute and modify it.
1545 ## ------------------------ ##
1546 ## Autoconf initialization. ##
1547 ## ------------------------ ##
1549 # ac_fn_c_try_compile LINENO
1550 # --------------------------
1551 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1552 ac_fn_c_try_compile ()
1554 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1555 rm -f conftest.$ac_objext
1556 if { { ac_try="$ac_compile"
1558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1559 *) ac_try_echo=$ac_try;;
1561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1562 $as_echo "$ac_try_echo"; } >&5
1563 (eval "$ac_compile") 2>conftest.err
1565 if test -s conftest.err; then
1566 grep -v '^ *+' conftest.err >conftest.er1
1567 cat conftest.er1 >&5
1568 mv -f conftest.er1 conftest.err
1570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1571 test $ac_status = 0; } && {
1572 test -z "$ac_c_werror_flag" ||
1573 test ! -s conftest.err
1574 } && test -s conftest.$ac_objext; then :
1577 $as_echo "$as_me: failed program was:" >&5
1578 sed 's/^/| /' conftest.$ac_ext >&5
1582 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1585 } # ac_fn_c_try_compile
1587 # ac_fn_c_try_link LINENO
1588 # -----------------------
1589 # Try to link conftest.$ac_ext, and return whether this succeeded.
1592 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1593 rm -f conftest.$ac_objext conftest$ac_exeext
1594 if { { ac_try="$ac_link"
1596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1597 *) ac_try_echo=$ac_try;;
1599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1600 $as_echo "$ac_try_echo"; } >&5
1601 (eval "$ac_link") 2>conftest.err
1603 if test -s conftest.err; then
1604 grep -v '^ *+' conftest.err >conftest.er1
1605 cat conftest.er1 >&5
1606 mv -f conftest.er1 conftest.err
1608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1609 test $ac_status = 0; } && {
1610 test -z "$ac_c_werror_flag" ||
1611 test ! -s conftest.err
1612 } && test -s conftest$ac_exeext && {
1613 test "$cross_compiling" = yes ||
1614 $as_test_x conftest$ac_exeext
1618 $as_echo "$as_me: failed program was:" >&5
1619 sed 's/^/| /' conftest.$ac_ext >&5
1623 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1624 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1625 # interfere with the next link command; also delete a directory that is
1626 # left behind by Apple's compiler. We do this before executing the actions.
1627 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1628 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1631 } # ac_fn_c_try_link
1633 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1634 # -------------------------------------------------------
1635 # Tests whether HEADER exists and can be compiled using the include files in
1636 # INCLUDES, setting the cache variable VAR accordingly.
1637 ac_fn_c_check_header_compile ()
1639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1641 $as_echo_n "checking for $2... " >&6; }
1642 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1643 $as_echo_n "(cached) " >&6
1645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1646 /* end confdefs.h. */
1650 if ac_fn_c_try_compile "$LINENO"; then :
1655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1659 $as_echo "$ac_res" >&6; }
1660 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1662 } # ac_fn_c_check_header_compile
1664 # ac_fn_c_try_cpp LINENO
1665 # ----------------------
1666 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 if { { ac_try="$ac_cpp conftest.$ac_ext"
1672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673 *) ac_try_echo=$ac_try;;
1675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676 $as_echo "$ac_try_echo"; } >&5
1677 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1679 if test -s conftest.err; then
1680 grep -v '^ *+' conftest.err >conftest.er1
1681 cat conftest.er1 >&5
1682 mv -f conftest.er1 conftest.err
1684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685 test $ac_status = 0; } >/dev/null && {
1686 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1687 test ! -s conftest.err
1691 $as_echo "$as_me: failed program was:" >&5
1692 sed 's/^/| /' conftest.$ac_ext >&5
1696 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1701 # ac_fn_c_try_run LINENO
1702 # ----------------------
1703 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1704 # that executables *can* be run.
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 if { { ac_try="$ac_link"
1710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1711 *) ac_try_echo=$ac_try;;
1713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714 $as_echo "$ac_try_echo"; } >&5
1715 (eval "$ac_link") 2>&5
1717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1719 { { case "(($ac_try" in
1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721 *) ac_try_echo=$ac_try;;
1723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724 $as_echo "$ac_try_echo"; } >&5
1725 (eval "$ac_try") 2>&5
1727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728 test $ac_status = 0; }; }; then :
1731 $as_echo "$as_me: program exited with status $ac_status" >&5
1732 $as_echo "$as_me: failed program was:" >&5
1733 sed 's/^/| /' conftest.$ac_ext >&5
1735 ac_retval=$ac_status
1737 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1738 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1743 # ac_fn_c_check_func LINENO FUNC VAR
1744 # ----------------------------------
1745 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1746 ac_fn_c_check_func ()
1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1750 $as_echo_n "checking for $2... " >&6; }
1751 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1752 $as_echo_n "(cached) " >&6
1754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1755 /* end confdefs.h. */
1756 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1758 #define $2 innocuous_$2
1760 /* System header to define __stub macros and hopefully few prototypes,
1761 which can conflict with char $2 (); below.
1762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1763 <limits.h> exists even on freestanding compilers. */
1766 # include <limits.h>
1768 # include <assert.h>
1773 /* Override any GCC internal prototype to avoid an error.
1774 Use char because int might match the return type of a GCC
1775 builtin and then its argument prototype would still apply. */
1780 /* The GNU C library defines this for functions which it implements
1781 to always fail with ENOSYS. Some functions are actually named
1782 something starting with __ and the normal name is an alias. */
1783 #if defined __stub_$2 || defined __stub___$2
1795 if ac_fn_c_try_link "$LINENO"; then :
1800 rm -f core conftest.err conftest.$ac_objext \
1801 conftest$ac_exeext conftest.$ac_ext
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805 $as_echo "$ac_res" >&6; }
1806 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1808 } # ac_fn_c_check_func
1810 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1811 # -------------------------------------------------------
1812 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1813 # the include files in INCLUDES and setting the cache variable VAR
1815 ac_fn_c_check_header_mongrel ()
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820 $as_echo_n "checking for $2... " >&6; }
1821 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1822 $as_echo_n "(cached) " >&6
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826 $as_echo "$ac_res" >&6; }
1828 # Is the header compilable?
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1830 $as_echo_n "checking $2 usability... " >&6; }
1831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832 /* end confdefs.h. */
1836 if ac_fn_c_try_compile "$LINENO"; then :
1837 ac_header_compiler=yes
1839 ac_header_compiler=no
1841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1843 $as_echo "$ac_header_compiler" >&6; }
1845 # Is the header present?
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1847 $as_echo_n "checking $2 presence... " >&6; }
1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849 /* end confdefs.h. */
1852 if ac_fn_c_try_cpp "$LINENO"; then :
1853 ac_header_preproc=yes
1855 ac_header_preproc=no
1857 rm -f conftest.err conftest.$ac_ext
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1859 $as_echo "$ac_header_preproc" >&6; }
1861 # So? What about this header?
1862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1865 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1867 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1871 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1873 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1875 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1877 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1879 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883 $as_echo_n "checking for $2... " >&6; }
1884 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1885 $as_echo_n "(cached) " >&6
1887 eval "$3=\$ac_header_compiler"
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891 $as_echo "$ac_res" >&6; }
1893 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1895 } # ac_fn_c_check_header_mongrel
1897 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1898 # -------------------------------------------
1899 # Tests whether TYPE exists after having included INCLUDES, setting cache
1900 # variable VAR accordingly.
1901 ac_fn_c_check_type ()
1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1905 $as_echo_n "checking for $2... " >&6; }
1906 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1907 $as_echo_n "(cached) " >&6
1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911 /* end confdefs.h. */
1922 if ac_fn_c_try_compile "$LINENO"; then :
1923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924 /* end confdefs.h. */
1935 if ac_fn_c_try_compile "$LINENO"; then :
1940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1946 $as_echo "$ac_res" >&6; }
1947 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1949 } # ac_fn_c_check_type
1950 cat >config.log <<_ACEOF
1951 This file contains any messages produced by compilers while
1952 running configure, to aid debugging if configure makes a mistake.
1954 It was created by package-unused $as_me version-unused, which was
1955 generated by GNU Autoconf 2.64. Invocation command line was
1967 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1968 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1969 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1970 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1971 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1973 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1974 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1976 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1977 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1978 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1979 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1980 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1981 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1982 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1990 test -z "$as_dir" && as_dir=.
1991 $as_echo "PATH: $as_dir"
2007 # Keep a trace of the command line.
2008 # Strip out --no-create and --no-recursion so they do not pile up.
2009 # Strip out --silent because we don't want to record it for future runs.
2010 # Also quote any args containing shell meta-characters.
2011 # Make two passes to allow for proper duplicate-argument suppression.
2015 ac_must_keep_next=false
2021 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2022 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2023 | -silent | --silent | --silen | --sile | --sil)
2026 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2029 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2031 as_fn_append ac_configure_args1 " '$ac_arg'"
2032 if test $ac_must_keep_next = true; then
2033 ac_must_keep_next=false # Got value, back to normal.
2036 *=* | --config-cache | -C | -disable-* | --disable-* \
2037 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2038 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2039 | -with-* | --with-* | -without-* | --without-* | --x)
2040 case "$ac_configure_args0 " in
2041 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2044 -* ) ac_must_keep_next=true ;;
2047 as_fn_append ac_configure_args " '$ac_arg'"
2052 { ac_configure_args0=; unset ac_configure_args0;}
2053 { ac_configure_args1=; unset ac_configure_args1;}
2055 # When interrupted or exit'd, cleanup temporary files, and complete
2056 # config.log. We remove comments because anyway the quotes in there
2057 # would cause problems or look ugly.
2058 # WARNING: Use '\'' to represent an apostrophe within the trap.
2059 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2060 trap 'exit_status=$?
2061 # Save into config.log some information that might help in debugging.
2066 ## ---------------- ##
2067 ## Cache variables. ##
2068 ## ---------------- ##
2071 # The following way of writing the cache mishandles newlines in values,
2073 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2074 eval ac_val=\$$ac_var
2078 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2079 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2082 _ | IFS | as_nl) ;; #(
2083 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2084 *) { eval $ac_var=; unset $ac_var;} ;;
2089 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2090 *${as_nl}ac_space=\ *)
2092 "s/'\''/'\''\\\\'\'''\''/g;
2093 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2096 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2104 ## ----------------- ##
2105 ## Output variables. ##
2106 ## ----------------- ##
2109 for ac_var in $ac_subst_vars
2111 eval ac_val=\$$ac_var
2113 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2115 $as_echo "$ac_var='\''$ac_val'\''"
2119 if test -n "$ac_subst_files"; then
2121 ## ------------------- ##
2122 ## File substitutions. ##
2123 ## ------------------- ##
2126 for ac_var in $ac_subst_files
2128 eval ac_val=\$$ac_var
2130 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2132 $as_echo "$ac_var='\''$ac_val'\''"
2137 if test -s confdefs.h; then
2147 test "$ac_signal" != 0 &&
2148 $as_echo "$as_me: caught signal $ac_signal"
2149 $as_echo "$as_me: exit $exit_status"
2151 rm -f core *.core core.conftest.* &&
2152 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2155 for ac_signal in 1 2 13 15; do
2156 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2160 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2161 rm -f -r conftest* confdefs.h
2163 $as_echo "/* confdefs.h */" > confdefs.h
2165 # Predefined preprocessor variables.
2167 cat >>confdefs.h <<_ACEOF
2168 #define PACKAGE_NAME "$PACKAGE_NAME"
2171 cat >>confdefs.h <<_ACEOF
2172 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2175 cat >>confdefs.h <<_ACEOF
2176 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2179 cat >>confdefs.h <<_ACEOF
2180 #define PACKAGE_STRING "$PACKAGE_STRING"
2183 cat >>confdefs.h <<_ACEOF
2184 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2187 cat >>confdefs.h <<_ACEOF
2188 #define PACKAGE_URL "$PACKAGE_URL"
2192 # Let the site file select an alternate cache file if it wants to.
2193 # Prefer an explicitly selected file to automatically selected ones.
2196 if test -n "$CONFIG_SITE"; then
2197 ac_site_file1=$CONFIG_SITE
2198 elif test "x$prefix" != xNONE; then
2199 ac_site_file1=$prefix/share/config.site
2200 ac_site_file2=$prefix/etc/config.site
2202 ac_site_file1=$ac_default_prefix/share/config.site
2203 ac_site_file2=$ac_default_prefix/etc/config.site
2205 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2207 test "x$ac_site_file" = xNONE && continue
2208 if test -r "$ac_site_file"; then
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2210 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2211 sed 's/^/| /' "$ac_site_file" >&5
2216 if test -r "$cache_file"; then
2217 # Some versions of bash will fail to source /dev/null (special
2218 # files actually), so we avoid doing that.
2219 if test -f "$cache_file"; then
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2221 $as_echo "$as_me: loading cache $cache_file" >&6;}
2223 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2224 *) . "./$cache_file";;
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2229 $as_echo "$as_me: creating cache $cache_file" >&6;}
2233 # Check that the precious variables saved in the cache have kept the same
2235 ac_cache_corrupted=false
2236 for ac_var in $ac_precious_vars; do
2237 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2238 eval ac_new_set=\$ac_env_${ac_var}_set
2239 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2240 eval ac_new_val=\$ac_env_${ac_var}_value
2241 case $ac_old_set,$ac_new_set in
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2244 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2245 ac_cache_corrupted=: ;;
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2248 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2249 ac_cache_corrupted=: ;;
2252 if test "x$ac_old_val" != "x$ac_new_val"; then
2253 # differences in whitespace do not lead to failure.
2254 ac_old_val_w=`echo x $ac_old_val`
2255 ac_new_val_w=`echo x $ac_new_val`
2256 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2258 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2259 ac_cache_corrupted=:
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2262 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2263 eval $ac_var=\$ac_old_val
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2266 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2268 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2271 # Pass precious variables to config.status.
2272 if test "$ac_new_set" = set; then
2274 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2275 *) ac_arg=$ac_var=$ac_new_val ;;
2277 case " $ac_configure_args " in
2278 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2279 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2283 if $ac_cache_corrupted; then
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2287 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2288 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2290 ## -------------------- ##
2291 ## Main body of script. ##
2292 ## -------------------- ##
2295 ac_cpp='$CPP $CPPFLAGS'
2296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2305 ac_config_headers="$ac_config_headers config.h"
2308 libtool_VERSION=1:0:0
2311 # Default to --enable-multilib
2312 # Check whether --enable-multilib was given.
2313 if test "${enable_multilib+set}" = set; then :
2314 enableval=$enable_multilib; case "$enableval" in
2315 yes) multilib=yes ;;
2317 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2324 # We may get other options which we leave undocumented:
2325 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2326 # See config-ml.in if you want the gory details.
2328 if test "$srcdir" = "."; then
2329 if test "$with_target_subdir" != "."; then
2330 multi_basedir="$srcdir/$with_multisrctop../.."
2332 multi_basedir="$srcdir/$with_multisrctop.."
2335 multi_basedir="$srcdir/.."
2339 # Even if the default multilib is not a cross compilation,
2340 # it may be that some of the other multilibs are.
2341 if test $cross_compiling = no && test $multilib = yes \
2342 && test "x${with_multisubdir}" != x ; then
2343 cross_compiling=maybe
2346 ac_config_commands="$ac_config_commands default-1"
2350 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2351 for ac_t in install-sh install.sh shtool; do
2352 if test -f "$ac_dir/$ac_t"; then
2354 ac_install_sh="$ac_aux_dir/$ac_t -c"
2359 if test -z "$ac_aux_dir"; then
2360 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2363 # These three variables are undocumented and unsupported,
2364 # and are intended to be withdrawn in a future Autoconf release.
2365 # They can cause serious problems if a builder's source tree is in a directory
2366 # whose full name contains unusual characters.
2367 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2368 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2369 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2372 # Make sure we can run config.sub.
2373 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2374 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2377 $as_echo_n "checking build system type... " >&6; }
2378 if test "${ac_cv_build+set}" = set; then :
2379 $as_echo_n "(cached) " >&6
2381 ac_build_alias=$build_alias
2382 test "x$ac_build_alias" = x &&
2383 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2384 test "x$ac_build_alias" = x &&
2385 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2386 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2387 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2391 $as_echo "$ac_cv_build" >&6; }
2392 case $ac_cv_build in
2394 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2397 ac_save_IFS=$IFS; IFS='-'
2403 # Remember, the first character of IFS is used to create $*,
2404 # except with old shells:
2407 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2411 $as_echo_n "checking host system type... " >&6; }
2412 if test "${ac_cv_host+set}" = set; then :
2413 $as_echo_n "(cached) " >&6
2415 if test "x$host_alias" = x; then
2416 ac_cv_host=$ac_cv_build
2418 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2419 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2424 $as_echo "$ac_cv_host" >&6; }
2427 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2430 ac_save_IFS=$IFS; IFS='-'
2436 # Remember, the first character of IFS is used to create $*,
2437 # except with old shells:
2440 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2444 $as_echo_n "checking target system type... " >&6; }
2445 if test "${ac_cv_target+set}" = set; then :
2446 $as_echo_n "(cached) " >&6
2448 if test "x$target_alias" = x; then
2449 ac_cv_target=$ac_cv_host
2451 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2452 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2457 $as_echo "$ac_cv_target" >&6; }
2458 case $ac_cv_target in
2460 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2462 target=$ac_cv_target
2463 ac_save_IFS=$IFS; IFS='-'
2469 # Remember, the first character of IFS is used to create $*,
2470 # except with old shells:
2473 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2476 # The aliases save the names the user supplied, while $host etc.
2477 # will get canonicalized.
2478 test -n "$target_alias" &&
2479 test "$program_prefix$program_suffix$program_transform_name" = \
2481 program_prefix=${target_alias}-
2483 target_alias=${target_alias-$host_alias}
2485 am__api_version='1.11'
2487 # Find a good install program. We prefer a C program (faster),
2488 # so one script is as good as another. But avoid the broken or
2489 # incompatible versions:
2490 # SysV /etc/install, /usr/sbin/install
2491 # SunOS /usr/etc/install
2492 # IRIX /sbin/install
2494 # AmigaOS /C/install, which installs bootblocks on floppy discs
2495 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2496 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2497 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2498 # OS/2's system install, which has a completely different semantic
2499 # ./install, which can be erroneously created by make from ./install.sh.
2500 # Reject install programs that cannot install multiple files.
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2502 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2503 if test -z "$INSTALL"; then
2504 if test "${ac_cv_path_install+set}" = set; then :
2505 $as_echo_n "(cached) " >&6
2507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511 test -z "$as_dir" && as_dir=.
2512 # Account for people who put trailing slashes in PATH elements.
2513 case $as_dir/ in #((
2514 ./ | .// | /[cC]/* | \
2515 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2516 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2519 # OSF1 and SCO ODT 3.0 have their own names for install.
2520 # Don't use installbsd from OSF since it installs stuff as root
2522 for ac_prog in ginstall scoinst install; do
2523 for ac_exec_ext in '' $ac_executable_extensions; do
2524 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2525 if test $ac_prog = install &&
2526 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2527 # AIX install. It has an incompatible calling convention.
2529 elif test $ac_prog = install &&
2530 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2531 # program-specific install script used by HP pwplus--don't use.
2534 rm -rf conftest.one conftest.two conftest.dir
2535 echo one > conftest.one
2536 echo two > conftest.two
2538 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2539 test -s conftest.one && test -s conftest.two &&
2540 test -s conftest.dir/conftest.one &&
2541 test -s conftest.dir/conftest.two
2543 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2556 rm -rf conftest.one conftest.two conftest.dir
2559 if test "${ac_cv_path_install+set}" = set; then
2560 INSTALL=$ac_cv_path_install
2562 # As a last resort, use the slow shell script. Don't cache a
2563 # value for INSTALL within a source directory, because that will
2564 # break other packages using the cache if that directory is
2565 # removed, or if the value is a relative name.
2566 INSTALL=$ac_install_sh
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2570 $as_echo "$INSTALL" >&6; }
2572 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2573 # It thinks the first close brace ends the variable substitution.
2574 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2576 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2578 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2581 $as_echo_n "checking whether build environment is sane... " >&6; }
2584 echo timestamp > conftest.file
2585 # Reject unsafe characters in $srcdir or the absolute working directory
2586 # name. Accept space and tab only in the latter.
2590 *[\\\"\#\$\&\'\`$am_lf]*)
2591 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2594 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2595 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2598 # Do `set' in a subshell so we don't clobber the current shell's
2599 # arguments. Must try -L first in case configure is actually a
2600 # symlink; some systems play weird games with the mod time of symlinks
2601 # (eg FreeBSD returns the mod time of the symlink's containing
2604 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2605 if test "$*" = "X"; then
2607 set X `ls -t "$srcdir/configure" conftest.file`
2610 if test "$*" != "X $srcdir/configure conftest.file" \
2611 && test "$*" != "X conftest.file $srcdir/configure"; then
2613 # If neither matched, then we have a broken ls. This can happen
2614 # if, for instance, CONFIG_SHELL is bash and it inherits a
2615 # broken ls alias from the environment. This has actually
2616 # happened. Such a system could not be considered "sane".
2617 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2618 alias in your environment" "$LINENO" 5
2621 test "$2" = conftest.file
2627 as_fn_error "newly created file is older than distributed files!
2628 Check your system clock" "$LINENO" 5
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2631 $as_echo "yes" >&6; }
2632 test "$program_prefix" != NONE &&
2633 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2634 # Use a double $ so make ignores it.
2635 test "$program_suffix" != NONE &&
2636 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2637 # Double any \ or $.
2638 # By default was `s,x,x', remove it if useless.
2639 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2640 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2642 # expand $ac_aux_dir to an absolute path
2643 am_aux_dir=`cd $ac_aux_dir && pwd`
2645 if test x"${MISSING+set}" != xset; then
2648 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2650 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2653 # Use eval to expand $SHELL
2654 if eval "$MISSING --run true"; then
2655 am_missing_run="$MISSING --run "
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2659 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2662 if test x"${install_sh}" != xset; then
2665 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2667 install_sh="\${SHELL} $am_aux_dir/install-sh"
2671 # Installed binaries are usually stripped using `strip' when the user
2672 # run `make install-strip'. However `strip' might not be the right
2673 # tool to use in cross-compilation environments, therefore Automake
2674 # will honor the `STRIP' environment variable to overrule this program.
2675 if test "$cross_compiling" != no; then
2676 if test -n "$ac_tool_prefix"; then
2677 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2678 set dummy ${ac_tool_prefix}strip; ac_word=$2
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2680 $as_echo_n "checking for $ac_word... " >&6; }
2681 if test "${ac_cv_prog_STRIP+set}" = set; then :
2682 $as_echo_n "(cached) " >&6
2684 if test -n "$STRIP"; then
2685 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 test -z "$as_dir" && as_dir=.
2692 for ac_exec_ext in '' $ac_executable_extensions; do
2693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2694 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2704 STRIP=$ac_cv_prog_STRIP
2705 if test -n "$STRIP"; then
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2707 $as_echo "$STRIP" >&6; }
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2710 $as_echo "no" >&6; }
2715 if test -z "$ac_cv_prog_STRIP"; then
2717 # Extract the first word of "strip", so it can be a program name with args.
2718 set dummy strip; ac_word=$2
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2720 $as_echo_n "checking for $ac_word... " >&6; }
2721 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2722 $as_echo_n "(cached) " >&6
2724 if test -n "$ac_ct_STRIP"; then
2725 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731 test -z "$as_dir" && as_dir=.
2732 for ac_exec_ext in '' $ac_executable_extensions; do
2733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2734 ac_cv_prog_ac_ct_STRIP="strip"
2735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2744 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2745 if test -n "$ac_ct_STRIP"; then
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2747 $as_echo "$ac_ct_STRIP" >&6; }
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2750 $as_echo "no" >&6; }
2753 if test "x$ac_ct_STRIP" = x; then
2756 case $cross_compiling:$ac_tool_warned in
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2760 ac_tool_warned=yes ;;
2765 STRIP="$ac_cv_prog_STRIP"
2769 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2772 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2773 if test -z "$MKDIR_P"; then
2774 if test "${ac_cv_path_mkdir+set}" = set; then :
2775 $as_echo_n "(cached) " >&6
2777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2781 test -z "$as_dir" && as_dir=.
2782 for ac_prog in mkdir gmkdir; do
2783 for ac_exec_ext in '' $ac_executable_extensions; do
2784 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2785 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2786 'mkdir (GNU coreutils) '* | \
2787 'mkdir (coreutils) '* | \
2788 'mkdir (fileutils) '4.1*)
2789 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2799 if test "${ac_cv_path_mkdir+set}" = set; then
2800 MKDIR_P="$ac_cv_path_mkdir -p"
2802 # As a last resort, use the slow shell script. Don't cache a
2803 # value for MKDIR_P within a source directory, because that will
2804 # break other packages using the cache if that directory is
2805 # removed, or if the value is a relative name.
2806 test -d ./--version && rmdir ./--version
2807 MKDIR_P="$ac_install_sh -d"
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2811 $as_echo "$MKDIR_P" >&6; }
2815 [\\/$]* | ?:[\\/]*) ;;
2816 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2819 for ac_prog in gawk mawk nawk awk
2821 # Extract the first word of "$ac_prog", so it can be a program name with args.
2822 set dummy $ac_prog; ac_word=$2
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2824 $as_echo_n "checking for $ac_word... " >&6; }
2825 if test "${ac_cv_prog_AWK+set}" = set; then :
2826 $as_echo_n "(cached) " >&6
2828 if test -n "$AWK"; then
2829 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 test -z "$as_dir" && as_dir=.
2836 for ac_exec_ext in '' $ac_executable_extensions; do
2837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2838 ac_cv_prog_AWK="$ac_prog"
2839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2849 if test -n "$AWK"; then
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2851 $as_echo "$AWK" >&6; }
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2854 $as_echo "no" >&6; }
2858 test -n "$AWK" && break
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2862 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2864 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2865 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2866 $as_echo_n "(cached) " >&6
2868 cat >conftest.make <<\_ACEOF
2871 @echo '@@@%%%=$(MAKE)=@@@%%%'
2873 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2874 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2876 eval ac_cv_prog_make_${ac_make}_set=yes;;
2878 eval ac_cv_prog_make_${ac_make}_set=no;;
2882 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2884 $as_echo "yes" >&6; }
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2888 $as_echo "no" >&6; }
2889 SET_MAKE="MAKE=${MAKE-make}"
2892 rm -rf .tst 2>/dev/null
2893 mkdir .tst 2>/dev/null
2894 if test -d .tst; then
2899 rmdir .tst 2>/dev/null
2901 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2902 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2903 # is not polluted with repeated "-I."
2904 am__isrc=' -I$(srcdir)'
2905 # test to see if srcdir already configured
2906 if test -f $srcdir/config.status; then
2907 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2911 # test whether we have cygpath
2912 if test -z "$CYGPATH_W"; then
2913 if (cygpath --version) >/dev/null 2>/dev/null; then
2914 CYGPATH_W='cygpath -w'
2921 # Define the identity of the package.
2923 VERSION='version-unused'
2926 # Some tools Automake needs.
2928 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2931 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2934 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2937 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2940 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2942 # We need awk for the "check" target. The system "awk" is bad on
2944 # Always define AMTAR for backward compatibility.
2946 AMTAR=${AMTAR-"${am_missing_run}tar"}
2948 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2960 ac_cpp='$CPP $CPPFLAGS'
2961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2964 if test -n "$ac_tool_prefix"; then
2965 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2966 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2968 $as_echo_n "checking for $ac_word... " >&6; }
2969 if test "${ac_cv_prog_CC+set}" = set; then :
2970 $as_echo_n "(cached) " >&6
2972 if test -n "$CC"; then
2973 ac_cv_prog_CC="$CC" # Let the user override the test.
2975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979 test -z "$as_dir" && as_dir=.
2980 for ac_exec_ext in '' $ac_executable_extensions; do
2981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2982 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2993 if test -n "$CC"; then
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2995 $as_echo "$CC" >&6; }
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2998 $as_echo "no" >&6; }
3003 if test -z "$ac_cv_prog_CC"; then
3005 # Extract the first word of "gcc", so it can be a program name with args.
3006 set dummy gcc; ac_word=$2
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3008 $as_echo_n "checking for $ac_word... " >&6; }
3009 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3010 $as_echo_n "(cached) " >&6
3012 if test -n "$ac_ct_CC"; then
3013 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019 test -z "$as_dir" && as_dir=.
3020 for ac_exec_ext in '' $ac_executable_extensions; do
3021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3022 ac_cv_prog_ac_ct_CC="gcc"
3023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3032 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3033 if test -n "$ac_ct_CC"; then
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3035 $as_echo "$ac_ct_CC" >&6; }
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038 $as_echo "no" >&6; }
3041 if test "x$ac_ct_CC" = x; then
3044 case $cross_compiling:$ac_tool_warned in
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3048 ac_tool_warned=yes ;;
3056 if test -z "$CC"; then
3057 if test -n "$ac_tool_prefix"; then
3058 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3059 set dummy ${ac_tool_prefix}cc; ac_word=$2
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3061 $as_echo_n "checking for $ac_word... " >&6; }
3062 if test "${ac_cv_prog_CC+set}" = set; then :
3063 $as_echo_n "(cached) " >&6
3065 if test -n "$CC"; then
3066 ac_cv_prog_CC="$CC" # Let the user override the test.
3068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072 test -z "$as_dir" && as_dir=.
3073 for ac_exec_ext in '' $ac_executable_extensions; do
3074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3075 ac_cv_prog_CC="${ac_tool_prefix}cc"
3076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3086 if test -n "$CC"; then
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3088 $as_echo "$CC" >&6; }
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3091 $as_echo "no" >&6; }
3097 if test -z "$CC"; then
3098 # Extract the first word of "cc", so it can be a program name with args.
3099 set dummy cc; ac_word=$2
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3101 $as_echo_n "checking for $ac_word... " >&6; }
3102 if test "${ac_cv_prog_CC+set}" = set; then :
3103 $as_echo_n "(cached) " >&6
3105 if test -n "$CC"; then
3106 ac_cv_prog_CC="$CC" # Let the user override the test.
3109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113 test -z "$as_dir" && as_dir=.
3114 for ac_exec_ext in '' $ac_executable_extensions; do
3115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3116 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3117 ac_prog_rejected=yes
3121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3128 if test $ac_prog_rejected = yes; then
3129 # We found a bogon in the path, so make sure we never use it.
3130 set dummy $ac_cv_prog_CC
3132 if test $# != 0; then
3133 # We chose a different compiler from the bogus one.
3134 # However, it has the same basename, so the bogon will be chosen
3135 # first if we set CC to just the basename; use the full file name.
3137 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3143 if test -n "$CC"; then
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3145 $as_echo "$CC" >&6; }
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3148 $as_echo "no" >&6; }
3153 if test -z "$CC"; then
3154 if test -n "$ac_tool_prefix"; then
3155 for ac_prog in cl.exe
3157 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3158 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3160 $as_echo_n "checking for $ac_word... " >&6; }
3161 if test "${ac_cv_prog_CC+set}" = set; then :
3162 $as_echo_n "(cached) " >&6
3164 if test -n "$CC"; then
3165 ac_cv_prog_CC="$CC" # Let the user override the test.
3167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171 test -z "$as_dir" && as_dir=.
3172 for ac_exec_ext in '' $ac_executable_extensions; do
3173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3174 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3185 if test -n "$CC"; then
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3187 $as_echo "$CC" >&6; }
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3190 $as_echo "no" >&6; }
3194 test -n "$CC" && break
3197 if test -z "$CC"; then
3199 for ac_prog in cl.exe
3201 # Extract the first word of "$ac_prog", so it can be a program name with args.
3202 set dummy $ac_prog; ac_word=$2
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3204 $as_echo_n "checking for $ac_word... " >&6; }
3205 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3206 $as_echo_n "(cached) " >&6
3208 if test -n "$ac_ct_CC"; then
3209 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3215 test -z "$as_dir" && as_dir=.
3216 for ac_exec_ext in '' $ac_executable_extensions; do
3217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3218 ac_cv_prog_ac_ct_CC="$ac_prog"
3219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3228 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3229 if test -n "$ac_ct_CC"; then
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3231 $as_echo "$ac_ct_CC" >&6; }
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234 $as_echo "no" >&6; }
3238 test -n "$ac_ct_CC" && break
3241 if test "x$ac_ct_CC" = x; then
3244 case $cross_compiling:$ac_tool_warned in
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3247 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3248 ac_tool_warned=yes ;;
3257 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3258 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3259 as_fn_error "no acceptable C compiler found in \$PATH
3260 See \`config.log' for more details." "$LINENO" 5; }
3262 # Provide some information about the compiler.
3263 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3266 for ac_option in --version -v -V -qversion; do
3267 { { ac_try="$ac_compiler $ac_option >&5"
3269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270 *) ac_try_echo=$ac_try;;
3272 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3273 $as_echo "$ac_try_echo"; } >&5
3274 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3276 if test -s conftest.err; then
3278 ... rest of stderr output deleted ...
3279 10q' conftest.err >conftest.er1
3280 cat conftest.er1 >&5
3281 rm -f conftest.er1 conftest.err
3283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3284 test $ac_status = 0; }
3287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3288 /* end confdefs.h. */
3298 ac_clean_files_save=$ac_clean_files
3299 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3300 # Try to create an executable without -o first, disregard a.out.
3301 # It will help us diagnose broken compilers, and finding out an intuition
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3304 $as_echo_n "checking for C compiler default output file name... " >&6; }
3305 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3307 # The possible output files:
3308 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3311 for ac_file in $ac_files
3314 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3315 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3320 if { { ac_try="$ac_link_default"
3322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323 *) ac_try_echo=$ac_try;;
3325 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3326 $as_echo "$ac_try_echo"; } >&5
3327 (eval "$ac_link_default") 2>&5
3329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3330 test $ac_status = 0; }; then :
3331 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3332 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3333 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3334 # so that the user can short-circuit this test for compilers unknown to
3336 for ac_file in $ac_files ''
3338 test -f "$ac_file" || continue
3340 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3343 # We found the default executable, but exeext='' is most
3347 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3349 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3351 # We set ac_cv_exeext here because the later test for it is not
3352 # safe: cross compilers may not add the suffix if given an `-o'
3353 # argument, so we may need to know it at that point already.
3354 # Even if this section looks crufty: it has the advantage of
3361 test "$ac_cv_exeext" = no && ac_cv_exeext=
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3367 $as_echo "$ac_file" >&6; }
3368 if test -z "$ac_file"; then :
3369 $as_echo "$as_me: failed program was:" >&5
3370 sed 's/^/| /' conftest.$ac_ext >&5
3372 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3374 { as_fn_set_status 77
3375 as_fn_error "C compiler cannot create executables
3376 See \`config.log' for more details." "$LINENO" 5; }; }
3378 ac_exeext=$ac_cv_exeext
3380 # Check that the compiler produces executables we can run. If not, either
3381 # the compiler is broken, or we cross compile.
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3383 $as_echo_n "checking whether the C compiler works... " >&6; }
3384 # If not cross compiling, check that we can run a simple program.
3385 if test "$cross_compiling" != yes; then
3386 if { ac_try='./$ac_file'
3387 { { case "(($ac_try" in
3388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389 *) ac_try_echo=$ac_try;;
3391 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3392 $as_echo "$ac_try_echo"; } >&5
3393 (eval "$ac_try") 2>&5
3395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3396 test $ac_status = 0; }; }; then
3399 if test "$cross_compiling" = maybe; then
3402 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3403 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3404 as_fn_error "cannot run C compiled programs.
3405 If you meant to cross compile, use \`--host'.
3406 See \`config.log' for more details." "$LINENO" 5; }
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3411 $as_echo "yes" >&6; }
3413 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3414 ac_clean_files=$ac_clean_files_save
3415 # Check that the compiler produces executables we can run. If not, either
3416 # the compiler is broken, or we cross compile.
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3418 $as_echo_n "checking whether we are cross compiling... " >&6; }
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3420 $as_echo "$cross_compiling" >&6; }
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3423 $as_echo_n "checking for suffix of executables... " >&6; }
3424 if { { ac_try="$ac_link"
3426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427 *) ac_try_echo=$ac_try;;
3429 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3430 $as_echo "$ac_try_echo"; } >&5
3431 (eval "$ac_link") 2>&5
3433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3434 test $ac_status = 0; }; then :
3435 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3436 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3437 # work properly (i.e., refer to `conftest.exe'), while it won't with
3439 for ac_file in conftest.exe conftest conftest.*; do
3440 test -f "$ac_file" || continue
3442 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3443 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3449 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3451 as_fn_error "cannot compute suffix of executables: cannot compile and link
3452 See \`config.log' for more details." "$LINENO" 5; }
3454 rm -f conftest$ac_cv_exeext
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3456 $as_echo "$ac_cv_exeext" >&6; }
3458 rm -f conftest.$ac_ext
3459 EXEEXT=$ac_cv_exeext
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3462 $as_echo_n "checking for suffix of object files... " >&6; }
3463 if test "${ac_cv_objext+set}" = set; then :
3464 $as_echo_n "(cached) " >&6
3466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3467 /* end confdefs.h. */
3477 rm -f conftest.o conftest.obj
3478 if { { ac_try="$ac_compile"
3480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481 *) ac_try_echo=$ac_try;;
3483 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3484 $as_echo "$ac_try_echo"; } >&5
3485 (eval "$ac_compile") 2>&5
3487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3488 test $ac_status = 0; }; then :
3489 for ac_file in conftest.o conftest.obj conftest.*; do
3490 test -f "$ac_file" || continue;
3492 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3493 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3498 $as_echo "$as_me: failed program was:" >&5
3499 sed 's/^/| /' conftest.$ac_ext >&5
3501 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3502 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3503 as_fn_error "cannot compute suffix of object files: cannot compile
3504 See \`config.log' for more details." "$LINENO" 5; }
3506 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3509 $as_echo "$ac_cv_objext" >&6; }
3510 OBJEXT=$ac_cv_objext
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3513 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3514 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3515 $as_echo_n "(cached) " >&6
3517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518 /* end confdefs.h. */
3531 if ac_fn_c_try_compile "$LINENO"; then :
3536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3537 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3541 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3542 if test $ac_compiler_gnu = yes; then
3547 ac_test_CFLAGS=${CFLAGS+set}
3548 ac_save_CFLAGS=$CFLAGS
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3550 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3551 if test "${ac_cv_prog_cc_g+set}" = set; then :
3552 $as_echo_n "(cached) " >&6
3554 ac_save_c_werror_flag=$ac_c_werror_flag
3555 ac_c_werror_flag=yes
3558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559 /* end confdefs.h. */
3569 if ac_fn_c_try_compile "$LINENO"; then :
3573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574 /* end confdefs.h. */
3584 if ac_fn_c_try_compile "$LINENO"; then :
3587 ac_c_werror_flag=$ac_save_c_werror_flag
3589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3590 /* end confdefs.h. */
3600 if ac_fn_c_try_compile "$LINENO"; then :
3603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3608 ac_c_werror_flag=$ac_save_c_werror_flag
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3611 $as_echo "$ac_cv_prog_cc_g" >&6; }
3612 if test "$ac_test_CFLAGS" = set; then
3613 CFLAGS=$ac_save_CFLAGS
3614 elif test $ac_cv_prog_cc_g = yes; then
3615 if test "$GCC" = yes; then
3621 if test "$GCC" = yes; then
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3628 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3629 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3630 $as_echo_n "(cached) " >&6
3632 ac_cv_prog_cc_c89=no
3634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3635 /* end confdefs.h. */
3638 #include <sys/types.h>
3639 #include <sys/stat.h>
3640 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3641 struct buf { int x; };
3642 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3643 static char *e (p, i)
3649 static char *f (char * (*g) (char **, int), char **p, ...)
3654 s = g (p, va_arg (v,int));
3659 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3660 function prototypes and stuff, but not '\xHH' hex character constants.
3661 These don't provoke an error unfortunately, instead are silently treated
3662 as 'x'. The following induces an error, until -std is added to get
3663 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3664 array size at least. It's necessary to write '\x00'==0 to get something
3665 that's true only with -std. */
3666 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3668 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3669 inside strings and character constants. */
3671 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3673 int test (int i, double x);
3674 struct s1 {int (*f) (int a);};
3675 struct s2 {int (*f) (double a);};
3676 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3682 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3687 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3688 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3690 CC="$ac_save_CC $ac_arg"
3691 if ac_fn_c_try_compile "$LINENO"; then :
3692 ac_cv_prog_cc_c89=$ac_arg
3694 rm -f core conftest.err conftest.$ac_objext
3695 test "x$ac_cv_prog_cc_c89" != "xno" && break
3697 rm -f conftest.$ac_ext
3702 case "x$ac_cv_prog_cc_c89" in
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3705 $as_echo "none needed" >&6; } ;;
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3708 $as_echo "unsupported" >&6; } ;;
3710 CC="$CC $ac_cv_prog_cc_c89"
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3712 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3714 if test "x$ac_cv_prog_cc_c89" != xno; then :
3719 ac_cpp='$CPP $CPPFLAGS'
3720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3723 DEPDIR="${am__leading_dot}deps"
3725 ac_config_commands="$ac_config_commands depfiles"
3728 am_make=${MAKE-make}
3729 cat > confinc << 'END'
3731 @echo this is the am__doit target
3734 # If we don't find an include directive, just comment out the code.
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3736 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3740 # First try GNU make style include.
3741 echo "include confinc" > confmf
3742 # Ignore all kinds of additional output from `make'.
3743 case `$am_make -s -f confmf 2> /dev/null` in #(
3744 *the\ am__doit\ target*)
3750 # Now try BSD make style include.
3751 if test "$am__include" = "#"; then
3752 echo '.include "confinc"' > confmf
3753 case `$am_make -s -f confmf 2> /dev/null` in #(
3754 *the\ am__doit\ target*)
3755 am__include=.include
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3764 $as_echo "$_am_result" >&6; }
3765 rm -f confinc confmf
3767 # Check whether --enable-dependency-tracking was given.
3768 if test "${enable_dependency_tracking+set}" = set; then :
3769 enableval=$enable_dependency_tracking;
3772 if test "x$enable_dependency_tracking" != xno; then
3773 am_depcomp="$ac_aux_dir/depcomp"
3776 if test "x$enable_dependency_tracking" != xno; then
3786 depcc="$CC" am_compiler_list=
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3789 $as_echo_n "checking dependency style of $depcc... " >&6; }
3790 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3791 $as_echo_n "(cached) " >&6
3793 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3794 # We make a subdir and do the tests there. Otherwise we can end up
3795 # making bogus files that we don't know about and never remove. For
3796 # instance it was reported that on HP-UX the gcc test will end up
3797 # making a dummy file named `D' -- because `-MD' means `put the output
3800 # Copy depcomp to subdir because otherwise we won't find it if we're
3801 # using a relative directory.
3802 cp "$am_depcomp" conftest.dir
3804 # We will build objects and dependencies in a subdirectory because
3805 # it helps to detect inapplicable dependency modes. For instance
3806 # both Tru64's cc and ICC support -MD to output dependencies as a
3807 # side effect of compilation, but ICC will put the dependencies in
3808 # the current directory while Tru64 will put them in the object
3812 am_cv_CC_dependencies_compiler_type=none
3813 if test "$am_compiler_list" = ""; then
3814 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3817 case " $depcc " in #(
3818 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3821 for depmode in $am_compiler_list; do
3822 # Setup a source with many dependencies, because some compilers
3823 # like to wrap large dependency lists on column 80 (with \), and
3824 # we should not choose a depcomp mode which is confused by this.
3826 # We need to recreate these files for each test, as the compiler may
3827 # overwrite some of them when testing with obscure command lines.
3828 # This happens at least with the AIX C compiler.
3830 for i in 1 2 3 4 5 6; do
3831 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3832 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3833 # Solaris 8's {/usr,}/bin/sh.
3834 touch sub/conftst$i.h
3836 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3838 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3839 # mode. It turns out that the SunPro C++ compiler does not properly
3840 # handle `-M -o', and we need to detect this. Also, some Intel
3841 # versions had trouble with output in subdirs
3842 am__obj=sub/conftest.${OBJEXT-o}
3843 am__minus_obj="-o $am__obj"
3846 # This depmode causes a compiler race in universal mode.
3847 test "$am__universal" = false || continue
3850 # after this tag, mechanisms are not by side-effect, so they'll
3851 # only be used when explicitly requested
3852 if test "x$enable_dependency_tracking" = xyes; then
3858 msvisualcpp | msvcmsys)
3859 # This compiler won't grok `-c -o', but also, the minuso test has
3860 # not run yet. These depmodes are late enough in the game, and
3861 # so weak that their functioning should not be impacted.
3862 am__obj=conftest.${OBJEXT-o}
3867 if depmode=$depmode \
3868 source=sub/conftest.c object=$am__obj \
3869 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3870 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3871 >/dev/null 2>conftest.err &&
3872 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3873 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3874 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3875 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3876 # icc doesn't choke on unknown options, it will just issue warnings
3877 # or remarks (even with -Werror). So we grep stderr for any message
3878 # that says an option was ignored or not supported.
3879 # When given -MP, icc 7.0 and 7.1 complain thusly:
3880 # icc: Command line warning: ignoring option '-M'; no argument required
3881 # The diagnosis changed in icc 8.0:
3882 # icc: Command line remark: option '-MP' not supported
3883 if (grep 'ignoring option' conftest.err ||
3884 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3885 am_cv_CC_dependencies_compiler_type=$depmode
3894 am_cv_CC_dependencies_compiler_type=none
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3899 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3900 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3903 test "x$enable_dependency_tracking" != xno \
3904 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3906 am__fastdepCC_FALSE='#'
3908 am__fastdepCC_TRUE='#'
3909 am__fastdepCC_FALSE=
3914 ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
3915 ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3917 if test -n "$ac_tool_prefix"; then
3918 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
3919 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3921 $as_echo_n "checking for $ac_word... " >&6; }
3922 if test "${ac_cv_prog_GOC+set}" = set; then :
3923 $as_echo_n "(cached) " >&6
3925 if test -n "$GOC"; then
3926 ac_cv_prog_GOC="$GOC" # Let the user override the test.
3928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3932 test -z "$as_dir" && as_dir=.
3933 for ac_exec_ext in '' $ac_executable_extensions; do
3934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3935 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
3936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3946 if test -n "$GOC"; then
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
3948 $as_echo "$GOC" >&6; }
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3951 $as_echo "no" >&6; }
3956 if test -z "$ac_cv_prog_GOC"; then
3958 # Extract the first word of "gccgo", so it can be a program name with args.
3959 set dummy gccgo; ac_word=$2
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3961 $as_echo_n "checking for $ac_word... " >&6; }
3962 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
3963 $as_echo_n "(cached) " >&6
3965 if test -n "$ac_ct_GOC"; then
3966 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
3968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972 test -z "$as_dir" && as_dir=.
3973 for ac_exec_ext in '' $ac_executable_extensions; do
3974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3975 ac_cv_prog_ac_ct_GOC="gccgo"
3976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3985 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
3986 if test -n "$ac_ct_GOC"; then
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
3988 $as_echo "$ac_ct_GOC" >&6; }
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3991 $as_echo "no" >&6; }
3994 if test "x$ac_ct_GOC" = x; then
3997 case $cross_compiling:$ac_tool_warned in
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4001 ac_tool_warned=yes ;;
4006 GOC="$ac_cv_prog_GOC"
4009 if test -z "$GOC"; then
4010 if test -n "$ac_tool_prefix"; then
4011 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4012 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4014 $as_echo_n "checking for $ac_word... " >&6; }
4015 if test "${ac_cv_prog_GOC+set}" = set; then :
4016 $as_echo_n "(cached) " >&6
4018 if test -n "$GOC"; then
4019 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025 test -z "$as_dir" && as_dir=.
4026 for ac_exec_ext in '' $ac_executable_extensions; do
4027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4028 ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4039 if test -n "$GOC"; then
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4041 $as_echo "$GOC" >&6; }
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4044 $as_echo "no" >&6; }
4050 if test -z "$GOC"; then
4051 # Extract the first word of "gccgo", so it can be a program name with args.
4052 set dummy gccgo; ac_word=$2
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4054 $as_echo_n "checking for $ac_word... " >&6; }
4055 if test "${ac_cv_prog_GOC+set}" = set; then :
4056 $as_echo_n "(cached) " >&6
4058 if test -n "$GOC"; then
4059 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4066 test -z "$as_dir" && as_dir=.
4067 for ac_exec_ext in '' $ac_executable_extensions; do
4068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4069 if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
4070 ac_prog_rejected=yes
4073 ac_cv_prog_GOC="gccgo"
4074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4081 if test $ac_prog_rejected = yes; then
4082 # We found a bogon in the path, so make sure we never use it.
4083 set dummy $ac_cv_prog_GOC
4085 if test $# != 0; then
4086 # We chose a different compiler from the bogus one.
4087 # However, it has the same basename, so the bogon will be chosen
4088 # first if we set GOC to just the basename; use the full file name.
4090 ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4096 if test -n "$GOC"; then
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4098 $as_echo "$GOC" >&6; }
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4101 $as_echo "no" >&6; }
4108 # Provide some information about the compiler.
4109 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4112 { { ac_try="$ac_compiler --version >&5"
4114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115 *) ac_try_echo=$ac_try;;
4117 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4118 $as_echo "$ac_try_echo"; } >&5
4119 (eval "$ac_compiler --version >&5") 2>conftest.err
4121 if test -s conftest.err; then
4123 ... rest of stderr output deleted ...
4124 10q' conftest.err >conftest.er1
4125 cat conftest.er1 >&5
4126 rm -f conftest.er1 conftest.err
4128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4129 test $ac_status = 0; }
4132 ac_cpp='$CPP $CPPFLAGS'
4133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4143 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4144 # Check whether --enable-maintainer-mode was given.
4145 if test "${enable_maintainer_mode+set}" = set; then :
4146 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4148 USE_MAINTAINER_MODE=no
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4152 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4153 if test $USE_MAINTAINER_MODE = yes; then
4154 MAINTAINER_MODE_TRUE=
4155 MAINTAINER_MODE_FALSE='#'
4157 MAINTAINER_MODE_TRUE='#'
4158 MAINTAINER_MODE_FALSE=
4161 MAINT=$MAINTAINER_MODE_TRUE
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4166 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4167 if test "${ac_cv_path_SED+set}" = set; then :
4168 $as_echo_n "(cached) " >&6
4170 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4171 for ac_i in 1 2 3 4 5 6 7; do
4172 ac_script="$ac_script$as_nl$ac_script"
4174 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4175 { ac_script=; unset ac_script;}
4176 if test -z "$SED"; then
4177 ac_path_SED_found=false
4178 # Loop through the user's path and test for each of PROGNAME-LIST
4179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183 test -z "$as_dir" && as_dir=.
4184 for ac_prog in sed gsed; do
4185 for ac_exec_ext in '' $ac_executable_extensions; do
4186 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4187 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4188 # Check for GNU ac_path_SED and select it if it is found.
4189 # Check for GNU $ac_path_SED
4190 case `"$ac_path_SED" --version 2>&1` in
4192 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4195 $as_echo_n 0123456789 >"conftest.in"
4198 cat "conftest.in" "conftest.in" >"conftest.tmp"
4199 mv "conftest.tmp" "conftest.in"
4200 cp "conftest.in" "conftest.nl"
4201 $as_echo '' >> "conftest.nl"
4202 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4203 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4204 as_fn_arith $ac_count + 1 && ac_count=$as_val
4205 if test $ac_count -gt ${ac_path_SED_max-0}; then
4206 # Best one so far, save it but keep looking for a better one
4207 ac_cv_path_SED="$ac_path_SED"
4208 ac_path_SED_max=$ac_count
4210 # 10*(2^10) chars as input seems more than enough
4211 test $ac_count -gt 10 && break
4213 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4216 $ac_path_SED_found && break 3
4221 if test -z "$ac_cv_path_SED"; then
4222 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4230 $as_echo "$ac_cv_path_SED" >&6; }
4231 SED="$ac_cv_path_SED"
4234 test -z "$SED" && SED=sed
4235 Xsed="$SED -e 1s/^X//"
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4248 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4249 if test "${ac_cv_path_GREP+set}" = set; then :
4250 $as_echo_n "(cached) " >&6
4252 if test -z "$GREP"; then
4253 ac_path_GREP_found=false
4254 # Loop through the user's path and test for each of PROGNAME-LIST
4255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4259 test -z "$as_dir" && as_dir=.
4260 for ac_prog in grep ggrep; do
4261 for ac_exec_ext in '' $ac_executable_extensions; do
4262 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4263 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4264 # Check for GNU ac_path_GREP and select it if it is found.
4265 # Check for GNU $ac_path_GREP
4266 case `"$ac_path_GREP" --version 2>&1` in
4268 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4271 $as_echo_n 0123456789 >"conftest.in"
4274 cat "conftest.in" "conftest.in" >"conftest.tmp"
4275 mv "conftest.tmp" "conftest.in"
4276 cp "conftest.in" "conftest.nl"
4277 $as_echo 'GREP' >> "conftest.nl"
4278 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4279 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4280 as_fn_arith $ac_count + 1 && ac_count=$as_val
4281 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4282 # Best one so far, save it but keep looking for a better one
4283 ac_cv_path_GREP="$ac_path_GREP"
4284 ac_path_GREP_max=$ac_count
4286 # 10*(2^10) chars as input seems more than enough
4287 test $ac_count -gt 10 && break
4289 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4292 $ac_path_GREP_found && break 3
4297 if test -z "$ac_cv_path_GREP"; then
4298 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4301 ac_cv_path_GREP=$GREP
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4306 $as_echo "$ac_cv_path_GREP" >&6; }
4307 GREP="$ac_cv_path_GREP"
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4311 $as_echo_n "checking for egrep... " >&6; }
4312 if test "${ac_cv_path_EGREP+set}" = set; then :
4313 $as_echo_n "(cached) " >&6
4315 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4316 then ac_cv_path_EGREP="$GREP -E"
4318 if test -z "$EGREP"; then
4319 ac_path_EGREP_found=false
4320 # Loop through the user's path and test for each of PROGNAME-LIST
4321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4325 test -z "$as_dir" && as_dir=.
4326 for ac_prog in egrep; do
4327 for ac_exec_ext in '' $ac_executable_extensions; do
4328 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4329 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4330 # Check for GNU ac_path_EGREP and select it if it is found.
4331 # Check for GNU $ac_path_EGREP
4332 case `"$ac_path_EGREP" --version 2>&1` in
4334 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4337 $as_echo_n 0123456789 >"conftest.in"
4340 cat "conftest.in" "conftest.in" >"conftest.tmp"
4341 mv "conftest.tmp" "conftest.in"
4342 cp "conftest.in" "conftest.nl"
4343 $as_echo 'EGREP' >> "conftest.nl"
4344 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4345 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4346 as_fn_arith $ac_count + 1 && ac_count=$as_val
4347 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4348 # Best one so far, save it but keep looking for a better one
4349 ac_cv_path_EGREP="$ac_path_EGREP"
4350 ac_path_EGREP_max=$ac_count
4352 # 10*(2^10) chars as input seems more than enough
4353 test $ac_count -gt 10 && break
4355 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4358 $ac_path_EGREP_found && break 3
4363 if test -z "$ac_cv_path_EGREP"; then
4364 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4367 ac_cv_path_EGREP=$EGREP
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4373 $as_echo "$ac_cv_path_EGREP" >&6; }
4374 EGREP="$ac_cv_path_EGREP"
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4378 $as_echo_n "checking for fgrep... " >&6; }
4379 if test "${ac_cv_path_FGREP+set}" = set; then :
4380 $as_echo_n "(cached) " >&6
4382 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4383 then ac_cv_path_FGREP="$GREP -F"
4385 if test -z "$FGREP"; then
4386 ac_path_FGREP_found=false
4387 # Loop through the user's path and test for each of PROGNAME-LIST
4388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4389 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4392 test -z "$as_dir" && as_dir=.
4393 for ac_prog in fgrep; do
4394 for ac_exec_ext in '' $ac_executable_extensions; do
4395 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4396 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4397 # Check for GNU ac_path_FGREP and select it if it is found.
4398 # Check for GNU $ac_path_FGREP
4399 case `"$ac_path_FGREP" --version 2>&1` in
4401 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4404 $as_echo_n 0123456789 >"conftest.in"
4407 cat "conftest.in" "conftest.in" >"conftest.tmp"
4408 mv "conftest.tmp" "conftest.in"
4409 cp "conftest.in" "conftest.nl"
4410 $as_echo 'FGREP' >> "conftest.nl"
4411 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4412 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4413 as_fn_arith $ac_count + 1 && ac_count=$as_val
4414 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4415 # Best one so far, save it but keep looking for a better one
4416 ac_cv_path_FGREP="$ac_path_FGREP"
4417 ac_path_FGREP_max=$ac_count
4419 # 10*(2^10) chars as input seems more than enough
4420 test $ac_count -gt 10 && break
4422 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4425 $ac_path_FGREP_found && break 3
4430 if test -z "$ac_cv_path_FGREP"; then
4431 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4434 ac_cv_path_FGREP=$FGREP
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4440 $as_echo "$ac_cv_path_FGREP" >&6; }
4441 FGREP="$ac_cv_path_FGREP"
4444 test -z "$GREP" && GREP=grep
4462 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4463 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4464 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4467 $as_echo_n "checking how to print strings... " >&6; }
4468 # Test print first, because it will be a builtin if present.
4469 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4470 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4472 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4475 # Use this function as a fallback that always works.
4476 func_fallback_echo ()
4478 eval 'cat <<_LTECHO_EOF
4482 ECHO='func_fallback_echo'
4485 # func_echo_all arg...
4486 # Invoke $ECHO with all args, space-separated.
4493 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4494 $as_echo "printf" >&6; } ;;
4495 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4496 $as_echo "print -r" >&6; } ;;
4497 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4498 $as_echo "cat" >&6; } ;;
4516 # Check whether --with-gnu-ld was given.
4517 if test "${with_gnu_ld+set}" = set; then :
4518 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4524 if test "$GCC" = yes; then
4525 # Check if gcc -print-prog-name=ld gives a path.
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4527 $as_echo_n "checking for ld used by $CC... " >&6; }
4530 # gcc leaves a trailing carriage return which upsets mingw
4531 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4533 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4536 # Accept absolute paths.
4538 re_direlt='/[^/][^/]*/\.\./'
4539 # Canonicalize the pathname of ld
4540 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4541 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4542 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4544 test -z "$LD" && LD="$ac_prog"
4547 # If it fails, then pretend we aren't using GCC.
4551 # If it is relative, then search for the first ld in PATH.
4555 elif test "$with_gnu_ld" = yes; then
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4557 $as_echo_n "checking for GNU ld... " >&6; }
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4560 $as_echo_n "checking for non-GNU ld... " >&6; }
4562 if test "${lt_cv_path_LD+set}" = set; then :
4563 $as_echo_n "(cached) " >&6
4565 if test -z "$LD"; then
4566 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4567 for ac_dir in $PATH; do
4569 test -z "$ac_dir" && ac_dir=.
4570 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4571 lt_cv_path_LD="$ac_dir/$ac_prog"
4572 # Check to see if the program is GNU ld. I'd rather use --version,
4573 # but apparently some variants of GNU ld only accept -v.
4574 # Break only if it was the GNU/non-GNU ld that we prefer.
4575 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4576 *GNU* | *'with BFD'*)
4577 test "$with_gnu_ld" != no && break
4580 test "$with_gnu_ld" != yes && break
4587 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4592 if test -n "$LD"; then
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4594 $as_echo "$LD" >&6; }
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4597 $as_echo "no" >&6; }
4599 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4601 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4602 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4603 $as_echo_n "(cached) " >&6
4605 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4606 case `$LD -v 2>&1 </dev/null` in
4607 *GNU* | *'with BFD'*)
4608 lt_cv_prog_gnu_ld=yes
4611 lt_cv_prog_gnu_ld=no
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4616 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4617 with_gnu_ld=$lt_cv_prog_gnu_ld
4627 if test -n "$ac_tool_prefix"; then
4628 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4629 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4631 $as_echo_n "checking for $ac_word... " >&6; }
4632 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4633 $as_echo_n "(cached) " >&6
4635 if test -n "$RANLIB"; then
4636 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642 test -z "$as_dir" && as_dir=.
4643 for ac_exec_ext in '' $ac_executable_extensions; do
4644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4645 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4655 RANLIB=$ac_cv_prog_RANLIB
4656 if test -n "$RANLIB"; then
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4658 $as_echo "$RANLIB" >&6; }
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4661 $as_echo "no" >&6; }
4666 if test -z "$ac_cv_prog_RANLIB"; then
4667 ac_ct_RANLIB=$RANLIB
4668 # Extract the first word of "ranlib", so it can be a program name with args.
4669 set dummy ranlib; ac_word=$2
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4671 $as_echo_n "checking for $ac_word... " >&6; }
4672 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4673 $as_echo_n "(cached) " >&6
4675 if test -n "$ac_ct_RANLIB"; then
4676 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4682 test -z "$as_dir" && as_dir=.
4683 for ac_exec_ext in '' $ac_executable_extensions; do
4684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4685 ac_cv_prog_ac_ct_RANLIB="ranlib"
4686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4695 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4696 if test -n "$ac_ct_RANLIB"; then
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4698 $as_echo "$ac_ct_RANLIB" >&6; }
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4701 $as_echo "no" >&6; }
4704 if test "x$ac_ct_RANLIB" = x; then
4707 case $cross_compiling:$ac_tool_warned in
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4710 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4711 ac_tool_warned=yes ;;
4713 RANLIB=$ac_ct_RANLIB
4716 RANLIB="$ac_cv_prog_RANLIB"
4719 if test -n "$ac_tool_prefix"; then
4720 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
4721 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4723 $as_echo_n "checking for $ac_word... " >&6; }
4724 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
4725 $as_echo_n "(cached) " >&6
4727 if test -n "$OBJCOPY"; then
4728 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734 test -z "$as_dir" && as_dir=.
4735 for ac_exec_ext in '' $ac_executable_extensions; do
4736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4737 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
4738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4747 OBJCOPY=$ac_cv_prog_OBJCOPY
4748 if test -n "$OBJCOPY"; then
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
4750 $as_echo "$OBJCOPY" >&6; }
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4753 $as_echo "no" >&6; }
4758 if test -z "$ac_cv_prog_OBJCOPY"; then
4759 ac_ct_OBJCOPY=$OBJCOPY
4760 # Extract the first word of "objcopy", so it can be a program name with args.
4761 set dummy objcopy; ac_word=$2
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4763 $as_echo_n "checking for $ac_word... " >&6; }
4764 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
4765 $as_echo_n "(cached) " >&6
4767 if test -n "$ac_ct_OBJCOPY"; then
4768 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
4770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4774 test -z "$as_dir" && as_dir=.
4775 for ac_exec_ext in '' $ac_executable_extensions; do
4776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4777 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
4778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4787 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
4788 if test -n "$ac_ct_OBJCOPY"; then
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
4790 $as_echo "$ac_ct_OBJCOPY" >&6; }
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4793 $as_echo "no" >&6; }
4796 if test "x$ac_ct_OBJCOPY" = x; then
4797 OBJCOPY="missing-objcopy"
4799 case $cross_compiling:$ac_tool_warned in
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4802 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4803 ac_tool_warned=yes ;;
4805 OBJCOPY=$ac_ct_OBJCOPY
4808 OBJCOPY="$ac_cv_prog_OBJCOPY"
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4819 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4824 macro_version='2.2.7a'
4825 macro_revision='1.3134'
4839 ltmain="$ac_aux_dir/ltmain.sh"
4841 # Backslashify metacharacters that are still active within
4842 # double-quoted strings.
4843 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4845 # Same as above, but do not quote variable references.
4846 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4848 # Sed substitution to delay expansion of an escaped shell variable in a
4849 # double_quote_subst'ed string.
4850 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4852 # Sed substitution to delay expansion of an escaped single quote.
4853 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4855 # Sed substitution to avoid accidental globbing in evaled expressions
4856 no_glob_subst='s/\*/\\\*/g'
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4859 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4860 if test "${lt_cv_path_NM+set}" = set; then :
4861 $as_echo_n "(cached) " >&6
4863 if test -n "$NM"; then
4864 # Let the user override the test.
4867 lt_nm_to_check="${ac_tool_prefix}nm"
4868 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4869 lt_nm_to_check="$lt_nm_to_check nm"
4871 for lt_tmp_nm in $lt_nm_to_check; do
4872 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4873 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4875 test -z "$ac_dir" && ac_dir=.
4876 tmp_nm="$ac_dir/$lt_tmp_nm"
4877 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4878 # Check to see if the nm accepts a BSD-compat flag.
4879 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4880 # nm: unknown option "B" ignored
4881 # Tru64's nm complains that /dev/null is an invalid object file
4882 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4883 */dev/null* | *'Invalid file or object type'*)
4884 lt_cv_path_NM="$tmp_nm -B"
4888 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4890 lt_cv_path_NM="$tmp_nm -p"
4894 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4895 continue # so that we can try to find one that supports BSD flags
4904 : ${lt_cv_path_NM=no}
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4908 $as_echo "$lt_cv_path_NM" >&6; }
4909 if test "$lt_cv_path_NM" != "no"; then
4912 # Didn't find any BSD compatible name lister, look for dumpbin.
4913 if test -n "$DUMPBIN"; then :
4914 # Let the user override the test.
4916 if test -n "$ac_tool_prefix"; then
4917 for ac_prog in dumpbin "link -dump"
4919 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4920 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4922 $as_echo_n "checking for $ac_word... " >&6; }
4923 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4924 $as_echo_n "(cached) " >&6
4926 if test -n "$DUMPBIN"; then
4927 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4933 test -z "$as_dir" && as_dir=.
4934 for ac_exec_ext in '' $ac_executable_extensions; do
4935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4936 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4946 DUMPBIN=$ac_cv_prog_DUMPBIN
4947 if test -n "$DUMPBIN"; then
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4949 $as_echo "$DUMPBIN" >&6; }
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4952 $as_echo "no" >&6; }
4956 test -n "$DUMPBIN" && break
4959 if test -z "$DUMPBIN"; then
4960 ac_ct_DUMPBIN=$DUMPBIN
4961 for ac_prog in dumpbin "link -dump"
4963 # Extract the first word of "$ac_prog", so it can be a program name with args.
4964 set dummy $ac_prog; ac_word=$2
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4966 $as_echo_n "checking for $ac_word... " >&6; }
4967 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4968 $as_echo_n "(cached) " >&6
4970 if test -n "$ac_ct_DUMPBIN"; then
4971 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977 test -z "$as_dir" && as_dir=.
4978 for ac_exec_ext in '' $ac_executable_extensions; do
4979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4980 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4990 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4991 if test -n "$ac_ct_DUMPBIN"; then
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4993 $as_echo "$ac_ct_DUMPBIN" >&6; }
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4996 $as_echo "no" >&6; }
5000 test -n "$ac_ct_DUMPBIN" && break
5003 if test "x$ac_ct_DUMPBIN" = x; then
5006 case $cross_compiling:$ac_tool_warned in
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5009 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5010 ac_tool_warned=yes ;;
5012 DUMPBIN=$ac_ct_DUMPBIN
5016 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5018 DUMPBIN="$DUMPBIN -symbols"
5026 if test "$DUMPBIN" != ":"; then
5030 test -z "$NM" && NM=nm
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5038 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5039 if test "${lt_cv_nm_interface+set}" = set; then :
5040 $as_echo_n "(cached) " >&6
5042 lt_cv_nm_interface="BSD nm"
5043 echo "int some_variable = 0;" > conftest.$ac_ext
5044 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5045 (eval "$ac_compile" 2>conftest.err)
5046 cat conftest.err >&5
5047 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5048 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5049 cat conftest.err >&5
5050 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5051 cat conftest.out >&5
5052 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5053 lt_cv_nm_interface="MS dumpbin"
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5058 $as_echo "$lt_cv_nm_interface" >&6; }
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5061 $as_echo_n "checking whether ln -s works... " >&6; }
5063 if test "$LN_S" = "ln -s"; then
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5065 $as_echo "yes" >&6; }
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5068 $as_echo "no, using $LN_S" >&6; }
5071 # find the maximum length of command line arguments
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5073 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5074 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5075 $as_echo_n "(cached) " >&6
5082 # On DJGPP, this test can blow up pretty badly due to problems in libc
5083 # (any single argument exceeding 2000 bytes causes a buffer overrun
5084 # during glob expansion). Even if it were fixed, the result of this
5085 # check would be larger than it should be.
5086 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5090 # Under GNU Hurd, this test is not required because there is
5091 # no limit to the length of command line arguments.
5092 # Libtool will interpret -1 as no limit whatsoever
5093 lt_cv_sys_max_cmd_len=-1;
5096 cygwin* | mingw* | cegcc*)
5097 # On Win9x/ME, this test blows up -- it succeeds, but takes
5098 # about 5 minutes as the teststring grows exponentially.
5099 # Worse, since 9x/ME are not pre-emptively multitasking,
5100 # you end up with a "frozen" computer, even though with patience
5101 # the test eventually succeeds (with a max line length of 256k).
5102 # Instead, let's just punt: use the minimum linelength reported by
5103 # all of the supported platforms: 8192 (on NT/2K/XP).
5104 lt_cv_sys_max_cmd_len=8192;
5108 # On MiNT this can take a long time and run out of memory.
5109 lt_cv_sys_max_cmd_len=8192;
5113 # On AmigaOS with pdksh, this test takes hours, literally.
5114 # So we just punt and use a minimum line length of 8192.
5115 lt_cv_sys_max_cmd_len=8192;
5118 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5119 # This has been around since 386BSD, at least. Likely further.
5120 if test -x /sbin/sysctl; then
5121 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5122 elif test -x /usr/sbin/sysctl; then
5123 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5125 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5127 # And add a safety zone
5128 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5129 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5133 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5134 lt_cv_sys_max_cmd_len=196608
5138 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5139 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5140 # nice to cause kernel panics so lets avoid the loop below.
5141 # First set a reasonable default.
5142 lt_cv_sys_max_cmd_len=16384
5144 if test -x /sbin/sysconfig; then
5145 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5146 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5151 lt_cv_sys_max_cmd_len=102400
5153 sysv5* | sco5v6* | sysv4.2uw2*)
5154 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5155 if test -n "$kargmax"; then
5156 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5158 lt_cv_sys_max_cmd_len=32768
5162 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5163 if test -n "$lt_cv_sys_max_cmd_len"; then
5164 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5165 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5167 # Make teststring a little bigger before we do anything with it.
5168 # a 1K string should be a reasonable start.
5169 for i in 1 2 3 4 5 6 7 8 ; do
5170 teststring=$teststring$teststring
5172 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5173 # If test is not a shell built-in, we'll probably end up computing a
5174 # maximum length that is only half of the actual maximum length, but
5176 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5177 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5178 test $i != 17 # 1/2 MB should be enough
5181 teststring=$teststring$teststring
5183 # Only check the string length outside the loop.
5184 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5186 # Add a significant safety factor because C++ compilers can tack on
5187 # massive amounts of additional arguments before passing them to the
5188 # linker. It appears as though 1/2 is a usable value.
5189 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5196 if test -n $lt_cv_sys_max_cmd_len ; then
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5198 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5201 $as_echo "none" >&6; }
5203 max_cmd_len=$lt_cv_sys_max_cmd_len
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5215 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5216 # Try some XSI features
5219 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5221 && eval 'test $(( 1 + 1 )) -eq 2 \
5222 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5225 $as_echo "$xsi_shell" >&6; }
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5229 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5231 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5233 && lt_shell_append=yes
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5235 $as_echo "$lt_shell_append" >&6; }
5238 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5248 # test EBCDIC or ASCII
5249 case `echo X|tr X '\101'` in
5250 A) # ASCII based system
5251 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5252 lt_SP2NL='tr \040 \012'
5253 lt_NL2SP='tr \015\012 \040\040'
5255 *) # EBCDIC based system
5256 lt_SP2NL='tr \100 \n'
5257 lt_NL2SP='tr \r\n \100\100'
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5270 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5271 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5272 $as_echo_n "(cached) " >&6
5274 lt_cv_ld_reload_flag='-r'
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5277 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5278 reload_flag=$lt_cv_ld_reload_flag
5279 case $reload_flag in
5281 *) reload_flag=" $reload_flag" ;;
5283 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5286 if test "$GCC" = yes; then
5287 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5289 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5302 if test -n "$ac_tool_prefix"; then
5303 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5304 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5306 $as_echo_n "checking for $ac_word... " >&6; }
5307 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5308 $as_echo_n "(cached) " >&6
5310 if test -n "$OBJDUMP"; then
5311 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5317 test -z "$as_dir" && as_dir=.
5318 for ac_exec_ext in '' $ac_executable_extensions; do
5319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5320 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5330 OBJDUMP=$ac_cv_prog_OBJDUMP
5331 if test -n "$OBJDUMP"; then
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5333 $as_echo "$OBJDUMP" >&6; }
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5336 $as_echo "no" >&6; }
5341 if test -z "$ac_cv_prog_OBJDUMP"; then
5342 ac_ct_OBJDUMP=$OBJDUMP
5343 # Extract the first word of "objdump", so it can be a program name with args.
5344 set dummy objdump; ac_word=$2
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5346 $as_echo_n "checking for $ac_word... " >&6; }
5347 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5348 $as_echo_n "(cached) " >&6
5350 if test -n "$ac_ct_OBJDUMP"; then
5351 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357 test -z "$as_dir" && as_dir=.
5358 for ac_exec_ext in '' $ac_executable_extensions; do
5359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5360 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5370 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5371 if test -n "$ac_ct_OBJDUMP"; then
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5373 $as_echo "$ac_ct_OBJDUMP" >&6; }
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5376 $as_echo "no" >&6; }
5379 if test "x$ac_ct_OBJDUMP" = x; then
5382 case $cross_compiling:$ac_tool_warned in
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5385 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5386 ac_tool_warned=yes ;;
5388 OBJDUMP=$ac_ct_OBJDUMP
5391 OBJDUMP="$ac_cv_prog_OBJDUMP"
5394 test -z "$OBJDUMP" && OBJDUMP=objdump
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5405 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5406 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5407 $as_echo_n "(cached) " >&6
5409 lt_cv_file_magic_cmd='$MAGIC_CMD'
5410 lt_cv_file_magic_test_file=
5411 lt_cv_deplibs_check_method='unknown'
5412 # Need to set the preceding variable on all platforms that support
5413 # interlibrary dependencies.
5414 # 'none' -- dependencies not supported.
5415 # `unknown' -- same as none, but documents that we really don't know.
5416 # 'pass_all' -- all dependencies passed with no checks.
5417 # 'test_compile' -- check by making test program.
5418 # 'file_magic [[regex]]' -- check by looking for files in library path
5419 # which responds to the $file_magic_cmd with a given extended regex.
5420 # If you have `file' or equivalent on your system and you're not sure
5421 # whether `pass_all' will *always* work, you probably want this one.
5425 lt_cv_deplibs_check_method=pass_all
5429 lt_cv_deplibs_check_method=pass_all
5433 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5434 lt_cv_file_magic_cmd='/usr/bin/file -L'
5435 lt_cv_file_magic_test_file=/shlib/libc.so
5439 # func_win32_libid is a shell function defined in ltmain.sh
5440 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5441 lt_cv_file_magic_cmd='func_win32_libid'
5445 # Base MSYS/MinGW do not provide the 'file' command needed by
5446 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5447 # unless we find 'file', for example because we are cross-compiling.
5448 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5449 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5450 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5451 lt_cv_file_magic_cmd='func_win32_libid'
5453 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5454 lt_cv_file_magic_cmd='$OBJDUMP -f'
5459 # use the weaker test based on 'objdump'. See mingw*.
5460 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5461 lt_cv_file_magic_cmd='$OBJDUMP -f'
5464 darwin* | rhapsody*)
5465 lt_cv_deplibs_check_method=pass_all
5468 freebsd* | dragonfly*)
5469 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5472 # Not sure whether the presence of OpenBSD here was a mistake.
5473 # Let's accept both of them until this is cleared up.
5474 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5475 lt_cv_file_magic_cmd=/usr/bin/file
5476 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5480 lt_cv_deplibs_check_method=pass_all
5485 lt_cv_deplibs_check_method=pass_all
5489 lt_cv_deplibs_check_method=pass_all
5492 hpux10.20* | hpux11*)
5493 lt_cv_file_magic_cmd=/usr/bin/file
5496 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5497 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5500 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]'
5501 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5504 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5505 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5511 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5512 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5515 irix5* | irix6* | nonstopux*)
5517 *-32|*"-32 ") libmagic=32-bit;;
5518 *-n32|*"-n32 ") libmagic=N32;;
5519 *-64|*"-64 ") libmagic=64-bit;;
5520 *) libmagic=never-match;;
5522 lt_cv_deplibs_check_method=pass_all
5525 # This must be Linux ELF.
5526 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5527 lt_cv_deplibs_check_method=pass_all
5531 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5532 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5534 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5539 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5540 lt_cv_file_magic_cmd=/usr/bin/file
5541 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5545 lt_cv_deplibs_check_method=pass_all
5549 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5550 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5552 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5556 osf3* | osf4* | osf5*)
5557 lt_cv_deplibs_check_method=pass_all
5561 lt_cv_deplibs_check_method=pass_all
5565 lt_cv_deplibs_check_method=pass_all
5568 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5569 lt_cv_deplibs_check_method=pass_all
5573 case $host_vendor in
5575 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]'
5576 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5579 lt_cv_deplibs_check_method=pass_all
5582 lt_cv_file_magic_cmd='/bin/file'
5583 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5586 lt_cv_file_magic_cmd='/bin/file'
5587 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5588 lt_cv_file_magic_test_file=/lib/libc.so
5591 lt_cv_deplibs_check_method=pass_all
5594 lt_cv_deplibs_check_method=pass_all
5600 lt_cv_deplibs_check_method=pass_all
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5606 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5607 file_magic_cmd=$lt_cv_file_magic_cmd
5608 deplibs_check_method=$lt_cv_deplibs_check_method
5609 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5622 if test -n "$ac_tool_prefix"; then
5623 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5624 set dummy ${ac_tool_prefix}ar; ac_word=$2
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5626 $as_echo_n "checking for $ac_word... " >&6; }
5627 if test "${ac_cv_prog_AR+set}" = set; then :
5628 $as_echo_n "(cached) " >&6
5630 if test -n "$AR"; then
5631 ac_cv_prog_AR="$AR" # Let the user override the test.
5633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5637 test -z "$as_dir" && as_dir=.
5638 for ac_exec_ext in '' $ac_executable_extensions; do
5639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5640 ac_cv_prog_AR="${ac_tool_prefix}ar"
5641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5651 if test -n "$AR"; then
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5653 $as_echo "$AR" >&6; }
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5656 $as_echo "no" >&6; }
5661 if test -z "$ac_cv_prog_AR"; then
5663 # Extract the first word of "ar", so it can be a program name with args.
5664 set dummy ar; ac_word=$2
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5666 $as_echo_n "checking for $ac_word... " >&6; }
5667 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5668 $as_echo_n "(cached) " >&6
5670 if test -n "$ac_ct_AR"; then
5671 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5677 test -z "$as_dir" && as_dir=.
5678 for ac_exec_ext in '' $ac_executable_extensions; do
5679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5680 ac_cv_prog_ac_ct_AR="ar"
5681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5690 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5691 if test -n "$ac_ct_AR"; then
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5693 $as_echo "$ac_ct_AR" >&6; }
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5696 $as_echo "no" >&6; }
5699 if test "x$ac_ct_AR" = x; then
5702 case $cross_compiling:$ac_tool_warned in
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5705 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5706 ac_tool_warned=yes ;;
5714 test -z "$AR" && AR=ar
5715 test -z "$AR_FLAGS" && AR_FLAGS=cru
5727 if test -n "$ac_tool_prefix"; then
5728 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5729 set dummy ${ac_tool_prefix}strip; ac_word=$2
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5731 $as_echo_n "checking for $ac_word... " >&6; }
5732 if test "${ac_cv_prog_STRIP+set}" = set; then :
5733 $as_echo_n "(cached) " >&6
5735 if test -n "$STRIP"; then
5736 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5742 test -z "$as_dir" && as_dir=.
5743 for ac_exec_ext in '' $ac_executable_extensions; do
5744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5745 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5755 STRIP=$ac_cv_prog_STRIP
5756 if test -n "$STRIP"; then
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5758 $as_echo "$STRIP" >&6; }
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5761 $as_echo "no" >&6; }
5766 if test -z "$ac_cv_prog_STRIP"; then
5768 # Extract the first word of "strip", so it can be a program name with args.
5769 set dummy strip; ac_word=$2
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5771 $as_echo_n "checking for $ac_word... " >&6; }
5772 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5773 $as_echo_n "(cached) " >&6
5775 if test -n "$ac_ct_STRIP"; then
5776 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5782 test -z "$as_dir" && as_dir=.
5783 for ac_exec_ext in '' $ac_executable_extensions; do
5784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5785 ac_cv_prog_ac_ct_STRIP="strip"
5786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5795 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5796 if test -n "$ac_ct_STRIP"; then
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5798 $as_echo "$ac_ct_STRIP" >&6; }
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5801 $as_echo "no" >&6; }
5804 if test "x$ac_ct_STRIP" = x; then
5807 case $cross_compiling:$ac_tool_warned in
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5810 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5811 ac_tool_warned=yes ;;
5816 STRIP="$ac_cv_prog_STRIP"
5819 test -z "$STRIP" && STRIP=:
5826 if test -n "$ac_tool_prefix"; then
5827 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5828 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5830 $as_echo_n "checking for $ac_word... " >&6; }
5831 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5832 $as_echo_n "(cached) " >&6
5834 if test -n "$RANLIB"; then
5835 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5841 test -z "$as_dir" && as_dir=.
5842 for ac_exec_ext in '' $ac_executable_extensions; do
5843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5844 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5854 RANLIB=$ac_cv_prog_RANLIB
5855 if test -n "$RANLIB"; then
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5857 $as_echo "$RANLIB" >&6; }
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5860 $as_echo "no" >&6; }
5865 if test -z "$ac_cv_prog_RANLIB"; then
5866 ac_ct_RANLIB=$RANLIB
5867 # Extract the first word of "ranlib", so it can be a program name with args.
5868 set dummy ranlib; ac_word=$2
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5870 $as_echo_n "checking for $ac_word... " >&6; }
5871 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5872 $as_echo_n "(cached) " >&6
5874 if test -n "$ac_ct_RANLIB"; then
5875 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881 test -z "$as_dir" && as_dir=.
5882 for ac_exec_ext in '' $ac_executable_extensions; do
5883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5884 ac_cv_prog_ac_ct_RANLIB="ranlib"
5885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5894 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5895 if test -n "$ac_ct_RANLIB"; then
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5897 $as_echo "$ac_ct_RANLIB" >&6; }
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5900 $as_echo "no" >&6; }
5903 if test "x$ac_ct_RANLIB" = x; then
5906 case $cross_compiling:$ac_tool_warned in
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5909 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5910 ac_tool_warned=yes ;;
5912 RANLIB=$ac_ct_RANLIB
5915 RANLIB="$ac_cv_prog_RANLIB"
5918 test -z "$RANLIB" && RANLIB=:
5925 # Determine commands to create old-style static archives.
5926 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5927 old_postinstall_cmds='chmod 644 $oldlib'
5928 old_postuninstall_cmds=
5930 if test -n "$RANLIB"; then
5933 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5936 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5939 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5944 lock_old_archive_extraction=yes ;;
5946 lock_old_archive_extraction=no ;;
5987 # If no C compiler was specified, use CC.
5990 # If no C compiler flags were specified, use CFLAGS.
5991 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5993 # Allow CC to be a program name with arguments.
5997 # Check for command to grab the raw symbol name followed by C symbol from nm.
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5999 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6000 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6001 $as_echo_n "(cached) " >&6
6004 # These are sane defaults that work on at least a few old systems.
6005 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6007 # Character class describing NM global symbol codes.
6008 symcode='[BCDEGRST]'
6010 # Regexp to match symbols that can be accessed directly from C.
6011 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6013 # Define system-specific variables.
6018 cygwin* | mingw* | pw32* | cegcc*)
6019 symcode='[ABCDGISTW]'
6022 if test "$host_cpu" = ia64; then
6023 symcode='[ABCDEGRST]'
6027 symcode='[BCDEGRST]'
6030 symcode='[BCDEGQRST]'
6041 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6049 # If we're using GNU nm, then use its standard symbol codes.
6050 case `$NM -V 2>&1` in
6051 *GNU* | *'with BFD'*)
6052 symcode='[ABCDGIRSTW]' ;;
6055 # Transform an extracted symbol line into a proper C declaration.
6056 # Some systems (esp. on ia64) link data and code symbols differently,
6057 # so use this general approach.
6058 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6060 # Transform an extracted symbol line into symbol name and symbol address
6061 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6062 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6064 # Handle CRLF in mingw tool chain
6068 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6072 # Try without a prefix underscore, then with it.
6073 for ac_symprfx in "" "_"; do
6075 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6076 symxfrm="\\1 $ac_symprfx\\2 \\2"
6078 # Write the raw and C identifiers.
6079 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6080 # Fake it for dumpbin and say T for any non-static function
6081 # and D for any global variable.
6082 # Also find C++ and __fastcall symbols from MSVC++,
6083 # which start with @ or ?.
6084 lt_cv_sys_global_symbol_pipe="$AWK '"\
6085 " {last_section=section; section=\$ 3};"\
6086 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6087 " \$ 0!~/External *\|/{next};"\
6088 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6089 " {if(hide[section]) next};"\
6090 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6091 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6092 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6093 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6094 " ' prfx=^$ac_symprfx"
6096 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6099 # Check to see that the pipe works correctly.
6103 cat > conftest.$ac_ext <<_LT_EOF
6108 void nm_test_func(void);
6109 void nm_test_func(void){}
6113 int main(){nm_test_var='a';nm_test_func();return(0);}
6116 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6117 (eval $ac_compile) 2>&5
6119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6120 test $ac_status = 0; }; then
6121 # Now try to grab the symbols.
6123 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6124 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6127 test $ac_status = 0; } && test -s "$nlist"; then
6128 # Try sorting and uniquifying the output.
6129 if sort "$nlist" | uniq > "$nlist"T; then
6130 mv -f "$nlist"T "$nlist"
6135 # Make sure that we snagged all the symbols we need.
6136 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6137 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6138 cat <<_LT_EOF > conftest.$ac_ext
6144 # Now generate the symbol file.
6145 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6147 cat <<_LT_EOF >> conftest.$ac_ext
6149 /* The mapping between symbol names and symbols. */
6154 lt__PROGRAM__LTX_preloaded_symbols[] =
6156 { "@PROGRAM@", (void *) 0 },
6158 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6159 cat <<\_LT_EOF >> conftest.$ac_ext
6163 /* This works around a problem in FreeBSD linker */
6164 #ifdef FREEBSD_WORKAROUND
6165 static const void *lt_preloaded_setup() {
6166 return lt__PROGRAM__LTX_preloaded_symbols;
6174 # Now try linking the two files.
6175 mv conftest.$ac_objext conftstm.$ac_objext
6176 lt_save_LIBS="$LIBS"
6177 lt_save_CFLAGS="$CFLAGS"
6178 LIBS="conftstm.$ac_objext"
6179 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6180 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6181 (eval $ac_link) 2>&5
6183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6184 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6187 LIBS="$lt_save_LIBS"
6188 CFLAGS="$lt_save_CFLAGS"
6190 echo "cannot find nm_test_func in $nlist" >&5
6193 echo "cannot find nm_test_var in $nlist" >&5
6196 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6199 echo "$progname: failed program was:" >&5
6200 cat conftest.$ac_ext >&5
6202 rm -rf conftest* conftst*
6204 # Do not use the global_symbol_pipe unless it works.
6205 if test "$pipe_works" = yes; then
6208 lt_cv_sys_global_symbol_pipe=
6214 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6215 lt_cv_sys_global_symbol_to_cdecl=
6217 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6219 $as_echo "failed" >&6; }
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6222 $as_echo "ok" >&6; }
6247 # Check whether --enable-libtool-lock was given.
6248 if test "${enable_libtool_lock+set}" = set; then :
6249 enableval=$enable_libtool_lock;
6252 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6254 # Some flags need to be propagated to the compiler or linker for good
6258 # Find out which ABI we are using.
6259 echo 'int i;' > conftest.$ac_ext
6260 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6261 (eval $ac_compile) 2>&5
6263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6264 test $ac_status = 0; }; then
6265 case `/usr/bin/file conftest.$ac_objext` in
6277 # Find out which ABI we are using.
6278 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6279 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6280 (eval $ac_compile) 2>&5
6282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6283 test $ac_status = 0; }; then
6284 if test "$lt_cv_prog_gnu_ld" = yes; then
6285 case `/usr/bin/file conftest.$ac_objext` in
6287 LD="${LD-ld} -melf32bsmip"
6290 LD="${LD-ld} -melf32bmipn32"
6293 LD="${LD-ld} -melf64bmip"
6297 case `/usr/bin/file conftest.$ac_objext` in
6313 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6314 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6315 # Find out which ABI we are using.
6316 echo 'int i;' > conftest.$ac_ext
6317 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6318 (eval $ac_compile) 2>&5
6320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6321 test $ac_status = 0; }; then
6322 case `/usr/bin/file conftest.o` in
6325 x86_64-*kfreebsd*-gnu)
6326 LD="${LD-ld} -m elf_i386_fbsd"
6329 LD="${LD-ld} -m elf_i386"
6331 ppc64-*linux*|powerpc64-*linux*)
6332 LD="${LD-ld} -m elf32ppclinux"
6335 LD="${LD-ld} -m elf_s390"
6338 LD="${LD-ld} -m elf32_sparc"
6344 x86_64-*kfreebsd*-gnu)
6345 LD="${LD-ld} -m elf_x86_64_fbsd"
6348 LD="${LD-ld} -m elf_x86_64"
6350 ppc*-*linux*|powerpc*-*linux*)
6351 LD="${LD-ld} -m elf64ppc"
6353 s390*-*linux*|s390*-*tpf*)
6354 LD="${LD-ld} -m elf64_s390"
6357 LD="${LD-ld} -m elf64_sparc"
6367 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6368 SAVE_CFLAGS="$CFLAGS"
6369 CFLAGS="$CFLAGS -belf"
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6371 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6372 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6373 $as_echo_n "(cached) " >&6
6376 ac_cpp='$CPP $CPPFLAGS'
6377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6382 /* end confdefs.h. */
6392 if ac_fn_c_try_link "$LINENO"; then :
6393 lt_cv_cc_needs_belf=yes
6395 lt_cv_cc_needs_belf=no
6397 rm -f core conftest.err conftest.$ac_objext \
6398 conftest$ac_exeext conftest.$ac_ext
6400 ac_cpp='$CPP $CPPFLAGS'
6401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6407 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6408 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6409 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6410 CFLAGS="$SAVE_CFLAGS"
6414 # Find out which ABI we are using.
6415 echo 'int i;' > conftest.$ac_ext
6416 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6417 (eval $ac_compile) 2>&5
6419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6420 test $ac_status = 0; }; then
6421 case `/usr/bin/file conftest.o` in
6423 case $lt_cv_prog_gnu_ld in
6426 i?86-*-solaris* | x86_64-*-solaris2.1[0-9]*)
6427 LD="${LD-ld} -m elf_x86_64"
6430 LD="${LD-ld} -m elf64_sparc"
6433 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6434 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6439 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6451 need_locks="$enable_libtool_lock"
6455 rhapsody* | darwin*)
6456 if test -n "$ac_tool_prefix"; then
6457 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6458 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6460 $as_echo_n "checking for $ac_word... " >&6; }
6461 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6462 $as_echo_n "(cached) " >&6
6464 if test -n "$DSYMUTIL"; then
6465 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6471 test -z "$as_dir" && as_dir=.
6472 for ac_exec_ext in '' $ac_executable_extensions; do
6473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6474 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6484 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6485 if test -n "$DSYMUTIL"; then
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6487 $as_echo "$DSYMUTIL" >&6; }
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6490 $as_echo "no" >&6; }
6495 if test -z "$ac_cv_prog_DSYMUTIL"; then
6496 ac_ct_DSYMUTIL=$DSYMUTIL
6497 # Extract the first word of "dsymutil", so it can be a program name with args.
6498 set dummy dsymutil; ac_word=$2
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6500 $as_echo_n "checking for $ac_word... " >&6; }
6501 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6502 $as_echo_n "(cached) " >&6
6504 if test -n "$ac_ct_DSYMUTIL"; then
6505 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6511 test -z "$as_dir" && as_dir=.
6512 for ac_exec_ext in '' $ac_executable_extensions; do
6513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6514 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6524 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6525 if test -n "$ac_ct_DSYMUTIL"; then
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6527 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6530 $as_echo "no" >&6; }
6533 if test "x$ac_ct_DSYMUTIL" = x; then
6536 case $cross_compiling:$ac_tool_warned in
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6539 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6540 ac_tool_warned=yes ;;
6542 DSYMUTIL=$ac_ct_DSYMUTIL
6545 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6548 if test -n "$ac_tool_prefix"; then
6549 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6550 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6552 $as_echo_n "checking for $ac_word... " >&6; }
6553 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6554 $as_echo_n "(cached) " >&6
6556 if test -n "$NMEDIT"; then
6557 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6563 test -z "$as_dir" && as_dir=.
6564 for ac_exec_ext in '' $ac_executable_extensions; do
6565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6566 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6576 NMEDIT=$ac_cv_prog_NMEDIT
6577 if test -n "$NMEDIT"; then
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6579 $as_echo "$NMEDIT" >&6; }
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6582 $as_echo "no" >&6; }
6587 if test -z "$ac_cv_prog_NMEDIT"; then
6588 ac_ct_NMEDIT=$NMEDIT
6589 # Extract the first word of "nmedit", so it can be a program name with args.
6590 set dummy nmedit; ac_word=$2
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6592 $as_echo_n "checking for $ac_word... " >&6; }
6593 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6594 $as_echo_n "(cached) " >&6
6596 if test -n "$ac_ct_NMEDIT"; then
6597 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6603 test -z "$as_dir" && as_dir=.
6604 for ac_exec_ext in '' $ac_executable_extensions; do
6605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6606 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6616 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6617 if test -n "$ac_ct_NMEDIT"; then
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6619 $as_echo "$ac_ct_NMEDIT" >&6; }
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6622 $as_echo "no" >&6; }
6625 if test "x$ac_ct_NMEDIT" = x; then
6628 case $cross_compiling:$ac_tool_warned in
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6632 ac_tool_warned=yes ;;
6634 NMEDIT=$ac_ct_NMEDIT
6637 NMEDIT="$ac_cv_prog_NMEDIT"
6640 if test -n "$ac_tool_prefix"; then
6641 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6642 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6644 $as_echo_n "checking for $ac_word... " >&6; }
6645 if test "${ac_cv_prog_LIPO+set}" = set; then :
6646 $as_echo_n "(cached) " >&6
6648 if test -n "$LIPO"; then
6649 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6655 test -z "$as_dir" && as_dir=.
6656 for ac_exec_ext in '' $ac_executable_extensions; do
6657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6658 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6668 LIPO=$ac_cv_prog_LIPO
6669 if test -n "$LIPO"; then
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6671 $as_echo "$LIPO" >&6; }
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6674 $as_echo "no" >&6; }
6679 if test -z "$ac_cv_prog_LIPO"; then
6681 # Extract the first word of "lipo", so it can be a program name with args.
6682 set dummy lipo; ac_word=$2
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6684 $as_echo_n "checking for $ac_word... " >&6; }
6685 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6686 $as_echo_n "(cached) " >&6
6688 if test -n "$ac_ct_LIPO"; then
6689 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6695 test -z "$as_dir" && as_dir=.
6696 for ac_exec_ext in '' $ac_executable_extensions; do
6697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6698 ac_cv_prog_ac_ct_LIPO="lipo"
6699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6708 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6709 if test -n "$ac_ct_LIPO"; then
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6711 $as_echo "$ac_ct_LIPO" >&6; }
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6714 $as_echo "no" >&6; }
6717 if test "x$ac_ct_LIPO" = x; then
6720 case $cross_compiling:$ac_tool_warned in
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6723 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6724 ac_tool_warned=yes ;;
6729 LIPO="$ac_cv_prog_LIPO"
6732 if test -n "$ac_tool_prefix"; then
6733 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6734 set dummy ${ac_tool_prefix}otool; ac_word=$2
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6736 $as_echo_n "checking for $ac_word... " >&6; }
6737 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6738 $as_echo_n "(cached) " >&6
6740 if test -n "$OTOOL"; then
6741 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6747 test -z "$as_dir" && as_dir=.
6748 for ac_exec_ext in '' $ac_executable_extensions; do
6749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6750 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6760 OTOOL=$ac_cv_prog_OTOOL
6761 if test -n "$OTOOL"; then
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6763 $as_echo "$OTOOL" >&6; }
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6766 $as_echo "no" >&6; }
6771 if test -z "$ac_cv_prog_OTOOL"; then
6773 # Extract the first word of "otool", so it can be a program name with args.
6774 set dummy otool; ac_word=$2
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6776 $as_echo_n "checking for $ac_word... " >&6; }
6777 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6778 $as_echo_n "(cached) " >&6
6780 if test -n "$ac_ct_OTOOL"; then
6781 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787 test -z "$as_dir" && as_dir=.
6788 for ac_exec_ext in '' $ac_executable_extensions; do
6789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6790 ac_cv_prog_ac_ct_OTOOL="otool"
6791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6800 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6801 if test -n "$ac_ct_OTOOL"; then
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6803 $as_echo "$ac_ct_OTOOL" >&6; }
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6806 $as_echo "no" >&6; }
6809 if test "x$ac_ct_OTOOL" = x; then
6812 case $cross_compiling:$ac_tool_warned in
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6815 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6816 ac_tool_warned=yes ;;
6821 OTOOL="$ac_cv_prog_OTOOL"
6824 if test -n "$ac_tool_prefix"; then
6825 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6826 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6828 $as_echo_n "checking for $ac_word... " >&6; }
6829 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6830 $as_echo_n "(cached) " >&6
6832 if test -n "$OTOOL64"; then
6833 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6839 test -z "$as_dir" && as_dir=.
6840 for ac_exec_ext in '' $ac_executable_extensions; do
6841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6842 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6852 OTOOL64=$ac_cv_prog_OTOOL64
6853 if test -n "$OTOOL64"; then
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6855 $as_echo "$OTOOL64" >&6; }
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6858 $as_echo "no" >&6; }
6863 if test -z "$ac_cv_prog_OTOOL64"; then
6864 ac_ct_OTOOL64=$OTOOL64
6865 # Extract the first word of "otool64", so it can be a program name with args.
6866 set dummy otool64; ac_word=$2
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6868 $as_echo_n "checking for $ac_word... " >&6; }
6869 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6870 $as_echo_n "(cached) " >&6
6872 if test -n "$ac_ct_OTOOL64"; then
6873 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879 test -z "$as_dir" && as_dir=.
6880 for ac_exec_ext in '' $ac_executable_extensions; do
6881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6882 ac_cv_prog_ac_ct_OTOOL64="otool64"
6883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6892 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6893 if test -n "$ac_ct_OTOOL64"; then
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6895 $as_echo "$ac_ct_OTOOL64" >&6; }
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6898 $as_echo "no" >&6; }
6901 if test "x$ac_ct_OTOOL64" = x; then
6904 case $cross_compiling:$ac_tool_warned in
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6907 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6908 ac_tool_warned=yes ;;
6910 OTOOL64=$ac_ct_OTOOL64
6913 OTOOL64="$ac_cv_prog_OTOOL64"
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6943 $as_echo_n "checking for -single_module linker flag... " >&6; }
6944 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6945 $as_echo_n "(cached) " >&6
6947 lt_cv_apple_cc_single_mod=no
6948 if test -z "${LT_MULTI_MODULE}"; then
6949 # By default we will add the -single_module flag. You can override
6950 # by either setting the environment variable LT_MULTI_MODULE
6951 # non-empty at configure time, or by adding -multi_module to the
6953 rm -rf libconftest.dylib*
6954 echo "int foo(void){return 1;}" > conftest.c
6955 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6956 -dynamiclib -Wl,-single_module conftest.c" >&5
6957 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6958 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6960 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6961 lt_cv_apple_cc_single_mod=yes
6963 cat conftest.err >&5
6965 rm -rf libconftest.dylib*
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6970 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6972 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6973 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6974 $as_echo_n "(cached) " >&6
6976 lt_cv_ld_exported_symbols_list=no
6977 save_LDFLAGS=$LDFLAGS
6978 echo "_main" > conftest.sym
6979 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6981 /* end confdefs.h. */
6991 if ac_fn_c_try_link "$LINENO"; then :
6992 lt_cv_ld_exported_symbols_list=yes
6994 lt_cv_ld_exported_symbols_list=no
6996 rm -f core conftest.err conftest.$ac_objext \
6997 conftest$ac_exeext conftest.$ac_ext
6998 LDFLAGS="$save_LDFLAGS"
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7002 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7004 $as_echo_n "checking for -force_load linker flag... " >&6; }
7005 if test "${lt_cv_ld_force_load+set}" = set; then :
7006 $as_echo_n "(cached) " >&6
7008 lt_cv_ld_force_load=no
7009 cat > conftest.c << _LT_EOF
7010 int forced_loaded() { return 2;}
7012 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7013 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7014 echo "$AR cru libconftest.a conftest.o" >&5
7015 $AR cru libconftest.a conftest.o 2>&5
7016 cat > conftest.c << _LT_EOF
7017 int main() { return 0;}
7019 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7020 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7022 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7023 lt_cv_ld_force_load=yes
7025 cat conftest.err >&5
7027 rm -f conftest.err libconftest.a conftest conftest.c
7028 rm -rf conftest.dSYM
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7032 $as_echo "$lt_cv_ld_force_load" >&6; }
7034 rhapsody* | darwin1.[012])
7035 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7037 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7038 darwin*) # darwin 5.x on
7039 # if running on 10.5 or later, the deployment target defaults
7040 # to the OS version, if on x86, and 10.4, the deployment
7041 # target defaults to 10.4. Don't you love it?
7042 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7043 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7044 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7046 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7048 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7052 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7053 _lt_dar_single_mod='$single_module'
7055 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7056 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7058 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7060 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7061 _lt_dsymutil='~$DSYMUTIL $lib || :'
7069 ac_cpp='$CPP $CPPFLAGS'
7070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7074 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7075 # On Suns, sometimes $CPP names a directory.
7076 if test -n "$CPP" && test -d "$CPP"; then
7079 if test -z "$CPP"; then
7080 if test "${ac_cv_prog_CPP+set}" = set; then :
7081 $as_echo_n "(cached) " >&6
7083 # Double quotes because CPP needs to be expanded
7084 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7087 for ac_c_preproc_warn_flag in '' yes
7089 # Use a header file that comes with gcc, so configuring glibc
7090 # with a fresh cross-compiler works.
7091 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7092 # <limits.h> exists even on freestanding compilers.
7093 # On the NeXT, cc -E runs the code through the compiler's parser,
7094 # not just through cpp. "Syntax error" is here to catch this case.
7095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7096 /* end confdefs.h. */
7098 # include <limits.h>
7100 # include <assert.h>
7104 if ac_fn_c_try_cpp "$LINENO"; then :
7107 # Broken: fails on valid input.
7110 rm -f conftest.err conftest.$ac_ext
7112 # OK, works on sane cases. Now check whether nonexistent headers
7113 # can be detected and how.
7114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7115 /* end confdefs.h. */
7116 #include <ac_nonexistent.h>
7118 if ac_fn_c_try_cpp "$LINENO"; then :
7119 # Broken: success on invalid input.
7122 # Passes both tests.
7126 rm -f conftest.err conftest.$ac_ext
7129 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7130 rm -f conftest.err conftest.$ac_ext
7131 if $ac_preproc_ok; then :
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7144 $as_echo "$CPP" >&6; }
7146 for ac_c_preproc_warn_flag in '' yes
7148 # Use a header file that comes with gcc, so configuring glibc
7149 # with a fresh cross-compiler works.
7150 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7151 # <limits.h> exists even on freestanding compilers.
7152 # On the NeXT, cc -E runs the code through the compiler's parser,
7153 # not just through cpp. "Syntax error" is here to catch this case.
7154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7155 /* end confdefs.h. */
7157 # include <limits.h>
7159 # include <assert.h>
7163 if ac_fn_c_try_cpp "$LINENO"; then :
7166 # Broken: fails on valid input.
7169 rm -f conftest.err conftest.$ac_ext
7171 # OK, works on sane cases. Now check whether nonexistent headers
7172 # can be detected and how.
7173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7174 /* end confdefs.h. */
7175 #include <ac_nonexistent.h>
7177 if ac_fn_c_try_cpp "$LINENO"; then :
7178 # Broken: success on invalid input.
7181 # Passes both tests.
7185 rm -f conftest.err conftest.$ac_ext
7188 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7189 rm -f conftest.err conftest.$ac_ext
7190 if $ac_preproc_ok; then :
7193 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7194 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7195 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7196 See \`config.log' for more details." "$LINENO" 5; }
7200 ac_cpp='$CPP $CPPFLAGS'
7201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7207 $as_echo_n "checking for ANSI C header files... " >&6; }
7208 if test "${ac_cv_header_stdc+set}" = set; then :
7209 $as_echo_n "(cached) " >&6
7211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7212 /* end confdefs.h. */
7226 if ac_fn_c_try_compile "$LINENO"; then :
7227 ac_cv_header_stdc=yes
7229 ac_cv_header_stdc=no
7231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7233 if test $ac_cv_header_stdc = yes; then
7234 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7236 /* end confdefs.h. */
7240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7241 $EGREP "memchr" >/dev/null 2>&1; then :
7244 ac_cv_header_stdc=no
7250 if test $ac_cv_header_stdc = yes; then
7251 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7253 /* end confdefs.h. */
7257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7258 $EGREP "free" >/dev/null 2>&1; then :
7261 ac_cv_header_stdc=no
7267 if test $ac_cv_header_stdc = yes; then
7268 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7269 if test "$cross_compiling" = yes; then :
7272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7273 /* end confdefs.h. */
7276 #if ((' ' & 0x0FF) == 0x020)
7277 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7278 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7280 # define ISLOWER(c) \
7281 (('a' <= (c) && (c) <= 'i') \
7282 || ('j' <= (c) && (c) <= 'r') \
7283 || ('s' <= (c) && (c) <= 'z'))
7284 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7287 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7292 for (i = 0; i < 256; i++)
7293 if (XOR (islower (i), ISLOWER (i))
7294 || toupper (i) != TOUPPER (i))
7299 if ac_fn_c_try_run "$LINENO"; then :
7302 ac_cv_header_stdc=no
7304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7305 conftest.$ac_objext conftest.beam conftest.$ac_ext
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7311 $as_echo "$ac_cv_header_stdc" >&6; }
7312 if test $ac_cv_header_stdc = yes; then
7314 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7318 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7319 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7320 inttypes.h stdint.h unistd.h
7322 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7323 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7325 eval as_val=\$$as_ac_Header
7326 if test "x$as_val" = x""yes; then :
7327 cat >>confdefs.h <<_ACEOF
7328 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7336 for ac_header in dlfcn.h
7338 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7340 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7341 cat >>confdefs.h <<_ACEOF
7342 #define HAVE_DLFCN_H 1
7349 if test -n "$ac_tool_prefix"; then
7350 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7351 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7353 $as_echo_n "checking for $ac_word... " >&6; }
7354 if test "${ac_cv_prog_GOC+set}" = set; then :
7355 $as_echo_n "(cached) " >&6
7357 if test -n "$GOC"; then
7358 ac_cv_prog_GOC="$GOC" # Let the user override the test.
7360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364 test -z "$as_dir" && as_dir=.
7365 for ac_exec_ext in '' $ac_executable_extensions; do
7366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7367 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7378 if test -n "$GOC"; then
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7380 $as_echo "$GOC" >&6; }
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7383 $as_echo "no" >&6; }
7388 if test -z "$ac_cv_prog_GOC"; then
7390 # Extract the first word of "gccgo", so it can be a program name with args.
7391 set dummy gccgo; ac_word=$2
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7393 $as_echo_n "checking for $ac_word... " >&6; }
7394 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
7395 $as_echo_n "(cached) " >&6
7397 if test -n "$ac_ct_GOC"; then
7398 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7404 test -z "$as_dir" && as_dir=.
7405 for ac_exec_ext in '' $ac_executable_extensions; do
7406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7407 ac_cv_prog_ac_ct_GOC="gccgo"
7408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7417 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7418 if test -n "$ac_ct_GOC"; then
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7420 $as_echo "$ac_ct_GOC" >&6; }
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7423 $as_echo "no" >&6; }
7426 if test "x$ac_ct_GOC" = x; then
7429 case $cross_compiling:$ac_tool_warned in
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7433 ac_tool_warned=yes ;;
7438 GOC="$ac_cv_prog_GOC"
7454 # Check whether --enable-shared was given.
7455 if test "${enable_shared+set}" = set; then :
7456 enableval=$enable_shared; p=${PACKAGE-default}
7458 yes) enable_shared=yes ;;
7459 no) enable_shared=no ;;
7462 # Look at the argument we got. We use all the common list separators.
7463 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7464 for pkg in $enableval; do
7466 if test "X$pkg" = "X$p"; then
7485 # Check whether --enable-static was given.
7486 if test "${enable_static+set}" = set; then :
7487 enableval=$enable_static; p=${PACKAGE-default}
7489 yes) enable_static=yes ;;
7490 no) enable_static=no ;;
7493 # Look at the argument we got. We use all the common list separators.
7494 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7495 for pkg in $enableval; do
7497 if test "X$pkg" = "X$p"; then
7517 # Check whether --with-pic was given.
7518 if test "${with_pic+set}" = set; then :
7519 withval=$with_pic; pic_mode="$withval"
7525 test -z "$pic_mode" && pic_mode=default
7533 # Check whether --enable-fast-install was given.
7534 if test "${enable_fast_install+set}" = set; then :
7535 enableval=$enable_fast_install; p=${PACKAGE-default}
7537 yes) enable_fast_install=yes ;;
7538 no) enable_fast_install=no ;;
7540 enable_fast_install=no
7541 # Look at the argument we got. We use all the common list separators.
7542 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7543 for pkg in $enableval; do
7545 if test "X$pkg" = "X$p"; then
7546 enable_fast_install=yes
7553 enable_fast_install=yes
7566 # This can be used to rebuild libtool when needed
7567 LIBTOOL_DEPS="$ltmain"
7569 # Always use our own libtool.
7570 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7597 test -z "$LN_S" && LN_S="ln -s"
7612 if test -n "${ZSH_VERSION+set}" ; then
7613 setopt NO_GLOB_SUBST
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7617 $as_echo_n "checking for objdir... " >&6; }
7618 if test "${lt_cv_objdir+set}" = set; then :
7619 $as_echo_n "(cached) " >&6
7621 rm -f .libs 2>/dev/null
7622 mkdir .libs 2>/dev/null
7623 if test -d .libs; then
7626 # MS-DOS does not allow filenames that begin with a dot.
7629 rmdir .libs 2>/dev/null
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7632 $as_echo "$lt_cv_objdir" >&6; }
7633 objdir=$lt_cv_objdir
7639 cat >>confdefs.h <<_ACEOF
7640 #define LT_OBJDIR "$lt_cv_objdir/"
7648 # AIX sometimes has problems with the GCC collect2 program. For some
7649 # reason, if we set the COLLECT_NAMES environment variable, the problems
7650 # vanish in a puff of smoke.
7651 if test "X${COLLECT_NAMES+set}" != Xset; then
7653 export COLLECT_NAMES
7660 can_build_shared=yes
7662 # All known linkers require a `.a' archive for static linking (except MSVC,
7663 # which needs '.lib').
7666 with_gnu_ld="$lt_cv_prog_gnu_ld"
7669 old_CFLAGS="$CFLAGS"
7671 # Set sane defaults for various variables
7672 test -z "$CC" && CC=cc
7673 test -z "$LTCC" && LTCC=$CC
7674 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7675 test -z "$LD" && LD=ld
7676 test -z "$ac_objext" && ac_objext=o
7678 for cc_temp in $compiler""; do
7680 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7681 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7686 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7689 # Only perform the check for file, if the check method requires it
7690 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7691 case $deplibs_check_method in
7693 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7695 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7696 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7697 $as_echo_n "(cached) " >&6
7701 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7704 lt_save_MAGIC_CMD="$MAGIC_CMD"
7705 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7706 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7707 for ac_dir in $ac_dummy; do
7709 test -z "$ac_dir" && ac_dir=.
7710 if test -f $ac_dir/${ac_tool_prefix}file; then
7711 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7712 if test -n "$file_magic_test_file"; then
7713 case $deplibs_check_method in
7715 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7716 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7717 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7718 $EGREP "$file_magic_regex" > /dev/null; then
7723 *** Warning: the command libtool uses to detect shared libraries,
7724 *** $file_magic_cmd, produces output that libtool cannot recognize.
7725 *** The result is that libtool may fail to recognize shared libraries
7726 *** as such. This will affect the creation of libtool libraries that
7727 *** depend on shared libraries, but programs linked with such libtool
7728 *** libraries will work regardless of this problem. Nevertheless, you
7729 *** may want to report the problem to your system manager and/or to
7730 *** bug-libtool@gnu.org
7740 MAGIC_CMD="$lt_save_MAGIC_CMD"
7745 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7746 if test -n "$MAGIC_CMD"; then
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7748 $as_echo "$MAGIC_CMD" >&6; }
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7751 $as_echo "no" >&6; }
7758 if test -z "$lt_cv_path_MAGIC_CMD"; then
7759 if test -n "$ac_tool_prefix"; then
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7761 $as_echo_n "checking for file... " >&6; }
7762 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7763 $as_echo_n "(cached) " >&6
7767 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7770 lt_save_MAGIC_CMD="$MAGIC_CMD"
7771 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7772 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7773 for ac_dir in $ac_dummy; do
7775 test -z "$ac_dir" && ac_dir=.
7776 if test -f $ac_dir/file; then
7777 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7778 if test -n "$file_magic_test_file"; then
7779 case $deplibs_check_method in
7781 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7782 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7783 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7784 $EGREP "$file_magic_regex" > /dev/null; then
7789 *** Warning: the command libtool uses to detect shared libraries,
7790 *** $file_magic_cmd, produces output that libtool cannot recognize.
7791 *** The result is that libtool may fail to recognize shared libraries
7792 *** as such. This will affect the creation of libtool libraries that
7793 *** depend on shared libraries, but programs linked with such libtool
7794 *** libraries will work regardless of this problem. Nevertheless, you
7795 *** may want to report the problem to your system manager and/or to
7796 *** bug-libtool@gnu.org
7806 MAGIC_CMD="$lt_save_MAGIC_CMD"
7811 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7812 if test -n "$MAGIC_CMD"; then
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7814 $as_echo "$MAGIC_CMD" >&6; }
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7817 $as_echo "no" >&6; }
7830 # Use C for the default configuration in the libtool script
7834 ac_cpp='$CPP $CPPFLAGS'
7835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7840 # Source file extension for C test sources.
7843 # Object file extension for compiled C test sources.
7847 # Code to be used in simple compile tests
7848 lt_simple_compile_test_code="int some_variable = 0;"
7850 # Code to be used in simple link tests
7851 lt_simple_link_test_code='int main(){return(0);}'
7859 # If no C compiler was specified, use CC.
7862 # If no C compiler flags were specified, use CFLAGS.
7863 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7865 # Allow CC to be a program name with arguments.
7868 # Save the default compiler, since it gets overwritten when the other
7869 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7870 compiler_DEFAULT=$CC
7872 # save warnings/boilerplate of simple test code
7873 ac_outfile=conftest.$ac_objext
7874 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7875 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7876 _lt_compiler_boilerplate=`cat conftest.err`
7879 ac_outfile=conftest.$ac_objext
7880 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7881 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7882 _lt_linker_boilerplate=`cat conftest.err`
7887 ## There is no encapsulation within the following macros, do not change
7888 ## the running order or otherwise move them around unless you know exactly
7889 ## what you are doing...
7890 if test -n "$compiler"; then
7892 lt_prog_compiler_no_builtin_flag=
7894 if test "$GCC" = yes; then
7895 case $cc_basename in
7897 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7899 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7903 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7904 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7905 $as_echo_n "(cached) " >&6
7907 lt_cv_prog_compiler_rtti_exceptions=no
7908 ac_outfile=conftest.$ac_objext
7909 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7910 lt_compiler_flag="-fno-rtti -fno-exceptions"
7911 # Insert the option either (1) after the last *FLAGS variable, or
7912 # (2) before a word containing "conftest.", or (3) at the end.
7913 # Note that $ac_compile itself does not contain backslashes and begins
7914 # with a dollar sign (not a hyphen), so the echo should work correctly.
7915 # The option is referenced via a variable to avoid confusing sed.
7916 lt_compile=`echo "$ac_compile" | $SED \
7917 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7918 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7919 -e 's:$: $lt_compiler_flag:'`
7920 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7921 (eval "$lt_compile" 2>conftest.err)
7923 cat conftest.err >&5
7924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925 if (exit $ac_status) && test -s "$ac_outfile"; then
7926 # The compiler can only warn and ignore the option if not recognized
7927 # So say no if there are warnings other than the usual output.
7928 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7929 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7930 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7931 lt_cv_prog_compiler_rtti_exceptions=yes
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7938 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7940 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7941 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7953 lt_prog_compiler_wl=
7954 lt_prog_compiler_pic=
7955 lt_prog_compiler_static=
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7958 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7960 if test "$GCC" = yes; then
7961 lt_prog_compiler_wl='-Wl,'
7962 lt_prog_compiler_static='-static'
7966 # All AIX code is PIC.
7967 if test "$host_cpu" = ia64; then
7968 # AIX 5 now supports IA64 processor
7969 lt_prog_compiler_static='-Bstatic'
7976 # see comment about AmigaOS4 .so support
7977 lt_prog_compiler_pic='-fPIC'
7980 # FIXME: we need at least 68020 code to build shared libraries, but
7981 # adding the `-m68020' flag to GCC prevents building anything better,
7983 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7988 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7989 # PIC is the default for these OSes.
7992 mingw* | cygwin* | pw32* | os2* | cegcc*)
7993 # This hack is so that the source file can tell whether it is being
7994 # built for inclusion in a dll (and should export symbols for example).
7995 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7996 # (--disable-auto-import) libraries
7997 lt_prog_compiler_pic='-DDLL_EXPORT'
8000 darwin* | rhapsody*)
8001 # PIC is the default on this platform
8002 # Common symbols not allowed in MH_DYLIB files
8003 lt_prog_compiler_pic='-fno-common'
8007 # PIC is the default for Haiku.
8008 # The "-static" flag exists, but is broken.
8009 lt_prog_compiler_static=
8013 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8014 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8015 # sets the default TLS model and affects inlining.
8021 lt_prog_compiler_pic='-fPIC'
8027 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8028 # Instead, we relocate shared libraries at runtime.
8032 # Just because we use GCC doesn't mean we suddenly get shared libraries
8033 # on systems that don't support them.
8034 lt_prog_compiler_can_build_shared=no
8039 # QNX uses GNU C++, but need to define -shared option too, otherwise
8041 lt_prog_compiler_pic='-fPIC -shared'
8045 if test -d /usr/nec; then
8046 lt_prog_compiler_pic=-Kconform_pic
8051 lt_prog_compiler_pic='-fPIC'
8055 case $cc_basename in
8056 nvcc*) # Cuda Compiler Driver 2.2
8057 lt_prog_compiler_wl='-Xlinker '
8058 lt_prog_compiler_pic='-Xcompiler -fPIC'
8062 # PORTME Check for flag to pass linker flags through the system compiler.
8065 lt_prog_compiler_wl='-Wl,'
8066 if test "$host_cpu" = ia64; then
8067 # AIX 5 now supports IA64 processor
8068 lt_prog_compiler_static='-Bstatic'
8070 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8074 mingw* | cygwin* | pw32* | os2* | cegcc*)
8075 # This hack is so that the source file can tell whether it is being
8076 # built for inclusion in a dll (and should export symbols for example).
8077 lt_prog_compiler_pic='-DDLL_EXPORT'
8080 hpux9* | hpux10* | hpux11*)
8081 lt_prog_compiler_wl='-Wl,'
8082 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8089 lt_prog_compiler_pic='+Z'
8092 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8093 lt_prog_compiler_static='${wl}-a ${wl}archive'
8096 irix5* | irix6* | nonstopux*)
8097 lt_prog_compiler_wl='-Wl,'
8098 # PIC (with -KPIC) is the default.
8099 lt_prog_compiler_static='-non_shared'
8102 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8103 case $cc_basename in
8104 # old Intel for x86_64 which still supported -KPIC.
8106 lt_prog_compiler_wl='-Wl,'
8107 lt_prog_compiler_pic='-KPIC'
8108 lt_prog_compiler_static='-static'
8110 # icc used to be incompatible with GCC.
8111 # ICC 10 doesn't accept -KPIC any more.
8113 lt_prog_compiler_wl='-Wl,'
8114 lt_prog_compiler_pic='-fPIC'
8115 lt_prog_compiler_static='-static'
8117 # Lahey Fortran 8.1.
8119 lt_prog_compiler_wl='-Wl,'
8120 lt_prog_compiler_pic='--shared'
8121 lt_prog_compiler_static='--static'
8123 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8124 # Portland Group compilers (*not* the Pentium gcc compiler,
8125 # which looks to be a dead project)
8126 lt_prog_compiler_wl='-Wl,'
8127 lt_prog_compiler_pic='-fpic'
8128 lt_prog_compiler_static='-Bstatic'
8131 lt_prog_compiler_wl='-Wl,'
8132 # All Alpha code is PIC.
8133 lt_prog_compiler_static='-non_shared'
8135 xl* | bgxl* | bgf* | mpixl*)
8136 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8137 lt_prog_compiler_wl='-Wl,'
8138 lt_prog_compiler_pic='-qpic'
8139 lt_prog_compiler_static='-qstaticlink'
8142 case `$CC -V 2>&1 | sed 5q` in
8143 *Sun\ F* | *Sun*Fortran*)
8144 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8145 lt_prog_compiler_pic='-KPIC'
8146 lt_prog_compiler_static='-Bstatic'
8147 lt_prog_compiler_wl=''
8151 lt_prog_compiler_pic='-KPIC'
8152 lt_prog_compiler_static='-Bstatic'
8153 lt_prog_compiler_wl='-Wl,'
8161 lt_prog_compiler_pic='-KPIC'
8162 lt_prog_compiler_static='-Bstatic'
8166 # QNX uses GNU C++, but need to define -shared option too, otherwise
8168 lt_prog_compiler_pic='-fPIC -shared'
8171 osf3* | osf4* | osf5*)
8172 lt_prog_compiler_wl='-Wl,'
8173 # All OSF/1 code is PIC.
8174 lt_prog_compiler_static='-non_shared'
8178 lt_prog_compiler_static='-non_shared'
8182 lt_prog_compiler_pic='-KPIC'
8183 lt_prog_compiler_static='-Bstatic'
8184 case $cc_basename in
8186 lt_prog_compiler_wl='-Qoption ld ';;
8188 lt_prog_compiler_wl='-Wl,';;
8193 lt_prog_compiler_wl='-Qoption ld '
8194 lt_prog_compiler_pic='-PIC'
8195 lt_prog_compiler_static='-Bstatic'
8198 sysv4 | sysv4.2uw2* | sysv4.3*)
8199 lt_prog_compiler_wl='-Wl,'
8200 lt_prog_compiler_pic='-KPIC'
8201 lt_prog_compiler_static='-Bstatic'
8205 if test -d /usr/nec ;then
8206 lt_prog_compiler_pic='-Kconform_pic'
8207 lt_prog_compiler_static='-Bstatic'
8211 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8212 lt_prog_compiler_wl='-Wl,'
8213 lt_prog_compiler_pic='-KPIC'
8214 lt_prog_compiler_static='-Bstatic'
8218 lt_prog_compiler_wl='-Wl,'
8219 lt_prog_compiler_can_build_shared=no
8223 lt_prog_compiler_pic='-pic'
8224 lt_prog_compiler_static='-Bstatic'
8228 lt_prog_compiler_can_build_shared=no
8234 # For platforms which do not support PIC, -DPIC is meaningless:
8236 lt_prog_compiler_pic=
8239 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8243 $as_echo "$lt_prog_compiler_pic" >&6; }
8251 # Check to make sure the PIC flag actually works.
8253 if test -n "$lt_prog_compiler_pic"; then
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8255 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8256 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8257 $as_echo_n "(cached) " >&6
8259 lt_cv_prog_compiler_pic_works=no
8260 ac_outfile=conftest.$ac_objext
8261 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8262 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8263 # Insert the option either (1) after the last *FLAGS variable, or
8264 # (2) before a word containing "conftest.", or (3) at the end.
8265 # Note that $ac_compile itself does not contain backslashes and begins
8266 # with a dollar sign (not a hyphen), so the echo should work correctly.
8267 # The option is referenced via a variable to avoid confusing sed.
8268 lt_compile=`echo "$ac_compile" | $SED \
8269 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8270 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8271 -e 's:$: $lt_compiler_flag:'`
8272 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8273 (eval "$lt_compile" 2>conftest.err)
8275 cat conftest.err >&5
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 if (exit $ac_status) && test -s "$ac_outfile"; then
8278 # The compiler can only warn and ignore the option if not recognized
8279 # So say no if there are warnings other than the usual output.
8280 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8281 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8282 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8283 lt_cv_prog_compiler_pic_works=yes
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8290 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8292 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8293 case $lt_prog_compiler_pic in
8295 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8298 lt_prog_compiler_pic=
8299 lt_prog_compiler_can_build_shared=no
8310 # Check to make sure the static flag actually works.
8312 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8314 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8315 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8316 $as_echo_n "(cached) " >&6
8318 lt_cv_prog_compiler_static_works=no
8319 save_LDFLAGS="$LDFLAGS"
8320 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8321 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8322 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8323 # The linker can only warn and ignore the option if not recognized
8324 # So say no if there are warnings
8325 if test -s conftest.err; then
8326 # Append any errors to the config.log.
8327 cat conftest.err 1>&5
8328 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8329 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8330 if diff conftest.exp conftest.er2 >/dev/null; then
8331 lt_cv_prog_compiler_static_works=yes
8334 lt_cv_prog_compiler_static_works=yes
8338 LDFLAGS="$save_LDFLAGS"
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8342 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8344 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8347 lt_prog_compiler_static=
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8357 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8358 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8359 $as_echo_n "(cached) " >&6
8361 lt_cv_prog_compiler_c_o=no
8362 $RM -r conftest 2>/dev/null
8366 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8368 lt_compiler_flag="-o out/conftest2.$ac_objext"
8369 # Insert the option either (1) after the last *FLAGS variable, or
8370 # (2) before a word containing "conftest.", or (3) at the end.
8371 # Note that $ac_compile itself does not contain backslashes and begins
8372 # with a dollar sign (not a hyphen), so the echo should work correctly.
8373 lt_compile=`echo "$ac_compile" | $SED \
8374 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8375 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8376 -e 's:$: $lt_compiler_flag:'`
8377 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8378 (eval "$lt_compile" 2>out/conftest.err)
8380 cat out/conftest.err >&5
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8384 # The compiler can only warn and ignore the option if not recognized
8385 # So say no if there are warnings
8386 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8387 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8388 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8389 lt_cv_prog_compiler_c_o=yes
8394 # SGI C++ compiler will create directory out/ii_files/ for
8395 # template instantiation
8396 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8397 $RM out/* && rmdir out
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8404 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8412 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8413 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8414 $as_echo_n "(cached) " >&6
8416 lt_cv_prog_compiler_c_o=no
8417 $RM -r conftest 2>/dev/null
8421 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8423 lt_compiler_flag="-o out/conftest2.$ac_objext"
8424 # Insert the option either (1) after the last *FLAGS variable, or
8425 # (2) before a word containing "conftest.", or (3) at the end.
8426 # Note that $ac_compile itself does not contain backslashes and begins
8427 # with a dollar sign (not a hyphen), so the echo should work correctly.
8428 lt_compile=`echo "$ac_compile" | $SED \
8429 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8430 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8431 -e 's:$: $lt_compiler_flag:'`
8432 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8433 (eval "$lt_compile" 2>out/conftest.err)
8435 cat out/conftest.err >&5
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8439 # The compiler can only warn and ignore the option if not recognized
8440 # So say no if there are warnings
8441 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8442 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8443 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8444 lt_cv_prog_compiler_c_o=yes
8449 # SGI C++ compiler will create directory out/ii_files/ for
8450 # template instantiation
8451 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8452 $RM out/* && rmdir out
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8459 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8464 hard_links="nottested"
8465 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8466 # do not overwrite the value of need_locks provided by the user
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8468 $as_echo_n "checking if we can lock with hard links... " >&6; }
8471 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8473 ln conftest.a conftest.b 2>&5 || hard_links=no
8474 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8476 $as_echo "$hard_links" >&6; }
8477 if test "$hard_links" = no; then
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8479 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8492 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8495 allow_undefined_flag=
8496 always_export_symbols=no
8498 archive_expsym_cmds=
8499 compiler_needs_object=no
8500 enable_shared_with_static_runtimes=no
8501 export_dynamic_flag_spec=
8502 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8503 hardcode_automatic=no
8505 hardcode_direct_absolute=no
8506 hardcode_libdir_flag_spec=
8507 hardcode_libdir_flag_spec_ld=
8508 hardcode_libdir_separator=
8510 hardcode_shlibpath_var=unsupported
8512 link_all_deplibs=unknown
8515 old_archive_from_new_cmds=
8516 old_archive_from_expsyms_cmds=
8517 thread_safe_flag_spec=
8518 whole_archive_flag_spec=
8519 # include_expsyms should be a list of space-separated symbols to be *always*
8520 # included in the symbol list
8522 # exclude_expsyms can be an extended regexp of symbols to exclude
8523 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8524 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8525 # as well as any symbol that contains `d'.
8526 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8527 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8528 # platforms (ab)use it in PIC code, but their linkers get confused if
8529 # the symbol is explicitly referenced. Since portable code cannot
8530 # rely on this symbol name, it's probably fine to never include it in
8531 # preloaded symbol tables.
8532 # Exclude shared library initialization/finalization symbols.
8533 extract_expsyms_cmds=
8536 cygwin* | mingw* | pw32* | cegcc*)
8537 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8538 # When not using gcc, we currently assume that we are using
8539 # Microsoft Visual C++.
8540 if test "$GCC" != yes; then
8545 # we just hope/assume this is gcc and not c89 (= MSVC++)
8555 # On some targets, GNU ld is compatible enough with the native linker
8556 # that we're better off using the native interface for both.
8557 lt_use_gnu_ld_interface=no
8558 if test "$with_gnu_ld" = yes; then
8561 # The AIX port of GNU ld has always aspired to compatibility
8562 # with the native linker. However, as the warning in the GNU ld
8563 # block says, versions before 2.19.5* couldn't really create working
8564 # shared libraries, regardless of the interface used.
8565 case `$LD -v 2>&1` in
8566 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8567 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8568 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8570 lt_use_gnu_ld_interface=yes
8575 lt_use_gnu_ld_interface=yes
8580 if test "$lt_use_gnu_ld_interface" = yes; then
8581 # If archive_cmds runs LD, not CC, wlarc should be empty
8584 # Set some defaults for GNU ld with shared library support. These
8585 # are reset later if shared libraries are not supported. Putting them
8586 # here allows them to be overridden if necessary.
8587 runpath_var=LD_RUN_PATH
8588 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8589 export_dynamic_flag_spec='${wl}--export-dynamic'
8590 # ancient GNU ld didn't support --whole-archive et. al.
8591 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8592 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8594 whole_archive_flag_spec=
8596 supports_anon_versioning=no
8597 case `$LD -v 2>&1` in
8598 *GNU\ gold*) supports_anon_versioning=yes ;;
8599 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8600 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8601 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8602 *\ 2.11.*) ;; # other 2.11 versions
8603 *) supports_anon_versioning=yes ;;
8606 # See if GNU ld supports shared libraries.
8609 # On AIX/PPC, the GNU linker is very broken
8610 if test "$host_cpu" != ia64; then
8614 *** Warning: the GNU linker, at least up to release 2.19, is reported
8615 *** to be unable to reliably create shared libraries on AIX.
8616 *** Therefore, libtool is disabling shared libraries support. If you
8617 *** really care for shared libraries, you may want to install binutils
8618 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8619 *** You will then need to restart the configuration process.
8628 # see comment about AmigaOS4 .so support
8629 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8630 archive_expsym_cmds=''
8633 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)'
8634 hardcode_libdir_flag_spec='-L$libdir'
8635 hardcode_minus_L=yes
8641 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8642 allow_undefined_flag=unsupported
8643 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8644 # support --undefined. This deserves some investigation. FIXME
8645 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8651 cygwin* | mingw* | pw32* | cegcc*)
8652 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8653 # as there is no search path for DLLs.
8654 hardcode_libdir_flag_spec='-L$libdir'
8655 export_dynamic_flag_spec='${wl}--export-all-symbols'
8656 allow_undefined_flag=unsupported
8657 always_export_symbols=no
8658 enable_shared_with_static_runtimes=yes
8659 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8661 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8662 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8663 # If the export-symbols file already is a .def file (1st line
8664 # is EXPORTS), use it as is; otherwise, prepend...
8665 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8666 cp $export_symbols $output_objdir/$soname.def;
8668 echo EXPORTS > $output_objdir/$soname.def;
8669 cat $export_symbols >> $output_objdir/$soname.def;
8671 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8678 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8679 link_all_deplibs=yes
8684 hardcode_shlibpath_var=no
8685 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8686 export_dynamic_flag_spec='${wl}-E'
8687 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8688 # Instead, shared libraries are loaded at an image base (0x10000000 by
8689 # default) and relocated if they conflict, which is a slow very memory
8690 # consuming and fragmenting process. To avoid this, we pick a random,
8691 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8692 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8693 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8694 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'
8697 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8699 if test "$host_os" = linux-dietlibc; then
8700 case $cc_basename in
8701 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8704 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8705 && test "$tmp_diet" = no
8708 tmp_sharedflag='-shared'
8709 case $cc_basename,$host_cpu in
8710 pgcc*) # Portland Group C compiler
8711 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'
8712 tmp_addflag=' $pic_flag'
8714 pgf77* | pgf90* | pgf95* | pgfortran*)
8715 # Portland Group f77 and f90 compilers
8716 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'
8717 tmp_addflag=' $pic_flag -Mnomain' ;;
8718 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8719 tmp_addflag=' -i_dynamic' ;;
8720 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8721 tmp_addflag=' -i_dynamic -nofor_main' ;;
8722 ifc* | ifort*) # Intel Fortran compiler
8723 tmp_addflag=' -nofor_main' ;;
8724 lf95*) # Lahey Fortran 8.1
8725 whole_archive_flag_spec=
8726 tmp_sharedflag='--shared' ;;
8727 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8728 tmp_sharedflag='-qmkshrobj'
8730 nvcc*) # Cuda Compiler Driver 2.2
8731 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'
8732 compiler_needs_object=yes
8735 case `$CC -V 2>&1 | sed 5q` in
8736 *Sun\ C*) # Sun C 5.9
8737 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'
8738 compiler_needs_object=yes
8739 tmp_sharedflag='-G' ;;
8740 *Sun\ F*) # Sun Fortran 8.3
8741 tmp_sharedflag='-G' ;;
8743 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8745 if test "x$supports_anon_versioning" = xyes; then
8746 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8747 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8748 echo "local: *; };" >> $output_objdir/$libname.ver~
8749 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8752 case $cc_basename in
8753 xlf* | bgf* | bgxlf* | mpixlf*)
8754 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8755 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8756 hardcode_libdir_flag_spec=
8757 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8758 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8759 if test "x$supports_anon_versioning" = xyes; then
8760 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8761 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8762 echo "local: *; };" >> $output_objdir/$libname.ver~
8763 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8773 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8774 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8777 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8778 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8783 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8787 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8788 *** create shared libraries on Solaris systems. Therefore, libtool
8789 *** is disabling shared libraries support. We urge you to upgrade GNU
8790 *** binutils to release 2.9.1 or newer. Another option is to modify
8791 *** your PATH or compiler configuration so that the native linker is
8792 *** used, and then restart.
8795 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8796 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8797 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8803 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8804 case `$LD -v 2>&1` in
8805 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8809 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8810 *** reliably create shared libraries on SCO systems. Therefore, libtool
8811 *** is disabling shared libraries support. We urge you to upgrade GNU
8812 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8813 *** your PATH or compiler configuration so that the native linker is
8814 *** used, and then restart.
8819 # For security reasons, it is highly recommended that you always
8820 # use absolute paths for naming shared libraries, and exclude the
8821 # DT_RUNPATH tag from executables and libraries. But doing so
8822 # requires that you compile everything twice, which is a pain.
8823 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8824 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8825 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8826 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8835 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8838 hardcode_shlibpath_var=no
8842 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8843 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8844 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8851 if test "$ld_shlibs" = no; then
8853 hardcode_libdir_flag_spec=
8854 export_dynamic_flag_spec=
8855 whole_archive_flag_spec=
8858 # PORTME fill in a description of your system's linker (not GNU ld)
8861 allow_undefined_flag=unsupported
8862 always_export_symbols=yes
8863 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'
8864 # Note: this linker hardcodes the directories in LIBPATH if there
8865 # are no directories specified by -L.
8866 hardcode_minus_L=yes
8867 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8868 # Neither direct hardcoding nor static linking is supported with a
8870 hardcode_direct=unsupported
8875 if test "$host_cpu" = ia64; then
8876 # On IA64, the linker does run time linking by default, so we don't
8877 # have to do anything special.
8878 aix_use_runtimelinking=no
8879 exp_sym_flag='-Bexport'
8882 # If we're using GNU nm, then we don't want the "-C" option.
8883 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8884 # Also, AIX nm treats weak defined symbols like other global
8885 # defined symbols, whereas GNU nm marks them as "W".
8886 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8887 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8889 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8891 aix_use_runtimelinking=no
8893 # Test if we are trying to use run time linking or normal
8894 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8895 # need to do runtime linking.
8896 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8897 for ld_flag in $LDFLAGS; do
8898 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8899 aix_use_runtimelinking=yes
8906 exp_sym_flag='-bexport'
8907 no_entry_flag='-bnoentry'
8910 # When large executables or shared objects are built, AIX ld can
8911 # have problems creating the table of contents. If linking a library
8912 # or program results in "error TOC overflow" add -mminimal-toc to
8913 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8914 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8918 hardcode_direct_absolute=yes
8919 hardcode_libdir_separator=':'
8920 link_all_deplibs=yes
8921 file_list_spec='${wl}-f,'
8923 if test "$GCC" = yes; then
8924 case $host_os in aix4.[012]|aix4.[012].*)
8925 # We only want to do this on AIX 4.2 and lower, the check
8926 # below for broken collect2 doesn't work under 4.3+
8927 collect2name=`${CC} -print-prog-name=collect2`
8928 if test -f "$collect2name" &&
8929 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8931 # We have reworked collect2
8934 # We have old collect2
8935 hardcode_direct=unsupported
8936 # It fails to find uninstalled libraries when the uninstalled
8937 # path is not listed in the libpath. Setting hardcode_minus_L
8938 # to unsupported forces relinking
8939 hardcode_minus_L=yes
8940 hardcode_libdir_flag_spec='-L$libdir'
8941 hardcode_libdir_separator=
8945 shared_flag='-shared'
8946 if test "$aix_use_runtimelinking" = yes; then
8947 shared_flag="$shared_flag "'${wl}-G'
8951 if test "$host_cpu" = ia64; then
8952 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8953 # chokes on -Wl,-G. The following line is correct:
8956 if test "$aix_use_runtimelinking" = yes; then
8957 shared_flag='${wl}-G'
8959 shared_flag='${wl}-bM:SRE'
8964 export_dynamic_flag_spec='${wl}-bexpall'
8965 # It seems that -bexpall does not export symbols beginning with
8966 # underscore (_), so it is better to generate a list of symbols to export.
8967 always_export_symbols=yes
8968 if test "$aix_use_runtimelinking" = yes; then
8969 # Warning - without using the other runtime loading flags (-brtl),
8970 # -berok will link without error, but may produce a broken library.
8971 allow_undefined_flag='-berok'
8972 # Determine the default libpath from the value encoded in an
8974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8975 /* end confdefs.h. */
8985 if ac_fn_c_try_link "$LINENO"; then :
8987 lt_aix_libpath_sed='
8988 /Import File Strings/,/^$/ {
8994 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8995 # Check for a 64-bit object if we didn't find anything.
8996 if test -z "$aix_libpath"; then
8997 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9000 rm -f core conftest.err conftest.$ac_objext \
9001 conftest$ac_exeext conftest.$ac_ext
9002 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9004 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9005 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9007 if test "$host_cpu" = ia64; then
9008 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9009 allow_undefined_flag="-z nodefs"
9010 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"
9012 # Determine the default libpath from the value encoded in an
9014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9015 /* end confdefs.h. */
9025 if ac_fn_c_try_link "$LINENO"; then :
9027 lt_aix_libpath_sed='
9028 /Import File Strings/,/^$/ {
9034 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9035 # Check for a 64-bit object if we didn't find anything.
9036 if test -z "$aix_libpath"; then
9037 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9040 rm -f core conftest.err conftest.$ac_objext \
9041 conftest$ac_exeext conftest.$ac_ext
9042 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9044 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9045 # Warning - without using the other run time loading flags,
9046 # -berok will link without error, but may produce a broken library.
9047 no_undefined_flag=' ${wl}-bernotok'
9048 allow_undefined_flag=' ${wl}-berok'
9049 if test "$with_gnu_ld" = yes; then
9050 # We only use this code for GNU lds that support --whole-archive.
9051 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9053 # Exported symbols can be pulled into shared objects from archives
9054 whole_archive_flag_spec='$convenience'
9056 archive_cmds_need_lc=yes
9057 # This is similar to how AIX traditionally builds its shared libraries.
9058 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9066 # see comment about AmigaOS4 .so support
9067 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9068 archive_expsym_cmds=''
9071 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)'
9072 hardcode_libdir_flag_spec='-L$libdir'
9073 hardcode_minus_L=yes
9079 export_dynamic_flag_spec=-rdynamic
9082 cygwin* | mingw* | pw32* | cegcc*)
9083 # When not using gcc, we currently assume that we are using
9084 # Microsoft Visual C++.
9085 # hardcode_libdir_flag_spec is actually meaningless, as there is
9086 # no search path for DLLs.
9087 hardcode_libdir_flag_spec=' '
9088 allow_undefined_flag=unsupported
9089 # Tell ltmain to make .lib files, not .a files.
9091 # Tell ltmain to make .dll files, not .so files.
9093 # FIXME: Setting linknames here is a bad hack.
9094 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9095 # The linker will automatically build a .lib file if we build a DLL.
9096 old_archive_from_new_cmds='true'
9097 # FIXME: Should let the user specify the lib program.
9098 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9099 fix_srcfile_path='`cygpath -w "$srcfile"`'
9100 enable_shared_with_static_runtimes=yes
9103 darwin* | rhapsody*)
9106 archive_cmds_need_lc=no
9108 hardcode_automatic=yes
9109 hardcode_shlibpath_var=unsupported
9110 if test "$lt_cv_ld_force_load" = "yes"; then
9111 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\"`'
9113 whole_archive_flag_spec=''
9115 link_all_deplibs=yes
9116 allow_undefined_flag="$_lt_dar_allow_undefined"
9117 case $cc_basename in
9118 ifort*) _lt_dar_can_shared=yes ;;
9119 *) _lt_dar_can_shared=$GCC ;;
9121 if test "$_lt_dar_can_shared" = "yes"; then
9122 output_verbose_link_cmd=func_echo_all
9123 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9124 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9125 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}"
9126 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}"
9135 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9136 hardcode_libdir_flag_spec='-L$libdir'
9137 hardcode_shlibpath_var=no
9140 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9141 # support. Future versions do this automatically, but an explicit c++rt0.o
9142 # does not break anything, and helps significantly (at the cost of a little
9145 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9146 hardcode_libdir_flag_spec='-R$libdir'
9148 hardcode_shlibpath_var=no
9151 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9153 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9155 hardcode_minus_L=yes
9156 hardcode_shlibpath_var=no
9159 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9160 freebsd* | dragonfly*)
9161 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9162 hardcode_libdir_flag_spec='-R$libdir'
9164 hardcode_shlibpath_var=no
9168 if test "$GCC" = yes; then
9169 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9171 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9173 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9174 hardcode_libdir_separator=:
9177 # hardcode_minus_L: Not really in the search PATH,
9178 # but as the default location of the library.
9179 hardcode_minus_L=yes
9180 export_dynamic_flag_spec='${wl}-E'
9184 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9185 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9187 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9189 if test "$with_gnu_ld" = no; then
9190 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9191 hardcode_libdir_flag_spec_ld='+b $libdir'
9192 hardcode_libdir_separator=:
9194 hardcode_direct_absolute=yes
9195 export_dynamic_flag_spec='${wl}-E'
9196 # hardcode_minus_L: Not really in the search PATH,
9197 # but as the default location of the library.
9198 hardcode_minus_L=yes
9203 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9206 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9209 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9212 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9218 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9221 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9225 # Older versions of the 11.00 compiler do not understand -b yet
9226 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9228 $as_echo_n "checking if $CC understands -b... " >&6; }
9229 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9230 $as_echo_n "(cached) " >&6
9232 lt_cv_prog_compiler__b=no
9233 save_LDFLAGS="$LDFLAGS"
9234 LDFLAGS="$LDFLAGS -b"
9235 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9236 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9237 # The linker can only warn and ignore the option if not recognized
9238 # So say no if there are warnings
9239 if test -s conftest.err; then
9240 # Append any errors to the config.log.
9241 cat conftest.err 1>&5
9242 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9243 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9244 if diff conftest.exp conftest.er2 >/dev/null; then
9245 lt_cv_prog_compiler__b=yes
9248 lt_cv_prog_compiler__b=yes
9252 LDFLAGS="$save_LDFLAGS"
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9256 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9258 if test x"$lt_cv_prog_compiler__b" = xyes; then
9259 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9261 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9267 if test "$with_gnu_ld" = no; then
9268 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9269 hardcode_libdir_separator=:
9274 hardcode_shlibpath_var=no
9278 hardcode_direct_absolute=yes
9279 export_dynamic_flag_spec='${wl}-E'
9281 # hardcode_minus_L: Not really in the search PATH,
9282 # but as the default location of the library.
9283 hardcode_minus_L=yes
9289 irix5* | irix6* | nonstopux*)
9290 if test "$GCC" = yes; then
9291 archive_cmds='$CC -shared $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'
9292 # Try to use the -exported_symbol ld option, if it does not
9293 # work, assume that -exports_file does not work either and
9294 # implicitly export all symbols.
9295 save_LDFLAGS="$LDFLAGS"
9296 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9298 /* end confdefs.h. */
9301 if ac_fn_c_try_link "$LINENO"; then :
9302 archive_expsym_cmds='$CC -shared $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'
9305 rm -f core conftest.err conftest.$ac_objext \
9306 conftest$ac_exeext conftest.$ac_ext
9307 LDFLAGS="$save_LDFLAGS"
9309 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'
9310 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'
9312 archive_cmds_need_lc='no'
9313 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9314 hardcode_libdir_separator=:
9316 link_all_deplibs=yes
9320 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9321 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9323 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9325 hardcode_libdir_flag_spec='-R$libdir'
9327 hardcode_shlibpath_var=no
9331 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9333 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9334 hardcode_libdir_separator=:
9335 hardcode_shlibpath_var=no
9342 if test -f /usr/libexec/ld.so; then
9344 hardcode_shlibpath_var=no
9345 hardcode_direct_absolute=yes
9346 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9347 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9348 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9349 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9350 export_dynamic_flag_spec='${wl}-E'
9353 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9354 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9355 hardcode_libdir_flag_spec='-R$libdir'
9358 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9359 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9369 hardcode_libdir_flag_spec='-L$libdir'
9370 hardcode_minus_L=yes
9371 allow_undefined_flag=unsupported
9372 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9373 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9377 if test "$GCC" = yes; then
9378 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9379 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'
9381 allow_undefined_flag=' -expect_unresolved \*'
9382 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'
9384 archive_cmds_need_lc='no'
9385 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9386 hardcode_libdir_separator=:
9389 osf4* | osf5*) # as osf3* with the addition of -msym flag
9390 if test "$GCC" = yes; then
9391 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9392 archive_cmds='$CC -shared${allow_undefined_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'
9393 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9395 allow_undefined_flag=' -expect_unresolved \*'
9396 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'
9397 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~
9398 $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'
9400 # Both c and cxx compiler support -rpath directly
9401 hardcode_libdir_flag_spec='-rpath $libdir'
9403 archive_cmds_need_lc='no'
9404 hardcode_libdir_separator=:
9408 no_undefined_flag=' -z defs'
9409 if test "$GCC" = yes; then
9411 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9412 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9413 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9415 case `$CC -V 2>&1` in
9418 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9419 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9420 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9424 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9425 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9426 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9430 hardcode_libdir_flag_spec='-R$libdir'
9431 hardcode_shlibpath_var=no
9433 solaris2.[0-5] | solaris2.[0-5].*) ;;
9435 # The compiler driver will combine and reorder linker options,
9436 # but understands `-z linker_flag'. GCC discards it without `$wl',
9437 # but is careful enough not to reorder.
9438 # Supported since Solaris 2.6 (maybe 2.5.1?)
9439 if test "$GCC" = yes; then
9440 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9442 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9446 link_all_deplibs=yes
9450 if test "x$host_vendor" = xsequent; then
9451 # Use $CC to link under sequent, because it throws in some extra .o
9452 # files that make .init and .fini sections work.
9453 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9455 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9457 hardcode_libdir_flag_spec='-L$libdir'
9459 hardcode_minus_L=yes
9460 hardcode_shlibpath_var=no
9464 case $host_vendor in
9466 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9467 hardcode_direct=yes # is this really true???
9470 ## LD is ld it makes a PLAMLIB
9471 ## CC just makes a GrossModule.
9472 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9473 reload_cmds='$CC -r -o $output$reload_objs'
9477 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9478 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9481 runpath_var='LD_RUN_PATH'
9482 hardcode_shlibpath_var=no
9486 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9487 hardcode_shlibpath_var=no
9488 export_dynamic_flag_spec='-Bexport'
9492 if test -d /usr/nec; then
9493 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9494 hardcode_shlibpath_var=no
9495 runpath_var=LD_RUN_PATH
9496 hardcode_runpath_var=yes
9501 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9502 no_undefined_flag='${wl}-z,text'
9503 archive_cmds_need_lc=no
9504 hardcode_shlibpath_var=no
9505 runpath_var='LD_RUN_PATH'
9507 if test "$GCC" = yes; then
9508 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9509 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9511 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9512 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9516 sysv5* | sco3.2v5* | sco5v6*)
9517 # Note: We can NOT use -z defs as we might desire, because we do not
9518 # link with -lc, and that would cause any symbols used from libc to
9519 # always be unresolved, which means just about no library would
9520 # ever link correctly. If we're not using GNU ld we use -z text
9521 # though, which does catch some bad symbols but isn't as heavy-handed
9523 no_undefined_flag='${wl}-z,text'
9524 allow_undefined_flag='${wl}-z,nodefs'
9525 archive_cmds_need_lc=no
9526 hardcode_shlibpath_var=no
9527 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9528 hardcode_libdir_separator=':'
9529 link_all_deplibs=yes
9530 export_dynamic_flag_spec='${wl}-Bexport'
9531 runpath_var='LD_RUN_PATH'
9533 if test "$GCC" = yes; then
9534 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9535 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9537 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9538 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9543 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9544 hardcode_libdir_flag_spec='-L$libdir'
9545 hardcode_shlibpath_var=no
9553 if test x$host_vendor = xsni; then
9555 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9556 export_dynamic_flag_spec='${wl}-Blargedynsym'
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9563 $as_echo "$ld_shlibs" >&6; }
9564 test "$ld_shlibs" = no && can_build_shared=no
9566 with_gnu_ld=$with_gnu_ld
9583 # Do we need to explicitly link libc?
9585 case "x$archive_cmds_need_lc" in
9587 # Assume -lc should be added
9588 archive_cmds_need_lc=yes
9590 if test "$enable_shared" = yes && test "$GCC" = yes; then
9591 case $archive_cmds in
9593 # FIXME: we may have to deal with multi-command sequences.
9596 # Test whether the compiler implicitly links with -lc since on some
9597 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9598 # to ld, don't add -lc before -lgcc.
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9600 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9601 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9602 $as_echo_n "(cached) " >&6
9605 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9607 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9608 (eval $ac_compile) 2>&5
9610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9611 test $ac_status = 0; } 2>conftest.err; then
9614 libobjs=conftest.$ac_objext
9616 wl=$lt_prog_compiler_wl
9617 pic_flag=$lt_prog_compiler_pic
9623 lt_save_allow_undefined_flag=$allow_undefined_flag
9624 allow_undefined_flag=
9625 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9626 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9629 test $ac_status = 0; }
9631 lt_cv_archive_cmds_need_lc=no
9633 lt_cv_archive_cmds_need_lc=yes
9635 allow_undefined_flag=$lt_save_allow_undefined_flag
9637 cat conftest.err 1>&5
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9643 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9644 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9808 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9810 if test "$GCC" = yes; then
9812 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9813 *) lt_awk_arg="/^libraries:/" ;;
9816 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9817 *) lt_sed_strip_eq="s,=/,/,g" ;;
9819 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9820 case $lt_search_path_spec in
9822 # if the path contains ";" then we assume it to be the separator
9823 # otherwise default to the standard path separator (i.e. ":") - it is
9824 # assumed that no part of a normal pathname contains ";" but that should
9825 # okay in the real world where ";" in dirpaths is itself problematic.
9826 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9829 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9832 # Ok, now we have the path, separated by spaces, we can step through it
9833 # and add multilib dir if necessary.
9834 lt_tmp_lt_search_path_spec=
9835 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9836 for lt_sys_path in $lt_search_path_spec; do
9837 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9838 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9840 test -d "$lt_sys_path" && \
9841 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9844 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9845 BEGIN {RS=" "; FS="/|\n";} {
9848 for (lt_i = NF; lt_i > 0; lt_i--) {
9849 if ($lt_i != "" && $lt_i != ".") {
9850 if ($lt_i == "..") {
9853 if (lt_count == 0) {
9854 lt_foo="/" $lt_i lt_foo;
9861 if (lt_foo != "") { lt_freq[lt_foo]++; }
9862 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9864 # AWK program above erroneously prepends '/' to C:/dos/paths
9867 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9868 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9870 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9872 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9875 libname_spec='lib$name'
9883 shlibpath_overrides_runpath=unknown
9885 dynamic_linker="$host_os ld.so"
9886 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9887 need_lib_prefix=unknown
9888 hardcode_into_libs=no
9890 # when you set need_version to no, make sure it does not cause -set_version
9891 # flags to be left without arguments
9892 need_version=unknown
9897 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9898 shlibpath_var=LIBPATH
9900 # AIX 3 has no versioning support, so we append a major version to the name.
9901 soname_spec='${libname}${release}${shared_ext}$major'
9908 hardcode_into_libs=yes
9909 if test "$host_cpu" = ia64; then
9910 # AIX 5 supports IA64
9911 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9912 shlibpath_var=LD_LIBRARY_PATH
9914 # With GCC up to 2.95.x, collect2 would create an import file
9915 # for dependence libraries. The import file would start with
9916 # the line `#! .'. This would cause the generated library to
9917 # depend on `.', always an invalid library. This was fixed in
9918 # development snapshots of GCC prior to 3.0.
9920 aix4 | aix4.[01] | aix4.[01].*)
9921 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9923 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9930 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9931 # soname into executable. Probably we can add versioning support to
9932 # collect2, so additional links can be useful in future.
9933 if test "$aix_use_runtimelinking" = yes; then
9934 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9935 # instead of lib<name>.a to let people know that these are not
9936 # typical AIX shared libraries.
9937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9939 # We preserve .a as extension for shared libraries through AIX4.2
9940 # and later when we are not doing run time linking.
9941 library_names_spec='${libname}${release}.a $libname.a'
9942 soname_spec='${libname}${release}${shared_ext}$major'
9944 shlibpath_var=LIBPATH
9951 # Since July 2007 AmigaOS4 officially supports .so libraries.
9952 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9956 library_names_spec='$libname.ixlibrary $libname.a'
9957 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9958 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9964 library_names_spec='${libname}${shared_ext}'
9965 dynamic_linker="$host_os ld.so"
9966 shlibpath_var=LIBRARY_PATH
9972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9973 soname_spec='${libname}${release}${shared_ext}$major'
9974 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9975 shlibpath_var=LD_LIBRARY_PATH
9976 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9977 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9978 # the default ld.so.conf also contains /usr/contrib/lib and
9979 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9980 # libtool to hard-code these into programs
9983 cygwin* | mingw* | pw32* | cegcc*)
9984 version_type=windows
9989 case $GCC,$host_os in
9990 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9991 library_names_spec='$libname.dll.a'
9992 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9993 postinstall_cmds='base_file=`basename \${file}`~
9994 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9995 dldir=$destdir/`dirname \$dlpath`~
9996 test -d \$dldir || mkdir -p \$dldir~
9997 $install_prog $dir/$dlname \$dldir/$dlname~
9998 chmod a+x \$dldir/$dlname~
9999 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10000 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10002 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10003 dlpath=$dir/\$dldll~
10005 shlibpath_overrides_runpath=yes
10009 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10010 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10012 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10015 # MinGW DLLs use traditional 'lib' prefix
10016 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10019 # pw32 DLLs use 'pw' prefix rather than 'lib'
10020 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10026 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10029 dynamic_linker='Win32 ld.exe'
10030 # FIXME: first we should search . and the directory the executable is in
10034 darwin* | rhapsody*)
10035 dynamic_linker="$host_os dyld"
10036 version_type=darwin
10039 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10040 soname_spec='${libname}${release}${major}$shared_ext'
10041 shlibpath_overrides_runpath=yes
10042 shlibpath_var=DYLD_LIBRARY_PATH
10043 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10045 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10046 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10054 soname_spec='${libname}${release}${shared_ext}$major'
10055 shlibpath_var=LD_LIBRARY_PATH
10058 freebsd* | dragonfly*)
10059 # DragonFly does not have aout. When/if they implement a new
10060 # versioning mechanism, adjust this.
10061 if test -x /usr/bin/objformat; then
10062 objformat=`/usr/bin/objformat`
10065 freebsd[123]*) objformat=aout ;;
10066 *) objformat=elf ;;
10069 version_type=freebsd-$objformat
10070 case $version_type in
10072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10077 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10081 shlibpath_var=LD_LIBRARY_PATH
10084 shlibpath_overrides_runpath=yes
10086 freebsd3.[01]* | freebsdelf3.[01]*)
10087 shlibpath_overrides_runpath=yes
10088 hardcode_into_libs=yes
10090 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10091 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10092 shlibpath_overrides_runpath=no
10093 hardcode_into_libs=yes
10095 *) # from 4.6 on, and DragonFly
10096 shlibpath_overrides_runpath=yes
10097 hardcode_into_libs=yes
10106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10107 soname_spec='${libname}${release}${shared_ext}$major'
10108 shlibpath_var=LD_LIBRARY_PATH
10109 hardcode_into_libs=yes
10116 dynamic_linker="$host_os runtime_loader"
10117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10118 soname_spec='${libname}${release}${shared_ext}$major'
10119 shlibpath_var=LIBRARY_PATH
10120 shlibpath_overrides_runpath=yes
10121 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10122 hardcode_into_libs=yes
10125 hpux9* | hpux10* | hpux11*)
10126 # Give a soname corresponding to the major version so that dld.sl refuses to
10127 # link against other versions.
10134 hardcode_into_libs=yes
10135 dynamic_linker="$host_os dld.so"
10136 shlibpath_var=LD_LIBRARY_PATH
10137 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10139 soname_spec='${libname}${release}${shared_ext}$major'
10140 if test "X$HPUX_IA64_MODE" = X32; then
10141 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10143 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10145 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10149 hardcode_into_libs=yes
10150 dynamic_linker="$host_os dld.sl"
10151 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10152 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10154 soname_spec='${libname}${release}${shared_ext}$major'
10155 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10156 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10160 dynamic_linker="$host_os dld.sl"
10161 shlibpath_var=SHLIB_PATH
10162 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10164 soname_spec='${libname}${release}${shared_ext}$major'
10167 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10168 postinstall_cmds='chmod 555 $lib'
10169 # or fails outright, so override atomically:
10170 install_override_mode=555
10177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10178 soname_spec='${libname}${release}${shared_ext}$major'
10179 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10180 shlibpath_var=LD_LIBRARY_PATH
10181 shlibpath_overrides_runpath=no
10182 hardcode_into_libs=yes
10185 irix5* | irix6* | nonstopux*)
10187 nonstopux*) version_type=nonstopux ;;
10189 if test "$lt_cv_prog_gnu_ld" = yes; then
10197 soname_spec='${libname}${release}${shared_ext}$major'
10198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10200 irix5* | nonstopux*)
10201 libsuff= shlibsuff=
10204 case $LD in # libtool.m4 will add one of these switches to LD
10205 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10206 libsuff= shlibsuff= libmagic=32-bit;;
10207 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10208 libsuff=32 shlibsuff=N32 libmagic=N32;;
10209 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10210 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10211 *) libsuff= shlibsuff= libmagic=never-match;;
10215 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10216 shlibpath_overrides_runpath=no
10217 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10218 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10219 hardcode_into_libs=yes
10222 # No shared lib support for Linux oldld, aout, or coff.
10223 linux*oldld* | linux*aout* | linux*coff*)
10227 # This must be Linux ELF.
10228 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10233 soname_spec='${libname}${release}${shared_ext}$major'
10234 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10235 shlibpath_var=LD_LIBRARY_PATH
10236 shlibpath_overrides_runpath=no
10238 # Some binutils ld are patched to set DT_RUNPATH
10239 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10240 $as_echo_n "(cached) " >&6
10242 lt_cv_shlibpath_overrides_runpath=no
10243 save_LDFLAGS=$LDFLAGS
10244 save_libdir=$libdir
10245 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10246 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10248 /* end confdefs.h. */
10258 if ac_fn_c_try_link "$LINENO"; then :
10259 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10260 lt_cv_shlibpath_overrides_runpath=yes
10263 rm -f core conftest.err conftest.$ac_objext \
10264 conftest$ac_exeext conftest.$ac_ext
10265 LDFLAGS=$save_LDFLAGS
10266 libdir=$save_libdir
10270 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10272 # This implies no fast_install, which is unacceptable.
10273 # Some rework will be needed to allow for fast_install
10274 # before this can be enabled.
10275 hardcode_into_libs=yes
10277 # Append ld.so.conf contents to the search path
10278 if test -f /etc/ld.so.conf; then
10279 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' ' '`
10280 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10283 # We used to test for /lib/ld.so.1 and disable shared libraries on
10284 # powerpc, because MkLinux only supported shared libraries with the
10285 # GNU dynamic linker. Since this was broken with cross compilers,
10286 # most powerpc-linux boxes support dynamic linking these days and
10287 # people can always --disable-shared, the test was removed, and we
10288 # assume the GNU/Linux dynamic linker is in use.
10289 dynamic_linker='GNU/Linux ld.so'
10296 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10298 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10299 dynamic_linker='NetBSD (a.out) ld.so'
10301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10302 soname_spec='${libname}${release}${shared_ext}$major'
10303 dynamic_linker='NetBSD ld.elf_so'
10305 shlibpath_var=LD_LIBRARY_PATH
10306 shlibpath_overrides_runpath=yes
10307 hardcode_into_libs=yes
10312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10313 shlibpath_var=LD_LIBRARY_PATH
10314 shlibpath_overrides_runpath=yes
10321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10322 soname_spec='${libname}${release}${shared_ext}$major'
10323 shlibpath_var=LD_LIBRARY_PATH
10324 shlibpath_overrides_runpath=no
10325 hardcode_into_libs=yes
10326 dynamic_linker='ldqnx.so'
10331 sys_lib_dlsearch_path_spec="/usr/lib"
10333 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10335 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10336 *) need_version=no ;;
10338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10339 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10340 shlibpath_var=LD_LIBRARY_PATH
10341 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10343 openbsd2.[89] | openbsd2.[89].*)
10344 shlibpath_overrides_runpath=no
10347 shlibpath_overrides_runpath=yes
10351 shlibpath_overrides_runpath=yes
10356 libname_spec='$name'
10359 library_names_spec='$libname${shared_ext} $libname.a'
10360 dynamic_linker='OS/2 ld.exe'
10361 shlibpath_var=LIBPATH
10364 osf3* | osf4* | osf5*)
10368 soname_spec='${libname}${release}${shared_ext}$major'
10369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10370 shlibpath_var=LD_LIBRARY_PATH
10371 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10372 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10384 soname_spec='${libname}${release}${shared_ext}$major'
10385 shlibpath_var=LD_LIBRARY_PATH
10386 shlibpath_overrides_runpath=yes
10387 hardcode_into_libs=yes
10388 # ldd complains unless libraries are executable
10389 postinstall_cmds='chmod +x $lib'
10394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10395 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10396 shlibpath_var=LD_LIBRARY_PATH
10397 shlibpath_overrides_runpath=yes
10398 if test "$with_gnu_ld" = yes; then
10406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10407 soname_spec='${libname}${release}${shared_ext}$major'
10408 shlibpath_var=LD_LIBRARY_PATH
10409 case $host_vendor in
10411 shlibpath_overrides_runpath=no
10413 runpath_var=LD_RUN_PATH
10421 shlibpath_overrides_runpath=no
10422 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10428 if test -d /usr/nec ;then
10430 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10431 soname_spec='$libname${shared_ext}.$major'
10432 shlibpath_var=LD_LIBRARY_PATH
10436 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10437 version_type=freebsd-elf
10440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10441 soname_spec='${libname}${release}${shared_ext}$major'
10442 shlibpath_var=LD_LIBRARY_PATH
10443 shlibpath_overrides_runpath=yes
10444 hardcode_into_libs=yes
10445 if test "$with_gnu_ld" = yes; then
10446 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10448 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10451 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10455 sys_lib_dlsearch_path_spec='/usr/lib'
10459 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10464 shlibpath_var=LD_LIBRARY_PATH
10465 shlibpath_overrides_runpath=no
10466 hardcode_into_libs=yes
10471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10472 soname_spec='${libname}${release}${shared_ext}$major'
10473 shlibpath_var=LD_LIBRARY_PATH
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10481 $as_echo "$dynamic_linker" >&6; }
10482 test "$dynamic_linker" = no && can_build_shared=no
10484 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10485 if test "$GCC" = yes; then
10486 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10489 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10490 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10492 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10493 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10588 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10590 if test -n "$hardcode_libdir_flag_spec" ||
10591 test -n "$runpath_var" ||
10592 test "X$hardcode_automatic" = "Xyes" ; then
10594 # We can hardcode non-existent directories.
10595 if test "$hardcode_direct" != no &&
10596 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10597 # have to relink, otherwise we might link with an installed library
10598 # when we should be linking with a yet-to-be-installed one
10599 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10600 test "$hardcode_minus_L" != no; then
10601 # Linking always hardcodes the temporary library directory.
10602 hardcode_action=relink
10604 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10605 hardcode_action=immediate
10608 # We cannot hardcode anything, or else we can only hardcode existing
10610 hardcode_action=unsupported
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10613 $as_echo "$hardcode_action" >&6; }
10615 if test "$hardcode_action" = relink ||
10616 test "$inherit_rpath" = yes; then
10617 # Fast installation is not supported
10618 enable_fast_install=no
10619 elif test "$shlibpath_overrides_runpath" = yes ||
10620 test "$enable_shared" = no; then
10621 # Fast installation is not necessary
10622 enable_fast_install=needless
10630 if test "x$enable_dlopen" != xyes; then
10631 enable_dlopen=unknown
10632 enable_dlopen_self=unknown
10633 enable_dlopen_self_static=unknown
10640 lt_cv_dlopen="load_add_on"
10642 lt_cv_dlopen_self=yes
10645 mingw* | pw32* | cegcc*)
10646 lt_cv_dlopen="LoadLibrary"
10651 lt_cv_dlopen="dlopen"
10656 # if libdl is installed we need to link against it
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10658 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10659 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10660 $as_echo_n "(cached) " >&6
10662 ac_check_lib_save_LIBS=$LIBS
10664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10665 /* end confdefs.h. */
10667 /* Override any GCC internal prototype to avoid an error.
10668 Use char because int might match the return type of a GCC
10669 builtin and then its argument prototype would still apply. */
10682 if ac_fn_c_try_link "$LINENO"; then :
10683 ac_cv_lib_dl_dlopen=yes
10685 ac_cv_lib_dl_dlopen=no
10687 rm -f core conftest.err conftest.$ac_objext \
10688 conftest$ac_exeext conftest.$ac_ext
10689 LIBS=$ac_check_lib_save_LIBS
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10692 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10693 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10694 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10697 lt_cv_dlopen="dyld"
10699 lt_cv_dlopen_self=yes
10706 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10707 if test "x$ac_cv_func_shl_load" = x""yes; then :
10708 lt_cv_dlopen="shl_load"
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10711 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10712 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10713 $as_echo_n "(cached) " >&6
10715 ac_check_lib_save_LIBS=$LIBS
10717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10718 /* end confdefs.h. */
10720 /* Override any GCC internal prototype to avoid an error.
10721 Use char because int might match the return type of a GCC
10722 builtin and then its argument prototype would still apply. */
10730 return shl_load ();
10735 if ac_fn_c_try_link "$LINENO"; then :
10736 ac_cv_lib_dld_shl_load=yes
10738 ac_cv_lib_dld_shl_load=no
10740 rm -f core conftest.err conftest.$ac_objext \
10741 conftest$ac_exeext conftest.$ac_ext
10742 LIBS=$ac_check_lib_save_LIBS
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10745 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10746 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10747 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10749 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10750 if test "x$ac_cv_func_dlopen" = x""yes; then :
10751 lt_cv_dlopen="dlopen"
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10754 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10755 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10756 $as_echo_n "(cached) " >&6
10758 ac_check_lib_save_LIBS=$LIBS
10760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10761 /* end confdefs.h. */
10763 /* Override any GCC internal prototype to avoid an error.
10764 Use char because int might match the return type of a GCC
10765 builtin and then its argument prototype would still apply. */
10778 if ac_fn_c_try_link "$LINENO"; then :
10779 ac_cv_lib_dl_dlopen=yes
10781 ac_cv_lib_dl_dlopen=no
10783 rm -f core conftest.err conftest.$ac_objext \
10784 conftest$ac_exeext conftest.$ac_ext
10785 LIBS=$ac_check_lib_save_LIBS
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10788 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10789 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10790 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10793 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10794 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10795 $as_echo_n "(cached) " >&6
10797 ac_check_lib_save_LIBS=$LIBS
10798 LIBS="-lsvld $LIBS"
10799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10800 /* end confdefs.h. */
10802 /* Override any GCC internal prototype to avoid an error.
10803 Use char because int might match the return type of a GCC
10804 builtin and then its argument prototype would still apply. */
10817 if ac_fn_c_try_link "$LINENO"; then :
10818 ac_cv_lib_svld_dlopen=yes
10820 ac_cv_lib_svld_dlopen=no
10822 rm -f core conftest.err conftest.$ac_objext \
10823 conftest$ac_exeext conftest.$ac_ext
10824 LIBS=$ac_check_lib_save_LIBS
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10827 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10828 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10829 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10832 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10833 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10834 $as_echo_n "(cached) " >&6
10836 ac_check_lib_save_LIBS=$LIBS
10838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10839 /* end confdefs.h. */
10841 /* Override any GCC internal prototype to avoid an error.
10842 Use char because int might match the return type of a GCC
10843 builtin and then its argument prototype would still apply. */
10851 return dld_link ();
10856 if ac_fn_c_try_link "$LINENO"; then :
10857 ac_cv_lib_dld_dld_link=yes
10859 ac_cv_lib_dld_dld_link=no
10861 rm -f core conftest.err conftest.$ac_objext \
10862 conftest$ac_exeext conftest.$ac_ext
10863 LIBS=$ac_check_lib_save_LIBS
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10866 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10867 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10868 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10889 if test "x$lt_cv_dlopen" != xno; then
10895 case $lt_cv_dlopen in
10897 save_CPPFLAGS="$CPPFLAGS"
10898 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10900 save_LDFLAGS="$LDFLAGS"
10901 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10904 LIBS="$lt_cv_dlopen_libs $LIBS"
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10907 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10908 if test "${lt_cv_dlopen_self+set}" = set; then :
10909 $as_echo_n "(cached) " >&6
10911 if test "$cross_compiling" = yes; then :
10912 lt_cv_dlopen_self=cross
10914 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10915 lt_status=$lt_dlunknown
10916 cat > conftest.$ac_ext <<_LT_EOF
10917 #line 10917 "configure"
10918 #include "confdefs.h"
10927 # define LT_DLGLOBAL RTLD_GLOBAL
10930 # define LT_DLGLOBAL DL_GLOBAL
10932 # define LT_DLGLOBAL 0
10936 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10937 find out it does not work in some platform. */
10938 #ifndef LT_DLLAZY_OR_NOW
10940 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10943 # define LT_DLLAZY_OR_NOW DL_LAZY
10946 # define LT_DLLAZY_OR_NOW RTLD_NOW
10949 # define LT_DLLAZY_OR_NOW DL_NOW
10951 # define LT_DLLAZY_OR_NOW 0
10958 /* When -fvisbility=hidden is used, assume the code has been annotated
10959 correspondingly for the symbols needed. */
10960 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10961 void fnord () __attribute__((visibility("default")));
10964 void fnord () { int i=42; }
10967 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10968 int status = $lt_dlunknown;
10972 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10975 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10976 else puts (dlerror ());
10978 /* dlclose (self); */
10986 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10987 (eval $ac_link) 2>&5
10989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10990 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10991 (./conftest; exit; ) >&5 2>/dev/null
10993 case x$lt_status in
10994 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10995 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10996 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10999 # compilation failed
11000 lt_cv_dlopen_self=no
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11008 $as_echo "$lt_cv_dlopen_self" >&6; }
11010 if test "x$lt_cv_dlopen_self" = xyes; then
11011 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11013 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11014 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11015 $as_echo_n "(cached) " >&6
11017 if test "$cross_compiling" = yes; then :
11018 lt_cv_dlopen_self_static=cross
11020 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11021 lt_status=$lt_dlunknown
11022 cat > conftest.$ac_ext <<_LT_EOF
11023 #line 11023 "configure"
11024 #include "confdefs.h"
11033 # define LT_DLGLOBAL RTLD_GLOBAL
11036 # define LT_DLGLOBAL DL_GLOBAL
11038 # define LT_DLGLOBAL 0
11042 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11043 find out it does not work in some platform. */
11044 #ifndef LT_DLLAZY_OR_NOW
11046 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11049 # define LT_DLLAZY_OR_NOW DL_LAZY
11052 # define LT_DLLAZY_OR_NOW RTLD_NOW
11055 # define LT_DLLAZY_OR_NOW DL_NOW
11057 # define LT_DLLAZY_OR_NOW 0
11064 /* When -fvisbility=hidden is used, assume the code has been annotated
11065 correspondingly for the symbols needed. */
11066 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11067 void fnord () __attribute__((visibility("default")));
11070 void fnord () { int i=42; }
11073 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11074 int status = $lt_dlunknown;
11078 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11081 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11082 else puts (dlerror ());
11084 /* dlclose (self); */
11092 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11093 (eval $ac_link) 2>&5
11095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11096 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11097 (./conftest; exit; ) >&5 2>/dev/null
11099 case x$lt_status in
11100 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11101 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11102 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11105 # compilation failed
11106 lt_cv_dlopen_self_static=no
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11114 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11117 CPPFLAGS="$save_CPPFLAGS"
11118 LDFLAGS="$save_LDFLAGS"
11123 case $lt_cv_dlopen_self in
11124 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11125 *) enable_dlopen_self=unknown ;;
11128 case $lt_cv_dlopen_self_static in
11129 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11130 *) enable_dlopen_self_static=unknown ;;
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11153 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11154 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11155 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11156 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11158 $as_echo "yes" >&6; }
11160 # FIXME - insert some real tests, host_os isn't really good enough
11163 if test -n "$STRIP" ; then
11164 striplib="$STRIP -x"
11165 old_striplib="$STRIP -S"
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11167 $as_echo "yes" >&6; }
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11170 $as_echo "no" >&6; }
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11175 $as_echo "no" >&6; }
11191 # Report which library types will actually be built
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11193 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11195 $as_echo "$can_build_shared" >&6; }
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11198 $as_echo_n "checking whether to build shared libraries... " >&6; }
11199 test "$can_build_shared" = "no" && enable_shared=no
11201 # On AIX, shared libraries and static libraries use the same namespace, and
11202 # are all built from PIC.
11205 test "$enable_shared" = yes && enable_static=no
11206 if test -n "$RANLIB"; then
11207 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11208 postinstall_cmds='$RANLIB $lib'
11213 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11214 test "$enable_shared" = yes && enable_static=no
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11219 $as_echo "$enable_shared" >&6; }
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11222 $as_echo_n "checking whether to build static libraries... " >&6; }
11223 # Make sure either enable_shared or enable_static is yes.
11224 test "$enable_shared" = yes || enable_static=yes
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11226 $as_echo "$enable_static" >&6; }
11233 ac_cpp='$CPP $CPPFLAGS'
11234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11252 # Source file extension for Go test sources.
11255 # Object file extension for compiled Go test sources.
11259 # Code to be used in simple compile tests
11260 lt_simple_compile_test_code="package main; func main() { }"
11262 # Code to be used in simple link tests
11263 lt_simple_link_test_code='package main; func main() { }'
11265 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11272 # If no C compiler was specified, use CC.
11275 # If no C compiler flags were specified, use CFLAGS.
11276 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11278 # Allow CC to be a program name with arguments.
11282 # save warnings/boilerplate of simple test code
11283 ac_outfile=conftest.$ac_objext
11284 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11285 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11286 _lt_compiler_boilerplate=`cat conftest.err`
11289 ac_outfile=conftest.$ac_objext
11290 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11291 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11292 _lt_linker_boilerplate=`cat conftest.err`
11296 # Allow CC to be a program name with arguments.
11304 for cc_temp in $compiler""; do
11306 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11307 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11312 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11315 # Go did not exist at the time GCC didn't implicitly link libc in.
11316 archive_cmds_need_lc_GO=no
11318 old_archive_cmds_GO=$old_archive_cmds
11321 ## There is no encapsulation within the following macros, do not change
11322 ## the running order or otherwise move them around unless you know exactly
11323 ## what you are doing...
11324 if test -n "$compiler"; then
11326 lt_prog_compiler_no_builtin_flag_GO=
11328 if test "$GCC" = yes; then
11329 case $cc_basename in
11331 lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11333 lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11337 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11338 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11339 $as_echo_n "(cached) " >&6
11341 lt_cv_prog_compiler_rtti_exceptions=no
11342 ac_outfile=conftest.$ac_objext
11343 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11344 lt_compiler_flag="-fno-rtti -fno-exceptions"
11345 # Insert the option either (1) after the last *FLAGS variable, or
11346 # (2) before a word containing "conftest.", or (3) at the end.
11347 # Note that $ac_compile itself does not contain backslashes and begins
11348 # with a dollar sign (not a hyphen), so the echo should work correctly.
11349 # The option is referenced via a variable to avoid confusing sed.
11350 lt_compile=`echo "$ac_compile" | $SED \
11351 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11352 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11353 -e 's:$: $lt_compiler_flag:'`
11354 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11355 (eval "$lt_compile" 2>conftest.err)
11357 cat conftest.err >&5
11358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359 if (exit $ac_status) && test -s "$ac_outfile"; then
11360 # The compiler can only warn and ignore the option if not recognized
11361 # So say no if there are warnings other than the usual output.
11362 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11363 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11364 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11365 lt_cv_prog_compiler_rtti_exceptions=yes
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11372 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11374 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11375 lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11384 lt_prog_compiler_wl_GO=
11385 lt_prog_compiler_pic_GO=
11386 lt_prog_compiler_static_GO=
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11389 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11391 if test "$GCC" = yes; then
11392 lt_prog_compiler_wl_GO='-Wl,'
11393 lt_prog_compiler_static_GO='-static'
11397 # All AIX code is PIC.
11398 if test "$host_cpu" = ia64; then
11399 # AIX 5 now supports IA64 processor
11400 lt_prog_compiler_static_GO='-Bstatic'
11407 # see comment about AmigaOS4 .so support
11408 lt_prog_compiler_pic_GO='-fPIC'
11411 # FIXME: we need at least 68020 code to build shared libraries, but
11412 # adding the `-m68020' flag to GCC prevents building anything better,
11414 lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11419 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11420 # PIC is the default for these OSes.
11423 mingw* | cygwin* | pw32* | os2* | cegcc*)
11424 # This hack is so that the source file can tell whether it is being
11425 # built for inclusion in a dll (and should export symbols for example).
11426 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11427 # (--disable-auto-import) libraries
11428 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11431 darwin* | rhapsody*)
11432 # PIC is the default on this platform
11433 # Common symbols not allowed in MH_DYLIB files
11434 lt_prog_compiler_pic_GO='-fno-common'
11438 # PIC is the default for Haiku.
11439 # The "-static" flag exists, but is broken.
11440 lt_prog_compiler_static_GO=
11444 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11445 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11446 # sets the default TLS model and affects inlining.
11452 lt_prog_compiler_pic_GO='-fPIC'
11458 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11459 # Instead, we relocate shared libraries at runtime.
11463 # Just because we use GCC doesn't mean we suddenly get shared libraries
11464 # on systems that don't support them.
11465 lt_prog_compiler_can_build_shared_GO=no
11470 # QNX uses GNU C++, but need to define -shared option too, otherwise
11471 # it will coredump.
11472 lt_prog_compiler_pic_GO='-fPIC -shared'
11476 if test -d /usr/nec; then
11477 lt_prog_compiler_pic_GO=-Kconform_pic
11482 lt_prog_compiler_pic_GO='-fPIC'
11486 case $cc_basename in
11487 nvcc*) # Cuda Compiler Driver 2.2
11488 lt_prog_compiler_wl_GO='-Xlinker '
11489 lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11493 # PORTME Check for flag to pass linker flags through the system compiler.
11496 lt_prog_compiler_wl_GO='-Wl,'
11497 if test "$host_cpu" = ia64; then
11498 # AIX 5 now supports IA64 processor
11499 lt_prog_compiler_static_GO='-Bstatic'
11501 lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11505 mingw* | cygwin* | pw32* | os2* | cegcc*)
11506 # This hack is so that the source file can tell whether it is being
11507 # built for inclusion in a dll (and should export symbols for example).
11508 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11511 hpux9* | hpux10* | hpux11*)
11512 lt_prog_compiler_wl_GO='-Wl,'
11513 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11514 # not for PA HP-UX.
11520 lt_prog_compiler_pic_GO='+Z'
11523 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11524 lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11527 irix5* | irix6* | nonstopux*)
11528 lt_prog_compiler_wl_GO='-Wl,'
11529 # PIC (with -KPIC) is the default.
11530 lt_prog_compiler_static_GO='-non_shared'
11533 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11534 case $cc_basename in
11535 # old Intel for x86_64 which still supported -KPIC.
11537 lt_prog_compiler_wl_GO='-Wl,'
11538 lt_prog_compiler_pic_GO='-KPIC'
11539 lt_prog_compiler_static_GO='-static'
11541 # icc used to be incompatible with GCC.
11542 # ICC 10 doesn't accept -KPIC any more.
11544 lt_prog_compiler_wl_GO='-Wl,'
11545 lt_prog_compiler_pic_GO='-fPIC'
11546 lt_prog_compiler_static_GO='-static'
11548 # Lahey Fortran 8.1.
11550 lt_prog_compiler_wl_GO='-Wl,'
11551 lt_prog_compiler_pic_GO='--shared'
11552 lt_prog_compiler_static_GO='--static'
11554 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11555 # Portland Group compilers (*not* the Pentium gcc compiler,
11556 # which looks to be a dead project)
11557 lt_prog_compiler_wl_GO='-Wl,'
11558 lt_prog_compiler_pic_GO='-fpic'
11559 lt_prog_compiler_static_GO='-Bstatic'
11562 lt_prog_compiler_wl_GO='-Wl,'
11563 # All Alpha code is PIC.
11564 lt_prog_compiler_static_GO='-non_shared'
11566 xl* | bgxl* | bgf* | mpixl*)
11567 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11568 lt_prog_compiler_wl_GO='-Wl,'
11569 lt_prog_compiler_pic_GO='-qpic'
11570 lt_prog_compiler_static_GO='-qstaticlink'
11573 case `$CC -V 2>&1 | sed 5q` in
11574 *Sun\ F* | *Sun*Fortran*)
11575 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11576 lt_prog_compiler_pic_GO='-KPIC'
11577 lt_prog_compiler_static_GO='-Bstatic'
11578 lt_prog_compiler_wl_GO=''
11582 lt_prog_compiler_pic_GO='-KPIC'
11583 lt_prog_compiler_static_GO='-Bstatic'
11584 lt_prog_compiler_wl_GO='-Wl,'
11592 lt_prog_compiler_pic_GO='-KPIC'
11593 lt_prog_compiler_static_GO='-Bstatic'
11597 # QNX uses GNU C++, but need to define -shared option too, otherwise
11598 # it will coredump.
11599 lt_prog_compiler_pic_GO='-fPIC -shared'
11602 osf3* | osf4* | osf5*)
11603 lt_prog_compiler_wl_GO='-Wl,'
11604 # All OSF/1 code is PIC.
11605 lt_prog_compiler_static_GO='-non_shared'
11609 lt_prog_compiler_static_GO='-non_shared'
11613 lt_prog_compiler_pic_GO='-KPIC'
11614 lt_prog_compiler_static_GO='-Bstatic'
11615 case $cc_basename in
11616 f77* | f90* | f95*)
11617 lt_prog_compiler_wl_GO='-Qoption ld ';;
11619 lt_prog_compiler_wl_GO='-Wl,';;
11624 lt_prog_compiler_wl_GO='-Qoption ld '
11625 lt_prog_compiler_pic_GO='-PIC'
11626 lt_prog_compiler_static_GO='-Bstatic'
11629 sysv4 | sysv4.2uw2* | sysv4.3*)
11630 lt_prog_compiler_wl_GO='-Wl,'
11631 lt_prog_compiler_pic_GO='-KPIC'
11632 lt_prog_compiler_static_GO='-Bstatic'
11636 if test -d /usr/nec ;then
11637 lt_prog_compiler_pic_GO='-Kconform_pic'
11638 lt_prog_compiler_static_GO='-Bstatic'
11642 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11643 lt_prog_compiler_wl_GO='-Wl,'
11644 lt_prog_compiler_pic_GO='-KPIC'
11645 lt_prog_compiler_static_GO='-Bstatic'
11649 lt_prog_compiler_wl_GO='-Wl,'
11650 lt_prog_compiler_can_build_shared_GO=no
11654 lt_prog_compiler_pic_GO='-pic'
11655 lt_prog_compiler_static_GO='-Bstatic'
11659 lt_prog_compiler_can_build_shared_GO=no
11665 # For platforms which do not support PIC, -DPIC is meaningless:
11667 lt_prog_compiler_pic_GO=
11670 lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
11674 $as_echo "$lt_prog_compiler_pic_GO" >&6; }
11679 # Check to make sure the PIC flag actually works.
11681 if test -n "$lt_prog_compiler_pic_GO"; then
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
11683 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
11684 if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
11685 $as_echo_n "(cached) " >&6
11687 lt_cv_prog_compiler_pic_works_GO=no
11688 ac_outfile=conftest.$ac_objext
11689 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11690 lt_compiler_flag="$lt_prog_compiler_pic_GO"
11691 # Insert the option either (1) after the last *FLAGS variable, or
11692 # (2) before a word containing "conftest.", or (3) at the end.
11693 # Note that $ac_compile itself does not contain backslashes and begins
11694 # with a dollar sign (not a hyphen), so the echo should work correctly.
11695 # The option is referenced via a variable to avoid confusing sed.
11696 lt_compile=`echo "$ac_compile" | $SED \
11697 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11698 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11699 -e 's:$: $lt_compiler_flag:'`
11700 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11701 (eval "$lt_compile" 2>conftest.err)
11703 cat conftest.err >&5
11704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705 if (exit $ac_status) && test -s "$ac_outfile"; then
11706 # The compiler can only warn and ignore the option if not recognized
11707 # So say no if there are warnings other than the usual output.
11708 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11709 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11710 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11711 lt_cv_prog_compiler_pic_works_GO=yes
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
11718 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
11720 if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
11721 case $lt_prog_compiler_pic_GO in
11723 *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
11726 lt_prog_compiler_pic_GO=
11727 lt_prog_compiler_can_build_shared_GO=no
11735 # Check to make sure the static flag actually works.
11737 wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11739 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11740 if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
11741 $as_echo_n "(cached) " >&6
11743 lt_cv_prog_compiler_static_works_GO=no
11744 save_LDFLAGS="$LDFLAGS"
11745 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11746 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11747 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11748 # The linker can only warn and ignore the option if not recognized
11749 # So say no if there are warnings
11750 if test -s conftest.err; then
11751 # Append any errors to the config.log.
11752 cat conftest.err 1>&5
11753 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11754 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11755 if diff conftest.exp conftest.er2 >/dev/null; then
11756 lt_cv_prog_compiler_static_works_GO=yes
11759 lt_cv_prog_compiler_static_works_GO=yes
11763 LDFLAGS="$save_LDFLAGS"
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
11767 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
11769 if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
11772 lt_prog_compiler_static_GO=
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11779 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11780 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11781 $as_echo_n "(cached) " >&6
11783 lt_cv_prog_compiler_c_o_GO=no
11784 $RM -r conftest 2>/dev/null
11788 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11790 lt_compiler_flag="-o out/conftest2.$ac_objext"
11791 # Insert the option either (1) after the last *FLAGS variable, or
11792 # (2) before a word containing "conftest.", or (3) at the end.
11793 # Note that $ac_compile itself does not contain backslashes and begins
11794 # with a dollar sign (not a hyphen), so the echo should work correctly.
11795 lt_compile=`echo "$ac_compile" | $SED \
11796 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11797 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11798 -e 's:$: $lt_compiler_flag:'`
11799 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11800 (eval "$lt_compile" 2>out/conftest.err)
11802 cat out/conftest.err >&5
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11806 # The compiler can only warn and ignore the option if not recognized
11807 # So say no if there are warnings
11808 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11809 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11810 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11811 lt_cv_prog_compiler_c_o_GO=yes
11816 # SGI C++ compiler will create directory out/ii_files/ for
11817 # template instantiation
11818 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11819 $RM out/* && rmdir out
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
11826 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11831 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11832 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11833 $as_echo_n "(cached) " >&6
11835 lt_cv_prog_compiler_c_o_GO=no
11836 $RM -r conftest 2>/dev/null
11840 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11842 lt_compiler_flag="-o out/conftest2.$ac_objext"
11843 # Insert the option either (1) after the last *FLAGS variable, or
11844 # (2) before a word containing "conftest.", or (3) at the end.
11845 # Note that $ac_compile itself does not contain backslashes and begins
11846 # with a dollar sign (not a hyphen), so the echo should work correctly.
11847 lt_compile=`echo "$ac_compile" | $SED \
11848 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11849 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11850 -e 's:$: $lt_compiler_flag:'`
11851 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11852 (eval "$lt_compile" 2>out/conftest.err)
11854 cat out/conftest.err >&5
11855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11858 # The compiler can only warn and ignore the option if not recognized
11859 # So say no if there are warnings
11860 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11861 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11862 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11863 lt_cv_prog_compiler_c_o_GO=yes
11868 # SGI C++ compiler will create directory out/ii_files/ for
11869 # template instantiation
11870 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11871 $RM out/* && rmdir out
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
11878 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
11883 hard_links="nottested"
11884 if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
11885 # do not overwrite the value of need_locks provided by the user
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11887 $as_echo_n "checking if we can lock with hard links... " >&6; }
11890 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11892 ln conftest.a conftest.b 2>&5 || hard_links=no
11893 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11895 $as_echo "$hard_links" >&6; }
11896 if test "$hard_links" = no; then
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11898 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11908 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11911 allow_undefined_flag_GO=
11912 always_export_symbols_GO=no
11914 archive_expsym_cmds_GO=
11915 compiler_needs_object_GO=no
11916 enable_shared_with_static_runtimes_GO=no
11917 export_dynamic_flag_spec_GO=
11918 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11919 hardcode_automatic_GO=no
11920 hardcode_direct_GO=no
11921 hardcode_direct_absolute_GO=no
11922 hardcode_libdir_flag_spec_GO=
11923 hardcode_libdir_flag_spec_ld_GO=
11924 hardcode_libdir_separator_GO=
11925 hardcode_minus_L_GO=no
11926 hardcode_shlibpath_var_GO=unsupported
11927 inherit_rpath_GO=no
11928 link_all_deplibs_GO=unknown
11930 module_expsym_cmds_GO=
11931 old_archive_from_new_cmds_GO=
11932 old_archive_from_expsyms_cmds_GO=
11933 thread_safe_flag_spec_GO=
11934 whole_archive_flag_spec_GO=
11935 # include_expsyms should be a list of space-separated symbols to be *always*
11936 # included in the symbol list
11937 include_expsyms_GO=
11938 # exclude_expsyms can be an extended regexp of symbols to exclude
11939 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11940 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11941 # as well as any symbol that contains `d'.
11942 exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11943 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11944 # platforms (ab)use it in PIC code, but their linkers get confused if
11945 # the symbol is explicitly referenced. Since portable code cannot
11946 # rely on this symbol name, it's probably fine to never include it in
11947 # preloaded symbol tables.
11948 # Exclude shared library initialization/finalization symbols.
11949 extract_expsyms_cmds=
11952 cygwin* | mingw* | pw32* | cegcc*)
11953 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11954 # When not using gcc, we currently assume that we are using
11955 # Microsoft Visual C++.
11956 if test "$GCC" != yes; then
11961 # we just hope/assume this is gcc and not c89 (= MSVC++)
11971 # On some targets, GNU ld is compatible enough with the native linker
11972 # that we're better off using the native interface for both.
11973 lt_use_gnu_ld_interface=no
11974 if test "$with_gnu_ld" = yes; then
11977 # The AIX port of GNU ld has always aspired to compatibility
11978 # with the native linker. However, as the warning in the GNU ld
11979 # block says, versions before 2.19.5* couldn't really create working
11980 # shared libraries, regardless of the interface used.
11981 case `$LD -v 2>&1` in
11982 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11983 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11984 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11986 lt_use_gnu_ld_interface=yes
11991 lt_use_gnu_ld_interface=yes
11996 if test "$lt_use_gnu_ld_interface" = yes; then
11997 # If archive_cmds runs LD, not CC, wlarc should be empty
12000 # Set some defaults for GNU ld with shared library support. These
12001 # are reset later if shared libraries are not supported. Putting them
12002 # here allows them to be overridden if necessary.
12003 runpath_var=LD_RUN_PATH
12004 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12005 export_dynamic_flag_spec_GO='${wl}--export-dynamic'
12006 # ancient GNU ld didn't support --whole-archive et. al.
12007 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12008 whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12010 whole_archive_flag_spec_GO=
12012 supports_anon_versioning=no
12013 case `$LD -v 2>&1` in
12014 *GNU\ gold*) supports_anon_versioning=yes ;;
12015 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12016 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12017 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12018 *\ 2.11.*) ;; # other 2.11 versions
12019 *) supports_anon_versioning=yes ;;
12022 # See if GNU ld supports shared libraries.
12025 # On AIX/PPC, the GNU linker is very broken
12026 if test "$host_cpu" != ia64; then
12030 *** Warning: the GNU linker, at least up to release 2.19, is reported
12031 *** to be unable to reliably create shared libraries on AIX.
12032 *** Therefore, libtool is disabling shared libraries support. If you
12033 *** really care for shared libraries, you may want to install binutils
12034 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12035 *** You will then need to restart the configuration process.
12044 # see comment about AmigaOS4 .so support
12045 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12046 archive_expsym_cmds_GO=''
12049 archive_cmds_GO='$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)'
12050 hardcode_libdir_flag_spec_GO='-L$libdir'
12051 hardcode_minus_L_GO=yes
12057 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12058 allow_undefined_flag_GO=unsupported
12059 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12060 # support --undefined. This deserves some investigation. FIXME
12061 archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12067 cygwin* | mingw* | pw32* | cegcc*)
12068 # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12069 # as there is no search path for DLLs.
12070 hardcode_libdir_flag_spec_GO='-L$libdir'
12071 export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12072 allow_undefined_flag_GO=unsupported
12073 always_export_symbols_GO=no
12074 enable_shared_with_static_runtimes_GO=yes
12075 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12077 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12078 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12079 # If the export-symbols file already is a .def file (1st line
12080 # is EXPORTS), use it as is; otherwise, prepend...
12081 archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12082 cp $export_symbols $output_objdir/$soname.def;
12084 echo EXPORTS > $output_objdir/$soname.def;
12085 cat $export_symbols >> $output_objdir/$soname.def;
12087 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12094 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12095 link_all_deplibs_GO=yes
12099 hardcode_direct_GO=no
12100 hardcode_shlibpath_var_GO=no
12101 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12102 export_dynamic_flag_spec_GO='${wl}-E'
12103 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12104 # Instead, shared libraries are loaded at an image base (0x10000000 by
12105 # default) and relocated if they conflict, which is a slow very memory
12106 # consuming and fragmenting process. To avoid this, we pick a random,
12107 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12108 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12109 archive_cmds_GO='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12110 archive_expsym_cmds_GO='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'
12113 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12115 if test "$host_os" = linux-dietlibc; then
12116 case $cc_basename in
12117 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12120 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12121 && test "$tmp_diet" = no
12124 tmp_sharedflag='-shared'
12125 case $cc_basename,$host_cpu in
12126 pgcc*) # Portland Group C compiler
12127 whole_archive_flag_spec_GO='${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'
12128 tmp_addflag=' $pic_flag'
12130 pgf77* | pgf90* | pgf95* | pgfortran*)
12131 # Portland Group f77 and f90 compilers
12132 whole_archive_flag_spec_GO='${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'
12133 tmp_addflag=' $pic_flag -Mnomain' ;;
12134 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12135 tmp_addflag=' -i_dynamic' ;;
12136 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12137 tmp_addflag=' -i_dynamic -nofor_main' ;;
12138 ifc* | ifort*) # Intel Fortran compiler
12139 tmp_addflag=' -nofor_main' ;;
12140 lf95*) # Lahey Fortran 8.1
12141 whole_archive_flag_spec_GO=
12142 tmp_sharedflag='--shared' ;;
12143 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12144 tmp_sharedflag='-qmkshrobj'
12146 nvcc*) # Cuda Compiler Driver 2.2
12147 whole_archive_flag_spec_GO='${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'
12148 compiler_needs_object_GO=yes
12151 case `$CC -V 2>&1 | sed 5q` in
12152 *Sun\ C*) # Sun C 5.9
12153 whole_archive_flag_spec_GO='${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'
12154 compiler_needs_object_GO=yes
12155 tmp_sharedflag='-G' ;;
12156 *Sun\ F*) # Sun Fortran 8.3
12157 tmp_sharedflag='-G' ;;
12159 archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12161 if test "x$supports_anon_versioning" = xyes; then
12162 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12163 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12164 echo "local: *; };" >> $output_objdir/$libname.ver~
12165 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12168 case $cc_basename in
12169 xlf* | bgf* | bgxlf* | mpixlf*)
12170 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12171 whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12172 hardcode_libdir_flag_spec_GO=
12173 hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12174 archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12175 if test "x$supports_anon_versioning" = xyes; then
12176 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12177 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12178 echo "local: *; };" >> $output_objdir/$libname.ver~
12179 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12189 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12190 archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12193 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12194 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12199 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12203 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12204 *** create shared libraries on Solaris systems. Therefore, libtool
12205 *** is disabling shared libraries support. We urge you to upgrade GNU
12206 *** binutils to release 2.9.1 or newer. Another option is to modify
12207 *** your PATH or compiler configuration so that the native linker is
12208 *** used, and then restart.
12211 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12212 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12213 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12219 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12220 case `$LD -v 2>&1` in
12221 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12225 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12226 *** reliably create shared libraries on SCO systems. Therefore, libtool
12227 *** is disabling shared libraries support. We urge you to upgrade GNU
12228 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12229 *** your PATH or compiler configuration so that the native linker is
12230 *** used, and then restart.
12235 # For security reasons, it is highly recommended that you always
12236 # use absolute paths for naming shared libraries, and exclude the
12237 # DT_RUNPATH tag from executables and libraries. But doing so
12238 # requires that you compile everything twice, which is a pain.
12239 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12240 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12241 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12242 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12251 archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12253 hardcode_direct_GO=yes
12254 hardcode_shlibpath_var_GO=no
12258 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12259 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12260 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12267 if test "$ld_shlibs_GO" = no; then
12269 hardcode_libdir_flag_spec_GO=
12270 export_dynamic_flag_spec_GO=
12271 whole_archive_flag_spec_GO=
12274 # PORTME fill in a description of your system's linker (not GNU ld)
12277 allow_undefined_flag_GO=unsupported
12278 always_export_symbols_GO=yes
12279 archive_expsym_cmds_GO='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
12280 # Note: this linker hardcodes the directories in LIBPATH if there
12281 # are no directories specified by -L.
12282 hardcode_minus_L_GO=yes
12283 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12284 # Neither direct hardcoding nor static linking is supported with a
12286 hardcode_direct_GO=unsupported
12291 if test "$host_cpu" = ia64; then
12292 # On IA64, the linker does run time linking by default, so we don't
12293 # have to do anything special.
12294 aix_use_runtimelinking=no
12295 exp_sym_flag='-Bexport'
12298 # If we're using GNU nm, then we don't want the "-C" option.
12299 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12300 # Also, AIX nm treats weak defined symbols like other global
12301 # defined symbols, whereas GNU nm marks them as "W".
12302 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12303 export_symbols_cmds_GO='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12305 export_symbols_cmds_GO='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12307 aix_use_runtimelinking=no
12309 # Test if we are trying to use run time linking or normal
12310 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12311 # need to do runtime linking.
12312 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12313 for ld_flag in $LDFLAGS; do
12314 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12315 aix_use_runtimelinking=yes
12322 exp_sym_flag='-bexport'
12323 no_entry_flag='-bnoentry'
12326 # When large executables or shared objects are built, AIX ld can
12327 # have problems creating the table of contents. If linking a library
12328 # or program results in "error TOC overflow" add -mminimal-toc to
12329 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12330 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12333 hardcode_direct_GO=yes
12334 hardcode_direct_absolute_GO=yes
12335 hardcode_libdir_separator_GO=':'
12336 link_all_deplibs_GO=yes
12337 file_list_spec_GO='${wl}-f,'
12339 if test "$GCC" = yes; then
12340 case $host_os in aix4.[012]|aix4.[012].*)
12341 # We only want to do this on AIX 4.2 and lower, the check
12342 # below for broken collect2 doesn't work under 4.3+
12343 collect2name=`${CC} -print-prog-name=collect2`
12344 if test -f "$collect2name" &&
12345 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12347 # We have reworked collect2
12350 # We have old collect2
12351 hardcode_direct_GO=unsupported
12352 # It fails to find uninstalled libraries when the uninstalled
12353 # path is not listed in the libpath. Setting hardcode_minus_L
12354 # to unsupported forces relinking
12355 hardcode_minus_L_GO=yes
12356 hardcode_libdir_flag_spec_GO='-L$libdir'
12357 hardcode_libdir_separator_GO=
12361 shared_flag='-shared'
12362 if test "$aix_use_runtimelinking" = yes; then
12363 shared_flag="$shared_flag "'${wl}-G'
12367 if test "$host_cpu" = ia64; then
12368 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12369 # chokes on -Wl,-G. The following line is correct:
12372 if test "$aix_use_runtimelinking" = yes; then
12373 shared_flag='${wl}-G'
12375 shared_flag='${wl}-bM:SRE'
12380 export_dynamic_flag_spec_GO='${wl}-bexpall'
12381 # It seems that -bexpall does not export symbols beginning with
12382 # underscore (_), so it is better to generate a list of symbols to export.
12383 always_export_symbols_GO=yes
12384 if test "$aix_use_runtimelinking" = yes; then
12385 # Warning - without using the other runtime loading flags (-brtl),
12386 # -berok will link without error, but may produce a broken library.
12387 allow_undefined_flag_GO='-berok'
12388 # Determine the default libpath from the value encoded in an
12389 # empty executable.
12390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12391 /* end confdefs.h. */
12401 if ac_fn_c_try_link "$LINENO"; then :
12403 lt_aix_libpath_sed='
12404 /Import File Strings/,/^$/ {
12410 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12411 # Check for a 64-bit object if we didn't find anything.
12412 if test -z "$aix_libpath"; then
12413 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12416 rm -f core conftest.err conftest.$ac_objext \
12417 conftest$ac_exeext conftest.$ac_ext
12418 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12420 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12421 archive_expsym_cmds_GO='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12423 if test "$host_cpu" = ia64; then
12424 hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12425 allow_undefined_flag_GO="-z nodefs"
12426 archive_expsym_cmds_GO="\$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"
12428 # Determine the default libpath from the value encoded in an
12429 # empty executable.
12430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12431 /* end confdefs.h. */
12441 if ac_fn_c_try_link "$LINENO"; then :
12443 lt_aix_libpath_sed='
12444 /Import File Strings/,/^$/ {
12450 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12451 # Check for a 64-bit object if we didn't find anything.
12452 if test -z "$aix_libpath"; then
12453 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12456 rm -f core conftest.err conftest.$ac_objext \
12457 conftest$ac_exeext conftest.$ac_ext
12458 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12460 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12461 # Warning - without using the other run time loading flags,
12462 # -berok will link without error, but may produce a broken library.
12463 no_undefined_flag_GO=' ${wl}-bernotok'
12464 allow_undefined_flag_GO=' ${wl}-berok'
12465 if test "$with_gnu_ld" = yes; then
12466 # We only use this code for GNU lds that support --whole-archive.
12467 whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12469 # Exported symbols can be pulled into shared objects from archives
12470 whole_archive_flag_spec_GO='$convenience'
12472 archive_cmds_need_lc_GO=yes
12473 # This is similar to how AIX traditionally builds its shared libraries.
12474 archive_expsym_cmds_GO="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12482 # see comment about AmigaOS4 .so support
12483 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12484 archive_expsym_cmds_GO=''
12487 archive_cmds_GO='$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)'
12488 hardcode_libdir_flag_spec_GO='-L$libdir'
12489 hardcode_minus_L_GO=yes
12495 export_dynamic_flag_spec_GO=-rdynamic
12498 cygwin* | mingw* | pw32* | cegcc*)
12499 # When not using gcc, we currently assume that we are using
12500 # Microsoft Visual C++.
12501 # hardcode_libdir_flag_spec is actually meaningless, as there is
12502 # no search path for DLLs.
12503 hardcode_libdir_flag_spec_GO=' '
12504 allow_undefined_flag_GO=unsupported
12505 # Tell ltmain to make .lib files, not .a files.
12507 # Tell ltmain to make .dll files, not .so files.
12509 # FIXME: Setting linknames here is a bad hack.
12510 archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12511 # The linker will automatically build a .lib file if we build a DLL.
12512 old_archive_from_new_cmds_GO='true'
12513 # FIXME: Should let the user specify the lib program.
12514 old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12515 fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12516 enable_shared_with_static_runtimes_GO=yes
12519 darwin* | rhapsody*)
12522 archive_cmds_need_lc_GO=no
12523 hardcode_direct_GO=no
12524 hardcode_automatic_GO=yes
12525 hardcode_shlibpath_var_GO=unsupported
12526 if test "$lt_cv_ld_force_load" = "yes"; then
12527 whole_archive_flag_spec_GO='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12529 whole_archive_flag_spec_GO=''
12531 link_all_deplibs_GO=yes
12532 allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12533 case $cc_basename in
12534 ifort*) _lt_dar_can_shared=yes ;;
12535 *) _lt_dar_can_shared=$GCC ;;
12537 if test "$_lt_dar_can_shared" = "yes"; then
12538 output_verbose_link_cmd=func_echo_all
12539 archive_cmds_GO="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12540 module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12541 archive_expsym_cmds_GO="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}"
12542 module_expsym_cmds_GO="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}"
12551 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12552 hardcode_libdir_flag_spec_GO='-L$libdir'
12553 hardcode_shlibpath_var_GO=no
12556 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12557 # support. Future versions do this automatically, but an explicit c++rt0.o
12558 # does not break anything, and helps significantly (at the cost of a little
12561 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12562 hardcode_libdir_flag_spec_GO='-R$libdir'
12563 hardcode_direct_GO=yes
12564 hardcode_shlibpath_var_GO=no
12567 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12569 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12570 hardcode_direct_GO=yes
12571 hardcode_minus_L_GO=yes
12572 hardcode_shlibpath_var_GO=no
12575 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12576 freebsd* | dragonfly*)
12577 archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12578 hardcode_libdir_flag_spec_GO='-R$libdir'
12579 hardcode_direct_GO=yes
12580 hardcode_shlibpath_var_GO=no
12584 if test "$GCC" = yes; then
12585 archive_cmds_GO='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12587 archive_cmds_GO='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12589 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12590 hardcode_libdir_separator_GO=:
12591 hardcode_direct_GO=yes
12593 # hardcode_minus_L: Not really in the search PATH,
12594 # but as the default location of the library.
12595 hardcode_minus_L_GO=yes
12596 export_dynamic_flag_spec_GO='${wl}-E'
12600 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12601 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12603 archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12605 if test "$with_gnu_ld" = no; then
12606 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12607 hardcode_libdir_flag_spec_ld_GO='+b $libdir'
12608 hardcode_libdir_separator_GO=:
12609 hardcode_direct_GO=yes
12610 hardcode_direct_absolute_GO=yes
12611 export_dynamic_flag_spec_GO='${wl}-E'
12612 # hardcode_minus_L: Not really in the search PATH,
12613 # but as the default location of the library.
12614 hardcode_minus_L_GO=yes
12619 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12622 archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12625 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12628 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12634 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12637 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12640 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12644 if test "$with_gnu_ld" = no; then
12645 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12646 hardcode_libdir_separator_GO=:
12650 hardcode_direct_GO=no
12651 hardcode_shlibpath_var_GO=no
12654 hardcode_direct_GO=yes
12655 hardcode_direct_absolute_GO=yes
12656 export_dynamic_flag_spec_GO='${wl}-E'
12658 # hardcode_minus_L: Not really in the search PATH,
12659 # but as the default location of the library.
12660 hardcode_minus_L_GO=yes
12666 irix5* | irix6* | nonstopux*)
12667 if test "$GCC" = yes; then
12668 archive_cmds_GO='$CC -shared $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'
12669 # Try to use the -exported_symbol ld option, if it does not
12670 # work, assume that -exports_file does not work either and
12671 # implicitly export all symbols.
12672 save_LDFLAGS="$LDFLAGS"
12673 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12675 /* end confdefs.h. */
12678 if ac_fn_c_try_link "$LINENO"; then :
12679 archive_expsym_cmds_GO='$CC -shared $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'
12682 rm -f core conftest.err conftest.$ac_objext \
12683 conftest$ac_exeext conftest.$ac_ext
12684 LDFLAGS="$save_LDFLAGS"
12686 archive_cmds_GO='$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'
12687 archive_expsym_cmds_GO='$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'
12689 archive_cmds_need_lc_GO='no'
12690 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12691 hardcode_libdir_separator_GO=:
12692 inherit_rpath_GO=yes
12693 link_all_deplibs_GO=yes
12697 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12698 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12700 archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12702 hardcode_libdir_flag_spec_GO='-R$libdir'
12703 hardcode_direct_GO=yes
12704 hardcode_shlibpath_var_GO=no
12708 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12709 hardcode_direct_GO=yes
12710 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12711 hardcode_libdir_separator_GO=:
12712 hardcode_shlibpath_var_GO=no
12719 if test -f /usr/libexec/ld.so; then
12720 hardcode_direct_GO=yes
12721 hardcode_shlibpath_var_GO=no
12722 hardcode_direct_absolute_GO=yes
12723 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12724 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12725 archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12726 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12727 export_dynamic_flag_spec_GO='${wl}-E'
12730 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12731 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12732 hardcode_libdir_flag_spec_GO='-R$libdir'
12735 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12736 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12746 hardcode_libdir_flag_spec_GO='-L$libdir'
12747 hardcode_minus_L_GO=yes
12748 allow_undefined_flag_GO=unsupported
12749 archive_cmds_GO='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
12750 old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12754 if test "$GCC" = yes; then
12755 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12756 archive_cmds_GO='$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'
12758 allow_undefined_flag_GO=' -expect_unresolved \*'
12759 archive_cmds_GO='$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'
12761 archive_cmds_need_lc_GO='no'
12762 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12763 hardcode_libdir_separator_GO=:
12766 osf4* | osf5*) # as osf3* with the addition of -msym flag
12767 if test "$GCC" = yes; then
12768 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12769 archive_cmds_GO='$CC -shared${allow_undefined_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'
12770 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12772 allow_undefined_flag_GO=' -expect_unresolved \*'
12773 archive_cmds_GO='$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'
12774 archive_expsym_cmds_GO='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
12775 $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'
12777 # Both c and cxx compiler support -rpath directly
12778 hardcode_libdir_flag_spec_GO='-rpath $libdir'
12780 archive_cmds_need_lc_GO='no'
12781 hardcode_libdir_separator_GO=:
12785 no_undefined_flag_GO=' -z defs'
12786 if test "$GCC" = yes; then
12788 archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12789 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12790 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12792 case `$CC -V 2>&1` in
12795 archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12796 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12797 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12801 archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12802 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12803 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12807 hardcode_libdir_flag_spec_GO='-R$libdir'
12808 hardcode_shlibpath_var_GO=no
12810 solaris2.[0-5] | solaris2.[0-5].*) ;;
12812 # The compiler driver will combine and reorder linker options,
12813 # but understands `-z linker_flag'. GCC discards it without `$wl',
12814 # but is careful enough not to reorder.
12815 # Supported since Solaris 2.6 (maybe 2.5.1?)
12816 if test "$GCC" = yes; then
12817 whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12819 whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
12823 link_all_deplibs_GO=yes
12827 if test "x$host_vendor" = xsequent; then
12828 # Use $CC to link under sequent, because it throws in some extra .o
12829 # files that make .init and .fini sections work.
12830 archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12832 archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12834 hardcode_libdir_flag_spec_GO='-L$libdir'
12835 hardcode_direct_GO=yes
12836 hardcode_minus_L_GO=yes
12837 hardcode_shlibpath_var_GO=no
12841 case $host_vendor in
12843 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12844 hardcode_direct_GO=yes # is this really true???
12847 ## LD is ld it makes a PLAMLIB
12848 ## CC just makes a GrossModule.
12849 archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12850 reload_cmds_GO='$CC -r -o $output$reload_objs'
12851 hardcode_direct_GO=no
12854 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12855 hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
12858 runpath_var='LD_RUN_PATH'
12859 hardcode_shlibpath_var_GO=no
12863 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12864 hardcode_shlibpath_var_GO=no
12865 export_dynamic_flag_spec_GO='-Bexport'
12869 if test -d /usr/nec; then
12870 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12871 hardcode_shlibpath_var_GO=no
12872 runpath_var=LD_RUN_PATH
12873 hardcode_runpath_var=yes
12878 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12879 no_undefined_flag_GO='${wl}-z,text'
12880 archive_cmds_need_lc_GO=no
12881 hardcode_shlibpath_var_GO=no
12882 runpath_var='LD_RUN_PATH'
12884 if test "$GCC" = yes; then
12885 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12886 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12888 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12889 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12893 sysv5* | sco3.2v5* | sco5v6*)
12894 # Note: We can NOT use -z defs as we might desire, because we do not
12895 # link with -lc, and that would cause any symbols used from libc to
12896 # always be unresolved, which means just about no library would
12897 # ever link correctly. If we're not using GNU ld we use -z text
12898 # though, which does catch some bad symbols but isn't as heavy-handed
12900 no_undefined_flag_GO='${wl}-z,text'
12901 allow_undefined_flag_GO='${wl}-z,nodefs'
12902 archive_cmds_need_lc_GO=no
12903 hardcode_shlibpath_var_GO=no
12904 hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
12905 hardcode_libdir_separator_GO=':'
12906 link_all_deplibs_GO=yes
12907 export_dynamic_flag_spec_GO='${wl}-Bexport'
12908 runpath_var='LD_RUN_PATH'
12910 if test "$GCC" = yes; then
12911 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12912 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12914 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12915 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12920 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12921 hardcode_libdir_flag_spec_GO='-L$libdir'
12922 hardcode_shlibpath_var_GO=no
12930 if test x$host_vendor = xsni; then
12932 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12933 export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
12940 $as_echo "$ld_shlibs_GO" >&6; }
12941 test "$ld_shlibs_GO" = no && can_build_shared=no
12943 with_gnu_ld_GO=$with_gnu_ld
12951 # Do we need to explicitly link libc?
12953 case "x$archive_cmds_need_lc_GO" in
12955 # Assume -lc should be added
12956 archive_cmds_need_lc_GO=yes
12958 if test "$enable_shared" = yes && test "$GCC" = yes; then
12959 case $archive_cmds_GO in
12961 # FIXME: we may have to deal with multi-command sequences.
12964 # Test whether the compiler implicitly links with -lc since on some
12965 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12966 # to ld, don't add -lc before -lgcc.
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12968 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12969 if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
12970 $as_echo_n "(cached) " >&6
12973 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12975 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12976 (eval $ac_compile) 2>&5
12978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12979 test $ac_status = 0; } 2>conftest.err; then
12982 libobjs=conftest.$ac_objext
12984 wl=$lt_prog_compiler_wl_GO
12985 pic_flag=$lt_prog_compiler_pic_GO
12991 lt_save_allow_undefined_flag=$allow_undefined_flag_GO
12992 allow_undefined_flag_GO=
12993 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12994 (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12997 test $ac_status = 0; }
12999 lt_cv_archive_cmds_need_lc_GO=no
13001 lt_cv_archive_cmds_need_lc_GO=yes
13003 allow_undefined_flag_GO=$lt_save_allow_undefined_flag
13005 cat conftest.err 1>&5
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13011 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13012 archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13083 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13084 hardcode_action_GO=
13085 if test -n "$hardcode_libdir_flag_spec_GO" ||
13086 test -n "$runpath_var_GO" ||
13087 test "X$hardcode_automatic_GO" = "Xyes" ; then
13089 # We can hardcode non-existent directories.
13090 if test "$hardcode_direct_GO" != no &&
13091 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13092 # have to relink, otherwise we might link with an installed library
13093 # when we should be linking with a yet-to-be-installed one
13094 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13095 test "$hardcode_minus_L_GO" != no; then
13096 # Linking always hardcodes the temporary library directory.
13097 hardcode_action_GO=relink
13099 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13100 hardcode_action_GO=immediate
13103 # We cannot hardcode anything, or else we can only hardcode existing
13105 hardcode_action_GO=unsupported
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13108 $as_echo "$hardcode_action_GO" >&6; }
13110 if test "$hardcode_action_GO" = relink ||
13111 test "$inherit_rpath_GO" = yes; then
13112 # Fast installation is not supported
13113 enable_fast_install=no
13114 elif test "$shlibpath_overrides_runpath" = yes ||
13115 test "$enable_shared" = no; then
13116 # Fast installation is not necessary
13117 enable_fast_install=needless
13129 ac_cpp='$CPP $CPPFLAGS'
13130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13141 ac_config_commands="$ac_config_commands libtool"
13146 # Only expand once:
13152 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
13155 WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13161 glibgo_toolexecdir=no
13162 glibgo_toolexeclibdir=no
13163 glibgo_prefixdir=$prefix
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13166 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13167 # Check whether --enable-version-specific-runtime-libs was given.
13168 if test "${enable_version_specific_runtime_libs+set}" = set; then :
13169 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13170 yes) version_specific_libs=yes ;;
13171 no) version_specific_libs=no ;;
13172 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13175 version_specific_libs=no
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13179 $as_echo "$version_specific_libs" >&6; }
13181 # Version-specific runtime libs processing.
13182 if test $version_specific_libs = yes; then
13183 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13184 glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13187 # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13188 # Install a library built with a cross compiler in tooldir, not libdir.
13189 if test x"$glibgo_toolexecdir" = x"no"; then
13190 if test -n "$with_cross_host" &&
13191 test x"$with_cross_host" != x"no"; then
13192 glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13193 glibgo_toolexeclibdir='${toolexecdir}/lib'
13195 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13196 glibgo_toolexeclibdir='${libdir}'
13198 multi_os_directory=`$CC -print-multi-os-directory`
13199 case $multi_os_directory in
13200 .) ;; # Avoid trailing /.
13201 *) glibgo_toolexeclibdir=$glibgo_toolexeclibdir/$multi_os_directory ;;
13209 # See if the user wants to configure without libffi. Some
13210 # architectures don't support it. FIXME: We should set a default
13211 # based on the host.
13213 # Check whether --with-libffi was given.
13214 if test "${with_libffi+set}" = set; then :
13215 withval=$with_libffi; :
13217 with_libffi=${with_libffi_default-yes}
13223 if test "$with_libffi" != no; then
13225 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
13227 LIBFFI=../libffi/libffi_convenience.la
13228 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13241 *-*-darwin*) is_darwin=yes; GOOS=darwin ;;
13242 *-*-freebsd*) is_freebsd=yes; GOOS=freebsd ;;
13243 *-*-irix6*) is_irix=yes; GOOS=irix ;;
13244 *-*-linux*) is_linux=yes; GOOS=linux ;;
13245 *-*-rtems*) is_rtems=yes; GOOS=rtems ;;
13246 *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
13248 if test $is_darwin = yes; then
13249 LIBGO_IS_DARWIN_TRUE=
13250 LIBGO_IS_DARWIN_FALSE='#'
13252 LIBGO_IS_DARWIN_TRUE='#'
13253 LIBGO_IS_DARWIN_FALSE=
13256 if test $is_freebsd = yes; then
13257 LIBGO_IS_FREEBSD_TRUE=
13258 LIBGO_IS_FREEBSD_FALSE='#'
13260 LIBGO_IS_FREEBSD_TRUE='#'
13261 LIBGO_IS_FREEBSD_FALSE=
13264 if test $is_irix = yes; then
13265 LIBGO_IS_IRIX_TRUE=
13266 LIBGO_IS_IRIX_FALSE='#'
13268 LIBGO_IS_IRIX_TRUE='#'
13269 LIBGO_IS_IRIX_FALSE=
13272 if test $is_linux = yes; then
13273 LIBGO_IS_LINUX_TRUE=
13274 LIBGO_IS_LINUX_FALSE='#'
13276 LIBGO_IS_LINUX_TRUE='#'
13277 LIBGO_IS_LINUX_FALSE=
13280 if test $is_rtems = yes; then
13281 LIBGO_IS_RTEMS_TRUE=
13282 LIBGO_IS_RTEMS_FALSE='#'
13284 LIBGO_IS_RTEMS_TRUE='#'
13285 LIBGO_IS_RTEMS_FALSE=
13288 if test $is_solaris = yes; then
13289 LIBGO_IS_SOLARIS_TRUE=
13290 LIBGO_IS_SOLARIS_FALSE='#'
13292 LIBGO_IS_SOLARIS_TRUE='#'
13293 LIBGO_IS_SOLARIS_FALSE=
13314 arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
13318 i[34567]86-*-* | x86_64-*-*)
13319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13320 /* end confdefs.h. */
13326 if ac_fn_c_try_compile "$LINENO"; then :
13331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13332 if test "$is_386" = "yes"; then
13343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13344 /* end confdefs.h. */
13346 #if _MIPS_SIM != _ABIO32
13350 if ac_fn_c_try_compile "$LINENO"; then :
13353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13354 /* end confdefs.h. */
13356 #if _MIPS_SIM != _ABIN32
13360 if ac_fn_c_try_compile "$LINENO"; then :
13363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13364 /* end confdefs.h. */
13366 #if _MIPS_SIM != _ABI64
13370 if ac_fn_c_try_compile "$LINENO"; then :
13373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13374 /* end confdefs.h. */
13376 #if _MIPS_SIM != _ABIO64
13380 if ac_fn_c_try_compile "$LINENO"; then :
13383 as_fn_error "unknown MIPS ABI" "$LINENO" 5
13386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13393 case "$mips_abi" in
13394 "o32") GOARCH=mipso32 ;;
13395 "n32") GOARCH=mipsn32 ;;
13396 "n64") GOARCH=mipsn64 ;;
13397 "o64") GOARCH=mipso64 ;;
13400 rs6000*-*-* | powerpc*-*-*)
13401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13402 /* end confdefs.h. */
13408 if ac_fn_c_try_compile "$LINENO"; then :
13413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13414 if test "$is_ppc" = "yes"; then
13421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13422 /* end confdefs.h. */
13424 #if defined(__sparcv9) || defined(__arch64__)
13428 if ac_fn_c_try_compile "$LINENO"; then :
13433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13434 if test "$is_sparc" = "yes"; then
13441 if test $is_386 = yes; then
13443 LIBGO_IS_386_FALSE='#'
13445 LIBGO_IS_386_TRUE='#'
13446 LIBGO_IS_386_FALSE=
13449 if test $is_alpha = yes; then
13450 LIBGO_IS_ALPHA_TRUE=
13451 LIBGO_IS_ALPHA_FALSE='#'
13453 LIBGO_IS_ALPHA_TRUE='#'
13454 LIBGO_IS_ALPHA_FALSE=
13457 if test $is_arm = yes; then
13459 LIBGO_IS_ARM_FALSE='#'
13461 LIBGO_IS_ARM_TRUE='#'
13462 LIBGO_IS_ARM_FALSE=
13465 if test $is_m68k = yes; then
13466 LIBGO_IS_M68K_TRUE=
13467 LIBGO_IS_M68K_FALSE='#'
13469 LIBGO_IS_M68K_TRUE='#'
13470 LIBGO_IS_M68K_FALSE=
13473 if test $mips_abi != unknown; then
13474 LIBGO_IS_MIPS_TRUE=
13475 LIBGO_IS_MIPS_FALSE='#'
13477 LIBGO_IS_MIPS_TRUE='#'
13478 LIBGO_IS_MIPS_FALSE=
13481 if test $mips_abi = o32; then
13482 LIBGO_IS_MIPSO32_TRUE=
13483 LIBGO_IS_MIPSO32_FALSE='#'
13485 LIBGO_IS_MIPSO32_TRUE='#'
13486 LIBGO_IS_MIPSO32_FALSE=
13489 if test $mips_abi = n32; then
13490 LIBGO_IS_MIPSN32_TRUE=
13491 LIBGO_IS_MIPSN32_FALSE='#'
13493 LIBGO_IS_MIPSN32_TRUE='#'
13494 LIBGO_IS_MIPSN32_FALSE=
13497 if test $mips_abi = n64; then
13498 LIBGO_IS_MIPSN64_TRUE=
13499 LIBGO_IS_MIPSN64_FALSE='#'
13501 LIBGO_IS_MIPSN64_TRUE='#'
13502 LIBGO_IS_MIPSN64_FALSE=
13505 if test $mips_abi = o64; then
13506 LIBGO_IS_MIPSO64_TRUE=
13507 LIBGO_IS_MIPSO64_FALSE='#'
13509 LIBGO_IS_MIPSO64_TRUE='#'
13510 LIBGO_IS_MIPSO64_FALSE=
13513 if test $is_ppc = yes; then
13515 LIBGO_IS_PPC_FALSE='#'
13517 LIBGO_IS_PPC_TRUE='#'
13518 LIBGO_IS_PPC_FALSE=
13521 if test $is_ppc64 = yes; then
13522 LIBGO_IS_PPC64_TRUE=
13523 LIBGO_IS_PPC64_FALSE='#'
13525 LIBGO_IS_PPC64_TRUE='#'
13526 LIBGO_IS_PPC64_FALSE=
13529 if test $is_sparc = yes; then
13530 LIBGO_IS_SPARC_TRUE=
13531 LIBGO_IS_SPARC_FALSE='#'
13533 LIBGO_IS_SPARC_TRUE='#'
13534 LIBGO_IS_SPARC_FALSE=
13537 if test $is_sparc64 = yes; then
13538 LIBGO_IS_SPARC64_TRUE=
13539 LIBGO_IS_SPARC64_FALSE='#'
13541 LIBGO_IS_SPARC64_TRUE='#'
13542 LIBGO_IS_SPARC64_FALSE=
13545 if test $is_x86_64 = yes; then
13546 LIBGO_IS_X86_64_TRUE=
13547 LIBGO_IS_X86_64_FALSE='#'
13549 LIBGO_IS_X86_64_TRUE='#'
13550 LIBGO_IS_X86_64_FALSE=
13555 GO_SYSCALLS_SYSCALL_OS_ARCH_FILE=
13556 if test -f ${srcdir}/syscalls/syscall_${GOOS}_${GOARCH}.go; then
13557 GO_SYSCALLS_SYSCALL_OS_ARCH_FILE=syscalls/syscall_${GOOS}_${GOARCH}.go
13561 GO_DEBUG_PROC_REGS_OS_ARCH_FILE=
13562 if test -f ${srcdir}/go/debug/proc/regs_${GOOS}_${GOARCH}.go; then
13563 GO_DEBUG_PROC_REGS_OS_ARCH_FILE=go/debug/proc/regs_${GOOS}_${GOARCH}.go
13569 # IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
13570 # msghdr in <sys/socket.h>.
13571 OSCFLAGS='-D_XOPEN_SOURCE=500'
13574 # Solaris 8/9 need this so struct msghdr gets the msg_control
13575 # etc. fields in <sys/socket.h> (_XPG4_2).
13576 OSCFLAGS='-D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED -D__EXTENSIONS__'
13578 *-*-solaris2.1[01])
13579 # Solaris 10+ needs this so struct msghdr gets the msg_control
13580 # etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=500 as
13581 # above doesn't work with C99.
13582 OSCFLAGS='-D_XOPEN_SOURCE=600 -D__EXTENSIONS__'
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
13588 $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
13589 if test "${libgo_cv_c_split_stack_supported+set}" = set; then :
13590 $as_echo_n "(cached) " >&6
13592 CFLAGS_hold=$CFLAGS
13593 CFLAGS="$CFLAGS -fsplit-stack"
13594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13595 /* end confdefs.h. */
13598 if ac_fn_c_try_compile "$LINENO"; then :
13599 libgo_cv_c_split_stack_supported=yes
13601 libgo_cv_c_split_stack_supported=no
13603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13604 CFLAGS=$CFLAGS_hold
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
13607 $as_echo "$libgo_cv_c_split_stack_supported" >&6; }
13608 if test "$libgo_cv_c_split_stack_supported" = yes; then
13609 SPLIT_STACK=-fsplit-stack
13611 $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
13617 if test "$libgo_cv_c_split_stack_supported" = yes; then
13618 USING_SPLIT_STACK_TRUE=
13619 USING_SPLIT_STACK_FALSE='#'
13621 USING_SPLIT_STACK_TRUE='#'
13622 USING_SPLIT_STACK_FALSE=
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
13627 $as_echo_n "checking whether linker supports split stack... " >&6; }
13628 if test "${libgo_cv_c_linker_supports_split_stack+set}" = set; then :
13629 $as_echo_n "(cached) " >&6
13631 libgo_cv_c_linker_supports_split_stack=no
13632 if $LD --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
13633 libgo_cv_c_linker_supports_split_stack=yes
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
13637 $as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
13638 if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
13640 $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13646 $as_echo_n "checking for sqrt in -lm... " >&6; }
13647 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13648 $as_echo_n "(cached) " >&6
13650 ac_check_lib_save_LIBS=$LIBS
13652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13653 /* end confdefs.h. */
13655 /* Override any GCC internal prototype to avoid an error.
13656 Use char because int might match the return type of a GCC
13657 builtin and then its argument prototype would still apply. */
13670 if ac_fn_c_try_link "$LINENO"; then :
13671 ac_cv_lib_m_sqrt=yes
13673 ac_cv_lib_m_sqrt=no
13675 rm -f core conftest.err conftest.$ac_objext \
13676 conftest$ac_exeext conftest.$ac_ext
13677 LIBS=$ac_check_lib_save_LIBS
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13680 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13681 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
13688 $as_echo_n "checking for socket libraries... " >&6; }
13689 if test "${libgo_cv_lib_sockets+set}" = set; then :
13690 $as_echo_n "(cached) " >&6
13692 libgo_cv_lib_sockets=
13693 libgo_check_both=no
13694 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
13695 if test "x$ac_cv_func_connect" = x""yes; then :
13696 libgo_check_socket=no
13698 libgo_check_socket=yes
13701 if test "$libgo_check_socket" = "yes"; then
13702 unset ac_cv_func_connect
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
13704 $as_echo_n "checking for main in -lsocket... " >&6; }
13705 if test "${ac_cv_lib_socket_main+set}" = set; then :
13706 $as_echo_n "(cached) " >&6
13708 ac_check_lib_save_LIBS=$LIBS
13709 LIBS="-lsocket $LIBS"
13710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13711 /* end confdefs.h. */
13722 if ac_fn_c_try_link "$LINENO"; then :
13723 ac_cv_lib_socket_main=yes
13725 ac_cv_lib_socket_main=no
13727 rm -f core conftest.err conftest.$ac_objext \
13728 conftest$ac_exeext conftest.$ac_ext
13729 LIBS=$ac_check_lib_save_LIBS
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
13732 $as_echo "$ac_cv_lib_socket_main" >&6; }
13733 if test "x$ac_cv_lib_socket_main" = x""yes; then :
13734 libgo_cv_lib_sockets="-lsocket"
13736 libgo_check_both=yes
13740 if test "$libgo_check_both" = "yes"; then
13741 libgo_old_libs=$LIBS
13742 LIBS="$LIBS -lsocket -lnsl"
13743 unset ac_cv_func_accept
13744 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
13745 if test "x$ac_cv_func_accept" = x""yes; then :
13747 libgo_cv_lib_sockets="-lsocket -lnsl"
13750 unset ac_cv_func_accept
13751 LIBS=$libgo_old_libs
13753 unset ac_cv_func_gethostbyname
13754 libgo_old_libs="$LIBS"
13755 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
13756 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
13760 $as_echo_n "checking for main in -lnsl... " >&6; }
13761 if test "${ac_cv_lib_nsl_main+set}" = set; then :
13762 $as_echo_n "(cached) " >&6
13764 ac_check_lib_save_LIBS=$LIBS
13766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13767 /* end confdefs.h. */
13778 if ac_fn_c_try_link "$LINENO"; then :
13779 ac_cv_lib_nsl_main=yes
13781 ac_cv_lib_nsl_main=no
13783 rm -f core conftest.err conftest.$ac_objext \
13784 conftest$ac_exeext conftest.$ac_ext
13785 LIBS=$ac_check_lib_save_LIBS
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
13788 $as_echo "$ac_cv_lib_nsl_main" >&6; }
13789 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
13790 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
13795 unset ac_cv_func_gethostbyname
13796 LIBS=$libgo_old_libs
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
13800 $as_echo "$libgo_cv_lib_sockets" >&6; }
13801 NET_LIBS="$libgo_cv_lib_sockets"
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
13805 $as_echo_n "checking whether -pthread is supported... " >&6; }
13806 if test "${libgo_cv_lib_pthread+set}" = set; then :
13807 $as_echo_n "(cached) " >&6
13809 CFLAGS_hold=$CFLAGS
13810 CFLAGS="$CFLAGS -pthread"
13811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13812 /* end confdefs.h. */
13815 if ac_fn_c_try_compile "$LINENO"; then :
13816 libgo_cv_lib_pthread=yes
13818 libgo_cv_lib_pthread=no
13820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13821 CFLAGS=$CFLAGS_hold
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
13824 $as_echo "$libgo_cv_lib_pthread" >&6; }
13826 if test "$libgo_cv_lib_pthread" = yes; then
13827 PTHREAD_CFLAGS=-pthread
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
13833 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
13834 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
13835 $as_echo_n "(cached) " >&6
13837 ac_check_lib_save_LIBS=$LIBS
13838 LIBS="-lpthread $LIBS"
13839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13840 /* end confdefs.h. */
13842 /* Override any GCC internal prototype to avoid an error.
13843 Use char because int might match the return type of a GCC
13844 builtin and then its argument prototype would still apply. */
13848 char pthread_create ();
13852 return pthread_create ();
13857 if ac_fn_c_try_link "$LINENO"; then :
13858 ac_cv_lib_pthread_pthread_create=yes
13860 ac_cv_lib_pthread_pthread_create=no
13862 rm -f core conftest.err conftest.$ac_objext \
13863 conftest$ac_exeext conftest.$ac_ext
13864 LIBS=$ac_check_lib_save_LIBS
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
13867 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
13868 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
13869 PTHREAD_LIBS=-lpthread
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
13875 $as_echo_n "checking for library containing sched_yield... " >&6; }
13876 if test "${ac_cv_search_sched_yield+set}" = set; then :
13877 $as_echo_n "(cached) " >&6
13879 ac_func_search_save_LIBS=$LIBS
13880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13881 /* end confdefs.h. */
13883 /* Override any GCC internal prototype to avoid an error.
13884 Use char because int might match the return type of a GCC
13885 builtin and then its argument prototype would still apply. */
13889 char sched_yield ();
13893 return sched_yield ();
13898 for ac_lib in '' rt; do
13899 if test -z "$ac_lib"; then
13900 ac_res="none required"
13903 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13905 if ac_fn_c_try_link "$LINENO"; then :
13906 ac_cv_search_sched_yield=$ac_res
13908 rm -f core conftest.err conftest.$ac_objext \
13910 if test "${ac_cv_search_sched_yield+set}" = set; then :
13914 if test "${ac_cv_search_sched_yield+set}" = set; then :
13917 ac_cv_search_sched_yield=no
13919 rm conftest.$ac_ext
13920 LIBS=$ac_func_search_save_LIBS
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
13923 $as_echo "$ac_cv_search_sched_yield" >&6; }
13924 ac_res=$ac_cv_search_sched_yield
13925 if test "$ac_res" != no; then :
13926 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13932 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13933 if test "${ac_cv_c_bigendian+set}" = set; then :
13934 $as_echo_n "(cached) " >&6
13936 ac_cv_c_bigendian=unknown
13937 # See if we're dealing with a universal compiler.
13938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13939 /* end confdefs.h. */
13940 #ifndef __APPLE_CC__
13941 not a universal capable compiler
13946 if ac_fn_c_try_compile "$LINENO"; then :
13948 # Check for potential -arch flags. It is not universal unless
13949 # there are at least two -arch flags with different values.
13952 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13953 if test -n "$ac_prev"; then
13955 i?86 | x86_64 | ppc | ppc64)
13956 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13959 ac_cv_c_bigendian=universal
13965 elif test "x$ac_word" = "x-arch"; then
13970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13971 if test $ac_cv_c_bigendian = unknown; then
13972 # See if sys/param.h defines the BYTE_ORDER macro.
13973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13974 /* end confdefs.h. */
13975 #include <sys/types.h>
13976 #include <sys/param.h>
13981 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13982 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13984 bogus endian macros
13991 if ac_fn_c_try_compile "$LINENO"; then :
13992 # It does; now see whether it defined to BIG_ENDIAN or not.
13993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13994 /* end confdefs.h. */
13995 #include <sys/types.h>
13996 #include <sys/param.h>
14001 #if BYTE_ORDER != BIG_ENDIAN
14009 if ac_fn_c_try_compile "$LINENO"; then :
14010 ac_cv_c_bigendian=yes
14012 ac_cv_c_bigendian=no
14014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14018 if test $ac_cv_c_bigendian = unknown; then
14019 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14021 /* end confdefs.h. */
14022 #include <limits.h>
14027 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14028 bogus endian macros
14035 if ac_fn_c_try_compile "$LINENO"; then :
14036 # It does; now see whether it defined to _BIG_ENDIAN or not.
14037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14038 /* end confdefs.h. */
14039 #include <limits.h>
14044 #ifndef _BIG_ENDIAN
14052 if ac_fn_c_try_compile "$LINENO"; then :
14053 ac_cv_c_bigendian=yes
14055 ac_cv_c_bigendian=no
14057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14061 if test $ac_cv_c_bigendian = unknown; then
14062 # Compile a test program.
14063 if test "$cross_compiling" = yes; then :
14064 # Try to guess by grepping values from an object file.
14065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14066 /* end confdefs.h. */
14067 short int ascii_mm[] =
14068 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14069 short int ascii_ii[] =
14070 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14071 int use_ascii (int i) {
14072 return ascii_mm[i] + ascii_ii[i];
14074 short int ebcdic_ii[] =
14075 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14076 short int ebcdic_mm[] =
14077 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14078 int use_ebcdic (int i) {
14079 return ebcdic_mm[i] + ebcdic_ii[i];
14086 return use_ascii (foo) == use_ebcdic (foo);
14091 if ac_fn_c_try_compile "$LINENO"; then :
14092 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14093 ac_cv_c_bigendian=yes
14095 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14096 if test "$ac_cv_c_bigendian" = unknown; then
14097 ac_cv_c_bigendian=no
14099 # finding both strings is unlikely to happen, but who knows?
14100 ac_cv_c_bigendian=unknown
14104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14107 /* end confdefs.h. */
14108 $ac_includes_default
14113 /* Are we little or big endian? From Harbison&Steele. */
14117 char c[sizeof (long int)];
14120 return u.c[sizeof (long int) - 1] == 1;
14126 if ac_fn_c_try_run "$LINENO"; then :
14127 ac_cv_c_bigendian=no
14129 ac_cv_c_bigendian=yes
14131 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14132 conftest.$ac_objext conftest.beam conftest.$ac_ext
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14138 $as_echo "$ac_cv_c_bigendian" >&6; }
14139 case $ac_cv_c_bigendian in #(
14141 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14147 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14151 as_fn_error "unknown endianness
14152 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14158 # Check whether --with-system-libunwind was given.
14159 if test "${with_system_libunwind+set}" = set; then :
14160 withval=$with_system_libunwind;
14163 # If system-libunwind was not specifically set, pick a default setting.
14164 if test x$with_system_libunwind = x; then
14166 ia64-*-hpux*) with_system_libunwind=yes ;;
14167 *) with_system_libunwind=no ;;
14170 # Based on system-libunwind and target, do we have ipinfo?
14171 if test x$with_system_libunwind = xyes; then
14173 ia64-*-*) have_unwind_getipinfo=no ;;
14174 *) have_unwind_getipinfo=yes ;;
14177 # Darwin before version 9 does not have _Unwind_GetIPInfo.
14180 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
14181 *) have_unwind_getipinfo=yes ;;
14186 if test x$have_unwind_getipinfo = xyes; then
14188 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
14193 # Check whether --enable-sjlj-exceptions was given.
14194 if test "${enable_sjlj_exceptions+set}" = set; then :
14195 enableval=$enable_sjlj_exceptions; case "$enableval" in
14197 *) as_fn_error "unknown argument to --enable-sjlj-exceptions" "$LINENO" 5 ;;
14200 enable_sjlj_exceptions=auto
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use setjmp/longjmp exceptions" >&5
14205 $as_echo_n "checking whether to use setjmp/longjmp exceptions... " >&6; }
14206 if test "${libgo_cv_lib_sjlj_exceptions+set}" = set; then :
14207 $as_echo_n "(cached) " >&6
14209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14210 /* end confdefs.h. */
14213 void clean (int *);
14216 int i __attribute__ ((cleanup (clean)));
14221 CFLAGS_hold=$CFLAGS
14222 CFLAGS="--save-temps -fexceptions"
14223 libgo_cv_lib_sjlj_exceptions=unknown
14224 if ac_fn_c_try_compile; then :
14225 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1; then
14226 libgo_cv_lib_sjlj_exceptions=yes
14227 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1; then
14228 libgo_cv_lib_sjlj_exceptions=no
14231 CFLAGS=$CFLAGS_hold
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sjlj_exceptions" >&5
14236 $as_echo "$libgo_cv_lib_sjlj_exceptions" >&6; }
14238 if test "$enable_sjlj_exceptions" = "auto"; then
14239 enable_sjlj_exceptions=$libgo_cv_lib_sjlj_exceptions
14242 case $enable_sjlj_exceptions in
14245 $as_echo "#define LIBGO_SJLJ_EXCEPTIONS 1" >>confdefs.h
14251 as_fn_error "unable to detect exception model" "$LINENO" 5
14255 for ac_header in sys/mman.h syscall.h sys/epoll.h sys/ptrace.h sys/syscall.h sys/user.h sys/utsname.h sys/select.h
14257 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14258 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14259 eval as_val=\$$as_ac_Header
14260 if test "x$as_val" = x""yes; then :
14261 cat >>confdefs.h <<_ACEOF
14262 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14269 if test "$ac_cv_header_sys_mman_h" = yes; then
14270 HAVE_SYS_MMAN_H_TRUE=
14271 HAVE_SYS_MMAN_H_FALSE='#'
14273 HAVE_SYS_MMAN_H_TRUE='#'
14274 HAVE_SYS_MMAN_H_FALSE=
14278 for ac_func in srandom random strerror_r strsignal wait4 mincore setenv
14280 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14281 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14282 eval as_val=\$$as_ac_var
14283 if test "x$as_val" = x""yes; then :
14284 cat >>confdefs.h <<_ACEOF
14285 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14291 if test "$ac_cv_func_strerror_r" = yes; then
14292 HAVE_STRERROR_R_TRUE=
14293 HAVE_STRERROR_R_FALSE='#'
14295 HAVE_STRERROR_R_TRUE='#'
14296 HAVE_STRERROR_R_FALSE=
14299 if test "$ac_cv_func_wait4" = yes; then
14301 HAVE_WAIT4_FALSE='#'
14303 HAVE_WAIT4_TRUE='#'
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_4" >&5
14309 $as_echo_n "checking for __sync_bool_compare_and_swap_4... " >&6; }
14310 if test "${libgo_cv_func___sync_bool_compare_and_swap_4+set}" = set; then :
14311 $as_echo_n "(cached) " >&6
14313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14314 /* end confdefs.h. */
14316 typedef unsigned int uint32 __attribute__ ((mode (SI)));
14318 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14321 if ac_fn_c_try_link "$LINENO"; then :
14322 libgo_cv_func___sync_bool_compare_and_swap_4=yes
14324 libgo_cv_func___sync_bool_compare_and_swap_4=no
14326 rm -f core conftest.err conftest.$ac_objext \
14327 conftest$ac_exeext conftest.$ac_ext
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_4" >&5
14330 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_4" >&6; }
14331 if test "$libgo_cv_func___sync_bool_compare_and_swap_4" = "yes"; then
14333 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4 1" >>confdefs.h
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add_4" >&5
14338 $as_echo_n "checking for __sync_fetch_and_add_4... " >&6; }
14339 if test "${libgo_cv_func___sync_fetch_and_add_4+set}" = set; then :
14340 $as_echo_n "(cached) " >&6
14342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14343 /* end confdefs.h. */
14345 typedef unsigned int uint32 __attribute__ ((mode (SI)));
14347 int main() { return __sync_fetch_and_add (&i, 1); }
14350 if ac_fn_c_try_link "$LINENO"; then :
14351 libgo_cv_func___sync_fetch_and_add_4=yes
14353 libgo_cv_func___sync_fetch_and_add_4=no
14355 rm -f core conftest.err conftest.$ac_objext \
14356 conftest$ac_exeext conftest.$ac_ext
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_fetch_and_add_4" >&5
14359 $as_echo "$libgo_cv_func___sync_fetch_and_add_4" >&6; }
14360 if test "$libgo_cv_func___sync_fetch_and_add_4" = "yes"; then
14362 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD_4 1" >>confdefs.h
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
14367 $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
14368 if test "${libgo_cv_c_stringops+set}" = set; then :
14369 $as_echo_n "(cached) " >&6
14371 CFLAGS_hold=$CFLAGS
14372 CFLAGS="$CFLAGS -minline-all-stringops"
14373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14374 /* end confdefs.h. */
14377 if ac_fn_c_try_compile "$LINENO"; then :
14378 libgo_cv_c_stringops=yes
14380 libgo_cv_c_stringops=no
14382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14383 CFLAGS=$CFLAGS_hold
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
14386 $as_echo "$libgo_cv_c_stringops" >&6; }
14388 if test "$libgo_cv_c_stringops" = yes; then
14389 STRINGOPS_FLAG=-minline-all-stringops
14393 CFLAGS_hold=$CFLAGS
14394 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
14395 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
14396 if test "x$ac_cv_type_off64_t" = x""yes; then :
14398 cat >>confdefs.h <<_ACEOF
14399 #define HAVE_OFF64_T 1
14405 CFLAGS=$CFLAGS_hold
14407 cat >confcache <<\_ACEOF
14408 # This file is a shell script that caches the results of configure
14409 # tests run on this system so they can be shared between configure
14410 # scripts and configure runs, see configure's option --config-cache.
14411 # It is not useful on other systems. If it contains results you don't
14412 # want to keep, you may remove or edit it.
14414 # config.status only pays attention to the cache file if you give it
14415 # the --recheck option to rerun configure.
14417 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14418 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14419 # following values.
14423 # The following way of writing the cache mishandles newlines in values,
14424 # but we know of no workaround that is simple, portable, and efficient.
14425 # So, we kill variables containing newlines.
14426 # Ultrix sh set writes to stderr and can't be redirected directly,
14427 # and sets the high bit in the cache file unless we assign to the vars.
14429 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14430 eval ac_val=\$$ac_var
14434 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14435 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14438 _ | IFS | as_nl) ;; #(
14439 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14440 *) { eval $ac_var=; unset $ac_var;} ;;
14446 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14447 *${as_nl}ac_space=\ *)
14448 # `set' does not quote correctly, so add quotes: double-quote
14449 # substitution turns \\\\ into \\, and sed turns \\ into \.
14452 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14455 # `set' quotes correctly as required by POSIX, so do not add quotes.
14456 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14465 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14467 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14469 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14470 if test -w "$cache_file"; then
14471 test "x$cache_file" != "x/dev/null" &&
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14473 $as_echo "$as_me: updating cache $cache_file" >&6;}
14474 cat confcache >$cache_file
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14477 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14482 if test ${multilib} = yes; then
14483 multilib_arg="--enable-multilib"
14488 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
14491 ac_config_commands="$ac_config_commands default"
14494 cat >confcache <<\_ACEOF
14495 # This file is a shell script that caches the results of configure
14496 # tests run on this system so they can be shared between configure
14497 # scripts and configure runs, see configure's option --config-cache.
14498 # It is not useful on other systems. If it contains results you don't
14499 # want to keep, you may remove or edit it.
14501 # config.status only pays attention to the cache file if you give it
14502 # the --recheck option to rerun configure.
14504 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14505 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14506 # following values.
14510 # The following way of writing the cache mishandles newlines in values,
14511 # but we know of no workaround that is simple, portable, and efficient.
14512 # So, we kill variables containing newlines.
14513 # Ultrix sh set writes to stderr and can't be redirected directly,
14514 # and sets the high bit in the cache file unless we assign to the vars.
14516 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14517 eval ac_val=\$$ac_var
14521 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14522 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14525 _ | IFS | as_nl) ;; #(
14526 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14527 *) { eval $ac_var=; unset $ac_var;} ;;
14533 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14534 *${as_nl}ac_space=\ *)
14535 # `set' does not quote correctly, so add quotes: double-quote
14536 # substitution turns \\\\ into \\, and sed turns \\ into \.
14539 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14542 # `set' quotes correctly as required by POSIX, so do not add quotes.
14543 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14552 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14554 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14556 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14557 if test -w "$cache_file"; then
14558 test "x$cache_file" != "x/dev/null" &&
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14560 $as_echo "$as_me: updating cache $cache_file" >&6;}
14561 cat confcache >$cache_file
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14564 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14569 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14570 # Let make expand exec_prefix.
14571 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14573 DEFS=-DHAVE_CONFIG_H
14577 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14578 # 1. Remove the extension, and $U if already installed.
14579 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14580 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14581 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14582 # will be set to the directory where LIBOBJS objects are built.
14583 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14584 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14586 LIBOBJS=$ac_libobjs
14588 LTLIBOBJS=$ac_ltlibobjs
14591 if test -n "$EXEEXT"; then
14593 am__EXEEXT_FALSE='#'
14595 am__EXEEXT_TRUE='#'
14599 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14600 as_fn_error "conditional \"AMDEP\" was never defined.
14601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14603 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14604 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14605 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14607 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14608 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14609 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14611 if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
14612 as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined.
14613 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14615 if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
14616 as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined.
14617 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14619 if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
14620 as_fn_error "conditional \"LIBGO_IS_IRIX\" was never defined.
14621 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14623 if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
14624 as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined.
14625 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14627 if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
14628 as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined.
14629 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14631 if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
14632 as_fn_error "conditional \"LIBGO_IS_SOLARIS\" was never defined.
14633 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14635 if test -z "${LIBGO_IS_386_TRUE}" && test -z "${LIBGO_IS_386_FALSE}"; then
14636 as_fn_error "conditional \"LIBGO_IS_386\" was never defined.
14637 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14639 if test -z "${LIBGO_IS_ALPHA_TRUE}" && test -z "${LIBGO_IS_ALPHA_FALSE}"; then
14640 as_fn_error "conditional \"LIBGO_IS_ALPHA\" was never defined.
14641 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14643 if test -z "${LIBGO_IS_ARM_TRUE}" && test -z "${LIBGO_IS_ARM_FALSE}"; then
14644 as_fn_error "conditional \"LIBGO_IS_ARM\" was never defined.
14645 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14647 if test -z "${LIBGO_IS_M68K_TRUE}" && test -z "${LIBGO_IS_M68K_FALSE}"; then
14648 as_fn_error "conditional \"LIBGO_IS_M68K\" was never defined.
14649 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14651 if test -z "${LIBGO_IS_MIPS_TRUE}" && test -z "${LIBGO_IS_MIPS_FALSE}"; then
14652 as_fn_error "conditional \"LIBGO_IS_MIPS\" was never defined.
14653 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14655 if test -z "${LIBGO_IS_MIPSO32_TRUE}" && test -z "${LIBGO_IS_MIPSO32_FALSE}"; then
14656 as_fn_error "conditional \"LIBGO_IS_MIPSO32\" was never defined.
14657 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14659 if test -z "${LIBGO_IS_MIPSN32_TRUE}" && test -z "${LIBGO_IS_MIPSN32_FALSE}"; then
14660 as_fn_error "conditional \"LIBGO_IS_MIPSN32\" was never defined.
14661 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14663 if test -z "${LIBGO_IS_MIPSN64_TRUE}" && test -z "${LIBGO_IS_MIPSN64_FALSE}"; then
14664 as_fn_error "conditional \"LIBGO_IS_MIPSN64\" was never defined.
14665 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14667 if test -z "${LIBGO_IS_MIPSO64_TRUE}" && test -z "${LIBGO_IS_MIPSO64_FALSE}"; then
14668 as_fn_error "conditional \"LIBGO_IS_MIPSO64\" was never defined.
14669 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14671 if test -z "${LIBGO_IS_PPC_TRUE}" && test -z "${LIBGO_IS_PPC_FALSE}"; then
14672 as_fn_error "conditional \"LIBGO_IS_PPC\" was never defined.
14673 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14675 if test -z "${LIBGO_IS_PPC64_TRUE}" && test -z "${LIBGO_IS_PPC64_FALSE}"; then
14676 as_fn_error "conditional \"LIBGO_IS_PPC64\" was never defined.
14677 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14679 if test -z "${LIBGO_IS_SPARC_TRUE}" && test -z "${LIBGO_IS_SPARC_FALSE}"; then
14680 as_fn_error "conditional \"LIBGO_IS_SPARC\" was never defined.
14681 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14683 if test -z "${LIBGO_IS_SPARC64_TRUE}" && test -z "${LIBGO_IS_SPARC64_FALSE}"; then
14684 as_fn_error "conditional \"LIBGO_IS_SPARC64\" was never defined.
14685 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14687 if test -z "${LIBGO_IS_X86_64_TRUE}" && test -z "${LIBGO_IS_X86_64_FALSE}"; then
14688 as_fn_error "conditional \"LIBGO_IS_X86_64\" was never defined.
14689 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14691 if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
14692 as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined.
14693 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14696 if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
14697 as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined.
14698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14700 if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
14701 as_fn_error "conditional \"HAVE_STRERROR_R\" was never defined.
14702 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14704 if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
14705 as_fn_error "conditional \"HAVE_WAIT4\" was never defined.
14706 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14709 : ${CONFIG_STATUS=./config.status}
14711 ac_clean_files_save=$ac_clean_files
14712 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14714 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14716 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14718 # Generated by $as_me.
14719 # Run this file to recreate the current configuration.
14720 # Compiler output produced by configure, useful for debugging
14721 # configure, is in config.log if it exists.
14724 ac_cs_recheck=false
14727 SHELL=\${CONFIG_SHELL-$SHELL}
14730 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14731 ## -------------------- ##
14732 ## M4sh Initialization. ##
14733 ## -------------------- ##
14735 # Be more Bourne compatible
14736 DUALCASE=1; export DUALCASE # for MKS sh
14737 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14740 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14741 # is contrary to our usage. Disable this feature.
14742 alias -g '${1+"$@"}'='"$@"'
14743 setopt NO_GLOB_SUBST
14745 case `(set -o) 2>/dev/null` in #(
14757 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14758 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14759 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14760 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14761 # Prefer a ksh shell builtin over an external printf program on Solaris,
14762 # but without wasting forks for bash or zsh.
14763 if test -z "$BASH_VERSION$ZSH_VERSION" \
14764 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14765 as_echo='print -r --'
14766 as_echo_n='print -rn --'
14767 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14768 as_echo='printf %s\n'
14769 as_echo_n='printf %s'
14771 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14772 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14773 as_echo_n='/usr/ucb/echo -n'
14775 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14776 as_echo_n_body='eval
14780 expr "X$arg" : "X\\(.*\\)$as_nl";
14781 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14783 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14785 export as_echo_n_body
14786 as_echo_n='sh -c $as_echo_n_body as_echo'
14788 export as_echo_body
14789 as_echo='sh -c $as_echo_body as_echo'
14792 # The user is always right.
14793 if test "${PATH_SEPARATOR+set}" != set; then
14795 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14796 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14803 # We need space, tab and new line, in precisely that order. Quoting is
14804 # there to prevent editors from complaining about space-tab.
14805 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14806 # splitting by setting IFS to empty value.)
14809 # Find who we are. Look in the path if we contain no directory separator.
14811 *[\\/]* ) as_myself=$0 ;;
14812 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14813 for as_dir in $PATH
14816 test -z "$as_dir" && as_dir=.
14817 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14823 # We did not find ourselves, most probably we were run as `sh COMMAND'
14824 # in which case we are not to be found in the path.
14825 if test "x$as_myself" = x; then
14828 if test ! -f "$as_myself"; then
14829 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14833 # Unset variables that we do not need and which cause bugs (e.g. in
14834 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14835 # suppresses any "Segmentation fault" message there. '((' could
14836 # trigger a bug in pdksh 5.2.14.
14837 for as_var in BASH_ENV ENV MAIL MAILPATH
14838 do eval test x\${$as_var+set} = xset \
14839 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14852 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14855 # as_fn_error ERROR [LINENO LOG_FD]
14856 # ---------------------------------
14857 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14858 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14859 # script with status $?, using 1 if that was 0.
14862 as_status=$?; test $as_status -eq 0 && as_status=1
14864 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14865 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14867 $as_echo "$as_me: error: $1" >&2
14868 as_fn_exit $as_status
14872 # as_fn_set_status STATUS
14873 # -----------------------
14874 # Set $? to STATUS, without forking.
14875 as_fn_set_status ()
14878 } # as_fn_set_status
14880 # as_fn_exit STATUS
14881 # -----------------
14882 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14886 as_fn_set_status $1
14892 # Portably unset VAR.
14895 { eval $1=; unset $1;}
14897 as_unset=as_fn_unset
14898 # as_fn_append VAR VALUE
14899 # ----------------------
14900 # Append the text in VALUE to the end of the definition contained in VAR. Take
14901 # advantage of any shell optimizations that allow amortized linear growth over
14902 # repeated appends, instead of the typical quadratic growth present in naive
14904 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14905 eval 'as_fn_append ()
14916 # as_fn_arith ARG...
14917 # ------------------
14918 # Perform arithmetic evaluation on the ARGs, and store the result in the
14919 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14920 # must be portable across $(()) and expr.
14921 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14922 eval 'as_fn_arith ()
14929 as_val=`expr "$@" || test $? -eq 1`
14934 if expr a : '\(a\)' >/dev/null 2>&1 &&
14935 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14941 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14942 as_basename=basename
14947 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14953 as_me=`$as_basename -- "$0" ||
14954 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14955 X"$0" : 'X\(//\)$' \| \
14956 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14958 sed '/^.*\/\([^/][^/]*\)\/*$/{
14972 # Avoid depending upon Character Ranges.
14973 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14974 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14975 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14976 as_cr_digits='0123456789'
14977 as_cr_alnum=$as_cr_Letters$as_cr_digits
14979 ECHO_C= ECHO_N= ECHO_T=
14980 case `echo -n x` in #(((((
14982 case `echo 'xy\c'` in
14983 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14985 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14992 rm -f conf$$ conf$$.exe conf$$.file
14993 if test -d conf$$.dir; then
14994 rm -f conf$$.dir/conf$$.file
14997 mkdir conf$$.dir 2>/dev/null
14999 if (echo >conf$$.file) 2>/dev/null; then
15000 if ln -s conf$$.file conf$$ 2>/dev/null; then
15002 # ... but there are two gotchas:
15003 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15004 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15005 # In both cases, we have to default to `cp -p'.
15006 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15008 elif ln conf$$.file conf$$ 2>/dev/null; then
15016 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15017 rmdir conf$$.dir 2>/dev/null
15022 # Create "$as_dir" as a directory, including parents if necessary.
15027 -*) as_dir=./$as_dir;;
15029 test -d "$as_dir" || eval $as_mkdir_p || {
15033 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15034 *) as_qdir=$as_dir;;
15036 as_dirs="'$as_qdir' $as_dirs"
15037 as_dir=`$as_dirname -- "$as_dir" ||
15038 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15039 X"$as_dir" : 'X\(//\)[^/]' \| \
15040 X"$as_dir" : 'X\(//\)$' \| \
15041 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15042 $as_echo X"$as_dir" |
15043 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15047 /^X\(\/\/\)[^/].*/{
15060 test -d "$as_dir" && break
15062 test -z "$as_dirs" || eval "mkdir $as_dirs"
15063 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15067 if mkdir -p . 2>/dev/null; then
15068 as_mkdir_p='mkdir -p "$as_dir"'
15070 test -d ./-p && rmdir ./-p
15074 if test -x / >/dev/null 2>&1; then
15075 as_test_x='test -x'
15077 if ls -dL / >/dev/null 2>&1; then
15084 if test -d "$1"; then
15090 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15091 ???[sx]*):;;*)false;;esac;fi
15095 as_executable_p=$as_test_x
15097 # Sed expression to map a string onto a valid CPP name.
15098 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15100 # Sed expression to map a string onto a valid variable name.
15101 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15105 ## ----------------------------------- ##
15106 ## Main body of $CONFIG_STATUS script. ##
15107 ## ----------------------------------- ##
15109 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15111 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15112 # Save the log message, to keep $0 and so on meaningful, and to
15113 # report actual input values of CONFIG_FILES etc. instead of their
15114 # values after options handling.
15116 This file was extended by package-unused $as_me version-unused, which was
15117 generated by GNU Autoconf 2.64. Invocation command line was
15119 CONFIG_FILES = $CONFIG_FILES
15120 CONFIG_HEADERS = $CONFIG_HEADERS
15121 CONFIG_LINKS = $CONFIG_LINKS
15122 CONFIG_COMMANDS = $CONFIG_COMMANDS
15125 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15130 case $ac_config_files in *"
15131 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15134 case $ac_config_headers in *"
15135 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15139 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15140 # Files that config.status was made for.
15141 config_files="$ac_config_files"
15142 config_headers="$ac_config_headers"
15143 config_commands="$ac_config_commands"
15147 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15149 \`$as_me' instantiates files and other configuration actions
15150 from templates according to the current configuration. Unless the files
15151 and actions are specified as TAGs, all are instantiated by default.
15153 Usage: $0 [OPTION]... [TAG]...
15155 -h, --help print this help, then exit
15156 -V, --version print version number and configuration settings, then exit
15157 -q, --quiet, --silent
15158 do not print progress messages
15159 -d, --debug don't remove temporary files
15160 --recheck update $as_me by reconfiguring in the same conditions
15161 --file=FILE[:TEMPLATE]
15162 instantiate the configuration file FILE
15163 --header=FILE[:TEMPLATE]
15164 instantiate the configuration header FILE
15166 Configuration files:
15169 Configuration headers:
15172 Configuration commands:
15175 Report bugs to the package provider."
15178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15180 package-unused config.status version-unused
15181 configured by $0, generated by GNU Autoconf 2.64,
15182 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15184 Copyright (C) 2009 Free Software Foundation, Inc.
15185 This config.status script is free software; the Free Software Foundation
15186 gives unlimited permission to copy, distribute and modify it."
15193 test -n "\$AWK" || AWK=awk
15196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15197 # The default lists apply if the user does not specify any file.
15203 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15204 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15215 # Handling of the options.
15216 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15218 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15219 $as_echo "$ac_cs_version"; exit ;;
15220 --debug | --debu | --deb | --de | --d | -d )
15222 --file | --fil | --fi | --f )
15225 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15227 as_fn_append CONFIG_FILES " '$ac_optarg'"
15228 ac_need_defaults=false;;
15229 --header | --heade | --head | --hea )
15232 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15234 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15235 ac_need_defaults=false;;
15237 # Conflict between --help and --header
15238 as_fn_error "ambiguous option: \`$1'
15239 Try \`$0 --help' for more information.";;
15240 --help | --hel | -h )
15241 $as_echo "$ac_cs_usage"; exit ;;
15242 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15243 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15246 # This is an error.
15247 -*) as_fn_error "unrecognized option: \`$1'
15248 Try \`$0 --help' for more information." ;;
15250 *) as_fn_append ac_config_targets " $1"
15251 ac_need_defaults=false ;;
15257 ac_configure_extra_args=
15259 if $ac_cs_silent; then
15261 ac_configure_extra_args="$ac_configure_extra_args --silent"
15265 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15266 if \$ac_cs_recheck; then
15267 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15269 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15270 CONFIG_SHELL='$SHELL'
15271 export CONFIG_SHELL
15276 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15280 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15281 ## Running $as_me. ##
15287 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15295 with_multisubdir="$with_multisubdir"
15296 with_multisrctop="$with_multisrctop"
15297 with_target_subdir="$with_target_subdir"
15298 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15299 multi_basedir="$multi_basedir"
15300 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15303 GFORTRAN="$GFORTRAN"
15305 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15308 # The HP-UX ksh and POSIX shell print the target directory to stdout
15309 # if CDPATH is set.
15310 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15312 sed_quote_subst='$sed_quote_subst'
15313 double_quote_subst='$double_quote_subst'
15314 delay_variable_subst='$delay_variable_subst'
15315 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15316 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15317 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15318 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15319 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15320 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15321 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15322 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15323 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15324 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15325 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15326 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15327 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15328 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15329 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15330 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15331 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15332 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15333 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15334 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15335 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15336 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15337 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15338 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15339 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15340 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15341 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15342 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15343 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15344 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15345 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15346 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15347 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15348 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15349 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15350 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15351 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15352 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15353 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15354 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15355 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15356 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15357 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15358 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15359 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15360 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15361 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15362 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15363 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"`'
15364 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15365 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15366 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15367 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15368 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15369 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15370 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15371 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15372 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15373 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15374 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15375 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15376 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15377 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15378 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15379 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15380 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15381 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15382 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15383 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15384 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15385 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15386 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15387 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15388 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15389 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15390 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15391 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15392 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15393 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15394 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15395 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15396 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15397 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15398 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15399 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15400 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15401 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15402 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15403 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15404 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15405 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15406 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15407 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15408 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15409 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15410 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15411 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15412 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15413 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15414 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15415 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15416 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15417 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15418 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15419 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15420 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15421 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15422 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15423 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15424 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15425 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15426 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15427 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15428 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15429 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15430 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15431 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15432 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15433 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15434 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15435 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
15436 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
15437 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
15438 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
15439 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
15440 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
15441 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
15442 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
15443 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
15444 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
15445 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
15446 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
15447 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
15448 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15449 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15450 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
15451 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
15452 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
15453 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
15454 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
15455 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
15456 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
15457 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
15458 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
15459 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
15460 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15461 hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
15462 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
15463 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
15464 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
15465 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
15466 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
15467 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
15468 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
15469 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
15470 fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
15471 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
15472 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
15473 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
15474 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
15475 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
15476 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
15477 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
15480 LTCFLAGS='$LTCFLAGS'
15481 compiler='$compiler_DEFAULT'
15483 # A function that is used when there is no print builtin or printf.
15484 func_fallback_echo ()
15486 eval 'cat <<_LTECHO_EOF
15491 # Quote evaled strings.
15505 deplibs_check_method \
15514 lt_cv_sys_global_symbol_pipe \
15515 lt_cv_sys_global_symbol_to_cdecl \
15516 lt_cv_sys_global_symbol_to_c_name_address \
15517 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15518 lt_prog_compiler_no_builtin_flag \
15519 lt_prog_compiler_wl \
15520 lt_prog_compiler_pic \
15521 lt_prog_compiler_static \
15522 lt_cv_prog_compiler_c_o \
15530 export_dynamic_flag_spec \
15531 whole_archive_flag_spec \
15532 compiler_needs_object \
15534 allow_undefined_flag \
15535 no_undefined_flag \
15536 hardcode_libdir_flag_spec \
15537 hardcode_libdir_flag_spec_ld \
15538 hardcode_libdir_separator \
15543 variables_saved_for_relink \
15545 library_names_spec \
15547 install_override_mode \
15554 lt_prog_compiler_no_builtin_flag_GO \
15555 lt_prog_compiler_wl_GO \
15556 lt_prog_compiler_pic_GO \
15557 lt_prog_compiler_static_GO \
15558 lt_cv_prog_compiler_c_o_GO \
15559 export_dynamic_flag_spec_GO \
15560 whole_archive_flag_spec_GO \
15561 compiler_needs_object_GO \
15563 allow_undefined_flag_GO \
15564 no_undefined_flag_GO \
15565 hardcode_libdir_flag_spec_GO \
15566 hardcode_libdir_flag_spec_ld_GO \
15567 hardcode_libdir_separator_GO \
15568 fix_srcfile_path_GO \
15569 exclude_expsyms_GO \
15570 include_expsyms_GO \
15571 file_list_spec_GO; do
15572 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15573 *[\\\\\\\`\\"\\\$]*)
15574 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15577 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15582 # Double-quote double-evaled strings.
15583 for var in reload_cmds \
15584 old_postinstall_cmds \
15585 old_postuninstall_cmds \
15587 extract_expsyms_cmds \
15588 old_archive_from_new_cmds \
15589 old_archive_from_expsyms_cmds \
15591 archive_expsym_cmds \
15593 module_expsym_cmds \
15594 export_symbols_cmds \
15597 postuninstall_cmds \
15599 sys_lib_search_path_spec \
15600 sys_lib_dlsearch_path_spec \
15602 old_archive_cmds_GO \
15603 old_archive_from_new_cmds_GO \
15604 old_archive_from_expsyms_cmds_GO \
15606 archive_expsym_cmds_GO \
15608 module_expsym_cmds_GO \
15609 export_symbols_cmds_GO \
15610 prelink_cmds_GO; do
15611 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15612 *[\\\\\\\`\\"\\\$]*)
15613 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15616 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15621 ac_aux_dir='$ac_aux_dir'
15622 xsi_shell='$xsi_shell'
15623 lt_shell_append='$lt_shell_append'
15625 # See if we are running on zsh, and set the options which allow our
15626 # commands through without removal of \ escapes INIT.
15627 if test -n "\${ZSH_VERSION+set}" ; then
15628 setopt NO_GLOB_SUBST
15634 TIMESTAMP='$TIMESTAMP'
15643 # Variables needed in config.status (file generation) which aren't already
15644 # passed by autoconf.
15650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15652 # Handling of arguments.
15653 for ac_config_target in $ac_config_targets
15655 case $ac_config_target in
15656 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15657 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15658 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15659 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15660 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15661 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
15662 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15664 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15669 # If the user did not use the arguments to specify the items to instantiate,
15670 # then the envvar interface is used. Set only those that are not.
15671 # We use the long form for the default assignment because of an extremely
15672 # bizarre bug on SunOS 4.1.3.
15673 if $ac_need_defaults; then
15674 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15675 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15676 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15679 # Have a temporary directory for convenience. Make it in the build tree
15680 # simply because there is no reason against having it here, and in addition,
15681 # creating and moving files from /tmp can sometimes cause problems.
15682 # Hook for its removal unless debugging.
15683 # Note that there is a small window in which the directory will not be cleaned:
15684 # after its creation but before its name has been assigned to `$tmp'.
15688 trap 'exit_status=$?
15689 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15691 trap 'as_fn_exit 1' 1 2 13 15
15693 # Create a (secure) tmp directory for tmp files.
15696 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15697 test -n "$tmp" && test -d "$tmp"
15700 tmp=./conf$$-$RANDOM
15701 (umask 077 && mkdir "$tmp")
15702 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15704 # Set up the scripts for CONFIG_FILES section.
15705 # No need to generate them if there are no CONFIG_FILES.
15706 # This happens for instance with `./config.status config.h'.
15707 if test -n "$CONFIG_FILES"; then
15710 ac_cr=`echo X | tr X '\015'`
15711 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15712 # But we know of no other shell where ac_cr would be empty at this
15713 # point, so we can use a bashism as a fallback.
15714 if test "x$ac_cr" = x; then
15715 eval ac_cr=\$\'\\r\'
15717 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15718 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15721 ac_cs_awk_cr=$ac_cr
15724 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15729 echo "cat >conf$$subs.awk <<_ACEOF" &&
15730 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15732 } >conf$$subs.sh ||
15733 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15734 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15736 for ac_last_try in false false false false false :; do
15737 . ./conf$$subs.sh ||
15738 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15740 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15741 if test $ac_delim_n = $ac_delim_num; then
15743 elif $ac_last_try; then
15744 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15746 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15749 rm -f conf$$subs.sh
15751 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15752 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15756 s/^/S["/; s/!.*/"]=/
15766 s/\(.\{148\}\).*/\1/
15768 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15773 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15780 s/\(.\{148\}\).*/\1/
15782 s/["\\]/\\&/g; s/^/"/; s/$/"/
15786 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15791 ' <conf$$subs.awk | sed '
15796 ' >>$CONFIG_STATUS || ac_write_fail=1
15797 rm -f conf$$subs.awk
15798 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15800 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15801 for (key in S) S_is_set[key] = 1
15807 nfields = split(line, field, "@")
15809 len = length(field[1])
15810 for (i = 2; i < nfields; i++) {
15812 keylen = length(key)
15813 if (S_is_set[key]) {
15815 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15816 len += length(value) + length(field[++i])
15827 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15828 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15829 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15832 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15833 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15836 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15837 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15838 # trailing colons and then remove the whole line if VPATH becomes empty
15839 # (actually we leave an empty line to preserve line numbers).
15840 if test "x$srcdir" = x.; then
15841 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15842 s/:*\$(srcdir):*/:/
15843 s/:*\${srcdir}:*/:/
15845 s/^\([^=]*=[ ]*\):*/\1/
15851 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15852 fi # test -n "$CONFIG_FILES"
15854 # Set up the scripts for CONFIG_HEADERS section.
15855 # No need to generate them if there are no CONFIG_HEADERS.
15856 # This happens for instance with `./config.status Makefile'.
15857 if test -n "$CONFIG_HEADERS"; then
15858 cat >"$tmp/defines.awk" <<\_ACAWK ||
15862 # Transform confdefs.h into an awk script `defines.awk', embedded as
15863 # here-document in config.status, that substitutes the proper values into
15864 # config.h.in to produce config.h.
15866 # Create a delimiter string that does not exist in confdefs.h, to ease
15867 # handling of long lines.
15869 for ac_last_try in false false :; do
15870 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15871 if test -z "$ac_t"; then
15873 elif $ac_last_try; then
15874 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15876 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15880 # For the awk script, D is an array of macro values keyed by name,
15881 # likewise P contains macro parameters if any. Preserve backslash
15882 # newline sequences.
15884 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15886 s/.\{148\}/&'"$ac_delim"'/g
15889 s/^[ ]*#[ ]*define[ ][ ]*/ /
15896 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15898 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15902 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15903 D["\1"]=" \3\\\\\\n"\\/p
15905 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15910 s/.\{148\}/&'"$ac_delim"'/g
15915 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15918 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15920 ' <confdefs.h | sed '
15921 s/'"$ac_delim"'/"\\\
15922 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15924 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15925 for (key in D) D_is_set[key] = 1
15928 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15930 split(line, arg, " ")
15931 if (arg[1] == "#") {
15935 defundef = substr(arg[1], 2)
15938 split(mac1, mac2, "(") #)
15940 prefix = substr(line, 1, index(line, defundef) - 1)
15941 if (D_is_set[macro]) {
15942 # Preserve the white space surrounding the "#".
15943 print prefix "define", macro P[macro] D[macro]
15946 # Replace #undef with comments. This is necessary, for example,
15947 # in the case of _POSIX_SOURCE, which is predefined and required
15948 # on some systems where configure will not decide to define it.
15949 if (defundef == "undef") {
15950 print "/*", prefix defundef, macro, "*/"
15958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15959 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15960 fi # test -n "$CONFIG_HEADERS"
15963 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15968 :[FHLC]) ac_mode=$ac_tag; continue;;
15970 case $ac_mode$ac_tag in
15972 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15973 :[FH]-) ac_tag=-:-;;
15974 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15991 -) ac_f="$tmp/stdin";;
15992 *) # Look for the file first in the build tree, then in the source tree
15993 # (if the path is not absolute). The absolute path cannot be DOS-style,
15994 # because $ac_f cannot contain `:'.
15998 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16000 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16002 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16003 as_fn_append ac_file_inputs " '$ac_f'"
16006 # Let's still pretend it is `configure' which instantiates (i.e., don't
16007 # use $as_me), people would be surprised to read:
16008 # /* config.h. Generated by config.status. */
16009 configure_input='Generated from '`
16010 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16012 if test x"$ac_file" != x-; then
16013 configure_input="$ac_file. $configure_input"
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16015 $as_echo "$as_me: creating $ac_file" >&6;}
16017 # Neutralize special characters interpreted by sed in replacement strings.
16018 case $configure_input in #(
16019 *\&* | *\|* | *\\* )
16020 ac_sed_conf_input=`$as_echo "$configure_input" |
16021 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16022 *) ac_sed_conf_input=$configure_input;;
16026 *:-:* | *:-) cat >"$tmp/stdin" \
16027 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16032 ac_dir=`$as_dirname -- "$ac_file" ||
16033 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16034 X"$ac_file" : 'X\(//\)[^/]' \| \
16035 X"$ac_file" : 'X\(//\)$' \| \
16036 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16037 $as_echo X"$ac_file" |
16038 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16042 /^X\(\/\/\)[^/].*/{
16055 as_dir="$ac_dir"; as_fn_mkdir_p
16059 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16061 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16062 # A ".." for each directory in $ac_dir_suffix.
16063 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16064 case $ac_top_builddir_sub in
16065 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16066 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16069 ac_abs_top_builddir=$ac_pwd
16070 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16071 # for backward compatibility:
16072 ac_top_builddir=$ac_top_build_prefix
16075 .) # We are building in place.
16077 ac_top_srcdir=$ac_top_builddir_sub
16078 ac_abs_top_srcdir=$ac_pwd ;;
16079 [\\/]* | ?:[\\/]* ) # Absolute name.
16080 ac_srcdir=$srcdir$ac_dir_suffix;
16081 ac_top_srcdir=$srcdir
16082 ac_abs_top_srcdir=$srcdir ;;
16083 *) # Relative name.
16084 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16085 ac_top_srcdir=$ac_top_build_prefix$srcdir
16086 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16088 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16098 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16099 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16101 ac_MKDIR_P=$MKDIR_P
16103 [\\/$]* | ?:[\\/]* ) ;;
16104 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16109 # If the template does not know about datarootdir, expand it.
16110 # FIXME: This hack should be removed a few years after 2.60.
16111 ac_datarootdir_hack=; ac_datarootdir_seen=
16122 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16123 *datarootdir*) ac_datarootdir_seen=yes;;
16124 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16126 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16128 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16129 ac_datarootdir_hack='
16130 s&@datadir@&$datadir&g
16131 s&@docdir@&$docdir&g
16132 s&@infodir@&$infodir&g
16133 s&@localedir@&$localedir&g
16134 s&@mandir@&$mandir&g
16135 s&\\\${datarootdir}&$datarootdir&g' ;;
16139 # Neutralize VPATH when `$srcdir' = `.'.
16140 # Shell code in configure.ac might set extrasub.
16141 # FIXME: do we really want to maintain this feature?
16142 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16143 ac_sed_extra="$ac_vpsub
16146 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16148 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16149 s|@configure_input@|$ac_sed_conf_input|;t t
16150 s&@top_builddir@&$ac_top_builddir_sub&;t t
16151 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16152 s&@srcdir@&$ac_srcdir&;t t
16153 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16154 s&@top_srcdir@&$ac_top_srcdir&;t t
16155 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16156 s&@builddir@&$ac_builddir&;t t
16157 s&@abs_builddir@&$ac_abs_builddir&;t t
16158 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16159 s&@INSTALL@&$ac_INSTALL&;t t
16160 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16161 $ac_datarootdir_hack
16163 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16164 || as_fn_error "could not create $ac_file" "$LINENO" 5
16166 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16167 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16168 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16170 which seems to be undefined. Please make sure it is defined." >&5
16171 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16172 which seems to be undefined. Please make sure it is defined." >&2;}
16176 -) cat "$tmp/out" && rm -f "$tmp/out";;
16177 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16179 || as_fn_error "could not create $ac_file" "$LINENO" 5
16185 if test x"$ac_file" != x-; then
16187 $as_echo "/* $configure_input */" \
16188 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16189 } >"$tmp/config.h" \
16190 || as_fn_error "could not create $ac_file" "$LINENO" 5
16191 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16193 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16196 mv "$tmp/config.h" "$ac_file" \
16197 || as_fn_error "could not create $ac_file" "$LINENO" 5
16200 $as_echo "/* $configure_input */" \
16201 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16202 || as_fn_error "could not create -" "$LINENO" 5
16204 # Compute "$ac_file"'s index in $config_headers.
16207 for _am_header in $config_headers :; do
16208 case $_am_header in
16209 $_am_arg | $_am_arg:* )
16212 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16215 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16216 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16217 X"$_am_arg" : 'X\(//\)[^/]' \| \
16218 X"$_am_arg" : 'X\(//\)$' \| \
16219 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16220 $as_echo X"$_am_arg" |
16221 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16225 /^X\(\/\/\)[^/].*/{
16237 s/.*/./; q'`/stamp-h$_am_stamp_count
16240 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16241 $as_echo "$as_me: executing $ac_file commands" >&6;}
16246 case $ac_file$ac_mode in
16248 # Only add multilib support code if we just rebuilt the top-level
16250 case " $CONFIG_FILES " in
16252 ac_file=Makefile . ${multi_basedir}/config-ml.in
16255 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16256 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16257 # are listed without --file. Let's play safe and only enable the eval
16258 # if we detect the quoting.
16259 case $CONFIG_FILES in
16260 *\'*) eval set x "$CONFIG_FILES" ;;
16261 *) set x $CONFIG_FILES ;;
16266 # Strip MF so we end up with the name of the file.
16267 mf=`echo "$mf" | sed -e 's/:.*$//'`
16268 # Check whether this is an Automake generated Makefile or not.
16269 # We used to match only the files named `Makefile.in', but
16270 # some people rename them; so instead we look at the file content.
16271 # Grep'ing the first line is not enough: some people post-process
16272 # each Makefile.in and add a new line on top of each file to say so.
16273 # Grep'ing the whole file is not good either: AIX grep has a line
16274 # limit of 2048, but all sed's we know have understand at least 4000.
16275 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16276 dirpart=`$as_dirname -- "$mf" ||
16277 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16278 X"$mf" : 'X\(//\)[^/]' \| \
16279 X"$mf" : 'X\(//\)$' \| \
16280 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16286 /^X\(\/\/\)[^/].*/{
16302 # Extract the definition of DEPDIR, am__include, and am__quote
16303 # from the Makefile without running `make'.
16304 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16305 test -z "$DEPDIR" && continue
16306 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16307 test -z "am__include" && continue
16308 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16309 # When using ansi2knr, U may be empty or an underscore; expand it
16310 U=`sed -n 's/^U = //p' < "$mf"`
16311 # Find all dependency output files, they are included files with
16312 # $(DEPDIR) in their names. We invoke sed twice because it is the
16313 # simplest approach to changing $(DEPDIR) to its actual value in the
16315 for file in `sed -n "
16316 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16317 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16318 # Make sure the directory exists.
16319 test -f "$dirpart/$file" && continue
16320 fdir=`$as_dirname -- "$file" ||
16321 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16322 X"$file" : 'X\(//\)[^/]' \| \
16323 X"$file" : 'X\(//\)$' \| \
16324 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16325 $as_echo X"$file" |
16326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16330 /^X\(\/\/\)[^/].*/{
16343 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16344 # echo "creating $dirpart/$file"
16345 echo '# dummy' > "$dirpart/$file"
16352 # See if we are running on zsh, and set the options which allow our
16353 # commands through without removal of \ escapes.
16354 if test -n "${ZSH_VERSION+set}" ; then
16355 setopt NO_GLOB_SUBST
16358 cfgfile="${ofile}T"
16359 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16362 cat <<_LT_EOF >> "$cfgfile"
16365 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16366 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16367 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16368 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16370 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16371 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16372 # Written by Gordon Matzigkeit, 1996
16374 # This file is part of GNU Libtool.
16376 # GNU Libtool is free software; you can redistribute it and/or
16377 # modify it under the terms of the GNU General Public License as
16378 # published by the Free Software Foundation; either version 2 of
16379 # the License, or (at your option) any later version.
16381 # As a special exception to the GNU General Public License,
16382 # if you distribute this file as part of a program or library that
16383 # is built using GNU Libtool, you may include this file under the
16384 # same distribution terms that you use for the rest of that program.
16386 # GNU Libtool is distributed in the hope that it will be useful,
16387 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16388 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16389 # GNU General Public License for more details.
16391 # You should have received a copy of the GNU General Public License
16392 # along with GNU Libtool; see the file COPYING. If not, a copy
16393 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16394 # obtained by writing to the Free Software Foundation, Inc.,
16395 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16398 # The names of the tagged configurations supported by this script.
16399 available_tags="GO "
16401 # ### BEGIN LIBTOOL CONFIG
16403 # A sed program that does not truncate output.
16406 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16407 Xsed="\$SED -e 1s/^X//"
16409 # A grep program that handles long lines.
16415 # A literal string matcher.
16418 # Shell to use when invoking shell scripts.
16421 # An echo program that protects backslashes.
16424 # Which release of libtool.m4 was used?
16425 macro_version=$macro_version
16426 macro_revision=$macro_revision
16428 # Whether or not to build shared libraries.
16429 build_libtool_libs=$enable_shared
16431 # Whether or not to build static libraries.
16432 build_old_libs=$enable_static
16434 # What type of objects to build.
16437 # Whether or not to optimize for fast installation.
16438 fast_install=$enable_fast_install
16441 host_alias=$host_alias
16445 # The build system.
16446 build_alias=$build_alias
16450 # A BSD- or MS-compatible name lister.
16453 # Whether we need soft or hard links.
16456 # What is the maximum length of a command?
16457 max_cmd_len=$max_cmd_len
16459 # Object file suffix (normally "o").
16462 # Executable file suffix (normally "").
16465 # whether the shell understands "unset".
16468 # turn spaces into newlines.
16471 # turn newlines into spaces.
16474 # An object symbol dumper.
16475 OBJDUMP=$lt_OBJDUMP
16477 # Method to check whether dependent libraries are shared objects.
16478 deplibs_check_method=$lt_deplibs_check_method
16480 # Command to use when deplibs_check_method == "file_magic".
16481 file_magic_cmd=$lt_file_magic_cmd
16485 AR_FLAGS=$lt_AR_FLAGS
16487 # A symbol stripping program.
16490 # Commands used to install an old-style archive.
16492 old_postinstall_cmds=$lt_old_postinstall_cmds
16493 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16495 # Whether to use a lock for old archive extraction.
16496 lock_old_archive_extraction=$lock_old_archive_extraction
16501 # LTCC compiler flags.
16502 LTCFLAGS=$lt_CFLAGS
16504 # Take the output of nm and produce a listing of raw symbols and C names.
16505 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16507 # Transform the output of nm in a proper C declaration.
16508 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16510 # Transform the output of nm in a C name address pair.
16511 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16513 # Transform the output of nm in a C name address pair when lib prefix is needed.
16514 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16516 # The name of the directory that contains temporary libtool files.
16519 # Used to examine libraries when file_magic_cmd begins with "file".
16520 MAGIC_CMD=$MAGIC_CMD
16522 # Must we lock files when doing compilation?
16523 need_locks=$lt_need_locks
16525 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16526 DSYMUTIL=$lt_DSYMUTIL
16528 # Tool to change global to local symbols on Mac OS X.
16531 # Tool to manipulate fat objects and archives on Mac OS X.
16534 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16537 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16538 OTOOL64=$lt_OTOOL64
16540 # Old archive suffix (normally "a").
16543 # Shared library suffix (normally ".so").
16544 shrext_cmds=$lt_shrext_cmds
16546 # The commands to extract the exported symbol list from a shared archive.
16547 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16549 # Variables whose values should be saved in libtool wrapper scripts and
16550 # restored at link time.
16551 variables_saved_for_relink=$lt_variables_saved_for_relink
16553 # Do we need the "lib" prefix for modules?
16554 need_lib_prefix=$need_lib_prefix
16556 # Do we need a version for libraries?
16557 need_version=$need_version
16559 # Library versioning type.
16560 version_type=$version_type
16562 # Shared library runtime path variable.
16563 runpath_var=$runpath_var
16565 # Shared library path variable.
16566 shlibpath_var=$shlibpath_var
16568 # Is shlibpath searched before the hard-coded library search path?
16569 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16571 # Format of library name prefix.
16572 libname_spec=$lt_libname_spec
16574 # List of archive names. First name is the real one, the rest are links.
16575 # The last name is the one that the linker finds with -lNAME
16576 library_names_spec=$lt_library_names_spec
16578 # The coded name of the library, if different from the real name.
16579 soname_spec=$lt_soname_spec
16581 # Permission mode override for installation of shared libraries.
16582 install_override_mode=$lt_install_override_mode
16584 # Command to use after installation of a shared archive.
16585 postinstall_cmds=$lt_postinstall_cmds
16587 # Command to use after uninstallation of a shared archive.
16588 postuninstall_cmds=$lt_postuninstall_cmds
16590 # Commands used to finish a libtool library installation in a directory.
16591 finish_cmds=$lt_finish_cmds
16593 # As "finish_cmds", except a single script fragment to be evaled but
16595 finish_eval=$lt_finish_eval
16597 # Whether we should hardcode library paths into libraries.
16598 hardcode_into_libs=$hardcode_into_libs
16600 # Compile-time system search path for libraries.
16601 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16603 # Run-time system search path for libraries.
16604 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16606 # Whether dlopen is supported.
16607 dlopen_support=$enable_dlopen
16609 # Whether dlopen of programs is supported.
16610 dlopen_self=$enable_dlopen_self
16612 # Whether dlopen of statically linked programs is supported.
16613 dlopen_self_static=$enable_dlopen_self_static
16615 # Commands to strip libraries.
16616 old_striplib=$lt_old_striplib
16617 striplib=$lt_striplib
16620 # The linker used to build libraries.
16623 # How to create reloadable object files.
16624 reload_flag=$lt_reload_flag
16625 reload_cmds=$lt_reload_cmds
16627 # Commands used to build an old-style archive.
16628 old_archive_cmds=$lt_old_archive_cmds
16630 # A language specific compiler.
16633 # Is the compiler the GNU compiler?
16636 # Compiler flag to turn off builtin functions.
16637 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16639 # How to pass a linker flag through the compiler.
16640 wl=$lt_lt_prog_compiler_wl
16642 # Additional compiler flags for building library objects.
16643 pic_flag=$lt_lt_prog_compiler_pic
16645 # Compiler flag to prevent dynamic linking.
16646 link_static_flag=$lt_lt_prog_compiler_static
16648 # Does compiler simultaneously support -c and -o options?
16649 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16651 # Whether or not to add -lc for building shared libraries.
16652 build_libtool_need_lc=$archive_cmds_need_lc
16654 # Whether or not to disallow shared libs when runtime libs are static.
16655 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16657 # Compiler flag to allow reflexive dlopens.
16658 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16660 # Compiler flag to generate shared objects directly from archives.
16661 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16663 # Whether the compiler copes with passing no objects directly.
16664 compiler_needs_object=$lt_compiler_needs_object
16666 # Create an old-style archive from a shared archive.
16667 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16669 # Create a temporary old-style archive to link instead of a shared archive.
16670 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16672 # Commands used to build a shared archive.
16673 archive_cmds=$lt_archive_cmds
16674 archive_expsym_cmds=$lt_archive_expsym_cmds
16676 # Commands used to build a loadable module if different from building
16677 # a shared archive.
16678 module_cmds=$lt_module_cmds
16679 module_expsym_cmds=$lt_module_expsym_cmds
16681 # Whether we are building with GNU ld or not.
16682 with_gnu_ld=$lt_with_gnu_ld
16684 # Flag that allows shared libraries with undefined symbols to be built.
16685 allow_undefined_flag=$lt_allow_undefined_flag
16687 # Flag that enforces no undefined symbols.
16688 no_undefined_flag=$lt_no_undefined_flag
16690 # Flag to hardcode \$libdir into a binary during linking.
16691 # This must work even if \$libdir does not exist
16692 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16694 # If ld is used when linking, flag to hardcode \$libdir into a binary
16695 # during linking. This must work even if \$libdir does not exist.
16696 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16698 # Whether we need a single "-rpath" flag with a separated argument.
16699 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16701 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16702 # DIR into the resulting binary.
16703 hardcode_direct=$hardcode_direct
16705 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16706 # DIR into the resulting binary and the resulting library dependency is
16707 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16708 # library is relocated.
16709 hardcode_direct_absolute=$hardcode_direct_absolute
16711 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16712 # into the resulting binary.
16713 hardcode_minus_L=$hardcode_minus_L
16715 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16716 # into the resulting binary.
16717 hardcode_shlibpath_var=$hardcode_shlibpath_var
16719 # Set to "yes" if building a shared library automatically hardcodes DIR
16720 # into the library and all subsequent libraries and executables linked
16722 hardcode_automatic=$hardcode_automatic
16724 # Set to yes if linker adds runtime paths of dependent libraries
16725 # to runtime path list.
16726 inherit_rpath=$inherit_rpath
16728 # Whether libtool must link a program against all its dependency libraries.
16729 link_all_deplibs=$link_all_deplibs
16731 # Fix the shell variable \$srcfile for the compiler.
16732 fix_srcfile_path=$lt_fix_srcfile_path
16734 # Set to "yes" if exported symbols are required.
16735 always_export_symbols=$always_export_symbols
16737 # The commands to list exported symbols.
16738 export_symbols_cmds=$lt_export_symbols_cmds
16740 # Symbols that should not be listed in the preloaded symbols.
16741 exclude_expsyms=$lt_exclude_expsyms
16743 # Symbols that must always be exported.
16744 include_expsyms=$lt_include_expsyms
16746 # Commands necessary for linking programs (against libraries) with templates.
16747 prelink_cmds=$lt_prelink_cmds
16749 # Specify filename containing input files.
16750 file_list_spec=$lt_file_list_spec
16752 # How to hardcode a shared library path into an executable.
16753 hardcode_action=$hardcode_action
16755 # ### END LIBTOOL CONFIG
16761 cat <<\_LT_EOF >> "$cfgfile"
16762 # AIX sometimes has problems with the GCC collect2 program. For some
16763 # reason, if we set the COLLECT_NAMES environment variable, the problems
16764 # vanish in a puff of smoke.
16765 if test "X${COLLECT_NAMES+set}" != Xset; then
16767 export COLLECT_NAMES
16774 ltmain="$ac_aux_dir/ltmain.sh"
16777 # We use sed instead of cat because bash on DJGPP gets confused if
16778 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16779 # text mode, it properly converts lines to CR/LF. This bash problem
16780 # is reportedly fixed, but why not run on old versions too?
16781 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16782 || (rm -f "$cfgfile"; exit 1)
16786 cat << \_LT_EOF >> "$cfgfile"
16788 # func_dirname file append nondir_replacement
16789 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16790 # otherwise set result to NONDIR_REPLACEMENT.
16794 */*) func_dirname_result="${1%/*}${2}" ;;
16795 * ) func_dirname_result="${3}" ;;
16799 # func_basename file
16802 func_basename_result="${1##*/}"
16805 # func_dirname_and_basename file append nondir_replacement
16806 # perform func_basename and func_dirname in a single function
16808 # dirname: Compute the dirname of FILE. If nonempty,
16809 # add APPEND to the result, otherwise set result
16810 # to NONDIR_REPLACEMENT.
16811 # value returned in "$func_dirname_result"
16812 # basename: Compute filename of FILE.
16813 # value retuned in "$func_basename_result"
16814 # Implementation must be kept synchronized with func_dirname
16815 # and func_basename. For efficiency, we do not delegate to
16816 # those functions but instead duplicate the functionality here.
16817 func_dirname_and_basename ()
16820 */*) func_dirname_result="${1%/*}${2}" ;;
16821 * ) func_dirname_result="${3}" ;;
16823 func_basename_result="${1##*/}"
16826 # func_stripname prefix suffix name
16827 # strip PREFIX and SUFFIX off of NAME.
16828 # PREFIX and SUFFIX must not contain globbing or regex special
16829 # characters, hashes, percent signs, but SUFFIX may contain a leading
16830 # dot (in which case that matches only a dot).
16833 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16834 # positional parameters, so assign one to ordinary parameter first.
16835 func_stripname_result=${3}
16836 func_stripname_result=${func_stripname_result#"${1}"}
16837 func_stripname_result=${func_stripname_result%"${2}"}
16843 func_opt_split_opt=${1%%=*}
16844 func_opt_split_arg=${1#*=}
16851 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16852 *) func_lo2o_result=${1} ;;
16856 # func_xform libobj-or-source
16859 func_xform_result=${1%.*}.lo
16862 # func_arith arithmetic-term...
16865 func_arith_result=$(( $* ))
16869 # STRING may not start with a hyphen.
16872 func_len_result=${#1}
16877 *) # Bourne compatible functions.
16878 cat << \_LT_EOF >> "$cfgfile"
16880 # func_dirname file append nondir_replacement
16881 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16882 # otherwise set result to NONDIR_REPLACEMENT.
16885 # Extract subdirectory from the argument.
16886 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16887 if test "X$func_dirname_result" = "X${1}"; then
16888 func_dirname_result="${3}"
16890 func_dirname_result="$func_dirname_result${2}"
16894 # func_basename file
16897 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16901 # func_stripname prefix suffix name
16902 # strip PREFIX and SUFFIX off of NAME.
16903 # PREFIX and SUFFIX must not contain globbing or regex special
16904 # characters, hashes, percent signs, but SUFFIX may contain a leading
16905 # dot (in which case that matches only a dot).
16906 # func_strip_suffix prefix name
16910 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16911 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16916 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16917 my_sed_long_arg='1s/^-[^=]*=//'
16922 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16923 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16929 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16932 # func_xform libobj-or-source
16935 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16938 # func_arith arithmetic-term...
16941 func_arith_result=`expr "$@"`
16945 # STRING may not start with a hyphen.
16948 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16954 case $lt_shell_append in
16956 cat << \_LT_EOF >> "$cfgfile"
16958 # func_append var value
16959 # Append VALUE to the end of shell variable VAR.
16967 cat << \_LT_EOF >> "$cfgfile"
16969 # func_append var value
16970 # Append VALUE to the end of shell variable VAR.
16981 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16982 || (rm -f "$cfgfile"; exit 1)
16984 mv -f "$cfgfile" "$ofile" ||
16985 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16989 cat <<_LT_EOF >> "$ofile"
16991 # ### BEGIN LIBTOOL TAG CONFIG: GO
16993 # The linker used to build libraries.
16996 # How to create reloadable object files.
16997 reload_flag=$lt_reload_flag_GO
16998 reload_cmds=$lt_reload_cmds_GO
17000 # Commands used to build an old-style archive.
17001 old_archive_cmds=$lt_old_archive_cmds_GO
17003 # A language specific compiler.
17006 # Is the compiler the GNU compiler?
17009 # Compiler flag to turn off builtin functions.
17010 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
17012 # How to pass a linker flag through the compiler.
17013 wl=$lt_lt_prog_compiler_wl_GO
17015 # Additional compiler flags for building library objects.
17016 pic_flag=$lt_lt_prog_compiler_pic_GO
17018 # Compiler flag to prevent dynamic linking.
17019 link_static_flag=$lt_lt_prog_compiler_static_GO
17021 # Does compiler simultaneously support -c and -o options?
17022 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
17024 # Whether or not to add -lc for building shared libraries.
17025 build_libtool_need_lc=$archive_cmds_need_lc_GO
17027 # Whether or not to disallow shared libs when runtime libs are static.
17028 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
17030 # Compiler flag to allow reflexive dlopens.
17031 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
17033 # Compiler flag to generate shared objects directly from archives.
17034 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
17036 # Whether the compiler copes with passing no objects directly.
17037 compiler_needs_object=$lt_compiler_needs_object_GO
17039 # Create an old-style archive from a shared archive.
17040 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
17042 # Create a temporary old-style archive to link instead of a shared archive.
17043 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
17045 # Commands used to build a shared archive.
17046 archive_cmds=$lt_archive_cmds_GO
17047 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
17049 # Commands used to build a loadable module if different from building
17050 # a shared archive.
17051 module_cmds=$lt_module_cmds_GO
17052 module_expsym_cmds=$lt_module_expsym_cmds_GO
17054 # Whether we are building with GNU ld or not.
17055 with_gnu_ld=$lt_with_gnu_ld_GO
17057 # Flag that allows shared libraries with undefined symbols to be built.
17058 allow_undefined_flag=$lt_allow_undefined_flag_GO
17060 # Flag that enforces no undefined symbols.
17061 no_undefined_flag=$lt_no_undefined_flag_GO
17063 # Flag to hardcode \$libdir into a binary during linking.
17064 # This must work even if \$libdir does not exist
17065 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
17067 # If ld is used when linking, flag to hardcode \$libdir into a binary
17068 # during linking. This must work even if \$libdir does not exist.
17069 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
17071 # Whether we need a single "-rpath" flag with a separated argument.
17072 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
17074 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17075 # DIR into the resulting binary.
17076 hardcode_direct=$hardcode_direct_GO
17078 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17079 # DIR into the resulting binary and the resulting library dependency is
17080 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17081 # library is relocated.
17082 hardcode_direct_absolute=$hardcode_direct_absolute_GO
17084 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17085 # into the resulting binary.
17086 hardcode_minus_L=$hardcode_minus_L_GO
17088 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17089 # into the resulting binary.
17090 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
17092 # Set to "yes" if building a shared library automatically hardcodes DIR
17093 # into the library and all subsequent libraries and executables linked
17095 hardcode_automatic=$hardcode_automatic_GO
17097 # Set to yes if linker adds runtime paths of dependent libraries
17098 # to runtime path list.
17099 inherit_rpath=$inherit_rpath_GO
17101 # Whether libtool must link a program against all its dependency libraries.
17102 link_all_deplibs=$link_all_deplibs_GO
17104 # Fix the shell variable \$srcfile for the compiler.
17105 fix_srcfile_path=$lt_fix_srcfile_path_GO
17107 # Set to "yes" if exported symbols are required.
17108 always_export_symbols=$always_export_symbols_GO
17110 # The commands to list exported symbols.
17111 export_symbols_cmds=$lt_export_symbols_cmds_GO
17113 # Symbols that should not be listed in the preloaded symbols.
17114 exclude_expsyms=$lt_exclude_expsyms_GO
17116 # Symbols that must always be exported.
17117 include_expsyms=$lt_include_expsyms_GO
17119 # Commands necessary for linking programs (against libraries) with templates.
17120 prelink_cmds=$lt_prelink_cmds_GO
17122 # Specify filename containing input files.
17123 file_list_spec=$lt_file_list_spec_GO
17125 # How to hardcode a shared library path into an executable.
17126 hardcode_action=$hardcode_action_GO
17128 # ### END LIBTOOL TAG CONFIG: GO
17132 "default":C) if test -n "$CONFIG_FILES"; then
17133 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
17134 # that multilib installs will end up installed in the correct place.
17135 # The testsuite needs it for multilib-aware ABI baseline files.
17136 # To work around this not being passed down from config-ml.in ->
17137 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
17138 # append it here. Only modify Makefiles that have just been created.
17140 # Also, get rid of this simulated-VPATH thing that automake does.
17141 cat > vpsed << \_EOF
17142 s!`test -f '$<' || echo '$(srcdir)/'`!!
17144 for i in $SUBDIRS; do
17145 case $CONFIG_FILES in
17147 #echo "Adding MULTISUBDIR to $i/Makefile"
17148 sed -f vpsed $i/Makefile > tmp
17149 grep '^MULTISUBDIR =' Makefile >> tmp
17164 ac_clean_files=$ac_clean_files_save
17166 test $ac_write_fail = 0 ||
17167 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17170 # configure is writing to config.log, and then calls config.status.
17171 # config.status does its own redirection, appending to config.log.
17172 # Unfortunately, on DOS this fails, as config.log is still kept open
17173 # by configure, so config.status won't be able to write to it; its
17174 # output is simply discarded. So we exec the FD to /dev/null,
17175 # effectively closing config.log, so it can be properly (re)opened and
17176 # appended to by config.status. When coming back to configure, we
17177 # need to make the FD available again.
17178 if test "$no_create" != yes; then
17180 ac_config_status_args=
17181 test "$silent" = yes &&
17182 ac_config_status_args="$ac_config_status_args --quiet"
17184 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17186 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17187 # would make configure fail if this is the last instruction.
17188 $ac_cs_success || as_fn_exit $?
17190 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17192 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}