2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for package-unused version-unused.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev
/null
; then :
213 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
216 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
218 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir
=.
225 for as_base
in sh bash ksh sh5
; do
226 # Try only shells that exist, to save several forks.
227 as_shell
=$as_dir/$as_base
228 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
230 CONFIG_SHELL
=$as_shell as_have_required
=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
239 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
241 CONFIG_SHELL
=$SHELL as_have_required
=yes
246 if test "x$CONFIG_SHELL" != x
; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
256 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x
$as_have_required = xno
; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x
${ZSH_VERSION+set} = xset
; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL
=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE
= GREP_OPTIONS
=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir
=.
/$as_dir;;
329 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
333 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs
="'$as_qdir' $as_dirs"
337 as_dir
=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
363 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p
()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
406 as_val
=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status
=$1; test $as_status -eq 0 && as_status
=1
420 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit
$as_status
427 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
434 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
446 as_me
=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits
='0123456789'
470 as_cr_alnum
=$as_cr_Letters$as_cr_digits
473 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
474 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x
"$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec
=no
; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C
= ECHO_N
= ECHO_T
=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
521 rm -f conf$$ conf$$.exe conf$$.
file
522 if test -d conf$$.dir
; then
523 rm -f conf$$.dir
/conf$$.
file
526 mkdir conf$$.dir
2>/dev
/null
528 if (echo >conf$$.
file) 2>/dev
/null
; then
529 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
537 elif ln conf$$.
file conf$$
2>/dev
/null
; then
545 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
546 rmdir conf$$.dir
2>/dev
/null
548 if mkdir
-p .
2>/dev
/null
; then
549 as_mkdir_p
='mkdir -p "$as_dir"'
551 test -d .
/-p && rmdir .
/-p
556 as_executable_p
=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL
=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix
=/usr
/local
580 ac_config_libobj_dir
=.
587 # Identity of this package.
588 PACKAGE_NAME
='package-unused'
589 PACKAGE_TARNAME
='libgo'
590 PACKAGE_VERSION
='version-unused'
591 PACKAGE_STRING
='package-unused version-unused'
595 ac_unique_file
="Makefile.am"
596 # Factoring default headers for most tests.
597 ac_includes_default
="\
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
609 # ifdef HAVE_STDLIB_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
632 ac_subst_vars
='am__EXEEXT_FALSE
636 HAVE_STATIC_LINK_FALSE
637 HAVE_STATIC_LINK_TRUE
638 HAVE_STAT_TIMESPEC_FALSE
639 HAVE_STAT_TIMESPEC_TRUE
640 STRUCT_EPOLL_EVENT_FD_OFFSET
641 SIZEOF_STRUCT_EPOLL_EVENT
646 HAVE_STRERROR_R_FALSE
648 HAVE_SYS_MMAN_H_FALSE
657 USING_SPLIT_STACK_FALSE
658 USING_SPLIT_STACK_TRUE
662 GO_SYSCALL_OS_ARCH_FILE
664 GO_LIBCALL_OS_ARCH_FILE
681 LIBGO_IS_SOLARIS_FALSE
682 LIBGO_IS_SOLARIS_TRUE
685 LIBGO_IS_DRAGONFLY_FALSE
686 LIBGO_IS_DRAGONFLY_TRUE
687 LIBGO_IS_OPENBSD_FALSE
688 LIBGO_IS_OPENBSD_TRUE
689 LIBGO_IS_NETBSD_FALSE
695 LIBGO_IS_FREEBSD_FALSE
696 LIBGO_IS_FREEBSD_TRUE
697 LIBGO_IS_DARWIN_FALSE
705 nover_glibgo_toolexeclibdir
706 glibgo_toolexeclibdir
734 MAINTAINER_MODE_FALSE
736 am__fastdepCCAS_FALSE
772 INSTALL_STRIP_PROGRAM
828 program_transform_name
841 enable_option_checking
844 enable_dependency_tracking
845 enable_maintainer_mode
853 enable_version_specific_runtime_libs
857 with_system_libunwind
859 ac_precious_vars
='build_alias
866 # Initialize some variables set by options.
868 ac_init_version
=false
869 ac_unrecognized_opts
=
871 # The variables have the same names as the options, with
872 # dashes changed to underlines.
880 program_transform_name
=s
,x
,x
,
888 # Installation directory options.
889 # These are left unexpanded so users can "make install exec_prefix=/foo"
890 # and all the variables that are supposed to be based on exec_prefix
891 # by default will actually change.
892 # Use braces instead of parens because sh, perl, etc. also accept them.
893 # (The list follows the same order as the GNU Coding Standards.)
894 bindir
='${exec_prefix}/bin'
895 sbindir
='${exec_prefix}/sbin'
896 libexecdir
='${exec_prefix}/libexec'
897 datarootdir
='${prefix}/share'
898 datadir
='${datarootdir}'
899 sysconfdir
='${prefix}/etc'
900 sharedstatedir
='${prefix}/com'
901 localstatedir
='${prefix}/var'
902 includedir
='${prefix}/include'
903 oldincludedir
='/usr/include'
904 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
905 infodir
='${datarootdir}/info'
910 libdir
='${exec_prefix}/lib'
911 localedir
='${datarootdir}/locale'
912 mandir
='${datarootdir}/man'
918 # If the previous option needs an argument, assign it.
919 if test -n "$ac_prev"; then
920 eval $ac_prev=\
$ac_option
926 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
931 # Accept the important Cygnus configure options, so we can diagnose typos.
933 case $ac_dashdash$ac_option in
937 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
939 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
942 -build |
--build |
--buil |
--bui |
--bu)
943 ac_prev
=build_alias
;;
944 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
945 build_alias
=$ac_optarg ;;
947 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
948 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
949 ac_prev
=cache_file
;;
950 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
951 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
952 cache_file
=$ac_optarg ;;
955 cache_file
=config.cache
;;
957 -datadir |
--datadir |
--datadi |
--datad)
959 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
960 datadir
=$ac_optarg ;;
962 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
963 |
--dataroo |
--dataro |
--datar)
964 ac_prev
=datarootdir
;;
965 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
966 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
967 datarootdir
=$ac_optarg ;;
969 -disable-* |
--disable-*)
970 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
971 # Reject names that are not valid shell variable names.
972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
973 as_fn_error $?
"invalid feature name: $ac_useropt"
974 ac_useropt_orig
=$ac_useropt
975 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976 case $ac_user_opts in
980 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
981 ac_unrecognized_sep
=', ';;
983 eval enable_
$ac_useropt=no
;;
985 -docdir |
--docdir |
--docdi |
--doc |
--do)
987 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
990 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
992 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
995 -enable-* |
--enable-*)
996 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
997 # Reject names that are not valid shell variable names.
998 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
999 as_fn_error $?
"invalid feature name: $ac_useropt"
1000 ac_useropt_orig
=$ac_useropt
1001 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1002 case $ac_user_opts in
1004 "enable_
$ac_useropt"
1006 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1007 ac_unrecognized_sep
=', ';;
1009 eval enable_
$ac_useropt=\
$ac_optarg ;;
1011 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1012 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1013 |
--exec |
--exe |
--ex)
1014 ac_prev
=exec_prefix
;;
1015 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1016 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1017 |
--exec=* |
--exe=* |
--ex=*)
1018 exec_prefix
=$ac_optarg ;;
1020 -gas |
--gas |
--ga |
--g)
1021 # Obsolete; use --with-gas.
1024 -help |
--help |
--hel |
--he |
-h)
1025 ac_init_help
=long
;;
1026 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1027 ac_init_help
=recursive
;;
1028 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1029 ac_init_help
=short
;;
1031 -host |
--host |
--hos |
--ho)
1032 ac_prev
=host_alias
;;
1033 -host=* |
--host=* |
--hos=* |
--ho=*)
1034 host_alias
=$ac_optarg ;;
1036 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1038 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1040 htmldir
=$ac_optarg ;;
1042 -includedir |
--includedir |
--includedi |
--included |
--include \
1043 |
--includ |
--inclu |
--incl |
--inc)
1044 ac_prev
=includedir
;;
1045 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1046 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1047 includedir
=$ac_optarg ;;
1049 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1051 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1052 infodir
=$ac_optarg ;;
1054 -libdir |
--libdir |
--libdi |
--libd)
1056 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1057 libdir
=$ac_optarg ;;
1059 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1060 |
--libexe |
--libex |
--libe)
1061 ac_prev
=libexecdir
;;
1062 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1063 |
--libexe=* |
--libex=* |
--libe=*)
1064 libexecdir
=$ac_optarg ;;
1066 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1067 ac_prev
=localedir
;;
1068 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1069 localedir
=$ac_optarg ;;
1071 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1072 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1073 ac_prev
=localstatedir
;;
1074 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1075 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1076 localstatedir
=$ac_optarg ;;
1078 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1080 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1081 mandir
=$ac_optarg ;;
1083 -nfp |
--nfp |
--nf)
1084 # Obsolete; use --without-fp.
1087 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1088 |
--no-cr |
--no-c |
-n)
1091 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1092 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1095 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1096 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1097 |
--oldin |
--oldi |
--old |
--ol |
--o)
1098 ac_prev
=oldincludedir
;;
1099 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1100 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1101 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1102 oldincludedir
=$ac_optarg ;;
1104 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1106 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1107 prefix
=$ac_optarg ;;
1109 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1110 |
--program-pre |
--program-pr |
--program-p)
1111 ac_prev
=program_prefix
;;
1112 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1113 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1114 program_prefix
=$ac_optarg ;;
1116 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1117 |
--program-suf |
--program-su |
--program-s)
1118 ac_prev
=program_suffix
;;
1119 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1120 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1121 program_suffix
=$ac_optarg ;;
1123 -program-transform-name |
--program-transform-name \
1124 |
--program-transform-nam |
--program-transform-na \
1125 |
--program-transform-n |
--program-transform- \
1126 |
--program-transform |
--program-transfor \
1127 |
--program-transfo |
--program-transf \
1128 |
--program-trans |
--program-tran \
1129 |
--progr-tra |
--program-tr |
--program-t)
1130 ac_prev
=program_transform_name
;;
1131 -program-transform-name=* |
--program-transform-name=* \
1132 |
--program-transform-nam=* |
--program-transform-na=* \
1133 |
--program-transform-n=* |
--program-transform-=* \
1134 |
--program-transform=* |
--program-transfor=* \
1135 |
--program-transfo=* |
--program-transf=* \
1136 |
--program-trans=* |
--program-tran=* \
1137 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1138 program_transform_name
=$ac_optarg ;;
1140 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1142 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1143 pdfdir
=$ac_optarg ;;
1145 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1147 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1150 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1151 |
-silent |
--silent |
--silen |
--sile |
--sil)
1154 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1156 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1158 sbindir
=$ac_optarg ;;
1160 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1161 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1162 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1164 ac_prev
=sharedstatedir
;;
1165 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1166 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1167 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1169 sharedstatedir
=$ac_optarg ;;
1171 -site |
--site |
--sit)
1173 -site=* |
--site=* |
--sit=*)
1176 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1178 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1179 srcdir
=$ac_optarg ;;
1181 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1182 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1183 ac_prev
=sysconfdir
;;
1184 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1185 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1186 sysconfdir
=$ac_optarg ;;
1188 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1189 ac_prev
=target_alias
;;
1190 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1191 target_alias
=$ac_optarg ;;
1193 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1196 -version |
--version |
--versio |
--versi |
--vers |
-V)
1197 ac_init_version
=: ;;
1200 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1201 # Reject names that are not valid shell variable names.
1202 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1203 as_fn_error $?
"invalid package name: $ac_useropt"
1204 ac_useropt_orig
=$ac_useropt
1205 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1206 case $ac_user_opts in
1210 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1211 ac_unrecognized_sep
=', ';;
1213 eval with_
$ac_useropt=\
$ac_optarg ;;
1215 -without-* |
--without-*)
1216 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1217 # Reject names that are not valid shell variable names.
1218 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1219 as_fn_error $?
"invalid package name: $ac_useropt"
1220 ac_useropt_orig
=$ac_useropt
1221 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1222 case $ac_user_opts in
1226 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1227 ac_unrecognized_sep
=', ';;
1229 eval with_
$ac_useropt=no
;;
1232 # Obsolete; use --with-x.
1235 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1236 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1237 ac_prev
=x_includes
;;
1238 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1239 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1240 x_includes
=$ac_optarg ;;
1242 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1243 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1244 ac_prev
=x_libraries
;;
1245 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1246 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1247 x_libraries
=$ac_optarg ;;
1249 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1250 Try \`$0 --help' for more information"
1254 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1255 # Reject names that are not valid shell variable names.
1256 case $ac_envvar in #(
1257 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1258 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1260 eval $ac_envvar=\
$ac_optarg
1261 export $ac_envvar ;;
1264 # FIXME: should be removed in autoconf 3.0.
1265 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1266 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1267 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1268 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1274 if test -n "$ac_prev"; then
1275 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1276 as_fn_error $?
"missing argument to $ac_option"
1279 if test -n "$ac_unrecognized_opts"; then
1280 case $enable_option_checking in
1282 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1283 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1287 # Check all directory arguments for consistency.
1288 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1289 datadir sysconfdir sharedstatedir localstatedir includedir \
1290 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1291 libdir localedir mandir
1293 eval ac_val
=\$
$ac_var
1294 # Remove trailing slashes.
1297 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1298 eval $ac_var=\
$ac_val;;
1300 # Be sure to have absolute directory names.
1302 [\\/$
]* | ?
:[\\/]* ) continue;;
1303 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1305 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1308 # There might be people who depend on the old broken behavior: `$host'
1309 # used to hold the argument of --host etc.
1310 # FIXME: To remove some day.
1313 target
=$target_alias
1315 # FIXME: To remove some day.
1316 if test "x$host_alias" != x
; then
1317 if test "x$build_alias" = x
; then
1318 cross_compiling
=maybe
1319 elif test "x$build_alias" != "x$host_alias"; then
1325 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1327 test "$silent" = yes && exec 6>/dev
/null
1330 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1331 ac_ls_di
=`ls -di .` &&
1332 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1333 as_fn_error $?
"working directory cannot be determined"
1334 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1335 as_fn_error $?
"pwd does not report name of working directory"
1338 # Find the source files, if location was not specified.
1339 if test -z "$srcdir"; then
1340 ac_srcdir_defaulted
=yes
1341 # Try the directory containing this script, then the parent directory.
1342 ac_confdir
=`$as_dirname -- "$as_myself" ||
1343 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1344 X"$as_myself" : 'X\(//\)[^/]' \| \
1345 X"$as_myself" : 'X\(//\)$' \| \
1346 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1347 $as_echo X"$as_myself" |
1348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1366 if test ! -r "$srcdir/$ac_unique_file"; then
1370 ac_srcdir_defaulted
=no
1372 if test ! -r "$srcdir/$ac_unique_file"; then
1373 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1374 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1376 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1378 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1380 # When building in place, set srcdir=.
1381 if test "$ac_abs_confdir" = "$ac_pwd"; then
1384 # Remove unnecessary trailing slashes from srcdir.
1385 # Double slashes in file names in object file debugging info
1386 # mess up M-x gdb in Emacs.
1388 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1390 for ac_var
in $ac_precious_vars; do
1391 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1392 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1393 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1394 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1398 # Report the --help message.
1400 if test "$ac_init_help" = "long"; then
1401 # Omit some internal or obsolete options to make the list less imposing.
1402 # This message is too long to be a string in the A/UX 3.1 sh.
1404 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1406 Usage: $0 [OPTION]... [VAR=VALUE]...
1408 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1409 VAR=VALUE. See below for descriptions of some of the useful variables.
1411 Defaults for the options are specified in brackets.
1414 -h, --help display this help and exit
1415 --help=short display options specific to this package
1416 --help=recursive display the short help of all the included packages
1417 -V, --version display version information and exit
1418 -q, --quiet, --silent do not print \`checking ...' messages
1419 --cache-file=FILE cache test results in FILE [disabled]
1420 -C, --config-cache alias for \`--cache-file=config.cache'
1421 -n, --no-create do not create output files
1422 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1424 Installation directories:
1425 --prefix=PREFIX install architecture-independent files in PREFIX
1426 [$ac_default_prefix]
1427 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1430 By default, \`make install' will install all the files in
1431 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1432 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1433 for instance \`--prefix=\$HOME'.
1435 For better control, use the options below.
1437 Fine tuning of the installation directories:
1438 --bindir=DIR user executables [EPREFIX/bin]
1439 --sbindir=DIR system admin executables [EPREFIX/sbin]
1440 --libexecdir=DIR program executables [EPREFIX/libexec]
1441 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1442 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1443 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1444 --libdir=DIR object code libraries [EPREFIX/lib]
1445 --includedir=DIR C header files [PREFIX/include]
1446 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1447 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1448 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1449 --infodir=DIR info documentation [DATAROOTDIR/info]
1450 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1451 --mandir=DIR man documentation [DATAROOTDIR/man]
1452 --docdir=DIR documentation root [DATAROOTDIR/doc/libgo]
1453 --htmldir=DIR html documentation [DOCDIR]
1454 --dvidir=DIR dvi documentation [DOCDIR]
1455 --pdfdir=DIR pdf documentation [DOCDIR]
1456 --psdir=DIR ps documentation [DOCDIR]
1462 --program-prefix=PREFIX prepend PREFIX to installed program names
1463 --program-suffix=SUFFIX append SUFFIX to installed program names
1464 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1467 --build=BUILD configure
for building on BUILD
[guessed
]
1468 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1469 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1473 if test -n "$ac_init_help"; then
1474 case $ac_init_help in
1475 short | recursive
) echo "Configuration of package-unused version-unused:";;
1480 --disable-option-checking ignore unrecognized
--enable/--with options
1481 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1482 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1483 --enable-multilib build many library versions
(default
)
1484 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1485 --disable-silent-rules verbose build output
(undo
: "make V=0")
1486 --enable-dependency-tracking
1487 do not reject slow dependency extractors
1488 --disable-dependency-tracking
1489 speeds up one-time build
1490 --enable-maintainer-mode
1491 enable make rules and dependencies not useful
(and
1492 sometimes confusing
) to the casual installer
1493 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1494 --enable-static[=PKGS
] build static libraries
[default
=yes]
1495 --enable-fast-install[=PKGS
]
1496 optimize
for fast installation
[default
=yes]
1497 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1498 --enable-werror turns on
-Werror [default
=yes]
1499 --enable-version-specific-runtime-libs
1500 Specify that runtime libraries should be installed
1501 in a compiler-specific directory
1504 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1505 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1506 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1507 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1509 --with-toolexeclibdir=DIR
1510 install libraries built with a cross compiler within
1512 --without-libffi don
't use libffi
1513 --without-libatomic don't use libatomic
1514 --with-system-libunwind use installed libunwind
1516 Some influential environment variables
:
1517 CC C compiler
command
1518 CFLAGS C compiler flags
1519 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1520 nonstandard directory
<lib dir
>
1521 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1522 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1523 you have headers
in a nonstandard directory
<include dir
>
1524 GOC Go compiler
command
1525 GOFLAGS Go compiler flags
1526 CCAS assembler compiler
command (defaults to CC
)
1527 CCASFLAGS assembler compiler flags
(defaults to CFLAGS
)
1530 Use these variables to override the choices made by
`configure' or to help
1531 it to find libraries and programs with nonstandard names/locations.
1533 Report bugs to the package provider.
1538 if test "$ac_init_help" = "recursive"; then
1539 # If there are subdirs, report their specific --help.
1540 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1541 test -d "$ac_dir" ||
1542 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1547 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1550 # A ".." for each directory in $ac_dir_suffix.
1551 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1552 case $ac_top_builddir_sub in
1553 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1554 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1557 ac_abs_top_builddir=$ac_pwd
1558 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1559 # for backward compatibility:
1560 ac_top_builddir=$ac_top_build_prefix
1563 .) # We are building in place.
1565 ac_top_srcdir=$ac_top_builddir_sub
1566 ac_abs_top_srcdir=$ac_pwd ;;
1567 [\\/]* | ?:[\\/]* ) # Absolute name.
1568 ac_srcdir=$srcdir$ac_dir_suffix;
1569 ac_top_srcdir=$srcdir
1570 ac_abs_top_srcdir=$srcdir ;;
1572 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1573 ac_top_srcdir=$ac_top_build_prefix$srcdir
1574 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1576 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1578 cd "$ac_dir" || { ac_status=$?; continue; }
1579 # Check for guested configure.
1580 if test -f "$ac_srcdir/configure.gnu"; then
1582 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1583 elif test -f "$ac_srcdir/configure"; then
1585 $SHELL "$ac_srcdir/configure" --help=recursive
1587 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1589 cd "$ac_pwd" || { ac_status=$?; break; }
1593 test -n "$ac_init_help" && exit $ac_status
1594 if $ac_init_version; then
1596 package-unused configure version-unused
1597 generated by GNU Autoconf 2.69
1599 Copyright (C) 2012 Free Software Foundation, Inc.
1600 This configure script is free software; the Free Software Foundation
1601 gives unlimited permission to copy, distribute and modify it.
1606 ## ------------------------ ##
1607 ## Autoconf initialization. ##
1608 ## ------------------------ ##
1610 # ac_fn_c_try_compile LINENO
1611 # --------------------------
1612 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1613 ac_fn_c_try_compile ()
1615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616 rm -f conftest.$ac_objext
1617 if { { ac_try="$ac_compile"
1619 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1620 *) ac_try_echo
=$ac_try;;
1622 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623 $as_echo "$ac_try_echo"; } >&5
1624 (eval "$ac_compile") 2>conftest.err
1626 if test -s conftest.err
; then
1627 grep -v '^ *+' conftest.err
>conftest.er1
1628 cat conftest.er1
>&5
1629 mv -f conftest.er1 conftest.err
1631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1632 test $ac_status = 0; } && {
1633 test -z "$ac_c_werror_flag" ||
1634 test ! -s conftest.err
1635 } && test -s conftest.
$ac_objext; then :
1638 $as_echo "$as_me: failed program was:" >&5
1639 sed 's/^/| /' conftest.
$ac_ext >&5
1643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1644 as_fn_set_status
$ac_retval
1646 } # ac_fn_c_try_compile
1648 # ac_fn_c_try_link LINENO
1649 # -----------------------
1650 # Try to link conftest.$ac_ext, and return whether this succeeded.
1653 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1654 rm -f conftest.
$ac_objext conftest
$ac_exeext
1655 if { { ac_try
="$ac_link"
1657 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1658 *) ac_try_echo=$ac_try;;
1660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661 $as_echo "$ac_try_echo"; } >&5
1662 (eval "$ac_link") 2>conftest.err
1664 if test -s conftest.err; then
1665 grep -v '^ *+' conftest.err >conftest.er1
1666 cat conftest.er1 >&5
1667 mv -f conftest.er1 conftest.err
1669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670 test $ac_status = 0; } && {
1671 test -z "$ac_c_werror_flag" ||
1672 test ! -s conftest.err
1673 } && test -s conftest$ac_exeext && {
1674 test "$cross_compiling" = yes ||
1675 test -x conftest$ac_exeext
1679 $as_echo "$as_me: failed program was:" >&5
1680 sed 's/^/| /' conftest.$ac_ext >&5
1684 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1685 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1686 # interfere with the next link command; also delete a directory that is
1687 # left behind by Apple's compiler. We do this before executing the actions.
1688 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690 as_fn_set_status $ac_retval
1692 } # ac_fn_c_try_link
1694 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1695 # -------------------------------------------------------
1696 # Tests whether HEADER exists and can be compiled using the include files in
1697 # INCLUDES, setting the cache variable VAR accordingly.
1698 ac_fn_c_check_header_compile ()
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1702 $as_echo_n "checking for $2... " >&6; }
1703 if eval \${$3+:} false; then :
1704 $as_echo_n "(cached) " >&6
1706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1707 /* end confdefs.h. */
1711 if ac_fn_c_try_compile "$LINENO"; then :
1716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1720 $as_echo "$ac_res" >&6; }
1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723 } # ac_fn_c_check_header_compile
1725 # ac_fn_c_try_cpp LINENO
1726 # ----------------------
1727 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 if { { ac_try="$ac_cpp conftest.$ac_ext"
1733 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1734 *) ac_try_echo
=$ac_try;;
1736 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 $as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1740 if test -s conftest.err
; then
1741 grep -v '^ *+' conftest.err
>conftest.er1
1742 cat conftest.er1
>&5
1743 mv -f conftest.er1 conftest.err
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } > conftest.i
&& {
1747 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1748 test ! -s conftest.err
1752 $as_echo "$as_me: failed program was:" >&5
1753 sed 's/^/| /' conftest.
$ac_ext >&5
1757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758 as_fn_set_status
$ac_retval
1762 # ac_fn_c_try_run LINENO
1763 # ----------------------
1764 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1765 # that executables *can* be run.
1768 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1769 if { { ac_try
="$ac_link"
1771 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_link") 2>&5
1778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1780 { { case "(($ac_try" in
1781 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1782 *) ac_try_echo
=$ac_try;;
1784 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785 $as_echo "$ac_try_echo"; } >&5
1786 (eval "$ac_try") 2>&5
1788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789 test $ac_status = 0; }; }; then :
1792 $as_echo "$as_me: program exited with status $ac_status" >&5
1793 $as_echo "$as_me: failed program was:" >&5
1794 sed 's/^/| /' conftest.
$ac_ext >&5
1796 ac_retval
=$ac_status
1798 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800 as_fn_set_status
$ac_retval
1804 # ac_fn_c_check_func LINENO FUNC VAR
1805 # ----------------------------------
1806 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1807 ac_fn_c_check_func
()
1809 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1811 $as_echo_n "checking for $2... " >&6; }
1812 if eval \
${$3+:} false
; then :
1813 $as_echo_n "(cached) " >&6
1815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1816 /* end confdefs.h. */
1817 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1819 #define $2 innocuous_$2
1821 /* System header to define __stub macros and hopefully few prototypes,
1822 which can conflict with char $2 (); below.
1823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1824 <limits.h> exists even on freestanding compilers. */
1827 # include <limits.h>
1829 # include <assert.h>
1834 /* Override any GCC internal prototype to avoid an error.
1835 Use char because int might match the return type of a GCC
1836 builtin and then its argument prototype would still apply. */
1841 /* The GNU C library defines this for functions which it implements
1842 to always fail with ENOSYS. Some functions are actually named
1843 something starting with __ and the normal name is an alias. */
1844 #if defined __stub_$2 || defined __stub___$2
1856 if ac_fn_c_try_link
"$LINENO"; then :
1861 rm -f core conftest.err conftest.
$ac_objext \
1862 conftest
$ac_exeext conftest.
$ac_ext
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866 $as_echo "$ac_res" >&6; }
1867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869 } # ac_fn_c_check_func
1871 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1872 # -------------------------------------------------------
1873 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1874 # the include files in INCLUDES and setting the cache variable VAR
1876 ac_fn_c_check_header_mongrel
()
1878 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1879 if eval \
${$3+:} false
; then :
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1881 $as_echo_n "checking for $2... " >&6; }
1882 if eval \
${$3+:} false
; then :
1883 $as_echo_n "(cached) " >&6
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1887 $as_echo "$ac_res" >&6; }
1889 # Is the header compilable?
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1891 $as_echo_n "checking $2 usability... " >&6; }
1892 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1893 /* end confdefs.h. */
1897 if ac_fn_c_try_compile
"$LINENO"; then :
1898 ac_header_compiler
=yes
1900 ac_header_compiler
=no
1902 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1904 $as_echo "$ac_header_compiler" >&6; }
1906 # Is the header present?
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1908 $as_echo_n "checking $2 presence... " >&6; }
1909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1910 /* end confdefs.h. */
1913 if ac_fn_c_try_cpp
"$LINENO"; then :
1914 ac_header_preproc
=yes
1916 ac_header_preproc
=no
1918 rm -f conftest.err conftest.i conftest.
$ac_ext
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1920 $as_echo "$ac_header_preproc" >&6; }
1922 # So? What about this header?
1923 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1926 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1928 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1932 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1934 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1936 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1938 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1940 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1944 $as_echo_n "checking for $2... " >&6; }
1945 if eval \
${$3+:} false
; then :
1946 $as_echo_n "(cached) " >&6
1948 eval "$3=\$ac_header_compiler"
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1952 $as_echo "$ac_res" >&6; }
1954 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1956 } # ac_fn_c_check_header_mongrel
1958 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1959 # -------------------------------------------
1960 # Tests whether TYPE exists after having included INCLUDES, setting cache
1961 # variable VAR accordingly.
1962 ac_fn_c_check_type
()
1964 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1966 $as_echo_n "checking for $2... " >&6; }
1967 if eval \
${$3+:} false
; then :
1968 $as_echo_n "(cached) " >&6
1971 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1972 /* end confdefs.h. */
1983 if ac_fn_c_try_compile
"$LINENO"; then :
1984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1985 /* end confdefs.h. */
1996 if ac_fn_c_try_compile
"$LINENO"; then :
2001 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2003 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2007 $as_echo "$ac_res" >&6; }
2008 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2010 } # ac_fn_c_check_type
2012 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2013 # --------------------------------------------
2014 # Tries to find the compile-time value of EXPR in a program that includes
2015 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2017 ac_fn_c_compute_int
()
2019 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2020 if test "$cross_compiling" = yes; then
2021 # Depending upon the size, compute the lo and hi bounds.
2022 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2023 /* end confdefs.h. */
2028 static int test_array [1 - 2 * !(($2) >= 0)];
2030 return test_array [0];
2036 if ac_fn_c_try_compile
"$LINENO"; then :
2039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2040 /* end confdefs.h. */
2045 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2047 return test_array [0];
2053 if ac_fn_c_try_compile
"$LINENO"; then :
2054 ac_hi
=$ac_mid; break
2056 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2057 if test $ac_lo -le $ac_mid; then
2061 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2063 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2067 /* end confdefs.h. */
2072 static int test_array [1 - 2 * !(($2) < 0)];
2074 return test_array [0];
2080 if ac_fn_c_try_compile
"$LINENO"; then :
2083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h. */
2089 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2091 return test_array [0];
2097 if ac_fn_c_try_compile
"$LINENO"; then :
2098 ac_lo
=$ac_mid; break
2100 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2101 if test $ac_mid -le $ac_hi; then
2105 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2107 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2112 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2114 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2115 # Binary search between lo and hi bounds.
2116 while test "x$ac_lo" != "x$ac_hi"; do
2117 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h. */
2124 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2126 return test_array [0];
2132 if ac_fn_c_try_compile
"$LINENO"; then :
2135 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2137 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2140 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2145 /* end confdefs.h. */
2147 static long int longval () { return $2; }
2148 static unsigned long int ulongval () { return $2; }
2155 FILE *f = fopen ("conftest.val", "w");
2160 long int i = longval ();
2163 fprintf (f, "%ld", i);
2167 unsigned long int i = ulongval ();
2170 fprintf (f, "%lu", i);
2172 /* Do not output a trailing newline, as this causes \r\n confusion
2173 on some platforms. */
2174 return ferror (f) || fclose (f) != 0;
2180 if ac_fn_c_try_run
"$LINENO"; then :
2181 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2185 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2186 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2190 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2191 as_fn_set_status
$ac_retval
2193 } # ac_fn_c_compute_int
2194 cat >config.log
<<_ACEOF
2195 This file contains any messages produced by compilers while
2196 running configure, to aid debugging if configure makes a mistake.
2198 It was created by package-unused $as_me version-unused, which was
2199 generated by GNU Autoconf 2.69. Invocation command line was
2211 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2212 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2213 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2214 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2215 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2217 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2218 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2220 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2221 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2222 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2223 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2224 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2225 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2226 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2230 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2234 test -z "$as_dir" && as_dir
=.
2235 $as_echo "PATH: $as_dir"
2251 # Keep a trace of the command line.
2252 # Strip out --no-create and --no-recursion so they do not pile up.
2253 # Strip out --silent because we don't want to record it for future runs.
2254 # Also quote any args containing shell meta-characters.
2255 # Make two passes to allow for proper duplicate-argument suppression.
2259 ac_must_keep_next
=false
2265 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2266 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2267 |
-silent |
--silent |
--silen |
--sile |
--sil)
2270 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2273 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2275 as_fn_append ac_configure_args1
" '$ac_arg'"
2276 if test $ac_must_keep_next = true
; then
2277 ac_must_keep_next
=false
# Got value, back to normal.
2280 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2281 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2282 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2283 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2284 case "$ac_configure_args0 " in
2285 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2288 -* ) ac_must_keep_next
=true
;;
2291 as_fn_append ac_configure_args
" '$ac_arg'"
2296 { ac_configure_args0
=; unset ac_configure_args0
;}
2297 { ac_configure_args1
=; unset ac_configure_args1
;}
2299 # When interrupted or exit'd, cleanup temporary files, and complete
2300 # config.log. We remove comments because anyway the quotes in there
2301 # would cause problems or look ugly.
2302 # WARNING: Use '\'' to represent an apostrophe within the trap.
2303 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2304 trap 'exit_status=$?
2305 # Save into config.log some information that might help in debugging.
2309 $as_echo "## ---------------- ##
2310 ## Cache variables. ##
2311 ## ---------------- ##"
2313 # The following way of writing the cache mishandles newlines in values,
2315 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2316 eval ac_val=\$$ac_var
2320 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2321 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2324 _ | IFS | as_nl) ;; #(
2325 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2326 *) { eval $ac_var=; unset $ac_var;} ;;
2331 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2332 *${as_nl}ac_space=\ *)
2334 "s/'\''/'\''\\\\'\'''\''/g;
2335 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2338 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2345 $as_echo "## ----------------- ##
2346 ## Output variables. ##
2347 ## ----------------- ##"
2349 for ac_var in $ac_subst_vars
2351 eval ac_val=\$$ac_var
2353 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2355 $as_echo "$ac_var='\''$ac_val'\''"
2359 if test -n "$ac_subst_files"; then
2360 $as_echo "## ------------------- ##
2361 ## File substitutions. ##
2362 ## ------------------- ##"
2364 for ac_var
in $ac_subst_files
2366 eval ac_val
=\$
$ac_var
2368 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2370 $as_echo "$ac_var='\''$ac_val'\''"
2375 if test -s confdefs.h; then
2376 $as_echo "## ----------- ##
2383 test "$ac_signal" != 0 &&
2384 $as_echo "$as_me: caught signal $ac_signal"
2385 $as_echo "$as_me: exit $exit_status"
2387 rm -f core *.core core.conftest.* &&
2388 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2391 for ac_signal
in 1 2 13 15; do
2392 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2396 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2397 rm -f -r conftest
* confdefs.h
2399 $as_echo "/* confdefs.h */" > confdefs.h
2401 # Predefined preprocessor variables.
2403 cat >>confdefs.h
<<_ACEOF
2404 #define PACKAGE_NAME "$PACKAGE_NAME"
2407 cat >>confdefs.h
<<_ACEOF
2408 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2411 cat >>confdefs.h
<<_ACEOF
2412 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2415 cat >>confdefs.h
<<_ACEOF
2416 #define PACKAGE_STRING "$PACKAGE_STRING"
2419 cat >>confdefs.h
<<_ACEOF
2420 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2423 cat >>confdefs.h
<<_ACEOF
2424 #define PACKAGE_URL "$PACKAGE_URL"
2428 # Let the site file select an alternate cache file if it wants to.
2429 # Prefer an explicitly selected file to automatically selected ones.
2432 if test -n "$CONFIG_SITE"; then
2433 # We do not want a PATH search for config.site.
2434 case $CONFIG_SITE in #((
2435 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2436 */*) ac_site_file1
=$CONFIG_SITE;;
2437 *) ac_site_file1
=.
/$CONFIG_SITE;;
2439 elif test "x$prefix" != xNONE
; then
2440 ac_site_file1
=$prefix/share
/config.site
2441 ac_site_file2
=$prefix/etc
/config.site
2443 ac_site_file1
=$ac_default_prefix/share
/config.site
2444 ac_site_file2
=$ac_default_prefix/etc
/config.site
2446 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2448 test "x$ac_site_file" = xNONE
&& continue
2449 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2451 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2452 sed 's/^/| /' "$ac_site_file" >&5
2454 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2455 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2456 as_fn_error $?
"failed to load site script $ac_site_file
2457 See \`config.log' for more details" "$LINENO" 5; }
2461 if test -r "$cache_file"; then
2462 # Some versions of bash will fail to source /dev/null (special files
2463 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2464 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2466 $as_echo "$as_me: loading cache $cache_file" >&6;}
2468 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2469 *) .
"./$cache_file";;
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2474 $as_echo "$as_me: creating cache $cache_file" >&6;}
2478 # Check that the precious variables saved in the cache have kept the same
2480 ac_cache_corrupted
=false
2481 for ac_var
in $ac_precious_vars; do
2482 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2483 eval ac_new_set
=\
$ac_env_${ac_var}_set
2484 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2485 eval ac_new_val
=\
$ac_env_${ac_var}_value
2486 case $ac_old_set,$ac_new_set in
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2489 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2490 ac_cache_corrupted
=: ;;
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2493 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2494 ac_cache_corrupted
=: ;;
2497 if test "x$ac_old_val" != "x$ac_new_val"; then
2498 # differences in whitespace do not lead to failure.
2499 ac_old_val_w
=`echo x $ac_old_val`
2500 ac_new_val_w
=`echo x $ac_new_val`
2501 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2503 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2504 ac_cache_corrupted
=:
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2507 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2508 eval $ac_var=\
$ac_old_val
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2511 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2513 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2516 # Pass precious variables to config.status.
2517 if test "$ac_new_set" = set; then
2519 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2520 *) ac_arg
=$ac_var=$ac_new_val ;;
2522 case " $ac_configure_args " in
2523 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2524 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2528 if $ac_cache_corrupted; then
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2532 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2533 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2535 ## -------------------- ##
2536 ## Main body of script. ##
2537 ## -------------------- ##
2540 ac_cpp
='$CPP $CPPFLAGS'
2541 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2542 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2543 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2550 ac_config_headers
="$ac_config_headers config.h"
2553 libtool_VERSION
=16:0:0
2556 # Default to --enable-multilib
2557 # Check whether --enable-multilib was given.
2558 if test "${enable_multilib+set}" = set; then :
2559 enableval
=$enable_multilib; case "$enableval" in
2560 yes) multilib
=yes ;;
2562 *) as_fn_error $?
"bad value $enableval for multilib option" "$LINENO" 5 ;;
2569 # We may get other options which we leave undocumented:
2570 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2571 # See config-ml.in if you want the gory details.
2573 if test "$srcdir" = "."; then
2574 if test "$with_target_subdir" != "."; then
2575 multi_basedir
="$srcdir/$with_multisrctop../.."
2577 multi_basedir
="$srcdir/$with_multisrctop.."
2580 multi_basedir
="$srcdir/.."
2584 # Even if the default multilib is not a cross compilation,
2585 # it may be that some of the other multilibs are.
2586 if test $cross_compiling = no
&& test $multilib = yes \
2587 && test "x${with_multisubdir}" != x
; then
2588 cross_compiling
=maybe
2591 ac_config_commands
="$ac_config_commands default-1"
2595 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2596 if test -f "$ac_dir/install-sh"; then
2598 ac_install_sh
="$ac_aux_dir/install-sh -c"
2600 elif test -f "$ac_dir/install.sh"; then
2602 ac_install_sh
="$ac_aux_dir/install.sh -c"
2604 elif test -f "$ac_dir/shtool"; then
2606 ac_install_sh
="$ac_aux_dir/shtool install -c"
2610 if test -z "$ac_aux_dir"; then
2611 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2614 # These three variables are undocumented and unsupported,
2615 # and are intended to be withdrawn in a future Autoconf release.
2616 # They can cause serious problems if a builder's source tree is in a directory
2617 # whose full name contains unusual characters.
2618 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2619 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2620 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2623 # Make sure we can run config.sub.
2624 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2625 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2628 $as_echo_n "checking build system type... " >&6; }
2629 if ${ac_cv_build+:} false
; then :
2630 $as_echo_n "(cached) " >&6
2632 ac_build_alias
=$build_alias
2633 test "x$ac_build_alias" = x
&&
2634 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2635 test "x$ac_build_alias" = x
&&
2636 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2637 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2638 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2642 $as_echo "$ac_cv_build" >&6; }
2643 case $ac_cv_build in
2645 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2648 ac_save_IFS
=$IFS; IFS
='-'
2654 # Remember, the first character of IFS is used to create $*,
2655 # except with old shells:
2658 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2662 $as_echo_n "checking host system type... " >&6; }
2663 if ${ac_cv_host+:} false
; then :
2664 $as_echo_n "(cached) " >&6
2666 if test "x$host_alias" = x
; then
2667 ac_cv_host
=$ac_cv_build
2669 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2670 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2675 $as_echo "$ac_cv_host" >&6; }
2678 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2681 ac_save_IFS
=$IFS; IFS
='-'
2687 # Remember, the first character of IFS is used to create $*,
2688 # except with old shells:
2691 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2695 $as_echo_n "checking target system type... " >&6; }
2696 if ${ac_cv_target+:} false
; then :
2697 $as_echo_n "(cached) " >&6
2699 if test "x$target_alias" = x
; then
2700 ac_cv_target
=$ac_cv_host
2702 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2703 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2708 $as_echo "$ac_cv_target" >&6; }
2709 case $ac_cv_target in
2711 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2713 target
=$ac_cv_target
2714 ac_save_IFS
=$IFS; IFS
='-'
2720 # Remember, the first character of IFS is used to create $*,
2721 # except with old shells:
2724 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2727 # The aliases save the names the user supplied, while $host etc.
2728 # will get canonicalized.
2729 test -n "$target_alias" &&
2730 test "$program_prefix$program_suffix$program_transform_name" = \
2732 program_prefix
=${target_alias}-
2734 target_alias
=${target_alias-$host_alias}
2736 am__api_version
='1.15'
2738 # Find a good install program. We prefer a C program (faster),
2739 # so one script is as good as another. But avoid the broken or
2740 # incompatible versions:
2741 # SysV /etc/install, /usr/sbin/install
2742 # SunOS /usr/etc/install
2743 # IRIX /sbin/install
2745 # AmigaOS /C/install, which installs bootblocks on floppy discs
2746 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2747 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2748 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2749 # OS/2's system install, which has a completely different semantic
2750 # ./install, which can be erroneously created by make from ./install.sh.
2751 # Reject install programs that cannot install multiple files.
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2753 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2754 if test -z "$INSTALL"; then
2755 if ${ac_cv_path_install+:} false
; then :
2756 $as_echo_n "(cached) " >&6
2758 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2762 test -z "$as_dir" && as_dir
=.
2763 # Account for people who put trailing slashes in PATH elements.
2764 case $as_dir/ in #((
2765 .
/ | .
// |
/[cC
]/* | \
2766 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2767 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2770 # OSF1 and SCO ODT 3.0 have their own names for install.
2771 # Don't use installbsd from OSF since it installs stuff as root
2773 for ac_prog
in ginstall scoinst
install; do
2774 for ac_exec_ext
in '' $ac_executable_extensions; do
2775 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2776 if test $ac_prog = install &&
2777 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2778 # AIX install. It has an incompatible calling convention.
2780 elif test $ac_prog = install &&
2781 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2782 # program-specific install script used by HP pwplus--don't use.
2785 rm -rf conftest.one conftest.two conftest.dir
2786 echo one
> conftest.one
2787 echo two
> conftest.two
2789 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2790 test -s conftest.one
&& test -s conftest.two
&&
2791 test -s conftest.dir
/conftest.one
&&
2792 test -s conftest.dir
/conftest.two
2794 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2807 rm -rf conftest.one conftest.two conftest.dir
2810 if test "${ac_cv_path_install+set}" = set; then
2811 INSTALL
=$ac_cv_path_install
2813 # As a last resort, use the slow shell script. Don't cache a
2814 # value for INSTALL within a source directory, because that will
2815 # break other packages using the cache if that directory is
2816 # removed, or if the value is a relative name.
2817 INSTALL
=$ac_install_sh
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2821 $as_echo "$INSTALL" >&6; }
2823 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2824 # It thinks the first close brace ends the variable substitution.
2825 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2827 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2829 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2832 $as_echo_n "checking whether build environment is sane... " >&6; }
2833 # Reject unsafe characters in $srcdir or the absolute working directory
2834 # name. Accept space and tab only in the latter.
2838 *[\\\"\
#\$\&\'\`$am_lf]*)
2839 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2842 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2843 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2846 # Do 'set' in a subshell so we don't clobber the current shell's
2847 # arguments. Must try -L first in case configure is actually a
2848 # symlink; some systems play weird games with the mod time of symlinks
2849 # (eg FreeBSD returns the mod time of the symlink's containing
2853 for am_try
in 1 2; do
2854 echo "timestamp, slept: $am_has_slept" > conftest.
file
2855 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2856 if test "$*" = "X"; then
2858 set X
`ls -t "$srcdir/configure" conftest.file`
2860 if test "$*" != "X $srcdir/configure conftest.file" \
2861 && test "$*" != "X conftest.file $srcdir/configure"; then
2863 # If neither matched, then we have a broken ls. This can happen
2864 # if, for instance, CONFIG_SHELL is bash and it inherits a
2865 # broken ls alias from the environment. This has actually
2866 # happened. Such a system could not be considered "sane".
2867 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2868 alias in your environment" "$LINENO" 5
2870 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
2877 test "$2" = conftest.
file
2883 as_fn_error $?
"newly created file is older than distributed files!
2884 Check your system clock" "$LINENO" 5
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2887 $as_echo "yes" >&6; }
2888 # If we didn't sleep, we still need to ensure time stamps of config.status and
2889 # generated files are strictly newer.
2891 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
2898 test "$program_prefix" != NONE
&&
2899 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2900 # Use a double $ so make ignores it.
2901 test "$program_suffix" != NONE
&&
2902 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2903 # Double any \ or $.
2904 # By default was `s,x,x', remove it if useless.
2905 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2906 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2908 # Expand $ac_aux_dir to an absolute path.
2909 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
2911 if test x
"${MISSING+set}" != xset
; then
2914 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2916 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2919 # Use eval to expand $SHELL
2920 if eval "$MISSING --is-lightweight"; then
2921 am_missing_run
="$MISSING "
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2925 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2928 if test x
"${install_sh+set}" != xset
; then
2931 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2933 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2937 # Installed binaries are usually stripped using 'strip' when the user
2938 # run "make install-strip". However 'strip' might not be the right
2939 # tool to use in cross-compilation environments, therefore Automake
2940 # will honor the 'STRIP' environment variable to overrule this program.
2941 if test "$cross_compiling" != no
; then
2942 if test -n "$ac_tool_prefix"; then
2943 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2944 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2946 $as_echo_n "checking for $ac_word... " >&6; }
2947 if ${ac_cv_prog_STRIP+:} false
; then :
2948 $as_echo_n "(cached) " >&6
2950 if test -n "$STRIP"; then
2951 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2953 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2957 test -z "$as_dir" && as_dir
=.
2958 for ac_exec_ext
in '' $ac_executable_extensions; do
2959 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2960 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2970 STRIP
=$ac_cv_prog_STRIP
2971 if test -n "$STRIP"; then
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2973 $as_echo "$STRIP" >&6; }
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976 $as_echo "no" >&6; }
2981 if test -z "$ac_cv_prog_STRIP"; then
2983 # Extract the first word of "strip", so it can be a program name with args.
2984 set dummy strip
; ac_word
=$2
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2986 $as_echo_n "checking for $ac_word... " >&6; }
2987 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
2988 $as_echo_n "(cached) " >&6
2990 if test -n "$ac_ct_STRIP"; then
2991 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2993 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2997 test -z "$as_dir" && as_dir
=.
2998 for ac_exec_ext
in '' $ac_executable_extensions; do
2999 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3000 ac_cv_prog_ac_ct_STRIP
="strip"
3001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3010 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3011 if test -n "$ac_ct_STRIP"; then
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3013 $as_echo "$ac_ct_STRIP" >&6; }
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3016 $as_echo "no" >&6; }
3019 if test "x$ac_ct_STRIP" = x
; then
3022 case $cross_compiling:$ac_tool_warned in
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3026 ac_tool_warned
=yes ;;
3031 STRIP
="$ac_cv_prog_STRIP"
3035 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3038 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3039 if test -z "$MKDIR_P"; then
3040 if ${ac_cv_path_mkdir+:} false
; then :
3041 $as_echo_n "(cached) " >&6
3043 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3044 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3047 test -z "$as_dir" && as_dir
=.
3048 for ac_prog
in mkdir gmkdir
; do
3049 for ac_exec_ext
in '' $ac_executable_extensions; do
3050 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3051 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3052 'mkdir (GNU coreutils) '* | \
3053 'mkdir (coreutils) '* | \
3054 'mkdir (fileutils) '4.1*)
3055 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3065 test -d .
/--version && rmdir .
/--version
3066 if test "${ac_cv_path_mkdir+set}" = set; then
3067 MKDIR_P
="$ac_cv_path_mkdir -p"
3069 # As a last resort, use the slow shell script. Don't cache a
3070 # value for MKDIR_P within a source directory, because that will
3071 # break other packages using the cache if that directory is
3072 # removed, or if the value is a relative name.
3073 MKDIR_P
="$ac_install_sh -d"
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3077 $as_echo "$MKDIR_P" >&6; }
3079 for ac_prog
in gawk mawk nawk
awk
3081 # Extract the first word of "$ac_prog", so it can be a program name with args.
3082 set dummy
$ac_prog; ac_word
=$2
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3084 $as_echo_n "checking for $ac_word... " >&6; }
3085 if ${ac_cv_prog_AWK+:} false
; then :
3086 $as_echo_n "(cached) " >&6
3088 if test -n "$AWK"; then
3089 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3091 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3095 test -z "$as_dir" && as_dir
=.
3096 for ac_exec_ext
in '' $ac_executable_extensions; do
3097 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3098 ac_cv_prog_AWK
="$ac_prog"
3099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3109 if test -n "$AWK"; then
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3111 $as_echo "$AWK" >&6; }
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114 $as_echo "no" >&6; }
3118 test -n "$AWK" && break
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3122 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3124 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3125 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3126 $as_echo_n "(cached) " >&6
3128 cat >conftest.
make <<\_ACEOF
3131 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3133 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3134 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3136 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3138 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3142 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3144 $as_echo "yes" >&6; }
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3148 $as_echo "no" >&6; }
3149 SET_MAKE
="MAKE=${MAKE-make}"
3152 rm -rf .tst
2>/dev
/null
3153 mkdir .tst
2>/dev
/null
3154 if test -d .tst
; then
3159 rmdir .tst
2>/dev
/null
3161 # Check whether --enable-silent-rules was given.
3162 if test "${enable_silent_rules+set}" = set; then :
3163 enableval
=$enable_silent_rules;
3166 case $enable_silent_rules in # (((
3167 yes) AM_DEFAULT_VERBOSITY
=0;;
3168 no
) AM_DEFAULT_VERBOSITY
=1;;
3169 *) AM_DEFAULT_VERBOSITY
=1;;
3171 am_make
=${MAKE-make}
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3173 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3174 if ${am_cv_make_support_nested_variables+:} false
; then :
3175 $as_echo_n "(cached) " >&6
3177 if $as_echo 'TRUE=$(BAR$(V))
3183 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3184 am_cv_make_support_nested_variables
=yes
3186 am_cv_make_support_nested_variables
=no
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3190 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3191 if test $am_cv_make_support_nested_variables = yes; then
3193 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3195 AM_V
=$AM_DEFAULT_VERBOSITY
3196 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3200 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3201 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3202 # is not polluted with repeated "-I."
3203 am__isrc
=' -I$(srcdir)'
3204 # test to see if srcdir already configured
3205 if test -f $srcdir/config.status
; then
3206 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3210 # test whether we have cygpath
3211 if test -z "$CYGPATH_W"; then
3212 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3213 CYGPATH_W
='cygpath -w'
3220 # Define the identity of the package.
3222 VERSION
='version-unused'
3225 # Some tools Automake needs.
3227 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3230 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3233 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3236 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3239 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3241 # For better backward compatibility. To be removed once Automake 1.9.x
3242 # dies out for good. For more background, see:
3243 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3244 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3245 mkdir_p
='$(MKDIR_P)'
3247 # We need awk for the "check" target (and possibly the TAP driver). The
3248 # system "awk" is bad on some platforms.
3249 # Always define AMTAR for backward compatibility. Yes, it's still used
3250 # in the wild :-( We should find a proper way to deprecate it ...
3254 # We'll loop over all known methods to create a tar archive until one works.
3255 _am_tools
='gnutar pax cpio none'
3257 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3264 # POSIX will say in a future version that running "rm -f" with no argument
3265 # is OK; and we want to be able to make that assumption in our Makefile
3266 # recipes. So use an aggressive probe to check that the usage we want is
3267 # actually supported "in the wild" to an acceptable degree.
3268 # See automake bug#10828.
3269 # To make any issue more visible, cause the running configure to be aborted
3270 # by default if the 'rm' program in use doesn't match our expectations; the
3271 # user can still override this though.
3272 if rm -f && rm -fr && rm -rf; then : OK
; else
3276 Your 'rm' program seems unable to run without file operands specified
3277 on the command line, even when the '-f' option is present. This is contrary
3278 to the behaviour of most rm programs out there, and not conforming with
3279 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3281 Please tell bug-automake@gnu.org about your system, including the value
3282 of your $PATH and any error possibly output before this message. This
3283 can help us improve future automake versions.
3286 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3287 echo 'Configuration will proceed anyway, since you have set the' >&2
3288 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3292 Aborting the configuration process, to ensure you take notice of the issue.
3294 You can download and install GNU coreutils to get an 'rm' implementation
3295 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3297 If you want to complete the configuration process using your problematic
3298 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3299 to "yes", and re-run configure.
3302 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3312 ac_cpp
='$CPP $CPPFLAGS'
3313 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3314 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3315 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3316 if test -n "$ac_tool_prefix"; then
3317 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3318 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3320 $as_echo_n "checking for $ac_word... " >&6; }
3321 if ${ac_cv_prog_CC+:} false
; then :
3322 $as_echo_n "(cached) " >&6
3324 if test -n "$CC"; then
3325 ac_cv_prog_CC
="$CC" # Let the user override the test.
3327 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3331 test -z "$as_dir" && as_dir
=.
3332 for ac_exec_ext
in '' $ac_executable_extensions; do
3333 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3334 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
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 "$ac_cv_prog_CC"; then
3357 # Extract the first word of "gcc", so it can be a program name with args.
3358 set dummy gcc
; ac_word
=$2
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3360 $as_echo_n "checking for $ac_word... " >&6; }
3361 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3362 $as_echo_n "(cached) " >&6
3364 if test -n "$ac_ct_CC"; then
3365 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3367 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3371 test -z "$as_dir" && as_dir
=.
3372 for ac_exec_ext
in '' $ac_executable_extensions; do
3373 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3374 ac_cv_prog_ac_ct_CC
="gcc"
3375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3384 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3385 if test -n "$ac_ct_CC"; then
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3387 $as_echo "$ac_ct_CC" >&6; }
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3390 $as_echo "no" >&6; }
3393 if test "x$ac_ct_CC" = x
; then
3396 case $cross_compiling:$ac_tool_warned in
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3399 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3400 ac_tool_warned
=yes ;;
3408 if test -z "$CC"; then
3409 if test -n "$ac_tool_prefix"; then
3410 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3411 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3413 $as_echo_n "checking for $ac_word... " >&6; }
3414 if ${ac_cv_prog_CC+:} false
; then :
3415 $as_echo_n "(cached) " >&6
3417 if test -n "$CC"; then
3418 ac_cv_prog_CC
="$CC" # Let the user override the test.
3420 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3424 test -z "$as_dir" && as_dir
=.
3425 for ac_exec_ext
in '' $ac_executable_extensions; do
3426 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3427 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3438 if test -n "$CC"; then
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3440 $as_echo "$CC" >&6; }
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3443 $as_echo "no" >&6; }
3449 if test -z "$CC"; then
3450 # Extract the first word of "cc", so it can be a program name with args.
3451 set dummy cc
; ac_word
=$2
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3453 $as_echo_n "checking for $ac_word... " >&6; }
3454 if ${ac_cv_prog_CC+:} false
; then :
3455 $as_echo_n "(cached) " >&6
3457 if test -n "$CC"; then
3458 ac_cv_prog_CC
="$CC" # Let the user override the test.
3461 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3465 test -z "$as_dir" && as_dir
=.
3466 for ac_exec_ext
in '' $ac_executable_extensions; do
3467 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3468 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3469 ac_prog_rejected
=yes
3473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3480 if test $ac_prog_rejected = yes; then
3481 # We found a bogon in the path, so make sure we never use it.
3482 set dummy
$ac_cv_prog_CC
3484 if test $# != 0; then
3485 # We chose a different compiler from the bogus one.
3486 # However, it has the same basename, so the bogon will be chosen
3487 # first if we set CC to just the basename; use the full file name.
3489 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3495 if test -n "$CC"; then
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3497 $as_echo "$CC" >&6; }
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3500 $as_echo "no" >&6; }
3505 if test -z "$CC"; then
3506 if test -n "$ac_tool_prefix"; then
3507 for ac_prog
in cl.exe
3509 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3510 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3512 $as_echo_n "checking for $ac_word... " >&6; }
3513 if ${ac_cv_prog_CC+:} false
; then :
3514 $as_echo_n "(cached) " >&6
3516 if test -n "$CC"; then
3517 ac_cv_prog_CC
="$CC" # Let the user override the test.
3519 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3523 test -z "$as_dir" && as_dir
=.
3524 for ac_exec_ext
in '' $ac_executable_extensions; do
3525 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3526 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3537 if test -n "$CC"; then
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3539 $as_echo "$CC" >&6; }
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3542 $as_echo "no" >&6; }
3546 test -n "$CC" && break
3549 if test -z "$CC"; then
3551 for ac_prog
in cl.exe
3553 # Extract the first word of "$ac_prog", so it can be a program name with args.
3554 set dummy
$ac_prog; ac_word
=$2
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3556 $as_echo_n "checking for $ac_word... " >&6; }
3557 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3558 $as_echo_n "(cached) " >&6
3560 if test -n "$ac_ct_CC"; then
3561 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3563 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3567 test -z "$as_dir" && as_dir
=.
3568 for ac_exec_ext
in '' $ac_executable_extensions; do
3569 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3570 ac_cv_prog_ac_ct_CC
="$ac_prog"
3571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3580 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3581 if test -n "$ac_ct_CC"; then
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3583 $as_echo "$ac_ct_CC" >&6; }
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3586 $as_echo "no" >&6; }
3590 test -n "$ac_ct_CC" && break
3593 if test "x$ac_ct_CC" = x
; then
3596 case $cross_compiling:$ac_tool_warned in
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3599 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3600 ac_tool_warned
=yes ;;
3609 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3611 as_fn_error $?
"no acceptable C compiler found in \$PATH
3612 See \`config.log' for more details" "$LINENO" 5; }
3614 # Provide some information about the compiler.
3615 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3618 for ac_option
in --version -v -V -qversion; do
3619 { { ac_try
="$ac_compiler $ac_option >&5"
3621 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3622 *) ac_try_echo=$ac_try;;
3624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3625 $as_echo "$ac_try_echo"; } >&5
3626 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3628 if test -s conftest.err; then
3630 ... rest of stderr output deleted ...
3631 10q' conftest.err >conftest.er1
3632 cat conftest.er1 >&5
3634 rm -f conftest.er1 conftest.err
3635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3636 test $ac_status = 0; }
3639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3640 /* end confdefs.h. */
3650 ac_clean_files_save=$ac_clean_files
3651 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3652 # Try to create an executable without -o first, disregard a.out.
3653 # It will help us diagnose broken compilers, and finding out an intuition
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3656 $as_echo_n "checking whether the C compiler works... " >&6; }
3657 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3659 # The possible output files:
3660 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3663 for ac_file in $ac_files
3666 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3667 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3672 if { { ac_try="$ac_link_default"
3674 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3675 *) ac_try_echo
=$ac_try;;
3677 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3678 $as_echo "$ac_try_echo"; } >&5
3679 (eval "$ac_link_default") 2>&5
3681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3682 test $ac_status = 0; }; then :
3683 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3684 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3685 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3686 # so that the user can short-circuit this test for compilers unknown to
3688 for ac_file
in $ac_files ''
3690 test -f "$ac_file" ||
continue
3692 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3695 # We found the default executable, but exeext='' is most
3699 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3701 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3703 # We set ac_cv_exeext here because the later test for it is not
3704 # safe: cross compilers may not add the suffix if given an `-o'
3705 # argument, so we may need to know it at that point already.
3706 # Even if this section looks crufty: it has the advantage of
3713 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3718 if test -z "$ac_file"; then :
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3720 $as_echo "no" >&6; }
3721 $as_echo "$as_me: failed program was:" >&5
3722 sed 's/^/| /' conftest.
$ac_ext >&5
3724 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3725 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3726 as_fn_error
77 "C compiler cannot create executables
3727 See \`config.log' for more details" "$LINENO" 5; }
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3730 $as_echo "yes" >&6; }
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3733 $as_echo_n "checking for C compiler default output file name... " >&6; }
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3735 $as_echo "$ac_file" >&6; }
3736 ac_exeext
=$ac_cv_exeext
3738 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3739 ac_clean_files
=$ac_clean_files_save
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3741 $as_echo_n "checking for suffix of executables... " >&6; }
3742 if { { ac_try
="$ac_link"
3744 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3745 *) ac_try_echo=$ac_try;;
3747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3748 $as_echo "$ac_try_echo"; } >&5
3749 (eval "$ac_link") 2>&5
3751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3752 test $ac_status = 0; }; then :
3753 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3754 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3755 # work properly (i.e., refer to `conftest.exe'), while it won't with
3757 for ac_file
in conftest.exe conftest conftest.
*; do
3758 test -f "$ac_file" ||
continue
3760 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3761 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3767 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3768 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3769 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3770 See \`config.log' for more details" "$LINENO" 5; }
3772 rm -f conftest conftest
$ac_cv_exeext
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3774 $as_echo "$ac_cv_exeext" >&6; }
3776 rm -f conftest.
$ac_ext
3777 EXEEXT
=$ac_cv_exeext
3779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3780 /* end confdefs.h. */
3785 FILE *f = fopen ("conftest.out", "w");
3786 return ferror (f) || fclose (f) != 0;
3792 ac_clean_files
="$ac_clean_files conftest.out"
3793 # Check that the compiler produces executables we can run. If not, either
3794 # the compiler is broken, or we cross compile.
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3796 $as_echo_n "checking whether we are cross compiling... " >&6; }
3797 if test "$cross_compiling" != yes; then
3798 { { ac_try
="$ac_link"
3800 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3801 *) ac_try_echo=$ac_try;;
3803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3804 $as_echo "$ac_try_echo"; } >&5
3805 (eval "$ac_link") 2>&5
3807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3808 test $ac_status = 0; }
3809 if { ac_try='./conftest$ac_cv_exeext'
3810 { { case "(($ac_try" in
3811 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3812 *) ac_try_echo
=$ac_try;;
3814 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3815 $as_echo "$ac_try_echo"; } >&5
3816 (eval "$ac_try") 2>&5
3818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3819 test $ac_status = 0; }; }; then
3822 if test "$cross_compiling" = maybe
; then
3825 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3826 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3827 as_fn_error $?
"cannot run C compiled programs.
3828 If you meant to cross compile, use \`--host'.
3829 See \`config.log' for more details" "$LINENO" 5; }
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3834 $as_echo "$cross_compiling" >&6; }
3836 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3837 ac_clean_files
=$ac_clean_files_save
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3839 $as_echo_n "checking for suffix of object files... " >&6; }
3840 if ${ac_cv_objext+:} false
; then :
3841 $as_echo_n "(cached) " >&6
3843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3844 /* end confdefs.h. */
3854 rm -f conftest.o conftest.obj
3855 if { { ac_try
="$ac_compile"
3857 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3858 *) ac_try_echo=$ac_try;;
3860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3861 $as_echo "$ac_try_echo"; } >&5
3862 (eval "$ac_compile") 2>&5
3864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3865 test $ac_status = 0; }; then :
3866 for ac_file in conftest.o conftest.obj conftest.*; do
3867 test -f "$ac_file" || continue;
3869 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3870 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3875 $as_echo "$as_me: failed program was:" >&5
3876 sed 's/^/| /' conftest.$ac_ext >&5
3878 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3879 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3880 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3881 See \
`config.log' for more details" "$LINENO" 5; }
3883 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3886 $as_echo "$ac_cv_objext" >&6; }
3887 OBJEXT=$ac_cv_objext
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3890 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3891 if ${ac_cv_c_compiler_gnu+:} false; then :
3892 $as_echo_n "(cached) " >&6
3894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895 /* end confdefs.h. */
3908 if ac_fn_c_try_compile "$LINENO"; then :
3913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3914 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3918 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3919 if test $ac_compiler_gnu = yes; then
3924 ac_test_CFLAGS=${CFLAGS+set}
3925 ac_save_CFLAGS=$CFLAGS
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3927 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3928 if ${ac_cv_prog_cc_g+:} false; then :
3929 $as_echo_n "(cached) " >&6
3931 ac_save_c_werror_flag=$ac_c_werror_flag
3932 ac_c_werror_flag=yes
3935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936 /* end confdefs.h. */
3946 if ac_fn_c_try_compile "$LINENO"; then :
3950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3951 /* end confdefs.h. */
3961 if ac_fn_c_try_compile "$LINENO"; then :
3964 ac_c_werror_flag=$ac_save_c_werror_flag
3966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3967 /* end confdefs.h. */
3977 if ac_fn_c_try_compile "$LINENO"; then :
3980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3985 ac_c_werror_flag=$ac_save_c_werror_flag
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3988 $as_echo "$ac_cv_prog_cc_g" >&6; }
3989 if test "$ac_test_CFLAGS" = set; then
3990 CFLAGS=$ac_save_CFLAGS
3991 elif test $ac_cv_prog_cc_g = yes; then
3992 if test "$GCC" = yes; then
3998 if test "$GCC" = yes; then
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4005 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4006 if ${ac_cv_prog_cc_c89+:} false; then :
4007 $as_echo_n "(cached) " >&6
4009 ac_cv_prog_cc_c89=no
4011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012 /* end confdefs.h. */
4016 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4017 struct buf { int x; };
4018 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4019 static char *e (p, i)
4025 static char *f (char * (*g) (char **, int), char **p, ...)
4030 s = g (p, va_arg (v,int));
4035 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4036 function prototypes and stuff, but not '\xHH' hex character constants.
4037 These don't provoke an error unfortunately, instead are silently treated
4038 as 'x'. The following induces an error, until -std is added to get
4039 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4040 array size at least. It's necessary to write '\x00'==0 to get something
4041 that's true only with -std. */
4042 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4044 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4045 inside strings and character constants. */
4047 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4049 int test (int i, double x);
4050 struct s1 {int (*f) (int a);};
4051 struct s2 {int (*f) (double a);};
4052 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4058 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4063 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4064 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4066 CC="$ac_save_CC $ac_arg"
4067 if ac_fn_c_try_compile "$LINENO"; then :
4068 ac_cv_prog_cc_c89=$ac_arg
4070 rm -f core conftest.err conftest.$ac_objext
4071 test "x$ac_cv_prog_cc_c89" != "xno" && break
4073 rm -f conftest.$ac_ext
4078 case "x$ac_cv_prog_cc_c89" in
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4081 $as_echo "none needed" >&6; } ;;
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4084 $as_echo "unsupported" >&6; } ;;
4086 CC="$CC $ac_cv_prog_cc_c89"
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4088 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4090 if test "x$ac_cv_prog_cc_c89" != xno; then :
4095 ac_cpp='$CPP $CPPFLAGS'
4096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4101 ac_cpp='$CPP $CPPFLAGS'
4102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4106 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4107 if ${am_cv_prog_cc_c_o+:} false; then :
4108 $as_echo_n "(cached) " >&6
4110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111 /* end confdefs.h. */
4121 # Make sure it works both with $CC and with simple cc.
4122 # Following AC_PROG_CC_C_O, we do the test twice because some
4123 # compilers refuse to overwrite an existing .o file with -o,
4124 # though they will create one.
4125 am_cv_prog_cc_c_o=yes
4127 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4128 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131 (exit $ac_status); } \
4132 && test -f conftest2.$ac_objext; then
4135 am_cv_prog_cc_c_o=no
4139 rm -f core conftest*
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4143 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4144 if test "$am_cv_prog_cc_c_o" != yes; then
4145 # Losing compiler, so override with the script.
4146 # FIXME: It is wrong to rewrite CC.
4147 # But if we don't then we get into trouble of one sort or another.
4148 # A longer-term fix would be to have automake use am__CC in this case,
4149 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4150 CC="$am_aux_dir/compile $CC"
4153 ac_cpp='$CPP $CPPFLAGS'
4154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4158 DEPDIR="${am__leading_dot}deps"
4160 ac_config_commands="$ac_config_commands depfiles"
4163 am_make=${MAKE-make}
4164 cat > confinc << 'END'
4166 @echo this is the am__doit target
4169 # If we don't find an include directive, just comment out the code.
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4171 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4175 # First try GNU make style include.
4176 echo "include confinc" > confmf
4177 # Ignore all kinds of additional output from 'make'.
4178 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4179 *the\ am__doit\ target*)
4185 # Now try BSD make style include.
4186 if test "$am__include" = "#"; then
4187 echo '.include "confinc"' > confmf
4188 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4189 *the\ am__doit\ target*)
4190 am__include=.include
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4199 $as_echo "$_am_result" >&6; }
4200 rm -f confinc confmf
4202 # Check whether --enable-dependency-tracking was given.
4203 if test "${enable_dependency_tracking+set}" = set; then :
4204 enableval=$enable_dependency_tracking;
4207 if test "x$enable_dependency_tracking" != xno; then
4208 am_depcomp="$ac_aux_dir/depcomp"
4212 if test "x$enable_dependency_tracking" != xno; then
4222 depcc="$CC" am_compiler_list=
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4225 $as_echo_n "checking dependency style of $depcc... " >&6; }
4226 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4227 $as_echo_n "(cached) " >&6
4229 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4230 # We make a subdir and do the tests there. Otherwise we can end up
4231 # making bogus files that we don't know about and never remove. For
4232 # instance it was reported that on HP-UX the gcc test will end up
4233 # making a dummy file named 'D' -- because '-MD' means "put the output
4237 # Copy depcomp to subdir because otherwise we won't find it if we're
4238 # using a relative directory.
4239 cp "$am_depcomp" conftest.dir
4241 # We will build objects and dependencies in a subdirectory because
4242 # it helps to detect inapplicable dependency modes. For instance
4243 # both Tru64's cc and ICC support -MD to output dependencies as a
4244 # side effect of compilation, but ICC will put the dependencies in
4245 # the current directory while Tru64 will put them in the object
4249 am_cv_CC_dependencies_compiler_type=none
4250 if test "$am_compiler_list" = ""; then
4251 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4254 case " $depcc " in #(
4255 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4258 for depmode in $am_compiler_list; do
4259 # Setup a source with many dependencies, because some compilers
4260 # like to wrap large dependency lists on column 80 (with \), and
4261 # we should not choose a depcomp mode which is confused by this.
4263 # We need to recreate these files for each test, as the compiler may
4264 # overwrite some of them when testing with obscure command lines.
4265 # This happens at least with the AIX C compiler.
4267 for i in 1 2 3 4 5 6; do
4268 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4269 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4270 # Solaris 10 /bin/sh.
4271 echo '/* dummy */' > sub/conftst$i.h
4273 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4275 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4276 # mode. It turns out that the SunPro C++ compiler does not properly
4277 # handle '-M -o', and we need to detect this. Also, some Intel
4278 # versions had trouble with output in subdirs.
4279 am__obj=sub/conftest.${OBJEXT-o}
4280 am__minus_obj="-o $am__obj"
4283 # This depmode causes a compiler race in universal mode.
4284 test "$am__universal" = false || continue
4287 # After this tag, mechanisms are not by side-effect, so they'll
4288 # only be used when explicitly requested.
4289 if test "x$enable_dependency_tracking" = xyes; then
4295 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4296 # This compiler won't grok '-c -o', but also, the minuso test has
4297 # not run yet. These depmodes are late enough in the game, and
4298 # so weak that their functioning should not be impacted.
4299 am__obj=conftest.${OBJEXT-o}
4304 if depmode=$depmode \
4305 source=sub/conftest.c object=$am__obj \
4306 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4307 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4308 >/dev/null 2>conftest.err &&
4309 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4310 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4311 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4312 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4313 # icc doesn't choke on unknown options, it will just issue warnings
4314 # or remarks (even with -Werror). So we grep stderr for any message
4315 # that says an option was ignored or not supported.
4316 # When given -MP, icc 7.0 and 7.1 complain thusly:
4317 # icc: Command line warning: ignoring option '-M'; no argument required
4318 # The diagnosis changed in icc 8.0:
4319 # icc: Command line remark: option '-MP' not supported
4320 if (grep 'ignoring option' conftest.err ||
4321 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4322 am_cv_CC_dependencies_compiler_type=$depmode
4331 am_cv_CC_dependencies_compiler_type=none
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4336 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4337 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4340 test "x$enable_dependency_tracking" != xno \
4341 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4343 am__fastdepCC_FALSE='#'
4345 am__fastdepCC_TRUE='#'
4346 am__fastdepCC_FALSE=
4351 ac_compile='$GOC -c $GOFLAGS conftest.$ac_ext >&5'
4352 ac_link='$GOC -o conftest$ac_exeext $GOFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4354 if test -n "$ac_tool_prefix"; then
4355 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4356 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4358 $as_echo_n "checking for $ac_word... " >&6; }
4359 if ${ac_cv_prog_GOC+:} false; then :
4360 $as_echo_n "(cached) " >&6
4362 if test -n "$GOC"; then
4363 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369 test -z "$as_dir" && as_dir=.
4370 for ac_exec_ext in '' $ac_executable_extensions; do
4371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4372 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
4373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4383 if test -n "$GOC"; then
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4385 $as_echo "$GOC" >&6; }
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4388 $as_echo "no" >&6; }
4393 if test -z "$ac_cv_prog_GOC"; then
4395 # Extract the first word of "gccgo", so it can be a program name with args.
4396 set dummy gccgo; ac_word=$2
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4398 $as_echo_n "checking for $ac_word... " >&6; }
4399 if ${ac_cv_prog_ac_ct_GOC+:} false; then :
4400 $as_echo_n "(cached) " >&6
4402 if test -n "$ac_ct_GOC"; then
4403 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
4405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409 test -z "$as_dir" && as_dir=.
4410 for ac_exec_ext in '' $ac_executable_extensions; do
4411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4412 ac_cv_prog_ac_ct_GOC="gccgo"
4413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4422 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
4423 if test -n "$ac_ct_GOC"; then
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
4425 $as_echo "$ac_ct_GOC" >&6; }
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4428 $as_echo "no" >&6; }
4431 if test "x$ac_ct_GOC" = x; then
4434 case $cross_compiling:$ac_tool_warned in
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4437 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4438 ac_tool_warned=yes ;;
4443 GOC="$ac_cv_prog_GOC"
4446 if test -z "$GOC"; then
4447 if test -n "$ac_tool_prefix"; then
4448 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4449 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4451 $as_echo_n "checking for $ac_word... " >&6; }
4452 if ${ac_cv_prog_GOC+:} false; then :
4453 $as_echo_n "(cached) " >&6
4455 if test -n "$GOC"; then
4456 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462 test -z "$as_dir" && as_dir=.
4463 for ac_exec_ext in '' $ac_executable_extensions; do
4464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4465 ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4476 if test -n "$GOC"; then
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4478 $as_echo "$GOC" >&6; }
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4481 $as_echo "no" >&6; }
4487 if test -z "$GOC"; then
4488 # Extract the first word of "gccgo", so it can be a program name with args.
4489 set dummy gccgo; ac_word=$2
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4491 $as_echo_n "checking for $ac_word... " >&6; }
4492 if ${ac_cv_prog_GOC+:} false; then :
4493 $as_echo_n "(cached) " >&6
4495 if test -n "$GOC"; then
4496 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4503 test -z "$as_dir" && as_dir=.
4504 for ac_exec_ext in '' $ac_executable_extensions; do
4505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4506 if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
4507 ac_prog_rejected=yes
4510 ac_cv_prog_GOC="gccgo"
4511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4518 if test $ac_prog_rejected = yes; then
4519 # We found a bogon in the path, so make sure we never use it.
4520 set dummy $ac_cv_prog_GOC
4522 if test $# != 0; then
4523 # We chose a different compiler from the bogus one.
4524 # However, it has the same basename, so the bogon will be chosen
4525 # first if we set GOC to just the basename; use the full file name.
4527 ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4533 if test -n "$GOC"; then
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4535 $as_echo "$GOC" >&6; }
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4538 $as_echo "no" >&6; }
4545 # Provide some information about the compiler.
4546 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4549 { { ac_try="$ac_compiler --version >&5"
4551 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4552 *) ac_try_echo
=$ac_try;;
4554 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4555 $as_echo "$ac_try_echo"; } >&5
4556 (eval "$ac_compiler --version >&5") 2>conftest.err
4558 if test -s conftest.err
; then
4560 ... rest of stderr output deleted ...
4561 10q' conftest.err
>conftest.er1
4562 cat conftest.er1
>&5
4564 rm -f conftest.er1 conftest.err
4565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4566 test $ac_status = 0; }
4569 ac_cpp
='$CPP $CPPFLAGS'
4570 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4571 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4572 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4574 # By default we simply use the C compiler to build assembly code.
4576 test "${CCAS+set}" = set || CCAS
=$CC
4577 test "${CCASFLAGS+set}" = set || CCASFLAGS
=$CFLAGS
4581 depcc
="$CCAS" am_compiler_list
=
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4584 $as_echo_n "checking dependency style of $depcc... " >&6; }
4585 if ${am_cv_CCAS_dependencies_compiler_type+:} false
; then :
4586 $as_echo_n "(cached) " >&6
4588 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4589 # We make a subdir and do the tests there. Otherwise we can end up
4590 # making bogus files that we don't know about and never remove. For
4591 # instance it was reported that on HP-UX the gcc test will end up
4592 # making a dummy file named 'D' -- because '-MD' means "put the output
4596 # Copy depcomp to subdir because otherwise we won't find it if we're
4597 # using a relative directory.
4598 cp "$am_depcomp" conftest.dir
4600 # We will build objects and dependencies in a subdirectory because
4601 # it helps to detect inapplicable dependency modes. For instance
4602 # both Tru64's cc and ICC support -MD to output dependencies as a
4603 # side effect of compilation, but ICC will put the dependencies in
4604 # the current directory while Tru64 will put them in the object
4608 am_cv_CCAS_dependencies_compiler_type
=none
4609 if test "$am_compiler_list" = ""; then
4610 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4615 for depmode
in $am_compiler_list; do
4616 # Setup a source with many dependencies, because some compilers
4617 # like to wrap large dependency lists on column 80 (with \), and
4618 # we should not choose a depcomp mode which is confused by this.
4620 # We need to recreate these files for each test, as the compiler may
4621 # overwrite some of them when testing with obscure command lines.
4622 # This happens at least with the AIX C compiler.
4624 for i
in 1 2 3 4 5 6; do
4625 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4626 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4627 # Solaris 10 /bin/sh.
4628 echo '/* dummy */' > sub
/conftst
$i.h
4630 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4632 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4633 # mode. It turns out that the SunPro C++ compiler does not properly
4634 # handle '-M -o', and we need to detect this. Also, some Intel
4635 # versions had trouble with output in subdirs.
4636 am__obj
=sub
/conftest.
${OBJEXT-o}
4637 am__minus_obj
="-o $am__obj"
4640 # This depmode causes a compiler race in universal mode.
4641 test "$am__universal" = false ||
continue
4644 # After this tag, mechanisms are not by side-effect, so they'll
4645 # only be used when explicitly requested.
4646 if test "x$enable_dependency_tracking" = xyes
; then
4652 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
4653 # This compiler won't grok '-c -o', but also, the minuso test has
4654 # not run yet. These depmodes are late enough in the game, and
4655 # so weak that their functioning should not be impacted.
4656 am__obj
=conftest.
${OBJEXT-o}
4661 if depmode
=$depmode \
4662 source=sub
/conftest.c object
=$am__obj \
4663 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4664 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4665 >/dev
/null
2>conftest.err
&&
4666 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4667 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4668 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4669 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4670 # icc doesn't choke on unknown options, it will just issue warnings
4671 # or remarks (even with -Werror). So we grep stderr for any message
4672 # that says an option was ignored or not supported.
4673 # When given -MP, icc 7.0 and 7.1 complain thusly:
4674 # icc: Command line warning: ignoring option '-M'; no argument required
4675 # The diagnosis changed in icc 8.0:
4676 # icc: Command line remark: option '-MP' not supported
4677 if (grep 'ignoring option' conftest.err ||
4678 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4679 am_cv_CCAS_dependencies_compiler_type
=$depmode
4688 am_cv_CCAS_dependencies_compiler_type
=none
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4693 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4694 CCASDEPMODE
=depmode
=$am_cv_CCAS_dependencies_compiler_type
4697 test "x$enable_dependency_tracking" != xno \
4698 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3
; then
4699 am__fastdepCCAS_TRUE
=
4700 am__fastdepCCAS_FALSE
='#'
4702 am__fastdepCCAS_TRUE
='#'
4703 am__fastdepCCAS_FALSE
=
4713 # static hash tables crashes on AIX when libgo is built with O2
4714 CFLAGS
="$CFLAGS -fno-section-anchors"
4715 GOCFLAGS
="$GOCFLAGS -fno-section-anchors"
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4721 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4722 # Check whether --enable-maintainer-mode was given.
4723 if test "${enable_maintainer_mode+set}" = set; then :
4724 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
4726 USE_MAINTAINER_MODE
=no
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4730 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4731 if test $USE_MAINTAINER_MODE = yes; then
4732 MAINTAINER_MODE_TRUE
=
4733 MAINTAINER_MODE_FALSE
='#'
4735 MAINTAINER_MODE_TRUE
='#'
4736 MAINTAINER_MODE_FALSE
=
4739 MAINT
=$MAINTAINER_MODE_TRUE
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4744 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4745 if ${ac_cv_path_SED+:} false
; then :
4746 $as_echo_n "(cached) " >&6
4748 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
4749 for ac_i
in 1 2 3 4 5 6 7; do
4750 ac_script
="$ac_script$as_nl$ac_script"
4752 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
4753 { ac_script
=; unset ac_script
;}
4754 if test -z "$SED"; then
4755 ac_path_SED_found
=false
4756 # Loop through the user's path and test for each of PROGNAME-LIST
4757 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4761 test -z "$as_dir" && as_dir
=.
4762 for ac_prog
in sed gsed
; do
4763 for ac_exec_ext
in '' $ac_executable_extensions; do
4764 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
4765 as_fn_executable_p
"$ac_path_SED" ||
continue
4766 # Check for GNU ac_path_SED and select it if it is found.
4767 # Check for GNU $ac_path_SED
4768 case `"$ac_path_SED" --version 2>&1` in
4770 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
4773 $as_echo_n 0123456789 >"conftest.in"
4776 cat "conftest.in" "conftest.in" >"conftest.tmp"
4777 mv "conftest.tmp" "conftest.in"
4778 cp "conftest.in" "conftest.nl"
4779 $as_echo '' >> "conftest.nl"
4780 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4781 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4782 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4783 if test $ac_count -gt ${ac_path_SED_max-0}; then
4784 # Best one so far, save it but keep looking for a better one
4785 ac_cv_path_SED
="$ac_path_SED"
4786 ac_path_SED_max
=$ac_count
4788 # 10*(2^10) chars as input seems more than enough
4789 test $ac_count -gt 10 && break
4791 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4794 $ac_path_SED_found && break 3
4799 if test -z "$ac_cv_path_SED"; then
4800 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4808 $as_echo "$ac_cv_path_SED" >&6; }
4809 SED
="$ac_cv_path_SED"
4812 test -z "$SED" && SED
=sed
4813 Xsed
="$SED -e 1s/^X//"
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4826 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4827 if ${ac_cv_path_GREP+:} false
; then :
4828 $as_echo_n "(cached) " >&6
4830 if test -z "$GREP"; then
4831 ac_path_GREP_found
=false
4832 # Loop through the user's path and test for each of PROGNAME-LIST
4833 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4834 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4837 test -z "$as_dir" && as_dir
=.
4838 for ac_prog
in grep ggrep
; do
4839 for ac_exec_ext
in '' $ac_executable_extensions; do
4840 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4841 as_fn_executable_p
"$ac_path_GREP" ||
continue
4842 # Check for GNU ac_path_GREP and select it if it is found.
4843 # Check for GNU $ac_path_GREP
4844 case `"$ac_path_GREP" --version 2>&1` in
4846 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4849 $as_echo_n 0123456789 >"conftest.in"
4852 cat "conftest.in" "conftest.in" >"conftest.tmp"
4853 mv "conftest.tmp" "conftest.in"
4854 cp "conftest.in" "conftest.nl"
4855 $as_echo 'GREP' >> "conftest.nl"
4856 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4857 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4858 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4859 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4860 # Best one so far, save it but keep looking for a better one
4861 ac_cv_path_GREP
="$ac_path_GREP"
4862 ac_path_GREP_max
=$ac_count
4864 # 10*(2^10) chars as input seems more than enough
4865 test $ac_count -gt 10 && break
4867 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4870 $ac_path_GREP_found && break 3
4875 if test -z "$ac_cv_path_GREP"; then
4876 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4879 ac_cv_path_GREP
=$GREP
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4884 $as_echo "$ac_cv_path_GREP" >&6; }
4885 GREP
="$ac_cv_path_GREP"
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4889 $as_echo_n "checking for egrep... " >&6; }
4890 if ${ac_cv_path_EGREP+:} false
; then :
4891 $as_echo_n "(cached) " >&6
4893 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4894 then ac_cv_path_EGREP
="$GREP -E"
4896 if test -z "$EGREP"; then
4897 ac_path_EGREP_found
=false
4898 # Loop through the user's path and test for each of PROGNAME-LIST
4899 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4900 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4903 test -z "$as_dir" && as_dir
=.
4904 for ac_prog
in egrep; do
4905 for ac_exec_ext
in '' $ac_executable_extensions; do
4906 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4907 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4908 # Check for GNU ac_path_EGREP and select it if it is found.
4909 # Check for GNU $ac_path_EGREP
4910 case `"$ac_path_EGREP" --version 2>&1` in
4912 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4915 $as_echo_n 0123456789 >"conftest.in"
4918 cat "conftest.in" "conftest.in" >"conftest.tmp"
4919 mv "conftest.tmp" "conftest.in"
4920 cp "conftest.in" "conftest.nl"
4921 $as_echo 'EGREP' >> "conftest.nl"
4922 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4923 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4924 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4925 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4926 # Best one so far, save it but keep looking for a better one
4927 ac_cv_path_EGREP
="$ac_path_EGREP"
4928 ac_path_EGREP_max
=$ac_count
4930 # 10*(2^10) chars as input seems more than enough
4931 test $ac_count -gt 10 && break
4933 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4936 $ac_path_EGREP_found && break 3
4941 if test -z "$ac_cv_path_EGREP"; then
4942 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4945 ac_cv_path_EGREP
=$EGREP
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4951 $as_echo "$ac_cv_path_EGREP" >&6; }
4952 EGREP
="$ac_cv_path_EGREP"
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4956 $as_echo_n "checking for fgrep... " >&6; }
4957 if ${ac_cv_path_FGREP+:} false
; then :
4958 $as_echo_n "(cached) " >&6
4960 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
4961 then ac_cv_path_FGREP
="$GREP -F"
4963 if test -z "$FGREP"; then
4964 ac_path_FGREP_found
=false
4965 # Loop through the user's path and test for each of PROGNAME-LIST
4966 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4967 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4970 test -z "$as_dir" && as_dir
=.
4971 for ac_prog
in fgrep
; do
4972 for ac_exec_ext
in '' $ac_executable_extensions; do
4973 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
4974 as_fn_executable_p
"$ac_path_FGREP" ||
continue
4975 # Check for GNU ac_path_FGREP and select it if it is found.
4976 # Check for GNU $ac_path_FGREP
4977 case `"$ac_path_FGREP" --version 2>&1` in
4979 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
4982 $as_echo_n 0123456789 >"conftest.in"
4985 cat "conftest.in" "conftest.in" >"conftest.tmp"
4986 mv "conftest.tmp" "conftest.in"
4987 cp "conftest.in" "conftest.nl"
4988 $as_echo 'FGREP' >> "conftest.nl"
4989 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4990 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4991 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4992 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4993 # Best one so far, save it but keep looking for a better one
4994 ac_cv_path_FGREP
="$ac_path_FGREP"
4995 ac_path_FGREP_max
=$ac_count
4997 # 10*(2^10) chars as input seems more than enough
4998 test $ac_count -gt 10 && break
5000 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5003 $ac_path_FGREP_found && break 3
5008 if test -z "$ac_cv_path_FGREP"; then
5009 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5012 ac_cv_path_FGREP
=$FGREP
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5018 $as_echo "$ac_cv_path_FGREP" >&6; }
5019 FGREP
="$ac_cv_path_FGREP"
5022 test -z "$GREP" && GREP
=grep
5040 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5041 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5042 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5045 $as_echo_n "checking how to print strings... " >&6; }
5046 # Test print first, because it will be a builtin if present.
5047 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5048 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5050 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5053 # Use this function as a fallback that always works.
5054 func_fallback_echo ()
5056 eval 'cat <<_LTECHO_EOF
5060 ECHO='func_fallback_echo
'
5063 # func_echo_all arg...
5064 # Invoke $ECHO with all args, space-separated.
5071 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5072 $as_echo "printf" >&6; } ;;
5073 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5074 $as_echo "print -r" >&6; } ;;
5075 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5076 $as_echo "cat" >&6; } ;;
5094 # Check whether --with-gnu-ld was given.
5095 if test "${with_gnu_ld+set}" = set; then :
5096 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5102 if test "$GCC" = yes; then
5103 # Check if gcc -print-prog-name=ld gives a path.
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5105 $as_echo_n "checking for ld used by $CC... " >&6; }
5108 # gcc leaves a trailing carriage return which upsets mingw
5109 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5111 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5114 # Accept absolute paths.
5116 re_direlt='/[^
/][^
/]*/\.\.
/'
5117 # Canonicalize the pathname of ld
5118 ac_prog=`$ECHO "$ac_prog"| $SED 's
%\\\\%/%g
'`
5119 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5120 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5122 test -z "$LD" && LD="$ac_prog"
5125 # If it fails, then pretend we aren't using GCC.
5129 # If it is relative, then search for the first ld in PATH.
5133 elif test "$with_gnu_ld" = yes; then
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5135 $as_echo_n "checking for GNU ld... " >&6; }
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5138 $as_echo_n "checking for non-GNU ld... " >&6; }
5140 if ${lt_cv_path_LD+:} false
; then :
5141 $as_echo_n "(cached) " >&6
5143 if test -z "$LD"; then
5144 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5145 for ac_dir
in $PATH; do
5147 test -z "$ac_dir" && ac_dir
=.
5148 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
5149 lt_cv_path_LD
="$ac_dir/$ac_prog"
5150 # Check to see if the program is GNU ld. I'd rather use --version,
5151 # but apparently some variants of GNU ld only accept -v.
5152 # Break only if it was the GNU/non-GNU ld that we prefer.
5153 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5154 *GNU
* |
*'with BFD'*)
5155 test "$with_gnu_ld" != no
&& break
5158 test "$with_gnu_ld" != yes && break
5165 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
5170 if test -n "$LD"; then
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5172 $as_echo "$LD" >&6; }
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5175 $as_echo "no" >&6; }
5177 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5179 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5180 if ${lt_cv_prog_gnu_ld+:} false
; then :
5181 $as_echo_n "(cached) " >&6
5183 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5184 case `$LD -v 2>&1 </dev/null` in
5185 *GNU
* |
*'with BFD'*)
5186 lt_cv_prog_gnu_ld
=yes
5189 lt_cv_prog_gnu_ld
=no
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5194 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5195 with_gnu_ld
=$lt_cv_prog_gnu_ld
5205 if test -n "$ac_tool_prefix"; then
5206 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5207 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5209 $as_echo_n "checking for $ac_word... " >&6; }
5210 if ${ac_cv_prog_RANLIB+:} false
; then :
5211 $as_echo_n "(cached) " >&6
5213 if test -n "$RANLIB"; then
5214 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5216 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5220 test -z "$as_dir" && as_dir
=.
5221 for ac_exec_ext
in '' $ac_executable_extensions; do
5222 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5223 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5233 RANLIB
=$ac_cv_prog_RANLIB
5234 if test -n "$RANLIB"; then
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5236 $as_echo "$RANLIB" >&6; }
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5239 $as_echo "no" >&6; }
5244 if test -z "$ac_cv_prog_RANLIB"; then
5245 ac_ct_RANLIB
=$RANLIB
5246 # Extract the first word of "ranlib", so it can be a program name with args.
5247 set dummy ranlib
; ac_word
=$2
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5249 $as_echo_n "checking for $ac_word... " >&6; }
5250 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
5251 $as_echo_n "(cached) " >&6
5253 if test -n "$ac_ct_RANLIB"; then
5254 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5256 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5260 test -z "$as_dir" && as_dir
=.
5261 for ac_exec_ext
in '' $ac_executable_extensions; do
5262 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5263 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5273 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5274 if test -n "$ac_ct_RANLIB"; then
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5276 $as_echo "$ac_ct_RANLIB" >&6; }
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5279 $as_echo "no" >&6; }
5282 if test "x$ac_ct_RANLIB" = x
; then
5285 case $cross_compiling:$ac_tool_warned in
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5289 ac_tool_warned
=yes ;;
5291 RANLIB
=$ac_ct_RANLIB
5294 RANLIB
="$ac_cv_prog_RANLIB"
5297 if test -n "$ac_tool_prefix"; then
5298 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
5299 set dummy
${ac_tool_prefix}objcopy
; ac_word
=$2
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5301 $as_echo_n "checking for $ac_word... " >&6; }
5302 if ${ac_cv_prog_OBJCOPY+:} false
; then :
5303 $as_echo_n "(cached) " >&6
5305 if test -n "$OBJCOPY"; then
5306 ac_cv_prog_OBJCOPY
="$OBJCOPY" # Let the user override the test.
5308 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5312 test -z "$as_dir" && as_dir
=.
5313 for ac_exec_ext
in '' $ac_executable_extensions; do
5314 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5315 ac_cv_prog_OBJCOPY
="${ac_tool_prefix}objcopy"
5316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5325 OBJCOPY
=$ac_cv_prog_OBJCOPY
5326 if test -n "$OBJCOPY"; then
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
5328 $as_echo "$OBJCOPY" >&6; }
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5331 $as_echo "no" >&6; }
5336 if test -z "$ac_cv_prog_OBJCOPY"; then
5337 ac_ct_OBJCOPY
=$OBJCOPY
5338 # Extract the first word of "objcopy", so it can be a program name with args.
5339 set dummy objcopy
; ac_word
=$2
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5341 $as_echo_n "checking for $ac_word... " >&6; }
5342 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false
; then :
5343 $as_echo_n "(cached) " >&6
5345 if test -n "$ac_ct_OBJCOPY"; then
5346 ac_cv_prog_ac_ct_OBJCOPY
="$ac_ct_OBJCOPY" # Let the user override the test.
5348 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5352 test -z "$as_dir" && as_dir
=.
5353 for ac_exec_ext
in '' $ac_executable_extensions; do
5354 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5355 ac_cv_prog_ac_ct_OBJCOPY
="objcopy"
5356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5365 ac_ct_OBJCOPY
=$ac_cv_prog_ac_ct_OBJCOPY
5366 if test -n "$ac_ct_OBJCOPY"; then
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
5368 $as_echo "$ac_ct_OBJCOPY" >&6; }
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5371 $as_echo "no" >&6; }
5374 if test "x$ac_ct_OBJCOPY" = x
; then
5375 OBJCOPY
="missing-objcopy"
5377 case $cross_compiling:$ac_tool_warned in
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5381 ac_tool_warned
=yes ;;
5383 OBJCOPY
=$ac_ct_OBJCOPY
5386 OBJCOPY
="$ac_cv_prog_OBJCOPY"
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5397 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5402 macro_version
='2.2.7a'
5403 macro_revision
='1.3134'
5417 ltmain
="$ac_aux_dir/ltmain.sh"
5419 # Backslashify metacharacters that are still active within
5420 # double-quoted strings.
5421 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
5423 # Same as above, but do not quote variable references.
5424 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
5426 # Sed substitution to delay expansion of an escaped shell variable in a
5427 # double_quote_subst'ed string.
5428 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
5430 # Sed substitution to delay expansion of an escaped single quote.
5431 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
5433 # Sed substitution to avoid accidental globbing in evaled expressions
5434 no_glob_subst
='s/\*/\\\*/g'
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5437 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5438 if ${lt_cv_path_NM+:} false
; then :
5439 $as_echo_n "(cached) " >&6
5441 if test -n "$NM"; then
5442 # Let the user override the test.
5445 lt_nm_to_check
="${ac_tool_prefix}nm"
5446 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5447 lt_nm_to_check
="$lt_nm_to_check nm"
5449 for lt_tmp_nm
in $lt_nm_to_check; do
5450 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5451 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
5453 test -z "$ac_dir" && ac_dir
=.
5454 tmp_nm
="$ac_dir/$lt_tmp_nm"
5455 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
5456 # Check to see if the nm accepts a BSD-compat flag.
5457 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5458 # nm: unknown option "B" ignored
5459 # Tru64's nm complains that /dev/null is an invalid object file
5460 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5461 */dev
/null
* |
*'Invalid file or object type'*)
5462 lt_cv_path_NM
="$tmp_nm -B"
5466 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5468 lt_cv_path_NM
="$tmp_nm -p"
5472 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5473 continue # so that we can try to find one that supports BSD flags
5482 : ${lt_cv_path_NM=no}
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5486 $as_echo "$lt_cv_path_NM" >&6; }
5487 if test "$lt_cv_path_NM" != "no"; then
5490 # Didn't find any BSD compatible name lister, look for dumpbin.
5491 if test -n "$DUMPBIN"; then :
5492 # Let the user override the test.
5494 if test -n "$ac_tool_prefix"; then
5495 for ac_prog
in dumpbin
"link -dump"
5497 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5498 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5500 $as_echo_n "checking for $ac_word... " >&6; }
5501 if ${ac_cv_prog_DUMPBIN+:} false
; then :
5502 $as_echo_n "(cached) " >&6
5504 if test -n "$DUMPBIN"; then
5505 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
5507 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5511 test -z "$as_dir" && as_dir
=.
5512 for ac_exec_ext
in '' $ac_executable_extensions; do
5513 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5514 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
5515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5524 DUMPBIN
=$ac_cv_prog_DUMPBIN
5525 if test -n "$DUMPBIN"; then
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5527 $as_echo "$DUMPBIN" >&6; }
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5530 $as_echo "no" >&6; }
5534 test -n "$DUMPBIN" && break
5537 if test -z "$DUMPBIN"; then
5538 ac_ct_DUMPBIN
=$DUMPBIN
5539 for ac_prog
in dumpbin
"link -dump"
5541 # Extract the first word of "$ac_prog", so it can be a program name with args.
5542 set dummy
$ac_prog; ac_word
=$2
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5544 $as_echo_n "checking for $ac_word... " >&6; }
5545 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
5546 $as_echo_n "(cached) " >&6
5548 if test -n "$ac_ct_DUMPBIN"; then
5549 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
5551 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5555 test -z "$as_dir" && as_dir
=.
5556 for ac_exec_ext
in '' $ac_executable_extensions; do
5557 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5558 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
5559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5568 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
5569 if test -n "$ac_ct_DUMPBIN"; then
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5571 $as_echo "$ac_ct_DUMPBIN" >&6; }
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5574 $as_echo "no" >&6; }
5578 test -n "$ac_ct_DUMPBIN" && break
5581 if test "x$ac_ct_DUMPBIN" = 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 DUMPBIN
=$ac_ct_DUMPBIN
5594 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5596 DUMPBIN
="$DUMPBIN -symbols"
5604 if test "$DUMPBIN" != ":"; then
5608 test -z "$NM" && NM
=nm
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5616 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5617 if ${lt_cv_nm_interface+:} false
; then :
5618 $as_echo_n "(cached) " >&6
5620 lt_cv_nm_interface
="BSD nm"
5621 echo "int some_variable = 0;" > conftest.
$ac_ext
5622 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5623 (eval "$ac_compile" 2>conftest.err
)
5624 cat conftest.err
>&5
5625 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5626 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
5627 cat conftest.err
>&5
5628 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5629 cat conftest.out
>&5
5630 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
5631 lt_cv_nm_interface
="MS dumpbin"
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5636 $as_echo "$lt_cv_nm_interface" >&6; }
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5639 $as_echo_n "checking whether ln -s works... " >&6; }
5641 if test "$LN_S" = "ln -s"; then
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5643 $as_echo "yes" >&6; }
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5646 $as_echo "no, using $LN_S" >&6; }
5649 # find the maximum length of command line arguments
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5651 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5652 if ${lt_cv_sys_max_cmd_len+:} false
; then :
5653 $as_echo_n "(cached) " >&6
5660 # On DJGPP, this test can blow up pretty badly due to problems in libc
5661 # (any single argument exceeding 2000 bytes causes a buffer overrun
5662 # during glob expansion). Even if it were fixed, the result of this
5663 # check would be larger than it should be.
5664 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
5668 # Under GNU Hurd, this test is not required because there is
5669 # no limit to the length of command line arguments.
5670 # Libtool will interpret -1 as no limit whatsoever
5671 lt_cv_sys_max_cmd_len
=-1;
5674 cygwin
* | mingw
* | cegcc
*)
5675 # On Win9x/ME, this test blows up -- it succeeds, but takes
5676 # about 5 minutes as the teststring grows exponentially.
5677 # Worse, since 9x/ME are not pre-emptively multitasking,
5678 # you end up with a "frozen" computer, even though with patience
5679 # the test eventually succeeds (with a max line length of 256k).
5680 # Instead, let's just punt: use the minimum linelength reported by
5681 # all of the supported platforms: 8192 (on NT/2K/XP).
5682 lt_cv_sys_max_cmd_len
=8192;
5686 # On MiNT this can take a long time and run out of memory.
5687 lt_cv_sys_max_cmd_len
=8192;
5691 # On AmigaOS with pdksh, this test takes hours, literally.
5692 # So we just punt and use a minimum line length of 8192.
5693 lt_cv_sys_max_cmd_len
=8192;
5696 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
5697 # This has been around since 386BSD, at least. Likely further.
5698 if test -x /sbin
/sysctl
; then
5699 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
5700 elif test -x /usr
/sbin
/sysctl
; then
5701 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
5703 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
5705 # And add a safety zone
5706 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5707 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
5711 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5712 lt_cv_sys_max_cmd_len
=196608
5716 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5717 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5718 # nice to cause kernel panics so lets avoid the loop below.
5719 # First set a reasonable default.
5720 lt_cv_sys_max_cmd_len
=16384
5722 if test -x /sbin
/sysconfig
; then
5723 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5724 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
5729 lt_cv_sys_max_cmd_len
=102400
5731 sysv5
* | sco5v6
* | sysv4.2uw2
*)
5732 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5733 if test -n "$kargmax"; then
5734 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
5736 lt_cv_sys_max_cmd_len
=32768
5740 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
5741 if test -n "$lt_cv_sys_max_cmd_len"; then
5742 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5743 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
5745 # Make teststring a little bigger before we do anything with it.
5746 # a 1K string should be a reasonable start.
5747 for i
in 1 2 3 4 5 6 7 8 ; do
5748 teststring
=$teststring$teststring
5750 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
5751 # If test is not a shell built-in, we'll probably end up computing a
5752 # maximum length that is only half of the actual maximum length, but
5754 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5755 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
5756 test $i != 17 # 1/2 MB should be enough
5759 teststring
=$teststring$teststring
5761 # Only check the string length outside the loop.
5762 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
5764 # Add a significant safety factor because C++ compilers can tack on
5765 # massive amounts of additional arguments before passing them to the
5766 # linker. It appears as though 1/2 is a usable value.
5767 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
5774 if test -n $lt_cv_sys_max_cmd_len ; then
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5776 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5779 $as_echo "none" >&6; }
5781 max_cmd_len
=$lt_cv_sys_max_cmd_len
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5793 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5794 # Try some XSI features
5797 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5799 && eval 'test $(( 1 + 1 )) -eq 2 \
5800 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
5803 $as_echo "$xsi_shell" >&6; }
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
5807 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
5809 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
5811 && lt_shell_append=yes
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
5813 $as_echo "$lt_shell_append" >&6; }
5816 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5826 # test EBCDIC or ASCII
5827 case `echo X|tr X '\101'` in
5828 A) # ASCII based system
5829 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5830 lt_SP2NL='tr \040 \012'
5831 lt_NL2SP='tr \015\012 \040\040'
5833 *) # EBCDIC based system
5834 lt_SP2NL='tr \100 \n'
5835 lt_NL2SP='tr \r\n \100\100'
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
5848 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
5849 if ${lt_cv_ld_reload_flag+:} false; then :
5850 $as_echo_n "(cached
) " >&6
5852 lt_cv_ld_reload_flag='-r'
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
5855 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5856 reload_flag=$lt_cv_ld_reload_flag
5857 case $reload_flag in
5859 *) reload_flag=" $reload_flag" ;;
5861 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5864 if test "$GCC" = yes; then
5865 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5867 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5880 if test -n "$ac_tool_prefix"; then
5881 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
5882 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5884 $as_echo_n "checking
for $ac_word...
" >&6; }
5885 if ${ac_cv_prog_OBJDUMP+:} false; then :
5886 $as_echo_n "(cached
) " >&6
5888 if test -n "$OBJDUMP"; then
5889 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895 test -z "$as_dir" && as_dir=.
5896 for ac_exec_ext in '' $ac_executable_extensions; do
5897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5898 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
5899 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5908 OBJDUMP=$ac_cv_prog_OBJDUMP
5909 if test -n "$OBJDUMP"; then
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
5911 $as_echo "$OBJDUMP" >&6; }
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5914 $as_echo "no
" >&6; }
5919 if test -z "$ac_cv_prog_OBJDUMP"; then
5920 ac_ct_OBJDUMP=$OBJDUMP
5921 # Extract the first word of "objdump
", so it can be a program name with args.
5922 set dummy objdump; ac_word=$2
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5924 $as_echo_n "checking
for $ac_word...
" >&6; }
5925 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5926 $as_echo_n "(cached
) " >&6
5928 if test -n "$ac_ct_OBJDUMP"; then
5929 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935 test -z "$as_dir" && as_dir=.
5936 for ac_exec_ext in '' $ac_executable_extensions; do
5937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5938 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
5939 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5948 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5949 if test -n "$ac_ct_OBJDUMP"; then
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
5951 $as_echo "$ac_ct_OBJDUMP" >&6; }
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5954 $as_echo "no
" >&6; }
5957 if test "x
$ac_ct_OBJDUMP" = x; then
5960 case $cross_compiling:$ac_tool_warned in
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5963 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5964 ac_tool_warned=yes ;;
5966 OBJDUMP=$ac_ct_OBJDUMP
5969 OBJDUMP="$ac_cv_prog_OBJDUMP"
5972 test -z "$OBJDUMP" && OBJDUMP=objdump
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
5983 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
5984 if ${lt_cv_deplibs_check_method+:} false; then :
5985 $as_echo_n "(cached
) " >&6
5987 lt_cv_file_magic_cmd='$MAGIC_CMD'
5988 lt_cv_file_magic_test_file=
5989 lt_cv_deplibs_check_method='unknown'
5990 # Need to set the preceding variable on all platforms that support
5991 # interlibrary dependencies.
5992 # 'none' -- dependencies not supported.
5993 # `unknown' -- same as none, but documents that we really don't know.
5994 # 'pass_all' -- all dependencies passed with no checks.
5995 # 'test_compile' -- check by making test program.
5996 # 'file_magic [[regex]]' -- check by looking for files in library path
5997 # which responds to the $file_magic_cmd with a given extended regex.
5998 # If you have `file' or equivalent on your system and you're not sure
5999 # whether `pass_all' will *always* work, you probably want this one.
6003 lt_cv_deplibs_check_method=pass_all
6007 lt_cv_deplibs_check_method=pass_all
6011 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6012 lt_cv_file_magic_cmd='/usr/bin/file -L'
6013 lt_cv_file_magic_test_file=/shlib/libc.so
6017 # func_win32_libid is a shell function defined in ltmain.sh
6018 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6019 lt_cv_file_magic_cmd='func_win32_libid'
6023 # Base MSYS/MinGW do not provide the 'file' command needed by
6024 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6025 # unless we find 'file', for example because we are cross-compiling.
6026 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6027 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
6028 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6029 lt_cv_file_magic_cmd='func_win32_libid'
6031 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6032 lt_cv_file_magic_cmd='$OBJDUMP -f'
6037 # use the weaker test based on 'objdump'. See mingw*.
6038 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6039 lt_cv_file_magic_cmd='$OBJDUMP -f'
6042 darwin* | rhapsody*)
6043 lt_cv_deplibs_check_method=pass_all
6046 freebsd* | dragonfly*)
6047 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6050 # Not sure whether the presence of OpenBSD here was a mistake.
6051 # Let's accept both of them until this is cleared up.
6052 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6053 lt_cv_file_magic_cmd=/usr/bin/file
6054 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6058 lt_cv_deplibs_check_method=pass_all
6063 lt_cv_deplibs_check_method=pass_all
6067 lt_cv_deplibs_check_method=pass_all
6070 hpux10.20* | hpux11*)
6071 lt_cv_file_magic_cmd=/usr/bin/file
6074 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6075 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6078 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]'
6079 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6082 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6083 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6089 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6090 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6093 irix5* | irix6* | nonstopux*)
6095 *-32|*"-32 ") libmagic=32-bit;;
6096 *-n32|*"-n32 ") libmagic=N32;;
6097 *-64|*"-64 ") libmagic=64-bit;;
6098 *) libmagic=never-match;;
6100 lt_cv_deplibs_check_method=pass_all
6103 # This must be Linux ELF.
6104 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6105 lt_cv_deplibs_check_method=pass_all
6109 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6110 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6112 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6117 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6118 lt_cv_file_magic_cmd=/usr/bin/file
6119 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6123 lt_cv_deplibs_check_method=pass_all
6127 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
6128 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6130 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6134 osf3* | osf4* | osf5*)
6135 lt_cv_deplibs_check_method=pass_all
6139 lt_cv_deplibs_check_method=pass_all
6143 lt_cv_deplibs_check_method=pass_all
6146 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6147 lt_cv_deplibs_check_method=pass_all
6151 case $host_vendor in
6153 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]'
6154 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6157 lt_cv_deplibs_check_method=pass_all
6160 lt_cv_file_magic_cmd='/bin/file'
6161 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6164 lt_cv_file_magic_cmd='/bin/file'
6165 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
6166 lt_cv_file_magic_test_file=/lib/libc.so
6169 lt_cv_deplibs_check_method=pass_all
6172 lt_cv_deplibs_check_method=pass_all
6178 lt_cv_deplibs_check_method=pass_all
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
6184 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6185 file_magic_cmd=$lt_cv_file_magic_cmd
6186 deplibs_check_method=$lt_cv_deplibs_check_method
6187 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6200 if test -n "$ac_tool_prefix"; then
6201 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6202 set dummy ${ac_tool_prefix}ar; ac_word=$2
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6204 $as_echo_n "checking
for $ac_word...
" >&6; }
6205 if ${ac_cv_prog_AR+:} false; then :
6206 $as_echo_n "(cached
) " >&6
6208 if test -n "$AR"; then
6209 ac_cv_prog_AR="$AR" # Let the user override the test.
6211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6215 test -z "$as_dir" && as_dir=.
6216 for ac_exec_ext in '' $ac_executable_extensions; do
6217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6218 ac_cv_prog_AR="${ac_tool_prefix}ar"
6219 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6229 if test -n "$AR"; then
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
6231 $as_echo "$AR" >&6; }
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6234 $as_echo "no
" >&6; }
6239 if test -z "$ac_cv_prog_AR"; then
6241 # Extract the first word of "ar", so it can be a program name with args.
6242 set dummy ar; ac_word=$2
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6244 $as_echo_n "checking
for $ac_word...
" >&6; }
6245 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6246 $as_echo_n "(cached
) " >&6
6248 if test -n "$ac_ct_AR"; then
6249 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255 test -z "$as_dir" && as_dir=.
6256 for ac_exec_ext in '' $ac_executable_extensions; do
6257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6258 ac_cv_prog_ac_ct_AR="ar"
6259 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6268 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6269 if test -n "$ac_ct_AR"; then
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
6271 $as_echo "$ac_ct_AR" >&6; }
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6274 $as_echo "no
" >&6; }
6277 if test "x
$ac_ct_AR" = x; then
6280 case $cross_compiling:$ac_tool_warned in
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6283 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6284 ac_tool_warned=yes ;;
6292 test -z "$AR" && AR=ar
6293 test -z "$AR_FLAGS" && AR_FLAGS=cru
6305 if test -n "$ac_tool_prefix"; then
6306 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
6307 set dummy ${ac_tool_prefix}strip; ac_word=$2
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6309 $as_echo_n "checking
for $ac_word...
" >&6; }
6310 if ${ac_cv_prog_STRIP+:} false; then :
6311 $as_echo_n "(cached
) " >&6
6313 if test -n "$STRIP"; then
6314 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6320 test -z "$as_dir" && as_dir=.
6321 for ac_exec_ext in '' $ac_executable_extensions; do
6322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6323 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
6324 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6333 STRIP=$ac_cv_prog_STRIP
6334 if test -n "$STRIP"; then
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
6336 $as_echo "$STRIP" >&6; }
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6339 $as_echo "no
" >&6; }
6344 if test -z "$ac_cv_prog_STRIP"; then
6346 # Extract the first word of "strip
", so it can be a program name with args.
6347 set dummy strip; ac_word=$2
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6349 $as_echo_n "checking
for $ac_word...
" >&6; }
6350 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6351 $as_echo_n "(cached
) " >&6
6353 if test -n "$ac_ct_STRIP"; then
6354 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360 test -z "$as_dir" && as_dir=.
6361 for ac_exec_ext in '' $ac_executable_extensions; do
6362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6363 ac_cv_prog_ac_ct_STRIP="strip
"
6364 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6373 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6374 if test -n "$ac_ct_STRIP"; then
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
6376 $as_echo "$ac_ct_STRIP" >&6; }
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6379 $as_echo "no
" >&6; }
6382 if test "x
$ac_ct_STRIP" = x; then
6385 case $cross_compiling:$ac_tool_warned in
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6388 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6389 ac_tool_warned=yes ;;
6394 STRIP="$ac_cv_prog_STRIP"
6397 test -z "$STRIP" && STRIP=:
6404 if test -n "$ac_tool_prefix"; then
6405 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
6406 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6408 $as_echo_n "checking
for $ac_word...
" >&6; }
6409 if ${ac_cv_prog_RANLIB+:} false; then :
6410 $as_echo_n "(cached
) " >&6
6412 if test -n "$RANLIB"; then
6413 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6419 test -z "$as_dir" && as_dir=.
6420 for ac_exec_ext in '' $ac_executable_extensions; do
6421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6422 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
6423 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6432 RANLIB=$ac_cv_prog_RANLIB
6433 if test -n "$RANLIB"; then
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
6435 $as_echo "$RANLIB" >&6; }
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6438 $as_echo "no
" >&6; }
6443 if test -z "$ac_cv_prog_RANLIB"; then
6444 ac_ct_RANLIB=$RANLIB
6445 # Extract the first word of "ranlib
", so it can be a program name with args.
6446 set dummy ranlib; ac_word=$2
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6448 $as_echo_n "checking
for $ac_word...
" >&6; }
6449 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6450 $as_echo_n "(cached
) " >&6
6452 if test -n "$ac_ct_RANLIB"; then
6453 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6459 test -z "$as_dir" && as_dir=.
6460 for ac_exec_ext in '' $ac_executable_extensions; do
6461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6462 ac_cv_prog_ac_ct_RANLIB="ranlib
"
6463 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6472 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6473 if test -n "$ac_ct_RANLIB"; then
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
6475 $as_echo "$ac_ct_RANLIB" >&6; }
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6478 $as_echo "no
" >&6; }
6481 if test "x
$ac_ct_RANLIB" = x; then
6484 case $cross_compiling:$ac_tool_warned in
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6487 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6488 ac_tool_warned=yes ;;
6490 RANLIB=$ac_ct_RANLIB
6493 RANLIB="$ac_cv_prog_RANLIB"
6496 test -z "$RANLIB" && RANLIB=:
6503 # Determine commands to create old-style static archives.
6504 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6505 old_postinstall_cmds='chmod 644 $oldlib'
6506 old_postuninstall_cmds=
6508 if test -n "$RANLIB"; then
6511 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
6514 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
6517 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
6522 lock_old_archive_extraction=yes ;;
6524 lock_old_archive_extraction=no ;;
6565 # If no C compiler was specified, use CC.
6568 # If no C compiler flags were specified, use CFLAGS.
6569 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6571 # Allow CC to be a program name with arguments.
6575 # Check for command to grab the raw symbol name followed by C symbol from nm.
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
6577 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
6578 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6579 $as_echo_n "(cached
) " >&6
6582 # These are sane defaults that work on at least a few old systems.
6583 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6585 # Character class describing NM global symbol codes.
6586 symcode='[BCDEGRST]'
6588 # Regexp to match symbols that can be accessed directly from C.
6589 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6591 # Define system-specific variables.
6596 cygwin* | mingw* | pw32* | cegcc*)
6597 symcode='[ABCDGISTW]'
6600 if test "$host_cpu" = ia64; then
6601 symcode='[ABCDEGRST]'
6605 symcode='[BCDEGRST]'
6608 symcode='[BCDEGQRST]'
6619 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6627 # If we're using GNU nm, then use its standard symbol codes.
6628 case `$NM -V 2>&1` in
6629 *GNU* | *'with BFD'*)
6630 symcode='[ABCDGIRSTW]' ;;
6633 # Transform an extracted symbol line into a proper C declaration.
6634 # Some systems (esp. on ia64) link data and code symbols differently,
6635 # so use this general approach.
6636 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6638 # Transform an extracted symbol line into symbol name and symbol address
6639 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6640 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'"
6642 # Handle CRLF in mingw tool chain
6646 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6650 # Try without a prefix underscore, then with it.
6651 for ac_symprfx in "" "_
"; do
6653 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6654 symxfrm="\\1 $ac_symprfx\\2 \\2"
6656 # Write the raw and C identifiers.
6657 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6658 # Fake it for dumpbin and say T for any non-static function
6659 # and D for any global variable.
6660 # Also find C++ and __fastcall symbols from MSVC++,
6661 # which start with @ or ?.
6662 lt_cv_sys_global_symbol_pipe="$AWK '"\
6663 " {last_section=section; section=\$ 3};"\
6664 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6665 " \$ 0!~/External *\|/{next};"\
6666 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6667 " {if(hide[section]) next};"\
6668 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6669 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6670 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6671 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6672 " ' prfx
=^
$ac_symprfx"
6674 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6677 # Check to see that the pipe works correctly.
6681 cat > conftest.$ac_ext <<_LT_EOF
6686 void nm_test_func(void);
6687 void nm_test_func(void){}
6691 int main(){nm_test_var='a';nm_test_func();return(0);}
6694 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6695 (eval $ac_compile) 2>&5
6697 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6698 test $ac_status = 0; }; then
6699 # Now try to grab the symbols.
6701 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
6702 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6704 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6705 test $ac_status = 0; } && test -s "$nlist"; then
6706 # Try sorting and uniquifying the output.
6707 if sort "$nlist" | uniq > "$nlist"T; then
6708 mv -f "$nlist"T "$nlist"
6713 # Make sure that we snagged all the symbols we need.
6714 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6715 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6716 cat <<_LT_EOF > conftest.$ac_ext
6722 # Now generate the symbol file.
6723 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6725 cat <<_LT_EOF >> conftest.$ac_ext
6727 /* The mapping between symbol names and symbols. */
6732 lt__PROGRAM__LTX_preloaded_symbols[] =
6734 { "@PROGRAM@
", (void *) 0 },
6736 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6737 cat <<\_LT_EOF >> conftest.$ac_ext
6741 /* This works around a problem in FreeBSD linker */
6742 #ifdef FREEBSD_WORKAROUND
6743 static const void *lt_preloaded_setup() {
6744 return lt__PROGRAM__LTX_preloaded_symbols;
6752 # Now try linking the two files.
6753 mv conftest.$ac_objext conftstm.$ac_objext
6754 lt_save_LIBS="$LIBS"
6755 lt_save_CFLAGS="$CFLAGS"
6756 LIBS="conftstm.
$ac_objext"
6757 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6758 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6759 (eval $ac_link) 2>&5
6761 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6762 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6765 LIBS="$lt_save_LIBS"
6766 CFLAGS="$lt_save_CFLAGS"
6768 echo "cannot
find nm_test_func
in $nlist" >&5
6771 echo "cannot
find nm_test_var
in $nlist" >&5
6774 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
6777 echo "$progname: failed program was
:" >&5
6778 cat conftest.$ac_ext >&5
6780 rm -rf conftest* conftst*
6782 # Do not use the global_symbol_pipe unless it works.
6783 if test "$pipe_works" = yes; then
6786 lt_cv_sys_global_symbol_pipe=
6792 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6793 lt_cv_sys_global_symbol_to_cdecl=
6795 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
6797 $as_echo "failed
" >&6; }
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
6800 $as_echo "ok
" >&6; }
6825 # Check whether --enable-libtool-lock was given.
6826 if test "${enable_libtool_lock+set}" = set; then :
6827 enableval=$enable_libtool_lock;
6830 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
6832 # Some flags need to be propagated to the compiler or linker for good
6836 # Find out which ABI we are using.
6837 echo 'int i;' > conftest.$ac_ext
6838 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6839 (eval $ac_compile) 2>&5
6841 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6842 test $ac_status = 0; }; then
6843 case `/usr/bin/file conftest.$ac_objext` in
6855 # Find out which ABI we are using.
6856 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
6857 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6858 (eval $ac_compile) 2>&5
6860 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6861 test $ac_status = 0; }; then
6862 if test "$lt_cv_prog_gnu_ld" = yes; then
6863 case `/usr/bin/file conftest.$ac_objext` in
6865 LD="${LD-ld} -melf32bsmip"
6868 LD="${LD-ld} -melf32bmipn32"
6871 LD="${LD-ld} -melf64bmip"
6875 case `/usr/bin/file conftest.$ac_objext` in
6891 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6892 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6893 # Find out which ABI we are using.
6894 echo 'int i;' > conftest.$ac_ext
6895 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6896 (eval $ac_compile) 2>&5
6898 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6899 test $ac_status = 0; }; then
6900 case `/usr/bin/file conftest.o` in
6903 x86_64-*kfreebsd*-gnu)
6904 LD="${LD-ld} -m elf_i386_fbsd
"
6907 case `/usr/bin/file conftest.o` in
6909 LD="${LD-ld} -m elf32_x86_64
"
6912 LD="${LD-ld} -m elf_i386
"
6916 powerpc64le-*linux*)
6917 LD="${LD-ld} -m elf32lppclinux
"
6920 LD="${LD-ld} -m elf32ppclinux
"
6923 LD="${LD-ld} -m elf_s390
"
6926 LD="${LD-ld} -m elf32_sparc
"
6932 x86_64-*kfreebsd*-gnu)
6933 LD="${LD-ld} -m elf_x86_64_fbsd
"
6936 LD="${LD-ld} -m elf_x86_64
"
6939 LD="${LD-ld} -m elf64lppc
"
6942 LD="${LD-ld} -m elf64ppc
"
6944 s390*-*linux*|s390*-*tpf*)
6945 LD="${LD-ld} -m elf64_s390
"
6948 LD="${LD-ld} -m elf64_sparc
"
6958 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6959 SAVE_CFLAGS="$CFLAGS"
6960 CFLAGS="$CFLAGS -belf"
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
6962 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
6963 if ${lt_cv_cc_needs_belf+:} false; then :
6964 $as_echo_n "(cached
) " >&6
6967 ac_cpp='$CPP $CPPFLAGS'
6968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6973 /* end confdefs.h. */
6983 if ac_fn_c_try_link "$LINENO"; then :
6984 lt_cv_cc_needs_belf=yes
6986 lt_cv_cc_needs_belf=no
6988 rm -f core conftest.err conftest.$ac_objext \
6989 conftest$ac_exeext conftest.$ac_ext
6991 ac_cpp='$CPP $CPPFLAGS'
6992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
6998 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6999 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7000 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7001 CFLAGS="$SAVE_CFLAGS"
7005 # Find out which ABI we are using.
7006 echo 'int i;' > conftest.$ac_ext
7007 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7008 (eval $ac_compile) 2>&5
7010 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7011 test $ac_status = 0; }; then
7012 case `/usr/bin/file conftest.o` in
7014 case $lt_cv_prog_gnu_ld in
7015 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
7017 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7029 need_locks="$enable_libtool_lock"
7033 rhapsody* | darwin*)
7034 if test -n "$ac_tool_prefix"; then
7035 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
7036 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7038 $as_echo_n "checking
for $ac_word...
" >&6; }
7039 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7040 $as_echo_n "(cached
) " >&6
7042 if test -n "$DSYMUTIL"; then
7043 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7049 test -z "$as_dir" && as_dir=.
7050 for ac_exec_ext in '' $ac_executable_extensions; do
7051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7052 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
7053 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7062 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7063 if test -n "$DSYMUTIL"; then
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
7065 $as_echo "$DSYMUTIL" >&6; }
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7068 $as_echo "no
" >&6; }
7073 if test -z "$ac_cv_prog_DSYMUTIL"; then
7074 ac_ct_DSYMUTIL=$DSYMUTIL
7075 # Extract the first word of "dsymutil
", so it can be a program name with args.
7076 set dummy dsymutil; ac_word=$2
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7078 $as_echo_n "checking
for $ac_word...
" >&6; }
7079 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7080 $as_echo_n "(cached
) " >&6
7082 if test -n "$ac_ct_DSYMUTIL"; then
7083 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7089 test -z "$as_dir" && as_dir=.
7090 for ac_exec_ext in '' $ac_executable_extensions; do
7091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7092 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
7093 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7102 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7103 if test -n "$ac_ct_DSYMUTIL"; then
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
7105 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7108 $as_echo "no
" >&6; }
7111 if test "x
$ac_ct_DSYMUTIL" = x; then
7114 case $cross_compiling:$ac_tool_warned in
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7117 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7118 ac_tool_warned=yes ;;
7120 DSYMUTIL=$ac_ct_DSYMUTIL
7123 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7126 if test -n "$ac_tool_prefix"; then
7127 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
7128 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7130 $as_echo_n "checking
for $ac_word...
" >&6; }
7131 if ${ac_cv_prog_NMEDIT+:} false; then :
7132 $as_echo_n "(cached
) " >&6
7134 if test -n "$NMEDIT"; then
7135 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7141 test -z "$as_dir" && as_dir=.
7142 for ac_exec_ext in '' $ac_executable_extensions; do
7143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7144 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
7145 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7154 NMEDIT=$ac_cv_prog_NMEDIT
7155 if test -n "$NMEDIT"; then
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
7157 $as_echo "$NMEDIT" >&6; }
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7160 $as_echo "no
" >&6; }
7165 if test -z "$ac_cv_prog_NMEDIT"; then
7166 ac_ct_NMEDIT=$NMEDIT
7167 # Extract the first word of "nmedit
", so it can be a program name with args.
7168 set dummy nmedit; ac_word=$2
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7170 $as_echo_n "checking
for $ac_word...
" >&6; }
7171 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7172 $as_echo_n "(cached
) " >&6
7174 if test -n "$ac_ct_NMEDIT"; then
7175 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7181 test -z "$as_dir" && as_dir=.
7182 for ac_exec_ext in '' $ac_executable_extensions; do
7183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7184 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
7185 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7194 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7195 if test -n "$ac_ct_NMEDIT"; then
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
7197 $as_echo "$ac_ct_NMEDIT" >&6; }
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7200 $as_echo "no
" >&6; }
7203 if test "x
$ac_ct_NMEDIT" = x; then
7206 case $cross_compiling:$ac_tool_warned in
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7209 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7210 ac_tool_warned=yes ;;
7212 NMEDIT=$ac_ct_NMEDIT
7215 NMEDIT="$ac_cv_prog_NMEDIT"
7218 if test -n "$ac_tool_prefix"; then
7219 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
7220 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7222 $as_echo_n "checking
for $ac_word...
" >&6; }
7223 if ${ac_cv_prog_LIPO+:} false; then :
7224 $as_echo_n "(cached
) " >&6
7226 if test -n "$LIPO"; then
7227 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233 test -z "$as_dir" && as_dir=.
7234 for ac_exec_ext in '' $ac_executable_extensions; do
7235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7236 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
7237 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7246 LIPO=$ac_cv_prog_LIPO
7247 if test -n "$LIPO"; then
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
7249 $as_echo "$LIPO" >&6; }
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7252 $as_echo "no
" >&6; }
7257 if test -z "$ac_cv_prog_LIPO"; then
7259 # Extract the first word of "lipo
", so it can be a program name with args.
7260 set dummy lipo; ac_word=$2
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7262 $as_echo_n "checking
for $ac_word...
" >&6; }
7263 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7264 $as_echo_n "(cached
) " >&6
7266 if test -n "$ac_ct_LIPO"; then
7267 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273 test -z "$as_dir" && as_dir=.
7274 for ac_exec_ext in '' $ac_executable_extensions; do
7275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7276 ac_cv_prog_ac_ct_LIPO="lipo
"
7277 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7286 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7287 if test -n "$ac_ct_LIPO"; then
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
7289 $as_echo "$ac_ct_LIPO" >&6; }
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7292 $as_echo "no
" >&6; }
7295 if test "x
$ac_ct_LIPO" = x; then
7298 case $cross_compiling:$ac_tool_warned in
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7301 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7302 ac_tool_warned=yes ;;
7307 LIPO="$ac_cv_prog_LIPO"
7310 if test -n "$ac_tool_prefix"; then
7311 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
7312 set dummy ${ac_tool_prefix}otool; ac_word=$2
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7314 $as_echo_n "checking
for $ac_word...
" >&6; }
7315 if ${ac_cv_prog_OTOOL+:} false; then :
7316 $as_echo_n "(cached
) " >&6
7318 if test -n "$OTOOL"; then
7319 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7325 test -z "$as_dir" && as_dir=.
7326 for ac_exec_ext in '' $ac_executable_extensions; do
7327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7328 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
7329 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7338 OTOOL=$ac_cv_prog_OTOOL
7339 if test -n "$OTOOL"; then
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
7341 $as_echo "$OTOOL" >&6; }
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7344 $as_echo "no
" >&6; }
7349 if test -z "$ac_cv_prog_OTOOL"; then
7351 # Extract the first word of "otool
", so it can be a program name with args.
7352 set dummy otool; ac_word=$2
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7354 $as_echo_n "checking
for $ac_word...
" >&6; }
7355 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7356 $as_echo_n "(cached
) " >&6
7358 if test -n "$ac_ct_OTOOL"; then
7359 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365 test -z "$as_dir" && as_dir=.
7366 for ac_exec_ext in '' $ac_executable_extensions; do
7367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7368 ac_cv_prog_ac_ct_OTOOL="otool
"
7369 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7378 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7379 if test -n "$ac_ct_OTOOL"; then
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
7381 $as_echo "$ac_ct_OTOOL" >&6; }
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7384 $as_echo "no
" >&6; }
7387 if test "x
$ac_ct_OTOOL" = x; then
7390 case $cross_compiling:$ac_tool_warned in
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7393 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7394 ac_tool_warned=yes ;;
7399 OTOOL="$ac_cv_prog_OTOOL"
7402 if test -n "$ac_tool_prefix"; then
7403 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
7404 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7406 $as_echo_n "checking
for $ac_word...
" >&6; }
7407 if ${ac_cv_prog_OTOOL64+:} false; then :
7408 $as_echo_n "(cached
) " >&6
7410 if test -n "$OTOOL64"; then
7411 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7417 test -z "$as_dir" && as_dir=.
7418 for ac_exec_ext in '' $ac_executable_extensions; do
7419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7420 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
7421 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7430 OTOOL64=$ac_cv_prog_OTOOL64
7431 if test -n "$OTOOL64"; then
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
7433 $as_echo "$OTOOL64" >&6; }
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7436 $as_echo "no
" >&6; }
7441 if test -z "$ac_cv_prog_OTOOL64"; then
7442 ac_ct_OTOOL64=$OTOOL64
7443 # Extract the first word of "otool64
", so it can be a program name with args.
7444 set dummy otool64; ac_word=$2
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7446 $as_echo_n "checking
for $ac_word...
" >&6; }
7447 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7448 $as_echo_n "(cached
) " >&6
7450 if test -n "$ac_ct_OTOOL64"; then
7451 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7457 test -z "$as_dir" && as_dir=.
7458 for ac_exec_ext in '' $ac_executable_extensions; do
7459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7460 ac_cv_prog_ac_ct_OTOOL64="otool64
"
7461 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7470 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7471 if test -n "$ac_ct_OTOOL64"; then
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
7473 $as_echo "$ac_ct_OTOOL64" >&6; }
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7476 $as_echo "no
" >&6; }
7479 if test "x
$ac_ct_OTOOL64" = x; then
7482 case $cross_compiling:$ac_tool_warned in
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7485 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7486 ac_tool_warned=yes ;;
7488 OTOOL64=$ac_ct_OTOOL64
7491 OTOOL64="$ac_cv_prog_OTOOL64"
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
7521 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
7522 if ${lt_cv_apple_cc_single_mod+:} false; then :
7523 $as_echo_n "(cached
) " >&6
7525 lt_cv_apple_cc_single_mod=no
7526 if test -z "${LT_MULTI_MODULE}"; then
7527 # By default we will add the -single_module flag. You can override
7528 # by either setting the environment variable LT_MULTI_MODULE
7529 # non-empty at configure time, or by adding -multi_module to the
7531 rm -rf libconftest.dylib*
7532 echo "int foo
(void
){return 1;}" > conftest.c
7533 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7534 -dynamiclib -Wl,-single_module conftest.c
" >&5
7535 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7536 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7538 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7539 lt_cv_apple_cc_single_mod=yes
7541 cat conftest.err >&5
7543 rm -rf libconftest.dylib*
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
7548 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
7550 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
7551 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7552 $as_echo_n "(cached
) " >&6
7554 lt_cv_ld_exported_symbols_list=no
7555 save_LDFLAGS=$LDFLAGS
7556 echo "_main
" > conftest.sym
7557 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
7558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7559 /* end confdefs.h. */
7569 if ac_fn_c_try_link "$LINENO"; then :
7570 lt_cv_ld_exported_symbols_list=yes
7572 lt_cv_ld_exported_symbols_list=no
7574 rm -f core conftest.err conftest.$ac_objext \
7575 conftest$ac_exeext conftest.$ac_ext
7576 LDFLAGS="$save_LDFLAGS"
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
7580 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
7582 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
7583 if ${lt_cv_ld_force_load+:} false; then :
7584 $as_echo_n "(cached
) " >&6
7586 lt_cv_ld_force_load=no
7587 cat > conftest.c << _LT_EOF
7588 int forced_loaded() { return 2;}
7590 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
7591 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7592 echo "$AR cru libconftest.a conftest.o
" >&5
7593 $AR cru libconftest.a conftest.o 2>&5
7594 cat > conftest.c << _LT_EOF
7595 int main() { return 0;}
7597 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
7598 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7600 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7601 lt_cv_ld_force_load=yes
7603 cat conftest.err >&5
7605 rm -f conftest.err libconftest.a conftest conftest.c
7606 rm -rf conftest.dSYM
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
7610 $as_echo "$lt_cv_ld_force_load" >&6; }
7612 rhapsody* | darwin1.[012])
7613 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7615 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7616 darwin*) # darwin 5.x on
7617 # if running on 10.5 or later, the deployment target defaults
7618 # to the OS version, if on x86, and 10.4, the deployment
7619 # target defaults to 10.4. Don't you love it?
7620 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7621 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7622 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7624 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7626 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7630 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7631 _lt_dar_single_mod='$single_module'
7633 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7634 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7636 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7638 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
7639 _lt_dsymutil='~$DSYMUTIL $lib || :'
7647 ac_cpp='$CPP $CPPFLAGS'
7648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
7652 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
7653 # On Suns, sometimes $CPP names a directory.
7654 if test -n "$CPP" && test -d "$CPP"; then
7657 if test -z "$CPP"; then
7658 if ${ac_cv_prog_CPP+:} false; then :
7659 $as_echo_n "(cached
) " >&6
7661 # Double quotes because CPP needs to be expanded
7662 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
7665 for ac_c_preproc_warn_flag in '' yes
7667 # Use a header file that comes with gcc, so configuring glibc
7668 # with a fresh cross-compiler works.
7669 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7670 # <limits.h> exists even on freestanding compilers.
7671 # On the NeXT, cc -E runs the code through the compiler's parser,
7672 # not just through cpp. "Syntax error
" is here to catch this case.
7673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7674 /* end confdefs.h. */
7676 # include <limits.h>
7678 # include <assert.h>
7682 if ac_fn_c_try_cpp "$LINENO"; then :
7685 # Broken: fails on valid input.
7688 rm -f conftest.err conftest.i conftest.$ac_ext
7690 # OK, works on sane cases. Now check whether nonexistent headers
7691 # can be detected and how.
7692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7693 /* end confdefs.h. */
7694 #include <ac_nonexistent.h>
7696 if ac_fn_c_try_cpp "$LINENO"; then :
7697 # Broken: success on invalid input.
7700 # Passes both tests.
7704 rm -f conftest.err conftest.i conftest.$ac_ext
7707 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7708 rm -f conftest.i conftest.err conftest.$ac_ext
7709 if $ac_preproc_ok; then :
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
7722 $as_echo "$CPP" >&6; }
7724 for ac_c_preproc_warn_flag in '' yes
7726 # Use a header file that comes with gcc, so configuring glibc
7727 # with a fresh cross-compiler works.
7728 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7729 # <limits.h> exists even on freestanding compilers.
7730 # On the NeXT, cc -E runs the code through the compiler's parser,
7731 # not just through cpp. "Syntax error
" is here to catch this case.
7732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7733 /* end confdefs.h. */
7735 # include <limits.h>
7737 # include <assert.h>
7741 if ac_fn_c_try_cpp "$LINENO"; then :
7744 # Broken: fails on valid input.
7747 rm -f conftest.err conftest.i conftest.$ac_ext
7749 # OK, works on sane cases. Now check whether nonexistent headers
7750 # can be detected and how.
7751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7752 /* end confdefs.h. */
7753 #include <ac_nonexistent.h>
7755 if ac_fn_c_try_cpp "$LINENO"; then :
7756 # Broken: success on invalid input.
7759 # Passes both tests.
7763 rm -f conftest.err conftest.i conftest.$ac_ext
7766 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7767 rm -f conftest.i conftest.err conftest.$ac_ext
7768 if $ac_preproc_ok; then :
7771 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
7772 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7773 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7774 See \`config.log' for more details
" "$LINENO" 5; }
7778 ac_cpp='$CPP $CPPFLAGS'
7779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
7785 $as_echo_n "checking
for ANSI C header files...
" >&6; }
7786 if ${ac_cv_header_stdc+:} false; then :
7787 $as_echo_n "(cached
) " >&6
7789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7790 /* end confdefs.h. */
7804 if ac_fn_c_try_compile "$LINENO"; then :
7805 ac_cv_header_stdc=yes
7807 ac_cv_header_stdc=no
7809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7811 if test $ac_cv_header_stdc = yes; then
7812 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7814 /* end confdefs.h. */
7818 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7819 $EGREP "memchr
" >/dev/null 2>&1; then :
7822 ac_cv_header_stdc=no
7828 if test $ac_cv_header_stdc = yes; then
7829 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7831 /* end confdefs.h. */
7835 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7836 $EGREP "free
" >/dev/null 2>&1; then :
7839 ac_cv_header_stdc=no
7845 if test $ac_cv_header_stdc = yes; then
7846 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7847 if test "$cross_compiling" = yes; then :
7850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7851 /* end confdefs.h. */
7854 #if ((' ' & 0x0FF) == 0x020)
7855 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7856 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7858 # define ISLOWER(c) \
7859 (('a' <= (c) && (c) <= 'i') \
7860 || ('j' <= (c) && (c) <= 'r') \
7861 || ('s' <= (c) && (c) <= 'z'))
7862 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7865 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7870 for (i = 0; i < 256; i++)
7871 if (XOR (islower (i), ISLOWER (i))
7872 || toupper (i) != TOUPPER (i))
7877 if ac_fn_c_try_run "$LINENO"; then :
7880 ac_cv_header_stdc=no
7882 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7883 conftest.$ac_objext conftest.beam conftest.$ac_ext
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
7889 $as_echo "$ac_cv_header_stdc" >&6; }
7890 if test $ac_cv_header_stdc = yes; then
7892 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7896 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7897 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
7898 inttypes.h stdint.h unistd.h
7900 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7901 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7903 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7904 cat >>confdefs.h
<<_ACEOF
7905 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7913 for ac_header
in dlfcn.h
7915 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7917 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
7918 cat >>confdefs.h
<<_ACEOF
7919 #define HAVE_DLFCN_H 1
7926 if test -n "$ac_tool_prefix"; then
7927 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7928 set dummy
${ac_tool_prefix}gccgo
; ac_word
=$2
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7930 $as_echo_n "checking for $ac_word... " >&6; }
7931 if ${ac_cv_prog_GOC+:} false
; then :
7932 $as_echo_n "(cached) " >&6
7934 if test -n "$GOC"; then
7935 ac_cv_prog_GOC
="$GOC" # Let the user override the test.
7937 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7941 test -z "$as_dir" && as_dir
=.
7942 for ac_exec_ext
in '' $ac_executable_extensions; do
7943 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7944 ac_cv_prog_GOC
="${ac_tool_prefix}gccgo"
7945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7955 if test -n "$GOC"; then
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7957 $as_echo "$GOC" >&6; }
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7960 $as_echo "no" >&6; }
7965 if test -z "$ac_cv_prog_GOC"; then
7967 # Extract the first word of "gccgo", so it can be a program name with args.
7968 set dummy gccgo
; ac_word
=$2
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7970 $as_echo_n "checking for $ac_word... " >&6; }
7971 if ${ac_cv_prog_ac_ct_GOC+:} false
; then :
7972 $as_echo_n "(cached) " >&6
7974 if test -n "$ac_ct_GOC"; then
7975 ac_cv_prog_ac_ct_GOC
="$ac_ct_GOC" # Let the user override the test.
7977 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7981 test -z "$as_dir" && as_dir
=.
7982 for ac_exec_ext
in '' $ac_executable_extensions; do
7983 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7984 ac_cv_prog_ac_ct_GOC
="gccgo"
7985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7994 ac_ct_GOC
=$ac_cv_prog_ac_ct_GOC
7995 if test -n "$ac_ct_GOC"; then
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7997 $as_echo "$ac_ct_GOC" >&6; }
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8000 $as_echo "no" >&6; }
8003 if test "x$ac_ct_GOC" = x
; then
8006 case $cross_compiling:$ac_tool_warned in
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8009 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8010 ac_tool_warned
=yes ;;
8015 GOC
="$ac_cv_prog_GOC"
8031 # Check whether --enable-shared was given.
8032 if test "${enable_shared+set}" = set; then :
8033 enableval
=$enable_shared; p
=${PACKAGE-default}
8035 yes) enable_shared
=yes ;;
8036 no
) enable_shared
=no
;;
8039 # Look at the argument we got. We use all the common list separators.
8040 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8041 for pkg
in $enableval; do
8043 if test "X$pkg" = "X$p"; then
8062 # Check whether --enable-static was given.
8063 if test "${enable_static+set}" = set; then :
8064 enableval
=$enable_static; p
=${PACKAGE-default}
8066 yes) enable_static
=yes ;;
8067 no
) enable_static
=no
;;
8070 # Look at the argument we got. We use all the common list separators.
8071 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8072 for pkg
in $enableval; do
8074 if test "X$pkg" = "X$p"; then
8094 # Check whether --with-pic was given.
8095 if test "${with_pic+set}" = set; then :
8096 withval
=$with_pic; pic_mode
="$withval"
8102 test -z "$pic_mode" && pic_mode
=default
8110 # Check whether --enable-fast-install was given.
8111 if test "${enable_fast_install+set}" = set; then :
8112 enableval
=$enable_fast_install; p
=${PACKAGE-default}
8114 yes) enable_fast_install
=yes ;;
8115 no
) enable_fast_install
=no
;;
8117 enable_fast_install
=no
8118 # Look at the argument we got. We use all the common list separators.
8119 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8120 for pkg
in $enableval; do
8122 if test "X$pkg" = "X$p"; then
8123 enable_fast_install
=yes
8130 enable_fast_install
=yes
8143 # This can be used to rebuild libtool when needed
8144 LIBTOOL_DEPS
="$ltmain"
8146 # Always use our own libtool.
8147 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
8174 test -z "$LN_S" && LN_S
="ln -s"
8189 if test -n "${ZSH_VERSION+set}" ; then
8190 setopt NO_GLOB_SUBST
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8194 $as_echo_n "checking for objdir... " >&6; }
8195 if ${lt_cv_objdir+:} false
; then :
8196 $as_echo_n "(cached) " >&6
8198 rm -f .libs
2>/dev
/null
8199 mkdir .libs
2>/dev
/null
8200 if test -d .libs
; then
8203 # MS-DOS does not allow filenames that begin with a dot.
8206 rmdir .libs
2>/dev
/null
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8209 $as_echo "$lt_cv_objdir" >&6; }
8210 objdir
=$lt_cv_objdir
8216 cat >>confdefs.h
<<_ACEOF
8217 #define LT_OBJDIR "$lt_cv_objdir/"
8225 # AIX sometimes has problems with the GCC collect2 program. For some
8226 # reason, if we set the COLLECT_NAMES environment variable, the problems
8227 # vanish in a puff of smoke.
8228 if test "X${COLLECT_NAMES+set}" != Xset
; then
8230 export COLLECT_NAMES
8237 can_build_shared
=yes
8239 # All known linkers require a `.a' archive for static linking (except MSVC,
8240 # which needs '.lib').
8243 with_gnu_ld
="$lt_cv_prog_gnu_ld"
8246 old_CFLAGS
="$CFLAGS"
8248 # Set sane defaults for various variables
8249 test -z "$CC" && CC
=cc
8250 test -z "$LTCC" && LTCC
=$CC
8251 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
8252 test -z "$LD" && LD
=ld
8253 test -z "$ac_objext" && ac_objext
=o
8255 for cc_temp
in $compiler""; do
8257 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
8258 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
8263 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8266 # Only perform the check for file, if the check method requires it
8267 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
8268 case $deplibs_check_method in
8270 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8272 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8273 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8274 $as_echo_n "(cached) " >&6
8278 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8281 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8282 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8283 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8284 for ac_dir
in $ac_dummy; do
8286 test -z "$ac_dir" && ac_dir
=.
8287 if test -f $ac_dir/${ac_tool_prefix}file; then
8288 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
8289 if test -n "$file_magic_test_file"; then
8290 case $deplibs_check_method in
8292 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8293 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8294 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8295 $EGREP "$file_magic_regex" > /dev
/null
; then
8300 *** Warning: the command libtool uses to detect shared libraries,
8301 *** $file_magic_cmd, produces output that libtool cannot recognize.
8302 *** The result is that libtool may fail to recognize shared libraries
8303 *** as such. This will affect the creation of libtool libraries that
8304 *** depend on shared libraries, but programs linked with such libtool
8305 *** libraries will work regardless of this problem. Nevertheless, you
8306 *** may want to report the problem to your system manager and/or to
8307 *** bug-libtool@gnu.org
8317 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8322 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8323 if test -n "$MAGIC_CMD"; then
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8325 $as_echo "$MAGIC_CMD" >&6; }
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8328 $as_echo "no" >&6; }
8335 if test -z "$lt_cv_path_MAGIC_CMD"; then
8336 if test -n "$ac_tool_prefix"; then
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8338 $as_echo_n "checking for file... " >&6; }
8339 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8340 $as_echo_n "(cached) " >&6
8344 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8347 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8348 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8349 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8350 for ac_dir
in $ac_dummy; do
8352 test -z "$ac_dir" && ac_dir
=.
8353 if test -f $ac_dir/file; then
8354 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
8355 if test -n "$file_magic_test_file"; then
8356 case $deplibs_check_method in
8358 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8359 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8360 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8361 $EGREP "$file_magic_regex" > /dev
/null
; then
8366 *** Warning: the command libtool uses to detect shared libraries,
8367 *** $file_magic_cmd, produces output that libtool cannot recognize.
8368 *** The result is that libtool may fail to recognize shared libraries
8369 *** as such. This will affect the creation of libtool libraries that
8370 *** depend on shared libraries, but programs linked with such libtool
8371 *** libraries will work regardless of this problem. Nevertheless, you
8372 *** may want to report the problem to your system manager and/or to
8373 *** bug-libtool@gnu.org
8383 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8388 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8389 if test -n "$MAGIC_CMD"; then
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8391 $as_echo "$MAGIC_CMD" >&6; }
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8394 $as_echo "no" >&6; }
8407 # Use C for the default configuration in the libtool script
8411 ac_cpp
='$CPP $CPPFLAGS'
8412 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8413 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8414 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8417 # Source file extension for C test sources.
8420 # Object file extension for compiled C test sources.
8424 # Code to be used in simple compile tests
8425 lt_simple_compile_test_code
="int some_variable = 0;"
8427 # Code to be used in simple link tests
8428 lt_simple_link_test_code
='int main(){return(0);}'
8436 # If no C compiler was specified, use CC.
8439 # If no C compiler flags were specified, use CFLAGS.
8440 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
8442 # Allow CC to be a program name with arguments.
8445 # Save the default compiler, since it gets overwritten when the other
8446 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8447 compiler_DEFAULT
=$CC
8449 # save warnings/boilerplate of simple test code
8450 ac_outfile
=conftest.
$ac_objext
8451 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
8452 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8453 _lt_compiler_boilerplate
=`cat conftest.err`
8456 ac_outfile
=conftest.
$ac_objext
8457 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
8458 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8459 _lt_linker_boilerplate
=`cat conftest.err`
8464 ## There is no encapsulation within the following macros, do not change
8465 ## the running order or otherwise move them around unless you know exactly
8466 ## what you are doing...
8467 if test -n "$compiler"; then
8469 lt_prog_compiler_no_builtin_flag
=
8471 if test "$GCC" = yes; then
8472 case $cc_basename in
8474 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
8476 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8480 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8481 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
8482 $as_echo_n "(cached) " >&6
8484 lt_cv_prog_compiler_rtti_exceptions
=no
8485 ac_outfile
=conftest.
$ac_objext
8486 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8487 lt_compiler_flag
="-fno-rtti -fno-exceptions"
8488 # Insert the option either (1) after the last *FLAGS variable, or
8489 # (2) before a word containing "conftest.", or (3) at the end.
8490 # Note that $ac_compile itself does not contain backslashes and begins
8491 # with a dollar sign (not a hyphen), so the echo should work correctly.
8492 # The option is referenced via a variable to avoid confusing sed.
8493 lt_compile
=`echo "$ac_compile" | $SED \
8494 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8495 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8496 -e 's:$: $lt_compiler_flag:'`
8497 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8498 (eval "$lt_compile" 2>conftest.err
)
8500 cat conftest.err
>&5
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 if (exit $ac_status) && test -s "$ac_outfile"; then
8503 # The compiler can only warn and ignore the option if not recognized
8504 # So say no if there are warnings other than the usual output.
8505 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8506 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8507 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8508 lt_cv_prog_compiler_rtti_exceptions
=yes
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8515 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8517 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
8518 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8530 lt_prog_compiler_wl
=
8531 lt_prog_compiler_pic
=
8532 lt_prog_compiler_static
=
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8535 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8537 if test "$GCC" = yes; then
8538 lt_prog_compiler_wl
='-Wl,'
8539 lt_prog_compiler_static
='-static'
8543 # All AIX code is PIC.
8544 if test "$host_cpu" = ia64
; then
8545 # AIX 5 now supports IA64 processor
8546 lt_prog_compiler_static
='-Bstatic'
8548 lt_prog_compiler_pic
='-fPIC'
8554 # see comment about AmigaOS4 .so support
8555 lt_prog_compiler_pic
='-fPIC'
8558 # FIXME: we need at least 68020 code to build shared libraries, but
8559 # adding the `-m68020' flag to GCC prevents building anything better,
8561 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
8566 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
8567 # PIC is the default for these OSes.
8570 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8571 # This hack is so that the source file can tell whether it is being
8572 # built for inclusion in a dll (and should export symbols for example).
8573 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8574 # (--disable-auto-import) libraries
8575 lt_prog_compiler_pic
='-DDLL_EXPORT'
8578 darwin
* | rhapsody
*)
8579 # PIC is the default on this platform
8580 # Common symbols not allowed in MH_DYLIB files
8581 lt_prog_compiler_pic
='-fno-common'
8585 # PIC is the default for Haiku.
8586 # The "-static" flag exists, but is broken.
8587 lt_prog_compiler_static
=
8591 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8592 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8593 # sets the default TLS model and affects inlining.
8599 lt_prog_compiler_pic
='-fPIC'
8605 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8606 # Instead, we relocate shared libraries at runtime.
8610 # Just because we use GCC doesn't mean we suddenly get shared libraries
8611 # on systems that don't support them.
8612 lt_prog_compiler_can_build_shared
=no
8617 # QNX uses GNU C++, but need to define -shared option too, otherwise
8619 lt_prog_compiler_pic
='-fPIC -shared'
8623 if test -d /usr
/nec
; then
8624 lt_prog_compiler_pic
=-Kconform_pic
8629 lt_prog_compiler_pic
='-fPIC'
8633 case $cc_basename in
8634 nvcc
*) # Cuda Compiler Driver 2.2
8635 lt_prog_compiler_wl
='-Xlinker '
8636 lt_prog_compiler_pic
='-Xcompiler -fPIC'
8640 # PORTME Check for flag to pass linker flags through the system compiler.
8643 lt_prog_compiler_wl
='-Wl,'
8644 if test "$host_cpu" = ia64
; then
8645 # AIX 5 now supports IA64 processor
8646 lt_prog_compiler_static
='-Bstatic'
8648 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8652 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8653 # This hack is so that the source file can tell whether it is being
8654 # built for inclusion in a dll (and should export symbols for example).
8655 lt_prog_compiler_pic
='-DDLL_EXPORT'
8658 hpux9
* | hpux10
* | hpux11
*)
8659 lt_prog_compiler_wl
='-Wl,'
8660 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8667 lt_prog_compiler_pic
='+Z'
8670 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8671 lt_prog_compiler_static
='${wl}-a ${wl}archive'
8674 irix5
* | irix6
* | nonstopux
*)
8675 lt_prog_compiler_wl
='-Wl,'
8676 # PIC (with -KPIC) is the default.
8677 lt_prog_compiler_static
='-non_shared'
8680 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
8681 case $cc_basename in
8682 # old Intel for x86_64 which still supported -KPIC.
8684 lt_prog_compiler_wl
='-Wl,'
8685 lt_prog_compiler_pic
='-KPIC'
8686 lt_prog_compiler_static
='-static'
8688 # icc used to be incompatible with GCC.
8689 # ICC 10 doesn't accept -KPIC any more.
8691 lt_prog_compiler_wl
='-Wl,'
8692 lt_prog_compiler_pic
='-fPIC'
8693 lt_prog_compiler_static
='-static'
8695 # Lahey Fortran 8.1.
8697 lt_prog_compiler_wl
='-Wl,'
8698 lt_prog_compiler_pic
='--shared'
8699 lt_prog_compiler_static
='--static'
8701 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8702 # Portland Group compilers (*not* the Pentium gcc compiler,
8703 # which looks to be a dead project)
8704 lt_prog_compiler_wl
='-Wl,'
8705 lt_prog_compiler_pic
='-fpic'
8706 lt_prog_compiler_static
='-Bstatic'
8709 lt_prog_compiler_wl
='-Wl,'
8710 # All Alpha code is PIC.
8711 lt_prog_compiler_static
='-non_shared'
8713 xl
* | bgxl
* | bgf
* | mpixl
*)
8714 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8715 lt_prog_compiler_wl
='-Wl,'
8716 lt_prog_compiler_pic
='-qpic'
8717 lt_prog_compiler_static
='-qstaticlink'
8720 case `$CC -V 2>&1 | sed 5q` in
8721 *Sun\ F
* |
*Sun
*Fortran
*)
8722 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8723 lt_prog_compiler_pic
='-KPIC'
8724 lt_prog_compiler_static
='-Bstatic'
8725 lt_prog_compiler_wl
=''
8729 lt_prog_compiler_pic
='-KPIC'
8730 lt_prog_compiler_static
='-Bstatic'
8731 lt_prog_compiler_wl
='-Wl,'
8739 lt_prog_compiler_pic
='-KPIC'
8740 lt_prog_compiler_static
='-Bstatic'
8744 # QNX uses GNU C++, but need to define -shared option too, otherwise
8746 lt_prog_compiler_pic
='-fPIC -shared'
8749 osf3
* | osf4
* | osf5
*)
8750 lt_prog_compiler_wl
='-Wl,'
8751 # All OSF/1 code is PIC.
8752 lt_prog_compiler_static
='-non_shared'
8756 lt_prog_compiler_static
='-non_shared'
8760 lt_prog_compiler_pic
='-KPIC'
8761 lt_prog_compiler_static
='-Bstatic'
8762 case $cc_basename in
8764 lt_prog_compiler_wl
='-Qoption ld ';;
8766 lt_prog_compiler_wl
='-Wl,';;
8771 lt_prog_compiler_wl
='-Qoption ld '
8772 lt_prog_compiler_pic
='-PIC'
8773 lt_prog_compiler_static
='-Bstatic'
8776 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8777 lt_prog_compiler_wl
='-Wl,'
8778 lt_prog_compiler_pic
='-KPIC'
8779 lt_prog_compiler_static
='-Bstatic'
8783 if test -d /usr
/nec
;then
8784 lt_prog_compiler_pic
='-Kconform_pic'
8785 lt_prog_compiler_static
='-Bstatic'
8789 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8790 lt_prog_compiler_wl
='-Wl,'
8791 lt_prog_compiler_pic
='-KPIC'
8792 lt_prog_compiler_static
='-Bstatic'
8796 lt_prog_compiler_wl
='-Wl,'
8797 lt_prog_compiler_can_build_shared
=no
8801 lt_prog_compiler_pic
='-pic'
8802 lt_prog_compiler_static
='-Bstatic'
8806 lt_prog_compiler_can_build_shared
=no
8812 # For platforms which do not support PIC, -DPIC is meaningless:
8814 lt_prog_compiler_pic
=
8817 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8821 $as_echo "$lt_prog_compiler_pic" >&6; }
8829 # Check to make sure the PIC flag actually works.
8831 if test -n "$lt_prog_compiler_pic"; then
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8833 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8834 if ${lt_cv_prog_compiler_pic_works+:} false
; then :
8835 $as_echo_n "(cached) " >&6
8837 lt_cv_prog_compiler_pic_works
=no
8838 ac_outfile
=conftest.
$ac_objext
8839 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8840 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
8841 # Insert the option either (1) after the last *FLAGS variable, or
8842 # (2) before a word containing "conftest.", or (3) at the end.
8843 # Note that $ac_compile itself does not contain backslashes and begins
8844 # with a dollar sign (not a hyphen), so the echo should work correctly.
8845 # The option is referenced via a variable to avoid confusing sed.
8846 lt_compile
=`echo "$ac_compile" | $SED \
8847 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8848 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8849 -e 's:$: $lt_compiler_flag:'`
8850 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8851 (eval "$lt_compile" 2>conftest.err
)
8853 cat conftest.err
>&5
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 if (exit $ac_status) && test -s "$ac_outfile"; then
8856 # The compiler can only warn and ignore the option if not recognized
8857 # So say no if there are warnings other than the usual output.
8858 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8859 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8860 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8861 lt_cv_prog_compiler_pic_works
=yes
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8868 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8870 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
8871 case $lt_prog_compiler_pic in
8873 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8876 lt_prog_compiler_pic
=
8877 lt_prog_compiler_can_build_shared
=no
8888 # Check to make sure the static flag actually works.
8890 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8892 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8893 if ${lt_cv_prog_compiler_static_works+:} false
; then :
8894 $as_echo_n "(cached) " >&6
8896 lt_cv_prog_compiler_static_works
=no
8897 save_LDFLAGS
="$LDFLAGS"
8898 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
8899 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
8900 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
8901 # The linker can only warn and ignore the option if not recognized
8902 # So say no if there are warnings
8903 if test -s conftest.err
; then
8904 # Append any errors to the config.log.
8905 cat conftest.err
1>&5
8906 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
8907 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8908 if diff conftest.exp conftest.er2
>/dev
/null
; then
8909 lt_cv_prog_compiler_static_works
=yes
8912 lt_cv_prog_compiler_static_works
=yes
8916 LDFLAGS
="$save_LDFLAGS"
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8920 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8922 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
8925 lt_prog_compiler_static
=
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8935 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8936 if ${lt_cv_prog_compiler_c_o+:} false
; then :
8937 $as_echo_n "(cached) " >&6
8939 lt_cv_prog_compiler_c_o
=no
8940 $RM -r conftest
2>/dev
/null
8944 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8946 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8947 # Insert the option either (1) after the last *FLAGS variable, or
8948 # (2) before a word containing "conftest.", or (3) at the end.
8949 # Note that $ac_compile itself does not contain backslashes and begins
8950 # with a dollar sign (not a hyphen), so the echo should work correctly.
8951 lt_compile
=`echo "$ac_compile" | $SED \
8952 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8953 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8954 -e 's:$: $lt_compiler_flag:'`
8955 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8956 (eval "$lt_compile" 2>out
/conftest.err
)
8958 cat out
/conftest.err
>&5
8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8962 # The compiler can only warn and ignore the option if not recognized
8963 # So say no if there are warnings
8964 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8965 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8966 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8967 lt_cv_prog_compiler_c_o
=yes
8972 # SGI C++ compiler will create directory out/ii_files/ for
8973 # template instantiation
8974 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8975 $RM out
/* && rmdir out
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8982 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8990 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8991 if ${lt_cv_prog_compiler_c_o+:} false
; then :
8992 $as_echo_n "(cached) " >&6
8994 lt_cv_prog_compiler_c_o
=no
8995 $RM -r conftest
2>/dev
/null
8999 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9001 lt_compiler_flag
="-o out/conftest2.$ac_objext"
9002 # Insert the option either (1) after the last *FLAGS variable, or
9003 # (2) before a word containing "conftest.", or (3) at the end.
9004 # Note that $ac_compile itself does not contain backslashes and begins
9005 # with a dollar sign (not a hyphen), so the echo should work correctly.
9006 lt_compile
=`echo "$ac_compile" | $SED \
9007 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9008 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9009 -e 's:$: $lt_compiler_flag:'`
9010 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9011 (eval "$lt_compile" 2>out
/conftest.err
)
9013 cat out
/conftest.err
>&5
9014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
9017 # The compiler can only warn and ignore the option if not recognized
9018 # So say no if there are warnings
9019 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
9020 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
9021 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
9022 lt_cv_prog_compiler_c_o
=yes
9027 # SGI C++ compiler will create directory out/ii_files/ for
9028 # template instantiation
9029 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
9030 $RM out
/* && rmdir out
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9037 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9042 hard_links
="nottested"
9043 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
9044 # do not overwrite the value of need_locks provided by the user
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9046 $as_echo_n "checking if we can lock with hard links... " >&6; }
9049 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
9051 ln conftest.a conftest.b
2>&5 || hard_links
=no
9052 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9054 $as_echo "$hard_links" >&6; }
9055 if test "$hard_links" = no
; then
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9057 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9070 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9073 allow_undefined_flag
=
9074 always_export_symbols
=no
9076 archive_expsym_cmds
=
9077 compiler_needs_object
=no
9078 enable_shared_with_static_runtimes
=no
9079 export_dynamic_flag_spec
=
9080 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9081 hardcode_automatic
=no
9083 hardcode_direct_absolute
=no
9084 hardcode_libdir_flag_spec
=
9085 hardcode_libdir_flag_spec_ld
=
9086 hardcode_libdir_separator
=
9088 hardcode_shlibpath_var
=unsupported
9090 link_all_deplibs
=unknown
9093 old_archive_from_new_cmds
=
9094 old_archive_from_expsyms_cmds
=
9095 thread_safe_flag_spec
=
9096 whole_archive_flag_spec
=
9097 # include_expsyms should be a list of space-separated symbols to be *always*
9098 # included in the symbol list
9100 # exclude_expsyms can be an extended regexp of symbols to exclude
9101 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9102 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9103 # as well as any symbol that contains `d'.
9104 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9105 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9106 # platforms (ab)use it in PIC code, but their linkers get confused if
9107 # the symbol is explicitly referenced. Since portable code cannot
9108 # rely on this symbol name, it's probably fine to never include it in
9109 # preloaded symbol tables.
9110 # Exclude shared library initialization/finalization symbols.
9111 extract_expsyms_cmds
=
9114 cygwin
* | mingw
* | pw32
* | cegcc
*)
9115 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9116 # When not using gcc, we currently assume that we are using
9117 # Microsoft Visual C++.
9118 if test "$GCC" != yes; then
9123 # we just hope/assume this is gcc and not c89 (= MSVC++)
9133 # On some targets, GNU ld is compatible enough with the native linker
9134 # that we're better off using the native interface for both.
9135 lt_use_gnu_ld_interface
=no
9136 if test "$with_gnu_ld" = yes; then
9139 # The AIX port of GNU ld has always aspired to compatibility
9140 # with the native linker. However, as the warning in the GNU ld
9141 # block says, versions before 2.19.5* couldn't really create working
9142 # shared libraries, regardless of the interface used.
9143 case `$LD -v 2>&1` in
9144 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
9145 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
9146 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
9148 lt_use_gnu_ld_interface
=yes
9153 lt_use_gnu_ld_interface
=yes
9158 if test "$lt_use_gnu_ld_interface" = yes; then
9159 # If archive_cmds runs LD, not CC, wlarc should be empty
9162 # Set some defaults for GNU ld with shared library support. These
9163 # are reset later if shared libraries are not supported. Putting them
9164 # here allows them to be overridden if necessary.
9165 runpath_var
=LD_RUN_PATH
9166 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9167 export_dynamic_flag_spec
='${wl}--export-dynamic'
9168 # ancient GNU ld didn't support --whole-archive et. al.
9169 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
9170 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9172 whole_archive_flag_spec
=
9174 supports_anon_versioning
=no
9175 case `$LD -v 2>&1` in
9176 *GNU\ gold
*) supports_anon_versioning
=yes ;;
9177 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
9178 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
9179 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
9180 *\
2.11.
*) ;; # other 2.11 versions
9181 *) supports_anon_versioning
=yes ;;
9184 # See if GNU ld supports shared libraries.
9187 # On AIX/PPC, the GNU linker is very broken
9188 if test "$host_cpu" != ia64
; then
9192 *** Warning: the GNU linker, at least up to release 2.19, is reported
9193 *** to be unable to reliably create shared libraries on AIX.
9194 *** Therefore, libtool is disabling shared libraries support. If you
9195 *** really care for shared libraries, you may want to install binutils
9196 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9197 *** You will then need to restart the configuration process.
9206 # see comment about AmigaOS4 .so support
9207 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9208 archive_expsym_cmds
=''
9211 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)'
9212 hardcode_libdir_flag_spec
='-L$libdir'
9213 hardcode_minus_L
=yes
9219 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9220 allow_undefined_flag
=unsupported
9221 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9222 # support --undefined. This deserves some investigation. FIXME
9223 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9229 cygwin
* | mingw
* | pw32
* | cegcc
*)
9230 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9231 # as there is no search path for DLLs.
9232 hardcode_libdir_flag_spec
='-L$libdir'
9233 export_dynamic_flag_spec
='${wl}--export-all-symbols'
9234 allow_undefined_flag
=unsupported
9235 always_export_symbols
=no
9236 enable_shared_with_static_runtimes
=yes
9237 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9239 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
9240 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9241 # If the export-symbols file already is a .def file (1st line
9242 # is EXPORTS), use it as is; otherwise, prepend...
9243 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9244 cp $export_symbols $output_objdir/$soname.def;
9246 echo EXPORTS > $output_objdir/$soname.def;
9247 cat $export_symbols >> $output_objdir/$soname.def;
9249 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9256 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9257 link_all_deplibs
=yes
9262 hardcode_shlibpath_var
=no
9263 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9264 export_dynamic_flag_spec
='${wl}-E'
9265 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9266 # Instead, shared libraries are loaded at an image base (0x10000000 by
9267 # default) and relocated if they conflict, which is a slow very memory
9268 # consuming and fragmenting process. To avoid this, we pick a random,
9269 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9270 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9271 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9272 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'
9275 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
9277 if test "$host_os" = linux-dietlibc
; then
9278 case $cc_basename in
9279 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9282 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
9283 && test "$tmp_diet" = no
9286 tmp_sharedflag
='-shared'
9287 case $cc_basename,$host_cpu in
9288 pgcc
*) # Portland Group C compiler
9289 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'
9290 tmp_addflag
=' $pic_flag'
9292 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9293 # Portland Group f77 and f90 compilers
9294 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'
9295 tmp_addflag
=' $pic_flag -Mnomain' ;;
9296 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9297 tmp_addflag
=' -i_dynamic' ;;
9298 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9299 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9300 ifc
* | ifort
*) # Intel Fortran compiler
9301 tmp_addflag
=' -nofor_main' ;;
9302 lf95
*) # Lahey Fortran 8.1
9303 whole_archive_flag_spec
=
9304 tmp_sharedflag
='--shared' ;;
9305 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9306 tmp_sharedflag
='-qmkshrobj'
9308 nvcc
*) # Cuda Compiler Driver 2.2
9309 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'
9310 compiler_needs_object
=yes
9313 case `$CC -V 2>&1 | sed 5q` in
9314 *Sun\ C
*) # Sun C 5.9
9315 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'
9316 compiler_needs_object
=yes
9317 tmp_sharedflag
='-G' ;;
9318 *Sun\ F
*) # Sun Fortran 8.3
9319 tmp_sharedflag
='-G' ;;
9321 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9323 if test "x$supports_anon_versioning" = xyes
; then
9324 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9325 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9326 echo "local: *; };" >> $output_objdir/$libname.ver~
9327 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9330 case $cc_basename in
9331 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
9332 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9333 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9334 hardcode_libdir_flag_spec
=
9335 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
9336 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9337 if test "x$supports_anon_versioning" = xyes
; then
9338 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9339 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9340 echo "local: *; };" >> $output_objdir/$libname.ver~
9341 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9351 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9352 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9355 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9356 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9361 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9365 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9366 *** create shared libraries on Solaris systems. Therefore, libtool
9367 *** is disabling shared libraries support. We urge you to upgrade GNU
9368 *** binutils to release 2.9.1 or newer. Another option is to modify
9369 *** your PATH or compiler configuration so that the native linker is
9370 *** used, and then restart.
9373 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9374 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9375 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9381 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9382 case `$LD -v 2>&1` in
9383 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9387 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9388 *** reliably create shared libraries on SCO systems. Therefore, libtool
9389 *** is disabling shared libraries support. We urge you to upgrade GNU
9390 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9391 *** your PATH or compiler configuration so that the native linker is
9392 *** used, and then restart.
9397 # For security reasons, it is highly recommended that you always
9398 # use absolute paths for naming shared libraries, and exclude the
9399 # DT_RUNPATH tag from executables and libraries. But doing so
9400 # requires that you compile everything twice, which is a pain.
9401 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9402 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9403 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9404 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9413 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9416 hardcode_shlibpath_var
=no
9420 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9421 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9422 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9429 if test "$ld_shlibs" = no
; then
9431 hardcode_libdir_flag_spec
=
9432 export_dynamic_flag_spec
=
9433 whole_archive_flag_spec
=
9436 # PORTME fill in a description of your system's linker (not GNU ld)
9439 allow_undefined_flag
=unsupported
9440 always_export_symbols
=yes
9441 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'
9442 # Note: this linker hardcodes the directories in LIBPATH if there
9443 # are no directories specified by -L.
9444 hardcode_minus_L
=yes
9445 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9446 # Neither direct hardcoding nor static linking is supported with a
9448 hardcode_direct
=unsupported
9453 if test "$host_cpu" = ia64
; then
9454 # On IA64, the linker does run time linking by default, so we don't
9455 # have to do anything special.
9456 aix_use_runtimelinking
=no
9457 exp_sym_flag
='-Bexport'
9460 # If we're using GNU nm, then we don't want the "-C" option.
9461 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9462 # Also, AIX nm treats weak defined symbols like other global
9463 # defined symbols, whereas GNU nm marks them as "W".
9464 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9465 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'
9467 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'
9469 aix_use_runtimelinking
=no
9471 # Test if we are trying to use run time linking or normal
9472 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9473 # need to do runtime linking.
9474 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9475 for ld_flag
in $LDFLAGS; do
9476 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
9477 aix_use_runtimelinking
=yes
9484 exp_sym_flag
='-bexport'
9485 no_entry_flag
='-bnoentry'
9488 # When large executables or shared objects are built, AIX ld can
9489 # have problems creating the table of contents. If linking a library
9490 # or program results in "error TOC overflow" add -mminimal-toc to
9491 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9492 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9496 hardcode_direct_absolute
=yes
9497 hardcode_libdir_separator
=':'
9498 link_all_deplibs
=yes
9499 file_list_spec
='${wl}-f,'
9501 if test "$GCC" = yes; then
9502 case $host_os in aix4.
[012]|aix4.
[012].
*)
9503 # We only want to do this on AIX 4.2 and lower, the check
9504 # below for broken collect2 doesn't work under 4.3+
9505 collect2name
=`${CC} -print-prog-name=collect2`
9506 if test -f "$collect2name" &&
9507 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9509 # We have reworked collect2
9512 # We have old collect2
9513 hardcode_direct
=unsupported
9514 # It fails to find uninstalled libraries when the uninstalled
9515 # path is not listed in the libpath. Setting hardcode_minus_L
9516 # to unsupported forces relinking
9517 hardcode_minus_L
=yes
9518 hardcode_libdir_flag_spec
='-L$libdir'
9519 hardcode_libdir_separator
=
9523 shared_flag
='-shared'
9524 if test "$aix_use_runtimelinking" = yes; then
9525 shared_flag
="$shared_flag "'${wl}-G'
9529 if test "$host_cpu" = ia64
; then
9530 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9531 # chokes on -Wl,-G. The following line is correct:
9534 if test "$aix_use_runtimelinking" = yes; then
9535 shared_flag
='${wl}-G'
9537 shared_flag
='${wl}-bM:SRE'
9542 export_dynamic_flag_spec
='${wl}-bexpall'
9543 # It seems that -bexpall does not export symbols beginning with
9544 # underscore (_), so it is better to generate a list of symbols to export.
9545 always_export_symbols
=yes
9546 if test "$aix_use_runtimelinking" = yes; then
9547 # Warning - without using the other runtime loading flags (-brtl),
9548 # -berok will link without error, but may produce a broken library.
9549 allow_undefined_flag
='-berok'
9550 # Determine the default libpath from the value encoded in an
9552 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9553 /* end confdefs.h. */
9563 if ac_fn_c_try_link
"$LINENO"; then :
9565 lt_aix_libpath_sed
='
9566 /Import File Strings/,/^$/ {
9572 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9573 # Check for a 64-bit object if we didn't find anything.
9574 if test -z "$aix_libpath"; then
9575 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9578 rm -f core conftest.err conftest.
$ac_objext \
9579 conftest
$ac_exeext conftest.
$ac_ext
9580 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9582 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9583 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"
9585 if test "$host_cpu" = ia64
; then
9586 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
9587 allow_undefined_flag
="-z nodefs"
9588 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"
9590 # Determine the default libpath from the value encoded in an
9592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9593 /* end confdefs.h. */
9603 if ac_fn_c_try_link
"$LINENO"; then :
9605 lt_aix_libpath_sed
='
9606 /Import File Strings/,/^$/ {
9612 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9613 # Check for a 64-bit object if we didn't find anything.
9614 if test -z "$aix_libpath"; then
9615 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9618 rm -f core conftest.err conftest.
$ac_objext \
9619 conftest
$ac_exeext conftest.
$ac_ext
9620 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9622 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9623 # Warning - without using the other run time loading flags,
9624 # -berok will link without error, but may produce a broken library.
9625 no_undefined_flag
=' ${wl}-bernotok'
9626 allow_undefined_flag
=' ${wl}-berok'
9627 if test "$with_gnu_ld" = yes; then
9628 # We only use this code for GNU lds that support --whole-archive.
9629 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9631 # Exported symbols can be pulled into shared objects from archives
9632 whole_archive_flag_spec
='$convenience'
9634 archive_cmds_need_lc
=yes
9635 # This is similar to how AIX traditionally builds its shared libraries.
9636 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'
9644 # see comment about AmigaOS4 .so support
9645 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9646 archive_expsym_cmds
=''
9649 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)'
9650 hardcode_libdir_flag_spec
='-L$libdir'
9651 hardcode_minus_L
=yes
9657 export_dynamic_flag_spec
=-rdynamic
9660 cygwin
* | mingw
* | pw32
* | cegcc
*)
9661 # When not using gcc, we currently assume that we are using
9662 # Microsoft Visual C++.
9663 # hardcode_libdir_flag_spec is actually meaningless, as there is
9664 # no search path for DLLs.
9665 hardcode_libdir_flag_spec
=' '
9666 allow_undefined_flag
=unsupported
9667 # Tell ltmain to make .lib files, not .a files.
9669 # Tell ltmain to make .dll files, not .so files.
9671 # FIXME: Setting linknames here is a bad hack.
9672 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9673 # The linker will automatically build a .lib file if we build a DLL.
9674 old_archive_from_new_cmds
='true'
9675 # FIXME: Should let the user specify the lib program.
9676 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9677 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9678 enable_shared_with_static_runtimes
=yes
9681 darwin
* | rhapsody
*)
9684 archive_cmds_need_lc
=no
9686 hardcode_automatic
=yes
9687 hardcode_shlibpath_var
=unsupported
9688 if test "$lt_cv_ld_force_load" = "yes"; then
9689 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\"`'
9691 whole_archive_flag_spec
=''
9693 link_all_deplibs
=yes
9694 allow_undefined_flag
="$_lt_dar_allow_undefined"
9695 case $cc_basename in
9696 ifort
*) _lt_dar_can_shared
=yes ;;
9697 *) _lt_dar_can_shared
=$GCC ;;
9699 if test "$_lt_dar_can_shared" = "yes"; then
9700 output_verbose_link_cmd
=func_echo_all
9701 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9702 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9703 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}"
9704 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}"
9713 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9714 hardcode_libdir_flag_spec
='-L$libdir'
9715 hardcode_shlibpath_var
=no
9718 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9719 # support. Future versions do this automatically, but an explicit c++rt0.o
9720 # does not break anything, and helps significantly (at the cost of a little
9723 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9724 hardcode_libdir_flag_spec
='-R$libdir'
9726 hardcode_shlibpath_var
=no
9729 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9731 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9733 hardcode_minus_L
=yes
9734 hardcode_shlibpath_var
=no
9737 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9738 freebsd
* | dragonfly
*)
9739 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9740 hardcode_libdir_flag_spec
='-R$libdir'
9742 hardcode_shlibpath_var
=no
9746 if test "$GCC" = yes; then
9747 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'
9749 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'
9751 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9752 hardcode_libdir_separator
=:
9755 # hardcode_minus_L: Not really in the search PATH,
9756 # but as the default location of the library.
9757 hardcode_minus_L
=yes
9758 export_dynamic_flag_spec
='${wl}-E'
9762 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9763 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9765 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9767 if test "$with_gnu_ld" = no
; then
9768 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9769 hardcode_libdir_flag_spec_ld
='+b $libdir'
9770 hardcode_libdir_separator
=:
9772 hardcode_direct_absolute
=yes
9773 export_dynamic_flag_spec
='${wl}-E'
9774 # hardcode_minus_L: Not really in the search PATH,
9775 # but as the default location of the library.
9776 hardcode_minus_L
=yes
9781 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9784 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9787 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9790 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9796 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9799 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9803 # Older versions of the 11.00 compiler do not understand -b yet
9804 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9806 $as_echo_n "checking if $CC understands -b... " >&6; }
9807 if ${lt_cv_prog_compiler__b+:} false
; then :
9808 $as_echo_n "(cached) " >&6
9810 lt_cv_prog_compiler__b
=no
9811 save_LDFLAGS
="$LDFLAGS"
9812 LDFLAGS
="$LDFLAGS -b"
9813 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9814 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9815 # The linker can only warn and ignore the option if not recognized
9816 # So say no if there are warnings
9817 if test -s conftest.err
; then
9818 # Append any errors to the config.log.
9819 cat conftest.err
1>&5
9820 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9821 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9822 if diff conftest.exp conftest.er2
>/dev
/null
; then
9823 lt_cv_prog_compiler__b
=yes
9826 lt_cv_prog_compiler__b
=yes
9830 LDFLAGS
="$save_LDFLAGS"
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9834 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9836 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
9837 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9839 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9845 if test "$with_gnu_ld" = no
; then
9846 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9847 hardcode_libdir_separator
=:
9852 hardcode_shlibpath_var
=no
9856 hardcode_direct_absolute
=yes
9857 export_dynamic_flag_spec
='${wl}-E'
9859 # hardcode_minus_L: Not really in the search PATH,
9860 # but as the default location of the library.
9861 hardcode_minus_L
=yes
9867 irix5
* | irix6
* | nonstopux
*)
9868 if test "$GCC" = yes; then
9869 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'
9870 # Try to use the -exported_symbol ld option, if it does not
9871 # work, assume that -exports_file does not work either and
9872 # implicitly export all symbols.
9873 save_LDFLAGS
="$LDFLAGS"
9874 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9876 /* end confdefs.h. */
9879 if ac_fn_c_try_link
"$LINENO"; then :
9880 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'
9883 rm -f core conftest.err conftest.
$ac_objext \
9884 conftest
$ac_exeext conftest.
$ac_ext
9885 LDFLAGS
="$save_LDFLAGS"
9887 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'
9888 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'
9890 archive_cmds_need_lc
='no'
9891 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9892 hardcode_libdir_separator
=:
9894 link_all_deplibs
=yes
9898 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9899 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9901 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9903 hardcode_libdir_flag_spec
='-R$libdir'
9905 hardcode_shlibpath_var
=no
9909 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9911 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9912 hardcode_libdir_separator
=:
9913 hardcode_shlibpath_var
=no
9920 if test -f /usr
/libexec
/ld.so
; then
9922 hardcode_shlibpath_var
=no
9923 hardcode_direct_absolute
=yes
9924 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9925 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9926 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9927 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9928 export_dynamic_flag_spec
='${wl}-E'
9931 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
9932 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9933 hardcode_libdir_flag_spec
='-R$libdir'
9936 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9937 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9947 hardcode_libdir_flag_spec
='-L$libdir'
9948 hardcode_minus_L
=yes
9949 allow_undefined_flag
=unsupported
9950 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'
9951 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9955 if test "$GCC" = yes; then
9956 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9957 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'
9959 allow_undefined_flag
=' -expect_unresolved \*'
9960 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'
9962 archive_cmds_need_lc
='no'
9963 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9964 hardcode_libdir_separator
=:
9967 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
9968 if test "$GCC" = yes; then
9969 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9970 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'
9971 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9973 allow_undefined_flag
=' -expect_unresolved \*'
9974 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'
9975 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~
9976 $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'
9978 # Both c and cxx compiler support -rpath directly
9979 hardcode_libdir_flag_spec
='-rpath $libdir'
9981 archive_cmds_need_lc
='no'
9982 hardcode_libdir_separator
=:
9986 no_undefined_flag
=' -z defs'
9987 if test "$GCC" = yes; then
9989 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9990 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9991 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9993 case `$CC -V 2>&1` in
9996 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9997 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9998 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10002 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10003 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10004 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10008 hardcode_libdir_flag_spec
='-R$libdir'
10009 hardcode_shlibpath_var
=no
10011 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
10013 # The compiler driver will combine and reorder linker options,
10014 # but understands `-z linker_flag'. GCC discards it without `$wl',
10015 # but is careful enough not to reorder.
10016 # Supported since Solaris 2.6 (maybe 2.5.1?)
10017 if test "$GCC" = yes; then
10018 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10020 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
10024 link_all_deplibs
=yes
10028 if test "x$host_vendor" = xsequent
; then
10029 # Use $CC to link under sequent, because it throws in some extra .o
10030 # files that make .init and .fini sections work.
10031 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10033 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10035 hardcode_libdir_flag_spec
='-L$libdir'
10036 hardcode_direct
=yes
10037 hardcode_minus_L
=yes
10038 hardcode_shlibpath_var
=no
10042 case $host_vendor in
10044 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10045 hardcode_direct
=yes # is this really true???
10048 ## LD is ld it makes a PLAMLIB
10049 ## CC just makes a GrossModule.
10050 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10051 reload_cmds
='$CC -r -o $output$reload_objs'
10055 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10056 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
10059 runpath_var
='LD_RUN_PATH'
10060 hardcode_shlibpath_var
=no
10064 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10065 hardcode_shlibpath_var
=no
10066 export_dynamic_flag_spec
='-Bexport'
10070 if test -d /usr
/nec
; then
10071 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10072 hardcode_shlibpath_var
=no
10073 runpath_var
=LD_RUN_PATH
10074 hardcode_runpath_var
=yes
10079 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
10080 no_undefined_flag
='${wl}-z,text'
10081 archive_cmds_need_lc
=no
10082 hardcode_shlibpath_var
=no
10083 runpath_var
='LD_RUN_PATH'
10085 if test "$GCC" = yes; then
10086 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10087 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10089 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10090 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10094 sysv5
* | sco3.2v5
* | sco5v6
*)
10095 # Note: We can NOT use -z defs as we might desire, because we do not
10096 # link with -lc, and that would cause any symbols used from libc to
10097 # always be unresolved, which means just about no library would
10098 # ever link correctly. If we're not using GNU ld we use -z text
10099 # though, which does catch some bad symbols but isn't as heavy-handed
10101 no_undefined_flag
='${wl}-z,text'
10102 allow_undefined_flag
='${wl}-z,nodefs'
10103 archive_cmds_need_lc
=no
10104 hardcode_shlibpath_var
=no
10105 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
10106 hardcode_libdir_separator
=':'
10107 link_all_deplibs
=yes
10108 export_dynamic_flag_spec
='${wl}-Bexport'
10109 runpath_var
='LD_RUN_PATH'
10111 if test "$GCC" = yes; then
10112 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10113 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10115 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10116 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10121 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10122 hardcode_libdir_flag_spec
='-L$libdir'
10123 hardcode_shlibpath_var
=no
10131 if test x
$host_vendor = xsni
; then
10133 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10134 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10141 $as_echo "$ld_shlibs" >&6; }
10142 test "$ld_shlibs" = no
&& can_build_shared
=no
10144 with_gnu_ld
=$with_gnu_ld
10161 # Do we need to explicitly link libc?
10163 case "x$archive_cmds_need_lc" in
10165 # Assume -lc should be added
10166 archive_cmds_need_lc
=yes
10168 if test "$enable_shared" = yes && test "$GCC" = yes; then
10169 case $archive_cmds in
10171 # FIXME: we may have to deal with multi-command sequences.
10174 # Test whether the compiler implicitly links with -lc since on some
10175 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10176 # to ld, don't add -lc before -lgcc.
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10178 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10179 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
10180 $as_echo_n "(cached) " >&6
10183 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10186 (eval $ac_compile) 2>&5
10188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10189 test $ac_status = 0; } 2>conftest.err
; then
10192 libobjs
=conftest.
$ac_objext
10194 wl
=$lt_prog_compiler_wl
10195 pic_flag
=$lt_prog_compiler_pic
10201 lt_save_allow_undefined_flag
=$allow_undefined_flag
10202 allow_undefined_flag
=
10203 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10204 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10207 test $ac_status = 0; }
10209 lt_cv_archive_cmds_need_lc
=no
10211 lt_cv_archive_cmds_need_lc
=yes
10213 allow_undefined_flag
=$lt_save_allow_undefined_flag
10215 cat conftest.err
1>&5
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10221 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10222 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10386 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10388 if test "$GCC" = yes; then
10390 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
10391 *) lt_awk_arg
="/^libraries:/" ;;
10394 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
10395 *) lt_sed_strip_eq
="s,=/,/,g" ;;
10397 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10398 case $lt_search_path_spec in
10400 # if the path contains ";" then we assume it to be the separator
10401 # otherwise default to the standard path separator (i.e. ":") - it is
10402 # assumed that no part of a normal pathname contains ";" but that should
10403 # okay in the real world where ";" in dirpaths is itself problematic.
10404 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10407 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10410 # Ok, now we have the path, separated by spaces, we can step through it
10411 # and add multilib dir if necessary.
10412 lt_tmp_lt_search_path_spec
=
10413 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10414 for lt_sys_path
in $lt_search_path_spec; do
10415 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10416 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10418 test -d "$lt_sys_path" && \
10419 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10422 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10423 BEGIN {RS=" "; FS="/|\n";} {
10426 for (lt_i = NF; lt_i > 0; lt_i--) {
10427 if ($lt_i != "" && $lt_i != ".") {
10428 if ($lt_i == "..") {
10431 if (lt_count == 0) {
10432 lt_foo="/" $lt_i lt_foo;
10439 if (lt_foo != "") { lt_freq[lt_foo]++; }
10440 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10442 # AWK program above erroneously prepends '/' to C:/dos/paths
10445 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10446 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10448 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10450 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10452 library_names_spec
=
10453 libname_spec
='lib$name'
10457 postuninstall_cmds
=
10461 shlibpath_overrides_runpath
=unknown
10463 dynamic_linker
="$host_os ld.so"
10464 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10465 need_lib_prefix
=unknown
10466 hardcode_into_libs
=no
10468 # when you set need_version to no, make sure it does not cause -set_version
10469 # flags to be left without arguments
10470 need_version
=unknown
10475 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
10476 shlibpath_var
=LIBPATH
10478 # AIX 3 has no versioning support, so we append a major version to the name.
10479 soname_spec
='${libname}${release}${shared_ext}$major'
10486 hardcode_into_libs
=yes
10487 if test "$host_cpu" = ia64
; then
10488 # AIX 5 supports IA64
10489 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10490 shlibpath_var
=LD_LIBRARY_PATH
10492 # With GCC up to 2.95.x, collect2 would create an import file
10493 # for dependence libraries. The import file would start with
10494 # the line `#! .'. This would cause the generated library to
10495 # depend on `.', always an invalid library. This was fixed in
10496 # development snapshots of GCC prior to 3.0.
10498 aix4 | aix4.
[01] | aix4.
[01].
*)
10499 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10501 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
10504 can_build_shared
=no
10508 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10509 # soname into executable. Probably we can add versioning support to
10510 # collect2, so additional links can be useful in future.
10511 if test "$aix_use_runtimelinking" = yes; then
10512 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10513 # instead of lib<name>.a to let people know that these are not
10514 # typical AIX shared libraries.
10515 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10517 # We preserve .a as extension for shared libraries through AIX4.2
10518 # and later when we are not doing run time linking.
10519 library_names_spec
='${libname}${release}.a $libname.a'
10520 soname_spec
='${libname}${release}${shared_ext}$major'
10522 shlibpath_var
=LIBPATH
10529 # Since July 2007 AmigaOS4 officially supports .so libraries.
10530 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10531 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10534 library_names_spec
='$libname.ixlibrary $libname.a'
10535 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10536 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'
10542 library_names_spec
='${libname}${shared_ext}'
10543 dynamic_linker
="$host_os ld.so"
10544 shlibpath_var
=LIBRARY_PATH
10550 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10551 soname_spec
='${libname}${release}${shared_ext}$major'
10552 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10553 shlibpath_var
=LD_LIBRARY_PATH
10554 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10555 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10556 # the default ld.so.conf also contains /usr/contrib/lib and
10557 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10558 # libtool to hard-code these into programs
10561 cygwin
* | mingw
* | pw32
* | cegcc
*)
10562 version_type
=windows
10567 case $GCC,$host_os in
10568 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
10569 library_names_spec
='$libname.dll.a'
10570 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10571 postinstall_cmds
='base_file=`basename \${file}`~
10572 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10573 dldir=$destdir/`dirname \$dlpath`~
10574 test -d \$dldir || mkdir -p \$dldir~
10575 $install_prog $dir/$dlname \$dldir/$dlname~
10576 chmod a+x \$dldir/$dlname~
10577 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10578 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10580 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10581 dlpath=$dir/\$dldll~
10583 shlibpath_overrides_runpath
=yes
10587 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10588 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10590 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10593 # MinGW DLLs use traditional 'lib' prefix
10594 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10597 # pw32 DLLs use 'pw' prefix rather than 'lib'
10598 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10604 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10607 dynamic_linker
='Win32 ld.exe'
10608 # FIXME: first we should search . and the directory the executable is in
10612 darwin
* | rhapsody
*)
10613 dynamic_linker
="$host_os dyld"
10614 version_type
=darwin
10617 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10618 soname_spec
='${libname}${release}${major}$shared_ext'
10619 shlibpath_overrides_runpath
=yes
10620 shlibpath_var
=DYLD_LIBRARY_PATH
10621 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10623 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10624 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10631 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10632 soname_spec
='${libname}${release}${shared_ext}$major'
10633 shlibpath_var
=LD_LIBRARY_PATH
10636 freebsd
* | dragonfly
*)
10637 # DragonFly does not have aout. When/if they implement a new
10638 # versioning mechanism, adjust this.
10639 if test -x /usr
/bin
/objformat
; then
10640 objformat
=`/usr/bin/objformat`
10643 freebsd
[23].
*) objformat
=aout
;;
10644 *) objformat
=elf
;;
10647 version_type
=freebsd-
$objformat
10648 case $version_type in
10650 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10655 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10659 shlibpath_var
=LD_LIBRARY_PATH
10662 shlibpath_overrides_runpath
=yes
10664 freebsd3.
[01]* | freebsdelf3.
[01]*)
10665 shlibpath_overrides_runpath
=yes
10666 hardcode_into_libs
=yes
10668 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10669 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10670 shlibpath_overrides_runpath
=no
10671 hardcode_into_libs
=yes
10673 *) # from 4.6 on, and DragonFly
10674 shlibpath_overrides_runpath
=yes
10675 hardcode_into_libs
=yes
10684 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10685 soname_spec
='${libname}${release}${shared_ext}$major'
10686 shlibpath_var
=LD_LIBRARY_PATH
10687 hardcode_into_libs
=yes
10694 dynamic_linker
="$host_os runtime_loader"
10695 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10696 soname_spec
='${libname}${release}${shared_ext}$major'
10697 shlibpath_var
=LIBRARY_PATH
10698 shlibpath_overrides_runpath
=yes
10699 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10700 hardcode_into_libs
=yes
10703 hpux9
* | hpux10
* | hpux11
*)
10704 # Give a soname corresponding to the major version so that dld.sl refuses to
10705 # link against other versions.
10712 hardcode_into_libs
=yes
10713 dynamic_linker
="$host_os dld.so"
10714 shlibpath_var
=LD_LIBRARY_PATH
10715 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10716 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10717 soname_spec
='${libname}${release}${shared_ext}$major'
10718 if test "X$HPUX_IA64_MODE" = X32
; then
10719 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10721 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10723 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10727 hardcode_into_libs
=yes
10728 dynamic_linker
="$host_os dld.sl"
10729 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10730 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10731 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10732 soname_spec
='${libname}${release}${shared_ext}$major'
10733 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10734 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10738 dynamic_linker
="$host_os dld.sl"
10739 shlibpath_var
=SHLIB_PATH
10740 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10741 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10742 soname_spec
='${libname}${release}${shared_ext}$major'
10745 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10746 postinstall_cmds
='chmod 555 $lib'
10747 # or fails outright, so override atomically:
10748 install_override_mode
=555
10755 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10756 soname_spec
='${libname}${release}${shared_ext}$major'
10757 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10758 shlibpath_var
=LD_LIBRARY_PATH
10759 shlibpath_overrides_runpath
=no
10760 hardcode_into_libs
=yes
10763 irix5
* | irix6
* | nonstopux
*)
10765 nonstopux
*) version_type
=nonstopux
;;
10767 if test "$lt_cv_prog_gnu_ld" = yes; then
10775 soname_spec
='${libname}${release}${shared_ext}$major'
10776 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10778 irix5
* | nonstopux
*)
10779 libsuff
= shlibsuff
=
10782 case $LD in # libtool.m4 will add one of these switches to LD
10783 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10784 libsuff
= shlibsuff
= libmagic
=32-bit;;
10785 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10786 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10787 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10788 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10789 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10793 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10794 shlibpath_overrides_runpath
=no
10795 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10796 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10797 hardcode_into_libs
=yes
10800 # No shared lib support for Linux oldld, aout, or coff.
10801 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10805 # This must be Linux ELF.
10806 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
10810 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10811 soname_spec
='${libname}${release}${shared_ext}$major'
10812 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10813 shlibpath_var
=LD_LIBRARY_PATH
10814 shlibpath_overrides_runpath
=no
10816 # Some binutils ld are patched to set DT_RUNPATH
10817 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
10818 $as_echo_n "(cached) " >&6
10820 lt_cv_shlibpath_overrides_runpath
=no
10821 save_LDFLAGS
=$LDFLAGS
10822 save_libdir
=$libdir
10823 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10824 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10825 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10826 /* end confdefs.h. */
10836 if ac_fn_c_try_link
"$LINENO"; then :
10837 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
10838 lt_cv_shlibpath_overrides_runpath
=yes
10841 rm -f core conftest.err conftest.
$ac_objext \
10842 conftest
$ac_exeext conftest.
$ac_ext
10843 LDFLAGS
=$save_LDFLAGS
10844 libdir
=$save_libdir
10848 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
10850 # This implies no fast_install, which is unacceptable.
10851 # Some rework will be needed to allow for fast_install
10852 # before this can be enabled.
10853 hardcode_into_libs
=yes
10855 # Append ld.so.conf contents to the search path
10856 if test -f /etc
/ld.so.conf
; then
10857 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' ' '`
10858 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
10861 # We used to test for /lib/ld.so.1 and disable shared libraries on
10862 # powerpc, because MkLinux only supported shared libraries with the
10863 # GNU dynamic linker. Since this was broken with cross compilers,
10864 # most powerpc-linux boxes support dynamic linking these days and
10865 # people can always --disable-shared, the test was removed, and we
10866 # assume the GNU/Linux dynamic linker is in use.
10867 dynamic_linker
='GNU/Linux ld.so'
10874 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10875 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10876 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10877 dynamic_linker
='NetBSD (a.out) ld.so'
10879 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10880 soname_spec
='${libname}${release}${shared_ext}$major'
10881 dynamic_linker
='NetBSD ld.elf_so'
10883 shlibpath_var
=LD_LIBRARY_PATH
10884 shlibpath_overrides_runpath
=yes
10885 hardcode_into_libs
=yes
10890 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10891 shlibpath_var
=LD_LIBRARY_PATH
10892 shlibpath_overrides_runpath
=yes
10899 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10900 soname_spec
='${libname}${release}${shared_ext}$major'
10901 shlibpath_var
=LD_LIBRARY_PATH
10902 shlibpath_overrides_runpath
=no
10903 hardcode_into_libs
=yes
10904 dynamic_linker
='ldqnx.so'
10909 sys_lib_dlsearch_path_spec
="/usr/lib"
10911 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10913 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
10914 *) need_version
=no
;;
10916 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10917 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10918 shlibpath_var
=LD_LIBRARY_PATH
10919 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10921 openbsd2.
[89] | openbsd2.
[89].
*)
10922 shlibpath_overrides_runpath
=no
10925 shlibpath_overrides_runpath
=yes
10929 shlibpath_overrides_runpath
=yes
10934 libname_spec
='$name'
10937 library_names_spec
='$libname${shared_ext} $libname.a'
10938 dynamic_linker
='OS/2 ld.exe'
10939 shlibpath_var
=LIBPATH
10942 osf3
* | osf4
* | osf5
*)
10946 soname_spec
='${libname}${release}${shared_ext}$major'
10947 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10948 shlibpath_var
=LD_LIBRARY_PATH
10949 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10950 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
10961 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10962 soname_spec
='${libname}${release}${shared_ext}$major'
10963 shlibpath_var
=LD_LIBRARY_PATH
10964 shlibpath_overrides_runpath
=yes
10965 hardcode_into_libs
=yes
10966 # ldd complains unless libraries are executable
10967 postinstall_cmds
='chmod +x $lib'
10972 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10973 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10974 shlibpath_var
=LD_LIBRARY_PATH
10975 shlibpath_overrides_runpath
=yes
10976 if test "$with_gnu_ld" = yes; then
10984 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10985 soname_spec
='${libname}${release}${shared_ext}$major'
10986 shlibpath_var
=LD_LIBRARY_PATH
10987 case $host_vendor in
10989 shlibpath_overrides_runpath
=no
10991 runpath_var
=LD_RUN_PATH
10999 shlibpath_overrides_runpath
=no
11000 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
11006 if test -d /usr
/nec
;then
11008 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11009 soname_spec
='$libname${shared_ext}.$major'
11010 shlibpath_var
=LD_LIBRARY_PATH
11014 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
11015 version_type
=freebsd-elf
11018 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11019 soname_spec
='${libname}${release}${shared_ext}$major'
11020 shlibpath_var
=LD_LIBRARY_PATH
11021 shlibpath_overrides_runpath
=yes
11022 hardcode_into_libs
=yes
11023 if test "$with_gnu_ld" = yes; then
11024 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11026 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
11029 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
11033 sys_lib_dlsearch_path_spec
='/usr/lib'
11037 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11041 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11042 shlibpath_var
=LD_LIBRARY_PATH
11043 shlibpath_overrides_runpath
=no
11044 hardcode_into_libs
=yes
11049 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11050 soname_spec
='${libname}${release}${shared_ext}$major'
11051 shlibpath_var
=LD_LIBRARY_PATH
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11059 $as_echo "$dynamic_linker" >&6; }
11060 test "$dynamic_linker" = no
&& can_build_shared
=no
11062 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11063 if test "$GCC" = yes; then
11064 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11067 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11068 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
11070 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11071 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11166 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11168 if test -n "$hardcode_libdir_flag_spec" ||
11169 test -n "$runpath_var" ||
11170 test "X$hardcode_automatic" = "Xyes" ; then
11172 # We can hardcode non-existent directories.
11173 if test "$hardcode_direct" != no
&&
11174 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11175 # have to relink, otherwise we might link with an installed library
11176 # when we should be linking with a yet-to-be-installed one
11177 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11178 test "$hardcode_minus_L" != no
; then
11179 # Linking always hardcodes the temporary library directory.
11180 hardcode_action
=relink
11182 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11183 hardcode_action
=immediate
11186 # We cannot hardcode anything, or else we can only hardcode existing
11188 hardcode_action
=unsupported
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11191 $as_echo "$hardcode_action" >&6; }
11193 if test "$hardcode_action" = relink ||
11194 test "$inherit_rpath" = yes; then
11195 # Fast installation is not supported
11196 enable_fast_install
=no
11197 elif test "$shlibpath_overrides_runpath" = yes ||
11198 test "$enable_shared" = no
; then
11199 # Fast installation is not necessary
11200 enable_fast_install
=needless
11208 if test "x$enable_dlopen" != xyes
; then
11209 enable_dlopen
=unknown
11210 enable_dlopen_self
=unknown
11211 enable_dlopen_self_static
=unknown
11218 lt_cv_dlopen
="load_add_on"
11220 lt_cv_dlopen_self
=yes
11223 mingw
* | pw32
* | cegcc
*)
11224 lt_cv_dlopen
="LoadLibrary"
11229 lt_cv_dlopen
="dlopen"
11234 # if libdl is installed we need to link against it
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11236 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11237 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11238 $as_echo_n "(cached) " >&6
11240 ac_check_lib_save_LIBS
=$LIBS
11242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11243 /* end confdefs.h. */
11245 /* Override any GCC internal prototype to avoid an error.
11246 Use char because int might match the return type of a GCC
11247 builtin and then its argument prototype would still apply. */
11260 if ac_fn_c_try_link
"$LINENO"; then :
11261 ac_cv_lib_dl_dlopen
=yes
11263 ac_cv_lib_dl_dlopen
=no
11265 rm -f core conftest.err conftest.
$ac_objext \
11266 conftest
$ac_exeext conftest.
$ac_ext
11267 LIBS
=$ac_check_lib_save_LIBS
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11270 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11271 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11272 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11275 lt_cv_dlopen
="dyld"
11277 lt_cv_dlopen_self
=yes
11284 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11285 if test "x$ac_cv_func_shl_load" = xyes
; then :
11286 lt_cv_dlopen
="shl_load"
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11289 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11290 if ${ac_cv_lib_dld_shl_load+:} false
; then :
11291 $as_echo_n "(cached) " >&6
11293 ac_check_lib_save_LIBS
=$LIBS
11295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11296 /* end confdefs.h. */
11298 /* Override any GCC internal prototype to avoid an error.
11299 Use char because int might match the return type of a GCC
11300 builtin and then its argument prototype would still apply. */
11308 return shl_load ();
11313 if ac_fn_c_try_link
"$LINENO"; then :
11314 ac_cv_lib_dld_shl_load
=yes
11316 ac_cv_lib_dld_shl_load
=no
11318 rm -f core conftest.err conftest.
$ac_objext \
11319 conftest
$ac_exeext conftest.
$ac_ext
11320 LIBS
=$ac_check_lib_save_LIBS
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11323 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11324 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
11325 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
11327 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11328 if test "x$ac_cv_func_dlopen" = xyes
; then :
11329 lt_cv_dlopen
="dlopen"
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11332 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11333 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11334 $as_echo_n "(cached) " >&6
11336 ac_check_lib_save_LIBS
=$LIBS
11338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11339 /* end confdefs.h. */
11341 /* Override any GCC internal prototype to avoid an error.
11342 Use char because int might match the return type of a GCC
11343 builtin and then its argument prototype would still apply. */
11356 if ac_fn_c_try_link
"$LINENO"; then :
11357 ac_cv_lib_dl_dlopen
=yes
11359 ac_cv_lib_dl_dlopen
=no
11361 rm -f core conftest.err conftest.
$ac_objext \
11362 conftest
$ac_exeext conftest.
$ac_ext
11363 LIBS
=$ac_check_lib_save_LIBS
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11366 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11367 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11368 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11371 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11372 if ${ac_cv_lib_svld_dlopen+:} false
; then :
11373 $as_echo_n "(cached) " >&6
11375 ac_check_lib_save_LIBS
=$LIBS
11376 LIBS
="-lsvld $LIBS"
11377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11378 /* end confdefs.h. */
11380 /* Override any GCC internal prototype to avoid an error.
11381 Use char because int might match the return type of a GCC
11382 builtin and then its argument prototype would still apply. */
11395 if ac_fn_c_try_link
"$LINENO"; then :
11396 ac_cv_lib_svld_dlopen
=yes
11398 ac_cv_lib_svld_dlopen
=no
11400 rm -f core conftest.err conftest.
$ac_objext \
11401 conftest
$ac_exeext conftest.
$ac_ext
11402 LIBS
=$ac_check_lib_save_LIBS
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11405 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11406 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
11407 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11410 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11411 if ${ac_cv_lib_dld_dld_link+:} false
; then :
11412 $as_echo_n "(cached) " >&6
11414 ac_check_lib_save_LIBS
=$LIBS
11416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11417 /* end confdefs.h. */
11419 /* Override any GCC internal prototype to avoid an error.
11420 Use char because int might match the return type of a GCC
11421 builtin and then its argument prototype would still apply. */
11429 return dld_link ();
11434 if ac_fn_c_try_link
"$LINENO"; then :
11435 ac_cv_lib_dld_dld_link
=yes
11437 ac_cv_lib_dld_dld_link
=no
11439 rm -f core conftest.err conftest.
$ac_objext \
11440 conftest
$ac_exeext conftest.
$ac_ext
11441 LIBS
=$ac_check_lib_save_LIBS
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11444 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11445 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
11446 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11467 if test "x$lt_cv_dlopen" != xno
; then
11473 case $lt_cv_dlopen in
11475 save_CPPFLAGS
="$CPPFLAGS"
11476 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11478 save_LDFLAGS
="$LDFLAGS"
11479 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11482 LIBS
="$lt_cv_dlopen_libs $LIBS"
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11485 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11486 if ${lt_cv_dlopen_self+:} false
; then :
11487 $as_echo_n "(cached) " >&6
11489 if test "$cross_compiling" = yes; then :
11490 lt_cv_dlopen_self
=cross
11492 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11493 lt_status
=$lt_dlunknown
11494 cat > conftest.
$ac_ext <<_LT_EOF
11495 #line 11495 "configure"
11496 #include "confdefs.h"
11505 # define LT_DLGLOBAL RTLD_GLOBAL
11508 # define LT_DLGLOBAL DL_GLOBAL
11510 # define LT_DLGLOBAL 0
11514 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11515 find out it does not work in some platform. */
11516 #ifndef LT_DLLAZY_OR_NOW
11518 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11521 # define LT_DLLAZY_OR_NOW DL_LAZY
11524 # define LT_DLLAZY_OR_NOW RTLD_NOW
11527 # define LT_DLLAZY_OR_NOW DL_NOW
11529 # define LT_DLLAZY_OR_NOW 0
11536 /* When -fvisbility=hidden is used, assume the code has been annotated
11537 correspondingly for the symbols needed. */
11538 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11539 void fnord () __attribute__((visibility("default")));
11542 void fnord () { int i=42; }
11545 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11546 int status = $lt_dlunknown;
11550 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11553 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11554 else puts (dlerror ());
11556 /* dlclose (self); */
11564 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11565 (eval $ac_link) 2>&5
11567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11568 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11569 (.
/conftest
; exit; ) >&5 2>/dev
/null
11571 case x
$lt_status in
11572 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11573 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11574 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11577 # compilation failed
11578 lt_cv_dlopen_self
=no
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11586 $as_echo "$lt_cv_dlopen_self" >&6; }
11588 if test "x$lt_cv_dlopen_self" = xyes
; then
11589 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11591 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11592 if ${lt_cv_dlopen_self_static+:} false
; then :
11593 $as_echo_n "(cached) " >&6
11595 if test "$cross_compiling" = yes; then :
11596 lt_cv_dlopen_self_static
=cross
11598 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11599 lt_status
=$lt_dlunknown
11600 cat > conftest.
$ac_ext <<_LT_EOF
11601 #line 11601 "configure"
11602 #include "confdefs.h"
11611 # define LT_DLGLOBAL RTLD_GLOBAL
11614 # define LT_DLGLOBAL DL_GLOBAL
11616 # define LT_DLGLOBAL 0
11620 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11621 find out it does not work in some platform. */
11622 #ifndef LT_DLLAZY_OR_NOW
11624 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11627 # define LT_DLLAZY_OR_NOW DL_LAZY
11630 # define LT_DLLAZY_OR_NOW RTLD_NOW
11633 # define LT_DLLAZY_OR_NOW DL_NOW
11635 # define LT_DLLAZY_OR_NOW 0
11642 /* When -fvisbility=hidden is used, assume the code has been annotated
11643 correspondingly for the symbols needed. */
11644 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11645 void fnord () __attribute__((visibility("default")));
11648 void fnord () { int i=42; }
11651 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11652 int status = $lt_dlunknown;
11656 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11659 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11660 else puts (dlerror ());
11662 /* dlclose (self); */
11670 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11671 (eval $ac_link) 2>&5
11673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11674 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11675 (.
/conftest
; exit; ) >&5 2>/dev
/null
11677 case x
$lt_status in
11678 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11679 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11680 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11683 # compilation failed
11684 lt_cv_dlopen_self_static
=no
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11692 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11695 CPPFLAGS
="$save_CPPFLAGS"
11696 LDFLAGS
="$save_LDFLAGS"
11701 case $lt_cv_dlopen_self in
11702 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11703 *) enable_dlopen_self
=unknown
;;
11706 case $lt_cv_dlopen_self_static in
11707 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11708 *) enable_dlopen_self_static
=unknown
;;
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11731 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11732 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11733 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11734 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11736 $as_echo "yes" >&6; }
11738 # FIXME - insert some real tests, host_os isn't really good enough
11741 if test -n "$STRIP" ; then
11742 striplib
="$STRIP -x"
11743 old_striplib
="$STRIP -S"
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11745 $as_echo "yes" >&6; }
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11748 $as_echo "no" >&6; }
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11753 $as_echo "no" >&6; }
11769 # Report which library types will actually be built
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11771 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11773 $as_echo "$can_build_shared" >&6; }
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11776 $as_echo_n "checking whether to build shared libraries... " >&6; }
11777 test "$can_build_shared" = "no" && enable_shared
=no
11779 # On AIX, shared libraries and static libraries use the same namespace, and
11780 # are all built from PIC.
11783 test "$enable_shared" = yes && enable_static
=no
11784 if test -n "$RANLIB"; then
11785 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11786 postinstall_cmds
='$RANLIB $lib'
11791 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11792 test "$enable_shared" = yes && enable_static
=no
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11797 $as_echo "$enable_shared" >&6; }
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11800 $as_echo_n "checking whether to build static libraries... " >&6; }
11801 # Make sure either enable_shared or enable_static is yes.
11802 test "$enable_shared" = yes || enable_static
=yes
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11804 $as_echo "$enable_static" >&6; }
11811 ac_cpp
='$CPP $CPPFLAGS'
11812 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11813 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11814 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11830 # Source file extension for Go test sources.
11833 # Object file extension for compiled Go test sources.
11837 # Code to be used in simple compile tests
11838 lt_simple_compile_test_code
="package main; func main() { }"
11840 # Code to be used in simple link tests
11841 lt_simple_link_test_code
='package main; func main() { }'
11843 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11850 # If no C compiler was specified, use CC.
11853 # If no C compiler flags were specified, use CFLAGS.
11854 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
11856 # Allow CC to be a program name with arguments.
11860 # save warnings/boilerplate of simple test code
11861 ac_outfile
=conftest.
$ac_objext
11862 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
11863 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
11864 _lt_compiler_boilerplate
=`cat conftest.err`
11867 ac_outfile
=conftest.
$ac_objext
11868 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
11869 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
11870 _lt_linker_boilerplate
=`cat conftest.err`
11874 # Allow CC to be a program name with arguments.
11882 for cc_temp
in $compiler""; do
11884 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
11885 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
11890 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11893 # Go did not exist at the time GCC didn't implicitly link libc in.
11894 archive_cmds_need_lc_GO
=no
11896 old_archive_cmds_GO
=$old_archive_cmds
11899 ## There is no encapsulation within the following macros, do not change
11900 ## the running order or otherwise move them around unless you know exactly
11901 ## what you are doing...
11902 if test -n "$compiler"; then
11904 lt_prog_compiler_no_builtin_flag_GO
=
11906 if test "$GCC" = yes; then
11907 case $cc_basename in
11909 lt_prog_compiler_no_builtin_flag_GO
=' -Xcompiler -fno-builtin' ;;
11911 lt_prog_compiler_no_builtin_flag_GO
=' -fno-builtin' ;;
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11915 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11916 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
11917 $as_echo_n "(cached) " >&6
11919 lt_cv_prog_compiler_rtti_exceptions
=no
11920 ac_outfile
=conftest.
$ac_objext
11921 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
11922 lt_compiler_flag
="-fno-rtti -fno-exceptions"
11923 # Insert the option either (1) after the last *FLAGS variable, or
11924 # (2) before a word containing "conftest.", or (3) at the end.
11925 # Note that $ac_compile itself does not contain backslashes and begins
11926 # with a dollar sign (not a hyphen), so the echo should work correctly.
11927 # The option is referenced via a variable to avoid confusing sed.
11928 lt_compile
=`echo "$ac_compile" | $SED \
11929 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11930 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11931 -e 's:$: $lt_compiler_flag:'`
11932 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11933 (eval "$lt_compile" 2>conftest.err
)
11935 cat conftest.err
>&5
11936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937 if (exit $ac_status) && test -s "$ac_outfile"; then
11938 # The compiler can only warn and ignore the option if not recognized
11939 # So say no if there are warnings other than the usual output.
11940 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
11941 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
11942 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
11943 lt_cv_prog_compiler_rtti_exceptions
=yes
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11950 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11952 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
11953 lt_prog_compiler_no_builtin_flag_GO
="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11962 lt_prog_compiler_wl_GO
=
11963 lt_prog_compiler_pic_GO
=
11964 lt_prog_compiler_static_GO
=
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11967 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11969 if test "$GCC" = yes; then
11970 lt_prog_compiler_wl_GO
='-Wl,'
11971 lt_prog_compiler_static_GO
='-static'
11975 # All AIX code is PIC.
11976 if test "$host_cpu" = ia64
; then
11977 # AIX 5 now supports IA64 processor
11978 lt_prog_compiler_static_GO
='-Bstatic'
11980 lt_prog_compiler_pic_GO
='-fPIC'
11986 # see comment about AmigaOS4 .so support
11987 lt_prog_compiler_pic_GO
='-fPIC'
11990 # FIXME: we need at least 68020 code to build shared libraries, but
11991 # adding the `-m68020' flag to GCC prevents building anything better,
11993 lt_prog_compiler_pic_GO
='-m68020 -resident32 -malways-restore-a4'
11998 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
11999 # PIC is the default for these OSes.
12002 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
12003 # This hack is so that the source file can tell whether it is being
12004 # built for inclusion in a dll (and should export symbols for example).
12005 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12006 # (--disable-auto-import) libraries
12007 lt_prog_compiler_pic_GO
='-DDLL_EXPORT'
12010 darwin
* | rhapsody
*)
12011 # PIC is the default on this platform
12012 # Common symbols not allowed in MH_DYLIB files
12013 lt_prog_compiler_pic_GO
='-fno-common'
12017 # PIC is the default for Haiku.
12018 # The "-static" flag exists, but is broken.
12019 lt_prog_compiler_static_GO
=
12023 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12024 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12025 # sets the default TLS model and affects inlining.
12031 lt_prog_compiler_pic_GO
='-fPIC'
12037 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12038 # Instead, we relocate shared libraries at runtime.
12042 # Just because we use GCC doesn't mean we suddenly get shared libraries
12043 # on systems that don't support them.
12044 lt_prog_compiler_can_build_shared_GO
=no
12049 # QNX uses GNU C++, but need to define -shared option too, otherwise
12050 # it will coredump.
12051 lt_prog_compiler_pic_GO
='-fPIC -shared'
12055 if test -d /usr
/nec
; then
12056 lt_prog_compiler_pic_GO
=-Kconform_pic
12061 lt_prog_compiler_pic_GO
='-fPIC'
12065 case $cc_basename in
12066 nvcc
*) # Cuda Compiler Driver 2.2
12067 lt_prog_compiler_wl_GO
='-Xlinker '
12068 lt_prog_compiler_pic_GO
='-Xcompiler -fPIC'
12072 # PORTME Check for flag to pass linker flags through the system compiler.
12075 lt_prog_compiler_wl_GO
='-Wl,'
12076 if test "$host_cpu" = ia64
; then
12077 # AIX 5 now supports IA64 processor
12078 lt_prog_compiler_static_GO
='-Bstatic'
12080 lt_prog_compiler_static_GO
='-bnso -bI:/lib/syscalls.exp'
12084 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
12085 # This hack is so that the source file can tell whether it is being
12086 # built for inclusion in a dll (and should export symbols for example).
12087 lt_prog_compiler_pic_GO
='-DDLL_EXPORT'
12090 hpux9
* | hpux10
* | hpux11
*)
12091 lt_prog_compiler_wl_GO
='-Wl,'
12092 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12093 # not for PA HP-UX.
12099 lt_prog_compiler_pic_GO
='+Z'
12102 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12103 lt_prog_compiler_static_GO
='${wl}-a ${wl}archive'
12106 irix5
* | irix6
* | nonstopux
*)
12107 lt_prog_compiler_wl_GO
='-Wl,'
12108 # PIC (with -KPIC) is the default.
12109 lt_prog_compiler_static_GO
='-non_shared'
12112 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
12113 case $cc_basename in
12114 # old Intel for x86_64 which still supported -KPIC.
12116 lt_prog_compiler_wl_GO
='-Wl,'
12117 lt_prog_compiler_pic_GO
='-KPIC'
12118 lt_prog_compiler_static_GO
='-static'
12120 # icc used to be incompatible with GCC.
12121 # ICC 10 doesn't accept -KPIC any more.
12123 lt_prog_compiler_wl_GO
='-Wl,'
12124 lt_prog_compiler_pic_GO
='-fPIC'
12125 lt_prog_compiler_static_GO
='-static'
12127 # Lahey Fortran 8.1.
12129 lt_prog_compiler_wl_GO
='-Wl,'
12130 lt_prog_compiler_pic_GO
='--shared'
12131 lt_prog_compiler_static_GO
='--static'
12133 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
12134 # Portland Group compilers (*not* the Pentium gcc compiler,
12135 # which looks to be a dead project)
12136 lt_prog_compiler_wl_GO
='-Wl,'
12137 lt_prog_compiler_pic_GO
='-fpic'
12138 lt_prog_compiler_static_GO
='-Bstatic'
12141 lt_prog_compiler_wl_GO
='-Wl,'
12142 # All Alpha code is PIC.
12143 lt_prog_compiler_static_GO
='-non_shared'
12145 xl
* | bgxl
* | bgf
* | mpixl
*)
12146 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12147 lt_prog_compiler_wl_GO
='-Wl,'
12148 lt_prog_compiler_pic_GO
='-qpic'
12149 lt_prog_compiler_static_GO
='-qstaticlink'
12152 case `$CC -V 2>&1 | sed 5q` in
12153 *Sun\ F
* |
*Sun
*Fortran
*)
12154 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12155 lt_prog_compiler_pic_GO
='-KPIC'
12156 lt_prog_compiler_static_GO
='-Bstatic'
12157 lt_prog_compiler_wl_GO
=''
12161 lt_prog_compiler_pic_GO
='-KPIC'
12162 lt_prog_compiler_static_GO
='-Bstatic'
12163 lt_prog_compiler_wl_GO
='-Wl,'
12171 lt_prog_compiler_pic_GO
='-KPIC'
12172 lt_prog_compiler_static_GO
='-Bstatic'
12176 # QNX uses GNU C++, but need to define -shared option too, otherwise
12177 # it will coredump.
12178 lt_prog_compiler_pic_GO
='-fPIC -shared'
12181 osf3
* | osf4
* | osf5
*)
12182 lt_prog_compiler_wl_GO
='-Wl,'
12183 # All OSF/1 code is PIC.
12184 lt_prog_compiler_static_GO
='-non_shared'
12188 lt_prog_compiler_static_GO
='-non_shared'
12192 lt_prog_compiler_pic_GO
='-KPIC'
12193 lt_prog_compiler_static_GO
='-Bstatic'
12194 case $cc_basename in
12195 f77
* | f90
* | f95
*)
12196 lt_prog_compiler_wl_GO
='-Qoption ld ';;
12198 lt_prog_compiler_wl_GO
='-Wl,';;
12203 lt_prog_compiler_wl_GO
='-Qoption ld '
12204 lt_prog_compiler_pic_GO
='-PIC'
12205 lt_prog_compiler_static_GO
='-Bstatic'
12208 sysv4 | sysv4.2uw2
* | sysv4.3
*)
12209 lt_prog_compiler_wl_GO
='-Wl,'
12210 lt_prog_compiler_pic_GO
='-KPIC'
12211 lt_prog_compiler_static_GO
='-Bstatic'
12215 if test -d /usr
/nec
;then
12216 lt_prog_compiler_pic_GO
='-Kconform_pic'
12217 lt_prog_compiler_static_GO
='-Bstatic'
12221 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
12222 lt_prog_compiler_wl_GO
='-Wl,'
12223 lt_prog_compiler_pic_GO
='-KPIC'
12224 lt_prog_compiler_static_GO
='-Bstatic'
12228 lt_prog_compiler_wl_GO
='-Wl,'
12229 lt_prog_compiler_can_build_shared_GO
=no
12233 lt_prog_compiler_pic_GO
='-pic'
12234 lt_prog_compiler_static_GO
='-Bstatic'
12238 lt_prog_compiler_can_build_shared_GO
=no
12244 # For platforms which do not support PIC, -DPIC is meaningless:
12246 lt_prog_compiler_pic_GO
=
12249 lt_prog_compiler_pic_GO
="$lt_prog_compiler_pic_GO"
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
12253 $as_echo "$lt_prog_compiler_pic_GO" >&6; }
12258 # Check to make sure the PIC flag actually works.
12260 if test -n "$lt_prog_compiler_pic_GO"; then
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
12262 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
12263 if ${lt_cv_prog_compiler_pic_works_GO+:} false
; then :
12264 $as_echo_n "(cached) " >&6
12266 lt_cv_prog_compiler_pic_works_GO
=no
12267 ac_outfile
=conftest.
$ac_objext
12268 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12269 lt_compiler_flag
="$lt_prog_compiler_pic_GO"
12270 # Insert the option either (1) after the last *FLAGS variable, or
12271 # (2) before a word containing "conftest.", or (3) at the end.
12272 # Note that $ac_compile itself does not contain backslashes and begins
12273 # with a dollar sign (not a hyphen), so the echo should work correctly.
12274 # The option is referenced via a variable to avoid confusing sed.
12275 lt_compile
=`echo "$ac_compile" | $SED \
12276 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12277 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12278 -e 's:$: $lt_compiler_flag:'`
12279 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12280 (eval "$lt_compile" 2>conftest.err
)
12282 cat conftest.err
>&5
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 if (exit $ac_status) && test -s "$ac_outfile"; then
12285 # The compiler can only warn and ignore the option if not recognized
12286 # So say no if there are warnings other than the usual output.
12287 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
12288 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12289 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
12290 lt_cv_prog_compiler_pic_works_GO
=yes
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
12297 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
12299 if test x
"$lt_cv_prog_compiler_pic_works_GO" = xyes
; then
12300 case $lt_prog_compiler_pic_GO in
12302 *) lt_prog_compiler_pic_GO
=" $lt_prog_compiler_pic_GO" ;;
12305 lt_prog_compiler_pic_GO
=
12306 lt_prog_compiler_can_build_shared_GO
=no
12314 # Check to make sure the static flag actually works.
12316 wl
=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_GO\"
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12318 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12319 if ${lt_cv_prog_compiler_static_works_GO+:} false
; then :
12320 $as_echo_n "(cached) " >&6
12322 lt_cv_prog_compiler_static_works_GO
=no
12323 save_LDFLAGS
="$LDFLAGS"
12324 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
12325 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
12326 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
12327 # The linker can only warn and ignore the option if not recognized
12328 # So say no if there are warnings
12329 if test -s conftest.err
; then
12330 # Append any errors to the config.log.
12331 cat conftest.err
1>&5
12332 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
12333 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12334 if diff conftest.exp conftest.er2
>/dev
/null
; then
12335 lt_cv_prog_compiler_static_works_GO
=yes
12338 lt_cv_prog_compiler_static_works_GO
=yes
12342 LDFLAGS
="$save_LDFLAGS"
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
12346 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
12348 if test x
"$lt_cv_prog_compiler_static_works_GO" = xyes
; then
12351 lt_prog_compiler_static_GO
=
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12358 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12359 if ${lt_cv_prog_compiler_c_o_GO+:} false
; then :
12360 $as_echo_n "(cached) " >&6
12362 lt_cv_prog_compiler_c_o_GO
=no
12363 $RM -r conftest
2>/dev
/null
12367 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12369 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12370 # Insert the option either (1) after the last *FLAGS variable, or
12371 # (2) before a word containing "conftest.", or (3) at the end.
12372 # Note that $ac_compile itself does not contain backslashes and begins
12373 # with a dollar sign (not a hyphen), so the echo should work correctly.
12374 lt_compile
=`echo "$ac_compile" | $SED \
12375 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12376 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12377 -e 's:$: $lt_compiler_flag:'`
12378 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12379 (eval "$lt_compile" 2>out
/conftest.err
)
12381 cat out
/conftest.err
>&5
12382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12385 # The compiler can only warn and ignore the option if not recognized
12386 # So say no if there are warnings
12387 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12388 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12389 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12390 lt_cv_prog_compiler_c_o_GO
=yes
12395 # SGI C++ compiler will create directory out/ii_files/ for
12396 # template instantiation
12397 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12398 $RM out
/* && rmdir out
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12405 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12410 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12411 if ${lt_cv_prog_compiler_c_o_GO+:} false
; then :
12412 $as_echo_n "(cached) " >&6
12414 lt_cv_prog_compiler_c_o_GO
=no
12415 $RM -r conftest
2>/dev
/null
12419 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12421 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12422 # Insert the option either (1) after the last *FLAGS variable, or
12423 # (2) before a word containing "conftest.", or (3) at the end.
12424 # Note that $ac_compile itself does not contain backslashes and begins
12425 # with a dollar sign (not a hyphen), so the echo should work correctly.
12426 lt_compile
=`echo "$ac_compile" | $SED \
12427 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12428 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12429 -e 's:$: $lt_compiler_flag:'`
12430 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12431 (eval "$lt_compile" 2>out
/conftest.err
)
12433 cat out
/conftest.err
>&5
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12437 # The compiler can only warn and ignore the option if not recognized
12438 # So say no if there are warnings
12439 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12440 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12441 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12442 lt_cv_prog_compiler_c_o_GO
=yes
12447 # SGI C++ compiler will create directory out/ii_files/ for
12448 # template instantiation
12449 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12450 $RM out
/* && rmdir out
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12457 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12462 hard_links
="nottested"
12463 if test "$lt_cv_prog_compiler_c_o_GO" = no
&& test "$need_locks" != no
; then
12464 # do not overwrite the value of need_locks provided by the user
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12466 $as_echo_n "checking if we can lock with hard links... " >&6; }
12469 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12471 ln conftest.a conftest.b
2>&5 || hard_links
=no
12472 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12474 $as_echo "$hard_links" >&6; }
12475 if test "$hard_links" = no
; then
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12477 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12487 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12490 allow_undefined_flag_GO
=
12491 always_export_symbols_GO
=no
12493 archive_expsym_cmds_GO
=
12494 compiler_needs_object_GO
=no
12495 enable_shared_with_static_runtimes_GO
=no
12496 export_dynamic_flag_spec_GO
=
12497 export_symbols_cmds_GO
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12498 hardcode_automatic_GO
=no
12499 hardcode_direct_GO
=no
12500 hardcode_direct_absolute_GO
=no
12501 hardcode_libdir_flag_spec_GO
=
12502 hardcode_libdir_flag_spec_ld_GO
=
12503 hardcode_libdir_separator_GO
=
12504 hardcode_minus_L_GO
=no
12505 hardcode_shlibpath_var_GO
=unsupported
12506 inherit_rpath_GO
=no
12507 link_all_deplibs_GO
=unknown
12509 module_expsym_cmds_GO
=
12510 old_archive_from_new_cmds_GO
=
12511 old_archive_from_expsyms_cmds_GO
=
12512 thread_safe_flag_spec_GO
=
12513 whole_archive_flag_spec_GO
=
12514 # include_expsyms should be a list of space-separated symbols to be *always*
12515 # included in the symbol list
12516 include_expsyms_GO
=
12517 # exclude_expsyms can be an extended regexp of symbols to exclude
12518 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12519 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12520 # as well as any symbol that contains `d'.
12521 exclude_expsyms_GO
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12522 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12523 # platforms (ab)use it in PIC code, but their linkers get confused if
12524 # the symbol is explicitly referenced. Since portable code cannot
12525 # rely on this symbol name, it's probably fine to never include it in
12526 # preloaded symbol tables.
12527 # Exclude shared library initialization/finalization symbols.
12528 extract_expsyms_cmds
=
12531 cygwin
* | mingw
* | pw32
* | cegcc
*)
12532 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12533 # When not using gcc, we currently assume that we are using
12534 # Microsoft Visual C++.
12535 if test "$GCC" != yes; then
12540 # we just hope/assume this is gcc and not c89 (= MSVC++)
12550 # On some targets, GNU ld is compatible enough with the native linker
12551 # that we're better off using the native interface for both.
12552 lt_use_gnu_ld_interface
=no
12553 if test "$with_gnu_ld" = yes; then
12556 # The AIX port of GNU ld has always aspired to compatibility
12557 # with the native linker. However, as the warning in the GNU ld
12558 # block says, versions before 2.19.5* couldn't really create working
12559 # shared libraries, regardless of the interface used.
12560 case `$LD -v 2>&1` in
12561 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
12562 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
12563 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
12565 lt_use_gnu_ld_interface
=yes
12570 lt_use_gnu_ld_interface
=yes
12575 if test "$lt_use_gnu_ld_interface" = yes; then
12576 # If archive_cmds runs LD, not CC, wlarc should be empty
12579 # Set some defaults for GNU ld with shared library support. These
12580 # are reset later if shared libraries are not supported. Putting them
12581 # here allows them to be overridden if necessary.
12582 runpath_var
=LD_RUN_PATH
12583 hardcode_libdir_flag_spec_GO
='${wl}-rpath ${wl}$libdir'
12584 export_dynamic_flag_spec_GO
='${wl}--export-dynamic'
12585 # ancient GNU ld didn't support --whole-archive et. al.
12586 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
12587 whole_archive_flag_spec_GO
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12589 whole_archive_flag_spec_GO
=
12591 supports_anon_versioning
=no
12592 case `$LD -v 2>&1` in
12593 *GNU\ gold
*) supports_anon_versioning
=yes ;;
12594 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
12595 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
12596 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
12597 *\
2.11.
*) ;; # other 2.11 versions
12598 *) supports_anon_versioning
=yes ;;
12601 # See if GNU ld supports shared libraries.
12604 # On AIX/PPC, the GNU linker is very broken
12605 if test "$host_cpu" != ia64
; then
12609 *** Warning: the GNU linker, at least up to release 2.19, is reported
12610 *** to be unable to reliably create shared libraries on AIX.
12611 *** Therefore, libtool is disabling shared libraries support. If you
12612 *** really care for shared libraries, you may want to install binutils
12613 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12614 *** You will then need to restart the configuration process.
12623 # see comment about AmigaOS4 .so support
12624 archive_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12625 archive_expsym_cmds_GO
=''
12628 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)'
12629 hardcode_libdir_flag_spec_GO
='-L$libdir'
12630 hardcode_minus_L_GO
=yes
12636 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12637 allow_undefined_flag_GO
=unsupported
12638 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12639 # support --undefined. This deserves some investigation. FIXME
12640 archive_cmds_GO
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12646 cygwin
* | mingw
* | pw32
* | cegcc
*)
12647 # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12648 # as there is no search path for DLLs.
12649 hardcode_libdir_flag_spec_GO
='-L$libdir'
12650 export_dynamic_flag_spec_GO
='${wl}--export-all-symbols'
12651 allow_undefined_flag_GO
=unsupported
12652 always_export_symbols_GO
=no
12653 enable_shared_with_static_runtimes_GO
=yes
12654 export_symbols_cmds_GO
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12656 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
12657 archive_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12658 # If the export-symbols file already is a .def file (1st line
12659 # is EXPORTS), use it as is; otherwise, prepend...
12660 archive_expsym_cmds_GO
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12661 cp $export_symbols $output_objdir/$soname.def;
12663 echo EXPORTS > $output_objdir/$soname.def;
12664 cat $export_symbols >> $output_objdir/$soname.def;
12666 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12673 archive_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12674 link_all_deplibs_GO
=yes
12678 hardcode_direct_GO
=no
12679 hardcode_shlibpath_var_GO
=no
12680 hardcode_libdir_flag_spec_GO
='${wl}-rpath,$libdir'
12681 export_dynamic_flag_spec_GO
='${wl}-E'
12682 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12683 # Instead, shared libraries are loaded at an image base (0x10000000 by
12684 # default) and relocated if they conflict, which is a slow very memory
12685 # consuming and fragmenting process. To avoid this, we pick a random,
12686 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12687 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12688 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'
12689 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'
12692 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
12694 if test "$host_os" = linux-dietlibc
; then
12695 case $cc_basename in
12696 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
12699 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
12700 && test "$tmp_diet" = no
12703 tmp_sharedflag
='-shared'
12704 case $cc_basename,$host_cpu in
12705 pgcc
*) # Portland Group C compiler
12706 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'
12707 tmp_addflag
=' $pic_flag'
12709 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
12710 # Portland Group f77 and f90 compilers
12711 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'
12712 tmp_addflag
=' $pic_flag -Mnomain' ;;
12713 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
12714 tmp_addflag
=' -i_dynamic' ;;
12715 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
12716 tmp_addflag
=' -i_dynamic -nofor_main' ;;
12717 ifc
* | ifort
*) # Intel Fortran compiler
12718 tmp_addflag
=' -nofor_main' ;;
12719 lf95
*) # Lahey Fortran 8.1
12720 whole_archive_flag_spec_GO
=
12721 tmp_sharedflag
='--shared' ;;
12722 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12723 tmp_sharedflag
='-qmkshrobj'
12725 nvcc
*) # Cuda Compiler Driver 2.2
12726 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'
12727 compiler_needs_object_GO
=yes
12730 case `$CC -V 2>&1 | sed 5q` in
12731 *Sun\ C
*) # Sun C 5.9
12732 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'
12733 compiler_needs_object_GO
=yes
12734 tmp_sharedflag
='-G' ;;
12735 *Sun\ F
*) # Sun Fortran 8.3
12736 tmp_sharedflag
='-G' ;;
12738 archive_cmds_GO
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12740 if test "x$supports_anon_versioning" = xyes
; then
12741 archive_expsym_cmds_GO
='echo "{ global:" > $output_objdir/$libname.ver~
12742 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12743 echo "local: *; };" >> $output_objdir/$libname.ver~
12744 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12747 case $cc_basename in
12748 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
12749 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12750 whole_archive_flag_spec_GO
='--whole-archive$convenience --no-whole-archive'
12751 hardcode_libdir_flag_spec_GO
=
12752 hardcode_libdir_flag_spec_ld_GO
='-rpath $libdir'
12753 archive_cmds_GO
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12754 if test "x$supports_anon_versioning" = xyes
; then
12755 archive_expsym_cmds_GO
='echo "{ global:" > $output_objdir/$libname.ver~
12756 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12757 echo "local: *; };" >> $output_objdir/$libname.ver~
12758 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12768 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
12769 archive_cmds_GO
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12772 archive_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12773 archive_expsym_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12778 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
12782 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12783 *** create shared libraries on Solaris systems. Therefore, libtool
12784 *** is disabling shared libraries support. We urge you to upgrade GNU
12785 *** binutils to release 2.9.1 or newer. Another option is to modify
12786 *** your PATH or compiler configuration so that the native linker is
12787 *** used, and then restart.
12790 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12791 archive_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12792 archive_expsym_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12798 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
12799 case `$LD -v 2>&1` in
12800 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
12804 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12805 *** reliably create shared libraries on SCO systems. Therefore, libtool
12806 *** is disabling shared libraries support. We urge you to upgrade GNU
12807 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12808 *** your PATH or compiler configuration so that the native linker is
12809 *** used, and then restart.
12814 # For security reasons, it is highly recommended that you always
12815 # use absolute paths for naming shared libraries, and exclude the
12816 # DT_RUNPATH tag from executables and libraries. But doing so
12817 # requires that you compile everything twice, which is a pain.
12818 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12819 hardcode_libdir_flag_spec_GO
='${wl}-rpath ${wl}$libdir'
12820 archive_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12821 archive_expsym_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12830 archive_cmds_GO
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12832 hardcode_direct_GO
=yes
12833 hardcode_shlibpath_var_GO
=no
12837 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12838 archive_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12839 archive_expsym_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12846 if test "$ld_shlibs_GO" = no
; then
12848 hardcode_libdir_flag_spec_GO
=
12849 export_dynamic_flag_spec_GO
=
12850 whole_archive_flag_spec_GO
=
12853 # PORTME fill in a description of your system's linker (not GNU ld)
12856 allow_undefined_flag_GO
=unsupported
12857 always_export_symbols_GO
=yes
12858 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'
12859 # Note: this linker hardcodes the directories in LIBPATH if there
12860 # are no directories specified by -L.
12861 hardcode_minus_L_GO
=yes
12862 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12863 # Neither direct hardcoding nor static linking is supported with a
12865 hardcode_direct_GO
=unsupported
12870 if test "$host_cpu" = ia64
; then
12871 # On IA64, the linker does run time linking by default, so we don't
12872 # have to do anything special.
12873 aix_use_runtimelinking
=no
12874 exp_sym_flag
='-Bexport'
12877 # If we're using GNU nm, then we don't want the "-C" option.
12878 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12879 # Also, AIX nm treats weak defined symbols like other global
12880 # defined symbols, whereas GNU nm marks them as "W".
12881 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
12882 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'
12884 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'
12886 aix_use_runtimelinking
=no
12888 # Test if we are trying to use run time linking or normal
12889 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12890 # need to do runtime linking.
12891 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
12892 for ld_flag
in $LDFLAGS; do
12893 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
12894 aix_use_runtimelinking
=yes
12901 exp_sym_flag
='-bexport'
12902 no_entry_flag
='-bnoentry'
12905 # When large executables or shared objects are built, AIX ld can
12906 # have problems creating the table of contents. If linking a library
12907 # or program results in "error TOC overflow" add -mminimal-toc to
12908 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12909 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12912 hardcode_direct_GO
=yes
12913 hardcode_direct_absolute_GO
=yes
12914 hardcode_libdir_separator_GO
=':'
12915 link_all_deplibs_GO
=yes
12916 file_list_spec_GO
='${wl}-f,'
12918 if test "$GCC" = yes; then
12919 case $host_os in aix4.
[012]|aix4.
[012].
*)
12920 # We only want to do this on AIX 4.2 and lower, the check
12921 # below for broken collect2 doesn't work under 4.3+
12922 collect2name
=`${CC} -print-prog-name=collect2`
12923 if test -f "$collect2name" &&
12924 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
12926 # We have reworked collect2
12929 # We have old collect2
12930 hardcode_direct_GO
=unsupported
12931 # It fails to find uninstalled libraries when the uninstalled
12932 # path is not listed in the libpath. Setting hardcode_minus_L
12933 # to unsupported forces relinking
12934 hardcode_minus_L_GO
=yes
12935 hardcode_libdir_flag_spec_GO
='-L$libdir'
12936 hardcode_libdir_separator_GO
=
12940 shared_flag
='-shared'
12941 if test "$aix_use_runtimelinking" = yes; then
12942 shared_flag
="$shared_flag "'${wl}-G'
12946 if test "$host_cpu" = ia64
; then
12947 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12948 # chokes on -Wl,-G. The following line is correct:
12951 if test "$aix_use_runtimelinking" = yes; then
12952 shared_flag
='${wl}-G'
12954 shared_flag
='${wl}-bM:SRE'
12959 export_dynamic_flag_spec_GO
='${wl}-bexpall'
12960 # It seems that -bexpall does not export symbols beginning with
12961 # underscore (_), so it is better to generate a list of symbols to export.
12962 always_export_symbols_GO
=yes
12963 if test "$aix_use_runtimelinking" = yes; then
12964 # Warning - without using the other runtime loading flags (-brtl),
12965 # -berok will link without error, but may produce a broken library.
12966 allow_undefined_flag_GO
='-berok'
12967 # Determine the default libpath from the value encoded in an
12968 # empty executable.
12969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12970 /* end confdefs.h. */
12980 if ac_fn_c_try_link
"$LINENO"; then :
12982 lt_aix_libpath_sed
='
12983 /Import File Strings/,/^$/ {
12989 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12990 # Check for a 64-bit object if we didn't find anything.
12991 if test -z "$aix_libpath"; then
12992 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12995 rm -f core conftest.err conftest.
$ac_objext \
12996 conftest
$ac_exeext conftest.
$ac_ext
12997 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
12999 hardcode_libdir_flag_spec_GO
='${wl}-blibpath:$libdir:'"$aix_libpath"
13000 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"
13002 if test "$host_cpu" = ia64
; then
13003 hardcode_libdir_flag_spec_GO
='${wl}-R $libdir:/usr/lib:/lib'
13004 allow_undefined_flag_GO
="-z nodefs"
13005 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"
13007 # Determine the default libpath from the value encoded in an
13008 # empty executable.
13009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13010 /* end confdefs.h. */
13020 if ac_fn_c_try_link
"$LINENO"; then :
13022 lt_aix_libpath_sed
='
13023 /Import File Strings/,/^$/ {
13029 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13030 # Check for a 64-bit object if we didn't find anything.
13031 if test -z "$aix_libpath"; then
13032 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13035 rm -f core conftest.err conftest.
$ac_objext \
13036 conftest
$ac_exeext conftest.
$ac_ext
13037 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13039 hardcode_libdir_flag_spec_GO
='${wl}-blibpath:$libdir:'"$aix_libpath"
13040 # Warning - without using the other run time loading flags,
13041 # -berok will link without error, but may produce a broken library.
13042 no_undefined_flag_GO
=' ${wl}-bernotok'
13043 allow_undefined_flag_GO
=' ${wl}-berok'
13044 if test "$with_gnu_ld" = yes; then
13045 # We only use this code for GNU lds that support --whole-archive.
13046 whole_archive_flag_spec_GO
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13048 # Exported symbols can be pulled into shared objects from archives
13049 whole_archive_flag_spec_GO
='$convenience'
13051 archive_cmds_need_lc_GO
=yes
13052 # This is similar to how AIX traditionally builds its shared libraries.
13053 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'
13061 # see comment about AmigaOS4 .so support
13062 archive_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13063 archive_expsym_cmds_GO
=''
13066 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)'
13067 hardcode_libdir_flag_spec_GO
='-L$libdir'
13068 hardcode_minus_L_GO
=yes
13074 export_dynamic_flag_spec_GO
=-rdynamic
13077 cygwin
* | mingw
* | pw32
* | cegcc
*)
13078 # When not using gcc, we currently assume that we are using
13079 # Microsoft Visual C++.
13080 # hardcode_libdir_flag_spec is actually meaningless, as there is
13081 # no search path for DLLs.
13082 hardcode_libdir_flag_spec_GO
=' '
13083 allow_undefined_flag_GO
=unsupported
13084 # Tell ltmain to make .lib files, not .a files.
13086 # Tell ltmain to make .dll files, not .so files.
13088 # FIXME: Setting linknames here is a bad hack.
13089 archive_cmds_GO
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13090 # The linker will automatically build a .lib file if we build a DLL.
13091 old_archive_from_new_cmds_GO
='true'
13092 # FIXME: Should let the user specify the lib program.
13093 old_archive_cmds_GO
='lib -OUT:$oldlib$oldobjs$old_deplibs'
13094 fix_srcfile_path_GO
='`cygpath -w "$srcfile"`'
13095 enable_shared_with_static_runtimes_GO
=yes
13098 darwin
* | rhapsody
*)
13101 archive_cmds_need_lc_GO
=no
13102 hardcode_direct_GO
=no
13103 hardcode_automatic_GO
=yes
13104 hardcode_shlibpath_var_GO
=unsupported
13105 if test "$lt_cv_ld_force_load" = "yes"; then
13106 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\"`'
13108 whole_archive_flag_spec_GO
=''
13110 link_all_deplibs_GO
=yes
13111 allow_undefined_flag_GO
="$_lt_dar_allow_undefined"
13112 case $cc_basename in
13113 ifort
*) _lt_dar_can_shared
=yes ;;
13114 *) _lt_dar_can_shared
=$GCC ;;
13116 if test "$_lt_dar_can_shared" = "yes"; then
13117 output_verbose_link_cmd
=func_echo_all
13118 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}"
13119 module_cmds_GO
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13120 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}"
13121 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}"
13130 archive_cmds_GO
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13131 hardcode_libdir_flag_spec_GO
='-L$libdir'
13132 hardcode_shlibpath_var_GO
=no
13135 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13136 # support. Future versions do this automatically, but an explicit c++rt0.o
13137 # does not break anything, and helps significantly (at the cost of a little
13140 archive_cmds_GO
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13141 hardcode_libdir_flag_spec_GO
='-R$libdir'
13142 hardcode_direct_GO
=yes
13143 hardcode_shlibpath_var_GO
=no
13146 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13148 archive_cmds_GO
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13149 hardcode_direct_GO
=yes
13150 hardcode_minus_L_GO
=yes
13151 hardcode_shlibpath_var_GO
=no
13154 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13155 freebsd
* | dragonfly
*)
13156 archive_cmds_GO
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13157 hardcode_libdir_flag_spec_GO
='-R$libdir'
13158 hardcode_direct_GO
=yes
13159 hardcode_shlibpath_var_GO
=no
13163 if test "$GCC" = yes; then
13164 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'
13166 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'
13168 hardcode_libdir_flag_spec_GO
='${wl}+b ${wl}$libdir'
13169 hardcode_libdir_separator_GO
=:
13170 hardcode_direct_GO
=yes
13172 # hardcode_minus_L: Not really in the search PATH,
13173 # but as the default location of the library.
13174 hardcode_minus_L_GO
=yes
13175 export_dynamic_flag_spec_GO
='${wl}-E'
13179 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
13180 archive_cmds_GO
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13182 archive_cmds_GO
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13184 if test "$with_gnu_ld" = no
; then
13185 hardcode_libdir_flag_spec_GO
='${wl}+b ${wl}$libdir'
13186 hardcode_libdir_flag_spec_ld_GO
='+b $libdir'
13187 hardcode_libdir_separator_GO
=:
13188 hardcode_direct_GO
=yes
13189 hardcode_direct_absolute_GO
=yes
13190 export_dynamic_flag_spec_GO
='${wl}-E'
13191 # hardcode_minus_L: Not really in the search PATH,
13192 # but as the default location of the library.
13193 hardcode_minus_L_GO
=yes
13198 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
13201 archive_cmds_GO
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13204 archive_cmds_GO
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13207 archive_cmds_GO
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13213 archive_cmds_GO
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13216 archive_cmds_GO
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13219 archive_cmds_GO
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13223 if test "$with_gnu_ld" = no
; then
13224 hardcode_libdir_flag_spec_GO
='${wl}+b ${wl}$libdir'
13225 hardcode_libdir_separator_GO
=:
13229 hardcode_direct_GO
=no
13230 hardcode_shlibpath_var_GO
=no
13233 hardcode_direct_GO
=yes
13234 hardcode_direct_absolute_GO
=yes
13235 export_dynamic_flag_spec_GO
='${wl}-E'
13237 # hardcode_minus_L: Not really in the search PATH,
13238 # but as the default location of the library.
13239 hardcode_minus_L_GO
=yes
13245 irix5
* | irix6
* | nonstopux
*)
13246 if test "$GCC" = yes; then
13247 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'
13248 # Try to use the -exported_symbol ld option, if it does not
13249 # work, assume that -exports_file does not work either and
13250 # implicitly export all symbols.
13251 save_LDFLAGS
="$LDFLAGS"
13252 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13254 /* end confdefs.h. */
13257 if ac_fn_c_try_link
"$LINENO"; then :
13258 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'
13261 rm -f core conftest.err conftest.
$ac_objext \
13262 conftest
$ac_exeext conftest.
$ac_ext
13263 LDFLAGS
="$save_LDFLAGS"
13265 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'
13266 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'
13268 archive_cmds_need_lc_GO
='no'
13269 hardcode_libdir_flag_spec_GO
='${wl}-rpath ${wl}$libdir'
13270 hardcode_libdir_separator_GO
=:
13271 inherit_rpath_GO
=yes
13272 link_all_deplibs_GO
=yes
13276 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
13277 archive_cmds_GO
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13279 archive_cmds_GO
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13281 hardcode_libdir_flag_spec_GO
='-R$libdir'
13282 hardcode_direct_GO
=yes
13283 hardcode_shlibpath_var_GO
=no
13287 archive_cmds_GO
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13288 hardcode_direct_GO
=yes
13289 hardcode_libdir_flag_spec_GO
='${wl}-rpath ${wl}$libdir'
13290 hardcode_libdir_separator_GO
=:
13291 hardcode_shlibpath_var_GO
=no
13298 if test -f /usr
/libexec
/ld.so
; then
13299 hardcode_direct_GO
=yes
13300 hardcode_shlibpath_var_GO
=no
13301 hardcode_direct_absolute_GO
=yes
13302 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13303 archive_cmds_GO
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13304 archive_expsym_cmds_GO
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13305 hardcode_libdir_flag_spec_GO
='${wl}-rpath,$libdir'
13306 export_dynamic_flag_spec_GO
='${wl}-E'
13309 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
13310 archive_cmds_GO
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13311 hardcode_libdir_flag_spec_GO
='-R$libdir'
13314 archive_cmds_GO
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13315 hardcode_libdir_flag_spec_GO
='${wl}-rpath,$libdir'
13325 hardcode_libdir_flag_spec_GO
='-L$libdir'
13326 hardcode_minus_L_GO
=yes
13327 allow_undefined_flag_GO
=unsupported
13328 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'
13329 old_archive_from_new_cmds_GO
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13333 if test "$GCC" = yes; then
13334 allow_undefined_flag_GO
=' ${wl}-expect_unresolved ${wl}\*'
13335 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'
13337 allow_undefined_flag_GO
=' -expect_unresolved \*'
13338 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'
13340 archive_cmds_need_lc_GO
='no'
13341 hardcode_libdir_flag_spec_GO
='${wl}-rpath ${wl}$libdir'
13342 hardcode_libdir_separator_GO
=:
13345 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
13346 if test "$GCC" = yes; then
13347 allow_undefined_flag_GO
=' ${wl}-expect_unresolved ${wl}\*'
13348 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'
13349 hardcode_libdir_flag_spec_GO
='${wl}-rpath ${wl}$libdir'
13351 allow_undefined_flag_GO
=' -expect_unresolved \*'
13352 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'
13353 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~
13354 $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'
13356 # Both c and cxx compiler support -rpath directly
13357 hardcode_libdir_flag_spec_GO
='-rpath $libdir'
13359 archive_cmds_need_lc_GO
='no'
13360 hardcode_libdir_separator_GO
=:
13364 no_undefined_flag_GO
=' -z defs'
13365 if test "$GCC" = yes; then
13367 archive_cmds_GO
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13368 archive_expsym_cmds_GO
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13369 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13371 case `$CC -V 2>&1` in
13374 archive_cmds_GO
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13375 archive_expsym_cmds_GO
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13376 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13380 archive_cmds_GO
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13381 archive_expsym_cmds_GO
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13382 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13386 hardcode_libdir_flag_spec_GO
='-R$libdir'
13387 hardcode_shlibpath_var_GO
=no
13389 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
13391 # The compiler driver will combine and reorder linker options,
13392 # but understands `-z linker_flag'. GCC discards it without `$wl',
13393 # but is careful enough not to reorder.
13394 # Supported since Solaris 2.6 (maybe 2.5.1?)
13395 if test "$GCC" = yes; then
13396 whole_archive_flag_spec_GO
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13398 whole_archive_flag_spec_GO
='-z allextract$convenience -z defaultextract'
13402 link_all_deplibs_GO
=yes
13406 if test "x$host_vendor" = xsequent
; then
13407 # Use $CC to link under sequent, because it throws in some extra .o
13408 # files that make .init and .fini sections work.
13409 archive_cmds_GO
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13411 archive_cmds_GO
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13413 hardcode_libdir_flag_spec_GO
='-L$libdir'
13414 hardcode_direct_GO
=yes
13415 hardcode_minus_L_GO
=yes
13416 hardcode_shlibpath_var_GO
=no
13420 case $host_vendor in
13422 archive_cmds_GO
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13423 hardcode_direct_GO
=yes # is this really true???
13426 ## LD is ld it makes a PLAMLIB
13427 ## CC just makes a GrossModule.
13428 archive_cmds_GO
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13429 reload_cmds_GO
='$CC -r -o $output$reload_objs'
13430 hardcode_direct_GO
=no
13433 archive_cmds_GO
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13434 hardcode_direct_GO
=no
#Motorola manual says yes, but my tests say they lie
13437 runpath_var
='LD_RUN_PATH'
13438 hardcode_shlibpath_var_GO
=no
13442 archive_cmds_GO
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13443 hardcode_shlibpath_var_GO
=no
13444 export_dynamic_flag_spec_GO
='-Bexport'
13448 if test -d /usr
/nec
; then
13449 archive_cmds_GO
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13450 hardcode_shlibpath_var_GO
=no
13451 runpath_var
=LD_RUN_PATH
13452 hardcode_runpath_var
=yes
13457 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
13458 no_undefined_flag_GO
='${wl}-z,text'
13459 archive_cmds_need_lc_GO
=no
13460 hardcode_shlibpath_var_GO
=no
13461 runpath_var
='LD_RUN_PATH'
13463 if test "$GCC" = yes; then
13464 archive_cmds_GO
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13465 archive_expsym_cmds_GO
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13467 archive_cmds_GO
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13468 archive_expsym_cmds_GO
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13472 sysv5
* | sco3.2v5
* | sco5v6
*)
13473 # Note: We can NOT use -z defs as we might desire, because we do not
13474 # link with -lc, and that would cause any symbols used from libc to
13475 # always be unresolved, which means just about no library would
13476 # ever link correctly. If we're not using GNU ld we use -z text
13477 # though, which does catch some bad symbols but isn't as heavy-handed
13479 no_undefined_flag_GO
='${wl}-z,text'
13480 allow_undefined_flag_GO
='${wl}-z,nodefs'
13481 archive_cmds_need_lc_GO
=no
13482 hardcode_shlibpath_var_GO
=no
13483 hardcode_libdir_flag_spec_GO
='${wl}-R,$libdir'
13484 hardcode_libdir_separator_GO
=':'
13485 link_all_deplibs_GO
=yes
13486 export_dynamic_flag_spec_GO
='${wl}-Bexport'
13487 runpath_var
='LD_RUN_PATH'
13489 if test "$GCC" = yes; then
13490 archive_cmds_GO
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13491 archive_expsym_cmds_GO
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13493 archive_cmds_GO
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13494 archive_expsym_cmds_GO
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13499 archive_cmds_GO
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13500 hardcode_libdir_flag_spec_GO
='-L$libdir'
13501 hardcode_shlibpath_var_GO
=no
13509 if test x
$host_vendor = xsni
; then
13511 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
13512 export_dynamic_flag_spec_GO
='${wl}-Blargedynsym'
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
13519 $as_echo "$ld_shlibs_GO" >&6; }
13520 test "$ld_shlibs_GO" = no
&& can_build_shared
=no
13522 with_gnu_ld_GO
=$with_gnu_ld
13530 # Do we need to explicitly link libc?
13532 case "x$archive_cmds_need_lc_GO" in
13534 # Assume -lc should be added
13535 archive_cmds_need_lc_GO
=yes
13537 if test "$enable_shared" = yes && test "$GCC" = yes; then
13538 case $archive_cmds_GO in
13540 # FIXME: we may have to deal with multi-command sequences.
13543 # Test whether the compiler implicitly links with -lc since on some
13544 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13545 # to ld, don't add -lc before -lgcc.
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13547 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13548 if ${lt_cv_archive_cmds_need_lc_GO+:} false
; then :
13549 $as_echo_n "(cached) " >&6
13552 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13554 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13555 (eval $ac_compile) 2>&5
13557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13558 test $ac_status = 0; } 2>conftest.err
; then
13561 libobjs
=conftest.
$ac_objext
13563 wl
=$lt_prog_compiler_wl_GO
13564 pic_flag
=$lt_prog_compiler_pic_GO
13570 lt_save_allow_undefined_flag
=$allow_undefined_flag_GO
13571 allow_undefined_flag_GO
=
13572 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13573 (eval $archive_cmds_GO 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
13575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13576 test $ac_status = 0; }
13578 lt_cv_archive_cmds_need_lc_GO
=no
13580 lt_cv_archive_cmds_need_lc_GO
=yes
13582 allow_undefined_flag_GO
=$lt_save_allow_undefined_flag
13584 cat conftest.err
1>&5
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13590 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13591 archive_cmds_need_lc_GO
=$lt_cv_archive_cmds_need_lc_GO
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13662 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13663 hardcode_action_GO
=
13664 if test -n "$hardcode_libdir_flag_spec_GO" ||
13665 test -n "$runpath_var_GO" ||
13666 test "X$hardcode_automatic_GO" = "Xyes" ; then
13668 # We can hardcode non-existent directories.
13669 if test "$hardcode_direct_GO" != no
&&
13670 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13671 # have to relink, otherwise we might link with an installed library
13672 # when we should be linking with a yet-to-be-installed one
13673 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13674 test "$hardcode_minus_L_GO" != no
; then
13675 # Linking always hardcodes the temporary library directory.
13676 hardcode_action_GO
=relink
13678 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13679 hardcode_action_GO
=immediate
13682 # We cannot hardcode anything, or else we can only hardcode existing
13684 hardcode_action_GO
=unsupported
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13687 $as_echo "$hardcode_action_GO" >&6; }
13689 if test "$hardcode_action_GO" = relink ||
13690 test "$inherit_rpath_GO" = yes; then
13691 # Fast installation is not supported
13692 enable_fast_install
=no
13693 elif test "$shlibpath_overrides_runpath" = yes ||
13694 test "$enable_shared" = no
; then
13695 # Fast installation is not necessary
13696 enable_fast_install
=needless
13708 ac_cpp
='$CPP $CPPFLAGS'
13709 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13710 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13711 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13720 ac_config_commands
="$ac_config_commands libtool"
13725 # Only expand once:
13731 CC_FOR_BUILD
=${CC_FOR_BUILD:-gcc}
13734 for ac_prog
in gawk mawk nawk
awk
13736 # Extract the first word of "$ac_prog", so it can be a program name with args.
13737 set dummy
$ac_prog; ac_word
=$2
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13739 $as_echo_n "checking for $ac_word... " >&6; }
13740 if ${ac_cv_prog_AWK+:} false
; then :
13741 $as_echo_n "(cached) " >&6
13743 if test -n "$AWK"; then
13744 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
13746 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13747 for as_dir
in $PATH
13750 test -z "$as_dir" && as_dir
=.
13751 for ac_exec_ext
in '' $ac_executable_extensions; do
13752 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13753 ac_cv_prog_AWK
="$ac_prog"
13754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13763 AWK
=$ac_cv_prog_AWK
13764 if test -n "$AWK"; then
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13766 $as_echo "$AWK" >&6; }
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13769 $as_echo "no" >&6; }
13773 test -n "$AWK" && break
13777 WARN_FLAGS
='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13780 # Check whether --enable-werror was given.
13781 if test "${enable_werror+set}" = set; then :
13782 enableval
=$enable_werror;
13785 if test "x$enable_werror" != "xno"; then
13790 glibgo_toolexecdir
=no
13791 glibgo_toolexeclibdir
=no
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13794 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13795 # Check whether --enable-version-specific-runtime-libs was given.
13796 if test "${enable_version_specific_runtime_libs+set}" = set; then :
13797 enableval
=$enable_version_specific_runtime_libs; case "$enableval" in
13798 yes) version_specific_libs
=yes ;;
13799 no
) version_specific_libs
=no
;;
13800 *) as_fn_error $?
"Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13803 version_specific_libs
=no
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13807 $as_echo "$version_specific_libs" >&6; }
13810 # Check whether --with-toolexeclibdir was given.
13811 if test "${with_toolexeclibdir+set}" = set; then :
13812 withval
=$with_toolexeclibdir; case ${with_toolexeclibdir} in
13816 with_toolexeclibdir
=`echo $with_toolexeclibdir | sed 's,/$,,'`
13820 with_toolexeclibdir
=no
13825 # Version-specific runtime libs processing.
13826 if test $version_specific_libs = yes; then
13827 glibgo_toolexecdir
='${libdir}/gcc/${host_alias}'
13828 glibgo_toolexeclibdir
='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13831 # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13832 # Install a library built with a cross compiler in tooldir, not libdir.
13833 if test -n "$with_cross_host" &&
13834 test x
"$with_cross_host" != x
"no"; then
13835 nover_glibgo_toolexecdir
='${exec_prefix}/${host_alias}'
13836 case ${with_toolexeclibdir} in
13838 nover_glibgo_toolexeclibdir
='${toolexecdir}/lib'
13841 nover_glibgo_toolexeclibdir
=${with_toolexeclibdir}
13845 nover_glibgo_toolexecdir
='${libdir}/gcc/${host_alias}'
13846 nover_glibgo_toolexeclibdir
='${libdir}'
13848 multi_os_directory
=`$GOC -print-multi-os-directory`
13849 case $multi_os_directory in
13850 .
) ;; # Avoid trailing /.
13851 *) nover_glibgo_toolexeclibdir
=${nover_glibgo_toolexeclibdir}/${multi_os_directory} ;;
13854 if test x
"$glibgo_toolexecdir" = x
"no"; then
13855 glibgo_toolexecdir
="${nover_glibgo_toolexecdir}"
13856 glibgo_toolexeclibdir
="${nover_glibgo_toolexeclibdir}"
13863 # See if the user wants to configure without libffi. Some
13864 # architectures don't support it. FIXME: We should set a default
13865 # based on the host.
13867 # Check whether --with-libffi was given.
13868 if test "${with_libffi+set}" = set; then :
13869 withval
=$with_libffi; :
13871 with_libffi
=${with_libffi_default-yes}
13877 if test "$with_libffi" != no
; then
13879 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
13881 LIBFFI
=..
/libffi
/libffi_convenience.la
13882 LIBFFIINCS
='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13886 if test "$with_libffi" != "no"; then
13888 USE_LIBFFI_FALSE
='#'
13890 USE_LIBFFI_TRUE
='#'
13895 # See if the user wants to configure without libatomic. This is useful if we are
13896 # on an architecture for which libgo does not need an atomic support library and
13897 # libatomic does not support our C compiler.
13899 # Check whether --with-libatomic was given.
13900 if test "${with_libatomic+set}" = set; then :
13901 withval
=$with_libatomic; :
13903 with_libatomic
=${with_libatomic_default-yes}
13908 if test "$with_libatomic" != no
; then
13909 LIBATOMIC
=..
/libatomic
/libatomic_convenience.la
13913 # Used to tell GNU make to include a file without telling automake to
13915 go_include
="-include"
13918 # All known GOOS values. This is the union of all operating systems
13919 # supported by the gofrontend and all operating systems supported by
13920 # the gc toolchain.
13921 ALLGOOS
="aix android darwin dragonfly freebsd hurd illumos irix js linux netbsd openbsd plan9 rtems solaris windows"
13936 *-*-darwin*) is_darwin
=yes; GOOS
=darwin
;;
13937 *-*-freebsd*) is_freebsd
=yes; GOOS
=freebsd
;;
13938 *-*-irix6*) is_irix
=yes; GOOS
=irix
;;
13939 *-*-linux*) is_linux
=yes; GOOS
=linux
;;
13940 *-*-netbsd*) is_netbsd
=yes; GOOS
=netbsd
;;
13941 *-*-openbsd*) is_openbsd
=yes; GOOS
=openbsd
;;
13942 *-*-dragonfly*) is_dragonfly
=yes; GOOS
=dragonfly
;;
13943 *-*-rtems*) is_rtems
=yes; GOOS
=rtems
;;
13944 *-*-solaris2*) is_solaris
=yes; GOOS
=solaris
;;
13945 *-*-aix*) is_aix
=yes; GOOS
=aix
;;
13946 *-*-gnu*) is_hurd
=yes; GOOS
=hurd
;;
13948 if test $is_darwin = yes; then
13949 LIBGO_IS_DARWIN_TRUE
=
13950 LIBGO_IS_DARWIN_FALSE
='#'
13952 LIBGO_IS_DARWIN_TRUE
='#'
13953 LIBGO_IS_DARWIN_FALSE
=
13956 if test $is_freebsd = yes; then
13957 LIBGO_IS_FREEBSD_TRUE
=
13958 LIBGO_IS_FREEBSD_FALSE
='#'
13960 LIBGO_IS_FREEBSD_TRUE
='#'
13961 LIBGO_IS_FREEBSD_FALSE
=
13964 if test $is_irix = yes; then
13965 LIBGO_IS_IRIX_TRUE
=
13966 LIBGO_IS_IRIX_FALSE
='#'
13968 LIBGO_IS_IRIX_TRUE
='#'
13969 LIBGO_IS_IRIX_FALSE
=
13972 if test $is_linux = yes; then
13973 LIBGO_IS_LINUX_TRUE
=
13974 LIBGO_IS_LINUX_FALSE
='#'
13976 LIBGO_IS_LINUX_TRUE
='#'
13977 LIBGO_IS_LINUX_FALSE
=
13980 if test $is_netbsd = yes; then
13981 LIBGO_IS_NETBSD_TRUE
=
13982 LIBGO_IS_NETBSD_FALSE
='#'
13984 LIBGO_IS_NETBSD_TRUE
='#'
13985 LIBGO_IS_NETBSD_FALSE
=
13988 if test $is_openbsd = yes; then
13989 LIBGO_IS_OPENBSD_TRUE
=
13990 LIBGO_IS_OPENBSD_FALSE
='#'
13992 LIBGO_IS_OPENBSD_TRUE
='#'
13993 LIBGO_IS_OPENBSD_FALSE
=
13996 if test $is_dragonfly = yes; then
13997 LIBGO_IS_DRAGONFLY_TRUE
=
13998 LIBGO_IS_DRAGONFLY_FALSE
='#'
14000 LIBGO_IS_DRAGONFLY_TRUE
='#'
14001 LIBGO_IS_DRAGONFLY_FALSE
=
14004 if test $is_rtems = yes; then
14005 LIBGO_IS_RTEMS_TRUE
=
14006 LIBGO_IS_RTEMS_FALSE
='#'
14008 LIBGO_IS_RTEMS_TRUE
='#'
14009 LIBGO_IS_RTEMS_FALSE
=
14012 if test $is_solaris = yes; then
14013 LIBGO_IS_SOLARIS_TRUE
=
14014 LIBGO_IS_SOLARIS_FALSE
='#'
14016 LIBGO_IS_SOLARIS_TRUE
='#'
14017 LIBGO_IS_SOLARIS_FALSE
=
14020 if test $is_aix = yes; then
14022 LIBGO_IS_AIX_FALSE
='#'
14024 LIBGO_IS_AIX_TRUE
='#'
14025 LIBGO_IS_AIX_FALSE
=
14028 if test $is_hurd = yes; then
14029 LIBGO_IS_HURD_TRUE
=
14030 LIBGO_IS_HURD_FALSE
='#'
14032 LIBGO_IS_HURD_TRUE
='#'
14033 LIBGO_IS_HURD_FALSE
=
14036 if test $is_darwin = yes -o $is_dragonfly = yes -o $is_freebsd = yes -o $is_netbsd = yes -o $is_openbsd = yes; then
14038 LIBGO_IS_BSD_FALSE
='#'
14040 LIBGO_IS_BSD_TRUE
='#'
14041 LIBGO_IS_BSD_FALSE
=
14049 *-*-rtems*) USE_DEJAGNU
=yes ;;
14051 *) USE_DEJAGNU
=yes ;;
14055 # All known GOARCH values. This is the union of all architectures
14056 # supported by the gofrontend and all architectures supported by the
14058 # To add a new architecture:
14059 # - add it to this list
14060 # - if appropriate, add an entry to ALLGOARCHFAMILY below
14061 # - add an entry to the case on ${host} below to set GOARCH
14062 # - update goarchList in libgo/go/go/build/syslist.go
14063 # - update goarch.sh to report the values for this architecture
14064 # - update go-set-goarch in gcc/testsuite/go.test/go-test.exp
14065 # - update ptrSizeMap and intSizeMap in libgo/go/cmd/cgo/main.go
14066 # - update arch lists in libgo/match.sh
14067 # - update arch lists in libgo/testsuite/gotest
14068 # - update +build lines in several places
14069 # - libgo/go/runtime/lfstack_NNbit.go
14070 # - libgo/go/runtime/hashNN.go
14071 # - libgo/go/runtime/unalignedN.go
14072 # - libgo/go/syscall/endian_XX.go
14073 # - possibly others
14074 # - possibly update files in libgo/go/internal/syscall/unix
14075 ALLGOARCH
="386 alpha amd64 amd64p32 arm armbe arm64 arm64be ia64 m68k mips mipsle mips64 mips64le mips64p32 mips64p32le nios2 ppc ppc64 ppc64le riscv riscv64 s390 s390x sh shbe sparc sparc64 wasm"
14077 # All known GOARCH family values.
14078 ALLGOARCHFAMILY
="I386 ALPHA AMD64 ARM ARM64 IA64 M68K MIPS MIPS64 NIOS2 PPC PPC64 RISCV RISCV64 S390 S390X SH SPARC SPARC64 WASM"
14091 arm
*-*-* | strongarm
*-*-* | ep9312
*-*-* | xscale-
*-*)
14099 i
[34567]86-*-* | x86_64-
*-*)
14100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14101 /* end confdefs.h. */
14108 if ac_fn_c_try_compile
"$LINENO"; then :
14111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14112 /* end confdefs.h. */
14119 if ac_fn_c_try_compile
"$LINENO"; then :
14124 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14126 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14136 /* end confdefs.h. */
14138 #if _MIPS_SIM != _ABIO32
14143 if ac_fn_c_try_compile
"$LINENO"; then :
14146 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14147 /* end confdefs.h. */
14149 #if _MIPS_SIM != _ABIN32
14154 if ac_fn_c_try_compile
"$LINENO"; then :
14157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14158 /* end confdefs.h. */
14160 #if _MIPS_SIM != _ABI64
14165 if ac_fn_c_try_compile
"$LINENO"; then :
14168 as_fn_error $?
"unknown MIPS ABI" "$LINENO" 5
14171 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14173 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14175 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14176 case "$mips_abi" in
14177 "o32") GOARCH
=mips
;;
14178 "n32") GOARCH
=mips64p32
;;
14179 "n64") GOARCH
=mips64
;;
14183 GOARCH
="${GOARCH}le"
14190 rs6000
*-*-* | powerpc
*-*-*)
14191 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14192 /* end confdefs.h. */
14199 if ac_fn_c_try_compile
"$LINENO"; then :
14203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14204 /* end confdefs.h. */
14206 #if defined(_BIG_ENDIAN) || defined(__BIG_ENDIAN__)
14211 if ac_fn_c_try_compile
"$LINENO"; then :
14216 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14218 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14224 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14225 /* end confdefs.h. */
14227 #if defined(__s390x__)
14232 if ac_fn_c_try_compile
"$LINENO"; then :
14237 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14239 sh3eb
*-*-* | sh4eb
*-*-*)
14242 sh3
*-*-* | sh4
*-*-*)
14246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14247 /* end confdefs.h. */
14249 #if defined(__sparcv9) || defined(__arch64__)
14254 if ac_fn_c_try_compile
"$LINENO"; then :
14259 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14266 if test "$GOARCH" = "386" -o "$GOARCH" = "amd64" -o "$GOARCH" = "amd64p32"; then
14268 LIBGO_IS_X86_FALSE
='#'
14270 LIBGO_IS_X86_TRUE
='#'
14271 LIBGO_IS_X86_FALSE
=
14275 FUNCTION_DESCRIPTORS
=false
14277 rs6000
*-*-* | powerpc
*-*-*)
14278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14279 /* end confdefs.h. */
14286 if ac_fn_c_try_compile
"$LINENO"; then :
14287 FUNCTION_DESCRIPTORS
=false
14289 FUNCTION_DESCRIPTORS
=true
14291 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14296 GO_LIBCALL_OS_FILE
=
14297 GO_LIBCALL_OS_ARCH_FILE
=
14298 GO_SYSCALL_OS_FILE
=
14299 GO_SYSCALL_OS_ARCH_FILE
=
14300 if test -f "${srcdir}/go/syscall/libcall_${GOOS}.go"; then
14301 GO_LIBCALL_OS_FILE
="go/syscall/libcall_${GOOS}.go"
14303 if test -f "${srcdir}/go/syscall/libcall_${GOOS}_${GOARCH}.go"; then
14304 GO_LIBCALL_OS_ARCH_FILE
="go/syscall/libcall_${GOOS}_${GOARCH}.go"
14306 if test -f "${srcdir}/go/syscall/syscall_${GOOS}.go"; then
14307 GO_SYSCALL_OS_FILE
="go/syscall/syscall_${GOOS}.go"
14309 if test -f "${srcdir}/go/syscall/syscall_${GOOS}_${GOARCH}.go"; then
14310 GO_SYSCALL_OS_ARCH_FILE
="go/syscall/syscall_${GOOS}_${GOARCH}.go"
14317 OSCFLAGS
="-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
14320 # IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
14321 # msghdr in <sys/socket.h>.
14322 OSCFLAGS
="$OSCFLAGS -D_XOPEN_SOURCE=500"
14325 # Solaris 10+ needs this so struct msghdr gets the msg_control
14326 # etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=600 as
14327 # above doesn't work with C99.
14328 OSCFLAGS
="$OSCFLAGS -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
14334 test -z "$HWCAP_CFLAGS" && HWCAP_CFLAGS
=''
14336 # Restrict the test to Solaris, other assemblers (e.g. AIX as) have -nH
14337 # with a different meaning.
14338 case ${target_os} in
14340 ac_save_CFLAGS
="$CFLAGS"
14341 CFLAGS
="$CFLAGS -Wa,-nH"
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as that supports -Wa,-nH" >&5
14344 $as_echo_n "checking for as that supports -Wa,-nH... " >&6; }
14345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14346 /* end confdefs.h. */
14356 if ac_fn_c_try_compile
"$LINENO"; then :
14361 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14362 if test "$ac_hwcap_flags" = "yes"; then
14363 HWCAP_CFLAGS
="-Wa,-nH $HWCAP_CFLAGS"
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_flags" >&5
14366 $as_echo "$ac_hwcap_flags" >&6; }
14368 CFLAGS
="$ac_save_CFLAGS"
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
14376 $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
14377 if ${libgo_cv_c_split_stack_supported+:} false
; then :
14378 $as_echo_n "(cached) " >&6
14380 CFLAGS_hold
=$CFLAGS
14381 CFLAGS
="$CFLAGS -fsplit-stack"
14382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14383 /* end confdefs.h. */
14386 if ac_fn_c_try_compile
"$LINENO"; then :
14387 libgo_cv_c_split_stack_supported
=yes
14389 libgo_cv_c_split_stack_supported
=no
14391 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14392 CFLAGS
=$CFLAGS_hold
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
14395 $as_echo "$libgo_cv_c_split_stack_supported" >&6; }
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split/non-split linked together" >&5
14398 $as_echo_n "checking whether linker supports split/non-split linked together... " >&6; }
14399 if ${libgo_cv_c_linker_split_non_split+:} false
; then :
14400 $as_echo_n "(cached) " >&6
14402 cat > conftest1.c
<< EOF
14404 int main() { f(); return 0; }
14406 cat > conftest2.c
<< EOF
14409 $CC -c -fsplit-stack $CFLAGS $CPPFLAGS conftest1.c
>/dev
/null
2>&1
14410 $CC -c $CFLAGS $CPPFLAGS conftest2.c
> /dev
/null
2>&1
14411 if $CC -o conftest conftest1.
$ac_objext conftest2.
$ac_objext > /dev
/null
2>&1; then
14412 libgo_cv_c_linker_split_non_split
=yes
14414 libgo_cv_c_linker_split_non_split
=no
14416 rm -f conftest1.
* conftest2.
* conftest
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_split_non_split" >&5
14419 $as_echo "$libgo_cv_c_linker_split_non_split" >&6; }
14421 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = yes; then
14422 SPLIT_STACK
=-fsplit-stack
14424 $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
14430 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = yes; then
14431 USING_SPLIT_STACK_TRUE
=
14432 USING_SPLIT_STACK_FALSE
='#'
14434 USING_SPLIT_STACK_TRUE
='#'
14435 USING_SPLIT_STACK_FALSE
=
14439 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = no
; then
14440 GO_SPLIT_STACK
=-fno-split-stack
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
14447 $as_echo_n "checking whether linker supports split stack... " >&6; }
14448 if ${libgo_cv_c_linker_supports_split_stack+:} false
; then :
14449 $as_echo_n "(cached) " >&6
14451 libgo_cv_c_linker_supports_split_stack
=no
14452 if $GOC -Wl,--help 2>/dev
/null |
grep split-stack-adjust-size
>/dev
/null
2>&1; then
14453 libgo_cv_c_linker_supports_split_stack
=yes
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
14457 $as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
14458 if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
14460 $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is llgo" >&5
14465 $as_echo_n "checking whether compiler is llgo... " >&6; }
14466 if ${libgo_cv_c_goc_is_llgo+:} false
; then :
14467 $as_echo_n "(cached) " >&6
14469 libgo_cv_c_goc_is_llgo
=no
14470 if $GOC -dumpversion 2>/dev
/null |
grep llgo
>/dev
/null
2>&1; then
14471 libgo_cv_c_goc_is_llgo
=yes
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_goc_is_llgo" >&5
14475 $as_echo "$libgo_cv_c_goc_is_llgo" >&6; }
14476 if test "$libgo_cv_c_goc_is_llgo" = yes; then
14478 GOC_IS_LLGO_FALSE
='#'
14480 GOC_IS_LLGO_TRUE
='#'
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
14487 $as_echo_n "checking for sqrt in -lm... " >&6; }
14488 if ${ac_cv_lib_m_sqrt+:} false
; then :
14489 $as_echo_n "(cached) " >&6
14491 ac_check_lib_save_LIBS
=$LIBS
14493 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14494 /* end confdefs.h. */
14496 /* Override any GCC internal prototype to avoid an error.
14497 Use char because int might match the return type of a GCC
14498 builtin and then its argument prototype would still apply. */
14511 if ac_fn_c_try_link
"$LINENO"; then :
14512 ac_cv_lib_m_sqrt
=yes
14514 ac_cv_lib_m_sqrt
=no
14516 rm -f core conftest.err conftest.
$ac_objext \
14517 conftest
$ac_exeext conftest.
$ac_ext
14518 LIBS
=$ac_check_lib_save_LIBS
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14521 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
14522 if test "x$ac_cv_lib_m_sqrt" = xyes
; then :
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14529 $as_echo_n "checking for socket libraries... " >&6; }
14530 if ${libgo_cv_lib_sockets+:} false
; then :
14531 $as_echo_n "(cached) " >&6
14533 libgo_cv_lib_sockets
=
14534 libgo_check_both
=no
14535 ac_fn_c_check_func
"$LINENO" "connect" "ac_cv_func_connect"
14536 if test "x$ac_cv_func_connect" = xyes
; then :
14537 libgo_check_socket
=no
14539 libgo_check_socket
=yes
14542 if test "$libgo_check_socket" = "yes"; then
14543 unset ac_cv_func_connect
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14545 $as_echo_n "checking for main in -lsocket... " >&6; }
14546 if ${ac_cv_lib_socket_main+:} false
; then :
14547 $as_echo_n "(cached) " >&6
14549 ac_check_lib_save_LIBS
=$LIBS
14550 LIBS
="-lsocket $LIBS"
14551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14552 /* end confdefs.h. */
14563 if ac_fn_c_try_link
"$LINENO"; then :
14564 ac_cv_lib_socket_main
=yes
14566 ac_cv_lib_socket_main
=no
14568 rm -f core conftest.err conftest.
$ac_objext \
14569 conftest
$ac_exeext conftest.
$ac_ext
14570 LIBS
=$ac_check_lib_save_LIBS
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14573 $as_echo "$ac_cv_lib_socket_main" >&6; }
14574 if test "x$ac_cv_lib_socket_main" = xyes
; then :
14575 libgo_cv_lib_sockets
="-lsocket"
14577 libgo_check_both
=yes
14581 if test "$libgo_check_both" = "yes"; then
14582 libgo_old_libs
=$LIBS
14583 LIBS
="$LIBS -lsocket -lnsl"
14584 unset ac_cv_func_accept
14585 ac_fn_c_check_func
"$LINENO" "accept" "ac_cv_func_accept"
14586 if test "x$ac_cv_func_accept" = xyes
; then :
14588 libgo_cv_lib_sockets
="-lsocket -lnsl"
14591 unset ac_cv_func_accept
14592 LIBS
=$libgo_old_libs
14594 unset ac_cv_func_gethostbyname
14595 libgo_old_libs
="$LIBS"
14596 ac_fn_c_check_func
"$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14597 if test "x$ac_cv_func_gethostbyname" = xyes
; then :
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14601 $as_echo_n "checking for main in -lnsl... " >&6; }
14602 if ${ac_cv_lib_nsl_main+:} false
; then :
14603 $as_echo_n "(cached) " >&6
14605 ac_check_lib_save_LIBS
=$LIBS
14607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14608 /* end confdefs.h. */
14619 if ac_fn_c_try_link
"$LINENO"; then :
14620 ac_cv_lib_nsl_main
=yes
14622 ac_cv_lib_nsl_main
=no
14624 rm -f core conftest.err conftest.
$ac_objext \
14625 conftest
$ac_exeext conftest.
$ac_ext
14626 LIBS
=$ac_check_lib_save_LIBS
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14629 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14630 if test "x$ac_cv_lib_nsl_main" = xyes
; then :
14631 libgo_cv_lib_sockets
="$libgo_cv_lib_sockets -lnsl"
14636 unset ac_cv_func_gethostbyname
14637 ac_fn_c_check_func
"$LINENO" "sendfile" "ac_cv_func_sendfile"
14638 if test "x$ac_cv_func_sendfile" = xyes
; then :
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsendfile" >&5
14642 $as_echo_n "checking for main in -lsendfile... " >&6; }
14643 if ${ac_cv_lib_sendfile_main+:} false
; then :
14644 $as_echo_n "(cached) " >&6
14646 ac_check_lib_save_LIBS
=$LIBS
14647 LIBS
="-lsendfile $LIBS"
14648 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14649 /* end confdefs.h. */
14660 if ac_fn_c_try_link
"$LINENO"; then :
14661 ac_cv_lib_sendfile_main
=yes
14663 ac_cv_lib_sendfile_main
=no
14665 rm -f core conftest.err conftest.
$ac_objext \
14666 conftest
$ac_exeext conftest.
$ac_ext
14667 LIBS
=$ac_check_lib_save_LIBS
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_main" >&5
14670 $as_echo "$ac_cv_lib_sendfile_main" >&6; }
14671 if test "x$ac_cv_lib_sendfile_main" = xyes
; then :
14672 libgo_cv_lib_sockets
="$libgo_cv_lib_sockets -lsendfile"
14677 LIBS
=$libgo_old_libs
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
14681 $as_echo "$libgo_cv_lib_sockets" >&6; }
14682 NET_LIBS
="$libgo_cv_lib_sockets"
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
14686 $as_echo_n "checking whether -pthread is supported... " >&6; }
14687 if ${libgo_cv_lib_pthread+:} false
; then :
14688 $as_echo_n "(cached) " >&6
14690 CFLAGS_hold
=$CFLAGS
14691 CFLAGS
="$CFLAGS -pthread -L../libatomic/.libs"
14692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14693 /* end confdefs.h. */
14696 if ac_fn_c_try_compile
"$LINENO"; then :
14697 libgo_cv_lib_pthread
=yes
14699 libgo_cv_lib_pthread
=no
14701 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14702 CFLAGS
=$CFLAGS_hold
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
14705 $as_echo "$libgo_cv_lib_pthread" >&6; }
14707 if test "$libgo_cv_lib_pthread" = yes; then
14708 # RISC-V apparently adds -latomic when using -pthread.
14709 PTHREAD_CFLAGS
="-pthread -L../libatomic/.libs"
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
14715 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
14716 if ${ac_cv_lib_pthread_pthread_create+:} false
; then :
14717 $as_echo_n "(cached) " >&6
14719 ac_check_lib_save_LIBS
=$LIBS
14720 LIBS
="-lpthread $LIBS"
14721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14722 /* end confdefs.h. */
14724 /* Override any GCC internal prototype to avoid an error.
14725 Use char because int might match the return type of a GCC
14726 builtin and then its argument prototype would still apply. */
14730 char pthread_create ();
14734 return pthread_create ();
14739 if ac_fn_c_try_link
"$LINENO"; then :
14740 ac_cv_lib_pthread_pthread_create
=yes
14742 ac_cv_lib_pthread_pthread_create
=no
14744 rm -f core conftest.err conftest.
$ac_objext \
14745 conftest
$ac_exeext conftest.
$ac_ext
14746 LIBS
=$ac_check_lib_save_LIBS
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
14749 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
14750 if test "x$ac_cv_lib_pthread_pthread_create" = xyes
; then :
14751 PTHREAD_LIBS
=-lpthread
14756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
14757 $as_echo_n "checking for library containing sched_yield... " >&6; }
14758 if ${ac_cv_search_sched_yield+:} false
; then :
14759 $as_echo_n "(cached) " >&6
14761 ac_func_search_save_LIBS
=$LIBS
14762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14763 /* end confdefs.h. */
14765 /* Override any GCC internal prototype to avoid an error.
14766 Use char because int might match the return type of a GCC
14767 builtin and then its argument prototype would still apply. */
14771 char sched_yield ();
14775 return sched_yield ();
14780 for ac_lib
in '' rt
; do
14781 if test -z "$ac_lib"; then
14782 ac_res
="none required"
14785 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14787 if ac_fn_c_try_link
"$LINENO"; then :
14788 ac_cv_search_sched_yield
=$ac_res
14790 rm -f core conftest.err conftest.
$ac_objext \
14792 if ${ac_cv_search_sched_yield+:} false
; then :
14796 if ${ac_cv_search_sched_yield+:} false
; then :
14799 ac_cv_search_sched_yield
=no
14801 rm conftest.
$ac_ext
14802 LIBS
=$ac_func_search_save_LIBS
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
14805 $as_echo "$ac_cv_search_sched_yield" >&6; }
14806 ac_res
=$ac_cv_search_sched_yield
14807 if test "$ac_res" != no
; then :
14808 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
14813 $as_echo_n "checking for library containing nanosleep... " >&6; }
14814 if ${ac_cv_search_nanosleep+:} false
; then :
14815 $as_echo_n "(cached) " >&6
14817 ac_func_search_save_LIBS
=$LIBS
14818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14819 /* end confdefs.h. */
14821 /* Override any GCC internal prototype to avoid an error.
14822 Use char because int might match the return type of a GCC
14823 builtin and then its argument prototype would still apply. */
14831 return nanosleep ();
14836 for ac_lib
in '' rt
; do
14837 if test -z "$ac_lib"; then
14838 ac_res
="none required"
14841 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14843 if ac_fn_c_try_link
"$LINENO"; then :
14844 ac_cv_search_nanosleep
=$ac_res
14846 rm -f core conftest.err conftest.
$ac_objext \
14848 if ${ac_cv_search_nanosleep+:} false
; then :
14852 if ${ac_cv_search_nanosleep+:} false
; then :
14855 ac_cv_search_nanosleep
=no
14857 rm conftest.
$ac_ext
14858 LIBS
=$ac_func_search_save_LIBS
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
14861 $as_echo "$ac_cv_search_nanosleep" >&6; }
14862 ac_res
=$ac_cv_search_nanosleep
14863 if test "$ac_res" != no
; then :
14864 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14869 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14870 if ${ac_cv_search_clock_gettime+:} false
; then :
14871 $as_echo_n "(cached) " >&6
14873 ac_func_search_save_LIBS
=$LIBS
14874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14875 /* end confdefs.h. */
14877 /* Override any GCC internal prototype to avoid an error.
14878 Use char because int might match the return type of a GCC
14879 builtin and then its argument prototype would still apply. */
14883 char clock_gettime ();
14887 return clock_gettime ();
14892 for ac_lib
in '' rt
; do
14893 if test -z "$ac_lib"; then
14894 ac_res
="none required"
14897 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14899 if ac_fn_c_try_link
"$LINENO"; then :
14900 ac_cv_search_clock_gettime
=$ac_res
14902 rm -f core conftest.err conftest.
$ac_objext \
14904 if ${ac_cv_search_clock_gettime+:} false
; then :
14908 if ${ac_cv_search_clock_gettime+:} false
; then :
14911 ac_cv_search_clock_gettime
=no
14913 rm conftest.
$ac_ext
14914 LIBS
=$ac_func_search_save_LIBS
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14917 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14918 ac_res
=$ac_cv_search_clock_gettime
14919 if test "$ac_res" != no
; then :
14920 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14926 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14927 if ${ac_cv_c_bigendian+:} false
; then :
14928 $as_echo_n "(cached) " >&6
14930 ac_cv_c_bigendian
=unknown
14931 # See if we're dealing with a universal compiler.
14932 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14933 /* end confdefs.h. */
14934 #ifndef __APPLE_CC__
14935 not a universal capable compiler
14940 if ac_fn_c_try_compile
"$LINENO"; then :
14942 # Check for potential -arch flags. It is not universal unless
14943 # there are at least two -arch flags with different values.
14946 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14947 if test -n "$ac_prev"; then
14949 i?
86 | x86_64 | ppc | ppc64
)
14950 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
14953 ac_cv_c_bigendian
=universal
14959 elif test "x$ac_word" = "x-arch"; then
14964 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14965 if test $ac_cv_c_bigendian = unknown
; then
14966 # See if sys/param.h defines the BYTE_ORDER macro.
14967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14968 /* end confdefs.h. */
14969 #include <sys/types.h>
14970 #include <sys/param.h>
14975 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14976 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14978 bogus endian macros
14985 if ac_fn_c_try_compile
"$LINENO"; then :
14986 # It does; now see whether it defined to BIG_ENDIAN or not.
14987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14988 /* end confdefs.h. */
14989 #include <sys/types.h>
14990 #include <sys/param.h>
14995 #if BYTE_ORDER != BIG_ENDIAN
15003 if ac_fn_c_try_compile
"$LINENO"; then :
15004 ac_cv_c_bigendian
=yes
15006 ac_cv_c_bigendian
=no
15008 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15010 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15012 if test $ac_cv_c_bigendian = unknown
; then
15013 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15014 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15015 /* end confdefs.h. */
15016 #include <limits.h>
15021 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15022 bogus endian macros
15029 if ac_fn_c_try_compile
"$LINENO"; then :
15030 # It does; now see whether it defined to _BIG_ENDIAN or not.
15031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15032 /* end confdefs.h. */
15033 #include <limits.h>
15038 #ifndef _BIG_ENDIAN
15046 if ac_fn_c_try_compile
"$LINENO"; then :
15047 ac_cv_c_bigendian
=yes
15049 ac_cv_c_bigendian
=no
15051 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15053 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15055 if test $ac_cv_c_bigendian = unknown
; then
15056 # Compile a test program.
15057 if test "$cross_compiling" = yes; then :
15058 # Try to guess by grepping values from an object file.
15059 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15060 /* end confdefs.h. */
15061 short int ascii_mm[] =
15062 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15063 short int ascii_ii[] =
15064 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15065 int use_ascii (int i) {
15066 return ascii_mm[i] + ascii_ii[i];
15068 short int ebcdic_ii[] =
15069 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15070 short int ebcdic_mm[] =
15071 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15072 int use_ebcdic (int i) {
15073 return ebcdic_mm[i] + ebcdic_ii[i];
15080 return use_ascii (foo) == use_ebcdic (foo);
15085 if ac_fn_c_try_compile
"$LINENO"; then :
15086 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
15087 ac_cv_c_bigendian
=yes
15089 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
15090 if test "$ac_cv_c_bigendian" = unknown
; then
15091 ac_cv_c_bigendian
=no
15093 # finding both strings is unlikely to happen, but who knows?
15094 ac_cv_c_bigendian
=unknown
15098 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15101 /* end confdefs.h. */
15102 $ac_includes_default
15107 /* Are we little or big endian? From Harbison&Steele. */
15111 char c[sizeof (long int)];
15114 return u.c[sizeof (long int) - 1] == 1;
15120 if ac_fn_c_try_run
"$LINENO"; then :
15121 ac_cv_c_bigendian
=no
15123 ac_cv_c_bigendian
=yes
15125 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15126 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15132 $as_echo "$ac_cv_c_bigendian" >&6; }
15133 case $ac_cv_c_bigendian in #(
15135 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15141 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15145 as_fn_error $?
"unknown endianness
15146 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15152 # Check whether --with-system-libunwind was given.
15153 if test "${with_system_libunwind+set}" = set; then :
15154 withval
=$with_system_libunwind;
15157 # If system-libunwind was not specifically set, pick a default setting.
15158 if test x
$with_system_libunwind = x
; then
15160 ia64-
*-hpux*) with_system_libunwind
=yes ;;
15161 *) with_system_libunwind
=no
;;
15164 # Based on system-libunwind and target, do we have ipinfo?
15165 if test x
$with_system_libunwind = xyes
; then
15167 ia64-
*-*) have_unwind_getipinfo
=no
;;
15168 *) have_unwind_getipinfo
=yes ;;
15171 # Darwin before version 9 does not have _Unwind_GetIPInfo.
15174 *-*-darwin[3-8]|
*-*-darwin[3-8].
*) have_unwind_getipinfo
=no
;;
15175 *) have_unwind_getipinfo
=yes ;;
15180 if test x
$have_unwind_getipinfo = xyes
; then
15182 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
15187 for ac_header
in port.h sched.h semaphore.h sys
/file.h sys
/mman.h syscall.h sys
/epoll.h sys
/event.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
/ptrace.h linux
/reboot.h netinet
/in_syst.h netinet
/ip.h netinet
/ip_mroute.h netinet
/if_ether.h
15189 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15190 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15191 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
15192 cat >>confdefs.h
<<_ACEOF
15193 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15201 for ac_header
in netinet
/icmp6.h
15203 ac_fn_c_check_header_compile
"$LINENO" "netinet/icmp6.h" "ac_cv_header_netinet_icmp6_h" "#include <netinet/in.h>
15206 if test "x$ac_cv_header_netinet_icmp6_h" = xyes
; then :
15207 cat >>confdefs.h
<<_ACEOF
15208 #define HAVE_NETINET_ICMP6_H 1
15216 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
15218 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15219 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_SOCKET_H
15220 #include <sys/socket.h>
15224 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
15225 cat >>confdefs.h
<<_ACEOF
15226 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15234 if test "$ac_cv_header_sys_mman_h" = yes; then
15235 HAVE_SYS_MMAN_H_TRUE
=
15236 HAVE_SYS_MMAN_H_FALSE
='#'
15238 HAVE_SYS_MMAN_H_TRUE
='#'
15239 HAVE_SYS_MMAN_H_FALSE
=
15243 for ac_func
in strerror_r strsignal wait4 mincore setenv unsetenv dl_iterate_phdr memmem
15245 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15246 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15247 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15248 cat >>confdefs.h
<<_ACEOF
15249 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15255 if test "$ac_cv_func_strerror_r" = yes; then
15256 HAVE_STRERROR_R_TRUE
=
15257 HAVE_STRERROR_R_FALSE
='#'
15259 HAVE_STRERROR_R_TRUE
='#'
15260 HAVE_STRERROR_R_FALSE
=
15263 if test "$ac_cv_func_wait4" = yes; then
15265 HAVE_WAIT4_FALSE
='#'
15267 HAVE_WAIT4_TRUE
='#'
15272 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 syscall
tee unlinkat unshare utimensat
15274 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15275 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15276 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15277 cat >>confdefs.h
<<_ACEOF
15278 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15284 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15285 if test "x$ac_cv_type_off_t" = xyes
; then :
15289 cat >>confdefs.h
<<_ACEOF
15290 #define off_t long int
15295 ac_fn_c_check_type
"$LINENO" "loff_t" "ac_cv_type_loff_t" "$ac_includes_default"
15296 if test "x$ac_cv_type_loff_t" = xyes
; then :
15298 cat >>confdefs.h
<<_ACEOF
15299 #define HAVE_LOFF_T 1
15308 for ac_func
in cosl expl logl sinl tanl acosl asinl atanl atan2l expm1l ldexpl log10l log1pl
15310 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15311 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15312 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15313 cat >>confdefs.h
<<_ACEOF
15314 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15322 CFLAGS_hold
="$CFLAGS"
15323 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
15325 LIBS
="$LIBS $PTHREAD_LIBS"
15326 for ac_func
in sem_timedwait
15328 ac_fn_c_check_func
"$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
15329 if test "x$ac_cv_func_sem_timedwait" = xyes
; then :
15330 cat >>confdefs.h
<<_ACEOF
15331 #define HAVE_SEM_TIMEDWAIT 1
15337 CFLAGS
="$CFLAGS_hold"
15341 LIBS
="$LIBS $MATH_LIBS"
15342 for ac_func
in matherr
15344 ac_fn_c_check_func
"$LINENO" "matherr" "ac_cv_func_matherr"
15345 if test "x$ac_cv_func_matherr" = xyes
; then :
15346 cat >>confdefs.h
<<_ACEOF
15347 #define HAVE_MATHERR 1
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
15356 $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
15357 if ${libgo_cv_c_stringops+:} false
; then :
15358 $as_echo_n "(cached) " >&6
15360 CFLAGS_hold
=$CFLAGS
15361 CFLAGS
="$CFLAGS -minline-all-stringops"
15362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15363 /* end confdefs.h. */
15366 if ac_fn_c_try_compile
"$LINENO"; then :
15367 libgo_cv_c_stringops
=yes
15369 libgo_cv_c_stringops
=no
15371 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15372 CFLAGS
=$CFLAGS_hold
15374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
15375 $as_echo "$libgo_cv_c_stringops" >&6; }
15377 if test "$libgo_cv_c_stringops" = yes; then
15378 STRINGOPS_FLAG
=-minline-all-stringops
15382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -mfancy-math-387" >&5
15383 $as_echo_n "checking whether compiler supports -mfancy-math-387... " >&6; }
15384 if ${libgo_cv_c_fancymath+:} false
; then :
15385 $as_echo_n "(cached) " >&6
15387 CFLAGS_hold
=$CFLAGS
15388 CFLAGS
="$CFLAGS -mfancy-math-387"
15389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15390 /* end confdefs.h. */
15393 if ac_fn_c_try_compile
"$LINENO"; then :
15394 libgo_cv_c_fancymath
=yes
15396 libgo_cv_c_fancymath
=no
15398 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15399 CFLAGS
=$CFLAGS_hold
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_fancymath" >&5
15402 $as_echo "$libgo_cv_c_fancymath" >&6; }
15404 if test "$libgo_cv_c_fancymath" = yes; then
15405 MATH_FLAG
="-mfancy-math-387"
15407 MATH_FLAG
="${MATH_FLAG} -ffp-contract=off -fno-math-errno -fno-trapping-math"
15410 CFLAGS_hold
=$CFLAGS
15411 CFLAGS
="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
15412 ac_fn_c_check_type
"$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
15413 if test "x$ac_cv_type_off64_t" = xyes
; then :
15415 cat >>confdefs.h
<<_ACEOF
15416 #define HAVE_OFF64_T 1
15422 CFLAGS
=$CFLAGS_hold
15424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event size" >&5
15425 $as_echo_n "checking epoll_event size... " >&6; }
15426 if ${libgo_cv_c_epoll_event_size+:} false
; then :
15427 $as_echo_n "(cached) " >&6
15429 if ac_fn_c_compute_int
"$LINENO" "sizeof (struct epoll_event)" "libgo_cv_c_epoll_event_size" "#include <sys/epoll.h>"; then :
15432 libgo_cv_c_epoll_event_size
=0
15436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_size" >&5
15437 $as_echo "$libgo_cv_c_epoll_event_size" >&6; }
15438 SIZEOF_STRUCT_EPOLL_EVENT
=${libgo_cv_c_epoll_event_size}
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event data.fd offset" >&5
15442 $as_echo_n "checking epoll_event data.fd offset... " >&6; }
15443 if ${libgo_cv_c_epoll_event_fd_offset+:} false
; then :
15444 $as_echo_n "(cached) " >&6
15446 if ac_fn_c_compute_int
"$LINENO" "offsetof (struct epoll_event, data.fd)" "libgo_cv_c_epoll_event_fd_offset" "#include <stddef.h>
15447 #include <sys/epoll.h>"; then :
15450 libgo_cv_c_epoll_event_fd_offset
=0
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_fd_offset" >&5
15455 $as_echo "$libgo_cv_c_epoll_event_fd_offset" >&6; }
15456 STRUCT_EPOLL_EVENT_FD_OFFSET
=${libgo_cv_c_epoll_event_fd_offset}
15459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15460 /* end confdefs.h. */
15461 #include <sys/stat.h>
15464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15465 $EGREP "timespec_t.*st_atim" >/dev
/null
2>&1; then :
15466 have_stat_timespec
=yes
15468 have_stat_timespec
=no
15472 if test $have_stat_timespec = yes; then
15473 HAVE_STAT_TIMESPEC_TRUE
=
15474 HAVE_STAT_TIMESPEC_FALSE
='#'
15476 HAVE_STAT_TIMESPEC_TRUE
='#'
15477 HAVE_STAT_TIMESPEC_FALSE
=
15481 ac_fn_c_check_type
"$LINENO" "struct exception" "ac_cv_type_struct_exception" "#include <math.h>
15483 if test "x$ac_cv_type_struct_exception" = xyes
; then :
15484 libgo_has_struct_exception
=yes
15486 libgo_has_struct_exception
=no
15489 if test "$libgo_has_struct_exception" = "yes"; then
15491 $as_echo "#define HAVE_STRUCT_EXCEPTION 1" >>confdefs.h
15495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setcontext clobbers TLS variables" >&5
15496 $as_echo_n "checking whether setcontext clobbers TLS variables... " >&6; }
15497 if ${libgo_cv_lib_setcontext_clobbers_tls+:} false
; then :
15498 $as_echo_n "(cached) " >&6
15500 CFLAGS_hold
="$CFLAGS"
15501 CFLAGS
="$PTHREAD_CFLAGS"
15503 LIBS
="$LIBS $PTHREAD_LIBS"
15504 # The cast to long int works around a bug in the HP C Compiler
15505 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15506 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15507 # This bug is HP SR number 8606223364.
15508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15509 $as_echo_n "checking size of void *... " >&6; }
15510 if ${ac_cv_sizeof_void_p+:} false
; then :
15511 $as_echo_n "(cached) " >&6
15513 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15516 if test "$ac_cv_type_void_p" = yes; then
15517 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15519 as_fn_error
77 "cannot compute sizeof (void *)
15520 See \`config.log' for more details" "$LINENO" 5; }
15522 ac_cv_sizeof_void_p
=0
15527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15528 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15532 cat >>confdefs.h
<<_ACEOF
15533 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15537 as_fn_arith
$ac_cv_sizeof_void_p \
* 8 && ptr_type_size
=$as_val
15538 if test "$cross_compiling" = yes; then :
15539 case "$target:$ptr_type_size" in
15540 i?
86-*-solaris2.1
[01]:64 | x86_64
*-*-solaris2.1
[01]:64)
15541 libgo_cv_lib_setcontext_clobbers_tls
=yes ;;
15543 libgo_cv_lib_setcontext_clobbers_tls
=no
;;
15547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15548 /* end confdefs.h. */
15550 #include <pthread.h>
15551 #include <stdlib.h>
15552 #include <ucontext.h>
15553 #include <unistd.h>
15557 static char stack[10 * 1024 * 1024];
15558 static ucontext_t c;
15560 /* Called via makecontext/setcontext. */
15568 /* Called via pthread_create. */
15573 /* The thread should still see this value after calling
15579 /* The call to setcontext should not return. */
15588 /* The thread should not see this value. */
15591 if (getcontext (&c) < 0)
15594 c.uc_stack.ss_sp = stack;
15595 #ifdef MAKECONTEXT_STACK_TOP
15596 c.uc_stack.ss_sp += sizeof stack;
15598 c.uc_stack.ss_flags = 0;
15599 c.uc_stack.ss_size = sizeof stack;
15601 makecontext (&c, cfn, 0);
15603 if (pthread_create (&tid, NULL, tfn, NULL) != 0)
15606 if (pthread_join (tid, NULL) != 0)
15609 /* The thread should have called exit. */
15614 if ac_fn_c_try_run
"$LINENO"; then :
15615 libgo_cv_lib_setcontext_clobbers_tls
=no
15617 libgo_cv_lib_setcontext_clobbers_tls
=yes
15619 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15620 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15623 CFLAGS
="$CFLAGS_hold"
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_setcontext_clobbers_tls" >&5
15628 $as_echo "$libgo_cv_lib_setcontext_clobbers_tls" >&6; }
15629 if test "$libgo_cv_lib_setcontext_clobbers_tls" = "yes"; then
15631 $as_echo "#define SETCONTEXT_CLOBBERS_TLS 1" >>confdefs.h
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
15636 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
15637 if ${libgo_cv_ro_eh_frame+:} false
; then :
15638 $as_echo_n "(cached) " >&6
15641 libgo_cv_ro_eh_frame
=no
15642 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
15643 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c
> /dev
/null
2>&1; then
15644 if grep '.section.*eh_frame.*"a"' conftest.s
> /dev
/null
; then
15645 libgo_cv_ro_eh_frame
=yes
15646 elif grep '.section.*eh_frame.*#alloc' conftest.c \
15647 |
grep -v '#write' > /dev
/null
; then
15648 libgo_cv_ro_eh_frame
=yes
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ro_eh_frame" >&5
15655 $as_echo "$libgo_cv_ro_eh_frame" >&6; }
15656 if test "x$libgo_cv_ro_eh_frame" = xyes
; then
15658 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
15662 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Qunused-arguments" >&5
15667 $as_echo_n "checking if compiler supports -Qunused-arguments... " >&6; }
15668 if ${libgo_cv_c_unused_arguments+:} false
; then :
15669 $as_echo_n "(cached) " >&6
15671 CFLAGS_hold
=$CFLAGS
15672 CFLAGS
="$CFLAGS -Qunused-arguments"
15673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15674 /* end confdefs.h. */
15677 if ac_fn_c_try_compile
"$LINENO"; then :
15678 libgo_cv_c_unused_arguments
=yes
15680 libgo_cv_c_unused_arguments
=no
15682 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15683 CFLAGS
=$CFLAGS_hold
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_unused_arguments" >&5
15686 $as_echo "$libgo_cv_c_unused_arguments" >&6; }
15688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports GNU comdat group syntax" >&5
15689 $as_echo_n "checking if assembler supports GNU comdat group syntax... " >&6; }
15690 if ${libgo_cv_as_comdat_gnu+:} false
; then :
15691 $as_echo_n "(cached) " >&6
15694 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
15695 CFLAGS_hold
=$CFLAGS
15696 if test "$libgo_cv_c_unused_arguments" = yes; then
15697 CFLAGS
="$CFLAGS -Qunused-arguments"
15699 if $CC $CFLAGS -c conftest.s
> /dev
/null
2>&1; then
15700 libgo_cv_as_comdat_gnu
=yes
15702 libgo_cv_as_comdat_gnu
=no
15704 CFLAGS
=$CFLAGS_hold
15707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_comdat_gnu" >&5
15708 $as_echo "$libgo_cv_as_comdat_gnu" >&6; }
15709 if test "x$libgo_cv_as_comdat_gnu" = xyes
; then
15711 $as_echo "#define HAVE_AS_COMDAT_GAS 1" >>confdefs.h
15715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
15716 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
15717 if ${libgo_cv_as_x86_pcrel+:} false
; then :
15718 $as_echo_n "(cached) " >&6
15721 libgo_cv_as_x86_pcrel
=yes
15722 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
15723 CFLAGS_hold
=$CFLAGS
15724 if test "$libgo_cv_c_unused_arguments" = yes; then
15725 CFLAGS
="$CFLAGS -Qunused-arguments"
15727 if $CC $CFLAGS -c conftest.s
2>&1 |
$EGREP -i 'illegal|warning' > /dev
/null
; then
15728 libgo_cv_as_x86_pcrel
=no
15730 CFLAGS
=$CFLAGS_hold
15733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_pcrel" >&5
15734 $as_echo "$libgo_cv_as_x86_pcrel" >&6; }
15735 if test "x$libgo_cv_as_x86_pcrel" = xyes
; then
15737 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
15741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
15742 $as_echo_n "checking assembler supports unwind section type... " >&6; }
15743 if ${libgo_cv_as_x86_64_unwind_section_type+:} false
; then :
15744 $as_echo_n "(cached) " >&6
15747 libgo_cv_as_x86_64_unwind_section_type
=yes
15748 echo '.section .eh_frame,"a",@unwind' > conftest.s
15749 CFLAGS_hold
=$CFLAGS
15750 if test "$libgo_cv_c_unused_arguments" = yes; then
15751 CFLAGS
="$CFLAGS -Qunused-arguments"
15753 if $CC $CFLAGS -c conftest.s
2>&1 |
grep -i warning
> /dev
/null
; then
15754 libgo_cv_as_x86_64_unwind_section_type
=no
15756 CFLAGS
=$CFLAGS_hold
15759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_64_unwind_section_type" >&5
15760 $as_echo "$libgo_cv_as_x86_64_unwind_section_type" >&6; }
15761 if test "x$libgo_cv_as_x86_64_unwind_section_type" = xyes
; then
15763 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports AES instructions" >&5
15768 $as_echo_n "checking assembler supports AES instructions... " >&6; }
15769 if ${libgo_cv_as_x86_aes+:} false
; then :
15770 $as_echo_n "(cached) " >&6
15773 libgo_cv_as_x86_aes
=yes
15774 echo 'aesenc %xmm0, %xmm1' > conftest.s
15775 CFLAGS_hold
=$CFLAGS
15776 if test "$libgo_cv_c_unused_arguments" = yes; then
15777 CFLAGS
="$CFLAGS -Qunused-arguments"
15779 if $CC $CFLAGS -c conftest.s
2>&1 |
grep -i error
> /dev
/null
; then
15780 libgo_cv_as_x86_aes
=no
15782 CFLAGS
=$CFLAGS_hold
15785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_aes" >&5
15786 $as_echo "$libgo_cv_as_x86_aes" >&6; }
15787 if test "x$libgo_cv_as_x86_aes" = xyes
; then
15789 $as_echo "#define HAVE_AS_X86_AES 1" >>confdefs.h
15793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -static is supported" >&5
15794 $as_echo_n "checking whether -static is supported... " >&6; }
15795 if ${libgo_cv_ld_static+:} false
; then :
15796 $as_echo_n "(cached) " >&6
15798 LDFLAGS_hold
=$LDFLAGS
15799 LDFLAGS
="$LDFLAGS -static"
15800 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15801 /* end confdefs.h. */
15811 if ac_fn_c_try_link
"$LINENO"; then :
15812 libgo_cv_ld_static
=yes
15814 libgo_cv_ld_static
=no
15816 rm -f core conftest.err conftest.
$ac_objext \
15817 conftest
$ac_exeext conftest.
$ac_ext
15818 LDFLAGS
=$LDFLAGS_hold
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ld_static" >&5
15821 $as_echo "$libgo_cv_ld_static" >&6; }
15822 if test "$libgo_cv_ld_static" = yes; then
15823 HAVE_STATIC_LINK_TRUE
=
15824 HAVE_STATIC_LINK_FALSE
='#'
15826 HAVE_STATIC_LINK_TRUE
='#'
15827 HAVE_STATIC_LINK_FALSE
=
15831 cat >confcache
<<\_ACEOF
15832 # This file is a shell script that caches the results of configure
15833 # tests run on this system so they can be shared between configure
15834 # scripts and configure runs, see configure's option --config-cache.
15835 # It is not useful on other systems. If it contains results you don't
15836 # want to keep, you may remove or edit it.
15838 # config.status only pays attention to the cache file if you give it
15839 # the --recheck option to rerun configure.
15841 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15842 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15843 # following values.
15847 # The following way of writing the cache mishandles newlines in values,
15848 # but we know of no workaround that is simple, portable, and efficient.
15849 # So, we kill variables containing newlines.
15850 # Ultrix sh set writes to stderr and can't be redirected directly,
15851 # and sets the high bit in the cache file unless we assign to the vars.
15853 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15854 eval ac_val
=\$
$ac_var
15858 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15859 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15862 _ | IFS | as_nl
) ;; #(
15863 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
15864 *) { eval $ac_var=; unset $ac_var;} ;;
15870 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15871 *${as_nl}ac_space
=\
*)
15872 # `set' does not quote correctly, so add quotes: double-quote
15873 # substitution turns \\\\ into \\, and sed turns \\ into \.
15876 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15879 # `set' quotes correctly as required by POSIX, so do not add quotes.
15880 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15889 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15891 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15893 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
15894 if test -w "$cache_file"; then
15895 if test "x$cache_file" != "x/dev/null"; then
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15897 $as_echo "$as_me: updating cache $cache_file" >&6;}
15898 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
15899 cat confcache
>"$cache_file"
15901 case $cache_file in #(
15903 mv -f confcache
"$cache_file"$$
&&
15904 mv -f "$cache_file"$$
"$cache_file" ;; #(
15906 mv -f confcache
"$cache_file" ;;
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15912 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15917 if test ${multilib} = yes; then
15918 multilib_arg
="--enable-multilib"
15923 ac_config_files
="$ac_config_files Makefile testsuite/Makefile testsuite/libgo-test-support.exp"
15926 ac_config_commands
="$ac_config_commands default"
15929 cat >confcache
<<\_ACEOF
15930 # This file is a shell script that caches the results of configure
15931 # tests run on this system so they can be shared between configure
15932 # scripts and configure runs, see configure's option --config-cache.
15933 # It is not useful on other systems. If it contains results you don't
15934 # want to keep, you may remove or edit it.
15936 # config.status only pays attention to the cache file if you give it
15937 # the --recheck option to rerun configure.
15939 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15940 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15941 # following values.
15945 # The following way of writing the cache mishandles newlines in values,
15946 # but we know of no workaround that is simple, portable, and efficient.
15947 # So, we kill variables containing newlines.
15948 # Ultrix sh set writes to stderr and can't be redirected directly,
15949 # and sets the high bit in the cache file unless we assign to the vars.
15951 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15952 eval ac_val
=\$
$ac_var
15956 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15957 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15960 _ | IFS | as_nl
) ;; #(
15961 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
15962 *) { eval $ac_var=; unset $ac_var;} ;;
15968 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15969 *${as_nl}ac_space
=\
*)
15970 # `set' does not quote correctly, so add quotes: double-quote
15971 # substitution turns \\\\ into \\, and sed turns \\ into \.
15974 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15977 # `set' quotes correctly as required by POSIX, so do not add quotes.
15978 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15987 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15989 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15991 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
15992 if test -w "$cache_file"; then
15993 if test "x$cache_file" != "x/dev/null"; then
15994 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15995 $as_echo "$as_me: updating cache $cache_file" >&6;}
15996 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
15997 cat confcache
>"$cache_file"
15999 case $cache_file in #(
16001 mv -f confcache
"$cache_file"$$
&&
16002 mv -f "$cache_file"$$
"$cache_file" ;; #(
16004 mv -f confcache
"$cache_file" ;;
16009 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16010 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16015 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16016 # Let make expand exec_prefix.
16017 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16019 DEFS
=-DHAVE_CONFIG_H
16024 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16025 # 1. Remove the extension, and $U if already installed.
16026 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
16027 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
16028 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16029 # will be set to the directory where LIBOBJS objects are built.
16030 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16031 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
16033 LIBOBJS
=$ac_libobjs
16035 LTLIBOBJS
=$ac_ltlibobjs
16038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16039 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16040 if test -n "$am_sleep_pid"; then
16041 # Hide warnings about reused PIDs.
16042 wait $am_sleep_pid 2>/dev
/null
16044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16045 $as_echo "done" >&6; }
16046 if test -n "$EXEEXT"; then
16048 am__EXEEXT_FALSE
='#'
16050 am__EXEEXT_TRUE
='#'
16054 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16055 as_fn_error $?
"conditional \"AMDEP\" was never defined.
16056 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16058 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16059 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
16060 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16062 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
16063 as_fn_error $?
"conditional \"am__fastdepCCAS\" was never defined.
16064 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16066 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16067 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
16068 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16070 if test -z "${USE_LIBFFI_TRUE}" && test -z "${USE_LIBFFI_FALSE}"; then
16071 as_fn_error $?
"conditional \"USE_LIBFFI\" was never defined.
16072 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16074 if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
16075 as_fn_error $?
"conditional \"LIBGO_IS_DARWIN\" was never defined.
16076 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16078 if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
16079 as_fn_error $?
"conditional \"LIBGO_IS_FREEBSD\" was never defined.
16080 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16082 if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
16083 as_fn_error $?
"conditional \"LIBGO_IS_IRIX\" was never defined.
16084 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16086 if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
16087 as_fn_error $?
"conditional \"LIBGO_IS_LINUX\" was never defined.
16088 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16090 if test -z "${LIBGO_IS_NETBSD_TRUE}" && test -z "${LIBGO_IS_NETBSD_FALSE}"; then
16091 as_fn_error $?
"conditional \"LIBGO_IS_NETBSD\" was never defined.
16092 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16094 if test -z "${LIBGO_IS_OPENBSD_TRUE}" && test -z "${LIBGO_IS_OPENBSD_FALSE}"; then
16095 as_fn_error $?
"conditional \"LIBGO_IS_OPENBSD\" was never defined.
16096 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16098 if test -z "${LIBGO_IS_DRAGONFLY_TRUE}" && test -z "${LIBGO_IS_DRAGONFLY_FALSE}"; then
16099 as_fn_error $?
"conditional \"LIBGO_IS_DRAGONFLY\" was never defined.
16100 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16102 if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
16103 as_fn_error $?
"conditional \"LIBGO_IS_RTEMS\" was never defined.
16104 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16106 if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
16107 as_fn_error $?
"conditional \"LIBGO_IS_SOLARIS\" was never defined.
16108 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16110 if test -z "${LIBGO_IS_AIX_TRUE}" && test -z "${LIBGO_IS_AIX_FALSE}"; then
16111 as_fn_error $?
"conditional \"LIBGO_IS_AIX\" was never defined.
16112 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16114 if test -z "${LIBGO_IS_HURD_TRUE}" && test -z "${LIBGO_IS_HURD_FALSE}"; then
16115 as_fn_error $?
"conditional \"LIBGO_IS_HURD\" was never defined.
16116 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16118 if test -z "${LIBGO_IS_BSD_TRUE}" && test -z "${LIBGO_IS_BSD_FALSE}"; then
16119 as_fn_error $?
"conditional \"LIBGO_IS_BSD\" was never defined.
16120 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16122 if test -z "${LIBGO_IS_X86_TRUE}" && test -z "${LIBGO_IS_X86_FALSE}"; then
16123 as_fn_error $?
"conditional \"LIBGO_IS_X86\" was never defined.
16124 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16126 if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
16127 as_fn_error $?
"conditional \"USING_SPLIT_STACK\" was never defined.
16128 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16130 if test -z "${GOC_IS_LLGO_TRUE}" && test -z "${GOC_IS_LLGO_FALSE}"; then
16131 as_fn_error $?
"conditional \"GOC_IS_LLGO\" was never defined.
16132 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16135 if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
16136 as_fn_error $?
"conditional \"HAVE_SYS_MMAN_H\" was never defined.
16137 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16139 if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
16140 as_fn_error $?
"conditional \"HAVE_STRERROR_R\" was never defined.
16141 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16143 if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
16144 as_fn_error $?
"conditional \"HAVE_WAIT4\" was never defined.
16145 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16147 if test -z "${HAVE_STAT_TIMESPEC_TRUE}" && test -z "${HAVE_STAT_TIMESPEC_FALSE}"; then
16148 as_fn_error $?
"conditional \"HAVE_STAT_TIMESPEC\" was never defined.
16149 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16151 if test -z "${HAVE_STATIC_LINK_TRUE}" && test -z "${HAVE_STATIC_LINK_FALSE}"; then
16152 as_fn_error $?
"conditional \"HAVE_STATIC_LINK\" was never defined.
16153 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16156 : "${CONFIG_STATUS=./config.status}"
16158 ac_clean_files_save
=$ac_clean_files
16159 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16160 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16161 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16163 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16165 # Generated by $as_me.
16166 # Run this file to recreate the current configuration.
16167 # Compiler output produced by configure, useful for debugging
16168 # configure, is in config.log if it exists.
16171 ac_cs_recheck=false
16174 SHELL=\${CONFIG_SHELL-$SHELL}
16177 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
16178 ## -------------------- ##
16179 ## M4sh Initialization. ##
16180 ## -------------------- ##
16182 # Be more Bourne compatible
16183 DUALCASE
=1; export DUALCASE
# for MKS sh
16184 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
16187 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16188 # is contrary to our usage. Disable this feature.
16189 alias -g '${1+"$@"}'='"$@"'
16190 setopt NO_GLOB_SUBST
16192 case `(set -o) 2>/dev/null` in #(
16204 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16205 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16206 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16207 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16208 # Prefer a ksh shell builtin over an external printf program on Solaris,
16209 # but without wasting forks for bash or zsh.
16210 if test -z "$BASH_VERSION$ZSH_VERSION" \
16211 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16212 as_echo='print
-r --'
16213 as_echo_n='print
-rn --'
16214 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16215 as_echo='printf %s
\n'
16216 as_echo_n='printf %s
'
16218 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16219 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
16220 as_echo_n='/usr
/ucb
/echo -n'
16222 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16223 as_echo_n_body='eval
16227 expr "X$arg" : "X\\(.*\\)$as_nl";
16228 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16230 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
16232 export as_echo_n_body
16233 as_echo_n='sh
-c $as_echo_n_body as_echo
'
16235 export as_echo_body
16236 as_echo='sh
-c $as_echo_body as_echo
'
16239 # The user is always right.
16240 if test "${PATH_SEPARATOR+set}" != set; then
16242 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16243 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16250 # We need space, tab and new line, in precisely that order. Quoting is
16251 # there to prevent editors from complaining about space-tab.
16252 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16253 # splitting by setting IFS to empty value.)
16256 # Find who we are. Look in the path if we contain no directory separator.
16259 *[\\/]* ) as_myself=$0 ;;
16260 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16261 for as_dir in $PATH
16264 test -z "$as_dir" && as_dir=.
16265 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16271 # We did not find ourselves, most probably we were run as `sh COMMAND'
16272 # in which case we are not to be found in the path.
16273 if test "x$as_myself" = x
; then
16276 if test ! -f "$as_myself"; then
16277 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16281 # Unset variables that we do not need and which cause bugs (e.g. in
16282 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16283 # suppresses any "Segmentation fault" message there. '((' could
16284 # trigger a bug in pdksh 5.2.14.
16285 for as_var
in BASH_ENV ENV MAIL MAILPATH
16286 do eval test x\
${$as_var+set} = xset \
16287 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
16300 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
16303 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16304 # ----------------------------------------
16305 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16306 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16307 # script with STATUS, using 1 if that was 0.
16310 as_status
=$1; test $as_status -eq 0 && as_status
=1
16312 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
16313 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16315 $as_echo "$as_me: error: $2" >&2
16316 as_fn_exit
$as_status
16320 # as_fn_set_status STATUS
16321 # -----------------------
16322 # Set $? to STATUS, without forking.
16323 as_fn_set_status
()
16326 } # as_fn_set_status
16328 # as_fn_exit STATUS
16329 # -----------------
16330 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16334 as_fn_set_status
$1
16340 # Portably unset VAR.
16343 { eval $1=; unset $1;}
16345 as_unset
=as_fn_unset
16346 # as_fn_append VAR VALUE
16347 # ----------------------
16348 # Append the text in VALUE to the end of the definition contained in VAR. Take
16349 # advantage of any shell optimizations that allow amortized linear growth over
16350 # repeated appends, instead of the typical quadratic growth present in naive
16352 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
16353 eval 'as_fn_append ()
16364 # as_fn_arith ARG...
16365 # ------------------
16366 # Perform arithmetic evaluation on the ARGs, and store the result in the
16367 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16368 # must be portable across $(()) and expr.
16369 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
16370 eval 'as_fn_arith ()
16377 as_val
=`expr "$@" || test $? -eq 1`
16382 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
16383 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
16389 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16390 as_basename
=basename
16395 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
16401 as_me
=`$as_basename -- "$0" ||
16402 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16403 X"$0" : 'X\(//\)$' \| \
16404 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16406 sed '/^.*\/\([^/][^/]*\)\/*$/{
16420 # Avoid depending upon Character Ranges.
16421 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16422 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16423 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16424 as_cr_digits
='0123456789'
16425 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16427 ECHO_C
= ECHO_N
= ECHO_T
=
16428 case `echo -n x` in #(((((
16430 case `echo 'xy\c'` in
16431 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
16433 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
16440 rm -f conf$$ conf$$.exe conf$$.
file
16441 if test -d conf$$.dir
; then
16442 rm -f conf$$.dir
/conf$$.
file
16445 mkdir conf$$.dir
2>/dev
/null
16447 if (echo >conf$$.
file) 2>/dev
/null
; then
16448 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16450 # ... but there are two gotchas:
16451 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16452 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16453 # In both cases, we have to default to `cp -pR'.
16454 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
16456 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16464 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
16465 rmdir conf$$.dir
2>/dev
/null
16470 # Create "$as_dir" as a directory, including parents if necessary.
16475 -*) as_dir
=.
/$as_dir;;
16477 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
16481 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16482 *) as_qdir
=$as_dir;;
16484 as_dirs
="'$as_qdir' $as_dirs"
16485 as_dir
=`$as_dirname -- "$as_dir" ||
16486 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16487 X"$as_dir" : 'X\(//\)[^/]' \| \
16488 X"$as_dir" : 'X\(//\)$' \| \
16489 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16490 $as_echo X"$as_dir" |
16491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16495 /^X\(\/\/\)[^/].*/{
16508 test -d "$as_dir" && break
16510 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
16511 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
16515 if mkdir
-p .
2>/dev
/null
; then
16516 as_mkdir_p
='mkdir -p "$as_dir"'
16518 test -d .
/-p && rmdir .
/-p
16523 # as_fn_executable_p FILE
16524 # -----------------------
16525 # Test if FILE is an executable regular file.
16526 as_fn_executable_p
()
16528 test -f "$1" && test -x "$1"
16529 } # as_fn_executable_p
16530 as_test_x
='test -x'
16531 as_executable_p
=as_fn_executable_p
16533 # Sed expression to map a string onto a valid CPP name.
16534 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16536 # Sed expression to map a string onto a valid variable name.
16537 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16541 ## ----------------------------------- ##
16542 ## Main body of $CONFIG_STATUS script. ##
16543 ## ----------------------------------- ##
16545 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
16547 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16548 # Save the log message, to keep $0 and so on meaningful, and to
16549 # report actual input values of CONFIG_FILES etc. instead of their
16550 # values after options handling.
16552 This file was extended by package-unused $as_me version-unused, which was
16553 generated by GNU Autoconf 2.69. Invocation command line was
16555 CONFIG_FILES = $CONFIG_FILES
16556 CONFIG_HEADERS = $CONFIG_HEADERS
16557 CONFIG_LINKS = $CONFIG_LINKS
16558 CONFIG_COMMANDS = $CONFIG_COMMANDS
16561 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16566 case $ac_config_files in *"
16567 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
16570 case $ac_config_headers in *"
16571 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
16575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16576 # Files that config.status was made for.
16577 config_files="$ac_config_files"
16578 config_headers="$ac_config_headers"
16579 config_commands="$ac_config_commands"
16583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16585 \`$as_me' instantiates files and other configuration actions
16586 from templates according to the current configuration. Unless the files
16587 and actions are specified as TAGs, all are instantiated by default.
16589 Usage: $0 [OPTION]... [TAG]...
16591 -h, --help print this help, then exit
16592 -V, --version print version number and configuration settings, then exit
16593 --config print configuration, then exit
16594 -q, --quiet, --silent
16595 do not print progress messages
16596 -d, --debug don't remove temporary files
16597 --recheck update $as_me by reconfiguring in the same conditions
16598 --file=FILE[:TEMPLATE]
16599 instantiate the configuration file FILE
16600 --header=FILE[:TEMPLATE]
16601 instantiate the configuration header FILE
16603 Configuration files:
16606 Configuration headers:
16609 Configuration commands:
16612 Report bugs to the package provider."
16615 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16616 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16618 package-unused config.status version-unused
16619 configured by $0, generated by GNU Autoconf 2.69,
16620 with options \\"\$ac_cs_config\\"
16622 Copyright (C) 2012 Free Software Foundation, Inc.
16623 This config.status script is free software; the Free Software Foundation
16624 gives unlimited permission to copy, distribute and modify it."
16631 test -n "\$AWK" || AWK=awk
16634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16635 # The default lists apply if the user does not specify any file.
16641 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16642 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
16646 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16658 # Handling of the options.
16659 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16661 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
16662 $as_echo "$ac_cs_version"; exit ;;
16663 --config |
--confi |
--conf |
--con |
--co |
--c )
16664 $as_echo "$ac_cs_config"; exit ;;
16665 --debug |
--debu |
--deb |
--de |
--d |
-d )
16667 --file |
--fil |
--fi |
--f )
16670 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16671 '') as_fn_error $?
"missing file argument" ;;
16673 as_fn_append CONFIG_FILES
" '$ac_optarg'"
16674 ac_need_defaults
=false
;;
16675 --header |
--heade |
--head |
--hea )
16678 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16680 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
16681 ac_need_defaults
=false
;;
16683 # Conflict between --help and --header
16684 as_fn_error $?
"ambiguous option: \`$1'
16685 Try \`$0 --help' for more information.";;
16686 --help |
--hel |
-h )
16687 $as_echo "$ac_cs_usage"; exit ;;
16688 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
16689 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
16692 # This is an error.
16693 -*) as_fn_error $?
"unrecognized option: \`$1'
16694 Try \`$0 --help' for more information." ;;
16696 *) as_fn_append ac_config_targets
" $1"
16697 ac_need_defaults
=false
;;
16703 ac_configure_extra_args
=
16705 if $ac_cs_silent; then
16707 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16711 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16712 if \$ac_cs_recheck; then
16713 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16715 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16716 CONFIG_SHELL='$SHELL'
16717 export CONFIG_SHELL
16722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16726 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16727 ## Running $as_me. ##
16733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16741 with_multisubdir="$with_multisubdir"
16742 with_multisrctop="$with_multisrctop"
16743 with_target_subdir="$with_target_subdir"
16744 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16745 multi_basedir="$multi_basedir"
16746 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16749 GFORTRAN="$GFORTRAN"
16751 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16754 # The HP-UX ksh and POSIX shell print the target directory to stdout
16755 # if CDPATH is set.
16756 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16758 sed_quote_subst='$sed_quote_subst'
16759 double_quote_subst='$double_quote_subst'
16760 delay_variable_subst='$delay_variable_subst'
16761 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16762 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16763 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16764 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16765 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16766 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16767 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16768 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16769 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16770 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16771 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16772 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16773 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16774 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16775 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16776 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16777 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16778 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16779 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16780 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16781 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16782 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16783 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16784 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16785 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16786 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16787 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16788 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16789 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16790 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16791 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16792 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16793 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16794 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16795 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16796 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16797 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16798 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16799 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16800 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16801 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16802 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16803 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16804 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16805 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16806 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16807 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16808 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16809 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"`'
16810 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16811 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16812 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16813 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16814 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16815 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16816 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16817 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16818 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16819 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16820 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16821 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16822 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16823 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16824 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16825 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16826 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16827 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16828 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16829 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16830 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16831 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16832 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16833 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16834 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16835 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16836 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16837 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16838 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16839 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16840 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16841 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16842 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16843 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16844 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16845 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16846 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16847 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16848 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16849 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16850 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16851 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16852 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16853 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16854 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16855 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16856 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16857 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16858 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16859 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16860 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16861 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16862 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16863 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16864 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16865 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16866 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16867 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16868 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16869 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16870 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16871 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16872 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16873 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16874 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16875 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16876 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16877 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16878 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16879 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16880 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16881 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
16882 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
16883 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
16884 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16885 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
16886 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
16887 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
16888 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
16889 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
16890 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
16891 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
16892 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
16893 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
16894 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16895 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16896 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
16897 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
16898 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
16899 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16900 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16901 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
16902 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16903 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
16904 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16905 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16906 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16907 hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
16908 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
16909 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
16910 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
16911 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
16912 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
16913 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
16914 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
16915 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
16916 fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
16917 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
16918 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
16919 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16920 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16921 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
16922 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
16923 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
16926 LTCFLAGS='$LTCFLAGS'
16927 compiler='$compiler_DEFAULT'
16929 # A function that is used when there is no print builtin or printf.
16930 func_fallback_echo ()
16932 eval 'cat <<_LTECHO_EOF
16937 # Quote evaled strings.
16951 deplibs_check_method \
16960 lt_cv_sys_global_symbol_pipe \
16961 lt_cv_sys_global_symbol_to_cdecl \
16962 lt_cv_sys_global_symbol_to_c_name_address \
16963 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16964 lt_prog_compiler_no_builtin_flag \
16965 lt_prog_compiler_wl \
16966 lt_prog_compiler_pic \
16967 lt_prog_compiler_static \
16968 lt_cv_prog_compiler_c_o \
16976 export_dynamic_flag_spec \
16977 whole_archive_flag_spec \
16978 compiler_needs_object \
16980 allow_undefined_flag \
16981 no_undefined_flag \
16982 hardcode_libdir_flag_spec \
16983 hardcode_libdir_flag_spec_ld \
16984 hardcode_libdir_separator \
16989 variables_saved_for_relink \
16991 library_names_spec \
16993 install_override_mode \
17000 lt_prog_compiler_no_builtin_flag_GO \
17001 lt_prog_compiler_wl_GO \
17002 lt_prog_compiler_pic_GO \
17003 lt_prog_compiler_static_GO \
17004 lt_cv_prog_compiler_c_o_GO \
17005 export_dynamic_flag_spec_GO \
17006 whole_archive_flag_spec_GO \
17007 compiler_needs_object_GO \
17009 allow_undefined_flag_GO \
17010 no_undefined_flag_GO \
17011 hardcode_libdir_flag_spec_GO \
17012 hardcode_libdir_flag_spec_ld_GO \
17013 hardcode_libdir_separator_GO \
17014 fix_srcfile_path_GO \
17015 exclude_expsyms_GO \
17016 include_expsyms_GO \
17017 file_list_spec_GO; do
17018 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17019 *[\\\\\\\`\\"\\\$]*)
17020 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17023 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17028 # Double-quote double-evaled strings.
17029 for var in reload_cmds \
17030 old_postinstall_cmds \
17031 old_postuninstall_cmds \
17033 extract_expsyms_cmds \
17034 old_archive_from_new_cmds \
17035 old_archive_from_expsyms_cmds \
17037 archive_expsym_cmds \
17039 module_expsym_cmds \
17040 export_symbols_cmds \
17043 postuninstall_cmds \
17045 sys_lib_search_path_spec \
17046 sys_lib_dlsearch_path_spec \
17048 old_archive_cmds_GO \
17049 old_archive_from_new_cmds_GO \
17050 old_archive_from_expsyms_cmds_GO \
17052 archive_expsym_cmds_GO \
17054 module_expsym_cmds_GO \
17055 export_symbols_cmds_GO \
17056 prelink_cmds_GO; do
17057 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17058 *[\\\\\\\`\\"\\\$]*)
17059 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17062 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17067 ac_aux_dir='$ac_aux_dir'
17068 xsi_shell='$xsi_shell'
17069 lt_shell_append='$lt_shell_append'
17071 # See if we are running on zsh, and set the options which allow our
17072 # commands through without removal of \ escapes INIT.
17073 if test -n "\${ZSH_VERSION+set}" ; then
17074 setopt NO_GLOB_SUBST
17080 TIMESTAMP='$TIMESTAMP'
17089 # Variables needed in config.status (file generation) which aren't already
17090 # passed by autoconf.
17096 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17098 # Handling of arguments.
17099 for ac_config_target
in $ac_config_targets
17101 case $ac_config_target in
17102 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
17103 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
17104 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
17105 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
17106 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
17107 "testsuite/Makefile") CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
17108 "testsuite/libgo-test-support.exp") CONFIG_FILES
="$CONFIG_FILES testsuite/libgo-test-support.exp" ;;
17109 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
17111 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17116 # If the user did not use the arguments to specify the items to instantiate,
17117 # then the envvar interface is used. Set only those that are not.
17118 # We use the long form for the default assignment because of an extremely
17119 # bizarre bug on SunOS 4.1.3.
17120 if $ac_need_defaults; then
17121 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
17122 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
17123 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
17126 # Have a temporary directory for convenience. Make it in the build tree
17127 # simply because there is no reason against having it here, and in addition,
17128 # creating and moving files from /tmp can sometimes cause problems.
17129 # Hook for its removal unless debugging.
17130 # Note that there is a small window in which the directory will not be cleaned:
17131 # after its creation but before its name has been assigned to `$tmp'.
17135 trap 'exit_status=$?
17136 : "${ac_tmp:=$tmp}"
17137 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17139 trap 'as_fn_exit 1' 1 2 13 15
17141 # Create a (secure) tmp directory for tmp files.
17144 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17148 tmp
=.
/conf$$
-$RANDOM
17149 (umask 077 && mkdir
"$tmp")
17150 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
17153 # Set up the scripts for CONFIG_FILES section.
17154 # No need to generate them if there are no CONFIG_FILES.
17155 # This happens for instance with `./config.status config.h'.
17156 if test -n "$CONFIG_FILES"; then
17159 ac_cr
=`echo X | tr X '\015'`
17160 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17161 # But we know of no other shell where ac_cr would be empty at this
17162 # point, so we can use a bashism as a fallback.
17163 if test "x$ac_cr" = x
; then
17164 eval ac_cr
=\$
\'\\r
\'
17166 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17167 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17170 ac_cs_awk_cr
=$ac_cr
17173 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17178 echo "cat >conf$$subs.awk <<_ACEOF" &&
17179 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17181 } >conf$$subs.sh ||
17182 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
17183 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17185 for ac_last_try in false false false false false :; do
17186 . ./conf$$subs.sh ||
17187 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
17189 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
17190 if test $ac_delim_n = $ac_delim_num; then
17192 elif $ac_last_try; then
17193 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
17195 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17198 rm -f conf$$subs.sh
17200 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17201 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
17205 s/^/S["/; s
/!.
*/"]=/
17215 s/\(.\{148\}\)..*/\1/
17217 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
17222 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17229 s/\(.\{148\}\)..*/\1/
17231 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
17235 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17240 ' <conf$$subs.awk | sed '
17245 ' >>$CONFIG_STATUS || ac_write_fail=1
17246 rm -f conf$$subs.awk
17247 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17249 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
17250 for (key in S) S_is_set[key] = 1
17256 nfields = split(line, field, "@
")
17258 len = length(field[1])
17259 for (i = 2; i < nfields; i++) {
17261 keylen = length(key)
17262 if (S_is_set[key]) {
17264 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17265 len += length(value) + length(field[++i])
17276 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17277 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17278 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
17281 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
17282 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
17285 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17286 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
17287 # trailing colons and then remove the whole line if VPATH becomes empty
17288 # (actually we leave an empty line to preserve line numbers).
17289 if test "x
$srcdir" = x.; then
17290 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17309 fi # test -n "$CONFIG_FILES"
17311 # Set up the scripts for CONFIG_HEADERS section.
17312 # No need to generate them if there are no CONFIG_HEADERS.
17313 # This happens for instance with `./config.status Makefile'.
17314 if test -n "$CONFIG_HEADERS"; then
17315 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
17319 # Transform confdefs.h into an awk script `defines.awk', embedded as
17320 # here-document in config.status, that substitutes the proper values into
17321 # config.h.in to produce config.h.
17323 # Create a delimiter string that does not exist in confdefs.h, to ease
17324 # handling of long lines.
17326 for ac_last_try in false false :; do
17327 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
17328 if test -z "$ac_tt"; then
17330 elif $ac_last_try; then
17331 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
17333 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17337 # For the awk script, D is an array of macro values keyed by name,
17338 # likewise P contains macro parameters if any. Preserve backslash
17339 # newline sequences.
17341 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17343 s/.\{148\}/&'"$ac_delim"'/g
17346 s/^[ ]*#[ ]*define[ ][ ]*/ /
17353 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
17355 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
17359 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
17360 D["\
1"]=" \
3\\\\\\n
"\\/p
17362 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
17367 s/.\{148\}/&'"$ac_delim"'/g
17372 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
17375 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
17377 ' <confdefs.h | sed '
17378 s/'"$ac_delim"'/"\\\
17379 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17381 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17382 for (key in D) D_is_set[key] = 1
17385 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17387 split(line, arg, " ")
17388 if (arg[1] == "#") {
17392 defundef
= substr
(arg
[1], 2)
17395 split(mac1
, mac2
, "(") #)
17397 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
17398 if (D_is_set
[macro
]) {
17399 # Preserve the white space surrounding the "#".
17400 print prefix
"define", macro P
[macro
] D
[macro
]
17403 # Replace #undef with comments. This is necessary, for example,
17404 # in the case of _POSIX_SOURCE, which is predefined and required
17405 # on some systems where configure will not decide to define it.
17406 if (defundef
== "undef") {
17407 print
"/*", prefix defundef
, macro
, "*/"
17415 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17416 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
17417 fi # test -n "$CONFIG_HEADERS"
17420 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17425 :[FHLC
]) ac_mode
=$ac_tag; continue;;
17427 case $ac_mode$ac_tag in
17429 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
17430 :[FH
]-) ac_tag
=-:-;;
17431 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
17448 -) ac_f
="$ac_tmp/stdin";;
17449 *) # Look for the file first in the build tree, then in the source tree
17450 # (if the path is not absolute). The absolute path cannot be DOS-style,
17451 # because $ac_f cannot contain `:'.
17455 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
17457 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17459 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17460 as_fn_append ac_file_inputs
" '$ac_f'"
17463 # Let's still pretend it is `configure' which instantiates (i.e., don't
17464 # use $as_me), people would be surprised to read:
17465 # /* config.h. Generated by config.status. */
17466 configure_input
='Generated from '`
17467 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17469 if test x
"$ac_file" != x-
; then
17470 configure_input
="$ac_file. $configure_input"
17471 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17472 $as_echo "$as_me: creating $ac_file" >&6;}
17474 # Neutralize special characters interpreted by sed in replacement strings.
17475 case $configure_input in #(
17476 *\
&* |
*\|
* |
*\\* )
17477 ac_sed_conf_input
=`$as_echo "$configure_input" |
17478 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17479 *) ac_sed_conf_input
=$configure_input;;
17483 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
17484 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
17489 ac_dir
=`$as_dirname -- "$ac_file" ||
17490 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17491 X"$ac_file" : 'X\(//\)[^/]' \| \
17492 X"$ac_file" : 'X\(//\)$' \| \
17493 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17494 $as_echo X"$ac_file" |
17495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17499 /^X\(\/\/\)[^/].*/{
17512 as_dir
="$ac_dir"; as_fn_mkdir_p
17516 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17518 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17519 # A ".." for each directory in $ac_dir_suffix.
17520 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17521 case $ac_top_builddir_sub in
17522 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17523 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17526 ac_abs_top_builddir
=$ac_pwd
17527 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17528 # for backward compatibility:
17529 ac_top_builddir
=$ac_top_build_prefix
17532 .
) # We are building in place.
17534 ac_top_srcdir
=$ac_top_builddir_sub
17535 ac_abs_top_srcdir
=$ac_pwd ;;
17536 [\\/]* | ?
:[\\/]* ) # Absolute name.
17537 ac_srcdir
=$srcdir$ac_dir_suffix;
17538 ac_top_srcdir
=$srcdir
17539 ac_abs_top_srcdir
=$srcdir ;;
17540 *) # Relative name.
17541 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17542 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17543 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17545 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17555 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
17556 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
17558 ac_MKDIR_P
=$MKDIR_P
17560 [\\/$
]* | ?
:[\\/]* ) ;;
17561 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
17565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17566 # If the template does not know about datarootdir, expand it.
17567 # FIXME: This hack should be removed a few years after 2.60.
17568 ac_datarootdir_hack
=; ac_datarootdir_seen
=
17579 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17580 *datarootdir
*) ac_datarootdir_seen
=yes;;
17581 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
17582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17583 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17585 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17586 ac_datarootdir_hack='
17587 s&@datadir@&$datadir&g
17588 s&@docdir@&$docdir&g
17589 s&@infodir@&$infodir&g
17590 s&@localedir@&$localedir&g
17591 s&@mandir@&$mandir&g
17592 s&\\\${datarootdir}&$datarootdir&g' ;;
17596 # Neutralize VPATH when `$srcdir' = `.'.
17597 # Shell code in configure.ac might set extrasub.
17598 # FIXME: do we really want to maintain this feature?
17599 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17600 ac_sed_extra="$ac_vpsub
17603 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17605 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17606 s|@configure_input@|
$ac_sed_conf_input|
;t t
17607 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
17608 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
17609 s
&@srcdir@
&$ac_srcdir&;t t
17610 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
17611 s
&@top_srcdir@
&$ac_top_srcdir&;t t
17612 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
17613 s
&@builddir@
&$ac_builddir&;t t
17614 s
&@abs_builddir@
&$ac_abs_builddir&;t t
17615 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
17616 s
&@INSTALL@
&$ac_INSTALL&;t t
17617 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
17618 $ac_datarootdir_hack
17620 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
17621 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
17623 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17624 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
17625 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17626 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
17627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
17628 which seems to be undefined. Please make sure it is defined" >&5
17629 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
17630 which seems to be undefined. Please make sure it is defined" >&2;}
17632 rm -f "$ac_tmp/stdin"
17634 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17635 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17637 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17643 if test x"$ac_file" != x-; then
17645 $as_echo "/* $configure_input */" \
17646 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17647 } >"$ac_tmp/config.h" \
17648 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17649 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17650 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17651 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17654 mv "$ac_tmp/config.h" "$ac_file" \
17655 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17658 $as_echo "/* $configure_input */" \
17659 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17660 || as_fn_error $? "could not create -" "$LINENO" 5
17662 # Compute "$ac_file"'s index
in $config_headers.
17665 for _am_header
in $config_headers :; do
17666 case $_am_header in
17667 $_am_arg |
$_am_arg:* )
17670 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
17673 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17674 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17675 X"$_am_arg" : 'X\(//\)[^/]' \| \
17676 X"$_am_arg" : 'X\(//\)$' \| \
17677 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17678 $as_echo X"$_am_arg" |
17679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17683 /^X\(\/\/\)[^/].*/{
17695 s/.*/./; q'`/stamp-h
$_am_stamp_count
17698 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17699 $as_echo "$as_me: executing $ac_file commands" >&6;}
17704 case $ac_file$ac_mode in
17706 # Only add multilib support code if we just rebuilt the top-level
17708 case " $CONFIG_FILES " in
17710 ac_file
=Makefile .
${multi_basedir}/config-ml.
in
17713 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
17714 # Older Autoconf quotes --file arguments for eval, but not when files
17715 # are listed without --file. Let's play safe and only enable the eval
17716 # if we detect the quoting.
17717 case $CONFIG_FILES in
17718 *\'*) eval set x
"$CONFIG_FILES" ;;
17719 *) set x
$CONFIG_FILES ;;
17724 # Strip MF so we end up with the name of the file.
17725 mf
=`echo "$mf" | sed -e 's/:.*$//'`
17726 # Check whether this is an Automake generated Makefile or not.
17727 # We used to match only the files named 'Makefile.in', but
17728 # some people rename them; so instead we look at the file content.
17729 # Grep'ing the first line is not enough: some people post-process
17730 # each Makefile.in and add a new line on top of each file to say so.
17731 # Grep'ing the whole file is not good either: AIX grep has a line
17732 # limit of 2048, but all sed's we know have understand at least 4000.
17733 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
17734 dirpart
=`$as_dirname -- "$mf" ||
17735 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17736 X"$mf" : 'X\(//\)[^/]' \| \
17737 X"$mf" : 'X\(//\)$' \| \
17738 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17740 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17744 /^X\(\/\/\)[^/].*/{
17760 # Extract the definition of DEPDIR, am__include, and am__quote
17761 # from the Makefile without running 'make'.
17762 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
17763 test -z "$DEPDIR" && continue
17764 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
17765 test -z "$am__include" && continue
17766 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
17767 # Find all dependency output files, they are included files with
17768 # $(DEPDIR) in their names. We invoke sed twice because it is the
17769 # simplest approach to changing $(DEPDIR) to its actual value in the
17771 for file in `sed -n "
17772 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17773 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17774 # Make sure the directory exists.
17775 test -f "$dirpart/$file" && continue
17776 fdir
=`$as_dirname -- "$file" ||
17777 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17778 X"$file" : 'X\(//\)[^/]' \| \
17779 X"$file" : 'X\(//\)$' \| \
17780 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17781 $as_echo X"$file" |
17782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17786 /^X\(\/\/\)[^/].*/{
17799 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
17800 # echo "creating $dirpart/$file"
17801 echo '# dummy' > "$dirpart/$file"
17808 # See if we are running on zsh, and set the options which allow our
17809 # commands through without removal of \ escapes.
17810 if test -n "${ZSH_VERSION+set}" ; then
17811 setopt NO_GLOB_SUBST
17814 cfgfile
="${ofile}T"
17815 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17818 cat <<_LT_EOF >> "$cfgfile"
17821 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17822 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17823 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17824 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17826 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17827 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17828 # Written by Gordon Matzigkeit, 1996
17830 # This file is part of GNU Libtool.
17832 # GNU Libtool is free software; you can redistribute it and/or
17833 # modify it under the terms of the GNU General Public License as
17834 # published by the Free Software Foundation; either version 2 of
17835 # the License, or (at your option) any later version.
17837 # As a special exception to the GNU General Public License,
17838 # if you distribute this file as part of a program or library that
17839 # is built using GNU Libtool, you may include this file under the
17840 # same distribution terms that you use for the rest of that program.
17842 # GNU Libtool is distributed in the hope that it will be useful,
17843 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17844 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17845 # GNU General Public License for more details.
17847 # You should have received a copy of the GNU General Public License
17848 # along with GNU Libtool; see the file COPYING. If not, a copy
17849 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17850 # obtained by writing to the Free Software Foundation, Inc.,
17851 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17854 # The names of the tagged configurations supported by this script.
17855 available_tags="GO "
17857 # ### BEGIN LIBTOOL CONFIG
17859 # A sed program that does not truncate output.
17862 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17863 Xsed="\$SED -e 1s/^X//"
17865 # A grep program that handles long lines.
17871 # A literal string matcher.
17874 # Shell to use when invoking shell scripts.
17877 # An echo program that protects backslashes.
17880 # Which release of libtool.m4 was used?
17881 macro_version=$macro_version
17882 macro_revision=$macro_revision
17884 # Whether or not to build shared libraries.
17885 build_libtool_libs=$enable_shared
17887 # Whether or not to build static libraries.
17888 build_old_libs=$enable_static
17890 # What type of objects to build.
17893 # Whether or not to optimize for fast installation.
17894 fast_install=$enable_fast_install
17897 host_alias=$host_alias
17901 # The build system.
17902 build_alias=$build_alias
17906 # A BSD- or MS-compatible name lister.
17909 # Whether we need soft or hard links.
17912 # What is the maximum length of a command?
17913 max_cmd_len=$max_cmd_len
17915 # Object file suffix (normally "o").
17918 # Executable file suffix (normally "").
17921 # whether the shell understands "unset".
17924 # turn spaces into newlines.
17927 # turn newlines into spaces.
17930 # An object symbol dumper.
17931 OBJDUMP=$lt_OBJDUMP
17933 # Method to check whether dependent libraries are shared objects.
17934 deplibs_check_method=$lt_deplibs_check_method
17936 # Command to use when deplibs_check_method == "file_magic".
17937 file_magic_cmd=$lt_file_magic_cmd
17941 AR_FLAGS=$lt_AR_FLAGS
17943 # A symbol stripping program.
17946 # Commands used to install an old-style archive.
17948 old_postinstall_cmds=$lt_old_postinstall_cmds
17949 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17951 # Whether to use a lock for old archive extraction.
17952 lock_old_archive_extraction=$lock_old_archive_extraction
17957 # LTCC compiler flags.
17958 LTCFLAGS=$lt_CFLAGS
17960 # Take the output of nm and produce a listing of raw symbols and C names.
17961 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17963 # Transform the output of nm in a proper C declaration.
17964 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17966 # Transform the output of nm in a C name address pair.
17967 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17969 # Transform the output of nm in a C name address pair when lib prefix is needed.
17970 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17972 # The name of the directory that contains temporary libtool files.
17975 # Used to examine libraries when file_magic_cmd begins with "file".
17976 MAGIC_CMD=$MAGIC_CMD
17978 # Must we lock files when doing compilation?
17979 need_locks=$lt_need_locks
17981 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17982 DSYMUTIL=$lt_DSYMUTIL
17984 # Tool to change global to local symbols on Mac OS X.
17987 # Tool to manipulate fat objects and archives on Mac OS X.
17990 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17993 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17994 OTOOL64=$lt_OTOOL64
17996 # Old archive suffix (normally "a").
17999 # Shared library suffix (normally ".so").
18000 shrext_cmds=$lt_shrext_cmds
18002 # The commands to extract the exported symbol list from a shared archive.
18003 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18005 # Variables whose values should be saved in libtool wrapper scripts and
18006 # restored at link time.
18007 variables_saved_for_relink=$lt_variables_saved_for_relink
18009 # Do we need the "lib" prefix for modules?
18010 need_lib_prefix=$need_lib_prefix
18012 # Do we need a version for libraries?
18013 need_version=$need_version
18015 # Library versioning type.
18016 version_type=$version_type
18018 # Shared library runtime path variable.
18019 runpath_var=$runpath_var
18021 # Shared library path variable.
18022 shlibpath_var=$shlibpath_var
18024 # Is shlibpath searched before the hard-coded library search path?
18025 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18027 # Format of library name prefix.
18028 libname_spec=$lt_libname_spec
18030 # List of archive names. First name is the real one, the rest are links.
18031 # The last name is the one that the linker finds with -lNAME
18032 library_names_spec=$lt_library_names_spec
18034 # The coded name of the library, if different from the real name.
18035 soname_spec=$lt_soname_spec
18037 # Permission mode override for installation of shared libraries.
18038 install_override_mode=$lt_install_override_mode
18040 # Command to use after installation of a shared archive.
18041 postinstall_cmds=$lt_postinstall_cmds
18043 # Command to use after uninstallation of a shared archive.
18044 postuninstall_cmds=$lt_postuninstall_cmds
18046 # Commands used to finish a libtool library installation in a directory.
18047 finish_cmds=$lt_finish_cmds
18049 # As "finish_cmds", except a single script fragment to be evaled but
18051 finish_eval=$lt_finish_eval
18053 # Whether we should hardcode library paths into libraries.
18054 hardcode_into_libs=$hardcode_into_libs
18056 # Compile-time system search path for libraries.
18057 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18059 # Run-time system search path for libraries.
18060 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18062 # Whether dlopen is supported.
18063 dlopen_support=$enable_dlopen
18065 # Whether dlopen of programs is supported.
18066 dlopen_self=$enable_dlopen_self
18068 # Whether dlopen of statically linked programs is supported.
18069 dlopen_self_static=$enable_dlopen_self_static
18071 # Commands to strip libraries.
18072 old_striplib=$lt_old_striplib
18073 striplib=$lt_striplib
18076 # The linker used to build libraries.
18079 # How to create reloadable object files.
18080 reload_flag=$lt_reload_flag
18081 reload_cmds=$lt_reload_cmds
18083 # Commands used to build an old-style archive.
18084 old_archive_cmds=$lt_old_archive_cmds
18086 # A language specific compiler.
18089 # Is the compiler the GNU compiler?
18092 # Compiler flag to turn off builtin functions.
18093 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18095 # How to pass a linker flag through the compiler.
18096 wl=$lt_lt_prog_compiler_wl
18098 # Additional compiler flags for building library objects.
18099 pic_flag=$lt_lt_prog_compiler_pic
18101 # Compiler flag to prevent dynamic linking.
18102 link_static_flag=$lt_lt_prog_compiler_static
18104 # Does compiler simultaneously support -c and -o options?
18105 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18107 # Whether or not to add -lc for building shared libraries.
18108 build_libtool_need_lc=$archive_cmds_need_lc
18110 # Whether or not to disallow shared libs when runtime libs are static.
18111 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18113 # Compiler flag to allow reflexive dlopens.
18114 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18116 # Compiler flag to generate shared objects directly from archives.
18117 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18119 # Whether the compiler copes with passing no objects directly.
18120 compiler_needs_object=$lt_compiler_needs_object
18122 # Create an old-style archive from a shared archive.
18123 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18125 # Create a temporary old-style archive to link instead of a shared archive.
18126 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18128 # Commands used to build a shared archive.
18129 archive_cmds=$lt_archive_cmds
18130 archive_expsym_cmds=$lt_archive_expsym_cmds
18132 # Commands used to build a loadable module if different from building
18133 # a shared archive.
18134 module_cmds=$lt_module_cmds
18135 module_expsym_cmds=$lt_module_expsym_cmds
18137 # Whether we are building with GNU ld or not.
18138 with_gnu_ld=$lt_with_gnu_ld
18140 # Flag that allows shared libraries with undefined symbols to be built.
18141 allow_undefined_flag=$lt_allow_undefined_flag
18143 # Flag that enforces no undefined symbols.
18144 no_undefined_flag=$lt_no_undefined_flag
18146 # Flag to hardcode \$libdir into a binary during linking.
18147 # This must work even if \$libdir does not exist
18148 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18150 # If ld is used when linking, flag to hardcode \$libdir into a binary
18151 # during linking. This must work even if \$libdir does not exist.
18152 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18154 # Whether we need a single "-rpath" flag with a separated argument.
18155 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18157 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18158 # DIR into the resulting binary.
18159 hardcode_direct=$hardcode_direct
18161 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18162 # DIR into the resulting binary and the resulting library dependency is
18163 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18164 # library is relocated.
18165 hardcode_direct_absolute=$hardcode_direct_absolute
18167 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18168 # into the resulting binary.
18169 hardcode_minus_L=$hardcode_minus_L
18171 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18172 # into the resulting binary.
18173 hardcode_shlibpath_var=$hardcode_shlibpath_var
18175 # Set to "yes" if building a shared library automatically hardcodes DIR
18176 # into the library and all subsequent libraries and executables linked
18178 hardcode_automatic=$hardcode_automatic
18180 # Set to yes if linker adds runtime paths of dependent libraries
18181 # to runtime path list.
18182 inherit_rpath=$inherit_rpath
18184 # Whether libtool must link a program against all its dependency libraries.
18185 link_all_deplibs=$link_all_deplibs
18187 # Fix the shell variable \$srcfile for the compiler.
18188 fix_srcfile_path=$lt_fix_srcfile_path
18190 # Set to "yes" if exported symbols are required.
18191 always_export_symbols=$always_export_symbols
18193 # The commands to list exported symbols.
18194 export_symbols_cmds=$lt_export_symbols_cmds
18196 # Symbols that should not be listed in the preloaded symbols.
18197 exclude_expsyms=$lt_exclude_expsyms
18199 # Symbols that must always be exported.
18200 include_expsyms=$lt_include_expsyms
18202 # Commands necessary for linking programs (against libraries) with templates.
18203 prelink_cmds=$lt_prelink_cmds
18205 # Specify filename containing input files.
18206 file_list_spec=$lt_file_list_spec
18208 # How to hardcode a shared library path into an executable.
18209 hardcode_action=$hardcode_action
18211 # ### END LIBTOOL CONFIG
18217 cat <<\_LT_EOF
>> "$cfgfile"
18218 # AIX sometimes has problems with the GCC collect2 program. For some
18219 # reason, if we set the COLLECT_NAMES environment variable, the problems
18220 # vanish in a puff of smoke.
18221 if test "X${COLLECT_NAMES+set}" != Xset
; then
18223 export COLLECT_NAMES
18230 ltmain
="$ac_aux_dir/ltmain.sh"
18233 # We use sed instead of cat because bash on DJGPP gets confused if
18234 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18235 # text mode, it properly converts lines to CR/LF. This bash problem
18236 # is reportedly fixed, but why not run on old versions too?
18237 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18238 ||
(rm -f "$cfgfile"; exit 1)
18242 cat << \_LT_EOF
>> "$cfgfile"
18244 # func_dirname file append nondir_replacement
18245 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18246 # otherwise set result to NONDIR_REPLACEMENT.
18250 */*) func_dirname_result
="${1%/*}${2}" ;;
18251 * ) func_dirname_result
="${3}" ;;
18255 # func_basename file
18258 func_basename_result
="${1##*/}"
18261 # func_dirname_and_basename file append nondir_replacement
18262 # perform func_basename and func_dirname in a single function
18264 # dirname: Compute the dirname of FILE. If nonempty,
18265 # add APPEND to the result, otherwise set result
18266 # to NONDIR_REPLACEMENT.
18267 # value returned in "$func_dirname_result"
18268 # basename: Compute filename of FILE.
18269 # value retuned in "$func_basename_result"
18270 # Implementation must be kept synchronized with func_dirname
18271 # and func_basename. For efficiency, we do not delegate to
18272 # those functions but instead duplicate the functionality here.
18273 func_dirname_and_basename
()
18276 */*) func_dirname_result
="${1%/*}${2}" ;;
18277 * ) func_dirname_result
="${3}" ;;
18279 func_basename_result
="${1##*/}"
18282 # func_stripname prefix suffix name
18283 # strip PREFIX and SUFFIX off of NAME.
18284 # PREFIX and SUFFIX must not contain globbing or regex special
18285 # characters, hashes, percent signs, but SUFFIX may contain a leading
18286 # dot (in which case that matches only a dot).
18289 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18290 # positional parameters, so assign one to ordinary parameter first.
18291 func_stripname_result
=${3}
18292 func_stripname_result
=${func_stripname_result#"${1}"}
18293 func_stripname_result
=${func_stripname_result%"${2}"}
18299 func_opt_split_opt
=${1%%=*}
18300 func_opt_split_arg
=${1#*=}
18307 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
18308 *) func_lo2o_result
=${1} ;;
18312 # func_xform libobj-or-source
18315 func_xform_result
=${1%.*}.lo
18318 # func_arith arithmetic-term...
18321 func_arith_result
=$
(( $
* ))
18325 # STRING may not start with a hyphen.
18328 func_len_result
=${#1}
18333 *) # Bourne compatible functions.
18334 cat << \_LT_EOF
>> "$cfgfile"
18336 # func_dirname file append nondir_replacement
18337 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18338 # otherwise set result to NONDIR_REPLACEMENT.
18341 # Extract subdirectory from the argument.
18342 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
18343 if test "X$func_dirname_result" = "X${1}"; then
18344 func_dirname_result
="${3}"
18346 func_dirname_result
="$func_dirname_result${2}"
18350 # func_basename file
18353 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
18357 # func_stripname prefix suffix name
18358 # strip PREFIX and SUFFIX off of NAME.
18359 # PREFIX and SUFFIX must not contain globbing or regex special
18360 # characters, hashes, percent signs, but SUFFIX may contain a leading
18361 # dot (in which case that matches only a dot).
18362 # func_strip_suffix prefix name
18366 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18367 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18372 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
18373 my_sed_long_arg
='1s/^-[^=]*=//'
18378 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18379 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18385 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
18388 # func_xform libobj-or-source
18391 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18394 # func_arith arithmetic-term...
18397 func_arith_result
=`expr "$@"`
18401 # STRING may not start with a hyphen.
18404 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18410 case $lt_shell_append in
18412 cat << \_LT_EOF
>> "$cfgfile"
18414 # func_append var value
18415 # Append VALUE to the end of shell variable VAR.
18423 cat << \_LT_EOF
>> "$cfgfile"
18425 # func_append var value
18426 # Append VALUE to the end of shell variable VAR.
18437 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18438 ||
(rm -f "$cfgfile"; exit 1)
18440 mv -f "$cfgfile" "$ofile" ||
18441 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18445 cat <<_LT_EOF >> "$ofile"
18447 # ### BEGIN LIBTOOL TAG CONFIG: GO
18449 # The linker used to build libraries.
18452 # How to create reloadable object files.
18453 reload_flag=$lt_reload_flag_GO
18454 reload_cmds=$lt_reload_cmds_GO
18456 # Commands used to build an old-style archive.
18457 old_archive_cmds=$lt_old_archive_cmds_GO
18459 # A language specific compiler.
18462 # Is the compiler the GNU compiler?
18465 # Compiler flag to turn off builtin functions.
18466 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
18468 # How to pass a linker flag through the compiler.
18469 wl=$lt_lt_prog_compiler_wl_GO
18471 # Additional compiler flags for building library objects.
18472 pic_flag=$lt_lt_prog_compiler_pic_GO
18474 # Compiler flag to prevent dynamic linking.
18475 link_static_flag=$lt_lt_prog_compiler_static_GO
18477 # Does compiler simultaneously support -c and -o options?
18478 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
18480 # Whether or not to add -lc for building shared libraries.
18481 build_libtool_need_lc=$archive_cmds_need_lc_GO
18483 # Whether or not to disallow shared libs when runtime libs are static.
18484 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
18486 # Compiler flag to allow reflexive dlopens.
18487 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
18489 # Compiler flag to generate shared objects directly from archives.
18490 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
18492 # Whether the compiler copes with passing no objects directly.
18493 compiler_needs_object=$lt_compiler_needs_object_GO
18495 # Create an old-style archive from a shared archive.
18496 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
18498 # Create a temporary old-style archive to link instead of a shared archive.
18499 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
18501 # Commands used to build a shared archive.
18502 archive_cmds=$lt_archive_cmds_GO
18503 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
18505 # Commands used to build a loadable module if different from building
18506 # a shared archive.
18507 module_cmds=$lt_module_cmds_GO
18508 module_expsym_cmds=$lt_module_expsym_cmds_GO
18510 # Whether we are building with GNU ld or not.
18511 with_gnu_ld=$lt_with_gnu_ld_GO
18513 # Flag that allows shared libraries with undefined symbols to be built.
18514 allow_undefined_flag=$lt_allow_undefined_flag_GO
18516 # Flag that enforces no undefined symbols.
18517 no_undefined_flag=$lt_no_undefined_flag_GO
18519 # Flag to hardcode \$libdir into a binary during linking.
18520 # This must work even if \$libdir does not exist
18521 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
18523 # If ld is used when linking, flag to hardcode \$libdir into a binary
18524 # during linking. This must work even if \$libdir does not exist.
18525 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
18527 # Whether we need a single "-rpath" flag with a separated argument.
18528 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
18530 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18531 # DIR into the resulting binary.
18532 hardcode_direct=$hardcode_direct_GO
18534 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18535 # DIR into the resulting binary and the resulting library dependency is
18536 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18537 # library is relocated.
18538 hardcode_direct_absolute=$hardcode_direct_absolute_GO
18540 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18541 # into the resulting binary.
18542 hardcode_minus_L=$hardcode_minus_L_GO
18544 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18545 # into the resulting binary.
18546 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
18548 # Set to "yes" if building a shared library automatically hardcodes DIR
18549 # into the library and all subsequent libraries and executables linked
18551 hardcode_automatic=$hardcode_automatic_GO
18553 # Set to yes if linker adds runtime paths of dependent libraries
18554 # to runtime path list.
18555 inherit_rpath=$inherit_rpath_GO
18557 # Whether libtool must link a program against all its dependency libraries.
18558 link_all_deplibs=$link_all_deplibs_GO
18560 # Fix the shell variable \$srcfile for the compiler.
18561 fix_srcfile_path=$lt_fix_srcfile_path_GO
18563 # Set to "yes" if exported symbols are required.
18564 always_export_symbols=$always_export_symbols_GO
18566 # The commands to list exported symbols.
18567 export_symbols_cmds=$lt_export_symbols_cmds_GO
18569 # Symbols that should not be listed in the preloaded symbols.
18570 exclude_expsyms=$lt_exclude_expsyms_GO
18572 # Symbols that must always be exported.
18573 include_expsyms=$lt_include_expsyms_GO
18575 # Commands necessary for linking programs (against libraries) with templates.
18576 prelink_cmds=$lt_prelink_cmds_GO
18578 # Specify filename containing input files.
18579 file_list_spec=$lt_file_list_spec_GO
18581 # How to hardcode a shared library path into an executable.
18582 hardcode_action=$hardcode_action_GO
18584 # ### END LIBTOOL TAG CONFIG: GO
18588 "default":C
) if test -n "$CONFIG_FILES"; then
18589 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
18590 # that multilib installs will end up installed in the correct place.
18591 # The testsuite needs it for multilib-aware ABI baseline files.
18592 # To work around this not being passed down from config-ml.in ->
18593 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
18594 # append it here. Only modify Makefiles that have just been created.
18596 # Also, get rid of this simulated-VPATH thing that automake does.
18597 cat > vpsed
<< \_EOF
18598 s
!`test -f '$<' || echo '$(srcdir)/'`!!
18600 for i
in $SUBDIRS; do
18601 case $CONFIG_FILES in
18603 #echo "Adding MULTISUBDIR to $i/Makefile"
18604 sed -f vpsed
$i/Makefile
> tmp
18605 grep '^MULTISUBDIR =' Makefile
>> tmp
18620 ac_clean_files
=$ac_clean_files_save
18622 test $ac_write_fail = 0 ||
18623 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
18626 # configure is writing to config.log, and then calls config.status.
18627 # config.status does its own redirection, appending to config.log.
18628 # Unfortunately, on DOS this fails, as config.log is still kept open
18629 # by configure, so config.status won't be able to write to it; its
18630 # output is simply discarded. So we exec the FD to /dev/null,
18631 # effectively closing config.log, so it can be properly (re)opened and
18632 # appended to by config.status. When coming back to configure, we
18633 # need to make the FD available again.
18634 if test "$no_create" != yes; then
18636 ac_config_status_args
=
18637 test "$silent" = yes &&
18638 ac_config_status_args
="$ac_config_status_args --quiet"
18640 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
18642 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18643 # would make configure fail if this is the last instruction.
18644 $ac_cs_success || as_fn_exit
1
18646 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
18647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18648 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}