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
605 STRUCT_EPOLL_EVENT_FD_OFFSET
606 SIZEOF_STRUCT_EPOLL_EVENT
611 HAVE_STRERROR_R_FALSE
613 HAVE_SYS_MMAN_H_FALSE
619 USING_SPLIT_STACK_FALSE
620 USING_SPLIT_STACK_TRUE
623 GO_SYSCALL_OS_ARCH_FILE
625 GO_LIBCALL_OS_ARCH_FILE
628 LIBGO_IS_X86_64_FALSE
630 LIBGO_IS_SPARC64_FALSE
631 LIBGO_IS_SPARC64_TRUE
642 LIBGO_IS_MIPSO64_FALSE
643 LIBGO_IS_MIPSO64_TRUE
644 LIBGO_IS_MIPSN64_FALSE
645 LIBGO_IS_MIPSN64_TRUE
646 LIBGO_IS_MIPSN32_FALSE
647 LIBGO_IS_MIPSN32_TRUE
648 LIBGO_IS_MIPSO32_FALSE
649 LIBGO_IS_MIPSO32_TRUE
664 LIBGO_IS_SOLARIS_FALSE
665 LIBGO_IS_SOLARIS_TRUE
668 LIBGO_IS_DRAGONFLY_FALSE
669 LIBGO_IS_DRAGONFLY_TRUE
670 LIBGO_IS_OPENBSD_FALSE
671 LIBGO_IS_OPENBSD_TRUE
672 LIBGO_IS_NETBSD_FALSE
678 LIBGO_IS_FREEBSD_FALSE
679 LIBGO_IS_FREEBSD_TRUE
680 LIBGO_IS_DARWIN_FALSE
686 nover_glibgo_toolexeclibdir
687 glibgo_toolexeclibdir
715 MAINTAINER_MODE_FALSE
743 INSTALL_STRIP_PROGRAM
799 program_transform_name
812 enable_option_checking
814 enable_dependency_tracking
815 enable_maintainer_mode
823 enable_version_specific_runtime_libs
826 with_system_libunwind
827 enable_sjlj_exceptions
829 ac_precious_vars
='build_alias
836 # Initialize some variables set by options.
838 ac_init_version
=false
839 ac_unrecognized_opts
=
841 # The variables have the same names as the options, with
842 # dashes changed to underlines.
850 program_transform_name
=s
,x
,x
,
858 # Installation directory options.
859 # These are left unexpanded so users can "make install exec_prefix=/foo"
860 # and all the variables that are supposed to be based on exec_prefix
861 # by default will actually change.
862 # Use braces instead of parens because sh, perl, etc. also accept them.
863 # (The list follows the same order as the GNU Coding Standards.)
864 bindir
='${exec_prefix}/bin'
865 sbindir
='${exec_prefix}/sbin'
866 libexecdir
='${exec_prefix}/libexec'
867 datarootdir
='${prefix}/share'
868 datadir
='${datarootdir}'
869 sysconfdir
='${prefix}/etc'
870 sharedstatedir
='${prefix}/com'
871 localstatedir
='${prefix}/var'
872 includedir
='${prefix}/include'
873 oldincludedir
='/usr/include'
874 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
875 infodir
='${datarootdir}/info'
880 libdir
='${exec_prefix}/lib'
881 localedir
='${datarootdir}/locale'
882 mandir
='${datarootdir}/man'
888 # If the previous option needs an argument, assign it.
889 if test -n "$ac_prev"; then
890 eval $ac_prev=\
$ac_option
896 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
900 # Accept the important Cygnus configure options, so we can diagnose typos.
902 case $ac_dashdash$ac_option in
906 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
908 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
911 -build |
--build |
--buil |
--bui |
--bu)
912 ac_prev
=build_alias
;;
913 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
914 build_alias
=$ac_optarg ;;
916 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
917 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
918 ac_prev
=cache_file
;;
919 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
920 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
921 cache_file
=$ac_optarg ;;
924 cache_file
=config.cache
;;
926 -datadir |
--datadir |
--datadi |
--datad)
928 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
929 datadir
=$ac_optarg ;;
931 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
932 |
--dataroo |
--dataro |
--datar)
933 ac_prev
=datarootdir
;;
934 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
935 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
936 datarootdir
=$ac_optarg ;;
938 -disable-* |
--disable-*)
939 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
942 as_fn_error
"invalid feature name: $ac_useropt"
943 ac_useropt_orig
=$ac_useropt
944 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
945 case $ac_user_opts in
949 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
950 ac_unrecognized_sep
=', ';;
952 eval enable_
$ac_useropt=no
;;
954 -docdir |
--docdir |
--docdi |
--doc |
--do)
956 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
959 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
961 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
964 -enable-* |
--enable-*)
965 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
966 # Reject names that are not valid shell variable names.
967 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
968 as_fn_error
"invalid feature name: $ac_useropt"
969 ac_useropt_orig
=$ac_useropt
970 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
971 case $ac_user_opts in
975 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
976 ac_unrecognized_sep
=', ';;
978 eval enable_
$ac_useropt=\
$ac_optarg ;;
980 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
981 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
982 |
--exec |
--exe |
--ex)
983 ac_prev
=exec_prefix
;;
984 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
985 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
986 |
--exec=* |
--exe=* |
--ex=*)
987 exec_prefix
=$ac_optarg ;;
989 -gas |
--gas |
--ga |
--g)
990 # Obsolete; use --with-gas.
993 -help |
--help |
--hel |
--he |
-h)
995 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
996 ac_init_help
=recursive
;;
997 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
998 ac_init_help
=short
;;
1000 -host |
--host |
--hos |
--ho)
1001 ac_prev
=host_alias
;;
1002 -host=* |
--host=* |
--hos=* |
--ho=*)
1003 host_alias
=$ac_optarg ;;
1005 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1007 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1009 htmldir
=$ac_optarg ;;
1011 -includedir |
--includedir |
--includedi |
--included |
--include \
1012 |
--includ |
--inclu |
--incl |
--inc)
1013 ac_prev
=includedir
;;
1014 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1015 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1016 includedir
=$ac_optarg ;;
1018 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1020 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1021 infodir
=$ac_optarg ;;
1023 -libdir |
--libdir |
--libdi |
--libd)
1025 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1026 libdir
=$ac_optarg ;;
1028 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1029 |
--libexe |
--libex |
--libe)
1030 ac_prev
=libexecdir
;;
1031 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1032 |
--libexe=* |
--libex=* |
--libe=*)
1033 libexecdir
=$ac_optarg ;;
1035 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1036 ac_prev
=localedir
;;
1037 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1038 localedir
=$ac_optarg ;;
1040 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1041 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1042 ac_prev
=localstatedir
;;
1043 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1044 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1045 localstatedir
=$ac_optarg ;;
1047 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1049 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1050 mandir
=$ac_optarg ;;
1052 -nfp |
--nfp |
--nf)
1053 # Obsolete; use --without-fp.
1056 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1057 |
--no-cr |
--no-c |
-n)
1060 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1061 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1064 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1065 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1066 |
--oldin |
--oldi |
--old |
--ol |
--o)
1067 ac_prev
=oldincludedir
;;
1068 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1069 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1070 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1071 oldincludedir
=$ac_optarg ;;
1073 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1075 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1076 prefix
=$ac_optarg ;;
1078 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1079 |
--program-pre |
--program-pr |
--program-p)
1080 ac_prev
=program_prefix
;;
1081 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1082 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1083 program_prefix
=$ac_optarg ;;
1085 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1086 |
--program-suf |
--program-su |
--program-s)
1087 ac_prev
=program_suffix
;;
1088 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1089 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1090 program_suffix
=$ac_optarg ;;
1092 -program-transform-name |
--program-transform-name \
1093 |
--program-transform-nam |
--program-transform-na \
1094 |
--program-transform-n |
--program-transform- \
1095 |
--program-transform |
--program-transfor \
1096 |
--program-transfo |
--program-transf \
1097 |
--program-trans |
--program-tran \
1098 |
--progr-tra |
--program-tr |
--program-t)
1099 ac_prev
=program_transform_name
;;
1100 -program-transform-name=* |
--program-transform-name=* \
1101 |
--program-transform-nam=* |
--program-transform-na=* \
1102 |
--program-transform-n=* |
--program-transform-=* \
1103 |
--program-transform=* |
--program-transfor=* \
1104 |
--program-transfo=* |
--program-transf=* \
1105 |
--program-trans=* |
--program-tran=* \
1106 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1107 program_transform_name
=$ac_optarg ;;
1109 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1111 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1112 pdfdir
=$ac_optarg ;;
1114 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1116 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1119 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1120 |
-silent |
--silent |
--silen |
--sile |
--sil)
1123 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1125 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1127 sbindir
=$ac_optarg ;;
1129 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1130 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1131 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1133 ac_prev
=sharedstatedir
;;
1134 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1135 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1136 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1138 sharedstatedir
=$ac_optarg ;;
1140 -site |
--site |
--sit)
1142 -site=* |
--site=* |
--sit=*)
1145 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1147 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1148 srcdir
=$ac_optarg ;;
1150 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1151 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1152 ac_prev
=sysconfdir
;;
1153 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1154 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1155 sysconfdir
=$ac_optarg ;;
1157 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1158 ac_prev
=target_alias
;;
1159 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1160 target_alias
=$ac_optarg ;;
1162 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1165 -version |
--version |
--versio |
--versi |
--vers |
-V)
1166 ac_init_version
=: ;;
1169 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1170 # Reject names that are not valid shell variable names.
1171 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1172 as_fn_error
"invalid package name: $ac_useropt"
1173 ac_useropt_orig
=$ac_useropt
1174 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1175 case $ac_user_opts in
1179 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1180 ac_unrecognized_sep
=', ';;
1182 eval with_
$ac_useropt=\
$ac_optarg ;;
1184 -without-* |
--without-*)
1185 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1186 # Reject names that are not valid shell variable names.
1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1188 as_fn_error
"invalid package name: $ac_useropt"
1189 ac_useropt_orig
=$ac_useropt
1190 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1191 case $ac_user_opts in
1195 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1196 ac_unrecognized_sep
=', ';;
1198 eval with_
$ac_useropt=no
;;
1201 # Obsolete; use --with-x.
1204 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1205 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1206 ac_prev
=x_includes
;;
1207 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1208 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1209 x_includes
=$ac_optarg ;;
1211 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1212 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1213 ac_prev
=x_libraries
;;
1214 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1215 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1216 x_libraries
=$ac_optarg ;;
1218 -*) as_fn_error
"unrecognized option: \`$ac_option'
1219 Try \`$0 --help' for more information."
1223 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1224 # Reject names that are not valid shell variable names.
1225 case $ac_envvar in #(
1226 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1227 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1229 eval $ac_envvar=\
$ac_optarg
1230 export $ac_envvar ;;
1233 # FIXME: should be removed in autoconf 3.0.
1234 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1235 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1236 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1237 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1243 if test -n "$ac_prev"; then
1244 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1245 as_fn_error
"missing argument to $ac_option"
1248 if test -n "$ac_unrecognized_opts"; then
1249 case $enable_option_checking in
1251 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1252 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1256 # Check all directory arguments for consistency.
1257 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1258 datadir sysconfdir sharedstatedir localstatedir includedir \
1259 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1260 libdir localedir mandir
1262 eval ac_val
=\$
$ac_var
1263 # Remove trailing slashes.
1266 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1267 eval $ac_var=\
$ac_val;;
1269 # Be sure to have absolute directory names.
1271 [\\/$
]* | ?
:[\\/]* ) continue;;
1272 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1274 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1277 # There might be people who depend on the old broken behavior: `$host'
1278 # used to hold the argument of --host etc.
1279 # FIXME: To remove some day.
1282 target
=$target_alias
1284 # FIXME: To remove some day.
1285 if test "x$host_alias" != x
; then
1286 if test "x$build_alias" = x
; then
1287 cross_compiling
=maybe
1288 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1289 If a cross compiler is detected then cross compile mode will be used." >&2
1290 elif test "x$build_alias" != "x$host_alias"; then
1296 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1298 test "$silent" = yes && exec 6>/dev
/null
1301 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1302 ac_ls_di
=`ls -di .` &&
1303 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1304 as_fn_error
"working directory cannot be determined"
1305 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1306 as_fn_error
"pwd does not report name of working directory"
1309 # Find the source files, if location was not specified.
1310 if test -z "$srcdir"; then
1311 ac_srcdir_defaulted
=yes
1312 # Try the directory containing this script, then the parent directory.
1313 ac_confdir
=`$as_dirname -- "$as_myself" ||
1314 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1315 X"$as_myself" : 'X\(//\)[^/]' \| \
1316 X"$as_myself" : 'X\(//\)$' \| \
1317 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1318 $as_echo X"$as_myself" |
1319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1337 if test ! -r "$srcdir/$ac_unique_file"; then
1341 ac_srcdir_defaulted
=no
1343 if test ! -r "$srcdir/$ac_unique_file"; then
1344 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1345 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1347 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1349 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1351 # When building in place, set srcdir=.
1352 if test "$ac_abs_confdir" = "$ac_pwd"; then
1355 # Remove unnecessary trailing slashes from srcdir.
1356 # Double slashes in file names in object file debugging info
1357 # mess up M-x gdb in Emacs.
1359 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1361 for ac_var
in $ac_precious_vars; do
1362 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1363 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1364 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1365 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1369 # Report the --help message.
1371 if test "$ac_init_help" = "long"; then
1372 # Omit some internal or obsolete options to make the list less imposing.
1373 # This message is too long to be a string in the A/UX 3.1 sh.
1375 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1377 Usage: $0 [OPTION]... [VAR=VALUE]...
1379 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1380 VAR=VALUE. See below for descriptions of some of the useful variables.
1382 Defaults for the options are specified in brackets.
1385 -h, --help display this help and exit
1386 --help=short display options specific to this package
1387 --help=recursive display the short help of all the included packages
1388 -V, --version display version information and exit
1389 -q, --quiet, --silent do not print \`checking...' messages
1390 --cache-file=FILE cache test results in FILE [disabled]
1391 -C, --config-cache alias for \`--cache-file=config.cache'
1392 -n, --no-create do not create output files
1393 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1395 Installation directories:
1396 --prefix=PREFIX install architecture-independent files in PREFIX
1397 [$ac_default_prefix]
1398 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1401 By default, \`make install' will install all the files in
1402 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1403 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1404 for instance \`--prefix=\$HOME'.
1406 For better control, use the options below.
1408 Fine tuning of the installation directories:
1409 --bindir=DIR user executables [EPREFIX/bin]
1410 --sbindir=DIR system admin executables [EPREFIX/sbin]
1411 --libexecdir=DIR program executables [EPREFIX/libexec]
1412 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1413 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1414 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1415 --libdir=DIR object code libraries [EPREFIX/lib]
1416 --includedir=DIR C header files [PREFIX/include]
1417 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1418 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1419 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1420 --infodir=DIR info documentation [DATAROOTDIR/info]
1421 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1422 --mandir=DIR man documentation [DATAROOTDIR/man]
1423 --docdir=DIR documentation root [DATAROOTDIR/doc/libgo]
1424 --htmldir=DIR html documentation [DOCDIR]
1425 --dvidir=DIR dvi documentation [DOCDIR]
1426 --pdfdir=DIR pdf documentation [DOCDIR]
1427 --psdir=DIR ps documentation [DOCDIR]
1433 --program-prefix=PREFIX prepend PREFIX to installed program names
1434 --program-suffix=SUFFIX append SUFFIX to installed program names
1435 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1438 --build=BUILD configure
for building on BUILD
[guessed
]
1439 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1440 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1444 if test -n "$ac_init_help"; then
1445 case $ac_init_help in
1446 short | recursive
) echo "Configuration of package-unused version-unused:";;
1451 --disable-option-checking ignore unrecognized
--enable/--with options
1452 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1453 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1454 --enable-multilib build many library versions
(default
)
1455 --disable-dependency-tracking speeds up one-time build
1456 --enable-dependency-tracking do not reject slow dependency extractors
1457 --enable-maintainer-mode enable make rules and dependencies not useful
1458 (and sometimes confusing
) to the casual installer
1459 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1460 --enable-static[=PKGS
] build static libraries
[default
=yes]
1461 --enable-fast-install[=PKGS
]
1462 optimize
for fast installation
[default
=yes]
1463 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1464 --enable-werror turns on
-Werror [default
=yes]
1465 --enable-version-specific-runtime-libs
1466 Specify that runtime libraries should be installed
1467 in a compiler-specific directory
1468 --enable-sjlj-exceptions
1469 force use of builtin_setjmp
for exceptions
1472 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1473 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1474 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1475 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1477 --without-libffi don
't use libffi
1478 --without-libatomic don't use libatomic
1479 --with-system-libunwind use installed libunwind
1481 Some influential environment variables
:
1482 CC C compiler
command
1483 CFLAGS C compiler flags
1484 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1485 nonstandard directory
<lib dir
>
1486 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1487 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1488 you have headers
in a nonstandard directory
<include dir
>
1489 GOC Go compiler
command
1490 GOCFLAGS Go compiler flags
1493 Use these variables to override the choices made by
`configure' or to help
1494 it to find libraries and programs with nonstandard names/locations.
1496 Report bugs to the package provider.
1501 if test "$ac_init_help" = "recursive"; then
1502 # If there are subdirs, report their specific --help.
1503 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1504 test -d "$ac_dir" ||
1505 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1510 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1513 # A ".." for each directory in $ac_dir_suffix.
1514 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1515 case $ac_top_builddir_sub in
1516 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1520 ac_abs_top_builddir=$ac_pwd
1521 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1522 # for backward compatibility:
1523 ac_top_builddir=$ac_top_build_prefix
1526 .) # We are building in place.
1528 ac_top_srcdir=$ac_top_builddir_sub
1529 ac_abs_top_srcdir=$ac_pwd ;;
1530 [\\/]* | ?:[\\/]* ) # Absolute name.
1531 ac_srcdir=$srcdir$ac_dir_suffix;
1532 ac_top_srcdir=$srcdir
1533 ac_abs_top_srcdir=$srcdir ;;
1535 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1536 ac_top_srcdir=$ac_top_build_prefix$srcdir
1537 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1539 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1541 cd "$ac_dir" || { ac_status=$?; continue; }
1542 # Check for guested configure.
1543 if test -f "$ac_srcdir/configure.gnu"; then
1545 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1546 elif test -f "$ac_srcdir/configure"; then
1548 $SHELL "$ac_srcdir/configure" --help=recursive
1550 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1552 cd "$ac_pwd" || { ac_status=$?; break; }
1556 test -n "$ac_init_help" && exit $ac_status
1557 if $ac_init_version; then
1559 package-unused configure version-unused
1560 generated by GNU Autoconf 2.64
1562 Copyright (C) 2009 Free Software Foundation, Inc.
1563 This configure script is free software; the Free Software Foundation
1564 gives unlimited permission to copy, distribute and modify it.
1569 ## ------------------------ ##
1570 ## Autoconf initialization. ##
1571 ## ------------------------ ##
1573 # ac_fn_c_try_compile LINENO
1574 # --------------------------
1575 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1576 ac_fn_c_try_compile ()
1578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579 rm -f conftest.$ac_objext
1580 if { { ac_try="$ac_compile"
1582 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1583 *) ac_try_echo
=$ac_try;;
1585 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586 $as_echo "$ac_try_echo"; } >&5
1587 (eval "$ac_compile") 2>conftest.err
1589 if test -s conftest.err
; then
1590 grep -v '^ *+' conftest.err
>conftest.er1
1591 cat conftest.er1
>&5
1592 mv -f conftest.er1 conftest.err
1594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1595 test $ac_status = 0; } && {
1596 test -z "$ac_c_werror_flag" ||
1597 test ! -s conftest.err
1598 } && test -s conftest.
$ac_objext; then :
1601 $as_echo "$as_me: failed program was:" >&5
1602 sed 's/^/| /' conftest.
$ac_ext >&5
1606 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1609 } # ac_fn_c_try_compile
1611 # ac_fn_c_try_link LINENO
1612 # -----------------------
1613 # Try to link conftest.$ac_ext, and return whether this succeeded.
1616 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1617 rm -f conftest.
$ac_objext conftest
$ac_exeext
1618 if { { ac_try
="$ac_link"
1620 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1621 *) ac_try_echo=$ac_try;;
1623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624 $as_echo "$ac_try_echo"; } >&5
1625 (eval "$ac_link") 2>conftest.err
1627 if test -s conftest.err; then
1628 grep -v '^ *+' conftest.err >conftest.er1
1629 cat conftest.er1 >&5
1630 mv -f conftest.er1 conftest.err
1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633 test $ac_status = 0; } && {
1634 test -z "$ac_c_werror_flag" ||
1635 test ! -s conftest.err
1636 } && test -s conftest$ac_exeext && {
1637 test "$cross_compiling" = yes ||
1638 $as_test_x conftest$ac_exeext
1642 $as_echo "$as_me: failed program was:" >&5
1643 sed 's/^/| /' conftest.$ac_ext >&5
1647 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1648 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1649 # interfere with the next link command; also delete a directory that is
1650 # left behind by Apple's compiler. We do this before executing the actions.
1651 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1652 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1655 } # ac_fn_c_try_link
1657 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1658 # -------------------------------------------------------
1659 # Tests whether HEADER exists and can be compiled using the include files in
1660 # INCLUDES, setting the cache variable VAR accordingly.
1661 ac_fn_c_check_header_compile ()
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1665 $as_echo_n "checking for $2... " >&6; }
1666 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1667 $as_echo_n "(cached) " >&6
1669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1670 /* end confdefs.h. */
1674 if ac_fn_c_try_compile "$LINENO"; then :
1679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1683 $as_echo "$ac_res" >&6; }
1684 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1686 } # ac_fn_c_check_header_compile
1688 # ac_fn_c_try_cpp LINENO
1689 # ----------------------
1690 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 if { { ac_try="$ac_cpp conftest.$ac_ext"
1696 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1697 *) ac_try_echo
=$ac_try;;
1699 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1703 if test -s conftest.err
; then
1704 grep -v '^ *+' conftest.err
>conftest.er1
1705 cat conftest.er1
>&5
1706 mv -f conftest.er1 conftest.err
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; } >/dev
/null
&& {
1710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1711 test ! -s conftest.err
1715 $as_echo "$as_me: failed program was:" >&5
1716 sed 's/^/| /' conftest.
$ac_ext >&5
1720 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1725 # ac_fn_c_try_run LINENO
1726 # ----------------------
1727 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1728 # that executables *can* be run.
1731 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1732 if { { ac_try
="$ac_link"
1734 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738 $as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_link") 2>&5
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1743 { { case "(($ac_try" in
1744 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1745 *) ac_try_echo
=$ac_try;;
1747 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_try") 2>&5
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; }; }; then :
1755 $as_echo "$as_me: program exited with status $ac_status" >&5
1756 $as_echo "$as_me: failed program was:" >&5
1757 sed 's/^/| /' conftest.
$ac_ext >&5
1759 ac_retval
=$ac_status
1761 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1762 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1767 # ac_fn_c_check_func LINENO FUNC VAR
1768 # ----------------------------------
1769 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1770 ac_fn_c_check_func
()
1772 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1774 $as_echo_n "checking for $2... " >&6; }
1775 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1776 $as_echo_n "(cached) " >&6
1778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1779 /* end confdefs.h. */
1780 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1782 #define $2 innocuous_$2
1784 /* System header to define __stub macros and hopefully few prototypes,
1785 which can conflict with char $2 (); below.
1786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1787 <limits.h> exists even on freestanding compilers. */
1790 # include <limits.h>
1792 # include <assert.h>
1797 /* Override any GCC internal prototype to avoid an error.
1798 Use char because int might match the return type of a GCC
1799 builtin and then its argument prototype would still apply. */
1804 /* The GNU C library defines this for functions which it implements
1805 to always fail with ENOSYS. Some functions are actually named
1806 something starting with __ and the normal name is an alias. */
1807 #if defined __stub_$2 || defined __stub___$2
1819 if ac_fn_c_try_link
"$LINENO"; then :
1824 rm -f core conftest.err conftest.
$ac_objext \
1825 conftest
$ac_exeext conftest.
$ac_ext
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1829 $as_echo "$ac_res" >&6; }
1830 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1832 } # ac_fn_c_check_func
1834 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1835 # -------------------------------------------------------
1836 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1837 # the include files in INCLUDES and setting the cache variable VAR
1839 ac_fn_c_check_header_mongrel
()
1841 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1842 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1844 $as_echo_n "checking for $2... " >&6; }
1845 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1846 $as_echo_n "(cached) " >&6
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1850 $as_echo "$ac_res" >&6; }
1852 # Is the header compilable?
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1854 $as_echo_n "checking $2 usability... " >&6; }
1855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1856 /* end confdefs.h. */
1860 if ac_fn_c_try_compile
"$LINENO"; then :
1861 ac_header_compiler
=yes
1863 ac_header_compiler
=no
1865 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1867 $as_echo "$ac_header_compiler" >&6; }
1869 # Is the header present?
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1871 $as_echo_n "checking $2 presence... " >&6; }
1872 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1873 /* end confdefs.h. */
1876 if ac_fn_c_try_cpp
"$LINENO"; then :
1877 ac_header_preproc
=yes
1879 ac_header_preproc
=no
1881 rm -f conftest.err conftest.
$ac_ext
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1883 $as_echo "$ac_header_preproc" >&6; }
1885 # So? What about this header?
1886 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1889 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1891 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1895 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1897 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1899 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1901 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1903 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1907 $as_echo_n "checking for $2... " >&6; }
1908 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1909 $as_echo_n "(cached) " >&6
1911 eval "$3=\$ac_header_compiler"
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1915 $as_echo "$ac_res" >&6; }
1917 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1919 } # ac_fn_c_check_header_mongrel
1921 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1922 # -------------------------------------------
1923 # Tests whether TYPE exists after having included INCLUDES, setting cache
1924 # variable VAR accordingly.
1925 ac_fn_c_check_type
()
1927 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1929 $as_echo_n "checking for $2... " >&6; }
1930 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1931 $as_echo_n "(cached) " >&6
1934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1935 /* end confdefs.h. */
1946 if ac_fn_c_try_compile
"$LINENO"; then :
1947 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1948 /* end confdefs.h. */
1959 if ac_fn_c_try_compile
"$LINENO"; then :
1964 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1966 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1970 $as_echo "$ac_res" >&6; }
1971 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1973 } # ac_fn_c_check_type
1975 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1976 # --------------------------------------------
1977 # Tries to find the compile-time value of EXPR in a program that includes
1978 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1980 ac_fn_c_compute_int
()
1982 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1983 if test "$cross_compiling" = yes; then
1984 # Depending upon the size, compute the lo and hi bounds.
1985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1986 /* end confdefs.h. */
1991 static int test_array [1 - 2 * !(($2) >= 0)];
1998 if ac_fn_c_try_compile
"$LINENO"; then :
2001 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2007 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2014 if ac_fn_c_try_compile
"$LINENO"; then :
2015 ac_hi
=$ac_mid; break
2017 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2018 if test $ac_lo -le $ac_mid; then
2022 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2024 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2033 static int test_array [1 - 2 * !(($2) < 0)];
2040 if ac_fn_c_try_compile
"$LINENO"; then :
2043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2044 /* end confdefs.h. */
2049 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2056 if ac_fn_c_try_compile
"$LINENO"; then :
2057 ac_lo
=$ac_mid; break
2059 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2060 if test $ac_mid -le $ac_hi; then
2064 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2066 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2071 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2073 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2074 # Binary search between lo and hi bounds.
2075 while test "x$ac_lo" != "x$ac_hi"; do
2076 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2078 /* end confdefs.h. */
2083 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2090 if ac_fn_c_try_compile
"$LINENO"; then :
2093 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2095 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2098 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2102 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2103 /* end confdefs.h. */
2105 static long int longval () { return $2; }
2106 static unsigned long int ulongval () { return $2; }
2113 FILE *f = fopen ("conftest.val", "w");
2118 long int i = longval ();
2121 fprintf (f, "%ld", i);
2125 unsigned long int i = ulongval ();
2128 fprintf (f, "%lu", i);
2130 /* Do not output a trailing newline, as this causes \r\n confusion
2131 on some platforms. */
2132 return ferror (f) || fclose (f) != 0;
2138 if ac_fn_c_try_run
"$LINENO"; then :
2139 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2143 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2144 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2148 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2151 } # ac_fn_c_compute_int
2152 cat >config.log
<<_ACEOF
2153 This file contains any messages produced by compilers while
2154 running configure, to aid debugging if configure makes a mistake.
2156 It was created by package-unused $as_me version-unused, which was
2157 generated by GNU Autoconf 2.64. Invocation command line was
2169 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2170 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2171 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2172 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2173 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2175 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2176 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2178 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2179 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2180 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2181 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2182 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2183 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2184 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2188 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2192 test -z "$as_dir" && as_dir
=.
2193 $as_echo "PATH: $as_dir"
2209 # Keep a trace of the command line.
2210 # Strip out --no-create and --no-recursion so they do not pile up.
2211 # Strip out --silent because we don't want to record it for future runs.
2212 # Also quote any args containing shell meta-characters.
2213 # Make two passes to allow for proper duplicate-argument suppression.
2217 ac_must_keep_next
=false
2223 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2224 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2225 |
-silent |
--silent |
--silen |
--sile |
--sil)
2228 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2231 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2233 as_fn_append ac_configure_args1
" '$ac_arg'"
2234 if test $ac_must_keep_next = true
; then
2235 ac_must_keep_next
=false
# Got value, back to normal.
2238 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2239 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2240 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2241 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2242 case "$ac_configure_args0 " in
2243 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2246 -* ) ac_must_keep_next
=true
;;
2249 as_fn_append ac_configure_args
" '$ac_arg'"
2254 { ac_configure_args0
=; unset ac_configure_args0
;}
2255 { ac_configure_args1
=; unset ac_configure_args1
;}
2257 # When interrupted or exit'd, cleanup temporary files, and complete
2258 # config.log. We remove comments because anyway the quotes in there
2259 # would cause problems or look ugly.
2260 # WARNING: Use '\'' to represent an apostrophe within the trap.
2261 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2262 trap 'exit_status=$?
2263 # Save into config.log some information that might help in debugging.
2268 ## ---------------- ##
2269 ## Cache variables. ##
2270 ## ---------------- ##
2273 # The following way of writing the cache mishandles newlines in values,
2275 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2276 eval ac_val=\$$ac_var
2280 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2281 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2284 _ | IFS | as_nl) ;; #(
2285 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2286 *) { eval $ac_var=; unset $ac_var;} ;;
2291 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2292 *${as_nl}ac_space=\ *)
2294 "s/'\''/'\''\\\\'\'''\''/g;
2295 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2298 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2306 ## ----------------- ##
2307 ## Output variables. ##
2308 ## ----------------- ##
2311 for ac_var in $ac_subst_vars
2313 eval ac_val=\$$ac_var
2315 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2317 $as_echo "$ac_var='\''$ac_val'\''"
2321 if test -n "$ac_subst_files"; then
2323 ## ------------------- ##
2324 ## File substitutions. ##
2325 ## ------------------- ##
2328 for ac_var
in $ac_subst_files
2330 eval ac_val
=\$
$ac_var
2332 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2334 $as_echo "$ac_var='\''$ac_val'\''"
2339 if test -s confdefs.h; then
2349 test "$ac_signal" != 0 &&
2350 $as_echo "$as_me: caught signal $ac_signal"
2351 $as_echo "$as_me: exit $exit_status"
2353 rm -f core *.core core.conftest.* &&
2354 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2357 for ac_signal
in 1 2 13 15; do
2358 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2362 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2363 rm -f -r conftest
* confdefs.h
2365 $as_echo "/* confdefs.h */" > confdefs.h
2367 # Predefined preprocessor variables.
2369 cat >>confdefs.h
<<_ACEOF
2370 #define PACKAGE_NAME "$PACKAGE_NAME"
2373 cat >>confdefs.h
<<_ACEOF
2374 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2377 cat >>confdefs.h
<<_ACEOF
2378 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2381 cat >>confdefs.h
<<_ACEOF
2382 #define PACKAGE_STRING "$PACKAGE_STRING"
2385 cat >>confdefs.h
<<_ACEOF
2386 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2389 cat >>confdefs.h
<<_ACEOF
2390 #define PACKAGE_URL "$PACKAGE_URL"
2394 # Let the site file select an alternate cache file if it wants to.
2395 # Prefer an explicitly selected file to automatically selected ones.
2398 if test -n "$CONFIG_SITE"; then
2399 ac_site_file1
=$CONFIG_SITE
2400 elif test "x$prefix" != xNONE
; then
2401 ac_site_file1
=$prefix/share
/config.site
2402 ac_site_file2
=$prefix/etc
/config.site
2404 ac_site_file1
=$ac_default_prefix/share
/config.site
2405 ac_site_file2
=$ac_default_prefix/etc
/config.site
2407 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2409 test "x$ac_site_file" = xNONE
&& continue
2410 if test -r "$ac_site_file"; then
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2412 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2413 sed 's/^/| /' "$ac_site_file" >&5
2418 if test -r "$cache_file"; then
2419 # Some versions of bash will fail to source /dev/null (special
2420 # files actually), so we avoid doing that.
2421 if test -f "$cache_file"; then
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2423 $as_echo "$as_me: loading cache $cache_file" >&6;}
2425 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2426 *) .
"./$cache_file";;
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2431 $as_echo "$as_me: creating cache $cache_file" >&6;}
2435 # Check that the precious variables saved in the cache have kept the same
2437 ac_cache_corrupted
=false
2438 for ac_var
in $ac_precious_vars; do
2439 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2440 eval ac_new_set
=\
$ac_env_${ac_var}_set
2441 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2442 eval ac_new_val
=\
$ac_env_${ac_var}_value
2443 case $ac_old_set,$ac_new_set in
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2446 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2447 ac_cache_corrupted
=: ;;
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2450 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2451 ac_cache_corrupted
=: ;;
2454 if test "x$ac_old_val" != "x$ac_new_val"; then
2455 # differences in whitespace do not lead to failure.
2456 ac_old_val_w
=`echo x $ac_old_val`
2457 ac_new_val_w
=`echo x $ac_new_val`
2458 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2460 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2461 ac_cache_corrupted
=:
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2464 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2465 eval $ac_var=\
$ac_old_val
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2468 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2470 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2473 # Pass precious variables to config.status.
2474 if test "$ac_new_set" = set; then
2476 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2477 *) ac_arg
=$ac_var=$ac_new_val ;;
2479 case " $ac_configure_args " in
2480 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2481 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2485 if $ac_cache_corrupted; then
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2487 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2489 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2490 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2492 ## -------------------- ##
2493 ## Main body of script. ##
2494 ## -------------------- ##
2497 ac_cpp
='$CPP $CPPFLAGS'
2498 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2499 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2500 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2507 ac_config_headers
="$ac_config_headers config.h"
2510 libtool_VERSION
=6:0:0
2513 # Default to --enable-multilib
2514 # Check whether --enable-multilib was given.
2515 if test "${enable_multilib+set}" = set; then :
2516 enableval
=$enable_multilib; case "$enableval" in
2517 yes) multilib
=yes ;;
2519 *) as_fn_error
"bad value $enableval for multilib option" "$LINENO" 5 ;;
2526 # We may get other options which we leave undocumented:
2527 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2528 # See config-ml.in if you want the gory details.
2530 if test "$srcdir" = "."; then
2531 if test "$with_target_subdir" != "."; then
2532 multi_basedir
="$srcdir/$with_multisrctop../.."
2534 multi_basedir
="$srcdir/$with_multisrctop.."
2537 multi_basedir
="$srcdir/.."
2541 # Even if the default multilib is not a cross compilation,
2542 # it may be that some of the other multilibs are.
2543 if test $cross_compiling = no
&& test $multilib = yes \
2544 && test "x${with_multisubdir}" != x
; then
2545 cross_compiling
=maybe
2548 ac_config_commands
="$ac_config_commands default-1"
2552 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2553 for ac_t
in install-sh
install.sh shtool
; do
2554 if test -f "$ac_dir/$ac_t"; then
2556 ac_install_sh
="$ac_aux_dir/$ac_t -c"
2561 if test -z "$ac_aux_dir"; then
2562 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2565 # These three variables are undocumented and unsupported,
2566 # and are intended to be withdrawn in a future Autoconf release.
2567 # They can cause serious problems if a builder's source tree is in a directory
2568 # whose full name contains unusual characters.
2569 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2570 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2571 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2574 # Make sure we can run config.sub.
2575 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2576 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2579 $as_echo_n "checking build system type... " >&6; }
2580 if test "${ac_cv_build+set}" = set; then :
2581 $as_echo_n "(cached) " >&6
2583 ac_build_alias
=$build_alias
2584 test "x$ac_build_alias" = x
&&
2585 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2586 test "x$ac_build_alias" = x
&&
2587 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
2588 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2589 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2593 $as_echo "$ac_cv_build" >&6; }
2594 case $ac_cv_build in
2596 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
2599 ac_save_IFS
=$IFS; IFS
='-'
2605 # Remember, the first character of IFS is used to create $*,
2606 # except with old shells:
2609 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2613 $as_echo_n "checking host system type... " >&6; }
2614 if test "${ac_cv_host+set}" = set; then :
2615 $as_echo_n "(cached) " >&6
2617 if test "x$host_alias" = x
; then
2618 ac_cv_host
=$ac_cv_build
2620 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2621 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2626 $as_echo "$ac_cv_host" >&6; }
2629 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
2632 ac_save_IFS
=$IFS; IFS
='-'
2638 # Remember, the first character of IFS is used to create $*,
2639 # except with old shells:
2642 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2646 $as_echo_n "checking target system type... " >&6; }
2647 if test "${ac_cv_target+set}" = set; then :
2648 $as_echo_n "(cached) " >&6
2650 if test "x$target_alias" = x
; then
2651 ac_cv_target
=$ac_cv_host
2653 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2654 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2659 $as_echo "$ac_cv_target" >&6; }
2660 case $ac_cv_target in
2662 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
2664 target
=$ac_cv_target
2665 ac_save_IFS
=$IFS; IFS
='-'
2671 # Remember, the first character of IFS is used to create $*,
2672 # except with old shells:
2675 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2678 # The aliases save the names the user supplied, while $host etc.
2679 # will get canonicalized.
2680 test -n "$target_alias" &&
2681 test "$program_prefix$program_suffix$program_transform_name" = \
2683 program_prefix
=${target_alias}-
2685 target_alias
=${target_alias-$host_alias}
2687 am__api_version
='1.11'
2689 # Find a good install program. We prefer a C program (faster),
2690 # so one script is as good as another. But avoid the broken or
2691 # incompatible versions:
2692 # SysV /etc/install, /usr/sbin/install
2693 # SunOS /usr/etc/install
2694 # IRIX /sbin/install
2696 # AmigaOS /C/install, which installs bootblocks on floppy discs
2697 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2698 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2699 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2700 # OS/2's system install, which has a completely different semantic
2701 # ./install, which can be erroneously created by make from ./install.sh.
2702 # Reject install programs that cannot install multiple files.
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2704 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2705 if test -z "$INSTALL"; then
2706 if test "${ac_cv_path_install+set}" = set; then :
2707 $as_echo_n "(cached) " >&6
2709 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2713 test -z "$as_dir" && as_dir
=.
2714 # Account for people who put trailing slashes in PATH elements.
2715 case $as_dir/ in #((
2716 .
/ | .
// |
/[cC
]/* | \
2717 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2718 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2721 # OSF1 and SCO ODT 3.0 have their own names for install.
2722 # Don't use installbsd from OSF since it installs stuff as root
2724 for ac_prog
in ginstall scoinst
install; do
2725 for ac_exec_ext
in '' $ac_executable_extensions; do
2726 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2727 if test $ac_prog = install &&
2728 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2729 # AIX install. It has an incompatible calling convention.
2731 elif test $ac_prog = install &&
2732 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2733 # program-specific install script used by HP pwplus--don't use.
2736 rm -rf conftest.one conftest.two conftest.dir
2737 echo one
> conftest.one
2738 echo two
> conftest.two
2740 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2741 test -s conftest.one
&& test -s conftest.two
&&
2742 test -s conftest.dir
/conftest.one
&&
2743 test -s conftest.dir
/conftest.two
2745 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2758 rm -rf conftest.one conftest.two conftest.dir
2761 if test "${ac_cv_path_install+set}" = set; then
2762 INSTALL
=$ac_cv_path_install
2764 # As a last resort, use the slow shell script. Don't cache a
2765 # value for INSTALL within a source directory, because that will
2766 # break other packages using the cache if that directory is
2767 # removed, or if the value is a relative name.
2768 INSTALL
=$ac_install_sh
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2772 $as_echo "$INSTALL" >&6; }
2774 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2775 # It thinks the first close brace ends the variable substitution.
2776 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2778 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2780 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2783 $as_echo_n "checking whether build environment is sane... " >&6; }
2786 echo timestamp
> conftest.
file
2787 # Reject unsafe characters in $srcdir or the absolute working directory
2788 # name. Accept space and tab only in the latter.
2792 *[\\\"\
#\$\&\'\`$am_lf]*)
2793 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
2796 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2797 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2800 # Do `set' in a subshell so we don't clobber the current shell's
2801 # arguments. Must try -L first in case configure is actually a
2802 # symlink; some systems play weird games with the mod time of symlinks
2803 # (eg FreeBSD returns the mod time of the symlink's containing
2806 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2807 if test "$*" = "X"; then
2809 set X
`ls -t "$srcdir/configure" conftest.file`
2812 if test "$*" != "X $srcdir/configure conftest.file" \
2813 && test "$*" != "X conftest.file $srcdir/configure"; then
2815 # If neither matched, then we have a broken ls. This can happen
2816 # if, for instance, CONFIG_SHELL is bash and it inherits a
2817 # broken ls alias from the environment. This has actually
2818 # happened. Such a system could not be considered "sane".
2819 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
2820 alias in your environment" "$LINENO" 5
2823 test "$2" = conftest.
file
2829 as_fn_error
"newly created file is older than distributed files!
2830 Check your system clock" "$LINENO" 5
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2833 $as_echo "yes" >&6; }
2834 test "$program_prefix" != NONE
&&
2835 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2836 # Use a double $ so make ignores it.
2837 test "$program_suffix" != NONE
&&
2838 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2839 # Double any \ or $.
2840 # By default was `s,x,x', remove it if useless.
2841 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2842 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2844 # expand $ac_aux_dir to an absolute path
2845 am_aux_dir
=`cd $ac_aux_dir && pwd`
2847 if test x
"${MISSING+set}" != xset
; then
2850 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2852 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2855 # Use eval to expand $SHELL
2856 if eval "$MISSING --run true"; then
2857 am_missing_run
="$MISSING --run "
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2861 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2864 if test x
"${install_sh}" != xset
; then
2867 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2869 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2873 # Installed binaries are usually stripped using `strip' when the user
2874 # run `make install-strip'. However `strip' might not be the right
2875 # tool to use in cross-compilation environments, therefore Automake
2876 # will honor the `STRIP' environment variable to overrule this program.
2877 if test "$cross_compiling" != no
; then
2878 if test -n "$ac_tool_prefix"; then
2879 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2880 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2882 $as_echo_n "checking for $ac_word... " >&6; }
2883 if test "${ac_cv_prog_STRIP+set}" = set; then :
2884 $as_echo_n "(cached) " >&6
2886 if test -n "$STRIP"; then
2887 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2889 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2893 test -z "$as_dir" && as_dir
=.
2894 for ac_exec_ext
in '' $ac_executable_extensions; do
2895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2896 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2906 STRIP
=$ac_cv_prog_STRIP
2907 if test -n "$STRIP"; then
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2909 $as_echo "$STRIP" >&6; }
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2912 $as_echo "no" >&6; }
2917 if test -z "$ac_cv_prog_STRIP"; then
2919 # Extract the first word of "strip", so it can be a program name with args.
2920 set dummy strip
; ac_word
=$2
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2922 $as_echo_n "checking for $ac_word... " >&6; }
2923 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2924 $as_echo_n "(cached) " >&6
2926 if test -n "$ac_ct_STRIP"; then
2927 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2929 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2933 test -z "$as_dir" && as_dir
=.
2934 for ac_exec_ext
in '' $ac_executable_extensions; do
2935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2936 ac_cv_prog_ac_ct_STRIP
="strip"
2937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2946 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2947 if test -n "$ac_ct_STRIP"; then
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2949 $as_echo "$ac_ct_STRIP" >&6; }
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2952 $as_echo "no" >&6; }
2955 if test "x$ac_ct_STRIP" = x
; then
2958 case $cross_compiling:$ac_tool_warned in
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2962 ac_tool_warned
=yes ;;
2967 STRIP
="$ac_cv_prog_STRIP"
2971 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2974 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2975 if test -z "$MKDIR_P"; then
2976 if test "${ac_cv_path_mkdir+set}" = set; then :
2977 $as_echo_n "(cached) " >&6
2979 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2980 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2983 test -z "$as_dir" && as_dir
=.
2984 for ac_prog
in mkdir gmkdir
; do
2985 for ac_exec_ext
in '' $ac_executable_extensions; do
2986 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
2987 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2988 'mkdir (GNU coreutils) '* | \
2989 'mkdir (coreutils) '* | \
2990 'mkdir (fileutils) '4.1*)
2991 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3001 if test "${ac_cv_path_mkdir+set}" = set; then
3002 MKDIR_P
="$ac_cv_path_mkdir -p"
3004 # As a last resort, use the slow shell script. Don't cache a
3005 # value for MKDIR_P within a source directory, because that will
3006 # break other packages using the cache if that directory is
3007 # removed, or if the value is a relative name.
3008 test -d .
/--version && rmdir .
/--version
3009 MKDIR_P
="$ac_install_sh -d"
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3013 $as_echo "$MKDIR_P" >&6; }
3017 [\\/$
]* | ?
:[\\/]*) ;;
3018 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3021 for ac_prog
in gawk mawk nawk
awk
3023 # Extract the first word of "$ac_prog", so it can be a program name with args.
3024 set dummy
$ac_prog; ac_word
=$2
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3026 $as_echo_n "checking for $ac_word... " >&6; }
3027 if test "${ac_cv_prog_AWK+set}" = set; then :
3028 $as_echo_n "(cached) " >&6
3030 if test -n "$AWK"; then
3031 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3033 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3037 test -z "$as_dir" && as_dir
=.
3038 for ac_exec_ext
in '' $ac_executable_extensions; do
3039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3040 ac_cv_prog_AWK
="$ac_prog"
3041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3051 if test -n "$AWK"; then
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3053 $as_echo "$AWK" >&6; }
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3056 $as_echo "no" >&6; }
3060 test -n "$AWK" && break
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3064 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3066 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3067 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3068 $as_echo_n "(cached) " >&6
3070 cat >conftest.
make <<\_ACEOF
3073 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3075 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3076 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3078 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3080 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3084 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3086 $as_echo "yes" >&6; }
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3090 $as_echo "no" >&6; }
3091 SET_MAKE
="MAKE=${MAKE-make}"
3094 rm -rf .tst
2>/dev
/null
3095 mkdir .tst
2>/dev
/null
3096 if test -d .tst
; then
3101 rmdir .tst
2>/dev
/null
3103 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3104 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3105 # is not polluted with repeated "-I."
3106 am__isrc
=' -I$(srcdir)'
3107 # test to see if srcdir already configured
3108 if test -f $srcdir/config.status
; then
3109 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3113 # test whether we have cygpath
3114 if test -z "$CYGPATH_W"; then
3115 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3116 CYGPATH_W
='cygpath -w'
3123 # Define the identity of the package.
3125 VERSION
='version-unused'
3128 # Some tools Automake needs.
3130 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3133 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3136 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3139 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3142 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3144 # We need awk for the "check" target. The system "awk" is bad on
3146 # Always define AMTAR for backward compatibility.
3148 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3150 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3162 ac_cpp
='$CPP $CPPFLAGS'
3163 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3164 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3165 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3166 if test -n "$ac_tool_prefix"; then
3167 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3168 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3170 $as_echo_n "checking for $ac_word... " >&6; }
3171 if test "${ac_cv_prog_CC+set}" = set; then :
3172 $as_echo_n "(cached) " >&6
3174 if test -n "$CC"; then
3175 ac_cv_prog_CC
="$CC" # Let the user override the test.
3177 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3181 test -z "$as_dir" && as_dir
=.
3182 for ac_exec_ext
in '' $ac_executable_extensions; do
3183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3184 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3195 if test -n "$CC"; then
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3197 $as_echo "$CC" >&6; }
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3200 $as_echo "no" >&6; }
3205 if test -z "$ac_cv_prog_CC"; then
3207 # Extract the first word of "gcc", so it can be a program name with args.
3208 set dummy gcc
; ac_word
=$2
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3210 $as_echo_n "checking for $ac_word... " >&6; }
3211 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3212 $as_echo_n "(cached) " >&6
3214 if test -n "$ac_ct_CC"; then
3215 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3217 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3221 test -z "$as_dir" && as_dir
=.
3222 for ac_exec_ext
in '' $ac_executable_extensions; do
3223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3224 ac_cv_prog_ac_ct_CC
="gcc"
3225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3234 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3235 if test -n "$ac_ct_CC"; then
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3237 $as_echo "$ac_ct_CC" >&6; }
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3240 $as_echo "no" >&6; }
3243 if test "x$ac_ct_CC" = x
; then
3246 case $cross_compiling:$ac_tool_warned in
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3249 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3250 ac_tool_warned
=yes ;;
3258 if test -z "$CC"; then
3259 if test -n "$ac_tool_prefix"; then
3260 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3261 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3263 $as_echo_n "checking for $ac_word... " >&6; }
3264 if test "${ac_cv_prog_CC+set}" = set; then :
3265 $as_echo_n "(cached) " >&6
3267 if test -n "$CC"; then
3268 ac_cv_prog_CC
="$CC" # Let the user override the test.
3270 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3274 test -z "$as_dir" && as_dir
=.
3275 for ac_exec_ext
in '' $ac_executable_extensions; do
3276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3277 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3288 if test -n "$CC"; then
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3290 $as_echo "$CC" >&6; }
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293 $as_echo "no" >&6; }
3299 if test -z "$CC"; then
3300 # Extract the first word of "cc", so it can be a program name with args.
3301 set dummy cc
; ac_word
=$2
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3303 $as_echo_n "checking for $ac_word... " >&6; }
3304 if test "${ac_cv_prog_CC+set}" = set; then :
3305 $as_echo_n "(cached) " >&6
3307 if test -n "$CC"; then
3308 ac_cv_prog_CC
="$CC" # Let the user override the test.
3311 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3315 test -z "$as_dir" && as_dir
=.
3316 for ac_exec_ext
in '' $ac_executable_extensions; do
3317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3318 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3319 ac_prog_rejected
=yes
3323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3330 if test $ac_prog_rejected = yes; then
3331 # We found a bogon in the path, so make sure we never use it.
3332 set dummy
$ac_cv_prog_CC
3334 if test $# != 0; then
3335 # We chose a different compiler from the bogus one.
3336 # However, it has the same basename, so the bogon will be chosen
3337 # first if we set CC to just the basename; use the full file name.
3339 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3345 if test -n "$CC"; then
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3347 $as_echo "$CC" >&6; }
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3350 $as_echo "no" >&6; }
3355 if test -z "$CC"; then
3356 if test -n "$ac_tool_prefix"; then
3357 for ac_prog
in cl.exe
3359 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3360 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3362 $as_echo_n "checking for $ac_word... " >&6; }
3363 if test "${ac_cv_prog_CC+set}" = set; then :
3364 $as_echo_n "(cached) " >&6
3366 if test -n "$CC"; then
3367 ac_cv_prog_CC
="$CC" # Let the user override the test.
3369 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3373 test -z "$as_dir" && as_dir
=.
3374 for ac_exec_ext
in '' $ac_executable_extensions; do
3375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3376 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3387 if test -n "$CC"; then
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3389 $as_echo "$CC" >&6; }
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3392 $as_echo "no" >&6; }
3396 test -n "$CC" && break
3399 if test -z "$CC"; then
3401 for ac_prog
in cl.exe
3403 # Extract the first word of "$ac_prog", so it can be a program name with args.
3404 set dummy
$ac_prog; ac_word
=$2
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3406 $as_echo_n "checking for $ac_word... " >&6; }
3407 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3408 $as_echo_n "(cached) " >&6
3410 if test -n "$ac_ct_CC"; then
3411 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3413 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3417 test -z "$as_dir" && as_dir
=.
3418 for ac_exec_ext
in '' $ac_executable_extensions; do
3419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3420 ac_cv_prog_ac_ct_CC
="$ac_prog"
3421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3430 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3431 if test -n "$ac_ct_CC"; then
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3433 $as_echo "$ac_ct_CC" >&6; }
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3436 $as_echo "no" >&6; }
3440 test -n "$ac_ct_CC" && break
3443 if test "x$ac_ct_CC" = x
; then
3446 case $cross_compiling:$ac_tool_warned in
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3449 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3450 ac_tool_warned
=yes ;;
3459 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3460 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3461 as_fn_error
"no acceptable C compiler found in \$PATH
3462 See \`config.log' for more details." "$LINENO" 5; }
3464 # Provide some information about the compiler.
3465 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3468 for ac_option
in --version -v -V -qversion; do
3469 { { ac_try
="$ac_compiler $ac_option >&5"
3471 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3472 *) ac_try_echo=$ac_try;;
3474 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3475 $as_echo "$ac_try_echo"; } >&5
3476 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3478 if test -s conftest.err; then
3480 ... rest of stderr output deleted ...
3481 10q' conftest.err >conftest.er1
3482 cat conftest.er1 >&5
3483 rm -f conftest.er1 conftest.err
3485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3486 test $ac_status = 0; }
3489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3490 /* end confdefs.h. */
3500 ac_clean_files_save=$ac_clean_files
3501 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3502 # Try to create an executable without -o first, disregard a.out.
3503 # It will help us diagnose broken compilers, and finding out an intuition
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3506 $as_echo_n "checking for C compiler default output file name... " >&6; }
3507 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3509 # The possible output files:
3510 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3513 for ac_file in $ac_files
3516 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3517 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3522 if { { ac_try="$ac_link_default"
3524 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3525 *) ac_try_echo
=$ac_try;;
3527 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3528 $as_echo "$ac_try_echo"; } >&5
3529 (eval "$ac_link_default") 2>&5
3531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3532 test $ac_status = 0; }; then :
3533 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3534 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3535 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3536 # so that the user can short-circuit this test for compilers unknown to
3538 for ac_file
in $ac_files ''
3540 test -f "$ac_file" ||
continue
3542 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3545 # We found the default executable, but exeext='' is most
3549 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3551 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3553 # We set ac_cv_exeext here because the later test for it is not
3554 # safe: cross compilers may not add the suffix if given an `-o'
3555 # argument, so we may need to know it at that point already.
3556 # Even if this section looks crufty: it has the advantage of
3563 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3569 $as_echo "$ac_file" >&6; }
3570 if test -z "$ac_file"; then :
3571 $as_echo "$as_me: failed program was:" >&5
3572 sed 's/^/| /' conftest.
$ac_ext >&5
3574 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3576 { as_fn_set_status
77
3577 as_fn_error
"C compiler cannot create executables
3578 See \`config.log' for more details." "$LINENO" 5; }; }
3580 ac_exeext
=$ac_cv_exeext
3582 # Check that the compiler produces executables we can run. If not, either
3583 # the compiler is broken, or we cross compile.
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3585 $as_echo_n "checking whether the C compiler works... " >&6; }
3586 # If not cross compiling, check that we can run a simple program.
3587 if test "$cross_compiling" != yes; then
3588 if { ac_try
='./$ac_file'
3589 { { case "(($ac_try" in
3590 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3591 *) ac_try_echo=$ac_try;;
3593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3594 $as_echo "$ac_try_echo"; } >&5
3595 (eval "$ac_try") 2>&5
3597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3598 test $ac_status = 0; }; }; then
3601 if test "$cross_compiling" = maybe; then
3604 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3606 as_fn_error "cannot run C compiled programs.
3607 If you meant to cross compile
, use \
`--host'.
3608 See \`config.log
' for more details." "$LINENO" 5; }
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3613 $as_echo "yes" >&6; }
3615 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3616 ac_clean_files=$ac_clean_files_save
3617 # Check that the compiler produces executables we can run. If not, either
3618 # the compiler is broken, or we cross compile.
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3620 $as_echo_n "checking whether we are cross compiling... " >&6; }
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3622 $as_echo "$cross_compiling" >&6; }
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3625 $as_echo_n "checking for suffix of executables... " >&6; }
3626 if { { ac_try="$ac_link"
3628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629 *) ac_try_echo=$ac_try;;
3631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3632 $as_echo "$ac_try_echo"; } >&5
3633 (eval "$ac_link") 2>&5
3635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3636 test $ac_status = 0; }; then :
3637 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3638 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3639 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3641 for ac_file
in conftest.exe conftest conftest.
*; do
3642 test -f "$ac_file" ||
continue
3644 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3645 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3651 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3652 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3653 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3654 See \`config.log' for more details." "$LINENO" 5; }
3656 rm -f conftest
$ac_cv_exeext
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3658 $as_echo "$ac_cv_exeext" >&6; }
3660 rm -f conftest.
$ac_ext
3661 EXEEXT
=$ac_cv_exeext
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3664 $as_echo_n "checking for suffix of object files... " >&6; }
3665 if test "${ac_cv_objext+set}" = set; then :
3666 $as_echo_n "(cached) " >&6
3668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3669 /* end confdefs.h. */
3679 rm -f conftest.o conftest.obj
3680 if { { ac_try
="$ac_compile"
3682 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3683 *) ac_try_echo=$ac_try;;
3685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3686 $as_echo "$ac_try_echo"; } >&5
3687 (eval "$ac_compile") 2>&5
3689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3690 test $ac_status = 0; }; then :
3691 for ac_file in conftest.o conftest.obj conftest.*; do
3692 test -f "$ac_file" || continue;
3694 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3695 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3700 $as_echo "$as_me: failed program was:" >&5
3701 sed 's/^/| /' conftest.$ac_ext >&5
3703 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3704 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3705 as_fn_error "cannot compute suffix of object files
: cannot compile
3706 See \
`config.log' for more details." "$LINENO" 5; }
3708 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3711 $as_echo "$ac_cv_objext" >&6; }
3712 OBJEXT=$ac_cv_objext
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3715 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3716 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3717 $as_echo_n "(cached) " >&6
3719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720 /* end confdefs.h. */
3733 if ac_fn_c_try_compile "$LINENO"; then :
3738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3739 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3743 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3744 if test $ac_compiler_gnu = yes; then
3749 ac_test_CFLAGS=${CFLAGS+set}
3750 ac_save_CFLAGS=$CFLAGS
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3752 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3753 if test "${ac_cv_prog_cc_g+set}" = set; then :
3754 $as_echo_n "(cached) " >&6
3756 ac_save_c_werror_flag=$ac_c_werror_flag
3757 ac_c_werror_flag=yes
3760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3761 /* end confdefs.h. */
3771 if ac_fn_c_try_compile "$LINENO"; then :
3775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3776 /* end confdefs.h. */
3786 if ac_fn_c_try_compile "$LINENO"; then :
3789 ac_c_werror_flag=$ac_save_c_werror_flag
3791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3792 /* end confdefs.h. */
3802 if ac_fn_c_try_compile "$LINENO"; then :
3805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3810 ac_c_werror_flag=$ac_save_c_werror_flag
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3813 $as_echo "$ac_cv_prog_cc_g" >&6; }
3814 if test "$ac_test_CFLAGS" = set; then
3815 CFLAGS=$ac_save_CFLAGS
3816 elif test $ac_cv_prog_cc_g = yes; then
3817 if test "$GCC" = yes; then
3823 if test "$GCC" = yes; then
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3830 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3831 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3832 $as_echo_n "(cached) " >&6
3834 ac_cv_prog_cc_c89=no
3836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837 /* end confdefs.h. */
3840 #include <sys/types.h>
3841 #include <sys/stat.h>
3842 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3843 struct buf { int x; };
3844 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3845 static char *e (p, i)
3851 static char *f (char * (*g) (char **, int), char **p, ...)
3856 s = g (p, va_arg (v,int));
3861 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3862 function prototypes and stuff, but not '\xHH' hex character constants.
3863 These don't provoke an error unfortunately, instead are silently treated
3864 as 'x'. The following induces an error, until -std is added to get
3865 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3866 array size at least. It's necessary to write '\x00'==0 to get something
3867 that's true only with -std. */
3868 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3870 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3871 inside strings and character constants. */
3873 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3875 int test (int i, double x);
3876 struct s1 {int (*f) (int a);};
3877 struct s2 {int (*f) (double a);};
3878 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3884 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3889 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3890 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3892 CC="$ac_save_CC $ac_arg"
3893 if ac_fn_c_try_compile "$LINENO"; then :
3894 ac_cv_prog_cc_c89=$ac_arg
3896 rm -f core conftest.err conftest.$ac_objext
3897 test "x$ac_cv_prog_cc_c89" != "xno" && break
3899 rm -f conftest.$ac_ext
3904 case "x$ac_cv_prog_cc_c89" in
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3907 $as_echo "none needed" >&6; } ;;
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3910 $as_echo "unsupported" >&6; } ;;
3912 CC="$CC $ac_cv_prog_cc_c89"
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3914 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3916 if test "x$ac_cv_prog_cc_c89" != xno; then :
3921 ac_cpp='$CPP $CPPFLAGS'
3922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3925 DEPDIR="${am__leading_dot}deps"
3927 ac_config_commands="$ac_config_commands depfiles"
3930 am_make=${MAKE-make}
3931 cat > confinc << 'END'
3933 @echo this is the am__doit target
3936 # If we don't find an include directive, just comment out the code.
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3938 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3942 # First try GNU make style include.
3943 echo "include confinc" > confmf
3944 # Ignore all kinds of additional output from `make'.
3945 case `$am_make -s -f confmf 2> /dev/null` in #(
3946 *the\ am__doit\ target*)
3952 # Now try BSD make style include.
3953 if test "$am__include" = "#"; then
3954 echo '.include
"confinc"' > confmf
3955 case `$am_make -s -f confmf 2> /dev/null` in #(
3956 *the\ am__doit\ target*)
3957 am__include=.include
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3966 $as_echo "$_am_result" >&6; }
3967 rm -f confinc confmf
3969 # Check whether --enable-dependency-tracking was given.
3970 if test "${enable_dependency_tracking+set}" = set; then :
3971 enableval=$enable_dependency_tracking;
3974 if test "x$enable_dependency_tracking" != xno; then
3975 am_depcomp="$ac_aux_dir/depcomp"
3978 if test "x$enable_dependency_tracking" != xno
; then
3988 depcc
="$CC" am_compiler_list
=
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3991 $as_echo_n "checking dependency style of $depcc... " >&6; }
3992 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3993 $as_echo_n "(cached) " >&6
3995 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3996 # We make a subdir and do the tests there. Otherwise we can end up
3997 # making bogus files that we don't know about and never remove. For
3998 # instance it was reported that on HP-UX the gcc test will end up
3999 # making a dummy file named `D' -- because `-MD' means `put the output
4002 # Copy depcomp to subdir because otherwise we won't find it if we're
4003 # using a relative directory.
4004 cp "$am_depcomp" conftest.dir
4006 # We will build objects and dependencies in a subdirectory because
4007 # it helps to detect inapplicable dependency modes. For instance
4008 # both Tru64's cc and ICC support -MD to output dependencies as a
4009 # side effect of compilation, but ICC will put the dependencies in
4010 # the current directory while Tru64 will put them in the object
4014 am_cv_CC_dependencies_compiler_type
=none
4015 if test "$am_compiler_list" = ""; then
4016 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4019 case " $depcc " in #(
4020 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4023 for depmode
in $am_compiler_list; do
4024 # Setup a source with many dependencies, because some compilers
4025 # like to wrap large dependency lists on column 80 (with \), and
4026 # we should not choose a depcomp mode which is confused by this.
4028 # We need to recreate these files for each test, as the compiler may
4029 # overwrite some of them when testing with obscure command lines.
4030 # This happens at least with the AIX C compiler.
4032 for i
in 1 2 3 4 5 6; do
4033 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4034 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4035 # Solaris 8's {/usr,}/bin/sh.
4036 touch sub
/conftst
$i.h
4038 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4040 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4041 # mode. It turns out that the SunPro C++ compiler does not properly
4042 # handle `-M -o', and we need to detect this. Also, some Intel
4043 # versions had trouble with output in subdirs
4044 am__obj
=sub
/conftest.
${OBJEXT-o}
4045 am__minus_obj
="-o $am__obj"
4048 # This depmode causes a compiler race in universal mode.
4049 test "$am__universal" = false ||
continue
4052 # after this tag, mechanisms are not by side-effect, so they'll
4053 # only be used when explicitly requested
4054 if test "x$enable_dependency_tracking" = xyes
; then
4060 msvisualcpp | msvcmsys
)
4061 # This compiler won't grok `-c -o', but also, the minuso test has
4062 # not run yet. These depmodes are late enough in the game, and
4063 # so weak that their functioning should not be impacted.
4064 am__obj
=conftest.
${OBJEXT-o}
4069 if depmode
=$depmode \
4070 source=sub
/conftest.c object
=$am__obj \
4071 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4072 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4073 >/dev
/null
2>conftest.err
&&
4074 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4075 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4076 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4077 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4078 # icc doesn't choke on unknown options, it will just issue warnings
4079 # or remarks (even with -Werror). So we grep stderr for any message
4080 # that says an option was ignored or not supported.
4081 # When given -MP, icc 7.0 and 7.1 complain thusly:
4082 # icc: Command line warning: ignoring option '-M'; no argument required
4083 # The diagnosis changed in icc 8.0:
4084 # icc: Command line remark: option '-MP' not supported
4085 if (grep 'ignoring option' conftest.err ||
4086 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4087 am_cv_CC_dependencies_compiler_type
=$depmode
4096 am_cv_CC_dependencies_compiler_type
=none
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4101 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4102 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4105 test "x$enable_dependency_tracking" != xno \
4106 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
4108 am__fastdepCC_FALSE
='#'
4110 am__fastdepCC_TRUE
='#'
4111 am__fastdepCC_FALSE
=
4116 ac_compile
='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
4117 ac_link
='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4119 if test -n "$ac_tool_prefix"; then
4120 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4121 set dummy
${ac_tool_prefix}gccgo
; ac_word
=$2
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4123 $as_echo_n "checking for $ac_word... " >&6; }
4124 if test "${ac_cv_prog_GOC+set}" = set; then :
4125 $as_echo_n "(cached) " >&6
4127 if test -n "$GOC"; then
4128 ac_cv_prog_GOC
="$GOC" # Let the user override the test.
4130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4134 test -z "$as_dir" && as_dir
=.
4135 for ac_exec_ext
in '' $ac_executable_extensions; do
4136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4137 ac_cv_prog_GOC
="${ac_tool_prefix}gccgo"
4138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4148 if test -n "$GOC"; then
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4150 $as_echo "$GOC" >&6; }
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4153 $as_echo "no" >&6; }
4158 if test -z "$ac_cv_prog_GOC"; then
4160 # Extract the first word of "gccgo", so it can be a program name with args.
4161 set dummy gccgo
; ac_word
=$2
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4163 $as_echo_n "checking for $ac_word... " >&6; }
4164 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
4165 $as_echo_n "(cached) " >&6
4167 if test -n "$ac_ct_GOC"; then
4168 ac_cv_prog_ac_ct_GOC
="$ac_ct_GOC" # Let the user override the test.
4170 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4174 test -z "$as_dir" && as_dir
=.
4175 for ac_exec_ext
in '' $ac_executable_extensions; do
4176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4177 ac_cv_prog_ac_ct_GOC
="gccgo"
4178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4187 ac_ct_GOC
=$ac_cv_prog_ac_ct_GOC
4188 if test -n "$ac_ct_GOC"; then
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
4190 $as_echo "$ac_ct_GOC" >&6; }
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4193 $as_echo "no" >&6; }
4196 if test "x$ac_ct_GOC" = x
; then
4199 case $cross_compiling:$ac_tool_warned in
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4203 ac_tool_warned
=yes ;;
4208 GOC
="$ac_cv_prog_GOC"
4211 if test -z "$GOC"; then
4212 if test -n "$ac_tool_prefix"; then
4213 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4214 set dummy
${ac_tool_prefix}gccgo
; ac_word
=$2
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4216 $as_echo_n "checking for $ac_word... " >&6; }
4217 if test "${ac_cv_prog_GOC+set}" = set; then :
4218 $as_echo_n "(cached) " >&6
4220 if test -n "$GOC"; then
4221 ac_cv_prog_GOC
="$GOC" # Let the user override the test.
4223 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4227 test -z "$as_dir" && as_dir
=.
4228 for ac_exec_ext
in '' $ac_executable_extensions; do
4229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4230 ac_cv_prog_GOC
="$ac_tool_prefix}gccgo"
4231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4241 if test -n "$GOC"; then
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4243 $as_echo "$GOC" >&6; }
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4246 $as_echo "no" >&6; }
4252 if test -z "$GOC"; then
4253 # Extract the first word of "gccgo", so it can be a program name with args.
4254 set dummy gccgo
; ac_word
=$2
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4256 $as_echo_n "checking for $ac_word... " >&6; }
4257 if test "${ac_cv_prog_GOC+set}" = set; then :
4258 $as_echo_n "(cached) " >&6
4260 if test -n "$GOC"; then
4261 ac_cv_prog_GOC
="$GOC" # Let the user override the test.
4264 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4268 test -z "$as_dir" && as_dir
=.
4269 for ac_exec_ext
in '' $ac_executable_extensions; do
4270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4271 if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
4272 ac_prog_rejected
=yes
4275 ac_cv_prog_GOC
="gccgo"
4276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4283 if test $ac_prog_rejected = yes; then
4284 # We found a bogon in the path, so make sure we never use it.
4285 set dummy
$ac_cv_prog_GOC
4287 if test $# != 0; then
4288 # We chose a different compiler from the bogus one.
4289 # However, it has the same basename, so the bogon will be chosen
4290 # first if we set GOC to just the basename; use the full file name.
4292 ac_cv_prog_GOC
="$as_dir/$ac_word${1+' '}$@"
4298 if test -n "$GOC"; then
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4300 $as_echo "$GOC" >&6; }
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4303 $as_echo "no" >&6; }
4310 # Provide some information about the compiler.
4311 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4314 { { ac_try
="$ac_compiler --version >&5"
4316 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4317 *) ac_try_echo=$ac_try;;
4319 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4320 $as_echo "$ac_try_echo"; } >&5
4321 (eval "$ac_compiler --version >&5") 2>conftest.err
4323 if test -s conftest.err; then
4325 ... rest of stderr output deleted ...
4326 10q' conftest.err >conftest.er1
4327 cat conftest.er1 >&5
4328 rm -f conftest.er1 conftest.err
4330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4331 test $ac_status = 0; }
4334 ac_cpp='$CPP $CPPFLAGS'
4335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4345 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4346 # Check whether --enable-maintainer-mode was given.
4347 if test "${enable_maintainer_mode+set}" = set; then :
4348 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4350 USE_MAINTAINER_MODE=no
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4354 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4355 if test $USE_MAINTAINER_MODE = yes; then
4356 MAINTAINER_MODE_TRUE=
4357 MAINTAINER_MODE_FALSE='#'
4359 MAINTAINER_MODE_TRUE='#'
4360 MAINTAINER_MODE_FALSE=
4363 MAINT=$MAINTAINER_MODE_TRUE
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4368 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4369 if test "${ac_cv_path_SED+set}" = set; then :
4370 $as_echo_n "(cached) " >&6
4372 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4373 for ac_i in 1 2 3 4 5 6 7; do
4374 ac_script="$ac_script$as_nl$ac_script"
4376 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4377 { ac_script=; unset ac_script;}
4378 if test -z "$SED"; then
4379 ac_path_SED_found=false
4380 # Loop through the user's path and test for each of PROGNAME-LIST
4381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4385 test -z "$as_dir" && as_dir=.
4386 for ac_prog in sed gsed; do
4387 for ac_exec_ext in '' $ac_executable_extensions; do
4388 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4389 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4390 # Check for GNU ac_path_SED and select it if it is found.
4391 # Check for GNU $ac_path_SED
4392 case `"$ac_path_SED" --version 2>&1` in
4394 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4397 $as_echo_n 0123456789 >"conftest.in"
4400 cat "conftest.in" "conftest.in" >"conftest.tmp"
4401 mv "conftest.tmp" "conftest.in"
4402 cp "conftest.in" "conftest.nl"
4403 $as_echo '' >> "conftest.nl"
4404 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4405 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4406 as_fn_arith $ac_count + 1 && ac_count=$as_val
4407 if test $ac_count -gt ${ac_path_SED_max-0}; then
4408 # Best one so far, save it but keep looking for a better one
4409 ac_cv_path_SED="$ac_path_SED"
4410 ac_path_SED_max=$ac_count
4412 # 10*(2^10) chars as input seems more than enough
4413 test $ac_count -gt 10 && break
4415 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4418 $ac_path_SED_found && break 3
4423 if test -z "$ac_cv_path_SED"; then
4424 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4432 $as_echo "$ac_cv_path_SED" >&6; }
4433 SED="$ac_cv_path_SED"
4436 test -z "$SED" && SED=sed
4437 Xsed="$SED -e 1s/^X//"
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4450 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4451 if test "${ac_cv_path_GREP+set}" = set; then :
4452 $as_echo_n "(cached) " >&6
4454 if test -z "$GREP"; then
4455 ac_path_GREP_found=false
4456 # Loop through the user's path and test for each of PROGNAME-LIST
4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4461 test -z "$as_dir" && as_dir=.
4462 for ac_prog in grep ggrep; do
4463 for ac_exec_ext in '' $ac_executable_extensions; do
4464 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4465 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4466 # Check for GNU ac_path_GREP and select it if it is found.
4467 # Check for GNU $ac_path_GREP
4468 case `"$ac_path_GREP" --version 2>&1` in
4470 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4473 $as_echo_n 0123456789 >"conftest.in"
4476 cat "conftest.in" "conftest.in" >"conftest.tmp"
4477 mv "conftest.tmp" "conftest.in"
4478 cp "conftest.in" "conftest.nl"
4479 $as_echo 'GREP' >> "conftest.nl"
4480 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4481 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4482 as_fn_arith $ac_count + 1 && ac_count=$as_val
4483 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4484 # Best one so far, save it but keep looking for a better one
4485 ac_cv_path_GREP="$ac_path_GREP"
4486 ac_path_GREP_max=$ac_count
4488 # 10*(2^10) chars as input seems more than enough
4489 test $ac_count -gt 10 && break
4491 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4494 $ac_path_GREP_found && break 3
4499 if test -z "$ac_cv_path_GREP"; then
4500 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4503 ac_cv_path_GREP=$GREP
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4508 $as_echo "$ac_cv_path_GREP" >&6; }
4509 GREP="$ac_cv_path_GREP"
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4513 $as_echo_n "checking for egrep... " >&6; }
4514 if test "${ac_cv_path_EGREP+set}" = set; then :
4515 $as_echo_n "(cached) " >&6
4517 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4518 then ac_cv_path_EGREP="$GREP -E"
4520 if test -z "$EGREP"; then
4521 ac_path_EGREP_found=false
4522 # Loop through the user's path and test for each of PROGNAME-LIST
4523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4527 test -z "$as_dir" && as_dir=.
4528 for ac_prog in egrep; do
4529 for ac_exec_ext in '' $ac_executable_extensions; do
4530 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4531 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4532 # Check for GNU ac_path_EGREP and select it if it is found.
4533 # Check for GNU $ac_path_EGREP
4534 case `"$ac_path_EGREP" --version 2>&1` in
4536 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4539 $as_echo_n 0123456789 >"conftest.in"
4542 cat "conftest.in" "conftest.in" >"conftest.tmp"
4543 mv "conftest.tmp" "conftest.in"
4544 cp "conftest.in" "conftest.nl"
4545 $as_echo 'EGREP' >> "conftest.nl"
4546 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4547 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4548 as_fn_arith $ac_count + 1 && ac_count=$as_val
4549 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4550 # Best one so far, save it but keep looking for a better one
4551 ac_cv_path_EGREP="$ac_path_EGREP"
4552 ac_path_EGREP_max=$ac_count
4554 # 10*(2^10) chars as input seems more than enough
4555 test $ac_count -gt 10 && break
4557 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4560 $ac_path_EGREP_found && break 3
4565 if test -z "$ac_cv_path_EGREP"; then
4566 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4569 ac_cv_path_EGREP=$EGREP
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4575 $as_echo "$ac_cv_path_EGREP" >&6; }
4576 EGREP="$ac_cv_path_EGREP"
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4580 $as_echo_n "checking for fgrep... " >&6; }
4581 if test "${ac_cv_path_FGREP+set}" = set; then :
4582 $as_echo_n "(cached) " >&6
4584 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4585 then ac_cv_path_FGREP="$GREP -F"
4587 if test -z "$FGREP"; then
4588 ac_path_FGREP_found=false
4589 # Loop through the user's path and test for each of PROGNAME-LIST
4590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4594 test -z "$as_dir" && as_dir=.
4595 for ac_prog in fgrep; do
4596 for ac_exec_ext in '' $ac_executable_extensions; do
4597 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4598 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4599 # Check for GNU ac_path_FGREP and select it if it is found.
4600 # Check for GNU $ac_path_FGREP
4601 case `"$ac_path_FGREP" --version 2>&1` in
4603 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4606 $as_echo_n 0123456789 >"conftest.in"
4609 cat "conftest.in" "conftest.in" >"conftest.tmp"
4610 mv "conftest.tmp" "conftest.in"
4611 cp "conftest.in" "conftest.nl"
4612 $as_echo 'FGREP' >> "conftest.nl"
4613 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4614 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4615 as_fn_arith $ac_count + 1 && ac_count=$as_val
4616 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4617 # Best one so far, save it but keep looking for a better one
4618 ac_cv_path_FGREP="$ac_path_FGREP"
4619 ac_path_FGREP_max=$ac_count
4621 # 10*(2^10) chars as input seems more than enough
4622 test $ac_count -gt 10 && break
4624 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4627 $ac_path_FGREP_found && break 3
4632 if test -z "$ac_cv_path_FGREP"; then
4633 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4636 ac_cv_path_FGREP=$FGREP
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4642 $as_echo "$ac_cv_path_FGREP" >&6; }
4643 FGREP="$ac_cv_path_FGREP"
4646 test -z "$GREP" && GREP=grep
4664 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4665 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4666 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4669 $as_echo_n "checking how to print strings... " >&6; }
4670 # Test print first, because it will be a builtin if present.
4671 if test "X`print
-r -- -n 2>/dev
/null
`" = X-n && \
4672 test "X`print
-r -- $ECHO 2>/dev
/null
`" = "X$ECHO"; then
4674 elif test "X`printf %s
$ECHO 2>/dev
/null
`" = "X$ECHO"; then
4677 # Use this function as a fallback that always works.
4678 func_fallback_echo ()
4680 eval 'cat <<_LTECHO_EOF
4684 ECHO='func_fallback_echo'
4687 # func_echo_all arg...
4688 # Invoke $ECHO with all args, space-separated.
4695 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4696 $as_echo "printf" >&6; } ;;
4697 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4698 $as_echo "print -r" >&6; } ;;
4699 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4700 $as_echo "cat" >&6; } ;;
4718 # Check whether --with-gnu-ld was given.
4719 if test "${with_gnu_ld+set}" = set; then :
4720 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4726 if test "$GCC" = yes; then
4727 # Check if gcc -print-prog-name=ld gives a path.
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4729 $as_echo_n "checking for ld used by $CC... " >&6; }
4732 # gcc leaves a trailing carriage return which upsets mingw
4733 ac_prog=`($CC -print-prog-name=ld
) 2>&5 |
tr -d '\015'` ;;
4735 ac_prog=`($CC -print-prog-name=ld
) 2>&5` ;;
4738 # Accept absolute paths.
4740 re_direlt='/[^/][^/]*/\.\./'
4741 # Canonicalize the pathname of ld
4742 ac_prog=`$ECHO "$ac_prog"|
$SED 's%\\\\%/%g'`
4743 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4744 ac_prog=`$ECHO $ac_prog|
$SED "s%$re_direlt%/%"`
4746 test -z "$LD" && LD="$ac_prog"
4749 # If it fails, then pretend we aren't using GCC.
4753 # If it is relative, then search for the first ld in PATH.
4757 elif test "$with_gnu_ld" = yes; then
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4759 $as_echo_n "checking for GNU ld... " >&6; }
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4762 $as_echo_n "checking for non-GNU ld... " >&6; }
4764 if test "${lt_cv_path_LD+set}" = set; then :
4765 $as_echo_n "(cached) " >&6
4767 if test -z "$LD"; then
4768 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4769 for ac_dir in $PATH; do
4771 test -z "$ac_dir" && ac_dir=.
4772 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4773 lt_cv_path_LD="$ac_dir/$ac_prog"
4774 # Check to see if the program is GNU ld. I'd rather use --version,
4775 # but apparently some variants of GNU ld only accept -v.
4776 # Break only if it was the GNU/non-GNU ld that we prefer.
4777 case `"$lt_cv_path_LD" -v 2>&1 </dev
/null
` in
4778 *GNU* | *'with BFD'*)
4779 test "$with_gnu_ld" != no && break
4782 test "$with_gnu_ld" != yes && break
4789 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4794 if test -n "$LD"; then
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4796 $as_echo "$LD" >&6; }
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4799 $as_echo "no" >&6; }
4801 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4803 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4804 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4805 $as_echo_n "(cached) " >&6
4807 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4808 case `$LD -v 2>&1 </dev
/null
` in
4809 *GNU* | *'with BFD'*)
4810 lt_cv_prog_gnu_ld=yes
4813 lt_cv_prog_gnu_ld=no
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4818 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4819 with_gnu_ld=$lt_cv_prog_gnu_ld
4829 if test -n "$ac_tool_prefix"; then
4830 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4831 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4833 $as_echo_n "checking for $ac_word... " >&6; }
4834 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4835 $as_echo_n "(cached) " >&6
4837 if test -n "$RANLIB"; then
4838 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844 test -z "$as_dir" && as_dir=.
4845 for ac_exec_ext in '' $ac_executable_extensions; do
4846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4847 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4857 RANLIB=$ac_cv_prog_RANLIB
4858 if test -n "$RANLIB"; then
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4860 $as_echo "$RANLIB" >&6; }
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4863 $as_echo "no" >&6; }
4868 if test -z "$ac_cv_prog_RANLIB"; then
4869 ac_ct_RANLIB=$RANLIB
4870 # Extract the first word of "ranlib", so it can be a program name with args.
4871 set dummy ranlib; ac_word=$2
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4873 $as_echo_n "checking for $ac_word... " >&6; }
4874 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4875 $as_echo_n "(cached) " >&6
4877 if test -n "$ac_ct_RANLIB"; then
4878 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4884 test -z "$as_dir" && as_dir=.
4885 for ac_exec_ext in '' $ac_executable_extensions; do
4886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4887 ac_cv_prog_ac_ct_RANLIB="ranlib"
4888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4897 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4898 if test -n "$ac_ct_RANLIB"; then
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4900 $as_echo "$ac_ct_RANLIB" >&6; }
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4903 $as_echo "no" >&6; }
4906 if test "x$ac_ct_RANLIB" = x; then
4909 case $cross_compiling:$ac_tool_warned in
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4912 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4913 ac_tool_warned=yes ;;
4915 RANLIB=$ac_ct_RANLIB
4918 RANLIB="$ac_cv_prog_RANLIB"
4921 if test -n "$ac_tool_prefix"; then
4922 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
4923 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4925 $as_echo_n "checking for $ac_word... " >&6; }
4926 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
4927 $as_echo_n "(cached) " >&6
4929 if test -n "$OBJCOPY"; then
4930 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4936 test -z "$as_dir" && as_dir=.
4937 for ac_exec_ext in '' $ac_executable_extensions; do
4938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4939 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
4940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4949 OBJCOPY=$ac_cv_prog_OBJCOPY
4950 if test -n "$OBJCOPY"; then
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
4952 $as_echo "$OBJCOPY" >&6; }
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4955 $as_echo "no" >&6; }
4960 if test -z "$ac_cv_prog_OBJCOPY"; then
4961 ac_ct_OBJCOPY=$OBJCOPY
4962 # Extract the first word of "objcopy", so it can be a program name with args.
4963 set dummy objcopy; ac_word=$2
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4965 $as_echo_n "checking for $ac_word... " >&6; }
4966 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
4967 $as_echo_n "(cached) " >&6
4969 if test -n "$ac_ct_OBJCOPY"; then
4970 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
4972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4976 test -z "$as_dir" && as_dir=.
4977 for ac_exec_ext in '' $ac_executable_extensions; do
4978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4979 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
4980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4989 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
4990 if test -n "$ac_ct_OBJCOPY"; then
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
4992 $as_echo "$ac_ct_OBJCOPY" >&6; }
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4995 $as_echo "no" >&6; }
4998 if test "x$ac_ct_OBJCOPY" = x; then
4999 OBJCOPY="missing-objcopy"
5001 case $cross_compiling:$ac_tool_warned in
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5005 ac_tool_warned=yes ;;
5007 OBJCOPY=$ac_ct_OBJCOPY
5010 OBJCOPY="$ac_cv_prog_OBJCOPY"
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\
`" >&5
5021 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\
`" >&2;} ;;
5026 macro_version='2.2.7a'
5027 macro_revision='1.3134'
5041 ltmain="$ac_aux_dir/ltmain.sh"
5043 # Backslashify metacharacters that are still active within
5044 # double-quoted strings.
5045 sed_quote_subst='s/\(["`$
\\]\
)/\\\
1/g
'
5047 # Same as above, but do not quote variable references.
5048 double_quote_subst='s
/\
(["`\\]\)/\\\1/g'
5050 # Sed substitution to delay expansion of an escaped shell variable in a
5051 # double_quote_subst'ed string.
5052 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5054 # Sed substitution to delay expansion of an escaped single quote.
5055 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5057 # Sed substitution to avoid accidental globbing in evaled expressions
5058 no_glob_subst='s/\*/\\\*/g'
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for BSD- or MS-compatible name lister
(nm
)" >&5
5061 $as_echo_n "checking
for BSD- or MS-compatible name lister
(nm
)...
" >&6; }
5062 if test "${lt_cv_path_NM+set}" = set; then :
5063 $as_echo_n "(cached
) " >&6
5065 if test -n "$NM"; then
5066 # Let the user override the test.
5069 lt_nm_to_check="${ac_tool_prefix}nm
"
5070 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5071 lt_nm_to_check="$lt_nm_to_check nm
"
5073 for lt_tmp_nm in $lt_nm_to_check; do
5074 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5075 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5077 test -z "$ac_dir" && ac_dir=.
5078 tmp_nm="$ac_dir/$lt_tmp_nm"
5079 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5080 # Check to see if the nm accepts a BSD-compat flag.
5081 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5082 # nm: unknown option "B
" ignored
5083 # Tru64's nm complains that /dev/null is an invalid object file
5084 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5085 */dev/null* | *'Invalid file or object type'*)
5086 lt_cv_path_NM="$tmp_nm -B"
5090 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5092 lt_cv_path_NM="$tmp_nm -p"
5096 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5097 continue # so that we can try to find one that supports BSD flags
5106 : ${lt_cv_path_NM=no}
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_path_NM" >&5
5110 $as_echo "$lt_cv_path_NM" >&6; }
5111 if test "$lt_cv_path_NM" != "no
"; then
5114 # Didn't find any BSD compatible name lister, look for dumpbin.
5115 if test -n "$DUMPBIN"; then :
5116 # Let the user override the test.
5118 if test -n "$ac_tool_prefix"; then
5119 for ac_prog in dumpbin "link
-dump"
5121 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5122 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5124 $as_echo_n "checking
for $ac_word...
" >&6; }
5125 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5126 $as_echo_n "(cached
) " >&6
5128 if test -n "$DUMPBIN"; then
5129 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135 test -z "$as_dir" && as_dir=.
5136 for ac_exec_ext in '' $ac_executable_extensions; do
5137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5138 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5139 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5148 DUMPBIN=$ac_cv_prog_DUMPBIN
5149 if test -n "$DUMPBIN"; then
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DUMPBIN" >&5
5151 $as_echo "$DUMPBIN" >&6; }
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5154 $as_echo "no
" >&6; }
5158 test -n "$DUMPBIN" && break
5161 if test -z "$DUMPBIN"; then
5162 ac_ct_DUMPBIN=$DUMPBIN
5163 for ac_prog in dumpbin "link
-dump"
5165 # Extract the first word of "$ac_prog", so it can be a program name with args.
5166 set dummy $ac_prog; ac_word=$2
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5168 $as_echo_n "checking
for $ac_word...
" >&6; }
5169 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5170 $as_echo_n "(cached
) " >&6
5172 if test -n "$ac_ct_DUMPBIN"; then
5173 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179 test -z "$as_dir" && as_dir=.
5180 for ac_exec_ext in '' $ac_executable_extensions; do
5181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5182 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5183 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5192 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5193 if test -n "$ac_ct_DUMPBIN"; then
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DUMPBIN" >&5
5195 $as_echo "$ac_ct_DUMPBIN" >&6; }
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5198 $as_echo "no
" >&6; }
5202 test -n "$ac_ct_DUMPBIN" && break
5205 if test "x
$ac_ct_DUMPBIN" = x; then
5208 case $cross_compiling:$ac_tool_warned in
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5211 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5212 ac_tool_warned=yes ;;
5214 DUMPBIN=$ac_ct_DUMPBIN
5218 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5220 DUMPBIN="$DUMPBIN -symbols"
5228 if test "$DUMPBIN" != ":"; then
5232 test -z "$NM" && NM=nm
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister
($NM) interface
" >&5
5240 $as_echo_n "checking the name lister
($NM) interface...
" >&6; }
5241 if test "${lt_cv_nm_interface+set}" = set; then :
5242 $as_echo_n "(cached
) " >&6
5244 lt_cv_nm_interface="BSD nm
"
5245 echo "int some_variable
= 0;" > conftest.$ac_ext
5246 (eval echo "\"\
$as_me:$LINENO: $ac_compile\"" >&5)
5247 (eval "$ac_compile" 2>conftest.err)
5248 cat conftest.err >&5
5249 (eval echo "\"\
$as_me:$LINENO: $NM \\\"conftest.
$ac_objext\\\"\"" >&5)
5250 (eval "$NM \"conftest.
$ac_objext\"" 2>conftest.err > conftest.out)
5251 cat conftest.err >&5
5252 (eval echo "\"\
$as_me:$LINENO: output
\"" >&5)
5253 cat conftest.out >&5
5254 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5255 lt_cv_nm_interface="MS dumpbin
"
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_nm_interface" >&5
5260 $as_echo "$lt_cv_nm_interface" >&6; }
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
ln -s works
" >&5
5263 $as_echo_n "checking whether
ln -s works...
" >&6; }
5265 if test "$LN_S" = "ln -s"; then
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
5267 $as_echo "yes" >&6; }
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
, using
$LN_S" >&5
5270 $as_echo "no
, using
$LN_S" >&6; }
5273 # find the maximum length of command line arguments
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of
command line arguments
" >&5
5275 $as_echo_n "checking the maximum length of
command line arguments...
" >&6; }
5276 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5277 $as_echo_n "(cached
) " >&6
5284 # On DJGPP, this test can blow up pretty badly due to problems in libc
5285 # (any single argument exceeding 2000 bytes causes a buffer overrun
5286 # during glob expansion). Even if it were fixed, the result of this
5287 # check would be larger than it should be.
5288 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5292 # Under GNU Hurd, this test is not required because there is
5293 # no limit to the length of command line arguments.
5294 # Libtool will interpret -1 as no limit whatsoever
5295 lt_cv_sys_max_cmd_len=-1;
5298 cygwin* | mingw* | cegcc*)
5299 # On Win9x/ME, this test blows up -- it succeeds, but takes
5300 # about 5 minutes as the teststring grows exponentially.
5301 # Worse, since 9x/ME are not pre-emptively multitasking,
5302 # you end up with a "frozen
" computer, even though with patience
5303 # the test eventually succeeds (with a max line length of 256k).
5304 # Instead, let's just punt: use the minimum linelength reported by
5305 # all of the supported platforms: 8192 (on NT/2K/XP).
5306 lt_cv_sys_max_cmd_len=8192;
5310 # On MiNT this can take a long time and run out of memory.
5311 lt_cv_sys_max_cmd_len=8192;
5315 # On AmigaOS with pdksh, this test takes hours, literally.
5316 # So we just punt and use a minimum line length of 8192.
5317 lt_cv_sys_max_cmd_len=8192;
5320 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5321 # This has been around since 386BSD, at least. Likely further.
5322 if test -x /sbin/sysctl; then
5323 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5324 elif test -x /usr/sbin/sysctl; then
5325 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5327 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5329 # And add a safety zone
5330 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5331 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5335 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5336 lt_cv_sys_max_cmd_len=196608
5340 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5341 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5342 # nice to cause kernel panics so lets avoid the loop below.
5343 # First set a reasonable default.
5344 lt_cv_sys_max_cmd_len=16384
5346 if test -x /sbin/sysconfig; then
5347 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5348 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5353 lt_cv_sys_max_cmd_len=102400
5355 sysv5* | sco5v6* | sysv4.2uw2*)
5356 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5357 if test -n "$kargmax"; then
5358 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5360 lt_cv_sys_max_cmd_len=32768
5364 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5365 if test -n "$lt_cv_sys_max_cmd_len"; then
5366 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5367 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5369 # Make teststring a little bigger before we do anything with it.
5370 # a 1K string should be a reasonable start.
5371 for i in 1 2 3 4 5 6 7 8 ; do
5372 teststring=$teststring$teststring
5374 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5375 # If test is not a shell built-in, we'll probably end up computing a
5376 # maximum length that is only half of the actual maximum length, but
5378 while { test "X
"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5379 = "X
$teststring$teststring"; } >/dev/null 2>&1 &&
5380 test $i != 17 # 1/2 MB should be enough
5383 teststring=$teststring$teststring
5385 # Only check the string length outside the loop.
5386 lt_cv_sys_max_cmd_len=`expr "X
$teststring" : ".
*" 2>&1`
5388 # Add a significant safety factor because C++ compilers can tack on
5389 # massive amounts of additional arguments before passing them to the
5390 # linker. It appears as though 1/2 is a usable value.
5391 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5398 if test -n $lt_cv_sys_max_cmd_len ; then
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_sys_max_cmd_len" >&5
5400 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none
" >&5
5403 $as_echo "none
" >&6; }
5405 max_cmd_len=$lt_cv_sys_max_cmd_len
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs
" >&5
5417 $as_echo_n "checking whether the shell understands some XSI constructs...
" >&6; }
5418 # Try some XSI features
5421 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5423 && eval 'test $(( 1 + 1 )) -eq 2 \
5424 && test "${#_lt_dummy}" -eq 5' ) >/dev
/null
2>&1 \
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5427 $as_echo "$xsi_shell" >&6; }
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5431 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5433 ( foo
=bar
; set foo baz
; eval "$1+=\$2" && test "$foo" = barbaz
) \
5435 && lt_shell_append
=yes
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5437 $as_echo "$lt_shell_append" >&6; }
5440 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
5450 # test EBCDIC or ASCII
5451 case `echo X|tr X '\101'` in
5452 A
) # ASCII based system
5453 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5454 lt_SP2NL
='tr \040 \012'
5455 lt_NL2SP
='tr \015\012 \040\040'
5457 *) # EBCDIC based system
5458 lt_SP2NL
='tr \100 \n'
5459 lt_NL2SP
='tr \r\n \100\100'
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5472 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5473 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5474 $as_echo_n "(cached) " >&6
5476 lt_cv_ld_reload_flag
='-r'
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5479 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5480 reload_flag
=$lt_cv_ld_reload_flag
5481 case $reload_flag in
5483 *) reload_flag
=" $reload_flag" ;;
5485 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
5488 if test "$GCC" = yes; then
5489 reload_cmds
='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5491 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
5504 if test -n "$ac_tool_prefix"; then
5505 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5506 set dummy
${ac_tool_prefix}objdump
; ac_word
=$2
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5508 $as_echo_n "checking for $ac_word... " >&6; }
5509 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5510 $as_echo_n "(cached) " >&6
5512 if test -n "$OBJDUMP"; then
5513 ac_cv_prog_OBJDUMP
="$OBJDUMP" # Let the user override the test.
5515 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5519 test -z "$as_dir" && as_dir
=.
5520 for ac_exec_ext
in '' $ac_executable_extensions; do
5521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5522 ac_cv_prog_OBJDUMP
="${ac_tool_prefix}objdump"
5523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5532 OBJDUMP
=$ac_cv_prog_OBJDUMP
5533 if test -n "$OBJDUMP"; then
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5535 $as_echo "$OBJDUMP" >&6; }
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5538 $as_echo "no" >&6; }
5543 if test -z "$ac_cv_prog_OBJDUMP"; then
5544 ac_ct_OBJDUMP
=$OBJDUMP
5545 # Extract the first word of "objdump", so it can be a program name with args.
5546 set dummy objdump
; ac_word
=$2
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5548 $as_echo_n "checking for $ac_word... " >&6; }
5549 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5550 $as_echo_n "(cached) " >&6
5552 if test -n "$ac_ct_OBJDUMP"; then
5553 ac_cv_prog_ac_ct_OBJDUMP
="$ac_ct_OBJDUMP" # Let the user override the test.
5555 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5559 test -z "$as_dir" && as_dir
=.
5560 for ac_exec_ext
in '' $ac_executable_extensions; do
5561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5562 ac_cv_prog_ac_ct_OBJDUMP
="objdump"
5563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5572 ac_ct_OBJDUMP
=$ac_cv_prog_ac_ct_OBJDUMP
5573 if test -n "$ac_ct_OBJDUMP"; then
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5575 $as_echo "$ac_ct_OBJDUMP" >&6; }
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5578 $as_echo "no" >&6; }
5581 if test "x$ac_ct_OBJDUMP" = x
; then
5584 case $cross_compiling:$ac_tool_warned in
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5588 ac_tool_warned
=yes ;;
5590 OBJDUMP
=$ac_ct_OBJDUMP
5593 OBJDUMP
="$ac_cv_prog_OBJDUMP"
5596 test -z "$OBJDUMP" && OBJDUMP
=objdump
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5607 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5608 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5609 $as_echo_n "(cached) " >&6
5611 lt_cv_file_magic_cmd
='$MAGIC_CMD'
5612 lt_cv_file_magic_test_file
=
5613 lt_cv_deplibs_check_method
='unknown'
5614 # Need to set the preceding variable on all platforms that support
5615 # interlibrary dependencies.
5616 # 'none' -- dependencies not supported.
5617 # `unknown' -- same as none, but documents that we really don't know.
5618 # 'pass_all' -- all dependencies passed with no checks.
5619 # 'test_compile' -- check by making test program.
5620 # 'file_magic [[regex]]' -- check by looking for files in library path
5621 # which responds to the $file_magic_cmd with a given extended regex.
5622 # If you have `file' or equivalent on your system and you're not sure
5623 # whether `pass_all' will *always* work, you probably want this one.
5627 lt_cv_deplibs_check_method
=pass_all
5631 lt_cv_deplibs_check_method
=pass_all
5635 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5636 lt_cv_file_magic_cmd
='/usr/bin/file -L'
5637 lt_cv_file_magic_test_file
=/shlib
/libc.so
5641 # func_win32_libid is a shell function defined in ltmain.sh
5642 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
5643 lt_cv_file_magic_cmd
='func_win32_libid'
5647 # Base MSYS/MinGW do not provide the 'file' command needed by
5648 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5649 # unless we find 'file', for example because we are cross-compiling.
5650 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5651 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev
/null
2>&1; then
5652 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
5653 lt_cv_file_magic_cmd
='func_win32_libid'
5655 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
5656 lt_cv_file_magic_cmd
='$OBJDUMP -f'
5661 # use the weaker test based on 'objdump'. See mingw*.
5662 lt_cv_deplibs_check_method
='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5663 lt_cv_file_magic_cmd
='$OBJDUMP -f'
5666 darwin
* | rhapsody
*)
5667 lt_cv_deplibs_check_method
=pass_all
5670 freebsd
* | dragonfly
*)
5671 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
> /dev
/null
; then
5674 # Not sure whether the presence of OpenBSD here was a mistake.
5675 # Let's accept both of them until this is cleared up.
5676 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5677 lt_cv_file_magic_cmd
=/usr
/bin
/file
5678 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
5682 lt_cv_deplibs_check_method
=pass_all
5687 lt_cv_deplibs_check_method
=pass_all
5691 lt_cv_deplibs_check_method
=pass_all
5694 hpux10.20
* | hpux11
*)
5695 lt_cv_file_magic_cmd
=/usr
/bin
/file
5698 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5699 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
5702 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]'
5703 lt_cv_file_magic_test_file
=/usr
/lib
/pa20_64
/libc.sl
5706 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5707 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
5713 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5714 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|\.a)$'
5717 irix5
* | irix6
* | nonstopux
*)
5719 *-32|
*"-32 ") libmagic
=32-bit;;
5720 *-n32|
*"-n32 ") libmagic
=N32
;;
5721 *-64|
*"-64 ") libmagic
=64-bit;;
5722 *) libmagic
=never-match
;;
5724 lt_cv_deplibs_check_method
=pass_all
5727 # This must be Linux ELF.
5728 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
5729 lt_cv_deplibs_check_method
=pass_all
5733 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
> /dev
/null
; then
5734 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5736 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5741 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5742 lt_cv_file_magic_cmd
=/usr
/bin
/file
5743 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
5747 lt_cv_deplibs_check_method
=pass_all
5751 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5752 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5754 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5758 osf3
* | osf4
* | osf5
*)
5759 lt_cv_deplibs_check_method
=pass_all
5763 lt_cv_deplibs_check_method
=pass_all
5767 lt_cv_deplibs_check_method
=pass_all
5770 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
5771 lt_cv_deplibs_check_method
=pass_all
5775 case $host_vendor in
5777 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]'
5778 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
5781 lt_cv_deplibs_check_method
=pass_all
5784 lt_cv_file_magic_cmd
='/bin/file'
5785 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5788 lt_cv_file_magic_cmd
='/bin/file'
5789 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5790 lt_cv_file_magic_test_file
=/lib
/libc.so
5793 lt_cv_deplibs_check_method
=pass_all
5796 lt_cv_deplibs_check_method
=pass_all
5802 lt_cv_deplibs_check_method
=pass_all
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5808 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5809 file_magic_cmd
=$lt_cv_file_magic_cmd
5810 deplibs_check_method
=$lt_cv_deplibs_check_method
5811 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
5824 if test -n "$ac_tool_prefix"; then
5825 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5826 set dummy
${ac_tool_prefix}ar; ac_word
=$2
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5828 $as_echo_n "checking for $ac_word... " >&6; }
5829 if test "${ac_cv_prog_AR+set}" = set; then :
5830 $as_echo_n "(cached) " >&6
5832 if test -n "$AR"; then
5833 ac_cv_prog_AR
="$AR" # Let the user override the test.
5835 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5839 test -z "$as_dir" && as_dir
=.
5840 for ac_exec_ext
in '' $ac_executable_extensions; do
5841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5842 ac_cv_prog_AR
="${ac_tool_prefix}ar"
5843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5853 if test -n "$AR"; then
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5855 $as_echo "$AR" >&6; }
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5858 $as_echo "no" >&6; }
5863 if test -z "$ac_cv_prog_AR"; then
5865 # Extract the first word of "ar", so it can be a program name with args.
5866 set dummy
ar; ac_word
=$2
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5868 $as_echo_n "checking for $ac_word... " >&6; }
5869 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5870 $as_echo_n "(cached) " >&6
5872 if test -n "$ac_ct_AR"; then
5873 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
5875 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5879 test -z "$as_dir" && as_dir
=.
5880 for ac_exec_ext
in '' $ac_executable_extensions; do
5881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5882 ac_cv_prog_ac_ct_AR
="ar"
5883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5892 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
5893 if test -n "$ac_ct_AR"; then
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5895 $as_echo "$ac_ct_AR" >&6; }
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5898 $as_echo "no" >&6; }
5901 if test "x$ac_ct_AR" = x
; then
5904 case $cross_compiling:$ac_tool_warned in
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5907 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5908 ac_tool_warned
=yes ;;
5916 test -z "$AR" && AR
=ar
5917 test -z "$AR_FLAGS" && AR_FLAGS
=cru
5929 if test -n "$ac_tool_prefix"; then
5930 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5931 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5933 $as_echo_n "checking for $ac_word... " >&6; }
5934 if test "${ac_cv_prog_STRIP+set}" = set; then :
5935 $as_echo_n "(cached) " >&6
5937 if test -n "$STRIP"; then
5938 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
5940 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5944 test -z "$as_dir" && as_dir
=.
5945 for ac_exec_ext
in '' $ac_executable_extensions; do
5946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5947 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
5948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5957 STRIP
=$ac_cv_prog_STRIP
5958 if test -n "$STRIP"; then
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5960 $as_echo "$STRIP" >&6; }
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5963 $as_echo "no" >&6; }
5968 if test -z "$ac_cv_prog_STRIP"; then
5970 # Extract the first word of "strip", so it can be a program name with args.
5971 set dummy strip
; ac_word
=$2
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5973 $as_echo_n "checking for $ac_word... " >&6; }
5974 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5975 $as_echo_n "(cached) " >&6
5977 if test -n "$ac_ct_STRIP"; then
5978 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
5980 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5984 test -z "$as_dir" && as_dir
=.
5985 for ac_exec_ext
in '' $ac_executable_extensions; do
5986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5987 ac_cv_prog_ac_ct_STRIP
="strip"
5988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5997 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
5998 if test -n "$ac_ct_STRIP"; then
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6000 $as_echo "$ac_ct_STRIP" >&6; }
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6003 $as_echo "no" >&6; }
6006 if test "x$ac_ct_STRIP" = x
; then
6009 case $cross_compiling:$ac_tool_warned in
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6012 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6013 ac_tool_warned
=yes ;;
6018 STRIP
="$ac_cv_prog_STRIP"
6021 test -z "$STRIP" && STRIP
=:
6028 if test -n "$ac_tool_prefix"; then
6029 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6030 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6032 $as_echo_n "checking for $ac_word... " >&6; }
6033 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6034 $as_echo_n "(cached) " >&6
6036 if test -n "$RANLIB"; then
6037 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6039 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6043 test -z "$as_dir" && as_dir
=.
6044 for ac_exec_ext
in '' $ac_executable_extensions; do
6045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6046 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6056 RANLIB
=$ac_cv_prog_RANLIB
6057 if test -n "$RANLIB"; then
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6059 $as_echo "$RANLIB" >&6; }
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6062 $as_echo "no" >&6; }
6067 if test -z "$ac_cv_prog_RANLIB"; then
6068 ac_ct_RANLIB
=$RANLIB
6069 # Extract the first word of "ranlib", so it can be a program name with args.
6070 set dummy ranlib
; ac_word
=$2
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6072 $as_echo_n "checking for $ac_word... " >&6; }
6073 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6074 $as_echo_n "(cached) " >&6
6076 if test -n "$ac_ct_RANLIB"; then
6077 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6079 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6083 test -z "$as_dir" && as_dir
=.
6084 for ac_exec_ext
in '' $ac_executable_extensions; do
6085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6086 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6096 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6097 if test -n "$ac_ct_RANLIB"; then
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6099 $as_echo "$ac_ct_RANLIB" >&6; }
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6102 $as_echo "no" >&6; }
6105 if test "x$ac_ct_RANLIB" = x
; then
6108 case $cross_compiling:$ac_tool_warned in
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6111 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6112 ac_tool_warned
=yes ;;
6114 RANLIB
=$ac_ct_RANLIB
6117 RANLIB
="$ac_cv_prog_RANLIB"
6120 test -z "$RANLIB" && RANLIB
=:
6127 # Determine commands to create old-style static archives.
6128 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs'
6129 old_postinstall_cmds
='chmod 644 $oldlib'
6130 old_postuninstall_cmds
=
6132 if test -n "$RANLIB"; then
6135 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6138 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB \$oldlib"
6141 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
6146 lock_old_archive_extraction
=yes ;;
6148 lock_old_archive_extraction
=no
;;
6189 # If no C compiler was specified, use CC.
6192 # If no C compiler flags were specified, use CFLAGS.
6193 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
6195 # Allow CC to be a program name with arguments.
6199 # Check for command to grab the raw symbol name followed by C symbol from nm.
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6201 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6202 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6203 $as_echo_n "(cached) " >&6
6206 # These are sane defaults that work on at least a few old systems.
6207 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6209 # Character class describing NM global symbol codes.
6210 symcode
='[BCDEGRST]'
6212 # Regexp to match symbols that can be accessed directly from C.
6213 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
6215 # Define system-specific variables.
6220 cygwin
* | mingw
* | pw32
* | cegcc
*)
6221 symcode
='[ABCDGISTW]'
6224 if test "$host_cpu" = ia64
; then
6225 symcode
='[ABCDEGRST]'
6229 symcode
='[BCDEGRST]'
6232 symcode
='[BCDEGQRST]'
6243 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
6251 # If we're using GNU nm, then use its standard symbol codes.
6252 case `$NM -V 2>&1` in
6253 *GNU
* |
*'with BFD'*)
6254 symcode
='[ABCDGIRSTW]' ;;
6257 # Transform an extracted symbol line into a proper C declaration.
6258 # Some systems (esp. on ia64) link data and code symbols differently,
6259 # so use this general approach.
6260 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6262 # Transform an extracted symbol line into symbol name and symbol address
6263 lt_cv_sys_global_symbol_to_c_name_address
="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6264 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'"
6266 # Handle CRLF in mingw tool chain
6270 opt_cr
=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6274 # Try without a prefix underscore, then with it.
6275 for ac_symprfx
in "" "_"; do
6277 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6278 symxfrm
="\\1 $ac_symprfx\\2 \\2"
6280 # Write the raw and C identifiers.
6281 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6282 # Fake it for dumpbin and say T for any non-static function
6283 # and D for any global variable.
6284 # Also find C++ and __fastcall symbols from MSVC++,
6285 # which start with @ or ?.
6286 lt_cv_sys_global_symbol_pipe
="$AWK '"\
6287 " {last_section=section; section=\$ 3};"\
6288 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6289 " \$ 0!~/External *\|/{next};"\
6290 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6291 " {if(hide[section]) next};"\
6292 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6293 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6294 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6295 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6296 " ' prfx=^$ac_symprfx"
6298 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6301 # Check to see that the pipe works correctly.
6305 cat > conftest.
$ac_ext <<_LT_EOF
6310 void nm_test_func(void);
6311 void nm_test_func(void){}
6315 int main(){nm_test_var='a';nm_test_func();return(0);}
6318 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6319 (eval $ac_compile) 2>&5
6321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6322 test $ac_status = 0; }; then
6323 # Now try to grab the symbols.
6325 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6326 (eval $NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist) 2>&5
6328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6329 test $ac_status = 0; } && test -s "$nlist"; then
6330 # Try sorting and uniquifying the output.
6331 if sort "$nlist" |
uniq > "$nlist"T
; then
6332 mv -f "$nlist"T
"$nlist"
6337 # Make sure that we snagged all the symbols we need.
6338 if $GREP ' nm_test_var$' "$nlist" >/dev
/null
; then
6339 if $GREP ' nm_test_func$' "$nlist" >/dev
/null
; then
6340 cat <<_LT_EOF > conftest.$ac_ext
6346 # Now generate the symbol file.
6347 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6349 cat <<_LT_EOF >> conftest.$ac_ext
6351 /* The mapping between symbol names and symbols. */
6356 lt__PROGRAM__LTX_preloaded_symbols[] =
6358 { "@PROGRAM@", (void *) 0 },
6360 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" |
$GREP -v main
>> conftest.
$ac_ext
6361 cat <<\_LT_EOF
>> conftest.
$ac_ext
6365 /* This works around a problem
in FreeBSD linker
*/
6366 #ifdef FREEBSD_WORKAROUND
6367 static const void
*lt_preloaded_setup
() {
6368 return lt__PROGRAM__LTX_preloaded_symbols
;
6376 # Now try linking the two files.
6377 mv conftest.
$ac_objext conftstm.
$ac_objext
6378 lt_save_LIBS
="$LIBS"
6379 lt_save_CFLAGS
="$CFLAGS"
6380 LIBS
="conftstm.$ac_objext"
6381 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6382 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6383 (eval $ac_link) 2>&5
6385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6386 test $ac_status = 0; } && test -s conftest
${ac_exeext}; then
6389 LIBS
="$lt_save_LIBS"
6390 CFLAGS
="$lt_save_CFLAGS"
6392 echo "cannot find nm_test_func in $nlist" >&5
6395 echo "cannot find nm_test_var in $nlist" >&5
6398 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6401 echo "$progname: failed program was:" >&5
6402 cat conftest.
$ac_ext >&5
6404 rm -rf conftest
* conftst
*
6406 # Do not use the global_symbol_pipe unless it works.
6407 if test "$pipe_works" = yes; then
6410 lt_cv_sys_global_symbol_pipe
=
6416 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6417 lt_cv_sys_global_symbol_to_cdecl
=
6419 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6421 $as_echo "failed" >&6; }
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6424 $as_echo "ok" >&6; }
6449 # Check whether --enable-libtool-lock was given.
6450 if test "${enable_libtool_lock+set}" = set; then :
6451 enableval
=$enable_libtool_lock;
6454 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
6456 # Some flags need to be propagated to the compiler or linker for good
6460 # Find out which ABI we are using.
6461 echo 'int i;' > conftest.
$ac_ext
6462 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6463 (eval $ac_compile) 2>&5
6465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6466 test $ac_status = 0; }; then
6467 case `/usr/bin/file conftest.$ac_objext` in
6479 # Find out which ABI we are using.
6480 echo '#line '$LINENO' "configure"' > conftest.
$ac_ext
6481 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6482 (eval $ac_compile) 2>&5
6484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6485 test $ac_status = 0; }; then
6486 if test "$lt_cv_prog_gnu_ld" = yes; then
6487 case `/usr/bin/file conftest.$ac_objext` in
6489 LD
="${LD-ld} -melf32bsmip"
6492 LD
="${LD-ld} -melf32bmipn32"
6495 LD
="${LD-ld} -melf64bmip"
6499 case `/usr/bin/file conftest.$ac_objext` in
6515 x86_64-
*kfreebsd
*-gnu|x86_64-
*linux
*|powerpc
*-*linux
*| \
6516 s390
*-*linux
*|s390
*-*tpf
*|sparc
*-*linux
*)
6517 # Find out which ABI we are using.
6518 echo 'int i;' > conftest.
$ac_ext
6519 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6520 (eval $ac_compile) 2>&5
6522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6523 test $ac_status = 0; }; then
6524 case `/usr/bin/file conftest.o` in
6527 x86_64-
*kfreebsd
*-gnu)
6528 LD
="${LD-ld} -m elf_i386_fbsd"
6531 LD
="${LD-ld} -m elf_i386"
6533 powerpc64le-
*linux
*)
6534 LD
="${LD-ld} -m elf32lppclinux"
6537 LD
="${LD-ld} -m elf32ppclinux"
6540 LD
="${LD-ld} -m elf_s390"
6543 LD
="${LD-ld} -m elf32_sparc"
6549 x86_64-
*kfreebsd
*-gnu)
6550 LD
="${LD-ld} -m elf_x86_64_fbsd"
6553 LD
="${LD-ld} -m elf_x86_64"
6556 LD
="${LD-ld} -m elf64lppc"
6559 LD
="${LD-ld} -m elf64ppc"
6561 s390
*-*linux
*|s390
*-*tpf
*)
6562 LD
="${LD-ld} -m elf64_s390"
6565 LD
="${LD-ld} -m elf64_sparc"
6575 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6576 SAVE_CFLAGS
="$CFLAGS"
6577 CFLAGS
="$CFLAGS -belf"
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6579 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6580 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6581 $as_echo_n "(cached) " >&6
6584 ac_cpp
='$CPP $CPPFLAGS'
6585 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6586 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6587 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6590 /* end confdefs.h. */
6600 if ac_fn_c_try_link
"$LINENO"; then :
6601 lt_cv_cc_needs_belf
=yes
6603 lt_cv_cc_needs_belf
=no
6605 rm -f core conftest.err conftest.
$ac_objext \
6606 conftest
$ac_exeext conftest.
$ac_ext
6608 ac_cpp
='$CPP $CPPFLAGS'
6609 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6610 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6611 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6615 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6616 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
6617 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6618 CFLAGS
="$SAVE_CFLAGS"
6622 # Find out which ABI we are using.
6623 echo 'int i;' > conftest.
$ac_ext
6624 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6625 (eval $ac_compile) 2>&5
6627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6628 test $ac_status = 0; }; then
6629 case `/usr/bin/file conftest.o` in
6631 case $lt_cv_prog_gnu_ld in
6634 i?
86-*-solaris* | x86_64-
*-solaris2.1
[0-9]*)
6635 LD
="${LD-ld} -m elf_x86_64"
6638 LD
="${LD-ld} -m elf64_sparc"
6641 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6642 if ${LD-ld} -V |
grep _sol2
>/dev
/null
2>&1; then
6647 if ${LD-ld} -64 -r -o conftest2.o conftest.o
>/dev
/null
2>&1; then
6659 need_locks
="$enable_libtool_lock"
6663 rhapsody
* | darwin
*)
6664 if test -n "$ac_tool_prefix"; then
6665 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6666 set dummy
${ac_tool_prefix}dsymutil
; ac_word
=$2
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6668 $as_echo_n "checking for $ac_word... " >&6; }
6669 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6670 $as_echo_n "(cached) " >&6
6672 if test -n "$DSYMUTIL"; then
6673 ac_cv_prog_DSYMUTIL
="$DSYMUTIL" # Let the user override the test.
6675 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6679 test -z "$as_dir" && as_dir
=.
6680 for ac_exec_ext
in '' $ac_executable_extensions; do
6681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6682 ac_cv_prog_DSYMUTIL
="${ac_tool_prefix}dsymutil"
6683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6692 DSYMUTIL
=$ac_cv_prog_DSYMUTIL
6693 if test -n "$DSYMUTIL"; then
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6695 $as_echo "$DSYMUTIL" >&6; }
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6698 $as_echo "no" >&6; }
6703 if test -z "$ac_cv_prog_DSYMUTIL"; then
6704 ac_ct_DSYMUTIL
=$DSYMUTIL
6705 # Extract the first word of "dsymutil", so it can be a program name with args.
6706 set dummy dsymutil
; ac_word
=$2
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6708 $as_echo_n "checking for $ac_word... " >&6; }
6709 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6710 $as_echo_n "(cached) " >&6
6712 if test -n "$ac_ct_DSYMUTIL"; then
6713 ac_cv_prog_ac_ct_DSYMUTIL
="$ac_ct_DSYMUTIL" # Let the user override the test.
6715 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6719 test -z "$as_dir" && as_dir
=.
6720 for ac_exec_ext
in '' $ac_executable_extensions; do
6721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6722 ac_cv_prog_ac_ct_DSYMUTIL
="dsymutil"
6723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6732 ac_ct_DSYMUTIL
=$ac_cv_prog_ac_ct_DSYMUTIL
6733 if test -n "$ac_ct_DSYMUTIL"; then
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6735 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6738 $as_echo "no" >&6; }
6741 if test "x$ac_ct_DSYMUTIL" = x
; then
6744 case $cross_compiling:$ac_tool_warned in
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6747 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6748 ac_tool_warned
=yes ;;
6750 DSYMUTIL
=$ac_ct_DSYMUTIL
6753 DSYMUTIL
="$ac_cv_prog_DSYMUTIL"
6756 if test -n "$ac_tool_prefix"; then
6757 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6758 set dummy
${ac_tool_prefix}nmedit
; ac_word
=$2
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6760 $as_echo_n "checking for $ac_word... " >&6; }
6761 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6762 $as_echo_n "(cached) " >&6
6764 if test -n "$NMEDIT"; then
6765 ac_cv_prog_NMEDIT
="$NMEDIT" # Let the user override the test.
6767 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6771 test -z "$as_dir" && as_dir
=.
6772 for ac_exec_ext
in '' $ac_executable_extensions; do
6773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6774 ac_cv_prog_NMEDIT
="${ac_tool_prefix}nmedit"
6775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6784 NMEDIT
=$ac_cv_prog_NMEDIT
6785 if test -n "$NMEDIT"; then
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6787 $as_echo "$NMEDIT" >&6; }
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6790 $as_echo "no" >&6; }
6795 if test -z "$ac_cv_prog_NMEDIT"; then
6796 ac_ct_NMEDIT
=$NMEDIT
6797 # Extract the first word of "nmedit", so it can be a program name with args.
6798 set dummy nmedit
; ac_word
=$2
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6800 $as_echo_n "checking for $ac_word... " >&6; }
6801 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6802 $as_echo_n "(cached) " >&6
6804 if test -n "$ac_ct_NMEDIT"; then
6805 ac_cv_prog_ac_ct_NMEDIT
="$ac_ct_NMEDIT" # Let the user override the test.
6807 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6811 test -z "$as_dir" && as_dir
=.
6812 for ac_exec_ext
in '' $ac_executable_extensions; do
6813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6814 ac_cv_prog_ac_ct_NMEDIT
="nmedit"
6815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6824 ac_ct_NMEDIT
=$ac_cv_prog_ac_ct_NMEDIT
6825 if test -n "$ac_ct_NMEDIT"; then
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6827 $as_echo "$ac_ct_NMEDIT" >&6; }
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6830 $as_echo "no" >&6; }
6833 if test "x$ac_ct_NMEDIT" = x
; then
6836 case $cross_compiling:$ac_tool_warned in
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6839 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6840 ac_tool_warned
=yes ;;
6842 NMEDIT
=$ac_ct_NMEDIT
6845 NMEDIT
="$ac_cv_prog_NMEDIT"
6848 if test -n "$ac_tool_prefix"; then
6849 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6850 set dummy
${ac_tool_prefix}lipo
; ac_word
=$2
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6852 $as_echo_n "checking for $ac_word... " >&6; }
6853 if test "${ac_cv_prog_LIPO+set}" = set; then :
6854 $as_echo_n "(cached) " >&6
6856 if test -n "$LIPO"; then
6857 ac_cv_prog_LIPO
="$LIPO" # Let the user override the test.
6859 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6863 test -z "$as_dir" && as_dir
=.
6864 for ac_exec_ext
in '' $ac_executable_extensions; do
6865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6866 ac_cv_prog_LIPO
="${ac_tool_prefix}lipo"
6867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6876 LIPO
=$ac_cv_prog_LIPO
6877 if test -n "$LIPO"; then
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6879 $as_echo "$LIPO" >&6; }
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6882 $as_echo "no" >&6; }
6887 if test -z "$ac_cv_prog_LIPO"; then
6889 # Extract the first word of "lipo", so it can be a program name with args.
6890 set dummy lipo
; ac_word
=$2
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6892 $as_echo_n "checking for $ac_word... " >&6; }
6893 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6894 $as_echo_n "(cached) " >&6
6896 if test -n "$ac_ct_LIPO"; then
6897 ac_cv_prog_ac_ct_LIPO
="$ac_ct_LIPO" # Let the user override the test.
6899 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6903 test -z "$as_dir" && as_dir
=.
6904 for ac_exec_ext
in '' $ac_executable_extensions; do
6905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6906 ac_cv_prog_ac_ct_LIPO
="lipo"
6907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6916 ac_ct_LIPO
=$ac_cv_prog_ac_ct_LIPO
6917 if test -n "$ac_ct_LIPO"; then
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6919 $as_echo "$ac_ct_LIPO" >&6; }
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6922 $as_echo "no" >&6; }
6925 if test "x$ac_ct_LIPO" = x
; then
6928 case $cross_compiling:$ac_tool_warned in
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6932 ac_tool_warned
=yes ;;
6937 LIPO
="$ac_cv_prog_LIPO"
6940 if test -n "$ac_tool_prefix"; then
6941 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6942 set dummy
${ac_tool_prefix}otool
; ac_word
=$2
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6944 $as_echo_n "checking for $ac_word... " >&6; }
6945 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6946 $as_echo_n "(cached) " >&6
6948 if test -n "$OTOOL"; then
6949 ac_cv_prog_OTOOL
="$OTOOL" # Let the user override the test.
6951 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6955 test -z "$as_dir" && as_dir
=.
6956 for ac_exec_ext
in '' $ac_executable_extensions; do
6957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6958 ac_cv_prog_OTOOL
="${ac_tool_prefix}otool"
6959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6968 OTOOL
=$ac_cv_prog_OTOOL
6969 if test -n "$OTOOL"; then
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6971 $as_echo "$OTOOL" >&6; }
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6974 $as_echo "no" >&6; }
6979 if test -z "$ac_cv_prog_OTOOL"; then
6981 # Extract the first word of "otool", so it can be a program name with args.
6982 set dummy otool
; ac_word
=$2
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6984 $as_echo_n "checking for $ac_word... " >&6; }
6985 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6986 $as_echo_n "(cached) " >&6
6988 if test -n "$ac_ct_OTOOL"; then
6989 ac_cv_prog_ac_ct_OTOOL
="$ac_ct_OTOOL" # Let the user override the test.
6991 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6995 test -z "$as_dir" && as_dir
=.
6996 for ac_exec_ext
in '' $ac_executable_extensions; do
6997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6998 ac_cv_prog_ac_ct_OTOOL
="otool"
6999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7008 ac_ct_OTOOL
=$ac_cv_prog_ac_ct_OTOOL
7009 if test -n "$ac_ct_OTOOL"; then
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7011 $as_echo "$ac_ct_OTOOL" >&6; }
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7014 $as_echo "no" >&6; }
7017 if test "x$ac_ct_OTOOL" = x
; then
7020 case $cross_compiling:$ac_tool_warned in
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7024 ac_tool_warned
=yes ;;
7029 OTOOL
="$ac_cv_prog_OTOOL"
7032 if test -n "$ac_tool_prefix"; then
7033 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7034 set dummy
${ac_tool_prefix}otool64
; ac_word
=$2
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7036 $as_echo_n "checking for $ac_word... " >&6; }
7037 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7038 $as_echo_n "(cached) " >&6
7040 if test -n "$OTOOL64"; then
7041 ac_cv_prog_OTOOL64
="$OTOOL64" # Let the user override the test.
7043 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7047 test -z "$as_dir" && as_dir
=.
7048 for ac_exec_ext
in '' $ac_executable_extensions; do
7049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7050 ac_cv_prog_OTOOL64
="${ac_tool_prefix}otool64"
7051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7060 OTOOL64
=$ac_cv_prog_OTOOL64
7061 if test -n "$OTOOL64"; then
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7063 $as_echo "$OTOOL64" >&6; }
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7066 $as_echo "no" >&6; }
7071 if test -z "$ac_cv_prog_OTOOL64"; then
7072 ac_ct_OTOOL64
=$OTOOL64
7073 # Extract the first word of "otool64", so it can be a program name with args.
7074 set dummy otool64
; ac_word
=$2
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7076 $as_echo_n "checking for $ac_word... " >&6; }
7077 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7078 $as_echo_n "(cached) " >&6
7080 if test -n "$ac_ct_OTOOL64"; then
7081 ac_cv_prog_ac_ct_OTOOL64
="$ac_ct_OTOOL64" # Let the user override the test.
7083 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7087 test -z "$as_dir" && as_dir
=.
7088 for ac_exec_ext
in '' $ac_executable_extensions; do
7089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7090 ac_cv_prog_ac_ct_OTOOL64
="otool64"
7091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7100 ac_ct_OTOOL64
=$ac_cv_prog_ac_ct_OTOOL64
7101 if test -n "$ac_ct_OTOOL64"; then
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7103 $as_echo "$ac_ct_OTOOL64" >&6; }
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7106 $as_echo "no" >&6; }
7109 if test "x$ac_ct_OTOOL64" = x
; then
7112 case $cross_compiling:$ac_tool_warned in
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7115 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7116 ac_tool_warned
=yes ;;
7118 OTOOL64
=$ac_ct_OTOOL64
7121 OTOOL64
="$ac_cv_prog_OTOOL64"
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7151 $as_echo_n "checking for -single_module linker flag... " >&6; }
7152 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7153 $as_echo_n "(cached) " >&6
7155 lt_cv_apple_cc_single_mod
=no
7156 if test -z "${LT_MULTI_MODULE}"; then
7157 # By default we will add the -single_module flag. You can override
7158 # by either setting the environment variable LT_MULTI_MODULE
7159 # non-empty at configure time, or by adding -multi_module to the
7161 rm -rf libconftest.dylib
*
7162 echo "int foo(void){return 1;}" > conftest.c
7163 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7164 -dynamiclib -Wl,-single_module conftest.c" >&5
7165 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7166 -dynamiclib -Wl,-single_module conftest.c
2>conftest.err
7168 if test -f libconftest.dylib
&& test ! -s conftest.err
&& test $_lt_result = 0; then
7169 lt_cv_apple_cc_single_mod
=yes
7171 cat conftest.err
>&5
7173 rm -rf libconftest.dylib
*
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7178 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7180 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7181 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7182 $as_echo_n "(cached) " >&6
7184 lt_cv_ld_exported_symbols_list
=no
7185 save_LDFLAGS
=$LDFLAGS
7186 echo "_main" > conftest.sym
7187 LDFLAGS
="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7188 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7189 /* end confdefs.h. */
7199 if ac_fn_c_try_link
"$LINENO"; then :
7200 lt_cv_ld_exported_symbols_list
=yes
7202 lt_cv_ld_exported_symbols_list
=no
7204 rm -f core conftest.err conftest.
$ac_objext \
7205 conftest
$ac_exeext conftest.
$ac_ext
7206 LDFLAGS
="$save_LDFLAGS"
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7210 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7212 $as_echo_n "checking for -force_load linker flag... " >&6; }
7213 if test "${lt_cv_ld_force_load+set}" = set; then :
7214 $as_echo_n "(cached) " >&6
7216 lt_cv_ld_force_load
=no
7217 cat > conftest.c
<< _LT_EOF
7218 int forced_loaded() { return 2;}
7220 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7221 $LTCC $LTCFLAGS -c -o conftest.o conftest.c
2>&5
7222 echo "$AR cru libconftest.a conftest.o" >&5
7223 $AR cru libconftest.a conftest.o
2>&5
7224 cat > conftest.c
<< _LT_EOF
7225 int main() { return 0;}
7227 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7228 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
2>conftest.err
7230 if test -f conftest
&& test ! -s conftest.err
&& test $_lt_result = 0 && $GREP forced_load conftest
2>&1 >/dev
/null
; then
7231 lt_cv_ld_force_load
=yes
7233 cat conftest.err
>&5
7235 rm -f conftest.err libconftest.a conftest conftest.c
7236 rm -rf conftest.dSYM
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7240 $as_echo "$lt_cv_ld_force_load" >&6; }
7242 rhapsody
* | darwin1.
[012])
7243 _lt_dar_allow_undefined
='${wl}-undefined ${wl}suppress' ;;
7245 _lt_dar_allow_undefined
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7246 darwin
*) # darwin 5.x on
7247 # if running on 10.5 or later, the deployment target defaults
7248 # to the OS version, if on x86, and 10.4, the deployment
7249 # target defaults to 10.4. Don't you love it?
7250 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7251 10.0,*86*-darwin8*|
10.0,*-darwin[91]*)
7252 _lt_dar_allow_undefined
='${wl}-undefined ${wl}dynamic_lookup' ;;
7254 _lt_dar_allow_undefined
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7256 _lt_dar_allow_undefined
='${wl}-undefined ${wl}dynamic_lookup' ;;
7260 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7261 _lt_dar_single_mod
='$single_module'
7263 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7264 _lt_dar_export_syms
=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7266 _lt_dar_export_syms
='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7268 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7269 _lt_dsymutil
='~$DSYMUTIL $lib || :'
7277 ac_cpp
='$CPP $CPPFLAGS'
7278 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7279 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7280 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7282 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7283 # On Suns, sometimes $CPP names a directory.
7284 if test -n "$CPP" && test -d "$CPP"; then
7287 if test -z "$CPP"; then
7288 if test "${ac_cv_prog_CPP+set}" = set; then :
7289 $as_echo_n "(cached) " >&6
7291 # Double quotes because CPP needs to be expanded
7292 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7295 for ac_c_preproc_warn_flag
in '' yes
7297 # Use a header file that comes with gcc, so configuring glibc
7298 # with a fresh cross-compiler works.
7299 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7300 # <limits.h> exists even on freestanding compilers.
7301 # On the NeXT, cc -E runs the code through the compiler's parser,
7302 # not just through cpp. "Syntax error" is here to catch this case.
7303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7304 /* end confdefs.h. */
7306 # include <limits.h>
7308 # include <assert.h>
7312 if ac_fn_c_try_cpp
"$LINENO"; then :
7315 # Broken: fails on valid input.
7318 rm -f conftest.err conftest.
$ac_ext
7320 # OK, works on sane cases. Now check whether nonexistent headers
7321 # can be detected and how.
7322 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7323 /* end confdefs.h. */
7324 #include <ac_nonexistent.h>
7326 if ac_fn_c_try_cpp
"$LINENO"; then :
7327 # Broken: success on invalid input.
7330 # Passes both tests.
7334 rm -f conftest.err conftest.
$ac_ext
7337 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7338 rm -f conftest.err conftest.
$ac_ext
7339 if $ac_preproc_ok; then :
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7352 $as_echo "$CPP" >&6; }
7354 for ac_c_preproc_warn_flag
in '' yes
7356 # Use a header file that comes with gcc, so configuring glibc
7357 # with a fresh cross-compiler works.
7358 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7359 # <limits.h> exists even on freestanding compilers.
7360 # On the NeXT, cc -E runs the code through the compiler's parser,
7361 # not just through cpp. "Syntax error" is here to catch this case.
7362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7363 /* end confdefs.h. */
7365 # include <limits.h>
7367 # include <assert.h>
7371 if ac_fn_c_try_cpp
"$LINENO"; then :
7374 # Broken: fails on valid input.
7377 rm -f conftest.err conftest.
$ac_ext
7379 # OK, works on sane cases. Now check whether nonexistent headers
7380 # can be detected and how.
7381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7382 /* end confdefs.h. */
7383 #include <ac_nonexistent.h>
7385 if ac_fn_c_try_cpp
"$LINENO"; then :
7386 # Broken: success on invalid input.
7389 # Passes both tests.
7393 rm -f conftest.err conftest.
$ac_ext
7396 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7397 rm -f conftest.err conftest.
$ac_ext
7398 if $ac_preproc_ok; then :
7401 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7402 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7403 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
7404 See \`config.log' for more details." "$LINENO" 5; }
7408 ac_cpp
='$CPP $CPPFLAGS'
7409 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7410 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7411 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7415 $as_echo_n "checking for ANSI C header files... " >&6; }
7416 if test "${ac_cv_header_stdc+set}" = set; then :
7417 $as_echo_n "(cached) " >&6
7419 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7420 /* end confdefs.h. */
7434 if ac_fn_c_try_compile
"$LINENO"; then :
7435 ac_cv_header_stdc
=yes
7437 ac_cv_header_stdc
=no
7439 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7441 if test $ac_cv_header_stdc = yes; then
7442 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7444 /* end confdefs.h. */
7448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7449 $EGREP "memchr" >/dev
/null
2>&1; then :
7452 ac_cv_header_stdc
=no
7458 if test $ac_cv_header_stdc = yes; then
7459 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7461 /* end confdefs.h. */
7465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7466 $EGREP "free" >/dev
/null
2>&1; then :
7469 ac_cv_header_stdc
=no
7475 if test $ac_cv_header_stdc = yes; then
7476 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7477 if test "$cross_compiling" = yes; then :
7480 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7481 /* end confdefs.h. */
7484 #if ((' ' & 0x0FF) == 0x020)
7485 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7486 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7488 # define ISLOWER(c) \
7489 (('a' <= (c) && (c) <= 'i') \
7490 || ('j' <= (c) && (c) <= 'r') \
7491 || ('s' <= (c) && (c) <= 'z'))
7492 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7495 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7500 for (i = 0; i < 256; i++)
7501 if (XOR (islower (i), ISLOWER (i))
7502 || toupper (i) != TOUPPER (i))
7507 if ac_fn_c_try_run
"$LINENO"; then :
7510 ac_cv_header_stdc
=no
7512 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7513 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7519 $as_echo "$ac_cv_header_stdc" >&6; }
7520 if test $ac_cv_header_stdc = yes; then
7522 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7526 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7527 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
7528 inttypes.h stdint.h unistd.h
7530 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7531 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7533 eval as_val
=\$
$as_ac_Header
7534 if test "x$as_val" = x
""yes; then :
7535 cat >>confdefs.h
<<_ACEOF
7536 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7544 for ac_header
in dlfcn.h
7546 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7548 if test "x$ac_cv_header_dlfcn_h" = x
""yes; then :
7549 cat >>confdefs.h
<<_ACEOF
7550 #define HAVE_DLFCN_H 1
7557 if test -n "$ac_tool_prefix"; then
7558 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7559 set dummy
${ac_tool_prefix}gccgo
; ac_word
=$2
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7561 $as_echo_n "checking for $ac_word... " >&6; }
7562 if test "${ac_cv_prog_GOC+set}" = set; then :
7563 $as_echo_n "(cached) " >&6
7565 if test -n "$GOC"; then
7566 ac_cv_prog_GOC
="$GOC" # Let the user override the test.
7568 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7572 test -z "$as_dir" && as_dir
=.
7573 for ac_exec_ext
in '' $ac_executable_extensions; do
7574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7575 ac_cv_prog_GOC
="${ac_tool_prefix}gccgo"
7576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7586 if test -n "$GOC"; then
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7588 $as_echo "$GOC" >&6; }
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7591 $as_echo "no" >&6; }
7596 if test -z "$ac_cv_prog_GOC"; then
7598 # Extract the first word of "gccgo", so it can be a program name with args.
7599 set dummy gccgo
; ac_word
=$2
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7601 $as_echo_n "checking for $ac_word... " >&6; }
7602 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
7603 $as_echo_n "(cached) " >&6
7605 if test -n "$ac_ct_GOC"; then
7606 ac_cv_prog_ac_ct_GOC
="$ac_ct_GOC" # Let the user override the test.
7608 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7612 test -z "$as_dir" && as_dir
=.
7613 for ac_exec_ext
in '' $ac_executable_extensions; do
7614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7615 ac_cv_prog_ac_ct_GOC
="gccgo"
7616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7625 ac_ct_GOC
=$ac_cv_prog_ac_ct_GOC
7626 if test -n "$ac_ct_GOC"; then
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7628 $as_echo "$ac_ct_GOC" >&6; }
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7631 $as_echo "no" >&6; }
7634 if test "x$ac_ct_GOC" = x
; then
7637 case $cross_compiling:$ac_tool_warned in
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7641 ac_tool_warned
=yes ;;
7646 GOC
="$ac_cv_prog_GOC"
7662 # Check whether --enable-shared was given.
7663 if test "${enable_shared+set}" = set; then :
7664 enableval
=$enable_shared; p
=${PACKAGE-default}
7666 yes) enable_shared
=yes ;;
7667 no
) enable_shared
=no
;;
7670 # Look at the argument we got. We use all the common list separators.
7671 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7672 for pkg
in $enableval; do
7674 if test "X$pkg" = "X$p"; then
7693 # Check whether --enable-static was given.
7694 if test "${enable_static+set}" = set; then :
7695 enableval
=$enable_static; p
=${PACKAGE-default}
7697 yes) enable_static
=yes ;;
7698 no
) enable_static
=no
;;
7701 # Look at the argument we got. We use all the common list separators.
7702 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7703 for pkg
in $enableval; do
7705 if test "X$pkg" = "X$p"; then
7725 # Check whether --with-pic was given.
7726 if test "${with_pic+set}" = set; then :
7727 withval
=$with_pic; pic_mode
="$withval"
7733 test -z "$pic_mode" && pic_mode
=default
7741 # Check whether --enable-fast-install was given.
7742 if test "${enable_fast_install+set}" = set; then :
7743 enableval
=$enable_fast_install; p
=${PACKAGE-default}
7745 yes) enable_fast_install
=yes ;;
7746 no
) enable_fast_install
=no
;;
7748 enable_fast_install
=no
7749 # Look at the argument we got. We use all the common list separators.
7750 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7751 for pkg
in $enableval; do
7753 if test "X$pkg" = "X$p"; then
7754 enable_fast_install
=yes
7761 enable_fast_install
=yes
7774 # This can be used to rebuild libtool when needed
7775 LIBTOOL_DEPS
="$ltmain"
7777 # Always use our own libtool.
7778 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
7805 test -z "$LN_S" && LN_S
="ln -s"
7820 if test -n "${ZSH_VERSION+set}" ; then
7821 setopt NO_GLOB_SUBST
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7825 $as_echo_n "checking for objdir... " >&6; }
7826 if test "${lt_cv_objdir+set}" = set; then :
7827 $as_echo_n "(cached) " >&6
7829 rm -f .libs
2>/dev
/null
7830 mkdir .libs
2>/dev
/null
7831 if test -d .libs
; then
7834 # MS-DOS does not allow filenames that begin with a dot.
7837 rmdir .libs
2>/dev
/null
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7840 $as_echo "$lt_cv_objdir" >&6; }
7841 objdir
=$lt_cv_objdir
7847 cat >>confdefs.h
<<_ACEOF
7848 #define LT_OBJDIR "$lt_cv_objdir/"
7856 # AIX sometimes has problems with the GCC collect2 program. For some
7857 # reason, if we set the COLLECT_NAMES environment variable, the problems
7858 # vanish in a puff of smoke.
7859 if test "X${COLLECT_NAMES+set}" != Xset
; then
7861 export COLLECT_NAMES
7868 can_build_shared
=yes
7870 # All known linkers require a `.a' archive for static linking (except MSVC,
7871 # which needs '.lib').
7874 with_gnu_ld
="$lt_cv_prog_gnu_ld"
7877 old_CFLAGS
="$CFLAGS"
7879 # Set sane defaults for various variables
7880 test -z "$CC" && CC
=cc
7881 test -z "$LTCC" && LTCC
=$CC
7882 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
7883 test -z "$LD" && LD
=ld
7884 test -z "$ac_objext" && ac_objext
=o
7886 for cc_temp
in $compiler""; do
7888 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
7889 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
7894 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7897 # Only perform the check for file, if the check method requires it
7898 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
7899 case $deplibs_check_method in
7901 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7903 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7904 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7905 $as_echo_n "(cached) " >&6
7909 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7912 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7913 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7914 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7915 for ac_dir
in $ac_dummy; do
7917 test -z "$ac_dir" && ac_dir
=.
7918 if test -f $ac_dir/${ac_tool_prefix}file; then
7919 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
7920 if test -n "$file_magic_test_file"; then
7921 case $deplibs_check_method in
7923 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7924 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7925 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7926 $EGREP "$file_magic_regex" > /dev
/null
; then
7931 *** Warning: the command libtool uses to detect shared libraries,
7932 *** $file_magic_cmd, produces output that libtool cannot recognize.
7933 *** The result is that libtool may fail to recognize shared libraries
7934 *** as such. This will affect the creation of libtool libraries that
7935 *** depend on shared libraries, but programs linked with such libtool
7936 *** libraries will work regardless of this problem. Nevertheless, you
7937 *** may want to report the problem to your system manager and/or to
7938 *** bug-libtool@gnu.org
7948 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7953 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7954 if test -n "$MAGIC_CMD"; then
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7956 $as_echo "$MAGIC_CMD" >&6; }
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7959 $as_echo "no" >&6; }
7966 if test -z "$lt_cv_path_MAGIC_CMD"; then
7967 if test -n "$ac_tool_prefix"; then
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7969 $as_echo_n "checking for file... " >&6; }
7970 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7971 $as_echo_n "(cached) " >&6
7975 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7978 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7979 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7980 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7981 for ac_dir
in $ac_dummy; do
7983 test -z "$ac_dir" && ac_dir
=.
7984 if test -f $ac_dir/file; then
7985 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
7986 if test -n "$file_magic_test_file"; then
7987 case $deplibs_check_method in
7989 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7990 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7991 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7992 $EGREP "$file_magic_regex" > /dev
/null
; then
7997 *** Warning: the command libtool uses to detect shared libraries,
7998 *** $file_magic_cmd, produces output that libtool cannot recognize.
7999 *** The result is that libtool may fail to recognize shared libraries
8000 *** as such. This will affect the creation of libtool libraries that
8001 *** depend on shared libraries, but programs linked with such libtool
8002 *** libraries will work regardless of this problem. Nevertheless, you
8003 *** may want to report the problem to your system manager and/or to
8004 *** bug-libtool@gnu.org
8014 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8019 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8020 if test -n "$MAGIC_CMD"; then
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8022 $as_echo "$MAGIC_CMD" >&6; }
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8025 $as_echo "no" >&6; }
8038 # Use C for the default configuration in the libtool script
8042 ac_cpp
='$CPP $CPPFLAGS'
8043 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8044 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8045 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8048 # Source file extension for C test sources.
8051 # Object file extension for compiled C test sources.
8055 # Code to be used in simple compile tests
8056 lt_simple_compile_test_code
="int some_variable = 0;"
8058 # Code to be used in simple link tests
8059 lt_simple_link_test_code
='int main(){return(0);}'
8067 # If no C compiler was specified, use CC.
8070 # If no C compiler flags were specified, use CFLAGS.
8071 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
8073 # Allow CC to be a program name with arguments.
8076 # Save the default compiler, since it gets overwritten when the other
8077 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8078 compiler_DEFAULT
=$CC
8080 # save warnings/boilerplate of simple test code
8081 ac_outfile
=conftest.
$ac_objext
8082 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
8083 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8084 _lt_compiler_boilerplate
=`cat conftest.err`
8087 ac_outfile
=conftest.
$ac_objext
8088 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
8089 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8090 _lt_linker_boilerplate
=`cat conftest.err`
8095 ## There is no encapsulation within the following macros, do not change
8096 ## the running order or otherwise move them around unless you know exactly
8097 ## what you are doing...
8098 if test -n "$compiler"; then
8100 lt_prog_compiler_no_builtin_flag
=
8102 if test "$GCC" = yes; then
8103 case $cc_basename in
8105 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
8107 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8111 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8112 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8113 $as_echo_n "(cached) " >&6
8115 lt_cv_prog_compiler_rtti_exceptions
=no
8116 ac_outfile
=conftest.
$ac_objext
8117 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8118 lt_compiler_flag
="-fno-rtti -fno-exceptions"
8119 # Insert the option either (1) after the last *FLAGS variable, or
8120 # (2) before a word containing "conftest.", or (3) at the end.
8121 # Note that $ac_compile itself does not contain backslashes and begins
8122 # with a dollar sign (not a hyphen), so the echo should work correctly.
8123 # The option is referenced via a variable to avoid confusing sed.
8124 lt_compile
=`echo "$ac_compile" | $SED \
8125 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8126 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8127 -e 's:$: $lt_compiler_flag:'`
8128 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8129 (eval "$lt_compile" 2>conftest.err
)
8131 cat conftest.err
>&5
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 if (exit $ac_status) && test -s "$ac_outfile"; then
8134 # The compiler can only warn and ignore the option if not recognized
8135 # So say no if there are warnings other than the usual output.
8136 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8137 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8138 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8139 lt_cv_prog_compiler_rtti_exceptions
=yes
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8146 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8148 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
8149 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8161 lt_prog_compiler_wl
=
8162 lt_prog_compiler_pic
=
8163 lt_prog_compiler_static
=
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8166 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8168 if test "$GCC" = yes; then
8169 lt_prog_compiler_wl
='-Wl,'
8170 lt_prog_compiler_static
='-static'
8174 # All AIX code is PIC.
8175 if test "$host_cpu" = ia64
; then
8176 # AIX 5 now supports IA64 processor
8177 lt_prog_compiler_static
='-Bstatic'
8184 # see comment about AmigaOS4 .so support
8185 lt_prog_compiler_pic
='-fPIC'
8188 # FIXME: we need at least 68020 code to build shared libraries, but
8189 # adding the `-m68020' flag to GCC prevents building anything better,
8191 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
8196 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
8197 # PIC is the default for these OSes.
8200 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8201 # This hack is so that the source file can tell whether it is being
8202 # built for inclusion in a dll (and should export symbols for example).
8203 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8204 # (--disable-auto-import) libraries
8205 lt_prog_compiler_pic
='-DDLL_EXPORT'
8208 darwin
* | rhapsody
*)
8209 # PIC is the default on this platform
8210 # Common symbols not allowed in MH_DYLIB files
8211 lt_prog_compiler_pic
='-fno-common'
8215 # PIC is the default for Haiku.
8216 # The "-static" flag exists, but is broken.
8217 lt_prog_compiler_static
=
8221 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8222 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8223 # sets the default TLS model and affects inlining.
8229 lt_prog_compiler_pic
='-fPIC'
8235 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8236 # Instead, we relocate shared libraries at runtime.
8240 # Just because we use GCC doesn't mean we suddenly get shared libraries
8241 # on systems that don't support them.
8242 lt_prog_compiler_can_build_shared
=no
8247 # QNX uses GNU C++, but need to define -shared option too, otherwise
8249 lt_prog_compiler_pic
='-fPIC -shared'
8253 if test -d /usr
/nec
; then
8254 lt_prog_compiler_pic
=-Kconform_pic
8259 lt_prog_compiler_pic
='-fPIC'
8263 case $cc_basename in
8264 nvcc
*) # Cuda Compiler Driver 2.2
8265 lt_prog_compiler_wl
='-Xlinker '
8266 lt_prog_compiler_pic
='-Xcompiler -fPIC'
8270 # PORTME Check for flag to pass linker flags through the system compiler.
8273 lt_prog_compiler_wl
='-Wl,'
8274 if test "$host_cpu" = ia64
; then
8275 # AIX 5 now supports IA64 processor
8276 lt_prog_compiler_static
='-Bstatic'
8278 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8282 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8283 # This hack is so that the source file can tell whether it is being
8284 # built for inclusion in a dll (and should export symbols for example).
8285 lt_prog_compiler_pic
='-DDLL_EXPORT'
8288 hpux9
* | hpux10
* | hpux11
*)
8289 lt_prog_compiler_wl
='-Wl,'
8290 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8297 lt_prog_compiler_pic
='+Z'
8300 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8301 lt_prog_compiler_static
='${wl}-a ${wl}archive'
8304 irix5
* | irix6
* | nonstopux
*)
8305 lt_prog_compiler_wl
='-Wl,'
8306 # PIC (with -KPIC) is the default.
8307 lt_prog_compiler_static
='-non_shared'
8310 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
8311 case $cc_basename in
8312 # old Intel for x86_64 which still supported -KPIC.
8314 lt_prog_compiler_wl
='-Wl,'
8315 lt_prog_compiler_pic
='-KPIC'
8316 lt_prog_compiler_static
='-static'
8318 # icc used to be incompatible with GCC.
8319 # ICC 10 doesn't accept -KPIC any more.
8321 lt_prog_compiler_wl
='-Wl,'
8322 lt_prog_compiler_pic
='-fPIC'
8323 lt_prog_compiler_static
='-static'
8325 # Lahey Fortran 8.1.
8327 lt_prog_compiler_wl
='-Wl,'
8328 lt_prog_compiler_pic
='--shared'
8329 lt_prog_compiler_static
='--static'
8331 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8332 # Portland Group compilers (*not* the Pentium gcc compiler,
8333 # which looks to be a dead project)
8334 lt_prog_compiler_wl
='-Wl,'
8335 lt_prog_compiler_pic
='-fpic'
8336 lt_prog_compiler_static
='-Bstatic'
8339 lt_prog_compiler_wl
='-Wl,'
8340 # All Alpha code is PIC.
8341 lt_prog_compiler_static
='-non_shared'
8343 xl
* | bgxl
* | bgf
* | mpixl
*)
8344 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8345 lt_prog_compiler_wl
='-Wl,'
8346 lt_prog_compiler_pic
='-qpic'
8347 lt_prog_compiler_static
='-qstaticlink'
8350 case `$CC -V 2>&1 | sed 5q` in
8351 *Sun\ F
* |
*Sun
*Fortran
*)
8352 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8353 lt_prog_compiler_pic
='-KPIC'
8354 lt_prog_compiler_static
='-Bstatic'
8355 lt_prog_compiler_wl
=''
8359 lt_prog_compiler_pic
='-KPIC'
8360 lt_prog_compiler_static
='-Bstatic'
8361 lt_prog_compiler_wl
='-Wl,'
8369 lt_prog_compiler_pic
='-KPIC'
8370 lt_prog_compiler_static
='-Bstatic'
8374 # QNX uses GNU C++, but need to define -shared option too, otherwise
8376 lt_prog_compiler_pic
='-fPIC -shared'
8379 osf3
* | osf4
* | osf5
*)
8380 lt_prog_compiler_wl
='-Wl,'
8381 # All OSF/1 code is PIC.
8382 lt_prog_compiler_static
='-non_shared'
8386 lt_prog_compiler_static
='-non_shared'
8390 lt_prog_compiler_pic
='-KPIC'
8391 lt_prog_compiler_static
='-Bstatic'
8392 case $cc_basename in
8394 lt_prog_compiler_wl
='-Qoption ld ';;
8396 lt_prog_compiler_wl
='-Wl,';;
8401 lt_prog_compiler_wl
='-Qoption ld '
8402 lt_prog_compiler_pic
='-PIC'
8403 lt_prog_compiler_static
='-Bstatic'
8406 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8407 lt_prog_compiler_wl
='-Wl,'
8408 lt_prog_compiler_pic
='-KPIC'
8409 lt_prog_compiler_static
='-Bstatic'
8413 if test -d /usr
/nec
;then
8414 lt_prog_compiler_pic
='-Kconform_pic'
8415 lt_prog_compiler_static
='-Bstatic'
8419 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8420 lt_prog_compiler_wl
='-Wl,'
8421 lt_prog_compiler_pic
='-KPIC'
8422 lt_prog_compiler_static
='-Bstatic'
8426 lt_prog_compiler_wl
='-Wl,'
8427 lt_prog_compiler_can_build_shared
=no
8431 lt_prog_compiler_pic
='-pic'
8432 lt_prog_compiler_static
='-Bstatic'
8436 lt_prog_compiler_can_build_shared
=no
8442 # For platforms which do not support PIC, -DPIC is meaningless:
8444 lt_prog_compiler_pic
=
8447 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8451 $as_echo "$lt_prog_compiler_pic" >&6; }
8459 # Check to make sure the PIC flag actually works.
8461 if test -n "$lt_prog_compiler_pic"; then
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8463 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8464 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8465 $as_echo_n "(cached) " >&6
8467 lt_cv_prog_compiler_pic_works
=no
8468 ac_outfile
=conftest.
$ac_objext
8469 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8470 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
8471 # Insert the option either (1) after the last *FLAGS variable, or
8472 # (2) before a word containing "conftest.", or (3) at the end.
8473 # Note that $ac_compile itself does not contain backslashes and begins
8474 # with a dollar sign (not a hyphen), so the echo should work correctly.
8475 # The option is referenced via a variable to avoid confusing sed.
8476 lt_compile
=`echo "$ac_compile" | $SED \
8477 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8478 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8479 -e 's:$: $lt_compiler_flag:'`
8480 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8481 (eval "$lt_compile" 2>conftest.err
)
8483 cat conftest.err
>&5
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 if (exit $ac_status) && test -s "$ac_outfile"; then
8486 # The compiler can only warn and ignore the option if not recognized
8487 # So say no if there are warnings other than the usual output.
8488 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8489 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8490 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8491 lt_cv_prog_compiler_pic_works
=yes
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8498 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8500 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
8501 case $lt_prog_compiler_pic in
8503 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8506 lt_prog_compiler_pic
=
8507 lt_prog_compiler_can_build_shared
=no
8518 # Check to make sure the static flag actually works.
8520 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8522 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8523 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8524 $as_echo_n "(cached) " >&6
8526 lt_cv_prog_compiler_static_works
=no
8527 save_LDFLAGS
="$LDFLAGS"
8528 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
8529 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
8530 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
8531 # The linker can only warn and ignore the option if not recognized
8532 # So say no if there are warnings
8533 if test -s conftest.err
; then
8534 # Append any errors to the config.log.
8535 cat conftest.err
1>&5
8536 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
8537 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8538 if diff conftest.exp conftest.er2
>/dev
/null
; then
8539 lt_cv_prog_compiler_static_works
=yes
8542 lt_cv_prog_compiler_static_works
=yes
8546 LDFLAGS
="$save_LDFLAGS"
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8550 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8552 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
8555 lt_prog_compiler_static
=
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8565 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8566 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8567 $as_echo_n "(cached) " >&6
8569 lt_cv_prog_compiler_c_o
=no
8570 $RM -r conftest
2>/dev
/null
8574 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8576 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8577 # Insert the option either (1) after the last *FLAGS variable, or
8578 # (2) before a word containing "conftest.", or (3) at the end.
8579 # Note that $ac_compile itself does not contain backslashes and begins
8580 # with a dollar sign (not a hyphen), so the echo should work correctly.
8581 lt_compile
=`echo "$ac_compile" | $SED \
8582 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8583 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8584 -e 's:$: $lt_compiler_flag:'`
8585 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8586 (eval "$lt_compile" 2>out
/conftest.err
)
8588 cat out
/conftest.err
>&5
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8592 # The compiler can only warn and ignore the option if not recognized
8593 # So say no if there are warnings
8594 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8595 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8596 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8597 lt_cv_prog_compiler_c_o
=yes
8602 # SGI C++ compiler will create directory out/ii_files/ for
8603 # template instantiation
8604 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8605 $RM out
/* && rmdir out
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8612 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8620 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8621 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8622 $as_echo_n "(cached) " >&6
8624 lt_cv_prog_compiler_c_o
=no
8625 $RM -r conftest
2>/dev
/null
8629 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8631 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8632 # Insert the option either (1) after the last *FLAGS variable, or
8633 # (2) before a word containing "conftest.", or (3) at the end.
8634 # Note that $ac_compile itself does not contain backslashes and begins
8635 # with a dollar sign (not a hyphen), so the echo should work correctly.
8636 lt_compile
=`echo "$ac_compile" | $SED \
8637 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8638 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8639 -e 's:$: $lt_compiler_flag:'`
8640 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8641 (eval "$lt_compile" 2>out
/conftest.err
)
8643 cat out
/conftest.err
>&5
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8647 # The compiler can only warn and ignore the option if not recognized
8648 # So say no if there are warnings
8649 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8650 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8651 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8652 lt_cv_prog_compiler_c_o
=yes
8657 # SGI C++ compiler will create directory out/ii_files/ for
8658 # template instantiation
8659 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8660 $RM out
/* && rmdir out
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8667 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8672 hard_links
="nottested"
8673 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
8674 # do not overwrite the value of need_locks provided by the user
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8676 $as_echo_n "checking if we can lock with hard links... " >&6; }
8679 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8681 ln conftest.a conftest.b
2>&5 || hard_links
=no
8682 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8684 $as_echo "$hard_links" >&6; }
8685 if test "$hard_links" = no
; then
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8687 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8700 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8703 allow_undefined_flag
=
8704 always_export_symbols
=no
8706 archive_expsym_cmds
=
8707 compiler_needs_object
=no
8708 enable_shared_with_static_runtimes
=no
8709 export_dynamic_flag_spec
=
8710 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8711 hardcode_automatic
=no
8713 hardcode_direct_absolute
=no
8714 hardcode_libdir_flag_spec
=
8715 hardcode_libdir_flag_spec_ld
=
8716 hardcode_libdir_separator
=
8718 hardcode_shlibpath_var
=unsupported
8720 link_all_deplibs
=unknown
8723 old_archive_from_new_cmds
=
8724 old_archive_from_expsyms_cmds
=
8725 thread_safe_flag_spec
=
8726 whole_archive_flag_spec
=
8727 # include_expsyms should be a list of space-separated symbols to be *always*
8728 # included in the symbol list
8730 # exclude_expsyms can be an extended regexp of symbols to exclude
8731 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8732 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8733 # as well as any symbol that contains `d'.
8734 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8735 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8736 # platforms (ab)use it in PIC code, but their linkers get confused if
8737 # the symbol is explicitly referenced. Since portable code cannot
8738 # rely on this symbol name, it's probably fine to never include it in
8739 # preloaded symbol tables.
8740 # Exclude shared library initialization/finalization symbols.
8741 extract_expsyms_cmds
=
8744 cygwin
* | mingw
* | pw32
* | cegcc
*)
8745 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8746 # When not using gcc, we currently assume that we are using
8747 # Microsoft Visual C++.
8748 if test "$GCC" != yes; then
8753 # we just hope/assume this is gcc and not c89 (= MSVC++)
8763 # On some targets, GNU ld is compatible enough with the native linker
8764 # that we're better off using the native interface for both.
8765 lt_use_gnu_ld_interface
=no
8766 if test "$with_gnu_ld" = yes; then
8769 # The AIX port of GNU ld has always aspired to compatibility
8770 # with the native linker. However, as the warning in the GNU ld
8771 # block says, versions before 2.19.5* couldn't really create working
8772 # shared libraries, regardless of the interface used.
8773 case `$LD -v 2>&1` in
8774 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
8775 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
8776 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
8778 lt_use_gnu_ld_interface
=yes
8783 lt_use_gnu_ld_interface
=yes
8788 if test "$lt_use_gnu_ld_interface" = yes; then
8789 # If archive_cmds runs LD, not CC, wlarc should be empty
8792 # Set some defaults for GNU ld with shared library support. These
8793 # are reset later if shared libraries are not supported. Putting them
8794 # here allows them to be overridden if necessary.
8795 runpath_var
=LD_RUN_PATH
8796 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8797 export_dynamic_flag_spec
='${wl}--export-dynamic'
8798 # ancient GNU ld didn't support --whole-archive et. al.
8799 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
8800 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8802 whole_archive_flag_spec
=
8804 supports_anon_versioning
=no
8805 case `$LD -v 2>&1` in
8806 *GNU\ gold
*) supports_anon_versioning
=yes ;;
8807 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
8808 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
8809 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
8810 *\
2.11.
*) ;; # other 2.11 versions
8811 *) supports_anon_versioning
=yes ;;
8814 # See if GNU ld supports shared libraries.
8817 # On AIX/PPC, the GNU linker is very broken
8818 if test "$host_cpu" != ia64
; then
8822 *** Warning: the GNU linker, at least up to release 2.19, is reported
8823 *** to be unable to reliably create shared libraries on AIX.
8824 *** Therefore, libtool is disabling shared libraries support. If you
8825 *** really care for shared libraries, you may want to install binutils
8826 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8827 *** You will then need to restart the configuration process.
8836 # see comment about AmigaOS4 .so support
8837 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8838 archive_expsym_cmds
=''
8841 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)'
8842 hardcode_libdir_flag_spec
='-L$libdir'
8843 hardcode_minus_L
=yes
8849 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8850 allow_undefined_flag
=unsupported
8851 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8852 # support --undefined. This deserves some investigation. FIXME
8853 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8859 cygwin
* | mingw
* | pw32
* | cegcc
*)
8860 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8861 # as there is no search path for DLLs.
8862 hardcode_libdir_flag_spec
='-L$libdir'
8863 export_dynamic_flag_spec
='${wl}--export-all-symbols'
8864 allow_undefined_flag
=unsupported
8865 always_export_symbols
=no
8866 enable_shared_with_static_runtimes
=yes
8867 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8869 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
8870 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8871 # If the export-symbols file already is a .def file (1st line
8872 # is EXPORTS), use it as is; otherwise, prepend...
8873 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8874 cp $export_symbols $output_objdir/$soname.def;
8876 echo EXPORTS > $output_objdir/$soname.def;
8877 cat $export_symbols >> $output_objdir/$soname.def;
8879 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8886 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8887 link_all_deplibs
=yes
8892 hardcode_shlibpath_var
=no
8893 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8894 export_dynamic_flag_spec
='${wl}-E'
8895 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8896 # Instead, shared libraries are loaded at an image base (0x10000000 by
8897 # default) and relocated if they conflict, which is a slow very memory
8898 # consuming and fragmenting process. To avoid this, we pick a random,
8899 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8900 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8901 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8902 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'
8905 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
8907 if test "$host_os" = linux-dietlibc
; then
8908 case $cc_basename in
8909 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
8912 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
8913 && test "$tmp_diet" = no
8916 tmp_sharedflag
='-shared'
8917 case $cc_basename,$host_cpu in
8918 pgcc
*) # Portland Group C compiler
8919 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'
8920 tmp_addflag
=' $pic_flag'
8922 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8923 # Portland Group f77 and f90 compilers
8924 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'
8925 tmp_addflag
=' $pic_flag -Mnomain' ;;
8926 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
8927 tmp_addflag
=' -i_dynamic' ;;
8928 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
8929 tmp_addflag
=' -i_dynamic -nofor_main' ;;
8930 ifc
* | ifort
*) # Intel Fortran compiler
8931 tmp_addflag
=' -nofor_main' ;;
8932 lf95
*) # Lahey Fortran 8.1
8933 whole_archive_flag_spec
=
8934 tmp_sharedflag
='--shared' ;;
8935 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8936 tmp_sharedflag
='-qmkshrobj'
8938 nvcc
*) # Cuda Compiler Driver 2.2
8939 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'
8940 compiler_needs_object
=yes
8943 case `$CC -V 2>&1 | sed 5q` in
8944 *Sun\ C
*) # Sun C 5.9
8945 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'
8946 compiler_needs_object
=yes
8947 tmp_sharedflag
='-G' ;;
8948 *Sun\ F
*) # Sun Fortran 8.3
8949 tmp_sharedflag
='-G' ;;
8951 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8953 if test "x$supports_anon_versioning" = xyes
; then
8954 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8955 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8956 echo "local: *; };" >> $output_objdir/$libname.ver~
8957 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8960 case $cc_basename in
8961 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
8962 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8963 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
8964 hardcode_libdir_flag_spec
=
8965 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
8966 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8967 if test "x$supports_anon_versioning" = xyes
; then
8968 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8969 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8970 echo "local: *; };" >> $output_objdir/$libname.ver~
8971 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8981 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
8982 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8985 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8986 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8991 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
8995 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8996 *** create shared libraries on Solaris systems. Therefore, libtool
8997 *** is disabling shared libraries support. We urge you to upgrade GNU
8998 *** binutils to release 2.9.1 or newer. Another option is to modify
8999 *** your PATH or compiler configuration so that the native linker is
9000 *** used, and then restart.
9003 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9004 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9005 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9011 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9012 case `$LD -v 2>&1` in
9013 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9017 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9018 *** reliably create shared libraries on SCO systems. Therefore, libtool
9019 *** is disabling shared libraries support. We urge you to upgrade GNU
9020 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9021 *** your PATH or compiler configuration so that the native linker is
9022 *** used, and then restart.
9027 # For security reasons, it is highly recommended that you always
9028 # use absolute paths for naming shared libraries, and exclude the
9029 # DT_RUNPATH tag from executables and libraries. But doing so
9030 # requires that you compile everything twice, which is a pain.
9031 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9032 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9033 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9034 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9043 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9046 hardcode_shlibpath_var
=no
9050 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9051 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9052 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9059 if test "$ld_shlibs" = no
; then
9061 hardcode_libdir_flag_spec
=
9062 export_dynamic_flag_spec
=
9063 whole_archive_flag_spec
=
9066 # PORTME fill in a description of your system's linker (not GNU ld)
9069 allow_undefined_flag
=unsupported
9070 always_export_symbols
=yes
9071 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'
9072 # Note: this linker hardcodes the directories in LIBPATH if there
9073 # are no directories specified by -L.
9074 hardcode_minus_L
=yes
9075 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9076 # Neither direct hardcoding nor static linking is supported with a
9078 hardcode_direct
=unsupported
9083 if test "$host_cpu" = ia64
; then
9084 # On IA64, the linker does run time linking by default, so we don't
9085 # have to do anything special.
9086 aix_use_runtimelinking
=no
9087 exp_sym_flag
='-Bexport'
9090 # If we're using GNU nm, then we don't want the "-C" option.
9091 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9092 # Also, AIX nm treats weak defined symbols like other global
9093 # defined symbols, whereas GNU nm marks them as "W".
9094 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9095 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'
9097 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'
9099 aix_use_runtimelinking
=no
9101 # Test if we are trying to use run time linking or normal
9102 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9103 # need to do runtime linking.
9104 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9105 for ld_flag
in $LDFLAGS; do
9106 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
9107 aix_use_runtimelinking
=yes
9114 exp_sym_flag
='-bexport'
9115 no_entry_flag
='-bnoentry'
9118 # When large executables or shared objects are built, AIX ld can
9119 # have problems creating the table of contents. If linking a library
9120 # or program results in "error TOC overflow" add -mminimal-toc to
9121 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9122 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9126 hardcode_direct_absolute
=yes
9127 hardcode_libdir_separator
=':'
9128 link_all_deplibs
=yes
9129 file_list_spec
='${wl}-f,'
9131 if test "$GCC" = yes; then
9132 case $host_os in aix4.
[012]|aix4.
[012].
*)
9133 # We only want to do this on AIX 4.2 and lower, the check
9134 # below for broken collect2 doesn't work under 4.3+
9135 collect2name
=`${CC} -print-prog-name=collect2`
9136 if test -f "$collect2name" &&
9137 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9139 # We have reworked collect2
9142 # We have old collect2
9143 hardcode_direct
=unsupported
9144 # It fails to find uninstalled libraries when the uninstalled
9145 # path is not listed in the libpath. Setting hardcode_minus_L
9146 # to unsupported forces relinking
9147 hardcode_minus_L
=yes
9148 hardcode_libdir_flag_spec
='-L$libdir'
9149 hardcode_libdir_separator
=
9153 shared_flag
='-shared'
9154 if test "$aix_use_runtimelinking" = yes; then
9155 shared_flag
="$shared_flag "'${wl}-G'
9159 if test "$host_cpu" = ia64
; then
9160 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9161 # chokes on -Wl,-G. The following line is correct:
9164 if test "$aix_use_runtimelinking" = yes; then
9165 shared_flag
='${wl}-G'
9167 shared_flag
='${wl}-bM:SRE'
9172 export_dynamic_flag_spec
='${wl}-bexpall'
9173 # It seems that -bexpall does not export symbols beginning with
9174 # underscore (_), so it is better to generate a list of symbols to export.
9175 always_export_symbols
=yes
9176 if test "$aix_use_runtimelinking" = yes; then
9177 # Warning - without using the other runtime loading flags (-brtl),
9178 # -berok will link without error, but may produce a broken library.
9179 allow_undefined_flag
='-berok'
9180 # Determine the default libpath from the value encoded in an
9182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9183 /* end confdefs.h. */
9193 if ac_fn_c_try_link
"$LINENO"; then :
9195 lt_aix_libpath_sed
='
9196 /Import File Strings/,/^$/ {
9202 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9203 # Check for a 64-bit object if we didn't find anything.
9204 if test -z "$aix_libpath"; then
9205 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9208 rm -f core conftest.err conftest.
$ac_objext \
9209 conftest
$ac_exeext conftest.
$ac_ext
9210 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9212 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9213 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"
9215 if test "$host_cpu" = ia64
; then
9216 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
9217 allow_undefined_flag
="-z nodefs"
9218 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"
9220 # Determine the default libpath from the value encoded in an
9222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9223 /* end confdefs.h. */
9233 if ac_fn_c_try_link
"$LINENO"; then :
9235 lt_aix_libpath_sed
='
9236 /Import File Strings/,/^$/ {
9242 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9243 # Check for a 64-bit object if we didn't find anything.
9244 if test -z "$aix_libpath"; then
9245 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9248 rm -f core conftest.err conftest.
$ac_objext \
9249 conftest
$ac_exeext conftest.
$ac_ext
9250 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9252 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9253 # Warning - without using the other run time loading flags,
9254 # -berok will link without error, but may produce a broken library.
9255 no_undefined_flag
=' ${wl}-bernotok'
9256 allow_undefined_flag
=' ${wl}-berok'
9257 if test "$with_gnu_ld" = yes; then
9258 # We only use this code for GNU lds that support --whole-archive.
9259 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9261 # Exported symbols can be pulled into shared objects from archives
9262 whole_archive_flag_spec
='$convenience'
9264 archive_cmds_need_lc
=yes
9265 # This is similar to how AIX traditionally builds its shared libraries.
9266 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'
9274 # see comment about AmigaOS4 .so support
9275 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9276 archive_expsym_cmds
=''
9279 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)'
9280 hardcode_libdir_flag_spec
='-L$libdir'
9281 hardcode_minus_L
=yes
9287 export_dynamic_flag_spec
=-rdynamic
9290 cygwin
* | mingw
* | pw32
* | cegcc
*)
9291 # When not using gcc, we currently assume that we are using
9292 # Microsoft Visual C++.
9293 # hardcode_libdir_flag_spec is actually meaningless, as there is
9294 # no search path for DLLs.
9295 hardcode_libdir_flag_spec
=' '
9296 allow_undefined_flag
=unsupported
9297 # Tell ltmain to make .lib files, not .a files.
9299 # Tell ltmain to make .dll files, not .so files.
9301 # FIXME: Setting linknames here is a bad hack.
9302 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9303 # The linker will automatically build a .lib file if we build a DLL.
9304 old_archive_from_new_cmds
='true'
9305 # FIXME: Should let the user specify the lib program.
9306 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9307 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9308 enable_shared_with_static_runtimes
=yes
9311 darwin
* | rhapsody
*)
9314 archive_cmds_need_lc
=no
9316 hardcode_automatic
=yes
9317 hardcode_shlibpath_var
=unsupported
9318 if test "$lt_cv_ld_force_load" = "yes"; then
9319 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\"`'
9321 whole_archive_flag_spec
=''
9323 link_all_deplibs
=yes
9324 allow_undefined_flag
="$_lt_dar_allow_undefined"
9325 case $cc_basename in
9326 ifort
*) _lt_dar_can_shared
=yes ;;
9327 *) _lt_dar_can_shared
=$GCC ;;
9329 if test "$_lt_dar_can_shared" = "yes"; then
9330 output_verbose_link_cmd
=func_echo_all
9331 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9332 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9333 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}"
9334 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}"
9343 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9344 hardcode_libdir_flag_spec
='-L$libdir'
9345 hardcode_shlibpath_var
=no
9348 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9349 # support. Future versions do this automatically, but an explicit c++rt0.o
9350 # does not break anything, and helps significantly (at the cost of a little
9353 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9354 hardcode_libdir_flag_spec
='-R$libdir'
9356 hardcode_shlibpath_var
=no
9359 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9361 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9363 hardcode_minus_L
=yes
9364 hardcode_shlibpath_var
=no
9367 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9368 freebsd
* | dragonfly
*)
9369 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9370 hardcode_libdir_flag_spec
='-R$libdir'
9372 hardcode_shlibpath_var
=no
9376 if test "$GCC" = yes; then
9377 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'
9379 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'
9381 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9382 hardcode_libdir_separator
=:
9385 # hardcode_minus_L: Not really in the search PATH,
9386 # but as the default location of the library.
9387 hardcode_minus_L
=yes
9388 export_dynamic_flag_spec
='${wl}-E'
9392 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9393 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9395 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9397 if test "$with_gnu_ld" = no
; then
9398 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9399 hardcode_libdir_flag_spec_ld
='+b $libdir'
9400 hardcode_libdir_separator
=:
9402 hardcode_direct_absolute
=yes
9403 export_dynamic_flag_spec
='${wl}-E'
9404 # hardcode_minus_L: Not really in the search PATH,
9405 # but as the default location of the library.
9406 hardcode_minus_L
=yes
9411 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9414 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9417 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9420 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9426 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9429 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9433 # Older versions of the 11.00 compiler do not understand -b yet
9434 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9436 $as_echo_n "checking if $CC understands -b... " >&6; }
9437 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9438 $as_echo_n "(cached) " >&6
9440 lt_cv_prog_compiler__b
=no
9441 save_LDFLAGS
="$LDFLAGS"
9442 LDFLAGS
="$LDFLAGS -b"
9443 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9444 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9445 # The linker can only warn and ignore the option if not recognized
9446 # So say no if there are warnings
9447 if test -s conftest.err
; then
9448 # Append any errors to the config.log.
9449 cat conftest.err
1>&5
9450 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9451 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9452 if diff conftest.exp conftest.er2
>/dev
/null
; then
9453 lt_cv_prog_compiler__b
=yes
9456 lt_cv_prog_compiler__b
=yes
9460 LDFLAGS
="$save_LDFLAGS"
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9464 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9466 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
9467 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9469 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9475 if test "$with_gnu_ld" = no
; then
9476 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9477 hardcode_libdir_separator
=:
9482 hardcode_shlibpath_var
=no
9486 hardcode_direct_absolute
=yes
9487 export_dynamic_flag_spec
='${wl}-E'
9489 # hardcode_minus_L: Not really in the search PATH,
9490 # but as the default location of the library.
9491 hardcode_minus_L
=yes
9497 irix5
* | irix6
* | nonstopux
*)
9498 if test "$GCC" = yes; then
9499 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'
9500 # Try to use the -exported_symbol ld option, if it does not
9501 # work, assume that -exports_file does not work either and
9502 # implicitly export all symbols.
9503 save_LDFLAGS
="$LDFLAGS"
9504 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9505 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9506 /* end confdefs.h. */
9509 if ac_fn_c_try_link
"$LINENO"; then :
9510 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'
9513 rm -f core conftest.err conftest.
$ac_objext \
9514 conftest
$ac_exeext conftest.
$ac_ext
9515 LDFLAGS
="$save_LDFLAGS"
9517 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'
9518 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'
9520 archive_cmds_need_lc
='no'
9521 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9522 hardcode_libdir_separator
=:
9524 link_all_deplibs
=yes
9528 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9529 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9531 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9533 hardcode_libdir_flag_spec
='-R$libdir'
9535 hardcode_shlibpath_var
=no
9539 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9541 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9542 hardcode_libdir_separator
=:
9543 hardcode_shlibpath_var
=no
9550 if test -f /usr
/libexec
/ld.so
; then
9552 hardcode_shlibpath_var
=no
9553 hardcode_direct_absolute
=yes
9554 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9555 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9556 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9557 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9558 export_dynamic_flag_spec
='${wl}-E'
9561 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
9562 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9563 hardcode_libdir_flag_spec
='-R$libdir'
9566 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9567 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9577 hardcode_libdir_flag_spec
='-L$libdir'
9578 hardcode_minus_L
=yes
9579 allow_undefined_flag
=unsupported
9580 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'
9581 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9585 if test "$GCC" = yes; then
9586 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9587 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'
9589 allow_undefined_flag
=' -expect_unresolved \*'
9590 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'
9592 archive_cmds_need_lc
='no'
9593 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9594 hardcode_libdir_separator
=:
9597 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
9598 if test "$GCC" = yes; then
9599 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9600 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'
9601 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9603 allow_undefined_flag
=' -expect_unresolved \*'
9604 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'
9605 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~
9606 $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'
9608 # Both c and cxx compiler support -rpath directly
9609 hardcode_libdir_flag_spec
='-rpath $libdir'
9611 archive_cmds_need_lc
='no'
9612 hardcode_libdir_separator
=:
9616 no_undefined_flag
=' -z defs'
9617 if test "$GCC" = yes; then
9619 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9620 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9621 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9623 case `$CC -V 2>&1` in
9626 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9627 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9628 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9632 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9633 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9634 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9638 hardcode_libdir_flag_spec
='-R$libdir'
9639 hardcode_shlibpath_var
=no
9641 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
9643 # The compiler driver will combine and reorder linker options,
9644 # but understands `-z linker_flag'. GCC discards it without `$wl',
9645 # but is careful enough not to reorder.
9646 # Supported since Solaris 2.6 (maybe 2.5.1?)
9647 if test "$GCC" = yes; then
9648 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9650 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
9654 link_all_deplibs
=yes
9658 if test "x$host_vendor" = xsequent
; then
9659 # Use $CC to link under sequent, because it throws in some extra .o
9660 # files that make .init and .fini sections work.
9661 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9663 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9665 hardcode_libdir_flag_spec
='-L$libdir'
9667 hardcode_minus_L
=yes
9668 hardcode_shlibpath_var
=no
9672 case $host_vendor in
9674 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9675 hardcode_direct
=yes # is this really true???
9678 ## LD is ld it makes a PLAMLIB
9679 ## CC just makes a GrossModule.
9680 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9681 reload_cmds
='$CC -r -o $output$reload_objs'
9685 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9686 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
9689 runpath_var
='LD_RUN_PATH'
9690 hardcode_shlibpath_var
=no
9694 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9695 hardcode_shlibpath_var
=no
9696 export_dynamic_flag_spec
='-Bexport'
9700 if test -d /usr
/nec
; then
9701 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9702 hardcode_shlibpath_var
=no
9703 runpath_var
=LD_RUN_PATH
9704 hardcode_runpath_var
=yes
9709 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
9710 no_undefined_flag
='${wl}-z,text'
9711 archive_cmds_need_lc
=no
9712 hardcode_shlibpath_var
=no
9713 runpath_var
='LD_RUN_PATH'
9715 if test "$GCC" = yes; then
9716 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9717 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9719 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9720 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9724 sysv5
* | sco3.2v5
* | sco5v6
*)
9725 # Note: We can NOT use -z defs as we might desire, because we do not
9726 # link with -lc, and that would cause any symbols used from libc to
9727 # always be unresolved, which means just about no library would
9728 # ever link correctly. If we're not using GNU ld we use -z text
9729 # though, which does catch some bad symbols but isn't as heavy-handed
9731 no_undefined_flag
='${wl}-z,text'
9732 allow_undefined_flag
='${wl}-z,nodefs'
9733 archive_cmds_need_lc
=no
9734 hardcode_shlibpath_var
=no
9735 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
9736 hardcode_libdir_separator
=':'
9737 link_all_deplibs
=yes
9738 export_dynamic_flag_spec
='${wl}-Bexport'
9739 runpath_var
='LD_RUN_PATH'
9741 if test "$GCC" = yes; then
9742 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9743 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9745 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9746 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9751 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9752 hardcode_libdir_flag_spec
='-L$libdir'
9753 hardcode_shlibpath_var
=no
9761 if test x
$host_vendor = xsni
; then
9763 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
9764 export_dynamic_flag_spec
='${wl}-Blargedynsym'
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9771 $as_echo "$ld_shlibs" >&6; }
9772 test "$ld_shlibs" = no
&& can_build_shared
=no
9774 with_gnu_ld
=$with_gnu_ld
9791 # Do we need to explicitly link libc?
9793 case "x$archive_cmds_need_lc" in
9795 # Assume -lc should be added
9796 archive_cmds_need_lc
=yes
9798 if test "$enable_shared" = yes && test "$GCC" = yes; then
9799 case $archive_cmds in
9801 # FIXME: we may have to deal with multi-command sequences.
9804 # Test whether the compiler implicitly links with -lc since on some
9805 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9806 # to ld, don't add -lc before -lgcc.
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9808 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9809 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9810 $as_echo_n "(cached) " >&6
9813 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9815 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9816 (eval $ac_compile) 2>&5
9818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9819 test $ac_status = 0; } 2>conftest.err
; then
9822 libobjs
=conftest.
$ac_objext
9824 wl
=$lt_prog_compiler_wl
9825 pic_flag
=$lt_prog_compiler_pic
9831 lt_save_allow_undefined_flag
=$allow_undefined_flag
9832 allow_undefined_flag
=
9833 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9834 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
9836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9837 test $ac_status = 0; }
9839 lt_cv_archive_cmds_need_lc
=no
9841 lt_cv_archive_cmds_need_lc
=yes
9843 allow_undefined_flag
=$lt_save_allow_undefined_flag
9845 cat conftest.err
1>&5
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9851 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9852 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10016 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10018 if test "$GCC" = yes; then
10020 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
10021 *) lt_awk_arg
="/^libraries:/" ;;
10024 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
10025 *) lt_sed_strip_eq
="s,=/,/,g" ;;
10027 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10028 case $lt_search_path_spec in
10030 # if the path contains ";" then we assume it to be the separator
10031 # otherwise default to the standard path separator (i.e. ":") - it is
10032 # assumed that no part of a normal pathname contains ";" but that should
10033 # okay in the real world where ";" in dirpaths is itself problematic.
10034 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10037 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10040 # Ok, now we have the path, separated by spaces, we can step through it
10041 # and add multilib dir if necessary.
10042 lt_tmp_lt_search_path_spec
=
10043 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10044 for lt_sys_path
in $lt_search_path_spec; do
10045 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10046 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10048 test -d "$lt_sys_path" && \
10049 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10052 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10053 BEGIN {RS=" "; FS="/|\n";} {
10056 for (lt_i = NF; lt_i > 0; lt_i--) {
10057 if ($lt_i != "" && $lt_i != ".") {
10058 if ($lt_i == "..") {
10061 if (lt_count == 0) {
10062 lt_foo="/" $lt_i lt_foo;
10069 if (lt_foo != "") { lt_freq[lt_foo]++; }
10070 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10072 # AWK program above erroneously prepends '/' to C:/dos/paths
10075 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10076 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10078 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10080 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10082 library_names_spec
=
10083 libname_spec
='lib$name'
10087 postuninstall_cmds
=
10091 shlibpath_overrides_runpath
=unknown
10093 dynamic_linker
="$host_os ld.so"
10094 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10095 need_lib_prefix
=unknown
10096 hardcode_into_libs
=no
10098 # when you set need_version to no, make sure it does not cause -set_version
10099 # flags to be left without arguments
10100 need_version
=unknown
10105 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
10106 shlibpath_var
=LIBPATH
10108 # AIX 3 has no versioning support, so we append a major version to the name.
10109 soname_spec
='${libname}${release}${shared_ext}$major'
10116 hardcode_into_libs
=yes
10117 if test "$host_cpu" = ia64
; then
10118 # AIX 5 supports IA64
10119 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10120 shlibpath_var
=LD_LIBRARY_PATH
10122 # With GCC up to 2.95.x, collect2 would create an import file
10123 # for dependence libraries. The import file would start with
10124 # the line `#! .'. This would cause the generated library to
10125 # depend on `.', always an invalid library. This was fixed in
10126 # development snapshots of GCC prior to 3.0.
10128 aix4 | aix4.
[01] | aix4.
[01].
*)
10129 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10131 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
10134 can_build_shared
=no
10138 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10139 # soname into executable. Probably we can add versioning support to
10140 # collect2, so additional links can be useful in future.
10141 if test "$aix_use_runtimelinking" = yes; then
10142 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10143 # instead of lib<name>.a to let people know that these are not
10144 # typical AIX shared libraries.
10145 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10147 # We preserve .a as extension for shared libraries through AIX4.2
10148 # and later when we are not doing run time linking.
10149 library_names_spec
='${libname}${release}.a $libname.a'
10150 soname_spec
='${libname}${release}${shared_ext}$major'
10152 shlibpath_var
=LIBPATH
10159 # Since July 2007 AmigaOS4 officially supports .so libraries.
10160 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10161 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10164 library_names_spec
='$libname.ixlibrary $libname.a'
10165 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10166 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'
10172 library_names_spec
='${libname}${shared_ext}'
10173 dynamic_linker
="$host_os ld.so"
10174 shlibpath_var
=LIBRARY_PATH
10180 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10181 soname_spec
='${libname}${release}${shared_ext}$major'
10182 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10183 shlibpath_var
=LD_LIBRARY_PATH
10184 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10185 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10186 # the default ld.so.conf also contains /usr/contrib/lib and
10187 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10188 # libtool to hard-code these into programs
10191 cygwin
* | mingw
* | pw32
* | cegcc
*)
10192 version_type
=windows
10197 case $GCC,$host_os in
10198 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
10199 library_names_spec
='$libname.dll.a'
10200 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10201 postinstall_cmds
='base_file=`basename \${file}`~
10202 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10203 dldir=$destdir/`dirname \$dlpath`~
10204 test -d \$dldir || mkdir -p \$dldir~
10205 $install_prog $dir/$dlname \$dldir/$dlname~
10206 chmod a+x \$dldir/$dlname~
10207 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10208 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10210 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10211 dlpath=$dir/\$dldll~
10213 shlibpath_overrides_runpath
=yes
10217 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10218 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10220 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10223 # MinGW DLLs use traditional 'lib' prefix
10224 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10227 # pw32 DLLs use 'pw' prefix rather than 'lib'
10228 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10234 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10237 dynamic_linker
='Win32 ld.exe'
10238 # FIXME: first we should search . and the directory the executable is in
10242 darwin
* | rhapsody
*)
10243 dynamic_linker
="$host_os dyld"
10244 version_type
=darwin
10247 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10248 soname_spec
='${libname}${release}${major}$shared_ext'
10249 shlibpath_overrides_runpath
=yes
10250 shlibpath_var
=DYLD_LIBRARY_PATH
10251 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10253 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10254 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10261 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10262 soname_spec
='${libname}${release}${shared_ext}$major'
10263 shlibpath_var
=LD_LIBRARY_PATH
10266 freebsd
* | dragonfly
*)
10267 # DragonFly does not have aout. When/if they implement a new
10268 # versioning mechanism, adjust this.
10269 if test -x /usr
/bin
/objformat
; then
10270 objformat
=`/usr/bin/objformat`
10273 freebsd
[123]*) objformat
=aout
;;
10274 *) objformat
=elf
;;
10277 version_type
=freebsd-
$objformat
10278 case $version_type in
10280 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10285 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10289 shlibpath_var
=LD_LIBRARY_PATH
10292 shlibpath_overrides_runpath
=yes
10294 freebsd3.
[01]* | freebsdelf3.
[01]*)
10295 shlibpath_overrides_runpath
=yes
10296 hardcode_into_libs
=yes
10298 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10299 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10300 shlibpath_overrides_runpath
=no
10301 hardcode_into_libs
=yes
10303 *) # from 4.6 on, and DragonFly
10304 shlibpath_overrides_runpath
=yes
10305 hardcode_into_libs
=yes
10314 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10315 soname_spec
='${libname}${release}${shared_ext}$major'
10316 shlibpath_var
=LD_LIBRARY_PATH
10317 hardcode_into_libs
=yes
10324 dynamic_linker
="$host_os runtime_loader"
10325 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10326 soname_spec
='${libname}${release}${shared_ext}$major'
10327 shlibpath_var
=LIBRARY_PATH
10328 shlibpath_overrides_runpath
=yes
10329 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10330 hardcode_into_libs
=yes
10333 hpux9
* | hpux10
* | hpux11
*)
10334 # Give a soname corresponding to the major version so that dld.sl refuses to
10335 # link against other versions.
10342 hardcode_into_libs
=yes
10343 dynamic_linker
="$host_os dld.so"
10344 shlibpath_var
=LD_LIBRARY_PATH
10345 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10346 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10347 soname_spec
='${libname}${release}${shared_ext}$major'
10348 if test "X$HPUX_IA64_MODE" = X32
; then
10349 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10351 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10353 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10357 hardcode_into_libs
=yes
10358 dynamic_linker
="$host_os dld.sl"
10359 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10360 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10361 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10362 soname_spec
='${libname}${release}${shared_ext}$major'
10363 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10364 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10368 dynamic_linker
="$host_os dld.sl"
10369 shlibpath_var
=SHLIB_PATH
10370 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10371 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10372 soname_spec
='${libname}${release}${shared_ext}$major'
10375 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10376 postinstall_cmds
='chmod 555 $lib'
10377 # or fails outright, so override atomically:
10378 install_override_mode
=555
10385 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10386 soname_spec
='${libname}${release}${shared_ext}$major'
10387 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10388 shlibpath_var
=LD_LIBRARY_PATH
10389 shlibpath_overrides_runpath
=no
10390 hardcode_into_libs
=yes
10393 irix5
* | irix6
* | nonstopux
*)
10395 nonstopux
*) version_type
=nonstopux
;;
10397 if test "$lt_cv_prog_gnu_ld" = yes; then
10405 soname_spec
='${libname}${release}${shared_ext}$major'
10406 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10408 irix5
* | nonstopux
*)
10409 libsuff
= shlibsuff
=
10412 case $LD in # libtool.m4 will add one of these switches to LD
10413 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10414 libsuff
= shlibsuff
= libmagic
=32-bit;;
10415 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10416 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10417 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10418 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10419 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10423 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10424 shlibpath_overrides_runpath
=no
10425 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10426 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10427 hardcode_into_libs
=yes
10430 # No shared lib support for Linux oldld, aout, or coff.
10431 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10435 # This must be Linux ELF.
10436 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
10440 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10441 soname_spec
='${libname}${release}${shared_ext}$major'
10442 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10443 shlibpath_var
=LD_LIBRARY_PATH
10444 shlibpath_overrides_runpath
=no
10446 # Some binutils ld are patched to set DT_RUNPATH
10447 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10448 $as_echo_n "(cached) " >&6
10450 lt_cv_shlibpath_overrides_runpath
=no
10451 save_LDFLAGS
=$LDFLAGS
10452 save_libdir
=$libdir
10453 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10454 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10456 /* end confdefs.h. */
10466 if ac_fn_c_try_link
"$LINENO"; then :
10467 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
10468 lt_cv_shlibpath_overrides_runpath
=yes
10471 rm -f core conftest.err conftest.
$ac_objext \
10472 conftest
$ac_exeext conftest.
$ac_ext
10473 LDFLAGS
=$save_LDFLAGS
10474 libdir
=$save_libdir
10478 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
10480 # This implies no fast_install, which is unacceptable.
10481 # Some rework will be needed to allow for fast_install
10482 # before this can be enabled.
10483 hardcode_into_libs
=yes
10485 # Append ld.so.conf contents to the search path
10486 if test -f /etc
/ld.so.conf
; then
10487 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' ' '`
10488 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
10491 # We used to test for /lib/ld.so.1 and disable shared libraries on
10492 # powerpc, because MkLinux only supported shared libraries with the
10493 # GNU dynamic linker. Since this was broken with cross compilers,
10494 # most powerpc-linux boxes support dynamic linking these days and
10495 # people can always --disable-shared, the test was removed, and we
10496 # assume the GNU/Linux dynamic linker is in use.
10497 dynamic_linker
='GNU/Linux ld.so'
10504 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10505 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10506 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10507 dynamic_linker
='NetBSD (a.out) ld.so'
10509 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10510 soname_spec
='${libname}${release}${shared_ext}$major'
10511 dynamic_linker
='NetBSD ld.elf_so'
10513 shlibpath_var
=LD_LIBRARY_PATH
10514 shlibpath_overrides_runpath
=yes
10515 hardcode_into_libs
=yes
10520 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10521 shlibpath_var
=LD_LIBRARY_PATH
10522 shlibpath_overrides_runpath
=yes
10529 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10530 soname_spec
='${libname}${release}${shared_ext}$major'
10531 shlibpath_var
=LD_LIBRARY_PATH
10532 shlibpath_overrides_runpath
=no
10533 hardcode_into_libs
=yes
10534 dynamic_linker
='ldqnx.so'
10539 sys_lib_dlsearch_path_spec
="/usr/lib"
10541 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10543 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
10544 *) need_version
=no
;;
10546 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10547 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10548 shlibpath_var
=LD_LIBRARY_PATH
10549 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10551 openbsd2.
[89] | openbsd2.
[89].
*)
10552 shlibpath_overrides_runpath
=no
10555 shlibpath_overrides_runpath
=yes
10559 shlibpath_overrides_runpath
=yes
10564 libname_spec
='$name'
10567 library_names_spec
='$libname${shared_ext} $libname.a'
10568 dynamic_linker
='OS/2 ld.exe'
10569 shlibpath_var
=LIBPATH
10572 osf3
* | osf4
* | osf5
*)
10576 soname_spec
='${libname}${release}${shared_ext}$major'
10577 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10578 shlibpath_var
=LD_LIBRARY_PATH
10579 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10580 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
10591 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10592 soname_spec
='${libname}${release}${shared_ext}$major'
10593 shlibpath_var
=LD_LIBRARY_PATH
10594 shlibpath_overrides_runpath
=yes
10595 hardcode_into_libs
=yes
10596 # ldd complains unless libraries are executable
10597 postinstall_cmds
='chmod +x $lib'
10602 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10603 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10604 shlibpath_var
=LD_LIBRARY_PATH
10605 shlibpath_overrides_runpath
=yes
10606 if test "$with_gnu_ld" = yes; then
10614 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10615 soname_spec
='${libname}${release}${shared_ext}$major'
10616 shlibpath_var
=LD_LIBRARY_PATH
10617 case $host_vendor in
10619 shlibpath_overrides_runpath
=no
10621 runpath_var
=LD_RUN_PATH
10629 shlibpath_overrides_runpath
=no
10630 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
10636 if test -d /usr
/nec
;then
10638 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10639 soname_spec
='$libname${shared_ext}.$major'
10640 shlibpath_var
=LD_LIBRARY_PATH
10644 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
10645 version_type
=freebsd-elf
10648 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10649 soname_spec
='${libname}${release}${shared_ext}$major'
10650 shlibpath_var
=LD_LIBRARY_PATH
10651 shlibpath_overrides_runpath
=yes
10652 hardcode_into_libs
=yes
10653 if test "$with_gnu_ld" = yes; then
10654 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10656 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
10659 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
10663 sys_lib_dlsearch_path_spec
='/usr/lib'
10667 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10671 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10672 shlibpath_var
=LD_LIBRARY_PATH
10673 shlibpath_overrides_runpath
=no
10674 hardcode_into_libs
=yes
10679 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10680 soname_spec
='${libname}${release}${shared_ext}$major'
10681 shlibpath_var
=LD_LIBRARY_PATH
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10689 $as_echo "$dynamic_linker" >&6; }
10690 test "$dynamic_linker" = no
&& can_build_shared
=no
10692 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
10693 if test "$GCC" = yes; then
10694 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10697 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10698 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
10700 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10701 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10796 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10798 if test -n "$hardcode_libdir_flag_spec" ||
10799 test -n "$runpath_var" ||
10800 test "X$hardcode_automatic" = "Xyes" ; then
10802 # We can hardcode non-existent directories.
10803 if test "$hardcode_direct" != no
&&
10804 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10805 # have to relink, otherwise we might link with an installed library
10806 # when we should be linking with a yet-to-be-installed one
10807 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10808 test "$hardcode_minus_L" != no
; then
10809 # Linking always hardcodes the temporary library directory.
10810 hardcode_action
=relink
10812 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10813 hardcode_action
=immediate
10816 # We cannot hardcode anything, or else we can only hardcode existing
10818 hardcode_action
=unsupported
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10821 $as_echo "$hardcode_action" >&6; }
10823 if test "$hardcode_action" = relink ||
10824 test "$inherit_rpath" = yes; then
10825 # Fast installation is not supported
10826 enable_fast_install
=no
10827 elif test "$shlibpath_overrides_runpath" = yes ||
10828 test "$enable_shared" = no
; then
10829 # Fast installation is not necessary
10830 enable_fast_install
=needless
10838 if test "x$enable_dlopen" != xyes
; then
10839 enable_dlopen
=unknown
10840 enable_dlopen_self
=unknown
10841 enable_dlopen_self_static
=unknown
10848 lt_cv_dlopen
="load_add_on"
10850 lt_cv_dlopen_self
=yes
10853 mingw
* | pw32
* | cegcc
*)
10854 lt_cv_dlopen
="LoadLibrary"
10859 lt_cv_dlopen
="dlopen"
10864 # if libdl is installed we need to link against it
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10866 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10867 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10868 $as_echo_n "(cached) " >&6
10870 ac_check_lib_save_LIBS
=$LIBS
10872 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10873 /* end confdefs.h. */
10875 /* Override any GCC internal prototype to avoid an error.
10876 Use char because int might match the return type of a GCC
10877 builtin and then its argument prototype would still apply. */
10890 if ac_fn_c_try_link
"$LINENO"; then :
10891 ac_cv_lib_dl_dlopen
=yes
10893 ac_cv_lib_dl_dlopen
=no
10895 rm -f core conftest.err conftest.
$ac_objext \
10896 conftest
$ac_exeext conftest.
$ac_ext
10897 LIBS
=$ac_check_lib_save_LIBS
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10900 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10901 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
10902 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
10905 lt_cv_dlopen
="dyld"
10907 lt_cv_dlopen_self
=yes
10914 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
10915 if test "x$ac_cv_func_shl_load" = x
""yes; then :
10916 lt_cv_dlopen
="shl_load"
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10919 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10920 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10921 $as_echo_n "(cached) " >&6
10923 ac_check_lib_save_LIBS
=$LIBS
10925 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10926 /* end confdefs.h. */
10928 /* Override any GCC internal prototype to avoid an error.
10929 Use char because int might match the return type of a GCC
10930 builtin and then its argument prototype would still apply. */
10938 return shl_load ();
10943 if ac_fn_c_try_link
"$LINENO"; then :
10944 ac_cv_lib_dld_shl_load
=yes
10946 ac_cv_lib_dld_shl_load
=no
10948 rm -f core conftest.err conftest.
$ac_objext \
10949 conftest
$ac_exeext conftest.
$ac_ext
10950 LIBS
=$ac_check_lib_save_LIBS
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10953 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10954 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
10955 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
10957 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
10958 if test "x$ac_cv_func_dlopen" = x
""yes; then :
10959 lt_cv_dlopen
="dlopen"
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10962 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10963 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10964 $as_echo_n "(cached) " >&6
10966 ac_check_lib_save_LIBS
=$LIBS
10968 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10969 /* end confdefs.h. */
10971 /* Override any GCC internal prototype to avoid an error.
10972 Use char because int might match the return type of a GCC
10973 builtin and then its argument prototype would still apply. */
10986 if ac_fn_c_try_link
"$LINENO"; then :
10987 ac_cv_lib_dl_dlopen
=yes
10989 ac_cv_lib_dl_dlopen
=no
10991 rm -f core conftest.err conftest.
$ac_objext \
10992 conftest
$ac_exeext conftest.
$ac_ext
10993 LIBS
=$ac_check_lib_save_LIBS
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10996 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10997 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
10998 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11001 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11002 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11003 $as_echo_n "(cached) " >&6
11005 ac_check_lib_save_LIBS
=$LIBS
11006 LIBS
="-lsvld $LIBS"
11007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11008 /* end confdefs.h. */
11010 /* Override any GCC internal prototype to avoid an error.
11011 Use char because int might match the return type of a GCC
11012 builtin and then its argument prototype would still apply. */
11025 if ac_fn_c_try_link
"$LINENO"; then :
11026 ac_cv_lib_svld_dlopen
=yes
11028 ac_cv_lib_svld_dlopen
=no
11030 rm -f core conftest.err conftest.
$ac_objext \
11031 conftest
$ac_exeext conftest.
$ac_ext
11032 LIBS
=$ac_check_lib_save_LIBS
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11035 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11036 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
11037 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11040 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11041 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11042 $as_echo_n "(cached) " >&6
11044 ac_check_lib_save_LIBS
=$LIBS
11046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11047 /* end confdefs.h. */
11049 /* Override any GCC internal prototype to avoid an error.
11050 Use char because int might match the return type of a GCC
11051 builtin and then its argument prototype would still apply. */
11059 return dld_link ();
11064 if ac_fn_c_try_link
"$LINENO"; then :
11065 ac_cv_lib_dld_dld_link
=yes
11067 ac_cv_lib_dld_dld_link
=no
11069 rm -f core conftest.err conftest.
$ac_objext \
11070 conftest
$ac_exeext conftest.
$ac_ext
11071 LIBS
=$ac_check_lib_save_LIBS
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11074 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11075 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
11076 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11097 if test "x$lt_cv_dlopen" != xno
; then
11103 case $lt_cv_dlopen in
11105 save_CPPFLAGS
="$CPPFLAGS"
11106 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11108 save_LDFLAGS
="$LDFLAGS"
11109 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11112 LIBS
="$lt_cv_dlopen_libs $LIBS"
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11115 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11116 if test "${lt_cv_dlopen_self+set}" = set; then :
11117 $as_echo_n "(cached) " >&6
11119 if test "$cross_compiling" = yes; then :
11120 lt_cv_dlopen_self
=cross
11122 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11123 lt_status
=$lt_dlunknown
11124 cat > conftest.
$ac_ext <<_LT_EOF
11125 #line 11125 "configure"
11126 #include "confdefs.h"
11135 # define LT_DLGLOBAL RTLD_GLOBAL
11138 # define LT_DLGLOBAL DL_GLOBAL
11140 # define LT_DLGLOBAL 0
11144 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11145 find out it does not work in some platform. */
11146 #ifndef LT_DLLAZY_OR_NOW
11148 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11151 # define LT_DLLAZY_OR_NOW DL_LAZY
11154 # define LT_DLLAZY_OR_NOW RTLD_NOW
11157 # define LT_DLLAZY_OR_NOW DL_NOW
11159 # define LT_DLLAZY_OR_NOW 0
11166 /* When -fvisbility=hidden is used, assume the code has been annotated
11167 correspondingly for the symbols needed. */
11168 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11169 void fnord () __attribute__((visibility("default")));
11172 void fnord () { int i=42; }
11175 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11176 int status = $lt_dlunknown;
11180 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11183 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11184 else puts (dlerror ());
11186 /* dlclose (self); */
11194 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11195 (eval $ac_link) 2>&5
11197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11198 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11199 (.
/conftest
; exit; ) >&5 2>/dev
/null
11201 case x
$lt_status in
11202 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11203 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11204 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11207 # compilation failed
11208 lt_cv_dlopen_self
=no
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11216 $as_echo "$lt_cv_dlopen_self" >&6; }
11218 if test "x$lt_cv_dlopen_self" = xyes
; then
11219 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11221 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11222 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11223 $as_echo_n "(cached) " >&6
11225 if test "$cross_compiling" = yes; then :
11226 lt_cv_dlopen_self_static
=cross
11228 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11229 lt_status
=$lt_dlunknown
11230 cat > conftest.
$ac_ext <<_LT_EOF
11231 #line 11231 "configure"
11232 #include "confdefs.h"
11241 # define LT_DLGLOBAL RTLD_GLOBAL
11244 # define LT_DLGLOBAL DL_GLOBAL
11246 # define LT_DLGLOBAL 0
11250 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11251 find out it does not work in some platform. */
11252 #ifndef LT_DLLAZY_OR_NOW
11254 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11257 # define LT_DLLAZY_OR_NOW DL_LAZY
11260 # define LT_DLLAZY_OR_NOW RTLD_NOW
11263 # define LT_DLLAZY_OR_NOW DL_NOW
11265 # define LT_DLLAZY_OR_NOW 0
11272 /* When -fvisbility=hidden is used, assume the code has been annotated
11273 correspondingly for the symbols needed. */
11274 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11275 void fnord () __attribute__((visibility("default")));
11278 void fnord () { int i=42; }
11281 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11282 int status = $lt_dlunknown;
11286 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11289 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11290 else puts (dlerror ());
11292 /* dlclose (self); */
11300 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11301 (eval $ac_link) 2>&5
11303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11304 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11305 (.
/conftest
; exit; ) >&5 2>/dev
/null
11307 case x
$lt_status in
11308 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11309 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11310 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11313 # compilation failed
11314 lt_cv_dlopen_self_static
=no
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11322 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11325 CPPFLAGS
="$save_CPPFLAGS"
11326 LDFLAGS
="$save_LDFLAGS"
11331 case $lt_cv_dlopen_self in
11332 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11333 *) enable_dlopen_self
=unknown
;;
11336 case $lt_cv_dlopen_self_static in
11337 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11338 *) enable_dlopen_self_static
=unknown
;;
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11361 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11362 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11363 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11364 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11366 $as_echo "yes" >&6; }
11368 # FIXME - insert some real tests, host_os isn't really good enough
11371 if test -n "$STRIP" ; then
11372 striplib
="$STRIP -x"
11373 old_striplib
="$STRIP -S"
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11375 $as_echo "yes" >&6; }
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11378 $as_echo "no" >&6; }
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11383 $as_echo "no" >&6; }
11399 # Report which library types will actually be built
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11401 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11403 $as_echo "$can_build_shared" >&6; }
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11406 $as_echo_n "checking whether to build shared libraries... " >&6; }
11407 test "$can_build_shared" = "no" && enable_shared
=no
11409 # On AIX, shared libraries and static libraries use the same namespace, and
11410 # are all built from PIC.
11413 test "$enable_shared" = yes && enable_static
=no
11414 if test -n "$RANLIB"; then
11415 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11416 postinstall_cmds
='$RANLIB $lib'
11421 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11422 test "$enable_shared" = yes && enable_static
=no
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11427 $as_echo "$enable_shared" >&6; }
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11430 $as_echo_n "checking whether to build static libraries... " >&6; }
11431 # Make sure either enable_shared or enable_static is yes.
11432 test "$enable_shared" = yes || enable_static
=yes
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11434 $as_echo "$enable_static" >&6; }
11441 ac_cpp
='$CPP $CPPFLAGS'
11442 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11443 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11444 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11460 # Source file extension for Go test sources.
11463 # Object file extension for compiled Go test sources.
11467 # Code to be used in simple compile tests
11468 lt_simple_compile_test_code
="package main; func main() { }"
11470 # Code to be used in simple link tests
11471 lt_simple_link_test_code
='package main; func main() { }'
11473 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11480 # If no C compiler was specified, use CC.
11483 # If no C compiler flags were specified, use CFLAGS.
11484 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
11486 # Allow CC to be a program name with arguments.
11490 # save warnings/boilerplate of simple test code
11491 ac_outfile
=conftest.
$ac_objext
11492 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
11493 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
11494 _lt_compiler_boilerplate
=`cat conftest.err`
11497 ac_outfile
=conftest.
$ac_objext
11498 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
11499 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
11500 _lt_linker_boilerplate
=`cat conftest.err`
11504 # Allow CC to be a program name with arguments.
11512 for cc_temp
in $compiler""; do
11514 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
11515 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
11520 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11523 # Go did not exist at the time GCC didn't implicitly link libc in.
11524 archive_cmds_need_lc_GO
=no
11526 old_archive_cmds_GO
=$old_archive_cmds
11529 ## There is no encapsulation within the following macros, do not change
11530 ## the running order or otherwise move them around unless you know exactly
11531 ## what you are doing...
11532 if test -n "$compiler"; then
11534 lt_prog_compiler_no_builtin_flag_GO
=
11536 if test "$GCC" = yes; then
11537 case $cc_basename in
11539 lt_prog_compiler_no_builtin_flag_GO
=' -Xcompiler -fno-builtin' ;;
11541 lt_prog_compiler_no_builtin_flag_GO
=' -fno-builtin' ;;
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11545 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11546 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11547 $as_echo_n "(cached) " >&6
11549 lt_cv_prog_compiler_rtti_exceptions
=no
11550 ac_outfile
=conftest.
$ac_objext
11551 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
11552 lt_compiler_flag
="-fno-rtti -fno-exceptions"
11553 # Insert the option either (1) after the last *FLAGS variable, or
11554 # (2) before a word containing "conftest.", or (3) at the end.
11555 # Note that $ac_compile itself does not contain backslashes and begins
11556 # with a dollar sign (not a hyphen), so the echo should work correctly.
11557 # The option is referenced via a variable to avoid confusing sed.
11558 lt_compile
=`echo "$ac_compile" | $SED \
11559 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11560 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11561 -e 's:$: $lt_compiler_flag:'`
11562 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11563 (eval "$lt_compile" 2>conftest.err
)
11565 cat conftest.err
>&5
11566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567 if (exit $ac_status) && test -s "$ac_outfile"; then
11568 # The compiler can only warn and ignore the option if not recognized
11569 # So say no if there are warnings other than the usual output.
11570 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
11571 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
11572 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
11573 lt_cv_prog_compiler_rtti_exceptions
=yes
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11580 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11582 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
11583 lt_prog_compiler_no_builtin_flag_GO
="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11592 lt_prog_compiler_wl_GO
=
11593 lt_prog_compiler_pic_GO
=
11594 lt_prog_compiler_static_GO
=
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11597 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11599 if test "$GCC" = yes; then
11600 lt_prog_compiler_wl_GO
='-Wl,'
11601 lt_prog_compiler_static_GO
='-static'
11605 # All AIX code is PIC.
11606 if test "$host_cpu" = ia64
; then
11607 # AIX 5 now supports IA64 processor
11608 lt_prog_compiler_static_GO
='-Bstatic'
11615 # see comment about AmigaOS4 .so support
11616 lt_prog_compiler_pic_GO
='-fPIC'
11619 # FIXME: we need at least 68020 code to build shared libraries, but
11620 # adding the `-m68020' flag to GCC prevents building anything better,
11622 lt_prog_compiler_pic_GO
='-m68020 -resident32 -malways-restore-a4'
11627 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
11628 # PIC is the default for these OSes.
11631 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
11632 # This hack is so that the source file can tell whether it is being
11633 # built for inclusion in a dll (and should export symbols for example).
11634 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11635 # (--disable-auto-import) libraries
11636 lt_prog_compiler_pic_GO
='-DDLL_EXPORT'
11639 darwin
* | rhapsody
*)
11640 # PIC is the default on this platform
11641 # Common symbols not allowed in MH_DYLIB files
11642 lt_prog_compiler_pic_GO
='-fno-common'
11646 # PIC is the default for Haiku.
11647 # The "-static" flag exists, but is broken.
11648 lt_prog_compiler_static_GO
=
11652 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11653 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11654 # sets the default TLS model and affects inlining.
11660 lt_prog_compiler_pic_GO
='-fPIC'
11666 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11667 # Instead, we relocate shared libraries at runtime.
11671 # Just because we use GCC doesn't mean we suddenly get shared libraries
11672 # on systems that don't support them.
11673 lt_prog_compiler_can_build_shared_GO
=no
11678 # QNX uses GNU C++, but need to define -shared option too, otherwise
11679 # it will coredump.
11680 lt_prog_compiler_pic_GO
='-fPIC -shared'
11684 if test -d /usr
/nec
; then
11685 lt_prog_compiler_pic_GO
=-Kconform_pic
11690 lt_prog_compiler_pic_GO
='-fPIC'
11694 case $cc_basename in
11695 nvcc
*) # Cuda Compiler Driver 2.2
11696 lt_prog_compiler_wl_GO
='-Xlinker '
11697 lt_prog_compiler_pic_GO
='-Xcompiler -fPIC'
11701 # PORTME Check for flag to pass linker flags through the system compiler.
11704 lt_prog_compiler_wl_GO
='-Wl,'
11705 if test "$host_cpu" = ia64
; then
11706 # AIX 5 now supports IA64 processor
11707 lt_prog_compiler_static_GO
='-Bstatic'
11709 lt_prog_compiler_static_GO
='-bnso -bI:/lib/syscalls.exp'
11713 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
11714 # This hack is so that the source file can tell whether it is being
11715 # built for inclusion in a dll (and should export symbols for example).
11716 lt_prog_compiler_pic_GO
='-DDLL_EXPORT'
11719 hpux9
* | hpux10
* | hpux11
*)
11720 lt_prog_compiler_wl_GO
='-Wl,'
11721 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11722 # not for PA HP-UX.
11728 lt_prog_compiler_pic_GO
='+Z'
11731 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11732 lt_prog_compiler_static_GO
='${wl}-a ${wl}archive'
11735 irix5
* | irix6
* | nonstopux
*)
11736 lt_prog_compiler_wl_GO
='-Wl,'
11737 # PIC (with -KPIC) is the default.
11738 lt_prog_compiler_static_GO
='-non_shared'
11741 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
11742 case $cc_basename in
11743 # old Intel for x86_64 which still supported -KPIC.
11745 lt_prog_compiler_wl_GO
='-Wl,'
11746 lt_prog_compiler_pic_GO
='-KPIC'
11747 lt_prog_compiler_static_GO
='-static'
11749 # icc used to be incompatible with GCC.
11750 # ICC 10 doesn't accept -KPIC any more.
11752 lt_prog_compiler_wl_GO
='-Wl,'
11753 lt_prog_compiler_pic_GO
='-fPIC'
11754 lt_prog_compiler_static_GO
='-static'
11756 # Lahey Fortran 8.1.
11758 lt_prog_compiler_wl_GO
='-Wl,'
11759 lt_prog_compiler_pic_GO
='--shared'
11760 lt_prog_compiler_static_GO
='--static'
11762 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
11763 # Portland Group compilers (*not* the Pentium gcc compiler,
11764 # which looks to be a dead project)
11765 lt_prog_compiler_wl_GO
='-Wl,'
11766 lt_prog_compiler_pic_GO
='-fpic'
11767 lt_prog_compiler_static_GO
='-Bstatic'
11770 lt_prog_compiler_wl_GO
='-Wl,'
11771 # All Alpha code is PIC.
11772 lt_prog_compiler_static_GO
='-non_shared'
11774 xl
* | bgxl
* | bgf
* | mpixl
*)
11775 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11776 lt_prog_compiler_wl_GO
='-Wl,'
11777 lt_prog_compiler_pic_GO
='-qpic'
11778 lt_prog_compiler_static_GO
='-qstaticlink'
11781 case `$CC -V 2>&1 | sed 5q` in
11782 *Sun\ F
* |
*Sun
*Fortran
*)
11783 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11784 lt_prog_compiler_pic_GO
='-KPIC'
11785 lt_prog_compiler_static_GO
='-Bstatic'
11786 lt_prog_compiler_wl_GO
=''
11790 lt_prog_compiler_pic_GO
='-KPIC'
11791 lt_prog_compiler_static_GO
='-Bstatic'
11792 lt_prog_compiler_wl_GO
='-Wl,'
11800 lt_prog_compiler_pic_GO
='-KPIC'
11801 lt_prog_compiler_static_GO
='-Bstatic'
11805 # QNX uses GNU C++, but need to define -shared option too, otherwise
11806 # it will coredump.
11807 lt_prog_compiler_pic_GO
='-fPIC -shared'
11810 osf3
* | osf4
* | osf5
*)
11811 lt_prog_compiler_wl_GO
='-Wl,'
11812 # All OSF/1 code is PIC.
11813 lt_prog_compiler_static_GO
='-non_shared'
11817 lt_prog_compiler_static_GO
='-non_shared'
11821 lt_prog_compiler_pic_GO
='-KPIC'
11822 lt_prog_compiler_static_GO
='-Bstatic'
11823 case $cc_basename in
11824 f77
* | f90
* | f95
*)
11825 lt_prog_compiler_wl_GO
='-Qoption ld ';;
11827 lt_prog_compiler_wl_GO
='-Wl,';;
11832 lt_prog_compiler_wl_GO
='-Qoption ld '
11833 lt_prog_compiler_pic_GO
='-PIC'
11834 lt_prog_compiler_static_GO
='-Bstatic'
11837 sysv4 | sysv4.2uw2
* | sysv4.3
*)
11838 lt_prog_compiler_wl_GO
='-Wl,'
11839 lt_prog_compiler_pic_GO
='-KPIC'
11840 lt_prog_compiler_static_GO
='-Bstatic'
11844 if test -d /usr
/nec
;then
11845 lt_prog_compiler_pic_GO
='-Kconform_pic'
11846 lt_prog_compiler_static_GO
='-Bstatic'
11850 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
11851 lt_prog_compiler_wl_GO
='-Wl,'
11852 lt_prog_compiler_pic_GO
='-KPIC'
11853 lt_prog_compiler_static_GO
='-Bstatic'
11857 lt_prog_compiler_wl_GO
='-Wl,'
11858 lt_prog_compiler_can_build_shared_GO
=no
11862 lt_prog_compiler_pic_GO
='-pic'
11863 lt_prog_compiler_static_GO
='-Bstatic'
11867 lt_prog_compiler_can_build_shared_GO
=no
11873 # For platforms which do not support PIC, -DPIC is meaningless:
11875 lt_prog_compiler_pic_GO
=
11878 lt_prog_compiler_pic_GO
="$lt_prog_compiler_pic_GO"
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
11882 $as_echo "$lt_prog_compiler_pic_GO" >&6; }
11887 # Check to make sure the PIC flag actually works.
11889 if test -n "$lt_prog_compiler_pic_GO"; then
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
11891 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
11892 if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
11893 $as_echo_n "(cached) " >&6
11895 lt_cv_prog_compiler_pic_works_GO
=no
11896 ac_outfile
=conftest.
$ac_objext
11897 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
11898 lt_compiler_flag
="$lt_prog_compiler_pic_GO"
11899 # Insert the option either (1) after the last *FLAGS variable, or
11900 # (2) before a word containing "conftest.", or (3) at the end.
11901 # Note that $ac_compile itself does not contain backslashes and begins
11902 # with a dollar sign (not a hyphen), so the echo should work correctly.
11903 # The option is referenced via a variable to avoid confusing sed.
11904 lt_compile
=`echo "$ac_compile" | $SED \
11905 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11906 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11907 -e 's:$: $lt_compiler_flag:'`
11908 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11909 (eval "$lt_compile" 2>conftest.err
)
11911 cat conftest.err
>&5
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 if (exit $ac_status) && test -s "$ac_outfile"; then
11914 # The compiler can only warn and ignore the option if not recognized
11915 # So say no if there are warnings other than the usual output.
11916 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
11917 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
11918 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
11919 lt_cv_prog_compiler_pic_works_GO
=yes
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
11926 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
11928 if test x
"$lt_cv_prog_compiler_pic_works_GO" = xyes
; then
11929 case $lt_prog_compiler_pic_GO in
11931 *) lt_prog_compiler_pic_GO
=" $lt_prog_compiler_pic_GO" ;;
11934 lt_prog_compiler_pic_GO
=
11935 lt_prog_compiler_can_build_shared_GO
=no
11943 # Check to make sure the static flag actually works.
11945 wl
=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_GO\"
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11947 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11948 if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
11949 $as_echo_n "(cached) " >&6
11951 lt_cv_prog_compiler_static_works_GO
=no
11952 save_LDFLAGS
="$LDFLAGS"
11953 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
11954 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
11955 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
11956 # The linker can only warn and ignore the option if not recognized
11957 # So say no if there are warnings
11958 if test -s conftest.err
; then
11959 # Append any errors to the config.log.
11960 cat conftest.err
1>&5
11961 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
11962 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
11963 if diff conftest.exp conftest.er2
>/dev
/null
; then
11964 lt_cv_prog_compiler_static_works_GO
=yes
11967 lt_cv_prog_compiler_static_works_GO
=yes
11971 LDFLAGS
="$save_LDFLAGS"
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
11975 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
11977 if test x
"$lt_cv_prog_compiler_static_works_GO" = xyes
; then
11980 lt_prog_compiler_static_GO
=
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11987 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11988 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11989 $as_echo_n "(cached) " >&6
11991 lt_cv_prog_compiler_c_o_GO
=no
11992 $RM -r conftest
2>/dev
/null
11996 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
11998 lt_compiler_flag
="-o out/conftest2.$ac_objext"
11999 # Insert the option either (1) after the last *FLAGS variable, or
12000 # (2) before a word containing "conftest.", or (3) at the end.
12001 # Note that $ac_compile itself does not contain backslashes and begins
12002 # with a dollar sign (not a hyphen), so the echo should work correctly.
12003 lt_compile
=`echo "$ac_compile" | $SED \
12004 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12005 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12006 -e 's:$: $lt_compiler_flag:'`
12007 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12008 (eval "$lt_compile" 2>out
/conftest.err
)
12010 cat out
/conftest.err
>&5
12011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12014 # The compiler can only warn and ignore the option if not recognized
12015 # So say no if there are warnings
12016 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12017 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12018 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12019 lt_cv_prog_compiler_c_o_GO
=yes
12024 # SGI C++ compiler will create directory out/ii_files/ for
12025 # template instantiation
12026 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12027 $RM out
/* && rmdir out
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12034 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12039 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12040 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
12041 $as_echo_n "(cached) " >&6
12043 lt_cv_prog_compiler_c_o_GO
=no
12044 $RM -r conftest
2>/dev
/null
12048 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12050 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12051 # Insert the option either (1) after the last *FLAGS variable, or
12052 # (2) before a word containing "conftest.", or (3) at the end.
12053 # Note that $ac_compile itself does not contain backslashes and begins
12054 # with a dollar sign (not a hyphen), so the echo should work correctly.
12055 lt_compile
=`echo "$ac_compile" | $SED \
12056 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12057 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12058 -e 's:$: $lt_compiler_flag:'`
12059 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12060 (eval "$lt_compile" 2>out
/conftest.err
)
12062 cat out
/conftest.err
>&5
12063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12066 # The compiler can only warn and ignore the option if not recognized
12067 # So say no if there are warnings
12068 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12069 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12070 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12071 lt_cv_prog_compiler_c_o_GO
=yes
12076 # SGI C++ compiler will create directory out/ii_files/ for
12077 # template instantiation
12078 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12079 $RM out
/* && rmdir out
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12086 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12091 hard_links
="nottested"
12092 if test "$lt_cv_prog_compiler_c_o_GO" = no
&& test "$need_locks" != no
; then
12093 # do not overwrite the value of need_locks provided by the user
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12095 $as_echo_n "checking if we can lock with hard links... " >&6; }
12098 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12100 ln conftest.a conftest.b
2>&5 || hard_links
=no
12101 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12103 $as_echo "$hard_links" >&6; }
12104 if test "$hard_links" = no
; then
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12106 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12116 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12119 allow_undefined_flag_GO
=
12120 always_export_symbols_GO
=no
12122 archive_expsym_cmds_GO
=
12123 compiler_needs_object_GO
=no
12124 enable_shared_with_static_runtimes_GO
=no
12125 export_dynamic_flag_spec_GO
=
12126 export_symbols_cmds_GO
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12127 hardcode_automatic_GO
=no
12128 hardcode_direct_GO
=no
12129 hardcode_direct_absolute_GO
=no
12130 hardcode_libdir_flag_spec_GO
=
12131 hardcode_libdir_flag_spec_ld_GO
=
12132 hardcode_libdir_separator_GO
=
12133 hardcode_minus_L_GO
=no
12134 hardcode_shlibpath_var_GO
=unsupported
12135 inherit_rpath_GO
=no
12136 link_all_deplibs_GO
=unknown
12138 module_expsym_cmds_GO
=
12139 old_archive_from_new_cmds_GO
=
12140 old_archive_from_expsyms_cmds_GO
=
12141 thread_safe_flag_spec_GO
=
12142 whole_archive_flag_spec_GO
=
12143 # include_expsyms should be a list of space-separated symbols to be *always*
12144 # included in the symbol list
12145 include_expsyms_GO
=
12146 # exclude_expsyms can be an extended regexp of symbols to exclude
12147 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12148 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12149 # as well as any symbol that contains `d'.
12150 exclude_expsyms_GO
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12151 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12152 # platforms (ab)use it in PIC code, but their linkers get confused if
12153 # the symbol is explicitly referenced. Since portable code cannot
12154 # rely on this symbol name, it's probably fine to never include it in
12155 # preloaded symbol tables.
12156 # Exclude shared library initialization/finalization symbols.
12157 extract_expsyms_cmds
=
12160 cygwin
* | mingw
* | pw32
* | cegcc
*)
12161 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12162 # When not using gcc, we currently assume that we are using
12163 # Microsoft Visual C++.
12164 if test "$GCC" != yes; then
12169 # we just hope/assume this is gcc and not c89 (= MSVC++)
12179 # On some targets, GNU ld is compatible enough with the native linker
12180 # that we're better off using the native interface for both.
12181 lt_use_gnu_ld_interface
=no
12182 if test "$with_gnu_ld" = yes; then
12185 # The AIX port of GNU ld has always aspired to compatibility
12186 # with the native linker. However, as the warning in the GNU ld
12187 # block says, versions before 2.19.5* couldn't really create working
12188 # shared libraries, regardless of the interface used.
12189 case `$LD -v 2>&1` in
12190 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
12191 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
12192 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
12194 lt_use_gnu_ld_interface
=yes
12199 lt_use_gnu_ld_interface
=yes
12204 if test "$lt_use_gnu_ld_interface" = yes; then
12205 # If archive_cmds runs LD, not CC, wlarc should be empty
12208 # Set some defaults for GNU ld with shared library support. These
12209 # are reset later if shared libraries are not supported. Putting them
12210 # here allows them to be overridden if necessary.
12211 runpath_var
=LD_RUN_PATH
12212 hardcode_libdir_flag_spec_GO
='${wl}-rpath ${wl}$libdir'
12213 export_dynamic_flag_spec_GO
='${wl}--export-dynamic'
12214 # ancient GNU ld didn't support --whole-archive et. al.
12215 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
12216 whole_archive_flag_spec_GO
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12218 whole_archive_flag_spec_GO
=
12220 supports_anon_versioning
=no
12221 case `$LD -v 2>&1` in
12222 *GNU\ gold
*) supports_anon_versioning
=yes ;;
12223 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
12224 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
12225 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
12226 *\
2.11.
*) ;; # other 2.11 versions
12227 *) supports_anon_versioning
=yes ;;
12230 # See if GNU ld supports shared libraries.
12233 # On AIX/PPC, the GNU linker is very broken
12234 if test "$host_cpu" != ia64
; then
12238 *** Warning: the GNU linker, at least up to release 2.19, is reported
12239 *** to be unable to reliably create shared libraries on AIX.
12240 *** Therefore, libtool is disabling shared libraries support. If you
12241 *** really care for shared libraries, you may want to install binutils
12242 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12243 *** You will then need to restart the configuration process.
12252 # see comment about AmigaOS4 .so support
12253 archive_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12254 archive_expsym_cmds_GO
=''
12257 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)'
12258 hardcode_libdir_flag_spec_GO
='-L$libdir'
12259 hardcode_minus_L_GO
=yes
12265 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12266 allow_undefined_flag_GO
=unsupported
12267 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12268 # support --undefined. This deserves some investigation. FIXME
12269 archive_cmds_GO
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12275 cygwin
* | mingw
* | pw32
* | cegcc
*)
12276 # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12277 # as there is no search path for DLLs.
12278 hardcode_libdir_flag_spec_GO
='-L$libdir'
12279 export_dynamic_flag_spec_GO
='${wl}--export-all-symbols'
12280 allow_undefined_flag_GO
=unsupported
12281 always_export_symbols_GO
=no
12282 enable_shared_with_static_runtimes_GO
=yes
12283 export_symbols_cmds_GO
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12285 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
12286 archive_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12287 # If the export-symbols file already is a .def file (1st line
12288 # is EXPORTS), use it as is; otherwise, prepend...
12289 archive_expsym_cmds_GO
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12290 cp $export_symbols $output_objdir/$soname.def;
12292 echo EXPORTS > $output_objdir/$soname.def;
12293 cat $export_symbols >> $output_objdir/$soname.def;
12295 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12302 archive_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12303 link_all_deplibs_GO
=yes
12307 hardcode_direct_GO
=no
12308 hardcode_shlibpath_var_GO
=no
12309 hardcode_libdir_flag_spec_GO
='${wl}-rpath,$libdir'
12310 export_dynamic_flag_spec_GO
='${wl}-E'
12311 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12312 # Instead, shared libraries are loaded at an image base (0x10000000 by
12313 # default) and relocated if they conflict, which is a slow very memory
12314 # consuming and fragmenting process. To avoid this, we pick a random,
12315 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12316 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12317 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'
12318 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'
12321 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
12323 if test "$host_os" = linux-dietlibc
; then
12324 case $cc_basename in
12325 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
12328 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
12329 && test "$tmp_diet" = no
12332 tmp_sharedflag
='-shared'
12333 case $cc_basename,$host_cpu in
12334 pgcc
*) # Portland Group C compiler
12335 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'
12336 tmp_addflag
=' $pic_flag'
12338 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
12339 # Portland Group f77 and f90 compilers
12340 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'
12341 tmp_addflag
=' $pic_flag -Mnomain' ;;
12342 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
12343 tmp_addflag
=' -i_dynamic' ;;
12344 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
12345 tmp_addflag
=' -i_dynamic -nofor_main' ;;
12346 ifc
* | ifort
*) # Intel Fortran compiler
12347 tmp_addflag
=' -nofor_main' ;;
12348 lf95
*) # Lahey Fortran 8.1
12349 whole_archive_flag_spec_GO
=
12350 tmp_sharedflag
='--shared' ;;
12351 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12352 tmp_sharedflag
='-qmkshrobj'
12354 nvcc
*) # Cuda Compiler Driver 2.2
12355 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'
12356 compiler_needs_object_GO
=yes
12359 case `$CC -V 2>&1 | sed 5q` in
12360 *Sun\ C
*) # Sun C 5.9
12361 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'
12362 compiler_needs_object_GO
=yes
12363 tmp_sharedflag
='-G' ;;
12364 *Sun\ F
*) # Sun Fortran 8.3
12365 tmp_sharedflag
='-G' ;;
12367 archive_cmds_GO
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12369 if test "x$supports_anon_versioning" = xyes
; then
12370 archive_expsym_cmds_GO
='echo "{ global:" > $output_objdir/$libname.ver~
12371 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12372 echo "local: *; };" >> $output_objdir/$libname.ver~
12373 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12376 case $cc_basename in
12377 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
12378 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12379 whole_archive_flag_spec_GO
='--whole-archive$convenience --no-whole-archive'
12380 hardcode_libdir_flag_spec_GO
=
12381 hardcode_libdir_flag_spec_ld_GO
='-rpath $libdir'
12382 archive_cmds_GO
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12383 if test "x$supports_anon_versioning" = xyes
; then
12384 archive_expsym_cmds_GO
='echo "{ global:" > $output_objdir/$libname.ver~
12385 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12386 echo "local: *; };" >> $output_objdir/$libname.ver~
12387 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12397 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
12398 archive_cmds_GO
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12401 archive_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12402 archive_expsym_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12407 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
12411 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12412 *** create shared libraries on Solaris systems. Therefore, libtool
12413 *** is disabling shared libraries support. We urge you to upgrade GNU
12414 *** binutils to release 2.9.1 or newer. Another option is to modify
12415 *** your PATH or compiler configuration so that the native linker is
12416 *** used, and then restart.
12419 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12420 archive_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12421 archive_expsym_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12427 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
12428 case `$LD -v 2>&1` in
12429 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
12433 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12434 *** reliably create shared libraries on SCO systems. Therefore, libtool
12435 *** is disabling shared libraries support. We urge you to upgrade GNU
12436 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12437 *** your PATH or compiler configuration so that the native linker is
12438 *** used, and then restart.
12443 # For security reasons, it is highly recommended that you always
12444 # use absolute paths for naming shared libraries, and exclude the
12445 # DT_RUNPATH tag from executables and libraries. But doing so
12446 # requires that you compile everything twice, which is a pain.
12447 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12448 hardcode_libdir_flag_spec_GO
='${wl}-rpath ${wl}$libdir'
12449 archive_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12450 archive_expsym_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12459 archive_cmds_GO
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12461 hardcode_direct_GO
=yes
12462 hardcode_shlibpath_var_GO
=no
12466 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12467 archive_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12468 archive_expsym_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12475 if test "$ld_shlibs_GO" = no
; then
12477 hardcode_libdir_flag_spec_GO
=
12478 export_dynamic_flag_spec_GO
=
12479 whole_archive_flag_spec_GO
=
12482 # PORTME fill in a description of your system's linker (not GNU ld)
12485 allow_undefined_flag_GO
=unsupported
12486 always_export_symbols_GO
=yes
12487 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'
12488 # Note: this linker hardcodes the directories in LIBPATH if there
12489 # are no directories specified by -L.
12490 hardcode_minus_L_GO
=yes
12491 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12492 # Neither direct hardcoding nor static linking is supported with a
12494 hardcode_direct_GO
=unsupported
12499 if test "$host_cpu" = ia64
; then
12500 # On IA64, the linker does run time linking by default, so we don't
12501 # have to do anything special.
12502 aix_use_runtimelinking
=no
12503 exp_sym_flag
='-Bexport'
12506 # If we're using GNU nm, then we don't want the "-C" option.
12507 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12508 # Also, AIX nm treats weak defined symbols like other global
12509 # defined symbols, whereas GNU nm marks them as "W".
12510 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
12511 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'
12513 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'
12515 aix_use_runtimelinking
=no
12517 # Test if we are trying to use run time linking or normal
12518 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12519 # need to do runtime linking.
12520 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
12521 for ld_flag
in $LDFLAGS; do
12522 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
12523 aix_use_runtimelinking
=yes
12530 exp_sym_flag
='-bexport'
12531 no_entry_flag
='-bnoentry'
12534 # When large executables or shared objects are built, AIX ld can
12535 # have problems creating the table of contents. If linking a library
12536 # or program results in "error TOC overflow" add -mminimal-toc to
12537 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12538 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12541 hardcode_direct_GO
=yes
12542 hardcode_direct_absolute_GO
=yes
12543 hardcode_libdir_separator_GO
=':'
12544 link_all_deplibs_GO
=yes
12545 file_list_spec_GO
='${wl}-f,'
12547 if test "$GCC" = yes; then
12548 case $host_os in aix4.
[012]|aix4.
[012].
*)
12549 # We only want to do this on AIX 4.2 and lower, the check
12550 # below for broken collect2 doesn't work under 4.3+
12551 collect2name
=`${CC} -print-prog-name=collect2`
12552 if test -f "$collect2name" &&
12553 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
12555 # We have reworked collect2
12558 # We have old collect2
12559 hardcode_direct_GO
=unsupported
12560 # It fails to find uninstalled libraries when the uninstalled
12561 # path is not listed in the libpath. Setting hardcode_minus_L
12562 # to unsupported forces relinking
12563 hardcode_minus_L_GO
=yes
12564 hardcode_libdir_flag_spec_GO
='-L$libdir'
12565 hardcode_libdir_separator_GO
=
12569 shared_flag
='-shared'
12570 if test "$aix_use_runtimelinking" = yes; then
12571 shared_flag
="$shared_flag "'${wl}-G'
12575 if test "$host_cpu" = ia64
; then
12576 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12577 # chokes on -Wl,-G. The following line is correct:
12580 if test "$aix_use_runtimelinking" = yes; then
12581 shared_flag
='${wl}-G'
12583 shared_flag
='${wl}-bM:SRE'
12588 export_dynamic_flag_spec_GO
='${wl}-bexpall'
12589 # It seems that -bexpall does not export symbols beginning with
12590 # underscore (_), so it is better to generate a list of symbols to export.
12591 always_export_symbols_GO
=yes
12592 if test "$aix_use_runtimelinking" = yes; then
12593 # Warning - without using the other runtime loading flags (-brtl),
12594 # -berok will link without error, but may produce a broken library.
12595 allow_undefined_flag_GO
='-berok'
12596 # Determine the default libpath from the value encoded in an
12597 # empty executable.
12598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12599 /* end confdefs.h. */
12609 if ac_fn_c_try_link
"$LINENO"; then :
12611 lt_aix_libpath_sed
='
12612 /Import File Strings/,/^$/ {
12618 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12619 # Check for a 64-bit object if we didn't find anything.
12620 if test -z "$aix_libpath"; then
12621 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12624 rm -f core conftest.err conftest.
$ac_objext \
12625 conftest
$ac_exeext conftest.
$ac_ext
12626 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
12628 hardcode_libdir_flag_spec_GO
='${wl}-blibpath:$libdir:'"$aix_libpath"
12629 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"
12631 if test "$host_cpu" = ia64
; then
12632 hardcode_libdir_flag_spec_GO
='${wl}-R $libdir:/usr/lib:/lib'
12633 allow_undefined_flag_GO
="-z nodefs"
12634 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"
12636 # Determine the default libpath from the value encoded in an
12637 # empty executable.
12638 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12639 /* end confdefs.h. */
12649 if ac_fn_c_try_link
"$LINENO"; then :
12651 lt_aix_libpath_sed
='
12652 /Import File Strings/,/^$/ {
12658 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12659 # Check for a 64-bit object if we didn't find anything.
12660 if test -z "$aix_libpath"; then
12661 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12664 rm -f core conftest.err conftest.
$ac_objext \
12665 conftest
$ac_exeext conftest.
$ac_ext
12666 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
12668 hardcode_libdir_flag_spec_GO
='${wl}-blibpath:$libdir:'"$aix_libpath"
12669 # Warning - without using the other run time loading flags,
12670 # -berok will link without error, but may produce a broken library.
12671 no_undefined_flag_GO
=' ${wl}-bernotok'
12672 allow_undefined_flag_GO
=' ${wl}-berok'
12673 if test "$with_gnu_ld" = yes; then
12674 # We only use this code for GNU lds that support --whole-archive.
12675 whole_archive_flag_spec_GO
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12677 # Exported symbols can be pulled into shared objects from archives
12678 whole_archive_flag_spec_GO
='$convenience'
12680 archive_cmds_need_lc_GO
=yes
12681 # This is similar to how AIX traditionally builds its shared libraries.
12682 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'
12690 # see comment about AmigaOS4 .so support
12691 archive_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12692 archive_expsym_cmds_GO
=''
12695 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)'
12696 hardcode_libdir_flag_spec_GO
='-L$libdir'
12697 hardcode_minus_L_GO
=yes
12703 export_dynamic_flag_spec_GO
=-rdynamic
12706 cygwin
* | mingw
* | pw32
* | cegcc
*)
12707 # When not using gcc, we currently assume that we are using
12708 # Microsoft Visual C++.
12709 # hardcode_libdir_flag_spec is actually meaningless, as there is
12710 # no search path for DLLs.
12711 hardcode_libdir_flag_spec_GO
=' '
12712 allow_undefined_flag_GO
=unsupported
12713 # Tell ltmain to make .lib files, not .a files.
12715 # Tell ltmain to make .dll files, not .so files.
12717 # FIXME: Setting linknames here is a bad hack.
12718 archive_cmds_GO
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12719 # The linker will automatically build a .lib file if we build a DLL.
12720 old_archive_from_new_cmds_GO
='true'
12721 # FIXME: Should let the user specify the lib program.
12722 old_archive_cmds_GO
='lib -OUT:$oldlib$oldobjs$old_deplibs'
12723 fix_srcfile_path_GO
='`cygpath -w "$srcfile"`'
12724 enable_shared_with_static_runtimes_GO
=yes
12727 darwin
* | rhapsody
*)
12730 archive_cmds_need_lc_GO
=no
12731 hardcode_direct_GO
=no
12732 hardcode_automatic_GO
=yes
12733 hardcode_shlibpath_var_GO
=unsupported
12734 if test "$lt_cv_ld_force_load" = "yes"; then
12735 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\"`'
12737 whole_archive_flag_spec_GO
=''
12739 link_all_deplibs_GO
=yes
12740 allow_undefined_flag_GO
="$_lt_dar_allow_undefined"
12741 case $cc_basename in
12742 ifort
*) _lt_dar_can_shared
=yes ;;
12743 *) _lt_dar_can_shared
=$GCC ;;
12745 if test "$_lt_dar_can_shared" = "yes"; then
12746 output_verbose_link_cmd
=func_echo_all
12747 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}"
12748 module_cmds_GO
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12749 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}"
12750 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}"
12759 archive_cmds_GO
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12760 hardcode_libdir_flag_spec_GO
='-L$libdir'
12761 hardcode_shlibpath_var_GO
=no
12764 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12765 # support. Future versions do this automatically, but an explicit c++rt0.o
12766 # does not break anything, and helps significantly (at the cost of a little
12769 archive_cmds_GO
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12770 hardcode_libdir_flag_spec_GO
='-R$libdir'
12771 hardcode_direct_GO
=yes
12772 hardcode_shlibpath_var_GO
=no
12775 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12777 archive_cmds_GO
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12778 hardcode_direct_GO
=yes
12779 hardcode_minus_L_GO
=yes
12780 hardcode_shlibpath_var_GO
=no
12783 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12784 freebsd
* | dragonfly
*)
12785 archive_cmds_GO
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12786 hardcode_libdir_flag_spec_GO
='-R$libdir'
12787 hardcode_direct_GO
=yes
12788 hardcode_shlibpath_var_GO
=no
12792 if test "$GCC" = yes; then
12793 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'
12795 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'
12797 hardcode_libdir_flag_spec_GO
='${wl}+b ${wl}$libdir'
12798 hardcode_libdir_separator_GO
=:
12799 hardcode_direct_GO
=yes
12801 # hardcode_minus_L: Not really in the search PATH,
12802 # but as the default location of the library.
12803 hardcode_minus_L_GO
=yes
12804 export_dynamic_flag_spec_GO
='${wl}-E'
12808 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
12809 archive_cmds_GO
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12811 archive_cmds_GO
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12813 if test "$with_gnu_ld" = no
; then
12814 hardcode_libdir_flag_spec_GO
='${wl}+b ${wl}$libdir'
12815 hardcode_libdir_flag_spec_ld_GO
='+b $libdir'
12816 hardcode_libdir_separator_GO
=:
12817 hardcode_direct_GO
=yes
12818 hardcode_direct_absolute_GO
=yes
12819 export_dynamic_flag_spec_GO
='${wl}-E'
12820 # hardcode_minus_L: Not really in the search PATH,
12821 # but as the default location of the library.
12822 hardcode_minus_L_GO
=yes
12827 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
12830 archive_cmds_GO
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12833 archive_cmds_GO
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12836 archive_cmds_GO
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12842 archive_cmds_GO
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12845 archive_cmds_GO
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12848 archive_cmds_GO
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12852 if test "$with_gnu_ld" = no
; then
12853 hardcode_libdir_flag_spec_GO
='${wl}+b ${wl}$libdir'
12854 hardcode_libdir_separator_GO
=:
12858 hardcode_direct_GO
=no
12859 hardcode_shlibpath_var_GO
=no
12862 hardcode_direct_GO
=yes
12863 hardcode_direct_absolute_GO
=yes
12864 export_dynamic_flag_spec_GO
='${wl}-E'
12866 # hardcode_minus_L: Not really in the search PATH,
12867 # but as the default location of the library.
12868 hardcode_minus_L_GO
=yes
12874 irix5
* | irix6
* | nonstopux
*)
12875 if test "$GCC" = yes; then
12876 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'
12877 # Try to use the -exported_symbol ld option, if it does not
12878 # work, assume that -exports_file does not work either and
12879 # implicitly export all symbols.
12880 save_LDFLAGS
="$LDFLAGS"
12881 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12883 /* end confdefs.h. */
12886 if ac_fn_c_try_link
"$LINENO"; then :
12887 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'
12890 rm -f core conftest.err conftest.
$ac_objext \
12891 conftest
$ac_exeext conftest.
$ac_ext
12892 LDFLAGS
="$save_LDFLAGS"
12894 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'
12895 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'
12897 archive_cmds_need_lc_GO
='no'
12898 hardcode_libdir_flag_spec_GO
='${wl}-rpath ${wl}$libdir'
12899 hardcode_libdir_separator_GO
=:
12900 inherit_rpath_GO
=yes
12901 link_all_deplibs_GO
=yes
12905 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
12906 archive_cmds_GO
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12908 archive_cmds_GO
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12910 hardcode_libdir_flag_spec_GO
='-R$libdir'
12911 hardcode_direct_GO
=yes
12912 hardcode_shlibpath_var_GO
=no
12916 archive_cmds_GO
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12917 hardcode_direct_GO
=yes
12918 hardcode_libdir_flag_spec_GO
='${wl}-rpath ${wl}$libdir'
12919 hardcode_libdir_separator_GO
=:
12920 hardcode_shlibpath_var_GO
=no
12927 if test -f /usr
/libexec
/ld.so
; then
12928 hardcode_direct_GO
=yes
12929 hardcode_shlibpath_var_GO
=no
12930 hardcode_direct_absolute_GO
=yes
12931 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12932 archive_cmds_GO
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12933 archive_expsym_cmds_GO
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12934 hardcode_libdir_flag_spec_GO
='${wl}-rpath,$libdir'
12935 export_dynamic_flag_spec_GO
='${wl}-E'
12938 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
12939 archive_cmds_GO
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12940 hardcode_libdir_flag_spec_GO
='-R$libdir'
12943 archive_cmds_GO
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12944 hardcode_libdir_flag_spec_GO
='${wl}-rpath,$libdir'
12954 hardcode_libdir_flag_spec_GO
='-L$libdir'
12955 hardcode_minus_L_GO
=yes
12956 allow_undefined_flag_GO
=unsupported
12957 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'
12958 old_archive_from_new_cmds_GO
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12962 if test "$GCC" = yes; then
12963 allow_undefined_flag_GO
=' ${wl}-expect_unresolved ${wl}\*'
12964 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'
12966 allow_undefined_flag_GO
=' -expect_unresolved \*'
12967 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'
12969 archive_cmds_need_lc_GO
='no'
12970 hardcode_libdir_flag_spec_GO
='${wl}-rpath ${wl}$libdir'
12971 hardcode_libdir_separator_GO
=:
12974 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
12975 if test "$GCC" = yes; then
12976 allow_undefined_flag_GO
=' ${wl}-expect_unresolved ${wl}\*'
12977 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'
12978 hardcode_libdir_flag_spec_GO
='${wl}-rpath ${wl}$libdir'
12980 allow_undefined_flag_GO
=' -expect_unresolved \*'
12981 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'
12982 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~
12983 $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'
12985 # Both c and cxx compiler support -rpath directly
12986 hardcode_libdir_flag_spec_GO
='-rpath $libdir'
12988 archive_cmds_need_lc_GO
='no'
12989 hardcode_libdir_separator_GO
=:
12993 no_undefined_flag_GO
=' -z defs'
12994 if test "$GCC" = yes; then
12996 archive_cmds_GO
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12997 archive_expsym_cmds_GO
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12998 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13000 case `$CC -V 2>&1` in
13003 archive_cmds_GO
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13004 archive_expsym_cmds_GO
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13005 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13009 archive_cmds_GO
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13010 archive_expsym_cmds_GO
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13011 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13015 hardcode_libdir_flag_spec_GO
='-R$libdir'
13016 hardcode_shlibpath_var_GO
=no
13018 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
13020 # The compiler driver will combine and reorder linker options,
13021 # but understands `-z linker_flag'. GCC discards it without `$wl',
13022 # but is careful enough not to reorder.
13023 # Supported since Solaris 2.6 (maybe 2.5.1?)
13024 if test "$GCC" = yes; then
13025 whole_archive_flag_spec_GO
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13027 whole_archive_flag_spec_GO
='-z allextract$convenience -z defaultextract'
13031 link_all_deplibs_GO
=yes
13035 if test "x$host_vendor" = xsequent
; then
13036 # Use $CC to link under sequent, because it throws in some extra .o
13037 # files that make .init and .fini sections work.
13038 archive_cmds_GO
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13040 archive_cmds_GO
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13042 hardcode_libdir_flag_spec_GO
='-L$libdir'
13043 hardcode_direct_GO
=yes
13044 hardcode_minus_L_GO
=yes
13045 hardcode_shlibpath_var_GO
=no
13049 case $host_vendor in
13051 archive_cmds_GO
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13052 hardcode_direct_GO
=yes # is this really true???
13055 ## LD is ld it makes a PLAMLIB
13056 ## CC just makes a GrossModule.
13057 archive_cmds_GO
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13058 reload_cmds_GO
='$CC -r -o $output$reload_objs'
13059 hardcode_direct_GO
=no
13062 archive_cmds_GO
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13063 hardcode_direct_GO
=no
#Motorola manual says yes, but my tests say they lie
13066 runpath_var
='LD_RUN_PATH'
13067 hardcode_shlibpath_var_GO
=no
13071 archive_cmds_GO
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13072 hardcode_shlibpath_var_GO
=no
13073 export_dynamic_flag_spec_GO
='-Bexport'
13077 if test -d /usr
/nec
; then
13078 archive_cmds_GO
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13079 hardcode_shlibpath_var_GO
=no
13080 runpath_var
=LD_RUN_PATH
13081 hardcode_runpath_var
=yes
13086 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
13087 no_undefined_flag_GO
='${wl}-z,text'
13088 archive_cmds_need_lc_GO
=no
13089 hardcode_shlibpath_var_GO
=no
13090 runpath_var
='LD_RUN_PATH'
13092 if test "$GCC" = yes; then
13093 archive_cmds_GO
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13094 archive_expsym_cmds_GO
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13096 archive_cmds_GO
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13097 archive_expsym_cmds_GO
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13101 sysv5
* | sco3.2v5
* | sco5v6
*)
13102 # Note: We can NOT use -z defs as we might desire, because we do not
13103 # link with -lc, and that would cause any symbols used from libc to
13104 # always be unresolved, which means just about no library would
13105 # ever link correctly. If we're not using GNU ld we use -z text
13106 # though, which does catch some bad symbols but isn't as heavy-handed
13108 no_undefined_flag_GO
='${wl}-z,text'
13109 allow_undefined_flag_GO
='${wl}-z,nodefs'
13110 archive_cmds_need_lc_GO
=no
13111 hardcode_shlibpath_var_GO
=no
13112 hardcode_libdir_flag_spec_GO
='${wl}-R,$libdir'
13113 hardcode_libdir_separator_GO
=':'
13114 link_all_deplibs_GO
=yes
13115 export_dynamic_flag_spec_GO
='${wl}-Bexport'
13116 runpath_var
='LD_RUN_PATH'
13118 if test "$GCC" = yes; then
13119 archive_cmds_GO
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13120 archive_expsym_cmds_GO
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13122 archive_cmds_GO
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13123 archive_expsym_cmds_GO
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13128 archive_cmds_GO
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13129 hardcode_libdir_flag_spec_GO
='-L$libdir'
13130 hardcode_shlibpath_var_GO
=no
13138 if test x
$host_vendor = xsni
; then
13140 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
13141 export_dynamic_flag_spec_GO
='${wl}-Blargedynsym'
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
13148 $as_echo "$ld_shlibs_GO" >&6; }
13149 test "$ld_shlibs_GO" = no
&& can_build_shared
=no
13151 with_gnu_ld_GO
=$with_gnu_ld
13159 # Do we need to explicitly link libc?
13161 case "x$archive_cmds_need_lc_GO" in
13163 # Assume -lc should be added
13164 archive_cmds_need_lc_GO
=yes
13166 if test "$enable_shared" = yes && test "$GCC" = yes; then
13167 case $archive_cmds_GO in
13169 # FIXME: we may have to deal with multi-command sequences.
13172 # Test whether the compiler implicitly links with -lc since on some
13173 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13174 # to ld, don't add -lc before -lgcc.
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13176 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13177 if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
13178 $as_echo_n "(cached) " >&6
13181 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13184 (eval $ac_compile) 2>&5
13186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13187 test $ac_status = 0; } 2>conftest.err
; then
13190 libobjs
=conftest.
$ac_objext
13192 wl
=$lt_prog_compiler_wl_GO
13193 pic_flag
=$lt_prog_compiler_pic_GO
13199 lt_save_allow_undefined_flag
=$allow_undefined_flag_GO
13200 allow_undefined_flag_GO
=
13201 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13202 (eval $archive_cmds_GO 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
13204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13205 test $ac_status = 0; }
13207 lt_cv_archive_cmds_need_lc_GO
=no
13209 lt_cv_archive_cmds_need_lc_GO
=yes
13211 allow_undefined_flag_GO
=$lt_save_allow_undefined_flag
13213 cat conftest.err
1>&5
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13219 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13220 archive_cmds_need_lc_GO
=$lt_cv_archive_cmds_need_lc_GO
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13291 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13292 hardcode_action_GO
=
13293 if test -n "$hardcode_libdir_flag_spec_GO" ||
13294 test -n "$runpath_var_GO" ||
13295 test "X$hardcode_automatic_GO" = "Xyes" ; then
13297 # We can hardcode non-existent directories.
13298 if test "$hardcode_direct_GO" != no
&&
13299 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13300 # have to relink, otherwise we might link with an installed library
13301 # when we should be linking with a yet-to-be-installed one
13302 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13303 test "$hardcode_minus_L_GO" != no
; then
13304 # Linking always hardcodes the temporary library directory.
13305 hardcode_action_GO
=relink
13307 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13308 hardcode_action_GO
=immediate
13311 # We cannot hardcode anything, or else we can only hardcode existing
13313 hardcode_action_GO
=unsupported
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13316 $as_echo "$hardcode_action_GO" >&6; }
13318 if test "$hardcode_action_GO" = relink ||
13319 test "$inherit_rpath_GO" = yes; then
13320 # Fast installation is not supported
13321 enable_fast_install
=no
13322 elif test "$shlibpath_overrides_runpath" = yes ||
13323 test "$enable_shared" = no
; then
13324 # Fast installation is not necessary
13325 enable_fast_install
=needless
13337 ac_cpp
='$CPP $CPPFLAGS'
13338 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13339 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13340 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13349 ac_config_commands
="$ac_config_commands libtool"
13354 # Only expand once:
13360 CC_FOR_BUILD
=${CC_FOR_BUILD:-gcc}
13363 for ac_prog
in gawk mawk nawk
awk
13365 # Extract the first word of "$ac_prog", so it can be a program name with args.
13366 set dummy
$ac_prog; ac_word
=$2
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13368 $as_echo_n "checking for $ac_word... " >&6; }
13369 if test "${ac_cv_prog_AWK+set}" = set; then :
13370 $as_echo_n "(cached) " >&6
13372 if test -n "$AWK"; then
13373 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
13375 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13376 for as_dir
in $PATH
13379 test -z "$as_dir" && as_dir
=.
13380 for ac_exec_ext
in '' $ac_executable_extensions; do
13381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13382 ac_cv_prog_AWK
="$ac_prog"
13383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13392 AWK
=$ac_cv_prog_AWK
13393 if test -n "$AWK"; then
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13395 $as_echo "$AWK" >&6; }
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13398 $as_echo "no" >&6; }
13402 test -n "$AWK" && break
13406 WARN_FLAGS
='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13409 # Check whether --enable-werror was given.
13410 if test "${enable_werror+set}" = set; then :
13411 enableval
=$enable_werror;
13414 if test "x$enable_werror" != "xno"; then
13419 glibgo_toolexecdir
=no
13420 glibgo_toolexeclibdir
=no
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13423 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13424 # Check whether --enable-version-specific-runtime-libs was given.
13425 if test "${enable_version_specific_runtime_libs+set}" = set; then :
13426 enableval
=$enable_version_specific_runtime_libs; case "$enableval" in
13427 yes) version_specific_libs
=yes ;;
13428 no
) version_specific_libs
=no
;;
13429 *) as_fn_error
"Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13432 version_specific_libs
=no
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13436 $as_echo "$version_specific_libs" >&6; }
13438 # Version-specific runtime libs processing.
13439 if test $version_specific_libs = yes; then
13440 glibgo_toolexecdir
='${libdir}/gcc/${host_alias}'
13441 glibgo_toolexeclibdir
='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13444 # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13445 # Install a library built with a cross compiler in tooldir, not libdir.
13446 if test -n "$with_cross_host" &&
13447 test x
"$with_cross_host" != x
"no"; then
13448 nover_glibgo_toolexecdir
='${exec_prefix}/${host_alias}'
13449 nover_glibgo_toolexeclibdir
='${toolexecdir}/lib'
13451 nover_glibgo_toolexecdir
='${libdir}/gcc/${host_alias}'
13452 nover_glibgo_toolexeclibdir
='${libdir}'
13454 multi_os_directory
=`$GOC -print-multi-os-directory`
13455 case $multi_os_directory in
13456 .
) ;; # Avoid trailing /.
13457 *) nover_glibgo_toolexeclibdir
=${nover_glibgo_toolexeclibdir}/${multi_os_directory} ;;
13460 if test x
"$glibgo_toolexecdir" = x
"no"; then
13461 glibgo_toolexecdir
="${nover_glibgo_toolexecdir}"
13462 glibgo_toolexeclibdir
="${nover_glibgo_toolexeclibdir}"
13469 # See if the user wants to configure without libffi. Some
13470 # architectures don't support it. FIXME: We should set a default
13471 # based on the host.
13473 # Check whether --with-libffi was given.
13474 if test "${with_libffi+set}" = set; then :
13475 withval
=$with_libffi; :
13477 with_libffi
=${with_libffi_default-yes}
13483 if test "$with_libffi" != no
; then
13485 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
13487 LIBFFI
=..
/libffi
/libffi_convenience.la
13488 LIBFFIINCS
='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13493 # See if the user wants to configure without libatomic. This is useful if we are
13494 # on an architecture for which libgo does not need an atomic support library and
13495 # libatomic does not support our C compiler.
13497 # Check whether --with-libatomic was given.
13498 if test "${with_libatomic+set}" = set; then :
13499 withval
=$with_libatomic; :
13501 with_libatomic
=${with_libatomic_default-yes}
13506 if test "$with_libatomic" != no
; then
13507 LIBATOMIC
=..
/libatomic
/libatomic_convenience.la
13511 # Used to tell GNU make to include a file without telling automake to
13513 go_include
="-include"
13527 *-*-darwin*) is_darwin
=yes; GOOS
=darwin
;;
13528 *-*-freebsd*) is_freebsd
=yes; GOOS
=freebsd
;;
13529 *-*-irix6*) is_irix
=yes; GOOS
=irix
;;
13530 *-*-linux*) is_linux
=yes; GOOS
=linux
;;
13531 *-*-netbsd*) is_netbsd
=yes; GOOS
=netbsd
;;
13532 *-*-openbsd*) is_openbsd
=yes; GOOS
=openbsd
;;
13533 *-*-dragonfly*) is_dragonfly
=yes; GOOS
=dragonfly
;;
13534 *-*-rtems*) is_rtems
=yes; GOOS
=rtems
;;
13535 *-*-solaris2*) is_solaris
=yes; GOOS
=solaris
;;
13537 if test $is_darwin = yes; then
13538 LIBGO_IS_DARWIN_TRUE
=
13539 LIBGO_IS_DARWIN_FALSE
='#'
13541 LIBGO_IS_DARWIN_TRUE
='#'
13542 LIBGO_IS_DARWIN_FALSE
=
13545 if test $is_freebsd = yes; then
13546 LIBGO_IS_FREEBSD_TRUE
=
13547 LIBGO_IS_FREEBSD_FALSE
='#'
13549 LIBGO_IS_FREEBSD_TRUE
='#'
13550 LIBGO_IS_FREEBSD_FALSE
=
13553 if test $is_irix = yes; then
13554 LIBGO_IS_IRIX_TRUE
=
13555 LIBGO_IS_IRIX_FALSE
='#'
13557 LIBGO_IS_IRIX_TRUE
='#'
13558 LIBGO_IS_IRIX_FALSE
=
13561 if test $is_linux = yes; then
13562 LIBGO_IS_LINUX_TRUE
=
13563 LIBGO_IS_LINUX_FALSE
='#'
13565 LIBGO_IS_LINUX_TRUE
='#'
13566 LIBGO_IS_LINUX_FALSE
=
13569 if test $is_netbsd = yes; then
13570 LIBGO_IS_NETBSD_TRUE
=
13571 LIBGO_IS_NETBSD_FALSE
='#'
13573 LIBGO_IS_NETBSD_TRUE
='#'
13574 LIBGO_IS_NETBSD_FALSE
=
13577 if test $is_openbsd = yes; then
13578 LIBGO_IS_OPENBSD_TRUE
=
13579 LIBGO_IS_OPENBSD_FALSE
='#'
13581 LIBGO_IS_OPENBSD_TRUE
='#'
13582 LIBGO_IS_OPENBSD_FALSE
=
13585 if test $is_dragonfly = yes; then
13586 LIBGO_IS_DRAGONFLY_TRUE
=
13587 LIBGO_IS_DRAGONFLY_FALSE
='#'
13589 LIBGO_IS_DRAGONFLY_TRUE
='#'
13590 LIBGO_IS_DRAGONFLY_FALSE
=
13593 if test $is_rtems = yes; then
13594 LIBGO_IS_RTEMS_TRUE
=
13595 LIBGO_IS_RTEMS_FALSE
='#'
13597 LIBGO_IS_RTEMS_TRUE
='#'
13598 LIBGO_IS_RTEMS_FALSE
=
13601 if test $is_solaris = yes; then
13602 LIBGO_IS_SOLARIS_TRUE
=
13603 LIBGO_IS_SOLARIS_FALSE
='#'
13605 LIBGO_IS_SOLARIS_TRUE
='#'
13606 LIBGO_IS_SOLARIS_FALSE
=
13613 *-*-rtems*) USE_DEJAGNU
=yes ;;
13615 *) USE_DEJAGNU
=yes ;;
13642 arm
*-*-* | strongarm
*-*-* | ep9312
*-*-* | xscale-
*-*)
13646 i
[34567]86-*-* | x86_64-
*-*)
13647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13648 /* end confdefs.h. */
13654 if ac_fn_c_try_compile
"$LINENO"; then :
13659 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13660 if test "$is_386" = "yes"; then
13671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13672 /* end confdefs.h. */
13674 #if _MIPS_SIM != _ABIO32
13678 if ac_fn_c_try_compile
"$LINENO"; then :
13681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13682 /* end confdefs.h. */
13684 #if _MIPS_SIM != _ABIN32
13688 if ac_fn_c_try_compile
"$LINENO"; then :
13691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13692 /* end confdefs.h. */
13694 #if _MIPS_SIM != _ABI64
13698 if ac_fn_c_try_compile
"$LINENO"; then :
13701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13702 /* end confdefs.h. */
13704 #if _MIPS_SIM != _ABIO64
13708 if ac_fn_c_try_compile
"$LINENO"; then :
13711 as_fn_error
"unknown MIPS ABI" "$LINENO" 5
13714 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13716 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13718 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13720 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13721 case "$mips_abi" in
13722 "o32") GOARCH
=mipso32
;;
13723 "n32") GOARCH
=mipsn32
;;
13724 "n64") GOARCH
=mipsn64
;;
13725 "o64") GOARCH
=mipso64
;;
13728 rs6000
*-*-* | powerpc
*-*-*)
13729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13730 /* end confdefs.h. */
13736 if ac_fn_c_try_compile
"$LINENO"; then :
13741 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13742 if test "$is_ppc" = "yes"; then
13749 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13750 /* end confdefs.h. */
13752 #if defined(__s390x__)
13756 if ac_fn_c_try_compile
"$LINENO"; then :
13761 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13762 if test "$is_s390" = "yes"; then
13769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13770 /* end confdefs.h. */
13772 #if defined(__sparcv9) || defined(__arch64__)
13776 if ac_fn_c_try_compile
"$LINENO"; then :
13781 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13782 if test "$is_sparc" = "yes"; then
13789 if test $is_386 = yes; then
13791 LIBGO_IS_386_FALSE
='#'
13793 LIBGO_IS_386_TRUE
='#'
13794 LIBGO_IS_386_FALSE
=
13797 if test $is_alpha = yes; then
13798 LIBGO_IS_ALPHA_TRUE
=
13799 LIBGO_IS_ALPHA_FALSE
='#'
13801 LIBGO_IS_ALPHA_TRUE
='#'
13802 LIBGO_IS_ALPHA_FALSE
=
13805 if test $is_arm = yes; then
13807 LIBGO_IS_ARM_FALSE
='#'
13809 LIBGO_IS_ARM_TRUE
='#'
13810 LIBGO_IS_ARM_FALSE
=
13813 if test $is_arm64 = yes; then
13814 LIBGO_IS_ARM64_TRUE
=
13815 LIBGO_IS_ARM64_FALSE
='#'
13817 LIBGO_IS_ARM64_TRUE
='#'
13818 LIBGO_IS_ARM64_FALSE
=
13821 if test $is_m68k = yes; then
13822 LIBGO_IS_M68K_TRUE
=
13823 LIBGO_IS_M68K_FALSE
='#'
13825 LIBGO_IS_M68K_TRUE
='#'
13826 LIBGO_IS_M68K_FALSE
=
13829 if test $mips_abi != unknown
; then
13830 LIBGO_IS_MIPS_TRUE
=
13831 LIBGO_IS_MIPS_FALSE
='#'
13833 LIBGO_IS_MIPS_TRUE
='#'
13834 LIBGO_IS_MIPS_FALSE
=
13837 if test $mips_abi = o32
; then
13838 LIBGO_IS_MIPSO32_TRUE
=
13839 LIBGO_IS_MIPSO32_FALSE
='#'
13841 LIBGO_IS_MIPSO32_TRUE
='#'
13842 LIBGO_IS_MIPSO32_FALSE
=
13845 if test $mips_abi = n32
; then
13846 LIBGO_IS_MIPSN32_TRUE
=
13847 LIBGO_IS_MIPSN32_FALSE
='#'
13849 LIBGO_IS_MIPSN32_TRUE
='#'
13850 LIBGO_IS_MIPSN32_FALSE
=
13853 if test $mips_abi = n64
; then
13854 LIBGO_IS_MIPSN64_TRUE
=
13855 LIBGO_IS_MIPSN64_FALSE
='#'
13857 LIBGO_IS_MIPSN64_TRUE
='#'
13858 LIBGO_IS_MIPSN64_FALSE
=
13861 if test $mips_abi = o64
; then
13862 LIBGO_IS_MIPSO64_TRUE
=
13863 LIBGO_IS_MIPSO64_FALSE
='#'
13865 LIBGO_IS_MIPSO64_TRUE
='#'
13866 LIBGO_IS_MIPSO64_FALSE
=
13869 if test $is_ppc = yes; then
13871 LIBGO_IS_PPC_FALSE
='#'
13873 LIBGO_IS_PPC_TRUE
='#'
13874 LIBGO_IS_PPC_FALSE
=
13877 if test $is_ppc64 = yes; then
13878 LIBGO_IS_PPC64_TRUE
=
13879 LIBGO_IS_PPC64_FALSE
='#'
13881 LIBGO_IS_PPC64_TRUE
='#'
13882 LIBGO_IS_PPC64_FALSE
=
13885 if test $is_s390 = yes; then
13886 LIBGO_IS_S390_TRUE
=
13887 LIBGO_IS_S390_FALSE
='#'
13889 LIBGO_IS_S390_TRUE
='#'
13890 LIBGO_IS_S390_FALSE
=
13893 if test $is_s390x = yes; then
13894 LIBGO_IS_S390X_TRUE
=
13895 LIBGO_IS_S390X_FALSE
='#'
13897 LIBGO_IS_S390X_TRUE
='#'
13898 LIBGO_IS_S390X_FALSE
=
13901 if test $is_sparc = yes; then
13902 LIBGO_IS_SPARC_TRUE
=
13903 LIBGO_IS_SPARC_FALSE
='#'
13905 LIBGO_IS_SPARC_TRUE
='#'
13906 LIBGO_IS_SPARC_FALSE
=
13909 if test $is_sparc64 = yes; then
13910 LIBGO_IS_SPARC64_TRUE
=
13911 LIBGO_IS_SPARC64_FALSE
='#'
13913 LIBGO_IS_SPARC64_TRUE
='#'
13914 LIBGO_IS_SPARC64_FALSE
=
13917 if test $is_x86_64 = yes; then
13918 LIBGO_IS_X86_64_TRUE
=
13919 LIBGO_IS_X86_64_FALSE
='#'
13921 LIBGO_IS_X86_64_TRUE
='#'
13922 LIBGO_IS_X86_64_FALSE
=
13927 GO_LIBCALL_OS_FILE
=
13928 GO_LIBCALL_OS_ARCH_FILE
=
13929 GO_SYSCALL_OS_FILE
=
13930 GO_SYSCALL_OS_ARCH_FILE
=
13931 if test -f "${srcdir}/go/syscall/libcall_${GOOS}.go"; then
13932 GO_LIBCALL_OS_FILE
="go/syscall/libcall_${GOOS}.go"
13934 if test -f "${srcdir}/go/syscall/libcall_${GOOS}_${GOARCH}.go"; then
13935 GO_LIBCALL_OS_ARCH_FILE
="go/syscall/libcall_${GOOS}_${GOARCH}.go"
13937 if test -f "${srcdir}/go/syscall/syscall_${GOOS}.go"; then
13938 GO_SYSCALL_OS_FILE
="go/syscall/syscall_${GOOS}.go"
13940 if test -f "${srcdir}/go/syscall/syscall_${GOOS}_${GOARCH}.go"; then
13941 GO_SYSCALL_OS_ARCH_FILE
="go/syscall/syscall_${GOOS}_${GOARCH}.go"
13948 OSCFLAGS
="-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
13951 # IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
13952 # msghdr in <sys/socket.h>.
13953 OSCFLAGS
="$OSCFLAGS -D_XOPEN_SOURCE=500"
13955 *-*-solaris2.1
[01])
13956 # Solaris 10+ needs this so struct msghdr gets the msg_control
13957 # etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=600 as
13958 # above doesn't work with C99.
13959 OSCFLAGS
="$OSCFLAGS -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
13965 $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
13966 if test "${libgo_cv_c_split_stack_supported+set}" = set; then :
13967 $as_echo_n "(cached) " >&6
13969 CFLAGS_hold
=$CFLAGS
13970 CFLAGS
="$CFLAGS -fsplit-stack"
13971 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13972 /* end confdefs.h. */
13975 if ac_fn_c_try_compile
"$LINENO"; then :
13976 libgo_cv_c_split_stack_supported
=yes
13978 libgo_cv_c_split_stack_supported
=no
13980 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13981 CFLAGS
=$CFLAGS_hold
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
13984 $as_echo "$libgo_cv_c_split_stack_supported" >&6; }
13985 if test "$libgo_cv_c_split_stack_supported" = yes; then
13986 SPLIT_STACK
=-fsplit-stack
13988 $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
13994 if test "$libgo_cv_c_split_stack_supported" = yes; then
13995 USING_SPLIT_STACK_TRUE
=
13996 USING_SPLIT_STACK_FALSE
='#'
13998 USING_SPLIT_STACK_TRUE
='#'
13999 USING_SPLIT_STACK_FALSE
=
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
14004 $as_echo_n "checking whether linker supports split stack... " >&6; }
14005 if test "${libgo_cv_c_linker_supports_split_stack+set}" = set; then :
14006 $as_echo_n "(cached) " >&6
14008 libgo_cv_c_linker_supports_split_stack
=no
14009 if $GOC -Wl,--help 2>/dev
/null |
grep split-stack-adjust-size
>/dev
/null
2>&1; then
14010 libgo_cv_c_linker_supports_split_stack
=yes
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
14014 $as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
14015 if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
14017 $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
14023 $as_echo_n "checking for sqrt in -lm... " >&6; }
14024 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
14025 $as_echo_n "(cached) " >&6
14027 ac_check_lib_save_LIBS
=$LIBS
14029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14030 /* end confdefs.h. */
14032 /* Override any GCC internal prototype to avoid an error.
14033 Use char because int might match the return type of a GCC
14034 builtin and then its argument prototype would still apply. */
14047 if ac_fn_c_try_link
"$LINENO"; then :
14048 ac_cv_lib_m_sqrt
=yes
14050 ac_cv_lib_m_sqrt
=no
14052 rm -f core conftest.err conftest.
$ac_objext \
14053 conftest
$ac_exeext conftest.
$ac_ext
14054 LIBS
=$ac_check_lib_save_LIBS
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14057 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
14058 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14065 $as_echo_n "checking for socket libraries... " >&6; }
14066 if test "${libgo_cv_lib_sockets+set}" = set; then :
14067 $as_echo_n "(cached) " >&6
14069 libgo_cv_lib_sockets
=
14070 libgo_check_both
=no
14071 ac_fn_c_check_func
"$LINENO" "connect" "ac_cv_func_connect"
14072 if test "x$ac_cv_func_connect" = x
""yes; then :
14073 libgo_check_socket
=no
14075 libgo_check_socket
=yes
14078 if test "$libgo_check_socket" = "yes"; then
14079 unset ac_cv_func_connect
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14081 $as_echo_n "checking for main in -lsocket... " >&6; }
14082 if test "${ac_cv_lib_socket_main+set}" = set; then :
14083 $as_echo_n "(cached) " >&6
14085 ac_check_lib_save_LIBS
=$LIBS
14086 LIBS
="-lsocket $LIBS"
14087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14088 /* end confdefs.h. */
14099 if ac_fn_c_try_link
"$LINENO"; then :
14100 ac_cv_lib_socket_main
=yes
14102 ac_cv_lib_socket_main
=no
14104 rm -f core conftest.err conftest.
$ac_objext \
14105 conftest
$ac_exeext conftest.
$ac_ext
14106 LIBS
=$ac_check_lib_save_LIBS
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14109 $as_echo "$ac_cv_lib_socket_main" >&6; }
14110 if test "x$ac_cv_lib_socket_main" = x
""yes; then :
14111 libgo_cv_lib_sockets
="-lsocket"
14113 libgo_check_both
=yes
14117 if test "$libgo_check_both" = "yes"; then
14118 libgo_old_libs
=$LIBS
14119 LIBS
="$LIBS -lsocket -lnsl"
14120 unset ac_cv_func_accept
14121 ac_fn_c_check_func
"$LINENO" "accept" "ac_cv_func_accept"
14122 if test "x$ac_cv_func_accept" = x
""yes; then :
14124 libgo_cv_lib_sockets
="-lsocket -lnsl"
14127 unset ac_cv_func_accept
14128 LIBS
=$libgo_old_libs
14130 unset ac_cv_func_gethostbyname
14131 libgo_old_libs
="$LIBS"
14132 ac_fn_c_check_func
"$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14133 if test "x$ac_cv_func_gethostbyname" = x
""yes; then :
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14137 $as_echo_n "checking for main in -lnsl... " >&6; }
14138 if test "${ac_cv_lib_nsl_main+set}" = set; then :
14139 $as_echo_n "(cached) " >&6
14141 ac_check_lib_save_LIBS
=$LIBS
14143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14144 /* end confdefs.h. */
14155 if ac_fn_c_try_link
"$LINENO"; then :
14156 ac_cv_lib_nsl_main
=yes
14158 ac_cv_lib_nsl_main
=no
14160 rm -f core conftest.err conftest.
$ac_objext \
14161 conftest
$ac_exeext conftest.
$ac_ext
14162 LIBS
=$ac_check_lib_save_LIBS
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14165 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14166 if test "x$ac_cv_lib_nsl_main" = x
""yes; then :
14167 libgo_cv_lib_sockets
="$libgo_cv_lib_sockets -lnsl"
14172 unset ac_cv_func_gethostbyname
14173 LIBS
=$libgo_old_libs
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
14177 $as_echo "$libgo_cv_lib_sockets" >&6; }
14178 NET_LIBS
="$libgo_cv_lib_sockets"
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
14182 $as_echo_n "checking whether -pthread is supported... " >&6; }
14183 if test "${libgo_cv_lib_pthread+set}" = set; then :
14184 $as_echo_n "(cached) " >&6
14186 CFLAGS_hold
=$CFLAGS
14187 CFLAGS
="$CFLAGS -pthread"
14188 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14189 /* end confdefs.h. */
14192 if ac_fn_c_try_compile
"$LINENO"; then :
14193 libgo_cv_lib_pthread
=yes
14195 libgo_cv_lib_pthread
=no
14197 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14198 CFLAGS
=$CFLAGS_hold
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
14201 $as_echo "$libgo_cv_lib_pthread" >&6; }
14203 if test "$libgo_cv_lib_pthread" = yes; then
14204 PTHREAD_CFLAGS
=-pthread
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
14210 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
14211 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
14212 $as_echo_n "(cached) " >&6
14214 ac_check_lib_save_LIBS
=$LIBS
14215 LIBS
="-lpthread $LIBS"
14216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14217 /* end confdefs.h. */
14219 /* Override any GCC internal prototype to avoid an error.
14220 Use char because int might match the return type of a GCC
14221 builtin and then its argument prototype would still apply. */
14225 char pthread_create ();
14229 return pthread_create ();
14234 if ac_fn_c_try_link
"$LINENO"; then :
14235 ac_cv_lib_pthread_pthread_create
=yes
14237 ac_cv_lib_pthread_pthread_create
=no
14239 rm -f core conftest.err conftest.
$ac_objext \
14240 conftest
$ac_exeext conftest.
$ac_ext
14241 LIBS
=$ac_check_lib_save_LIBS
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
14244 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
14245 if test "x$ac_cv_lib_pthread_pthread_create" = x
""yes; then :
14246 PTHREAD_LIBS
=-lpthread
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
14252 $as_echo_n "checking for library containing sched_yield... " >&6; }
14253 if test "${ac_cv_search_sched_yield+set}" = set; then :
14254 $as_echo_n "(cached) " >&6
14256 ac_func_search_save_LIBS
=$LIBS
14257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14258 /* end confdefs.h. */
14260 /* Override any GCC internal prototype to avoid an error.
14261 Use char because int might match the return type of a GCC
14262 builtin and then its argument prototype would still apply. */
14266 char sched_yield ();
14270 return sched_yield ();
14275 for ac_lib
in '' rt
; do
14276 if test -z "$ac_lib"; then
14277 ac_res
="none required"
14280 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14282 if ac_fn_c_try_link
"$LINENO"; then :
14283 ac_cv_search_sched_yield
=$ac_res
14285 rm -f core conftest.err conftest.
$ac_objext \
14287 if test "${ac_cv_search_sched_yield+set}" = set; then :
14291 if test "${ac_cv_search_sched_yield+set}" = set; then :
14294 ac_cv_search_sched_yield
=no
14296 rm conftest.
$ac_ext
14297 LIBS
=$ac_func_search_save_LIBS
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
14300 $as_echo "$ac_cv_search_sched_yield" >&6; }
14301 ac_res
=$ac_cv_search_sched_yield
14302 if test "$ac_res" != no
; then :
14303 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
14308 $as_echo_n "checking for library containing nanosleep... " >&6; }
14309 if test "${ac_cv_search_nanosleep+set}" = set; then :
14310 $as_echo_n "(cached) " >&6
14312 ac_func_search_save_LIBS
=$LIBS
14313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14314 /* end confdefs.h. */
14316 /* Override any GCC internal prototype to avoid an error.
14317 Use char because int might match the return type of a GCC
14318 builtin and then its argument prototype would still apply. */
14326 return nanosleep ();
14331 for ac_lib
in '' rt
; do
14332 if test -z "$ac_lib"; then
14333 ac_res
="none required"
14336 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14338 if ac_fn_c_try_link
"$LINENO"; then :
14339 ac_cv_search_nanosleep
=$ac_res
14341 rm -f core conftest.err conftest.
$ac_objext \
14343 if test "${ac_cv_search_nanosleep+set}" = set; then :
14347 if test "${ac_cv_search_nanosleep+set}" = set; then :
14350 ac_cv_search_nanosleep
=no
14352 rm conftest.
$ac_ext
14353 LIBS
=$ac_func_search_save_LIBS
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
14356 $as_echo "$ac_cv_search_nanosleep" >&6; }
14357 ac_res
=$ac_cv_search_nanosleep
14358 if test "$ac_res" != no
; then :
14359 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14365 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14366 if test "${ac_cv_c_bigendian+set}" = set; then :
14367 $as_echo_n "(cached) " >&6
14369 ac_cv_c_bigendian
=unknown
14370 # See if we're dealing with a universal compiler.
14371 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14372 /* end confdefs.h. */
14373 #ifndef __APPLE_CC__
14374 not a universal capable compiler
14379 if ac_fn_c_try_compile
"$LINENO"; then :
14381 # Check for potential -arch flags. It is not universal unless
14382 # there are at least two -arch flags with different values.
14385 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14386 if test -n "$ac_prev"; then
14388 i?
86 | x86_64 | ppc | ppc64
)
14389 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
14392 ac_cv_c_bigendian
=universal
14398 elif test "x$ac_word" = "x-arch"; then
14403 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14404 if test $ac_cv_c_bigendian = unknown
; then
14405 # See if sys/param.h defines the BYTE_ORDER macro.
14406 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14407 /* end confdefs.h. */
14408 #include <sys/types.h>
14409 #include <sys/param.h>
14414 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14415 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14417 bogus endian macros
14424 if ac_fn_c_try_compile
"$LINENO"; then :
14425 # It does; now see whether it defined to BIG_ENDIAN or not.
14426 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14427 /* end confdefs.h. */
14428 #include <sys/types.h>
14429 #include <sys/param.h>
14434 #if BYTE_ORDER != BIG_ENDIAN
14442 if ac_fn_c_try_compile
"$LINENO"; then :
14443 ac_cv_c_bigendian
=yes
14445 ac_cv_c_bigendian
=no
14447 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14449 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14451 if test $ac_cv_c_bigendian = unknown
; then
14452 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14454 /* end confdefs.h. */
14455 #include <limits.h>
14460 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14461 bogus endian macros
14468 if ac_fn_c_try_compile
"$LINENO"; then :
14469 # It does; now see whether it defined to _BIG_ENDIAN or not.
14470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14471 /* end confdefs.h. */
14472 #include <limits.h>
14477 #ifndef _BIG_ENDIAN
14485 if ac_fn_c_try_compile
"$LINENO"; then :
14486 ac_cv_c_bigendian
=yes
14488 ac_cv_c_bigendian
=no
14490 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14492 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14494 if test $ac_cv_c_bigendian = unknown
; then
14495 # Compile a test program.
14496 if test "$cross_compiling" = yes; then :
14497 # Try to guess by grepping values from an object file.
14498 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14499 /* end confdefs.h. */
14500 short int ascii_mm[] =
14501 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14502 short int ascii_ii[] =
14503 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14504 int use_ascii (int i) {
14505 return ascii_mm[i] + ascii_ii[i];
14507 short int ebcdic_ii[] =
14508 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14509 short int ebcdic_mm[] =
14510 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14511 int use_ebcdic (int i) {
14512 return ebcdic_mm[i] + ebcdic_ii[i];
14519 return use_ascii (foo) == use_ebcdic (foo);
14524 if ac_fn_c_try_compile
"$LINENO"; then :
14525 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
14526 ac_cv_c_bigendian
=yes
14528 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
14529 if test "$ac_cv_c_bigendian" = unknown
; then
14530 ac_cv_c_bigendian
=no
14532 # finding both strings is unlikely to happen, but who knows?
14533 ac_cv_c_bigendian
=unknown
14537 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14539 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14540 /* end confdefs.h. */
14541 $ac_includes_default
14546 /* Are we little or big endian? From Harbison&Steele. */
14550 char c[sizeof (long int)];
14553 return u.c[sizeof (long int) - 1] == 1;
14559 if ac_fn_c_try_run
"$LINENO"; then :
14560 ac_cv_c_bigendian
=no
14562 ac_cv_c_bigendian
=yes
14564 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14565 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14571 $as_echo "$ac_cv_c_bigendian" >&6; }
14572 case $ac_cv_c_bigendian in #(
14574 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14580 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14584 as_fn_error
"unknown endianness
14585 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14591 # Check whether --with-system-libunwind was given.
14592 if test "${with_system_libunwind+set}" = set; then :
14593 withval
=$with_system_libunwind;
14596 # If system-libunwind was not specifically set, pick a default setting.
14597 if test x
$with_system_libunwind = x
; then
14599 ia64-
*-hpux*) with_system_libunwind
=yes ;;
14600 *) with_system_libunwind
=no
;;
14603 # Based on system-libunwind and target, do we have ipinfo?
14604 if test x
$with_system_libunwind = xyes
; then
14606 ia64-
*-*) have_unwind_getipinfo
=no
;;
14607 *) have_unwind_getipinfo
=yes ;;
14610 # Darwin before version 9 does not have _Unwind_GetIPInfo.
14613 *-*-darwin[3-8]|
*-*-darwin[3-8].
*) have_unwind_getipinfo
=no
;;
14614 *) have_unwind_getipinfo
=yes ;;
14619 if test x
$have_unwind_getipinfo = xyes
; then
14621 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
14626 # Check whether --enable-sjlj-exceptions was given.
14627 if test "${enable_sjlj_exceptions+set}" = set; then :
14628 enableval
=$enable_sjlj_exceptions; case "$enableval" in
14630 *) as_fn_error
"unknown argument to --enable-sjlj-exceptions" "$LINENO" 5 ;;
14633 enable_sjlj_exceptions
=auto
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use setjmp/longjmp exceptions" >&5
14638 $as_echo_n "checking whether to use setjmp/longjmp exceptions... " >&6; }
14639 if test "${libgo_cv_lib_sjlj_exceptions+set}" = set; then :
14640 $as_echo_n "(cached) " >&6
14642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14643 /* end confdefs.h. */
14646 void clean (int *);
14649 int i __attribute__ ((cleanup (clean)));
14654 CFLAGS_hold
=$CFLAGS
14655 CFLAGS
="--save-temps -fexceptions"
14656 libgo_cv_lib_sjlj_exceptions
=unknown
14657 if ac_fn_c_try_compile
; then :
14658 if grep _Unwind_SjLj_Resume conftest.s
>/dev
/null
2>&1; then
14659 libgo_cv_lib_sjlj_exceptions
=yes
14660 elif grep _Unwind_Resume conftest.s
>/dev
/null
2>&1; then
14661 libgo_cv_lib_sjlj_exceptions
=no
14664 CFLAGS
=$CFLAGS_hold
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sjlj_exceptions" >&5
14669 $as_echo "$libgo_cv_lib_sjlj_exceptions" >&6; }
14671 if test "$enable_sjlj_exceptions" = "auto"; then
14672 enable_sjlj_exceptions
=$libgo_cv_lib_sjlj_exceptions
14675 case $enable_sjlj_exceptions in
14678 $as_echo "#define LIBGO_SJLJ_EXCEPTIONS 1" >>confdefs.h
14684 as_fn_error
"unable to detect exception model" "$LINENO" 5
14688 for ac_header
in sched.h sys
/file.h sys
/mman.h syscall.h sys
/epoll.h sys
/inotify.h sys
/ptrace.h sys
/syscall.h sys
/user.h sys
/utsname.h sys
/select.h sys
/socket.h net
/if.h net
/if_arp.h net
/route.h netpacket
/packet.h sys
/prctl.h sys
/mount.h sys
/vfs.h sys
/statfs.h sys
/timex.h sys
/sysinfo.h utime.h linux
/ether.h linux
/fs.h linux
/reboot.h netinet
/icmp6.h netinet
/in_syst.h netinet
/ip.h netinet
/ip_mroute.h netinet
/if_ether.h
14690 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14691 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14692 eval as_val
=\$
$as_ac_Header
14693 if test "x$as_val" = x
""yes; then :
14694 cat >>confdefs.h
<<_ACEOF
14695 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14703 for ac_header
in linux
/filter.h linux
/if_addr.h linux
/if_ether.h linux
/if_tun.h linux
/netlink.h linux
/rtnetlink.h
14705 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14706 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_SOCKET_H
14707 #include <sys/socket.h>
14711 eval as_val
=\$
$as_ac_Header
14712 if test "x$as_val" = x
""yes; then :
14713 cat >>confdefs.h
<<_ACEOF
14714 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <ustat.h> can be used" >&5
14723 $as_echo_n "checking whether <ustat.h> can be used... " >&6; }
14724 if test "${libgo_cv_c_ustat_h+set}" = set; then :
14725 $as_echo_n "(cached) " >&6
14727 CFLAGS_hold
=$CFLAGS
14728 CFLAGS
="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE $OSCFLAGS"
14729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14730 /* end confdefs.h. */
14732 #include <sys/types.h>
14733 #ifdef HAVE_LINUX_FILTER_H
14734 #include <linux/filter.h>
14739 if ac_fn_c_try_compile
"$LINENO"; then :
14740 libgo_cv_c_ustat_h
=yes
14742 libgo_cv_c_ustat_h
=no
14744 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14745 CFLAGS
=$CFLAGS_hold
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_ustat_h" >&5
14748 $as_echo "$libgo_cv_c_ustat_h" >&6; }
14749 if test $libgo_cv_c_ustat_h = yes; then
14751 $as_echo "#define HAVE_USTAT_H 1" >>confdefs.h
14755 if test "$ac_cv_header_sys_mman_h" = yes; then
14756 HAVE_SYS_MMAN_H_TRUE
=
14757 HAVE_SYS_MMAN_H_FALSE
='#'
14759 HAVE_SYS_MMAN_H_TRUE
='#'
14760 HAVE_SYS_MMAN_H_FALSE
=
14764 for ac_func
in strerror_r strsignal wait4 mincore setenv dl_iterate_phdr
14766 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14767 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14768 eval as_val
=\$
$as_ac_var
14769 if test "x$as_val" = x
""yes; then :
14770 cat >>confdefs.h
<<_ACEOF
14771 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14777 if test "$ac_cv_func_strerror_r" = yes; then
14778 HAVE_STRERROR_R_TRUE
=
14779 HAVE_STRERROR_R_FALSE
='#'
14781 HAVE_STRERROR_R_TRUE
='#'
14782 HAVE_STRERROR_R_FALSE
=
14785 if test "$ac_cv_func_wait4" = yes; then
14787 HAVE_WAIT4_FALSE
='#'
14789 HAVE_WAIT4_TRUE
='#'
14794 for ac_func
in accept4 dup3 epoll_create1 faccessat fallocate fchmodat fchownat futimesat getxattr inotify_add_watch inotify_init inotify_init1 inotify_rm_watch listxattr mkdirat mknodat open64 openat pipe2 removexattr renameat setxattr sync_file_range splice
tee unlinkat unshare utimensat
14796 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14797 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14798 eval as_val
=\$
$as_ac_var
14799 if test "x$as_val" = x
""yes; then :
14800 cat >>confdefs.h
<<_ACEOF
14801 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14807 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14808 if test "x$ac_cv_type_off_t" = x
""yes; then :
14812 cat >>confdefs.h
<<_ACEOF
14813 #define off_t long int
14818 ac_fn_c_check_type
"$LINENO" "loff_t" "ac_cv_type_loff_t" "$ac_includes_default"
14819 if test "x$ac_cv_type_loff_t" = x
""yes; then :
14821 cat >>confdefs.h
<<_ACEOF
14822 #define HAVE_LOFF_T 1
14831 for ac_func
in cosl expl logl sinl tanl acosl asinl atanl atan2l expm1l ldexpl log10l log1pl
14833 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14834 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14835 eval as_val
=\$
$as_ac_var
14836 if test "x$as_val" = x
""yes; then :
14837 cat >>confdefs.h
<<_ACEOF
14838 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14846 CFLAGS_hold
="$CFLAGS"
14847 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
14849 LIBS
="$LIBS $PTHREAD_LIBS"
14850 for ac_func
in sem_timedwait
14852 ac_fn_c_check_func
"$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
14853 if test "x$ac_cv_func_sem_timedwait" = x
""yes; then :
14854 cat >>confdefs.h
<<_ACEOF
14855 #define HAVE_SEM_TIMEDWAIT 1
14861 CFLAGS
="$CFLAGS_hold"
14865 LIBS
="$LIBS $MATH_LIBS"
14866 for ac_func
in matherr
14868 ac_fn_c_check_func
"$LINENO" "matherr" "ac_cv_func_matherr"
14869 if test "x$ac_cv_func_matherr" = x
""yes; then :
14870 cat >>confdefs.h
<<_ACEOF
14871 #define HAVE_MATHERR 1
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_4" >&5
14880 $as_echo_n "checking for __sync_bool_compare_and_swap_4... " >&6; }
14881 if test "${libgo_cv_func___sync_bool_compare_and_swap_4+set}" = set; then :
14882 $as_echo_n "(cached) " >&6
14884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14885 /* end confdefs.h. */
14887 typedef unsigned int uint32 __attribute__ ((mode (SI)));
14889 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14892 if ac_fn_c_try_link
"$LINENO"; then :
14893 libgo_cv_func___sync_bool_compare_and_swap_4
=yes
14895 libgo_cv_func___sync_bool_compare_and_swap_4
=no
14897 rm -f core conftest.err conftest.
$ac_objext \
14898 conftest
$ac_exeext conftest.
$ac_ext
14900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_4" >&5
14901 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_4" >&6; }
14902 if test "$libgo_cv_func___sync_bool_compare_and_swap_4" = "yes"; then
14904 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4 1" >>confdefs.h
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_8" >&5
14909 $as_echo_n "checking for __sync_bool_compare_and_swap_8... " >&6; }
14910 if test "${libgo_cv_func___sync_bool_compare_and_swap_8+set}" = set; then :
14911 $as_echo_n "(cached) " >&6
14913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14914 /* end confdefs.h. */
14916 typedef unsigned int uint64 __attribute__ ((mode (DI)));
14918 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14921 if ac_fn_c_try_link
"$LINENO"; then :
14922 libgo_cv_func___sync_bool_compare_and_swap_8
=yes
14924 libgo_cv_func___sync_bool_compare_and_swap_8
=no
14926 rm -f core conftest.err conftest.
$ac_objext \
14927 conftest
$ac_exeext conftest.
$ac_ext
14929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_8" >&5
14930 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_8" >&6; }
14931 if test "$libgo_cv_func___sync_bool_compare_and_swap_8" = "yes"; then
14933 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_8 1" >>confdefs.h
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add_4" >&5
14938 $as_echo_n "checking for __sync_fetch_and_add_4... " >&6; }
14939 if test "${libgo_cv_func___sync_fetch_and_add_4+set}" = set; then :
14940 $as_echo_n "(cached) " >&6
14942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14943 /* end confdefs.h. */
14945 typedef unsigned int uint32 __attribute__ ((mode (SI)));
14947 int main() { return __sync_fetch_and_add (&i, 1); }
14950 if ac_fn_c_try_link
"$LINENO"; then :
14951 libgo_cv_func___sync_fetch_and_add_4
=yes
14953 libgo_cv_func___sync_fetch_and_add_4
=no
14955 rm -f core conftest.err conftest.
$ac_objext \
14956 conftest
$ac_exeext conftest.
$ac_ext
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_fetch_and_add_4" >&5
14959 $as_echo "$libgo_cv_func___sync_fetch_and_add_4" >&6; }
14960 if test "$libgo_cv_func___sync_fetch_and_add_4" = "yes"; then
14962 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD_4 1" >>confdefs.h
14966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_add_and_fetch_8" >&5
14967 $as_echo_n "checking for __sync_add_and_fetch_8... " >&6; }
14968 if test "${libgo_cv_func___sync_add_and_fetch_8+set}" = set; then :
14969 $as_echo_n "(cached) " >&6
14971 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14972 /* end confdefs.h. */
14974 typedef unsigned int uint64 __attribute__ ((mode (DI)));
14976 int main() { return __sync_add_and_fetch (&i, 1); }
14979 if ac_fn_c_try_link
"$LINENO"; then :
14980 libgo_cv_func___sync_add_and_fetch_8
=yes
14982 libgo_cv_func___sync_add_and_fetch_8
=no
14984 rm -f core conftest.err conftest.
$ac_objext \
14985 conftest
$ac_exeext conftest.
$ac_ext
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_add_and_fetch_8" >&5
14988 $as_echo "$libgo_cv_func___sync_add_and_fetch_8" >&6; }
14989 if test "$libgo_cv_func___sync_add_and_fetch_8" = "yes"; then
14991 $as_echo "#define HAVE_SYNC_ADD_AND_FETCH_8 1" >>confdefs.h
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
14996 $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
14997 if test "${libgo_cv_c_stringops+set}" = set; then :
14998 $as_echo_n "(cached) " >&6
15000 CFLAGS_hold
=$CFLAGS
15001 CFLAGS
="$CFLAGS -minline-all-stringops"
15002 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15003 /* end confdefs.h. */
15006 if ac_fn_c_try_compile
"$LINENO"; then :
15007 libgo_cv_c_stringops
=yes
15009 libgo_cv_c_stringops
=no
15011 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15012 CFLAGS
=$CFLAGS_hold
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
15015 $as_echo "$libgo_cv_c_stringops" >&6; }
15017 if test "$libgo_cv_c_stringops" = yes; then
15018 STRINGOPS_FLAG
=-minline-all-stringops
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -mfancy-math-387" >&5
15023 $as_echo_n "checking whether compiler supports -mfancy-math-387... " >&6; }
15024 if test "${libgo_cv_c_fancymath+set}" = set; then :
15025 $as_echo_n "(cached) " >&6
15027 CFLAGS_hold
=$CFLAGS
15028 CFLAGS
="$CFLAGS -mfancy-math-387"
15029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15030 /* end confdefs.h. */
15033 if ac_fn_c_try_compile
"$LINENO"; then :
15034 libgo_cv_c_fancymath
=yes
15036 libgo_cv_c_fancymath
=no
15038 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15039 CFLAGS
=$CFLAGS_hold
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_fancymath" >&5
15042 $as_echo "$libgo_cv_c_fancymath" >&6; }
15044 if test "$libgo_cv_c_fancymath" = yes; then
15045 MATH_FLAG
="-mfancy-math-387 -funsafe-math-optimizations"
15047 MATH_FLAG
="-ffp-contract=off"
15051 CFLAGS_hold
=$CFLAGS
15052 CFLAGS
="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
15053 ac_fn_c_check_type
"$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
15054 if test "x$ac_cv_type_off64_t" = x
""yes; then :
15056 cat >>confdefs.h
<<_ACEOF
15057 #define HAVE_OFF64_T 1
15063 CFLAGS
=$CFLAGS_hold
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event size" >&5
15066 $as_echo_n "checking epoll_event size... " >&6; }
15067 if test "${libgo_cv_c_epoll_event_size+set}" = set; then :
15068 $as_echo_n "(cached) " >&6
15070 if ac_fn_c_compute_int
"$LINENO" "sizeof (struct epoll_event)" "libgo_cv_c_epoll_event_size" "#include <sys/epoll.h>"; then :
15073 libgo_cv_c_epoll_event_size
=0
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_size" >&5
15078 $as_echo "$libgo_cv_c_epoll_event_size" >&6; }
15079 SIZEOF_STRUCT_EPOLL_EVENT
=${libgo_cv_c_epoll_event_size}
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event data.fd offset" >&5
15083 $as_echo_n "checking epoll_event data.fd offset... " >&6; }
15084 if test "${libgo_cv_c_epoll_event_fd_offset+set}" = set; then :
15085 $as_echo_n "(cached) " >&6
15087 if ac_fn_c_compute_int
"$LINENO" "offsetof (struct epoll_event, data.fd)" "libgo_cv_c_epoll_event_fd_offset" "#include <stddef.h>
15088 #include <sys/epoll.h>"; then :
15091 libgo_cv_c_epoll_event_fd_offset
=0
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_fd_offset" >&5
15096 $as_echo "$libgo_cv_c_epoll_event_fd_offset" >&6; }
15097 STRUCT_EPOLL_EVENT_FD_OFFSET
=${libgo_cv_c_epoll_event_fd_offset}
15100 ac_fn_c_check_type
"$LINENO" "struct exception" "ac_cv_type_struct_exception" "#include <math.h>
15102 if test "x$ac_cv_type_struct_exception" = x
""yes; then :
15103 libgo_has_struct_exception
=yes
15105 libgo_has_struct_exception
=no
15108 if test "$libgo_has_struct_exception" = "yes"; then
15110 $as_echo "#define HAVE_STRUCT_EXCEPTION 1" >>confdefs.h
15114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setcontext clobbers TLS variables" >&5
15115 $as_echo_n "checking whether setcontext clobbers TLS variables... " >&6; }
15116 if test "${libgo_cv_lib_setcontext_clobbers_tls+set}" = set; then :
15117 $as_echo_n "(cached) " >&6
15119 CFLAGS_hold
="$CFLAGS"
15120 CFLAGS
="$PTHREAD_CFLAGS"
15122 LIBS
="$LIBS $PTHREAD_LIBS"
15123 # The cast to long int works around a bug in the HP C Compiler
15124 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15125 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15126 # This bug is HP SR number 8606223364.
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15128 $as_echo_n "checking size of void *... " >&6; }
15129 if test "${ac_cv_sizeof_void_p+set}" = set; then :
15130 $as_echo_n "(cached) " >&6
15132 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15135 if test "$ac_cv_type_void_p" = yes; then
15136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15138 { as_fn_set_status
77
15139 as_fn_error
"cannot compute sizeof (void *)
15140 See \`config.log' for more details." "$LINENO" 5; }; }
15142 ac_cv_sizeof_void_p
=0
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15148 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15152 cat >>confdefs.h
<<_ACEOF
15153 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15157 as_fn_arith
$ac_cv_sizeof_void_p \
* 8 && ptr_type_size
=$as_val
15158 if test "$cross_compiling" = yes; then :
15159 case "$target:$ptr_type_size" in
15160 i?
86-*-solaris2.1
[01]:64 | x86_64
*-*-solaris2.1
[01]:64)
15161 libgo_cv_lib_setcontext_clobbers_tls
=yes ;;
15163 libgo_cv_lib_setcontext_clobbers_tls
=no
;;
15167 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15168 /* end confdefs.h. */
15170 #include <pthread.h>
15171 #include <stdlib.h>
15172 #include <ucontext.h>
15173 #include <unistd.h>
15177 static char stack[10 * 1024 * 1024];
15178 static ucontext_t c;
15180 /* Called via makecontext/setcontext. */
15188 /* Called via pthread_create. */
15193 /* The thread should still see this value after calling
15199 /* The call to setcontext should not return. */
15208 /* The thread should not see this value. */
15211 if (getcontext (&c) < 0)
15214 c.uc_stack.ss_sp = stack;
15215 #ifdef MAKECONTEXT_STACK_TOP
15216 c.uc_stack.ss_sp += sizeof stack;
15218 c.uc_stack.ss_flags = 0;
15219 c.uc_stack.ss_size = sizeof stack;
15221 makecontext (&c, cfn, 0);
15223 if (pthread_create (&tid, NULL, tfn, NULL) != 0)
15226 if (pthread_join (tid, NULL) != 0)
15229 /* The thread should have called exit. */
15234 if ac_fn_c_try_run
"$LINENO"; then :
15235 libgo_cv_lib_setcontext_clobbers_tls
=no
15237 libgo_cv_lib_setcontext_clobbers_tls
=yes
15239 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15240 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15243 CFLAGS
="$CFLAGS_hold"
15247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_setcontext_clobbers_tls" >&5
15248 $as_echo "$libgo_cv_lib_setcontext_clobbers_tls" >&6; }
15249 if test "$libgo_cv_lib_setcontext_clobbers_tls" = "yes"; then
15251 $as_echo "#define SETCONTEXT_CLOBBERS_TLS 1" >>confdefs.h
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
15256 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
15257 if test "${libgo_cv_ro_eh_frame+set}" = set; then :
15258 $as_echo_n "(cached) " >&6
15261 libgo_cv_ro_eh_frame
=no
15262 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
15263 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c
> /dev
/null
2>&1; then
15264 if grep '.section.*eh_frame.*"a"' conftest.s
> /dev
/null
; then
15265 libgo_cv_ro_eh_frame
=yes
15266 elif grep '.section.*eh_frame.*#alloc' conftest.c \
15267 |
grep -v '#write' > /dev
/null
; then
15268 libgo_cv_ro_eh_frame
=yes
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ro_eh_frame" >&5
15275 $as_echo "$libgo_cv_ro_eh_frame" >&6; }
15276 if test "x$libgo_cv_ro_eh_frame" = xyes
; then
15278 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
15282 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Qunused-arguments" >&5
15287 $as_echo_n "checking if compiler supports -Qunused-arguments... " >&6; }
15288 if test "${libgo_cv_c_unused_arguments+set}" = set; then :
15289 $as_echo_n "(cached) " >&6
15291 CFLAGS_hold
=$CFLAGS
15292 CFLAGS
="$CFLAGS -Qunused-arguments"
15293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15294 /* end confdefs.h. */
15297 if ac_fn_c_try_compile
"$LINENO"; then :
15298 libgo_cv_c_unused_arguments
=yes
15300 libgo_cv_c_unused_arguments
=no
15302 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15303 CFLAGS
=$CFLAGS_hold
15305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_unused_arguments" >&5
15306 $as_echo "$libgo_cv_c_unused_arguments" >&6; }
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports GNU comdat group syntax" >&5
15309 $as_echo_n "checking if assembler supports GNU comdat group syntax... " >&6; }
15310 if test "${libgo_cv_as_comdat_gnu+set}" = set; then :
15311 $as_echo_n "(cached) " >&6
15314 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
15315 CFLAGS_hold
=$CFLAGS
15316 if test "$libgo_cv_c_unused_arguments" = yes; then
15317 CFLAGS
="$CFLAGS -Qunused-arguments"
15319 if $CC $CFLAGS -c conftest.s
> /dev
/null
2>&1; then
15320 libgo_cv_as_comdat_gnu
=yes
15322 libgo_cv_as_comdat_gnu
=no
15324 CFLAGS
=$CFLAGS_hold
15327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_comdat_gnu" >&5
15328 $as_echo "$libgo_cv_as_comdat_gnu" >&6; }
15329 if test "x$libgo_cv_as_comdat_gnu" = xyes
; then
15331 $as_echo "#define HAVE_AS_COMDAT_GAS 1" >>confdefs.h
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
15336 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
15337 if test "${libgo_cv_as_x86_pcrel+set}" = set; then :
15338 $as_echo_n "(cached) " >&6
15341 libgo_cv_as_x86_pcrel
=yes
15342 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
15343 CFLAGS_hold
=$CFLAGS
15344 if test "$libgo_cv_c_unused_arguments" = yes; then
15345 CFLAGS
="$CFLAGS -Qunused-arguments"
15347 if $CC $CFLAGS -c conftest.s
2>&1 |
$EGREP -i 'illegal|warning' > /dev
/null
; then
15348 libgo_cv_as_x86_pcrel
=no
15350 CFLAGS
=$CFLAGS_hold
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_pcrel" >&5
15354 $as_echo "$libgo_cv_as_x86_pcrel" >&6; }
15355 if test "x$libgo_cv_as_x86_pcrel" = xyes
; then
15357 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
15362 $as_echo_n "checking assembler supports unwind section type... " >&6; }
15363 if test "${libgo_cv_as_x86_64_unwind_section_type+set}" = set; then :
15364 $as_echo_n "(cached) " >&6
15367 libgo_cv_as_x86_64_unwind_section_type
=yes
15368 echo '.section .eh_frame,"a",@unwind' > conftest.s
15369 CFLAGS_hold
=$CFLAGS
15370 if test "$libgo_cv_c_unused_arguments" = yes; then
15371 CFLAGS
="$CFLAGS -Qunused-arguments"
15373 if $CC $CFLAGS -c conftest.s
2>&1 |
grep -i warning
> /dev
/null
; then
15374 libgo_cv_as_x86_64_unwind_section_type
=no
15376 CFLAGS
=$CFLAGS_hold
15379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_64_unwind_section_type" >&5
15380 $as_echo "$libgo_cv_as_x86_64_unwind_section_type" >&6; }
15381 if test "x$libgo_cv_as_x86_64_unwind_section_type" = xyes
; then
15383 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
15387 cat >confcache
<<\_ACEOF
15388 # This file is a shell script that caches the results of configure
15389 # tests run on this system so they can be shared between configure
15390 # scripts and configure runs, see configure's option --config-cache.
15391 # It is not useful on other systems. If it contains results you don't
15392 # want to keep, you may remove or edit it.
15394 # config.status only pays attention to the cache file if you give it
15395 # the --recheck option to rerun configure.
15397 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15398 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15399 # following values.
15403 # The following way of writing the cache mishandles newlines in values,
15404 # but we know of no workaround that is simple, portable, and efficient.
15405 # So, we kill variables containing newlines.
15406 # Ultrix sh set writes to stderr and can't be redirected directly,
15407 # and sets the high bit in the cache file unless we assign to the vars.
15409 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15410 eval ac_val
=\$
$ac_var
15414 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15415 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15418 _ | IFS | as_nl
) ;; #(
15419 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
15420 *) { eval $ac_var=; unset $ac_var;} ;;
15426 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15427 *${as_nl}ac_space
=\
*)
15428 # `set' does not quote correctly, so add quotes: double-quote
15429 # substitution turns \\\\ into \\, and sed turns \\ into \.
15432 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15435 # `set' quotes correctly as required by POSIX, so do not add quotes.
15436 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15445 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15447 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15449 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
15450 if test -w "$cache_file"; then
15451 test "x$cache_file" != "x/dev/null" &&
15452 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15453 $as_echo "$as_me: updating cache $cache_file" >&6;}
15454 cat confcache
>$cache_file
15456 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15457 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15462 if test ${multilib} = yes; then
15463 multilib_arg
="--enable-multilib"
15468 ac_config_files
="$ac_config_files Makefile testsuite/Makefile"
15471 ac_config_commands
="$ac_config_commands default"
15474 cat >confcache
<<\_ACEOF
15475 # This file is a shell script that caches the results of configure
15476 # tests run on this system so they can be shared between configure
15477 # scripts and configure runs, see configure's option --config-cache.
15478 # It is not useful on other systems. If it contains results you don't
15479 # want to keep, you may remove or edit it.
15481 # config.status only pays attention to the cache file if you give it
15482 # the --recheck option to rerun configure.
15484 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15485 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15486 # following values.
15490 # The following way of writing the cache mishandles newlines in values,
15491 # but we know of no workaround that is simple, portable, and efficient.
15492 # So, we kill variables containing newlines.
15493 # Ultrix sh set writes to stderr and can't be redirected directly,
15494 # and sets the high bit in the cache file unless we assign to the vars.
15496 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15497 eval ac_val
=\$
$ac_var
15501 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15502 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15505 _ | IFS | as_nl
) ;; #(
15506 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
15507 *) { eval $ac_var=; unset $ac_var;} ;;
15513 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15514 *${as_nl}ac_space
=\
*)
15515 # `set' does not quote correctly, so add quotes: double-quote
15516 # substitution turns \\\\ into \\, and sed turns \\ into \.
15519 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15522 # `set' quotes correctly as required by POSIX, so do not add quotes.
15523 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15532 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15534 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15536 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
15537 if test -w "$cache_file"; then
15538 test "x$cache_file" != "x/dev/null" &&
15539 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15540 $as_echo "$as_me: updating cache $cache_file" >&6;}
15541 cat confcache
>$cache_file
15543 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15544 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15549 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15550 # Let make expand exec_prefix.
15551 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15553 DEFS
=-DHAVE_CONFIG_H
15557 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15558 # 1. Remove the extension, and $U if already installed.
15559 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
15560 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
15561 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15562 # will be set to the directory where LIBOBJS objects are built.
15563 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15564 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
15566 LIBOBJS
=$ac_libobjs
15568 LTLIBOBJS
=$ac_ltlibobjs
15571 if test -n "$EXEEXT"; then
15573 am__EXEEXT_FALSE
='#'
15575 am__EXEEXT_TRUE
='#'
15579 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15580 as_fn_error
"conditional \"AMDEP\" was never defined.
15581 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15583 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15584 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
15585 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15587 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15588 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
15589 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15591 if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
15592 as_fn_error
"conditional \"LIBGO_IS_DARWIN\" was never defined.
15593 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15595 if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
15596 as_fn_error
"conditional \"LIBGO_IS_FREEBSD\" was never defined.
15597 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15599 if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
15600 as_fn_error
"conditional \"LIBGO_IS_IRIX\" was never defined.
15601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15603 if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
15604 as_fn_error
"conditional \"LIBGO_IS_LINUX\" was never defined.
15605 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15607 if test -z "${LIBGO_IS_NETBSD_TRUE}" && test -z "${LIBGO_IS_NETBSD_FALSE}"; then
15608 as_fn_error
"conditional \"LIBGO_IS_NETBSD\" was never defined.
15609 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15611 if test -z "${LIBGO_IS_OPENBSD_TRUE}" && test -z "${LIBGO_IS_OPENBSD_FALSE}"; then
15612 as_fn_error
"conditional \"LIBGO_IS_OPENBSD\" was never defined.
15613 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15615 if test -z "${LIBGO_IS_DRAGONFLY_TRUE}" && test -z "${LIBGO_IS_DRAGONFLY_FALSE}"; then
15616 as_fn_error
"conditional \"LIBGO_IS_DRAGONFLY\" was never defined.
15617 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15619 if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
15620 as_fn_error
"conditional \"LIBGO_IS_RTEMS\" was never defined.
15621 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15623 if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
15624 as_fn_error
"conditional \"LIBGO_IS_SOLARIS\" was never defined.
15625 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15627 if test -z "${LIBGO_IS_386_TRUE}" && test -z "${LIBGO_IS_386_FALSE}"; then
15628 as_fn_error
"conditional \"LIBGO_IS_386\" was never defined.
15629 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15631 if test -z "${LIBGO_IS_ALPHA_TRUE}" && test -z "${LIBGO_IS_ALPHA_FALSE}"; then
15632 as_fn_error
"conditional \"LIBGO_IS_ALPHA\" was never defined.
15633 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15635 if test -z "${LIBGO_IS_ARM_TRUE}" && test -z "${LIBGO_IS_ARM_FALSE}"; then
15636 as_fn_error
"conditional \"LIBGO_IS_ARM\" was never defined.
15637 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15639 if test -z "${LIBGO_IS_ARM64_TRUE}" && test -z "${LIBGO_IS_ARM64_FALSE}"; then
15640 as_fn_error
"conditional \"LIBGO_IS_ARM64\" was never defined.
15641 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15643 if test -z "${LIBGO_IS_M68K_TRUE}" && test -z "${LIBGO_IS_M68K_FALSE}"; then
15644 as_fn_error
"conditional \"LIBGO_IS_M68K\" was never defined.
15645 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15647 if test -z "${LIBGO_IS_MIPS_TRUE}" && test -z "${LIBGO_IS_MIPS_FALSE}"; then
15648 as_fn_error
"conditional \"LIBGO_IS_MIPS\" was never defined.
15649 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15651 if test -z "${LIBGO_IS_MIPSO32_TRUE}" && test -z "${LIBGO_IS_MIPSO32_FALSE}"; then
15652 as_fn_error
"conditional \"LIBGO_IS_MIPSO32\" was never defined.
15653 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15655 if test -z "${LIBGO_IS_MIPSN32_TRUE}" && test -z "${LIBGO_IS_MIPSN32_FALSE}"; then
15656 as_fn_error
"conditional \"LIBGO_IS_MIPSN32\" was never defined.
15657 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15659 if test -z "${LIBGO_IS_MIPSN64_TRUE}" && test -z "${LIBGO_IS_MIPSN64_FALSE}"; then
15660 as_fn_error
"conditional \"LIBGO_IS_MIPSN64\" was never defined.
15661 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15663 if test -z "${LIBGO_IS_MIPSO64_TRUE}" && test -z "${LIBGO_IS_MIPSO64_FALSE}"; then
15664 as_fn_error
"conditional \"LIBGO_IS_MIPSO64\" was never defined.
15665 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15667 if test -z "${LIBGO_IS_PPC_TRUE}" && test -z "${LIBGO_IS_PPC_FALSE}"; then
15668 as_fn_error
"conditional \"LIBGO_IS_PPC\" was never defined.
15669 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15671 if test -z "${LIBGO_IS_PPC64_TRUE}" && test -z "${LIBGO_IS_PPC64_FALSE}"; then
15672 as_fn_error
"conditional \"LIBGO_IS_PPC64\" was never defined.
15673 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15675 if test -z "${LIBGO_IS_S390_TRUE}" && test -z "${LIBGO_IS_S390_FALSE}"; then
15676 as_fn_error
"conditional \"LIBGO_IS_S390\" was never defined.
15677 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15679 if test -z "${LIBGO_IS_S390X_TRUE}" && test -z "${LIBGO_IS_S390X_FALSE}"; then
15680 as_fn_error
"conditional \"LIBGO_IS_S390X\" was never defined.
15681 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15683 if test -z "${LIBGO_IS_SPARC_TRUE}" && test -z "${LIBGO_IS_SPARC_FALSE}"; then
15684 as_fn_error
"conditional \"LIBGO_IS_SPARC\" was never defined.
15685 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15687 if test -z "${LIBGO_IS_SPARC64_TRUE}" && test -z "${LIBGO_IS_SPARC64_FALSE}"; then
15688 as_fn_error
"conditional \"LIBGO_IS_SPARC64\" was never defined.
15689 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15691 if test -z "${LIBGO_IS_X86_64_TRUE}" && test -z "${LIBGO_IS_X86_64_FALSE}"; then
15692 as_fn_error
"conditional \"LIBGO_IS_X86_64\" was never defined.
15693 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15695 if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
15696 as_fn_error
"conditional \"USING_SPLIT_STACK\" was never defined.
15697 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15700 if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
15701 as_fn_error
"conditional \"HAVE_SYS_MMAN_H\" was never defined.
15702 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15704 if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
15705 as_fn_error
"conditional \"HAVE_STRERROR_R\" was never defined.
15706 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15708 if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
15709 as_fn_error
"conditional \"HAVE_WAIT4\" was never defined.
15710 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15713 : ${CONFIG_STATUS=./config.status}
15715 ac_clean_files_save
=$ac_clean_files
15716 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15718 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15720 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15722 # Generated by $as_me.
15723 # Run this file to recreate the current configuration.
15724 # Compiler output produced by configure, useful for debugging
15725 # configure, is in config.log if it exists.
15728 ac_cs_recheck=false
15731 SHELL=\${CONFIG_SHELL-$SHELL}
15734 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
15735 ## -------------------- ##
15736 ## M4sh Initialization. ##
15737 ## -------------------- ##
15739 # Be more Bourne compatible
15740 DUALCASE
=1; export DUALCASE
# for MKS sh
15741 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
15744 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15745 # is contrary to our usage. Disable this feature.
15746 alias -g '${1+"$@"}'='"$@"'
15747 setopt NO_GLOB_SUBST
15749 case `(set -o) 2>/dev/null` in #(
15761 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15762 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15763 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15764 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15765 # Prefer a ksh shell builtin over an external printf program on Solaris,
15766 # but without wasting forks for bash or zsh.
15767 if test -z "$BASH_VERSION$ZSH_VERSION" \
15768 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15769 as_echo='print
-r --'
15770 as_echo_n='print
-rn --'
15771 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15772 as_echo='printf %s
\n'
15773 as_echo_n='printf %s
'
15775 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15776 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
15777 as_echo_n='/usr
/ucb
/echo -n'
15779 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15780 as_echo_n_body='eval
15784 expr "X$arg" : "X\\(.*\\)$as_nl";
15785 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15787 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
15789 export as_echo_n_body
15790 as_echo_n='sh
-c $as_echo_n_body as_echo
'
15792 export as_echo_body
15793 as_echo='sh
-c $as_echo_body as_echo
'
15796 # The user is always right.
15797 if test "${PATH_SEPARATOR+set}" != set; then
15799 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15800 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15807 # We need space, tab and new line, in precisely that order. Quoting is
15808 # there to prevent editors from complaining about space-tab.
15809 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15810 # splitting by setting IFS to empty value.)
15813 # Find who we are. Look in the path if we contain no directory separator.
15815 *[\\/]* ) as_myself=$0 ;;
15816 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15817 for as_dir in $PATH
15820 test -z "$as_dir" && as_dir=.
15821 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15827 # We did not find ourselves, most probably we were run as `sh COMMAND'
15828 # in which case we are not to be found in the path.
15829 if test "x$as_myself" = x
; then
15832 if test ! -f "$as_myself"; then
15833 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15837 # Unset variables that we do not need and which cause bugs (e.g. in
15838 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15839 # suppresses any "Segmentation fault" message there. '((' could
15840 # trigger a bug in pdksh 5.2.14.
15841 for as_var
in BASH_ENV ENV MAIL MAILPATH
15842 do eval test x\
${$as_var+set} = xset \
15843 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
15856 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
15859 # as_fn_error ERROR [LINENO LOG_FD]
15860 # ---------------------------------
15861 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15862 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15863 # script with status $?, using 1 if that was 0.
15866 as_status
=$?
; test $as_status -eq 0 && as_status
=1
15868 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
15869 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15871 $as_echo "$as_me: error: $1" >&2
15872 as_fn_exit
$as_status
15876 # as_fn_set_status STATUS
15877 # -----------------------
15878 # Set $? to STATUS, without forking.
15879 as_fn_set_status
()
15882 } # as_fn_set_status
15884 # as_fn_exit STATUS
15885 # -----------------
15886 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15890 as_fn_set_status
$1
15896 # Portably unset VAR.
15899 { eval $1=; unset $1;}
15901 as_unset
=as_fn_unset
15902 # as_fn_append VAR VALUE
15903 # ----------------------
15904 # Append the text in VALUE to the end of the definition contained in VAR. Take
15905 # advantage of any shell optimizations that allow amortized linear growth over
15906 # repeated appends, instead of the typical quadratic growth present in naive
15908 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
15909 eval 'as_fn_append ()
15920 # as_fn_arith ARG...
15921 # ------------------
15922 # Perform arithmetic evaluation on the ARGs, and store the result in the
15923 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15924 # must be portable across $(()) and expr.
15925 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
15926 eval 'as_fn_arith ()
15933 as_val
=`expr "$@" || test $? -eq 1`
15938 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15939 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15945 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15946 as_basename
=basename
15951 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
15957 as_me
=`$as_basename -- "$0" ||
15958 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15959 X"$0" : 'X\(//\)$' \| \
15960 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15962 sed '/^.*\/\([^/][^/]*\)\/*$/{
15976 # Avoid depending upon Character Ranges.
15977 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15978 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15979 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15980 as_cr_digits
='0123456789'
15981 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15983 ECHO_C
= ECHO_N
= ECHO_T
=
15984 case `echo -n x` in #(((((
15986 case `echo 'xy\c'` in
15987 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
15989 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
15996 rm -f conf$$ conf$$.exe conf$$.
file
15997 if test -d conf$$.dir
; then
15998 rm -f conf$$.dir
/conf$$.
file
16001 mkdir conf$$.dir
2>/dev
/null
16003 if (echo >conf$$.
file) 2>/dev
/null
; then
16004 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16006 # ... but there are two gotchas:
16007 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16008 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16009 # In both cases, we have to default to `cp -p'.
16010 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
16012 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16020 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
16021 rmdir conf$$.dir
2>/dev
/null
16026 # Create "$as_dir" as a directory, including parents if necessary.
16031 -*) as_dir
=.
/$as_dir;;
16033 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
16037 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16038 *) as_qdir
=$as_dir;;
16040 as_dirs
="'$as_qdir' $as_dirs"
16041 as_dir
=`$as_dirname -- "$as_dir" ||
16042 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16043 X"$as_dir" : 'X\(//\)[^/]' \| \
16044 X"$as_dir" : 'X\(//\)$' \| \
16045 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16046 $as_echo X"$as_dir" |
16047 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16051 /^X\(\/\/\)[^/].*/{
16064 test -d "$as_dir" && break
16066 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
16067 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
16071 if mkdir
-p .
2>/dev
/null
; then
16072 as_mkdir_p
='mkdir -p "$as_dir"'
16074 test -d .
/-p && rmdir .
/-p
16078 if test -x / >/dev
/null
2>&1; then
16079 as_test_x
='test -x'
16081 if ls -dL / >/dev
/null
2>&1; then
16088 if test -d "$1"; then
16094 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16095 ???[sx]*):;;*)false;;esac;fi
16099 as_executable_p
=$as_test_x
16101 # Sed expression to map a string onto a valid CPP name.
16102 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16104 # Sed expression to map a string onto a valid variable name.
16105 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16109 ## ----------------------------------- ##
16110 ## Main body of $CONFIG_STATUS script. ##
16111 ## ----------------------------------- ##
16113 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
16115 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16116 # Save the log message, to keep $0 and so on meaningful, and to
16117 # report actual input values of CONFIG_FILES etc. instead of their
16118 # values after options handling.
16120 This file was extended by package-unused $as_me version-unused, which was
16121 generated by GNU Autoconf 2.64. Invocation command line was
16123 CONFIG_FILES = $CONFIG_FILES
16124 CONFIG_HEADERS = $CONFIG_HEADERS
16125 CONFIG_LINKS = $CONFIG_LINKS
16126 CONFIG_COMMANDS = $CONFIG_COMMANDS
16129 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16134 case $ac_config_files in *"
16135 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
16138 case $ac_config_headers in *"
16139 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
16143 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16144 # Files that config.status was made for.
16145 config_files="$ac_config_files"
16146 config_headers="$ac_config_headers"
16147 config_commands="$ac_config_commands"
16151 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16153 \`$as_me' instantiates files and other configuration actions
16154 from templates according to the current configuration. Unless the files
16155 and actions are specified as TAGs, all are instantiated by default.
16157 Usage: $0 [OPTION]... [TAG]...
16159 -h, --help print this help, then exit
16160 -V, --version print version number and configuration settings, then exit
16161 -q, --quiet, --silent
16162 do not print progress messages
16163 -d, --debug don't remove temporary files
16164 --recheck update $as_me by reconfiguring in the same conditions
16165 --file=FILE[:TEMPLATE]
16166 instantiate the configuration file FILE
16167 --header=FILE[:TEMPLATE]
16168 instantiate the configuration header FILE
16170 Configuration files:
16173 Configuration headers:
16176 Configuration commands:
16179 Report bugs to the package provider."
16182 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16184 package-unused config.status version-unused
16185 configured by $0, generated by GNU Autoconf 2.64,
16186 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16188 Copyright (C) 2009 Free Software Foundation, Inc.
16189 This config.status script is free software; the Free Software Foundation
16190 gives unlimited permission to copy, distribute and modify it."
16197 test -n "\$AWK" || AWK=awk
16200 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16201 # The default lists apply if the user does not specify any file.
16207 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16208 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
16219 # Handling of the options.
16220 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16222 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
16223 $as_echo "$ac_cs_version"; exit ;;
16224 --debug |
--debu |
--deb |
--de |
--d |
-d )
16226 --file |
--fil |
--fi |
--f )
16229 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16231 as_fn_append CONFIG_FILES
" '$ac_optarg'"
16232 ac_need_defaults
=false
;;
16233 --header |
--heade |
--head |
--hea )
16236 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16238 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
16239 ac_need_defaults
=false
;;
16241 # Conflict between --help and --header
16242 as_fn_error
"ambiguous option: \`$1'
16243 Try \`$0 --help' for more information.";;
16244 --help |
--hel |
-h )
16245 $as_echo "$ac_cs_usage"; exit ;;
16246 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
16247 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
16250 # This is an error.
16251 -*) as_fn_error
"unrecognized option: \`$1'
16252 Try \`$0 --help' for more information." ;;
16254 *) as_fn_append ac_config_targets
" $1"
16255 ac_need_defaults
=false
;;
16261 ac_configure_extra_args
=
16263 if $ac_cs_silent; then
16265 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16270 if \$ac_cs_recheck; then
16271 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16273 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16274 CONFIG_SHELL='$SHELL'
16275 export CONFIG_SHELL
16280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16284 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16285 ## Running $as_me. ##
16291 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16299 with_multisubdir="$with_multisubdir"
16300 with_multisrctop="$with_multisrctop"
16301 with_target_subdir="$with_target_subdir"
16302 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16303 multi_basedir="$multi_basedir"
16304 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16307 GFORTRAN="$GFORTRAN"
16309 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16312 # The HP-UX ksh and POSIX shell print the target directory to stdout
16313 # if CDPATH is set.
16314 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16316 sed_quote_subst='$sed_quote_subst'
16317 double_quote_subst='$double_quote_subst'
16318 delay_variable_subst='$delay_variable_subst'
16319 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16320 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16321 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16322 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16323 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16324 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16325 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16326 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16327 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16328 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16329 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16330 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16331 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16332 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16333 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16334 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16335 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16336 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16337 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16338 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16339 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16340 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16341 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16342 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16343 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16344 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16345 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16346 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16347 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16348 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16349 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16350 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16351 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16352 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16353 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16354 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16355 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16356 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16357 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16358 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16359 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16360 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16361 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16362 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16363 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16364 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16365 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16366 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16367 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"`'
16368 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16369 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16370 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16371 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16372 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16373 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16374 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16375 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16376 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16377 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16378 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16379 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16380 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16381 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16382 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16383 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16384 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16385 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16386 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16387 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16388 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16389 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16390 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16391 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16392 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16393 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16394 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16395 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16396 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16397 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16398 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16399 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16400 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16401 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16402 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16403 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16404 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16405 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16406 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16407 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16408 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16409 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16410 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16411 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16412 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16413 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16414 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16415 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16416 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16417 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16418 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16419 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16420 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16421 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16422 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16423 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16424 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16425 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16426 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16427 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16428 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16429 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16430 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16431 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16432 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16433 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16434 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16435 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16436 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16437 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16438 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16439 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
16440 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
16441 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
16442 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16443 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
16444 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
16445 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
16446 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
16447 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
16448 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
16449 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
16450 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
16451 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
16452 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16453 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16454 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
16455 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
16456 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
16457 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16458 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16459 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
16460 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16461 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
16462 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16463 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16464 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16465 hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
16466 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
16467 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
16468 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
16469 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
16470 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
16471 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
16472 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
16473 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
16474 fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
16475 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
16476 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
16477 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16478 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16479 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
16480 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
16481 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
16484 LTCFLAGS='$LTCFLAGS'
16485 compiler='$compiler_DEFAULT'
16487 # A function that is used when there is no print builtin or printf.
16488 func_fallback_echo ()
16490 eval 'cat <<_LTECHO_EOF
16495 # Quote evaled strings.
16509 deplibs_check_method \
16518 lt_cv_sys_global_symbol_pipe \
16519 lt_cv_sys_global_symbol_to_cdecl \
16520 lt_cv_sys_global_symbol_to_c_name_address \
16521 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16522 lt_prog_compiler_no_builtin_flag \
16523 lt_prog_compiler_wl \
16524 lt_prog_compiler_pic \
16525 lt_prog_compiler_static \
16526 lt_cv_prog_compiler_c_o \
16534 export_dynamic_flag_spec \
16535 whole_archive_flag_spec \
16536 compiler_needs_object \
16538 allow_undefined_flag \
16539 no_undefined_flag \
16540 hardcode_libdir_flag_spec \
16541 hardcode_libdir_flag_spec_ld \
16542 hardcode_libdir_separator \
16547 variables_saved_for_relink \
16549 library_names_spec \
16551 install_override_mode \
16558 lt_prog_compiler_no_builtin_flag_GO \
16559 lt_prog_compiler_wl_GO \
16560 lt_prog_compiler_pic_GO \
16561 lt_prog_compiler_static_GO \
16562 lt_cv_prog_compiler_c_o_GO \
16563 export_dynamic_flag_spec_GO \
16564 whole_archive_flag_spec_GO \
16565 compiler_needs_object_GO \
16567 allow_undefined_flag_GO \
16568 no_undefined_flag_GO \
16569 hardcode_libdir_flag_spec_GO \
16570 hardcode_libdir_flag_spec_ld_GO \
16571 hardcode_libdir_separator_GO \
16572 fix_srcfile_path_GO \
16573 exclude_expsyms_GO \
16574 include_expsyms_GO \
16575 file_list_spec_GO; do
16576 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16577 *[\\\\\\\`\\"\\\$]*)
16578 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16581 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16586 # Double-quote double-evaled strings.
16587 for var in reload_cmds \
16588 old_postinstall_cmds \
16589 old_postuninstall_cmds \
16591 extract_expsyms_cmds \
16592 old_archive_from_new_cmds \
16593 old_archive_from_expsyms_cmds \
16595 archive_expsym_cmds \
16597 module_expsym_cmds \
16598 export_symbols_cmds \
16601 postuninstall_cmds \
16603 sys_lib_search_path_spec \
16604 sys_lib_dlsearch_path_spec \
16606 old_archive_cmds_GO \
16607 old_archive_from_new_cmds_GO \
16608 old_archive_from_expsyms_cmds_GO \
16610 archive_expsym_cmds_GO \
16612 module_expsym_cmds_GO \
16613 export_symbols_cmds_GO \
16614 prelink_cmds_GO; do
16615 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16616 *[\\\\\\\`\\"\\\$]*)
16617 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16620 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16625 ac_aux_dir='$ac_aux_dir'
16626 xsi_shell='$xsi_shell'
16627 lt_shell_append='$lt_shell_append'
16629 # See if we are running on zsh, and set the options which allow our
16630 # commands through without removal of \ escapes INIT.
16631 if test -n "\${ZSH_VERSION+set}" ; then
16632 setopt NO_GLOB_SUBST
16638 TIMESTAMP='$TIMESTAMP'
16647 # Variables needed in config.status (file generation) which aren't already
16648 # passed by autoconf.
16654 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16656 # Handling of arguments.
16657 for ac_config_target
in $ac_config_targets
16659 case $ac_config_target in
16660 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
16661 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
16662 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
16663 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
16664 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
16665 "testsuite/Makefile") CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
16666 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
16668 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16673 # If the user did not use the arguments to specify the items to instantiate,
16674 # then the envvar interface is used. Set only those that are not.
16675 # We use the long form for the default assignment because of an extremely
16676 # bizarre bug on SunOS 4.1.3.
16677 if $ac_need_defaults; then
16678 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16679 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16680 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16683 # Have a temporary directory for convenience. Make it in the build tree
16684 # simply because there is no reason against having it here, and in addition,
16685 # creating and moving files from /tmp can sometimes cause problems.
16686 # Hook for its removal unless debugging.
16687 # Note that there is a small window in which the directory will not be cleaned:
16688 # after its creation but before its name has been assigned to `$tmp'.
16692 trap 'exit_status=$?
16693 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16695 trap 'as_fn_exit 1' 1 2 13 15
16697 # Create a (secure) tmp directory for tmp files.
16700 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16701 test -n "$tmp" && test -d "$tmp"
16704 tmp
=.
/conf$$
-$RANDOM
16705 (umask 077 && mkdir
"$tmp")
16706 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
16708 # Set up the scripts for CONFIG_FILES section.
16709 # No need to generate them if there are no CONFIG_FILES.
16710 # This happens for instance with `./config.status config.h'.
16711 if test -n "$CONFIG_FILES"; then
16714 ac_cr
=`echo X | tr X '\015'`
16715 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16716 # But we know of no other shell where ac_cr would be empty at this
16717 # point, so we can use a bashism as a fallback.
16718 if test "x$ac_cr" = x
; then
16719 eval ac_cr
=\$
\'\\r
\'
16721 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16722 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16725 ac_cs_awk_cr
=$ac_cr
16728 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16733 echo "cat >conf$$subs.awk <<_ACEOF" &&
16734 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16736 } >conf$$subs.sh ||
16737 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16738 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16740 for ac_last_try in false false false false false :; do
16741 . ./conf$$subs.sh ||
16742 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16744 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
16745 if test $ac_delim_n = $ac_delim_num; then
16747 elif $ac_last_try; then
16748 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16750 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16753 rm -f conf$$subs.sh
16755 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16756 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
16760 s/^/S["/; s
/!.
*/"]=/
16770 s/\(.\{148\}\).*/\1/
16772 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
16777 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16784 s/\(.\{148\}\).*/\1/
16786 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
16790 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16795 ' <conf$$subs.awk | sed '
16800 ' >>$CONFIG_STATUS || ac_write_fail=1
16801 rm -f conf$$subs.awk
16802 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16804 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
16805 for (key in S) S_is_set[key] = 1
16811 nfields = split(line, field, "@
")
16813 len = length(field[1])
16814 for (i = 2; i < nfields; i++) {
16816 keylen = length(key)
16817 if (S_is_set[key]) {
16819 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16820 len += length(value) + length(field[++i])
16831 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16832 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16833 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
16836 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
16837 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
16840 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16841 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
16842 # trailing colons and then remove the whole line if VPATH becomes empty
16843 # (actually we leave an empty line to preserve line numbers).
16844 if test "x
$srcdir" = x.; then
16845 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16846 s/:*\$(srcdir):*/:/
16847 s/:*\${srcdir}:*/:/
16849 s/^\([^=]*=[ ]*\):*/\1/
16855 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16856 fi # test -n "$CONFIG_FILES"
16858 # Set up the scripts for CONFIG_HEADERS section.
16859 # No need to generate them if there are no CONFIG_HEADERS.
16860 # This happens for instance with `./config.status Makefile'.
16861 if test -n "$CONFIG_HEADERS"; then
16862 cat >"$tmp/defines.
awk" <<\_ACAWK ||
16866 # Transform confdefs.h into an awk script `defines.awk', embedded as
16867 # here-document in config.status, that substitutes the proper values into
16868 # config.h.in to produce config.h.
16870 # Create a delimiter string that does not exist in confdefs.h, to ease
16871 # handling of long lines.
16873 for ac_last_try in false false :; do
16874 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
16875 if test -z "$ac_t"; then
16877 elif $ac_last_try; then
16878 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
16880 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16884 # For the awk script, D is an array of macro values keyed by name,
16885 # likewise P contains macro parameters if any. Preserve backslash
16886 # newline sequences.
16888 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16890 s/.\{148\}/&'"$ac_delim"'/g
16893 s/^[ ]*#[ ]*define[ ][ ]*/ /
16900 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
16902 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
16906 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
16907 D["\
1"]=" \
3\\\\\\n
"\\/p
16909 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
16914 s/.\{148\}/&'"$ac_delim"'/g
16919 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
16922 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
16924 ' <confdefs.h | sed '
16925 s/'"$ac_delim"'/"\\\
16926 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16928 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16929 for (key in D) D_is_set[key] = 1
16932 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16934 split(line, arg, " ")
16935 if (arg[1] == "#") {
16939 defundef
= substr
(arg
[1], 2)
16942 split(mac1
, mac2
, "(") #)
16944 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
16945 if (D_is_set
[macro
]) {
16946 # Preserve the white space surrounding the "#".
16947 print prefix
"define", macro P
[macro
] D
[macro
]
16950 # Replace #undef with comments. This is necessary, for example,
16951 # in the case of _POSIX_SOURCE, which is predefined and required
16952 # on some systems where configure will not decide to define it.
16953 if (defundef
== "undef") {
16954 print
"/*", prefix defundef
, macro
, "*/"
16962 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16963 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
16964 fi # test -n "$CONFIG_HEADERS"
16967 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16972 :[FHLC
]) ac_mode
=$ac_tag; continue;;
16974 case $ac_mode$ac_tag in
16976 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
16977 :[FH
]-) ac_tag
=-:-;;
16978 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
16995 -) ac_f
="$tmp/stdin";;
16996 *) # Look for the file first in the build tree, then in the source tree
16997 # (if the path is not absolute). The absolute path cannot be DOS-style,
16998 # because $ac_f cannot contain `:'.
17002 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
17004 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
17006 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17007 as_fn_append ac_file_inputs
" '$ac_f'"
17010 # Let's still pretend it is `configure' which instantiates (i.e., don't
17011 # use $as_me), people would be surprised to read:
17012 # /* config.h. Generated by config.status. */
17013 configure_input
='Generated from '`
17014 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17016 if test x
"$ac_file" != x-
; then
17017 configure_input
="$ac_file. $configure_input"
17018 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17019 $as_echo "$as_me: creating $ac_file" >&6;}
17021 # Neutralize special characters interpreted by sed in replacement strings.
17022 case $configure_input in #(
17023 *\
&* |
*\|
* |
*\\* )
17024 ac_sed_conf_input
=`$as_echo "$configure_input" |
17025 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17026 *) ac_sed_conf_input
=$configure_input;;
17030 *:-:* |
*:-) cat >"$tmp/stdin" \
17031 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
17036 ac_dir
=`$as_dirname -- "$ac_file" ||
17037 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17038 X"$ac_file" : 'X\(//\)[^/]' \| \
17039 X"$ac_file" : 'X\(//\)$' \| \
17040 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17041 $as_echo X"$ac_file" |
17042 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17046 /^X\(\/\/\)[^/].*/{
17059 as_dir
="$ac_dir"; as_fn_mkdir_p
17063 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17065 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17066 # A ".." for each directory in $ac_dir_suffix.
17067 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17068 case $ac_top_builddir_sub in
17069 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17070 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17073 ac_abs_top_builddir
=$ac_pwd
17074 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17075 # for backward compatibility:
17076 ac_top_builddir
=$ac_top_build_prefix
17079 .
) # We are building in place.
17081 ac_top_srcdir
=$ac_top_builddir_sub
17082 ac_abs_top_srcdir
=$ac_pwd ;;
17083 [\\/]* | ?
:[\\/]* ) # Absolute name.
17084 ac_srcdir
=$srcdir$ac_dir_suffix;
17085 ac_top_srcdir
=$srcdir
17086 ac_abs_top_srcdir
=$srcdir ;;
17087 *) # Relative name.
17088 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17089 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17090 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17092 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17102 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
17103 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
17105 ac_MKDIR_P
=$MKDIR_P
17107 [\\/$
]* | ?
:[\\/]* ) ;;
17108 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
17112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17113 # If the template does not know about datarootdir, expand it.
17114 # FIXME: This hack should be removed a few years after 2.60.
17115 ac_datarootdir_hack
=; ac_datarootdir_seen
=
17126 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17127 *datarootdir
*) ac_datarootdir_seen
=yes;;
17128 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
17129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17130 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17133 ac_datarootdir_hack='
17134 s&@datadir@&$datadir&g
17135 s&@docdir@&$docdir&g
17136 s&@infodir@&$infodir&g
17137 s&@localedir@&$localedir&g
17138 s&@mandir@&$mandir&g
17139 s&\\\${datarootdir}&$datarootdir&g' ;;
17143 # Neutralize VPATH when `$srcdir' = `.'.
17144 # Shell code in configure.ac might set extrasub.
17145 # FIXME: do we really want to maintain this feature?
17146 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17147 ac_sed_extra="$ac_vpsub
17150 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17152 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17153 s|@configure_input@|
$ac_sed_conf_input|
;t t
17154 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
17155 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
17156 s
&@srcdir@
&$ac_srcdir&;t t
17157 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
17158 s
&@top_srcdir@
&$ac_top_srcdir&;t t
17159 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
17160 s
&@builddir@
&$ac_builddir&;t t
17161 s
&@abs_builddir@
&$ac_abs_builddir&;t t
17162 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
17163 s
&@INSTALL@
&$ac_INSTALL&;t t
17164 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
17165 $ac_datarootdir_hack
17167 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
17168 || as_fn_error "could not create
$ac_file" "$LINENO" 5
17170 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17171 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
17172 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
17173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
17174 which seems to be undefined. Please make sure it is defined." >&5
17175 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
17176 which seems to be undefined. Please make sure it is defined." >&2;}
17180 -) cat "$tmp/out" && rm -f "$tmp/out";;
17181 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17183 || as_fn_error "could not create $ac_file" "$LINENO" 5
17189 if test x"$ac_file" != x-; then
17191 $as_echo "/* $configure_input */" \
17192 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17193 } >"$tmp/config.h" \
17194 || as_fn_error "could not create $ac_file" "$LINENO" 5
17195 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17196 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17197 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17200 mv "$tmp/config.h" "$ac_file" \
17201 || as_fn_error "could not create $ac_file" "$LINENO" 5
17204 $as_echo "/* $configure_input */" \
17205 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17206 || as_fn_error "could not create -" "$LINENO" 5
17208 # Compute "$ac_file"'s index
in $config_headers.
17211 for _am_header
in $config_headers :; do
17212 case $_am_header in
17213 $_am_arg |
$_am_arg:* )
17216 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
17219 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17220 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17221 X"$_am_arg" : 'X\(//\)[^/]' \| \
17222 X"$_am_arg" : 'X\(//\)$' \| \
17223 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17224 $as_echo X"$_am_arg" |
17225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17229 /^X\(\/\/\)[^/].*/{
17241 s/.*/./; q'`/stamp-h
$_am_stamp_count
17244 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17245 $as_echo "$as_me: executing $ac_file commands" >&6;}
17250 case $ac_file$ac_mode in
17252 # Only add multilib support code if we just rebuilt the top-level
17254 case " $CONFIG_FILES " in
17256 ac_file
=Makefile .
${multi_basedir}/config-ml.
in
17259 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
17260 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17261 # are listed without --file. Let's play safe and only enable the eval
17262 # if we detect the quoting.
17263 case $CONFIG_FILES in
17264 *\'*) eval set x
"$CONFIG_FILES" ;;
17265 *) set x
$CONFIG_FILES ;;
17270 # Strip MF so we end up with the name of the file.
17271 mf
=`echo "$mf" | sed -e 's/:.*$//'`
17272 # Check whether this is an Automake generated Makefile or not.
17273 # We used to match only the files named `Makefile.in', but
17274 # some people rename them; so instead we look at the file content.
17275 # Grep'ing the first line is not enough: some people post-process
17276 # each Makefile.in and add a new line on top of each file to say so.
17277 # Grep'ing the whole file is not good either: AIX grep has a line
17278 # limit of 2048, but all sed's we know have understand at least 4000.
17279 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
17280 dirpart
=`$as_dirname -- "$mf" ||
17281 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17282 X"$mf" : 'X\(//\)[^/]' \| \
17283 X"$mf" : 'X\(//\)$' \| \
17284 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17290 /^X\(\/\/\)[^/].*/{
17306 # Extract the definition of DEPDIR, am__include, and am__quote
17307 # from the Makefile without running `make'.
17308 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
17309 test -z "$DEPDIR" && continue
17310 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
17311 test -z "am__include" && continue
17312 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
17313 # When using ansi2knr, U may be empty or an underscore; expand it
17314 U
=`sed -n 's/^U = //p' < "$mf"`
17315 # Find all dependency output files, they are included files with
17316 # $(DEPDIR) in their names. We invoke sed twice because it is the
17317 # simplest approach to changing $(DEPDIR) to its actual value in the
17319 for file in `sed -n "
17320 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17321 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17322 # Make sure the directory exists.
17323 test -f "$dirpart/$file" && continue
17324 fdir
=`$as_dirname -- "$file" ||
17325 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17326 X"$file" : 'X\(//\)[^/]' \| \
17327 X"$file" : 'X\(//\)$' \| \
17328 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17329 $as_echo X"$file" |
17330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17334 /^X\(\/\/\)[^/].*/{
17347 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
17348 # echo "creating $dirpart/$file"
17349 echo '# dummy' > "$dirpart/$file"
17356 # See if we are running on zsh, and set the options which allow our
17357 # commands through without removal of \ escapes.
17358 if test -n "${ZSH_VERSION+set}" ; then
17359 setopt NO_GLOB_SUBST
17362 cfgfile
="${ofile}T"
17363 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17366 cat <<_LT_EOF >> "$cfgfile"
17369 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17370 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17371 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17372 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17374 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17375 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17376 # Written by Gordon Matzigkeit, 1996
17378 # This file is part of GNU Libtool.
17380 # GNU Libtool is free software; you can redistribute it and/or
17381 # modify it under the terms of the GNU General Public License as
17382 # published by the Free Software Foundation; either version 2 of
17383 # the License, or (at your option) any later version.
17385 # As a special exception to the GNU General Public License,
17386 # if you distribute this file as part of a program or library that
17387 # is built using GNU Libtool, you may include this file under the
17388 # same distribution terms that you use for the rest of that program.
17390 # GNU Libtool is distributed in the hope that it will be useful,
17391 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17392 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17393 # GNU General Public License for more details.
17395 # You should have received a copy of the GNU General Public License
17396 # along with GNU Libtool; see the file COPYING. If not, a copy
17397 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17398 # obtained by writing to the Free Software Foundation, Inc.,
17399 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17402 # The names of the tagged configurations supported by this script.
17403 available_tags="GO "
17405 # ### BEGIN LIBTOOL CONFIG
17407 # A sed program that does not truncate output.
17410 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17411 Xsed="\$SED -e 1s/^X//"
17413 # A grep program that handles long lines.
17419 # A literal string matcher.
17422 # Shell to use when invoking shell scripts.
17425 # An echo program that protects backslashes.
17428 # Which release of libtool.m4 was used?
17429 macro_version=$macro_version
17430 macro_revision=$macro_revision
17432 # Whether or not to build shared libraries.
17433 build_libtool_libs=$enable_shared
17435 # Whether or not to build static libraries.
17436 build_old_libs=$enable_static
17438 # What type of objects to build.
17441 # Whether or not to optimize for fast installation.
17442 fast_install=$enable_fast_install
17445 host_alias=$host_alias
17449 # The build system.
17450 build_alias=$build_alias
17454 # A BSD- or MS-compatible name lister.
17457 # Whether we need soft or hard links.
17460 # What is the maximum length of a command?
17461 max_cmd_len=$max_cmd_len
17463 # Object file suffix (normally "o").
17466 # Executable file suffix (normally "").
17469 # whether the shell understands "unset".
17472 # turn spaces into newlines.
17475 # turn newlines into spaces.
17478 # An object symbol dumper.
17479 OBJDUMP=$lt_OBJDUMP
17481 # Method to check whether dependent libraries are shared objects.
17482 deplibs_check_method=$lt_deplibs_check_method
17484 # Command to use when deplibs_check_method == "file_magic".
17485 file_magic_cmd=$lt_file_magic_cmd
17489 AR_FLAGS=$lt_AR_FLAGS
17491 # A symbol stripping program.
17494 # Commands used to install an old-style archive.
17496 old_postinstall_cmds=$lt_old_postinstall_cmds
17497 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17499 # Whether to use a lock for old archive extraction.
17500 lock_old_archive_extraction=$lock_old_archive_extraction
17505 # LTCC compiler flags.
17506 LTCFLAGS=$lt_CFLAGS
17508 # Take the output of nm and produce a listing of raw symbols and C names.
17509 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17511 # Transform the output of nm in a proper C declaration.
17512 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17514 # Transform the output of nm in a C name address pair.
17515 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17517 # Transform the output of nm in a C name address pair when lib prefix is needed.
17518 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17520 # The name of the directory that contains temporary libtool files.
17523 # Used to examine libraries when file_magic_cmd begins with "file".
17524 MAGIC_CMD=$MAGIC_CMD
17526 # Must we lock files when doing compilation?
17527 need_locks=$lt_need_locks
17529 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17530 DSYMUTIL=$lt_DSYMUTIL
17532 # Tool to change global to local symbols on Mac OS X.
17535 # Tool to manipulate fat objects and archives on Mac OS X.
17538 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17541 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17542 OTOOL64=$lt_OTOOL64
17544 # Old archive suffix (normally "a").
17547 # Shared library suffix (normally ".so").
17548 shrext_cmds=$lt_shrext_cmds
17550 # The commands to extract the exported symbol list from a shared archive.
17551 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17553 # Variables whose values should be saved in libtool wrapper scripts and
17554 # restored at link time.
17555 variables_saved_for_relink=$lt_variables_saved_for_relink
17557 # Do we need the "lib" prefix for modules?
17558 need_lib_prefix=$need_lib_prefix
17560 # Do we need a version for libraries?
17561 need_version=$need_version
17563 # Library versioning type.
17564 version_type=$version_type
17566 # Shared library runtime path variable.
17567 runpath_var=$runpath_var
17569 # Shared library path variable.
17570 shlibpath_var=$shlibpath_var
17572 # Is shlibpath searched before the hard-coded library search path?
17573 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17575 # Format of library name prefix.
17576 libname_spec=$lt_libname_spec
17578 # List of archive names. First name is the real one, the rest are links.
17579 # The last name is the one that the linker finds with -lNAME
17580 library_names_spec=$lt_library_names_spec
17582 # The coded name of the library, if different from the real name.
17583 soname_spec=$lt_soname_spec
17585 # Permission mode override for installation of shared libraries.
17586 install_override_mode=$lt_install_override_mode
17588 # Command to use after installation of a shared archive.
17589 postinstall_cmds=$lt_postinstall_cmds
17591 # Command to use after uninstallation of a shared archive.
17592 postuninstall_cmds=$lt_postuninstall_cmds
17594 # Commands used to finish a libtool library installation in a directory.
17595 finish_cmds=$lt_finish_cmds
17597 # As "finish_cmds", except a single script fragment to be evaled but
17599 finish_eval=$lt_finish_eval
17601 # Whether we should hardcode library paths into libraries.
17602 hardcode_into_libs=$hardcode_into_libs
17604 # Compile-time system search path for libraries.
17605 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17607 # Run-time system search path for libraries.
17608 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17610 # Whether dlopen is supported.
17611 dlopen_support=$enable_dlopen
17613 # Whether dlopen of programs is supported.
17614 dlopen_self=$enable_dlopen_self
17616 # Whether dlopen of statically linked programs is supported.
17617 dlopen_self_static=$enable_dlopen_self_static
17619 # Commands to strip libraries.
17620 old_striplib=$lt_old_striplib
17621 striplib=$lt_striplib
17624 # The linker used to build libraries.
17627 # How to create reloadable object files.
17628 reload_flag=$lt_reload_flag
17629 reload_cmds=$lt_reload_cmds
17631 # Commands used to build an old-style archive.
17632 old_archive_cmds=$lt_old_archive_cmds
17634 # A language specific compiler.
17637 # Is the compiler the GNU compiler?
17640 # Compiler flag to turn off builtin functions.
17641 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17643 # How to pass a linker flag through the compiler.
17644 wl=$lt_lt_prog_compiler_wl
17646 # Additional compiler flags for building library objects.
17647 pic_flag=$lt_lt_prog_compiler_pic
17649 # Compiler flag to prevent dynamic linking.
17650 link_static_flag=$lt_lt_prog_compiler_static
17652 # Does compiler simultaneously support -c and -o options?
17653 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17655 # Whether or not to add -lc for building shared libraries.
17656 build_libtool_need_lc=$archive_cmds_need_lc
17658 # Whether or not to disallow shared libs when runtime libs are static.
17659 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17661 # Compiler flag to allow reflexive dlopens.
17662 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17664 # Compiler flag to generate shared objects directly from archives.
17665 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17667 # Whether the compiler copes with passing no objects directly.
17668 compiler_needs_object=$lt_compiler_needs_object
17670 # Create an old-style archive from a shared archive.
17671 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17673 # Create a temporary old-style archive to link instead of a shared archive.
17674 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17676 # Commands used to build a shared archive.
17677 archive_cmds=$lt_archive_cmds
17678 archive_expsym_cmds=$lt_archive_expsym_cmds
17680 # Commands used to build a loadable module if different from building
17681 # a shared archive.
17682 module_cmds=$lt_module_cmds
17683 module_expsym_cmds=$lt_module_expsym_cmds
17685 # Whether we are building with GNU ld or not.
17686 with_gnu_ld=$lt_with_gnu_ld
17688 # Flag that allows shared libraries with undefined symbols to be built.
17689 allow_undefined_flag=$lt_allow_undefined_flag
17691 # Flag that enforces no undefined symbols.
17692 no_undefined_flag=$lt_no_undefined_flag
17694 # Flag to hardcode \$libdir into a binary during linking.
17695 # This must work even if \$libdir does not exist
17696 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17698 # If ld is used when linking, flag to hardcode \$libdir into a binary
17699 # during linking. This must work even if \$libdir does not exist.
17700 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17702 # Whether we need a single "-rpath" flag with a separated argument.
17703 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17705 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17706 # DIR into the resulting binary.
17707 hardcode_direct=$hardcode_direct
17709 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17710 # DIR into the resulting binary and the resulting library dependency is
17711 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17712 # library is relocated.
17713 hardcode_direct_absolute=$hardcode_direct_absolute
17715 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17716 # into the resulting binary.
17717 hardcode_minus_L=$hardcode_minus_L
17719 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17720 # into the resulting binary.
17721 hardcode_shlibpath_var=$hardcode_shlibpath_var
17723 # Set to "yes" if building a shared library automatically hardcodes DIR
17724 # into the library and all subsequent libraries and executables linked
17726 hardcode_automatic=$hardcode_automatic
17728 # Set to yes if linker adds runtime paths of dependent libraries
17729 # to runtime path list.
17730 inherit_rpath=$inherit_rpath
17732 # Whether libtool must link a program against all its dependency libraries.
17733 link_all_deplibs=$link_all_deplibs
17735 # Fix the shell variable \$srcfile for the compiler.
17736 fix_srcfile_path=$lt_fix_srcfile_path
17738 # Set to "yes" if exported symbols are required.
17739 always_export_symbols=$always_export_symbols
17741 # The commands to list exported symbols.
17742 export_symbols_cmds=$lt_export_symbols_cmds
17744 # Symbols that should not be listed in the preloaded symbols.
17745 exclude_expsyms=$lt_exclude_expsyms
17747 # Symbols that must always be exported.
17748 include_expsyms=$lt_include_expsyms
17750 # Commands necessary for linking programs (against libraries) with templates.
17751 prelink_cmds=$lt_prelink_cmds
17753 # Specify filename containing input files.
17754 file_list_spec=$lt_file_list_spec
17756 # How to hardcode a shared library path into an executable.
17757 hardcode_action=$hardcode_action
17759 # ### END LIBTOOL CONFIG
17765 cat <<\_LT_EOF
>> "$cfgfile"
17766 # AIX sometimes has problems with the GCC collect2 program. For some
17767 # reason, if we set the COLLECT_NAMES environment variable, the problems
17768 # vanish in a puff of smoke.
17769 if test "X${COLLECT_NAMES+set}" != Xset
; then
17771 export COLLECT_NAMES
17778 ltmain
="$ac_aux_dir/ltmain.sh"
17781 # We use sed instead of cat because bash on DJGPP gets confused if
17782 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17783 # text mode, it properly converts lines to CR/LF. This bash problem
17784 # is reportedly fixed, but why not run on old versions too?
17785 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17786 ||
(rm -f "$cfgfile"; exit 1)
17790 cat << \_LT_EOF
>> "$cfgfile"
17792 # func_dirname file append nondir_replacement
17793 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17794 # otherwise set result to NONDIR_REPLACEMENT.
17798 */*) func_dirname_result
="${1%/*}${2}" ;;
17799 * ) func_dirname_result
="${3}" ;;
17803 # func_basename file
17806 func_basename_result
="${1##*/}"
17809 # func_dirname_and_basename file append nondir_replacement
17810 # perform func_basename and func_dirname in a single function
17812 # dirname: Compute the dirname of FILE. If nonempty,
17813 # add APPEND to the result, otherwise set result
17814 # to NONDIR_REPLACEMENT.
17815 # value returned in "$func_dirname_result"
17816 # basename: Compute filename of FILE.
17817 # value retuned in "$func_basename_result"
17818 # Implementation must be kept synchronized with func_dirname
17819 # and func_basename. For efficiency, we do not delegate to
17820 # those functions but instead duplicate the functionality here.
17821 func_dirname_and_basename
()
17824 */*) func_dirname_result
="${1%/*}${2}" ;;
17825 * ) func_dirname_result
="${3}" ;;
17827 func_basename_result
="${1##*/}"
17830 # func_stripname prefix suffix name
17831 # strip PREFIX and SUFFIX off of NAME.
17832 # PREFIX and SUFFIX must not contain globbing or regex special
17833 # characters, hashes, percent signs, but SUFFIX may contain a leading
17834 # dot (in which case that matches only a dot).
17837 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17838 # positional parameters, so assign one to ordinary parameter first.
17839 func_stripname_result
=${3}
17840 func_stripname_result
=${func_stripname_result#"${1}"}
17841 func_stripname_result
=${func_stripname_result%"${2}"}
17847 func_opt_split_opt
=${1%%=*}
17848 func_opt_split_arg
=${1#*=}
17855 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
17856 *) func_lo2o_result
=${1} ;;
17860 # func_xform libobj-or-source
17863 func_xform_result
=${1%.*}.lo
17866 # func_arith arithmetic-term...
17869 func_arith_result
=$
(( $
* ))
17873 # STRING may not start with a hyphen.
17876 func_len_result
=${#1}
17881 *) # Bourne compatible functions.
17882 cat << \_LT_EOF
>> "$cfgfile"
17884 # func_dirname file append nondir_replacement
17885 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17886 # otherwise set result to NONDIR_REPLACEMENT.
17889 # Extract subdirectory from the argument.
17890 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
17891 if test "X$func_dirname_result" = "X${1}"; then
17892 func_dirname_result
="${3}"
17894 func_dirname_result
="$func_dirname_result${2}"
17898 # func_basename file
17901 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
17905 # func_stripname prefix suffix name
17906 # strip PREFIX and SUFFIX off of NAME.
17907 # PREFIX and SUFFIX must not contain globbing or regex special
17908 # characters, hashes, percent signs, but SUFFIX may contain a leading
17909 # dot (in which case that matches only a dot).
17910 # func_strip_suffix prefix name
17914 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17915 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17920 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
17921 my_sed_long_arg
='1s/^-[^=]*=//'
17926 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17927 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17933 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
17936 # func_xform libobj-or-source
17939 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17942 # func_arith arithmetic-term...
17945 func_arith_result
=`expr "$@"`
17949 # STRING may not start with a hyphen.
17952 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17958 case $lt_shell_append in
17960 cat << \_LT_EOF
>> "$cfgfile"
17962 # func_append var value
17963 # Append VALUE to the end of shell variable VAR.
17971 cat << \_LT_EOF
>> "$cfgfile"
17973 # func_append var value
17974 # Append VALUE to the end of shell variable VAR.
17985 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17986 ||
(rm -f "$cfgfile"; exit 1)
17988 mv -f "$cfgfile" "$ofile" ||
17989 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17993 cat <<_LT_EOF >> "$ofile"
17995 # ### BEGIN LIBTOOL TAG CONFIG: GO
17997 # The linker used to build libraries.
18000 # How to create reloadable object files.
18001 reload_flag=$lt_reload_flag_GO
18002 reload_cmds=$lt_reload_cmds_GO
18004 # Commands used to build an old-style archive.
18005 old_archive_cmds=$lt_old_archive_cmds_GO
18007 # A language specific compiler.
18010 # Is the compiler the GNU compiler?
18013 # Compiler flag to turn off builtin functions.
18014 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
18016 # How to pass a linker flag through the compiler.
18017 wl=$lt_lt_prog_compiler_wl_GO
18019 # Additional compiler flags for building library objects.
18020 pic_flag=$lt_lt_prog_compiler_pic_GO
18022 # Compiler flag to prevent dynamic linking.
18023 link_static_flag=$lt_lt_prog_compiler_static_GO
18025 # Does compiler simultaneously support -c and -o options?
18026 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
18028 # Whether or not to add -lc for building shared libraries.
18029 build_libtool_need_lc=$archive_cmds_need_lc_GO
18031 # Whether or not to disallow shared libs when runtime libs are static.
18032 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
18034 # Compiler flag to allow reflexive dlopens.
18035 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
18037 # Compiler flag to generate shared objects directly from archives.
18038 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
18040 # Whether the compiler copes with passing no objects directly.
18041 compiler_needs_object=$lt_compiler_needs_object_GO
18043 # Create an old-style archive from a shared archive.
18044 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
18046 # Create a temporary old-style archive to link instead of a shared archive.
18047 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
18049 # Commands used to build a shared archive.
18050 archive_cmds=$lt_archive_cmds_GO
18051 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
18053 # Commands used to build a loadable module if different from building
18054 # a shared archive.
18055 module_cmds=$lt_module_cmds_GO
18056 module_expsym_cmds=$lt_module_expsym_cmds_GO
18058 # Whether we are building with GNU ld or not.
18059 with_gnu_ld=$lt_with_gnu_ld_GO
18061 # Flag that allows shared libraries with undefined symbols to be built.
18062 allow_undefined_flag=$lt_allow_undefined_flag_GO
18064 # Flag that enforces no undefined symbols.
18065 no_undefined_flag=$lt_no_undefined_flag_GO
18067 # Flag to hardcode \$libdir into a binary during linking.
18068 # This must work even if \$libdir does not exist
18069 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
18071 # If ld is used when linking, flag to hardcode \$libdir into a binary
18072 # during linking. This must work even if \$libdir does not exist.
18073 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
18075 # Whether we need a single "-rpath" flag with a separated argument.
18076 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
18078 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18079 # DIR into the resulting binary.
18080 hardcode_direct=$hardcode_direct_GO
18082 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18083 # DIR into the resulting binary and the resulting library dependency is
18084 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18085 # library is relocated.
18086 hardcode_direct_absolute=$hardcode_direct_absolute_GO
18088 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18089 # into the resulting binary.
18090 hardcode_minus_L=$hardcode_minus_L_GO
18092 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18093 # into the resulting binary.
18094 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
18096 # Set to "yes" if building a shared library automatically hardcodes DIR
18097 # into the library and all subsequent libraries and executables linked
18099 hardcode_automatic=$hardcode_automatic_GO
18101 # Set to yes if linker adds runtime paths of dependent libraries
18102 # to runtime path list.
18103 inherit_rpath=$inherit_rpath_GO
18105 # Whether libtool must link a program against all its dependency libraries.
18106 link_all_deplibs=$link_all_deplibs_GO
18108 # Fix the shell variable \$srcfile for the compiler.
18109 fix_srcfile_path=$lt_fix_srcfile_path_GO
18111 # Set to "yes" if exported symbols are required.
18112 always_export_symbols=$always_export_symbols_GO
18114 # The commands to list exported symbols.
18115 export_symbols_cmds=$lt_export_symbols_cmds_GO
18117 # Symbols that should not be listed in the preloaded symbols.
18118 exclude_expsyms=$lt_exclude_expsyms_GO
18120 # Symbols that must always be exported.
18121 include_expsyms=$lt_include_expsyms_GO
18123 # Commands necessary for linking programs (against libraries) with templates.
18124 prelink_cmds=$lt_prelink_cmds_GO
18126 # Specify filename containing input files.
18127 file_list_spec=$lt_file_list_spec_GO
18129 # How to hardcode a shared library path into an executable.
18130 hardcode_action=$hardcode_action_GO
18132 # ### END LIBTOOL TAG CONFIG: GO
18136 "default":C
) if test -n "$CONFIG_FILES"; then
18137 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
18138 # that multilib installs will end up installed in the correct place.
18139 # The testsuite needs it for multilib-aware ABI baseline files.
18140 # To work around this not being passed down from config-ml.in ->
18141 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
18142 # append it here. Only modify Makefiles that have just been created.
18144 # Also, get rid of this simulated-VPATH thing that automake does.
18145 cat > vpsed
<< \_EOF
18146 s
!`test -f '$<' || echo '$(srcdir)/'`!!
18148 for i
in $SUBDIRS; do
18149 case $CONFIG_FILES in
18151 #echo "Adding MULTISUBDIR to $i/Makefile"
18152 sed -f vpsed
$i/Makefile
> tmp
18153 grep '^MULTISUBDIR =' Makefile
>> tmp
18168 ac_clean_files
=$ac_clean_files_save
18170 test $ac_write_fail = 0 ||
18171 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
18174 # configure is writing to config.log, and then calls config.status.
18175 # config.status does its own redirection, appending to config.log.
18176 # Unfortunately, on DOS this fails, as config.log is still kept open
18177 # by configure, so config.status won't be able to write to it; its
18178 # output is simply discarded. So we exec the FD to /dev/null,
18179 # effectively closing config.log, so it can be properly (re)opened and
18180 # appended to by config.status. When coming back to configure, we
18181 # need to make the FD available again.
18182 if test "$no_create" != yes; then
18184 ac_config_status_args
=
18185 test "$silent" = yes &&
18186 ac_config_status_args
="$ac_config_status_args --quiet"
18188 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
18190 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18191 # would make configure fail if this is the last instruction.
18192 $ac_cs_success || as_fn_exit $?
18194 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
18195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18196 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}