Add testcase of PR c++/92542, already fixed.
[official-gcc.git] / libgo / configure
blob6a65a60e4a9f10c2a7426cd2925b69b28e5e29e3
1 #! /bin/sh
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 :
18 emulate sh
19 NULLCMD=:
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+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
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
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
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'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
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.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
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
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
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 || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
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.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
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
156 as_fn_exit 255
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 :
162 emulate sh
163 NULLCMD=:
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+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
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; }
183 exitcode=0
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 :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || 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 :
209 as_have_required=yes
210 else
211 as_have_required=no
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
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 :
232 break 2
235 done;;
236 esac
237 as_found=false
238 done
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
242 fi; }
243 IFS=$as_save_IFS
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
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.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
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
265 exit 255
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."
274 else
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."
280 exit 1
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
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 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
298 { eval $1=; unset $1;}
300 as_unset=as_fn_unset
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
307 return $1
308 } # as_fn_set_status
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
351 /^X\(\/\/\)$/{
352 s//\1/
355 /^X\(\/\).*/{
356 s//\1/
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366 } # as_fn_mkdir_p
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
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
384 eval $1+=\$2
386 else
387 as_fn_append ()
389 eval $1=\$$1\$2
391 fi # as_fn_append
393 # as_fn_arith ARG...
394 # ------------------
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 :
399 eval 'as_fn_arith ()
401 as_val=$(( $* ))
403 else
404 as_fn_arith ()
406 as_val=`expr "$@" || test $? -eq 1`
408 fi # as_fn_arith
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.
416 as_fn_error ()
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
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
425 } # as_fn_error
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
455 /^X\/\(\/\/\)$/{
456 s//\1/
459 /^X\/\(\/\).*/{
460 s//\1/
463 s/.*/./; q'`
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. :-)
478 sed -n '
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
486 :lineno
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
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).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
518 ECHO_N='-n';;
519 esac
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
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
530 as_ln_s='ln -s'
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 ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
542 else
543 as_ln_s='cp -pR'
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"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
555 as_test_x='test -x'
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
568 exec 6>&1
570 # Name of the host.
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`
576 # Initializations.
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
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'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
595 ac_unique_file="Makefile.am"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 HAVE_STAT_TIMESPEC_FALSE
637 HAVE_STAT_TIMESPEC_TRUE
638 STRUCT_EPOLL_EVENT_FD_OFFSET
639 SIZEOF_STRUCT_EPOLL_EVENT
640 MATH_FLAG
641 STRINGOPS_FLAG
642 HAVE_WAIT4_FALSE
643 HAVE_WAIT4_TRUE
644 HAVE_STRERROR_R_FALSE
645 HAVE_STRERROR_R_TRUE
646 HAVE_SYS_MMAN_H_FALSE
647 HAVE_SYS_MMAN_H_TRUE
648 PTHREAD_LIBS
649 PTHREAD_CFLAGS
650 NET_LIBS
651 MATH_LIBS
652 GOC_IS_LLGO_FALSE
653 GOC_IS_LLGO_TRUE
654 GO_SPLIT_STACK
655 USING_SPLIT_STACK_FALSE
656 USING_SPLIT_STACK_TRUE
657 SPLIT_STACK
658 HWCAP_CFLAGS
659 OSCFLAGS
660 GO_SYSCALL_OS_ARCH_FILE
661 GO_SYSCALL_OS_FILE
662 GO_LIBCALL_OS_ARCH_FILE
663 GO_LIBCALL_OS_FILE
664 FUNCTION_DESCRIPTORS
665 LIBGO_IS_X86_FALSE
666 LIBGO_IS_X86_TRUE
667 ALLGOARCHFAMILY
668 ALLGOARCH
669 GOARCH
670 USE_DEJAGNU
671 ALLGOOS
672 GOOS
673 LIBGO_IS_BSD_FALSE
674 LIBGO_IS_BSD_TRUE
675 LIBGO_IS_HURD_FALSE
676 LIBGO_IS_HURD_TRUE
677 LIBGO_IS_AIX_FALSE
678 LIBGO_IS_AIX_TRUE
679 LIBGO_IS_SOLARIS_FALSE
680 LIBGO_IS_SOLARIS_TRUE
681 LIBGO_IS_RTEMS_FALSE
682 LIBGO_IS_RTEMS_TRUE
683 LIBGO_IS_DRAGONFLY_FALSE
684 LIBGO_IS_DRAGONFLY_TRUE
685 LIBGO_IS_OPENBSD_FALSE
686 LIBGO_IS_OPENBSD_TRUE
687 LIBGO_IS_NETBSD_FALSE
688 LIBGO_IS_NETBSD_TRUE
689 LIBGO_IS_LINUX_FALSE
690 LIBGO_IS_LINUX_TRUE
691 LIBGO_IS_IRIX_FALSE
692 LIBGO_IS_IRIX_TRUE
693 LIBGO_IS_FREEBSD_FALSE
694 LIBGO_IS_FREEBSD_TRUE
695 LIBGO_IS_DARWIN_FALSE
696 LIBGO_IS_DARWIN_TRUE
697 go_include
698 LIBATOMIC
699 USE_LIBFFI_FALSE
700 USE_LIBFFI_TRUE
701 LIBFFIINCS
702 LIBFFI
703 nover_glibgo_toolexeclibdir
704 glibgo_toolexeclibdir
705 glibgo_toolexecdir
706 WERROR
707 WARN_FLAGS
708 CC_FOR_BUILD
709 enable_static
710 enable_shared
712 OTOOL64
713 OTOOL
714 LIPO
715 NMEDIT
716 DSYMUTIL
718 OBJDUMP
719 LN_S
721 ac_ct_DUMPBIN
722 DUMPBIN
723 LIBTOOL
724 OBJCOPY
725 RANLIB
727 FGREP
728 EGREP
729 GREP
731 MAINT
732 MAINTAINER_MODE_FALSE
733 MAINTAINER_MODE_TRUE
734 am__fastdepCCAS_FALSE
735 am__fastdepCCAS_TRUE
736 CCASDEPMODE
737 CCASFLAGS
738 CCAS
739 GOFLAGS
741 am__fastdepCC_FALSE
742 am__fastdepCC_TRUE
743 CCDEPMODE
744 am__nodep
745 AMDEPBACKSLASH
746 AMDEP_FALSE
747 AMDEP_TRUE
748 am__quote
749 am__include
750 DEPDIR
751 OBJEXT
752 EXEEXT
753 ac_ct_CC
754 CPPFLAGS
755 LDFLAGS
756 CFLAGS
758 AM_BACKSLASH
759 AM_DEFAULT_VERBOSITY
760 AM_DEFAULT_V
761 AM_V
762 am__untar
763 am__tar
764 AMTAR
765 am__leading_dot
766 SET_MAKE
768 mkdir_p
769 MKDIR_P
770 INSTALL_STRIP_PROGRAM
771 STRIP
772 install_sh
773 MAKEINFO
774 AUTOHEADER
775 AUTOMAKE
776 AUTOCONF
777 ACLOCAL
778 VERSION
779 PACKAGE
780 CYGPATH_W
781 am__isrc
782 INSTALL_DATA
783 INSTALL_SCRIPT
784 INSTALL_PROGRAM
785 target_os
786 target_vendor
787 target_cpu
788 target
789 host_os
790 host_vendor
791 host_cpu
792 host
793 build_os
794 build_vendor
795 build_cpu
796 build
797 multi_basedir
798 libtool_VERSION
799 target_alias
800 host_alias
801 build_alias
802 LIBS
803 ECHO_T
804 ECHO_N
805 ECHO_C
806 DEFS
807 mandir
808 localedir
809 libdir
810 psdir
811 pdfdir
812 dvidir
813 htmldir
814 infodir
815 docdir
816 oldincludedir
817 includedir
818 localstatedir
819 sharedstatedir
820 sysconfdir
821 datadir
822 datarootdir
823 libexecdir
824 sbindir
825 bindir
826 program_transform_name
827 prefix
828 exec_prefix
829 PACKAGE_URL
830 PACKAGE_BUGREPORT
831 PACKAGE_STRING
832 PACKAGE_VERSION
833 PACKAGE_TARNAME
834 PACKAGE_NAME
835 PATH_SEPARATOR
836 SHELL'
837 ac_subst_files=''
838 ac_user_opts='
839 enable_option_checking
840 enable_multilib
841 enable_silent_rules
842 enable_dependency_tracking
843 enable_maintainer_mode
844 with_gnu_ld
845 enable_shared
846 enable_static
847 with_pic
848 enable_fast_install
849 enable_libtool_lock
850 enable_werror
851 enable_version_specific_runtime_libs
852 with_libffi
853 with_libatomic
854 with_system_libunwind
856 ac_precious_vars='build_alias
857 host_alias
858 target_alias
860 CPPFLAGS'
863 # Initialize some variables set by options.
864 ac_init_help=
865 ac_init_version=false
866 ac_unrecognized_opts=
867 ac_unrecognized_sep=
868 # The variables have the same names as the options, with
869 # dashes changed to underlines.
870 cache_file=/dev/null
871 exec_prefix=NONE
872 no_create=
873 no_recursion=
874 prefix=NONE
875 program_prefix=NONE
876 program_suffix=NONE
877 program_transform_name=s,x,x,
878 silent=
879 site=
880 srcdir=
881 verbose=
882 x_includes=NONE
883 x_libraries=NONE
885 # Installation directory options.
886 # These are left unexpanded so users can "make install exec_prefix=/foo"
887 # and all the variables that are supposed to be based on exec_prefix
888 # by default will actually change.
889 # Use braces instead of parens because sh, perl, etc. also accept them.
890 # (The list follows the same order as the GNU Coding Standards.)
891 bindir='${exec_prefix}/bin'
892 sbindir='${exec_prefix}/sbin'
893 libexecdir='${exec_prefix}/libexec'
894 datarootdir='${prefix}/share'
895 datadir='${datarootdir}'
896 sysconfdir='${prefix}/etc'
897 sharedstatedir='${prefix}/com'
898 localstatedir='${prefix}/var'
899 includedir='${prefix}/include'
900 oldincludedir='/usr/include'
901 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
902 infodir='${datarootdir}/info'
903 htmldir='${docdir}'
904 dvidir='${docdir}'
905 pdfdir='${docdir}'
906 psdir='${docdir}'
907 libdir='${exec_prefix}/lib'
908 localedir='${datarootdir}/locale'
909 mandir='${datarootdir}/man'
911 ac_prev=
912 ac_dashdash=
913 for ac_option
915 # If the previous option needs an argument, assign it.
916 if test -n "$ac_prev"; then
917 eval $ac_prev=\$ac_option
918 ac_prev=
919 continue
922 case $ac_option in
923 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
924 *=) ac_optarg= ;;
925 *) ac_optarg=yes ;;
926 esac
928 # Accept the important Cygnus configure options, so we can diagnose typos.
930 case $ac_dashdash$ac_option in
932 ac_dashdash=yes ;;
934 -bindir | --bindir | --bindi | --bind | --bin | --bi)
935 ac_prev=bindir ;;
936 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
937 bindir=$ac_optarg ;;
939 -build | --build | --buil | --bui | --bu)
940 ac_prev=build_alias ;;
941 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
942 build_alias=$ac_optarg ;;
944 -cache-file | --cache-file | --cache-fil | --cache-fi \
945 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
946 ac_prev=cache_file ;;
947 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
948 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
949 cache_file=$ac_optarg ;;
951 --config-cache | -C)
952 cache_file=config.cache ;;
954 -datadir | --datadir | --datadi | --datad)
955 ac_prev=datadir ;;
956 -datadir=* | --datadir=* | --datadi=* | --datad=*)
957 datadir=$ac_optarg ;;
959 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
960 | --dataroo | --dataro | --datar)
961 ac_prev=datarootdir ;;
962 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
963 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
964 datarootdir=$ac_optarg ;;
966 -disable-* | --disable-*)
967 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
968 # Reject names that are not valid shell variable names.
969 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970 as_fn_error $? "invalid feature name: $ac_useropt"
971 ac_useropt_orig=$ac_useropt
972 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973 case $ac_user_opts in
975 "enable_$ac_useropt"
976 "*) ;;
977 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
978 ac_unrecognized_sep=', ';;
979 esac
980 eval enable_$ac_useropt=no ;;
982 -docdir | --docdir | --docdi | --doc | --do)
983 ac_prev=docdir ;;
984 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
985 docdir=$ac_optarg ;;
987 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
988 ac_prev=dvidir ;;
989 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
990 dvidir=$ac_optarg ;;
992 -enable-* | --enable-*)
993 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
994 # Reject names that are not valid shell variable names.
995 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
996 as_fn_error $? "invalid feature name: $ac_useropt"
997 ac_useropt_orig=$ac_useropt
998 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
999 case $ac_user_opts in
1001 "enable_$ac_useropt"
1002 "*) ;;
1003 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1004 ac_unrecognized_sep=', ';;
1005 esac
1006 eval enable_$ac_useropt=\$ac_optarg ;;
1008 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1009 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1010 | --exec | --exe | --ex)
1011 ac_prev=exec_prefix ;;
1012 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1013 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1014 | --exec=* | --exe=* | --ex=*)
1015 exec_prefix=$ac_optarg ;;
1017 -gas | --gas | --ga | --g)
1018 # Obsolete; use --with-gas.
1019 with_gas=yes ;;
1021 -help | --help | --hel | --he | -h)
1022 ac_init_help=long ;;
1023 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1024 ac_init_help=recursive ;;
1025 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1026 ac_init_help=short ;;
1028 -host | --host | --hos | --ho)
1029 ac_prev=host_alias ;;
1030 -host=* | --host=* | --hos=* | --ho=*)
1031 host_alias=$ac_optarg ;;
1033 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1034 ac_prev=htmldir ;;
1035 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1036 | --ht=*)
1037 htmldir=$ac_optarg ;;
1039 -includedir | --includedir | --includedi | --included | --include \
1040 | --includ | --inclu | --incl | --inc)
1041 ac_prev=includedir ;;
1042 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1043 | --includ=* | --inclu=* | --incl=* | --inc=*)
1044 includedir=$ac_optarg ;;
1046 -infodir | --infodir | --infodi | --infod | --info | --inf)
1047 ac_prev=infodir ;;
1048 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1049 infodir=$ac_optarg ;;
1051 -libdir | --libdir | --libdi | --libd)
1052 ac_prev=libdir ;;
1053 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1054 libdir=$ac_optarg ;;
1056 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1057 | --libexe | --libex | --libe)
1058 ac_prev=libexecdir ;;
1059 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1060 | --libexe=* | --libex=* | --libe=*)
1061 libexecdir=$ac_optarg ;;
1063 -localedir | --localedir | --localedi | --localed | --locale)
1064 ac_prev=localedir ;;
1065 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1066 localedir=$ac_optarg ;;
1068 -localstatedir | --localstatedir | --localstatedi | --localstated \
1069 | --localstate | --localstat | --localsta | --localst | --locals)
1070 ac_prev=localstatedir ;;
1071 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1072 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1073 localstatedir=$ac_optarg ;;
1075 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1076 ac_prev=mandir ;;
1077 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1078 mandir=$ac_optarg ;;
1080 -nfp | --nfp | --nf)
1081 # Obsolete; use --without-fp.
1082 with_fp=no ;;
1084 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1085 | --no-cr | --no-c | -n)
1086 no_create=yes ;;
1088 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1089 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1090 no_recursion=yes ;;
1092 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1093 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1094 | --oldin | --oldi | --old | --ol | --o)
1095 ac_prev=oldincludedir ;;
1096 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1097 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1098 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1099 oldincludedir=$ac_optarg ;;
1101 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1102 ac_prev=prefix ;;
1103 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1104 prefix=$ac_optarg ;;
1106 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1107 | --program-pre | --program-pr | --program-p)
1108 ac_prev=program_prefix ;;
1109 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1110 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1111 program_prefix=$ac_optarg ;;
1113 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1114 | --program-suf | --program-su | --program-s)
1115 ac_prev=program_suffix ;;
1116 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1117 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1118 program_suffix=$ac_optarg ;;
1120 -program-transform-name | --program-transform-name \
1121 | --program-transform-nam | --program-transform-na \
1122 | --program-transform-n | --program-transform- \
1123 | --program-transform | --program-transfor \
1124 | --program-transfo | --program-transf \
1125 | --program-trans | --program-tran \
1126 | --progr-tra | --program-tr | --program-t)
1127 ac_prev=program_transform_name ;;
1128 -program-transform-name=* | --program-transform-name=* \
1129 | --program-transform-nam=* | --program-transform-na=* \
1130 | --program-transform-n=* | --program-transform-=* \
1131 | --program-transform=* | --program-transfor=* \
1132 | --program-transfo=* | --program-transf=* \
1133 | --program-trans=* | --program-tran=* \
1134 | --progr-tra=* | --program-tr=* | --program-t=*)
1135 program_transform_name=$ac_optarg ;;
1137 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1138 ac_prev=pdfdir ;;
1139 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1140 pdfdir=$ac_optarg ;;
1142 -psdir | --psdir | --psdi | --psd | --ps)
1143 ac_prev=psdir ;;
1144 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1145 psdir=$ac_optarg ;;
1147 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1148 | -silent | --silent | --silen | --sile | --sil)
1149 silent=yes ;;
1151 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1152 ac_prev=sbindir ;;
1153 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1154 | --sbi=* | --sb=*)
1155 sbindir=$ac_optarg ;;
1157 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1158 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1159 | --sharedst | --shareds | --shared | --share | --shar \
1160 | --sha | --sh)
1161 ac_prev=sharedstatedir ;;
1162 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1163 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1164 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1165 | --sha=* | --sh=*)
1166 sharedstatedir=$ac_optarg ;;
1168 -site | --site | --sit)
1169 ac_prev=site ;;
1170 -site=* | --site=* | --sit=*)
1171 site=$ac_optarg ;;
1173 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1174 ac_prev=srcdir ;;
1175 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1176 srcdir=$ac_optarg ;;
1178 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1179 | --syscon | --sysco | --sysc | --sys | --sy)
1180 ac_prev=sysconfdir ;;
1181 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1182 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1183 sysconfdir=$ac_optarg ;;
1185 -target | --target | --targe | --targ | --tar | --ta | --t)
1186 ac_prev=target_alias ;;
1187 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1188 target_alias=$ac_optarg ;;
1190 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1191 verbose=yes ;;
1193 -version | --version | --versio | --versi | --vers | -V)
1194 ac_init_version=: ;;
1196 -with-* | --with-*)
1197 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1198 # Reject names that are not valid shell variable names.
1199 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1200 as_fn_error $? "invalid package name: $ac_useropt"
1201 ac_useropt_orig=$ac_useropt
1202 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1203 case $ac_user_opts in
1205 "with_$ac_useropt"
1206 "*) ;;
1207 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1208 ac_unrecognized_sep=', ';;
1209 esac
1210 eval with_$ac_useropt=\$ac_optarg ;;
1212 -without-* | --without-*)
1213 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1214 # Reject names that are not valid shell variable names.
1215 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1216 as_fn_error $? "invalid package name: $ac_useropt"
1217 ac_useropt_orig=$ac_useropt
1218 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1219 case $ac_user_opts in
1221 "with_$ac_useropt"
1222 "*) ;;
1223 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1224 ac_unrecognized_sep=', ';;
1225 esac
1226 eval with_$ac_useropt=no ;;
1228 --x)
1229 # Obsolete; use --with-x.
1230 with_x=yes ;;
1232 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1233 | --x-incl | --x-inc | --x-in | --x-i)
1234 ac_prev=x_includes ;;
1235 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1236 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1237 x_includes=$ac_optarg ;;
1239 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1240 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1241 ac_prev=x_libraries ;;
1242 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1243 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1244 x_libraries=$ac_optarg ;;
1246 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1247 Try \`$0 --help' for more information"
1250 *=*)
1251 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1252 # Reject names that are not valid shell variable names.
1253 case $ac_envvar in #(
1254 '' | [0-9]* | *[!_$as_cr_alnum]* )
1255 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1256 esac
1257 eval $ac_envvar=\$ac_optarg
1258 export $ac_envvar ;;
1261 # FIXME: should be removed in autoconf 3.0.
1262 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1263 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1264 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1265 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1268 esac
1269 done
1271 if test -n "$ac_prev"; then
1272 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1273 as_fn_error $? "missing argument to $ac_option"
1276 if test -n "$ac_unrecognized_opts"; then
1277 case $enable_option_checking in
1278 no) ;;
1279 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1280 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1281 esac
1284 # Check all directory arguments for consistency.
1285 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1286 datadir sysconfdir sharedstatedir localstatedir includedir \
1287 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1288 libdir localedir mandir
1290 eval ac_val=\$$ac_var
1291 # Remove trailing slashes.
1292 case $ac_val in
1293 */ )
1294 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1295 eval $ac_var=\$ac_val;;
1296 esac
1297 # Be sure to have absolute directory names.
1298 case $ac_val in
1299 [\\/$]* | ?:[\\/]* ) continue;;
1300 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1301 esac
1302 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1303 done
1305 # There might be people who depend on the old broken behavior: `$host'
1306 # used to hold the argument of --host etc.
1307 # FIXME: To remove some day.
1308 build=$build_alias
1309 host=$host_alias
1310 target=$target_alias
1312 # FIXME: To remove some day.
1313 if test "x$host_alias" != x; then
1314 if test "x$build_alias" = x; then
1315 cross_compiling=maybe
1316 elif test "x$build_alias" != "x$host_alias"; then
1317 cross_compiling=yes
1321 ac_tool_prefix=
1322 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1324 test "$silent" = yes && exec 6>/dev/null
1327 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1328 ac_ls_di=`ls -di .` &&
1329 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1330 as_fn_error $? "working directory cannot be determined"
1331 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1332 as_fn_error $? "pwd does not report name of working directory"
1335 # Find the source files, if location was not specified.
1336 if test -z "$srcdir"; then
1337 ac_srcdir_defaulted=yes
1338 # Try the directory containing this script, then the parent directory.
1339 ac_confdir=`$as_dirname -- "$as_myself" ||
1340 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1341 X"$as_myself" : 'X\(//\)[^/]' \| \
1342 X"$as_myself" : 'X\(//\)$' \| \
1343 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1344 $as_echo X"$as_myself" |
1345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1346 s//\1/
1349 /^X\(\/\/\)[^/].*/{
1350 s//\1/
1353 /^X\(\/\/\)$/{
1354 s//\1/
1357 /^X\(\/\).*/{
1358 s//\1/
1361 s/.*/./; q'`
1362 srcdir=$ac_confdir
1363 if test ! -r "$srcdir/$ac_unique_file"; then
1364 srcdir=..
1366 else
1367 ac_srcdir_defaulted=no
1369 if test ! -r "$srcdir/$ac_unique_file"; then
1370 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1371 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1373 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1374 ac_abs_confdir=`(
1375 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1376 pwd)`
1377 # When building in place, set srcdir=.
1378 if test "$ac_abs_confdir" = "$ac_pwd"; then
1379 srcdir=.
1381 # Remove unnecessary trailing slashes from srcdir.
1382 # Double slashes in file names in object file debugging info
1383 # mess up M-x gdb in Emacs.
1384 case $srcdir in
1385 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1386 esac
1387 for ac_var in $ac_precious_vars; do
1388 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1389 eval ac_env_${ac_var}_value=\$${ac_var}
1390 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1391 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1392 done
1395 # Report the --help message.
1397 if test "$ac_init_help" = "long"; then
1398 # Omit some internal or obsolete options to make the list less imposing.
1399 # This message is too long to be a string in the A/UX 3.1 sh.
1400 cat <<_ACEOF
1401 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1403 Usage: $0 [OPTION]... [VAR=VALUE]...
1405 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1406 VAR=VALUE. See below for descriptions of some of the useful variables.
1408 Defaults for the options are specified in brackets.
1410 Configuration:
1411 -h, --help display this help and exit
1412 --help=short display options specific to this package
1413 --help=recursive display the short help of all the included packages
1414 -V, --version display version information and exit
1415 -q, --quiet, --silent do not print \`checking ...' messages
1416 --cache-file=FILE cache test results in FILE [disabled]
1417 -C, --config-cache alias for \`--cache-file=config.cache'
1418 -n, --no-create do not create output files
1419 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1421 Installation directories:
1422 --prefix=PREFIX install architecture-independent files in PREFIX
1423 [$ac_default_prefix]
1424 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1425 [PREFIX]
1427 By default, \`make install' will install all the files in
1428 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1429 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1430 for instance \`--prefix=\$HOME'.
1432 For better control, use the options below.
1434 Fine tuning of the installation directories:
1435 --bindir=DIR user executables [EPREFIX/bin]
1436 --sbindir=DIR system admin executables [EPREFIX/sbin]
1437 --libexecdir=DIR program executables [EPREFIX/libexec]
1438 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1439 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1440 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1441 --libdir=DIR object code libraries [EPREFIX/lib]
1442 --includedir=DIR C header files [PREFIX/include]
1443 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1444 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1445 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1446 --infodir=DIR info documentation [DATAROOTDIR/info]
1447 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1448 --mandir=DIR man documentation [DATAROOTDIR/man]
1449 --docdir=DIR documentation root [DATAROOTDIR/doc/libgo]
1450 --htmldir=DIR html documentation [DOCDIR]
1451 --dvidir=DIR dvi documentation [DOCDIR]
1452 --pdfdir=DIR pdf documentation [DOCDIR]
1453 --psdir=DIR ps documentation [DOCDIR]
1454 _ACEOF
1456 cat <<\_ACEOF
1458 Program names:
1459 --program-prefix=PREFIX prepend PREFIX to installed program names
1460 --program-suffix=SUFFIX append SUFFIX to installed program names
1461 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1463 System types:
1464 --build=BUILD configure for building on BUILD [guessed]
1465 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1466 --target=TARGET configure for building compilers for TARGET [HOST]
1467 _ACEOF
1470 if test -n "$ac_init_help"; then
1471 case $ac_init_help in
1472 short | recursive ) echo "Configuration of package-unused version-unused:";;
1473 esac
1474 cat <<\_ACEOF
1476 Optional Features:
1477 --disable-option-checking ignore unrecognized --enable/--with options
1478 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1479 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1480 --enable-multilib build many library versions (default)
1481 --enable-silent-rules less verbose build output (undo: "make V=1")
1482 --disable-silent-rules verbose build output (undo: "make V=0")
1483 --enable-dependency-tracking
1484 do not reject slow dependency extractors
1485 --disable-dependency-tracking
1486 speeds up one-time build
1487 --enable-maintainer-mode
1488 enable make rules and dependencies not useful (and
1489 sometimes confusing) to the casual installer
1490 --enable-shared[=PKGS] build shared libraries [default=yes]
1491 --enable-static[=PKGS] build static libraries [default=yes]
1492 --enable-fast-install[=PKGS]
1493 optimize for fast installation [default=yes]
1494 --disable-libtool-lock avoid locking (might break parallel builds)
1495 --enable-werror turns on -Werror [default=yes]
1496 --enable-version-specific-runtime-libs
1497 Specify that runtime libraries should be installed
1498 in a compiler-specific directory
1500 Optional Packages:
1501 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1502 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1503 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1504 --with-pic try to use only PIC/non-PIC objects [default=use
1505 both]
1506 --without-libffi don't use libffi
1507 --without-libatomic don't use libatomic
1508 --with-system-libunwind use installed libunwind
1510 Some influential environment variables:
1511 CC C compiler command
1512 CFLAGS C compiler flags
1513 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1514 nonstandard directory <lib dir>
1515 LIBS libraries to pass to the linker, e.g. -l<library>
1516 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1517 you have headers in a nonstandard directory <include dir>
1518 GOC Go compiler command
1519 GOFLAGS Go compiler flags
1520 CCAS assembler compiler command (defaults to CC)
1521 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1522 CPP C preprocessor
1524 Use these variables to override the choices made by `configure' or to help
1525 it to find libraries and programs with nonstandard names/locations.
1527 Report bugs to the package provider.
1528 _ACEOF
1529 ac_status=$?
1532 if test "$ac_init_help" = "recursive"; then
1533 # If there are subdirs, report their specific --help.
1534 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1535 test -d "$ac_dir" ||
1536 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1537 continue
1538 ac_builddir=.
1540 case "$ac_dir" in
1541 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1543 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1544 # A ".." for each directory in $ac_dir_suffix.
1545 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1546 case $ac_top_builddir_sub in
1547 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1548 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1549 esac ;;
1550 esac
1551 ac_abs_top_builddir=$ac_pwd
1552 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1553 # for backward compatibility:
1554 ac_top_builddir=$ac_top_build_prefix
1556 case $srcdir in
1557 .) # We are building in place.
1558 ac_srcdir=.
1559 ac_top_srcdir=$ac_top_builddir_sub
1560 ac_abs_top_srcdir=$ac_pwd ;;
1561 [\\/]* | ?:[\\/]* ) # Absolute name.
1562 ac_srcdir=$srcdir$ac_dir_suffix;
1563 ac_top_srcdir=$srcdir
1564 ac_abs_top_srcdir=$srcdir ;;
1565 *) # Relative name.
1566 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1567 ac_top_srcdir=$ac_top_build_prefix$srcdir
1568 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1569 esac
1570 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1572 cd "$ac_dir" || { ac_status=$?; continue; }
1573 # Check for guested configure.
1574 if test -f "$ac_srcdir/configure.gnu"; then
1575 echo &&
1576 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1577 elif test -f "$ac_srcdir/configure"; then
1578 echo &&
1579 $SHELL "$ac_srcdir/configure" --help=recursive
1580 else
1581 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1582 fi || ac_status=$?
1583 cd "$ac_pwd" || { ac_status=$?; break; }
1584 done
1587 test -n "$ac_init_help" && exit $ac_status
1588 if $ac_init_version; then
1589 cat <<\_ACEOF
1590 package-unused configure version-unused
1591 generated by GNU Autoconf 2.69
1593 Copyright (C) 2012 Free Software Foundation, Inc.
1594 This configure script is free software; the Free Software Foundation
1595 gives unlimited permission to copy, distribute and modify it.
1596 _ACEOF
1597 exit
1600 ## ------------------------ ##
1601 ## Autoconf initialization. ##
1602 ## ------------------------ ##
1604 # ac_fn_c_try_compile LINENO
1605 # --------------------------
1606 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1607 ac_fn_c_try_compile ()
1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610 rm -f conftest.$ac_objext
1611 if { { ac_try="$ac_compile"
1612 case "(($ac_try" in
1613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1614 *) ac_try_echo=$ac_try;;
1615 esac
1616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617 $as_echo "$ac_try_echo"; } >&5
1618 (eval "$ac_compile") 2>conftest.err
1619 ac_status=$?
1620 if test -s conftest.err; then
1621 grep -v '^ *+' conftest.err >conftest.er1
1622 cat conftest.er1 >&5
1623 mv -f conftest.er1 conftest.err
1625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1626 test $ac_status = 0; } && {
1627 test -z "$ac_c_werror_flag" ||
1628 test ! -s conftest.err
1629 } && test -s conftest.$ac_objext; then :
1630 ac_retval=0
1631 else
1632 $as_echo "$as_me: failed program was:" >&5
1633 sed 's/^/| /' conftest.$ac_ext >&5
1635 ac_retval=1
1637 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1638 as_fn_set_status $ac_retval
1640 } # ac_fn_c_try_compile
1642 # ac_fn_c_try_link LINENO
1643 # -----------------------
1644 # Try to link conftest.$ac_ext, and return whether this succeeded.
1645 ac_fn_c_try_link ()
1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648 rm -f conftest.$ac_objext conftest$ac_exeext
1649 if { { ac_try="$ac_link"
1650 case "(($ac_try" in
1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652 *) ac_try_echo=$ac_try;;
1653 esac
1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655 $as_echo "$ac_try_echo"; } >&5
1656 (eval "$ac_link") 2>conftest.err
1657 ac_status=$?
1658 if test -s conftest.err; then
1659 grep -v '^ *+' conftest.err >conftest.er1
1660 cat conftest.er1 >&5
1661 mv -f conftest.er1 conftest.err
1663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664 test $ac_status = 0; } && {
1665 test -z "$ac_c_werror_flag" ||
1666 test ! -s conftest.err
1667 } && test -s conftest$ac_exeext && {
1668 test "$cross_compiling" = yes ||
1669 test -x conftest$ac_exeext
1670 }; then :
1671 ac_retval=0
1672 else
1673 $as_echo "$as_me: failed program was:" >&5
1674 sed 's/^/| /' conftest.$ac_ext >&5
1676 ac_retval=1
1678 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1679 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1680 # interfere with the next link command; also delete a directory that is
1681 # left behind by Apple's compiler. We do this before executing the actions.
1682 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684 as_fn_set_status $ac_retval
1686 } # ac_fn_c_try_link
1688 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1689 # -------------------------------------------------------
1690 # Tests whether HEADER exists and can be compiled using the include files in
1691 # INCLUDES, setting the cache variable VAR accordingly.
1692 ac_fn_c_check_header_compile ()
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1696 $as_echo_n "checking for $2... " >&6; }
1697 if eval \${$3+:} false; then :
1698 $as_echo_n "(cached) " >&6
1699 else
1700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1701 /* end confdefs.h. */
1703 #include <$2>
1704 _ACEOF
1705 if ac_fn_c_try_compile "$LINENO"; then :
1706 eval "$3=yes"
1707 else
1708 eval "$3=no"
1710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1712 eval ac_res=\$$3
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1714 $as_echo "$ac_res" >&6; }
1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1717 } # ac_fn_c_check_header_compile
1719 # ac_fn_c_try_cpp LINENO
1720 # ----------------------
1721 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1722 ac_fn_c_try_cpp ()
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 if { { ac_try="$ac_cpp conftest.$ac_ext"
1726 case "(($ac_try" in
1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728 *) ac_try_echo=$ac_try;;
1729 esac
1730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731 $as_echo "$ac_try_echo"; } >&5
1732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1733 ac_status=$?
1734 if test -s conftest.err; then
1735 grep -v '^ *+' conftest.err >conftest.er1
1736 cat conftest.er1 >&5
1737 mv -f conftest.er1 conftest.err
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; } > conftest.i && {
1741 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1742 test ! -s conftest.err
1743 }; then :
1744 ac_retval=0
1745 else
1746 $as_echo "$as_me: failed program was:" >&5
1747 sed 's/^/| /' conftest.$ac_ext >&5
1749 ac_retval=1
1751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752 as_fn_set_status $ac_retval
1754 } # ac_fn_c_try_cpp
1756 # ac_fn_c_try_run LINENO
1757 # ----------------------
1758 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1759 # that executables *can* be run.
1760 ac_fn_c_try_run ()
1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763 if { { ac_try="$ac_link"
1764 case "(($ac_try" in
1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766 *) ac_try_echo=$ac_try;;
1767 esac
1768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769 $as_echo "$ac_try_echo"; } >&5
1770 (eval "$ac_link") 2>&5
1771 ac_status=$?
1772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1774 { { case "(($ac_try" in
1775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1776 *) ac_try_echo=$ac_try;;
1777 esac
1778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779 $as_echo "$ac_try_echo"; } >&5
1780 (eval "$ac_try") 2>&5
1781 ac_status=$?
1782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783 test $ac_status = 0; }; }; then :
1784 ac_retval=0
1785 else
1786 $as_echo "$as_me: program exited with status $ac_status" >&5
1787 $as_echo "$as_me: failed program was:" >&5
1788 sed 's/^/| /' conftest.$ac_ext >&5
1790 ac_retval=$ac_status
1792 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794 as_fn_set_status $ac_retval
1796 } # ac_fn_c_try_run
1798 # ac_fn_c_check_func LINENO FUNC VAR
1799 # ----------------------------------
1800 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1801 ac_fn_c_check_func ()
1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1805 $as_echo_n "checking for $2... " >&6; }
1806 if eval \${$3+:} false; then :
1807 $as_echo_n "(cached) " >&6
1808 else
1809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810 /* end confdefs.h. */
1811 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1813 #define $2 innocuous_$2
1815 /* System header to define __stub macros and hopefully few prototypes,
1816 which can conflict with char $2 (); below.
1817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1818 <limits.h> exists even on freestanding compilers. */
1820 #ifdef __STDC__
1821 # include <limits.h>
1822 #else
1823 # include <assert.h>
1824 #endif
1826 #undef $2
1828 /* Override any GCC internal prototype to avoid an error.
1829 Use char because int might match the return type of a GCC
1830 builtin and then its argument prototype would still apply. */
1831 #ifdef __cplusplus
1832 extern "C"
1833 #endif
1834 char $2 ();
1835 /* The GNU C library defines this for functions which it implements
1836 to always fail with ENOSYS. Some functions are actually named
1837 something starting with __ and the normal name is an alias. */
1838 #if defined __stub_$2 || defined __stub___$2
1839 choke me
1840 #endif
1843 main ()
1845 return $2 ();
1847 return 0;
1849 _ACEOF
1850 if ac_fn_c_try_link "$LINENO"; then :
1851 eval "$3=yes"
1852 else
1853 eval "$3=no"
1855 rm -f core conftest.err conftest.$ac_objext \
1856 conftest$ac_exeext conftest.$ac_ext
1858 eval ac_res=\$$3
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1860 $as_echo "$ac_res" >&6; }
1861 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1863 } # ac_fn_c_check_func
1865 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1866 # -------------------------------------------------------
1867 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1868 # the include files in INCLUDES and setting the cache variable VAR
1869 # accordingly.
1870 ac_fn_c_check_header_mongrel ()
1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873 if eval \${$3+:} false; then :
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1875 $as_echo_n "checking for $2... " >&6; }
1876 if eval \${$3+:} false; then :
1877 $as_echo_n "(cached) " >&6
1879 eval ac_res=\$$3
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1881 $as_echo "$ac_res" >&6; }
1882 else
1883 # Is the header compilable?
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1885 $as_echo_n "checking $2 usability... " >&6; }
1886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1887 /* end confdefs.h. */
1889 #include <$2>
1890 _ACEOF
1891 if ac_fn_c_try_compile "$LINENO"; then :
1892 ac_header_compiler=yes
1893 else
1894 ac_header_compiler=no
1896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1898 $as_echo "$ac_header_compiler" >&6; }
1900 # Is the header present?
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1902 $as_echo_n "checking $2 presence... " >&6; }
1903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904 /* end confdefs.h. */
1905 #include <$2>
1906 _ACEOF
1907 if ac_fn_c_try_cpp "$LINENO"; then :
1908 ac_header_preproc=yes
1909 else
1910 ac_header_preproc=no
1912 rm -f conftest.err conftest.i conftest.$ac_ext
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1914 $as_echo "$ac_header_preproc" >&6; }
1916 # So? What about this header?
1917 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1918 yes:no: )
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1920 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1922 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1924 no:yes:* )
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1926 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1928 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1930 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1932 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1934 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1936 esac
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1938 $as_echo_n "checking for $2... " >&6; }
1939 if eval \${$3+:} false; then :
1940 $as_echo_n "(cached) " >&6
1941 else
1942 eval "$3=\$ac_header_compiler"
1944 eval ac_res=\$$3
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1946 $as_echo "$ac_res" >&6; }
1948 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1950 } # ac_fn_c_check_header_mongrel
1952 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1953 # -------------------------------------------
1954 # Tests whether TYPE exists after having included INCLUDES, setting cache
1955 # variable VAR accordingly.
1956 ac_fn_c_check_type ()
1958 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1960 $as_echo_n "checking for $2... " >&6; }
1961 if eval \${$3+:} false; then :
1962 $as_echo_n "(cached) " >&6
1963 else
1964 eval "$3=no"
1965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1966 /* end confdefs.h. */
1969 main ()
1971 if (sizeof ($2))
1972 return 0;
1974 return 0;
1976 _ACEOF
1977 if ac_fn_c_try_compile "$LINENO"; then :
1978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979 /* end confdefs.h. */
1982 main ()
1984 if (sizeof (($2)))
1985 return 0;
1987 return 0;
1989 _ACEOF
1990 if ac_fn_c_try_compile "$LINENO"; then :
1992 else
1993 eval "$3=yes"
1995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999 eval ac_res=\$$3
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001 $as_echo "$ac_res" >&6; }
2002 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2004 } # ac_fn_c_check_type
2006 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2007 # --------------------------------------------
2008 # Tries to find the compile-time value of EXPR in a program that includes
2009 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2010 # computed
2011 ac_fn_c_compute_int ()
2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014 if test "$cross_compiling" = yes; then
2015 # Depending upon the size, compute the lo and hi bounds.
2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h. */
2020 main ()
2022 static int test_array [1 - 2 * !(($2) >= 0)];
2023 test_array [0] = 0;
2024 return test_array [0];
2027 return 0;
2029 _ACEOF
2030 if ac_fn_c_try_compile "$LINENO"; then :
2031 ac_lo=0 ac_mid=0
2032 while :; do
2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034 /* end confdefs.h. */
2037 main ()
2039 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2040 test_array [0] = 0;
2041 return test_array [0];
2044 return 0;
2046 _ACEOF
2047 if ac_fn_c_try_compile "$LINENO"; then :
2048 ac_hi=$ac_mid; break
2049 else
2050 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2051 if test $ac_lo -le $ac_mid; then
2052 ac_lo= ac_hi=
2053 break
2055 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058 done
2059 else
2060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061 /* end confdefs.h. */
2064 main ()
2066 static int test_array [1 - 2 * !(($2) < 0)];
2067 test_array [0] = 0;
2068 return test_array [0];
2071 return 0;
2073 _ACEOF
2074 if ac_fn_c_try_compile "$LINENO"; then :
2075 ac_hi=-1 ac_mid=-1
2076 while :; do
2077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078 /* end confdefs.h. */
2081 main ()
2083 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2084 test_array [0] = 0;
2085 return test_array [0];
2088 return 0;
2090 _ACEOF
2091 if ac_fn_c_try_compile "$LINENO"; then :
2092 ac_lo=$ac_mid; break
2093 else
2094 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2095 if test $ac_mid -le $ac_hi; then
2096 ac_lo= ac_hi=
2097 break
2099 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2102 done
2103 else
2104 ac_lo= ac_hi=
2106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109 # Binary search between lo and hi bounds.
2110 while test "x$ac_lo" != "x$ac_hi"; do
2111 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2113 /* end confdefs.h. */
2116 main ()
2118 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2119 test_array [0] = 0;
2120 return test_array [0];
2123 return 0;
2125 _ACEOF
2126 if ac_fn_c_try_compile "$LINENO"; then :
2127 ac_hi=$ac_mid
2128 else
2129 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2132 done
2133 case $ac_lo in #((
2134 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2135 '') ac_retval=1 ;;
2136 esac
2137 else
2138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2139 /* end confdefs.h. */
2141 static long int longval () { return $2; }
2142 static unsigned long int ulongval () { return $2; }
2143 #include <stdio.h>
2144 #include <stdlib.h>
2146 main ()
2149 FILE *f = fopen ("conftest.val", "w");
2150 if (! f)
2151 return 1;
2152 if (($2) < 0)
2154 long int i = longval ();
2155 if (i != ($2))
2156 return 1;
2157 fprintf (f, "%ld", i);
2159 else
2161 unsigned long int i = ulongval ();
2162 if (i != ($2))
2163 return 1;
2164 fprintf (f, "%lu", i);
2166 /* Do not output a trailing newline, as this causes \r\n confusion
2167 on some platforms. */
2168 return ferror (f) || fclose (f) != 0;
2171 return 0;
2173 _ACEOF
2174 if ac_fn_c_try_run "$LINENO"; then :
2175 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2176 else
2177 ac_retval=1
2179 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2180 conftest.$ac_objext conftest.beam conftest.$ac_ext
2181 rm -f conftest.val
2184 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2185 as_fn_set_status $ac_retval
2187 } # ac_fn_c_compute_int
2188 cat >config.log <<_ACEOF
2189 This file contains any messages produced by compilers while
2190 running configure, to aid debugging if configure makes a mistake.
2192 It was created by package-unused $as_me version-unused, which was
2193 generated by GNU Autoconf 2.69. Invocation command line was
2195 $ $0 $@
2197 _ACEOF
2198 exec 5>>config.log
2200 cat <<_ASUNAME
2201 ## --------- ##
2202 ## Platform. ##
2203 ## --------- ##
2205 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2206 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2207 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2208 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2209 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2211 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2212 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2214 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2215 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2216 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2217 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2218 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2219 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2220 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2222 _ASUNAME
2224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2225 for as_dir in $PATH
2227 IFS=$as_save_IFS
2228 test -z "$as_dir" && as_dir=.
2229 $as_echo "PATH: $as_dir"
2230 done
2231 IFS=$as_save_IFS
2233 } >&5
2235 cat >&5 <<_ACEOF
2238 ## ----------- ##
2239 ## Core tests. ##
2240 ## ----------- ##
2242 _ACEOF
2245 # Keep a trace of the command line.
2246 # Strip out --no-create and --no-recursion so they do not pile up.
2247 # Strip out --silent because we don't want to record it for future runs.
2248 # Also quote any args containing shell meta-characters.
2249 # Make two passes to allow for proper duplicate-argument suppression.
2250 ac_configure_args=
2251 ac_configure_args0=
2252 ac_configure_args1=
2253 ac_must_keep_next=false
2254 for ac_pass in 1 2
2256 for ac_arg
2258 case $ac_arg in
2259 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2260 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2261 | -silent | --silent | --silen | --sile | --sil)
2262 continue ;;
2263 *\'*)
2264 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2265 esac
2266 case $ac_pass in
2267 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2269 as_fn_append ac_configure_args1 " '$ac_arg'"
2270 if test $ac_must_keep_next = true; then
2271 ac_must_keep_next=false # Got value, back to normal.
2272 else
2273 case $ac_arg in
2274 *=* | --config-cache | -C | -disable-* | --disable-* \
2275 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2276 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2277 | -with-* | --with-* | -without-* | --without-* | --x)
2278 case "$ac_configure_args0 " in
2279 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2280 esac
2282 -* ) ac_must_keep_next=true ;;
2283 esac
2285 as_fn_append ac_configure_args " '$ac_arg'"
2287 esac
2288 done
2289 done
2290 { ac_configure_args0=; unset ac_configure_args0;}
2291 { ac_configure_args1=; unset ac_configure_args1;}
2293 # When interrupted or exit'd, cleanup temporary files, and complete
2294 # config.log. We remove comments because anyway the quotes in there
2295 # would cause problems or look ugly.
2296 # WARNING: Use '\'' to represent an apostrophe within the trap.
2297 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2298 trap 'exit_status=$?
2299 # Save into config.log some information that might help in debugging.
2301 echo
2303 $as_echo "## ---------------- ##
2304 ## Cache variables. ##
2305 ## ---------------- ##"
2306 echo
2307 # The following way of writing the cache mishandles newlines in values,
2309 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2310 eval ac_val=\$$ac_var
2311 case $ac_val in #(
2312 *${as_nl}*)
2313 case $ac_var in #(
2314 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2315 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2316 esac
2317 case $ac_var in #(
2318 _ | IFS | as_nl) ;; #(
2319 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2320 *) { eval $ac_var=; unset $ac_var;} ;;
2321 esac ;;
2322 esac
2323 done
2324 (set) 2>&1 |
2325 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2326 *${as_nl}ac_space=\ *)
2327 sed -n \
2328 "s/'\''/'\''\\\\'\'''\''/g;
2329 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2330 ;; #(
2332 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2334 esac |
2335 sort
2337 echo
2339 $as_echo "## ----------------- ##
2340 ## Output variables. ##
2341 ## ----------------- ##"
2342 echo
2343 for ac_var in $ac_subst_vars
2345 eval ac_val=\$$ac_var
2346 case $ac_val in
2347 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2348 esac
2349 $as_echo "$ac_var='\''$ac_val'\''"
2350 done | sort
2351 echo
2353 if test -n "$ac_subst_files"; then
2354 $as_echo "## ------------------- ##
2355 ## File substitutions. ##
2356 ## ------------------- ##"
2357 echo
2358 for ac_var in $ac_subst_files
2360 eval ac_val=\$$ac_var
2361 case $ac_val in
2362 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2363 esac
2364 $as_echo "$ac_var='\''$ac_val'\''"
2365 done | sort
2366 echo
2369 if test -s confdefs.h; then
2370 $as_echo "## ----------- ##
2371 ## confdefs.h. ##
2372 ## ----------- ##"
2373 echo
2374 cat confdefs.h
2375 echo
2377 test "$ac_signal" != 0 &&
2378 $as_echo "$as_me: caught signal $ac_signal"
2379 $as_echo "$as_me: exit $exit_status"
2380 } >&5
2381 rm -f core *.core core.conftest.* &&
2382 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2383 exit $exit_status
2385 for ac_signal in 1 2 13 15; do
2386 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2387 done
2388 ac_signal=0
2390 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2391 rm -f -r conftest* confdefs.h
2393 $as_echo "/* confdefs.h */" > confdefs.h
2395 # Predefined preprocessor variables.
2397 cat >>confdefs.h <<_ACEOF
2398 #define PACKAGE_NAME "$PACKAGE_NAME"
2399 _ACEOF
2401 cat >>confdefs.h <<_ACEOF
2402 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2403 _ACEOF
2405 cat >>confdefs.h <<_ACEOF
2406 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2407 _ACEOF
2409 cat >>confdefs.h <<_ACEOF
2410 #define PACKAGE_STRING "$PACKAGE_STRING"
2411 _ACEOF
2413 cat >>confdefs.h <<_ACEOF
2414 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2415 _ACEOF
2417 cat >>confdefs.h <<_ACEOF
2418 #define PACKAGE_URL "$PACKAGE_URL"
2419 _ACEOF
2422 # Let the site file select an alternate cache file if it wants to.
2423 # Prefer an explicitly selected file to automatically selected ones.
2424 ac_site_file1=NONE
2425 ac_site_file2=NONE
2426 if test -n "$CONFIG_SITE"; then
2427 # We do not want a PATH search for config.site.
2428 case $CONFIG_SITE in #((
2429 -*) ac_site_file1=./$CONFIG_SITE;;
2430 */*) ac_site_file1=$CONFIG_SITE;;
2431 *) ac_site_file1=./$CONFIG_SITE;;
2432 esac
2433 elif test "x$prefix" != xNONE; then
2434 ac_site_file1=$prefix/share/config.site
2435 ac_site_file2=$prefix/etc/config.site
2436 else
2437 ac_site_file1=$ac_default_prefix/share/config.site
2438 ac_site_file2=$ac_default_prefix/etc/config.site
2440 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2442 test "x$ac_site_file" = xNONE && continue
2443 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2445 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2446 sed 's/^/| /' "$ac_site_file" >&5
2447 . "$ac_site_file" \
2448 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2450 as_fn_error $? "failed to load site script $ac_site_file
2451 See \`config.log' for more details" "$LINENO" 5; }
2453 done
2455 if test -r "$cache_file"; then
2456 # Some versions of bash will fail to source /dev/null (special files
2457 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2458 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2460 $as_echo "$as_me: loading cache $cache_file" >&6;}
2461 case $cache_file in
2462 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2463 *) . "./$cache_file";;
2464 esac
2466 else
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2468 $as_echo "$as_me: creating cache $cache_file" >&6;}
2469 >$cache_file
2472 # Check that the precious variables saved in the cache have kept the same
2473 # value.
2474 ac_cache_corrupted=false
2475 for ac_var in $ac_precious_vars; do
2476 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2477 eval ac_new_set=\$ac_env_${ac_var}_set
2478 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2479 eval ac_new_val=\$ac_env_${ac_var}_value
2480 case $ac_old_set,$ac_new_set in
2481 set,)
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2483 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2484 ac_cache_corrupted=: ;;
2485 ,set)
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2487 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2488 ac_cache_corrupted=: ;;
2489 ,);;
2491 if test "x$ac_old_val" != "x$ac_new_val"; then
2492 # differences in whitespace do not lead to failure.
2493 ac_old_val_w=`echo x $ac_old_val`
2494 ac_new_val_w=`echo x $ac_new_val`
2495 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2497 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2498 ac_cache_corrupted=:
2499 else
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2501 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2502 eval $ac_var=\$ac_old_val
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2505 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2507 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2508 fi;;
2509 esac
2510 # Pass precious variables to config.status.
2511 if test "$ac_new_set" = set; then
2512 case $ac_new_val in
2513 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2514 *) ac_arg=$ac_var=$ac_new_val ;;
2515 esac
2516 case " $ac_configure_args " in
2517 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2518 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2519 esac
2521 done
2522 if $ac_cache_corrupted; then
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2524 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2526 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2527 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2529 ## -------------------- ##
2530 ## Main body of script. ##
2531 ## -------------------- ##
2533 ac_ext=c
2534 ac_cpp='$CPP $CPPFLAGS'
2535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2544 ac_config_headers="$ac_config_headers config.h"
2547 libtool_VERSION=15:0:0
2550 # Default to --enable-multilib
2551 # Check whether --enable-multilib was given.
2552 if test "${enable_multilib+set}" = set; then :
2553 enableval=$enable_multilib; case "$enableval" in
2554 yes) multilib=yes ;;
2555 no) multilib=no ;;
2556 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2557 esac
2558 else
2559 multilib=yes
2563 # We may get other options which we leave undocumented:
2564 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2565 # See config-ml.in if you want the gory details.
2567 if test "$srcdir" = "."; then
2568 if test "$with_target_subdir" != "."; then
2569 multi_basedir="$srcdir/$with_multisrctop../.."
2570 else
2571 multi_basedir="$srcdir/$with_multisrctop.."
2573 else
2574 multi_basedir="$srcdir/.."
2578 # Even if the default multilib is not a cross compilation,
2579 # it may be that some of the other multilibs are.
2580 if test $cross_compiling = no && test $multilib = yes \
2581 && test "x${with_multisubdir}" != x ; then
2582 cross_compiling=maybe
2585 ac_config_commands="$ac_config_commands default-1"
2588 ac_aux_dir=
2589 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2590 if test -f "$ac_dir/install-sh"; then
2591 ac_aux_dir=$ac_dir
2592 ac_install_sh="$ac_aux_dir/install-sh -c"
2593 break
2594 elif test -f "$ac_dir/install.sh"; then
2595 ac_aux_dir=$ac_dir
2596 ac_install_sh="$ac_aux_dir/install.sh -c"
2597 break
2598 elif test -f "$ac_dir/shtool"; then
2599 ac_aux_dir=$ac_dir
2600 ac_install_sh="$ac_aux_dir/shtool install -c"
2601 break
2603 done
2604 if test -z "$ac_aux_dir"; then
2605 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2608 # These three variables are undocumented and unsupported,
2609 # and are intended to be withdrawn in a future Autoconf release.
2610 # They can cause serious problems if a builder's source tree is in a directory
2611 # whose full name contains unusual characters.
2612 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2613 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2614 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2617 # Make sure we can run config.sub.
2618 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2619 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2622 $as_echo_n "checking build system type... " >&6; }
2623 if ${ac_cv_build+:} false; then :
2624 $as_echo_n "(cached) " >&6
2625 else
2626 ac_build_alias=$build_alias
2627 test "x$ac_build_alias" = x &&
2628 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2629 test "x$ac_build_alias" = x &&
2630 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2631 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2632 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2636 $as_echo "$ac_cv_build" >&6; }
2637 case $ac_cv_build in
2638 *-*-*) ;;
2639 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2640 esac
2641 build=$ac_cv_build
2642 ac_save_IFS=$IFS; IFS='-'
2643 set x $ac_cv_build
2644 shift
2645 build_cpu=$1
2646 build_vendor=$2
2647 shift; shift
2648 # Remember, the first character of IFS is used to create $*,
2649 # except with old shells:
2650 build_os=$*
2651 IFS=$ac_save_IFS
2652 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2656 $as_echo_n "checking host system type... " >&6; }
2657 if ${ac_cv_host+:} false; then :
2658 $as_echo_n "(cached) " >&6
2659 else
2660 if test "x$host_alias" = x; then
2661 ac_cv_host=$ac_cv_build
2662 else
2663 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2664 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2669 $as_echo "$ac_cv_host" >&6; }
2670 case $ac_cv_host in
2671 *-*-*) ;;
2672 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2673 esac
2674 host=$ac_cv_host
2675 ac_save_IFS=$IFS; IFS='-'
2676 set x $ac_cv_host
2677 shift
2678 host_cpu=$1
2679 host_vendor=$2
2680 shift; shift
2681 # Remember, the first character of IFS is used to create $*,
2682 # except with old shells:
2683 host_os=$*
2684 IFS=$ac_save_IFS
2685 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2689 $as_echo_n "checking target system type... " >&6; }
2690 if ${ac_cv_target+:} false; then :
2691 $as_echo_n "(cached) " >&6
2692 else
2693 if test "x$target_alias" = x; then
2694 ac_cv_target=$ac_cv_host
2695 else
2696 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2697 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2702 $as_echo "$ac_cv_target" >&6; }
2703 case $ac_cv_target in
2704 *-*-*) ;;
2705 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2706 esac
2707 target=$ac_cv_target
2708 ac_save_IFS=$IFS; IFS='-'
2709 set x $ac_cv_target
2710 shift
2711 target_cpu=$1
2712 target_vendor=$2
2713 shift; shift
2714 # Remember, the first character of IFS is used to create $*,
2715 # except with old shells:
2716 target_os=$*
2717 IFS=$ac_save_IFS
2718 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2721 # The aliases save the names the user supplied, while $host etc.
2722 # will get canonicalized.
2723 test -n "$target_alias" &&
2724 test "$program_prefix$program_suffix$program_transform_name" = \
2725 NONENONEs,x,x, &&
2726 program_prefix=${target_alias}-
2728 target_alias=${target_alias-$host_alias}
2730 am__api_version='1.15'
2732 # Find a good install program. We prefer a C program (faster),
2733 # so one script is as good as another. But avoid the broken or
2734 # incompatible versions:
2735 # SysV /etc/install, /usr/sbin/install
2736 # SunOS /usr/etc/install
2737 # IRIX /sbin/install
2738 # AIX /bin/install
2739 # AmigaOS /C/install, which installs bootblocks on floppy discs
2740 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2741 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2742 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2743 # OS/2's system install, which has a completely different semantic
2744 # ./install, which can be erroneously created by make from ./install.sh.
2745 # Reject install programs that cannot install multiple files.
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2747 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2748 if test -z "$INSTALL"; then
2749 if ${ac_cv_path_install+:} false; then :
2750 $as_echo_n "(cached) " >&6
2751 else
2752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753 for as_dir in $PATH
2755 IFS=$as_save_IFS
2756 test -z "$as_dir" && as_dir=.
2757 # Account for people who put trailing slashes in PATH elements.
2758 case $as_dir/ in #((
2759 ./ | .// | /[cC]/* | \
2760 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2761 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2762 /usr/ucb/* ) ;;
2764 # OSF1 and SCO ODT 3.0 have their own names for install.
2765 # Don't use installbsd from OSF since it installs stuff as root
2766 # by default.
2767 for ac_prog in ginstall scoinst install; do
2768 for ac_exec_ext in '' $ac_executable_extensions; do
2769 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2770 if test $ac_prog = install &&
2771 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2772 # AIX install. It has an incompatible calling convention.
2774 elif test $ac_prog = install &&
2775 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2776 # program-specific install script used by HP pwplus--don't use.
2778 else
2779 rm -rf conftest.one conftest.two conftest.dir
2780 echo one > conftest.one
2781 echo two > conftest.two
2782 mkdir conftest.dir
2783 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2784 test -s conftest.one && test -s conftest.two &&
2785 test -s conftest.dir/conftest.one &&
2786 test -s conftest.dir/conftest.two
2787 then
2788 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2789 break 3
2793 done
2794 done
2796 esac
2798 done
2799 IFS=$as_save_IFS
2801 rm -rf conftest.one conftest.two conftest.dir
2804 if test "${ac_cv_path_install+set}" = set; then
2805 INSTALL=$ac_cv_path_install
2806 else
2807 # As a last resort, use the slow shell script. Don't cache a
2808 # value for INSTALL within a source directory, because that will
2809 # break other packages using the cache if that directory is
2810 # removed, or if the value is a relative name.
2811 INSTALL=$ac_install_sh
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2815 $as_echo "$INSTALL" >&6; }
2817 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2818 # It thinks the first close brace ends the variable substitution.
2819 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2821 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2823 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2826 $as_echo_n "checking whether build environment is sane... " >&6; }
2827 # Reject unsafe characters in $srcdir or the absolute working directory
2828 # name. Accept space and tab only in the latter.
2829 am_lf='
2831 case `pwd` in
2832 *[\\\"\#\$\&\'\`$am_lf]*)
2833 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2834 esac
2835 case $srcdir in
2836 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2837 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2838 esac
2840 # Do 'set' in a subshell so we don't clobber the current shell's
2841 # arguments. Must try -L first in case configure is actually a
2842 # symlink; some systems play weird games with the mod time of symlinks
2843 # (eg FreeBSD returns the mod time of the symlink's containing
2844 # directory).
2845 if (
2846 am_has_slept=no
2847 for am_try in 1 2; do
2848 echo "timestamp, slept: $am_has_slept" > conftest.file
2849 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2850 if test "$*" = "X"; then
2851 # -L didn't work.
2852 set X `ls -t "$srcdir/configure" conftest.file`
2854 if test "$*" != "X $srcdir/configure conftest.file" \
2855 && test "$*" != "X conftest.file $srcdir/configure"; then
2857 # If neither matched, then we have a broken ls. This can happen
2858 # if, for instance, CONFIG_SHELL is bash and it inherits a
2859 # broken ls alias from the environment. This has actually
2860 # happened. Such a system could not be considered "sane".
2861 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2862 alias in your environment" "$LINENO" 5
2864 if test "$2" = conftest.file || test $am_try -eq 2; then
2865 break
2867 # Just in case.
2868 sleep 1
2869 am_has_slept=yes
2870 done
2871 test "$2" = conftest.file
2873 then
2874 # Ok.
2876 else
2877 as_fn_error $? "newly created file is older than distributed files!
2878 Check your system clock" "$LINENO" 5
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2881 $as_echo "yes" >&6; }
2882 # If we didn't sleep, we still need to ensure time stamps of config.status and
2883 # generated files are strictly newer.
2884 am_sleep_pid=
2885 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2886 ( sleep 1 ) &
2887 am_sleep_pid=$!
2890 rm -f conftest.file
2892 test "$program_prefix" != NONE &&
2893 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2894 # Use a double $ so make ignores it.
2895 test "$program_suffix" != NONE &&
2896 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2897 # Double any \ or $.
2898 # By default was `s,x,x', remove it if useless.
2899 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2900 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2902 # Expand $ac_aux_dir to an absolute path.
2903 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2905 if test x"${MISSING+set}" != xset; then
2906 case $am_aux_dir in
2907 *\ * | *\ *)
2908 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2910 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2911 esac
2913 # Use eval to expand $SHELL
2914 if eval "$MISSING --is-lightweight"; then
2915 am_missing_run="$MISSING "
2916 else
2917 am_missing_run=
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2919 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2922 if test x"${install_sh+set}" != xset; then
2923 case $am_aux_dir in
2924 *\ * | *\ *)
2925 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2927 install_sh="\${SHELL} $am_aux_dir/install-sh"
2928 esac
2931 # Installed binaries are usually stripped using 'strip' when the user
2932 # run "make install-strip". However 'strip' might not be the right
2933 # tool to use in cross-compilation environments, therefore Automake
2934 # will honor the 'STRIP' environment variable to overrule this program.
2935 if test "$cross_compiling" != no; then
2936 if test -n "$ac_tool_prefix"; then
2937 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2938 set dummy ${ac_tool_prefix}strip; ac_word=$2
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2940 $as_echo_n "checking for $ac_word... " >&6; }
2941 if ${ac_cv_prog_STRIP+:} false; then :
2942 $as_echo_n "(cached) " >&6
2943 else
2944 if test -n "$STRIP"; then
2945 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2946 else
2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948 for as_dir in $PATH
2950 IFS=$as_save_IFS
2951 test -z "$as_dir" && as_dir=.
2952 for ac_exec_ext in '' $ac_executable_extensions; do
2953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2954 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2956 break 2
2958 done
2959 done
2960 IFS=$as_save_IFS
2964 STRIP=$ac_cv_prog_STRIP
2965 if test -n "$STRIP"; then
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2967 $as_echo "$STRIP" >&6; }
2968 else
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970 $as_echo "no" >&6; }
2975 if test -z "$ac_cv_prog_STRIP"; then
2976 ac_ct_STRIP=$STRIP
2977 # Extract the first word of "strip", so it can be a program name with args.
2978 set dummy strip; ac_word=$2
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2980 $as_echo_n "checking for $ac_word... " >&6; }
2981 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2982 $as_echo_n "(cached) " >&6
2983 else
2984 if test -n "$ac_ct_STRIP"; then
2985 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2986 else
2987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2988 for as_dir in $PATH
2990 IFS=$as_save_IFS
2991 test -z "$as_dir" && as_dir=.
2992 for ac_exec_ext in '' $ac_executable_extensions; do
2993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2994 ac_cv_prog_ac_ct_STRIP="strip"
2995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2996 break 2
2998 done
2999 done
3000 IFS=$as_save_IFS
3004 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3005 if test -n "$ac_ct_STRIP"; then
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3007 $as_echo "$ac_ct_STRIP" >&6; }
3008 else
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3010 $as_echo "no" >&6; }
3013 if test "x$ac_ct_STRIP" = x; then
3014 STRIP=":"
3015 else
3016 case $cross_compiling:$ac_tool_warned in
3017 yes:)
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3019 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3020 ac_tool_warned=yes ;;
3021 esac
3022 STRIP=$ac_ct_STRIP
3024 else
3025 STRIP="$ac_cv_prog_STRIP"
3029 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3032 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3033 if test -z "$MKDIR_P"; then
3034 if ${ac_cv_path_mkdir+:} false; then :
3035 $as_echo_n "(cached) " >&6
3036 else
3037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3040 IFS=$as_save_IFS
3041 test -z "$as_dir" && as_dir=.
3042 for ac_prog in mkdir gmkdir; do
3043 for ac_exec_ext in '' $ac_executable_extensions; do
3044 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3045 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3046 'mkdir (GNU coreutils) '* | \
3047 'mkdir (coreutils) '* | \
3048 'mkdir (fileutils) '4.1*)
3049 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3050 break 3;;
3051 esac
3052 done
3053 done
3054 done
3055 IFS=$as_save_IFS
3059 test -d ./--version && rmdir ./--version
3060 if test "${ac_cv_path_mkdir+set}" = set; then
3061 MKDIR_P="$ac_cv_path_mkdir -p"
3062 else
3063 # As a last resort, use the slow shell script. Don't cache a
3064 # value for MKDIR_P within a source directory, because that will
3065 # break other packages using the cache if that directory is
3066 # removed, or if the value is a relative name.
3067 MKDIR_P="$ac_install_sh -d"
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3071 $as_echo "$MKDIR_P" >&6; }
3073 for ac_prog in gawk mawk nawk awk
3075 # Extract the first word of "$ac_prog", so it can be a program name with args.
3076 set dummy $ac_prog; ac_word=$2
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3078 $as_echo_n "checking for $ac_word... " >&6; }
3079 if ${ac_cv_prog_AWK+:} false; then :
3080 $as_echo_n "(cached) " >&6
3081 else
3082 if test -n "$AWK"; then
3083 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3084 else
3085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086 for as_dir in $PATH
3088 IFS=$as_save_IFS
3089 test -z "$as_dir" && as_dir=.
3090 for ac_exec_ext in '' $ac_executable_extensions; do
3091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3092 ac_cv_prog_AWK="$ac_prog"
3093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3094 break 2
3096 done
3097 done
3098 IFS=$as_save_IFS
3102 AWK=$ac_cv_prog_AWK
3103 if test -n "$AWK"; then
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3105 $as_echo "$AWK" >&6; }
3106 else
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108 $as_echo "no" >&6; }
3112 test -n "$AWK" && break
3113 done
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3116 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3117 set x ${MAKE-make}
3118 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3119 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3120 $as_echo_n "(cached) " >&6
3121 else
3122 cat >conftest.make <<\_ACEOF
3123 SHELL = /bin/sh
3124 all:
3125 @echo '@@@%%%=$(MAKE)=@@@%%%'
3126 _ACEOF
3127 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3128 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3129 *@@@%%%=?*=@@@%%%*)
3130 eval ac_cv_prog_make_${ac_make}_set=yes;;
3132 eval ac_cv_prog_make_${ac_make}_set=no;;
3133 esac
3134 rm -f conftest.make
3136 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3138 $as_echo "yes" >&6; }
3139 SET_MAKE=
3140 else
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3142 $as_echo "no" >&6; }
3143 SET_MAKE="MAKE=${MAKE-make}"
3146 rm -rf .tst 2>/dev/null
3147 mkdir .tst 2>/dev/null
3148 if test -d .tst; then
3149 am__leading_dot=.
3150 else
3151 am__leading_dot=_
3153 rmdir .tst 2>/dev/null
3155 # Check whether --enable-silent-rules was given.
3156 if test "${enable_silent_rules+set}" = set; then :
3157 enableval=$enable_silent_rules;
3160 case $enable_silent_rules in # (((
3161 yes) AM_DEFAULT_VERBOSITY=0;;
3162 no) AM_DEFAULT_VERBOSITY=1;;
3163 *) AM_DEFAULT_VERBOSITY=1;;
3164 esac
3165 am_make=${MAKE-make}
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3167 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3168 if ${am_cv_make_support_nested_variables+:} false; then :
3169 $as_echo_n "(cached) " >&6
3170 else
3171 if $as_echo 'TRUE=$(BAR$(V))
3172 BAR0=false
3173 BAR1=true
3175 am__doit:
3176 @$(TRUE)
3177 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3178 am_cv_make_support_nested_variables=yes
3179 else
3180 am_cv_make_support_nested_variables=no
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3184 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3185 if test $am_cv_make_support_nested_variables = yes; then
3186 AM_V='$(V)'
3187 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3188 else
3189 AM_V=$AM_DEFAULT_VERBOSITY
3190 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3192 AM_BACKSLASH='\'
3194 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3195 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3196 # is not polluted with repeated "-I."
3197 am__isrc=' -I$(srcdir)'
3198 # test to see if srcdir already configured
3199 if test -f $srcdir/config.status; then
3200 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3204 # test whether we have cygpath
3205 if test -z "$CYGPATH_W"; then
3206 if (cygpath --version) >/dev/null 2>/dev/null; then
3207 CYGPATH_W='cygpath -w'
3208 else
3209 CYGPATH_W=echo
3214 # Define the identity of the package.
3215 PACKAGE='libgo'
3216 VERSION='version-unused'
3219 # Some tools Automake needs.
3221 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3224 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3227 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3230 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3233 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3235 # For better backward compatibility. To be removed once Automake 1.9.x
3236 # dies out for good. For more background, see:
3237 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3238 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3239 mkdir_p='$(MKDIR_P)'
3241 # We need awk for the "check" target (and possibly the TAP driver). The
3242 # system "awk" is bad on some platforms.
3243 # Always define AMTAR for backward compatibility. Yes, it's still used
3244 # in the wild :-( We should find a proper way to deprecate it ...
3245 AMTAR='$${TAR-tar}'
3248 # We'll loop over all known methods to create a tar archive until one works.
3249 _am_tools='gnutar pax cpio none'
3251 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3258 # POSIX will say in a future version that running "rm -f" with no argument
3259 # is OK; and we want to be able to make that assumption in our Makefile
3260 # recipes. So use an aggressive probe to check that the usage we want is
3261 # actually supported "in the wild" to an acceptable degree.
3262 # See automake bug#10828.
3263 # To make any issue more visible, cause the running configure to be aborted
3264 # by default if the 'rm' program in use doesn't match our expectations; the
3265 # user can still override this though.
3266 if rm -f && rm -fr && rm -rf; then : OK; else
3267 cat >&2 <<'END'
3268 Oops!
3270 Your 'rm' program seems unable to run without file operands specified
3271 on the command line, even when the '-f' option is present. This is contrary
3272 to the behaviour of most rm programs out there, and not conforming with
3273 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3275 Please tell bug-automake@gnu.org about your system, including the value
3276 of your $PATH and any error possibly output before this message. This
3277 can help us improve future automake versions.
3280 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3281 echo 'Configuration will proceed anyway, since you have set the' >&2
3282 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3283 echo >&2
3284 else
3285 cat >&2 <<'END'
3286 Aborting the configuration process, to ensure you take notice of the issue.
3288 You can download and install GNU coreutils to get an 'rm' implementation
3289 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3291 If you want to complete the configuration process using your problematic
3292 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3293 to "yes", and re-run configure.
3296 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3305 ac_ext=c
3306 ac_cpp='$CPP $CPPFLAGS'
3307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3310 if test -n "$ac_tool_prefix"; then
3311 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3312 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3314 $as_echo_n "checking for $ac_word... " >&6; }
3315 if ${ac_cv_prog_CC+:} false; then :
3316 $as_echo_n "(cached) " >&6
3317 else
3318 if test -n "$CC"; then
3319 ac_cv_prog_CC="$CC" # Let the user override the test.
3320 else
3321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3322 for as_dir in $PATH
3324 IFS=$as_save_IFS
3325 test -z "$as_dir" && as_dir=.
3326 for ac_exec_ext in '' $ac_executable_extensions; do
3327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3328 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3330 break 2
3332 done
3333 done
3334 IFS=$as_save_IFS
3338 CC=$ac_cv_prog_CC
3339 if test -n "$CC"; then
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3341 $as_echo "$CC" >&6; }
3342 else
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3344 $as_echo "no" >&6; }
3349 if test -z "$ac_cv_prog_CC"; then
3350 ac_ct_CC=$CC
3351 # Extract the first word of "gcc", so it can be a program name with args.
3352 set dummy gcc; ac_word=$2
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3354 $as_echo_n "checking for $ac_word... " >&6; }
3355 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3356 $as_echo_n "(cached) " >&6
3357 else
3358 if test -n "$ac_ct_CC"; then
3359 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3360 else
3361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3362 for as_dir in $PATH
3364 IFS=$as_save_IFS
3365 test -z "$as_dir" && as_dir=.
3366 for ac_exec_ext in '' $ac_executable_extensions; do
3367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3368 ac_cv_prog_ac_ct_CC="gcc"
3369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3370 break 2
3372 done
3373 done
3374 IFS=$as_save_IFS
3378 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3379 if test -n "$ac_ct_CC"; then
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3381 $as_echo "$ac_ct_CC" >&6; }
3382 else
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3384 $as_echo "no" >&6; }
3387 if test "x$ac_ct_CC" = x; then
3388 CC=""
3389 else
3390 case $cross_compiling:$ac_tool_warned in
3391 yes:)
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3393 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3394 ac_tool_warned=yes ;;
3395 esac
3396 CC=$ac_ct_CC
3398 else
3399 CC="$ac_cv_prog_CC"
3402 if test -z "$CC"; then
3403 if test -n "$ac_tool_prefix"; then
3404 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3405 set dummy ${ac_tool_prefix}cc; ac_word=$2
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3407 $as_echo_n "checking for $ac_word... " >&6; }
3408 if ${ac_cv_prog_CC+:} false; then :
3409 $as_echo_n "(cached) " >&6
3410 else
3411 if test -n "$CC"; then
3412 ac_cv_prog_CC="$CC" # Let the user override the test.
3413 else
3414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3415 for as_dir in $PATH
3417 IFS=$as_save_IFS
3418 test -z "$as_dir" && as_dir=.
3419 for ac_exec_ext in '' $ac_executable_extensions; do
3420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3421 ac_cv_prog_CC="${ac_tool_prefix}cc"
3422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3423 break 2
3425 done
3426 done
3427 IFS=$as_save_IFS
3431 CC=$ac_cv_prog_CC
3432 if test -n "$CC"; then
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3434 $as_echo "$CC" >&6; }
3435 else
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3437 $as_echo "no" >&6; }
3443 if test -z "$CC"; then
3444 # Extract the first word of "cc", so it can be a program name with args.
3445 set dummy cc; ac_word=$2
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3447 $as_echo_n "checking for $ac_word... " >&6; }
3448 if ${ac_cv_prog_CC+:} false; then :
3449 $as_echo_n "(cached) " >&6
3450 else
3451 if test -n "$CC"; then
3452 ac_cv_prog_CC="$CC" # Let the user override the test.
3453 else
3454 ac_prog_rejected=no
3455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3456 for as_dir in $PATH
3458 IFS=$as_save_IFS
3459 test -z "$as_dir" && as_dir=.
3460 for ac_exec_ext in '' $ac_executable_extensions; do
3461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3462 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3463 ac_prog_rejected=yes
3464 continue
3466 ac_cv_prog_CC="cc"
3467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3468 break 2
3470 done
3471 done
3472 IFS=$as_save_IFS
3474 if test $ac_prog_rejected = yes; then
3475 # We found a bogon in the path, so make sure we never use it.
3476 set dummy $ac_cv_prog_CC
3477 shift
3478 if test $# != 0; then
3479 # We chose a different compiler from the bogus one.
3480 # However, it has the same basename, so the bogon will be chosen
3481 # first if we set CC to just the basename; use the full file name.
3482 shift
3483 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3488 CC=$ac_cv_prog_CC
3489 if test -n "$CC"; then
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3491 $as_echo "$CC" >&6; }
3492 else
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3494 $as_echo "no" >&6; }
3499 if test -z "$CC"; then
3500 if test -n "$ac_tool_prefix"; then
3501 for ac_prog in cl.exe
3503 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3504 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3506 $as_echo_n "checking for $ac_word... " >&6; }
3507 if ${ac_cv_prog_CC+:} false; then :
3508 $as_echo_n "(cached) " >&6
3509 else
3510 if test -n "$CC"; then
3511 ac_cv_prog_CC="$CC" # Let the user override the test.
3512 else
3513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3514 for as_dir in $PATH
3516 IFS=$as_save_IFS
3517 test -z "$as_dir" && as_dir=.
3518 for ac_exec_ext in '' $ac_executable_extensions; do
3519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3520 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3522 break 2
3524 done
3525 done
3526 IFS=$as_save_IFS
3530 CC=$ac_cv_prog_CC
3531 if test -n "$CC"; then
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3533 $as_echo "$CC" >&6; }
3534 else
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3536 $as_echo "no" >&6; }
3540 test -n "$CC" && break
3541 done
3543 if test -z "$CC"; then
3544 ac_ct_CC=$CC
3545 for ac_prog in cl.exe
3547 # Extract the first word of "$ac_prog", so it can be a program name with args.
3548 set dummy $ac_prog; ac_word=$2
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3550 $as_echo_n "checking for $ac_word... " >&6; }
3551 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3552 $as_echo_n "(cached) " >&6
3553 else
3554 if test -n "$ac_ct_CC"; then
3555 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3556 else
3557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558 for as_dir in $PATH
3560 IFS=$as_save_IFS
3561 test -z "$as_dir" && as_dir=.
3562 for ac_exec_ext in '' $ac_executable_extensions; do
3563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3564 ac_cv_prog_ac_ct_CC="$ac_prog"
3565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3566 break 2
3568 done
3569 done
3570 IFS=$as_save_IFS
3574 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3575 if test -n "$ac_ct_CC"; then
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3577 $as_echo "$ac_ct_CC" >&6; }
3578 else
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3580 $as_echo "no" >&6; }
3584 test -n "$ac_ct_CC" && break
3585 done
3587 if test "x$ac_ct_CC" = x; then
3588 CC=""
3589 else
3590 case $cross_compiling:$ac_tool_warned in
3591 yes:)
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3594 ac_tool_warned=yes ;;
3595 esac
3596 CC=$ac_ct_CC
3603 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3605 as_fn_error $? "no acceptable C compiler found in \$PATH
3606 See \`config.log' for more details" "$LINENO" 5; }
3608 # Provide some information about the compiler.
3609 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3610 set X $ac_compile
3611 ac_compiler=$2
3612 for ac_option in --version -v -V -qversion; do
3613 { { ac_try="$ac_compiler $ac_option >&5"
3614 case "(($ac_try" in
3615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616 *) ac_try_echo=$ac_try;;
3617 esac
3618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3619 $as_echo "$ac_try_echo"; } >&5
3620 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3621 ac_status=$?
3622 if test -s conftest.err; then
3623 sed '10a\
3624 ... rest of stderr output deleted ...
3625 10q' conftest.err >conftest.er1
3626 cat conftest.er1 >&5
3628 rm -f conftest.er1 conftest.err
3629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3630 test $ac_status = 0; }
3631 done
3633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3634 /* end confdefs.h. */
3637 main ()
3641 return 0;
3643 _ACEOF
3644 ac_clean_files_save=$ac_clean_files
3645 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3646 # Try to create an executable without -o first, disregard a.out.
3647 # It will help us diagnose broken compilers, and finding out an intuition
3648 # of exeext.
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3650 $as_echo_n "checking whether the C compiler works... " >&6; }
3651 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3653 # The possible output files:
3654 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3656 ac_rmfiles=
3657 for ac_file in $ac_files
3659 case $ac_file in
3660 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3661 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3662 esac
3663 done
3664 rm -f $ac_rmfiles
3666 if { { ac_try="$ac_link_default"
3667 case "(($ac_try" in
3668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669 *) ac_try_echo=$ac_try;;
3670 esac
3671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3672 $as_echo "$ac_try_echo"; } >&5
3673 (eval "$ac_link_default") 2>&5
3674 ac_status=$?
3675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3676 test $ac_status = 0; }; then :
3677 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3678 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3679 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3680 # so that the user can short-circuit this test for compilers unknown to
3681 # Autoconf.
3682 for ac_file in $ac_files ''
3684 test -f "$ac_file" || continue
3685 case $ac_file in
3686 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3688 [ab].out )
3689 # We found the default executable, but exeext='' is most
3690 # certainly right.
3691 break;;
3692 *.* )
3693 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3694 then :; else
3695 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3697 # We set ac_cv_exeext here because the later test for it is not
3698 # safe: cross compilers may not add the suffix if given an `-o'
3699 # argument, so we may need to know it at that point already.
3700 # Even if this section looks crufty: it has the advantage of
3701 # actually working.
3702 break;;
3704 break;;
3705 esac
3706 done
3707 test "$ac_cv_exeext" = no && ac_cv_exeext=
3709 else
3710 ac_file=''
3712 if test -z "$ac_file"; then :
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3714 $as_echo "no" >&6; }
3715 $as_echo "$as_me: failed program was:" >&5
3716 sed 's/^/| /' conftest.$ac_ext >&5
3718 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3719 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3720 as_fn_error 77 "C compiler cannot create executables
3721 See \`config.log' for more details" "$LINENO" 5; }
3722 else
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3724 $as_echo "yes" >&6; }
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3727 $as_echo_n "checking for C compiler default output file name... " >&6; }
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3729 $as_echo "$ac_file" >&6; }
3730 ac_exeext=$ac_cv_exeext
3732 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3733 ac_clean_files=$ac_clean_files_save
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3735 $as_echo_n "checking for suffix of executables... " >&6; }
3736 if { { ac_try="$ac_link"
3737 case "(($ac_try" in
3738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3739 *) ac_try_echo=$ac_try;;
3740 esac
3741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3742 $as_echo "$ac_try_echo"; } >&5
3743 (eval "$ac_link") 2>&5
3744 ac_status=$?
3745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3746 test $ac_status = 0; }; then :
3747 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3748 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3749 # work properly (i.e., refer to `conftest.exe'), while it won't with
3750 # `rm'.
3751 for ac_file in conftest.exe conftest conftest.*; do
3752 test -f "$ac_file" || continue
3753 case $ac_file in
3754 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3755 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3756 break;;
3757 * ) break;;
3758 esac
3759 done
3760 else
3761 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3762 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3763 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3764 See \`config.log' for more details" "$LINENO" 5; }
3766 rm -f conftest conftest$ac_cv_exeext
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3768 $as_echo "$ac_cv_exeext" >&6; }
3770 rm -f conftest.$ac_ext
3771 EXEEXT=$ac_cv_exeext
3772 ac_exeext=$EXEEXT
3773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3774 /* end confdefs.h. */
3775 #include <stdio.h>
3777 main ()
3779 FILE *f = fopen ("conftest.out", "w");
3780 return ferror (f) || fclose (f) != 0;
3783 return 0;
3785 _ACEOF
3786 ac_clean_files="$ac_clean_files conftest.out"
3787 # Check that the compiler produces executables we can run. If not, either
3788 # the compiler is broken, or we cross compile.
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3790 $as_echo_n "checking whether we are cross compiling... " >&6; }
3791 if test "$cross_compiling" != yes; then
3792 { { ac_try="$ac_link"
3793 case "(($ac_try" in
3794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795 *) ac_try_echo=$ac_try;;
3796 esac
3797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3798 $as_echo "$ac_try_echo"; } >&5
3799 (eval "$ac_link") 2>&5
3800 ac_status=$?
3801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3802 test $ac_status = 0; }
3803 if { ac_try='./conftest$ac_cv_exeext'
3804 { { case "(($ac_try" in
3805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806 *) ac_try_echo=$ac_try;;
3807 esac
3808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3809 $as_echo "$ac_try_echo"; } >&5
3810 (eval "$ac_try") 2>&5
3811 ac_status=$?
3812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3813 test $ac_status = 0; }; }; then
3814 cross_compiling=no
3815 else
3816 if test "$cross_compiling" = maybe; then
3817 cross_compiling=yes
3818 else
3819 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3821 as_fn_error $? "cannot run C compiled programs.
3822 If you meant to cross compile, use \`--host'.
3823 See \`config.log' for more details" "$LINENO" 5; }
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3828 $as_echo "$cross_compiling" >&6; }
3830 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3831 ac_clean_files=$ac_clean_files_save
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3833 $as_echo_n "checking for suffix of object files... " >&6; }
3834 if ${ac_cv_objext+:} false; then :
3835 $as_echo_n "(cached) " >&6
3836 else
3837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838 /* end confdefs.h. */
3841 main ()
3845 return 0;
3847 _ACEOF
3848 rm -f conftest.o conftest.obj
3849 if { { ac_try="$ac_compile"
3850 case "(($ac_try" in
3851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852 *) ac_try_echo=$ac_try;;
3853 esac
3854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3855 $as_echo "$ac_try_echo"; } >&5
3856 (eval "$ac_compile") 2>&5
3857 ac_status=$?
3858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3859 test $ac_status = 0; }; then :
3860 for ac_file in conftest.o conftest.obj conftest.*; do
3861 test -f "$ac_file" || continue;
3862 case $ac_file in
3863 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3864 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3865 break;;
3866 esac
3867 done
3868 else
3869 $as_echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3872 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3873 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3874 as_fn_error $? "cannot compute suffix of object files: cannot compile
3875 See \`config.log' for more details" "$LINENO" 5; }
3877 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3880 $as_echo "$ac_cv_objext" >&6; }
3881 OBJEXT=$ac_cv_objext
3882 ac_objext=$OBJEXT
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3884 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3885 if ${ac_cv_c_compiler_gnu+:} false; then :
3886 $as_echo_n "(cached) " >&6
3887 else
3888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3889 /* end confdefs.h. */
3892 main ()
3894 #ifndef __GNUC__
3895 choke me
3896 #endif
3899 return 0;
3901 _ACEOF
3902 if ac_fn_c_try_compile "$LINENO"; then :
3903 ac_compiler_gnu=yes
3904 else
3905 ac_compiler_gnu=no
3907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3908 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3912 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3913 if test $ac_compiler_gnu = yes; then
3914 GCC=yes
3915 else
3916 GCC=
3918 ac_test_CFLAGS=${CFLAGS+set}
3919 ac_save_CFLAGS=$CFLAGS
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3921 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3922 if ${ac_cv_prog_cc_g+:} false; then :
3923 $as_echo_n "(cached) " >&6
3924 else
3925 ac_save_c_werror_flag=$ac_c_werror_flag
3926 ac_c_werror_flag=yes
3927 ac_cv_prog_cc_g=no
3928 CFLAGS="-g"
3929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3930 /* end confdefs.h. */
3933 main ()
3937 return 0;
3939 _ACEOF
3940 if ac_fn_c_try_compile "$LINENO"; then :
3941 ac_cv_prog_cc_g=yes
3942 else
3943 CFLAGS=""
3944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3945 /* end confdefs.h. */
3948 main ()
3952 return 0;
3954 _ACEOF
3955 if ac_fn_c_try_compile "$LINENO"; then :
3957 else
3958 ac_c_werror_flag=$ac_save_c_werror_flag
3959 CFLAGS="-g"
3960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3961 /* end confdefs.h. */
3964 main ()
3968 return 0;
3970 _ACEOF
3971 if ac_fn_c_try_compile "$LINENO"; then :
3972 ac_cv_prog_cc_g=yes
3974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3979 ac_c_werror_flag=$ac_save_c_werror_flag
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3982 $as_echo "$ac_cv_prog_cc_g" >&6; }
3983 if test "$ac_test_CFLAGS" = set; then
3984 CFLAGS=$ac_save_CFLAGS
3985 elif test $ac_cv_prog_cc_g = yes; then
3986 if test "$GCC" = yes; then
3987 CFLAGS="-g -O2"
3988 else
3989 CFLAGS="-g"
3991 else
3992 if test "$GCC" = yes; then
3993 CFLAGS="-O2"
3994 else
3995 CFLAGS=
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3999 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4000 if ${ac_cv_prog_cc_c89+:} false; then :
4001 $as_echo_n "(cached) " >&6
4002 else
4003 ac_cv_prog_cc_c89=no
4004 ac_save_CC=$CC
4005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4006 /* end confdefs.h. */
4007 #include <stdarg.h>
4008 #include <stdio.h>
4009 struct stat;
4010 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4011 struct buf { int x; };
4012 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4013 static char *e (p, i)
4014 char **p;
4015 int i;
4017 return p[i];
4019 static char *f (char * (*g) (char **, int), char **p, ...)
4021 char *s;
4022 va_list v;
4023 va_start (v,p);
4024 s = g (p, va_arg (v,int));
4025 va_end (v);
4026 return s;
4029 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4030 function prototypes and stuff, but not '\xHH' hex character constants.
4031 These don't provoke an error unfortunately, instead are silently treated
4032 as 'x'. The following induces an error, until -std is added to get
4033 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4034 array size at least. It's necessary to write '\x00'==0 to get something
4035 that's true only with -std. */
4036 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4038 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4039 inside strings and character constants. */
4040 #define FOO(x) 'x'
4041 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4043 int test (int i, double x);
4044 struct s1 {int (*f) (int a);};
4045 struct s2 {int (*f) (double a);};
4046 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4047 int argc;
4048 char **argv;
4050 main ()
4052 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4054 return 0;
4056 _ACEOF
4057 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4058 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4060 CC="$ac_save_CC $ac_arg"
4061 if ac_fn_c_try_compile "$LINENO"; then :
4062 ac_cv_prog_cc_c89=$ac_arg
4064 rm -f core conftest.err conftest.$ac_objext
4065 test "x$ac_cv_prog_cc_c89" != "xno" && break
4066 done
4067 rm -f conftest.$ac_ext
4068 CC=$ac_save_CC
4071 # AC_CACHE_VAL
4072 case "x$ac_cv_prog_cc_c89" in
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4075 $as_echo "none needed" >&6; } ;;
4076 xno)
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4078 $as_echo "unsupported" >&6; } ;;
4080 CC="$CC $ac_cv_prog_cc_c89"
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4082 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4083 esac
4084 if test "x$ac_cv_prog_cc_c89" != xno; then :
4088 ac_ext=c
4089 ac_cpp='$CPP $CPPFLAGS'
4090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4094 ac_ext=c
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
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4100 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4101 if ${am_cv_prog_cc_c_o+:} false; then :
4102 $as_echo_n "(cached) " >&6
4103 else
4104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105 /* end confdefs.h. */
4108 main ()
4112 return 0;
4114 _ACEOF
4115 # Make sure it works both with $CC and with simple cc.
4116 # Following AC_PROG_CC_C_O, we do the test twice because some
4117 # compilers refuse to overwrite an existing .o file with -o,
4118 # though they will create one.
4119 am_cv_prog_cc_c_o=yes
4120 for am_i in 1 2; do
4121 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4122 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4123 ac_status=$?
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); } \
4126 && test -f conftest2.$ac_objext; then
4127 : OK
4128 else
4129 am_cv_prog_cc_c_o=no
4130 break
4132 done
4133 rm -f core conftest*
4134 unset am_i
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4137 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4138 if test "$am_cv_prog_cc_c_o" != yes; then
4139 # Losing compiler, so override with the script.
4140 # FIXME: It is wrong to rewrite CC.
4141 # But if we don't then we get into trouble of one sort or another.
4142 # A longer-term fix would be to have automake use am__CC in this case,
4143 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4144 CC="$am_aux_dir/compile $CC"
4146 ac_ext=c
4147 ac_cpp='$CPP $CPPFLAGS'
4148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4152 DEPDIR="${am__leading_dot}deps"
4154 ac_config_commands="$ac_config_commands depfiles"
4157 am_make=${MAKE-make}
4158 cat > confinc << 'END'
4159 am__doit:
4160 @echo this is the am__doit target
4161 .PHONY: am__doit
4163 # If we don't find an include directive, just comment out the code.
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4165 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4166 am__include="#"
4167 am__quote=
4168 _am_result=none
4169 # First try GNU make style include.
4170 echo "include confinc" > confmf
4171 # Ignore all kinds of additional output from 'make'.
4172 case `$am_make -s -f confmf 2> /dev/null` in #(
4173 *the\ am__doit\ target*)
4174 am__include=include
4175 am__quote=
4176 _am_result=GNU
4178 esac
4179 # Now try BSD make style include.
4180 if test "$am__include" = "#"; then
4181 echo '.include "confinc"' > confmf
4182 case `$am_make -s -f confmf 2> /dev/null` in #(
4183 *the\ am__doit\ target*)
4184 am__include=.include
4185 am__quote="\""
4186 _am_result=BSD
4188 esac
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4193 $as_echo "$_am_result" >&6; }
4194 rm -f confinc confmf
4196 # Check whether --enable-dependency-tracking was given.
4197 if test "${enable_dependency_tracking+set}" = set; then :
4198 enableval=$enable_dependency_tracking;
4201 if test "x$enable_dependency_tracking" != xno; then
4202 am_depcomp="$ac_aux_dir/depcomp"
4203 AMDEPBACKSLASH='\'
4204 am__nodep='_no'
4206 if test "x$enable_dependency_tracking" != xno; then
4207 AMDEP_TRUE=
4208 AMDEP_FALSE='#'
4209 else
4210 AMDEP_TRUE='#'
4211 AMDEP_FALSE=
4216 depcc="$CC" am_compiler_list=
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4219 $as_echo_n "checking dependency style of $depcc... " >&6; }
4220 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4221 $as_echo_n "(cached) " >&6
4222 else
4223 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4224 # We make a subdir and do the tests there. Otherwise we can end up
4225 # making bogus files that we don't know about and never remove. For
4226 # instance it was reported that on HP-UX the gcc test will end up
4227 # making a dummy file named 'D' -- because '-MD' means "put the output
4228 # in D".
4229 rm -rf conftest.dir
4230 mkdir conftest.dir
4231 # Copy depcomp to subdir because otherwise we won't find it if we're
4232 # using a relative directory.
4233 cp "$am_depcomp" conftest.dir
4234 cd conftest.dir
4235 # We will build objects and dependencies in a subdirectory because
4236 # it helps to detect inapplicable dependency modes. For instance
4237 # both Tru64's cc and ICC support -MD to output dependencies as a
4238 # side effect of compilation, but ICC will put the dependencies in
4239 # the current directory while Tru64 will put them in the object
4240 # directory.
4241 mkdir sub
4243 am_cv_CC_dependencies_compiler_type=none
4244 if test "$am_compiler_list" = ""; then
4245 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4247 am__universal=false
4248 case " $depcc " in #(
4249 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4250 esac
4252 for depmode in $am_compiler_list; do
4253 # Setup a source with many dependencies, because some compilers
4254 # like to wrap large dependency lists on column 80 (with \), and
4255 # we should not choose a depcomp mode which is confused by this.
4257 # We need to recreate these files for each test, as the compiler may
4258 # overwrite some of them when testing with obscure command lines.
4259 # This happens at least with the AIX C compiler.
4260 : > sub/conftest.c
4261 for i in 1 2 3 4 5 6; do
4262 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4263 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4264 # Solaris 10 /bin/sh.
4265 echo '/* dummy */' > sub/conftst$i.h
4266 done
4267 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4269 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4270 # mode. It turns out that the SunPro C++ compiler does not properly
4271 # handle '-M -o', and we need to detect this. Also, some Intel
4272 # versions had trouble with output in subdirs.
4273 am__obj=sub/conftest.${OBJEXT-o}
4274 am__minus_obj="-o $am__obj"
4275 case $depmode in
4276 gcc)
4277 # This depmode causes a compiler race in universal mode.
4278 test "$am__universal" = false || continue
4280 nosideeffect)
4281 # After this tag, mechanisms are not by side-effect, so they'll
4282 # only be used when explicitly requested.
4283 if test "x$enable_dependency_tracking" = xyes; then
4284 continue
4285 else
4286 break
4289 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4290 # This compiler won't grok '-c -o', but also, the minuso test has
4291 # not run yet. These depmodes are late enough in the game, and
4292 # so weak that their functioning should not be impacted.
4293 am__obj=conftest.${OBJEXT-o}
4294 am__minus_obj=
4296 none) break ;;
4297 esac
4298 if depmode=$depmode \
4299 source=sub/conftest.c object=$am__obj \
4300 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4301 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4302 >/dev/null 2>conftest.err &&
4303 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4304 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4305 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4306 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4307 # icc doesn't choke on unknown options, it will just issue warnings
4308 # or remarks (even with -Werror). So we grep stderr for any message
4309 # that says an option was ignored or not supported.
4310 # When given -MP, icc 7.0 and 7.1 complain thusly:
4311 # icc: Command line warning: ignoring option '-M'; no argument required
4312 # The diagnosis changed in icc 8.0:
4313 # icc: Command line remark: option '-MP' not supported
4314 if (grep 'ignoring option' conftest.err ||
4315 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4316 am_cv_CC_dependencies_compiler_type=$depmode
4317 break
4320 done
4322 cd ..
4323 rm -rf conftest.dir
4324 else
4325 am_cv_CC_dependencies_compiler_type=none
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4330 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4331 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4334 test "x$enable_dependency_tracking" != xno \
4335 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4336 am__fastdepCC_TRUE=
4337 am__fastdepCC_FALSE='#'
4338 else
4339 am__fastdepCC_TRUE='#'
4340 am__fastdepCC_FALSE=
4344 ac_ext=go
4345 ac_compile='$GOC -c $GOFLAGS conftest.$ac_ext >&5'
4346 ac_link='$GOC -o conftest$ac_exeext $GOFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4347 ac_compiler_gnu=yes
4348 if test -n "$ac_tool_prefix"; then
4349 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4350 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4352 $as_echo_n "checking for $ac_word... " >&6; }
4353 if ${ac_cv_prog_GOC+:} false; then :
4354 $as_echo_n "(cached) " >&6
4355 else
4356 if test -n "$GOC"; then
4357 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4358 else
4359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4360 for as_dir in $PATH
4362 IFS=$as_save_IFS
4363 test -z "$as_dir" && as_dir=.
4364 for ac_exec_ext in '' $ac_executable_extensions; do
4365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4366 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
4367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4368 break 2
4370 done
4371 done
4372 IFS=$as_save_IFS
4376 GOC=$ac_cv_prog_GOC
4377 if test -n "$GOC"; then
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4379 $as_echo "$GOC" >&6; }
4380 else
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4382 $as_echo "no" >&6; }
4387 if test -z "$ac_cv_prog_GOC"; then
4388 ac_ct_GOC=$GOC
4389 # Extract the first word of "gccgo", so it can be a program name with args.
4390 set dummy gccgo; ac_word=$2
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4392 $as_echo_n "checking for $ac_word... " >&6; }
4393 if ${ac_cv_prog_ac_ct_GOC+:} false; then :
4394 $as_echo_n "(cached) " >&6
4395 else
4396 if test -n "$ac_ct_GOC"; then
4397 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
4398 else
4399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4400 for as_dir in $PATH
4402 IFS=$as_save_IFS
4403 test -z "$as_dir" && as_dir=.
4404 for ac_exec_ext in '' $ac_executable_extensions; do
4405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4406 ac_cv_prog_ac_ct_GOC="gccgo"
4407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4408 break 2
4410 done
4411 done
4412 IFS=$as_save_IFS
4416 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
4417 if test -n "$ac_ct_GOC"; then
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
4419 $as_echo "$ac_ct_GOC" >&6; }
4420 else
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4422 $as_echo "no" >&6; }
4425 if test "x$ac_ct_GOC" = x; then
4426 GOC=""
4427 else
4428 case $cross_compiling:$ac_tool_warned in
4429 yes:)
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4432 ac_tool_warned=yes ;;
4433 esac
4434 GOC=$ac_ct_GOC
4436 else
4437 GOC="$ac_cv_prog_GOC"
4440 if test -z "$GOC"; then
4441 if test -n "$ac_tool_prefix"; then
4442 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4443 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4445 $as_echo_n "checking for $ac_word... " >&6; }
4446 if ${ac_cv_prog_GOC+:} false; then :
4447 $as_echo_n "(cached) " >&6
4448 else
4449 if test -n "$GOC"; then
4450 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4451 else
4452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453 for as_dir in $PATH
4455 IFS=$as_save_IFS
4456 test -z "$as_dir" && as_dir=.
4457 for ac_exec_ext in '' $ac_executable_extensions; do
4458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4459 ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4461 break 2
4463 done
4464 done
4465 IFS=$as_save_IFS
4469 GOC=$ac_cv_prog_GOC
4470 if test -n "$GOC"; then
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4472 $as_echo "$GOC" >&6; }
4473 else
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4475 $as_echo "no" >&6; }
4481 if test -z "$GOC"; then
4482 # Extract the first word of "gccgo", so it can be a program name with args.
4483 set dummy gccgo; ac_word=$2
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4485 $as_echo_n "checking for $ac_word... " >&6; }
4486 if ${ac_cv_prog_GOC+:} false; then :
4487 $as_echo_n "(cached) " >&6
4488 else
4489 if test -n "$GOC"; then
4490 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4491 else
4492 ac_prog_rejected=no
4493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4494 for as_dir in $PATH
4496 IFS=$as_save_IFS
4497 test -z "$as_dir" && as_dir=.
4498 for ac_exec_ext in '' $ac_executable_extensions; do
4499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4500 if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
4501 ac_prog_rejected=yes
4502 continue
4504 ac_cv_prog_GOC="gccgo"
4505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4506 break 2
4508 done
4509 done
4510 IFS=$as_save_IFS
4512 if test $ac_prog_rejected = yes; then
4513 # We found a bogon in the path, so make sure we never use it.
4514 set dummy $ac_cv_prog_GOC
4515 shift
4516 if test $# != 0; then
4517 # We chose a different compiler from the bogus one.
4518 # However, it has the same basename, so the bogon will be chosen
4519 # first if we set GOC to just the basename; use the full file name.
4520 shift
4521 ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4526 GOC=$ac_cv_prog_GOC
4527 if test -n "$GOC"; then
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4529 $as_echo "$GOC" >&6; }
4530 else
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4532 $as_echo "no" >&6; }
4539 # Provide some information about the compiler.
4540 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4541 set X $ac_compile
4542 ac_compiler=$2
4543 { { ac_try="$ac_compiler --version >&5"
4544 case "(($ac_try" in
4545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4546 *) ac_try_echo=$ac_try;;
4547 esac
4548 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4549 $as_echo "$ac_try_echo"; } >&5
4550 (eval "$ac_compiler --version >&5") 2>conftest.err
4551 ac_status=$?
4552 if test -s conftest.err; then
4553 sed '10a\
4554 ... rest of stderr output deleted ...
4555 10q' conftest.err >conftest.er1
4556 cat conftest.er1 >&5
4558 rm -f conftest.er1 conftest.err
4559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4560 test $ac_status = 0; }
4561 GOFLAGS="-g -O2"
4562 ac_ext=c
4563 ac_cpp='$CPP $CPPFLAGS'
4564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4568 # By default we simply use the C compiler to build assembly code.
4570 test "${CCAS+set}" = set || CCAS=$CC
4571 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4575 depcc="$CCAS" am_compiler_list=
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4578 $as_echo_n "checking dependency style of $depcc... " >&6; }
4579 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4580 $as_echo_n "(cached) " >&6
4581 else
4582 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4583 # We make a subdir and do the tests there. Otherwise we can end up
4584 # making bogus files that we don't know about and never remove. For
4585 # instance it was reported that on HP-UX the gcc test will end up
4586 # making a dummy file named 'D' -- because '-MD' means "put the output
4587 # in D".
4588 rm -rf conftest.dir
4589 mkdir conftest.dir
4590 # Copy depcomp to subdir because otherwise we won't find it if we're
4591 # using a relative directory.
4592 cp "$am_depcomp" conftest.dir
4593 cd conftest.dir
4594 # We will build objects and dependencies in a subdirectory because
4595 # it helps to detect inapplicable dependency modes. For instance
4596 # both Tru64's cc and ICC support -MD to output dependencies as a
4597 # side effect of compilation, but ICC will put the dependencies in
4598 # the current directory while Tru64 will put them in the object
4599 # directory.
4600 mkdir sub
4602 am_cv_CCAS_dependencies_compiler_type=none
4603 if test "$am_compiler_list" = ""; then
4604 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4606 am__universal=false
4609 for depmode in $am_compiler_list; do
4610 # Setup a source with many dependencies, because some compilers
4611 # like to wrap large dependency lists on column 80 (with \), and
4612 # we should not choose a depcomp mode which is confused by this.
4614 # We need to recreate these files for each test, as the compiler may
4615 # overwrite some of them when testing with obscure command lines.
4616 # This happens at least with the AIX C compiler.
4617 : > sub/conftest.c
4618 for i in 1 2 3 4 5 6; do
4619 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4620 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4621 # Solaris 10 /bin/sh.
4622 echo '/* dummy */' > sub/conftst$i.h
4623 done
4624 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4626 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4627 # mode. It turns out that the SunPro C++ compiler does not properly
4628 # handle '-M -o', and we need to detect this. Also, some Intel
4629 # versions had trouble with output in subdirs.
4630 am__obj=sub/conftest.${OBJEXT-o}
4631 am__minus_obj="-o $am__obj"
4632 case $depmode in
4633 gcc)
4634 # This depmode causes a compiler race in universal mode.
4635 test "$am__universal" = false || continue
4637 nosideeffect)
4638 # After this tag, mechanisms are not by side-effect, so they'll
4639 # only be used when explicitly requested.
4640 if test "x$enable_dependency_tracking" = xyes; then
4641 continue
4642 else
4643 break
4646 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4647 # This compiler won't grok '-c -o', but also, the minuso test has
4648 # not run yet. These depmodes are late enough in the game, and
4649 # so weak that their functioning should not be impacted.
4650 am__obj=conftest.${OBJEXT-o}
4651 am__minus_obj=
4653 none) break ;;
4654 esac
4655 if depmode=$depmode \
4656 source=sub/conftest.c object=$am__obj \
4657 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4658 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4659 >/dev/null 2>conftest.err &&
4660 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4661 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4662 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4663 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4664 # icc doesn't choke on unknown options, it will just issue warnings
4665 # or remarks (even with -Werror). So we grep stderr for any message
4666 # that says an option was ignored or not supported.
4667 # When given -MP, icc 7.0 and 7.1 complain thusly:
4668 # icc: Command line warning: ignoring option '-M'; no argument required
4669 # The diagnosis changed in icc 8.0:
4670 # icc: Command line remark: option '-MP' not supported
4671 if (grep 'ignoring option' conftest.err ||
4672 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4673 am_cv_CCAS_dependencies_compiler_type=$depmode
4674 break
4677 done
4679 cd ..
4680 rm -rf conftest.dir
4681 else
4682 am_cv_CCAS_dependencies_compiler_type=none
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4687 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4688 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4691 test "x$enable_dependency_tracking" != xno \
4692 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4693 am__fastdepCCAS_TRUE=
4694 am__fastdepCCAS_FALSE='#'
4695 else
4696 am__fastdepCCAS_TRUE='#'
4697 am__fastdepCCAS_FALSE=
4705 case ${host} in
4706 *-*-aix*)
4707 # static hash tables crashes on AIX when libgo is built with O2
4708 CFLAGS="$CFLAGS -fno-section-anchors"
4709 GOCFLAGS="$GOCFLAGS -fno-section-anchors"
4711 esac
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4715 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4716 # Check whether --enable-maintainer-mode was given.
4717 if test "${enable_maintainer_mode+set}" = set; then :
4718 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4719 else
4720 USE_MAINTAINER_MODE=no
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4724 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4725 if test $USE_MAINTAINER_MODE = yes; then
4726 MAINTAINER_MODE_TRUE=
4727 MAINTAINER_MODE_FALSE='#'
4728 else
4729 MAINTAINER_MODE_TRUE='#'
4730 MAINTAINER_MODE_FALSE=
4733 MAINT=$MAINTAINER_MODE_TRUE
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4738 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4739 if ${ac_cv_path_SED+:} false; then :
4740 $as_echo_n "(cached) " >&6
4741 else
4742 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4743 for ac_i in 1 2 3 4 5 6 7; do
4744 ac_script="$ac_script$as_nl$ac_script"
4745 done
4746 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4747 { ac_script=; unset ac_script;}
4748 if test -z "$SED"; then
4749 ac_path_SED_found=false
4750 # Loop through the user's path and test for each of PROGNAME-LIST
4751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4752 for as_dir in $PATH
4754 IFS=$as_save_IFS
4755 test -z "$as_dir" && as_dir=.
4756 for ac_prog in sed gsed; do
4757 for ac_exec_ext in '' $ac_executable_extensions; do
4758 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4759 as_fn_executable_p "$ac_path_SED" || continue
4760 # Check for GNU ac_path_SED and select it if it is found.
4761 # Check for GNU $ac_path_SED
4762 case `"$ac_path_SED" --version 2>&1` in
4763 *GNU*)
4764 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4766 ac_count=0
4767 $as_echo_n 0123456789 >"conftest.in"
4768 while :
4770 cat "conftest.in" "conftest.in" >"conftest.tmp"
4771 mv "conftest.tmp" "conftest.in"
4772 cp "conftest.in" "conftest.nl"
4773 $as_echo '' >> "conftest.nl"
4774 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4775 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4776 as_fn_arith $ac_count + 1 && ac_count=$as_val
4777 if test $ac_count -gt ${ac_path_SED_max-0}; then
4778 # Best one so far, save it but keep looking for a better one
4779 ac_cv_path_SED="$ac_path_SED"
4780 ac_path_SED_max=$ac_count
4782 # 10*(2^10) chars as input seems more than enough
4783 test $ac_count -gt 10 && break
4784 done
4785 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4786 esac
4788 $ac_path_SED_found && break 3
4789 done
4790 done
4791 done
4792 IFS=$as_save_IFS
4793 if test -z "$ac_cv_path_SED"; then
4794 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4796 else
4797 ac_cv_path_SED=$SED
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4802 $as_echo "$ac_cv_path_SED" >&6; }
4803 SED="$ac_cv_path_SED"
4804 rm -f conftest.sed
4806 test -z "$SED" && SED=sed
4807 Xsed="$SED -e 1s/^X//"
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4820 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4821 if ${ac_cv_path_GREP+:} false; then :
4822 $as_echo_n "(cached) " >&6
4823 else
4824 if test -z "$GREP"; then
4825 ac_path_GREP_found=false
4826 # Loop through the user's path and test for each of PROGNAME-LIST
4827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4830 IFS=$as_save_IFS
4831 test -z "$as_dir" && as_dir=.
4832 for ac_prog in grep ggrep; do
4833 for ac_exec_ext in '' $ac_executable_extensions; do
4834 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4835 as_fn_executable_p "$ac_path_GREP" || continue
4836 # Check for GNU ac_path_GREP and select it if it is found.
4837 # Check for GNU $ac_path_GREP
4838 case `"$ac_path_GREP" --version 2>&1` in
4839 *GNU*)
4840 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4842 ac_count=0
4843 $as_echo_n 0123456789 >"conftest.in"
4844 while :
4846 cat "conftest.in" "conftest.in" >"conftest.tmp"
4847 mv "conftest.tmp" "conftest.in"
4848 cp "conftest.in" "conftest.nl"
4849 $as_echo 'GREP' >> "conftest.nl"
4850 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4851 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4852 as_fn_arith $ac_count + 1 && ac_count=$as_val
4853 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4854 # Best one so far, save it but keep looking for a better one
4855 ac_cv_path_GREP="$ac_path_GREP"
4856 ac_path_GREP_max=$ac_count
4858 # 10*(2^10) chars as input seems more than enough
4859 test $ac_count -gt 10 && break
4860 done
4861 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4862 esac
4864 $ac_path_GREP_found && break 3
4865 done
4866 done
4867 done
4868 IFS=$as_save_IFS
4869 if test -z "$ac_cv_path_GREP"; then
4870 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4872 else
4873 ac_cv_path_GREP=$GREP
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4878 $as_echo "$ac_cv_path_GREP" >&6; }
4879 GREP="$ac_cv_path_GREP"
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4883 $as_echo_n "checking for egrep... " >&6; }
4884 if ${ac_cv_path_EGREP+:} false; then :
4885 $as_echo_n "(cached) " >&6
4886 else
4887 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4888 then ac_cv_path_EGREP="$GREP -E"
4889 else
4890 if test -z "$EGREP"; then
4891 ac_path_EGREP_found=false
4892 # Loop through the user's path and test for each of PROGNAME-LIST
4893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4894 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4896 IFS=$as_save_IFS
4897 test -z "$as_dir" && as_dir=.
4898 for ac_prog in egrep; do
4899 for ac_exec_ext in '' $ac_executable_extensions; do
4900 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4901 as_fn_executable_p "$ac_path_EGREP" || continue
4902 # Check for GNU ac_path_EGREP and select it if it is found.
4903 # Check for GNU $ac_path_EGREP
4904 case `"$ac_path_EGREP" --version 2>&1` in
4905 *GNU*)
4906 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4908 ac_count=0
4909 $as_echo_n 0123456789 >"conftest.in"
4910 while :
4912 cat "conftest.in" "conftest.in" >"conftest.tmp"
4913 mv "conftest.tmp" "conftest.in"
4914 cp "conftest.in" "conftest.nl"
4915 $as_echo 'EGREP' >> "conftest.nl"
4916 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4917 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4918 as_fn_arith $ac_count + 1 && ac_count=$as_val
4919 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4920 # Best one so far, save it but keep looking for a better one
4921 ac_cv_path_EGREP="$ac_path_EGREP"
4922 ac_path_EGREP_max=$ac_count
4924 # 10*(2^10) chars as input seems more than enough
4925 test $ac_count -gt 10 && break
4926 done
4927 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4928 esac
4930 $ac_path_EGREP_found && break 3
4931 done
4932 done
4933 done
4934 IFS=$as_save_IFS
4935 if test -z "$ac_cv_path_EGREP"; then
4936 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4938 else
4939 ac_cv_path_EGREP=$EGREP
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4945 $as_echo "$ac_cv_path_EGREP" >&6; }
4946 EGREP="$ac_cv_path_EGREP"
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4950 $as_echo_n "checking for fgrep... " >&6; }
4951 if ${ac_cv_path_FGREP+:} false; then :
4952 $as_echo_n "(cached) " >&6
4953 else
4954 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4955 then ac_cv_path_FGREP="$GREP -F"
4956 else
4957 if test -z "$FGREP"; then
4958 ac_path_FGREP_found=false
4959 # Loop through the user's path and test for each of PROGNAME-LIST
4960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4961 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4963 IFS=$as_save_IFS
4964 test -z "$as_dir" && as_dir=.
4965 for ac_prog in fgrep; do
4966 for ac_exec_ext in '' $ac_executable_extensions; do
4967 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4968 as_fn_executable_p "$ac_path_FGREP" || continue
4969 # Check for GNU ac_path_FGREP and select it if it is found.
4970 # Check for GNU $ac_path_FGREP
4971 case `"$ac_path_FGREP" --version 2>&1` in
4972 *GNU*)
4973 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4975 ac_count=0
4976 $as_echo_n 0123456789 >"conftest.in"
4977 while :
4979 cat "conftest.in" "conftest.in" >"conftest.tmp"
4980 mv "conftest.tmp" "conftest.in"
4981 cp "conftest.in" "conftest.nl"
4982 $as_echo 'FGREP' >> "conftest.nl"
4983 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4984 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4985 as_fn_arith $ac_count + 1 && ac_count=$as_val
4986 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4987 # Best one so far, save it but keep looking for a better one
4988 ac_cv_path_FGREP="$ac_path_FGREP"
4989 ac_path_FGREP_max=$ac_count
4991 # 10*(2^10) chars as input seems more than enough
4992 test $ac_count -gt 10 && break
4993 done
4994 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4995 esac
4997 $ac_path_FGREP_found && break 3
4998 done
4999 done
5000 done
5001 IFS=$as_save_IFS
5002 if test -z "$ac_cv_path_FGREP"; then
5003 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5005 else
5006 ac_cv_path_FGREP=$FGREP
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5012 $as_echo "$ac_cv_path_FGREP" >&6; }
5013 FGREP="$ac_cv_path_FGREP"
5016 test -z "$GREP" && GREP=grep
5034 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5035 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5036 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5039 $as_echo_n "checking how to print strings... " >&6; }
5040 # Test print first, because it will be a builtin if present.
5041 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5042 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5043 ECHO='print -r --'
5044 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5045 ECHO='printf %s\n'
5046 else
5047 # Use this function as a fallback that always works.
5048 func_fallback_echo ()
5050 eval 'cat <<_LTECHO_EOF
5052 _LTECHO_EOF'
5054 ECHO='func_fallback_echo'
5057 # func_echo_all arg...
5058 # Invoke $ECHO with all args, space-separated.
5059 func_echo_all ()
5061 $ECHO ""
5064 case "$ECHO" in
5065 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5066 $as_echo "printf" >&6; } ;;
5067 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5068 $as_echo "print -r" >&6; } ;;
5069 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5070 $as_echo "cat" >&6; } ;;
5071 esac
5088 # Check whether --with-gnu-ld was given.
5089 if test "${with_gnu_ld+set}" = set; then :
5090 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5091 else
5092 with_gnu_ld=no
5095 ac_prog=ld
5096 if test "$GCC" = yes; then
5097 # Check if gcc -print-prog-name=ld gives a path.
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5099 $as_echo_n "checking for ld used by $CC... " >&6; }
5100 case $host in
5101 *-*-mingw*)
5102 # gcc leaves a trailing carriage return which upsets mingw
5103 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5105 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5106 esac
5107 case $ac_prog in
5108 # Accept absolute paths.
5109 [\\/]* | ?:[\\/]*)
5110 re_direlt='/[^/][^/]*/\.\./'
5111 # Canonicalize the pathname of ld
5112 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5113 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5114 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5115 done
5116 test -z "$LD" && LD="$ac_prog"
5119 # If it fails, then pretend we aren't using GCC.
5120 ac_prog=ld
5123 # If it is relative, then search for the first ld in PATH.
5124 with_gnu_ld=unknown
5126 esac
5127 elif test "$with_gnu_ld" = yes; then
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5129 $as_echo_n "checking for GNU ld... " >&6; }
5130 else
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5132 $as_echo_n "checking for non-GNU ld... " >&6; }
5134 if ${lt_cv_path_LD+:} false; then :
5135 $as_echo_n "(cached) " >&6
5136 else
5137 if test -z "$LD"; then
5138 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5139 for ac_dir in $PATH; do
5140 IFS="$lt_save_ifs"
5141 test -z "$ac_dir" && ac_dir=.
5142 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5143 lt_cv_path_LD="$ac_dir/$ac_prog"
5144 # Check to see if the program is GNU ld. I'd rather use --version,
5145 # but apparently some variants of GNU ld only accept -v.
5146 # Break only if it was the GNU/non-GNU ld that we prefer.
5147 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5148 *GNU* | *'with BFD'*)
5149 test "$with_gnu_ld" != no && break
5152 test "$with_gnu_ld" != yes && break
5154 esac
5156 done
5157 IFS="$lt_save_ifs"
5158 else
5159 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5163 LD="$lt_cv_path_LD"
5164 if test -n "$LD"; then
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5166 $as_echo "$LD" >&6; }
5167 else
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5169 $as_echo "no" >&6; }
5171 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5173 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5174 if ${lt_cv_prog_gnu_ld+:} false; then :
5175 $as_echo_n "(cached) " >&6
5176 else
5177 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5178 case `$LD -v 2>&1 </dev/null` in
5179 *GNU* | *'with BFD'*)
5180 lt_cv_prog_gnu_ld=yes
5183 lt_cv_prog_gnu_ld=no
5185 esac
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5188 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5189 with_gnu_ld=$lt_cv_prog_gnu_ld
5199 if test -n "$ac_tool_prefix"; then
5200 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5201 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5203 $as_echo_n "checking for $ac_word... " >&6; }
5204 if ${ac_cv_prog_RANLIB+:} false; then :
5205 $as_echo_n "(cached) " >&6
5206 else
5207 if test -n "$RANLIB"; then
5208 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5209 else
5210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211 for as_dir in $PATH
5213 IFS=$as_save_IFS
5214 test -z "$as_dir" && as_dir=.
5215 for ac_exec_ext in '' $ac_executable_extensions; do
5216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5217 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5219 break 2
5221 done
5222 done
5223 IFS=$as_save_IFS
5227 RANLIB=$ac_cv_prog_RANLIB
5228 if test -n "$RANLIB"; then
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5230 $as_echo "$RANLIB" >&6; }
5231 else
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5233 $as_echo "no" >&6; }
5238 if test -z "$ac_cv_prog_RANLIB"; then
5239 ac_ct_RANLIB=$RANLIB
5240 # Extract the first word of "ranlib", so it can be a program name with args.
5241 set dummy ranlib; ac_word=$2
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5243 $as_echo_n "checking for $ac_word... " >&6; }
5244 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5245 $as_echo_n "(cached) " >&6
5246 else
5247 if test -n "$ac_ct_RANLIB"; then
5248 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5249 else
5250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5251 for as_dir in $PATH
5253 IFS=$as_save_IFS
5254 test -z "$as_dir" && as_dir=.
5255 for ac_exec_ext in '' $ac_executable_extensions; do
5256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5257 ac_cv_prog_ac_ct_RANLIB="ranlib"
5258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5259 break 2
5261 done
5262 done
5263 IFS=$as_save_IFS
5267 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5268 if test -n "$ac_ct_RANLIB"; then
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5270 $as_echo "$ac_ct_RANLIB" >&6; }
5271 else
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5273 $as_echo "no" >&6; }
5276 if test "x$ac_ct_RANLIB" = x; then
5277 RANLIB=":"
5278 else
5279 case $cross_compiling:$ac_tool_warned in
5280 yes:)
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5282 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5283 ac_tool_warned=yes ;;
5284 esac
5285 RANLIB=$ac_ct_RANLIB
5287 else
5288 RANLIB="$ac_cv_prog_RANLIB"
5291 if test -n "$ac_tool_prefix"; then
5292 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
5293 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5295 $as_echo_n "checking for $ac_word... " >&6; }
5296 if ${ac_cv_prog_OBJCOPY+:} false; then :
5297 $as_echo_n "(cached) " >&6
5298 else
5299 if test -n "$OBJCOPY"; then
5300 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
5301 else
5302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5303 for as_dir in $PATH
5305 IFS=$as_save_IFS
5306 test -z "$as_dir" && as_dir=.
5307 for ac_exec_ext in '' $ac_executable_extensions; do
5308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5309 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
5310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5311 break 2
5313 done
5314 done
5315 IFS=$as_save_IFS
5319 OBJCOPY=$ac_cv_prog_OBJCOPY
5320 if test -n "$OBJCOPY"; then
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
5322 $as_echo "$OBJCOPY" >&6; }
5323 else
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5325 $as_echo "no" >&6; }
5330 if test -z "$ac_cv_prog_OBJCOPY"; then
5331 ac_ct_OBJCOPY=$OBJCOPY
5332 # Extract the first word of "objcopy", so it can be a program name with args.
5333 set dummy objcopy; ac_word=$2
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5335 $as_echo_n "checking for $ac_word... " >&6; }
5336 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then :
5337 $as_echo_n "(cached) " >&6
5338 else
5339 if test -n "$ac_ct_OBJCOPY"; then
5340 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
5341 else
5342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5343 for as_dir in $PATH
5345 IFS=$as_save_IFS
5346 test -z "$as_dir" && as_dir=.
5347 for ac_exec_ext in '' $ac_executable_extensions; do
5348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5349 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
5350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5351 break 2
5353 done
5354 done
5355 IFS=$as_save_IFS
5359 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
5360 if test -n "$ac_ct_OBJCOPY"; then
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
5362 $as_echo "$ac_ct_OBJCOPY" >&6; }
5363 else
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5365 $as_echo "no" >&6; }
5368 if test "x$ac_ct_OBJCOPY" = x; then
5369 OBJCOPY="missing-objcopy"
5370 else
5371 case $cross_compiling:$ac_tool_warned in
5372 yes:)
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5374 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5375 ac_tool_warned=yes ;;
5376 esac
5377 OBJCOPY=$ac_ct_OBJCOPY
5379 else
5380 OBJCOPY="$ac_cv_prog_OBJCOPY"
5384 enable_dlopen=yes
5388 case `pwd` in
5389 *\ * | *\ *)
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5391 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5392 esac
5396 macro_version='2.2.7a'
5397 macro_revision='1.3134'
5411 ltmain="$ac_aux_dir/ltmain.sh"
5413 # Backslashify metacharacters that are still active within
5414 # double-quoted strings.
5415 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5417 # Same as above, but do not quote variable references.
5418 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5420 # Sed substitution to delay expansion of an escaped shell variable in a
5421 # double_quote_subst'ed string.
5422 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5424 # Sed substitution to delay expansion of an escaped single quote.
5425 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5427 # Sed substitution to avoid accidental globbing in evaled expressions
5428 no_glob_subst='s/\*/\\\*/g'
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5431 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5432 if ${lt_cv_path_NM+:} false; then :
5433 $as_echo_n "(cached) " >&6
5434 else
5435 if test -n "$NM"; then
5436 # Let the user override the test.
5437 lt_cv_path_NM="$NM"
5438 else
5439 lt_nm_to_check="${ac_tool_prefix}nm"
5440 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5441 lt_nm_to_check="$lt_nm_to_check nm"
5443 for lt_tmp_nm in $lt_nm_to_check; do
5444 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5445 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5446 IFS="$lt_save_ifs"
5447 test -z "$ac_dir" && ac_dir=.
5448 tmp_nm="$ac_dir/$lt_tmp_nm"
5449 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5450 # Check to see if the nm accepts a BSD-compat flag.
5451 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5452 # nm: unknown option "B" ignored
5453 # Tru64's nm complains that /dev/null is an invalid object file
5454 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5455 */dev/null* | *'Invalid file or object type'*)
5456 lt_cv_path_NM="$tmp_nm -B"
5457 break
5460 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5461 */dev/null*)
5462 lt_cv_path_NM="$tmp_nm -p"
5463 break
5466 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5467 continue # so that we can try to find one that supports BSD flags
5469 esac
5471 esac
5473 done
5474 IFS="$lt_save_ifs"
5475 done
5476 : ${lt_cv_path_NM=no}
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5480 $as_echo "$lt_cv_path_NM" >&6; }
5481 if test "$lt_cv_path_NM" != "no"; then
5482 NM="$lt_cv_path_NM"
5483 else
5484 # Didn't find any BSD compatible name lister, look for dumpbin.
5485 if test -n "$DUMPBIN"; then :
5486 # Let the user override the test.
5487 else
5488 if test -n "$ac_tool_prefix"; then
5489 for ac_prog in dumpbin "link -dump"
5491 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5492 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5494 $as_echo_n "checking for $ac_word... " >&6; }
5495 if ${ac_cv_prog_DUMPBIN+:} false; then :
5496 $as_echo_n "(cached) " >&6
5497 else
5498 if test -n "$DUMPBIN"; then
5499 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5500 else
5501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5502 for as_dir in $PATH
5504 IFS=$as_save_IFS
5505 test -z "$as_dir" && as_dir=.
5506 for ac_exec_ext in '' $ac_executable_extensions; do
5507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5508 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5510 break 2
5512 done
5513 done
5514 IFS=$as_save_IFS
5518 DUMPBIN=$ac_cv_prog_DUMPBIN
5519 if test -n "$DUMPBIN"; then
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5521 $as_echo "$DUMPBIN" >&6; }
5522 else
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5524 $as_echo "no" >&6; }
5528 test -n "$DUMPBIN" && break
5529 done
5531 if test -z "$DUMPBIN"; then
5532 ac_ct_DUMPBIN=$DUMPBIN
5533 for ac_prog in dumpbin "link -dump"
5535 # Extract the first word of "$ac_prog", so it can be a program name with args.
5536 set dummy $ac_prog; ac_word=$2
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5538 $as_echo_n "checking for $ac_word... " >&6; }
5539 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5540 $as_echo_n "(cached) " >&6
5541 else
5542 if test -n "$ac_ct_DUMPBIN"; then
5543 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5544 else
5545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5546 for as_dir in $PATH
5548 IFS=$as_save_IFS
5549 test -z "$as_dir" && as_dir=.
5550 for ac_exec_ext in '' $ac_executable_extensions; do
5551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5552 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5554 break 2
5556 done
5557 done
5558 IFS=$as_save_IFS
5562 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5563 if test -n "$ac_ct_DUMPBIN"; then
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5565 $as_echo "$ac_ct_DUMPBIN" >&6; }
5566 else
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5568 $as_echo "no" >&6; }
5572 test -n "$ac_ct_DUMPBIN" && break
5573 done
5575 if test "x$ac_ct_DUMPBIN" = x; then
5576 DUMPBIN=":"
5577 else
5578 case $cross_compiling:$ac_tool_warned in
5579 yes:)
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5582 ac_tool_warned=yes ;;
5583 esac
5584 DUMPBIN=$ac_ct_DUMPBIN
5588 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5589 *COFF*)
5590 DUMPBIN="$DUMPBIN -symbols"
5593 DUMPBIN=:
5595 esac
5598 if test "$DUMPBIN" != ":"; then
5599 NM="$DUMPBIN"
5602 test -z "$NM" && NM=nm
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5610 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5611 if ${lt_cv_nm_interface+:} false; then :
5612 $as_echo_n "(cached) " >&6
5613 else
5614 lt_cv_nm_interface="BSD nm"
5615 echo "int some_variable = 0;" > conftest.$ac_ext
5616 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5617 (eval "$ac_compile" 2>conftest.err)
5618 cat conftest.err >&5
5619 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5620 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5621 cat conftest.err >&5
5622 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5623 cat conftest.out >&5
5624 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5625 lt_cv_nm_interface="MS dumpbin"
5627 rm -f conftest*
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5630 $as_echo "$lt_cv_nm_interface" >&6; }
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5633 $as_echo_n "checking whether ln -s works... " >&6; }
5634 LN_S=$as_ln_s
5635 if test "$LN_S" = "ln -s"; then
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5637 $as_echo "yes" >&6; }
5638 else
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5640 $as_echo "no, using $LN_S" >&6; }
5643 # find the maximum length of command line arguments
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5645 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5646 if ${lt_cv_sys_max_cmd_len+:} false; then :
5647 $as_echo_n "(cached) " >&6
5648 else
5650 teststring="ABCD"
5652 case $build_os in
5653 msdosdjgpp*)
5654 # On DJGPP, this test can blow up pretty badly due to problems in libc
5655 # (any single argument exceeding 2000 bytes causes a buffer overrun
5656 # during glob expansion). Even if it were fixed, the result of this
5657 # check would be larger than it should be.
5658 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5661 gnu*)
5662 # Under GNU Hurd, this test is not required because there is
5663 # no limit to the length of command line arguments.
5664 # Libtool will interpret -1 as no limit whatsoever
5665 lt_cv_sys_max_cmd_len=-1;
5668 cygwin* | mingw* | cegcc*)
5669 # On Win9x/ME, this test blows up -- it succeeds, but takes
5670 # about 5 minutes as the teststring grows exponentially.
5671 # Worse, since 9x/ME are not pre-emptively multitasking,
5672 # you end up with a "frozen" computer, even though with patience
5673 # the test eventually succeeds (with a max line length of 256k).
5674 # Instead, let's just punt: use the minimum linelength reported by
5675 # all of the supported platforms: 8192 (on NT/2K/XP).
5676 lt_cv_sys_max_cmd_len=8192;
5679 mint*)
5680 # On MiNT this can take a long time and run out of memory.
5681 lt_cv_sys_max_cmd_len=8192;
5684 amigaos*)
5685 # On AmigaOS with pdksh, this test takes hours, literally.
5686 # So we just punt and use a minimum line length of 8192.
5687 lt_cv_sys_max_cmd_len=8192;
5690 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5691 # This has been around since 386BSD, at least. Likely further.
5692 if test -x /sbin/sysctl; then
5693 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5694 elif test -x /usr/sbin/sysctl; then
5695 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5696 else
5697 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5699 # And add a safety zone
5700 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5701 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5704 interix*)
5705 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5706 lt_cv_sys_max_cmd_len=196608
5709 osf*)
5710 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5711 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5712 # nice to cause kernel panics so lets avoid the loop below.
5713 # First set a reasonable default.
5714 lt_cv_sys_max_cmd_len=16384
5716 if test -x /sbin/sysconfig; then
5717 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5718 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5719 esac
5722 sco3.2v5*)
5723 lt_cv_sys_max_cmd_len=102400
5725 sysv5* | sco5v6* | sysv4.2uw2*)
5726 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5727 if test -n "$kargmax"; then
5728 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5729 else
5730 lt_cv_sys_max_cmd_len=32768
5734 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5735 if test -n "$lt_cv_sys_max_cmd_len"; then
5736 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5737 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5738 else
5739 # Make teststring a little bigger before we do anything with it.
5740 # a 1K string should be a reasonable start.
5741 for i in 1 2 3 4 5 6 7 8 ; do
5742 teststring=$teststring$teststring
5743 done
5744 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5745 # If test is not a shell built-in, we'll probably end up computing a
5746 # maximum length that is only half of the actual maximum length, but
5747 # we can't tell.
5748 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5749 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5750 test $i != 17 # 1/2 MB should be enough
5752 i=`expr $i + 1`
5753 teststring=$teststring$teststring
5754 done
5755 # Only check the string length outside the loop.
5756 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5757 teststring=
5758 # Add a significant safety factor because C++ compilers can tack on
5759 # massive amounts of additional arguments before passing them to the
5760 # linker. It appears as though 1/2 is a usable value.
5761 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5764 esac
5768 if test -n $lt_cv_sys_max_cmd_len ; then
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5770 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5771 else
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5773 $as_echo "none" >&6; }
5775 max_cmd_len=$lt_cv_sys_max_cmd_len
5782 : ${CP="cp -f"}
5783 : ${MV="mv -f"}
5784 : ${RM="rm -f"}
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5787 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5788 # Try some XSI features
5789 xsi_shell=no
5790 ( _lt_dummy="a/b/c"
5791 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5792 = c,a/b,, \
5793 && eval 'test $(( 1 + 1 )) -eq 2 \
5794 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5795 && xsi_shell=yes
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5797 $as_echo "$xsi_shell" >&6; }
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5801 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5802 lt_shell_append=no
5803 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5804 >/dev/null 2>&1 \
5805 && lt_shell_append=yes
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5807 $as_echo "$lt_shell_append" >&6; }
5810 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5811 lt_unset=unset
5812 else
5813 lt_unset=false
5820 # test EBCDIC or ASCII
5821 case `echo X|tr X '\101'` in
5822 A) # ASCII based system
5823 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5824 lt_SP2NL='tr \040 \012'
5825 lt_NL2SP='tr \015\012 \040\040'
5827 *) # EBCDIC based system
5828 lt_SP2NL='tr \100 \n'
5829 lt_NL2SP='tr \r\n \100\100'
5831 esac
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5842 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5843 if ${lt_cv_ld_reload_flag+:} false; then :
5844 $as_echo_n "(cached) " >&6
5845 else
5846 lt_cv_ld_reload_flag='-r'
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5849 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5850 reload_flag=$lt_cv_ld_reload_flag
5851 case $reload_flag in
5852 "" | " "*) ;;
5853 *) reload_flag=" $reload_flag" ;;
5854 esac
5855 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5856 case $host_os in
5857 darwin*)
5858 if test "$GCC" = yes; then
5859 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5860 else
5861 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5864 esac
5874 if test -n "$ac_tool_prefix"; then
5875 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5876 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5878 $as_echo_n "checking for $ac_word... " >&6; }
5879 if ${ac_cv_prog_OBJDUMP+:} false; then :
5880 $as_echo_n "(cached) " >&6
5881 else
5882 if test -n "$OBJDUMP"; then
5883 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5884 else
5885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5886 for as_dir in $PATH
5888 IFS=$as_save_IFS
5889 test -z "$as_dir" && as_dir=.
5890 for ac_exec_ext in '' $ac_executable_extensions; do
5891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5892 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5894 break 2
5896 done
5897 done
5898 IFS=$as_save_IFS
5902 OBJDUMP=$ac_cv_prog_OBJDUMP
5903 if test -n "$OBJDUMP"; then
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5905 $as_echo "$OBJDUMP" >&6; }
5906 else
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5908 $as_echo "no" >&6; }
5913 if test -z "$ac_cv_prog_OBJDUMP"; then
5914 ac_ct_OBJDUMP=$OBJDUMP
5915 # Extract the first word of "objdump", so it can be a program name with args.
5916 set dummy objdump; ac_word=$2
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5918 $as_echo_n "checking for $ac_word... " >&6; }
5919 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5920 $as_echo_n "(cached) " >&6
5921 else
5922 if test -n "$ac_ct_OBJDUMP"; then
5923 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5924 else
5925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926 for as_dir in $PATH
5928 IFS=$as_save_IFS
5929 test -z "$as_dir" && as_dir=.
5930 for ac_exec_ext in '' $ac_executable_extensions; do
5931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5932 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5934 break 2
5936 done
5937 done
5938 IFS=$as_save_IFS
5942 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5943 if test -n "$ac_ct_OBJDUMP"; then
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5945 $as_echo "$ac_ct_OBJDUMP" >&6; }
5946 else
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5948 $as_echo "no" >&6; }
5951 if test "x$ac_ct_OBJDUMP" = x; then
5952 OBJDUMP="false"
5953 else
5954 case $cross_compiling:$ac_tool_warned in
5955 yes:)
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5957 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5958 ac_tool_warned=yes ;;
5959 esac
5960 OBJDUMP=$ac_ct_OBJDUMP
5962 else
5963 OBJDUMP="$ac_cv_prog_OBJDUMP"
5966 test -z "$OBJDUMP" && OBJDUMP=objdump
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5977 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5978 if ${lt_cv_deplibs_check_method+:} false; then :
5979 $as_echo_n "(cached) " >&6
5980 else
5981 lt_cv_file_magic_cmd='$MAGIC_CMD'
5982 lt_cv_file_magic_test_file=
5983 lt_cv_deplibs_check_method='unknown'
5984 # Need to set the preceding variable on all platforms that support
5985 # interlibrary dependencies.
5986 # 'none' -- dependencies not supported.
5987 # `unknown' -- same as none, but documents that we really don't know.
5988 # 'pass_all' -- all dependencies passed with no checks.
5989 # 'test_compile' -- check by making test program.
5990 # 'file_magic [[regex]]' -- check by looking for files in library path
5991 # which responds to the $file_magic_cmd with a given extended regex.
5992 # If you have `file' or equivalent on your system and you're not sure
5993 # whether `pass_all' will *always* work, you probably want this one.
5995 case $host_os in
5996 aix[4-9]*)
5997 lt_cv_deplibs_check_method=pass_all
6000 beos*)
6001 lt_cv_deplibs_check_method=pass_all
6004 bsdi[45]*)
6005 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6006 lt_cv_file_magic_cmd='/usr/bin/file -L'
6007 lt_cv_file_magic_test_file=/shlib/libc.so
6010 cygwin*)
6011 # func_win32_libid is a shell function defined in ltmain.sh
6012 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6013 lt_cv_file_magic_cmd='func_win32_libid'
6016 mingw* | pw32*)
6017 # Base MSYS/MinGW do not provide the 'file' command needed by
6018 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6019 # unless we find 'file', for example because we are cross-compiling.
6020 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6021 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6022 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6023 lt_cv_file_magic_cmd='func_win32_libid'
6024 else
6025 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6026 lt_cv_file_magic_cmd='$OBJDUMP -f'
6030 cegcc*)
6031 # use the weaker test based on 'objdump'. See mingw*.
6032 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6033 lt_cv_file_magic_cmd='$OBJDUMP -f'
6036 darwin* | rhapsody*)
6037 lt_cv_deplibs_check_method=pass_all
6040 freebsd* | dragonfly*)
6041 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6042 case $host_cpu in
6043 i*86 )
6044 # Not sure whether the presence of OpenBSD here was a mistake.
6045 # Let's accept both of them until this is cleared up.
6046 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6047 lt_cv_file_magic_cmd=/usr/bin/file
6048 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6050 esac
6051 else
6052 lt_cv_deplibs_check_method=pass_all
6056 gnu*)
6057 lt_cv_deplibs_check_method=pass_all
6060 haiku*)
6061 lt_cv_deplibs_check_method=pass_all
6064 hpux10.20* | hpux11*)
6065 lt_cv_file_magic_cmd=/usr/bin/file
6066 case $host_cpu in
6067 ia64*)
6068 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6069 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6071 hppa*64*)
6072 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]'
6073 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6076 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6077 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6079 esac
6082 interix[3-9]*)
6083 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6084 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6087 irix5* | irix6* | nonstopux*)
6088 case $LD in
6089 *-32|*"-32 ") libmagic=32-bit;;
6090 *-n32|*"-n32 ") libmagic=N32;;
6091 *-64|*"-64 ") libmagic=64-bit;;
6092 *) libmagic=never-match;;
6093 esac
6094 lt_cv_deplibs_check_method=pass_all
6097 # This must be Linux ELF.
6098 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6099 lt_cv_deplibs_check_method=pass_all
6102 netbsd*)
6103 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6104 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6105 else
6106 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6110 newos6*)
6111 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6112 lt_cv_file_magic_cmd=/usr/bin/file
6113 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6116 *nto* | *qnx*)
6117 lt_cv_deplibs_check_method=pass_all
6120 openbsd*)
6121 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6122 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6123 else
6124 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6128 osf3* | osf4* | osf5*)
6129 lt_cv_deplibs_check_method=pass_all
6132 rdos*)
6133 lt_cv_deplibs_check_method=pass_all
6136 solaris*)
6137 lt_cv_deplibs_check_method=pass_all
6140 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6141 lt_cv_deplibs_check_method=pass_all
6144 sysv4 | sysv4.3*)
6145 case $host_vendor in
6146 motorola)
6147 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]'
6148 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6150 ncr)
6151 lt_cv_deplibs_check_method=pass_all
6153 sequent)
6154 lt_cv_file_magic_cmd='/bin/file'
6155 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6157 sni)
6158 lt_cv_file_magic_cmd='/bin/file'
6159 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6160 lt_cv_file_magic_test_file=/lib/libc.so
6162 siemens)
6163 lt_cv_deplibs_check_method=pass_all
6166 lt_cv_deplibs_check_method=pass_all
6168 esac
6171 tpf*)
6172 lt_cv_deplibs_check_method=pass_all
6174 esac
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6178 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6179 file_magic_cmd=$lt_cv_file_magic_cmd
6180 deplibs_check_method=$lt_cv_deplibs_check_method
6181 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6194 if test -n "$ac_tool_prefix"; then
6195 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6196 set dummy ${ac_tool_prefix}ar; ac_word=$2
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6198 $as_echo_n "checking for $ac_word... " >&6; }
6199 if ${ac_cv_prog_AR+:} false; then :
6200 $as_echo_n "(cached) " >&6
6201 else
6202 if test -n "$AR"; then
6203 ac_cv_prog_AR="$AR" # Let the user override the test.
6204 else
6205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206 for as_dir in $PATH
6208 IFS=$as_save_IFS
6209 test -z "$as_dir" && as_dir=.
6210 for ac_exec_ext in '' $ac_executable_extensions; do
6211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6212 ac_cv_prog_AR="${ac_tool_prefix}ar"
6213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6214 break 2
6216 done
6217 done
6218 IFS=$as_save_IFS
6222 AR=$ac_cv_prog_AR
6223 if test -n "$AR"; then
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6225 $as_echo "$AR" >&6; }
6226 else
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6228 $as_echo "no" >&6; }
6233 if test -z "$ac_cv_prog_AR"; then
6234 ac_ct_AR=$AR
6235 # Extract the first word of "ar", so it can be a program name with args.
6236 set dummy ar; ac_word=$2
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6238 $as_echo_n "checking for $ac_word... " >&6; }
6239 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6240 $as_echo_n "(cached) " >&6
6241 else
6242 if test -n "$ac_ct_AR"; then
6243 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6244 else
6245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246 for as_dir in $PATH
6248 IFS=$as_save_IFS
6249 test -z "$as_dir" && as_dir=.
6250 for ac_exec_ext in '' $ac_executable_extensions; do
6251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6252 ac_cv_prog_ac_ct_AR="ar"
6253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6254 break 2
6256 done
6257 done
6258 IFS=$as_save_IFS
6262 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6263 if test -n "$ac_ct_AR"; then
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6265 $as_echo "$ac_ct_AR" >&6; }
6266 else
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6268 $as_echo "no" >&6; }
6271 if test "x$ac_ct_AR" = x; then
6272 AR="false"
6273 else
6274 case $cross_compiling:$ac_tool_warned in
6275 yes:)
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6278 ac_tool_warned=yes ;;
6279 esac
6280 AR=$ac_ct_AR
6282 else
6283 AR="$ac_cv_prog_AR"
6286 test -z "$AR" && AR=ar
6287 test -z "$AR_FLAGS" && AR_FLAGS=cru
6299 if test -n "$ac_tool_prefix"; then
6300 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6301 set dummy ${ac_tool_prefix}strip; ac_word=$2
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6303 $as_echo_n "checking for $ac_word... " >&6; }
6304 if ${ac_cv_prog_STRIP+:} false; then :
6305 $as_echo_n "(cached) " >&6
6306 else
6307 if test -n "$STRIP"; then
6308 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6309 else
6310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311 for as_dir in $PATH
6313 IFS=$as_save_IFS
6314 test -z "$as_dir" && as_dir=.
6315 for ac_exec_ext in '' $ac_executable_extensions; do
6316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6317 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6319 break 2
6321 done
6322 done
6323 IFS=$as_save_IFS
6327 STRIP=$ac_cv_prog_STRIP
6328 if test -n "$STRIP"; then
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6330 $as_echo "$STRIP" >&6; }
6331 else
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6333 $as_echo "no" >&6; }
6338 if test -z "$ac_cv_prog_STRIP"; then
6339 ac_ct_STRIP=$STRIP
6340 # Extract the first word of "strip", so it can be a program name with args.
6341 set dummy strip; ac_word=$2
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6343 $as_echo_n "checking for $ac_word... " >&6; }
6344 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6345 $as_echo_n "(cached) " >&6
6346 else
6347 if test -n "$ac_ct_STRIP"; then
6348 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6349 else
6350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351 for as_dir in $PATH
6353 IFS=$as_save_IFS
6354 test -z "$as_dir" && as_dir=.
6355 for ac_exec_ext in '' $ac_executable_extensions; do
6356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6357 ac_cv_prog_ac_ct_STRIP="strip"
6358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6359 break 2
6361 done
6362 done
6363 IFS=$as_save_IFS
6367 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6368 if test -n "$ac_ct_STRIP"; then
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6370 $as_echo "$ac_ct_STRIP" >&6; }
6371 else
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6373 $as_echo "no" >&6; }
6376 if test "x$ac_ct_STRIP" = x; then
6377 STRIP=":"
6378 else
6379 case $cross_compiling:$ac_tool_warned in
6380 yes:)
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6383 ac_tool_warned=yes ;;
6384 esac
6385 STRIP=$ac_ct_STRIP
6387 else
6388 STRIP="$ac_cv_prog_STRIP"
6391 test -z "$STRIP" && STRIP=:
6398 if test -n "$ac_tool_prefix"; then
6399 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6400 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6402 $as_echo_n "checking for $ac_word... " >&6; }
6403 if ${ac_cv_prog_RANLIB+:} false; then :
6404 $as_echo_n "(cached) " >&6
6405 else
6406 if test -n "$RANLIB"; then
6407 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6408 else
6409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6410 for as_dir in $PATH
6412 IFS=$as_save_IFS
6413 test -z "$as_dir" && as_dir=.
6414 for ac_exec_ext in '' $ac_executable_extensions; do
6415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6416 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6418 break 2
6420 done
6421 done
6422 IFS=$as_save_IFS
6426 RANLIB=$ac_cv_prog_RANLIB
6427 if test -n "$RANLIB"; then
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6429 $as_echo "$RANLIB" >&6; }
6430 else
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6432 $as_echo "no" >&6; }
6437 if test -z "$ac_cv_prog_RANLIB"; then
6438 ac_ct_RANLIB=$RANLIB
6439 # Extract the first word of "ranlib", so it can be a program name with args.
6440 set dummy ranlib; ac_word=$2
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6442 $as_echo_n "checking for $ac_word... " >&6; }
6443 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6444 $as_echo_n "(cached) " >&6
6445 else
6446 if test -n "$ac_ct_RANLIB"; then
6447 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6448 else
6449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450 for as_dir in $PATH
6452 IFS=$as_save_IFS
6453 test -z "$as_dir" && as_dir=.
6454 for ac_exec_ext in '' $ac_executable_extensions; do
6455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6456 ac_cv_prog_ac_ct_RANLIB="ranlib"
6457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6458 break 2
6460 done
6461 done
6462 IFS=$as_save_IFS
6466 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6467 if test -n "$ac_ct_RANLIB"; then
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6469 $as_echo "$ac_ct_RANLIB" >&6; }
6470 else
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6472 $as_echo "no" >&6; }
6475 if test "x$ac_ct_RANLIB" = x; then
6476 RANLIB=":"
6477 else
6478 case $cross_compiling:$ac_tool_warned in
6479 yes:)
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6482 ac_tool_warned=yes ;;
6483 esac
6484 RANLIB=$ac_ct_RANLIB
6486 else
6487 RANLIB="$ac_cv_prog_RANLIB"
6490 test -z "$RANLIB" && RANLIB=:
6497 # Determine commands to create old-style static archives.
6498 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6499 old_postinstall_cmds='chmod 644 $oldlib'
6500 old_postuninstall_cmds=
6502 if test -n "$RANLIB"; then
6503 case $host_os in
6504 openbsd*)
6505 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6508 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6510 esac
6511 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6514 case $host_os in
6515 darwin*)
6516 lock_old_archive_extraction=yes ;;
6518 lock_old_archive_extraction=no ;;
6519 esac
6559 # If no C compiler was specified, use CC.
6560 LTCC=${LTCC-"$CC"}
6562 # If no C compiler flags were specified, use CFLAGS.
6563 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6565 # Allow CC to be a program name with arguments.
6566 compiler=$CC
6569 # Check for command to grab the raw symbol name followed by C symbol from nm.
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6571 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6572 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6573 $as_echo_n "(cached) " >&6
6574 else
6576 # These are sane defaults that work on at least a few old systems.
6577 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6579 # Character class describing NM global symbol codes.
6580 symcode='[BCDEGRST]'
6582 # Regexp to match symbols that can be accessed directly from C.
6583 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6585 # Define system-specific variables.
6586 case $host_os in
6587 aix*)
6588 symcode='[BCDT]'
6590 cygwin* | mingw* | pw32* | cegcc*)
6591 symcode='[ABCDGISTW]'
6593 hpux*)
6594 if test "$host_cpu" = ia64; then
6595 symcode='[ABCDEGRST]'
6598 irix* | nonstopux*)
6599 symcode='[BCDEGRST]'
6601 osf*)
6602 symcode='[BCDEGQRST]'
6604 solaris*)
6605 symcode='[BDRT]'
6607 sco3.2v5*)
6608 symcode='[DT]'
6610 sysv4.2uw2*)
6611 symcode='[DT]'
6613 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6614 symcode='[ABDT]'
6616 sysv4)
6617 symcode='[DFNSTU]'
6619 esac
6621 # If we're using GNU nm, then use its standard symbol codes.
6622 case `$NM -V 2>&1` in
6623 *GNU* | *'with BFD'*)
6624 symcode='[ABCDGIRSTW]' ;;
6625 esac
6627 # Transform an extracted symbol line into a proper C declaration.
6628 # Some systems (esp. on ia64) link data and code symbols differently,
6629 # so use this general approach.
6630 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6632 # Transform an extracted symbol line into symbol name and symbol address
6633 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6634 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'"
6636 # Handle CRLF in mingw tool chain
6637 opt_cr=
6638 case $build_os in
6639 mingw*)
6640 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6642 esac
6644 # Try without a prefix underscore, then with it.
6645 for ac_symprfx in "" "_"; do
6647 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6648 symxfrm="\\1 $ac_symprfx\\2 \\2"
6650 # Write the raw and C identifiers.
6651 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6652 # Fake it for dumpbin and say T for any non-static function
6653 # and D for any global variable.
6654 # Also find C++ and __fastcall symbols from MSVC++,
6655 # which start with @ or ?.
6656 lt_cv_sys_global_symbol_pipe="$AWK '"\
6657 " {last_section=section; section=\$ 3};"\
6658 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6659 " \$ 0!~/External *\|/{next};"\
6660 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6661 " {if(hide[section]) next};"\
6662 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6663 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6664 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6665 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6666 " ' prfx=^$ac_symprfx"
6667 else
6668 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6671 # Check to see that the pipe works correctly.
6672 pipe_works=no
6674 rm -f conftest*
6675 cat > conftest.$ac_ext <<_LT_EOF
6676 #ifdef __cplusplus
6677 extern "C" {
6678 #endif
6679 char nm_test_var;
6680 void nm_test_func(void);
6681 void nm_test_func(void){}
6682 #ifdef __cplusplus
6684 #endif
6685 int main(){nm_test_var='a';nm_test_func();return(0);}
6686 _LT_EOF
6688 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6689 (eval $ac_compile) 2>&5
6690 ac_status=$?
6691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6692 test $ac_status = 0; }; then
6693 # Now try to grab the symbols.
6694 nlist=conftest.nm
6695 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6696 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6697 ac_status=$?
6698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6699 test $ac_status = 0; } && test -s "$nlist"; then
6700 # Try sorting and uniquifying the output.
6701 if sort "$nlist" | uniq > "$nlist"T; then
6702 mv -f "$nlist"T "$nlist"
6703 else
6704 rm -f "$nlist"T
6707 # Make sure that we snagged all the symbols we need.
6708 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6709 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6710 cat <<_LT_EOF > conftest.$ac_ext
6711 #ifdef __cplusplus
6712 extern "C" {
6713 #endif
6715 _LT_EOF
6716 # Now generate the symbol file.
6717 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6719 cat <<_LT_EOF >> conftest.$ac_ext
6721 /* The mapping between symbol names and symbols. */
6722 const struct {
6723 const char *name;
6724 void *address;
6726 lt__PROGRAM__LTX_preloaded_symbols[] =
6728 { "@PROGRAM@", (void *) 0 },
6729 _LT_EOF
6730 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6731 cat <<\_LT_EOF >> conftest.$ac_ext
6732 {0, (void *) 0}
6735 /* This works around a problem in FreeBSD linker */
6736 #ifdef FREEBSD_WORKAROUND
6737 static const void *lt_preloaded_setup() {
6738 return lt__PROGRAM__LTX_preloaded_symbols;
6740 #endif
6742 #ifdef __cplusplus
6744 #endif
6745 _LT_EOF
6746 # Now try linking the two files.
6747 mv conftest.$ac_objext conftstm.$ac_objext
6748 lt_save_LIBS="$LIBS"
6749 lt_save_CFLAGS="$CFLAGS"
6750 LIBS="conftstm.$ac_objext"
6751 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6752 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6753 (eval $ac_link) 2>&5
6754 ac_status=$?
6755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6756 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6757 pipe_works=yes
6759 LIBS="$lt_save_LIBS"
6760 CFLAGS="$lt_save_CFLAGS"
6761 else
6762 echo "cannot find nm_test_func in $nlist" >&5
6764 else
6765 echo "cannot find nm_test_var in $nlist" >&5
6767 else
6768 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6770 else
6771 echo "$progname: failed program was:" >&5
6772 cat conftest.$ac_ext >&5
6774 rm -rf conftest* conftst*
6776 # Do not use the global_symbol_pipe unless it works.
6777 if test "$pipe_works" = yes; then
6778 break
6779 else
6780 lt_cv_sys_global_symbol_pipe=
6782 done
6786 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6787 lt_cv_sys_global_symbol_to_cdecl=
6789 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6791 $as_echo "failed" >&6; }
6792 else
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6794 $as_echo "ok" >&6; }
6819 # Check whether --enable-libtool-lock was given.
6820 if test "${enable_libtool_lock+set}" = set; then :
6821 enableval=$enable_libtool_lock;
6824 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6826 # Some flags need to be propagated to the compiler or linker for good
6827 # libtool support.
6828 case $host in
6829 ia64-*-hpux*)
6830 # Find out which ABI we are using.
6831 echo 'int i;' > conftest.$ac_ext
6832 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6833 (eval $ac_compile) 2>&5
6834 ac_status=$?
6835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6836 test $ac_status = 0; }; then
6837 case `/usr/bin/file conftest.$ac_objext` in
6838 *ELF-32*)
6839 HPUX_IA64_MODE="32"
6841 *ELF-64*)
6842 HPUX_IA64_MODE="64"
6844 esac
6846 rm -rf conftest*
6848 *-*-irix6*)
6849 # Find out which ABI we are using.
6850 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6851 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6852 (eval $ac_compile) 2>&5
6853 ac_status=$?
6854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6855 test $ac_status = 0; }; then
6856 if test "$lt_cv_prog_gnu_ld" = yes; then
6857 case `/usr/bin/file conftest.$ac_objext` in
6858 *32-bit*)
6859 LD="${LD-ld} -melf32bsmip"
6861 *N32*)
6862 LD="${LD-ld} -melf32bmipn32"
6864 *64-bit*)
6865 LD="${LD-ld} -melf64bmip"
6867 esac
6868 else
6869 case `/usr/bin/file conftest.$ac_objext` in
6870 *32-bit*)
6871 LD="${LD-ld} -32"
6873 *N32*)
6874 LD="${LD-ld} -n32"
6876 *64-bit*)
6877 LD="${LD-ld} -64"
6879 esac
6882 rm -rf conftest*
6885 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6886 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6887 # Find out which ABI we are using.
6888 echo 'int i;' > conftest.$ac_ext
6889 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6890 (eval $ac_compile) 2>&5
6891 ac_status=$?
6892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6893 test $ac_status = 0; }; then
6894 case `/usr/bin/file conftest.o` in
6895 *32-bit*)
6896 case $host in
6897 x86_64-*kfreebsd*-gnu)
6898 LD="${LD-ld} -m elf_i386_fbsd"
6900 x86_64-*linux*)
6901 case `/usr/bin/file conftest.o` in
6902 *x86-64*)
6903 LD="${LD-ld} -m elf32_x86_64"
6906 LD="${LD-ld} -m elf_i386"
6908 esac
6910 powerpc64le-*linux*)
6911 LD="${LD-ld} -m elf32lppclinux"
6913 powerpc64-*linux*)
6914 LD="${LD-ld} -m elf32ppclinux"
6916 s390x-*linux*)
6917 LD="${LD-ld} -m elf_s390"
6919 sparc64-*linux*)
6920 LD="${LD-ld} -m elf32_sparc"
6922 esac
6924 *64-bit*)
6925 case $host in
6926 x86_64-*kfreebsd*-gnu)
6927 LD="${LD-ld} -m elf_x86_64_fbsd"
6929 x86_64-*linux*)
6930 LD="${LD-ld} -m elf_x86_64"
6932 powerpcle-*linux*)
6933 LD="${LD-ld} -m elf64lppc"
6935 powerpc-*linux*)
6936 LD="${LD-ld} -m elf64ppc"
6938 s390*-*linux*|s390*-*tpf*)
6939 LD="${LD-ld} -m elf64_s390"
6941 sparc*-*linux*)
6942 LD="${LD-ld} -m elf64_sparc"
6944 esac
6946 esac
6948 rm -rf conftest*
6951 *-*-sco3.2v5*)
6952 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6953 SAVE_CFLAGS="$CFLAGS"
6954 CFLAGS="$CFLAGS -belf"
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6956 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6957 if ${lt_cv_cc_needs_belf+:} false; then :
6958 $as_echo_n "(cached) " >&6
6959 else
6960 ac_ext=c
6961 ac_cpp='$CPP $CPPFLAGS'
6962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6967 /* end confdefs.h. */
6970 main ()
6974 return 0;
6976 _ACEOF
6977 if ac_fn_c_try_link "$LINENO"; then :
6978 lt_cv_cc_needs_belf=yes
6979 else
6980 lt_cv_cc_needs_belf=no
6982 rm -f core conftest.err conftest.$ac_objext \
6983 conftest$ac_exeext conftest.$ac_ext
6984 ac_ext=c
6985 ac_cpp='$CPP $CPPFLAGS'
6986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6992 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6993 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6994 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6995 CFLAGS="$SAVE_CFLAGS"
6998 sparc*-*solaris*)
6999 # Find out which ABI we are using.
7000 echo 'int i;' > conftest.$ac_ext
7001 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7002 (eval $ac_compile) 2>&5
7003 ac_status=$?
7004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7005 test $ac_status = 0; }; then
7006 case `/usr/bin/file conftest.o` in
7007 *64-bit*)
7008 case $lt_cv_prog_gnu_ld in
7009 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7011 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7012 LD="${LD-ld} -64"
7015 esac
7017 esac
7019 rm -rf conftest*
7021 esac
7023 need_locks="$enable_libtool_lock"
7026 case $host_os in
7027 rhapsody* | darwin*)
7028 if test -n "$ac_tool_prefix"; then
7029 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7030 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7032 $as_echo_n "checking for $ac_word... " >&6; }
7033 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7034 $as_echo_n "(cached) " >&6
7035 else
7036 if test -n "$DSYMUTIL"; then
7037 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7038 else
7039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040 for as_dir in $PATH
7042 IFS=$as_save_IFS
7043 test -z "$as_dir" && as_dir=.
7044 for ac_exec_ext in '' $ac_executable_extensions; do
7045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7046 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7048 break 2
7050 done
7051 done
7052 IFS=$as_save_IFS
7056 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7057 if test -n "$DSYMUTIL"; then
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7059 $as_echo "$DSYMUTIL" >&6; }
7060 else
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7062 $as_echo "no" >&6; }
7067 if test -z "$ac_cv_prog_DSYMUTIL"; then
7068 ac_ct_DSYMUTIL=$DSYMUTIL
7069 # Extract the first word of "dsymutil", so it can be a program name with args.
7070 set dummy dsymutil; ac_word=$2
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7072 $as_echo_n "checking for $ac_word... " >&6; }
7073 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7074 $as_echo_n "(cached) " >&6
7075 else
7076 if test -n "$ac_ct_DSYMUTIL"; then
7077 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7078 else
7079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7080 for as_dir in $PATH
7082 IFS=$as_save_IFS
7083 test -z "$as_dir" && as_dir=.
7084 for ac_exec_ext in '' $ac_executable_extensions; do
7085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7086 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7088 break 2
7090 done
7091 done
7092 IFS=$as_save_IFS
7096 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7097 if test -n "$ac_ct_DSYMUTIL"; then
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7099 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7100 else
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7102 $as_echo "no" >&6; }
7105 if test "x$ac_ct_DSYMUTIL" = x; then
7106 DSYMUTIL=":"
7107 else
7108 case $cross_compiling:$ac_tool_warned in
7109 yes:)
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7111 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7112 ac_tool_warned=yes ;;
7113 esac
7114 DSYMUTIL=$ac_ct_DSYMUTIL
7116 else
7117 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7120 if test -n "$ac_tool_prefix"; then
7121 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7122 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7124 $as_echo_n "checking for $ac_word... " >&6; }
7125 if ${ac_cv_prog_NMEDIT+:} false; then :
7126 $as_echo_n "(cached) " >&6
7127 else
7128 if test -n "$NMEDIT"; then
7129 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7130 else
7131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7132 for as_dir in $PATH
7134 IFS=$as_save_IFS
7135 test -z "$as_dir" && as_dir=.
7136 for ac_exec_ext in '' $ac_executable_extensions; do
7137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7138 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7140 break 2
7142 done
7143 done
7144 IFS=$as_save_IFS
7148 NMEDIT=$ac_cv_prog_NMEDIT
7149 if test -n "$NMEDIT"; then
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7151 $as_echo "$NMEDIT" >&6; }
7152 else
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7154 $as_echo "no" >&6; }
7159 if test -z "$ac_cv_prog_NMEDIT"; then
7160 ac_ct_NMEDIT=$NMEDIT
7161 # Extract the first word of "nmedit", so it can be a program name with args.
7162 set dummy nmedit; ac_word=$2
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7164 $as_echo_n "checking for $ac_word... " >&6; }
7165 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7166 $as_echo_n "(cached) " >&6
7167 else
7168 if test -n "$ac_ct_NMEDIT"; then
7169 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7170 else
7171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172 for as_dir in $PATH
7174 IFS=$as_save_IFS
7175 test -z "$as_dir" && as_dir=.
7176 for ac_exec_ext in '' $ac_executable_extensions; do
7177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7178 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7180 break 2
7182 done
7183 done
7184 IFS=$as_save_IFS
7188 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7189 if test -n "$ac_ct_NMEDIT"; then
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7191 $as_echo "$ac_ct_NMEDIT" >&6; }
7192 else
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7194 $as_echo "no" >&6; }
7197 if test "x$ac_ct_NMEDIT" = x; then
7198 NMEDIT=":"
7199 else
7200 case $cross_compiling:$ac_tool_warned in
7201 yes:)
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7204 ac_tool_warned=yes ;;
7205 esac
7206 NMEDIT=$ac_ct_NMEDIT
7208 else
7209 NMEDIT="$ac_cv_prog_NMEDIT"
7212 if test -n "$ac_tool_prefix"; then
7213 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7214 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7216 $as_echo_n "checking for $ac_word... " >&6; }
7217 if ${ac_cv_prog_LIPO+:} false; then :
7218 $as_echo_n "(cached) " >&6
7219 else
7220 if test -n "$LIPO"; then
7221 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7222 else
7223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7224 for as_dir in $PATH
7226 IFS=$as_save_IFS
7227 test -z "$as_dir" && as_dir=.
7228 for ac_exec_ext in '' $ac_executable_extensions; do
7229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7230 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7232 break 2
7234 done
7235 done
7236 IFS=$as_save_IFS
7240 LIPO=$ac_cv_prog_LIPO
7241 if test -n "$LIPO"; then
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7243 $as_echo "$LIPO" >&6; }
7244 else
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7246 $as_echo "no" >&6; }
7251 if test -z "$ac_cv_prog_LIPO"; then
7252 ac_ct_LIPO=$LIPO
7253 # Extract the first word of "lipo", so it can be a program name with args.
7254 set dummy lipo; ac_word=$2
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7256 $as_echo_n "checking for $ac_word... " >&6; }
7257 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7258 $as_echo_n "(cached) " >&6
7259 else
7260 if test -n "$ac_ct_LIPO"; then
7261 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7262 else
7263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7264 for as_dir in $PATH
7266 IFS=$as_save_IFS
7267 test -z "$as_dir" && as_dir=.
7268 for ac_exec_ext in '' $ac_executable_extensions; do
7269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7270 ac_cv_prog_ac_ct_LIPO="lipo"
7271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7272 break 2
7274 done
7275 done
7276 IFS=$as_save_IFS
7280 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7281 if test -n "$ac_ct_LIPO"; then
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7283 $as_echo "$ac_ct_LIPO" >&6; }
7284 else
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7286 $as_echo "no" >&6; }
7289 if test "x$ac_ct_LIPO" = x; then
7290 LIPO=":"
7291 else
7292 case $cross_compiling:$ac_tool_warned in
7293 yes:)
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7296 ac_tool_warned=yes ;;
7297 esac
7298 LIPO=$ac_ct_LIPO
7300 else
7301 LIPO="$ac_cv_prog_LIPO"
7304 if test -n "$ac_tool_prefix"; then
7305 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7306 set dummy ${ac_tool_prefix}otool; ac_word=$2
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7308 $as_echo_n "checking for $ac_word... " >&6; }
7309 if ${ac_cv_prog_OTOOL+:} false; then :
7310 $as_echo_n "(cached) " >&6
7311 else
7312 if test -n "$OTOOL"; then
7313 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7314 else
7315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316 for as_dir in $PATH
7318 IFS=$as_save_IFS
7319 test -z "$as_dir" && as_dir=.
7320 for ac_exec_ext in '' $ac_executable_extensions; do
7321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7322 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7324 break 2
7326 done
7327 done
7328 IFS=$as_save_IFS
7332 OTOOL=$ac_cv_prog_OTOOL
7333 if test -n "$OTOOL"; then
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7335 $as_echo "$OTOOL" >&6; }
7336 else
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7338 $as_echo "no" >&6; }
7343 if test -z "$ac_cv_prog_OTOOL"; then
7344 ac_ct_OTOOL=$OTOOL
7345 # Extract the first word of "otool", so it can be a program name with args.
7346 set dummy otool; ac_word=$2
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7348 $as_echo_n "checking for $ac_word... " >&6; }
7349 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7350 $as_echo_n "(cached) " >&6
7351 else
7352 if test -n "$ac_ct_OTOOL"; then
7353 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7354 else
7355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356 for as_dir in $PATH
7358 IFS=$as_save_IFS
7359 test -z "$as_dir" && as_dir=.
7360 for ac_exec_ext in '' $ac_executable_extensions; do
7361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7362 ac_cv_prog_ac_ct_OTOOL="otool"
7363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7364 break 2
7366 done
7367 done
7368 IFS=$as_save_IFS
7372 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7373 if test -n "$ac_ct_OTOOL"; then
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7375 $as_echo "$ac_ct_OTOOL" >&6; }
7376 else
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7378 $as_echo "no" >&6; }
7381 if test "x$ac_ct_OTOOL" = x; then
7382 OTOOL=":"
7383 else
7384 case $cross_compiling:$ac_tool_warned in
7385 yes:)
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7388 ac_tool_warned=yes ;;
7389 esac
7390 OTOOL=$ac_ct_OTOOL
7392 else
7393 OTOOL="$ac_cv_prog_OTOOL"
7396 if test -n "$ac_tool_prefix"; then
7397 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7398 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7400 $as_echo_n "checking for $ac_word... " >&6; }
7401 if ${ac_cv_prog_OTOOL64+:} false; then :
7402 $as_echo_n "(cached) " >&6
7403 else
7404 if test -n "$OTOOL64"; then
7405 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7406 else
7407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7408 for as_dir in $PATH
7410 IFS=$as_save_IFS
7411 test -z "$as_dir" && as_dir=.
7412 for ac_exec_ext in '' $ac_executable_extensions; do
7413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7414 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7416 break 2
7418 done
7419 done
7420 IFS=$as_save_IFS
7424 OTOOL64=$ac_cv_prog_OTOOL64
7425 if test -n "$OTOOL64"; then
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7427 $as_echo "$OTOOL64" >&6; }
7428 else
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7430 $as_echo "no" >&6; }
7435 if test -z "$ac_cv_prog_OTOOL64"; then
7436 ac_ct_OTOOL64=$OTOOL64
7437 # Extract the first word of "otool64", so it can be a program name with args.
7438 set dummy otool64; ac_word=$2
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7440 $as_echo_n "checking for $ac_word... " >&6; }
7441 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7442 $as_echo_n "(cached) " >&6
7443 else
7444 if test -n "$ac_ct_OTOOL64"; then
7445 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7446 else
7447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7448 for as_dir in $PATH
7450 IFS=$as_save_IFS
7451 test -z "$as_dir" && as_dir=.
7452 for ac_exec_ext in '' $ac_executable_extensions; do
7453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7454 ac_cv_prog_ac_ct_OTOOL64="otool64"
7455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7456 break 2
7458 done
7459 done
7460 IFS=$as_save_IFS
7464 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7465 if test -n "$ac_ct_OTOOL64"; then
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7467 $as_echo "$ac_ct_OTOOL64" >&6; }
7468 else
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7470 $as_echo "no" >&6; }
7473 if test "x$ac_ct_OTOOL64" = x; then
7474 OTOOL64=":"
7475 else
7476 case $cross_compiling:$ac_tool_warned in
7477 yes:)
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7479 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7480 ac_tool_warned=yes ;;
7481 esac
7482 OTOOL64=$ac_ct_OTOOL64
7484 else
7485 OTOOL64="$ac_cv_prog_OTOOL64"
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7515 $as_echo_n "checking for -single_module linker flag... " >&6; }
7516 if ${lt_cv_apple_cc_single_mod+:} false; then :
7517 $as_echo_n "(cached) " >&6
7518 else
7519 lt_cv_apple_cc_single_mod=no
7520 if test -z "${LT_MULTI_MODULE}"; then
7521 # By default we will add the -single_module flag. You can override
7522 # by either setting the environment variable LT_MULTI_MODULE
7523 # non-empty at configure time, or by adding -multi_module to the
7524 # link flags.
7525 rm -rf libconftest.dylib*
7526 echo "int foo(void){return 1;}" > conftest.c
7527 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7528 -dynamiclib -Wl,-single_module conftest.c" >&5
7529 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7530 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7531 _lt_result=$?
7532 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7533 lt_cv_apple_cc_single_mod=yes
7534 else
7535 cat conftest.err >&5
7537 rm -rf libconftest.dylib*
7538 rm -f conftest.*
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7542 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7544 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7545 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7546 $as_echo_n "(cached) " >&6
7547 else
7548 lt_cv_ld_exported_symbols_list=no
7549 save_LDFLAGS=$LDFLAGS
7550 echo "_main" > conftest.sym
7551 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7553 /* end confdefs.h. */
7556 main ()
7560 return 0;
7562 _ACEOF
7563 if ac_fn_c_try_link "$LINENO"; then :
7564 lt_cv_ld_exported_symbols_list=yes
7565 else
7566 lt_cv_ld_exported_symbols_list=no
7568 rm -f core conftest.err conftest.$ac_objext \
7569 conftest$ac_exeext conftest.$ac_ext
7570 LDFLAGS="$save_LDFLAGS"
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7574 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7576 $as_echo_n "checking for -force_load linker flag... " >&6; }
7577 if ${lt_cv_ld_force_load+:} false; then :
7578 $as_echo_n "(cached) " >&6
7579 else
7580 lt_cv_ld_force_load=no
7581 cat > conftest.c << _LT_EOF
7582 int forced_loaded() { return 2;}
7583 _LT_EOF
7584 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7585 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7586 echo "$AR cru libconftest.a conftest.o" >&5
7587 $AR cru libconftest.a conftest.o 2>&5
7588 cat > conftest.c << _LT_EOF
7589 int main() { return 0;}
7590 _LT_EOF
7591 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7592 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7593 _lt_result=$?
7594 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7595 lt_cv_ld_force_load=yes
7596 else
7597 cat conftest.err >&5
7599 rm -f conftest.err libconftest.a conftest conftest.c
7600 rm -rf conftest.dSYM
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7604 $as_echo "$lt_cv_ld_force_load" >&6; }
7605 case $host_os in
7606 rhapsody* | darwin1.[012])
7607 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7608 darwin1.*)
7609 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7610 darwin*) # darwin 5.x on
7611 # if running on 10.5 or later, the deployment target defaults
7612 # to the OS version, if on x86, and 10.4, the deployment
7613 # target defaults to 10.4. Don't you love it?
7614 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7615 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7616 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7617 10.[012][,.]*)
7618 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7619 10.*)
7620 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7621 esac
7623 esac
7624 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7625 _lt_dar_single_mod='$single_module'
7627 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7628 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7629 else
7630 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7632 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7633 _lt_dsymutil='~$DSYMUTIL $lib || :'
7634 else
7635 _lt_dsymutil=
7638 esac
7640 ac_ext=c
7641 ac_cpp='$CPP $CPPFLAGS'
7642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7646 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7647 # On Suns, sometimes $CPP names a directory.
7648 if test -n "$CPP" && test -d "$CPP"; then
7649 CPP=
7651 if test -z "$CPP"; then
7652 if ${ac_cv_prog_CPP+:} false; then :
7653 $as_echo_n "(cached) " >&6
7654 else
7655 # Double quotes because CPP needs to be expanded
7656 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7658 ac_preproc_ok=false
7659 for ac_c_preproc_warn_flag in '' yes
7661 # Use a header file that comes with gcc, so configuring glibc
7662 # with a fresh cross-compiler works.
7663 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7664 # <limits.h> exists even on freestanding compilers.
7665 # On the NeXT, cc -E runs the code through the compiler's parser,
7666 # not just through cpp. "Syntax error" is here to catch this case.
7667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7668 /* end confdefs.h. */
7669 #ifdef __STDC__
7670 # include <limits.h>
7671 #else
7672 # include <assert.h>
7673 #endif
7674 Syntax error
7675 _ACEOF
7676 if ac_fn_c_try_cpp "$LINENO"; then :
7678 else
7679 # Broken: fails on valid input.
7680 continue
7682 rm -f conftest.err conftest.i conftest.$ac_ext
7684 # OK, works on sane cases. Now check whether nonexistent headers
7685 # can be detected and how.
7686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7687 /* end confdefs.h. */
7688 #include <ac_nonexistent.h>
7689 _ACEOF
7690 if ac_fn_c_try_cpp "$LINENO"; then :
7691 # Broken: success on invalid input.
7692 continue
7693 else
7694 # Passes both tests.
7695 ac_preproc_ok=:
7696 break
7698 rm -f conftest.err conftest.i conftest.$ac_ext
7700 done
7701 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7702 rm -f conftest.i conftest.err conftest.$ac_ext
7703 if $ac_preproc_ok; then :
7704 break
7707 done
7708 ac_cv_prog_CPP=$CPP
7711 CPP=$ac_cv_prog_CPP
7712 else
7713 ac_cv_prog_CPP=$CPP
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7716 $as_echo "$CPP" >&6; }
7717 ac_preproc_ok=false
7718 for ac_c_preproc_warn_flag in '' yes
7720 # Use a header file that comes with gcc, so configuring glibc
7721 # with a fresh cross-compiler works.
7722 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7723 # <limits.h> exists even on freestanding compilers.
7724 # On the NeXT, cc -E runs the code through the compiler's parser,
7725 # not just through cpp. "Syntax error" is here to catch this case.
7726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7727 /* end confdefs.h. */
7728 #ifdef __STDC__
7729 # include <limits.h>
7730 #else
7731 # include <assert.h>
7732 #endif
7733 Syntax error
7734 _ACEOF
7735 if ac_fn_c_try_cpp "$LINENO"; then :
7737 else
7738 # Broken: fails on valid input.
7739 continue
7741 rm -f conftest.err conftest.i conftest.$ac_ext
7743 # OK, works on sane cases. Now check whether nonexistent headers
7744 # can be detected and how.
7745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7746 /* end confdefs.h. */
7747 #include <ac_nonexistent.h>
7748 _ACEOF
7749 if ac_fn_c_try_cpp "$LINENO"; then :
7750 # Broken: success on invalid input.
7751 continue
7752 else
7753 # Passes both tests.
7754 ac_preproc_ok=:
7755 break
7757 rm -f conftest.err conftest.i conftest.$ac_ext
7759 done
7760 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7761 rm -f conftest.i conftest.err conftest.$ac_ext
7762 if $ac_preproc_ok; then :
7764 else
7765 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7767 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7768 See \`config.log' for more details" "$LINENO" 5; }
7771 ac_ext=c
7772 ac_cpp='$CPP $CPPFLAGS'
7773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7779 $as_echo_n "checking for ANSI C header files... " >&6; }
7780 if ${ac_cv_header_stdc+:} false; then :
7781 $as_echo_n "(cached) " >&6
7782 else
7783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7784 /* end confdefs.h. */
7785 #include <stdlib.h>
7786 #include <stdarg.h>
7787 #include <string.h>
7788 #include <float.h>
7791 main ()
7795 return 0;
7797 _ACEOF
7798 if ac_fn_c_try_compile "$LINENO"; then :
7799 ac_cv_header_stdc=yes
7800 else
7801 ac_cv_header_stdc=no
7803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7805 if test $ac_cv_header_stdc = yes; then
7806 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7808 /* end confdefs.h. */
7809 #include <string.h>
7811 _ACEOF
7812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7813 $EGREP "memchr" >/dev/null 2>&1; then :
7815 else
7816 ac_cv_header_stdc=no
7818 rm -f conftest*
7822 if test $ac_cv_header_stdc = yes; then
7823 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7825 /* end confdefs.h. */
7826 #include <stdlib.h>
7828 _ACEOF
7829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7830 $EGREP "free" >/dev/null 2>&1; then :
7832 else
7833 ac_cv_header_stdc=no
7835 rm -f conftest*
7839 if test $ac_cv_header_stdc = yes; then
7840 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7841 if test "$cross_compiling" = yes; then :
7843 else
7844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7845 /* end confdefs.h. */
7846 #include <ctype.h>
7847 #include <stdlib.h>
7848 #if ((' ' & 0x0FF) == 0x020)
7849 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7850 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7851 #else
7852 # define ISLOWER(c) \
7853 (('a' <= (c) && (c) <= 'i') \
7854 || ('j' <= (c) && (c) <= 'r') \
7855 || ('s' <= (c) && (c) <= 'z'))
7856 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7857 #endif
7859 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7861 main ()
7863 int i;
7864 for (i = 0; i < 256; i++)
7865 if (XOR (islower (i), ISLOWER (i))
7866 || toupper (i) != TOUPPER (i))
7867 return 2;
7868 return 0;
7870 _ACEOF
7871 if ac_fn_c_try_run "$LINENO"; then :
7873 else
7874 ac_cv_header_stdc=no
7876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7877 conftest.$ac_objext conftest.beam conftest.$ac_ext
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7883 $as_echo "$ac_cv_header_stdc" >&6; }
7884 if test $ac_cv_header_stdc = yes; then
7886 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7890 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7891 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7892 inttypes.h stdint.h unistd.h
7893 do :
7894 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7895 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7897 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7898 cat >>confdefs.h <<_ACEOF
7899 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7900 _ACEOF
7904 done
7907 for ac_header in dlfcn.h
7908 do :
7909 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7911 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7912 cat >>confdefs.h <<_ACEOF
7913 #define HAVE_DLFCN_H 1
7914 _ACEOF
7918 done
7920 if test -n "$ac_tool_prefix"; then
7921 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7922 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7924 $as_echo_n "checking for $ac_word... " >&6; }
7925 if ${ac_cv_prog_GOC+:} false; then :
7926 $as_echo_n "(cached) " >&6
7927 else
7928 if test -n "$GOC"; then
7929 ac_cv_prog_GOC="$GOC" # Let the user override the test.
7930 else
7931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7932 for as_dir in $PATH
7934 IFS=$as_save_IFS
7935 test -z "$as_dir" && as_dir=.
7936 for ac_exec_ext in '' $ac_executable_extensions; do
7937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7938 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7940 break 2
7942 done
7943 done
7944 IFS=$as_save_IFS
7948 GOC=$ac_cv_prog_GOC
7949 if test -n "$GOC"; then
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7951 $as_echo "$GOC" >&6; }
7952 else
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7954 $as_echo "no" >&6; }
7959 if test -z "$ac_cv_prog_GOC"; then
7960 ac_ct_GOC=$GOC
7961 # Extract the first word of "gccgo", so it can be a program name with args.
7962 set dummy gccgo; ac_word=$2
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7964 $as_echo_n "checking for $ac_word... " >&6; }
7965 if ${ac_cv_prog_ac_ct_GOC+:} false; then :
7966 $as_echo_n "(cached) " >&6
7967 else
7968 if test -n "$ac_ct_GOC"; then
7969 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7970 else
7971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7972 for as_dir in $PATH
7974 IFS=$as_save_IFS
7975 test -z "$as_dir" && as_dir=.
7976 for ac_exec_ext in '' $ac_executable_extensions; do
7977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7978 ac_cv_prog_ac_ct_GOC="gccgo"
7979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7980 break 2
7982 done
7983 done
7984 IFS=$as_save_IFS
7988 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7989 if test -n "$ac_ct_GOC"; then
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7991 $as_echo "$ac_ct_GOC" >&6; }
7992 else
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7994 $as_echo "no" >&6; }
7997 if test "x$ac_ct_GOC" = x; then
7998 GOC=""
7999 else
8000 case $cross_compiling:$ac_tool_warned in
8001 yes:)
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8003 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8004 ac_tool_warned=yes ;;
8005 esac
8006 GOC=$ac_ct_GOC
8008 else
8009 GOC="$ac_cv_prog_GOC"
8017 # Set options
8022 enable_win32_dll=no
8025 # Check whether --enable-shared was given.
8026 if test "${enable_shared+set}" = set; then :
8027 enableval=$enable_shared; p=${PACKAGE-default}
8028 case $enableval in
8029 yes) enable_shared=yes ;;
8030 no) enable_shared=no ;;
8032 enable_shared=no
8033 # Look at the argument we got. We use all the common list separators.
8034 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8035 for pkg in $enableval; do
8036 IFS="$lt_save_ifs"
8037 if test "X$pkg" = "X$p"; then
8038 enable_shared=yes
8040 done
8041 IFS="$lt_save_ifs"
8043 esac
8044 else
8045 enable_shared=yes
8056 # Check whether --enable-static was given.
8057 if test "${enable_static+set}" = set; then :
8058 enableval=$enable_static; p=${PACKAGE-default}
8059 case $enableval in
8060 yes) enable_static=yes ;;
8061 no) enable_static=no ;;
8063 enable_static=no
8064 # Look at the argument we got. We use all the common list separators.
8065 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8066 for pkg in $enableval; do
8067 IFS="$lt_save_ifs"
8068 if test "X$pkg" = "X$p"; then
8069 enable_static=yes
8071 done
8072 IFS="$lt_save_ifs"
8074 esac
8075 else
8076 enable_static=yes
8088 # Check whether --with-pic was given.
8089 if test "${with_pic+set}" = set; then :
8090 withval=$with_pic; pic_mode="$withval"
8091 else
8092 pic_mode=default
8096 test -z "$pic_mode" && pic_mode=default
8104 # Check whether --enable-fast-install was given.
8105 if test "${enable_fast_install+set}" = set; then :
8106 enableval=$enable_fast_install; p=${PACKAGE-default}
8107 case $enableval in
8108 yes) enable_fast_install=yes ;;
8109 no) enable_fast_install=no ;;
8111 enable_fast_install=no
8112 # Look at the argument we got. We use all the common list separators.
8113 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8114 for pkg in $enableval; do
8115 IFS="$lt_save_ifs"
8116 if test "X$pkg" = "X$p"; then
8117 enable_fast_install=yes
8119 done
8120 IFS="$lt_save_ifs"
8122 esac
8123 else
8124 enable_fast_install=yes
8137 # This can be used to rebuild libtool when needed
8138 LIBTOOL_DEPS="$ltmain"
8140 # Always use our own libtool.
8141 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8168 test -z "$LN_S" && LN_S="ln -s"
8183 if test -n "${ZSH_VERSION+set}" ; then
8184 setopt NO_GLOB_SUBST
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8188 $as_echo_n "checking for objdir... " >&6; }
8189 if ${lt_cv_objdir+:} false; then :
8190 $as_echo_n "(cached) " >&6
8191 else
8192 rm -f .libs 2>/dev/null
8193 mkdir .libs 2>/dev/null
8194 if test -d .libs; then
8195 lt_cv_objdir=.libs
8196 else
8197 # MS-DOS does not allow filenames that begin with a dot.
8198 lt_cv_objdir=_libs
8200 rmdir .libs 2>/dev/null
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8203 $as_echo "$lt_cv_objdir" >&6; }
8204 objdir=$lt_cv_objdir
8210 cat >>confdefs.h <<_ACEOF
8211 #define LT_OBJDIR "$lt_cv_objdir/"
8212 _ACEOF
8217 case $host_os in
8218 aix3*)
8219 # AIX sometimes has problems with the GCC collect2 program. For some
8220 # reason, if we set the COLLECT_NAMES environment variable, the problems
8221 # vanish in a puff of smoke.
8222 if test "X${COLLECT_NAMES+set}" != Xset; then
8223 COLLECT_NAMES=
8224 export COLLECT_NAMES
8227 esac
8229 # Global variables:
8230 ofile=libtool
8231 can_build_shared=yes
8233 # All known linkers require a `.a' archive for static linking (except MSVC,
8234 # which needs '.lib').
8235 libext=a
8237 with_gnu_ld="$lt_cv_prog_gnu_ld"
8239 old_CC="$CC"
8240 old_CFLAGS="$CFLAGS"
8242 # Set sane defaults for various variables
8243 test -z "$CC" && CC=cc
8244 test -z "$LTCC" && LTCC=$CC
8245 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8246 test -z "$LD" && LD=ld
8247 test -z "$ac_objext" && ac_objext=o
8249 for cc_temp in $compiler""; do
8250 case $cc_temp in
8251 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8252 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8253 \-*) ;;
8254 *) break;;
8255 esac
8256 done
8257 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8260 # Only perform the check for file, if the check method requires it
8261 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8262 case $deplibs_check_method in
8263 file_magic*)
8264 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8266 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8267 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8268 $as_echo_n "(cached) " >&6
8269 else
8270 case $MAGIC_CMD in
8271 [\\/*] | ?:[\\/]*)
8272 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8275 lt_save_MAGIC_CMD="$MAGIC_CMD"
8276 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8277 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8278 for ac_dir in $ac_dummy; do
8279 IFS="$lt_save_ifs"
8280 test -z "$ac_dir" && ac_dir=.
8281 if test -f $ac_dir/${ac_tool_prefix}file; then
8282 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8283 if test -n "$file_magic_test_file"; then
8284 case $deplibs_check_method in
8285 "file_magic "*)
8286 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8287 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8288 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8289 $EGREP "$file_magic_regex" > /dev/null; then
8291 else
8292 cat <<_LT_EOF 1>&2
8294 *** Warning: the command libtool uses to detect shared libraries,
8295 *** $file_magic_cmd, produces output that libtool cannot recognize.
8296 *** The result is that libtool may fail to recognize shared libraries
8297 *** as such. This will affect the creation of libtool libraries that
8298 *** depend on shared libraries, but programs linked with such libtool
8299 *** libraries will work regardless of this problem. Nevertheless, you
8300 *** may want to report the problem to your system manager and/or to
8301 *** bug-libtool@gnu.org
8303 _LT_EOF
8304 fi ;;
8305 esac
8307 break
8309 done
8310 IFS="$lt_save_ifs"
8311 MAGIC_CMD="$lt_save_MAGIC_CMD"
8313 esac
8316 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8317 if test -n "$MAGIC_CMD"; then
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8319 $as_echo "$MAGIC_CMD" >&6; }
8320 else
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8322 $as_echo "no" >&6; }
8329 if test -z "$lt_cv_path_MAGIC_CMD"; then
8330 if test -n "$ac_tool_prefix"; then
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8332 $as_echo_n "checking for file... " >&6; }
8333 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8334 $as_echo_n "(cached) " >&6
8335 else
8336 case $MAGIC_CMD in
8337 [\\/*] | ?:[\\/]*)
8338 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8341 lt_save_MAGIC_CMD="$MAGIC_CMD"
8342 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8343 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8344 for ac_dir in $ac_dummy; do
8345 IFS="$lt_save_ifs"
8346 test -z "$ac_dir" && ac_dir=.
8347 if test -f $ac_dir/file; then
8348 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8349 if test -n "$file_magic_test_file"; then
8350 case $deplibs_check_method in
8351 "file_magic "*)
8352 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8353 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8354 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8355 $EGREP "$file_magic_regex" > /dev/null; then
8357 else
8358 cat <<_LT_EOF 1>&2
8360 *** Warning: the command libtool uses to detect shared libraries,
8361 *** $file_magic_cmd, produces output that libtool cannot recognize.
8362 *** The result is that libtool may fail to recognize shared libraries
8363 *** as such. This will affect the creation of libtool libraries that
8364 *** depend on shared libraries, but programs linked with such libtool
8365 *** libraries will work regardless of this problem. Nevertheless, you
8366 *** may want to report the problem to your system manager and/or to
8367 *** bug-libtool@gnu.org
8369 _LT_EOF
8370 fi ;;
8371 esac
8373 break
8375 done
8376 IFS="$lt_save_ifs"
8377 MAGIC_CMD="$lt_save_MAGIC_CMD"
8379 esac
8382 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8383 if test -n "$MAGIC_CMD"; then
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8385 $as_echo "$MAGIC_CMD" >&6; }
8386 else
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8388 $as_echo "no" >&6; }
8392 else
8393 MAGIC_CMD=:
8399 esac
8401 # Use C for the default configuration in the libtool script
8403 lt_save_CC="$CC"
8404 ac_ext=c
8405 ac_cpp='$CPP $CPPFLAGS'
8406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8411 # Source file extension for C test sources.
8412 ac_ext=c
8414 # Object file extension for compiled C test sources.
8415 objext=o
8416 objext=$objext
8418 # Code to be used in simple compile tests
8419 lt_simple_compile_test_code="int some_variable = 0;"
8421 # Code to be used in simple link tests
8422 lt_simple_link_test_code='int main(){return(0);}'
8430 # If no C compiler was specified, use CC.
8431 LTCC=${LTCC-"$CC"}
8433 # If no C compiler flags were specified, use CFLAGS.
8434 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8436 # Allow CC to be a program name with arguments.
8437 compiler=$CC
8439 # Save the default compiler, since it gets overwritten when the other
8440 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8441 compiler_DEFAULT=$CC
8443 # save warnings/boilerplate of simple test code
8444 ac_outfile=conftest.$ac_objext
8445 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8446 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8447 _lt_compiler_boilerplate=`cat conftest.err`
8448 $RM conftest*
8450 ac_outfile=conftest.$ac_objext
8451 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8452 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8453 _lt_linker_boilerplate=`cat conftest.err`
8454 $RM -r conftest*
8457 ## CAVEAT EMPTOR:
8458 ## There is no encapsulation within the following macros, do not change
8459 ## the running order or otherwise move them around unless you know exactly
8460 ## what you are doing...
8461 if test -n "$compiler"; then
8463 lt_prog_compiler_no_builtin_flag=
8465 if test "$GCC" = yes; then
8466 case $cc_basename in
8467 nvcc*)
8468 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8470 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8471 esac
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8474 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8475 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8476 $as_echo_n "(cached) " >&6
8477 else
8478 lt_cv_prog_compiler_rtti_exceptions=no
8479 ac_outfile=conftest.$ac_objext
8480 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8481 lt_compiler_flag="-fno-rtti -fno-exceptions"
8482 # Insert the option either (1) after the last *FLAGS variable, or
8483 # (2) before a word containing "conftest.", or (3) at the end.
8484 # Note that $ac_compile itself does not contain backslashes and begins
8485 # with a dollar sign (not a hyphen), so the echo should work correctly.
8486 # The option is referenced via a variable to avoid confusing sed.
8487 lt_compile=`echo "$ac_compile" | $SED \
8488 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8489 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8490 -e 's:$: $lt_compiler_flag:'`
8491 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8492 (eval "$lt_compile" 2>conftest.err)
8493 ac_status=$?
8494 cat conftest.err >&5
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 if (exit $ac_status) && test -s "$ac_outfile"; then
8497 # The compiler can only warn and ignore the option if not recognized
8498 # So say no if there are warnings other than the usual output.
8499 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8500 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8501 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8502 lt_cv_prog_compiler_rtti_exceptions=yes
8505 $RM conftest*
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8509 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8511 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8512 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8513 else
8524 lt_prog_compiler_wl=
8525 lt_prog_compiler_pic=
8526 lt_prog_compiler_static=
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8529 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8531 if test "$GCC" = yes; then
8532 lt_prog_compiler_wl='-Wl,'
8533 lt_prog_compiler_static='-static'
8535 case $host_os in
8536 aix*)
8537 # All AIX code is PIC.
8538 if test "$host_cpu" = ia64; then
8539 # AIX 5 now supports IA64 processor
8540 lt_prog_compiler_static='-Bstatic'
8542 lt_prog_compiler_pic='-fPIC'
8545 amigaos*)
8546 case $host_cpu in
8547 powerpc)
8548 # see comment about AmigaOS4 .so support
8549 lt_prog_compiler_pic='-fPIC'
8551 m68k)
8552 # FIXME: we need at least 68020 code to build shared libraries, but
8553 # adding the `-m68020' flag to GCC prevents building anything better,
8554 # like `-m68040'.
8555 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8557 esac
8560 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8561 # PIC is the default for these OSes.
8564 mingw* | cygwin* | pw32* | os2* | cegcc*)
8565 # This hack is so that the source file can tell whether it is being
8566 # built for inclusion in a dll (and should export symbols for example).
8567 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8568 # (--disable-auto-import) libraries
8569 lt_prog_compiler_pic='-DDLL_EXPORT'
8572 darwin* | rhapsody*)
8573 # PIC is the default on this platform
8574 # Common symbols not allowed in MH_DYLIB files
8575 lt_prog_compiler_pic='-fno-common'
8578 haiku*)
8579 # PIC is the default for Haiku.
8580 # The "-static" flag exists, but is broken.
8581 lt_prog_compiler_static=
8584 hpux*)
8585 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8586 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8587 # sets the default TLS model and affects inlining.
8588 case $host_cpu in
8589 hppa*64*)
8590 # +Z the default
8593 lt_prog_compiler_pic='-fPIC'
8595 esac
8598 interix[3-9]*)
8599 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8600 # Instead, we relocate shared libraries at runtime.
8603 msdosdjgpp*)
8604 # Just because we use GCC doesn't mean we suddenly get shared libraries
8605 # on systems that don't support them.
8606 lt_prog_compiler_can_build_shared=no
8607 enable_shared=no
8610 *nto* | *qnx*)
8611 # QNX uses GNU C++, but need to define -shared option too, otherwise
8612 # it will coredump.
8613 lt_prog_compiler_pic='-fPIC -shared'
8616 sysv4*MP*)
8617 if test -d /usr/nec; then
8618 lt_prog_compiler_pic=-Kconform_pic
8623 lt_prog_compiler_pic='-fPIC'
8625 esac
8627 case $cc_basename in
8628 nvcc*) # Cuda Compiler Driver 2.2
8629 lt_prog_compiler_wl='-Xlinker '
8630 lt_prog_compiler_pic='-Xcompiler -fPIC'
8632 esac
8633 else
8634 # PORTME Check for flag to pass linker flags through the system compiler.
8635 case $host_os in
8636 aix*)
8637 lt_prog_compiler_wl='-Wl,'
8638 if test "$host_cpu" = ia64; then
8639 # AIX 5 now supports IA64 processor
8640 lt_prog_compiler_static='-Bstatic'
8641 else
8642 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8646 mingw* | cygwin* | pw32* | os2* | cegcc*)
8647 # This hack is so that the source file can tell whether it is being
8648 # built for inclusion in a dll (and should export symbols for example).
8649 lt_prog_compiler_pic='-DDLL_EXPORT'
8652 hpux9* | hpux10* | hpux11*)
8653 lt_prog_compiler_wl='-Wl,'
8654 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8655 # not for PA HP-UX.
8656 case $host_cpu in
8657 hppa*64*|ia64*)
8658 # +Z the default
8661 lt_prog_compiler_pic='+Z'
8663 esac
8664 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8665 lt_prog_compiler_static='${wl}-a ${wl}archive'
8668 irix5* | irix6* | nonstopux*)
8669 lt_prog_compiler_wl='-Wl,'
8670 # PIC (with -KPIC) is the default.
8671 lt_prog_compiler_static='-non_shared'
8674 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8675 case $cc_basename in
8676 # old Intel for x86_64 which still supported -KPIC.
8677 ecc*)
8678 lt_prog_compiler_wl='-Wl,'
8679 lt_prog_compiler_pic='-KPIC'
8680 lt_prog_compiler_static='-static'
8682 # icc used to be incompatible with GCC.
8683 # ICC 10 doesn't accept -KPIC any more.
8684 icc* | ifort*)
8685 lt_prog_compiler_wl='-Wl,'
8686 lt_prog_compiler_pic='-fPIC'
8687 lt_prog_compiler_static='-static'
8689 # Lahey Fortran 8.1.
8690 lf95*)
8691 lt_prog_compiler_wl='-Wl,'
8692 lt_prog_compiler_pic='--shared'
8693 lt_prog_compiler_static='--static'
8695 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8696 # Portland Group compilers (*not* the Pentium gcc compiler,
8697 # which looks to be a dead project)
8698 lt_prog_compiler_wl='-Wl,'
8699 lt_prog_compiler_pic='-fpic'
8700 lt_prog_compiler_static='-Bstatic'
8702 ccc*)
8703 lt_prog_compiler_wl='-Wl,'
8704 # All Alpha code is PIC.
8705 lt_prog_compiler_static='-non_shared'
8707 xl* | bgxl* | bgf* | mpixl*)
8708 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8709 lt_prog_compiler_wl='-Wl,'
8710 lt_prog_compiler_pic='-qpic'
8711 lt_prog_compiler_static='-qstaticlink'
8714 case `$CC -V 2>&1 | sed 5q` in
8715 *Sun\ F* | *Sun*Fortran*)
8716 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8717 lt_prog_compiler_pic='-KPIC'
8718 lt_prog_compiler_static='-Bstatic'
8719 lt_prog_compiler_wl=''
8721 *Sun\ C*)
8722 # Sun C 5.9
8723 lt_prog_compiler_pic='-KPIC'
8724 lt_prog_compiler_static='-Bstatic'
8725 lt_prog_compiler_wl='-Wl,'
8727 esac
8729 esac
8732 newsos6)
8733 lt_prog_compiler_pic='-KPIC'
8734 lt_prog_compiler_static='-Bstatic'
8737 *nto* | *qnx*)
8738 # QNX uses GNU C++, but need to define -shared option too, otherwise
8739 # it will coredump.
8740 lt_prog_compiler_pic='-fPIC -shared'
8743 osf3* | osf4* | osf5*)
8744 lt_prog_compiler_wl='-Wl,'
8745 # All OSF/1 code is PIC.
8746 lt_prog_compiler_static='-non_shared'
8749 rdos*)
8750 lt_prog_compiler_static='-non_shared'
8753 solaris*)
8754 lt_prog_compiler_pic='-KPIC'
8755 lt_prog_compiler_static='-Bstatic'
8756 case $cc_basename in
8757 f77* | f90* | f95*)
8758 lt_prog_compiler_wl='-Qoption ld ';;
8760 lt_prog_compiler_wl='-Wl,';;
8761 esac
8764 sunos4*)
8765 lt_prog_compiler_wl='-Qoption ld '
8766 lt_prog_compiler_pic='-PIC'
8767 lt_prog_compiler_static='-Bstatic'
8770 sysv4 | sysv4.2uw2* | sysv4.3*)
8771 lt_prog_compiler_wl='-Wl,'
8772 lt_prog_compiler_pic='-KPIC'
8773 lt_prog_compiler_static='-Bstatic'
8776 sysv4*MP*)
8777 if test -d /usr/nec ;then
8778 lt_prog_compiler_pic='-Kconform_pic'
8779 lt_prog_compiler_static='-Bstatic'
8783 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8784 lt_prog_compiler_wl='-Wl,'
8785 lt_prog_compiler_pic='-KPIC'
8786 lt_prog_compiler_static='-Bstatic'
8789 unicos*)
8790 lt_prog_compiler_wl='-Wl,'
8791 lt_prog_compiler_can_build_shared=no
8794 uts4*)
8795 lt_prog_compiler_pic='-pic'
8796 lt_prog_compiler_static='-Bstatic'
8800 lt_prog_compiler_can_build_shared=no
8802 esac
8805 case $host_os in
8806 # For platforms which do not support PIC, -DPIC is meaningless:
8807 *djgpp*)
8808 lt_prog_compiler_pic=
8811 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8813 esac
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8815 $as_echo "$lt_prog_compiler_pic" >&6; }
8823 # Check to make sure the PIC flag actually works.
8825 if test -n "$lt_prog_compiler_pic"; then
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8827 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8828 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8829 $as_echo_n "(cached) " >&6
8830 else
8831 lt_cv_prog_compiler_pic_works=no
8832 ac_outfile=conftest.$ac_objext
8833 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8834 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8835 # Insert the option either (1) after the last *FLAGS variable, or
8836 # (2) before a word containing "conftest.", or (3) at the end.
8837 # Note that $ac_compile itself does not contain backslashes and begins
8838 # with a dollar sign (not a hyphen), so the echo should work correctly.
8839 # The option is referenced via a variable to avoid confusing sed.
8840 lt_compile=`echo "$ac_compile" | $SED \
8841 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8842 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8843 -e 's:$: $lt_compiler_flag:'`
8844 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8845 (eval "$lt_compile" 2>conftest.err)
8846 ac_status=$?
8847 cat conftest.err >&5
8848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849 if (exit $ac_status) && test -s "$ac_outfile"; then
8850 # The compiler can only warn and ignore the option if not recognized
8851 # So say no if there are warnings other than the usual output.
8852 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8853 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8854 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8855 lt_cv_prog_compiler_pic_works=yes
8858 $RM conftest*
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8862 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8864 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8865 case $lt_prog_compiler_pic in
8866 "" | " "*) ;;
8867 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8868 esac
8869 else
8870 lt_prog_compiler_pic=
8871 lt_prog_compiler_can_build_shared=no
8882 # Check to make sure the static flag actually works.
8884 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8886 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8887 if ${lt_cv_prog_compiler_static_works+:} false; then :
8888 $as_echo_n "(cached) " >&6
8889 else
8890 lt_cv_prog_compiler_static_works=no
8891 save_LDFLAGS="$LDFLAGS"
8892 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8893 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8894 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8895 # The linker can only warn and ignore the option if not recognized
8896 # So say no if there are warnings
8897 if test -s conftest.err; then
8898 # Append any errors to the config.log.
8899 cat conftest.err 1>&5
8900 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8901 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8902 if diff conftest.exp conftest.er2 >/dev/null; then
8903 lt_cv_prog_compiler_static_works=yes
8905 else
8906 lt_cv_prog_compiler_static_works=yes
8909 $RM -r conftest*
8910 LDFLAGS="$save_LDFLAGS"
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8914 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8916 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8918 else
8919 lt_prog_compiler_static=
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8929 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8930 if ${lt_cv_prog_compiler_c_o+:} false; then :
8931 $as_echo_n "(cached) " >&6
8932 else
8933 lt_cv_prog_compiler_c_o=no
8934 $RM -r conftest 2>/dev/null
8935 mkdir conftest
8936 cd conftest
8937 mkdir out
8938 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8940 lt_compiler_flag="-o out/conftest2.$ac_objext"
8941 # Insert the option either (1) after the last *FLAGS variable, or
8942 # (2) before a word containing "conftest.", or (3) at the end.
8943 # Note that $ac_compile itself does not contain backslashes and begins
8944 # with a dollar sign (not a hyphen), so the echo should work correctly.
8945 lt_compile=`echo "$ac_compile" | $SED \
8946 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8947 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8948 -e 's:$: $lt_compiler_flag:'`
8949 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8950 (eval "$lt_compile" 2>out/conftest.err)
8951 ac_status=$?
8952 cat out/conftest.err >&5
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8955 then
8956 # The compiler can only warn and ignore the option if not recognized
8957 # So say no if there are warnings
8958 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8959 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8960 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8961 lt_cv_prog_compiler_c_o=yes
8964 chmod u+w . 2>&5
8965 $RM conftest*
8966 # SGI C++ compiler will create directory out/ii_files/ for
8967 # template instantiation
8968 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8969 $RM out/* && rmdir out
8970 cd ..
8971 $RM -r conftest
8972 $RM conftest*
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8976 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8984 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8985 if ${lt_cv_prog_compiler_c_o+:} false; then :
8986 $as_echo_n "(cached) " >&6
8987 else
8988 lt_cv_prog_compiler_c_o=no
8989 $RM -r conftest 2>/dev/null
8990 mkdir conftest
8991 cd conftest
8992 mkdir out
8993 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8995 lt_compiler_flag="-o out/conftest2.$ac_objext"
8996 # Insert the option either (1) after the last *FLAGS variable, or
8997 # (2) before a word containing "conftest.", or (3) at the end.
8998 # Note that $ac_compile itself does not contain backslashes and begins
8999 # with a dollar sign (not a hyphen), so the echo should work correctly.
9000 lt_compile=`echo "$ac_compile" | $SED \
9001 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9002 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9003 -e 's:$: $lt_compiler_flag:'`
9004 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9005 (eval "$lt_compile" 2>out/conftest.err)
9006 ac_status=$?
9007 cat out/conftest.err >&5
9008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9010 then
9011 # The compiler can only warn and ignore the option if not recognized
9012 # So say no if there are warnings
9013 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9014 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9015 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9016 lt_cv_prog_compiler_c_o=yes
9019 chmod u+w . 2>&5
9020 $RM conftest*
9021 # SGI C++ compiler will create directory out/ii_files/ for
9022 # template instantiation
9023 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9024 $RM out/* && rmdir out
9025 cd ..
9026 $RM -r conftest
9027 $RM conftest*
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9031 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9036 hard_links="nottested"
9037 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9038 # do not overwrite the value of need_locks provided by the user
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9040 $as_echo_n "checking if we can lock with hard links... " >&6; }
9041 hard_links=yes
9042 $RM conftest*
9043 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9044 touch conftest.a
9045 ln conftest.a conftest.b 2>&5 || hard_links=no
9046 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9048 $as_echo "$hard_links" >&6; }
9049 if test "$hard_links" = no; then
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9051 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9052 need_locks=warn
9054 else
9055 need_locks=no
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9064 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9066 runpath_var=
9067 allow_undefined_flag=
9068 always_export_symbols=no
9069 archive_cmds=
9070 archive_expsym_cmds=
9071 compiler_needs_object=no
9072 enable_shared_with_static_runtimes=no
9073 export_dynamic_flag_spec=
9074 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9075 hardcode_automatic=no
9076 hardcode_direct=no
9077 hardcode_direct_absolute=no
9078 hardcode_libdir_flag_spec=
9079 hardcode_libdir_flag_spec_ld=
9080 hardcode_libdir_separator=
9081 hardcode_minus_L=no
9082 hardcode_shlibpath_var=unsupported
9083 inherit_rpath=no
9084 link_all_deplibs=unknown
9085 module_cmds=
9086 module_expsym_cmds=
9087 old_archive_from_new_cmds=
9088 old_archive_from_expsyms_cmds=
9089 thread_safe_flag_spec=
9090 whole_archive_flag_spec=
9091 # include_expsyms should be a list of space-separated symbols to be *always*
9092 # included in the symbol list
9093 include_expsyms=
9094 # exclude_expsyms can be an extended regexp of symbols to exclude
9095 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9096 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9097 # as well as any symbol that contains `d'.
9098 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9099 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9100 # platforms (ab)use it in PIC code, but their linkers get confused if
9101 # the symbol is explicitly referenced. Since portable code cannot
9102 # rely on this symbol name, it's probably fine to never include it in
9103 # preloaded symbol tables.
9104 # Exclude shared library initialization/finalization symbols.
9105 extract_expsyms_cmds=
9107 case $host_os in
9108 cygwin* | mingw* | pw32* | cegcc*)
9109 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9110 # When not using gcc, we currently assume that we are using
9111 # Microsoft Visual C++.
9112 if test "$GCC" != yes; then
9113 with_gnu_ld=no
9116 interix*)
9117 # we just hope/assume this is gcc and not c89 (= MSVC++)
9118 with_gnu_ld=yes
9120 openbsd*)
9121 with_gnu_ld=no
9123 esac
9125 ld_shlibs=yes
9127 # On some targets, GNU ld is compatible enough with the native linker
9128 # that we're better off using the native interface for both.
9129 lt_use_gnu_ld_interface=no
9130 if test "$with_gnu_ld" = yes; then
9131 case $host_os in
9132 aix*)
9133 # The AIX port of GNU ld has always aspired to compatibility
9134 # with the native linker. However, as the warning in the GNU ld
9135 # block says, versions before 2.19.5* couldn't really create working
9136 # shared libraries, regardless of the interface used.
9137 case `$LD -v 2>&1` in
9138 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9139 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9140 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9142 lt_use_gnu_ld_interface=yes
9144 esac
9147 lt_use_gnu_ld_interface=yes
9149 esac
9152 if test "$lt_use_gnu_ld_interface" = yes; then
9153 # If archive_cmds runs LD, not CC, wlarc should be empty
9154 wlarc='${wl}'
9156 # Set some defaults for GNU ld with shared library support. These
9157 # are reset later if shared libraries are not supported. Putting them
9158 # here allows them to be overridden if necessary.
9159 runpath_var=LD_RUN_PATH
9160 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9161 export_dynamic_flag_spec='${wl}--export-dynamic'
9162 # ancient GNU ld didn't support --whole-archive et. al.
9163 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9164 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9165 else
9166 whole_archive_flag_spec=
9168 supports_anon_versioning=no
9169 case `$LD -v 2>&1` in
9170 *GNU\ gold*) supports_anon_versioning=yes ;;
9171 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9172 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9173 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9174 *\ 2.11.*) ;; # other 2.11 versions
9175 *) supports_anon_versioning=yes ;;
9176 esac
9178 # See if GNU ld supports shared libraries.
9179 case $host_os in
9180 aix[3-9]*)
9181 # On AIX/PPC, the GNU linker is very broken
9182 if test "$host_cpu" != ia64; then
9183 ld_shlibs=no
9184 cat <<_LT_EOF 1>&2
9186 *** Warning: the GNU linker, at least up to release 2.19, is reported
9187 *** to be unable to reliably create shared libraries on AIX.
9188 *** Therefore, libtool is disabling shared libraries support. If you
9189 *** really care for shared libraries, you may want to install binutils
9190 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9191 *** You will then need to restart the configuration process.
9193 _LT_EOF
9197 amigaos*)
9198 case $host_cpu in
9199 powerpc)
9200 # see comment about AmigaOS4 .so support
9201 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9202 archive_expsym_cmds=''
9204 m68k)
9205 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)'
9206 hardcode_libdir_flag_spec='-L$libdir'
9207 hardcode_minus_L=yes
9209 esac
9212 beos*)
9213 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9214 allow_undefined_flag=unsupported
9215 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9216 # support --undefined. This deserves some investigation. FIXME
9217 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9218 else
9219 ld_shlibs=no
9223 cygwin* | mingw* | pw32* | cegcc*)
9224 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9225 # as there is no search path for DLLs.
9226 hardcode_libdir_flag_spec='-L$libdir'
9227 export_dynamic_flag_spec='${wl}--export-all-symbols'
9228 allow_undefined_flag=unsupported
9229 always_export_symbols=no
9230 enable_shared_with_static_runtimes=yes
9231 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9233 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9234 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9235 # If the export-symbols file already is a .def file (1st line
9236 # is EXPORTS), use it as is; otherwise, prepend...
9237 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9238 cp $export_symbols $output_objdir/$soname.def;
9239 else
9240 echo EXPORTS > $output_objdir/$soname.def;
9241 cat $export_symbols >> $output_objdir/$soname.def;
9243 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9244 else
9245 ld_shlibs=no
9249 haiku*)
9250 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9251 link_all_deplibs=yes
9254 interix[3-9]*)
9255 hardcode_direct=no
9256 hardcode_shlibpath_var=no
9257 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9258 export_dynamic_flag_spec='${wl}-E'
9259 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9260 # Instead, shared libraries are loaded at an image base (0x10000000 by
9261 # default) and relocated if they conflict, which is a slow very memory
9262 # consuming and fragmenting process. To avoid this, we pick a random,
9263 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9264 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9265 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9266 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'
9269 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9270 tmp_diet=no
9271 if test "$host_os" = linux-dietlibc; then
9272 case $cc_basename in
9273 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9274 esac
9276 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9277 && test "$tmp_diet" = no
9278 then
9279 tmp_addflag=
9280 tmp_sharedflag='-shared'
9281 case $cc_basename,$host_cpu in
9282 pgcc*) # Portland Group C compiler
9283 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'
9284 tmp_addflag=' $pic_flag'
9286 pgf77* | pgf90* | pgf95* | pgfortran*)
9287 # Portland Group f77 and f90 compilers
9288 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'
9289 tmp_addflag=' $pic_flag -Mnomain' ;;
9290 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9291 tmp_addflag=' -i_dynamic' ;;
9292 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9293 tmp_addflag=' -i_dynamic -nofor_main' ;;
9294 ifc* | ifort*) # Intel Fortran compiler
9295 tmp_addflag=' -nofor_main' ;;
9296 lf95*) # Lahey Fortran 8.1
9297 whole_archive_flag_spec=
9298 tmp_sharedflag='--shared' ;;
9299 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9300 tmp_sharedflag='-qmkshrobj'
9301 tmp_addflag= ;;
9302 nvcc*) # Cuda Compiler Driver 2.2
9303 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'
9304 compiler_needs_object=yes
9306 esac
9307 case `$CC -V 2>&1 | sed 5q` in
9308 *Sun\ C*) # Sun C 5.9
9309 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'
9310 compiler_needs_object=yes
9311 tmp_sharedflag='-G' ;;
9312 *Sun\ F*) # Sun Fortran 8.3
9313 tmp_sharedflag='-G' ;;
9314 esac
9315 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9317 if test "x$supports_anon_versioning" = xyes; then
9318 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9319 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9320 echo "local: *; };" >> $output_objdir/$libname.ver~
9321 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9324 case $cc_basename in
9325 xlf* | bgf* | bgxlf* | mpixlf*)
9326 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9327 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9328 hardcode_libdir_flag_spec=
9329 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9330 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9331 if test "x$supports_anon_versioning" = xyes; then
9332 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9333 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9334 echo "local: *; };" >> $output_objdir/$libname.ver~
9335 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9338 esac
9339 else
9340 ld_shlibs=no
9344 netbsd*)
9345 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9346 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9347 wlarc=
9348 else
9349 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9350 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9354 solaris*)
9355 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9356 ld_shlibs=no
9357 cat <<_LT_EOF 1>&2
9359 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9360 *** create shared libraries on Solaris systems. Therefore, libtool
9361 *** is disabling shared libraries support. We urge you to upgrade GNU
9362 *** binutils to release 2.9.1 or newer. Another option is to modify
9363 *** your PATH or compiler configuration so that the native linker is
9364 *** used, and then restart.
9366 _LT_EOF
9367 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9368 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9369 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9370 else
9371 ld_shlibs=no
9375 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9376 case `$LD -v 2>&1` in
9377 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9378 ld_shlibs=no
9379 cat <<_LT_EOF 1>&2
9381 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9382 *** reliably create shared libraries on SCO systems. Therefore, libtool
9383 *** is disabling shared libraries support. We urge you to upgrade GNU
9384 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9385 *** your PATH or compiler configuration so that the native linker is
9386 *** used, and then restart.
9388 _LT_EOF
9391 # For security reasons, it is highly recommended that you always
9392 # use absolute paths for naming shared libraries, and exclude the
9393 # DT_RUNPATH tag from executables and libraries. But doing so
9394 # requires that you compile everything twice, which is a pain.
9395 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9396 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9397 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9398 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9399 else
9400 ld_shlibs=no
9403 esac
9406 sunos4*)
9407 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9408 wlarc=
9409 hardcode_direct=yes
9410 hardcode_shlibpath_var=no
9414 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9415 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9416 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9417 else
9418 ld_shlibs=no
9421 esac
9423 if test "$ld_shlibs" = no; then
9424 runpath_var=
9425 hardcode_libdir_flag_spec=
9426 export_dynamic_flag_spec=
9427 whole_archive_flag_spec=
9429 else
9430 # PORTME fill in a description of your system's linker (not GNU ld)
9431 case $host_os in
9432 aix3*)
9433 allow_undefined_flag=unsupported
9434 always_export_symbols=yes
9435 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'
9436 # Note: this linker hardcodes the directories in LIBPATH if there
9437 # are no directories specified by -L.
9438 hardcode_minus_L=yes
9439 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9440 # Neither direct hardcoding nor static linking is supported with a
9441 # broken collect2.
9442 hardcode_direct=unsupported
9446 aix[4-9]*)
9447 if test "$host_cpu" = ia64; then
9448 # On IA64, the linker does run time linking by default, so we don't
9449 # have to do anything special.
9450 aix_use_runtimelinking=no
9451 exp_sym_flag='-Bexport'
9452 no_entry_flag=""
9453 else
9454 # If we're using GNU nm, then we don't want the "-C" option.
9455 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9456 # Also, AIX nm treats weak defined symbols like other global
9457 # defined symbols, whereas GNU nm marks them as "W".
9458 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9459 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'
9460 else
9461 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'
9463 aix_use_runtimelinking=no
9465 # Test if we are trying to use run time linking or normal
9466 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9467 # need to do runtime linking.
9468 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9469 for ld_flag in $LDFLAGS; do
9470 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9471 aix_use_runtimelinking=yes
9472 break
9474 done
9476 esac
9478 exp_sym_flag='-bexport'
9479 no_entry_flag='-bnoentry'
9482 # When large executables or shared objects are built, AIX ld can
9483 # have problems creating the table of contents. If linking a library
9484 # or program results in "error TOC overflow" add -mminimal-toc to
9485 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9486 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9488 archive_cmds=''
9489 hardcode_direct=yes
9490 hardcode_direct_absolute=yes
9491 hardcode_libdir_separator=':'
9492 link_all_deplibs=yes
9493 file_list_spec='${wl}-f,'
9495 if test "$GCC" = yes; then
9496 case $host_os in aix4.[012]|aix4.[012].*)
9497 # We only want to do this on AIX 4.2 and lower, the check
9498 # below for broken collect2 doesn't work under 4.3+
9499 collect2name=`${CC} -print-prog-name=collect2`
9500 if test -f "$collect2name" &&
9501 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9502 then
9503 # We have reworked collect2
9505 else
9506 # We have old collect2
9507 hardcode_direct=unsupported
9508 # It fails to find uninstalled libraries when the uninstalled
9509 # path is not listed in the libpath. Setting hardcode_minus_L
9510 # to unsupported forces relinking
9511 hardcode_minus_L=yes
9512 hardcode_libdir_flag_spec='-L$libdir'
9513 hardcode_libdir_separator=
9516 esac
9517 shared_flag='-shared'
9518 if test "$aix_use_runtimelinking" = yes; then
9519 shared_flag="$shared_flag "'${wl}-G'
9521 else
9522 # not using gcc
9523 if test "$host_cpu" = ia64; then
9524 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9525 # chokes on -Wl,-G. The following line is correct:
9526 shared_flag='-G'
9527 else
9528 if test "$aix_use_runtimelinking" = yes; then
9529 shared_flag='${wl}-G'
9530 else
9531 shared_flag='${wl}-bM:SRE'
9536 export_dynamic_flag_spec='${wl}-bexpall'
9537 # It seems that -bexpall does not export symbols beginning with
9538 # underscore (_), so it is better to generate a list of symbols to export.
9539 always_export_symbols=yes
9540 if test "$aix_use_runtimelinking" = yes; then
9541 # Warning - without using the other runtime loading flags (-brtl),
9542 # -berok will link without error, but may produce a broken library.
9543 allow_undefined_flag='-berok'
9544 # Determine the default libpath from the value encoded in an
9545 # empty executable.
9546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9547 /* end confdefs.h. */
9550 main ()
9554 return 0;
9556 _ACEOF
9557 if ac_fn_c_try_link "$LINENO"; then :
9559 lt_aix_libpath_sed='
9560 /Import File Strings/,/^$/ {
9561 /^0/ {
9562 s/^0 *\(.*\)$/\1/
9566 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9567 # Check for a 64-bit object if we didn't find anything.
9568 if test -z "$aix_libpath"; then
9569 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9572 rm -f core conftest.err conftest.$ac_objext \
9573 conftest$ac_exeext conftest.$ac_ext
9574 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9576 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9577 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"
9578 else
9579 if test "$host_cpu" = ia64; then
9580 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9581 allow_undefined_flag="-z nodefs"
9582 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"
9583 else
9584 # Determine the default libpath from the value encoded in an
9585 # empty executable.
9586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9587 /* end confdefs.h. */
9590 main ()
9594 return 0;
9596 _ACEOF
9597 if ac_fn_c_try_link "$LINENO"; then :
9599 lt_aix_libpath_sed='
9600 /Import File Strings/,/^$/ {
9601 /^0/ {
9602 s/^0 *\(.*\)$/\1/
9606 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9607 # Check for a 64-bit object if we didn't find anything.
9608 if test -z "$aix_libpath"; then
9609 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9612 rm -f core conftest.err conftest.$ac_objext \
9613 conftest$ac_exeext conftest.$ac_ext
9614 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9616 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9617 # Warning - without using the other run time loading flags,
9618 # -berok will link without error, but may produce a broken library.
9619 no_undefined_flag=' ${wl}-bernotok'
9620 allow_undefined_flag=' ${wl}-berok'
9621 if test "$with_gnu_ld" = yes; then
9622 # We only use this code for GNU lds that support --whole-archive.
9623 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9624 else
9625 # Exported symbols can be pulled into shared objects from archives
9626 whole_archive_flag_spec='$convenience'
9628 archive_cmds_need_lc=yes
9629 # This is similar to how AIX traditionally builds its shared libraries.
9630 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'
9635 amigaos*)
9636 case $host_cpu in
9637 powerpc)
9638 # see comment about AmigaOS4 .so support
9639 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9640 archive_expsym_cmds=''
9642 m68k)
9643 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)'
9644 hardcode_libdir_flag_spec='-L$libdir'
9645 hardcode_minus_L=yes
9647 esac
9650 bsdi[45]*)
9651 export_dynamic_flag_spec=-rdynamic
9654 cygwin* | mingw* | pw32* | cegcc*)
9655 # When not using gcc, we currently assume that we are using
9656 # Microsoft Visual C++.
9657 # hardcode_libdir_flag_spec is actually meaningless, as there is
9658 # no search path for DLLs.
9659 hardcode_libdir_flag_spec=' '
9660 allow_undefined_flag=unsupported
9661 # Tell ltmain to make .lib files, not .a files.
9662 libext=lib
9663 # Tell ltmain to make .dll files, not .so files.
9664 shrext_cmds=".dll"
9665 # FIXME: Setting linknames here is a bad hack.
9666 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9667 # The linker will automatically build a .lib file if we build a DLL.
9668 old_archive_from_new_cmds='true'
9669 # FIXME: Should let the user specify the lib program.
9670 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9671 fix_srcfile_path='`cygpath -w "$srcfile"`'
9672 enable_shared_with_static_runtimes=yes
9675 darwin* | rhapsody*)
9678 archive_cmds_need_lc=no
9679 hardcode_direct=no
9680 hardcode_automatic=yes
9681 hardcode_shlibpath_var=unsupported
9682 if test "$lt_cv_ld_force_load" = "yes"; then
9683 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\"`'
9684 else
9685 whole_archive_flag_spec=''
9687 link_all_deplibs=yes
9688 allow_undefined_flag="$_lt_dar_allow_undefined"
9689 case $cc_basename in
9690 ifort*) _lt_dar_can_shared=yes ;;
9691 *) _lt_dar_can_shared=$GCC ;;
9692 esac
9693 if test "$_lt_dar_can_shared" = "yes"; then
9694 output_verbose_link_cmd=func_echo_all
9695 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9696 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9697 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}"
9698 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}"
9700 else
9701 ld_shlibs=no
9706 dgux*)
9707 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9708 hardcode_libdir_flag_spec='-L$libdir'
9709 hardcode_shlibpath_var=no
9712 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9713 # support. Future versions do this automatically, but an explicit c++rt0.o
9714 # does not break anything, and helps significantly (at the cost of a little
9715 # extra space).
9716 freebsd2.2*)
9717 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9718 hardcode_libdir_flag_spec='-R$libdir'
9719 hardcode_direct=yes
9720 hardcode_shlibpath_var=no
9723 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9724 freebsd2.*)
9725 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9726 hardcode_direct=yes
9727 hardcode_minus_L=yes
9728 hardcode_shlibpath_var=no
9731 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9732 freebsd* | dragonfly*)
9733 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9734 hardcode_libdir_flag_spec='-R$libdir'
9735 hardcode_direct=yes
9736 hardcode_shlibpath_var=no
9739 hpux9*)
9740 if test "$GCC" = yes; then
9741 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'
9742 else
9743 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'
9745 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9746 hardcode_libdir_separator=:
9747 hardcode_direct=yes
9749 # hardcode_minus_L: Not really in the search PATH,
9750 # but as the default location of the library.
9751 hardcode_minus_L=yes
9752 export_dynamic_flag_spec='${wl}-E'
9755 hpux10*)
9756 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9757 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9758 else
9759 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9761 if test "$with_gnu_ld" = no; then
9762 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9763 hardcode_libdir_flag_spec_ld='+b $libdir'
9764 hardcode_libdir_separator=:
9765 hardcode_direct=yes
9766 hardcode_direct_absolute=yes
9767 export_dynamic_flag_spec='${wl}-E'
9768 # hardcode_minus_L: Not really in the search PATH,
9769 # but as the default location of the library.
9770 hardcode_minus_L=yes
9774 hpux11*)
9775 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9776 case $host_cpu in
9777 hppa*64*)
9778 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9780 ia64*)
9781 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9784 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9786 esac
9787 else
9788 case $host_cpu in
9789 hppa*64*)
9790 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9792 ia64*)
9793 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9797 # Older versions of the 11.00 compiler do not understand -b yet
9798 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9800 $as_echo_n "checking if $CC understands -b... " >&6; }
9801 if ${lt_cv_prog_compiler__b+:} false; then :
9802 $as_echo_n "(cached) " >&6
9803 else
9804 lt_cv_prog_compiler__b=no
9805 save_LDFLAGS="$LDFLAGS"
9806 LDFLAGS="$LDFLAGS -b"
9807 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9808 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9809 # The linker can only warn and ignore the option if not recognized
9810 # So say no if there are warnings
9811 if test -s conftest.err; then
9812 # Append any errors to the config.log.
9813 cat conftest.err 1>&5
9814 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9815 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9816 if diff conftest.exp conftest.er2 >/dev/null; then
9817 lt_cv_prog_compiler__b=yes
9819 else
9820 lt_cv_prog_compiler__b=yes
9823 $RM -r conftest*
9824 LDFLAGS="$save_LDFLAGS"
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9828 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9830 if test x"$lt_cv_prog_compiler__b" = xyes; then
9831 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9832 else
9833 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9837 esac
9839 if test "$with_gnu_ld" = no; then
9840 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9841 hardcode_libdir_separator=:
9843 case $host_cpu in
9844 hppa*64*|ia64*)
9845 hardcode_direct=no
9846 hardcode_shlibpath_var=no
9849 hardcode_direct=yes
9850 hardcode_direct_absolute=yes
9851 export_dynamic_flag_spec='${wl}-E'
9853 # hardcode_minus_L: Not really in the search PATH,
9854 # but as the default location of the library.
9855 hardcode_minus_L=yes
9857 esac
9861 irix5* | irix6* | nonstopux*)
9862 if test "$GCC" = yes; then
9863 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'
9864 # Try to use the -exported_symbol ld option, if it does not
9865 # work, assume that -exports_file does not work either and
9866 # implicitly export all symbols.
9867 save_LDFLAGS="$LDFLAGS"
9868 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9870 /* end confdefs.h. */
9871 int foo(void) {}
9872 _ACEOF
9873 if ac_fn_c_try_link "$LINENO"; then :
9874 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'
9877 rm -f core conftest.err conftest.$ac_objext \
9878 conftest$ac_exeext conftest.$ac_ext
9879 LDFLAGS="$save_LDFLAGS"
9880 else
9881 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'
9882 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'
9884 archive_cmds_need_lc='no'
9885 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9886 hardcode_libdir_separator=:
9887 inherit_rpath=yes
9888 link_all_deplibs=yes
9891 netbsd*)
9892 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9893 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9894 else
9895 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9897 hardcode_libdir_flag_spec='-R$libdir'
9898 hardcode_direct=yes
9899 hardcode_shlibpath_var=no
9902 newsos6)
9903 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9904 hardcode_direct=yes
9905 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9906 hardcode_libdir_separator=:
9907 hardcode_shlibpath_var=no
9910 *nto* | *qnx*)
9913 openbsd*)
9914 if test -f /usr/libexec/ld.so; then
9915 hardcode_direct=yes
9916 hardcode_shlibpath_var=no
9917 hardcode_direct_absolute=yes
9918 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9919 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9920 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9921 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9922 export_dynamic_flag_spec='${wl}-E'
9923 else
9924 case $host_os in
9925 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9926 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9927 hardcode_libdir_flag_spec='-R$libdir'
9930 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9931 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9933 esac
9935 else
9936 ld_shlibs=no
9940 os2*)
9941 hardcode_libdir_flag_spec='-L$libdir'
9942 hardcode_minus_L=yes
9943 allow_undefined_flag=unsupported
9944 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'
9945 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9948 osf3*)
9949 if test "$GCC" = yes; then
9950 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9951 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'
9952 else
9953 allow_undefined_flag=' -expect_unresolved \*'
9954 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'
9956 archive_cmds_need_lc='no'
9957 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9958 hardcode_libdir_separator=:
9961 osf4* | osf5*) # as osf3* with the addition of -msym flag
9962 if test "$GCC" = yes; then
9963 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9964 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'
9965 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9966 else
9967 allow_undefined_flag=' -expect_unresolved \*'
9968 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'
9969 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~
9970 $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'
9972 # Both c and cxx compiler support -rpath directly
9973 hardcode_libdir_flag_spec='-rpath $libdir'
9975 archive_cmds_need_lc='no'
9976 hardcode_libdir_separator=:
9979 solaris*)
9980 no_undefined_flag=' -z defs'
9981 if test "$GCC" = yes; then
9982 wlarc='${wl}'
9983 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9984 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9985 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9986 else
9987 case `$CC -V 2>&1` in
9988 *"Compilers 5.0"*)
9989 wlarc=''
9990 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9991 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9992 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9995 wlarc='${wl}'
9996 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9997 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9998 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10000 esac
10002 hardcode_libdir_flag_spec='-R$libdir'
10003 hardcode_shlibpath_var=no
10004 case $host_os in
10005 solaris2.[0-5] | solaris2.[0-5].*) ;;
10007 # The compiler driver will combine and reorder linker options,
10008 # but understands `-z linker_flag'. GCC discards it without `$wl',
10009 # but is careful enough not to reorder.
10010 # Supported since Solaris 2.6 (maybe 2.5.1?)
10011 if test "$GCC" = yes; then
10012 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10013 else
10014 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10017 esac
10018 link_all_deplibs=yes
10021 sunos4*)
10022 if test "x$host_vendor" = xsequent; then
10023 # Use $CC to link under sequent, because it throws in some extra .o
10024 # files that make .init and .fini sections work.
10025 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10026 else
10027 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10029 hardcode_libdir_flag_spec='-L$libdir'
10030 hardcode_direct=yes
10031 hardcode_minus_L=yes
10032 hardcode_shlibpath_var=no
10035 sysv4)
10036 case $host_vendor in
10037 sni)
10038 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10039 hardcode_direct=yes # is this really true???
10041 siemens)
10042 ## LD is ld it makes a PLAMLIB
10043 ## CC just makes a GrossModule.
10044 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10045 reload_cmds='$CC -r -o $output$reload_objs'
10046 hardcode_direct=no
10048 motorola)
10049 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10050 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10052 esac
10053 runpath_var='LD_RUN_PATH'
10054 hardcode_shlibpath_var=no
10057 sysv4.3*)
10058 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10059 hardcode_shlibpath_var=no
10060 export_dynamic_flag_spec='-Bexport'
10063 sysv4*MP*)
10064 if test -d /usr/nec; then
10065 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10066 hardcode_shlibpath_var=no
10067 runpath_var=LD_RUN_PATH
10068 hardcode_runpath_var=yes
10069 ld_shlibs=yes
10073 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10074 no_undefined_flag='${wl}-z,text'
10075 archive_cmds_need_lc=no
10076 hardcode_shlibpath_var=no
10077 runpath_var='LD_RUN_PATH'
10079 if test "$GCC" = yes; then
10080 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10081 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10082 else
10083 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10084 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10088 sysv5* | sco3.2v5* | sco5v6*)
10089 # Note: We can NOT use -z defs as we might desire, because we do not
10090 # link with -lc, and that would cause any symbols used from libc to
10091 # always be unresolved, which means just about no library would
10092 # ever link correctly. If we're not using GNU ld we use -z text
10093 # though, which does catch some bad symbols but isn't as heavy-handed
10094 # as -z defs.
10095 no_undefined_flag='${wl}-z,text'
10096 allow_undefined_flag='${wl}-z,nodefs'
10097 archive_cmds_need_lc=no
10098 hardcode_shlibpath_var=no
10099 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10100 hardcode_libdir_separator=':'
10101 link_all_deplibs=yes
10102 export_dynamic_flag_spec='${wl}-Bexport'
10103 runpath_var='LD_RUN_PATH'
10105 if test "$GCC" = yes; then
10106 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10107 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10108 else
10109 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10110 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10114 uts4*)
10115 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10116 hardcode_libdir_flag_spec='-L$libdir'
10117 hardcode_shlibpath_var=no
10121 ld_shlibs=no
10123 esac
10125 if test x$host_vendor = xsni; then
10126 case $host in
10127 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10128 export_dynamic_flag_spec='${wl}-Blargedynsym'
10130 esac
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10135 $as_echo "$ld_shlibs" >&6; }
10136 test "$ld_shlibs" = no && can_build_shared=no
10138 with_gnu_ld=$with_gnu_ld
10155 # Do we need to explicitly link libc?
10157 case "x$archive_cmds_need_lc" in
10158 x|xyes)
10159 # Assume -lc should be added
10160 archive_cmds_need_lc=yes
10162 if test "$enable_shared" = yes && test "$GCC" = yes; then
10163 case $archive_cmds in
10164 *'~'*)
10165 # FIXME: we may have to deal with multi-command sequences.
10167 '$CC '*)
10168 # Test whether the compiler implicitly links with -lc since on some
10169 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10170 # to ld, don't add -lc before -lgcc.
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10172 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10173 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10174 $as_echo_n "(cached) " >&6
10175 else
10176 $RM conftest*
10177 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10179 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10180 (eval $ac_compile) 2>&5
10181 ac_status=$?
10182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10183 test $ac_status = 0; } 2>conftest.err; then
10184 soname=conftest
10185 lib=conftest
10186 libobjs=conftest.$ac_objext
10187 deplibs=
10188 wl=$lt_prog_compiler_wl
10189 pic_flag=$lt_prog_compiler_pic
10190 compiler_flags=-v
10191 linker_flags=-v
10192 verstring=
10193 output_objdir=.
10194 libname=conftest
10195 lt_save_allow_undefined_flag=$allow_undefined_flag
10196 allow_undefined_flag=
10197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10198 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10199 ac_status=$?
10200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10201 test $ac_status = 0; }
10202 then
10203 lt_cv_archive_cmds_need_lc=no
10204 else
10205 lt_cv_archive_cmds_need_lc=yes
10207 allow_undefined_flag=$lt_save_allow_undefined_flag
10208 else
10209 cat conftest.err 1>&5
10211 $RM conftest*
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10215 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10216 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10218 esac
10221 esac
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10380 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10382 if test "$GCC" = yes; then
10383 case $host_os in
10384 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10385 *) lt_awk_arg="/^libraries:/" ;;
10386 esac
10387 case $host_os in
10388 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10389 *) lt_sed_strip_eq="s,=/,/,g" ;;
10390 esac
10391 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10392 case $lt_search_path_spec in
10393 *\;*)
10394 # if the path contains ";" then we assume it to be the separator
10395 # otherwise default to the standard path separator (i.e. ":") - it is
10396 # assumed that no part of a normal pathname contains ";" but that should
10397 # okay in the real world where ";" in dirpaths is itself problematic.
10398 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10401 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10403 esac
10404 # Ok, now we have the path, separated by spaces, we can step through it
10405 # and add multilib dir if necessary.
10406 lt_tmp_lt_search_path_spec=
10407 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10408 for lt_sys_path in $lt_search_path_spec; do
10409 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10410 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10411 else
10412 test -d "$lt_sys_path" && \
10413 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10415 done
10416 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10417 BEGIN {RS=" "; FS="/|\n";} {
10418 lt_foo="";
10419 lt_count=0;
10420 for (lt_i = NF; lt_i > 0; lt_i--) {
10421 if ($lt_i != "" && $lt_i != ".") {
10422 if ($lt_i == "..") {
10423 lt_count++;
10424 } else {
10425 if (lt_count == 0) {
10426 lt_foo="/" $lt_i lt_foo;
10427 } else {
10428 lt_count--;
10433 if (lt_foo != "") { lt_freq[lt_foo]++; }
10434 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10436 # AWK program above erroneously prepends '/' to C:/dos/paths
10437 # for these hosts.
10438 case $host_os in
10439 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10440 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10441 esac
10442 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10443 else
10444 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10446 library_names_spec=
10447 libname_spec='lib$name'
10448 soname_spec=
10449 shrext_cmds=".so"
10450 postinstall_cmds=
10451 postuninstall_cmds=
10452 finish_cmds=
10453 finish_eval=
10454 shlibpath_var=
10455 shlibpath_overrides_runpath=unknown
10456 version_type=none
10457 dynamic_linker="$host_os ld.so"
10458 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10459 need_lib_prefix=unknown
10460 hardcode_into_libs=no
10462 # when you set need_version to no, make sure it does not cause -set_version
10463 # flags to be left without arguments
10464 need_version=unknown
10466 case $host_os in
10467 aix3*)
10468 version_type=linux
10469 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10470 shlibpath_var=LIBPATH
10472 # AIX 3 has no versioning support, so we append a major version to the name.
10473 soname_spec='${libname}${release}${shared_ext}$major'
10476 aix[4-9]*)
10477 version_type=linux
10478 need_lib_prefix=no
10479 need_version=no
10480 hardcode_into_libs=yes
10481 if test "$host_cpu" = ia64; then
10482 # AIX 5 supports IA64
10483 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10484 shlibpath_var=LD_LIBRARY_PATH
10485 else
10486 # With GCC up to 2.95.x, collect2 would create an import file
10487 # for dependence libraries. The import file would start with
10488 # the line `#! .'. This would cause the generated library to
10489 # depend on `.', always an invalid library. This was fixed in
10490 # development snapshots of GCC prior to 3.0.
10491 case $host_os in
10492 aix4 | aix4.[01] | aix4.[01].*)
10493 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10494 echo ' yes '
10495 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10497 else
10498 can_build_shared=no
10501 esac
10502 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10503 # soname into executable. Probably we can add versioning support to
10504 # collect2, so additional links can be useful in future.
10505 if test "$aix_use_runtimelinking" = yes; then
10506 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10507 # instead of lib<name>.a to let people know that these are not
10508 # typical AIX shared libraries.
10509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10510 else
10511 # We preserve .a as extension for shared libraries through AIX4.2
10512 # and later when we are not doing run time linking.
10513 library_names_spec='${libname}${release}.a $libname.a'
10514 soname_spec='${libname}${release}${shared_ext}$major'
10516 shlibpath_var=LIBPATH
10520 amigaos*)
10521 case $host_cpu in
10522 powerpc)
10523 # Since July 2007 AmigaOS4 officially supports .so libraries.
10524 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10527 m68k)
10528 library_names_spec='$libname.ixlibrary $libname.a'
10529 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10530 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'
10532 esac
10535 beos*)
10536 library_names_spec='${libname}${shared_ext}'
10537 dynamic_linker="$host_os ld.so"
10538 shlibpath_var=LIBRARY_PATH
10541 bsdi[45]*)
10542 version_type=linux
10543 need_version=no
10544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10545 soname_spec='${libname}${release}${shared_ext}$major'
10546 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10547 shlibpath_var=LD_LIBRARY_PATH
10548 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10549 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10550 # the default ld.so.conf also contains /usr/contrib/lib and
10551 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10552 # libtool to hard-code these into programs
10555 cygwin* | mingw* | pw32* | cegcc*)
10556 version_type=windows
10557 shrext_cmds=".dll"
10558 need_version=no
10559 need_lib_prefix=no
10561 case $GCC,$host_os in
10562 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10563 library_names_spec='$libname.dll.a'
10564 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10565 postinstall_cmds='base_file=`basename \${file}`~
10566 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10567 dldir=$destdir/`dirname \$dlpath`~
10568 test -d \$dldir || mkdir -p \$dldir~
10569 $install_prog $dir/$dlname \$dldir/$dlname~
10570 chmod a+x \$dldir/$dlname~
10571 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10572 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10574 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10575 dlpath=$dir/\$dldll~
10576 $RM \$dlpath'
10577 shlibpath_overrides_runpath=yes
10579 case $host_os in
10580 cygwin*)
10581 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10582 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10584 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10586 mingw* | cegcc*)
10587 # MinGW DLLs use traditional 'lib' prefix
10588 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10590 pw32*)
10591 # pw32 DLLs use 'pw' prefix rather than 'lib'
10592 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10594 esac
10598 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10600 esac
10601 dynamic_linker='Win32 ld.exe'
10602 # FIXME: first we should search . and the directory the executable is in
10603 shlibpath_var=PATH
10606 darwin* | rhapsody*)
10607 dynamic_linker="$host_os dyld"
10608 version_type=darwin
10609 need_lib_prefix=no
10610 need_version=no
10611 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10612 soname_spec='${libname}${release}${major}$shared_ext'
10613 shlibpath_overrides_runpath=yes
10614 shlibpath_var=DYLD_LIBRARY_PATH
10615 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10617 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10618 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10621 dgux*)
10622 version_type=linux
10623 need_lib_prefix=no
10624 need_version=no
10625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10626 soname_spec='${libname}${release}${shared_ext}$major'
10627 shlibpath_var=LD_LIBRARY_PATH
10630 freebsd* | dragonfly*)
10631 # DragonFly does not have aout. When/if they implement a new
10632 # versioning mechanism, adjust this.
10633 if test -x /usr/bin/objformat; then
10634 objformat=`/usr/bin/objformat`
10635 else
10636 case $host_os in
10637 freebsd[23].*) objformat=aout ;;
10638 *) objformat=elf ;;
10639 esac
10641 version_type=freebsd-$objformat
10642 case $version_type in
10643 freebsd-elf*)
10644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10645 need_version=no
10646 need_lib_prefix=no
10648 freebsd-*)
10649 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10650 need_version=yes
10652 esac
10653 shlibpath_var=LD_LIBRARY_PATH
10654 case $host_os in
10655 freebsd2.*)
10656 shlibpath_overrides_runpath=yes
10658 freebsd3.[01]* | freebsdelf3.[01]*)
10659 shlibpath_overrides_runpath=yes
10660 hardcode_into_libs=yes
10662 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10663 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10664 shlibpath_overrides_runpath=no
10665 hardcode_into_libs=yes
10667 *) # from 4.6 on, and DragonFly
10668 shlibpath_overrides_runpath=yes
10669 hardcode_into_libs=yes
10671 esac
10674 gnu*)
10675 version_type=linux
10676 need_lib_prefix=no
10677 need_version=no
10678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10679 soname_spec='${libname}${release}${shared_ext}$major'
10680 shlibpath_var=LD_LIBRARY_PATH
10681 hardcode_into_libs=yes
10684 haiku*)
10685 version_type=linux
10686 need_lib_prefix=no
10687 need_version=no
10688 dynamic_linker="$host_os runtime_loader"
10689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10690 soname_spec='${libname}${release}${shared_ext}$major'
10691 shlibpath_var=LIBRARY_PATH
10692 shlibpath_overrides_runpath=yes
10693 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10694 hardcode_into_libs=yes
10697 hpux9* | hpux10* | hpux11*)
10698 # Give a soname corresponding to the major version so that dld.sl refuses to
10699 # link against other versions.
10700 version_type=sunos
10701 need_lib_prefix=no
10702 need_version=no
10703 case $host_cpu in
10704 ia64*)
10705 shrext_cmds='.so'
10706 hardcode_into_libs=yes
10707 dynamic_linker="$host_os dld.so"
10708 shlibpath_var=LD_LIBRARY_PATH
10709 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10711 soname_spec='${libname}${release}${shared_ext}$major'
10712 if test "X$HPUX_IA64_MODE" = X32; then
10713 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10714 else
10715 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10717 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10719 hppa*64*)
10720 shrext_cmds='.sl'
10721 hardcode_into_libs=yes
10722 dynamic_linker="$host_os dld.sl"
10723 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10724 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10726 soname_spec='${libname}${release}${shared_ext}$major'
10727 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10728 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10731 shrext_cmds='.sl'
10732 dynamic_linker="$host_os dld.sl"
10733 shlibpath_var=SHLIB_PATH
10734 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10736 soname_spec='${libname}${release}${shared_ext}$major'
10738 esac
10739 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10740 postinstall_cmds='chmod 555 $lib'
10741 # or fails outright, so override atomically:
10742 install_override_mode=555
10745 interix[3-9]*)
10746 version_type=linux
10747 need_lib_prefix=no
10748 need_version=no
10749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10750 soname_spec='${libname}${release}${shared_ext}$major'
10751 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10752 shlibpath_var=LD_LIBRARY_PATH
10753 shlibpath_overrides_runpath=no
10754 hardcode_into_libs=yes
10757 irix5* | irix6* | nonstopux*)
10758 case $host_os in
10759 nonstopux*) version_type=nonstopux ;;
10761 if test "$lt_cv_prog_gnu_ld" = yes; then
10762 version_type=linux
10763 else
10764 version_type=irix
10765 fi ;;
10766 esac
10767 need_lib_prefix=no
10768 need_version=no
10769 soname_spec='${libname}${release}${shared_ext}$major'
10770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10771 case $host_os in
10772 irix5* | nonstopux*)
10773 libsuff= shlibsuff=
10776 case $LD in # libtool.m4 will add one of these switches to LD
10777 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10778 libsuff= shlibsuff= libmagic=32-bit;;
10779 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10780 libsuff=32 shlibsuff=N32 libmagic=N32;;
10781 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10782 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10783 *) libsuff= shlibsuff= libmagic=never-match;;
10784 esac
10786 esac
10787 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10788 shlibpath_overrides_runpath=no
10789 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10790 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10791 hardcode_into_libs=yes
10794 # No shared lib support for Linux oldld, aout, or coff.
10795 linux*oldld* | linux*aout* | linux*coff*)
10796 dynamic_linker=no
10799 # This must be Linux ELF.
10800 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10801 version_type=linux
10802 need_lib_prefix=no
10803 need_version=no
10804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10805 soname_spec='${libname}${release}${shared_ext}$major'
10806 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10807 shlibpath_var=LD_LIBRARY_PATH
10808 shlibpath_overrides_runpath=no
10810 # Some binutils ld are patched to set DT_RUNPATH
10811 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10812 $as_echo_n "(cached) " >&6
10813 else
10814 lt_cv_shlibpath_overrides_runpath=no
10815 save_LDFLAGS=$LDFLAGS
10816 save_libdir=$libdir
10817 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10818 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10820 /* end confdefs.h. */
10823 main ()
10827 return 0;
10829 _ACEOF
10830 if ac_fn_c_try_link "$LINENO"; then :
10831 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10832 lt_cv_shlibpath_overrides_runpath=yes
10835 rm -f core conftest.err conftest.$ac_objext \
10836 conftest$ac_exeext conftest.$ac_ext
10837 LDFLAGS=$save_LDFLAGS
10838 libdir=$save_libdir
10842 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10844 # This implies no fast_install, which is unacceptable.
10845 # Some rework will be needed to allow for fast_install
10846 # before this can be enabled.
10847 hardcode_into_libs=yes
10849 # Append ld.so.conf contents to the search path
10850 if test -f /etc/ld.so.conf; then
10851 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' ' '`
10852 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10855 # We used to test for /lib/ld.so.1 and disable shared libraries on
10856 # powerpc, because MkLinux only supported shared libraries with the
10857 # GNU dynamic linker. Since this was broken with cross compilers,
10858 # most powerpc-linux boxes support dynamic linking these days and
10859 # people can always --disable-shared, the test was removed, and we
10860 # assume the GNU/Linux dynamic linker is in use.
10861 dynamic_linker='GNU/Linux ld.so'
10864 netbsd*)
10865 version_type=sunos
10866 need_lib_prefix=no
10867 need_version=no
10868 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10870 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10871 dynamic_linker='NetBSD (a.out) ld.so'
10872 else
10873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10874 soname_spec='${libname}${release}${shared_ext}$major'
10875 dynamic_linker='NetBSD ld.elf_so'
10877 shlibpath_var=LD_LIBRARY_PATH
10878 shlibpath_overrides_runpath=yes
10879 hardcode_into_libs=yes
10882 newsos6)
10883 version_type=linux
10884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10885 shlibpath_var=LD_LIBRARY_PATH
10886 shlibpath_overrides_runpath=yes
10889 *nto* | *qnx*)
10890 version_type=qnx
10891 need_lib_prefix=no
10892 need_version=no
10893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10894 soname_spec='${libname}${release}${shared_ext}$major'
10895 shlibpath_var=LD_LIBRARY_PATH
10896 shlibpath_overrides_runpath=no
10897 hardcode_into_libs=yes
10898 dynamic_linker='ldqnx.so'
10901 openbsd*)
10902 version_type=sunos
10903 sys_lib_dlsearch_path_spec="/usr/lib"
10904 need_lib_prefix=no
10905 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10906 case $host_os in
10907 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10908 *) need_version=no ;;
10909 esac
10910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10911 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10912 shlibpath_var=LD_LIBRARY_PATH
10913 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10914 case $host_os in
10915 openbsd2.[89] | openbsd2.[89].*)
10916 shlibpath_overrides_runpath=no
10919 shlibpath_overrides_runpath=yes
10921 esac
10922 else
10923 shlibpath_overrides_runpath=yes
10927 os2*)
10928 libname_spec='$name'
10929 shrext_cmds=".dll"
10930 need_lib_prefix=no
10931 library_names_spec='$libname${shared_ext} $libname.a'
10932 dynamic_linker='OS/2 ld.exe'
10933 shlibpath_var=LIBPATH
10936 osf3* | osf4* | osf5*)
10937 version_type=osf
10938 need_lib_prefix=no
10939 need_version=no
10940 soname_spec='${libname}${release}${shared_ext}$major'
10941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10942 shlibpath_var=LD_LIBRARY_PATH
10943 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10944 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10947 rdos*)
10948 dynamic_linker=no
10951 solaris*)
10952 version_type=linux
10953 need_lib_prefix=no
10954 need_version=no
10955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10956 soname_spec='${libname}${release}${shared_ext}$major'
10957 shlibpath_var=LD_LIBRARY_PATH
10958 shlibpath_overrides_runpath=yes
10959 hardcode_into_libs=yes
10960 # ldd complains unless libraries are executable
10961 postinstall_cmds='chmod +x $lib'
10964 sunos4*)
10965 version_type=sunos
10966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10967 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10968 shlibpath_var=LD_LIBRARY_PATH
10969 shlibpath_overrides_runpath=yes
10970 if test "$with_gnu_ld" = yes; then
10971 need_lib_prefix=no
10973 need_version=yes
10976 sysv4 | sysv4.3*)
10977 version_type=linux
10978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10979 soname_spec='${libname}${release}${shared_ext}$major'
10980 shlibpath_var=LD_LIBRARY_PATH
10981 case $host_vendor in
10982 sni)
10983 shlibpath_overrides_runpath=no
10984 need_lib_prefix=no
10985 runpath_var=LD_RUN_PATH
10987 siemens)
10988 need_lib_prefix=no
10990 motorola)
10991 need_lib_prefix=no
10992 need_version=no
10993 shlibpath_overrides_runpath=no
10994 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10996 esac
10999 sysv4*MP*)
11000 if test -d /usr/nec ;then
11001 version_type=linux
11002 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11003 soname_spec='$libname${shared_ext}.$major'
11004 shlibpath_var=LD_LIBRARY_PATH
11008 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11009 version_type=freebsd-elf
11010 need_lib_prefix=no
11011 need_version=no
11012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11013 soname_spec='${libname}${release}${shared_ext}$major'
11014 shlibpath_var=LD_LIBRARY_PATH
11015 shlibpath_overrides_runpath=yes
11016 hardcode_into_libs=yes
11017 if test "$with_gnu_ld" = yes; then
11018 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11019 else
11020 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11021 case $host_os in
11022 sco3.2v5*)
11023 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11025 esac
11027 sys_lib_dlsearch_path_spec='/usr/lib'
11030 tpf*)
11031 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11032 version_type=linux
11033 need_lib_prefix=no
11034 need_version=no
11035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11036 shlibpath_var=LD_LIBRARY_PATH
11037 shlibpath_overrides_runpath=no
11038 hardcode_into_libs=yes
11041 uts4*)
11042 version_type=linux
11043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11044 soname_spec='${libname}${release}${shared_ext}$major'
11045 shlibpath_var=LD_LIBRARY_PATH
11049 dynamic_linker=no
11051 esac
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11053 $as_echo "$dynamic_linker" >&6; }
11054 test "$dynamic_linker" = no && can_build_shared=no
11056 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11057 if test "$GCC" = yes; then
11058 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11061 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11062 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11064 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11065 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11160 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11161 hardcode_action=
11162 if test -n "$hardcode_libdir_flag_spec" ||
11163 test -n "$runpath_var" ||
11164 test "X$hardcode_automatic" = "Xyes" ; then
11166 # We can hardcode non-existent directories.
11167 if test "$hardcode_direct" != no &&
11168 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11169 # have to relink, otherwise we might link with an installed library
11170 # when we should be linking with a yet-to-be-installed one
11171 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11172 test "$hardcode_minus_L" != no; then
11173 # Linking always hardcodes the temporary library directory.
11174 hardcode_action=relink
11175 else
11176 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11177 hardcode_action=immediate
11179 else
11180 # We cannot hardcode anything, or else we can only hardcode existing
11181 # directories.
11182 hardcode_action=unsupported
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11185 $as_echo "$hardcode_action" >&6; }
11187 if test "$hardcode_action" = relink ||
11188 test "$inherit_rpath" = yes; then
11189 # Fast installation is not supported
11190 enable_fast_install=no
11191 elif test "$shlibpath_overrides_runpath" = yes ||
11192 test "$enable_shared" = no; then
11193 # Fast installation is not necessary
11194 enable_fast_install=needless
11202 if test "x$enable_dlopen" != xyes; then
11203 enable_dlopen=unknown
11204 enable_dlopen_self=unknown
11205 enable_dlopen_self_static=unknown
11206 else
11207 lt_cv_dlopen=no
11208 lt_cv_dlopen_libs=
11210 case $host_os in
11211 beos*)
11212 lt_cv_dlopen="load_add_on"
11213 lt_cv_dlopen_libs=
11214 lt_cv_dlopen_self=yes
11217 mingw* | pw32* | cegcc*)
11218 lt_cv_dlopen="LoadLibrary"
11219 lt_cv_dlopen_libs=
11222 cygwin*)
11223 lt_cv_dlopen="dlopen"
11224 lt_cv_dlopen_libs=
11227 darwin*)
11228 # if libdl is installed we need to link against it
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11230 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11231 if ${ac_cv_lib_dl_dlopen+:} false; then :
11232 $as_echo_n "(cached) " >&6
11233 else
11234 ac_check_lib_save_LIBS=$LIBS
11235 LIBS="-ldl $LIBS"
11236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11237 /* end confdefs.h. */
11239 /* Override any GCC internal prototype to avoid an error.
11240 Use char because int might match the return type of a GCC
11241 builtin and then its argument prototype would still apply. */
11242 #ifdef __cplusplus
11243 extern "C"
11244 #endif
11245 char dlopen ();
11247 main ()
11249 return dlopen ();
11251 return 0;
11253 _ACEOF
11254 if ac_fn_c_try_link "$LINENO"; then :
11255 ac_cv_lib_dl_dlopen=yes
11256 else
11257 ac_cv_lib_dl_dlopen=no
11259 rm -f core conftest.err conftest.$ac_objext \
11260 conftest$ac_exeext conftest.$ac_ext
11261 LIBS=$ac_check_lib_save_LIBS
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11264 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11265 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11266 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11267 else
11269 lt_cv_dlopen="dyld"
11270 lt_cv_dlopen_libs=
11271 lt_cv_dlopen_self=yes
11278 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11279 if test "x$ac_cv_func_shl_load" = xyes; then :
11280 lt_cv_dlopen="shl_load"
11281 else
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11283 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11284 if ${ac_cv_lib_dld_shl_load+:} false; then :
11285 $as_echo_n "(cached) " >&6
11286 else
11287 ac_check_lib_save_LIBS=$LIBS
11288 LIBS="-ldld $LIBS"
11289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11290 /* end confdefs.h. */
11292 /* Override any GCC internal prototype to avoid an error.
11293 Use char because int might match the return type of a GCC
11294 builtin and then its argument prototype would still apply. */
11295 #ifdef __cplusplus
11296 extern "C"
11297 #endif
11298 char shl_load ();
11300 main ()
11302 return shl_load ();
11304 return 0;
11306 _ACEOF
11307 if ac_fn_c_try_link "$LINENO"; then :
11308 ac_cv_lib_dld_shl_load=yes
11309 else
11310 ac_cv_lib_dld_shl_load=no
11312 rm -f core conftest.err conftest.$ac_objext \
11313 conftest$ac_exeext conftest.$ac_ext
11314 LIBS=$ac_check_lib_save_LIBS
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11317 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11318 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11319 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11320 else
11321 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11322 if test "x$ac_cv_func_dlopen" = xyes; then :
11323 lt_cv_dlopen="dlopen"
11324 else
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11326 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11327 if ${ac_cv_lib_dl_dlopen+:} false; then :
11328 $as_echo_n "(cached) " >&6
11329 else
11330 ac_check_lib_save_LIBS=$LIBS
11331 LIBS="-ldl $LIBS"
11332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11333 /* end confdefs.h. */
11335 /* Override any GCC internal prototype to avoid an error.
11336 Use char because int might match the return type of a GCC
11337 builtin and then its argument prototype would still apply. */
11338 #ifdef __cplusplus
11339 extern "C"
11340 #endif
11341 char dlopen ();
11343 main ()
11345 return dlopen ();
11347 return 0;
11349 _ACEOF
11350 if ac_fn_c_try_link "$LINENO"; then :
11351 ac_cv_lib_dl_dlopen=yes
11352 else
11353 ac_cv_lib_dl_dlopen=no
11355 rm -f core conftest.err conftest.$ac_objext \
11356 conftest$ac_exeext conftest.$ac_ext
11357 LIBS=$ac_check_lib_save_LIBS
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11360 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11361 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11362 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11363 else
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11365 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11366 if ${ac_cv_lib_svld_dlopen+:} false; then :
11367 $as_echo_n "(cached) " >&6
11368 else
11369 ac_check_lib_save_LIBS=$LIBS
11370 LIBS="-lsvld $LIBS"
11371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11372 /* end confdefs.h. */
11374 /* Override any GCC internal prototype to avoid an error.
11375 Use char because int might match the return type of a GCC
11376 builtin and then its argument prototype would still apply. */
11377 #ifdef __cplusplus
11378 extern "C"
11379 #endif
11380 char dlopen ();
11382 main ()
11384 return dlopen ();
11386 return 0;
11388 _ACEOF
11389 if ac_fn_c_try_link "$LINENO"; then :
11390 ac_cv_lib_svld_dlopen=yes
11391 else
11392 ac_cv_lib_svld_dlopen=no
11394 rm -f core conftest.err conftest.$ac_objext \
11395 conftest$ac_exeext conftest.$ac_ext
11396 LIBS=$ac_check_lib_save_LIBS
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11399 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11400 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11401 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11402 else
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11404 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11405 if ${ac_cv_lib_dld_dld_link+:} false; then :
11406 $as_echo_n "(cached) " >&6
11407 else
11408 ac_check_lib_save_LIBS=$LIBS
11409 LIBS="-ldld $LIBS"
11410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11411 /* end confdefs.h. */
11413 /* Override any GCC internal prototype to avoid an error.
11414 Use char because int might match the return type of a GCC
11415 builtin and then its argument prototype would still apply. */
11416 #ifdef __cplusplus
11417 extern "C"
11418 #endif
11419 char dld_link ();
11421 main ()
11423 return dld_link ();
11425 return 0;
11427 _ACEOF
11428 if ac_fn_c_try_link "$LINENO"; then :
11429 ac_cv_lib_dld_dld_link=yes
11430 else
11431 ac_cv_lib_dld_dld_link=no
11433 rm -f core conftest.err conftest.$ac_objext \
11434 conftest$ac_exeext conftest.$ac_ext
11435 LIBS=$ac_check_lib_save_LIBS
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11438 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11439 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11440 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11459 esac
11461 if test "x$lt_cv_dlopen" != xno; then
11462 enable_dlopen=yes
11463 else
11464 enable_dlopen=no
11467 case $lt_cv_dlopen in
11468 dlopen)
11469 save_CPPFLAGS="$CPPFLAGS"
11470 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11472 save_LDFLAGS="$LDFLAGS"
11473 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11475 save_LIBS="$LIBS"
11476 LIBS="$lt_cv_dlopen_libs $LIBS"
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11479 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11480 if ${lt_cv_dlopen_self+:} false; then :
11481 $as_echo_n "(cached) " >&6
11482 else
11483 if test "$cross_compiling" = yes; then :
11484 lt_cv_dlopen_self=cross
11485 else
11486 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11487 lt_status=$lt_dlunknown
11488 cat > conftest.$ac_ext <<_LT_EOF
11489 #line 11489 "configure"
11490 #include "confdefs.h"
11492 #if HAVE_DLFCN_H
11493 #include <dlfcn.h>
11494 #endif
11496 #include <stdio.h>
11498 #ifdef RTLD_GLOBAL
11499 # define LT_DLGLOBAL RTLD_GLOBAL
11500 #else
11501 # ifdef DL_GLOBAL
11502 # define LT_DLGLOBAL DL_GLOBAL
11503 # else
11504 # define LT_DLGLOBAL 0
11505 # endif
11506 #endif
11508 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11509 find out it does not work in some platform. */
11510 #ifndef LT_DLLAZY_OR_NOW
11511 # ifdef RTLD_LAZY
11512 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11513 # else
11514 # ifdef DL_LAZY
11515 # define LT_DLLAZY_OR_NOW DL_LAZY
11516 # else
11517 # ifdef RTLD_NOW
11518 # define LT_DLLAZY_OR_NOW RTLD_NOW
11519 # else
11520 # ifdef DL_NOW
11521 # define LT_DLLAZY_OR_NOW DL_NOW
11522 # else
11523 # define LT_DLLAZY_OR_NOW 0
11524 # endif
11525 # endif
11526 # endif
11527 # endif
11528 #endif
11530 /* When -fvisbility=hidden is used, assume the code has been annotated
11531 correspondingly for the symbols needed. */
11532 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11533 void fnord () __attribute__((visibility("default")));
11534 #endif
11536 void fnord () { int i=42; }
11537 int main ()
11539 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11540 int status = $lt_dlunknown;
11542 if (self)
11544 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11545 else
11547 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11548 else puts (dlerror ());
11550 /* dlclose (self); */
11552 else
11553 puts (dlerror ());
11555 return status;
11557 _LT_EOF
11558 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11559 (eval $ac_link) 2>&5
11560 ac_status=$?
11561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11562 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11563 (./conftest; exit; ) >&5 2>/dev/null
11564 lt_status=$?
11565 case x$lt_status in
11566 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11567 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11568 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11569 esac
11570 else :
11571 # compilation failed
11572 lt_cv_dlopen_self=no
11575 rm -fr conftest*
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11580 $as_echo "$lt_cv_dlopen_self" >&6; }
11582 if test "x$lt_cv_dlopen_self" = xyes; then
11583 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11585 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11586 if ${lt_cv_dlopen_self_static+:} false; then :
11587 $as_echo_n "(cached) " >&6
11588 else
11589 if test "$cross_compiling" = yes; then :
11590 lt_cv_dlopen_self_static=cross
11591 else
11592 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11593 lt_status=$lt_dlunknown
11594 cat > conftest.$ac_ext <<_LT_EOF
11595 #line 11595 "configure"
11596 #include "confdefs.h"
11598 #if HAVE_DLFCN_H
11599 #include <dlfcn.h>
11600 #endif
11602 #include <stdio.h>
11604 #ifdef RTLD_GLOBAL
11605 # define LT_DLGLOBAL RTLD_GLOBAL
11606 #else
11607 # ifdef DL_GLOBAL
11608 # define LT_DLGLOBAL DL_GLOBAL
11609 # else
11610 # define LT_DLGLOBAL 0
11611 # endif
11612 #endif
11614 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11615 find out it does not work in some platform. */
11616 #ifndef LT_DLLAZY_OR_NOW
11617 # ifdef RTLD_LAZY
11618 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11619 # else
11620 # ifdef DL_LAZY
11621 # define LT_DLLAZY_OR_NOW DL_LAZY
11622 # else
11623 # ifdef RTLD_NOW
11624 # define LT_DLLAZY_OR_NOW RTLD_NOW
11625 # else
11626 # ifdef DL_NOW
11627 # define LT_DLLAZY_OR_NOW DL_NOW
11628 # else
11629 # define LT_DLLAZY_OR_NOW 0
11630 # endif
11631 # endif
11632 # endif
11633 # endif
11634 #endif
11636 /* When -fvisbility=hidden is used, assume the code has been annotated
11637 correspondingly for the symbols needed. */
11638 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11639 void fnord () __attribute__((visibility("default")));
11640 #endif
11642 void fnord () { int i=42; }
11643 int main ()
11645 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11646 int status = $lt_dlunknown;
11648 if (self)
11650 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11651 else
11653 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11654 else puts (dlerror ());
11656 /* dlclose (self); */
11658 else
11659 puts (dlerror ());
11661 return status;
11663 _LT_EOF
11664 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11665 (eval $ac_link) 2>&5
11666 ac_status=$?
11667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11668 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11669 (./conftest; exit; ) >&5 2>/dev/null
11670 lt_status=$?
11671 case x$lt_status in
11672 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11673 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11674 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11675 esac
11676 else :
11677 # compilation failed
11678 lt_cv_dlopen_self_static=no
11681 rm -fr conftest*
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11686 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11689 CPPFLAGS="$save_CPPFLAGS"
11690 LDFLAGS="$save_LDFLAGS"
11691 LIBS="$save_LIBS"
11693 esac
11695 case $lt_cv_dlopen_self in
11696 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11697 *) enable_dlopen_self=unknown ;;
11698 esac
11700 case $lt_cv_dlopen_self_static in
11701 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11702 *) enable_dlopen_self_static=unknown ;;
11703 esac
11722 striplib=
11723 old_striplib=
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11725 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11726 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11727 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11728 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11730 $as_echo "yes" >&6; }
11731 else
11732 # FIXME - insert some real tests, host_os isn't really good enough
11733 case $host_os in
11734 darwin*)
11735 if test -n "$STRIP" ; then
11736 striplib="$STRIP -x"
11737 old_striplib="$STRIP -S"
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11739 $as_echo "yes" >&6; }
11740 else
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11742 $as_echo "no" >&6; }
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11747 $as_echo "no" >&6; }
11749 esac
11763 # Report which library types will actually be built
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11765 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11767 $as_echo "$can_build_shared" >&6; }
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11770 $as_echo_n "checking whether to build shared libraries... " >&6; }
11771 test "$can_build_shared" = "no" && enable_shared=no
11773 # On AIX, shared libraries and static libraries use the same namespace, and
11774 # are all built from PIC.
11775 case $host_os in
11776 aix3*)
11777 test "$enable_shared" = yes && enable_static=no
11778 if test -n "$RANLIB"; then
11779 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11780 postinstall_cmds='$RANLIB $lib'
11784 aix[4-9]*)
11785 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11786 test "$enable_shared" = yes && enable_static=no
11789 esac
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11791 $as_echo "$enable_shared" >&6; }
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11794 $as_echo_n "checking whether to build static libraries... " >&6; }
11795 # Make sure either enable_shared or enable_static is yes.
11796 test "$enable_shared" = yes || enable_static=yes
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11798 $as_echo "$enable_static" >&6; }
11804 ac_ext=c
11805 ac_cpp='$CPP $CPPFLAGS'
11806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11810 CC="$lt_save_CC"
11824 # Source file extension for Go test sources.
11825 ac_ext=go
11827 # Object file extension for compiled Go test sources.
11828 objext=o
11829 objext_GO=$objext
11831 # Code to be used in simple compile tests
11832 lt_simple_compile_test_code="package main; func main() { }"
11834 # Code to be used in simple link tests
11835 lt_simple_link_test_code='package main; func main() { }'
11837 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11844 # If no C compiler was specified, use CC.
11845 LTCC=${LTCC-"$CC"}
11847 # If no C compiler flags were specified, use CFLAGS.
11848 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11850 # Allow CC to be a program name with arguments.
11851 compiler=$CC
11854 # save warnings/boilerplate of simple test code
11855 ac_outfile=conftest.$ac_objext
11856 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11857 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11858 _lt_compiler_boilerplate=`cat conftest.err`
11859 $RM conftest*
11861 ac_outfile=conftest.$ac_objext
11862 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11863 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11864 _lt_linker_boilerplate=`cat conftest.err`
11865 $RM -r conftest*
11868 # Allow CC to be a program name with arguments.
11869 lt_save_CC="$CC"
11870 lt_save_GCC="$GCC"
11871 GCC=yes
11872 CC=${GOC-"gccgo"}
11873 compiler=$CC
11874 compiler_GO=$CC
11875 LD_GO="$LD"
11876 for cc_temp in $compiler""; do
11877 case $cc_temp in
11878 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11879 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11880 \-*) ;;
11881 *) break;;
11882 esac
11883 done
11884 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11887 # Go did not exist at the time GCC didn't implicitly link libc in.
11888 archive_cmds_need_lc_GO=no
11890 old_archive_cmds_GO=$old_archive_cmds
11892 ## CAVEAT EMPTOR:
11893 ## There is no encapsulation within the following macros, do not change
11894 ## the running order or otherwise move them around unless you know exactly
11895 ## what you are doing...
11896 if test -n "$compiler"; then
11898 lt_prog_compiler_no_builtin_flag_GO=
11900 if test "$GCC" = yes; then
11901 case $cc_basename in
11902 nvcc*)
11903 lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11905 lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11906 esac
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11909 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11910 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11911 $as_echo_n "(cached) " >&6
11912 else
11913 lt_cv_prog_compiler_rtti_exceptions=no
11914 ac_outfile=conftest.$ac_objext
11915 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11916 lt_compiler_flag="-fno-rtti -fno-exceptions"
11917 # Insert the option either (1) after the last *FLAGS variable, or
11918 # (2) before a word containing "conftest.", or (3) at the end.
11919 # Note that $ac_compile itself does not contain backslashes and begins
11920 # with a dollar sign (not a hyphen), so the echo should work correctly.
11921 # The option is referenced via a variable to avoid confusing sed.
11922 lt_compile=`echo "$ac_compile" | $SED \
11923 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11924 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11925 -e 's:$: $lt_compiler_flag:'`
11926 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11927 (eval "$lt_compile" 2>conftest.err)
11928 ac_status=$?
11929 cat conftest.err >&5
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 if (exit $ac_status) && test -s "$ac_outfile"; then
11932 # The compiler can only warn and ignore the option if not recognized
11933 # So say no if there are warnings other than the usual output.
11934 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11935 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11936 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11937 lt_cv_prog_compiler_rtti_exceptions=yes
11940 $RM conftest*
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11944 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11946 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11947 lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11948 else
11956 lt_prog_compiler_wl_GO=
11957 lt_prog_compiler_pic_GO=
11958 lt_prog_compiler_static_GO=
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11961 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11963 if test "$GCC" = yes; then
11964 lt_prog_compiler_wl_GO='-Wl,'
11965 lt_prog_compiler_static_GO='-static'
11967 case $host_os in
11968 aix*)
11969 # All AIX code is PIC.
11970 if test "$host_cpu" = ia64; then
11971 # AIX 5 now supports IA64 processor
11972 lt_prog_compiler_static_GO='-Bstatic'
11974 lt_prog_compiler_pic_GO='-fPIC'
11977 amigaos*)
11978 case $host_cpu in
11979 powerpc)
11980 # see comment about AmigaOS4 .so support
11981 lt_prog_compiler_pic_GO='-fPIC'
11983 m68k)
11984 # FIXME: we need at least 68020 code to build shared libraries, but
11985 # adding the `-m68020' flag to GCC prevents building anything better,
11986 # like `-m68040'.
11987 lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11989 esac
11992 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11993 # PIC is the default for these OSes.
11996 mingw* | cygwin* | pw32* | os2* | cegcc*)
11997 # This hack is so that the source file can tell whether it is being
11998 # built for inclusion in a dll (and should export symbols for example).
11999 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12000 # (--disable-auto-import) libraries
12001 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
12004 darwin* | rhapsody*)
12005 # PIC is the default on this platform
12006 # Common symbols not allowed in MH_DYLIB files
12007 lt_prog_compiler_pic_GO='-fno-common'
12010 haiku*)
12011 # PIC is the default for Haiku.
12012 # The "-static" flag exists, but is broken.
12013 lt_prog_compiler_static_GO=
12016 hpux*)
12017 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12018 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12019 # sets the default TLS model and affects inlining.
12020 case $host_cpu in
12021 hppa*64*)
12022 # +Z the default
12025 lt_prog_compiler_pic_GO='-fPIC'
12027 esac
12030 interix[3-9]*)
12031 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12032 # Instead, we relocate shared libraries at runtime.
12035 msdosdjgpp*)
12036 # Just because we use GCC doesn't mean we suddenly get shared libraries
12037 # on systems that don't support them.
12038 lt_prog_compiler_can_build_shared_GO=no
12039 enable_shared=no
12042 *nto* | *qnx*)
12043 # QNX uses GNU C++, but need to define -shared option too, otherwise
12044 # it will coredump.
12045 lt_prog_compiler_pic_GO='-fPIC -shared'
12048 sysv4*MP*)
12049 if test -d /usr/nec; then
12050 lt_prog_compiler_pic_GO=-Kconform_pic
12055 lt_prog_compiler_pic_GO='-fPIC'
12057 esac
12059 case $cc_basename in
12060 nvcc*) # Cuda Compiler Driver 2.2
12061 lt_prog_compiler_wl_GO='-Xlinker '
12062 lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
12064 esac
12065 else
12066 # PORTME Check for flag to pass linker flags through the system compiler.
12067 case $host_os in
12068 aix*)
12069 lt_prog_compiler_wl_GO='-Wl,'
12070 if test "$host_cpu" = ia64; then
12071 # AIX 5 now supports IA64 processor
12072 lt_prog_compiler_static_GO='-Bstatic'
12073 else
12074 lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
12078 mingw* | cygwin* | pw32* | os2* | cegcc*)
12079 # This hack is so that the source file can tell whether it is being
12080 # built for inclusion in a dll (and should export symbols for example).
12081 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
12084 hpux9* | hpux10* | hpux11*)
12085 lt_prog_compiler_wl_GO='-Wl,'
12086 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12087 # not for PA HP-UX.
12088 case $host_cpu in
12089 hppa*64*|ia64*)
12090 # +Z the default
12093 lt_prog_compiler_pic_GO='+Z'
12095 esac
12096 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12097 lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
12100 irix5* | irix6* | nonstopux*)
12101 lt_prog_compiler_wl_GO='-Wl,'
12102 # PIC (with -KPIC) is the default.
12103 lt_prog_compiler_static_GO='-non_shared'
12106 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12107 case $cc_basename in
12108 # old Intel for x86_64 which still supported -KPIC.
12109 ecc*)
12110 lt_prog_compiler_wl_GO='-Wl,'
12111 lt_prog_compiler_pic_GO='-KPIC'
12112 lt_prog_compiler_static_GO='-static'
12114 # icc used to be incompatible with GCC.
12115 # ICC 10 doesn't accept -KPIC any more.
12116 icc* | ifort*)
12117 lt_prog_compiler_wl_GO='-Wl,'
12118 lt_prog_compiler_pic_GO='-fPIC'
12119 lt_prog_compiler_static_GO='-static'
12121 # Lahey Fortran 8.1.
12122 lf95*)
12123 lt_prog_compiler_wl_GO='-Wl,'
12124 lt_prog_compiler_pic_GO='--shared'
12125 lt_prog_compiler_static_GO='--static'
12127 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12128 # Portland Group compilers (*not* the Pentium gcc compiler,
12129 # which looks to be a dead project)
12130 lt_prog_compiler_wl_GO='-Wl,'
12131 lt_prog_compiler_pic_GO='-fpic'
12132 lt_prog_compiler_static_GO='-Bstatic'
12134 ccc*)
12135 lt_prog_compiler_wl_GO='-Wl,'
12136 # All Alpha code is PIC.
12137 lt_prog_compiler_static_GO='-non_shared'
12139 xl* | bgxl* | bgf* | mpixl*)
12140 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12141 lt_prog_compiler_wl_GO='-Wl,'
12142 lt_prog_compiler_pic_GO='-qpic'
12143 lt_prog_compiler_static_GO='-qstaticlink'
12146 case `$CC -V 2>&1 | sed 5q` in
12147 *Sun\ F* | *Sun*Fortran*)
12148 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12149 lt_prog_compiler_pic_GO='-KPIC'
12150 lt_prog_compiler_static_GO='-Bstatic'
12151 lt_prog_compiler_wl_GO=''
12153 *Sun\ C*)
12154 # Sun C 5.9
12155 lt_prog_compiler_pic_GO='-KPIC'
12156 lt_prog_compiler_static_GO='-Bstatic'
12157 lt_prog_compiler_wl_GO='-Wl,'
12159 esac
12161 esac
12164 newsos6)
12165 lt_prog_compiler_pic_GO='-KPIC'
12166 lt_prog_compiler_static_GO='-Bstatic'
12169 *nto* | *qnx*)
12170 # QNX uses GNU C++, but need to define -shared option too, otherwise
12171 # it will coredump.
12172 lt_prog_compiler_pic_GO='-fPIC -shared'
12175 osf3* | osf4* | osf5*)
12176 lt_prog_compiler_wl_GO='-Wl,'
12177 # All OSF/1 code is PIC.
12178 lt_prog_compiler_static_GO='-non_shared'
12181 rdos*)
12182 lt_prog_compiler_static_GO='-non_shared'
12185 solaris*)
12186 lt_prog_compiler_pic_GO='-KPIC'
12187 lt_prog_compiler_static_GO='-Bstatic'
12188 case $cc_basename in
12189 f77* | f90* | f95*)
12190 lt_prog_compiler_wl_GO='-Qoption ld ';;
12192 lt_prog_compiler_wl_GO='-Wl,';;
12193 esac
12196 sunos4*)
12197 lt_prog_compiler_wl_GO='-Qoption ld '
12198 lt_prog_compiler_pic_GO='-PIC'
12199 lt_prog_compiler_static_GO='-Bstatic'
12202 sysv4 | sysv4.2uw2* | sysv4.3*)
12203 lt_prog_compiler_wl_GO='-Wl,'
12204 lt_prog_compiler_pic_GO='-KPIC'
12205 lt_prog_compiler_static_GO='-Bstatic'
12208 sysv4*MP*)
12209 if test -d /usr/nec ;then
12210 lt_prog_compiler_pic_GO='-Kconform_pic'
12211 lt_prog_compiler_static_GO='-Bstatic'
12215 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12216 lt_prog_compiler_wl_GO='-Wl,'
12217 lt_prog_compiler_pic_GO='-KPIC'
12218 lt_prog_compiler_static_GO='-Bstatic'
12221 unicos*)
12222 lt_prog_compiler_wl_GO='-Wl,'
12223 lt_prog_compiler_can_build_shared_GO=no
12226 uts4*)
12227 lt_prog_compiler_pic_GO='-pic'
12228 lt_prog_compiler_static_GO='-Bstatic'
12232 lt_prog_compiler_can_build_shared_GO=no
12234 esac
12237 case $host_os in
12238 # For platforms which do not support PIC, -DPIC is meaningless:
12239 *djgpp*)
12240 lt_prog_compiler_pic_GO=
12243 lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
12245 esac
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
12247 $as_echo "$lt_prog_compiler_pic_GO" >&6; }
12252 # Check to make sure the PIC flag actually works.
12254 if test -n "$lt_prog_compiler_pic_GO"; then
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
12256 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
12257 if ${lt_cv_prog_compiler_pic_works_GO+:} false; then :
12258 $as_echo_n "(cached) " >&6
12259 else
12260 lt_cv_prog_compiler_pic_works_GO=no
12261 ac_outfile=conftest.$ac_objext
12262 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12263 lt_compiler_flag="$lt_prog_compiler_pic_GO"
12264 # Insert the option either (1) after the last *FLAGS variable, or
12265 # (2) before a word containing "conftest.", or (3) at the end.
12266 # Note that $ac_compile itself does not contain backslashes and begins
12267 # with a dollar sign (not a hyphen), so the echo should work correctly.
12268 # The option is referenced via a variable to avoid confusing sed.
12269 lt_compile=`echo "$ac_compile" | $SED \
12270 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12271 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12272 -e 's:$: $lt_compiler_flag:'`
12273 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12274 (eval "$lt_compile" 2>conftest.err)
12275 ac_status=$?
12276 cat conftest.err >&5
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 if (exit $ac_status) && test -s "$ac_outfile"; then
12279 # The compiler can only warn and ignore the option if not recognized
12280 # So say no if there are warnings other than the usual output.
12281 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12282 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12283 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12284 lt_cv_prog_compiler_pic_works_GO=yes
12287 $RM conftest*
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
12291 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
12293 if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
12294 case $lt_prog_compiler_pic_GO in
12295 "" | " "*) ;;
12296 *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
12297 esac
12298 else
12299 lt_prog_compiler_pic_GO=
12300 lt_prog_compiler_can_build_shared_GO=no
12308 # Check to make sure the static flag actually works.
12310 wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12312 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12313 if ${lt_cv_prog_compiler_static_works_GO+:} false; then :
12314 $as_echo_n "(cached) " >&6
12315 else
12316 lt_cv_prog_compiler_static_works_GO=no
12317 save_LDFLAGS="$LDFLAGS"
12318 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12319 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12320 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12321 # The linker can only warn and ignore the option if not recognized
12322 # So say no if there are warnings
12323 if test -s conftest.err; then
12324 # Append any errors to the config.log.
12325 cat conftest.err 1>&5
12326 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12327 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12328 if diff conftest.exp conftest.er2 >/dev/null; then
12329 lt_cv_prog_compiler_static_works_GO=yes
12331 else
12332 lt_cv_prog_compiler_static_works_GO=yes
12335 $RM -r conftest*
12336 LDFLAGS="$save_LDFLAGS"
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
12340 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
12342 if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
12344 else
12345 lt_prog_compiler_static_GO=
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12352 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12353 if ${lt_cv_prog_compiler_c_o_GO+:} false; then :
12354 $as_echo_n "(cached) " >&6
12355 else
12356 lt_cv_prog_compiler_c_o_GO=no
12357 $RM -r conftest 2>/dev/null
12358 mkdir conftest
12359 cd conftest
12360 mkdir out
12361 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12363 lt_compiler_flag="-o out/conftest2.$ac_objext"
12364 # Insert the option either (1) after the last *FLAGS variable, or
12365 # (2) before a word containing "conftest.", or (3) at the end.
12366 # Note that $ac_compile itself does not contain backslashes and begins
12367 # with a dollar sign (not a hyphen), so the echo should work correctly.
12368 lt_compile=`echo "$ac_compile" | $SED \
12369 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12370 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12371 -e 's:$: $lt_compiler_flag:'`
12372 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12373 (eval "$lt_compile" 2>out/conftest.err)
12374 ac_status=$?
12375 cat out/conftest.err >&5
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12378 then
12379 # The compiler can only warn and ignore the option if not recognized
12380 # So say no if there are warnings
12381 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12382 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12383 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12384 lt_cv_prog_compiler_c_o_GO=yes
12387 chmod u+w . 2>&5
12388 $RM conftest*
12389 # SGI C++ compiler will create directory out/ii_files/ for
12390 # template instantiation
12391 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12392 $RM out/* && rmdir out
12393 cd ..
12394 $RM -r conftest
12395 $RM conftest*
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12399 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12404 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12405 if ${lt_cv_prog_compiler_c_o_GO+:} false; then :
12406 $as_echo_n "(cached) " >&6
12407 else
12408 lt_cv_prog_compiler_c_o_GO=no
12409 $RM -r conftest 2>/dev/null
12410 mkdir conftest
12411 cd conftest
12412 mkdir out
12413 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12415 lt_compiler_flag="-o out/conftest2.$ac_objext"
12416 # Insert the option either (1) after the last *FLAGS variable, or
12417 # (2) before a word containing "conftest.", or (3) at the end.
12418 # Note that $ac_compile itself does not contain backslashes and begins
12419 # with a dollar sign (not a hyphen), so the echo should work correctly.
12420 lt_compile=`echo "$ac_compile" | $SED \
12421 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12422 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12423 -e 's:$: $lt_compiler_flag:'`
12424 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12425 (eval "$lt_compile" 2>out/conftest.err)
12426 ac_status=$?
12427 cat out/conftest.err >&5
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12430 then
12431 # The compiler can only warn and ignore the option if not recognized
12432 # So say no if there are warnings
12433 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12434 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12435 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12436 lt_cv_prog_compiler_c_o_GO=yes
12439 chmod u+w . 2>&5
12440 $RM conftest*
12441 # SGI C++ compiler will create directory out/ii_files/ for
12442 # template instantiation
12443 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12444 $RM out/* && rmdir out
12445 cd ..
12446 $RM -r conftest
12447 $RM conftest*
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12451 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12456 hard_links="nottested"
12457 if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
12458 # do not overwrite the value of need_locks provided by the user
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12460 $as_echo_n "checking if we can lock with hard links... " >&6; }
12461 hard_links=yes
12462 $RM conftest*
12463 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12464 touch conftest.a
12465 ln conftest.a conftest.b 2>&5 || hard_links=no
12466 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12468 $as_echo "$hard_links" >&6; }
12469 if test "$hard_links" = no; then
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12471 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12472 need_locks=warn
12474 else
12475 need_locks=no
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12481 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12483 runpath_var=
12484 allow_undefined_flag_GO=
12485 always_export_symbols_GO=no
12486 archive_cmds_GO=
12487 archive_expsym_cmds_GO=
12488 compiler_needs_object_GO=no
12489 enable_shared_with_static_runtimes_GO=no
12490 export_dynamic_flag_spec_GO=
12491 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12492 hardcode_automatic_GO=no
12493 hardcode_direct_GO=no
12494 hardcode_direct_absolute_GO=no
12495 hardcode_libdir_flag_spec_GO=
12496 hardcode_libdir_flag_spec_ld_GO=
12497 hardcode_libdir_separator_GO=
12498 hardcode_minus_L_GO=no
12499 hardcode_shlibpath_var_GO=unsupported
12500 inherit_rpath_GO=no
12501 link_all_deplibs_GO=unknown
12502 module_cmds_GO=
12503 module_expsym_cmds_GO=
12504 old_archive_from_new_cmds_GO=
12505 old_archive_from_expsyms_cmds_GO=
12506 thread_safe_flag_spec_GO=
12507 whole_archive_flag_spec_GO=
12508 # include_expsyms should be a list of space-separated symbols to be *always*
12509 # included in the symbol list
12510 include_expsyms_GO=
12511 # exclude_expsyms can be an extended regexp of symbols to exclude
12512 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12513 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12514 # as well as any symbol that contains `d'.
12515 exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12516 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12517 # platforms (ab)use it in PIC code, but their linkers get confused if
12518 # the symbol is explicitly referenced. Since portable code cannot
12519 # rely on this symbol name, it's probably fine to never include it in
12520 # preloaded symbol tables.
12521 # Exclude shared library initialization/finalization symbols.
12522 extract_expsyms_cmds=
12524 case $host_os in
12525 cygwin* | mingw* | pw32* | cegcc*)
12526 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12527 # When not using gcc, we currently assume that we are using
12528 # Microsoft Visual C++.
12529 if test "$GCC" != yes; then
12530 with_gnu_ld=no
12533 interix*)
12534 # we just hope/assume this is gcc and not c89 (= MSVC++)
12535 with_gnu_ld=yes
12537 openbsd*)
12538 with_gnu_ld=no
12540 esac
12542 ld_shlibs_GO=yes
12544 # On some targets, GNU ld is compatible enough with the native linker
12545 # that we're better off using the native interface for both.
12546 lt_use_gnu_ld_interface=no
12547 if test "$with_gnu_ld" = yes; then
12548 case $host_os in
12549 aix*)
12550 # The AIX port of GNU ld has always aspired to compatibility
12551 # with the native linker. However, as the warning in the GNU ld
12552 # block says, versions before 2.19.5* couldn't really create working
12553 # shared libraries, regardless of the interface used.
12554 case `$LD -v 2>&1` in
12555 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12556 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12557 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12559 lt_use_gnu_ld_interface=yes
12561 esac
12564 lt_use_gnu_ld_interface=yes
12566 esac
12569 if test "$lt_use_gnu_ld_interface" = yes; then
12570 # If archive_cmds runs LD, not CC, wlarc should be empty
12571 wlarc='${wl}'
12573 # Set some defaults for GNU ld with shared library support. These
12574 # are reset later if shared libraries are not supported. Putting them
12575 # here allows them to be overridden if necessary.
12576 runpath_var=LD_RUN_PATH
12577 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12578 export_dynamic_flag_spec_GO='${wl}--export-dynamic'
12579 # ancient GNU ld didn't support --whole-archive et. al.
12580 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12581 whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12582 else
12583 whole_archive_flag_spec_GO=
12585 supports_anon_versioning=no
12586 case `$LD -v 2>&1` in
12587 *GNU\ gold*) supports_anon_versioning=yes ;;
12588 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12589 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12590 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12591 *\ 2.11.*) ;; # other 2.11 versions
12592 *) supports_anon_versioning=yes ;;
12593 esac
12595 # See if GNU ld supports shared libraries.
12596 case $host_os in
12597 aix[3-9]*)
12598 # On AIX/PPC, the GNU linker is very broken
12599 if test "$host_cpu" != ia64; then
12600 ld_shlibs_GO=no
12601 cat <<_LT_EOF 1>&2
12603 *** Warning: the GNU linker, at least up to release 2.19, is reported
12604 *** to be unable to reliably create shared libraries on AIX.
12605 *** Therefore, libtool is disabling shared libraries support. If you
12606 *** really care for shared libraries, you may want to install binutils
12607 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12608 *** You will then need to restart the configuration process.
12610 _LT_EOF
12614 amigaos*)
12615 case $host_cpu in
12616 powerpc)
12617 # see comment about AmigaOS4 .so support
12618 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12619 archive_expsym_cmds_GO=''
12621 m68k)
12622 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)'
12623 hardcode_libdir_flag_spec_GO='-L$libdir'
12624 hardcode_minus_L_GO=yes
12626 esac
12629 beos*)
12630 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12631 allow_undefined_flag_GO=unsupported
12632 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12633 # support --undefined. This deserves some investigation. FIXME
12634 archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12635 else
12636 ld_shlibs_GO=no
12640 cygwin* | mingw* | pw32* | cegcc*)
12641 # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12642 # as there is no search path for DLLs.
12643 hardcode_libdir_flag_spec_GO='-L$libdir'
12644 export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12645 allow_undefined_flag_GO=unsupported
12646 always_export_symbols_GO=no
12647 enable_shared_with_static_runtimes_GO=yes
12648 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12650 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12651 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12652 # If the export-symbols file already is a .def file (1st line
12653 # is EXPORTS), use it as is; otherwise, prepend...
12654 archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12655 cp $export_symbols $output_objdir/$soname.def;
12656 else
12657 echo EXPORTS > $output_objdir/$soname.def;
12658 cat $export_symbols >> $output_objdir/$soname.def;
12660 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12661 else
12662 ld_shlibs_GO=no
12666 haiku*)
12667 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12668 link_all_deplibs_GO=yes
12671 interix[3-9]*)
12672 hardcode_direct_GO=no
12673 hardcode_shlibpath_var_GO=no
12674 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12675 export_dynamic_flag_spec_GO='${wl}-E'
12676 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12677 # Instead, shared libraries are loaded at an image base (0x10000000 by
12678 # default) and relocated if they conflict, which is a slow very memory
12679 # consuming and fragmenting process. To avoid this, we pick a random,
12680 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12681 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12682 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'
12683 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'
12686 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12687 tmp_diet=no
12688 if test "$host_os" = linux-dietlibc; then
12689 case $cc_basename in
12690 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12691 esac
12693 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12694 && test "$tmp_diet" = no
12695 then
12696 tmp_addflag=
12697 tmp_sharedflag='-shared'
12698 case $cc_basename,$host_cpu in
12699 pgcc*) # Portland Group C compiler
12700 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'
12701 tmp_addflag=' $pic_flag'
12703 pgf77* | pgf90* | pgf95* | pgfortran*)
12704 # Portland Group f77 and f90 compilers
12705 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'
12706 tmp_addflag=' $pic_flag -Mnomain' ;;
12707 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12708 tmp_addflag=' -i_dynamic' ;;
12709 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12710 tmp_addflag=' -i_dynamic -nofor_main' ;;
12711 ifc* | ifort*) # Intel Fortran compiler
12712 tmp_addflag=' -nofor_main' ;;
12713 lf95*) # Lahey Fortran 8.1
12714 whole_archive_flag_spec_GO=
12715 tmp_sharedflag='--shared' ;;
12716 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12717 tmp_sharedflag='-qmkshrobj'
12718 tmp_addflag= ;;
12719 nvcc*) # Cuda Compiler Driver 2.2
12720 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'
12721 compiler_needs_object_GO=yes
12723 esac
12724 case `$CC -V 2>&1 | sed 5q` in
12725 *Sun\ C*) # Sun C 5.9
12726 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'
12727 compiler_needs_object_GO=yes
12728 tmp_sharedflag='-G' ;;
12729 *Sun\ F*) # Sun Fortran 8.3
12730 tmp_sharedflag='-G' ;;
12731 esac
12732 archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12734 if test "x$supports_anon_versioning" = xyes; then
12735 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12736 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12737 echo "local: *; };" >> $output_objdir/$libname.ver~
12738 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12741 case $cc_basename in
12742 xlf* | bgf* | bgxlf* | mpixlf*)
12743 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12744 whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12745 hardcode_libdir_flag_spec_GO=
12746 hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12747 archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12748 if test "x$supports_anon_versioning" = xyes; then
12749 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12750 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12751 echo "local: *; };" >> $output_objdir/$libname.ver~
12752 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12755 esac
12756 else
12757 ld_shlibs_GO=no
12761 netbsd*)
12762 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12763 archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12764 wlarc=
12765 else
12766 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12767 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12771 solaris*)
12772 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12773 ld_shlibs_GO=no
12774 cat <<_LT_EOF 1>&2
12776 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12777 *** create shared libraries on Solaris systems. Therefore, libtool
12778 *** is disabling shared libraries support. We urge you to upgrade GNU
12779 *** binutils to release 2.9.1 or newer. Another option is to modify
12780 *** your PATH or compiler configuration so that the native linker is
12781 *** used, and then restart.
12783 _LT_EOF
12784 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12785 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12786 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12787 else
12788 ld_shlibs_GO=no
12792 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12793 case `$LD -v 2>&1` in
12794 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12795 ld_shlibs_GO=no
12796 cat <<_LT_EOF 1>&2
12798 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12799 *** reliably create shared libraries on SCO systems. Therefore, libtool
12800 *** is disabling shared libraries support. We urge you to upgrade GNU
12801 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12802 *** your PATH or compiler configuration so that the native linker is
12803 *** used, and then restart.
12805 _LT_EOF
12808 # For security reasons, it is highly recommended that you always
12809 # use absolute paths for naming shared libraries, and exclude the
12810 # DT_RUNPATH tag from executables and libraries. But doing so
12811 # requires that you compile everything twice, which is a pain.
12812 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12813 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12814 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12815 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12816 else
12817 ld_shlibs_GO=no
12820 esac
12823 sunos4*)
12824 archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12825 wlarc=
12826 hardcode_direct_GO=yes
12827 hardcode_shlibpath_var_GO=no
12831 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12832 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12833 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12834 else
12835 ld_shlibs_GO=no
12838 esac
12840 if test "$ld_shlibs_GO" = no; then
12841 runpath_var=
12842 hardcode_libdir_flag_spec_GO=
12843 export_dynamic_flag_spec_GO=
12844 whole_archive_flag_spec_GO=
12846 else
12847 # PORTME fill in a description of your system's linker (not GNU ld)
12848 case $host_os in
12849 aix3*)
12850 allow_undefined_flag_GO=unsupported
12851 always_export_symbols_GO=yes
12852 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'
12853 # Note: this linker hardcodes the directories in LIBPATH if there
12854 # are no directories specified by -L.
12855 hardcode_minus_L_GO=yes
12856 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12857 # Neither direct hardcoding nor static linking is supported with a
12858 # broken collect2.
12859 hardcode_direct_GO=unsupported
12863 aix[4-9]*)
12864 if test "$host_cpu" = ia64; then
12865 # On IA64, the linker does run time linking by default, so we don't
12866 # have to do anything special.
12867 aix_use_runtimelinking=no
12868 exp_sym_flag='-Bexport'
12869 no_entry_flag=""
12870 else
12871 # If we're using GNU nm, then we don't want the "-C" option.
12872 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12873 # Also, AIX nm treats weak defined symbols like other global
12874 # defined symbols, whereas GNU nm marks them as "W".
12875 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12876 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'
12877 else
12878 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'
12880 aix_use_runtimelinking=no
12882 # Test if we are trying to use run time linking or normal
12883 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12884 # need to do runtime linking.
12885 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12886 for ld_flag in $LDFLAGS; do
12887 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12888 aix_use_runtimelinking=yes
12889 break
12891 done
12893 esac
12895 exp_sym_flag='-bexport'
12896 no_entry_flag='-bnoentry'
12899 # When large executables or shared objects are built, AIX ld can
12900 # have problems creating the table of contents. If linking a library
12901 # or program results in "error TOC overflow" add -mminimal-toc to
12902 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12903 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12905 archive_cmds_GO=''
12906 hardcode_direct_GO=yes
12907 hardcode_direct_absolute_GO=yes
12908 hardcode_libdir_separator_GO=':'
12909 link_all_deplibs_GO=yes
12910 file_list_spec_GO='${wl}-f,'
12912 if test "$GCC" = yes; then
12913 case $host_os in aix4.[012]|aix4.[012].*)
12914 # We only want to do this on AIX 4.2 and lower, the check
12915 # below for broken collect2 doesn't work under 4.3+
12916 collect2name=`${CC} -print-prog-name=collect2`
12917 if test -f "$collect2name" &&
12918 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12919 then
12920 # We have reworked collect2
12922 else
12923 # We have old collect2
12924 hardcode_direct_GO=unsupported
12925 # It fails to find uninstalled libraries when the uninstalled
12926 # path is not listed in the libpath. Setting hardcode_minus_L
12927 # to unsupported forces relinking
12928 hardcode_minus_L_GO=yes
12929 hardcode_libdir_flag_spec_GO='-L$libdir'
12930 hardcode_libdir_separator_GO=
12933 esac
12934 shared_flag='-shared'
12935 if test "$aix_use_runtimelinking" = yes; then
12936 shared_flag="$shared_flag "'${wl}-G'
12938 else
12939 # not using gcc
12940 if test "$host_cpu" = ia64; then
12941 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12942 # chokes on -Wl,-G. The following line is correct:
12943 shared_flag='-G'
12944 else
12945 if test "$aix_use_runtimelinking" = yes; then
12946 shared_flag='${wl}-G'
12947 else
12948 shared_flag='${wl}-bM:SRE'
12953 export_dynamic_flag_spec_GO='${wl}-bexpall'
12954 # It seems that -bexpall does not export symbols beginning with
12955 # underscore (_), so it is better to generate a list of symbols to export.
12956 always_export_symbols_GO=yes
12957 if test "$aix_use_runtimelinking" = yes; then
12958 # Warning - without using the other runtime loading flags (-brtl),
12959 # -berok will link without error, but may produce a broken library.
12960 allow_undefined_flag_GO='-berok'
12961 # Determine the default libpath from the value encoded in an
12962 # empty executable.
12963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12964 /* end confdefs.h. */
12967 main ()
12971 return 0;
12973 _ACEOF
12974 if ac_fn_c_try_link "$LINENO"; then :
12976 lt_aix_libpath_sed='
12977 /Import File Strings/,/^$/ {
12978 /^0/ {
12979 s/^0 *\(.*\)$/\1/
12983 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12984 # Check for a 64-bit object if we didn't find anything.
12985 if test -z "$aix_libpath"; then
12986 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12989 rm -f core conftest.err conftest.$ac_objext \
12990 conftest$ac_exeext conftest.$ac_ext
12991 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12993 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12994 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"
12995 else
12996 if test "$host_cpu" = ia64; then
12997 hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12998 allow_undefined_flag_GO="-z nodefs"
12999 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"
13000 else
13001 # Determine the default libpath from the value encoded in an
13002 # empty executable.
13003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13004 /* end confdefs.h. */
13007 main ()
13011 return 0;
13013 _ACEOF
13014 if ac_fn_c_try_link "$LINENO"; then :
13016 lt_aix_libpath_sed='
13017 /Import File Strings/,/^$/ {
13018 /^0/ {
13019 s/^0 *\(.*\)$/\1/
13023 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13024 # Check for a 64-bit object if we didn't find anything.
13025 if test -z "$aix_libpath"; then
13026 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13029 rm -f core conftest.err conftest.$ac_objext \
13030 conftest$ac_exeext conftest.$ac_ext
13031 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13033 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
13034 # Warning - without using the other run time loading flags,
13035 # -berok will link without error, but may produce a broken library.
13036 no_undefined_flag_GO=' ${wl}-bernotok'
13037 allow_undefined_flag_GO=' ${wl}-berok'
13038 if test "$with_gnu_ld" = yes; then
13039 # We only use this code for GNU lds that support --whole-archive.
13040 whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13041 else
13042 # Exported symbols can be pulled into shared objects from archives
13043 whole_archive_flag_spec_GO='$convenience'
13045 archive_cmds_need_lc_GO=yes
13046 # This is similar to how AIX traditionally builds its shared libraries.
13047 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'
13052 amigaos*)
13053 case $host_cpu in
13054 powerpc)
13055 # see comment about AmigaOS4 .so support
13056 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13057 archive_expsym_cmds_GO=''
13059 m68k)
13060 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)'
13061 hardcode_libdir_flag_spec_GO='-L$libdir'
13062 hardcode_minus_L_GO=yes
13064 esac
13067 bsdi[45]*)
13068 export_dynamic_flag_spec_GO=-rdynamic
13071 cygwin* | mingw* | pw32* | cegcc*)
13072 # When not using gcc, we currently assume that we are using
13073 # Microsoft Visual C++.
13074 # hardcode_libdir_flag_spec is actually meaningless, as there is
13075 # no search path for DLLs.
13076 hardcode_libdir_flag_spec_GO=' '
13077 allow_undefined_flag_GO=unsupported
13078 # Tell ltmain to make .lib files, not .a files.
13079 libext=lib
13080 # Tell ltmain to make .dll files, not .so files.
13081 shrext_cmds=".dll"
13082 # FIXME: Setting linknames here is a bad hack.
13083 archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13084 # The linker will automatically build a .lib file if we build a DLL.
13085 old_archive_from_new_cmds_GO='true'
13086 # FIXME: Should let the user specify the lib program.
13087 old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
13088 fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
13089 enable_shared_with_static_runtimes_GO=yes
13092 darwin* | rhapsody*)
13095 archive_cmds_need_lc_GO=no
13096 hardcode_direct_GO=no
13097 hardcode_automatic_GO=yes
13098 hardcode_shlibpath_var_GO=unsupported
13099 if test "$lt_cv_ld_force_load" = "yes"; then
13100 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\"`'
13101 else
13102 whole_archive_flag_spec_GO=''
13104 link_all_deplibs_GO=yes
13105 allow_undefined_flag_GO="$_lt_dar_allow_undefined"
13106 case $cc_basename in
13107 ifort*) _lt_dar_can_shared=yes ;;
13108 *) _lt_dar_can_shared=$GCC ;;
13109 esac
13110 if test "$_lt_dar_can_shared" = "yes"; then
13111 output_verbose_link_cmd=func_echo_all
13112 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}"
13113 module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13114 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}"
13115 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}"
13117 else
13118 ld_shlibs_GO=no
13123 dgux*)
13124 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13125 hardcode_libdir_flag_spec_GO='-L$libdir'
13126 hardcode_shlibpath_var_GO=no
13129 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13130 # support. Future versions do this automatically, but an explicit c++rt0.o
13131 # does not break anything, and helps significantly (at the cost of a little
13132 # extra space).
13133 freebsd2.2*)
13134 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13135 hardcode_libdir_flag_spec_GO='-R$libdir'
13136 hardcode_direct_GO=yes
13137 hardcode_shlibpath_var_GO=no
13140 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13141 freebsd2.*)
13142 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13143 hardcode_direct_GO=yes
13144 hardcode_minus_L_GO=yes
13145 hardcode_shlibpath_var_GO=no
13148 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13149 freebsd* | dragonfly*)
13150 archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13151 hardcode_libdir_flag_spec_GO='-R$libdir'
13152 hardcode_direct_GO=yes
13153 hardcode_shlibpath_var_GO=no
13156 hpux9*)
13157 if test "$GCC" = yes; then
13158 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'
13159 else
13160 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'
13162 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
13163 hardcode_libdir_separator_GO=:
13164 hardcode_direct_GO=yes
13166 # hardcode_minus_L: Not really in the search PATH,
13167 # but as the default location of the library.
13168 hardcode_minus_L_GO=yes
13169 export_dynamic_flag_spec_GO='${wl}-E'
13172 hpux10*)
13173 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13174 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13175 else
13176 archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13178 if test "$with_gnu_ld" = no; then
13179 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
13180 hardcode_libdir_flag_spec_ld_GO='+b $libdir'
13181 hardcode_libdir_separator_GO=:
13182 hardcode_direct_GO=yes
13183 hardcode_direct_absolute_GO=yes
13184 export_dynamic_flag_spec_GO='${wl}-E'
13185 # hardcode_minus_L: Not really in the search PATH,
13186 # but as the default location of the library.
13187 hardcode_minus_L_GO=yes
13191 hpux11*)
13192 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13193 case $host_cpu in
13194 hppa*64*)
13195 archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13197 ia64*)
13198 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13201 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13203 esac
13204 else
13205 case $host_cpu in
13206 hppa*64*)
13207 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13209 ia64*)
13210 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13213 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13215 esac
13217 if test "$with_gnu_ld" = no; then
13218 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
13219 hardcode_libdir_separator_GO=:
13221 case $host_cpu in
13222 hppa*64*|ia64*)
13223 hardcode_direct_GO=no
13224 hardcode_shlibpath_var_GO=no
13227 hardcode_direct_GO=yes
13228 hardcode_direct_absolute_GO=yes
13229 export_dynamic_flag_spec_GO='${wl}-E'
13231 # hardcode_minus_L: Not really in the search PATH,
13232 # but as the default location of the library.
13233 hardcode_minus_L_GO=yes
13235 esac
13239 irix5* | irix6* | nonstopux*)
13240 if test "$GCC" = yes; then
13241 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'
13242 # Try to use the -exported_symbol ld option, if it does not
13243 # work, assume that -exports_file does not work either and
13244 # implicitly export all symbols.
13245 save_LDFLAGS="$LDFLAGS"
13246 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13248 /* end confdefs.h. */
13249 int foo(void) {}
13250 _ACEOF
13251 if ac_fn_c_try_link "$LINENO"; then :
13252 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'
13255 rm -f core conftest.err conftest.$ac_objext \
13256 conftest$ac_exeext conftest.$ac_ext
13257 LDFLAGS="$save_LDFLAGS"
13258 else
13259 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'
13260 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'
13262 archive_cmds_need_lc_GO='no'
13263 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
13264 hardcode_libdir_separator_GO=:
13265 inherit_rpath_GO=yes
13266 link_all_deplibs_GO=yes
13269 netbsd*)
13270 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13271 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13272 else
13273 archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13275 hardcode_libdir_flag_spec_GO='-R$libdir'
13276 hardcode_direct_GO=yes
13277 hardcode_shlibpath_var_GO=no
13280 newsos6)
13281 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13282 hardcode_direct_GO=yes
13283 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
13284 hardcode_libdir_separator_GO=:
13285 hardcode_shlibpath_var_GO=no
13288 *nto* | *qnx*)
13291 openbsd*)
13292 if test -f /usr/libexec/ld.so; then
13293 hardcode_direct_GO=yes
13294 hardcode_shlibpath_var_GO=no
13295 hardcode_direct_absolute_GO=yes
13296 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13297 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13298 archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13299 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
13300 export_dynamic_flag_spec_GO='${wl}-E'
13301 else
13302 case $host_os in
13303 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13304 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13305 hardcode_libdir_flag_spec_GO='-R$libdir'
13308 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13309 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
13311 esac
13313 else
13314 ld_shlibs_GO=no
13318 os2*)
13319 hardcode_libdir_flag_spec_GO='-L$libdir'
13320 hardcode_minus_L_GO=yes
13321 allow_undefined_flag_GO=unsupported
13322 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'
13323 old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13326 osf3*)
13327 if test "$GCC" = yes; then
13328 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
13329 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'
13330 else
13331 allow_undefined_flag_GO=' -expect_unresolved \*'
13332 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'
13334 archive_cmds_need_lc_GO='no'
13335 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
13336 hardcode_libdir_separator_GO=:
13339 osf4* | osf5*) # as osf3* with the addition of -msym flag
13340 if test "$GCC" = yes; then
13341 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
13342 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'
13343 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
13344 else
13345 allow_undefined_flag_GO=' -expect_unresolved \*'
13346 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'
13347 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~
13348 $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'
13350 # Both c and cxx compiler support -rpath directly
13351 hardcode_libdir_flag_spec_GO='-rpath $libdir'
13353 archive_cmds_need_lc_GO='no'
13354 hardcode_libdir_separator_GO=:
13357 solaris*)
13358 no_undefined_flag_GO=' -z defs'
13359 if test "$GCC" = yes; then
13360 wlarc='${wl}'
13361 archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13362 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13363 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13364 else
13365 case `$CC -V 2>&1` in
13366 *"Compilers 5.0"*)
13367 wlarc=''
13368 archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13369 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13370 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13373 wlarc='${wl}'
13374 archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13375 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13376 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13378 esac
13380 hardcode_libdir_flag_spec_GO='-R$libdir'
13381 hardcode_shlibpath_var_GO=no
13382 case $host_os in
13383 solaris2.[0-5] | solaris2.[0-5].*) ;;
13385 # The compiler driver will combine and reorder linker options,
13386 # but understands `-z linker_flag'. GCC discards it without `$wl',
13387 # but is careful enough not to reorder.
13388 # Supported since Solaris 2.6 (maybe 2.5.1?)
13389 if test "$GCC" = yes; then
13390 whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13391 else
13392 whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
13395 esac
13396 link_all_deplibs_GO=yes
13399 sunos4*)
13400 if test "x$host_vendor" = xsequent; then
13401 # Use $CC to link under sequent, because it throws in some extra .o
13402 # files that make .init and .fini sections work.
13403 archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13404 else
13405 archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13407 hardcode_libdir_flag_spec_GO='-L$libdir'
13408 hardcode_direct_GO=yes
13409 hardcode_minus_L_GO=yes
13410 hardcode_shlibpath_var_GO=no
13413 sysv4)
13414 case $host_vendor in
13415 sni)
13416 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13417 hardcode_direct_GO=yes # is this really true???
13419 siemens)
13420 ## LD is ld it makes a PLAMLIB
13421 ## CC just makes a GrossModule.
13422 archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13423 reload_cmds_GO='$CC -r -o $output$reload_objs'
13424 hardcode_direct_GO=no
13426 motorola)
13427 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13428 hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
13430 esac
13431 runpath_var='LD_RUN_PATH'
13432 hardcode_shlibpath_var_GO=no
13435 sysv4.3*)
13436 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13437 hardcode_shlibpath_var_GO=no
13438 export_dynamic_flag_spec_GO='-Bexport'
13441 sysv4*MP*)
13442 if test -d /usr/nec; then
13443 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13444 hardcode_shlibpath_var_GO=no
13445 runpath_var=LD_RUN_PATH
13446 hardcode_runpath_var=yes
13447 ld_shlibs_GO=yes
13451 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13452 no_undefined_flag_GO='${wl}-z,text'
13453 archive_cmds_need_lc_GO=no
13454 hardcode_shlibpath_var_GO=no
13455 runpath_var='LD_RUN_PATH'
13457 if test "$GCC" = yes; then
13458 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13459 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13460 else
13461 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13462 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13466 sysv5* | sco3.2v5* | sco5v6*)
13467 # Note: We can NOT use -z defs as we might desire, because we do not
13468 # link with -lc, and that would cause any symbols used from libc to
13469 # always be unresolved, which means just about no library would
13470 # ever link correctly. If we're not using GNU ld we use -z text
13471 # though, which does catch some bad symbols but isn't as heavy-handed
13472 # as -z defs.
13473 no_undefined_flag_GO='${wl}-z,text'
13474 allow_undefined_flag_GO='${wl}-z,nodefs'
13475 archive_cmds_need_lc_GO=no
13476 hardcode_shlibpath_var_GO=no
13477 hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
13478 hardcode_libdir_separator_GO=':'
13479 link_all_deplibs_GO=yes
13480 export_dynamic_flag_spec_GO='${wl}-Bexport'
13481 runpath_var='LD_RUN_PATH'
13483 if test "$GCC" = yes; then
13484 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13485 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13486 else
13487 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13488 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13492 uts4*)
13493 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13494 hardcode_libdir_flag_spec_GO='-L$libdir'
13495 hardcode_shlibpath_var_GO=no
13499 ld_shlibs_GO=no
13501 esac
13503 if test x$host_vendor = xsni; then
13504 case $host in
13505 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13506 export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
13508 esac
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
13513 $as_echo "$ld_shlibs_GO" >&6; }
13514 test "$ld_shlibs_GO" = no && can_build_shared=no
13516 with_gnu_ld_GO=$with_gnu_ld
13524 # Do we need to explicitly link libc?
13526 case "x$archive_cmds_need_lc_GO" in
13527 x|xyes)
13528 # Assume -lc should be added
13529 archive_cmds_need_lc_GO=yes
13531 if test "$enable_shared" = yes && test "$GCC" = yes; then
13532 case $archive_cmds_GO in
13533 *'~'*)
13534 # FIXME: we may have to deal with multi-command sequences.
13536 '$CC '*)
13537 # Test whether the compiler implicitly links with -lc since on some
13538 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13539 # to ld, don't add -lc before -lgcc.
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13541 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13542 if ${lt_cv_archive_cmds_need_lc_GO+:} false; then :
13543 $as_echo_n "(cached) " >&6
13544 else
13545 $RM conftest*
13546 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13548 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13549 (eval $ac_compile) 2>&5
13550 ac_status=$?
13551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13552 test $ac_status = 0; } 2>conftest.err; then
13553 soname=conftest
13554 lib=conftest
13555 libobjs=conftest.$ac_objext
13556 deplibs=
13557 wl=$lt_prog_compiler_wl_GO
13558 pic_flag=$lt_prog_compiler_pic_GO
13559 compiler_flags=-v
13560 linker_flags=-v
13561 verstring=
13562 output_objdir=.
13563 libname=conftest
13564 lt_save_allow_undefined_flag=$allow_undefined_flag_GO
13565 allow_undefined_flag_GO=
13566 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13567 (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13568 ac_status=$?
13569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13570 test $ac_status = 0; }
13571 then
13572 lt_cv_archive_cmds_need_lc_GO=no
13573 else
13574 lt_cv_archive_cmds_need_lc_GO=yes
13576 allow_undefined_flag_GO=$lt_save_allow_undefined_flag
13577 else
13578 cat conftest.err 1>&5
13580 $RM conftest*
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13584 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13585 archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
13587 esac
13590 esac
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13656 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13657 hardcode_action_GO=
13658 if test -n "$hardcode_libdir_flag_spec_GO" ||
13659 test -n "$runpath_var_GO" ||
13660 test "X$hardcode_automatic_GO" = "Xyes" ; then
13662 # We can hardcode non-existent directories.
13663 if test "$hardcode_direct_GO" != no &&
13664 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13665 # have to relink, otherwise we might link with an installed library
13666 # when we should be linking with a yet-to-be-installed one
13667 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13668 test "$hardcode_minus_L_GO" != no; then
13669 # Linking always hardcodes the temporary library directory.
13670 hardcode_action_GO=relink
13671 else
13672 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13673 hardcode_action_GO=immediate
13675 else
13676 # We cannot hardcode anything, or else we can only hardcode existing
13677 # directories.
13678 hardcode_action_GO=unsupported
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13681 $as_echo "$hardcode_action_GO" >&6; }
13683 if test "$hardcode_action_GO" = relink ||
13684 test "$inherit_rpath_GO" = yes; then
13685 # Fast installation is not supported
13686 enable_fast_install=no
13687 elif test "$shlibpath_overrides_runpath" = yes ||
13688 test "$enable_shared" = no; then
13689 # Fast installation is not necessary
13690 enable_fast_install=needless
13701 ac_ext=c
13702 ac_cpp='$CPP $CPPFLAGS'
13703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13708 GCC=$lt_save_GCC
13709 CC="$lt_save_CC"
13714 ac_config_commands="$ac_config_commands libtool"
13719 # Only expand once:
13725 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
13728 for ac_prog in gawk mawk nawk awk
13730 # Extract the first word of "$ac_prog", so it can be a program name with args.
13731 set dummy $ac_prog; ac_word=$2
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13733 $as_echo_n "checking for $ac_word... " >&6; }
13734 if ${ac_cv_prog_AWK+:} false; then :
13735 $as_echo_n "(cached) " >&6
13736 else
13737 if test -n "$AWK"; then
13738 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13739 else
13740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13741 for as_dir in $PATH
13743 IFS=$as_save_IFS
13744 test -z "$as_dir" && as_dir=.
13745 for ac_exec_ext in '' $ac_executable_extensions; do
13746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13747 ac_cv_prog_AWK="$ac_prog"
13748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13749 break 2
13751 done
13752 done
13753 IFS=$as_save_IFS
13757 AWK=$ac_cv_prog_AWK
13758 if test -n "$AWK"; then
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13760 $as_echo "$AWK" >&6; }
13761 else
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13763 $as_echo "no" >&6; }
13767 test -n "$AWK" && break
13768 done
13771 WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13774 # Check whether --enable-werror was given.
13775 if test "${enable_werror+set}" = set; then :
13776 enableval=$enable_werror;
13779 if test "x$enable_werror" != "xno"; then
13780 WERROR="-Werror"
13784 glibgo_toolexecdir=no
13785 glibgo_toolexeclibdir=no
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13788 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13789 # Check whether --enable-version-specific-runtime-libs was given.
13790 if test "${enable_version_specific_runtime_libs+set}" = set; then :
13791 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13792 yes) version_specific_libs=yes ;;
13793 no) version_specific_libs=no ;;
13794 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13795 esac
13796 else
13797 version_specific_libs=no
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13801 $as_echo "$version_specific_libs" >&6; }
13803 # Version-specific runtime libs processing.
13804 if test $version_specific_libs = yes; then
13805 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13806 glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13809 # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13810 # Install a library built with a cross compiler in tooldir, not libdir.
13811 if test -n "$with_cross_host" &&
13812 test x"$with_cross_host" != x"no"; then
13813 nover_glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13814 nover_glibgo_toolexeclibdir='${toolexecdir}/lib'
13815 else
13816 nover_glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13817 nover_glibgo_toolexeclibdir='${libdir}'
13819 multi_os_directory=`$GOC -print-multi-os-directory`
13820 case $multi_os_directory in
13821 .) ;; # Avoid trailing /.
13822 *) nover_glibgo_toolexeclibdir=${nover_glibgo_toolexeclibdir}/${multi_os_directory} ;;
13823 esac
13825 if test x"$glibgo_toolexecdir" = x"no"; then
13826 glibgo_toolexecdir="${nover_glibgo_toolexecdir}"
13827 glibgo_toolexeclibdir="${nover_glibgo_toolexeclibdir}"
13834 # See if the user wants to configure without libffi. Some
13835 # architectures don't support it. FIXME: We should set a default
13836 # based on the host.
13838 # Check whether --with-libffi was given.
13839 if test "${with_libffi+set}" = set; then :
13840 withval=$with_libffi; :
13841 else
13842 with_libffi=${with_libffi_default-yes}
13846 LIBFFI=
13847 LIBFFIINCS=
13848 if test "$with_libffi" != no; then
13850 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
13852 LIBFFI=../libffi/libffi_convenience.la
13853 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13857 if test "$with_libffi" != "no"; then
13858 USE_LIBFFI_TRUE=
13859 USE_LIBFFI_FALSE='#'
13860 else
13861 USE_LIBFFI_TRUE='#'
13862 USE_LIBFFI_FALSE=
13866 # See if the user wants to configure without libatomic. This is useful if we are
13867 # on an architecture for which libgo does not need an atomic support library and
13868 # libatomic does not support our C compiler.
13870 # Check whether --with-libatomic was given.
13871 if test "${with_libatomic+set}" = set; then :
13872 withval=$with_libatomic; :
13873 else
13874 with_libatomic=${with_libatomic_default-yes}
13878 LIBATOMIC=
13879 if test "$with_libatomic" != no; then
13880 LIBATOMIC=../libatomic/libatomic_convenience.la
13884 # Used to tell GNU make to include a file without telling automake to
13885 # include it.
13886 go_include="-include"
13889 # All known GOOS values. This is the union of all operating systems
13890 # supported by the gofrontend and all operating systems supported by
13891 # the gc toolchain.
13892 ALLGOOS="aix android darwin dragonfly freebsd hurd illumos irix js linux netbsd openbsd plan9 rtems solaris windows"
13894 is_darwin=no
13895 is_freebsd=no
13896 is_irix=no
13897 is_linux=no
13898 is_netbsd=no
13899 is_openbsd=no
13900 is_dragonfly=no
13901 is_rtems=no
13902 is_solaris=no
13903 is_aix=no
13904 is_hurd=no
13905 GOOS=unknown
13906 case ${host} in
13907 *-*-darwin*) is_darwin=yes; GOOS=darwin ;;
13908 *-*-freebsd*) is_freebsd=yes; GOOS=freebsd ;;
13909 *-*-irix6*) is_irix=yes; GOOS=irix ;;
13910 *-*-linux*) is_linux=yes; GOOS=linux ;;
13911 *-*-netbsd*) is_netbsd=yes; GOOS=netbsd ;;
13912 *-*-openbsd*) is_openbsd=yes; GOOS=openbsd ;;
13913 *-*-dragonfly*) is_dragonfly=yes; GOOS=dragonfly ;;
13914 *-*-rtems*) is_rtems=yes; GOOS=rtems ;;
13915 *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
13916 *-*-aix*) is_aix=yes; GOOS=aix ;;
13917 *-*-gnu*) is_hurd=yes; GOOS=hurd ;;
13918 esac
13919 if test $is_darwin = yes; then
13920 LIBGO_IS_DARWIN_TRUE=
13921 LIBGO_IS_DARWIN_FALSE='#'
13922 else
13923 LIBGO_IS_DARWIN_TRUE='#'
13924 LIBGO_IS_DARWIN_FALSE=
13927 if test $is_freebsd = yes; then
13928 LIBGO_IS_FREEBSD_TRUE=
13929 LIBGO_IS_FREEBSD_FALSE='#'
13930 else
13931 LIBGO_IS_FREEBSD_TRUE='#'
13932 LIBGO_IS_FREEBSD_FALSE=
13935 if test $is_irix = yes; then
13936 LIBGO_IS_IRIX_TRUE=
13937 LIBGO_IS_IRIX_FALSE='#'
13938 else
13939 LIBGO_IS_IRIX_TRUE='#'
13940 LIBGO_IS_IRIX_FALSE=
13943 if test $is_linux = yes; then
13944 LIBGO_IS_LINUX_TRUE=
13945 LIBGO_IS_LINUX_FALSE='#'
13946 else
13947 LIBGO_IS_LINUX_TRUE='#'
13948 LIBGO_IS_LINUX_FALSE=
13951 if test $is_netbsd = yes; then
13952 LIBGO_IS_NETBSD_TRUE=
13953 LIBGO_IS_NETBSD_FALSE='#'
13954 else
13955 LIBGO_IS_NETBSD_TRUE='#'
13956 LIBGO_IS_NETBSD_FALSE=
13959 if test $is_openbsd = yes; then
13960 LIBGO_IS_OPENBSD_TRUE=
13961 LIBGO_IS_OPENBSD_FALSE='#'
13962 else
13963 LIBGO_IS_OPENBSD_TRUE='#'
13964 LIBGO_IS_OPENBSD_FALSE=
13967 if test $is_dragonfly = yes; then
13968 LIBGO_IS_DRAGONFLY_TRUE=
13969 LIBGO_IS_DRAGONFLY_FALSE='#'
13970 else
13971 LIBGO_IS_DRAGONFLY_TRUE='#'
13972 LIBGO_IS_DRAGONFLY_FALSE=
13975 if test $is_rtems = yes; then
13976 LIBGO_IS_RTEMS_TRUE=
13977 LIBGO_IS_RTEMS_FALSE='#'
13978 else
13979 LIBGO_IS_RTEMS_TRUE='#'
13980 LIBGO_IS_RTEMS_FALSE=
13983 if test $is_solaris = yes; then
13984 LIBGO_IS_SOLARIS_TRUE=
13985 LIBGO_IS_SOLARIS_FALSE='#'
13986 else
13987 LIBGO_IS_SOLARIS_TRUE='#'
13988 LIBGO_IS_SOLARIS_FALSE=
13991 if test $is_aix = yes; then
13992 LIBGO_IS_AIX_TRUE=
13993 LIBGO_IS_AIX_FALSE='#'
13994 else
13995 LIBGO_IS_AIX_TRUE='#'
13996 LIBGO_IS_AIX_FALSE=
13999 if test $is_hurd = yes; then
14000 LIBGO_IS_HURD_TRUE=
14001 LIBGO_IS_HURD_FALSE='#'
14002 else
14003 LIBGO_IS_HURD_TRUE='#'
14004 LIBGO_IS_HURD_FALSE=
14007 if test $is_darwin = yes -o $is_dragonfly = yes -o $is_freebsd = yes -o $is_netbsd = yes -o $is_openbsd = yes; then
14008 LIBGO_IS_BSD_TRUE=
14009 LIBGO_IS_BSD_FALSE='#'
14010 else
14011 LIBGO_IS_BSD_TRUE='#'
14012 LIBGO_IS_BSD_FALSE=
14018 USE_DEJAGNU=no
14019 case ${host} in
14020 *-*-rtems*) USE_DEJAGNU=yes ;;
14021 ${build}) ;;
14022 *) USE_DEJAGNU=yes ;;
14023 esac
14026 # All known GOARCH values. This is the union of all architectures
14027 # supported by the gofrontend and all architectures supported by the
14028 # gc toolchain.
14029 # To add a new architecture:
14030 # - add it to this list
14031 # - if appropriate, add an entry to ALLGOARCHFAMILY below
14032 # - add an entry to the case on ${host} below to set GOARCH
14033 # - update goarchList in libgo/go/go/build/syslist.go
14034 # - update goarch.sh to report the values for this architecture
14035 # - update go-set-goarch in gcc/testsuite/go.test/go-test.exp
14036 # - update ptrSizeMap and intSizeMap in libgo/go/cmd/cgo/main.go
14037 # - update arch lists in libgo/match.sh
14038 # - update arch lists in libgo/testsuite/gotest
14039 # - update +build lines in several places
14040 # - libgo/go/runtime/lfstack_NNbit.go
14041 # - libgo/go/runtime/hashNN.go
14042 # - libgo/go/runtime/unalignedN.go
14043 # - libgo/go/syscall/endian_XX.go
14044 # - possibly others
14045 # - possibly update files in libgo/go/internal/syscall/unix
14046 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"
14048 # All known GOARCH family values.
14049 ALLGOARCHFAMILY="I386 ALPHA AMD64 ARM ARM64 IA64 M68K MIPS MIPS64 NIOS2 PPC PPC64 RISCV RISCV64 S390 S390X SH SPARC SPARC64 WASM"
14051 GOARCH=unknown
14052 case ${host} in
14053 alpha*-*-*)
14054 GOARCH=alpha
14056 aarch64-*-*)
14057 GOARCH=arm64
14059 aarch64_be-*-*)
14060 GOARCH=arm64be
14062 arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
14063 GOARCH=arm
14064 case ${host} in
14065 arm*b*-*-*)
14066 GOARCH=armbe
14068 esac
14070 i[34567]86-*-* | x86_64-*-*)
14071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14072 /* end confdefs.h. */
14074 #ifdef __x86_64__
14075 #error 64-bit
14076 #endif
14078 _ACEOF
14079 if ac_fn_c_try_compile "$LINENO"; then :
14080 GOARCH=386
14081 else
14082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14083 /* end confdefs.h. */
14085 #ifdef __ILP32__
14086 #error x32
14087 #endif
14089 _ACEOF
14090 if ac_fn_c_try_compile "$LINENO"; then :
14091 GOARCH=amd64
14092 else
14093 GOARCH=amd64p32
14095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14099 ia64-*-*)
14100 GOARCH=ia64
14102 m68k*-*-*)
14103 GOARCH=m68k
14105 mips*-*-*)
14106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14107 /* end confdefs.h. */
14109 #if _MIPS_SIM != _ABIO32
14110 #error not o32
14111 #endif
14113 _ACEOF
14114 if ac_fn_c_try_compile "$LINENO"; then :
14115 mips_abi="o32"
14116 else
14117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14118 /* end confdefs.h. */
14120 #if _MIPS_SIM != _ABIN32
14121 #error not n32
14122 #endif
14124 _ACEOF
14125 if ac_fn_c_try_compile "$LINENO"; then :
14126 mips_abi="n32"
14127 else
14128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14129 /* end confdefs.h. */
14131 #if _MIPS_SIM != _ABI64
14132 #error not n64
14133 #endif
14135 _ACEOF
14136 if ac_fn_c_try_compile "$LINENO"; then :
14137 mips_abi="n64"
14138 else
14139 as_fn_error $? "unknown MIPS ABI" "$LINENO" 5
14140 mips_abi="n32"
14142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14147 case "$mips_abi" in
14148 "o32") GOARCH=mips ;;
14149 "n32") GOARCH=mips64p32 ;;
14150 "n64") GOARCH=mips64 ;;
14151 esac
14152 case "${host}" in
14153 mips*el-*-*)
14154 GOARCH="${GOARCH}le"
14156 esac
14158 nios2-*-*)
14159 GOARCH=nios2
14161 rs6000*-*-* | powerpc*-*-*)
14162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14163 /* end confdefs.h. */
14165 #ifdef _ARCH_PPC64
14166 #error 64-bit
14167 #endif
14169 _ACEOF
14170 if ac_fn_c_try_compile "$LINENO"; then :
14171 GOARCH=ppc
14172 else
14174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14175 /* end confdefs.h. */
14177 #if defined(_BIG_ENDIAN) || defined(__BIG_ENDIAN__)
14178 #error 64be
14179 #endif
14181 _ACEOF
14182 if ac_fn_c_try_compile "$LINENO"; then :
14183 GOARCH=ppc64le
14184 else
14185 GOARCH=ppc64
14187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14191 riscv64-*-*)
14192 GOARCH=riscv64
14194 s390*-*-*)
14195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14196 /* end confdefs.h. */
14198 #if defined(__s390x__)
14199 #error 64-bit
14200 #endif
14202 _ACEOF
14203 if ac_fn_c_try_compile "$LINENO"; then :
14204 GOARCH=s390
14205 else
14206 GOARCH=s390x
14208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14210 sh3eb*-*-* | sh4eb*-*-*)
14211 GOARCH=shbe
14213 sh3*-*-* | sh4*-*-*)
14214 GOARCH=sh
14216 sparc*-*-*)
14217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14218 /* end confdefs.h. */
14220 #if defined(__sparcv9) || defined(__arch64__)
14221 #error 64-bit
14222 #endif
14224 _ACEOF
14225 if ac_fn_c_try_compile "$LINENO"; then :
14226 GOARCH=sparc
14227 else
14228 GOARCH=sparc64
14230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14232 esac
14237 if test "$GOARCH" = "386" -o "$GOARCH" = "amd64" -o "$GOARCH" = "amd64p32"; then
14238 LIBGO_IS_X86_TRUE=
14239 LIBGO_IS_X86_FALSE='#'
14240 else
14241 LIBGO_IS_X86_TRUE='#'
14242 LIBGO_IS_X86_FALSE=
14246 FUNCTION_DESCRIPTORS=false
14247 case ${host} in
14248 rs6000*-*-* | powerpc*-*-*)
14249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14250 /* end confdefs.h. */
14252 #if _CALL_ELF == 1
14253 #error descriptors
14254 #endif
14256 _ACEOF
14257 if ac_fn_c_try_compile "$LINENO"; then :
14258 FUNCTION_DESCRIPTORS=false
14259 else
14260 FUNCTION_DESCRIPTORS=true
14262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14264 esac
14267 GO_LIBCALL_OS_FILE=
14268 GO_LIBCALL_OS_ARCH_FILE=
14269 GO_SYSCALL_OS_FILE=
14270 GO_SYSCALL_OS_ARCH_FILE=
14271 if test -f "${srcdir}/go/syscall/libcall_${GOOS}.go"; then
14272 GO_LIBCALL_OS_FILE="go/syscall/libcall_${GOOS}.go"
14274 if test -f "${srcdir}/go/syscall/libcall_${GOOS}_${GOARCH}.go"; then
14275 GO_LIBCALL_OS_ARCH_FILE="go/syscall/libcall_${GOOS}_${GOARCH}.go"
14277 if test -f "${srcdir}/go/syscall/syscall_${GOOS}.go"; then
14278 GO_SYSCALL_OS_FILE="go/syscall/syscall_${GOOS}.go"
14280 if test -f "${srcdir}/go/syscall/syscall_${GOOS}_${GOARCH}.go"; then
14281 GO_SYSCALL_OS_ARCH_FILE="go/syscall/syscall_${GOOS}_${GOARCH}.go"
14288 OSCFLAGS="-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
14289 case "$target" in
14290 mips-sgi-irix6.5*)
14291 # IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
14292 # msghdr in <sys/socket.h>.
14293 OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500"
14295 *-*-solaris2.*)
14296 # Solaris 10+ needs this so struct msghdr gets the msg_control
14297 # etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=600 as
14298 # above doesn't work with C99.
14299 OSCFLAGS="$OSCFLAGS -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
14301 esac
14305 test -z "$HWCAP_CFLAGS" && HWCAP_CFLAGS=''
14307 # Restrict the test to Solaris, other assemblers (e.g. AIX as) have -nH
14308 # with a different meaning.
14309 case ${target_os} in
14310 solaris2*)
14311 ac_save_CFLAGS="$CFLAGS"
14312 CFLAGS="$CFLAGS -Wa,-nH"
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as that supports -Wa,-nH" >&5
14315 $as_echo_n "checking for as that supports -Wa,-nH... " >&6; }
14316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14317 /* end confdefs.h. */
14320 main ()
14322 return 0;
14324 return 0;
14326 _ACEOF
14327 if ac_fn_c_try_compile "$LINENO"; then :
14328 ac_hwcap_flags=yes
14329 else
14330 ac_hwcap_flags=no
14332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14333 if test "$ac_hwcap_flags" = "yes"; then
14334 HWCAP_CFLAGS="-Wa,-nH $HWCAP_CFLAGS"
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_flags" >&5
14337 $as_echo "$ac_hwcap_flags" >&6; }
14339 CFLAGS="$ac_save_CFLAGS"
14341 esac
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
14347 $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
14348 if ${libgo_cv_c_split_stack_supported+:} false; then :
14349 $as_echo_n "(cached) " >&6
14350 else
14351 CFLAGS_hold=$CFLAGS
14352 CFLAGS="$CFLAGS -fsplit-stack"
14353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14354 /* end confdefs.h. */
14355 int i;
14356 _ACEOF
14357 if ac_fn_c_try_compile "$LINENO"; then :
14358 libgo_cv_c_split_stack_supported=yes
14359 else
14360 libgo_cv_c_split_stack_supported=no
14362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14363 CFLAGS=$CFLAGS_hold
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
14366 $as_echo "$libgo_cv_c_split_stack_supported" >&6; }
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split/non-split linked together" >&5
14369 $as_echo_n "checking whether linker supports split/non-split linked together... " >&6; }
14370 if ${libgo_cv_c_linker_split_non_split+:} false; then :
14371 $as_echo_n "(cached) " >&6
14372 else
14373 cat > conftest1.c << EOF
14374 extern void f();
14375 int main() { f(); return 0; }
14377 cat > conftest2.c << EOF
14378 void f() {}
14380 $CC -c -fsplit-stack $CFLAGS $CPPFLAGS conftest1.c >/dev/null 2>&1
14381 $CC -c $CFLAGS $CPPFLAGS conftest2.c > /dev/null 2>&1
14382 if $CC -o conftest conftest1.$ac_objext conftest2.$ac_objext > /dev/null 2>&1; then
14383 libgo_cv_c_linker_split_non_split=yes
14384 else
14385 libgo_cv_c_linker_split_non_split=no
14387 rm -f conftest1.* conftest2.* conftest
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_split_non_split" >&5
14390 $as_echo "$libgo_cv_c_linker_split_non_split" >&6; }
14392 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = yes; then
14393 SPLIT_STACK=-fsplit-stack
14395 $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
14397 else
14398 SPLIT_STACK=
14401 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = yes; then
14402 USING_SPLIT_STACK_TRUE=
14403 USING_SPLIT_STACK_FALSE='#'
14404 else
14405 USING_SPLIT_STACK_TRUE='#'
14406 USING_SPLIT_STACK_FALSE=
14410 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = no; then
14411 GO_SPLIT_STACK=-fno-split-stack
14412 else
14413 GO_SPLIT_STACK=
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
14418 $as_echo_n "checking whether linker supports split stack... " >&6; }
14419 if ${libgo_cv_c_linker_supports_split_stack+:} false; then :
14420 $as_echo_n "(cached) " >&6
14421 else
14422 libgo_cv_c_linker_supports_split_stack=no
14423 if $GOC -Wl,--help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
14424 libgo_cv_c_linker_supports_split_stack=yes
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
14428 $as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
14429 if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
14431 $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is llgo" >&5
14436 $as_echo_n "checking whether compiler is llgo... " >&6; }
14437 if ${libgo_cv_c_goc_is_llgo+:} false; then :
14438 $as_echo_n "(cached) " >&6
14439 else
14440 libgo_cv_c_goc_is_llgo=no
14441 if $GOC -dumpversion 2>/dev/null | grep llgo >/dev/null 2>&1; then
14442 libgo_cv_c_goc_is_llgo=yes
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_goc_is_llgo" >&5
14446 $as_echo "$libgo_cv_c_goc_is_llgo" >&6; }
14447 if test "$libgo_cv_c_goc_is_llgo" = yes; then
14448 GOC_IS_LLGO_TRUE=
14449 GOC_IS_LLGO_FALSE='#'
14450 else
14451 GOC_IS_LLGO_TRUE='#'
14452 GOC_IS_LLGO_FALSE=
14456 MATH_LIBS=
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
14458 $as_echo_n "checking for sqrt in -lm... " >&6; }
14459 if ${ac_cv_lib_m_sqrt+:} false; then :
14460 $as_echo_n "(cached) " >&6
14461 else
14462 ac_check_lib_save_LIBS=$LIBS
14463 LIBS="-lm $LIBS"
14464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14465 /* end confdefs.h. */
14467 /* Override any GCC internal prototype to avoid an error.
14468 Use char because int might match the return type of a GCC
14469 builtin and then its argument prototype would still apply. */
14470 #ifdef __cplusplus
14471 extern "C"
14472 #endif
14473 char sqrt ();
14475 main ()
14477 return sqrt ();
14479 return 0;
14481 _ACEOF
14482 if ac_fn_c_try_link "$LINENO"; then :
14483 ac_cv_lib_m_sqrt=yes
14484 else
14485 ac_cv_lib_m_sqrt=no
14487 rm -f core conftest.err conftest.$ac_objext \
14488 conftest$ac_exeext conftest.$ac_ext
14489 LIBS=$ac_check_lib_save_LIBS
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14492 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
14493 if test "x$ac_cv_lib_m_sqrt" = xyes; then :
14494 MATH_LIBS=-lm
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14500 $as_echo_n "checking for socket libraries... " >&6; }
14501 if ${libgo_cv_lib_sockets+:} false; then :
14502 $as_echo_n "(cached) " >&6
14503 else
14504 libgo_cv_lib_sockets=
14505 libgo_check_both=no
14506 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14507 if test "x$ac_cv_func_connect" = xyes; then :
14508 libgo_check_socket=no
14509 else
14510 libgo_check_socket=yes
14513 if test "$libgo_check_socket" = "yes"; then
14514 unset ac_cv_func_connect
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14516 $as_echo_n "checking for main in -lsocket... " >&6; }
14517 if ${ac_cv_lib_socket_main+:} false; then :
14518 $as_echo_n "(cached) " >&6
14519 else
14520 ac_check_lib_save_LIBS=$LIBS
14521 LIBS="-lsocket $LIBS"
14522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14523 /* end confdefs.h. */
14527 main ()
14529 return main ();
14531 return 0;
14533 _ACEOF
14534 if ac_fn_c_try_link "$LINENO"; then :
14535 ac_cv_lib_socket_main=yes
14536 else
14537 ac_cv_lib_socket_main=no
14539 rm -f core conftest.err conftest.$ac_objext \
14540 conftest$ac_exeext conftest.$ac_ext
14541 LIBS=$ac_check_lib_save_LIBS
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14544 $as_echo "$ac_cv_lib_socket_main" >&6; }
14545 if test "x$ac_cv_lib_socket_main" = xyes; then :
14546 libgo_cv_lib_sockets="-lsocket"
14547 else
14548 libgo_check_both=yes
14552 if test "$libgo_check_both" = "yes"; then
14553 libgo_old_libs=$LIBS
14554 LIBS="$LIBS -lsocket -lnsl"
14555 unset ac_cv_func_accept
14556 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14557 if test "x$ac_cv_func_accept" = xyes; then :
14558 libgo_check_nsl=no
14559 libgo_cv_lib_sockets="-lsocket -lnsl"
14562 unset ac_cv_func_accept
14563 LIBS=$libgo_old_libs
14565 unset ac_cv_func_gethostbyname
14566 libgo_old_libs="$LIBS"
14567 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14568 if test "x$ac_cv_func_gethostbyname" = xyes; then :
14570 else
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14572 $as_echo_n "checking for main in -lnsl... " >&6; }
14573 if ${ac_cv_lib_nsl_main+:} false; then :
14574 $as_echo_n "(cached) " >&6
14575 else
14576 ac_check_lib_save_LIBS=$LIBS
14577 LIBS="-lnsl $LIBS"
14578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14579 /* end confdefs.h. */
14583 main ()
14585 return main ();
14587 return 0;
14589 _ACEOF
14590 if ac_fn_c_try_link "$LINENO"; then :
14591 ac_cv_lib_nsl_main=yes
14592 else
14593 ac_cv_lib_nsl_main=no
14595 rm -f core conftest.err conftest.$ac_objext \
14596 conftest$ac_exeext conftest.$ac_ext
14597 LIBS=$ac_check_lib_save_LIBS
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14600 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14601 if test "x$ac_cv_lib_nsl_main" = xyes; then :
14602 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
14607 unset ac_cv_func_gethostbyname
14608 ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile"
14609 if test "x$ac_cv_func_sendfile" = xyes; then :
14611 else
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsendfile" >&5
14613 $as_echo_n "checking for main in -lsendfile... " >&6; }
14614 if ${ac_cv_lib_sendfile_main+:} false; then :
14615 $as_echo_n "(cached) " >&6
14616 else
14617 ac_check_lib_save_LIBS=$LIBS
14618 LIBS="-lsendfile $LIBS"
14619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14620 /* end confdefs.h. */
14624 main ()
14626 return main ();
14628 return 0;
14630 _ACEOF
14631 if ac_fn_c_try_link "$LINENO"; then :
14632 ac_cv_lib_sendfile_main=yes
14633 else
14634 ac_cv_lib_sendfile_main=no
14636 rm -f core conftest.err conftest.$ac_objext \
14637 conftest$ac_exeext conftest.$ac_ext
14638 LIBS=$ac_check_lib_save_LIBS
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_main" >&5
14641 $as_echo "$ac_cv_lib_sendfile_main" >&6; }
14642 if test "x$ac_cv_lib_sendfile_main" = xyes; then :
14643 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lsendfile"
14648 LIBS=$libgo_old_libs
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
14652 $as_echo "$libgo_cv_lib_sockets" >&6; }
14653 NET_LIBS="$libgo_cv_lib_sockets"
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
14657 $as_echo_n "checking whether -pthread is supported... " >&6; }
14658 if ${libgo_cv_lib_pthread+:} false; then :
14659 $as_echo_n "(cached) " >&6
14660 else
14661 CFLAGS_hold=$CFLAGS
14662 CFLAGS="$CFLAGS -pthread -L../libatomic/.libs"
14663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14664 /* end confdefs.h. */
14665 int i;
14666 _ACEOF
14667 if ac_fn_c_try_compile "$LINENO"; then :
14668 libgo_cv_lib_pthread=yes
14669 else
14670 libgo_cv_lib_pthread=no
14672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14673 CFLAGS=$CFLAGS_hold
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
14676 $as_echo "$libgo_cv_lib_pthread" >&6; }
14677 PTHREAD_CFLAGS=
14678 if test "$libgo_cv_lib_pthread" = yes; then
14679 # RISC-V apparently adds -latomic when using -pthread.
14680 PTHREAD_CFLAGS="-pthread -L../libatomic/.libs"
14684 PTHREAD_LIBS=
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
14686 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
14687 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
14688 $as_echo_n "(cached) " >&6
14689 else
14690 ac_check_lib_save_LIBS=$LIBS
14691 LIBS="-lpthread $LIBS"
14692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14693 /* end confdefs.h. */
14695 /* Override any GCC internal prototype to avoid an error.
14696 Use char because int might match the return type of a GCC
14697 builtin and then its argument prototype would still apply. */
14698 #ifdef __cplusplus
14699 extern "C"
14700 #endif
14701 char pthread_create ();
14703 main ()
14705 return pthread_create ();
14707 return 0;
14709 _ACEOF
14710 if ac_fn_c_try_link "$LINENO"; then :
14711 ac_cv_lib_pthread_pthread_create=yes
14712 else
14713 ac_cv_lib_pthread_pthread_create=no
14715 rm -f core conftest.err conftest.$ac_objext \
14716 conftest$ac_exeext conftest.$ac_ext
14717 LIBS=$ac_check_lib_save_LIBS
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
14720 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
14721 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
14722 PTHREAD_LIBS=-lpthread
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
14728 $as_echo_n "checking for library containing sched_yield... " >&6; }
14729 if ${ac_cv_search_sched_yield+:} false; then :
14730 $as_echo_n "(cached) " >&6
14731 else
14732 ac_func_search_save_LIBS=$LIBS
14733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14734 /* end confdefs.h. */
14736 /* Override any GCC internal prototype to avoid an error.
14737 Use char because int might match the return type of a GCC
14738 builtin and then its argument prototype would still apply. */
14739 #ifdef __cplusplus
14740 extern "C"
14741 #endif
14742 char sched_yield ();
14744 main ()
14746 return sched_yield ();
14748 return 0;
14750 _ACEOF
14751 for ac_lib in '' rt; do
14752 if test -z "$ac_lib"; then
14753 ac_res="none required"
14754 else
14755 ac_res=-l$ac_lib
14756 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14758 if ac_fn_c_try_link "$LINENO"; then :
14759 ac_cv_search_sched_yield=$ac_res
14761 rm -f core conftest.err conftest.$ac_objext \
14762 conftest$ac_exeext
14763 if ${ac_cv_search_sched_yield+:} false; then :
14764 break
14766 done
14767 if ${ac_cv_search_sched_yield+:} false; then :
14769 else
14770 ac_cv_search_sched_yield=no
14772 rm conftest.$ac_ext
14773 LIBS=$ac_func_search_save_LIBS
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
14776 $as_echo "$ac_cv_search_sched_yield" >&6; }
14777 ac_res=$ac_cv_search_sched_yield
14778 if test "$ac_res" != no; then :
14779 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
14784 $as_echo_n "checking for library containing nanosleep... " >&6; }
14785 if ${ac_cv_search_nanosleep+:} false; then :
14786 $as_echo_n "(cached) " >&6
14787 else
14788 ac_func_search_save_LIBS=$LIBS
14789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14790 /* end confdefs.h. */
14792 /* Override any GCC internal prototype to avoid an error.
14793 Use char because int might match the return type of a GCC
14794 builtin and then its argument prototype would still apply. */
14795 #ifdef __cplusplus
14796 extern "C"
14797 #endif
14798 char nanosleep ();
14800 main ()
14802 return nanosleep ();
14804 return 0;
14806 _ACEOF
14807 for ac_lib in '' rt; do
14808 if test -z "$ac_lib"; then
14809 ac_res="none required"
14810 else
14811 ac_res=-l$ac_lib
14812 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14814 if ac_fn_c_try_link "$LINENO"; then :
14815 ac_cv_search_nanosleep=$ac_res
14817 rm -f core conftest.err conftest.$ac_objext \
14818 conftest$ac_exeext
14819 if ${ac_cv_search_nanosleep+:} false; then :
14820 break
14822 done
14823 if ${ac_cv_search_nanosleep+:} false; then :
14825 else
14826 ac_cv_search_nanosleep=no
14828 rm conftest.$ac_ext
14829 LIBS=$ac_func_search_save_LIBS
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
14832 $as_echo "$ac_cv_search_nanosleep" >&6; }
14833 ac_res=$ac_cv_search_nanosleep
14834 if test "$ac_res" != no; then :
14835 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14840 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14841 if ${ac_cv_search_clock_gettime+:} false; then :
14842 $as_echo_n "(cached) " >&6
14843 else
14844 ac_func_search_save_LIBS=$LIBS
14845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14846 /* end confdefs.h. */
14848 /* Override any GCC internal prototype to avoid an error.
14849 Use char because int might match the return type of a GCC
14850 builtin and then its argument prototype would still apply. */
14851 #ifdef __cplusplus
14852 extern "C"
14853 #endif
14854 char clock_gettime ();
14856 main ()
14858 return clock_gettime ();
14860 return 0;
14862 _ACEOF
14863 for ac_lib in '' rt; do
14864 if test -z "$ac_lib"; then
14865 ac_res="none required"
14866 else
14867 ac_res=-l$ac_lib
14868 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14870 if ac_fn_c_try_link "$LINENO"; then :
14871 ac_cv_search_clock_gettime=$ac_res
14873 rm -f core conftest.err conftest.$ac_objext \
14874 conftest$ac_exeext
14875 if ${ac_cv_search_clock_gettime+:} false; then :
14876 break
14878 done
14879 if ${ac_cv_search_clock_gettime+:} false; then :
14881 else
14882 ac_cv_search_clock_gettime=no
14884 rm conftest.$ac_ext
14885 LIBS=$ac_func_search_save_LIBS
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14888 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14889 ac_res=$ac_cv_search_clock_gettime
14890 if test "$ac_res" != no; then :
14891 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14897 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14898 if ${ac_cv_c_bigendian+:} false; then :
14899 $as_echo_n "(cached) " >&6
14900 else
14901 ac_cv_c_bigendian=unknown
14902 # See if we're dealing with a universal compiler.
14903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14904 /* end confdefs.h. */
14905 #ifndef __APPLE_CC__
14906 not a universal capable compiler
14907 #endif
14908 typedef int dummy;
14910 _ACEOF
14911 if ac_fn_c_try_compile "$LINENO"; then :
14913 # Check for potential -arch flags. It is not universal unless
14914 # there are at least two -arch flags with different values.
14915 ac_arch=
14916 ac_prev=
14917 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14918 if test -n "$ac_prev"; then
14919 case $ac_word in
14920 i?86 | x86_64 | ppc | ppc64)
14921 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14922 ac_arch=$ac_word
14923 else
14924 ac_cv_c_bigendian=universal
14925 break
14928 esac
14929 ac_prev=
14930 elif test "x$ac_word" = "x-arch"; then
14931 ac_prev=arch
14933 done
14935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14936 if test $ac_cv_c_bigendian = unknown; then
14937 # See if sys/param.h defines the BYTE_ORDER macro.
14938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14939 /* end confdefs.h. */
14940 #include <sys/types.h>
14941 #include <sys/param.h>
14944 main ()
14946 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14947 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14948 && LITTLE_ENDIAN)
14949 bogus endian macros
14950 #endif
14953 return 0;
14955 _ACEOF
14956 if ac_fn_c_try_compile "$LINENO"; then :
14957 # It does; now see whether it defined to BIG_ENDIAN or not.
14958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14959 /* end confdefs.h. */
14960 #include <sys/types.h>
14961 #include <sys/param.h>
14964 main ()
14966 #if BYTE_ORDER != BIG_ENDIAN
14967 not big endian
14968 #endif
14971 return 0;
14973 _ACEOF
14974 if ac_fn_c_try_compile "$LINENO"; then :
14975 ac_cv_c_bigendian=yes
14976 else
14977 ac_cv_c_bigendian=no
14979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14983 if test $ac_cv_c_bigendian = unknown; then
14984 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14986 /* end confdefs.h. */
14987 #include <limits.h>
14990 main ()
14992 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14993 bogus endian macros
14994 #endif
14997 return 0;
14999 _ACEOF
15000 if ac_fn_c_try_compile "$LINENO"; then :
15001 # It does; now see whether it defined to _BIG_ENDIAN or not.
15002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15003 /* end confdefs.h. */
15004 #include <limits.h>
15007 main ()
15009 #ifndef _BIG_ENDIAN
15010 not big endian
15011 #endif
15014 return 0;
15016 _ACEOF
15017 if ac_fn_c_try_compile "$LINENO"; then :
15018 ac_cv_c_bigendian=yes
15019 else
15020 ac_cv_c_bigendian=no
15022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15026 if test $ac_cv_c_bigendian = unknown; then
15027 # Compile a test program.
15028 if test "$cross_compiling" = yes; then :
15029 # Try to guess by grepping values from an object file.
15030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15031 /* end confdefs.h. */
15032 short int ascii_mm[] =
15033 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15034 short int ascii_ii[] =
15035 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15036 int use_ascii (int i) {
15037 return ascii_mm[i] + ascii_ii[i];
15039 short int ebcdic_ii[] =
15040 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15041 short int ebcdic_mm[] =
15042 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15043 int use_ebcdic (int i) {
15044 return ebcdic_mm[i] + ebcdic_ii[i];
15046 extern int foo;
15049 main ()
15051 return use_ascii (foo) == use_ebcdic (foo);
15053 return 0;
15055 _ACEOF
15056 if ac_fn_c_try_compile "$LINENO"; then :
15057 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15058 ac_cv_c_bigendian=yes
15060 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15061 if test "$ac_cv_c_bigendian" = unknown; then
15062 ac_cv_c_bigendian=no
15063 else
15064 # finding both strings is unlikely to happen, but who knows?
15065 ac_cv_c_bigendian=unknown
15069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15070 else
15071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15072 /* end confdefs.h. */
15073 $ac_includes_default
15075 main ()
15078 /* Are we little or big endian? From Harbison&Steele. */
15079 union
15081 long int l;
15082 char c[sizeof (long int)];
15083 } u;
15084 u.l = 1;
15085 return u.c[sizeof (long int) - 1] == 1;
15088 return 0;
15090 _ACEOF
15091 if ac_fn_c_try_run "$LINENO"; then :
15092 ac_cv_c_bigendian=no
15093 else
15094 ac_cv_c_bigendian=yes
15096 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15097 conftest.$ac_objext conftest.beam conftest.$ac_ext
15102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15103 $as_echo "$ac_cv_c_bigendian" >&6; }
15104 case $ac_cv_c_bigendian in #(
15105 yes)
15106 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15107 ;; #(
15109 ;; #(
15110 universal)
15112 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15114 ;; #(
15116 as_fn_error $? "unknown endianness
15117 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15118 esac
15123 # Check whether --with-system-libunwind was given.
15124 if test "${with_system_libunwind+set}" = set; then :
15125 withval=$with_system_libunwind;
15128 # If system-libunwind was not specifically set, pick a default setting.
15129 if test x$with_system_libunwind = x; then
15130 case ${target} in
15131 ia64-*-hpux*) with_system_libunwind=yes ;;
15132 *) with_system_libunwind=no ;;
15133 esac
15135 # Based on system-libunwind and target, do we have ipinfo?
15136 if test x$with_system_libunwind = xyes; then
15137 case ${target} in
15138 ia64-*-*) have_unwind_getipinfo=no ;;
15139 *) have_unwind_getipinfo=yes ;;
15140 esac
15141 else
15142 # Darwin before version 9 does not have _Unwind_GetIPInfo.
15144 case ${target} in
15145 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
15146 *) have_unwind_getipinfo=yes ;;
15147 esac
15151 if test x$have_unwind_getipinfo = xyes; then
15153 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
15158 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
15159 do :
15160 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15161 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15162 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15163 cat >>confdefs.h <<_ACEOF
15164 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15165 _ACEOF
15169 done
15172 for ac_header in netinet/icmp6.h
15173 do :
15174 ac_fn_c_check_header_compile "$LINENO" "netinet/icmp6.h" "ac_cv_header_netinet_icmp6_h" "#include <netinet/in.h>
15177 if test "x$ac_cv_header_netinet_icmp6_h" = xyes; then :
15178 cat >>confdefs.h <<_ACEOF
15179 #define HAVE_NETINET_ICMP6_H 1
15180 _ACEOF
15184 done
15187 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
15188 do :
15189 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15190 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_SOCKET_H
15191 #include <sys/socket.h>
15192 #endif
15195 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15196 cat >>confdefs.h <<_ACEOF
15197 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15198 _ACEOF
15202 done
15205 if test "$ac_cv_header_sys_mman_h" = yes; then
15206 HAVE_SYS_MMAN_H_TRUE=
15207 HAVE_SYS_MMAN_H_FALSE='#'
15208 else
15209 HAVE_SYS_MMAN_H_TRUE='#'
15210 HAVE_SYS_MMAN_H_FALSE=
15214 for ac_func in strerror_r strsignal wait4 mincore setenv unsetenv dl_iterate_phdr memmem
15215 do :
15216 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15217 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15218 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15219 cat >>confdefs.h <<_ACEOF
15220 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15221 _ACEOF
15224 done
15226 if test "$ac_cv_func_strerror_r" = yes; then
15227 HAVE_STRERROR_R_TRUE=
15228 HAVE_STRERROR_R_FALSE='#'
15229 else
15230 HAVE_STRERROR_R_TRUE='#'
15231 HAVE_STRERROR_R_FALSE=
15234 if test "$ac_cv_func_wait4" = yes; then
15235 HAVE_WAIT4_TRUE=
15236 HAVE_WAIT4_FALSE='#'
15237 else
15238 HAVE_WAIT4_TRUE='#'
15239 HAVE_WAIT4_FALSE=
15243 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
15244 do :
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
15250 _ACEOF
15253 done
15255 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15256 if test "x$ac_cv_type_off_t" = xyes; then :
15258 else
15260 cat >>confdefs.h <<_ACEOF
15261 #define off_t long int
15262 _ACEOF
15266 ac_fn_c_check_type "$LINENO" "loff_t" "ac_cv_type_loff_t" "$ac_includes_default"
15267 if test "x$ac_cv_type_loff_t" = xyes; then :
15269 cat >>confdefs.h <<_ACEOF
15270 #define HAVE_LOFF_T 1
15271 _ACEOF
15277 LIBS_hold="$LIBS"
15278 LIBS="$LIBS -lm"
15279 for ac_func in cosl expl logl sinl tanl acosl asinl atanl atan2l expm1l ldexpl log10l log1pl
15280 do :
15281 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15282 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15283 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15284 cat >>confdefs.h <<_ACEOF
15285 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15286 _ACEOF
15289 done
15291 LIBS="$LIBS_hold"
15293 CFLAGS_hold="$CFLAGS"
15294 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15295 LIBS_hold="$LIBS"
15296 LIBS="$LIBS $PTHREAD_LIBS"
15297 for ac_func in sem_timedwait
15298 do :
15299 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
15300 if test "x$ac_cv_func_sem_timedwait" = xyes; then :
15301 cat >>confdefs.h <<_ACEOF
15302 #define HAVE_SEM_TIMEDWAIT 1
15303 _ACEOF
15306 done
15308 CFLAGS="$CFLAGS_hold"
15309 LIBS="$LIBS_hold"
15311 LIBS_hold="$LIBS"
15312 LIBS="$LIBS $MATH_LIBS"
15313 for ac_func in matherr
15314 do :
15315 ac_fn_c_check_func "$LINENO" "matherr" "ac_cv_func_matherr"
15316 if test "x$ac_cv_func_matherr" = xyes; then :
15317 cat >>confdefs.h <<_ACEOF
15318 #define HAVE_MATHERR 1
15319 _ACEOF
15322 done
15324 LIBS="$LIBS_hold"
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
15327 $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
15328 if ${libgo_cv_c_stringops+:} false; then :
15329 $as_echo_n "(cached) " >&6
15330 else
15331 CFLAGS_hold=$CFLAGS
15332 CFLAGS="$CFLAGS -minline-all-stringops"
15333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15334 /* end confdefs.h. */
15335 int i;
15336 _ACEOF
15337 if ac_fn_c_try_compile "$LINENO"; then :
15338 libgo_cv_c_stringops=yes
15339 else
15340 libgo_cv_c_stringops=no
15342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15343 CFLAGS=$CFLAGS_hold
15345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
15346 $as_echo "$libgo_cv_c_stringops" >&6; }
15347 STRINGOPS_FLAG=
15348 if test "$libgo_cv_c_stringops" = yes; then
15349 STRINGOPS_FLAG=-minline-all-stringops
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -mfancy-math-387" >&5
15354 $as_echo_n "checking whether compiler supports -mfancy-math-387... " >&6; }
15355 if ${libgo_cv_c_fancymath+:} false; then :
15356 $as_echo_n "(cached) " >&6
15357 else
15358 CFLAGS_hold=$CFLAGS
15359 CFLAGS="$CFLAGS -mfancy-math-387"
15360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15361 /* end confdefs.h. */
15362 int i;
15363 _ACEOF
15364 if ac_fn_c_try_compile "$LINENO"; then :
15365 libgo_cv_c_fancymath=yes
15366 else
15367 libgo_cv_c_fancymath=no
15369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15370 CFLAGS=$CFLAGS_hold
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_fancymath" >&5
15373 $as_echo "$libgo_cv_c_fancymath" >&6; }
15374 MATH_FLAG=
15375 if test "$libgo_cv_c_fancymath" = yes; then
15376 MATH_FLAG="-mfancy-math-387"
15378 MATH_FLAG="${MATH_FLAG} -ffp-contract=off -fno-math-errno -fno-trapping-math"
15381 CFLAGS_hold=$CFLAGS
15382 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
15383 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
15384 if test "x$ac_cv_type_off64_t" = xyes; then :
15386 cat >>confdefs.h <<_ACEOF
15387 #define HAVE_OFF64_T 1
15388 _ACEOF
15393 CFLAGS=$CFLAGS_hold
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event size" >&5
15396 $as_echo_n "checking epoll_event size... " >&6; }
15397 if ${libgo_cv_c_epoll_event_size+:} false; then :
15398 $as_echo_n "(cached) " >&6
15399 else
15400 if ac_fn_c_compute_int "$LINENO" "sizeof (struct epoll_event)" "libgo_cv_c_epoll_event_size" "#include <sys/epoll.h>"; then :
15402 else
15403 libgo_cv_c_epoll_event_size=0
15407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_size" >&5
15408 $as_echo "$libgo_cv_c_epoll_event_size" >&6; }
15409 SIZEOF_STRUCT_EPOLL_EVENT=${libgo_cv_c_epoll_event_size}
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event data.fd offset" >&5
15413 $as_echo_n "checking epoll_event data.fd offset... " >&6; }
15414 if ${libgo_cv_c_epoll_event_fd_offset+:} false; then :
15415 $as_echo_n "(cached) " >&6
15416 else
15417 if ac_fn_c_compute_int "$LINENO" "offsetof (struct epoll_event, data.fd)" "libgo_cv_c_epoll_event_fd_offset" "#include <stddef.h>
15418 #include <sys/epoll.h>"; then :
15420 else
15421 libgo_cv_c_epoll_event_fd_offset=0
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_fd_offset" >&5
15426 $as_echo "$libgo_cv_c_epoll_event_fd_offset" >&6; }
15427 STRUCT_EPOLL_EVENT_FD_OFFSET=${libgo_cv_c_epoll_event_fd_offset}
15430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15431 /* end confdefs.h. */
15432 #include <sys/stat.h>
15434 _ACEOF
15435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15436 $EGREP "timespec_t.*st_atim" >/dev/null 2>&1; then :
15437 have_stat_timespec=yes
15438 else
15439 have_stat_timespec=no
15441 rm -f conftest*
15443 if test $have_stat_timespec = yes; then
15444 HAVE_STAT_TIMESPEC_TRUE=
15445 HAVE_STAT_TIMESPEC_FALSE='#'
15446 else
15447 HAVE_STAT_TIMESPEC_TRUE='#'
15448 HAVE_STAT_TIMESPEC_FALSE=
15452 ac_fn_c_check_type "$LINENO" "struct exception" "ac_cv_type_struct_exception" "#include <math.h>
15454 if test "x$ac_cv_type_struct_exception" = xyes; then :
15455 libgo_has_struct_exception=yes
15456 else
15457 libgo_has_struct_exception=no
15460 if test "$libgo_has_struct_exception" = "yes"; then
15462 $as_echo "#define HAVE_STRUCT_EXCEPTION 1" >>confdefs.h
15466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setcontext clobbers TLS variables" >&5
15467 $as_echo_n "checking whether setcontext clobbers TLS variables... " >&6; }
15468 if ${libgo_cv_lib_setcontext_clobbers_tls+:} false; then :
15469 $as_echo_n "(cached) " >&6
15470 else
15471 CFLAGS_hold="$CFLAGS"
15472 CFLAGS="$PTHREAD_CFLAGS"
15473 LIBS_hold="$LIBS"
15474 LIBS="$LIBS $PTHREAD_LIBS"
15475 # The cast to long int works around a bug in the HP C Compiler
15476 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15477 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15478 # This bug is HP SR number 8606223364.
15479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15480 $as_echo_n "checking size of void *... " >&6; }
15481 if ${ac_cv_sizeof_void_p+:} false; then :
15482 $as_echo_n "(cached) " >&6
15483 else
15484 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15486 else
15487 if test "$ac_cv_type_void_p" = yes; then
15488 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15489 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15490 as_fn_error 77 "cannot compute sizeof (void *)
15491 See \`config.log' for more details" "$LINENO" 5; }
15492 else
15493 ac_cv_sizeof_void_p=0
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15499 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15503 cat >>confdefs.h <<_ACEOF
15504 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15505 _ACEOF
15508 as_fn_arith $ac_cv_sizeof_void_p \* 8 && ptr_type_size=$as_val
15509 if test "$cross_compiling" = yes; then :
15510 case "$target:$ptr_type_size" in
15511 i?86-*-solaris2.1[01]:64 | x86_64*-*-solaris2.1[01]:64)
15512 libgo_cv_lib_setcontext_clobbers_tls=yes ;;
15514 libgo_cv_lib_setcontext_clobbers_tls=no ;;
15515 esac
15517 else
15518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15519 /* end confdefs.h. */
15521 #include <pthread.h>
15522 #include <stdlib.h>
15523 #include <ucontext.h>
15524 #include <unistd.h>
15526 __thread int tls;
15528 static char stack[10 * 1024 * 1024];
15529 static ucontext_t c;
15531 /* Called via makecontext/setcontext. */
15533 static void
15534 cfn (void)
15536 exit (tls);
15539 /* Called via pthread_create. */
15541 static void *
15542 tfn (void *dummy)
15544 /* The thread should still see this value after calling
15545 setcontext. */
15546 tls = 0;
15548 setcontext (&c);
15550 /* The call to setcontext should not return. */
15551 abort ();
15555 main ()
15557 pthread_t tid;
15559 /* The thread should not see this value. */
15560 tls = 1;
15562 if (getcontext (&c) < 0)
15563 abort ();
15565 c.uc_stack.ss_sp = stack;
15566 #ifdef MAKECONTEXT_STACK_TOP
15567 c.uc_stack.ss_sp += sizeof stack;
15568 #endif
15569 c.uc_stack.ss_flags = 0;
15570 c.uc_stack.ss_size = sizeof stack;
15571 c.uc_link = NULL;
15572 makecontext (&c, cfn, 0);
15574 if (pthread_create (&tid, NULL, tfn, NULL) != 0)
15575 abort ();
15577 if (pthread_join (tid, NULL) != 0)
15578 abort ();
15580 /* The thread should have called exit. */
15581 abort ();
15584 _ACEOF
15585 if ac_fn_c_try_run "$LINENO"; then :
15586 libgo_cv_lib_setcontext_clobbers_tls=no
15587 else
15588 libgo_cv_lib_setcontext_clobbers_tls=yes
15590 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15591 conftest.$ac_objext conftest.beam conftest.$ac_ext
15594 CFLAGS="$CFLAGS_hold"
15595 LIBS="$LIBS_hold"
15598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_setcontext_clobbers_tls" >&5
15599 $as_echo "$libgo_cv_lib_setcontext_clobbers_tls" >&6; }
15600 if test "$libgo_cv_lib_setcontext_clobbers_tls" = "yes"; then
15602 $as_echo "#define SETCONTEXT_CLOBBERS_TLS 1" >>confdefs.h
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
15607 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
15608 if ${libgo_cv_ro_eh_frame+:} false; then :
15609 $as_echo_n "(cached) " >&6
15610 else
15612 libgo_cv_ro_eh_frame=no
15613 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
15614 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
15615 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
15616 libgo_cv_ro_eh_frame=yes
15617 elif grep '.section.*eh_frame.*#alloc' conftest.c \
15618 | grep -v '#write' > /dev/null; then
15619 libgo_cv_ro_eh_frame=yes
15622 rm -f conftest.*
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ro_eh_frame" >&5
15626 $as_echo "$libgo_cv_ro_eh_frame" >&6; }
15627 if test "x$libgo_cv_ro_eh_frame" = xyes; then
15629 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
15631 else
15633 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Qunused-arguments" >&5
15638 $as_echo_n "checking if compiler supports -Qunused-arguments... " >&6; }
15639 if ${libgo_cv_c_unused_arguments+:} false; then :
15640 $as_echo_n "(cached) " >&6
15641 else
15642 CFLAGS_hold=$CFLAGS
15643 CFLAGS="$CFLAGS -Qunused-arguments"
15644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15645 /* end confdefs.h. */
15646 int i;
15647 _ACEOF
15648 if ac_fn_c_try_compile "$LINENO"; then :
15649 libgo_cv_c_unused_arguments=yes
15650 else
15651 libgo_cv_c_unused_arguments=no
15653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15654 CFLAGS=$CFLAGS_hold
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_unused_arguments" >&5
15657 $as_echo "$libgo_cv_c_unused_arguments" >&6; }
15659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports GNU comdat group syntax" >&5
15660 $as_echo_n "checking if assembler supports GNU comdat group syntax... " >&6; }
15661 if ${libgo_cv_as_comdat_gnu+:} false; then :
15662 $as_echo_n "(cached) " >&6
15663 else
15665 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
15666 CFLAGS_hold=$CFLAGS
15667 if test "$libgo_cv_c_unused_arguments" = yes; then
15668 CFLAGS="$CFLAGS -Qunused-arguments"
15670 if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
15671 libgo_cv_as_comdat_gnu=yes
15672 else
15673 libgo_cv_as_comdat_gnu=no
15675 CFLAGS=$CFLAGS_hold
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_comdat_gnu" >&5
15679 $as_echo "$libgo_cv_as_comdat_gnu" >&6; }
15680 if test "x$libgo_cv_as_comdat_gnu" = xyes; then
15682 $as_echo "#define HAVE_AS_COMDAT_GAS 1" >>confdefs.h
15686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
15687 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
15688 if ${libgo_cv_as_x86_pcrel+:} false; then :
15689 $as_echo_n "(cached) " >&6
15690 else
15692 libgo_cv_as_x86_pcrel=yes
15693 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
15694 CFLAGS_hold=$CFLAGS
15695 if test "$libgo_cv_c_unused_arguments" = yes; then
15696 CFLAGS="$CFLAGS -Qunused-arguments"
15698 if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
15699 libgo_cv_as_x86_pcrel=no
15701 CFLAGS=$CFLAGS_hold
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_pcrel" >&5
15705 $as_echo "$libgo_cv_as_x86_pcrel" >&6; }
15706 if test "x$libgo_cv_as_x86_pcrel" = xyes; then
15708 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
15712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
15713 $as_echo_n "checking assembler supports unwind section type... " >&6; }
15714 if ${libgo_cv_as_x86_64_unwind_section_type+:} false; then :
15715 $as_echo_n "(cached) " >&6
15716 else
15718 libgo_cv_as_x86_64_unwind_section_type=yes
15719 echo '.section .eh_frame,"a",@unwind' > conftest.s
15720 CFLAGS_hold=$CFLAGS
15721 if test "$libgo_cv_c_unused_arguments" = yes; then
15722 CFLAGS="$CFLAGS -Qunused-arguments"
15724 if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
15725 libgo_cv_as_x86_64_unwind_section_type=no
15727 CFLAGS=$CFLAGS_hold
15730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_64_unwind_section_type" >&5
15731 $as_echo "$libgo_cv_as_x86_64_unwind_section_type" >&6; }
15732 if test "x$libgo_cv_as_x86_64_unwind_section_type" = xyes; then
15734 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
15738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports AES instructions" >&5
15739 $as_echo_n "checking assembler supports AES instructions... " >&6; }
15740 if ${libgo_cv_as_x86_aes+:} false; then :
15741 $as_echo_n "(cached) " >&6
15742 else
15744 libgo_cv_as_x86_aes=yes
15745 echo 'aesenc %xmm0, %xmm1' > conftest.s
15746 CFLAGS_hold=$CFLAGS
15747 if test "$libgo_cv_c_unused_arguments" = yes; then
15748 CFLAGS="$CFLAGS -Qunused-arguments"
15750 if $CC $CFLAGS -c conftest.s 2>&1 | grep -i error > /dev/null; then
15751 libgo_cv_as_x86_aes=no
15753 CFLAGS=$CFLAGS_hold
15756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_aes" >&5
15757 $as_echo "$libgo_cv_as_x86_aes" >&6; }
15758 if test "x$libgo_cv_as_x86_aes" = xyes; then
15760 $as_echo "#define HAVE_AS_X86_AES 1" >>confdefs.h
15764 cat >confcache <<\_ACEOF
15765 # This file is a shell script that caches the results of configure
15766 # tests run on this system so they can be shared between configure
15767 # scripts and configure runs, see configure's option --config-cache.
15768 # It is not useful on other systems. If it contains results you don't
15769 # want to keep, you may remove or edit it.
15771 # config.status only pays attention to the cache file if you give it
15772 # the --recheck option to rerun configure.
15774 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15775 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15776 # following values.
15778 _ACEOF
15780 # The following way of writing the cache mishandles newlines in values,
15781 # but we know of no workaround that is simple, portable, and efficient.
15782 # So, we kill variables containing newlines.
15783 # Ultrix sh set writes to stderr and can't be redirected directly,
15784 # and sets the high bit in the cache file unless we assign to the vars.
15786 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15787 eval ac_val=\$$ac_var
15788 case $ac_val in #(
15789 *${as_nl}*)
15790 case $ac_var in #(
15791 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15792 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15793 esac
15794 case $ac_var in #(
15795 _ | IFS | as_nl) ;; #(
15796 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15797 *) { eval $ac_var=; unset $ac_var;} ;;
15798 esac ;;
15799 esac
15800 done
15802 (set) 2>&1 |
15803 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15804 *${as_nl}ac_space=\ *)
15805 # `set' does not quote correctly, so add quotes: double-quote
15806 # substitution turns \\\\ into \\, and sed turns \\ into \.
15807 sed -n \
15808 "s/'/'\\\\''/g;
15809 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15810 ;; #(
15812 # `set' quotes correctly as required by POSIX, so do not add quotes.
15813 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15815 esac |
15816 sort
15818 sed '
15819 /^ac_cv_env_/b end
15820 t clear
15821 :clear
15822 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15823 t end
15824 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15825 :end' >>confcache
15826 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15827 if test -w "$cache_file"; then
15828 if test "x$cache_file" != "x/dev/null"; then
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15830 $as_echo "$as_me: updating cache $cache_file" >&6;}
15831 if test ! -f "$cache_file" || test -h "$cache_file"; then
15832 cat confcache >"$cache_file"
15833 else
15834 case $cache_file in #(
15835 */* | ?:*)
15836 mv -f confcache "$cache_file"$$ &&
15837 mv -f "$cache_file"$$ "$cache_file" ;; #(
15839 mv -f confcache "$cache_file" ;;
15840 esac
15843 else
15844 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15845 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15848 rm -f confcache
15850 if test ${multilib} = yes; then
15851 multilib_arg="--enable-multilib"
15852 else
15853 multilib_arg=
15856 ac_config_files="$ac_config_files Makefile testsuite/Makefile testsuite/libgo-test-support.exp"
15859 ac_config_commands="$ac_config_commands default"
15862 cat >confcache <<\_ACEOF
15863 # This file is a shell script that caches the results of configure
15864 # tests run on this system so they can be shared between configure
15865 # scripts and configure runs, see configure's option --config-cache.
15866 # It is not useful on other systems. If it contains results you don't
15867 # want to keep, you may remove or edit it.
15869 # config.status only pays attention to the cache file if you give it
15870 # the --recheck option to rerun configure.
15872 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15873 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15874 # following values.
15876 _ACEOF
15878 # The following way of writing the cache mishandles newlines in values,
15879 # but we know of no workaround that is simple, portable, and efficient.
15880 # So, we kill variables containing newlines.
15881 # Ultrix sh set writes to stderr and can't be redirected directly,
15882 # and sets the high bit in the cache file unless we assign to the vars.
15884 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15885 eval ac_val=\$$ac_var
15886 case $ac_val in #(
15887 *${as_nl}*)
15888 case $ac_var in #(
15889 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15890 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15891 esac
15892 case $ac_var in #(
15893 _ | IFS | as_nl) ;; #(
15894 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15895 *) { eval $ac_var=; unset $ac_var;} ;;
15896 esac ;;
15897 esac
15898 done
15900 (set) 2>&1 |
15901 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15902 *${as_nl}ac_space=\ *)
15903 # `set' does not quote correctly, so add quotes: double-quote
15904 # substitution turns \\\\ into \\, and sed turns \\ into \.
15905 sed -n \
15906 "s/'/'\\\\''/g;
15907 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15908 ;; #(
15910 # `set' quotes correctly as required by POSIX, so do not add quotes.
15911 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15913 esac |
15914 sort
15916 sed '
15917 /^ac_cv_env_/b end
15918 t clear
15919 :clear
15920 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15921 t end
15922 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15923 :end' >>confcache
15924 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15925 if test -w "$cache_file"; then
15926 if test "x$cache_file" != "x/dev/null"; then
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15928 $as_echo "$as_me: updating cache $cache_file" >&6;}
15929 if test ! -f "$cache_file" || test -h "$cache_file"; then
15930 cat confcache >"$cache_file"
15931 else
15932 case $cache_file in #(
15933 */* | ?:*)
15934 mv -f confcache "$cache_file"$$ &&
15935 mv -f "$cache_file"$$ "$cache_file" ;; #(
15937 mv -f confcache "$cache_file" ;;
15938 esac
15941 else
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15943 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15946 rm -f confcache
15948 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15949 # Let make expand exec_prefix.
15950 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15952 DEFS=-DHAVE_CONFIG_H
15954 ac_libobjs=
15955 ac_ltlibobjs=
15957 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15958 # 1. Remove the extension, and $U if already installed.
15959 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15960 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15961 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15962 # will be set to the directory where LIBOBJS objects are built.
15963 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15964 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15965 done
15966 LIBOBJS=$ac_libobjs
15968 LTLIBOBJS=$ac_ltlibobjs
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15972 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15973 if test -n "$am_sleep_pid"; then
15974 # Hide warnings about reused PIDs.
15975 wait $am_sleep_pid 2>/dev/null
15977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15978 $as_echo "done" >&6; }
15979 if test -n "$EXEEXT"; then
15980 am__EXEEXT_TRUE=
15981 am__EXEEXT_FALSE='#'
15982 else
15983 am__EXEEXT_TRUE='#'
15984 am__EXEEXT_FALSE=
15987 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15988 as_fn_error $? "conditional \"AMDEP\" was never defined.
15989 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15991 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15992 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15993 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15995 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
15996 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
15997 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15999 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16000 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16001 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16003 if test -z "${USE_LIBFFI_TRUE}" && test -z "${USE_LIBFFI_FALSE}"; then
16004 as_fn_error $? "conditional \"USE_LIBFFI\" was never defined.
16005 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16007 if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
16008 as_fn_error $? "conditional \"LIBGO_IS_DARWIN\" was never defined.
16009 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16011 if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
16012 as_fn_error $? "conditional \"LIBGO_IS_FREEBSD\" was never defined.
16013 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16015 if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
16016 as_fn_error $? "conditional \"LIBGO_IS_IRIX\" was never defined.
16017 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16019 if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
16020 as_fn_error $? "conditional \"LIBGO_IS_LINUX\" was never defined.
16021 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16023 if test -z "${LIBGO_IS_NETBSD_TRUE}" && test -z "${LIBGO_IS_NETBSD_FALSE}"; then
16024 as_fn_error $? "conditional \"LIBGO_IS_NETBSD\" was never defined.
16025 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16027 if test -z "${LIBGO_IS_OPENBSD_TRUE}" && test -z "${LIBGO_IS_OPENBSD_FALSE}"; then
16028 as_fn_error $? "conditional \"LIBGO_IS_OPENBSD\" was never defined.
16029 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16031 if test -z "${LIBGO_IS_DRAGONFLY_TRUE}" && test -z "${LIBGO_IS_DRAGONFLY_FALSE}"; then
16032 as_fn_error $? "conditional \"LIBGO_IS_DRAGONFLY\" was never defined.
16033 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16035 if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
16036 as_fn_error $? "conditional \"LIBGO_IS_RTEMS\" was never defined.
16037 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16039 if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
16040 as_fn_error $? "conditional \"LIBGO_IS_SOLARIS\" was never defined.
16041 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16043 if test -z "${LIBGO_IS_AIX_TRUE}" && test -z "${LIBGO_IS_AIX_FALSE}"; then
16044 as_fn_error $? "conditional \"LIBGO_IS_AIX\" was never defined.
16045 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16047 if test -z "${LIBGO_IS_HURD_TRUE}" && test -z "${LIBGO_IS_HURD_FALSE}"; then
16048 as_fn_error $? "conditional \"LIBGO_IS_HURD\" was never defined.
16049 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16051 if test -z "${LIBGO_IS_BSD_TRUE}" && test -z "${LIBGO_IS_BSD_FALSE}"; then
16052 as_fn_error $? "conditional \"LIBGO_IS_BSD\" was never defined.
16053 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16055 if test -z "${LIBGO_IS_X86_TRUE}" && test -z "${LIBGO_IS_X86_FALSE}"; then
16056 as_fn_error $? "conditional \"LIBGO_IS_X86\" was never defined.
16057 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16059 if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
16060 as_fn_error $? "conditional \"USING_SPLIT_STACK\" was never defined.
16061 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16063 if test -z "${GOC_IS_LLGO_TRUE}" && test -z "${GOC_IS_LLGO_FALSE}"; then
16064 as_fn_error $? "conditional \"GOC_IS_LLGO\" was never defined.
16065 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16068 if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
16069 as_fn_error $? "conditional \"HAVE_SYS_MMAN_H\" was never defined.
16070 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16072 if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
16073 as_fn_error $? "conditional \"HAVE_STRERROR_R\" was never defined.
16074 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16076 if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
16077 as_fn_error $? "conditional \"HAVE_WAIT4\" was never defined.
16078 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16080 if test -z "${HAVE_STAT_TIMESPEC_TRUE}" && test -z "${HAVE_STAT_TIMESPEC_FALSE}"; then
16081 as_fn_error $? "conditional \"HAVE_STAT_TIMESPEC\" was never defined.
16082 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16085 : "${CONFIG_STATUS=./config.status}"
16086 ac_write_fail=0
16087 ac_clean_files_save=$ac_clean_files
16088 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16090 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16091 as_write_fail=0
16092 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16093 #! $SHELL
16094 # Generated by $as_me.
16095 # Run this file to recreate the current configuration.
16096 # Compiler output produced by configure, useful for debugging
16097 # configure, is in config.log if it exists.
16099 debug=false
16100 ac_cs_recheck=false
16101 ac_cs_silent=false
16103 SHELL=\${CONFIG_SHELL-$SHELL}
16104 export SHELL
16105 _ASEOF
16106 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16107 ## -------------------- ##
16108 ## M4sh Initialization. ##
16109 ## -------------------- ##
16111 # Be more Bourne compatible
16112 DUALCASE=1; export DUALCASE # for MKS sh
16113 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16114 emulate sh
16115 NULLCMD=:
16116 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16117 # is contrary to our usage. Disable this feature.
16118 alias -g '${1+"$@"}'='"$@"'
16119 setopt NO_GLOB_SUBST
16120 else
16121 case `(set -o) 2>/dev/null` in #(
16122 *posix*) :
16123 set -o posix ;; #(
16124 *) :
16126 esac
16130 as_nl='
16132 export as_nl
16133 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16134 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16135 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16136 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16137 # Prefer a ksh shell builtin over an external printf program on Solaris,
16138 # but without wasting forks for bash or zsh.
16139 if test -z "$BASH_VERSION$ZSH_VERSION" \
16140 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16141 as_echo='print -r --'
16142 as_echo_n='print -rn --'
16143 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16144 as_echo='printf %s\n'
16145 as_echo_n='printf %s'
16146 else
16147 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16148 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16149 as_echo_n='/usr/ucb/echo -n'
16150 else
16151 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16152 as_echo_n_body='eval
16153 arg=$1;
16154 case $arg in #(
16155 *"$as_nl"*)
16156 expr "X$arg" : "X\\(.*\\)$as_nl";
16157 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16158 esac;
16159 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16161 export as_echo_n_body
16162 as_echo_n='sh -c $as_echo_n_body as_echo'
16164 export as_echo_body
16165 as_echo='sh -c $as_echo_body as_echo'
16168 # The user is always right.
16169 if test "${PATH_SEPARATOR+set}" != set; then
16170 PATH_SEPARATOR=:
16171 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16172 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16173 PATH_SEPARATOR=';'
16178 # IFS
16179 # We need space, tab and new line, in precisely that order. Quoting is
16180 # there to prevent editors from complaining about space-tab.
16181 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16182 # splitting by setting IFS to empty value.)
16183 IFS=" "" $as_nl"
16185 # Find who we are. Look in the path if we contain no directory separator.
16186 as_myself=
16187 case $0 in #((
16188 *[\\/]* ) as_myself=$0 ;;
16189 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16190 for as_dir in $PATH
16192 IFS=$as_save_IFS
16193 test -z "$as_dir" && as_dir=.
16194 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16195 done
16196 IFS=$as_save_IFS
16199 esac
16200 # We did not find ourselves, most probably we were run as `sh COMMAND'
16201 # in which case we are not to be found in the path.
16202 if test "x$as_myself" = x; then
16203 as_myself=$0
16205 if test ! -f "$as_myself"; then
16206 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16207 exit 1
16210 # Unset variables that we do not need and which cause bugs (e.g. in
16211 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16212 # suppresses any "Segmentation fault" message there. '((' could
16213 # trigger a bug in pdksh 5.2.14.
16214 for as_var in BASH_ENV ENV MAIL MAILPATH
16215 do eval test x\${$as_var+set} = xset \
16216 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16217 done
16218 PS1='$ '
16219 PS2='> '
16220 PS4='+ '
16222 # NLS nuisances.
16223 LC_ALL=C
16224 export LC_ALL
16225 LANGUAGE=C
16226 export LANGUAGE
16228 # CDPATH.
16229 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16232 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16233 # ----------------------------------------
16234 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16235 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16236 # script with STATUS, using 1 if that was 0.
16237 as_fn_error ()
16239 as_status=$1; test $as_status -eq 0 && as_status=1
16240 if test "$4"; then
16241 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16242 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16244 $as_echo "$as_me: error: $2" >&2
16245 as_fn_exit $as_status
16246 } # as_fn_error
16249 # as_fn_set_status STATUS
16250 # -----------------------
16251 # Set $? to STATUS, without forking.
16252 as_fn_set_status ()
16254 return $1
16255 } # as_fn_set_status
16257 # as_fn_exit STATUS
16258 # -----------------
16259 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16260 as_fn_exit ()
16262 set +e
16263 as_fn_set_status $1
16264 exit $1
16265 } # as_fn_exit
16267 # as_fn_unset VAR
16268 # ---------------
16269 # Portably unset VAR.
16270 as_fn_unset ()
16272 { eval $1=; unset $1;}
16274 as_unset=as_fn_unset
16275 # as_fn_append VAR VALUE
16276 # ----------------------
16277 # Append the text in VALUE to the end of the definition contained in VAR. Take
16278 # advantage of any shell optimizations that allow amortized linear growth over
16279 # repeated appends, instead of the typical quadratic growth present in naive
16280 # implementations.
16281 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16282 eval 'as_fn_append ()
16284 eval $1+=\$2
16286 else
16287 as_fn_append ()
16289 eval $1=\$$1\$2
16291 fi # as_fn_append
16293 # as_fn_arith ARG...
16294 # ------------------
16295 # Perform arithmetic evaluation on the ARGs, and store the result in the
16296 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16297 # must be portable across $(()) and expr.
16298 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16299 eval 'as_fn_arith ()
16301 as_val=$(( $* ))
16303 else
16304 as_fn_arith ()
16306 as_val=`expr "$@" || test $? -eq 1`
16308 fi # as_fn_arith
16311 if expr a : '\(a\)' >/dev/null 2>&1 &&
16312 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16313 as_expr=expr
16314 else
16315 as_expr=false
16318 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16319 as_basename=basename
16320 else
16321 as_basename=false
16324 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16325 as_dirname=dirname
16326 else
16327 as_dirname=false
16330 as_me=`$as_basename -- "$0" ||
16331 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16332 X"$0" : 'X\(//\)$' \| \
16333 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16334 $as_echo X/"$0" |
16335 sed '/^.*\/\([^/][^/]*\)\/*$/{
16336 s//\1/
16339 /^X\/\(\/\/\)$/{
16340 s//\1/
16343 /^X\/\(\/\).*/{
16344 s//\1/
16347 s/.*/./; q'`
16349 # Avoid depending upon Character Ranges.
16350 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16351 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16352 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16353 as_cr_digits='0123456789'
16354 as_cr_alnum=$as_cr_Letters$as_cr_digits
16356 ECHO_C= ECHO_N= ECHO_T=
16357 case `echo -n x` in #(((((
16358 -n*)
16359 case `echo 'xy\c'` in
16360 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16361 xy) ECHO_C='\c';;
16362 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16363 ECHO_T=' ';;
16364 esac;;
16366 ECHO_N='-n';;
16367 esac
16369 rm -f conf$$ conf$$.exe conf$$.file
16370 if test -d conf$$.dir; then
16371 rm -f conf$$.dir/conf$$.file
16372 else
16373 rm -f conf$$.dir
16374 mkdir conf$$.dir 2>/dev/null
16376 if (echo >conf$$.file) 2>/dev/null; then
16377 if ln -s conf$$.file conf$$ 2>/dev/null; then
16378 as_ln_s='ln -s'
16379 # ... but there are two gotchas:
16380 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16381 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16382 # In both cases, we have to default to `cp -pR'.
16383 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16384 as_ln_s='cp -pR'
16385 elif ln conf$$.file conf$$ 2>/dev/null; then
16386 as_ln_s=ln
16387 else
16388 as_ln_s='cp -pR'
16390 else
16391 as_ln_s='cp -pR'
16393 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16394 rmdir conf$$.dir 2>/dev/null
16397 # as_fn_mkdir_p
16398 # -------------
16399 # Create "$as_dir" as a directory, including parents if necessary.
16400 as_fn_mkdir_p ()
16403 case $as_dir in #(
16404 -*) as_dir=./$as_dir;;
16405 esac
16406 test -d "$as_dir" || eval $as_mkdir_p || {
16407 as_dirs=
16408 while :; do
16409 case $as_dir in #(
16410 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16411 *) as_qdir=$as_dir;;
16412 esac
16413 as_dirs="'$as_qdir' $as_dirs"
16414 as_dir=`$as_dirname -- "$as_dir" ||
16415 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16416 X"$as_dir" : 'X\(//\)[^/]' \| \
16417 X"$as_dir" : 'X\(//\)$' \| \
16418 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16419 $as_echo X"$as_dir" |
16420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16421 s//\1/
16424 /^X\(\/\/\)[^/].*/{
16425 s//\1/
16428 /^X\(\/\/\)$/{
16429 s//\1/
16432 /^X\(\/\).*/{
16433 s//\1/
16436 s/.*/./; q'`
16437 test -d "$as_dir" && break
16438 done
16439 test -z "$as_dirs" || eval "mkdir $as_dirs"
16440 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16443 } # as_fn_mkdir_p
16444 if mkdir -p . 2>/dev/null; then
16445 as_mkdir_p='mkdir -p "$as_dir"'
16446 else
16447 test -d ./-p && rmdir ./-p
16448 as_mkdir_p=false
16452 # as_fn_executable_p FILE
16453 # -----------------------
16454 # Test if FILE is an executable regular file.
16455 as_fn_executable_p ()
16457 test -f "$1" && test -x "$1"
16458 } # as_fn_executable_p
16459 as_test_x='test -x'
16460 as_executable_p=as_fn_executable_p
16462 # Sed expression to map a string onto a valid CPP name.
16463 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16465 # Sed expression to map a string onto a valid variable name.
16466 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16469 exec 6>&1
16470 ## ----------------------------------- ##
16471 ## Main body of $CONFIG_STATUS script. ##
16472 ## ----------------------------------- ##
16473 _ASEOF
16474 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16476 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16477 # Save the log message, to keep $0 and so on meaningful, and to
16478 # report actual input values of CONFIG_FILES etc. instead of their
16479 # values after options handling.
16480 ac_log="
16481 This file was extended by package-unused $as_me version-unused, which was
16482 generated by GNU Autoconf 2.69. Invocation command line was
16484 CONFIG_FILES = $CONFIG_FILES
16485 CONFIG_HEADERS = $CONFIG_HEADERS
16486 CONFIG_LINKS = $CONFIG_LINKS
16487 CONFIG_COMMANDS = $CONFIG_COMMANDS
16488 $ $0 $@
16490 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16493 _ACEOF
16495 case $ac_config_files in *"
16496 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16497 esac
16499 case $ac_config_headers in *"
16500 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16501 esac
16504 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16505 # Files that config.status was made for.
16506 config_files="$ac_config_files"
16507 config_headers="$ac_config_headers"
16508 config_commands="$ac_config_commands"
16510 _ACEOF
16512 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16513 ac_cs_usage="\
16514 \`$as_me' instantiates files and other configuration actions
16515 from templates according to the current configuration. Unless the files
16516 and actions are specified as TAGs, all are instantiated by default.
16518 Usage: $0 [OPTION]... [TAG]...
16520 -h, --help print this help, then exit
16521 -V, --version print version number and configuration settings, then exit
16522 --config print configuration, then exit
16523 -q, --quiet, --silent
16524 do not print progress messages
16525 -d, --debug don't remove temporary files
16526 --recheck update $as_me by reconfiguring in the same conditions
16527 --file=FILE[:TEMPLATE]
16528 instantiate the configuration file FILE
16529 --header=FILE[:TEMPLATE]
16530 instantiate the configuration header FILE
16532 Configuration files:
16533 $config_files
16535 Configuration headers:
16536 $config_headers
16538 Configuration commands:
16539 $config_commands
16541 Report bugs to the package provider."
16543 _ACEOF
16544 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16545 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16546 ac_cs_version="\\
16547 package-unused config.status version-unused
16548 configured by $0, generated by GNU Autoconf 2.69,
16549 with options \\"\$ac_cs_config\\"
16551 Copyright (C) 2012 Free Software Foundation, Inc.
16552 This config.status script is free software; the Free Software Foundation
16553 gives unlimited permission to copy, distribute and modify it."
16555 ac_pwd='$ac_pwd'
16556 srcdir='$srcdir'
16557 INSTALL='$INSTALL'
16558 MKDIR_P='$MKDIR_P'
16559 AWK='$AWK'
16560 test -n "\$AWK" || AWK=awk
16561 _ACEOF
16563 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16564 # The default lists apply if the user does not specify any file.
16565 ac_need_defaults=:
16566 while test $# != 0
16568 case $1 in
16569 --*=?*)
16570 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16571 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16572 ac_shift=:
16574 --*=)
16575 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16576 ac_optarg=
16577 ac_shift=:
16580 ac_option=$1
16581 ac_optarg=$2
16582 ac_shift=shift
16584 esac
16586 case $ac_option in
16587 # Handling of the options.
16588 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16589 ac_cs_recheck=: ;;
16590 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16591 $as_echo "$ac_cs_version"; exit ;;
16592 --config | --confi | --conf | --con | --co | --c )
16593 $as_echo "$ac_cs_config"; exit ;;
16594 --debug | --debu | --deb | --de | --d | -d )
16595 debug=: ;;
16596 --file | --fil | --fi | --f )
16597 $ac_shift
16598 case $ac_optarg in
16599 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16600 '') as_fn_error $? "missing file argument" ;;
16601 esac
16602 as_fn_append CONFIG_FILES " '$ac_optarg'"
16603 ac_need_defaults=false;;
16604 --header | --heade | --head | --hea )
16605 $ac_shift
16606 case $ac_optarg in
16607 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16608 esac
16609 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16610 ac_need_defaults=false;;
16611 --he | --h)
16612 # Conflict between --help and --header
16613 as_fn_error $? "ambiguous option: \`$1'
16614 Try \`$0 --help' for more information.";;
16615 --help | --hel | -h )
16616 $as_echo "$ac_cs_usage"; exit ;;
16617 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16618 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16619 ac_cs_silent=: ;;
16621 # This is an error.
16622 -*) as_fn_error $? "unrecognized option: \`$1'
16623 Try \`$0 --help' for more information." ;;
16625 *) as_fn_append ac_config_targets " $1"
16626 ac_need_defaults=false ;;
16628 esac
16629 shift
16630 done
16632 ac_configure_extra_args=
16634 if $ac_cs_silent; then
16635 exec 6>/dev/null
16636 ac_configure_extra_args="$ac_configure_extra_args --silent"
16639 _ACEOF
16640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16641 if \$ac_cs_recheck; then
16642 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16643 shift
16644 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16645 CONFIG_SHELL='$SHELL'
16646 export CONFIG_SHELL
16647 exec "\$@"
16650 _ACEOF
16651 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16652 exec 5>>config.log
16654 echo
16655 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16656 ## Running $as_me. ##
16657 _ASBOX
16658 $as_echo "$ac_log"
16659 } >&5
16661 _ACEOF
16662 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16664 # INIT-COMMANDS
16667 srcdir="$srcdir"
16668 host="$host"
16669 target="$target"
16670 with_multisubdir="$with_multisubdir"
16671 with_multisrctop="$with_multisrctop"
16672 with_target_subdir="$with_target_subdir"
16673 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16674 multi_basedir="$multi_basedir"
16675 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16676 CC="$CC"
16677 CXX="$CXX"
16678 GFORTRAN="$GFORTRAN"
16679 GDC="$GDC"
16680 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16683 # The HP-UX ksh and POSIX shell print the target directory to stdout
16684 # if CDPATH is set.
16685 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16687 sed_quote_subst='$sed_quote_subst'
16688 double_quote_subst='$double_quote_subst'
16689 delay_variable_subst='$delay_variable_subst'
16690 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16691 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16692 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16693 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16694 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16695 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16696 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16697 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16698 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16699 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16700 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16701 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16702 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16703 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16704 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16705 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16706 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16707 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16708 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16709 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16710 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16711 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16712 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16713 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16714 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16715 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16716 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16717 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16718 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16719 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16720 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16721 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16722 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16723 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16724 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16725 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16726 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16727 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16728 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16729 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16730 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16731 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16732 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16733 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16734 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16735 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16736 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16737 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16738 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"`'
16739 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16740 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16741 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16742 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16743 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16744 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16745 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16746 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16747 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16748 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16749 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16750 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16751 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16752 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16753 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16754 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16755 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16756 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16757 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16758 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16759 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16760 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16761 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16762 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16763 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16764 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16765 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16766 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16767 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16768 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16769 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16770 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16771 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16772 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16773 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16774 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16775 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16776 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16777 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16778 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16779 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16780 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16781 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16782 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16783 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16784 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16785 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16786 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16787 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16788 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16789 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16790 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16791 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16792 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16793 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16794 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16795 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16796 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16797 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16798 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16799 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16800 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16801 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16802 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16803 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16804 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16805 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16806 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16807 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16808 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16809 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16810 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
16811 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
16812 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
16813 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16814 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
16815 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
16816 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
16817 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
16818 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
16819 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
16820 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
16821 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
16822 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
16823 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16824 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16825 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
16826 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
16827 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
16828 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16829 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16830 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
16831 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16832 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
16833 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16834 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16835 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16836 hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
16837 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
16838 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
16839 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
16840 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
16841 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
16842 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
16843 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
16844 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
16845 fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
16846 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
16847 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
16848 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16849 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16850 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
16851 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
16852 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
16854 LTCC='$LTCC'
16855 LTCFLAGS='$LTCFLAGS'
16856 compiler='$compiler_DEFAULT'
16858 # A function that is used when there is no print builtin or printf.
16859 func_fallback_echo ()
16861 eval 'cat <<_LTECHO_EOF
16863 _LTECHO_EOF'
16866 # Quote evaled strings.
16867 for var in SED \
16868 GREP \
16869 EGREP \
16870 FGREP \
16871 SHELL \
16872 ECHO \
16873 LD \
16874 NM \
16875 LN_S \
16876 lt_SP2NL \
16877 lt_NL2SP \
16878 reload_flag \
16879 OBJDUMP \
16880 deplibs_check_method \
16881 file_magic_cmd \
16882 AR \
16883 AR_FLAGS \
16884 STRIP \
16885 RANLIB \
16886 CC \
16887 CFLAGS \
16888 compiler \
16889 lt_cv_sys_global_symbol_pipe \
16890 lt_cv_sys_global_symbol_to_cdecl \
16891 lt_cv_sys_global_symbol_to_c_name_address \
16892 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16893 lt_prog_compiler_no_builtin_flag \
16894 lt_prog_compiler_wl \
16895 lt_prog_compiler_pic \
16896 lt_prog_compiler_static \
16897 lt_cv_prog_compiler_c_o \
16898 need_locks \
16899 DSYMUTIL \
16900 NMEDIT \
16901 LIPO \
16902 OTOOL \
16903 OTOOL64 \
16904 shrext_cmds \
16905 export_dynamic_flag_spec \
16906 whole_archive_flag_spec \
16907 compiler_needs_object \
16908 with_gnu_ld \
16909 allow_undefined_flag \
16910 no_undefined_flag \
16911 hardcode_libdir_flag_spec \
16912 hardcode_libdir_flag_spec_ld \
16913 hardcode_libdir_separator \
16914 fix_srcfile_path \
16915 exclude_expsyms \
16916 include_expsyms \
16917 file_list_spec \
16918 variables_saved_for_relink \
16919 libname_spec \
16920 library_names_spec \
16921 soname_spec \
16922 install_override_mode \
16923 finish_eval \
16924 old_striplib \
16925 striplib \
16926 LD_GO \
16927 reload_flag_GO \
16928 compiler_GO \
16929 lt_prog_compiler_no_builtin_flag_GO \
16930 lt_prog_compiler_wl_GO \
16931 lt_prog_compiler_pic_GO \
16932 lt_prog_compiler_static_GO \
16933 lt_cv_prog_compiler_c_o_GO \
16934 export_dynamic_flag_spec_GO \
16935 whole_archive_flag_spec_GO \
16936 compiler_needs_object_GO \
16937 with_gnu_ld_GO \
16938 allow_undefined_flag_GO \
16939 no_undefined_flag_GO \
16940 hardcode_libdir_flag_spec_GO \
16941 hardcode_libdir_flag_spec_ld_GO \
16942 hardcode_libdir_separator_GO \
16943 fix_srcfile_path_GO \
16944 exclude_expsyms_GO \
16945 include_expsyms_GO \
16946 file_list_spec_GO; do
16947 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16948 *[\\\\\\\`\\"\\\$]*)
16949 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16952 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16954 esac
16955 done
16957 # Double-quote double-evaled strings.
16958 for var in reload_cmds \
16959 old_postinstall_cmds \
16960 old_postuninstall_cmds \
16961 old_archive_cmds \
16962 extract_expsyms_cmds \
16963 old_archive_from_new_cmds \
16964 old_archive_from_expsyms_cmds \
16965 archive_cmds \
16966 archive_expsym_cmds \
16967 module_cmds \
16968 module_expsym_cmds \
16969 export_symbols_cmds \
16970 prelink_cmds \
16971 postinstall_cmds \
16972 postuninstall_cmds \
16973 finish_cmds \
16974 sys_lib_search_path_spec \
16975 sys_lib_dlsearch_path_spec \
16976 reload_cmds_GO \
16977 old_archive_cmds_GO \
16978 old_archive_from_new_cmds_GO \
16979 old_archive_from_expsyms_cmds_GO \
16980 archive_cmds_GO \
16981 archive_expsym_cmds_GO \
16982 module_cmds_GO \
16983 module_expsym_cmds_GO \
16984 export_symbols_cmds_GO \
16985 prelink_cmds_GO; do
16986 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16987 *[\\\\\\\`\\"\\\$]*)
16988 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16991 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16993 esac
16994 done
16996 ac_aux_dir='$ac_aux_dir'
16997 xsi_shell='$xsi_shell'
16998 lt_shell_append='$lt_shell_append'
17000 # See if we are running on zsh, and set the options which allow our
17001 # commands through without removal of \ escapes INIT.
17002 if test -n "\${ZSH_VERSION+set}" ; then
17003 setopt NO_GLOB_SUBST
17007 PACKAGE='$PACKAGE'
17008 VERSION='$VERSION'
17009 TIMESTAMP='$TIMESTAMP'
17010 RM='$RM'
17011 ofile='$ofile'
17018 # Variables needed in config.status (file generation) which aren't already
17019 # passed by autoconf.
17020 SUBDIRS="$SUBDIRS"
17023 _ACEOF
17025 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17027 # Handling of arguments.
17028 for ac_config_target in $ac_config_targets
17030 case $ac_config_target in
17031 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17032 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17033 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17034 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17035 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17036 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17037 "testsuite/libgo-test-support.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libgo-test-support.exp" ;;
17038 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17040 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17041 esac
17042 done
17045 # If the user did not use the arguments to specify the items to instantiate,
17046 # then the envvar interface is used. Set only those that are not.
17047 # We use the long form for the default assignment because of an extremely
17048 # bizarre bug on SunOS 4.1.3.
17049 if $ac_need_defaults; then
17050 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17051 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17052 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17055 # Have a temporary directory for convenience. Make it in the build tree
17056 # simply because there is no reason against having it here, and in addition,
17057 # creating and moving files from /tmp can sometimes cause problems.
17058 # Hook for its removal unless debugging.
17059 # Note that there is a small window in which the directory will not be cleaned:
17060 # after its creation but before its name has been assigned to `$tmp'.
17061 $debug ||
17063 tmp= ac_tmp=
17064 trap 'exit_status=$?
17065 : "${ac_tmp:=$tmp}"
17066 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17068 trap 'as_fn_exit 1' 1 2 13 15
17070 # Create a (secure) tmp directory for tmp files.
17073 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17074 test -d "$tmp"
17075 } ||
17077 tmp=./conf$$-$RANDOM
17078 (umask 077 && mkdir "$tmp")
17079 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17080 ac_tmp=$tmp
17082 # Set up the scripts for CONFIG_FILES section.
17083 # No need to generate them if there are no CONFIG_FILES.
17084 # This happens for instance with `./config.status config.h'.
17085 if test -n "$CONFIG_FILES"; then
17088 ac_cr=`echo X | tr X '\015'`
17089 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17090 # But we know of no other shell where ac_cr would be empty at this
17091 # point, so we can use a bashism as a fallback.
17092 if test "x$ac_cr" = x; then
17093 eval ac_cr=\$\'\\r\'
17095 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17096 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17097 ac_cs_awk_cr='\\r'
17098 else
17099 ac_cs_awk_cr=$ac_cr
17102 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17103 _ACEOF
17107 echo "cat >conf$$subs.awk <<_ACEOF" &&
17108 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17109 echo "_ACEOF"
17110 } >conf$$subs.sh ||
17111 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17112 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17113 ac_delim='%!_!# '
17114 for ac_last_try in false false false false false :; do
17115 . ./conf$$subs.sh ||
17116 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17118 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17119 if test $ac_delim_n = $ac_delim_num; then
17120 break
17121 elif $ac_last_try; then
17122 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17123 else
17124 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17126 done
17127 rm -f conf$$subs.sh
17129 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17130 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17131 _ACEOF
17132 sed -n '
17134 s/^/S["/; s/!.*/"]=/
17137 s/^[^!]*!//
17138 :repl
17139 t repl
17140 s/'"$ac_delim"'$//
17141 t delim
17144 s/\(.\{148\}\)..*/\1/
17145 t more1
17146 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17149 b repl
17150 :more1
17151 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17154 s/.\{148\}//
17155 t nl
17156 :delim
17158 s/\(.\{148\}\)..*/\1/
17159 t more2
17160 s/["\\]/\\&/g; s/^/"/; s/$/"/
17163 :more2
17164 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17167 s/.\{148\}//
17168 t delim
17169 ' <conf$$subs.awk | sed '
17170 /^[^""]/{
17172 s/\n//
17174 ' >>$CONFIG_STATUS || ac_write_fail=1
17175 rm -f conf$$subs.awk
17176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17177 _ACAWK
17178 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17179 for (key in S) S_is_set[key] = 1
17180 FS = "\a"
17184 line = $ 0
17185 nfields = split(line, field, "@")
17186 substed = 0
17187 len = length(field[1])
17188 for (i = 2; i < nfields; i++) {
17189 key = field[i]
17190 keylen = length(key)
17191 if (S_is_set[key]) {
17192 value = S[key]
17193 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17194 len += length(value) + length(field[++i])
17195 substed = 1
17196 } else
17197 len += 1 + keylen
17200 print line
17203 _ACAWK
17204 _ACEOF
17205 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17206 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17207 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17208 else
17210 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17211 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17212 _ACEOF
17214 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17215 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17216 # trailing colons and then remove the whole line if VPATH becomes empty
17217 # (actually we leave an empty line to preserve line numbers).
17218 if test "x$srcdir" = x.; then
17219 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17221 s///
17222 s/^/:/
17223 s/[ ]*$/:/
17224 s/:\$(srcdir):/:/g
17225 s/:\${srcdir}:/:/g
17226 s/:@srcdir@:/:/g
17227 s/^:*//
17228 s/:*$//
17230 s/\(=[ ]*\).*/\1/
17232 s/\n//
17233 s/^[^=]*=[ ]*$//
17237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17238 fi # test -n "$CONFIG_FILES"
17240 # Set up the scripts for CONFIG_HEADERS section.
17241 # No need to generate them if there are no CONFIG_HEADERS.
17242 # This happens for instance with `./config.status Makefile'.
17243 if test -n "$CONFIG_HEADERS"; then
17244 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17245 BEGIN {
17246 _ACEOF
17248 # Transform confdefs.h into an awk script `defines.awk', embedded as
17249 # here-document in config.status, that substitutes the proper values into
17250 # config.h.in to produce config.h.
17252 # Create a delimiter string that does not exist in confdefs.h, to ease
17253 # handling of long lines.
17254 ac_delim='%!_!# '
17255 for ac_last_try in false false :; do
17256 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17257 if test -z "$ac_tt"; then
17258 break
17259 elif $ac_last_try; then
17260 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17261 else
17262 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17264 done
17266 # For the awk script, D is an array of macro values keyed by name,
17267 # likewise P contains macro parameters if any. Preserve backslash
17268 # newline sequences.
17270 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17271 sed -n '
17272 s/.\{148\}/&'"$ac_delim"'/g
17273 t rset
17274 :rset
17275 s/^[ ]*#[ ]*define[ ][ ]*/ /
17276 t def
17278 :def
17279 s/\\$//
17280 t bsnl
17281 s/["\\]/\\&/g
17282 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17283 D["\1"]=" \3"/p
17284 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17286 :bsnl
17287 s/["\\]/\\&/g
17288 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17289 D["\1"]=" \3\\\\\\n"\\/p
17290 t cont
17291 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17292 t cont
17294 :cont
17296 s/.\{148\}/&'"$ac_delim"'/g
17297 t clear
17298 :clear
17299 s/\\$//
17300 t bsnlc
17301 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17303 :bsnlc
17304 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17305 b cont
17306 ' <confdefs.h | sed '
17307 s/'"$ac_delim"'/"\\\
17308 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17310 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17311 for (key in D) D_is_set[key] = 1
17312 FS = "\a"
17314 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17315 line = \$ 0
17316 split(line, arg, " ")
17317 if (arg[1] == "#") {
17318 defundef = arg[2]
17319 mac1 = arg[3]
17320 } else {
17321 defundef = substr(arg[1], 2)
17322 mac1 = arg[2]
17324 split(mac1, mac2, "(") #)
17325 macro = mac2[1]
17326 prefix = substr(line, 1, index(line, defundef) - 1)
17327 if (D_is_set[macro]) {
17328 # Preserve the white space surrounding the "#".
17329 print prefix "define", macro P[macro] D[macro]
17330 next
17331 } else {
17332 # Replace #undef with comments. This is necessary, for example,
17333 # in the case of _POSIX_SOURCE, which is predefined and required
17334 # on some systems where configure will not decide to define it.
17335 if (defundef == "undef") {
17336 print "/*", prefix defundef, macro, "*/"
17337 next
17341 { print }
17342 _ACAWK
17343 _ACEOF
17344 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17345 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17346 fi # test -n "$CONFIG_HEADERS"
17349 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17350 shift
17351 for ac_tag
17353 case $ac_tag in
17354 :[FHLC]) ac_mode=$ac_tag; continue;;
17355 esac
17356 case $ac_mode$ac_tag in
17357 :[FHL]*:*);;
17358 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17359 :[FH]-) ac_tag=-:-;;
17360 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17361 esac
17362 ac_save_IFS=$IFS
17363 IFS=:
17364 set x $ac_tag
17365 IFS=$ac_save_IFS
17366 shift
17367 ac_file=$1
17368 shift
17370 case $ac_mode in
17371 :L) ac_source=$1;;
17372 :[FH])
17373 ac_file_inputs=
17374 for ac_f
17376 case $ac_f in
17377 -) ac_f="$ac_tmp/stdin";;
17378 *) # Look for the file first in the build tree, then in the source tree
17379 # (if the path is not absolute). The absolute path cannot be DOS-style,
17380 # because $ac_f cannot contain `:'.
17381 test -f "$ac_f" ||
17382 case $ac_f in
17383 [\\/$]*) false;;
17384 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17385 esac ||
17386 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17387 esac
17388 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17389 as_fn_append ac_file_inputs " '$ac_f'"
17390 done
17392 # Let's still pretend it is `configure' which instantiates (i.e., don't
17393 # use $as_me), people would be surprised to read:
17394 # /* config.h. Generated by config.status. */
17395 configure_input='Generated from '`
17396 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17397 `' by configure.'
17398 if test x"$ac_file" != x-; then
17399 configure_input="$ac_file. $configure_input"
17400 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17401 $as_echo "$as_me: creating $ac_file" >&6;}
17403 # Neutralize special characters interpreted by sed in replacement strings.
17404 case $configure_input in #(
17405 *\&* | *\|* | *\\* )
17406 ac_sed_conf_input=`$as_echo "$configure_input" |
17407 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17408 *) ac_sed_conf_input=$configure_input;;
17409 esac
17411 case $ac_tag in
17412 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17413 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17414 esac
17416 esac
17418 ac_dir=`$as_dirname -- "$ac_file" ||
17419 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17420 X"$ac_file" : 'X\(//\)[^/]' \| \
17421 X"$ac_file" : 'X\(//\)$' \| \
17422 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17423 $as_echo X"$ac_file" |
17424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17425 s//\1/
17428 /^X\(\/\/\)[^/].*/{
17429 s//\1/
17432 /^X\(\/\/\)$/{
17433 s//\1/
17436 /^X\(\/\).*/{
17437 s//\1/
17440 s/.*/./; q'`
17441 as_dir="$ac_dir"; as_fn_mkdir_p
17442 ac_builddir=.
17444 case "$ac_dir" in
17445 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17447 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17448 # A ".." for each directory in $ac_dir_suffix.
17449 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17450 case $ac_top_builddir_sub in
17451 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17452 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17453 esac ;;
17454 esac
17455 ac_abs_top_builddir=$ac_pwd
17456 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17457 # for backward compatibility:
17458 ac_top_builddir=$ac_top_build_prefix
17460 case $srcdir in
17461 .) # We are building in place.
17462 ac_srcdir=.
17463 ac_top_srcdir=$ac_top_builddir_sub
17464 ac_abs_top_srcdir=$ac_pwd ;;
17465 [\\/]* | ?:[\\/]* ) # Absolute name.
17466 ac_srcdir=$srcdir$ac_dir_suffix;
17467 ac_top_srcdir=$srcdir
17468 ac_abs_top_srcdir=$srcdir ;;
17469 *) # Relative name.
17470 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17471 ac_top_srcdir=$ac_top_build_prefix$srcdir
17472 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17473 esac
17474 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17477 case $ac_mode in
17480 # CONFIG_FILE
17483 case $INSTALL in
17484 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17485 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17486 esac
17487 ac_MKDIR_P=$MKDIR_P
17488 case $MKDIR_P in
17489 [\\/$]* | ?:[\\/]* ) ;;
17490 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17491 esac
17492 _ACEOF
17494 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17495 # If the template does not know about datarootdir, expand it.
17496 # FIXME: This hack should be removed a few years after 2.60.
17497 ac_datarootdir_hack=; ac_datarootdir_seen=
17498 ac_sed_dataroot='
17499 /datarootdir/ {
17503 /@datadir@/p
17504 /@docdir@/p
17505 /@infodir@/p
17506 /@localedir@/p
17507 /@mandir@/p'
17508 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17509 *datarootdir*) ac_datarootdir_seen=yes;;
17510 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17512 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17513 _ACEOF
17514 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17515 ac_datarootdir_hack='
17516 s&@datadir@&$datadir&g
17517 s&@docdir@&$docdir&g
17518 s&@infodir@&$infodir&g
17519 s&@localedir@&$localedir&g
17520 s&@mandir@&$mandir&g
17521 s&\\\${datarootdir}&$datarootdir&g' ;;
17522 esac
17523 _ACEOF
17525 # Neutralize VPATH when `$srcdir' = `.'.
17526 # Shell code in configure.ac might set extrasub.
17527 # FIXME: do we really want to maintain this feature?
17528 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17529 ac_sed_extra="$ac_vpsub
17530 $extrasub
17531 _ACEOF
17532 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17534 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17535 s|@configure_input@|$ac_sed_conf_input|;t t
17536 s&@top_builddir@&$ac_top_builddir_sub&;t t
17537 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17538 s&@srcdir@&$ac_srcdir&;t t
17539 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17540 s&@top_srcdir@&$ac_top_srcdir&;t t
17541 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17542 s&@builddir@&$ac_builddir&;t t
17543 s&@abs_builddir@&$ac_abs_builddir&;t t
17544 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17545 s&@INSTALL@&$ac_INSTALL&;t t
17546 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17547 $ac_datarootdir_hack
17549 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17550 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17552 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17553 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17554 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17555 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17557 which seems to be undefined. Please make sure it is defined" >&5
17558 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17559 which seems to be undefined. Please make sure it is defined" >&2;}
17561 rm -f "$ac_tmp/stdin"
17562 case $ac_file in
17563 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17564 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17565 esac \
17566 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17570 # CONFIG_HEADER
17572 if test x"$ac_file" != x-; then
17574 $as_echo "/* $configure_input */" \
17575 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17576 } >"$ac_tmp/config.h" \
17577 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17578 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17579 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17580 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17581 else
17582 rm -f "$ac_file"
17583 mv "$ac_tmp/config.h" "$ac_file" \
17584 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17586 else
17587 $as_echo "/* $configure_input */" \
17588 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17589 || as_fn_error $? "could not create -" "$LINENO" 5
17591 # Compute "$ac_file"'s index in $config_headers.
17592 _am_arg="$ac_file"
17593 _am_stamp_count=1
17594 for _am_header in $config_headers :; do
17595 case $_am_header in
17596 $_am_arg | $_am_arg:* )
17597 break ;;
17599 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17600 esac
17601 done
17602 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17603 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17604 X"$_am_arg" : 'X\(//\)[^/]' \| \
17605 X"$_am_arg" : 'X\(//\)$' \| \
17606 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17607 $as_echo X"$_am_arg" |
17608 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17609 s//\1/
17612 /^X\(\/\/\)[^/].*/{
17613 s//\1/
17616 /^X\(\/\/\)$/{
17617 s//\1/
17620 /^X\(\/\).*/{
17621 s//\1/
17624 s/.*/./; q'`/stamp-h$_am_stamp_count
17627 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17628 $as_echo "$as_me: executing $ac_file commands" >&6;}
17630 esac
17633 case $ac_file$ac_mode in
17634 "default-1":C)
17635 # Only add multilib support code if we just rebuilt the top-level
17636 # Makefile.
17637 case " $CONFIG_FILES " in
17638 *" Makefile "*)
17639 ac_file=Makefile . ${multi_basedir}/config-ml.in
17641 esac ;;
17642 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17643 # Older Autoconf quotes --file arguments for eval, but not when files
17644 # are listed without --file. Let's play safe and only enable the eval
17645 # if we detect the quoting.
17646 case $CONFIG_FILES in
17647 *\'*) eval set x "$CONFIG_FILES" ;;
17648 *) set x $CONFIG_FILES ;;
17649 esac
17650 shift
17651 for mf
17653 # Strip MF so we end up with the name of the file.
17654 mf=`echo "$mf" | sed -e 's/:.*$//'`
17655 # Check whether this is an Automake generated Makefile or not.
17656 # We used to match only the files named 'Makefile.in', but
17657 # some people rename them; so instead we look at the file content.
17658 # Grep'ing the first line is not enough: some people post-process
17659 # each Makefile.in and add a new line on top of each file to say so.
17660 # Grep'ing the whole file is not good either: AIX grep has a line
17661 # limit of 2048, but all sed's we know have understand at least 4000.
17662 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17663 dirpart=`$as_dirname -- "$mf" ||
17664 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17665 X"$mf" : 'X\(//\)[^/]' \| \
17666 X"$mf" : 'X\(//\)$' \| \
17667 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17668 $as_echo X"$mf" |
17669 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17670 s//\1/
17673 /^X\(\/\/\)[^/].*/{
17674 s//\1/
17677 /^X\(\/\/\)$/{
17678 s//\1/
17681 /^X\(\/\).*/{
17682 s//\1/
17685 s/.*/./; q'`
17686 else
17687 continue
17689 # Extract the definition of DEPDIR, am__include, and am__quote
17690 # from the Makefile without running 'make'.
17691 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17692 test -z "$DEPDIR" && continue
17693 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17694 test -z "$am__include" && continue
17695 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17696 # Find all dependency output files, they are included files with
17697 # $(DEPDIR) in their names. We invoke sed twice because it is the
17698 # simplest approach to changing $(DEPDIR) to its actual value in the
17699 # expansion.
17700 for file in `sed -n "
17701 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17702 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17703 # Make sure the directory exists.
17704 test -f "$dirpart/$file" && continue
17705 fdir=`$as_dirname -- "$file" ||
17706 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17707 X"$file" : 'X\(//\)[^/]' \| \
17708 X"$file" : 'X\(//\)$' \| \
17709 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17710 $as_echo X"$file" |
17711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17712 s//\1/
17715 /^X\(\/\/\)[^/].*/{
17716 s//\1/
17719 /^X\(\/\/\)$/{
17720 s//\1/
17723 /^X\(\/\).*/{
17724 s//\1/
17727 s/.*/./; q'`
17728 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17729 # echo "creating $dirpart/$file"
17730 echo '# dummy' > "$dirpart/$file"
17731 done
17732 done
17735 "libtool":C)
17737 # See if we are running on zsh, and set the options which allow our
17738 # commands through without removal of \ escapes.
17739 if test -n "${ZSH_VERSION+set}" ; then
17740 setopt NO_GLOB_SUBST
17743 cfgfile="${ofile}T"
17744 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17745 $RM "$cfgfile"
17747 cat <<_LT_EOF >> "$cfgfile"
17748 #! $SHELL
17750 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17751 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17752 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17753 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17755 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17756 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17757 # Written by Gordon Matzigkeit, 1996
17759 # This file is part of GNU Libtool.
17761 # GNU Libtool is free software; you can redistribute it and/or
17762 # modify it under the terms of the GNU General Public License as
17763 # published by the Free Software Foundation; either version 2 of
17764 # the License, or (at your option) any later version.
17766 # As a special exception to the GNU General Public License,
17767 # if you distribute this file as part of a program or library that
17768 # is built using GNU Libtool, you may include this file under the
17769 # same distribution terms that you use for the rest of that program.
17771 # GNU Libtool is distributed in the hope that it will be useful,
17772 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17773 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17774 # GNU General Public License for more details.
17776 # You should have received a copy of the GNU General Public License
17777 # along with GNU Libtool; see the file COPYING. If not, a copy
17778 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17779 # obtained by writing to the Free Software Foundation, Inc.,
17780 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17783 # The names of the tagged configurations supported by this script.
17784 available_tags="GO "
17786 # ### BEGIN LIBTOOL CONFIG
17788 # A sed program that does not truncate output.
17789 SED=$lt_SED
17791 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17792 Xsed="\$SED -e 1s/^X//"
17794 # A grep program that handles long lines.
17795 GREP=$lt_GREP
17797 # An ERE matcher.
17798 EGREP=$lt_EGREP
17800 # A literal string matcher.
17801 FGREP=$lt_FGREP
17803 # Shell to use when invoking shell scripts.
17804 SHELL=$lt_SHELL
17806 # An echo program that protects backslashes.
17807 ECHO=$lt_ECHO
17809 # Which release of libtool.m4 was used?
17810 macro_version=$macro_version
17811 macro_revision=$macro_revision
17813 # Whether or not to build shared libraries.
17814 build_libtool_libs=$enable_shared
17816 # Whether or not to build static libraries.
17817 build_old_libs=$enable_static
17819 # What type of objects to build.
17820 pic_mode=$pic_mode
17822 # Whether or not to optimize for fast installation.
17823 fast_install=$enable_fast_install
17825 # The host system.
17826 host_alias=$host_alias
17827 host=$host
17828 host_os=$host_os
17830 # The build system.
17831 build_alias=$build_alias
17832 build=$build
17833 build_os=$build_os
17835 # A BSD- or MS-compatible name lister.
17836 NM=$lt_NM
17838 # Whether we need soft or hard links.
17839 LN_S=$lt_LN_S
17841 # What is the maximum length of a command?
17842 max_cmd_len=$max_cmd_len
17844 # Object file suffix (normally "o").
17845 objext=$ac_objext
17847 # Executable file suffix (normally "").
17848 exeext=$exeext
17850 # whether the shell understands "unset".
17851 lt_unset=$lt_unset
17853 # turn spaces into newlines.
17854 SP2NL=$lt_lt_SP2NL
17856 # turn newlines into spaces.
17857 NL2SP=$lt_lt_NL2SP
17859 # An object symbol dumper.
17860 OBJDUMP=$lt_OBJDUMP
17862 # Method to check whether dependent libraries are shared objects.
17863 deplibs_check_method=$lt_deplibs_check_method
17865 # Command to use when deplibs_check_method == "file_magic".
17866 file_magic_cmd=$lt_file_magic_cmd
17868 # The archiver.
17869 AR=$lt_AR
17870 AR_FLAGS=$lt_AR_FLAGS
17872 # A symbol stripping program.
17873 STRIP=$lt_STRIP
17875 # Commands used to install an old-style archive.
17876 RANLIB=$lt_RANLIB
17877 old_postinstall_cmds=$lt_old_postinstall_cmds
17878 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17880 # Whether to use a lock for old archive extraction.
17881 lock_old_archive_extraction=$lock_old_archive_extraction
17883 # A C compiler.
17884 LTCC=$lt_CC
17886 # LTCC compiler flags.
17887 LTCFLAGS=$lt_CFLAGS
17889 # Take the output of nm and produce a listing of raw symbols and C names.
17890 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17892 # Transform the output of nm in a proper C declaration.
17893 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17895 # Transform the output of nm in a C name address pair.
17896 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17898 # Transform the output of nm in a C name address pair when lib prefix is needed.
17899 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17901 # The name of the directory that contains temporary libtool files.
17902 objdir=$objdir
17904 # Used to examine libraries when file_magic_cmd begins with "file".
17905 MAGIC_CMD=$MAGIC_CMD
17907 # Must we lock files when doing compilation?
17908 need_locks=$lt_need_locks
17910 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17911 DSYMUTIL=$lt_DSYMUTIL
17913 # Tool to change global to local symbols on Mac OS X.
17914 NMEDIT=$lt_NMEDIT
17916 # Tool to manipulate fat objects and archives on Mac OS X.
17917 LIPO=$lt_LIPO
17919 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17920 OTOOL=$lt_OTOOL
17922 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17923 OTOOL64=$lt_OTOOL64
17925 # Old archive suffix (normally "a").
17926 libext=$libext
17928 # Shared library suffix (normally ".so").
17929 shrext_cmds=$lt_shrext_cmds
17931 # The commands to extract the exported symbol list from a shared archive.
17932 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17934 # Variables whose values should be saved in libtool wrapper scripts and
17935 # restored at link time.
17936 variables_saved_for_relink=$lt_variables_saved_for_relink
17938 # Do we need the "lib" prefix for modules?
17939 need_lib_prefix=$need_lib_prefix
17941 # Do we need a version for libraries?
17942 need_version=$need_version
17944 # Library versioning type.
17945 version_type=$version_type
17947 # Shared library runtime path variable.
17948 runpath_var=$runpath_var
17950 # Shared library path variable.
17951 shlibpath_var=$shlibpath_var
17953 # Is shlibpath searched before the hard-coded library search path?
17954 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17956 # Format of library name prefix.
17957 libname_spec=$lt_libname_spec
17959 # List of archive names. First name is the real one, the rest are links.
17960 # The last name is the one that the linker finds with -lNAME
17961 library_names_spec=$lt_library_names_spec
17963 # The coded name of the library, if different from the real name.
17964 soname_spec=$lt_soname_spec
17966 # Permission mode override for installation of shared libraries.
17967 install_override_mode=$lt_install_override_mode
17969 # Command to use after installation of a shared archive.
17970 postinstall_cmds=$lt_postinstall_cmds
17972 # Command to use after uninstallation of a shared archive.
17973 postuninstall_cmds=$lt_postuninstall_cmds
17975 # Commands used to finish a libtool library installation in a directory.
17976 finish_cmds=$lt_finish_cmds
17978 # As "finish_cmds", except a single script fragment to be evaled but
17979 # not shown.
17980 finish_eval=$lt_finish_eval
17982 # Whether we should hardcode library paths into libraries.
17983 hardcode_into_libs=$hardcode_into_libs
17985 # Compile-time system search path for libraries.
17986 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17988 # Run-time system search path for libraries.
17989 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17991 # Whether dlopen is supported.
17992 dlopen_support=$enable_dlopen
17994 # Whether dlopen of programs is supported.
17995 dlopen_self=$enable_dlopen_self
17997 # Whether dlopen of statically linked programs is supported.
17998 dlopen_self_static=$enable_dlopen_self_static
18000 # Commands to strip libraries.
18001 old_striplib=$lt_old_striplib
18002 striplib=$lt_striplib
18005 # The linker used to build libraries.
18006 LD=$lt_LD
18008 # How to create reloadable object files.
18009 reload_flag=$lt_reload_flag
18010 reload_cmds=$lt_reload_cmds
18012 # Commands used to build an old-style archive.
18013 old_archive_cmds=$lt_old_archive_cmds
18015 # A language specific compiler.
18016 CC=$lt_compiler
18018 # Is the compiler the GNU compiler?
18019 with_gcc=$GCC
18021 # Compiler flag to turn off builtin functions.
18022 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18024 # How to pass a linker flag through the compiler.
18025 wl=$lt_lt_prog_compiler_wl
18027 # Additional compiler flags for building library objects.
18028 pic_flag=$lt_lt_prog_compiler_pic
18030 # Compiler flag to prevent dynamic linking.
18031 link_static_flag=$lt_lt_prog_compiler_static
18033 # Does compiler simultaneously support -c and -o options?
18034 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18036 # Whether or not to add -lc for building shared libraries.
18037 build_libtool_need_lc=$archive_cmds_need_lc
18039 # Whether or not to disallow shared libs when runtime libs are static.
18040 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18042 # Compiler flag to allow reflexive dlopens.
18043 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18045 # Compiler flag to generate shared objects directly from archives.
18046 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18048 # Whether the compiler copes with passing no objects directly.
18049 compiler_needs_object=$lt_compiler_needs_object
18051 # Create an old-style archive from a shared archive.
18052 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18054 # Create a temporary old-style archive to link instead of a shared archive.
18055 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18057 # Commands used to build a shared archive.
18058 archive_cmds=$lt_archive_cmds
18059 archive_expsym_cmds=$lt_archive_expsym_cmds
18061 # Commands used to build a loadable module if different from building
18062 # a shared archive.
18063 module_cmds=$lt_module_cmds
18064 module_expsym_cmds=$lt_module_expsym_cmds
18066 # Whether we are building with GNU ld or not.
18067 with_gnu_ld=$lt_with_gnu_ld
18069 # Flag that allows shared libraries with undefined symbols to be built.
18070 allow_undefined_flag=$lt_allow_undefined_flag
18072 # Flag that enforces no undefined symbols.
18073 no_undefined_flag=$lt_no_undefined_flag
18075 # Flag to hardcode \$libdir into a binary during linking.
18076 # This must work even if \$libdir does not exist
18077 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18079 # If ld is used when linking, flag to hardcode \$libdir into a binary
18080 # during linking. This must work even if \$libdir does not exist.
18081 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18083 # Whether we need a single "-rpath" flag with a separated argument.
18084 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18086 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18087 # DIR into the resulting binary.
18088 hardcode_direct=$hardcode_direct
18090 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18091 # DIR into the resulting binary and the resulting library dependency is
18092 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18093 # library is relocated.
18094 hardcode_direct_absolute=$hardcode_direct_absolute
18096 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18097 # into the resulting binary.
18098 hardcode_minus_L=$hardcode_minus_L
18100 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18101 # into the resulting binary.
18102 hardcode_shlibpath_var=$hardcode_shlibpath_var
18104 # Set to "yes" if building a shared library automatically hardcodes DIR
18105 # into the library and all subsequent libraries and executables linked
18106 # against it.
18107 hardcode_automatic=$hardcode_automatic
18109 # Set to yes if linker adds runtime paths of dependent libraries
18110 # to runtime path list.
18111 inherit_rpath=$inherit_rpath
18113 # Whether libtool must link a program against all its dependency libraries.
18114 link_all_deplibs=$link_all_deplibs
18116 # Fix the shell variable \$srcfile for the compiler.
18117 fix_srcfile_path=$lt_fix_srcfile_path
18119 # Set to "yes" if exported symbols are required.
18120 always_export_symbols=$always_export_symbols
18122 # The commands to list exported symbols.
18123 export_symbols_cmds=$lt_export_symbols_cmds
18125 # Symbols that should not be listed in the preloaded symbols.
18126 exclude_expsyms=$lt_exclude_expsyms
18128 # Symbols that must always be exported.
18129 include_expsyms=$lt_include_expsyms
18131 # Commands necessary for linking programs (against libraries) with templates.
18132 prelink_cmds=$lt_prelink_cmds
18134 # Specify filename containing input files.
18135 file_list_spec=$lt_file_list_spec
18137 # How to hardcode a shared library path into an executable.
18138 hardcode_action=$hardcode_action
18140 # ### END LIBTOOL CONFIG
18142 _LT_EOF
18144 case $host_os in
18145 aix3*)
18146 cat <<\_LT_EOF >> "$cfgfile"
18147 # AIX sometimes has problems with the GCC collect2 program. For some
18148 # reason, if we set the COLLECT_NAMES environment variable, the problems
18149 # vanish in a puff of smoke.
18150 if test "X${COLLECT_NAMES+set}" != Xset; then
18151 COLLECT_NAMES=
18152 export COLLECT_NAMES
18154 _LT_EOF
18156 esac
18159 ltmain="$ac_aux_dir/ltmain.sh"
18162 # We use sed instead of cat because bash on DJGPP gets confused if
18163 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18164 # text mode, it properly converts lines to CR/LF. This bash problem
18165 # is reportedly fixed, but why not run on old versions too?
18166 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18167 || (rm -f "$cfgfile"; exit 1)
18169 case $xsi_shell in
18170 yes)
18171 cat << \_LT_EOF >> "$cfgfile"
18173 # func_dirname file append nondir_replacement
18174 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18175 # otherwise set result to NONDIR_REPLACEMENT.
18176 func_dirname ()
18178 case ${1} in
18179 */*) func_dirname_result="${1%/*}${2}" ;;
18180 * ) func_dirname_result="${3}" ;;
18181 esac
18184 # func_basename file
18185 func_basename ()
18187 func_basename_result="${1##*/}"
18190 # func_dirname_and_basename file append nondir_replacement
18191 # perform func_basename and func_dirname in a single function
18192 # call:
18193 # dirname: Compute the dirname of FILE. If nonempty,
18194 # add APPEND to the result, otherwise set result
18195 # to NONDIR_REPLACEMENT.
18196 # value returned in "$func_dirname_result"
18197 # basename: Compute filename of FILE.
18198 # value retuned in "$func_basename_result"
18199 # Implementation must be kept synchronized with func_dirname
18200 # and func_basename. For efficiency, we do not delegate to
18201 # those functions but instead duplicate the functionality here.
18202 func_dirname_and_basename ()
18204 case ${1} in
18205 */*) func_dirname_result="${1%/*}${2}" ;;
18206 * ) func_dirname_result="${3}" ;;
18207 esac
18208 func_basename_result="${1##*/}"
18211 # func_stripname prefix suffix name
18212 # strip PREFIX and SUFFIX off of NAME.
18213 # PREFIX and SUFFIX must not contain globbing or regex special
18214 # characters, hashes, percent signs, but SUFFIX may contain a leading
18215 # dot (in which case that matches only a dot).
18216 func_stripname ()
18218 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18219 # positional parameters, so assign one to ordinary parameter first.
18220 func_stripname_result=${3}
18221 func_stripname_result=${func_stripname_result#"${1}"}
18222 func_stripname_result=${func_stripname_result%"${2}"}
18225 # func_opt_split
18226 func_opt_split ()
18228 func_opt_split_opt=${1%%=*}
18229 func_opt_split_arg=${1#*=}
18232 # func_lo2o object
18233 func_lo2o ()
18235 case ${1} in
18236 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18237 *) func_lo2o_result=${1} ;;
18238 esac
18241 # func_xform libobj-or-source
18242 func_xform ()
18244 func_xform_result=${1%.*}.lo
18247 # func_arith arithmetic-term...
18248 func_arith ()
18250 func_arith_result=$(( $* ))
18253 # func_len string
18254 # STRING may not start with a hyphen.
18255 func_len ()
18257 func_len_result=${#1}
18260 _LT_EOF
18262 *) # Bourne compatible functions.
18263 cat << \_LT_EOF >> "$cfgfile"
18265 # func_dirname file append nondir_replacement
18266 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18267 # otherwise set result to NONDIR_REPLACEMENT.
18268 func_dirname ()
18270 # Extract subdirectory from the argument.
18271 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18272 if test "X$func_dirname_result" = "X${1}"; then
18273 func_dirname_result="${3}"
18274 else
18275 func_dirname_result="$func_dirname_result${2}"
18279 # func_basename file
18280 func_basename ()
18282 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18286 # func_stripname prefix suffix name
18287 # strip PREFIX and SUFFIX off of NAME.
18288 # PREFIX and SUFFIX must not contain globbing or regex special
18289 # characters, hashes, percent signs, but SUFFIX may contain a leading
18290 # dot (in which case that matches only a dot).
18291 # func_strip_suffix prefix name
18292 func_stripname ()
18294 case ${2} in
18295 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18296 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18297 esac
18300 # sed scripts:
18301 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18302 my_sed_long_arg='1s/^-[^=]*=//'
18304 # func_opt_split
18305 func_opt_split ()
18307 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18308 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18311 # func_lo2o object
18312 func_lo2o ()
18314 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18317 # func_xform libobj-or-source
18318 func_xform ()
18320 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18323 # func_arith arithmetic-term...
18324 func_arith ()
18326 func_arith_result=`expr "$@"`
18329 # func_len string
18330 # STRING may not start with a hyphen.
18331 func_len ()
18333 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18336 _LT_EOF
18337 esac
18339 case $lt_shell_append in
18340 yes)
18341 cat << \_LT_EOF >> "$cfgfile"
18343 # func_append var value
18344 # Append VALUE to the end of shell variable VAR.
18345 func_append ()
18347 eval "$1+=\$2"
18349 _LT_EOF
18352 cat << \_LT_EOF >> "$cfgfile"
18354 # func_append var value
18355 # Append VALUE to the end of shell variable VAR.
18356 func_append ()
18358 eval "$1=\$$1\$2"
18361 _LT_EOF
18363 esac
18366 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18367 || (rm -f "$cfgfile"; exit 1)
18369 mv -f "$cfgfile" "$ofile" ||
18370 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18371 chmod +x "$ofile"
18374 cat <<_LT_EOF >> "$ofile"
18376 # ### BEGIN LIBTOOL TAG CONFIG: GO
18378 # The linker used to build libraries.
18379 LD=$lt_LD_GO
18381 # How to create reloadable object files.
18382 reload_flag=$lt_reload_flag_GO
18383 reload_cmds=$lt_reload_cmds_GO
18385 # Commands used to build an old-style archive.
18386 old_archive_cmds=$lt_old_archive_cmds_GO
18388 # A language specific compiler.
18389 CC=$lt_compiler_GO
18391 # Is the compiler the GNU compiler?
18392 with_gcc=$GCC_GO
18394 # Compiler flag to turn off builtin functions.
18395 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
18397 # How to pass a linker flag through the compiler.
18398 wl=$lt_lt_prog_compiler_wl_GO
18400 # Additional compiler flags for building library objects.
18401 pic_flag=$lt_lt_prog_compiler_pic_GO
18403 # Compiler flag to prevent dynamic linking.
18404 link_static_flag=$lt_lt_prog_compiler_static_GO
18406 # Does compiler simultaneously support -c and -o options?
18407 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
18409 # Whether or not to add -lc for building shared libraries.
18410 build_libtool_need_lc=$archive_cmds_need_lc_GO
18412 # Whether or not to disallow shared libs when runtime libs are static.
18413 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
18415 # Compiler flag to allow reflexive dlopens.
18416 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
18418 # Compiler flag to generate shared objects directly from archives.
18419 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
18421 # Whether the compiler copes with passing no objects directly.
18422 compiler_needs_object=$lt_compiler_needs_object_GO
18424 # Create an old-style archive from a shared archive.
18425 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
18427 # Create a temporary old-style archive to link instead of a shared archive.
18428 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
18430 # Commands used to build a shared archive.
18431 archive_cmds=$lt_archive_cmds_GO
18432 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
18434 # Commands used to build a loadable module if different from building
18435 # a shared archive.
18436 module_cmds=$lt_module_cmds_GO
18437 module_expsym_cmds=$lt_module_expsym_cmds_GO
18439 # Whether we are building with GNU ld or not.
18440 with_gnu_ld=$lt_with_gnu_ld_GO
18442 # Flag that allows shared libraries with undefined symbols to be built.
18443 allow_undefined_flag=$lt_allow_undefined_flag_GO
18445 # Flag that enforces no undefined symbols.
18446 no_undefined_flag=$lt_no_undefined_flag_GO
18448 # Flag to hardcode \$libdir into a binary during linking.
18449 # This must work even if \$libdir does not exist
18450 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
18452 # If ld is used when linking, flag to hardcode \$libdir into a binary
18453 # during linking. This must work even if \$libdir does not exist.
18454 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
18456 # Whether we need a single "-rpath" flag with a separated argument.
18457 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
18459 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18460 # DIR into the resulting binary.
18461 hardcode_direct=$hardcode_direct_GO
18463 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18464 # DIR into the resulting binary and the resulting library dependency is
18465 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18466 # library is relocated.
18467 hardcode_direct_absolute=$hardcode_direct_absolute_GO
18469 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18470 # into the resulting binary.
18471 hardcode_minus_L=$hardcode_minus_L_GO
18473 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18474 # into the resulting binary.
18475 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
18477 # Set to "yes" if building a shared library automatically hardcodes DIR
18478 # into the library and all subsequent libraries and executables linked
18479 # against it.
18480 hardcode_automatic=$hardcode_automatic_GO
18482 # Set to yes if linker adds runtime paths of dependent libraries
18483 # to runtime path list.
18484 inherit_rpath=$inherit_rpath_GO
18486 # Whether libtool must link a program against all its dependency libraries.
18487 link_all_deplibs=$link_all_deplibs_GO
18489 # Fix the shell variable \$srcfile for the compiler.
18490 fix_srcfile_path=$lt_fix_srcfile_path_GO
18492 # Set to "yes" if exported symbols are required.
18493 always_export_symbols=$always_export_symbols_GO
18495 # The commands to list exported symbols.
18496 export_symbols_cmds=$lt_export_symbols_cmds_GO
18498 # Symbols that should not be listed in the preloaded symbols.
18499 exclude_expsyms=$lt_exclude_expsyms_GO
18501 # Symbols that must always be exported.
18502 include_expsyms=$lt_include_expsyms_GO
18504 # Commands necessary for linking programs (against libraries) with templates.
18505 prelink_cmds=$lt_prelink_cmds_GO
18507 # Specify filename containing input files.
18508 file_list_spec=$lt_file_list_spec_GO
18510 # How to hardcode a shared library path into an executable.
18511 hardcode_action=$hardcode_action_GO
18513 # ### END LIBTOOL TAG CONFIG: GO
18514 _LT_EOF
18517 "default":C) if test -n "$CONFIG_FILES"; then
18518 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
18519 # that multilib installs will end up installed in the correct place.
18520 # The testsuite needs it for multilib-aware ABI baseline files.
18521 # To work around this not being passed down from config-ml.in ->
18522 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
18523 # append it here. Only modify Makefiles that have just been created.
18525 # Also, get rid of this simulated-VPATH thing that automake does.
18526 cat > vpsed << \_EOF
18527 s!`test -f '$<' || echo '$(srcdir)/'`!!
18528 _EOF
18529 for i in $SUBDIRS; do
18530 case $CONFIG_FILES in
18531 *${i}/Makefile*)
18532 #echo "Adding MULTISUBDIR to $i/Makefile"
18533 sed -f vpsed $i/Makefile > tmp
18534 grep '^MULTISUBDIR =' Makefile >> tmp
18535 mv tmp $i/Makefile
18537 esac
18538 done
18539 rm vpsed
18543 esac
18544 done # for ac_tag
18547 as_fn_exit 0
18548 _ACEOF
18549 ac_clean_files=$ac_clean_files_save
18551 test $ac_write_fail = 0 ||
18552 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18555 # configure is writing to config.log, and then calls config.status.
18556 # config.status does its own redirection, appending to config.log.
18557 # Unfortunately, on DOS this fails, as config.log is still kept open
18558 # by configure, so config.status won't be able to write to it; its
18559 # output is simply discarded. So we exec the FD to /dev/null,
18560 # effectively closing config.log, so it can be properly (re)opened and
18561 # appended to by config.status. When coming back to configure, we
18562 # need to make the FD available again.
18563 if test "$no_create" != yes; then
18564 ac_cs_success=:
18565 ac_config_status_args=
18566 test "$silent" = yes &&
18567 ac_config_status_args="$ac_config_status_args --quiet"
18568 exec 5>/dev/null
18569 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18570 exec 5>>config.log
18571 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18572 # would make configure fail if this is the last instruction.
18573 $ac_cs_success || as_fn_exit 1
18575 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18577 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}