Daily bump.
[official-gcc.git] / libgo / configure
blobedc6c1abf8b600805998aef9f64b81838c9f09ed
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for package-unused version-unused.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # 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 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME='package-unused'
558 PACKAGE_TARNAME='libgo'
559 PACKAGE_VERSION='version-unused'
560 PACKAGE_STRING='package-unused version-unused'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
564 ac_unique_file="Makefile.am"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 STRINGOPS_FLAG
606 HAVE_SYS_MMAN_H_FALSE
607 HAVE_SYS_MMAN_H_TRUE
608 PTHREAD_LIBS
609 PTHREAD_CFLAGS
610 NET_LIBS
611 MATH_LIBS
612 USING_SPLIT_STACK_FALSE
613 USING_SPLIT_STACK_TRUE
614 SPLIT_STACK
615 GOARCH
616 LIBGO_IS_X86_64_FALSE
617 LIBGO_IS_X86_64_TRUE
618 LIBGO_IS_SPARC64_FALSE
619 LIBGO_IS_SPARC64_TRUE
620 LIBGO_IS_SPARC_FALSE
621 LIBGO_IS_SPARC_TRUE
622 LIBGO_IS_ARM_FALSE
623 LIBGO_IS_ARM_TRUE
624 LIBGO_IS_386_FALSE
625 LIBGO_IS_386_TRUE
626 GOOS
627 LIBGO_IS_SOLARIS_FALSE
628 LIBGO_IS_SOLARIS_TRUE
629 LIBGO_IS_RTEMS_FALSE
630 LIBGO_IS_RTEMS_TRUE
631 LIBGO_IS_LINUX_FALSE
632 LIBGO_IS_LINUX_TRUE
633 LIBGO_IS_FREEBSD_FALSE
634 LIBGO_IS_FREEBSD_TRUE
635 LIBGO_IS_DARWIN_FALSE
636 LIBGO_IS_DARWIN_TRUE
637 LIBFFIINCS
638 LIBFFI
639 glibgo_toolexeclibdir
640 glibgo_toolexecdir
641 glibgo_prefixdir
642 WERROR
643 WARN_FLAGS
644 enable_static
645 enable_shared
647 OTOOL64
648 OTOOL
649 LIPO
650 NMEDIT
651 DSYMUTIL
653 OBJDUMP
654 LN_S
656 ac_ct_DUMPBIN
657 DUMPBIN
658 LIBTOOL
659 OBJCOPY
660 RANLIB
662 FGREP
663 EGREP
664 GREP
666 MAINT
667 MAINTAINER_MODE_FALSE
668 MAINTAINER_MODE_TRUE
669 GOCFLAGS
671 am__fastdepCC_FALSE
672 am__fastdepCC_TRUE
673 CCDEPMODE
674 AMDEPBACKSLASH
675 AMDEP_FALSE
676 AMDEP_TRUE
677 am__quote
678 am__include
679 DEPDIR
680 OBJEXT
681 EXEEXT
682 ac_ct_CC
683 CPPFLAGS
684 LDFLAGS
685 CFLAGS
687 am__untar
688 am__tar
689 AMTAR
690 am__leading_dot
691 SET_MAKE
693 mkdir_p
694 MKDIR_P
695 INSTALL_STRIP_PROGRAM
696 STRIP
697 install_sh
698 MAKEINFO
699 AUTOHEADER
700 AUTOMAKE
701 AUTOCONF
702 ACLOCAL
703 VERSION
704 PACKAGE
705 CYGPATH_W
706 am__isrc
707 INSTALL_DATA
708 INSTALL_SCRIPT
709 INSTALL_PROGRAM
710 target_os
711 target_vendor
712 target_cpu
713 target
714 host_os
715 host_vendor
716 host_cpu
717 host
718 build_os
719 build_vendor
720 build_cpu
721 build
722 multi_basedir
723 libtool_VERSION
724 target_alias
725 host_alias
726 build_alias
727 LIBS
728 ECHO_T
729 ECHO_N
730 ECHO_C
731 DEFS
732 mandir
733 localedir
734 libdir
735 psdir
736 pdfdir
737 dvidir
738 htmldir
739 infodir
740 docdir
741 oldincludedir
742 includedir
743 localstatedir
744 sharedstatedir
745 sysconfdir
746 datadir
747 datarootdir
748 libexecdir
749 sbindir
750 bindir
751 program_transform_name
752 prefix
753 exec_prefix
754 PACKAGE_URL
755 PACKAGE_BUGREPORT
756 PACKAGE_STRING
757 PACKAGE_VERSION
758 PACKAGE_TARNAME
759 PACKAGE_NAME
760 PATH_SEPARATOR
761 SHELL'
762 ac_subst_files=''
763 ac_user_opts='
764 enable_option_checking
765 enable_multilib
766 enable_dependency_tracking
767 enable_maintainer_mode
768 with_gnu_ld
769 enable_shared
770 enable_static
771 with_pic
772 enable_fast_install
773 enable_libtool_lock
774 enable_version_specific_runtime_libs
775 with_libffi
776 with_system_libunwind
778 ac_precious_vars='build_alias
779 host_alias
780 target_alias
782 CPPFLAGS'
785 # Initialize some variables set by options.
786 ac_init_help=
787 ac_init_version=false
788 ac_unrecognized_opts=
789 ac_unrecognized_sep=
790 # The variables have the same names as the options, with
791 # dashes changed to underlines.
792 cache_file=/dev/null
793 exec_prefix=NONE
794 no_create=
795 no_recursion=
796 prefix=NONE
797 program_prefix=NONE
798 program_suffix=NONE
799 program_transform_name=s,x,x,
800 silent=
801 site=
802 srcdir=
803 verbose=
804 x_includes=NONE
805 x_libraries=NONE
807 # Installation directory options.
808 # These are left unexpanded so users can "make install exec_prefix=/foo"
809 # and all the variables that are supposed to be based on exec_prefix
810 # by default will actually change.
811 # Use braces instead of parens because sh, perl, etc. also accept them.
812 # (The list follows the same order as the GNU Coding Standards.)
813 bindir='${exec_prefix}/bin'
814 sbindir='${exec_prefix}/sbin'
815 libexecdir='${exec_prefix}/libexec'
816 datarootdir='${prefix}/share'
817 datadir='${datarootdir}'
818 sysconfdir='${prefix}/etc'
819 sharedstatedir='${prefix}/com'
820 localstatedir='${prefix}/var'
821 includedir='${prefix}/include'
822 oldincludedir='/usr/include'
823 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
824 infodir='${datarootdir}/info'
825 htmldir='${docdir}'
826 dvidir='${docdir}'
827 pdfdir='${docdir}'
828 psdir='${docdir}'
829 libdir='${exec_prefix}/lib'
830 localedir='${datarootdir}/locale'
831 mandir='${datarootdir}/man'
833 ac_prev=
834 ac_dashdash=
835 for ac_option
837 # If the previous option needs an argument, assign it.
838 if test -n "$ac_prev"; then
839 eval $ac_prev=\$ac_option
840 ac_prev=
841 continue
844 case $ac_option in
845 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
846 *) ac_optarg=yes ;;
847 esac
849 # Accept the important Cygnus configure options, so we can diagnose typos.
851 case $ac_dashdash$ac_option in
853 ac_dashdash=yes ;;
855 -bindir | --bindir | --bindi | --bind | --bin | --bi)
856 ac_prev=bindir ;;
857 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
858 bindir=$ac_optarg ;;
860 -build | --build | --buil | --bui | --bu)
861 ac_prev=build_alias ;;
862 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
863 build_alias=$ac_optarg ;;
865 -cache-file | --cache-file | --cache-fil | --cache-fi \
866 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
867 ac_prev=cache_file ;;
868 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
869 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
870 cache_file=$ac_optarg ;;
872 --config-cache | -C)
873 cache_file=config.cache ;;
875 -datadir | --datadir | --datadi | --datad)
876 ac_prev=datadir ;;
877 -datadir=* | --datadir=* | --datadi=* | --datad=*)
878 datadir=$ac_optarg ;;
880 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
881 | --dataroo | --dataro | --datar)
882 ac_prev=datarootdir ;;
883 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
884 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
885 datarootdir=$ac_optarg ;;
887 -disable-* | --disable-*)
888 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
889 # Reject names that are not valid shell variable names.
890 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
891 as_fn_error "invalid feature name: $ac_useropt"
892 ac_useropt_orig=$ac_useropt
893 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
894 case $ac_user_opts in
896 "enable_$ac_useropt"
897 "*) ;;
898 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
899 ac_unrecognized_sep=', ';;
900 esac
901 eval enable_$ac_useropt=no ;;
903 -docdir | --docdir | --docdi | --doc | --do)
904 ac_prev=docdir ;;
905 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
906 docdir=$ac_optarg ;;
908 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
909 ac_prev=dvidir ;;
910 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
911 dvidir=$ac_optarg ;;
913 -enable-* | --enable-*)
914 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
915 # Reject names that are not valid shell variable names.
916 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
917 as_fn_error "invalid feature name: $ac_useropt"
918 ac_useropt_orig=$ac_useropt
919 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
920 case $ac_user_opts in
922 "enable_$ac_useropt"
923 "*) ;;
924 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
925 ac_unrecognized_sep=', ';;
926 esac
927 eval enable_$ac_useropt=\$ac_optarg ;;
929 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
930 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
931 | --exec | --exe | --ex)
932 ac_prev=exec_prefix ;;
933 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
934 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
935 | --exec=* | --exe=* | --ex=*)
936 exec_prefix=$ac_optarg ;;
938 -gas | --gas | --ga | --g)
939 # Obsolete; use --with-gas.
940 with_gas=yes ;;
942 -help | --help | --hel | --he | -h)
943 ac_init_help=long ;;
944 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
945 ac_init_help=recursive ;;
946 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
947 ac_init_help=short ;;
949 -host | --host | --hos | --ho)
950 ac_prev=host_alias ;;
951 -host=* | --host=* | --hos=* | --ho=*)
952 host_alias=$ac_optarg ;;
954 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
955 ac_prev=htmldir ;;
956 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
957 | --ht=*)
958 htmldir=$ac_optarg ;;
960 -includedir | --includedir | --includedi | --included | --include \
961 | --includ | --inclu | --incl | --inc)
962 ac_prev=includedir ;;
963 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
964 | --includ=* | --inclu=* | --incl=* | --inc=*)
965 includedir=$ac_optarg ;;
967 -infodir | --infodir | --infodi | --infod | --info | --inf)
968 ac_prev=infodir ;;
969 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
970 infodir=$ac_optarg ;;
972 -libdir | --libdir | --libdi | --libd)
973 ac_prev=libdir ;;
974 -libdir=* | --libdir=* | --libdi=* | --libd=*)
975 libdir=$ac_optarg ;;
977 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
978 | --libexe | --libex | --libe)
979 ac_prev=libexecdir ;;
980 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
981 | --libexe=* | --libex=* | --libe=*)
982 libexecdir=$ac_optarg ;;
984 -localedir | --localedir | --localedi | --localed | --locale)
985 ac_prev=localedir ;;
986 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
987 localedir=$ac_optarg ;;
989 -localstatedir | --localstatedir | --localstatedi | --localstated \
990 | --localstate | --localstat | --localsta | --localst | --locals)
991 ac_prev=localstatedir ;;
992 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
993 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
994 localstatedir=$ac_optarg ;;
996 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
997 ac_prev=mandir ;;
998 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
999 mandir=$ac_optarg ;;
1001 -nfp | --nfp | --nf)
1002 # Obsolete; use --without-fp.
1003 with_fp=no ;;
1005 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1006 | --no-cr | --no-c | -n)
1007 no_create=yes ;;
1009 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1010 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1011 no_recursion=yes ;;
1013 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1014 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1015 | --oldin | --oldi | --old | --ol | --o)
1016 ac_prev=oldincludedir ;;
1017 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1018 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1019 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1020 oldincludedir=$ac_optarg ;;
1022 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1023 ac_prev=prefix ;;
1024 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1025 prefix=$ac_optarg ;;
1027 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1028 | --program-pre | --program-pr | --program-p)
1029 ac_prev=program_prefix ;;
1030 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1031 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1032 program_prefix=$ac_optarg ;;
1034 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1035 | --program-suf | --program-su | --program-s)
1036 ac_prev=program_suffix ;;
1037 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1038 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1039 program_suffix=$ac_optarg ;;
1041 -program-transform-name | --program-transform-name \
1042 | --program-transform-nam | --program-transform-na \
1043 | --program-transform-n | --program-transform- \
1044 | --program-transform | --program-transfor \
1045 | --program-transfo | --program-transf \
1046 | --program-trans | --program-tran \
1047 | --progr-tra | --program-tr | --program-t)
1048 ac_prev=program_transform_name ;;
1049 -program-transform-name=* | --program-transform-name=* \
1050 | --program-transform-nam=* | --program-transform-na=* \
1051 | --program-transform-n=* | --program-transform-=* \
1052 | --program-transform=* | --program-transfor=* \
1053 | --program-transfo=* | --program-transf=* \
1054 | --program-trans=* | --program-tran=* \
1055 | --progr-tra=* | --program-tr=* | --program-t=*)
1056 program_transform_name=$ac_optarg ;;
1058 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1059 ac_prev=pdfdir ;;
1060 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1061 pdfdir=$ac_optarg ;;
1063 -psdir | --psdir | --psdi | --psd | --ps)
1064 ac_prev=psdir ;;
1065 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1066 psdir=$ac_optarg ;;
1068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1069 | -silent | --silent | --silen | --sile | --sil)
1070 silent=yes ;;
1072 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1073 ac_prev=sbindir ;;
1074 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1075 | --sbi=* | --sb=*)
1076 sbindir=$ac_optarg ;;
1078 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1079 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1080 | --sharedst | --shareds | --shared | --share | --shar \
1081 | --sha | --sh)
1082 ac_prev=sharedstatedir ;;
1083 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1084 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1085 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1086 | --sha=* | --sh=*)
1087 sharedstatedir=$ac_optarg ;;
1089 -site | --site | --sit)
1090 ac_prev=site ;;
1091 -site=* | --site=* | --sit=*)
1092 site=$ac_optarg ;;
1094 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1095 ac_prev=srcdir ;;
1096 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1097 srcdir=$ac_optarg ;;
1099 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1100 | --syscon | --sysco | --sysc | --sys | --sy)
1101 ac_prev=sysconfdir ;;
1102 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1103 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1104 sysconfdir=$ac_optarg ;;
1106 -target | --target | --targe | --targ | --tar | --ta | --t)
1107 ac_prev=target_alias ;;
1108 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1109 target_alias=$ac_optarg ;;
1111 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1112 verbose=yes ;;
1114 -version | --version | --versio | --versi | --vers | -V)
1115 ac_init_version=: ;;
1117 -with-* | --with-*)
1118 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1119 # Reject names that are not valid shell variable names.
1120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1121 as_fn_error "invalid package name: $ac_useropt"
1122 ac_useropt_orig=$ac_useropt
1123 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1124 case $ac_user_opts in
1126 "with_$ac_useropt"
1127 "*) ;;
1128 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1129 ac_unrecognized_sep=', ';;
1130 esac
1131 eval with_$ac_useropt=\$ac_optarg ;;
1133 -without-* | --without-*)
1134 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1135 # Reject names that are not valid shell variable names.
1136 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1137 as_fn_error "invalid package name: $ac_useropt"
1138 ac_useropt_orig=$ac_useropt
1139 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1140 case $ac_user_opts in
1142 "with_$ac_useropt"
1143 "*) ;;
1144 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1145 ac_unrecognized_sep=', ';;
1146 esac
1147 eval with_$ac_useropt=no ;;
1149 --x)
1150 # Obsolete; use --with-x.
1151 with_x=yes ;;
1153 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1154 | --x-incl | --x-inc | --x-in | --x-i)
1155 ac_prev=x_includes ;;
1156 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1157 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1158 x_includes=$ac_optarg ;;
1160 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1161 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1162 ac_prev=x_libraries ;;
1163 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1164 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1165 x_libraries=$ac_optarg ;;
1167 -*) as_fn_error "unrecognized option: \`$ac_option'
1168 Try \`$0 --help' for more information."
1171 *=*)
1172 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1173 # Reject names that are not valid shell variable names.
1174 case $ac_envvar in #(
1175 '' | [0-9]* | *[!_$as_cr_alnum]* )
1176 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1177 esac
1178 eval $ac_envvar=\$ac_optarg
1179 export $ac_envvar ;;
1182 # FIXME: should be removed in autoconf 3.0.
1183 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1184 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1185 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1186 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1189 esac
1190 done
1192 if test -n "$ac_prev"; then
1193 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1194 as_fn_error "missing argument to $ac_option"
1197 if test -n "$ac_unrecognized_opts"; then
1198 case $enable_option_checking in
1199 no) ;;
1200 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1201 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1202 esac
1205 # Check all directory arguments for consistency.
1206 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1207 datadir sysconfdir sharedstatedir localstatedir includedir \
1208 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1209 libdir localedir mandir
1211 eval ac_val=\$$ac_var
1212 # Remove trailing slashes.
1213 case $ac_val in
1214 */ )
1215 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1216 eval $ac_var=\$ac_val;;
1217 esac
1218 # Be sure to have absolute directory names.
1219 case $ac_val in
1220 [\\/$]* | ?:[\\/]* ) continue;;
1221 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1222 esac
1223 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1224 done
1226 # There might be people who depend on the old broken behavior: `$host'
1227 # used to hold the argument of --host etc.
1228 # FIXME: To remove some day.
1229 build=$build_alias
1230 host=$host_alias
1231 target=$target_alias
1233 # FIXME: To remove some day.
1234 if test "x$host_alias" != x; then
1235 if test "x$build_alias" = x; then
1236 cross_compiling=maybe
1237 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1238 If a cross compiler is detected then cross compile mode will be used." >&2
1239 elif test "x$build_alias" != "x$host_alias"; then
1240 cross_compiling=yes
1244 ac_tool_prefix=
1245 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1247 test "$silent" = yes && exec 6>/dev/null
1250 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1251 ac_ls_di=`ls -di .` &&
1252 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1253 as_fn_error "working directory cannot be determined"
1254 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1255 as_fn_error "pwd does not report name of working directory"
1258 # Find the source files, if location was not specified.
1259 if test -z "$srcdir"; then
1260 ac_srcdir_defaulted=yes
1261 # Try the directory containing this script, then the parent directory.
1262 ac_confdir=`$as_dirname -- "$as_myself" ||
1263 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1264 X"$as_myself" : 'X\(//\)[^/]' \| \
1265 X"$as_myself" : 'X\(//\)$' \| \
1266 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1267 $as_echo X"$as_myself" |
1268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1269 s//\1/
1272 /^X\(\/\/\)[^/].*/{
1273 s//\1/
1276 /^X\(\/\/\)$/{
1277 s//\1/
1280 /^X\(\/\).*/{
1281 s//\1/
1284 s/.*/./; q'`
1285 srcdir=$ac_confdir
1286 if test ! -r "$srcdir/$ac_unique_file"; then
1287 srcdir=..
1289 else
1290 ac_srcdir_defaulted=no
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1293 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1294 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1296 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1297 ac_abs_confdir=`(
1298 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1299 pwd)`
1300 # When building in place, set srcdir=.
1301 if test "$ac_abs_confdir" = "$ac_pwd"; then
1302 srcdir=.
1304 # Remove unnecessary trailing slashes from srcdir.
1305 # Double slashes in file names in object file debugging info
1306 # mess up M-x gdb in Emacs.
1307 case $srcdir in
1308 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1309 esac
1310 for ac_var in $ac_precious_vars; do
1311 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1312 eval ac_env_${ac_var}_value=\$${ac_var}
1313 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1314 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1315 done
1318 # Report the --help message.
1320 if test "$ac_init_help" = "long"; then
1321 # Omit some internal or obsolete options to make the list less imposing.
1322 # This message is too long to be a string in the A/UX 3.1 sh.
1323 cat <<_ACEOF
1324 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1326 Usage: $0 [OPTION]... [VAR=VALUE]...
1328 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1329 VAR=VALUE. See below for descriptions of some of the useful variables.
1331 Defaults for the options are specified in brackets.
1333 Configuration:
1334 -h, --help display this help and exit
1335 --help=short display options specific to this package
1336 --help=recursive display the short help of all the included packages
1337 -V, --version display version information and exit
1338 -q, --quiet, --silent do not print \`checking...' messages
1339 --cache-file=FILE cache test results in FILE [disabled]
1340 -C, --config-cache alias for \`--cache-file=config.cache'
1341 -n, --no-create do not create output files
1342 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1344 Installation directories:
1345 --prefix=PREFIX install architecture-independent files in PREFIX
1346 [$ac_default_prefix]
1347 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1348 [PREFIX]
1350 By default, \`make install' will install all the files in
1351 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1352 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1353 for instance \`--prefix=\$HOME'.
1355 For better control, use the options below.
1357 Fine tuning of the installation directories:
1358 --bindir=DIR user executables [EPREFIX/bin]
1359 --sbindir=DIR system admin executables [EPREFIX/sbin]
1360 --libexecdir=DIR program executables [EPREFIX/libexec]
1361 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1362 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1363 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1364 --libdir=DIR object code libraries [EPREFIX/lib]
1365 --includedir=DIR C header files [PREFIX/include]
1366 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1367 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1368 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1369 --infodir=DIR info documentation [DATAROOTDIR/info]
1370 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1371 --mandir=DIR man documentation [DATAROOTDIR/man]
1372 --docdir=DIR documentation root [DATAROOTDIR/doc/libgo]
1373 --htmldir=DIR html documentation [DOCDIR]
1374 --dvidir=DIR dvi documentation [DOCDIR]
1375 --pdfdir=DIR pdf documentation [DOCDIR]
1376 --psdir=DIR ps documentation [DOCDIR]
1377 _ACEOF
1379 cat <<\_ACEOF
1381 Program names:
1382 --program-prefix=PREFIX prepend PREFIX to installed program names
1383 --program-suffix=SUFFIX append SUFFIX to installed program names
1384 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1386 System types:
1387 --build=BUILD configure for building on BUILD [guessed]
1388 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1389 --target=TARGET configure for building compilers for TARGET [HOST]
1390 _ACEOF
1393 if test -n "$ac_init_help"; then
1394 case $ac_init_help in
1395 short | recursive ) echo "Configuration of package-unused version-unused:";;
1396 esac
1397 cat <<\_ACEOF
1399 Optional Features:
1400 --disable-option-checking ignore unrecognized --enable/--with options
1401 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1402 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1403 --enable-multilib build many library versions (default)
1404 --disable-dependency-tracking speeds up one-time build
1405 --enable-dependency-tracking do not reject slow dependency extractors
1406 --enable-maintainer-mode enable make rules and dependencies not useful
1407 (and sometimes confusing) to the casual installer
1408 --enable-shared[=PKGS] build shared libraries [default=yes]
1409 --enable-static[=PKGS] build static libraries [default=yes]
1410 --enable-fast-install[=PKGS]
1411 optimize for fast installation [default=yes]
1412 --disable-libtool-lock avoid locking (might break parallel builds)
1413 --enable-version-specific-runtime-libs
1414 Specify that runtime libraries should be installed
1415 in a compiler-specific directory
1417 Optional Packages:
1418 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1419 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1420 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1421 --with-pic try to use only PIC/non-PIC objects [default=use
1422 both]
1423 --without-libffi don't use libffi
1424 --with-system-libunwind use installed libunwind
1426 Some influential environment variables:
1427 CC C compiler command
1428 CFLAGS C compiler flags
1429 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1430 nonstandard directory <lib dir>
1431 LIBS libraries to pass to the linker, e.g. -l<library>
1432 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1433 you have headers in a nonstandard directory <include dir>
1434 GOC Go compiler command
1435 GOCFLAGS Go compiler flags
1436 CPP C preprocessor
1438 Use these variables to override the choices made by `configure' or to help
1439 it to find libraries and programs with nonstandard names/locations.
1441 Report bugs to the package provider.
1442 _ACEOF
1443 ac_status=$?
1446 if test "$ac_init_help" = "recursive"; then
1447 # If there are subdirs, report their specific --help.
1448 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1449 test -d "$ac_dir" ||
1450 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1451 continue
1452 ac_builddir=.
1454 case "$ac_dir" in
1455 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1457 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1458 # A ".." for each directory in $ac_dir_suffix.
1459 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1460 case $ac_top_builddir_sub in
1461 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1462 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1463 esac ;;
1464 esac
1465 ac_abs_top_builddir=$ac_pwd
1466 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1467 # for backward compatibility:
1468 ac_top_builddir=$ac_top_build_prefix
1470 case $srcdir in
1471 .) # We are building in place.
1472 ac_srcdir=.
1473 ac_top_srcdir=$ac_top_builddir_sub
1474 ac_abs_top_srcdir=$ac_pwd ;;
1475 [\\/]* | ?:[\\/]* ) # Absolute name.
1476 ac_srcdir=$srcdir$ac_dir_suffix;
1477 ac_top_srcdir=$srcdir
1478 ac_abs_top_srcdir=$srcdir ;;
1479 *) # Relative name.
1480 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1481 ac_top_srcdir=$ac_top_build_prefix$srcdir
1482 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1483 esac
1484 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1486 cd "$ac_dir" || { ac_status=$?; continue; }
1487 # Check for guested configure.
1488 if test -f "$ac_srcdir/configure.gnu"; then
1489 echo &&
1490 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1491 elif test -f "$ac_srcdir/configure"; then
1492 echo &&
1493 $SHELL "$ac_srcdir/configure" --help=recursive
1494 else
1495 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1496 fi || ac_status=$?
1497 cd "$ac_pwd" || { ac_status=$?; break; }
1498 done
1501 test -n "$ac_init_help" && exit $ac_status
1502 if $ac_init_version; then
1503 cat <<\_ACEOF
1504 package-unused configure version-unused
1505 generated by GNU Autoconf 2.64
1507 Copyright (C) 2009 Free Software Foundation, Inc.
1508 This configure script is free software; the Free Software Foundation
1509 gives unlimited permission to copy, distribute and modify it.
1510 _ACEOF
1511 exit
1514 ## ------------------------ ##
1515 ## Autoconf initialization. ##
1516 ## ------------------------ ##
1518 # ac_fn_c_try_compile LINENO
1519 # --------------------------
1520 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1521 ac_fn_c_try_compile ()
1523 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1524 rm -f conftest.$ac_objext
1525 if { { ac_try="$ac_compile"
1526 case "(($ac_try" in
1527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1528 *) ac_try_echo=$ac_try;;
1529 esac
1530 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1531 $as_echo "$ac_try_echo"; } >&5
1532 (eval "$ac_compile") 2>conftest.err
1533 ac_status=$?
1534 if test -s conftest.err; then
1535 grep -v '^ *+' conftest.err >conftest.er1
1536 cat conftest.er1 >&5
1537 mv -f conftest.er1 conftest.err
1539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1540 test $ac_status = 0; } && {
1541 test -z "$ac_c_werror_flag" ||
1542 test ! -s conftest.err
1543 } && test -s conftest.$ac_objext; then :
1544 ac_retval=0
1545 else
1546 $as_echo "$as_me: failed program was:" >&5
1547 sed 's/^/| /' conftest.$ac_ext >&5
1549 ac_retval=1
1551 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1552 return $ac_retval
1554 } # ac_fn_c_try_compile
1556 # ac_fn_c_try_link LINENO
1557 # -----------------------
1558 # Try to link conftest.$ac_ext, and return whether this succeeded.
1559 ac_fn_c_try_link ()
1561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1562 rm -f conftest.$ac_objext conftest$ac_exeext
1563 if { { ac_try="$ac_link"
1564 case "(($ac_try" in
1565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1566 *) ac_try_echo=$ac_try;;
1567 esac
1568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1569 $as_echo "$ac_try_echo"; } >&5
1570 (eval "$ac_link") 2>conftest.err
1571 ac_status=$?
1572 if test -s conftest.err; then
1573 grep -v '^ *+' conftest.err >conftest.er1
1574 cat conftest.er1 >&5
1575 mv -f conftest.er1 conftest.err
1577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1578 test $ac_status = 0; } && {
1579 test -z "$ac_c_werror_flag" ||
1580 test ! -s conftest.err
1581 } && test -s conftest$ac_exeext && {
1582 test "$cross_compiling" = yes ||
1583 $as_test_x conftest$ac_exeext
1584 }; then :
1585 ac_retval=0
1586 else
1587 $as_echo "$as_me: failed program was:" >&5
1588 sed 's/^/| /' conftest.$ac_ext >&5
1590 ac_retval=1
1592 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1593 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1594 # interfere with the next link command; also delete a directory that is
1595 # left behind by Apple's compiler. We do this before executing the actions.
1596 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1597 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1598 return $ac_retval
1600 } # ac_fn_c_try_link
1602 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1603 # -------------------------------------------------------
1604 # Tests whether HEADER exists and can be compiled using the include files in
1605 # INCLUDES, setting the cache variable VAR accordingly.
1606 ac_fn_c_check_header_compile ()
1608 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1610 $as_echo_n "checking for $2... " >&6; }
1611 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1612 $as_echo_n "(cached) " >&6
1613 else
1614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1615 /* end confdefs.h. */
1617 #include <$2>
1618 _ACEOF
1619 if ac_fn_c_try_compile "$LINENO"; then :
1620 eval "$3=yes"
1621 else
1622 eval "$3=no"
1624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1626 eval ac_res=\$$3
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1628 $as_echo "$ac_res" >&6; }
1629 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1631 } # ac_fn_c_check_header_compile
1633 # ac_fn_c_try_cpp LINENO
1634 # ----------------------
1635 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1636 ac_fn_c_try_cpp ()
1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639 if { { ac_try="$ac_cpp conftest.$ac_ext"
1640 case "(($ac_try" in
1641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1642 *) ac_try_echo=$ac_try;;
1643 esac
1644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645 $as_echo "$ac_try_echo"; } >&5
1646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1647 ac_status=$?
1648 if test -s conftest.err; then
1649 grep -v '^ *+' conftest.err >conftest.er1
1650 cat conftest.er1 >&5
1651 mv -f conftest.er1 conftest.err
1653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1654 test $ac_status = 0; } >/dev/null && {
1655 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1656 test ! -s conftest.err
1657 }; then :
1658 ac_retval=0
1659 else
1660 $as_echo "$as_me: failed program was:" >&5
1661 sed 's/^/| /' conftest.$ac_ext >&5
1663 ac_retval=1
1665 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1666 return $ac_retval
1668 } # ac_fn_c_try_cpp
1670 # ac_fn_c_try_run LINENO
1671 # ----------------------
1672 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1673 # that executables *can* be run.
1674 ac_fn_c_try_run ()
1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677 if { { ac_try="$ac_link"
1678 case "(($ac_try" in
1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680 *) ac_try_echo=$ac_try;;
1681 esac
1682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683 $as_echo "$ac_try_echo"; } >&5
1684 (eval "$ac_link") 2>&5
1685 ac_status=$?
1686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1688 { { case "(($ac_try" in
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1691 esac
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 $as_echo "$ac_try_echo"; } >&5
1694 (eval "$ac_try") 2>&5
1695 ac_status=$?
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; }; }; then :
1698 ac_retval=0
1699 else
1700 $as_echo "$as_me: program exited with status $ac_status" >&5
1701 $as_echo "$as_me: failed program was:" >&5
1702 sed 's/^/| /' conftest.$ac_ext >&5
1704 ac_retval=$ac_status
1706 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1707 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1708 return $ac_retval
1710 } # ac_fn_c_try_run
1712 # ac_fn_c_check_func LINENO FUNC VAR
1713 # ----------------------------------
1714 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1715 ac_fn_c_check_func ()
1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1719 $as_echo_n "checking for $2... " >&6; }
1720 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1721 $as_echo_n "(cached) " >&6
1722 else
1723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1724 /* end confdefs.h. */
1725 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1727 #define $2 innocuous_$2
1729 /* System header to define __stub macros and hopefully few prototypes,
1730 which can conflict with char $2 (); below.
1731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1732 <limits.h> exists even on freestanding compilers. */
1734 #ifdef __STDC__
1735 # include <limits.h>
1736 #else
1737 # include <assert.h>
1738 #endif
1740 #undef $2
1742 /* Override any GCC internal prototype to avoid an error.
1743 Use char because int might match the return type of a GCC
1744 builtin and then its argument prototype would still apply. */
1745 #ifdef __cplusplus
1746 extern "C"
1747 #endif
1748 char $2 ();
1749 /* The GNU C library defines this for functions which it implements
1750 to always fail with ENOSYS. Some functions are actually named
1751 something starting with __ and the normal name is an alias. */
1752 #if defined __stub_$2 || defined __stub___$2
1753 choke me
1754 #endif
1757 main ()
1759 return $2 ();
1761 return 0;
1763 _ACEOF
1764 if ac_fn_c_try_link "$LINENO"; then :
1765 eval "$3=yes"
1766 else
1767 eval "$3=no"
1769 rm -f core conftest.err conftest.$ac_objext \
1770 conftest$ac_exeext conftest.$ac_ext
1772 eval ac_res=\$$3
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1774 $as_echo "$ac_res" >&6; }
1775 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1777 } # ac_fn_c_check_func
1779 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1780 # -------------------------------------------------------
1781 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1782 # the include files in INCLUDES and setting the cache variable VAR
1783 # accordingly.
1784 ac_fn_c_check_header_mongrel ()
1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1789 $as_echo_n "checking for $2... " >&6; }
1790 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1791 $as_echo_n "(cached) " >&6
1793 eval ac_res=\$$3
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1795 $as_echo "$ac_res" >&6; }
1796 else
1797 # Is the header compilable?
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1799 $as_echo_n "checking $2 usability... " >&6; }
1800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h. */
1803 #include <$2>
1804 _ACEOF
1805 if ac_fn_c_try_compile "$LINENO"; then :
1806 ac_header_compiler=yes
1807 else
1808 ac_header_compiler=no
1810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1812 $as_echo "$ac_header_compiler" >&6; }
1814 # Is the header present?
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1816 $as_echo_n "checking $2 presence... " >&6; }
1817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1818 /* end confdefs.h. */
1819 #include <$2>
1820 _ACEOF
1821 if ac_fn_c_try_cpp "$LINENO"; then :
1822 ac_header_preproc=yes
1823 else
1824 ac_header_preproc=no
1826 rm -f conftest.err conftest.$ac_ext
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1828 $as_echo "$ac_header_preproc" >&6; }
1830 # So? What about this header?
1831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1832 yes:no: )
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1834 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1836 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1838 no:yes:* )
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1840 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1842 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1844 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1846 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1848 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1850 esac
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852 $as_echo_n "checking for $2... " >&6; }
1853 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1854 $as_echo_n "(cached) " >&6
1855 else
1856 eval "$3=\$ac_header_compiler"
1858 eval ac_res=\$$3
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1860 $as_echo "$ac_res" >&6; }
1862 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1864 } # ac_fn_c_check_header_mongrel
1866 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1867 # -------------------------------------------
1868 # Tests whether TYPE exists after having included INCLUDES, setting cache
1869 # variable VAR accordingly.
1870 ac_fn_c_check_type ()
1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1874 $as_echo_n "checking for $2... " >&6; }
1875 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1876 $as_echo_n "(cached) " >&6
1877 else
1878 eval "$3=no"
1879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1880 /* end confdefs.h. */
1883 main ()
1885 if (sizeof ($2))
1886 return 0;
1888 return 0;
1890 _ACEOF
1891 if ac_fn_c_try_compile "$LINENO"; then :
1892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1893 /* end confdefs.h. */
1896 main ()
1898 if (sizeof (($2)))
1899 return 0;
1901 return 0;
1903 _ACEOF
1904 if ac_fn_c_try_compile "$LINENO"; then :
1906 else
1907 eval "$3=yes"
1909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1913 eval ac_res=\$$3
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1915 $as_echo "$ac_res" >&6; }
1916 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1918 } # ac_fn_c_check_type
1919 cat >config.log <<_ACEOF
1920 This file contains any messages produced by compilers while
1921 running configure, to aid debugging if configure makes a mistake.
1923 It was created by package-unused $as_me version-unused, which was
1924 generated by GNU Autoconf 2.64. Invocation command line was
1926 $ $0 $@
1928 _ACEOF
1929 exec 5>>config.log
1931 cat <<_ASUNAME
1932 ## --------- ##
1933 ## Platform. ##
1934 ## --------- ##
1936 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1937 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1938 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1939 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1940 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1942 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1943 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1945 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1946 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1947 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1948 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1949 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1950 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1951 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1953 _ASUNAME
1955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1956 for as_dir in $PATH
1958 IFS=$as_save_IFS
1959 test -z "$as_dir" && as_dir=.
1960 $as_echo "PATH: $as_dir"
1961 done
1962 IFS=$as_save_IFS
1964 } >&5
1966 cat >&5 <<_ACEOF
1969 ## ----------- ##
1970 ## Core tests. ##
1971 ## ----------- ##
1973 _ACEOF
1976 # Keep a trace of the command line.
1977 # Strip out --no-create and --no-recursion so they do not pile up.
1978 # Strip out --silent because we don't want to record it for future runs.
1979 # Also quote any args containing shell meta-characters.
1980 # Make two passes to allow for proper duplicate-argument suppression.
1981 ac_configure_args=
1982 ac_configure_args0=
1983 ac_configure_args1=
1984 ac_must_keep_next=false
1985 for ac_pass in 1 2
1987 for ac_arg
1989 case $ac_arg in
1990 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1991 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1992 | -silent | --silent | --silen | --sile | --sil)
1993 continue ;;
1994 *\'*)
1995 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1996 esac
1997 case $ac_pass in
1998 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2000 as_fn_append ac_configure_args1 " '$ac_arg'"
2001 if test $ac_must_keep_next = true; then
2002 ac_must_keep_next=false # Got value, back to normal.
2003 else
2004 case $ac_arg in
2005 *=* | --config-cache | -C | -disable-* | --disable-* \
2006 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2007 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2008 | -with-* | --with-* | -without-* | --without-* | --x)
2009 case "$ac_configure_args0 " in
2010 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2011 esac
2013 -* ) ac_must_keep_next=true ;;
2014 esac
2016 as_fn_append ac_configure_args " '$ac_arg'"
2018 esac
2019 done
2020 done
2021 { ac_configure_args0=; unset ac_configure_args0;}
2022 { ac_configure_args1=; unset ac_configure_args1;}
2024 # When interrupted or exit'd, cleanup temporary files, and complete
2025 # config.log. We remove comments because anyway the quotes in there
2026 # would cause problems or look ugly.
2027 # WARNING: Use '\'' to represent an apostrophe within the trap.
2028 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2029 trap 'exit_status=$?
2030 # Save into config.log some information that might help in debugging.
2032 echo
2034 cat <<\_ASBOX
2035 ## ---------------- ##
2036 ## Cache variables. ##
2037 ## ---------------- ##
2038 _ASBOX
2039 echo
2040 # The following way of writing the cache mishandles newlines in values,
2042 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2043 eval ac_val=\$$ac_var
2044 case $ac_val in #(
2045 *${as_nl}*)
2046 case $ac_var in #(
2047 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2048 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2049 esac
2050 case $ac_var in #(
2051 _ | IFS | as_nl) ;; #(
2052 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2053 *) { eval $ac_var=; unset $ac_var;} ;;
2054 esac ;;
2055 esac
2056 done
2057 (set) 2>&1 |
2058 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2059 *${as_nl}ac_space=\ *)
2060 sed -n \
2061 "s/'\''/'\''\\\\'\'''\''/g;
2062 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2063 ;; #(
2065 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2067 esac |
2068 sort
2070 echo
2072 cat <<\_ASBOX
2073 ## ----------------- ##
2074 ## Output variables. ##
2075 ## ----------------- ##
2076 _ASBOX
2077 echo
2078 for ac_var in $ac_subst_vars
2080 eval ac_val=\$$ac_var
2081 case $ac_val in
2082 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2083 esac
2084 $as_echo "$ac_var='\''$ac_val'\''"
2085 done | sort
2086 echo
2088 if test -n "$ac_subst_files"; then
2089 cat <<\_ASBOX
2090 ## ------------------- ##
2091 ## File substitutions. ##
2092 ## ------------------- ##
2093 _ASBOX
2094 echo
2095 for ac_var in $ac_subst_files
2097 eval ac_val=\$$ac_var
2098 case $ac_val in
2099 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2100 esac
2101 $as_echo "$ac_var='\''$ac_val'\''"
2102 done | sort
2103 echo
2106 if test -s confdefs.h; then
2107 cat <<\_ASBOX
2108 ## ----------- ##
2109 ## confdefs.h. ##
2110 ## ----------- ##
2111 _ASBOX
2112 echo
2113 cat confdefs.h
2114 echo
2116 test "$ac_signal" != 0 &&
2117 $as_echo "$as_me: caught signal $ac_signal"
2118 $as_echo "$as_me: exit $exit_status"
2119 } >&5
2120 rm -f core *.core core.conftest.* &&
2121 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2122 exit $exit_status
2124 for ac_signal in 1 2 13 15; do
2125 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2126 done
2127 ac_signal=0
2129 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2130 rm -f -r conftest* confdefs.h
2132 $as_echo "/* confdefs.h */" > confdefs.h
2134 # Predefined preprocessor variables.
2136 cat >>confdefs.h <<_ACEOF
2137 #define PACKAGE_NAME "$PACKAGE_NAME"
2138 _ACEOF
2140 cat >>confdefs.h <<_ACEOF
2141 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2142 _ACEOF
2144 cat >>confdefs.h <<_ACEOF
2145 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2146 _ACEOF
2148 cat >>confdefs.h <<_ACEOF
2149 #define PACKAGE_STRING "$PACKAGE_STRING"
2150 _ACEOF
2152 cat >>confdefs.h <<_ACEOF
2153 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2154 _ACEOF
2156 cat >>confdefs.h <<_ACEOF
2157 #define PACKAGE_URL "$PACKAGE_URL"
2158 _ACEOF
2161 # Let the site file select an alternate cache file if it wants to.
2162 # Prefer an explicitly selected file to automatically selected ones.
2163 ac_site_file1=NONE
2164 ac_site_file2=NONE
2165 if test -n "$CONFIG_SITE"; then
2166 ac_site_file1=$CONFIG_SITE
2167 elif test "x$prefix" != xNONE; then
2168 ac_site_file1=$prefix/share/config.site
2169 ac_site_file2=$prefix/etc/config.site
2170 else
2171 ac_site_file1=$ac_default_prefix/share/config.site
2172 ac_site_file2=$ac_default_prefix/etc/config.site
2174 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2176 test "x$ac_site_file" = xNONE && continue
2177 if test -r "$ac_site_file"; then
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2179 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2180 sed 's/^/| /' "$ac_site_file" >&5
2181 . "$ac_site_file"
2183 done
2185 if test -r "$cache_file"; then
2186 # Some versions of bash will fail to source /dev/null (special
2187 # files actually), so we avoid doing that.
2188 if test -f "$cache_file"; then
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2190 $as_echo "$as_me: loading cache $cache_file" >&6;}
2191 case $cache_file in
2192 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2193 *) . "./$cache_file";;
2194 esac
2196 else
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2198 $as_echo "$as_me: creating cache $cache_file" >&6;}
2199 >$cache_file
2202 # Check that the precious variables saved in the cache have kept the same
2203 # value.
2204 ac_cache_corrupted=false
2205 for ac_var in $ac_precious_vars; do
2206 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2207 eval ac_new_set=\$ac_env_${ac_var}_set
2208 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2209 eval ac_new_val=\$ac_env_${ac_var}_value
2210 case $ac_old_set,$ac_new_set in
2211 set,)
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2213 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2214 ac_cache_corrupted=: ;;
2215 ,set)
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2217 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2218 ac_cache_corrupted=: ;;
2219 ,);;
2221 if test "x$ac_old_val" != "x$ac_new_val"; then
2222 # differences in whitespace do not lead to failure.
2223 ac_old_val_w=`echo x $ac_old_val`
2224 ac_new_val_w=`echo x $ac_new_val`
2225 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2227 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2228 ac_cache_corrupted=:
2229 else
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2231 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2232 eval $ac_var=\$ac_old_val
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2235 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2237 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2238 fi;;
2239 esac
2240 # Pass precious variables to config.status.
2241 if test "$ac_new_set" = set; then
2242 case $ac_new_val in
2243 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2244 *) ac_arg=$ac_var=$ac_new_val ;;
2245 esac
2246 case " $ac_configure_args " in
2247 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2248 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2249 esac
2251 done
2252 if $ac_cache_corrupted; then
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2254 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2256 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2257 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2259 ## -------------------- ##
2260 ## Main body of script. ##
2261 ## -------------------- ##
2263 ac_ext=c
2264 ac_cpp='$CPP $CPPFLAGS'
2265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2274 ac_config_headers="$ac_config_headers config.h"
2277 libtool_VERSION=1:0:0
2280 # Default to --enable-multilib
2281 # Check whether --enable-multilib was given.
2282 if test "${enable_multilib+set}" = set; then :
2283 enableval=$enable_multilib; case "$enableval" in
2284 yes) multilib=yes ;;
2285 no) multilib=no ;;
2286 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2287 esac
2288 else
2289 multilib=yes
2293 # We may get other options which we leave undocumented:
2294 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2295 # See config-ml.in if you want the gory details.
2297 if test "$srcdir" = "."; then
2298 if test "$with_target_subdir" != "."; then
2299 multi_basedir="$srcdir/$with_multisrctop../.."
2300 else
2301 multi_basedir="$srcdir/$with_multisrctop.."
2303 else
2304 multi_basedir="$srcdir/.."
2308 # Even if the default multilib is not a cross compilation,
2309 # it may be that some of the other multilibs are.
2310 if test $cross_compiling = no && test $multilib = yes \
2311 && test "x${with_multisubdir}" != x ; then
2312 cross_compiling=maybe
2315 ac_config_commands="$ac_config_commands default-1"
2318 ac_aux_dir=
2319 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2320 for ac_t in install-sh install.sh shtool; do
2321 if test -f "$ac_dir/$ac_t"; then
2322 ac_aux_dir=$ac_dir
2323 ac_install_sh="$ac_aux_dir/$ac_t -c"
2324 break 2
2326 done
2327 done
2328 if test -z "$ac_aux_dir"; then
2329 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2332 # These three variables are undocumented and unsupported,
2333 # and are intended to be withdrawn in a future Autoconf release.
2334 # They can cause serious problems if a builder's source tree is in a directory
2335 # whose full name contains unusual characters.
2336 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2337 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2338 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2341 # Make sure we can run config.sub.
2342 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2343 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2346 $as_echo_n "checking build system type... " >&6; }
2347 if test "${ac_cv_build+set}" = set; then :
2348 $as_echo_n "(cached) " >&6
2349 else
2350 ac_build_alias=$build_alias
2351 test "x$ac_build_alias" = x &&
2352 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2353 test "x$ac_build_alias" = x &&
2354 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2355 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2356 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2360 $as_echo "$ac_cv_build" >&6; }
2361 case $ac_cv_build in
2362 *-*-*) ;;
2363 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2364 esac
2365 build=$ac_cv_build
2366 ac_save_IFS=$IFS; IFS='-'
2367 set x $ac_cv_build
2368 shift
2369 build_cpu=$1
2370 build_vendor=$2
2371 shift; shift
2372 # Remember, the first character of IFS is used to create $*,
2373 # except with old shells:
2374 build_os=$*
2375 IFS=$ac_save_IFS
2376 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2380 $as_echo_n "checking host system type... " >&6; }
2381 if test "${ac_cv_host+set}" = set; then :
2382 $as_echo_n "(cached) " >&6
2383 else
2384 if test "x$host_alias" = x; then
2385 ac_cv_host=$ac_cv_build
2386 else
2387 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2388 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2393 $as_echo "$ac_cv_host" >&6; }
2394 case $ac_cv_host in
2395 *-*-*) ;;
2396 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2397 esac
2398 host=$ac_cv_host
2399 ac_save_IFS=$IFS; IFS='-'
2400 set x $ac_cv_host
2401 shift
2402 host_cpu=$1
2403 host_vendor=$2
2404 shift; shift
2405 # Remember, the first character of IFS is used to create $*,
2406 # except with old shells:
2407 host_os=$*
2408 IFS=$ac_save_IFS
2409 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2413 $as_echo_n "checking target system type... " >&6; }
2414 if test "${ac_cv_target+set}" = set; then :
2415 $as_echo_n "(cached) " >&6
2416 else
2417 if test "x$target_alias" = x; then
2418 ac_cv_target=$ac_cv_host
2419 else
2420 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2421 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2426 $as_echo "$ac_cv_target" >&6; }
2427 case $ac_cv_target in
2428 *-*-*) ;;
2429 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2430 esac
2431 target=$ac_cv_target
2432 ac_save_IFS=$IFS; IFS='-'
2433 set x $ac_cv_target
2434 shift
2435 target_cpu=$1
2436 target_vendor=$2
2437 shift; shift
2438 # Remember, the first character of IFS is used to create $*,
2439 # except with old shells:
2440 target_os=$*
2441 IFS=$ac_save_IFS
2442 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2445 # The aliases save the names the user supplied, while $host etc.
2446 # will get canonicalized.
2447 test -n "$target_alias" &&
2448 test "$program_prefix$program_suffix$program_transform_name" = \
2449 NONENONEs,x,x, &&
2450 program_prefix=${target_alias}-
2452 target_alias=${target_alias-$host_alias}
2454 am__api_version='1.11'
2456 # Find a good install program. We prefer a C program (faster),
2457 # so one script is as good as another. But avoid the broken or
2458 # incompatible versions:
2459 # SysV /etc/install, /usr/sbin/install
2460 # SunOS /usr/etc/install
2461 # IRIX /sbin/install
2462 # AIX /bin/install
2463 # AmigaOS /C/install, which installs bootblocks on floppy discs
2464 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2465 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2466 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2467 # OS/2's system install, which has a completely different semantic
2468 # ./install, which can be erroneously created by make from ./install.sh.
2469 # Reject install programs that cannot install multiple files.
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2471 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2472 if test -z "$INSTALL"; then
2473 if test "${ac_cv_path_install+set}" = set; then :
2474 $as_echo_n "(cached) " >&6
2475 else
2476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477 for as_dir in $PATH
2479 IFS=$as_save_IFS
2480 test -z "$as_dir" && as_dir=.
2481 # Account for people who put trailing slashes in PATH elements.
2482 case $as_dir/ in #((
2483 ./ | .// | /[cC]/* | \
2484 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2485 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2486 /usr/ucb/* ) ;;
2488 # OSF1 and SCO ODT 3.0 have their own names for install.
2489 # Don't use installbsd from OSF since it installs stuff as root
2490 # by default.
2491 for ac_prog in ginstall scoinst install; do
2492 for ac_exec_ext in '' $ac_executable_extensions; do
2493 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2494 if test $ac_prog = install &&
2495 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2496 # AIX install. It has an incompatible calling convention.
2498 elif test $ac_prog = install &&
2499 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2500 # program-specific install script used by HP pwplus--don't use.
2502 else
2503 rm -rf conftest.one conftest.two conftest.dir
2504 echo one > conftest.one
2505 echo two > conftest.two
2506 mkdir conftest.dir
2507 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2508 test -s conftest.one && test -s conftest.two &&
2509 test -s conftest.dir/conftest.one &&
2510 test -s conftest.dir/conftest.two
2511 then
2512 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2513 break 3
2517 done
2518 done
2520 esac
2522 done
2523 IFS=$as_save_IFS
2525 rm -rf conftest.one conftest.two conftest.dir
2528 if test "${ac_cv_path_install+set}" = set; then
2529 INSTALL=$ac_cv_path_install
2530 else
2531 # As a last resort, use the slow shell script. Don't cache a
2532 # value for INSTALL within a source directory, because that will
2533 # break other packages using the cache if that directory is
2534 # removed, or if the value is a relative name.
2535 INSTALL=$ac_install_sh
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2539 $as_echo "$INSTALL" >&6; }
2541 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2542 # It thinks the first close brace ends the variable substitution.
2543 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2545 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2547 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2550 $as_echo_n "checking whether build environment is sane... " >&6; }
2551 # Just in case
2552 sleep 1
2553 echo timestamp > conftest.file
2554 # Reject unsafe characters in $srcdir or the absolute working directory
2555 # name. Accept space and tab only in the latter.
2556 am_lf='
2558 case `pwd` in
2559 *[\\\"\#\$\&\'\`$am_lf]*)
2560 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2561 esac
2562 case $srcdir in
2563 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2564 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2565 esac
2567 # Do `set' in a subshell so we don't clobber the current shell's
2568 # arguments. Must try -L first in case configure is actually a
2569 # symlink; some systems play weird games with the mod time of symlinks
2570 # (eg FreeBSD returns the mod time of the symlink's containing
2571 # directory).
2572 if (
2573 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2574 if test "$*" = "X"; then
2575 # -L didn't work.
2576 set X `ls -t "$srcdir/configure" conftest.file`
2578 rm -f conftest.file
2579 if test "$*" != "X $srcdir/configure conftest.file" \
2580 && test "$*" != "X conftest.file $srcdir/configure"; then
2582 # If neither matched, then we have a broken ls. This can happen
2583 # if, for instance, CONFIG_SHELL is bash and it inherits a
2584 # broken ls alias from the environment. This has actually
2585 # happened. Such a system could not be considered "sane".
2586 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2587 alias in your environment" "$LINENO" 5
2590 test "$2" = conftest.file
2592 then
2593 # Ok.
2595 else
2596 as_fn_error "newly created file is older than distributed files!
2597 Check your system clock" "$LINENO" 5
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2600 $as_echo "yes" >&6; }
2601 test "$program_prefix" != NONE &&
2602 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2603 # Use a double $ so make ignores it.
2604 test "$program_suffix" != NONE &&
2605 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2606 # Double any \ or $.
2607 # By default was `s,x,x', remove it if useless.
2608 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2609 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2611 # expand $ac_aux_dir to an absolute path
2612 am_aux_dir=`cd $ac_aux_dir && pwd`
2614 if test x"${MISSING+set}" != xset; then
2615 case $am_aux_dir in
2616 *\ * | *\ *)
2617 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2619 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2620 esac
2622 # Use eval to expand $SHELL
2623 if eval "$MISSING --run true"; then
2624 am_missing_run="$MISSING --run "
2625 else
2626 am_missing_run=
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2628 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2631 if test x"${install_sh}" != xset; then
2632 case $am_aux_dir in
2633 *\ * | *\ *)
2634 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2636 install_sh="\${SHELL} $am_aux_dir/install-sh"
2637 esac
2640 # Installed binaries are usually stripped using `strip' when the user
2641 # run `make install-strip'. However `strip' might not be the right
2642 # tool to use in cross-compilation environments, therefore Automake
2643 # will honor the `STRIP' environment variable to overrule this program.
2644 if test "$cross_compiling" != no; then
2645 if test -n "$ac_tool_prefix"; then
2646 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2647 set dummy ${ac_tool_prefix}strip; ac_word=$2
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2649 $as_echo_n "checking for $ac_word... " >&6; }
2650 if test "${ac_cv_prog_STRIP+set}" = set; then :
2651 $as_echo_n "(cached) " >&6
2652 else
2653 if test -n "$STRIP"; then
2654 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2655 else
2656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 for as_dir in $PATH
2659 IFS=$as_save_IFS
2660 test -z "$as_dir" && as_dir=.
2661 for ac_exec_ext in '' $ac_executable_extensions; do
2662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2663 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2665 break 2
2667 done
2668 done
2669 IFS=$as_save_IFS
2673 STRIP=$ac_cv_prog_STRIP
2674 if test -n "$STRIP"; then
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2676 $as_echo "$STRIP" >&6; }
2677 else
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2679 $as_echo "no" >&6; }
2684 if test -z "$ac_cv_prog_STRIP"; then
2685 ac_ct_STRIP=$STRIP
2686 # Extract the first word of "strip", so it can be a program name with args.
2687 set dummy strip; ac_word=$2
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2689 $as_echo_n "checking for $ac_word... " >&6; }
2690 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2691 $as_echo_n "(cached) " >&6
2692 else
2693 if test -n "$ac_ct_STRIP"; then
2694 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2695 else
2696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697 for as_dir in $PATH
2699 IFS=$as_save_IFS
2700 test -z "$as_dir" && as_dir=.
2701 for ac_exec_ext in '' $ac_executable_extensions; do
2702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2703 ac_cv_prog_ac_ct_STRIP="strip"
2704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2705 break 2
2707 done
2708 done
2709 IFS=$as_save_IFS
2713 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2714 if test -n "$ac_ct_STRIP"; then
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2716 $as_echo "$ac_ct_STRIP" >&6; }
2717 else
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2719 $as_echo "no" >&6; }
2722 if test "x$ac_ct_STRIP" = x; then
2723 STRIP=":"
2724 else
2725 case $cross_compiling:$ac_tool_warned in
2726 yes:)
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2728 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2729 ac_tool_warned=yes ;;
2730 esac
2731 STRIP=$ac_ct_STRIP
2733 else
2734 STRIP="$ac_cv_prog_STRIP"
2738 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2741 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2742 if test -z "$MKDIR_P"; then
2743 if test "${ac_cv_path_mkdir+set}" = set; then :
2744 $as_echo_n "(cached) " >&6
2745 else
2746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2749 IFS=$as_save_IFS
2750 test -z "$as_dir" && as_dir=.
2751 for ac_prog in mkdir gmkdir; do
2752 for ac_exec_ext in '' $ac_executable_extensions; do
2753 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2754 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2755 'mkdir (GNU coreutils) '* | \
2756 'mkdir (coreutils) '* | \
2757 'mkdir (fileutils) '4.1*)
2758 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2759 break 3;;
2760 esac
2761 done
2762 done
2763 done
2764 IFS=$as_save_IFS
2768 if test "${ac_cv_path_mkdir+set}" = set; then
2769 MKDIR_P="$ac_cv_path_mkdir -p"
2770 else
2771 # As a last resort, use the slow shell script. Don't cache a
2772 # value for MKDIR_P within a source directory, because that will
2773 # break other packages using the cache if that directory is
2774 # removed, or if the value is a relative name.
2775 test -d ./--version && rmdir ./--version
2776 MKDIR_P="$ac_install_sh -d"
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2780 $as_echo "$MKDIR_P" >&6; }
2782 mkdir_p="$MKDIR_P"
2783 case $mkdir_p in
2784 [\\/$]* | ?:[\\/]*) ;;
2785 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2786 esac
2788 for ac_prog in gawk mawk nawk awk
2790 # Extract the first word of "$ac_prog", so it can be a program name with args.
2791 set dummy $ac_prog; ac_word=$2
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2793 $as_echo_n "checking for $ac_word... " >&6; }
2794 if test "${ac_cv_prog_AWK+set}" = set; then :
2795 $as_echo_n "(cached) " >&6
2796 else
2797 if test -n "$AWK"; then
2798 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2799 else
2800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801 for as_dir in $PATH
2803 IFS=$as_save_IFS
2804 test -z "$as_dir" && as_dir=.
2805 for ac_exec_ext in '' $ac_executable_extensions; do
2806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2807 ac_cv_prog_AWK="$ac_prog"
2808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2809 break 2
2811 done
2812 done
2813 IFS=$as_save_IFS
2817 AWK=$ac_cv_prog_AWK
2818 if test -n "$AWK"; then
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2820 $as_echo "$AWK" >&6; }
2821 else
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2823 $as_echo "no" >&6; }
2827 test -n "$AWK" && break
2828 done
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2831 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2832 set x ${MAKE-make}
2833 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2834 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2835 $as_echo_n "(cached) " >&6
2836 else
2837 cat >conftest.make <<\_ACEOF
2838 SHELL = /bin/sh
2839 all:
2840 @echo '@@@%%%=$(MAKE)=@@@%%%'
2841 _ACEOF
2842 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2843 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2844 *@@@%%%=?*=@@@%%%*)
2845 eval ac_cv_prog_make_${ac_make}_set=yes;;
2847 eval ac_cv_prog_make_${ac_make}_set=no;;
2848 esac
2849 rm -f conftest.make
2851 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2853 $as_echo "yes" >&6; }
2854 SET_MAKE=
2855 else
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2857 $as_echo "no" >&6; }
2858 SET_MAKE="MAKE=${MAKE-make}"
2861 rm -rf .tst 2>/dev/null
2862 mkdir .tst 2>/dev/null
2863 if test -d .tst; then
2864 am__leading_dot=.
2865 else
2866 am__leading_dot=_
2868 rmdir .tst 2>/dev/null
2870 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2871 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2872 # is not polluted with repeated "-I."
2873 am__isrc=' -I$(srcdir)'
2874 # test to see if srcdir already configured
2875 if test -f $srcdir/config.status; then
2876 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2880 # test whether we have cygpath
2881 if test -z "$CYGPATH_W"; then
2882 if (cygpath --version) >/dev/null 2>/dev/null; then
2883 CYGPATH_W='cygpath -w'
2884 else
2885 CYGPATH_W=echo
2890 # Define the identity of the package.
2891 PACKAGE='libgo'
2892 VERSION='version-unused'
2895 # Some tools Automake needs.
2897 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2900 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2903 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2906 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2909 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2911 # We need awk for the "check" target. The system "awk" is bad on
2912 # some platforms.
2913 # Always define AMTAR for backward compatibility.
2915 AMTAR=${AMTAR-"${am_missing_run}tar"}
2917 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2928 ac_ext=c
2929 ac_cpp='$CPP $CPPFLAGS'
2930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2933 if test -n "$ac_tool_prefix"; then
2934 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2935 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2937 $as_echo_n "checking for $ac_word... " >&6; }
2938 if test "${ac_cv_prog_CC+set}" = set; then :
2939 $as_echo_n "(cached) " >&6
2940 else
2941 if test -n "$CC"; then
2942 ac_cv_prog_CC="$CC" # Let the user override the test.
2943 else
2944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945 for as_dir in $PATH
2947 IFS=$as_save_IFS
2948 test -z "$as_dir" && as_dir=.
2949 for ac_exec_ext in '' $ac_executable_extensions; do
2950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2951 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2953 break 2
2955 done
2956 done
2957 IFS=$as_save_IFS
2961 CC=$ac_cv_prog_CC
2962 if test -n "$CC"; then
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2964 $as_echo "$CC" >&6; }
2965 else
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2967 $as_echo "no" >&6; }
2972 if test -z "$ac_cv_prog_CC"; then
2973 ac_ct_CC=$CC
2974 # Extract the first word of "gcc", so it can be a program name with args.
2975 set dummy gcc; ac_word=$2
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2977 $as_echo_n "checking for $ac_word... " >&6; }
2978 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2979 $as_echo_n "(cached) " >&6
2980 else
2981 if test -n "$ac_ct_CC"; then
2982 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2983 else
2984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985 for as_dir in $PATH
2987 IFS=$as_save_IFS
2988 test -z "$as_dir" && as_dir=.
2989 for ac_exec_ext in '' $ac_executable_extensions; do
2990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2991 ac_cv_prog_ac_ct_CC="gcc"
2992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2993 break 2
2995 done
2996 done
2997 IFS=$as_save_IFS
3001 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3002 if test -n "$ac_ct_CC"; then
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3004 $as_echo "$ac_ct_CC" >&6; }
3005 else
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3007 $as_echo "no" >&6; }
3010 if test "x$ac_ct_CC" = x; then
3011 CC=""
3012 else
3013 case $cross_compiling:$ac_tool_warned in
3014 yes:)
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3016 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3017 ac_tool_warned=yes ;;
3018 esac
3019 CC=$ac_ct_CC
3021 else
3022 CC="$ac_cv_prog_CC"
3025 if test -z "$CC"; then
3026 if test -n "$ac_tool_prefix"; then
3027 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3028 set dummy ${ac_tool_prefix}cc; ac_word=$2
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3030 $as_echo_n "checking for $ac_word... " >&6; }
3031 if test "${ac_cv_prog_CC+set}" = set; then :
3032 $as_echo_n "(cached) " >&6
3033 else
3034 if test -n "$CC"; then
3035 ac_cv_prog_CC="$CC" # Let the user override the test.
3036 else
3037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038 for as_dir in $PATH
3040 IFS=$as_save_IFS
3041 test -z "$as_dir" && as_dir=.
3042 for ac_exec_ext in '' $ac_executable_extensions; do
3043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3044 ac_cv_prog_CC="${ac_tool_prefix}cc"
3045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3046 break 2
3048 done
3049 done
3050 IFS=$as_save_IFS
3054 CC=$ac_cv_prog_CC
3055 if test -n "$CC"; then
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3057 $as_echo "$CC" >&6; }
3058 else
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3060 $as_echo "no" >&6; }
3066 if test -z "$CC"; then
3067 # Extract the first word of "cc", so it can be a program name with args.
3068 set dummy cc; ac_word=$2
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3070 $as_echo_n "checking for $ac_word... " >&6; }
3071 if test "${ac_cv_prog_CC+set}" = set; then :
3072 $as_echo_n "(cached) " >&6
3073 else
3074 if test -n "$CC"; then
3075 ac_cv_prog_CC="$CC" # Let the user override the test.
3076 else
3077 ac_prog_rejected=no
3078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079 for as_dir in $PATH
3081 IFS=$as_save_IFS
3082 test -z "$as_dir" && as_dir=.
3083 for ac_exec_ext in '' $ac_executable_extensions; do
3084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3085 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3086 ac_prog_rejected=yes
3087 continue
3089 ac_cv_prog_CC="cc"
3090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3091 break 2
3093 done
3094 done
3095 IFS=$as_save_IFS
3097 if test $ac_prog_rejected = yes; then
3098 # We found a bogon in the path, so make sure we never use it.
3099 set dummy $ac_cv_prog_CC
3100 shift
3101 if test $# != 0; then
3102 # We chose a different compiler from the bogus one.
3103 # However, it has the same basename, so the bogon will be chosen
3104 # first if we set CC to just the basename; use the full file name.
3105 shift
3106 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3111 CC=$ac_cv_prog_CC
3112 if test -n "$CC"; then
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3114 $as_echo "$CC" >&6; }
3115 else
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117 $as_echo "no" >&6; }
3122 if test -z "$CC"; then
3123 if test -n "$ac_tool_prefix"; then
3124 for ac_prog in cl.exe
3126 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3127 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3129 $as_echo_n "checking for $ac_word... " >&6; }
3130 if test "${ac_cv_prog_CC+set}" = set; then :
3131 $as_echo_n "(cached) " >&6
3132 else
3133 if test -n "$CC"; then
3134 ac_cv_prog_CC="$CC" # Let the user override the test.
3135 else
3136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137 for as_dir in $PATH
3139 IFS=$as_save_IFS
3140 test -z "$as_dir" && as_dir=.
3141 for ac_exec_ext in '' $ac_executable_extensions; do
3142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3143 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3145 break 2
3147 done
3148 done
3149 IFS=$as_save_IFS
3153 CC=$ac_cv_prog_CC
3154 if test -n "$CC"; then
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3156 $as_echo "$CC" >&6; }
3157 else
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3159 $as_echo "no" >&6; }
3163 test -n "$CC" && break
3164 done
3166 if test -z "$CC"; then
3167 ac_ct_CC=$CC
3168 for ac_prog in cl.exe
3170 # Extract the first word of "$ac_prog", so it can be a program name with args.
3171 set dummy $ac_prog; ac_word=$2
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3173 $as_echo_n "checking for $ac_word... " >&6; }
3174 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3175 $as_echo_n "(cached) " >&6
3176 else
3177 if test -n "$ac_ct_CC"; then
3178 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3179 else
3180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181 for as_dir in $PATH
3183 IFS=$as_save_IFS
3184 test -z "$as_dir" && as_dir=.
3185 for ac_exec_ext in '' $ac_executable_extensions; do
3186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3187 ac_cv_prog_ac_ct_CC="$ac_prog"
3188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3189 break 2
3191 done
3192 done
3193 IFS=$as_save_IFS
3197 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3198 if test -n "$ac_ct_CC"; then
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3200 $as_echo "$ac_ct_CC" >&6; }
3201 else
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3203 $as_echo "no" >&6; }
3207 test -n "$ac_ct_CC" && break
3208 done
3210 if test "x$ac_ct_CC" = x; then
3211 CC=""
3212 else
3213 case $cross_compiling:$ac_tool_warned in
3214 yes:)
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3217 ac_tool_warned=yes ;;
3218 esac
3219 CC=$ac_ct_CC
3226 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3227 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3228 as_fn_error "no acceptable C compiler found in \$PATH
3229 See \`config.log' for more details." "$LINENO" 5; }
3231 # Provide some information about the compiler.
3232 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3233 set X $ac_compile
3234 ac_compiler=$2
3235 for ac_option in --version -v -V -qversion; do
3236 { { ac_try="$ac_compiler $ac_option >&5"
3237 case "(($ac_try" in
3238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3239 *) ac_try_echo=$ac_try;;
3240 esac
3241 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3242 $as_echo "$ac_try_echo"; } >&5
3243 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3244 ac_status=$?
3245 if test -s conftest.err; then
3246 sed '10a\
3247 ... rest of stderr output deleted ...
3248 10q' conftest.err >conftest.er1
3249 cat conftest.er1 >&5
3250 rm -f conftest.er1 conftest.err
3252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3253 test $ac_status = 0; }
3254 done
3256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3257 /* end confdefs.h. */
3260 main ()
3264 return 0;
3266 _ACEOF
3267 ac_clean_files_save=$ac_clean_files
3268 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3269 # Try to create an executable without -o first, disregard a.out.
3270 # It will help us diagnose broken compilers, and finding out an intuition
3271 # of exeext.
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3273 $as_echo_n "checking for C compiler default output file name... " >&6; }
3274 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3276 # The possible output files:
3277 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3279 ac_rmfiles=
3280 for ac_file in $ac_files
3282 case $ac_file in
3283 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3284 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3285 esac
3286 done
3287 rm -f $ac_rmfiles
3289 if { { ac_try="$ac_link_default"
3290 case "(($ac_try" in
3291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292 *) ac_try_echo=$ac_try;;
3293 esac
3294 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3295 $as_echo "$ac_try_echo"; } >&5
3296 (eval "$ac_link_default") 2>&5
3297 ac_status=$?
3298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3299 test $ac_status = 0; }; then :
3300 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3301 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3302 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3303 # so that the user can short-circuit this test for compilers unknown to
3304 # Autoconf.
3305 for ac_file in $ac_files ''
3307 test -f "$ac_file" || continue
3308 case $ac_file in
3309 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3311 [ab].out )
3312 # We found the default executable, but exeext='' is most
3313 # certainly right.
3314 break;;
3315 *.* )
3316 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3317 then :; else
3318 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3320 # We set ac_cv_exeext here because the later test for it is not
3321 # safe: cross compilers may not add the suffix if given an `-o'
3322 # argument, so we may need to know it at that point already.
3323 # Even if this section looks crufty: it has the advantage of
3324 # actually working.
3325 break;;
3327 break;;
3328 esac
3329 done
3330 test "$ac_cv_exeext" = no && ac_cv_exeext=
3332 else
3333 ac_file=''
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3336 $as_echo "$ac_file" >&6; }
3337 if test -z "$ac_file"; then :
3338 $as_echo "$as_me: failed program was:" >&5
3339 sed 's/^/| /' conftest.$ac_ext >&5
3341 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3342 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3343 { as_fn_set_status 77
3344 as_fn_error "C compiler cannot create executables
3345 See \`config.log' for more details." "$LINENO" 5; }; }
3347 ac_exeext=$ac_cv_exeext
3349 # Check that the compiler produces executables we can run. If not, either
3350 # the compiler is broken, or we cross compile.
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3352 $as_echo_n "checking whether the C compiler works... " >&6; }
3353 # If not cross compiling, check that we can run a simple program.
3354 if test "$cross_compiling" != yes; then
3355 if { ac_try='./$ac_file'
3356 { { case "(($ac_try" in
3357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358 *) ac_try_echo=$ac_try;;
3359 esac
3360 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3361 $as_echo "$ac_try_echo"; } >&5
3362 (eval "$ac_try") 2>&5
3363 ac_status=$?
3364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3365 test $ac_status = 0; }; }; then
3366 cross_compiling=no
3367 else
3368 if test "$cross_compiling" = maybe; then
3369 cross_compiling=yes
3370 else
3371 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3373 as_fn_error "cannot run C compiled programs.
3374 If you meant to cross compile, use \`--host'.
3375 See \`config.log' for more details." "$LINENO" 5; }
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3380 $as_echo "yes" >&6; }
3382 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3383 ac_clean_files=$ac_clean_files_save
3384 # Check that the compiler produces executables we can run. If not, either
3385 # the compiler is broken, or we cross compile.
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3387 $as_echo_n "checking whether we are cross compiling... " >&6; }
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3389 $as_echo "$cross_compiling" >&6; }
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3392 $as_echo_n "checking for suffix of executables... " >&6; }
3393 if { { ac_try="$ac_link"
3394 case "(($ac_try" in
3395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396 *) ac_try_echo=$ac_try;;
3397 esac
3398 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3399 $as_echo "$ac_try_echo"; } >&5
3400 (eval "$ac_link") 2>&5
3401 ac_status=$?
3402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3403 test $ac_status = 0; }; then :
3404 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3405 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3406 # work properly (i.e., refer to `conftest.exe'), while it won't with
3407 # `rm'.
3408 for ac_file in conftest.exe conftest conftest.*; do
3409 test -f "$ac_file" || continue
3410 case $ac_file in
3411 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3412 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3413 break;;
3414 * ) break;;
3415 esac
3416 done
3417 else
3418 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3419 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3420 as_fn_error "cannot compute suffix of executables: cannot compile and link
3421 See \`config.log' for more details." "$LINENO" 5; }
3423 rm -f conftest$ac_cv_exeext
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3425 $as_echo "$ac_cv_exeext" >&6; }
3427 rm -f conftest.$ac_ext
3428 EXEEXT=$ac_cv_exeext
3429 ac_exeext=$EXEEXT
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3431 $as_echo_n "checking for suffix of object files... " >&6; }
3432 if test "${ac_cv_objext+set}" = set; then :
3433 $as_echo_n "(cached) " >&6
3434 else
3435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3436 /* end confdefs.h. */
3439 main ()
3443 return 0;
3445 _ACEOF
3446 rm -f conftest.o conftest.obj
3447 if { { ac_try="$ac_compile"
3448 case "(($ac_try" in
3449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450 *) ac_try_echo=$ac_try;;
3451 esac
3452 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3453 $as_echo "$ac_try_echo"; } >&5
3454 (eval "$ac_compile") 2>&5
3455 ac_status=$?
3456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3457 test $ac_status = 0; }; then :
3458 for ac_file in conftest.o conftest.obj conftest.*; do
3459 test -f "$ac_file" || continue;
3460 case $ac_file in
3461 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3462 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3463 break;;
3464 esac
3465 done
3466 else
3467 $as_echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.$ac_ext >&5
3470 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3472 as_fn_error "cannot compute suffix of object files: cannot compile
3473 See \`config.log' for more details." "$LINENO" 5; }
3475 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3478 $as_echo "$ac_cv_objext" >&6; }
3479 OBJEXT=$ac_cv_objext
3480 ac_objext=$OBJEXT
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3482 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3483 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3484 $as_echo_n "(cached) " >&6
3485 else
3486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3487 /* end confdefs.h. */
3490 main ()
3492 #ifndef __GNUC__
3493 choke me
3494 #endif
3497 return 0;
3499 _ACEOF
3500 if ac_fn_c_try_compile "$LINENO"; then :
3501 ac_compiler_gnu=yes
3502 else
3503 ac_compiler_gnu=no
3505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3506 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3510 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3511 if test $ac_compiler_gnu = yes; then
3512 GCC=yes
3513 else
3514 GCC=
3516 ac_test_CFLAGS=${CFLAGS+set}
3517 ac_save_CFLAGS=$CFLAGS
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3519 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3520 if test "${ac_cv_prog_cc_g+set}" = set; then :
3521 $as_echo_n "(cached) " >&6
3522 else
3523 ac_save_c_werror_flag=$ac_c_werror_flag
3524 ac_c_werror_flag=yes
3525 ac_cv_prog_cc_g=no
3526 CFLAGS="-g"
3527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3528 /* end confdefs.h. */
3531 main ()
3535 return 0;
3537 _ACEOF
3538 if ac_fn_c_try_compile "$LINENO"; then :
3539 ac_cv_prog_cc_g=yes
3540 else
3541 CFLAGS=""
3542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3543 /* end confdefs.h. */
3546 main ()
3550 return 0;
3552 _ACEOF
3553 if ac_fn_c_try_compile "$LINENO"; then :
3555 else
3556 ac_c_werror_flag=$ac_save_c_werror_flag
3557 CFLAGS="-g"
3558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559 /* end confdefs.h. */
3562 main ()
3566 return 0;
3568 _ACEOF
3569 if ac_fn_c_try_compile "$LINENO"; then :
3570 ac_cv_prog_cc_g=yes
3572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3577 ac_c_werror_flag=$ac_save_c_werror_flag
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3580 $as_echo "$ac_cv_prog_cc_g" >&6; }
3581 if test "$ac_test_CFLAGS" = set; then
3582 CFLAGS=$ac_save_CFLAGS
3583 elif test $ac_cv_prog_cc_g = yes; then
3584 if test "$GCC" = yes; then
3585 CFLAGS="-g -O2"
3586 else
3587 CFLAGS="-g"
3589 else
3590 if test "$GCC" = yes; then
3591 CFLAGS="-O2"
3592 else
3593 CFLAGS=
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3597 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3598 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3599 $as_echo_n "(cached) " >&6
3600 else
3601 ac_cv_prog_cc_c89=no
3602 ac_save_CC=$CC
3603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3604 /* end confdefs.h. */
3605 #include <stdarg.h>
3606 #include <stdio.h>
3607 #include <sys/types.h>
3608 #include <sys/stat.h>
3609 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3610 struct buf { int x; };
3611 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3612 static char *e (p, i)
3613 char **p;
3614 int i;
3616 return p[i];
3618 static char *f (char * (*g) (char **, int), char **p, ...)
3620 char *s;
3621 va_list v;
3622 va_start (v,p);
3623 s = g (p, va_arg (v,int));
3624 va_end (v);
3625 return s;
3628 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3629 function prototypes and stuff, but not '\xHH' hex character constants.
3630 These don't provoke an error unfortunately, instead are silently treated
3631 as 'x'. The following induces an error, until -std is added to get
3632 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3633 array size at least. It's necessary to write '\x00'==0 to get something
3634 that's true only with -std. */
3635 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3637 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3638 inside strings and character constants. */
3639 #define FOO(x) 'x'
3640 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3642 int test (int i, double x);
3643 struct s1 {int (*f) (int a);};
3644 struct s2 {int (*f) (double a);};
3645 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3646 int argc;
3647 char **argv;
3649 main ()
3651 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3653 return 0;
3655 _ACEOF
3656 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3657 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3659 CC="$ac_save_CC $ac_arg"
3660 if ac_fn_c_try_compile "$LINENO"; then :
3661 ac_cv_prog_cc_c89=$ac_arg
3663 rm -f core conftest.err conftest.$ac_objext
3664 test "x$ac_cv_prog_cc_c89" != "xno" && break
3665 done
3666 rm -f conftest.$ac_ext
3667 CC=$ac_save_CC
3670 # AC_CACHE_VAL
3671 case "x$ac_cv_prog_cc_c89" in
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3674 $as_echo "none needed" >&6; } ;;
3675 xno)
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3677 $as_echo "unsupported" >&6; } ;;
3679 CC="$CC $ac_cv_prog_cc_c89"
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3681 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3682 esac
3683 if test "x$ac_cv_prog_cc_c89" != xno; then :
3687 ac_ext=c
3688 ac_cpp='$CPP $CPPFLAGS'
3689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3692 DEPDIR="${am__leading_dot}deps"
3694 ac_config_commands="$ac_config_commands depfiles"
3697 am_make=${MAKE-make}
3698 cat > confinc << 'END'
3699 am__doit:
3700 @echo this is the am__doit target
3701 .PHONY: am__doit
3703 # If we don't find an include directive, just comment out the code.
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3705 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3706 am__include="#"
3707 am__quote=
3708 _am_result=none
3709 # First try GNU make style include.
3710 echo "include confinc" > confmf
3711 # Ignore all kinds of additional output from `make'.
3712 case `$am_make -s -f confmf 2> /dev/null` in #(
3713 *the\ am__doit\ target*)
3714 am__include=include
3715 am__quote=
3716 _am_result=GNU
3718 esac
3719 # Now try BSD make style include.
3720 if test "$am__include" = "#"; then
3721 echo '.include "confinc"' > confmf
3722 case `$am_make -s -f confmf 2> /dev/null` in #(
3723 *the\ am__doit\ target*)
3724 am__include=.include
3725 am__quote="\""
3726 _am_result=BSD
3728 esac
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3733 $as_echo "$_am_result" >&6; }
3734 rm -f confinc confmf
3736 # Check whether --enable-dependency-tracking was given.
3737 if test "${enable_dependency_tracking+set}" = set; then :
3738 enableval=$enable_dependency_tracking;
3741 if test "x$enable_dependency_tracking" != xno; then
3742 am_depcomp="$ac_aux_dir/depcomp"
3743 AMDEPBACKSLASH='\'
3745 if test "x$enable_dependency_tracking" != xno; then
3746 AMDEP_TRUE=
3747 AMDEP_FALSE='#'
3748 else
3749 AMDEP_TRUE='#'
3750 AMDEP_FALSE=
3755 depcc="$CC" am_compiler_list=
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3758 $as_echo_n "checking dependency style of $depcc... " >&6; }
3759 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3760 $as_echo_n "(cached) " >&6
3761 else
3762 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3763 # We make a subdir and do the tests there. Otherwise we can end up
3764 # making bogus files that we don't know about and never remove. For
3765 # instance it was reported that on HP-UX the gcc test will end up
3766 # making a dummy file named `D' -- because `-MD' means `put the output
3767 # in D'.
3768 mkdir conftest.dir
3769 # Copy depcomp to subdir because otherwise we won't find it if we're
3770 # using a relative directory.
3771 cp "$am_depcomp" conftest.dir
3772 cd conftest.dir
3773 # We will build objects and dependencies in a subdirectory because
3774 # it helps to detect inapplicable dependency modes. For instance
3775 # both Tru64's cc and ICC support -MD to output dependencies as a
3776 # side effect of compilation, but ICC will put the dependencies in
3777 # the current directory while Tru64 will put them in the object
3778 # directory.
3779 mkdir sub
3781 am_cv_CC_dependencies_compiler_type=none
3782 if test "$am_compiler_list" = ""; then
3783 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3785 am__universal=false
3786 case " $depcc " in #(
3787 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3788 esac
3790 for depmode in $am_compiler_list; do
3791 # Setup a source with many dependencies, because some compilers
3792 # like to wrap large dependency lists on column 80 (with \), and
3793 # we should not choose a depcomp mode which is confused by this.
3795 # We need to recreate these files for each test, as the compiler may
3796 # overwrite some of them when testing with obscure command lines.
3797 # This happens at least with the AIX C compiler.
3798 : > sub/conftest.c
3799 for i in 1 2 3 4 5 6; do
3800 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3801 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3802 # Solaris 8's {/usr,}/bin/sh.
3803 touch sub/conftst$i.h
3804 done
3805 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3807 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3808 # mode. It turns out that the SunPro C++ compiler does not properly
3809 # handle `-M -o', and we need to detect this. Also, some Intel
3810 # versions had trouble with output in subdirs
3811 am__obj=sub/conftest.${OBJEXT-o}
3812 am__minus_obj="-o $am__obj"
3813 case $depmode in
3814 gcc)
3815 # This depmode causes a compiler race in universal mode.
3816 test "$am__universal" = false || continue
3818 nosideeffect)
3819 # after this tag, mechanisms are not by side-effect, so they'll
3820 # only be used when explicitly requested
3821 if test "x$enable_dependency_tracking" = xyes; then
3822 continue
3823 else
3824 break
3827 msvisualcpp | msvcmsys)
3828 # This compiler won't grok `-c -o', but also, the minuso test has
3829 # not run yet. These depmodes are late enough in the game, and
3830 # so weak that their functioning should not be impacted.
3831 am__obj=conftest.${OBJEXT-o}
3832 am__minus_obj=
3834 none) break ;;
3835 esac
3836 if depmode=$depmode \
3837 source=sub/conftest.c object=$am__obj \
3838 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3839 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3840 >/dev/null 2>conftest.err &&
3841 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3842 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3843 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3844 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3845 # icc doesn't choke on unknown options, it will just issue warnings
3846 # or remarks (even with -Werror). So we grep stderr for any message
3847 # that says an option was ignored or not supported.
3848 # When given -MP, icc 7.0 and 7.1 complain thusly:
3849 # icc: Command line warning: ignoring option '-M'; no argument required
3850 # The diagnosis changed in icc 8.0:
3851 # icc: Command line remark: option '-MP' not supported
3852 if (grep 'ignoring option' conftest.err ||
3853 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3854 am_cv_CC_dependencies_compiler_type=$depmode
3855 break
3858 done
3860 cd ..
3861 rm -rf conftest.dir
3862 else
3863 am_cv_CC_dependencies_compiler_type=none
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3868 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3869 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3872 test "x$enable_dependency_tracking" != xno \
3873 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3874 am__fastdepCC_TRUE=
3875 am__fastdepCC_FALSE='#'
3876 else
3877 am__fastdepCC_TRUE='#'
3878 am__fastdepCC_FALSE=
3882 ac_ext=go
3883 ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
3884 ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3885 ac_compile_gnu=yes
3886 if test -n "$ac_tool_prefix"; then
3887 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
3888 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3890 $as_echo_n "checking for $ac_word... " >&6; }
3891 if test "${ac_cv_prog_GOC+set}" = set; then :
3892 $as_echo_n "(cached) " >&6
3893 else
3894 if test -n "$GOC"; then
3895 ac_cv_prog_GOC="$GOC" # Let the user override the test.
3896 else
3897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3898 for as_dir in $PATH
3900 IFS=$as_save_IFS
3901 test -z "$as_dir" && as_dir=.
3902 for ac_exec_ext in '' $ac_executable_extensions; do
3903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3904 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
3905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3906 break 2
3908 done
3909 done
3910 IFS=$as_save_IFS
3914 GOC=$ac_cv_prog_GOC
3915 if test -n "$GOC"; then
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
3917 $as_echo "$GOC" >&6; }
3918 else
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3920 $as_echo "no" >&6; }
3925 if test -z "$ac_cv_prog_GOC"; then
3926 ac_ct_GOC=$GOC
3927 # Extract the first word of "gccgo", so it can be a program name with args.
3928 set dummy gccgo; ac_word=$2
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3930 $as_echo_n "checking for $ac_word... " >&6; }
3931 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
3932 $as_echo_n "(cached) " >&6
3933 else
3934 if test -n "$ac_ct_GOC"; then
3935 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
3936 else
3937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3938 for as_dir in $PATH
3940 IFS=$as_save_IFS
3941 test -z "$as_dir" && as_dir=.
3942 for ac_exec_ext in '' $ac_executable_extensions; do
3943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3944 ac_cv_prog_ac_ct_GOC="gccgo"
3945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3946 break 2
3948 done
3949 done
3950 IFS=$as_save_IFS
3954 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
3955 if test -n "$ac_ct_GOC"; then
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
3957 $as_echo "$ac_ct_GOC" >&6; }
3958 else
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3960 $as_echo "no" >&6; }
3963 if test "x$ac_ct_GOC" = x; then
3964 GOC=""
3965 else
3966 case $cross_compiling:$ac_tool_warned in
3967 yes:)
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3969 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3970 ac_tool_warned=yes ;;
3971 esac
3972 GOC=$ac_ct_GOC
3974 else
3975 GOC="$ac_cv_prog_GOC"
3978 if test -z "$GOC"; then
3979 if test -n "$ac_tool_prefix"; then
3980 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
3981 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3983 $as_echo_n "checking for $ac_word... " >&6; }
3984 if test "${ac_cv_prog_GOC+set}" = set; then :
3985 $as_echo_n "(cached) " >&6
3986 else
3987 if test -n "$GOC"; then
3988 ac_cv_prog_GOC="$GOC" # Let the user override the test.
3989 else
3990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991 for as_dir in $PATH
3993 IFS=$as_save_IFS
3994 test -z "$as_dir" && as_dir=.
3995 for ac_exec_ext in '' $ac_executable_extensions; do
3996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3997 ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
3998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3999 break 2
4001 done
4002 done
4003 IFS=$as_save_IFS
4007 GOC=$ac_cv_prog_GOC
4008 if test -n "$GOC"; then
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4010 $as_echo "$GOC" >&6; }
4011 else
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4013 $as_echo "no" >&6; }
4019 if test -z "$GOC"; then
4020 # Extract the first word of "gccgo", so it can be a program name with args.
4021 set dummy gccgo; ac_word=$2
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4023 $as_echo_n "checking for $ac_word... " >&6; }
4024 if test "${ac_cv_prog_GOC+set}" = set; then :
4025 $as_echo_n "(cached) " >&6
4026 else
4027 if test -n "$GOC"; then
4028 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4029 else
4030 ac_prog_rejected=no
4031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032 for as_dir in $PATH
4034 IFS=$as_save_IFS
4035 test -z "$as_dir" && as_dir=.
4036 for ac_exec_ext in '' $ac_executable_extensions; do
4037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4038 if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
4039 ac_prog_rejected=yes
4040 continue
4042 ac_cv_prog_GOC="gccgo"
4043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4044 break 2
4046 done
4047 done
4048 IFS=$as_save_IFS
4050 if test $ac_prog_rejected = yes; then
4051 # We found a bogon in the path, so make sure we never use it.
4052 set dummy $ac_cv_prog_GOC
4053 shift
4054 if test $# != 0; then
4055 # We chose a different compiler from the bogus one.
4056 # However, it has the same basename, so the bogon will be chosen
4057 # first if we set GOC to just the basename; use the full file name.
4058 shift
4059 ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4064 GOC=$ac_cv_prog_GOC
4065 if test -n "$GOC"; then
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4067 $as_echo "$GOC" >&6; }
4068 else
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4070 $as_echo "no" >&6; }
4077 # Provide some information about the compiler.
4078 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4079 set X $ac_compile
4080 ac_compiler=$2
4081 { { ac_try="$ac_compiler --version >&5"
4082 case "(($ac_try" in
4083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4084 *) ac_try_echo=$ac_try;;
4085 esac
4086 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4087 $as_echo "$ac_try_echo"; } >&5
4088 (eval "$ac_compiler --version >&5") 2>conftest.err
4089 ac_status=$?
4090 if test -s conftest.err; then
4091 sed '10a\
4092 ... rest of stderr output deleted ...
4093 10q' conftest.err >conftest.er1
4094 cat conftest.er1 >&5
4095 rm -f conftest.er1 conftest.err
4097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4098 test $ac_status = 0; }
4099 GOCFLAGS="-g -O2"
4100 ac_ext=c
4101 ac_cpp='$CPP $CPPFLAGS'
4102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4112 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4113 # Check whether --enable-maintainer-mode was given.
4114 if test "${enable_maintainer_mode+set}" = set; then :
4115 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4116 else
4117 USE_MAINTAINER_MODE=no
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4121 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4122 if test $USE_MAINTAINER_MODE = yes; then
4123 MAINTAINER_MODE_TRUE=
4124 MAINTAINER_MODE_FALSE='#'
4125 else
4126 MAINTAINER_MODE_TRUE='#'
4127 MAINTAINER_MODE_FALSE=
4130 MAINT=$MAINTAINER_MODE_TRUE
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4135 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4136 if test "${ac_cv_path_SED+set}" = set; then :
4137 $as_echo_n "(cached) " >&6
4138 else
4139 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4140 for ac_i in 1 2 3 4 5 6 7; do
4141 ac_script="$ac_script$as_nl$ac_script"
4142 done
4143 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4144 { ac_script=; unset ac_script;}
4145 if test -z "$SED"; then
4146 ac_path_SED_found=false
4147 # Loop through the user's path and test for each of PROGNAME-LIST
4148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4149 for as_dir in $PATH
4151 IFS=$as_save_IFS
4152 test -z "$as_dir" && as_dir=.
4153 for ac_prog in sed gsed; do
4154 for ac_exec_ext in '' $ac_executable_extensions; do
4155 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4156 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4157 # Check for GNU ac_path_SED and select it if it is found.
4158 # Check for GNU $ac_path_SED
4159 case `"$ac_path_SED" --version 2>&1` in
4160 *GNU*)
4161 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4163 ac_count=0
4164 $as_echo_n 0123456789 >"conftest.in"
4165 while :
4167 cat "conftest.in" "conftest.in" >"conftest.tmp"
4168 mv "conftest.tmp" "conftest.in"
4169 cp "conftest.in" "conftest.nl"
4170 $as_echo '' >> "conftest.nl"
4171 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4172 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4173 as_fn_arith $ac_count + 1 && ac_count=$as_val
4174 if test $ac_count -gt ${ac_path_SED_max-0}; then
4175 # Best one so far, save it but keep looking for a better one
4176 ac_cv_path_SED="$ac_path_SED"
4177 ac_path_SED_max=$ac_count
4179 # 10*(2^10) chars as input seems more than enough
4180 test $ac_count -gt 10 && break
4181 done
4182 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4183 esac
4185 $ac_path_SED_found && break 3
4186 done
4187 done
4188 done
4189 IFS=$as_save_IFS
4190 if test -z "$ac_cv_path_SED"; then
4191 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4193 else
4194 ac_cv_path_SED=$SED
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4199 $as_echo "$ac_cv_path_SED" >&6; }
4200 SED="$ac_cv_path_SED"
4201 rm -f conftest.sed
4203 test -z "$SED" && SED=sed
4204 Xsed="$SED -e 1s/^X//"
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4217 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4218 if test "${ac_cv_path_GREP+set}" = set; then :
4219 $as_echo_n "(cached) " >&6
4220 else
4221 if test -z "$GREP"; then
4222 ac_path_GREP_found=false
4223 # Loop through the user's path and test for each of PROGNAME-LIST
4224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4227 IFS=$as_save_IFS
4228 test -z "$as_dir" && as_dir=.
4229 for ac_prog in grep ggrep; do
4230 for ac_exec_ext in '' $ac_executable_extensions; do
4231 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4232 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4233 # Check for GNU ac_path_GREP and select it if it is found.
4234 # Check for GNU $ac_path_GREP
4235 case `"$ac_path_GREP" --version 2>&1` in
4236 *GNU*)
4237 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4239 ac_count=0
4240 $as_echo_n 0123456789 >"conftest.in"
4241 while :
4243 cat "conftest.in" "conftest.in" >"conftest.tmp"
4244 mv "conftest.tmp" "conftest.in"
4245 cp "conftest.in" "conftest.nl"
4246 $as_echo 'GREP' >> "conftest.nl"
4247 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4248 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4249 as_fn_arith $ac_count + 1 && ac_count=$as_val
4250 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4251 # Best one so far, save it but keep looking for a better one
4252 ac_cv_path_GREP="$ac_path_GREP"
4253 ac_path_GREP_max=$ac_count
4255 # 10*(2^10) chars as input seems more than enough
4256 test $ac_count -gt 10 && break
4257 done
4258 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4259 esac
4261 $ac_path_GREP_found && break 3
4262 done
4263 done
4264 done
4265 IFS=$as_save_IFS
4266 if test -z "$ac_cv_path_GREP"; then
4267 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4269 else
4270 ac_cv_path_GREP=$GREP
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4275 $as_echo "$ac_cv_path_GREP" >&6; }
4276 GREP="$ac_cv_path_GREP"
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4280 $as_echo_n "checking for egrep... " >&6; }
4281 if test "${ac_cv_path_EGREP+set}" = set; then :
4282 $as_echo_n "(cached) " >&6
4283 else
4284 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4285 then ac_cv_path_EGREP="$GREP -E"
4286 else
4287 if test -z "$EGREP"; then
4288 ac_path_EGREP_found=false
4289 # Loop through the user's path and test for each of PROGNAME-LIST
4290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4291 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4293 IFS=$as_save_IFS
4294 test -z "$as_dir" && as_dir=.
4295 for ac_prog in egrep; do
4296 for ac_exec_ext in '' $ac_executable_extensions; do
4297 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4298 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4299 # Check for GNU ac_path_EGREP and select it if it is found.
4300 # Check for GNU $ac_path_EGREP
4301 case `"$ac_path_EGREP" --version 2>&1` in
4302 *GNU*)
4303 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4305 ac_count=0
4306 $as_echo_n 0123456789 >"conftest.in"
4307 while :
4309 cat "conftest.in" "conftest.in" >"conftest.tmp"
4310 mv "conftest.tmp" "conftest.in"
4311 cp "conftest.in" "conftest.nl"
4312 $as_echo 'EGREP' >> "conftest.nl"
4313 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4314 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4315 as_fn_arith $ac_count + 1 && ac_count=$as_val
4316 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4317 # Best one so far, save it but keep looking for a better one
4318 ac_cv_path_EGREP="$ac_path_EGREP"
4319 ac_path_EGREP_max=$ac_count
4321 # 10*(2^10) chars as input seems more than enough
4322 test $ac_count -gt 10 && break
4323 done
4324 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4325 esac
4327 $ac_path_EGREP_found && break 3
4328 done
4329 done
4330 done
4331 IFS=$as_save_IFS
4332 if test -z "$ac_cv_path_EGREP"; then
4333 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4335 else
4336 ac_cv_path_EGREP=$EGREP
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4342 $as_echo "$ac_cv_path_EGREP" >&6; }
4343 EGREP="$ac_cv_path_EGREP"
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4347 $as_echo_n "checking for fgrep... " >&6; }
4348 if test "${ac_cv_path_FGREP+set}" = set; then :
4349 $as_echo_n "(cached) " >&6
4350 else
4351 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4352 then ac_cv_path_FGREP="$GREP -F"
4353 else
4354 if test -z "$FGREP"; then
4355 ac_path_FGREP_found=false
4356 # Loop through the user's path and test for each of PROGNAME-LIST
4357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4358 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4360 IFS=$as_save_IFS
4361 test -z "$as_dir" && as_dir=.
4362 for ac_prog in fgrep; do
4363 for ac_exec_ext in '' $ac_executable_extensions; do
4364 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4365 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4366 # Check for GNU ac_path_FGREP and select it if it is found.
4367 # Check for GNU $ac_path_FGREP
4368 case `"$ac_path_FGREP" --version 2>&1` in
4369 *GNU*)
4370 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4372 ac_count=0
4373 $as_echo_n 0123456789 >"conftest.in"
4374 while :
4376 cat "conftest.in" "conftest.in" >"conftest.tmp"
4377 mv "conftest.tmp" "conftest.in"
4378 cp "conftest.in" "conftest.nl"
4379 $as_echo 'FGREP' >> "conftest.nl"
4380 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4381 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4382 as_fn_arith $ac_count + 1 && ac_count=$as_val
4383 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4384 # Best one so far, save it but keep looking for a better one
4385 ac_cv_path_FGREP="$ac_path_FGREP"
4386 ac_path_FGREP_max=$ac_count
4388 # 10*(2^10) chars as input seems more than enough
4389 test $ac_count -gt 10 && break
4390 done
4391 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4392 esac
4394 $ac_path_FGREP_found && break 3
4395 done
4396 done
4397 done
4398 IFS=$as_save_IFS
4399 if test -z "$ac_cv_path_FGREP"; then
4400 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4402 else
4403 ac_cv_path_FGREP=$FGREP
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4409 $as_echo "$ac_cv_path_FGREP" >&6; }
4410 FGREP="$ac_cv_path_FGREP"
4413 test -z "$GREP" && GREP=grep
4431 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4432 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4433 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4436 $as_echo_n "checking how to print strings... " >&6; }
4437 # Test print first, because it will be a builtin if present.
4438 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4439 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4440 ECHO='print -r --'
4441 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4442 ECHO='printf %s\n'
4443 else
4444 # Use this function as a fallback that always works.
4445 func_fallback_echo ()
4447 eval 'cat <<_LTECHO_EOF
4449 _LTECHO_EOF'
4451 ECHO='func_fallback_echo'
4454 # func_echo_all arg...
4455 # Invoke $ECHO with all args, space-separated.
4456 func_echo_all ()
4458 $ECHO ""
4461 case "$ECHO" in
4462 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4463 $as_echo "printf" >&6; } ;;
4464 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4465 $as_echo "print -r" >&6; } ;;
4466 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4467 $as_echo "cat" >&6; } ;;
4468 esac
4485 # Check whether --with-gnu-ld was given.
4486 if test "${with_gnu_ld+set}" = set; then :
4487 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4488 else
4489 with_gnu_ld=no
4492 ac_prog=ld
4493 if test "$GCC" = yes; then
4494 # Check if gcc -print-prog-name=ld gives a path.
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4496 $as_echo_n "checking for ld used by $CC... " >&6; }
4497 case $host in
4498 *-*-mingw*)
4499 # gcc leaves a trailing carriage return which upsets mingw
4500 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4502 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4503 esac
4504 case $ac_prog in
4505 # Accept absolute paths.
4506 [\\/]* | ?:[\\/]*)
4507 re_direlt='/[^/][^/]*/\.\./'
4508 # Canonicalize the pathname of ld
4509 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4510 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4511 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4512 done
4513 test -z "$LD" && LD="$ac_prog"
4516 # If it fails, then pretend we aren't using GCC.
4517 ac_prog=ld
4520 # If it is relative, then search for the first ld in PATH.
4521 with_gnu_ld=unknown
4523 esac
4524 elif test "$with_gnu_ld" = yes; then
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4526 $as_echo_n "checking for GNU ld... " >&6; }
4527 else
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4529 $as_echo_n "checking for non-GNU ld... " >&6; }
4531 if test "${lt_cv_path_LD+set}" = set; then :
4532 $as_echo_n "(cached) " >&6
4533 else
4534 if test -z "$LD"; then
4535 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4536 for ac_dir in $PATH; do
4537 IFS="$lt_save_ifs"
4538 test -z "$ac_dir" && ac_dir=.
4539 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4540 lt_cv_path_LD="$ac_dir/$ac_prog"
4541 # Check to see if the program is GNU ld. I'd rather use --version,
4542 # but apparently some variants of GNU ld only accept -v.
4543 # Break only if it was the GNU/non-GNU ld that we prefer.
4544 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4545 *GNU* | *'with BFD'*)
4546 test "$with_gnu_ld" != no && break
4549 test "$with_gnu_ld" != yes && break
4551 esac
4553 done
4554 IFS="$lt_save_ifs"
4555 else
4556 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4560 LD="$lt_cv_path_LD"
4561 if test -n "$LD"; then
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4563 $as_echo "$LD" >&6; }
4564 else
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4566 $as_echo "no" >&6; }
4568 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4570 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4571 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4572 $as_echo_n "(cached) " >&6
4573 else
4574 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4575 case `$LD -v 2>&1 </dev/null` in
4576 *GNU* | *'with BFD'*)
4577 lt_cv_prog_gnu_ld=yes
4580 lt_cv_prog_gnu_ld=no
4582 esac
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4585 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4586 with_gnu_ld=$lt_cv_prog_gnu_ld
4596 if test -n "$ac_tool_prefix"; then
4597 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4598 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4600 $as_echo_n "checking for $ac_word... " >&6; }
4601 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4602 $as_echo_n "(cached) " >&6
4603 else
4604 if test -n "$RANLIB"; then
4605 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4606 else
4607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608 for as_dir in $PATH
4610 IFS=$as_save_IFS
4611 test -z "$as_dir" && as_dir=.
4612 for ac_exec_ext in '' $ac_executable_extensions; do
4613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4614 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4616 break 2
4618 done
4619 done
4620 IFS=$as_save_IFS
4624 RANLIB=$ac_cv_prog_RANLIB
4625 if test -n "$RANLIB"; then
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4627 $as_echo "$RANLIB" >&6; }
4628 else
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4630 $as_echo "no" >&6; }
4635 if test -z "$ac_cv_prog_RANLIB"; then
4636 ac_ct_RANLIB=$RANLIB
4637 # Extract the first word of "ranlib", so it can be a program name with args.
4638 set dummy ranlib; ac_word=$2
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4640 $as_echo_n "checking for $ac_word... " >&6; }
4641 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4642 $as_echo_n "(cached) " >&6
4643 else
4644 if test -n "$ac_ct_RANLIB"; then
4645 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4646 else
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648 for as_dir in $PATH
4650 IFS=$as_save_IFS
4651 test -z "$as_dir" && as_dir=.
4652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4654 ac_cv_prog_ac_ct_RANLIB="ranlib"
4655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4656 break 2
4658 done
4659 done
4660 IFS=$as_save_IFS
4664 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4665 if test -n "$ac_ct_RANLIB"; then
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4667 $as_echo "$ac_ct_RANLIB" >&6; }
4668 else
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4670 $as_echo "no" >&6; }
4673 if test "x$ac_ct_RANLIB" = x; then
4674 RANLIB=":"
4675 else
4676 case $cross_compiling:$ac_tool_warned in
4677 yes:)
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4680 ac_tool_warned=yes ;;
4681 esac
4682 RANLIB=$ac_ct_RANLIB
4684 else
4685 RANLIB="$ac_cv_prog_RANLIB"
4688 if test -n "$ac_tool_prefix"; then
4689 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
4690 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4692 $as_echo_n "checking for $ac_word... " >&6; }
4693 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
4694 $as_echo_n "(cached) " >&6
4695 else
4696 if test -n "$OBJCOPY"; then
4697 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4698 else
4699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700 for as_dir in $PATH
4702 IFS=$as_save_IFS
4703 test -z "$as_dir" && as_dir=.
4704 for ac_exec_ext in '' $ac_executable_extensions; do
4705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4706 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
4707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4708 break 2
4710 done
4711 done
4712 IFS=$as_save_IFS
4716 OBJCOPY=$ac_cv_prog_OBJCOPY
4717 if test -n "$OBJCOPY"; then
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
4719 $as_echo "$OBJCOPY" >&6; }
4720 else
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4722 $as_echo "no" >&6; }
4727 if test -z "$ac_cv_prog_OBJCOPY"; then
4728 ac_ct_OBJCOPY=$OBJCOPY
4729 # Extract the first word of "objcopy", so it can be a program name with args.
4730 set dummy objcopy; ac_word=$2
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4732 $as_echo_n "checking for $ac_word... " >&6; }
4733 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
4734 $as_echo_n "(cached) " >&6
4735 else
4736 if test -n "$ac_ct_OBJCOPY"; then
4737 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
4738 else
4739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4740 for as_dir in $PATH
4742 IFS=$as_save_IFS
4743 test -z "$as_dir" && as_dir=.
4744 for ac_exec_ext in '' $ac_executable_extensions; do
4745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4746 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
4747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4748 break 2
4750 done
4751 done
4752 IFS=$as_save_IFS
4756 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
4757 if test -n "$ac_ct_OBJCOPY"; then
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
4759 $as_echo "$ac_ct_OBJCOPY" >&6; }
4760 else
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4762 $as_echo "no" >&6; }
4765 if test "x$ac_ct_OBJCOPY" = x; then
4766 OBJCOPY="missing-objcopy"
4767 else
4768 case $cross_compiling:$ac_tool_warned in
4769 yes:)
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4771 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4772 ac_tool_warned=yes ;;
4773 esac
4774 OBJCOPY=$ac_ct_OBJCOPY
4776 else
4777 OBJCOPY="$ac_cv_prog_OBJCOPY"
4781 enable_dlopen=yes
4785 case `pwd` in
4786 *\ * | *\ *)
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4788 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4789 esac
4793 macro_version='2.2.7a'
4794 macro_revision='1.3134'
4808 ltmain="$ac_aux_dir/ltmain.sh"
4810 # Backslashify metacharacters that are still active within
4811 # double-quoted strings.
4812 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4814 # Same as above, but do not quote variable references.
4815 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4817 # Sed substitution to delay expansion of an escaped shell variable in a
4818 # double_quote_subst'ed string.
4819 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4821 # Sed substitution to delay expansion of an escaped single quote.
4822 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4824 # Sed substitution to avoid accidental globbing in evaled expressions
4825 no_glob_subst='s/\*/\\\*/g'
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4828 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4829 if test "${lt_cv_path_NM+set}" = set; then :
4830 $as_echo_n "(cached) " >&6
4831 else
4832 if test -n "$NM"; then
4833 # Let the user override the test.
4834 lt_cv_path_NM="$NM"
4835 else
4836 lt_nm_to_check="${ac_tool_prefix}nm"
4837 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4838 lt_nm_to_check="$lt_nm_to_check nm"
4840 for lt_tmp_nm in $lt_nm_to_check; do
4841 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4842 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4843 IFS="$lt_save_ifs"
4844 test -z "$ac_dir" && ac_dir=.
4845 tmp_nm="$ac_dir/$lt_tmp_nm"
4846 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4847 # Check to see if the nm accepts a BSD-compat flag.
4848 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4849 # nm: unknown option "B" ignored
4850 # Tru64's nm complains that /dev/null is an invalid object file
4851 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4852 */dev/null* | *'Invalid file or object type'*)
4853 lt_cv_path_NM="$tmp_nm -B"
4854 break
4857 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4858 */dev/null*)
4859 lt_cv_path_NM="$tmp_nm -p"
4860 break
4863 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4864 continue # so that we can try to find one that supports BSD flags
4866 esac
4868 esac
4870 done
4871 IFS="$lt_save_ifs"
4872 done
4873 : ${lt_cv_path_NM=no}
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4877 $as_echo "$lt_cv_path_NM" >&6; }
4878 if test "$lt_cv_path_NM" != "no"; then
4879 NM="$lt_cv_path_NM"
4880 else
4881 # Didn't find any BSD compatible name lister, look for dumpbin.
4882 if test -n "$DUMPBIN"; then :
4883 # Let the user override the test.
4884 else
4885 if test -n "$ac_tool_prefix"; then
4886 for ac_prog in dumpbin "link -dump"
4888 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4889 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4891 $as_echo_n "checking for $ac_word... " >&6; }
4892 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4893 $as_echo_n "(cached) " >&6
4894 else
4895 if test -n "$DUMPBIN"; then
4896 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4897 else
4898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899 for as_dir in $PATH
4901 IFS=$as_save_IFS
4902 test -z "$as_dir" && as_dir=.
4903 for ac_exec_ext in '' $ac_executable_extensions; do
4904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4905 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4907 break 2
4909 done
4910 done
4911 IFS=$as_save_IFS
4915 DUMPBIN=$ac_cv_prog_DUMPBIN
4916 if test -n "$DUMPBIN"; then
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4918 $as_echo "$DUMPBIN" >&6; }
4919 else
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4921 $as_echo "no" >&6; }
4925 test -n "$DUMPBIN" && break
4926 done
4928 if test -z "$DUMPBIN"; then
4929 ac_ct_DUMPBIN=$DUMPBIN
4930 for ac_prog in dumpbin "link -dump"
4932 # Extract the first word of "$ac_prog", so it can be a program name with args.
4933 set dummy $ac_prog; ac_word=$2
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4935 $as_echo_n "checking for $ac_word... " >&6; }
4936 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4937 $as_echo_n "(cached) " >&6
4938 else
4939 if test -n "$ac_ct_DUMPBIN"; then
4940 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4941 else
4942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4943 for as_dir in $PATH
4945 IFS=$as_save_IFS
4946 test -z "$as_dir" && as_dir=.
4947 for ac_exec_ext in '' $ac_executable_extensions; do
4948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4949 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4951 break 2
4953 done
4954 done
4955 IFS=$as_save_IFS
4959 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4960 if test -n "$ac_ct_DUMPBIN"; then
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4962 $as_echo "$ac_ct_DUMPBIN" >&6; }
4963 else
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4965 $as_echo "no" >&6; }
4969 test -n "$ac_ct_DUMPBIN" && break
4970 done
4972 if test "x$ac_ct_DUMPBIN" = x; then
4973 DUMPBIN=":"
4974 else
4975 case $cross_compiling:$ac_tool_warned in
4976 yes:)
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4978 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4979 ac_tool_warned=yes ;;
4980 esac
4981 DUMPBIN=$ac_ct_DUMPBIN
4985 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4986 *COFF*)
4987 DUMPBIN="$DUMPBIN -symbols"
4990 DUMPBIN=:
4992 esac
4995 if test "$DUMPBIN" != ":"; then
4996 NM="$DUMPBIN"
4999 test -z "$NM" && NM=nm
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5007 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5008 if test "${lt_cv_nm_interface+set}" = set; then :
5009 $as_echo_n "(cached) " >&6
5010 else
5011 lt_cv_nm_interface="BSD nm"
5012 echo "int some_variable = 0;" > conftest.$ac_ext
5013 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5014 (eval "$ac_compile" 2>conftest.err)
5015 cat conftest.err >&5
5016 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5017 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5018 cat conftest.err >&5
5019 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5020 cat conftest.out >&5
5021 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5022 lt_cv_nm_interface="MS dumpbin"
5024 rm -f conftest*
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5027 $as_echo "$lt_cv_nm_interface" >&6; }
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5030 $as_echo_n "checking whether ln -s works... " >&6; }
5031 LN_S=$as_ln_s
5032 if test "$LN_S" = "ln -s"; then
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5034 $as_echo "yes" >&6; }
5035 else
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5037 $as_echo "no, using $LN_S" >&6; }
5040 # find the maximum length of command line arguments
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5042 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5043 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5044 $as_echo_n "(cached) " >&6
5045 else
5047 teststring="ABCD"
5049 case $build_os in
5050 msdosdjgpp*)
5051 # On DJGPP, this test can blow up pretty badly due to problems in libc
5052 # (any single argument exceeding 2000 bytes causes a buffer overrun
5053 # during glob expansion). Even if it were fixed, the result of this
5054 # check would be larger than it should be.
5055 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5058 gnu*)
5059 # Under GNU Hurd, this test is not required because there is
5060 # no limit to the length of command line arguments.
5061 # Libtool will interpret -1 as no limit whatsoever
5062 lt_cv_sys_max_cmd_len=-1;
5065 cygwin* | mingw* | cegcc*)
5066 # On Win9x/ME, this test blows up -- it succeeds, but takes
5067 # about 5 minutes as the teststring grows exponentially.
5068 # Worse, since 9x/ME are not pre-emptively multitasking,
5069 # you end up with a "frozen" computer, even though with patience
5070 # the test eventually succeeds (with a max line length of 256k).
5071 # Instead, let's just punt: use the minimum linelength reported by
5072 # all of the supported platforms: 8192 (on NT/2K/XP).
5073 lt_cv_sys_max_cmd_len=8192;
5076 mint*)
5077 # On MiNT this can take a long time and run out of memory.
5078 lt_cv_sys_max_cmd_len=8192;
5081 amigaos*)
5082 # On AmigaOS with pdksh, this test takes hours, literally.
5083 # So we just punt and use a minimum line length of 8192.
5084 lt_cv_sys_max_cmd_len=8192;
5087 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5088 # This has been around since 386BSD, at least. Likely further.
5089 if test -x /sbin/sysctl; then
5090 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5091 elif test -x /usr/sbin/sysctl; then
5092 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5093 else
5094 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5096 # And add a safety zone
5097 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5098 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5101 interix*)
5102 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5103 lt_cv_sys_max_cmd_len=196608
5106 osf*)
5107 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5108 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5109 # nice to cause kernel panics so lets avoid the loop below.
5110 # First set a reasonable default.
5111 lt_cv_sys_max_cmd_len=16384
5113 if test -x /sbin/sysconfig; then
5114 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5115 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5116 esac
5119 sco3.2v5*)
5120 lt_cv_sys_max_cmd_len=102400
5122 sysv5* | sco5v6* | sysv4.2uw2*)
5123 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5124 if test -n "$kargmax"; then
5125 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5126 else
5127 lt_cv_sys_max_cmd_len=32768
5131 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5132 if test -n "$lt_cv_sys_max_cmd_len"; then
5133 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5134 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5135 else
5136 # Make teststring a little bigger before we do anything with it.
5137 # a 1K string should be a reasonable start.
5138 for i in 1 2 3 4 5 6 7 8 ; do
5139 teststring=$teststring$teststring
5140 done
5141 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5142 # If test is not a shell built-in, we'll probably end up computing a
5143 # maximum length that is only half of the actual maximum length, but
5144 # we can't tell.
5145 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5146 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5147 test $i != 17 # 1/2 MB should be enough
5149 i=`expr $i + 1`
5150 teststring=$teststring$teststring
5151 done
5152 # Only check the string length outside the loop.
5153 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5154 teststring=
5155 # Add a significant safety factor because C++ compilers can tack on
5156 # massive amounts of additional arguments before passing them to the
5157 # linker. It appears as though 1/2 is a usable value.
5158 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5161 esac
5165 if test -n $lt_cv_sys_max_cmd_len ; then
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5167 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5168 else
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5170 $as_echo "none" >&6; }
5172 max_cmd_len=$lt_cv_sys_max_cmd_len
5179 : ${CP="cp -f"}
5180 : ${MV="mv -f"}
5181 : ${RM="rm -f"}
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5184 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5185 # Try some XSI features
5186 xsi_shell=no
5187 ( _lt_dummy="a/b/c"
5188 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5189 = c,a/b,, \
5190 && eval 'test $(( 1 + 1 )) -eq 2 \
5191 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5192 && xsi_shell=yes
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5194 $as_echo "$xsi_shell" >&6; }
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5198 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5199 lt_shell_append=no
5200 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5201 >/dev/null 2>&1 \
5202 && lt_shell_append=yes
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5204 $as_echo "$lt_shell_append" >&6; }
5207 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5208 lt_unset=unset
5209 else
5210 lt_unset=false
5217 # test EBCDIC or ASCII
5218 case `echo X|tr X '\101'` in
5219 A) # ASCII based system
5220 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5221 lt_SP2NL='tr \040 \012'
5222 lt_NL2SP='tr \015\012 \040\040'
5224 *) # EBCDIC based system
5225 lt_SP2NL='tr \100 \n'
5226 lt_NL2SP='tr \r\n \100\100'
5228 esac
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5239 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5240 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5241 $as_echo_n "(cached) " >&6
5242 else
5243 lt_cv_ld_reload_flag='-r'
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5246 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5247 reload_flag=$lt_cv_ld_reload_flag
5248 case $reload_flag in
5249 "" | " "*) ;;
5250 *) reload_flag=" $reload_flag" ;;
5251 esac
5252 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5253 case $host_os in
5254 darwin*)
5255 if test "$GCC" = yes; then
5256 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5257 else
5258 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5261 esac
5271 if test -n "$ac_tool_prefix"; then
5272 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5273 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5275 $as_echo_n "checking for $ac_word... " >&6; }
5276 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5277 $as_echo_n "(cached) " >&6
5278 else
5279 if test -n "$OBJDUMP"; then
5280 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5281 else
5282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5283 for as_dir in $PATH
5285 IFS=$as_save_IFS
5286 test -z "$as_dir" && as_dir=.
5287 for ac_exec_ext in '' $ac_executable_extensions; do
5288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5289 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5291 break 2
5293 done
5294 done
5295 IFS=$as_save_IFS
5299 OBJDUMP=$ac_cv_prog_OBJDUMP
5300 if test -n "$OBJDUMP"; then
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5302 $as_echo "$OBJDUMP" >&6; }
5303 else
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5305 $as_echo "no" >&6; }
5310 if test -z "$ac_cv_prog_OBJDUMP"; then
5311 ac_ct_OBJDUMP=$OBJDUMP
5312 # Extract the first word of "objdump", so it can be a program name with args.
5313 set dummy objdump; ac_word=$2
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5315 $as_echo_n "checking for $ac_word... " >&6; }
5316 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5317 $as_echo_n "(cached) " >&6
5318 else
5319 if test -n "$ac_ct_OBJDUMP"; then
5320 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5321 else
5322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5323 for as_dir in $PATH
5325 IFS=$as_save_IFS
5326 test -z "$as_dir" && as_dir=.
5327 for ac_exec_ext in '' $ac_executable_extensions; do
5328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5329 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5331 break 2
5333 done
5334 done
5335 IFS=$as_save_IFS
5339 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5340 if test -n "$ac_ct_OBJDUMP"; then
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5342 $as_echo "$ac_ct_OBJDUMP" >&6; }
5343 else
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5345 $as_echo "no" >&6; }
5348 if test "x$ac_ct_OBJDUMP" = x; then
5349 OBJDUMP="false"
5350 else
5351 case $cross_compiling:$ac_tool_warned in
5352 yes:)
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5354 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5355 ac_tool_warned=yes ;;
5356 esac
5357 OBJDUMP=$ac_ct_OBJDUMP
5359 else
5360 OBJDUMP="$ac_cv_prog_OBJDUMP"
5363 test -z "$OBJDUMP" && OBJDUMP=objdump
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5374 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5375 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5376 $as_echo_n "(cached) " >&6
5377 else
5378 lt_cv_file_magic_cmd='$MAGIC_CMD'
5379 lt_cv_file_magic_test_file=
5380 lt_cv_deplibs_check_method='unknown'
5381 # Need to set the preceding variable on all platforms that support
5382 # interlibrary dependencies.
5383 # 'none' -- dependencies not supported.
5384 # `unknown' -- same as none, but documents that we really don't know.
5385 # 'pass_all' -- all dependencies passed with no checks.
5386 # 'test_compile' -- check by making test program.
5387 # 'file_magic [[regex]]' -- check by looking for files in library path
5388 # which responds to the $file_magic_cmd with a given extended regex.
5389 # If you have `file' or equivalent on your system and you're not sure
5390 # whether `pass_all' will *always* work, you probably want this one.
5392 case $host_os in
5393 aix[4-9]*)
5394 lt_cv_deplibs_check_method=pass_all
5397 beos*)
5398 lt_cv_deplibs_check_method=pass_all
5401 bsdi[45]*)
5402 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5403 lt_cv_file_magic_cmd='/usr/bin/file -L'
5404 lt_cv_file_magic_test_file=/shlib/libc.so
5407 cygwin*)
5408 # func_win32_libid is a shell function defined in ltmain.sh
5409 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5410 lt_cv_file_magic_cmd='func_win32_libid'
5413 mingw* | pw32*)
5414 # Base MSYS/MinGW do not provide the 'file' command needed by
5415 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5416 # unless we find 'file', for example because we are cross-compiling.
5417 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5418 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5419 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5420 lt_cv_file_magic_cmd='func_win32_libid'
5421 else
5422 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5423 lt_cv_file_magic_cmd='$OBJDUMP -f'
5427 cegcc*)
5428 # use the weaker test based on 'objdump'. See mingw*.
5429 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5430 lt_cv_file_magic_cmd='$OBJDUMP -f'
5433 darwin* | rhapsody*)
5434 lt_cv_deplibs_check_method=pass_all
5437 freebsd* | dragonfly*)
5438 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5439 case $host_cpu in
5440 i*86 )
5441 # Not sure whether the presence of OpenBSD here was a mistake.
5442 # Let's accept both of them until this is cleared up.
5443 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5444 lt_cv_file_magic_cmd=/usr/bin/file
5445 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5447 esac
5448 else
5449 lt_cv_deplibs_check_method=pass_all
5453 gnu*)
5454 lt_cv_deplibs_check_method=pass_all
5457 haiku*)
5458 lt_cv_deplibs_check_method=pass_all
5461 hpux10.20* | hpux11*)
5462 lt_cv_file_magic_cmd=/usr/bin/file
5463 case $host_cpu in
5464 ia64*)
5465 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5466 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5468 hppa*64*)
5469 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]'
5470 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5473 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5474 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5476 esac
5479 interix[3-9]*)
5480 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5481 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5484 irix5* | irix6* | nonstopux*)
5485 case $LD in
5486 *-32|*"-32 ") libmagic=32-bit;;
5487 *-n32|*"-n32 ") libmagic=N32;;
5488 *-64|*"-64 ") libmagic=64-bit;;
5489 *) libmagic=never-match;;
5490 esac
5491 lt_cv_deplibs_check_method=pass_all
5494 # This must be Linux ELF.
5495 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5496 lt_cv_deplibs_check_method=pass_all
5499 netbsd*)
5500 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5501 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5502 else
5503 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5507 newos6*)
5508 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5509 lt_cv_file_magic_cmd=/usr/bin/file
5510 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5513 *nto* | *qnx*)
5514 lt_cv_deplibs_check_method=pass_all
5517 openbsd*)
5518 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5519 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5520 else
5521 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5525 osf3* | osf4* | osf5*)
5526 lt_cv_deplibs_check_method=pass_all
5529 rdos*)
5530 lt_cv_deplibs_check_method=pass_all
5533 solaris*)
5534 lt_cv_deplibs_check_method=pass_all
5537 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5538 lt_cv_deplibs_check_method=pass_all
5541 sysv4 | sysv4.3*)
5542 case $host_vendor in
5543 motorola)
5544 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]'
5545 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5547 ncr)
5548 lt_cv_deplibs_check_method=pass_all
5550 sequent)
5551 lt_cv_file_magic_cmd='/bin/file'
5552 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5554 sni)
5555 lt_cv_file_magic_cmd='/bin/file'
5556 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5557 lt_cv_file_magic_test_file=/lib/libc.so
5559 siemens)
5560 lt_cv_deplibs_check_method=pass_all
5563 lt_cv_deplibs_check_method=pass_all
5565 esac
5568 tpf*)
5569 lt_cv_deplibs_check_method=pass_all
5571 esac
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5575 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5576 file_magic_cmd=$lt_cv_file_magic_cmd
5577 deplibs_check_method=$lt_cv_deplibs_check_method
5578 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5591 if test -n "$ac_tool_prefix"; then
5592 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5593 set dummy ${ac_tool_prefix}ar; ac_word=$2
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5595 $as_echo_n "checking for $ac_word... " >&6; }
5596 if test "${ac_cv_prog_AR+set}" = set; then :
5597 $as_echo_n "(cached) " >&6
5598 else
5599 if test -n "$AR"; then
5600 ac_cv_prog_AR="$AR" # Let the user override the test.
5601 else
5602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5603 for as_dir in $PATH
5605 IFS=$as_save_IFS
5606 test -z "$as_dir" && as_dir=.
5607 for ac_exec_ext in '' $ac_executable_extensions; do
5608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5609 ac_cv_prog_AR="${ac_tool_prefix}ar"
5610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5611 break 2
5613 done
5614 done
5615 IFS=$as_save_IFS
5619 AR=$ac_cv_prog_AR
5620 if test -n "$AR"; then
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5622 $as_echo "$AR" >&6; }
5623 else
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5625 $as_echo "no" >&6; }
5630 if test -z "$ac_cv_prog_AR"; then
5631 ac_ct_AR=$AR
5632 # Extract the first word of "ar", so it can be a program name with args.
5633 set dummy ar; ac_word=$2
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5635 $as_echo_n "checking for $ac_word... " >&6; }
5636 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5637 $as_echo_n "(cached) " >&6
5638 else
5639 if test -n "$ac_ct_AR"; then
5640 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5641 else
5642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5643 for as_dir in $PATH
5645 IFS=$as_save_IFS
5646 test -z "$as_dir" && as_dir=.
5647 for ac_exec_ext in '' $ac_executable_extensions; do
5648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5649 ac_cv_prog_ac_ct_AR="ar"
5650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5651 break 2
5653 done
5654 done
5655 IFS=$as_save_IFS
5659 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5660 if test -n "$ac_ct_AR"; then
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5662 $as_echo "$ac_ct_AR" >&6; }
5663 else
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5665 $as_echo "no" >&6; }
5668 if test "x$ac_ct_AR" = x; then
5669 AR="false"
5670 else
5671 case $cross_compiling:$ac_tool_warned in
5672 yes:)
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5674 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5675 ac_tool_warned=yes ;;
5676 esac
5677 AR=$ac_ct_AR
5679 else
5680 AR="$ac_cv_prog_AR"
5683 test -z "$AR" && AR=ar
5684 test -z "$AR_FLAGS" && AR_FLAGS=cru
5696 if test -n "$ac_tool_prefix"; then
5697 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5698 set dummy ${ac_tool_prefix}strip; ac_word=$2
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5700 $as_echo_n "checking for $ac_word... " >&6; }
5701 if test "${ac_cv_prog_STRIP+set}" = set; then :
5702 $as_echo_n "(cached) " >&6
5703 else
5704 if test -n "$STRIP"; then
5705 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5706 else
5707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5708 for as_dir in $PATH
5710 IFS=$as_save_IFS
5711 test -z "$as_dir" && as_dir=.
5712 for ac_exec_ext in '' $ac_executable_extensions; do
5713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5714 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5716 break 2
5718 done
5719 done
5720 IFS=$as_save_IFS
5724 STRIP=$ac_cv_prog_STRIP
5725 if test -n "$STRIP"; then
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5727 $as_echo "$STRIP" >&6; }
5728 else
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5730 $as_echo "no" >&6; }
5735 if test -z "$ac_cv_prog_STRIP"; then
5736 ac_ct_STRIP=$STRIP
5737 # Extract the first word of "strip", so it can be a program name with args.
5738 set dummy strip; ac_word=$2
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5740 $as_echo_n "checking for $ac_word... " >&6; }
5741 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5742 $as_echo_n "(cached) " >&6
5743 else
5744 if test -n "$ac_ct_STRIP"; then
5745 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5746 else
5747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5748 for as_dir in $PATH
5750 IFS=$as_save_IFS
5751 test -z "$as_dir" && as_dir=.
5752 for ac_exec_ext in '' $ac_executable_extensions; do
5753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5754 ac_cv_prog_ac_ct_STRIP="strip"
5755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5756 break 2
5758 done
5759 done
5760 IFS=$as_save_IFS
5764 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5765 if test -n "$ac_ct_STRIP"; then
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5767 $as_echo "$ac_ct_STRIP" >&6; }
5768 else
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5770 $as_echo "no" >&6; }
5773 if test "x$ac_ct_STRIP" = x; then
5774 STRIP=":"
5775 else
5776 case $cross_compiling:$ac_tool_warned in
5777 yes:)
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5779 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5780 ac_tool_warned=yes ;;
5781 esac
5782 STRIP=$ac_ct_STRIP
5784 else
5785 STRIP="$ac_cv_prog_STRIP"
5788 test -z "$STRIP" && STRIP=:
5795 if test -n "$ac_tool_prefix"; then
5796 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5797 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5799 $as_echo_n "checking for $ac_word... " >&6; }
5800 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5801 $as_echo_n "(cached) " >&6
5802 else
5803 if test -n "$RANLIB"; then
5804 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5805 else
5806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5807 for as_dir in $PATH
5809 IFS=$as_save_IFS
5810 test -z "$as_dir" && as_dir=.
5811 for ac_exec_ext in '' $ac_executable_extensions; do
5812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5813 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5815 break 2
5817 done
5818 done
5819 IFS=$as_save_IFS
5823 RANLIB=$ac_cv_prog_RANLIB
5824 if test -n "$RANLIB"; then
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5826 $as_echo "$RANLIB" >&6; }
5827 else
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5829 $as_echo "no" >&6; }
5834 if test -z "$ac_cv_prog_RANLIB"; then
5835 ac_ct_RANLIB=$RANLIB
5836 # Extract the first word of "ranlib", so it can be a program name with args.
5837 set dummy ranlib; ac_word=$2
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5839 $as_echo_n "checking for $ac_word... " >&6; }
5840 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5841 $as_echo_n "(cached) " >&6
5842 else
5843 if test -n "$ac_ct_RANLIB"; then
5844 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5845 else
5846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5847 for as_dir in $PATH
5849 IFS=$as_save_IFS
5850 test -z "$as_dir" && as_dir=.
5851 for ac_exec_ext in '' $ac_executable_extensions; do
5852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5853 ac_cv_prog_ac_ct_RANLIB="ranlib"
5854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5855 break 2
5857 done
5858 done
5859 IFS=$as_save_IFS
5863 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5864 if test -n "$ac_ct_RANLIB"; then
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5866 $as_echo "$ac_ct_RANLIB" >&6; }
5867 else
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5869 $as_echo "no" >&6; }
5872 if test "x$ac_ct_RANLIB" = x; then
5873 RANLIB=":"
5874 else
5875 case $cross_compiling:$ac_tool_warned in
5876 yes:)
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5879 ac_tool_warned=yes ;;
5880 esac
5881 RANLIB=$ac_ct_RANLIB
5883 else
5884 RANLIB="$ac_cv_prog_RANLIB"
5887 test -z "$RANLIB" && RANLIB=:
5894 # Determine commands to create old-style static archives.
5895 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5896 old_postinstall_cmds='chmod 644 $oldlib'
5897 old_postuninstall_cmds=
5899 if test -n "$RANLIB"; then
5900 case $host_os in
5901 openbsd*)
5902 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5905 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5907 esac
5908 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5911 case $host_os in
5912 darwin*)
5913 lock_old_archive_extraction=yes ;;
5915 lock_old_archive_extraction=no ;;
5916 esac
5956 # If no C compiler was specified, use CC.
5957 LTCC=${LTCC-"$CC"}
5959 # If no C compiler flags were specified, use CFLAGS.
5960 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5962 # Allow CC to be a program name with arguments.
5963 compiler=$CC
5966 # Check for command to grab the raw symbol name followed by C symbol from nm.
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5968 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5969 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5970 $as_echo_n "(cached) " >&6
5971 else
5973 # These are sane defaults that work on at least a few old systems.
5974 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5976 # Character class describing NM global symbol codes.
5977 symcode='[BCDEGRST]'
5979 # Regexp to match symbols that can be accessed directly from C.
5980 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5982 # Define system-specific variables.
5983 case $host_os in
5984 aix*)
5985 symcode='[BCDT]'
5987 cygwin* | mingw* | pw32* | cegcc*)
5988 symcode='[ABCDGISTW]'
5990 hpux*)
5991 if test "$host_cpu" = ia64; then
5992 symcode='[ABCDEGRST]'
5995 irix* | nonstopux*)
5996 symcode='[BCDEGRST]'
5998 osf*)
5999 symcode='[BCDEGQRST]'
6001 solaris*)
6002 symcode='[BDRT]'
6004 sco3.2v5*)
6005 symcode='[DT]'
6007 sysv4.2uw2*)
6008 symcode='[DT]'
6010 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6011 symcode='[ABDT]'
6013 sysv4)
6014 symcode='[DFNSTU]'
6016 esac
6018 # If we're using GNU nm, then use its standard symbol codes.
6019 case `$NM -V 2>&1` in
6020 *GNU* | *'with BFD'*)
6021 symcode='[ABCDGIRSTW]' ;;
6022 esac
6024 # Transform an extracted symbol line into a proper C declaration.
6025 # Some systems (esp. on ia64) link data and code symbols differently,
6026 # so use this general approach.
6027 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6029 # Transform an extracted symbol line into symbol name and symbol address
6030 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6031 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'"
6033 # Handle CRLF in mingw tool chain
6034 opt_cr=
6035 case $build_os in
6036 mingw*)
6037 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6039 esac
6041 # Try without a prefix underscore, then with it.
6042 for ac_symprfx in "" "_"; do
6044 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6045 symxfrm="\\1 $ac_symprfx\\2 \\2"
6047 # Write the raw and C identifiers.
6048 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6049 # Fake it for dumpbin and say T for any non-static function
6050 # and D for any global variable.
6051 # Also find C++ and __fastcall symbols from MSVC++,
6052 # which start with @ or ?.
6053 lt_cv_sys_global_symbol_pipe="$AWK '"\
6054 " {last_section=section; section=\$ 3};"\
6055 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6056 " \$ 0!~/External *\|/{next};"\
6057 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6058 " {if(hide[section]) next};"\
6059 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6060 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6061 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6062 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6063 " ' prfx=^$ac_symprfx"
6064 else
6065 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6068 # Check to see that the pipe works correctly.
6069 pipe_works=no
6071 rm -f conftest*
6072 cat > conftest.$ac_ext <<_LT_EOF
6073 #ifdef __cplusplus
6074 extern "C" {
6075 #endif
6076 char nm_test_var;
6077 void nm_test_func(void);
6078 void nm_test_func(void){}
6079 #ifdef __cplusplus
6081 #endif
6082 int main(){nm_test_var='a';nm_test_func();return(0);}
6083 _LT_EOF
6085 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6086 (eval $ac_compile) 2>&5
6087 ac_status=$?
6088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6089 test $ac_status = 0; }; then
6090 # Now try to grab the symbols.
6091 nlist=conftest.nm
6092 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6093 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6094 ac_status=$?
6095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6096 test $ac_status = 0; } && test -s "$nlist"; then
6097 # Try sorting and uniquifying the output.
6098 if sort "$nlist" | uniq > "$nlist"T; then
6099 mv -f "$nlist"T "$nlist"
6100 else
6101 rm -f "$nlist"T
6104 # Make sure that we snagged all the symbols we need.
6105 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6106 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6107 cat <<_LT_EOF > conftest.$ac_ext
6108 #ifdef __cplusplus
6109 extern "C" {
6110 #endif
6112 _LT_EOF
6113 # Now generate the symbol file.
6114 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6116 cat <<_LT_EOF >> conftest.$ac_ext
6118 /* The mapping between symbol names and symbols. */
6119 const struct {
6120 const char *name;
6121 void *address;
6123 lt__PROGRAM__LTX_preloaded_symbols[] =
6125 { "@PROGRAM@", (void *) 0 },
6126 _LT_EOF
6127 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6128 cat <<\_LT_EOF >> conftest.$ac_ext
6129 {0, (void *) 0}
6132 /* This works around a problem in FreeBSD linker */
6133 #ifdef FREEBSD_WORKAROUND
6134 static const void *lt_preloaded_setup() {
6135 return lt__PROGRAM__LTX_preloaded_symbols;
6137 #endif
6139 #ifdef __cplusplus
6141 #endif
6142 _LT_EOF
6143 # Now try linking the two files.
6144 mv conftest.$ac_objext conftstm.$ac_objext
6145 lt_save_LIBS="$LIBS"
6146 lt_save_CFLAGS="$CFLAGS"
6147 LIBS="conftstm.$ac_objext"
6148 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6149 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6150 (eval $ac_link) 2>&5
6151 ac_status=$?
6152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6153 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6154 pipe_works=yes
6156 LIBS="$lt_save_LIBS"
6157 CFLAGS="$lt_save_CFLAGS"
6158 else
6159 echo "cannot find nm_test_func in $nlist" >&5
6161 else
6162 echo "cannot find nm_test_var in $nlist" >&5
6164 else
6165 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6167 else
6168 echo "$progname: failed program was:" >&5
6169 cat conftest.$ac_ext >&5
6171 rm -rf conftest* conftst*
6173 # Do not use the global_symbol_pipe unless it works.
6174 if test "$pipe_works" = yes; then
6175 break
6176 else
6177 lt_cv_sys_global_symbol_pipe=
6179 done
6183 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6184 lt_cv_sys_global_symbol_to_cdecl=
6186 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6188 $as_echo "failed" >&6; }
6189 else
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6191 $as_echo "ok" >&6; }
6216 # Check whether --enable-libtool-lock was given.
6217 if test "${enable_libtool_lock+set}" = set; then :
6218 enableval=$enable_libtool_lock;
6221 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6223 # Some flags need to be propagated to the compiler or linker for good
6224 # libtool support.
6225 case $host in
6226 ia64-*-hpux*)
6227 # Find out which ABI we are using.
6228 echo 'int i;' > conftest.$ac_ext
6229 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6230 (eval $ac_compile) 2>&5
6231 ac_status=$?
6232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6233 test $ac_status = 0; }; then
6234 case `/usr/bin/file conftest.$ac_objext` in
6235 *ELF-32*)
6236 HPUX_IA64_MODE="32"
6238 *ELF-64*)
6239 HPUX_IA64_MODE="64"
6241 esac
6243 rm -rf conftest*
6245 *-*-irix6*)
6246 # Find out which ABI we are using.
6247 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6248 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6249 (eval $ac_compile) 2>&5
6250 ac_status=$?
6251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6252 test $ac_status = 0; }; then
6253 if test "$lt_cv_prog_gnu_ld" = yes; then
6254 case `/usr/bin/file conftest.$ac_objext` in
6255 *32-bit*)
6256 LD="${LD-ld} -melf32bsmip"
6258 *N32*)
6259 LD="${LD-ld} -melf32bmipn32"
6261 *64-bit*)
6262 LD="${LD-ld} -melf64bmip"
6264 esac
6265 else
6266 case `/usr/bin/file conftest.$ac_objext` in
6267 *32-bit*)
6268 LD="${LD-ld} -32"
6270 *N32*)
6271 LD="${LD-ld} -n32"
6273 *64-bit*)
6274 LD="${LD-ld} -64"
6276 esac
6279 rm -rf conftest*
6282 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6283 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6284 # Find out which ABI we are using.
6285 echo 'int i;' > conftest.$ac_ext
6286 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6287 (eval $ac_compile) 2>&5
6288 ac_status=$?
6289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6290 test $ac_status = 0; }; then
6291 case `/usr/bin/file conftest.o` in
6292 *32-bit*)
6293 case $host in
6294 x86_64-*kfreebsd*-gnu)
6295 LD="${LD-ld} -m elf_i386_fbsd"
6297 x86_64-*linux*)
6298 LD="${LD-ld} -m elf_i386"
6300 ppc64-*linux*|powerpc64-*linux*)
6301 LD="${LD-ld} -m elf32ppclinux"
6303 s390x-*linux*)
6304 LD="${LD-ld} -m elf_s390"
6306 sparc64-*linux*)
6307 LD="${LD-ld} -m elf32_sparc"
6309 esac
6311 *64-bit*)
6312 case $host in
6313 x86_64-*kfreebsd*-gnu)
6314 LD="${LD-ld} -m elf_x86_64_fbsd"
6316 x86_64-*linux*)
6317 LD="${LD-ld} -m elf_x86_64"
6319 ppc*-*linux*|powerpc*-*linux*)
6320 LD="${LD-ld} -m elf64ppc"
6322 s390*-*linux*|s390*-*tpf*)
6323 LD="${LD-ld} -m elf64_s390"
6325 sparc*-*linux*)
6326 LD="${LD-ld} -m elf64_sparc"
6328 esac
6330 esac
6332 rm -rf conftest*
6335 *-*-sco3.2v5*)
6336 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6337 SAVE_CFLAGS="$CFLAGS"
6338 CFLAGS="$CFLAGS -belf"
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6340 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6341 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6342 $as_echo_n "(cached) " >&6
6343 else
6344 ac_ext=c
6345 ac_cpp='$CPP $CPPFLAGS'
6346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6351 /* end confdefs.h. */
6354 main ()
6358 return 0;
6360 _ACEOF
6361 if ac_fn_c_try_link "$LINENO"; then :
6362 lt_cv_cc_needs_belf=yes
6363 else
6364 lt_cv_cc_needs_belf=no
6366 rm -f core conftest.err conftest.$ac_objext \
6367 conftest$ac_exeext conftest.$ac_ext
6368 ac_ext=c
6369 ac_cpp='$CPP $CPPFLAGS'
6370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6376 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6377 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6378 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6379 CFLAGS="$SAVE_CFLAGS"
6382 sparc*-*solaris*)
6383 # Find out which ABI we are using.
6384 echo 'int i;' > conftest.$ac_ext
6385 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6386 (eval $ac_compile) 2>&5
6387 ac_status=$?
6388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6389 test $ac_status = 0; }; then
6390 case `/usr/bin/file conftest.o` in
6391 *64-bit*)
6392 case $lt_cv_prog_gnu_ld in
6393 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6395 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6396 LD="${LD-ld} -64"
6399 esac
6401 esac
6403 rm -rf conftest*
6405 esac
6407 need_locks="$enable_libtool_lock"
6410 case $host_os in
6411 rhapsody* | darwin*)
6412 if test -n "$ac_tool_prefix"; then
6413 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6414 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6416 $as_echo_n "checking for $ac_word... " >&6; }
6417 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6418 $as_echo_n "(cached) " >&6
6419 else
6420 if test -n "$DSYMUTIL"; then
6421 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6422 else
6423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6424 for as_dir in $PATH
6426 IFS=$as_save_IFS
6427 test -z "$as_dir" && as_dir=.
6428 for ac_exec_ext in '' $ac_executable_extensions; do
6429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6430 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6432 break 2
6434 done
6435 done
6436 IFS=$as_save_IFS
6440 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6441 if test -n "$DSYMUTIL"; then
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6443 $as_echo "$DSYMUTIL" >&6; }
6444 else
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6446 $as_echo "no" >&6; }
6451 if test -z "$ac_cv_prog_DSYMUTIL"; then
6452 ac_ct_DSYMUTIL=$DSYMUTIL
6453 # Extract the first word of "dsymutil", so it can be a program name with args.
6454 set dummy dsymutil; ac_word=$2
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6456 $as_echo_n "checking for $ac_word... " >&6; }
6457 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6458 $as_echo_n "(cached) " >&6
6459 else
6460 if test -n "$ac_ct_DSYMUTIL"; then
6461 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6462 else
6463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6464 for as_dir in $PATH
6466 IFS=$as_save_IFS
6467 test -z "$as_dir" && as_dir=.
6468 for ac_exec_ext in '' $ac_executable_extensions; do
6469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6470 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6472 break 2
6474 done
6475 done
6476 IFS=$as_save_IFS
6480 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6481 if test -n "$ac_ct_DSYMUTIL"; then
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6483 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6484 else
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6486 $as_echo "no" >&6; }
6489 if test "x$ac_ct_DSYMUTIL" = x; then
6490 DSYMUTIL=":"
6491 else
6492 case $cross_compiling:$ac_tool_warned in
6493 yes:)
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6496 ac_tool_warned=yes ;;
6497 esac
6498 DSYMUTIL=$ac_ct_DSYMUTIL
6500 else
6501 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6504 if test -n "$ac_tool_prefix"; then
6505 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6506 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6508 $as_echo_n "checking for $ac_word... " >&6; }
6509 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6510 $as_echo_n "(cached) " >&6
6511 else
6512 if test -n "$NMEDIT"; then
6513 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6514 else
6515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6516 for as_dir in $PATH
6518 IFS=$as_save_IFS
6519 test -z "$as_dir" && as_dir=.
6520 for ac_exec_ext in '' $ac_executable_extensions; do
6521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6522 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6524 break 2
6526 done
6527 done
6528 IFS=$as_save_IFS
6532 NMEDIT=$ac_cv_prog_NMEDIT
6533 if test -n "$NMEDIT"; then
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6535 $as_echo "$NMEDIT" >&6; }
6536 else
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6538 $as_echo "no" >&6; }
6543 if test -z "$ac_cv_prog_NMEDIT"; then
6544 ac_ct_NMEDIT=$NMEDIT
6545 # Extract the first word of "nmedit", so it can be a program name with args.
6546 set dummy nmedit; ac_word=$2
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6548 $as_echo_n "checking for $ac_word... " >&6; }
6549 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6550 $as_echo_n "(cached) " >&6
6551 else
6552 if test -n "$ac_ct_NMEDIT"; then
6553 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6554 else
6555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6556 for as_dir in $PATH
6558 IFS=$as_save_IFS
6559 test -z "$as_dir" && as_dir=.
6560 for ac_exec_ext in '' $ac_executable_extensions; do
6561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6562 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6564 break 2
6566 done
6567 done
6568 IFS=$as_save_IFS
6572 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6573 if test -n "$ac_ct_NMEDIT"; then
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6575 $as_echo "$ac_ct_NMEDIT" >&6; }
6576 else
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6578 $as_echo "no" >&6; }
6581 if test "x$ac_ct_NMEDIT" = x; then
6582 NMEDIT=":"
6583 else
6584 case $cross_compiling:$ac_tool_warned in
6585 yes:)
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6588 ac_tool_warned=yes ;;
6589 esac
6590 NMEDIT=$ac_ct_NMEDIT
6592 else
6593 NMEDIT="$ac_cv_prog_NMEDIT"
6596 if test -n "$ac_tool_prefix"; then
6597 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6598 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6600 $as_echo_n "checking for $ac_word... " >&6; }
6601 if test "${ac_cv_prog_LIPO+set}" = set; then :
6602 $as_echo_n "(cached) " >&6
6603 else
6604 if test -n "$LIPO"; then
6605 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6606 else
6607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6608 for as_dir in $PATH
6610 IFS=$as_save_IFS
6611 test -z "$as_dir" && as_dir=.
6612 for ac_exec_ext in '' $ac_executable_extensions; do
6613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6614 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6616 break 2
6618 done
6619 done
6620 IFS=$as_save_IFS
6624 LIPO=$ac_cv_prog_LIPO
6625 if test -n "$LIPO"; then
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6627 $as_echo "$LIPO" >&6; }
6628 else
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6630 $as_echo "no" >&6; }
6635 if test -z "$ac_cv_prog_LIPO"; then
6636 ac_ct_LIPO=$LIPO
6637 # Extract the first word of "lipo", so it can be a program name with args.
6638 set dummy lipo; ac_word=$2
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6640 $as_echo_n "checking for $ac_word... " >&6; }
6641 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6642 $as_echo_n "(cached) " >&6
6643 else
6644 if test -n "$ac_ct_LIPO"; then
6645 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6646 else
6647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6648 for as_dir in $PATH
6650 IFS=$as_save_IFS
6651 test -z "$as_dir" && as_dir=.
6652 for ac_exec_ext in '' $ac_executable_extensions; do
6653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6654 ac_cv_prog_ac_ct_LIPO="lipo"
6655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6656 break 2
6658 done
6659 done
6660 IFS=$as_save_IFS
6664 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6665 if test -n "$ac_ct_LIPO"; then
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6667 $as_echo "$ac_ct_LIPO" >&6; }
6668 else
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6670 $as_echo "no" >&6; }
6673 if test "x$ac_ct_LIPO" = x; then
6674 LIPO=":"
6675 else
6676 case $cross_compiling:$ac_tool_warned in
6677 yes:)
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6680 ac_tool_warned=yes ;;
6681 esac
6682 LIPO=$ac_ct_LIPO
6684 else
6685 LIPO="$ac_cv_prog_LIPO"
6688 if test -n "$ac_tool_prefix"; then
6689 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6690 set dummy ${ac_tool_prefix}otool; ac_word=$2
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6692 $as_echo_n "checking for $ac_word... " >&6; }
6693 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6694 $as_echo_n "(cached) " >&6
6695 else
6696 if test -n "$OTOOL"; then
6697 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6698 else
6699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6700 for as_dir in $PATH
6702 IFS=$as_save_IFS
6703 test -z "$as_dir" && as_dir=.
6704 for ac_exec_ext in '' $ac_executable_extensions; do
6705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6706 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6708 break 2
6710 done
6711 done
6712 IFS=$as_save_IFS
6716 OTOOL=$ac_cv_prog_OTOOL
6717 if test -n "$OTOOL"; then
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6719 $as_echo "$OTOOL" >&6; }
6720 else
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6722 $as_echo "no" >&6; }
6727 if test -z "$ac_cv_prog_OTOOL"; then
6728 ac_ct_OTOOL=$OTOOL
6729 # Extract the first word of "otool", so it can be a program name with args.
6730 set dummy otool; ac_word=$2
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6732 $as_echo_n "checking for $ac_word... " >&6; }
6733 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6734 $as_echo_n "(cached) " >&6
6735 else
6736 if test -n "$ac_ct_OTOOL"; then
6737 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6738 else
6739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740 for as_dir in $PATH
6742 IFS=$as_save_IFS
6743 test -z "$as_dir" && as_dir=.
6744 for ac_exec_ext in '' $ac_executable_extensions; do
6745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6746 ac_cv_prog_ac_ct_OTOOL="otool"
6747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6748 break 2
6750 done
6751 done
6752 IFS=$as_save_IFS
6756 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6757 if test -n "$ac_ct_OTOOL"; then
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6759 $as_echo "$ac_ct_OTOOL" >&6; }
6760 else
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6762 $as_echo "no" >&6; }
6765 if test "x$ac_ct_OTOOL" = x; then
6766 OTOOL=":"
6767 else
6768 case $cross_compiling:$ac_tool_warned in
6769 yes:)
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6771 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6772 ac_tool_warned=yes ;;
6773 esac
6774 OTOOL=$ac_ct_OTOOL
6776 else
6777 OTOOL="$ac_cv_prog_OTOOL"
6780 if test -n "$ac_tool_prefix"; then
6781 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6782 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6784 $as_echo_n "checking for $ac_word... " >&6; }
6785 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6786 $as_echo_n "(cached) " >&6
6787 else
6788 if test -n "$OTOOL64"; then
6789 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6790 else
6791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6792 for as_dir in $PATH
6794 IFS=$as_save_IFS
6795 test -z "$as_dir" && as_dir=.
6796 for ac_exec_ext in '' $ac_executable_extensions; do
6797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6798 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6800 break 2
6802 done
6803 done
6804 IFS=$as_save_IFS
6808 OTOOL64=$ac_cv_prog_OTOOL64
6809 if test -n "$OTOOL64"; then
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6811 $as_echo "$OTOOL64" >&6; }
6812 else
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6814 $as_echo "no" >&6; }
6819 if test -z "$ac_cv_prog_OTOOL64"; then
6820 ac_ct_OTOOL64=$OTOOL64
6821 # Extract the first word of "otool64", so it can be a program name with args.
6822 set dummy otool64; ac_word=$2
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6824 $as_echo_n "checking for $ac_word... " >&6; }
6825 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6826 $as_echo_n "(cached) " >&6
6827 else
6828 if test -n "$ac_ct_OTOOL64"; then
6829 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6830 else
6831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6832 for as_dir in $PATH
6834 IFS=$as_save_IFS
6835 test -z "$as_dir" && as_dir=.
6836 for ac_exec_ext in '' $ac_executable_extensions; do
6837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6838 ac_cv_prog_ac_ct_OTOOL64="otool64"
6839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6840 break 2
6842 done
6843 done
6844 IFS=$as_save_IFS
6848 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6849 if test -n "$ac_ct_OTOOL64"; then
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6851 $as_echo "$ac_ct_OTOOL64" >&6; }
6852 else
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6854 $as_echo "no" >&6; }
6857 if test "x$ac_ct_OTOOL64" = x; then
6858 OTOOL64=":"
6859 else
6860 case $cross_compiling:$ac_tool_warned in
6861 yes:)
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6864 ac_tool_warned=yes ;;
6865 esac
6866 OTOOL64=$ac_ct_OTOOL64
6868 else
6869 OTOOL64="$ac_cv_prog_OTOOL64"
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6899 $as_echo_n "checking for -single_module linker flag... " >&6; }
6900 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6901 $as_echo_n "(cached) " >&6
6902 else
6903 lt_cv_apple_cc_single_mod=no
6904 if test -z "${LT_MULTI_MODULE}"; then
6905 # By default we will add the -single_module flag. You can override
6906 # by either setting the environment variable LT_MULTI_MODULE
6907 # non-empty at configure time, or by adding -multi_module to the
6908 # link flags.
6909 rm -rf libconftest.dylib*
6910 echo "int foo(void){return 1;}" > conftest.c
6911 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6912 -dynamiclib -Wl,-single_module conftest.c" >&5
6913 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6914 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6915 _lt_result=$?
6916 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6917 lt_cv_apple_cc_single_mod=yes
6918 else
6919 cat conftest.err >&5
6921 rm -rf libconftest.dylib*
6922 rm -f conftest.*
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6926 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6928 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6929 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6930 $as_echo_n "(cached) " >&6
6931 else
6932 lt_cv_ld_exported_symbols_list=no
6933 save_LDFLAGS=$LDFLAGS
6934 echo "_main" > conftest.sym
6935 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6937 /* end confdefs.h. */
6940 main ()
6944 return 0;
6946 _ACEOF
6947 if ac_fn_c_try_link "$LINENO"; then :
6948 lt_cv_ld_exported_symbols_list=yes
6949 else
6950 lt_cv_ld_exported_symbols_list=no
6952 rm -f core conftest.err conftest.$ac_objext \
6953 conftest$ac_exeext conftest.$ac_ext
6954 LDFLAGS="$save_LDFLAGS"
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6958 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6960 $as_echo_n "checking for -force_load linker flag... " >&6; }
6961 if test "${lt_cv_ld_force_load+set}" = set; then :
6962 $as_echo_n "(cached) " >&6
6963 else
6964 lt_cv_ld_force_load=no
6965 cat > conftest.c << _LT_EOF
6966 int forced_loaded() { return 2;}
6967 _LT_EOF
6968 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6969 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6970 echo "$AR cru libconftest.a conftest.o" >&5
6971 $AR cru libconftest.a conftest.o 2>&5
6972 cat > conftest.c << _LT_EOF
6973 int main() { return 0;}
6974 _LT_EOF
6975 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6976 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6977 _lt_result=$?
6978 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6979 lt_cv_ld_force_load=yes
6980 else
6981 cat conftest.err >&5
6983 rm -f conftest.err libconftest.a conftest conftest.c
6984 rm -rf conftest.dSYM
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6988 $as_echo "$lt_cv_ld_force_load" >&6; }
6989 case $host_os in
6990 rhapsody* | darwin1.[012])
6991 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6992 darwin1.*)
6993 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6994 darwin*) # darwin 5.x on
6995 # if running on 10.5 or later, the deployment target defaults
6996 # to the OS version, if on x86, and 10.4, the deployment
6997 # target defaults to 10.4. Don't you love it?
6998 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6999 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7000 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7001 10.[012]*)
7002 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7003 10.*)
7004 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7005 esac
7007 esac
7008 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7009 _lt_dar_single_mod='$single_module'
7011 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7012 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7013 else
7014 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7016 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7017 _lt_dsymutil='~$DSYMUTIL $lib || :'
7018 else
7019 _lt_dsymutil=
7022 esac
7024 ac_ext=c
7025 ac_cpp='$CPP $CPPFLAGS'
7026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7030 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7031 # On Suns, sometimes $CPP names a directory.
7032 if test -n "$CPP" && test -d "$CPP"; then
7033 CPP=
7035 if test -z "$CPP"; then
7036 if test "${ac_cv_prog_CPP+set}" = set; then :
7037 $as_echo_n "(cached) " >&6
7038 else
7039 # Double quotes because CPP needs to be expanded
7040 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7042 ac_preproc_ok=false
7043 for ac_c_preproc_warn_flag in '' yes
7045 # Use a header file that comes with gcc, so configuring glibc
7046 # with a fresh cross-compiler works.
7047 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7048 # <limits.h> exists even on freestanding compilers.
7049 # On the NeXT, cc -E runs the code through the compiler's parser,
7050 # not just through cpp. "Syntax error" is here to catch this case.
7051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7052 /* end confdefs.h. */
7053 #ifdef __STDC__
7054 # include <limits.h>
7055 #else
7056 # include <assert.h>
7057 #endif
7058 Syntax error
7059 _ACEOF
7060 if ac_fn_c_try_cpp "$LINENO"; then :
7062 else
7063 # Broken: fails on valid input.
7064 continue
7066 rm -f conftest.err conftest.$ac_ext
7068 # OK, works on sane cases. Now check whether nonexistent headers
7069 # can be detected and how.
7070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7071 /* end confdefs.h. */
7072 #include <ac_nonexistent.h>
7073 _ACEOF
7074 if ac_fn_c_try_cpp "$LINENO"; then :
7075 # Broken: success on invalid input.
7076 continue
7077 else
7078 # Passes both tests.
7079 ac_preproc_ok=:
7080 break
7082 rm -f conftest.err conftest.$ac_ext
7084 done
7085 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7086 rm -f conftest.err conftest.$ac_ext
7087 if $ac_preproc_ok; then :
7088 break
7091 done
7092 ac_cv_prog_CPP=$CPP
7095 CPP=$ac_cv_prog_CPP
7096 else
7097 ac_cv_prog_CPP=$CPP
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7100 $as_echo "$CPP" >&6; }
7101 ac_preproc_ok=false
7102 for ac_c_preproc_warn_flag in '' yes
7104 # Use a header file that comes with gcc, so configuring glibc
7105 # with a fresh cross-compiler works.
7106 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7107 # <limits.h> exists even on freestanding compilers.
7108 # On the NeXT, cc -E runs the code through the compiler's parser,
7109 # not just through cpp. "Syntax error" is here to catch this case.
7110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7111 /* end confdefs.h. */
7112 #ifdef __STDC__
7113 # include <limits.h>
7114 #else
7115 # include <assert.h>
7116 #endif
7117 Syntax error
7118 _ACEOF
7119 if ac_fn_c_try_cpp "$LINENO"; then :
7121 else
7122 # Broken: fails on valid input.
7123 continue
7125 rm -f conftest.err conftest.$ac_ext
7127 # OK, works on sane cases. Now check whether nonexistent headers
7128 # can be detected and how.
7129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7130 /* end confdefs.h. */
7131 #include <ac_nonexistent.h>
7132 _ACEOF
7133 if ac_fn_c_try_cpp "$LINENO"; then :
7134 # Broken: success on invalid input.
7135 continue
7136 else
7137 # Passes both tests.
7138 ac_preproc_ok=:
7139 break
7141 rm -f conftest.err conftest.$ac_ext
7143 done
7144 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7145 rm -f conftest.err conftest.$ac_ext
7146 if $ac_preproc_ok; then :
7148 else
7149 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7150 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7151 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7152 See \`config.log' for more details." "$LINENO" 5; }
7155 ac_ext=c
7156 ac_cpp='$CPP $CPPFLAGS'
7157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7163 $as_echo_n "checking for ANSI C header files... " >&6; }
7164 if test "${ac_cv_header_stdc+set}" = set; then :
7165 $as_echo_n "(cached) " >&6
7166 else
7167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7168 /* end confdefs.h. */
7169 #include <stdlib.h>
7170 #include <stdarg.h>
7171 #include <string.h>
7172 #include <float.h>
7175 main ()
7179 return 0;
7181 _ACEOF
7182 if ac_fn_c_try_compile "$LINENO"; then :
7183 ac_cv_header_stdc=yes
7184 else
7185 ac_cv_header_stdc=no
7187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7189 if test $ac_cv_header_stdc = yes; then
7190 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7192 /* end confdefs.h. */
7193 #include <string.h>
7195 _ACEOF
7196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7197 $EGREP "memchr" >/dev/null 2>&1; then :
7199 else
7200 ac_cv_header_stdc=no
7202 rm -f conftest*
7206 if test $ac_cv_header_stdc = yes; then
7207 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7209 /* end confdefs.h. */
7210 #include <stdlib.h>
7212 _ACEOF
7213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7214 $EGREP "free" >/dev/null 2>&1; then :
7216 else
7217 ac_cv_header_stdc=no
7219 rm -f conftest*
7223 if test $ac_cv_header_stdc = yes; then
7224 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7225 if test "$cross_compiling" = yes; then :
7227 else
7228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7229 /* end confdefs.h. */
7230 #include <ctype.h>
7231 #include <stdlib.h>
7232 #if ((' ' & 0x0FF) == 0x020)
7233 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7234 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7235 #else
7236 # define ISLOWER(c) \
7237 (('a' <= (c) && (c) <= 'i') \
7238 || ('j' <= (c) && (c) <= 'r') \
7239 || ('s' <= (c) && (c) <= 'z'))
7240 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7241 #endif
7243 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7245 main ()
7247 int i;
7248 for (i = 0; i < 256; i++)
7249 if (XOR (islower (i), ISLOWER (i))
7250 || toupper (i) != TOUPPER (i))
7251 return 2;
7252 return 0;
7254 _ACEOF
7255 if ac_fn_c_try_run "$LINENO"; then :
7257 else
7258 ac_cv_header_stdc=no
7260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7261 conftest.$ac_objext conftest.beam conftest.$ac_ext
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7267 $as_echo "$ac_cv_header_stdc" >&6; }
7268 if test $ac_cv_header_stdc = yes; then
7270 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7274 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7275 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7276 inttypes.h stdint.h unistd.h
7277 do :
7278 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7279 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7281 eval as_val=\$$as_ac_Header
7282 if test "x$as_val" = x""yes; then :
7283 cat >>confdefs.h <<_ACEOF
7284 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7285 _ACEOF
7289 done
7292 for ac_header in dlfcn.h
7293 do :
7294 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7296 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7297 cat >>confdefs.h <<_ACEOF
7298 #define HAVE_DLFCN_H 1
7299 _ACEOF
7303 done
7305 if test -n "$ac_tool_prefix"; then
7306 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7307 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7309 $as_echo_n "checking for $ac_word... " >&6; }
7310 if test "${ac_cv_prog_GOC+set}" = set; then :
7311 $as_echo_n "(cached) " >&6
7312 else
7313 if test -n "$GOC"; then
7314 ac_cv_prog_GOC="$GOC" # Let the user override the test.
7315 else
7316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317 for as_dir in $PATH
7319 IFS=$as_save_IFS
7320 test -z "$as_dir" && as_dir=.
7321 for ac_exec_ext in '' $ac_executable_extensions; do
7322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7323 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7325 break 2
7327 done
7328 done
7329 IFS=$as_save_IFS
7333 GOC=$ac_cv_prog_GOC
7334 if test -n "$GOC"; then
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7336 $as_echo "$GOC" >&6; }
7337 else
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7339 $as_echo "no" >&6; }
7344 if test -z "$ac_cv_prog_GOC"; then
7345 ac_ct_GOC=$GOC
7346 # Extract the first word of "gccgo", so it can be a program name with args.
7347 set dummy gccgo; ac_word=$2
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7349 $as_echo_n "checking for $ac_word... " >&6; }
7350 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
7351 $as_echo_n "(cached) " >&6
7352 else
7353 if test -n "$ac_ct_GOC"; then
7354 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7355 else
7356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357 for as_dir in $PATH
7359 IFS=$as_save_IFS
7360 test -z "$as_dir" && as_dir=.
7361 for ac_exec_ext in '' $ac_executable_extensions; do
7362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7363 ac_cv_prog_ac_ct_GOC="gccgo"
7364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7365 break 2
7367 done
7368 done
7369 IFS=$as_save_IFS
7373 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7374 if test -n "$ac_ct_GOC"; then
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7376 $as_echo "$ac_ct_GOC" >&6; }
7377 else
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7379 $as_echo "no" >&6; }
7382 if test "x$ac_ct_GOC" = x; then
7383 GOC=""
7384 else
7385 case $cross_compiling:$ac_tool_warned in
7386 yes:)
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7388 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7389 ac_tool_warned=yes ;;
7390 esac
7391 GOC=$ac_ct_GOC
7393 else
7394 GOC="$ac_cv_prog_GOC"
7402 # Set options
7407 enable_win32_dll=no
7410 # Check whether --enable-shared was given.
7411 if test "${enable_shared+set}" = set; then :
7412 enableval=$enable_shared; p=${PACKAGE-default}
7413 case $enableval in
7414 yes) enable_shared=yes ;;
7415 no) enable_shared=no ;;
7417 enable_shared=no
7418 # Look at the argument we got. We use all the common list separators.
7419 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7420 for pkg in $enableval; do
7421 IFS="$lt_save_ifs"
7422 if test "X$pkg" = "X$p"; then
7423 enable_shared=yes
7425 done
7426 IFS="$lt_save_ifs"
7428 esac
7429 else
7430 enable_shared=yes
7441 # Check whether --enable-static was given.
7442 if test "${enable_static+set}" = set; then :
7443 enableval=$enable_static; p=${PACKAGE-default}
7444 case $enableval in
7445 yes) enable_static=yes ;;
7446 no) enable_static=no ;;
7448 enable_static=no
7449 # Look at the argument we got. We use all the common list separators.
7450 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7451 for pkg in $enableval; do
7452 IFS="$lt_save_ifs"
7453 if test "X$pkg" = "X$p"; then
7454 enable_static=yes
7456 done
7457 IFS="$lt_save_ifs"
7459 esac
7460 else
7461 enable_static=yes
7473 # Check whether --with-pic was given.
7474 if test "${with_pic+set}" = set; then :
7475 withval=$with_pic; pic_mode="$withval"
7476 else
7477 pic_mode=default
7481 test -z "$pic_mode" && pic_mode=default
7489 # Check whether --enable-fast-install was given.
7490 if test "${enable_fast_install+set}" = set; then :
7491 enableval=$enable_fast_install; p=${PACKAGE-default}
7492 case $enableval in
7493 yes) enable_fast_install=yes ;;
7494 no) enable_fast_install=no ;;
7496 enable_fast_install=no
7497 # Look at the argument we got. We use all the common list separators.
7498 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7499 for pkg in $enableval; do
7500 IFS="$lt_save_ifs"
7501 if test "X$pkg" = "X$p"; then
7502 enable_fast_install=yes
7504 done
7505 IFS="$lt_save_ifs"
7507 esac
7508 else
7509 enable_fast_install=yes
7522 # This can be used to rebuild libtool when needed
7523 LIBTOOL_DEPS="$ltmain"
7525 # Always use our own libtool.
7526 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7553 test -z "$LN_S" && LN_S="ln -s"
7568 if test -n "${ZSH_VERSION+set}" ; then
7569 setopt NO_GLOB_SUBST
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7573 $as_echo_n "checking for objdir... " >&6; }
7574 if test "${lt_cv_objdir+set}" = set; then :
7575 $as_echo_n "(cached) " >&6
7576 else
7577 rm -f .libs 2>/dev/null
7578 mkdir .libs 2>/dev/null
7579 if test -d .libs; then
7580 lt_cv_objdir=.libs
7581 else
7582 # MS-DOS does not allow filenames that begin with a dot.
7583 lt_cv_objdir=_libs
7585 rmdir .libs 2>/dev/null
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7588 $as_echo "$lt_cv_objdir" >&6; }
7589 objdir=$lt_cv_objdir
7595 cat >>confdefs.h <<_ACEOF
7596 #define LT_OBJDIR "$lt_cv_objdir/"
7597 _ACEOF
7602 case $host_os in
7603 aix3*)
7604 # AIX sometimes has problems with the GCC collect2 program. For some
7605 # reason, if we set the COLLECT_NAMES environment variable, the problems
7606 # vanish in a puff of smoke.
7607 if test "X${COLLECT_NAMES+set}" != Xset; then
7608 COLLECT_NAMES=
7609 export COLLECT_NAMES
7612 esac
7614 # Global variables:
7615 ofile=libtool
7616 can_build_shared=yes
7618 # All known linkers require a `.a' archive for static linking (except MSVC,
7619 # which needs '.lib').
7620 libext=a
7622 with_gnu_ld="$lt_cv_prog_gnu_ld"
7624 old_CC="$CC"
7625 old_CFLAGS="$CFLAGS"
7627 # Set sane defaults for various variables
7628 test -z "$CC" && CC=cc
7629 test -z "$LTCC" && LTCC=$CC
7630 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7631 test -z "$LD" && LD=ld
7632 test -z "$ac_objext" && ac_objext=o
7634 for cc_temp in $compiler""; do
7635 case $cc_temp in
7636 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7637 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7638 \-*) ;;
7639 *) break;;
7640 esac
7641 done
7642 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7645 # Only perform the check for file, if the check method requires it
7646 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7647 case $deplibs_check_method in
7648 file_magic*)
7649 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7651 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7652 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7653 $as_echo_n "(cached) " >&6
7654 else
7655 case $MAGIC_CMD in
7656 [\\/*] | ?:[\\/]*)
7657 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7660 lt_save_MAGIC_CMD="$MAGIC_CMD"
7661 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7662 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7663 for ac_dir in $ac_dummy; do
7664 IFS="$lt_save_ifs"
7665 test -z "$ac_dir" && ac_dir=.
7666 if test -f $ac_dir/${ac_tool_prefix}file; then
7667 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7668 if test -n "$file_magic_test_file"; then
7669 case $deplibs_check_method in
7670 "file_magic "*)
7671 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7672 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7673 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7674 $EGREP "$file_magic_regex" > /dev/null; then
7676 else
7677 cat <<_LT_EOF 1>&2
7679 *** Warning: the command libtool uses to detect shared libraries,
7680 *** $file_magic_cmd, produces output that libtool cannot recognize.
7681 *** The result is that libtool may fail to recognize shared libraries
7682 *** as such. This will affect the creation of libtool libraries that
7683 *** depend on shared libraries, but programs linked with such libtool
7684 *** libraries will work regardless of this problem. Nevertheless, you
7685 *** may want to report the problem to your system manager and/or to
7686 *** bug-libtool@gnu.org
7688 _LT_EOF
7689 fi ;;
7690 esac
7692 break
7694 done
7695 IFS="$lt_save_ifs"
7696 MAGIC_CMD="$lt_save_MAGIC_CMD"
7698 esac
7701 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7702 if test -n "$MAGIC_CMD"; then
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7704 $as_echo "$MAGIC_CMD" >&6; }
7705 else
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7707 $as_echo "no" >&6; }
7714 if test -z "$lt_cv_path_MAGIC_CMD"; then
7715 if test -n "$ac_tool_prefix"; then
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7717 $as_echo_n "checking for file... " >&6; }
7718 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7719 $as_echo_n "(cached) " >&6
7720 else
7721 case $MAGIC_CMD in
7722 [\\/*] | ?:[\\/]*)
7723 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7726 lt_save_MAGIC_CMD="$MAGIC_CMD"
7727 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7728 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7729 for ac_dir in $ac_dummy; do
7730 IFS="$lt_save_ifs"
7731 test -z "$ac_dir" && ac_dir=.
7732 if test -f $ac_dir/file; then
7733 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7734 if test -n "$file_magic_test_file"; then
7735 case $deplibs_check_method in
7736 "file_magic "*)
7737 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7738 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7739 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7740 $EGREP "$file_magic_regex" > /dev/null; then
7742 else
7743 cat <<_LT_EOF 1>&2
7745 *** Warning: the command libtool uses to detect shared libraries,
7746 *** $file_magic_cmd, produces output that libtool cannot recognize.
7747 *** The result is that libtool may fail to recognize shared libraries
7748 *** as such. This will affect the creation of libtool libraries that
7749 *** depend on shared libraries, but programs linked with such libtool
7750 *** libraries will work regardless of this problem. Nevertheless, you
7751 *** may want to report the problem to your system manager and/or to
7752 *** bug-libtool@gnu.org
7754 _LT_EOF
7755 fi ;;
7756 esac
7758 break
7760 done
7761 IFS="$lt_save_ifs"
7762 MAGIC_CMD="$lt_save_MAGIC_CMD"
7764 esac
7767 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7768 if test -n "$MAGIC_CMD"; then
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7770 $as_echo "$MAGIC_CMD" >&6; }
7771 else
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7773 $as_echo "no" >&6; }
7777 else
7778 MAGIC_CMD=:
7784 esac
7786 # Use C for the default configuration in the libtool script
7788 lt_save_CC="$CC"
7789 ac_ext=c
7790 ac_cpp='$CPP $CPPFLAGS'
7791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7796 # Source file extension for C test sources.
7797 ac_ext=c
7799 # Object file extension for compiled C test sources.
7800 objext=o
7801 objext=$objext
7803 # Code to be used in simple compile tests
7804 lt_simple_compile_test_code="int some_variable = 0;"
7806 # Code to be used in simple link tests
7807 lt_simple_link_test_code='int main(){return(0);}'
7815 # If no C compiler was specified, use CC.
7816 LTCC=${LTCC-"$CC"}
7818 # If no C compiler flags were specified, use CFLAGS.
7819 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7821 # Allow CC to be a program name with arguments.
7822 compiler=$CC
7824 # Save the default compiler, since it gets overwritten when the other
7825 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7826 compiler_DEFAULT=$CC
7828 # save warnings/boilerplate of simple test code
7829 ac_outfile=conftest.$ac_objext
7830 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7831 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7832 _lt_compiler_boilerplate=`cat conftest.err`
7833 $RM conftest*
7835 ac_outfile=conftest.$ac_objext
7836 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7837 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7838 _lt_linker_boilerplate=`cat conftest.err`
7839 $RM -r conftest*
7842 ## CAVEAT EMPTOR:
7843 ## There is no encapsulation within the following macros, do not change
7844 ## the running order or otherwise move them around unless you know exactly
7845 ## what you are doing...
7846 if test -n "$compiler"; then
7848 lt_prog_compiler_no_builtin_flag=
7850 if test "$GCC" = yes; then
7851 case $cc_basename in
7852 nvcc*)
7853 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7855 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7856 esac
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7859 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7860 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7861 $as_echo_n "(cached) " >&6
7862 else
7863 lt_cv_prog_compiler_rtti_exceptions=no
7864 ac_outfile=conftest.$ac_objext
7865 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7866 lt_compiler_flag="-fno-rtti -fno-exceptions"
7867 # Insert the option either (1) after the last *FLAGS variable, or
7868 # (2) before a word containing "conftest.", or (3) at the end.
7869 # Note that $ac_compile itself does not contain backslashes and begins
7870 # with a dollar sign (not a hyphen), so the echo should work correctly.
7871 # The option is referenced via a variable to avoid confusing sed.
7872 lt_compile=`echo "$ac_compile" | $SED \
7873 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7874 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7875 -e 's:$: $lt_compiler_flag:'`
7876 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7877 (eval "$lt_compile" 2>conftest.err)
7878 ac_status=$?
7879 cat conftest.err >&5
7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 if (exit $ac_status) && test -s "$ac_outfile"; then
7882 # The compiler can only warn and ignore the option if not recognized
7883 # So say no if there are warnings other than the usual output.
7884 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7885 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7886 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7887 lt_cv_prog_compiler_rtti_exceptions=yes
7890 $RM conftest*
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7894 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7896 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7897 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7898 else
7909 lt_prog_compiler_wl=
7910 lt_prog_compiler_pic=
7911 lt_prog_compiler_static=
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7914 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7916 if test "$GCC" = yes; then
7917 lt_prog_compiler_wl='-Wl,'
7918 lt_prog_compiler_static='-static'
7920 case $host_os in
7921 aix*)
7922 # All AIX code is PIC.
7923 if test "$host_cpu" = ia64; then
7924 # AIX 5 now supports IA64 processor
7925 lt_prog_compiler_static='-Bstatic'
7929 amigaos*)
7930 case $host_cpu in
7931 powerpc)
7932 # see comment about AmigaOS4 .so support
7933 lt_prog_compiler_pic='-fPIC'
7935 m68k)
7936 # FIXME: we need at least 68020 code to build shared libraries, but
7937 # adding the `-m68020' flag to GCC prevents building anything better,
7938 # like `-m68040'.
7939 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7941 esac
7944 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7945 # PIC is the default for these OSes.
7948 mingw* | cygwin* | pw32* | os2* | cegcc*)
7949 # This hack is so that the source file can tell whether it is being
7950 # built for inclusion in a dll (and should export symbols for example).
7951 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7952 # (--disable-auto-import) libraries
7953 lt_prog_compiler_pic='-DDLL_EXPORT'
7956 darwin* | rhapsody*)
7957 # PIC is the default on this platform
7958 # Common symbols not allowed in MH_DYLIB files
7959 lt_prog_compiler_pic='-fno-common'
7962 haiku*)
7963 # PIC is the default for Haiku.
7964 # The "-static" flag exists, but is broken.
7965 lt_prog_compiler_static=
7968 hpux*)
7969 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7970 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7971 # sets the default TLS model and affects inlining.
7972 case $host_cpu in
7973 hppa*64*)
7974 # +Z the default
7977 lt_prog_compiler_pic='-fPIC'
7979 esac
7982 interix[3-9]*)
7983 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7984 # Instead, we relocate shared libraries at runtime.
7987 msdosdjgpp*)
7988 # Just because we use GCC doesn't mean we suddenly get shared libraries
7989 # on systems that don't support them.
7990 lt_prog_compiler_can_build_shared=no
7991 enable_shared=no
7994 *nto* | *qnx*)
7995 # QNX uses GNU C++, but need to define -shared option too, otherwise
7996 # it will coredump.
7997 lt_prog_compiler_pic='-fPIC -shared'
8000 sysv4*MP*)
8001 if test -d /usr/nec; then
8002 lt_prog_compiler_pic=-Kconform_pic
8007 lt_prog_compiler_pic='-fPIC'
8009 esac
8011 case $cc_basename in
8012 nvcc*) # Cuda Compiler Driver 2.2
8013 lt_prog_compiler_wl='-Xlinker '
8014 lt_prog_compiler_pic='-Xcompiler -fPIC'
8016 esac
8017 else
8018 # PORTME Check for flag to pass linker flags through the system compiler.
8019 case $host_os in
8020 aix*)
8021 lt_prog_compiler_wl='-Wl,'
8022 if test "$host_cpu" = ia64; then
8023 # AIX 5 now supports IA64 processor
8024 lt_prog_compiler_static='-Bstatic'
8025 else
8026 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8030 mingw* | cygwin* | pw32* | os2* | cegcc*)
8031 # This hack is so that the source file can tell whether it is being
8032 # built for inclusion in a dll (and should export symbols for example).
8033 lt_prog_compiler_pic='-DDLL_EXPORT'
8036 hpux9* | hpux10* | hpux11*)
8037 lt_prog_compiler_wl='-Wl,'
8038 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8039 # not for PA HP-UX.
8040 case $host_cpu in
8041 hppa*64*|ia64*)
8042 # +Z the default
8045 lt_prog_compiler_pic='+Z'
8047 esac
8048 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8049 lt_prog_compiler_static='${wl}-a ${wl}archive'
8052 irix5* | irix6* | nonstopux*)
8053 lt_prog_compiler_wl='-Wl,'
8054 # PIC (with -KPIC) is the default.
8055 lt_prog_compiler_static='-non_shared'
8058 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8059 case $cc_basename in
8060 # old Intel for x86_64 which still supported -KPIC.
8061 ecc*)
8062 lt_prog_compiler_wl='-Wl,'
8063 lt_prog_compiler_pic='-KPIC'
8064 lt_prog_compiler_static='-static'
8066 # icc used to be incompatible with GCC.
8067 # ICC 10 doesn't accept -KPIC any more.
8068 icc* | ifort*)
8069 lt_prog_compiler_wl='-Wl,'
8070 lt_prog_compiler_pic='-fPIC'
8071 lt_prog_compiler_static='-static'
8073 # Lahey Fortran 8.1.
8074 lf95*)
8075 lt_prog_compiler_wl='-Wl,'
8076 lt_prog_compiler_pic='--shared'
8077 lt_prog_compiler_static='--static'
8079 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8080 # Portland Group compilers (*not* the Pentium gcc compiler,
8081 # which looks to be a dead project)
8082 lt_prog_compiler_wl='-Wl,'
8083 lt_prog_compiler_pic='-fpic'
8084 lt_prog_compiler_static='-Bstatic'
8086 ccc*)
8087 lt_prog_compiler_wl='-Wl,'
8088 # All Alpha code is PIC.
8089 lt_prog_compiler_static='-non_shared'
8091 xl* | bgxl* | bgf* | mpixl*)
8092 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8093 lt_prog_compiler_wl='-Wl,'
8094 lt_prog_compiler_pic='-qpic'
8095 lt_prog_compiler_static='-qstaticlink'
8098 case `$CC -V 2>&1 | sed 5q` in
8099 *Sun\ F* | *Sun*Fortran*)
8100 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8101 lt_prog_compiler_pic='-KPIC'
8102 lt_prog_compiler_static='-Bstatic'
8103 lt_prog_compiler_wl=''
8105 *Sun\ C*)
8106 # Sun C 5.9
8107 lt_prog_compiler_pic='-KPIC'
8108 lt_prog_compiler_static='-Bstatic'
8109 lt_prog_compiler_wl='-Wl,'
8111 esac
8113 esac
8116 newsos6)
8117 lt_prog_compiler_pic='-KPIC'
8118 lt_prog_compiler_static='-Bstatic'
8121 *nto* | *qnx*)
8122 # QNX uses GNU C++, but need to define -shared option too, otherwise
8123 # it will coredump.
8124 lt_prog_compiler_pic='-fPIC -shared'
8127 osf3* | osf4* | osf5*)
8128 lt_prog_compiler_wl='-Wl,'
8129 # All OSF/1 code is PIC.
8130 lt_prog_compiler_static='-non_shared'
8133 rdos*)
8134 lt_prog_compiler_static='-non_shared'
8137 solaris*)
8138 lt_prog_compiler_pic='-KPIC'
8139 lt_prog_compiler_static='-Bstatic'
8140 case $cc_basename in
8141 f77* | f90* | f95*)
8142 lt_prog_compiler_wl='-Qoption ld ';;
8144 lt_prog_compiler_wl='-Wl,';;
8145 esac
8148 sunos4*)
8149 lt_prog_compiler_wl='-Qoption ld '
8150 lt_prog_compiler_pic='-PIC'
8151 lt_prog_compiler_static='-Bstatic'
8154 sysv4 | sysv4.2uw2* | sysv4.3*)
8155 lt_prog_compiler_wl='-Wl,'
8156 lt_prog_compiler_pic='-KPIC'
8157 lt_prog_compiler_static='-Bstatic'
8160 sysv4*MP*)
8161 if test -d /usr/nec ;then
8162 lt_prog_compiler_pic='-Kconform_pic'
8163 lt_prog_compiler_static='-Bstatic'
8167 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8168 lt_prog_compiler_wl='-Wl,'
8169 lt_prog_compiler_pic='-KPIC'
8170 lt_prog_compiler_static='-Bstatic'
8173 unicos*)
8174 lt_prog_compiler_wl='-Wl,'
8175 lt_prog_compiler_can_build_shared=no
8178 uts4*)
8179 lt_prog_compiler_pic='-pic'
8180 lt_prog_compiler_static='-Bstatic'
8184 lt_prog_compiler_can_build_shared=no
8186 esac
8189 case $host_os in
8190 # For platforms which do not support PIC, -DPIC is meaningless:
8191 *djgpp*)
8192 lt_prog_compiler_pic=
8195 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8197 esac
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8199 $as_echo "$lt_prog_compiler_pic" >&6; }
8207 # Check to make sure the PIC flag actually works.
8209 if test -n "$lt_prog_compiler_pic"; then
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8211 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8212 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8213 $as_echo_n "(cached) " >&6
8214 else
8215 lt_cv_prog_compiler_pic_works=no
8216 ac_outfile=conftest.$ac_objext
8217 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8218 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8219 # Insert the option either (1) after the last *FLAGS variable, or
8220 # (2) before a word containing "conftest.", or (3) at the end.
8221 # Note that $ac_compile itself does not contain backslashes and begins
8222 # with a dollar sign (not a hyphen), so the echo should work correctly.
8223 # The option is referenced via a variable to avoid confusing sed.
8224 lt_compile=`echo "$ac_compile" | $SED \
8225 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8226 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8227 -e 's:$: $lt_compiler_flag:'`
8228 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8229 (eval "$lt_compile" 2>conftest.err)
8230 ac_status=$?
8231 cat conftest.err >&5
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 if (exit $ac_status) && test -s "$ac_outfile"; then
8234 # The compiler can only warn and ignore the option if not recognized
8235 # So say no if there are warnings other than the usual output.
8236 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8237 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8238 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8239 lt_cv_prog_compiler_pic_works=yes
8242 $RM conftest*
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8246 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8248 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8249 case $lt_prog_compiler_pic in
8250 "" | " "*) ;;
8251 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8252 esac
8253 else
8254 lt_prog_compiler_pic=
8255 lt_prog_compiler_can_build_shared=no
8266 # Check to make sure the static flag actually works.
8268 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8270 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8271 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8272 $as_echo_n "(cached) " >&6
8273 else
8274 lt_cv_prog_compiler_static_works=no
8275 save_LDFLAGS="$LDFLAGS"
8276 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8277 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8278 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8279 # The linker can only warn and ignore the option if not recognized
8280 # So say no if there are warnings
8281 if test -s conftest.err; then
8282 # Append any errors to the config.log.
8283 cat conftest.err 1>&5
8284 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8285 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8286 if diff conftest.exp conftest.er2 >/dev/null; then
8287 lt_cv_prog_compiler_static_works=yes
8289 else
8290 lt_cv_prog_compiler_static_works=yes
8293 $RM -r conftest*
8294 LDFLAGS="$save_LDFLAGS"
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8298 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8300 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8302 else
8303 lt_prog_compiler_static=
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8313 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8314 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8315 $as_echo_n "(cached) " >&6
8316 else
8317 lt_cv_prog_compiler_c_o=no
8318 $RM -r conftest 2>/dev/null
8319 mkdir conftest
8320 cd conftest
8321 mkdir out
8322 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8324 lt_compiler_flag="-o out/conftest2.$ac_objext"
8325 # Insert the option either (1) after the last *FLAGS variable, or
8326 # (2) before a word containing "conftest.", or (3) at the end.
8327 # Note that $ac_compile itself does not contain backslashes and begins
8328 # with a dollar sign (not a hyphen), so the echo should work correctly.
8329 lt_compile=`echo "$ac_compile" | $SED \
8330 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8331 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8332 -e 's:$: $lt_compiler_flag:'`
8333 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8334 (eval "$lt_compile" 2>out/conftest.err)
8335 ac_status=$?
8336 cat out/conftest.err >&5
8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8339 then
8340 # The compiler can only warn and ignore the option if not recognized
8341 # So say no if there are warnings
8342 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8343 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8344 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8345 lt_cv_prog_compiler_c_o=yes
8348 chmod u+w . 2>&5
8349 $RM conftest*
8350 # SGI C++ compiler will create directory out/ii_files/ for
8351 # template instantiation
8352 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8353 $RM out/* && rmdir out
8354 cd ..
8355 $RM -r conftest
8356 $RM conftest*
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8360 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8368 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8369 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8370 $as_echo_n "(cached) " >&6
8371 else
8372 lt_cv_prog_compiler_c_o=no
8373 $RM -r conftest 2>/dev/null
8374 mkdir conftest
8375 cd conftest
8376 mkdir out
8377 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8379 lt_compiler_flag="-o out/conftest2.$ac_objext"
8380 # Insert the option either (1) after the last *FLAGS variable, or
8381 # (2) before a word containing "conftest.", or (3) at the end.
8382 # Note that $ac_compile itself does not contain backslashes and begins
8383 # with a dollar sign (not a hyphen), so the echo should work correctly.
8384 lt_compile=`echo "$ac_compile" | $SED \
8385 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8386 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8387 -e 's:$: $lt_compiler_flag:'`
8388 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8389 (eval "$lt_compile" 2>out/conftest.err)
8390 ac_status=$?
8391 cat out/conftest.err >&5
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8394 then
8395 # The compiler can only warn and ignore the option if not recognized
8396 # So say no if there are warnings
8397 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8398 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8399 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8400 lt_cv_prog_compiler_c_o=yes
8403 chmod u+w . 2>&5
8404 $RM conftest*
8405 # SGI C++ compiler will create directory out/ii_files/ for
8406 # template instantiation
8407 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8408 $RM out/* && rmdir out
8409 cd ..
8410 $RM -r conftest
8411 $RM conftest*
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8415 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8420 hard_links="nottested"
8421 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8422 # do not overwrite the value of need_locks provided by the user
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8424 $as_echo_n "checking if we can lock with hard links... " >&6; }
8425 hard_links=yes
8426 $RM conftest*
8427 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8428 touch conftest.a
8429 ln conftest.a conftest.b 2>&5 || hard_links=no
8430 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8432 $as_echo "$hard_links" >&6; }
8433 if test "$hard_links" = no; then
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8435 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8436 need_locks=warn
8438 else
8439 need_locks=no
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8448 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8450 runpath_var=
8451 allow_undefined_flag=
8452 always_export_symbols=no
8453 archive_cmds=
8454 archive_expsym_cmds=
8455 compiler_needs_object=no
8456 enable_shared_with_static_runtimes=no
8457 export_dynamic_flag_spec=
8458 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8459 hardcode_automatic=no
8460 hardcode_direct=no
8461 hardcode_direct_absolute=no
8462 hardcode_libdir_flag_spec=
8463 hardcode_libdir_flag_spec_ld=
8464 hardcode_libdir_separator=
8465 hardcode_minus_L=no
8466 hardcode_shlibpath_var=unsupported
8467 inherit_rpath=no
8468 link_all_deplibs=unknown
8469 module_cmds=
8470 module_expsym_cmds=
8471 old_archive_from_new_cmds=
8472 old_archive_from_expsyms_cmds=
8473 thread_safe_flag_spec=
8474 whole_archive_flag_spec=
8475 # include_expsyms should be a list of space-separated symbols to be *always*
8476 # included in the symbol list
8477 include_expsyms=
8478 # exclude_expsyms can be an extended regexp of symbols to exclude
8479 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8480 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8481 # as well as any symbol that contains `d'.
8482 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8483 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8484 # platforms (ab)use it in PIC code, but their linkers get confused if
8485 # the symbol is explicitly referenced. Since portable code cannot
8486 # rely on this symbol name, it's probably fine to never include it in
8487 # preloaded symbol tables.
8488 # Exclude shared library initialization/finalization symbols.
8489 extract_expsyms_cmds=
8491 case $host_os in
8492 cygwin* | mingw* | pw32* | cegcc*)
8493 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8494 # When not using gcc, we currently assume that we are using
8495 # Microsoft Visual C++.
8496 if test "$GCC" != yes; then
8497 with_gnu_ld=no
8500 interix*)
8501 # we just hope/assume this is gcc and not c89 (= MSVC++)
8502 with_gnu_ld=yes
8504 openbsd*)
8505 with_gnu_ld=no
8507 esac
8509 ld_shlibs=yes
8511 # On some targets, GNU ld is compatible enough with the native linker
8512 # that we're better off using the native interface for both.
8513 lt_use_gnu_ld_interface=no
8514 if test "$with_gnu_ld" = yes; then
8515 case $host_os in
8516 aix*)
8517 # The AIX port of GNU ld has always aspired to compatibility
8518 # with the native linker. However, as the warning in the GNU ld
8519 # block says, versions before 2.19.5* couldn't really create working
8520 # shared libraries, regardless of the interface used.
8521 case `$LD -v 2>&1` in
8522 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8523 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8524 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8526 lt_use_gnu_ld_interface=yes
8528 esac
8531 lt_use_gnu_ld_interface=yes
8533 esac
8536 if test "$lt_use_gnu_ld_interface" = yes; then
8537 # If archive_cmds runs LD, not CC, wlarc should be empty
8538 wlarc='${wl}'
8540 # Set some defaults for GNU ld with shared library support. These
8541 # are reset later if shared libraries are not supported. Putting them
8542 # here allows them to be overridden if necessary.
8543 runpath_var=LD_RUN_PATH
8544 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8545 export_dynamic_flag_spec='${wl}--export-dynamic'
8546 # ancient GNU ld didn't support --whole-archive et. al.
8547 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8548 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8549 else
8550 whole_archive_flag_spec=
8552 supports_anon_versioning=no
8553 case `$LD -v 2>&1` in
8554 *GNU\ gold*) supports_anon_versioning=yes ;;
8555 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8556 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8557 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8558 *\ 2.11.*) ;; # other 2.11 versions
8559 *) supports_anon_versioning=yes ;;
8560 esac
8562 # See if GNU ld supports shared libraries.
8563 case $host_os in
8564 aix[3-9]*)
8565 # On AIX/PPC, the GNU linker is very broken
8566 if test "$host_cpu" != ia64; then
8567 ld_shlibs=no
8568 cat <<_LT_EOF 1>&2
8570 *** Warning: the GNU linker, at least up to release 2.19, is reported
8571 *** to be unable to reliably create shared libraries on AIX.
8572 *** Therefore, libtool is disabling shared libraries support. If you
8573 *** really care for shared libraries, you may want to install binutils
8574 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8575 *** You will then need to restart the configuration process.
8577 _LT_EOF
8581 amigaos*)
8582 case $host_cpu in
8583 powerpc)
8584 # see comment about AmigaOS4 .so support
8585 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8586 archive_expsym_cmds=''
8588 m68k)
8589 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)'
8590 hardcode_libdir_flag_spec='-L$libdir'
8591 hardcode_minus_L=yes
8593 esac
8596 beos*)
8597 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8598 allow_undefined_flag=unsupported
8599 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8600 # support --undefined. This deserves some investigation. FIXME
8601 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8602 else
8603 ld_shlibs=no
8607 cygwin* | mingw* | pw32* | cegcc*)
8608 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8609 # as there is no search path for DLLs.
8610 hardcode_libdir_flag_spec='-L$libdir'
8611 export_dynamic_flag_spec='${wl}--export-all-symbols'
8612 allow_undefined_flag=unsupported
8613 always_export_symbols=no
8614 enable_shared_with_static_runtimes=yes
8615 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8617 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8618 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8619 # If the export-symbols file already is a .def file (1st line
8620 # is EXPORTS), use it as is; otherwise, prepend...
8621 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8622 cp $export_symbols $output_objdir/$soname.def;
8623 else
8624 echo EXPORTS > $output_objdir/$soname.def;
8625 cat $export_symbols >> $output_objdir/$soname.def;
8627 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8628 else
8629 ld_shlibs=no
8633 haiku*)
8634 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8635 link_all_deplibs=yes
8638 interix[3-9]*)
8639 hardcode_direct=no
8640 hardcode_shlibpath_var=no
8641 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8642 export_dynamic_flag_spec='${wl}-E'
8643 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8644 # Instead, shared libraries are loaded at an image base (0x10000000 by
8645 # default) and relocated if they conflict, which is a slow very memory
8646 # consuming and fragmenting process. To avoid this, we pick a random,
8647 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8648 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8649 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8650 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'
8653 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8654 tmp_diet=no
8655 if test "$host_os" = linux-dietlibc; then
8656 case $cc_basename in
8657 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8658 esac
8660 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8661 && test "$tmp_diet" = no
8662 then
8663 tmp_addflag=
8664 tmp_sharedflag='-shared'
8665 case $cc_basename,$host_cpu in
8666 pgcc*) # Portland Group C compiler
8667 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'
8668 tmp_addflag=' $pic_flag'
8670 pgf77* | pgf90* | pgf95* | pgfortran*)
8671 # Portland Group f77 and f90 compilers
8672 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'
8673 tmp_addflag=' $pic_flag -Mnomain' ;;
8674 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8675 tmp_addflag=' -i_dynamic' ;;
8676 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8677 tmp_addflag=' -i_dynamic -nofor_main' ;;
8678 ifc* | ifort*) # Intel Fortran compiler
8679 tmp_addflag=' -nofor_main' ;;
8680 lf95*) # Lahey Fortran 8.1
8681 whole_archive_flag_spec=
8682 tmp_sharedflag='--shared' ;;
8683 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8684 tmp_sharedflag='-qmkshrobj'
8685 tmp_addflag= ;;
8686 nvcc*) # Cuda Compiler Driver 2.2
8687 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'
8688 compiler_needs_object=yes
8690 esac
8691 case `$CC -V 2>&1 | sed 5q` in
8692 *Sun\ C*) # Sun C 5.9
8693 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'
8694 compiler_needs_object=yes
8695 tmp_sharedflag='-G' ;;
8696 *Sun\ F*) # Sun Fortran 8.3
8697 tmp_sharedflag='-G' ;;
8698 esac
8699 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8701 if test "x$supports_anon_versioning" = xyes; then
8702 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8703 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8704 echo "local: *; };" >> $output_objdir/$libname.ver~
8705 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8708 case $cc_basename in
8709 xlf* | bgf* | bgxlf* | mpixlf*)
8710 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8711 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8712 hardcode_libdir_flag_spec=
8713 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8714 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8715 if test "x$supports_anon_versioning" = xyes; then
8716 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8717 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8718 echo "local: *; };" >> $output_objdir/$libname.ver~
8719 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8722 esac
8723 else
8724 ld_shlibs=no
8728 netbsd*)
8729 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8730 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8731 wlarc=
8732 else
8733 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8734 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8738 solaris*)
8739 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8740 ld_shlibs=no
8741 cat <<_LT_EOF 1>&2
8743 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8744 *** create shared libraries on Solaris systems. Therefore, libtool
8745 *** is disabling shared libraries support. We urge you to upgrade GNU
8746 *** binutils to release 2.9.1 or newer. Another option is to modify
8747 *** your PATH or compiler configuration so that the native linker is
8748 *** used, and then restart.
8750 _LT_EOF
8751 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8752 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8753 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8754 else
8755 ld_shlibs=no
8759 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8760 case `$LD -v 2>&1` in
8761 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8762 ld_shlibs=no
8763 cat <<_LT_EOF 1>&2
8765 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8766 *** reliably create shared libraries on SCO systems. Therefore, libtool
8767 *** is disabling shared libraries support. We urge you to upgrade GNU
8768 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8769 *** your PATH or compiler configuration so that the native linker is
8770 *** used, and then restart.
8772 _LT_EOF
8775 # For security reasons, it is highly recommended that you always
8776 # use absolute paths for naming shared libraries, and exclude the
8777 # DT_RUNPATH tag from executables and libraries. But doing so
8778 # requires that you compile everything twice, which is a pain.
8779 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8780 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8781 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8782 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8783 else
8784 ld_shlibs=no
8787 esac
8790 sunos4*)
8791 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8792 wlarc=
8793 hardcode_direct=yes
8794 hardcode_shlibpath_var=no
8798 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8799 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8800 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8801 else
8802 ld_shlibs=no
8805 esac
8807 if test "$ld_shlibs" = no; then
8808 runpath_var=
8809 hardcode_libdir_flag_spec=
8810 export_dynamic_flag_spec=
8811 whole_archive_flag_spec=
8813 else
8814 # PORTME fill in a description of your system's linker (not GNU ld)
8815 case $host_os in
8816 aix3*)
8817 allow_undefined_flag=unsupported
8818 always_export_symbols=yes
8819 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'
8820 # Note: this linker hardcodes the directories in LIBPATH if there
8821 # are no directories specified by -L.
8822 hardcode_minus_L=yes
8823 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8824 # Neither direct hardcoding nor static linking is supported with a
8825 # broken collect2.
8826 hardcode_direct=unsupported
8830 aix[4-9]*)
8831 if test "$host_cpu" = ia64; then
8832 # On IA64, the linker does run time linking by default, so we don't
8833 # have to do anything special.
8834 aix_use_runtimelinking=no
8835 exp_sym_flag='-Bexport'
8836 no_entry_flag=""
8837 else
8838 # If we're using GNU nm, then we don't want the "-C" option.
8839 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8840 # Also, AIX nm treats weak defined symbols like other global
8841 # defined symbols, whereas GNU nm marks them as "W".
8842 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8843 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'
8844 else
8845 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'
8847 aix_use_runtimelinking=no
8849 # Test if we are trying to use run time linking or normal
8850 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8851 # need to do runtime linking.
8852 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8853 for ld_flag in $LDFLAGS; do
8854 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8855 aix_use_runtimelinking=yes
8856 break
8858 done
8860 esac
8862 exp_sym_flag='-bexport'
8863 no_entry_flag='-bnoentry'
8866 # When large executables or shared objects are built, AIX ld can
8867 # have problems creating the table of contents. If linking a library
8868 # or program results in "error TOC overflow" add -mminimal-toc to
8869 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8870 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8872 archive_cmds=''
8873 hardcode_direct=yes
8874 hardcode_direct_absolute=yes
8875 hardcode_libdir_separator=':'
8876 link_all_deplibs=yes
8877 file_list_spec='${wl}-f,'
8879 if test "$GCC" = yes; then
8880 case $host_os in aix4.[012]|aix4.[012].*)
8881 # We only want to do this on AIX 4.2 and lower, the check
8882 # below for broken collect2 doesn't work under 4.3+
8883 collect2name=`${CC} -print-prog-name=collect2`
8884 if test -f "$collect2name" &&
8885 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8886 then
8887 # We have reworked collect2
8889 else
8890 # We have old collect2
8891 hardcode_direct=unsupported
8892 # It fails to find uninstalled libraries when the uninstalled
8893 # path is not listed in the libpath. Setting hardcode_minus_L
8894 # to unsupported forces relinking
8895 hardcode_minus_L=yes
8896 hardcode_libdir_flag_spec='-L$libdir'
8897 hardcode_libdir_separator=
8900 esac
8901 shared_flag='-shared'
8902 if test "$aix_use_runtimelinking" = yes; then
8903 shared_flag="$shared_flag "'${wl}-G'
8905 else
8906 # not using gcc
8907 if test "$host_cpu" = ia64; then
8908 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8909 # chokes on -Wl,-G. The following line is correct:
8910 shared_flag='-G'
8911 else
8912 if test "$aix_use_runtimelinking" = yes; then
8913 shared_flag='${wl}-G'
8914 else
8915 shared_flag='${wl}-bM:SRE'
8920 export_dynamic_flag_spec='${wl}-bexpall'
8921 # It seems that -bexpall does not export symbols beginning with
8922 # underscore (_), so it is better to generate a list of symbols to export.
8923 always_export_symbols=yes
8924 if test "$aix_use_runtimelinking" = yes; then
8925 # Warning - without using the other runtime loading flags (-brtl),
8926 # -berok will link without error, but may produce a broken library.
8927 allow_undefined_flag='-berok'
8928 # Determine the default libpath from the value encoded in an
8929 # empty executable.
8930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8931 /* end confdefs.h. */
8934 main ()
8938 return 0;
8940 _ACEOF
8941 if ac_fn_c_try_link "$LINENO"; then :
8943 lt_aix_libpath_sed='
8944 /Import File Strings/,/^$/ {
8945 /^0/ {
8946 s/^0 *\(.*\)$/\1/
8950 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8951 # Check for a 64-bit object if we didn't find anything.
8952 if test -z "$aix_libpath"; then
8953 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8956 rm -f core conftest.err conftest.$ac_objext \
8957 conftest$ac_exeext conftest.$ac_ext
8958 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8960 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8961 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"
8962 else
8963 if test "$host_cpu" = ia64; then
8964 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8965 allow_undefined_flag="-z nodefs"
8966 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"
8967 else
8968 # Determine the default libpath from the value encoded in an
8969 # empty executable.
8970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8971 /* end confdefs.h. */
8974 main ()
8978 return 0;
8980 _ACEOF
8981 if ac_fn_c_try_link "$LINENO"; then :
8983 lt_aix_libpath_sed='
8984 /Import File Strings/,/^$/ {
8985 /^0/ {
8986 s/^0 *\(.*\)$/\1/
8990 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8991 # Check for a 64-bit object if we didn't find anything.
8992 if test -z "$aix_libpath"; then
8993 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8996 rm -f core conftest.err conftest.$ac_objext \
8997 conftest$ac_exeext conftest.$ac_ext
8998 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9000 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9001 # Warning - without using the other run time loading flags,
9002 # -berok will link without error, but may produce a broken library.
9003 no_undefined_flag=' ${wl}-bernotok'
9004 allow_undefined_flag=' ${wl}-berok'
9005 if test "$with_gnu_ld" = yes; then
9006 # We only use this code for GNU lds that support --whole-archive.
9007 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9008 else
9009 # Exported symbols can be pulled into shared objects from archives
9010 whole_archive_flag_spec='$convenience'
9012 archive_cmds_need_lc=yes
9013 # This is similar to how AIX traditionally builds its shared libraries.
9014 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'
9019 amigaos*)
9020 case $host_cpu in
9021 powerpc)
9022 # see comment about AmigaOS4 .so support
9023 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9024 archive_expsym_cmds=''
9026 m68k)
9027 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)'
9028 hardcode_libdir_flag_spec='-L$libdir'
9029 hardcode_minus_L=yes
9031 esac
9034 bsdi[45]*)
9035 export_dynamic_flag_spec=-rdynamic
9038 cygwin* | mingw* | pw32* | cegcc*)
9039 # When not using gcc, we currently assume that we are using
9040 # Microsoft Visual C++.
9041 # hardcode_libdir_flag_spec is actually meaningless, as there is
9042 # no search path for DLLs.
9043 hardcode_libdir_flag_spec=' '
9044 allow_undefined_flag=unsupported
9045 # Tell ltmain to make .lib files, not .a files.
9046 libext=lib
9047 # Tell ltmain to make .dll files, not .so files.
9048 shrext_cmds=".dll"
9049 # FIXME: Setting linknames here is a bad hack.
9050 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9051 # The linker will automatically build a .lib file if we build a DLL.
9052 old_archive_from_new_cmds='true'
9053 # FIXME: Should let the user specify the lib program.
9054 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9055 fix_srcfile_path='`cygpath -w "$srcfile"`'
9056 enable_shared_with_static_runtimes=yes
9059 darwin* | rhapsody*)
9062 archive_cmds_need_lc=no
9063 hardcode_direct=no
9064 hardcode_automatic=yes
9065 hardcode_shlibpath_var=unsupported
9066 if test "$lt_cv_ld_force_load" = "yes"; then
9067 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\"`'
9068 else
9069 whole_archive_flag_spec=''
9071 link_all_deplibs=yes
9072 allow_undefined_flag="$_lt_dar_allow_undefined"
9073 case $cc_basename in
9074 ifort*) _lt_dar_can_shared=yes ;;
9075 *) _lt_dar_can_shared=$GCC ;;
9076 esac
9077 if test "$_lt_dar_can_shared" = "yes"; then
9078 output_verbose_link_cmd=func_echo_all
9079 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9080 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9081 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}"
9082 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}"
9084 else
9085 ld_shlibs=no
9090 dgux*)
9091 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9092 hardcode_libdir_flag_spec='-L$libdir'
9093 hardcode_shlibpath_var=no
9096 freebsd1*)
9097 ld_shlibs=no
9100 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9101 # support. Future versions do this automatically, but an explicit c++rt0.o
9102 # does not break anything, and helps significantly (at the cost of a little
9103 # extra space).
9104 freebsd2.2*)
9105 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9106 hardcode_libdir_flag_spec='-R$libdir'
9107 hardcode_direct=yes
9108 hardcode_shlibpath_var=no
9111 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9112 freebsd2*)
9113 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9114 hardcode_direct=yes
9115 hardcode_minus_L=yes
9116 hardcode_shlibpath_var=no
9119 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9120 freebsd* | dragonfly*)
9121 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9122 hardcode_libdir_flag_spec='-R$libdir'
9123 hardcode_direct=yes
9124 hardcode_shlibpath_var=no
9127 hpux9*)
9128 if test "$GCC" = yes; then
9129 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'
9130 else
9131 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'
9133 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9134 hardcode_libdir_separator=:
9135 hardcode_direct=yes
9137 # hardcode_minus_L: Not really in the search PATH,
9138 # but as the default location of the library.
9139 hardcode_minus_L=yes
9140 export_dynamic_flag_spec='${wl}-E'
9143 hpux10*)
9144 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9145 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9146 else
9147 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9149 if test "$with_gnu_ld" = no; then
9150 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9151 hardcode_libdir_flag_spec_ld='+b $libdir'
9152 hardcode_libdir_separator=:
9153 hardcode_direct=yes
9154 hardcode_direct_absolute=yes
9155 export_dynamic_flag_spec='${wl}-E'
9156 # hardcode_minus_L: Not really in the search PATH,
9157 # but as the default location of the library.
9158 hardcode_minus_L=yes
9162 hpux11*)
9163 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9164 case $host_cpu in
9165 hppa*64*)
9166 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9168 ia64*)
9169 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9172 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9174 esac
9175 else
9176 case $host_cpu in
9177 hppa*64*)
9178 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9180 ia64*)
9181 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9185 # Older versions of the 11.00 compiler do not understand -b yet
9186 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9188 $as_echo_n "checking if $CC understands -b... " >&6; }
9189 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9190 $as_echo_n "(cached) " >&6
9191 else
9192 lt_cv_prog_compiler__b=no
9193 save_LDFLAGS="$LDFLAGS"
9194 LDFLAGS="$LDFLAGS -b"
9195 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9196 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9197 # The linker can only warn and ignore the option if not recognized
9198 # So say no if there are warnings
9199 if test -s conftest.err; then
9200 # Append any errors to the config.log.
9201 cat conftest.err 1>&5
9202 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9203 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9204 if diff conftest.exp conftest.er2 >/dev/null; then
9205 lt_cv_prog_compiler__b=yes
9207 else
9208 lt_cv_prog_compiler__b=yes
9211 $RM -r conftest*
9212 LDFLAGS="$save_LDFLAGS"
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9216 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9218 if test x"$lt_cv_prog_compiler__b" = xyes; then
9219 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9220 else
9221 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9225 esac
9227 if test "$with_gnu_ld" = no; then
9228 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9229 hardcode_libdir_separator=:
9231 case $host_cpu in
9232 hppa*64*|ia64*)
9233 hardcode_direct=no
9234 hardcode_shlibpath_var=no
9237 hardcode_direct=yes
9238 hardcode_direct_absolute=yes
9239 export_dynamic_flag_spec='${wl}-E'
9241 # hardcode_minus_L: Not really in the search PATH,
9242 # but as the default location of the library.
9243 hardcode_minus_L=yes
9245 esac
9249 irix5* | irix6* | nonstopux*)
9250 if test "$GCC" = yes; then
9251 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'
9252 # Try to use the -exported_symbol ld option, if it does not
9253 # work, assume that -exports_file does not work either and
9254 # implicitly export all symbols.
9255 save_LDFLAGS="$LDFLAGS"
9256 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9258 /* end confdefs.h. */
9259 int foo(void) {}
9260 _ACEOF
9261 if ac_fn_c_try_link "$LINENO"; then :
9262 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'
9265 rm -f core conftest.err conftest.$ac_objext \
9266 conftest$ac_exeext conftest.$ac_ext
9267 LDFLAGS="$save_LDFLAGS"
9268 else
9269 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'
9270 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'
9272 archive_cmds_need_lc='no'
9273 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9274 hardcode_libdir_separator=:
9275 inherit_rpath=yes
9276 link_all_deplibs=yes
9279 netbsd*)
9280 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9281 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9282 else
9283 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9285 hardcode_libdir_flag_spec='-R$libdir'
9286 hardcode_direct=yes
9287 hardcode_shlibpath_var=no
9290 newsos6)
9291 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9292 hardcode_direct=yes
9293 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9294 hardcode_libdir_separator=:
9295 hardcode_shlibpath_var=no
9298 *nto* | *qnx*)
9301 openbsd*)
9302 if test -f /usr/libexec/ld.so; then
9303 hardcode_direct=yes
9304 hardcode_shlibpath_var=no
9305 hardcode_direct_absolute=yes
9306 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9307 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9308 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9309 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9310 export_dynamic_flag_spec='${wl}-E'
9311 else
9312 case $host_os in
9313 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9314 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9315 hardcode_libdir_flag_spec='-R$libdir'
9318 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9319 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9321 esac
9323 else
9324 ld_shlibs=no
9328 os2*)
9329 hardcode_libdir_flag_spec='-L$libdir'
9330 hardcode_minus_L=yes
9331 allow_undefined_flag=unsupported
9332 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'
9333 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9336 osf3*)
9337 if test "$GCC" = yes; then
9338 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9339 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'
9340 else
9341 allow_undefined_flag=' -expect_unresolved \*'
9342 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'
9344 archive_cmds_need_lc='no'
9345 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9346 hardcode_libdir_separator=:
9349 osf4* | osf5*) # as osf3* with the addition of -msym flag
9350 if test "$GCC" = yes; then
9351 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9352 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'
9353 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9354 else
9355 allow_undefined_flag=' -expect_unresolved \*'
9356 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'
9357 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~
9358 $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'
9360 # Both c and cxx compiler support -rpath directly
9361 hardcode_libdir_flag_spec='-rpath $libdir'
9363 archive_cmds_need_lc='no'
9364 hardcode_libdir_separator=:
9367 solaris*)
9368 no_undefined_flag=' -z defs'
9369 if test "$GCC" = yes; then
9370 wlarc='${wl}'
9371 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9372 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9373 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9374 else
9375 case `$CC -V 2>&1` in
9376 *"Compilers 5.0"*)
9377 wlarc=''
9378 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9379 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9380 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9383 wlarc='${wl}'
9384 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9385 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9386 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9388 esac
9390 hardcode_libdir_flag_spec='-R$libdir'
9391 hardcode_shlibpath_var=no
9392 case $host_os in
9393 solaris2.[0-5] | solaris2.[0-5].*) ;;
9395 # The compiler driver will combine and reorder linker options,
9396 # but understands `-z linker_flag'. GCC discards it without `$wl',
9397 # but is careful enough not to reorder.
9398 # Supported since Solaris 2.6 (maybe 2.5.1?)
9399 if test "$GCC" = yes; then
9400 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9401 else
9402 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9405 esac
9406 link_all_deplibs=yes
9409 sunos4*)
9410 if test "x$host_vendor" = xsequent; then
9411 # Use $CC to link under sequent, because it throws in some extra .o
9412 # files that make .init and .fini sections work.
9413 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9414 else
9415 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9417 hardcode_libdir_flag_spec='-L$libdir'
9418 hardcode_direct=yes
9419 hardcode_minus_L=yes
9420 hardcode_shlibpath_var=no
9423 sysv4)
9424 case $host_vendor in
9425 sni)
9426 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9427 hardcode_direct=yes # is this really true???
9429 siemens)
9430 ## LD is ld it makes a PLAMLIB
9431 ## CC just makes a GrossModule.
9432 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9433 reload_cmds='$CC -r -o $output$reload_objs'
9434 hardcode_direct=no
9436 motorola)
9437 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9438 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9440 esac
9441 runpath_var='LD_RUN_PATH'
9442 hardcode_shlibpath_var=no
9445 sysv4.3*)
9446 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9447 hardcode_shlibpath_var=no
9448 export_dynamic_flag_spec='-Bexport'
9451 sysv4*MP*)
9452 if test -d /usr/nec; then
9453 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9454 hardcode_shlibpath_var=no
9455 runpath_var=LD_RUN_PATH
9456 hardcode_runpath_var=yes
9457 ld_shlibs=yes
9461 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9462 no_undefined_flag='${wl}-z,text'
9463 archive_cmds_need_lc=no
9464 hardcode_shlibpath_var=no
9465 runpath_var='LD_RUN_PATH'
9467 if test "$GCC" = yes; then
9468 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9469 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9470 else
9471 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9472 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9476 sysv5* | sco3.2v5* | sco5v6*)
9477 # Note: We can NOT use -z defs as we might desire, because we do not
9478 # link with -lc, and that would cause any symbols used from libc to
9479 # always be unresolved, which means just about no library would
9480 # ever link correctly. If we're not using GNU ld we use -z text
9481 # though, which does catch some bad symbols but isn't as heavy-handed
9482 # as -z defs.
9483 no_undefined_flag='${wl}-z,text'
9484 allow_undefined_flag='${wl}-z,nodefs'
9485 archive_cmds_need_lc=no
9486 hardcode_shlibpath_var=no
9487 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9488 hardcode_libdir_separator=':'
9489 link_all_deplibs=yes
9490 export_dynamic_flag_spec='${wl}-Bexport'
9491 runpath_var='LD_RUN_PATH'
9493 if test "$GCC" = yes; then
9494 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9495 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9496 else
9497 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9498 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9502 uts4*)
9503 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9504 hardcode_libdir_flag_spec='-L$libdir'
9505 hardcode_shlibpath_var=no
9509 ld_shlibs=no
9511 esac
9513 if test x$host_vendor = xsni; then
9514 case $host in
9515 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9516 export_dynamic_flag_spec='${wl}-Blargedynsym'
9518 esac
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9523 $as_echo "$ld_shlibs" >&6; }
9524 test "$ld_shlibs" = no && can_build_shared=no
9526 with_gnu_ld=$with_gnu_ld
9543 # Do we need to explicitly link libc?
9545 case "x$archive_cmds_need_lc" in
9546 x|xyes)
9547 # Assume -lc should be added
9548 archive_cmds_need_lc=yes
9550 if test "$enable_shared" = yes && test "$GCC" = yes; then
9551 case $archive_cmds in
9552 *'~'*)
9553 # FIXME: we may have to deal with multi-command sequences.
9555 '$CC '*)
9556 # Test whether the compiler implicitly links with -lc since on some
9557 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9558 # to ld, don't add -lc before -lgcc.
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9560 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9561 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9562 $as_echo_n "(cached) " >&6
9563 else
9564 $RM conftest*
9565 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9568 (eval $ac_compile) 2>&5
9569 ac_status=$?
9570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9571 test $ac_status = 0; } 2>conftest.err; then
9572 soname=conftest
9573 lib=conftest
9574 libobjs=conftest.$ac_objext
9575 deplibs=
9576 wl=$lt_prog_compiler_wl
9577 pic_flag=$lt_prog_compiler_pic
9578 compiler_flags=-v
9579 linker_flags=-v
9580 verstring=
9581 output_objdir=.
9582 libname=conftest
9583 lt_save_allow_undefined_flag=$allow_undefined_flag
9584 allow_undefined_flag=
9585 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9586 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9587 ac_status=$?
9588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9589 test $ac_status = 0; }
9590 then
9591 lt_cv_archive_cmds_need_lc=no
9592 else
9593 lt_cv_archive_cmds_need_lc=yes
9595 allow_undefined_flag=$lt_save_allow_undefined_flag
9596 else
9597 cat conftest.err 1>&5
9599 $RM conftest*
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9603 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9604 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9606 esac
9609 esac
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9768 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9770 if test "$GCC" = yes; then
9771 case $host_os in
9772 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9773 *) lt_awk_arg="/^libraries:/" ;;
9774 esac
9775 case $host_os in
9776 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9777 *) lt_sed_strip_eq="s,=/,/,g" ;;
9778 esac
9779 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9780 case $lt_search_path_spec in
9781 *\;*)
9782 # if the path contains ";" then we assume it to be the separator
9783 # otherwise default to the standard path separator (i.e. ":") - it is
9784 # assumed that no part of a normal pathname contains ";" but that should
9785 # okay in the real world where ";" in dirpaths is itself problematic.
9786 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9789 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9791 esac
9792 # Ok, now we have the path, separated by spaces, we can step through it
9793 # and add multilib dir if necessary.
9794 lt_tmp_lt_search_path_spec=
9795 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9796 for lt_sys_path in $lt_search_path_spec; do
9797 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9798 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9799 else
9800 test -d "$lt_sys_path" && \
9801 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9803 done
9804 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9805 BEGIN {RS=" "; FS="/|\n";} {
9806 lt_foo="";
9807 lt_count=0;
9808 for (lt_i = NF; lt_i > 0; lt_i--) {
9809 if ($lt_i != "" && $lt_i != ".") {
9810 if ($lt_i == "..") {
9811 lt_count++;
9812 } else {
9813 if (lt_count == 0) {
9814 lt_foo="/" $lt_i lt_foo;
9815 } else {
9816 lt_count--;
9821 if (lt_foo != "") { lt_freq[lt_foo]++; }
9822 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9824 # AWK program above erroneously prepends '/' to C:/dos/paths
9825 # for these hosts.
9826 case $host_os in
9827 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9828 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9829 esac
9830 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9831 else
9832 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9834 library_names_spec=
9835 libname_spec='lib$name'
9836 soname_spec=
9837 shrext_cmds=".so"
9838 postinstall_cmds=
9839 postuninstall_cmds=
9840 finish_cmds=
9841 finish_eval=
9842 shlibpath_var=
9843 shlibpath_overrides_runpath=unknown
9844 version_type=none
9845 dynamic_linker="$host_os ld.so"
9846 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9847 need_lib_prefix=unknown
9848 hardcode_into_libs=no
9850 # when you set need_version to no, make sure it does not cause -set_version
9851 # flags to be left without arguments
9852 need_version=unknown
9854 case $host_os in
9855 aix3*)
9856 version_type=linux
9857 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9858 shlibpath_var=LIBPATH
9860 # AIX 3 has no versioning support, so we append a major version to the name.
9861 soname_spec='${libname}${release}${shared_ext}$major'
9864 aix[4-9]*)
9865 version_type=linux
9866 need_lib_prefix=no
9867 need_version=no
9868 hardcode_into_libs=yes
9869 if test "$host_cpu" = ia64; then
9870 # AIX 5 supports IA64
9871 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9872 shlibpath_var=LD_LIBRARY_PATH
9873 else
9874 # With GCC up to 2.95.x, collect2 would create an import file
9875 # for dependence libraries. The import file would start with
9876 # the line `#! .'. This would cause the generated library to
9877 # depend on `.', always an invalid library. This was fixed in
9878 # development snapshots of GCC prior to 3.0.
9879 case $host_os in
9880 aix4 | aix4.[01] | aix4.[01].*)
9881 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9882 echo ' yes '
9883 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9885 else
9886 can_build_shared=no
9889 esac
9890 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9891 # soname into executable. Probably we can add versioning support to
9892 # collect2, so additional links can be useful in future.
9893 if test "$aix_use_runtimelinking" = yes; then
9894 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9895 # instead of lib<name>.a to let people know that these are not
9896 # typical AIX shared libraries.
9897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9898 else
9899 # We preserve .a as extension for shared libraries through AIX4.2
9900 # and later when we are not doing run time linking.
9901 library_names_spec='${libname}${release}.a $libname.a'
9902 soname_spec='${libname}${release}${shared_ext}$major'
9904 shlibpath_var=LIBPATH
9908 amigaos*)
9909 case $host_cpu in
9910 powerpc)
9911 # Since July 2007 AmigaOS4 officially supports .so libraries.
9912 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9915 m68k)
9916 library_names_spec='$libname.ixlibrary $libname.a'
9917 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9918 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'
9920 esac
9923 beos*)
9924 library_names_spec='${libname}${shared_ext}'
9925 dynamic_linker="$host_os ld.so"
9926 shlibpath_var=LIBRARY_PATH
9929 bsdi[45]*)
9930 version_type=linux
9931 need_version=no
9932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9933 soname_spec='${libname}${release}${shared_ext}$major'
9934 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9935 shlibpath_var=LD_LIBRARY_PATH
9936 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9937 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9938 # the default ld.so.conf also contains /usr/contrib/lib and
9939 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9940 # libtool to hard-code these into programs
9943 cygwin* | mingw* | pw32* | cegcc*)
9944 version_type=windows
9945 shrext_cmds=".dll"
9946 need_version=no
9947 need_lib_prefix=no
9949 case $GCC,$host_os in
9950 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9951 library_names_spec='$libname.dll.a'
9952 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9953 postinstall_cmds='base_file=`basename \${file}`~
9954 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9955 dldir=$destdir/`dirname \$dlpath`~
9956 test -d \$dldir || mkdir -p \$dldir~
9957 $install_prog $dir/$dlname \$dldir/$dlname~
9958 chmod a+x \$dldir/$dlname~
9959 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9960 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9962 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9963 dlpath=$dir/\$dldll~
9964 $RM \$dlpath'
9965 shlibpath_overrides_runpath=yes
9967 case $host_os in
9968 cygwin*)
9969 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9970 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9972 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9974 mingw* | cegcc*)
9975 # MinGW DLLs use traditional 'lib' prefix
9976 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9978 pw32*)
9979 # pw32 DLLs use 'pw' prefix rather than 'lib'
9980 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9982 esac
9986 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9988 esac
9989 dynamic_linker='Win32 ld.exe'
9990 # FIXME: first we should search . and the directory the executable is in
9991 shlibpath_var=PATH
9994 darwin* | rhapsody*)
9995 dynamic_linker="$host_os dyld"
9996 version_type=darwin
9997 need_lib_prefix=no
9998 need_version=no
9999 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10000 soname_spec='${libname}${release}${major}$shared_ext'
10001 shlibpath_overrides_runpath=yes
10002 shlibpath_var=DYLD_LIBRARY_PATH
10003 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10005 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10006 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10009 dgux*)
10010 version_type=linux
10011 need_lib_prefix=no
10012 need_version=no
10013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10014 soname_spec='${libname}${release}${shared_ext}$major'
10015 shlibpath_var=LD_LIBRARY_PATH
10018 freebsd1*)
10019 dynamic_linker=no
10022 freebsd* | dragonfly*)
10023 # DragonFly does not have aout. When/if they implement a new
10024 # versioning mechanism, adjust this.
10025 if test -x /usr/bin/objformat; then
10026 objformat=`/usr/bin/objformat`
10027 else
10028 case $host_os in
10029 freebsd[123]*) objformat=aout ;;
10030 *) objformat=elf ;;
10031 esac
10033 version_type=freebsd-$objformat
10034 case $version_type in
10035 freebsd-elf*)
10036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10037 need_version=no
10038 need_lib_prefix=no
10040 freebsd-*)
10041 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10042 need_version=yes
10044 esac
10045 shlibpath_var=LD_LIBRARY_PATH
10046 case $host_os in
10047 freebsd2*)
10048 shlibpath_overrides_runpath=yes
10050 freebsd3.[01]* | freebsdelf3.[01]*)
10051 shlibpath_overrides_runpath=yes
10052 hardcode_into_libs=yes
10054 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10055 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10056 shlibpath_overrides_runpath=no
10057 hardcode_into_libs=yes
10059 *) # from 4.6 on, and DragonFly
10060 shlibpath_overrides_runpath=yes
10061 hardcode_into_libs=yes
10063 esac
10066 gnu*)
10067 version_type=linux
10068 need_lib_prefix=no
10069 need_version=no
10070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10071 soname_spec='${libname}${release}${shared_ext}$major'
10072 shlibpath_var=LD_LIBRARY_PATH
10073 hardcode_into_libs=yes
10076 haiku*)
10077 version_type=linux
10078 need_lib_prefix=no
10079 need_version=no
10080 dynamic_linker="$host_os runtime_loader"
10081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10082 soname_spec='${libname}${release}${shared_ext}$major'
10083 shlibpath_var=LIBRARY_PATH
10084 shlibpath_overrides_runpath=yes
10085 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10086 hardcode_into_libs=yes
10089 hpux9* | hpux10* | hpux11*)
10090 # Give a soname corresponding to the major version so that dld.sl refuses to
10091 # link against other versions.
10092 version_type=sunos
10093 need_lib_prefix=no
10094 need_version=no
10095 case $host_cpu in
10096 ia64*)
10097 shrext_cmds='.so'
10098 hardcode_into_libs=yes
10099 dynamic_linker="$host_os dld.so"
10100 shlibpath_var=LD_LIBRARY_PATH
10101 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10103 soname_spec='${libname}${release}${shared_ext}$major'
10104 if test "X$HPUX_IA64_MODE" = X32; then
10105 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10106 else
10107 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10109 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10111 hppa*64*)
10112 shrext_cmds='.sl'
10113 hardcode_into_libs=yes
10114 dynamic_linker="$host_os dld.sl"
10115 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10116 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10118 soname_spec='${libname}${release}${shared_ext}$major'
10119 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10120 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10123 shrext_cmds='.sl'
10124 dynamic_linker="$host_os dld.sl"
10125 shlibpath_var=SHLIB_PATH
10126 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10128 soname_spec='${libname}${release}${shared_ext}$major'
10130 esac
10131 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10132 postinstall_cmds='chmod 555 $lib'
10133 # or fails outright, so override atomically:
10134 install_override_mode=555
10137 interix[3-9]*)
10138 version_type=linux
10139 need_lib_prefix=no
10140 need_version=no
10141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10142 soname_spec='${libname}${release}${shared_ext}$major'
10143 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10144 shlibpath_var=LD_LIBRARY_PATH
10145 shlibpath_overrides_runpath=no
10146 hardcode_into_libs=yes
10149 irix5* | irix6* | nonstopux*)
10150 case $host_os in
10151 nonstopux*) version_type=nonstopux ;;
10153 if test "$lt_cv_prog_gnu_ld" = yes; then
10154 version_type=linux
10155 else
10156 version_type=irix
10157 fi ;;
10158 esac
10159 need_lib_prefix=no
10160 need_version=no
10161 soname_spec='${libname}${release}${shared_ext}$major'
10162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10163 case $host_os in
10164 irix5* | nonstopux*)
10165 libsuff= shlibsuff=
10168 case $LD in # libtool.m4 will add one of these switches to LD
10169 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10170 libsuff= shlibsuff= libmagic=32-bit;;
10171 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10172 libsuff=32 shlibsuff=N32 libmagic=N32;;
10173 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10174 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10175 *) libsuff= shlibsuff= libmagic=never-match;;
10176 esac
10178 esac
10179 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10180 shlibpath_overrides_runpath=no
10181 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10182 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10183 hardcode_into_libs=yes
10186 # No shared lib support for Linux oldld, aout, or coff.
10187 linux*oldld* | linux*aout* | linux*coff*)
10188 dynamic_linker=no
10191 # This must be Linux ELF.
10192 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10193 version_type=linux
10194 need_lib_prefix=no
10195 need_version=no
10196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10197 soname_spec='${libname}${release}${shared_ext}$major'
10198 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10199 shlibpath_var=LD_LIBRARY_PATH
10200 shlibpath_overrides_runpath=no
10202 # Some binutils ld are patched to set DT_RUNPATH
10203 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10204 $as_echo_n "(cached) " >&6
10205 else
10206 lt_cv_shlibpath_overrides_runpath=no
10207 save_LDFLAGS=$LDFLAGS
10208 save_libdir=$libdir
10209 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10210 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10212 /* end confdefs.h. */
10215 main ()
10219 return 0;
10221 _ACEOF
10222 if ac_fn_c_try_link "$LINENO"; then :
10223 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10224 lt_cv_shlibpath_overrides_runpath=yes
10227 rm -f core conftest.err conftest.$ac_objext \
10228 conftest$ac_exeext conftest.$ac_ext
10229 LDFLAGS=$save_LDFLAGS
10230 libdir=$save_libdir
10234 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10236 # This implies no fast_install, which is unacceptable.
10237 # Some rework will be needed to allow for fast_install
10238 # before this can be enabled.
10239 hardcode_into_libs=yes
10241 # Append ld.so.conf contents to the search path
10242 if test -f /etc/ld.so.conf; then
10243 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' ' '`
10244 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10247 # We used to test for /lib/ld.so.1 and disable shared libraries on
10248 # powerpc, because MkLinux only supported shared libraries with the
10249 # GNU dynamic linker. Since this was broken with cross compilers,
10250 # most powerpc-linux boxes support dynamic linking these days and
10251 # people can always --disable-shared, the test was removed, and we
10252 # assume the GNU/Linux dynamic linker is in use.
10253 dynamic_linker='GNU/Linux ld.so'
10256 netbsd*)
10257 version_type=sunos
10258 need_lib_prefix=no
10259 need_version=no
10260 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10262 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10263 dynamic_linker='NetBSD (a.out) ld.so'
10264 else
10265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10266 soname_spec='${libname}${release}${shared_ext}$major'
10267 dynamic_linker='NetBSD ld.elf_so'
10269 shlibpath_var=LD_LIBRARY_PATH
10270 shlibpath_overrides_runpath=yes
10271 hardcode_into_libs=yes
10274 newsos6)
10275 version_type=linux
10276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10277 shlibpath_var=LD_LIBRARY_PATH
10278 shlibpath_overrides_runpath=yes
10281 *nto* | *qnx*)
10282 version_type=qnx
10283 need_lib_prefix=no
10284 need_version=no
10285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10286 soname_spec='${libname}${release}${shared_ext}$major'
10287 shlibpath_var=LD_LIBRARY_PATH
10288 shlibpath_overrides_runpath=no
10289 hardcode_into_libs=yes
10290 dynamic_linker='ldqnx.so'
10293 openbsd*)
10294 version_type=sunos
10295 sys_lib_dlsearch_path_spec="/usr/lib"
10296 need_lib_prefix=no
10297 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10298 case $host_os in
10299 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10300 *) need_version=no ;;
10301 esac
10302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10303 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10304 shlibpath_var=LD_LIBRARY_PATH
10305 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10306 case $host_os in
10307 openbsd2.[89] | openbsd2.[89].*)
10308 shlibpath_overrides_runpath=no
10311 shlibpath_overrides_runpath=yes
10313 esac
10314 else
10315 shlibpath_overrides_runpath=yes
10319 os2*)
10320 libname_spec='$name'
10321 shrext_cmds=".dll"
10322 need_lib_prefix=no
10323 library_names_spec='$libname${shared_ext} $libname.a'
10324 dynamic_linker='OS/2 ld.exe'
10325 shlibpath_var=LIBPATH
10328 osf3* | osf4* | osf5*)
10329 version_type=osf
10330 need_lib_prefix=no
10331 need_version=no
10332 soname_spec='${libname}${release}${shared_ext}$major'
10333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10334 shlibpath_var=LD_LIBRARY_PATH
10335 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10336 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10339 rdos*)
10340 dynamic_linker=no
10343 solaris*)
10344 version_type=linux
10345 need_lib_prefix=no
10346 need_version=no
10347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10348 soname_spec='${libname}${release}${shared_ext}$major'
10349 shlibpath_var=LD_LIBRARY_PATH
10350 shlibpath_overrides_runpath=yes
10351 hardcode_into_libs=yes
10352 # ldd complains unless libraries are executable
10353 postinstall_cmds='chmod +x $lib'
10356 sunos4*)
10357 version_type=sunos
10358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10359 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10360 shlibpath_var=LD_LIBRARY_PATH
10361 shlibpath_overrides_runpath=yes
10362 if test "$with_gnu_ld" = yes; then
10363 need_lib_prefix=no
10365 need_version=yes
10368 sysv4 | sysv4.3*)
10369 version_type=linux
10370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10371 soname_spec='${libname}${release}${shared_ext}$major'
10372 shlibpath_var=LD_LIBRARY_PATH
10373 case $host_vendor in
10374 sni)
10375 shlibpath_overrides_runpath=no
10376 need_lib_prefix=no
10377 runpath_var=LD_RUN_PATH
10379 siemens)
10380 need_lib_prefix=no
10382 motorola)
10383 need_lib_prefix=no
10384 need_version=no
10385 shlibpath_overrides_runpath=no
10386 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10388 esac
10391 sysv4*MP*)
10392 if test -d /usr/nec ;then
10393 version_type=linux
10394 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10395 soname_spec='$libname${shared_ext}.$major'
10396 shlibpath_var=LD_LIBRARY_PATH
10400 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10401 version_type=freebsd-elf
10402 need_lib_prefix=no
10403 need_version=no
10404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10405 soname_spec='${libname}${release}${shared_ext}$major'
10406 shlibpath_var=LD_LIBRARY_PATH
10407 shlibpath_overrides_runpath=yes
10408 hardcode_into_libs=yes
10409 if test "$with_gnu_ld" = yes; then
10410 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10411 else
10412 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10413 case $host_os in
10414 sco3.2v5*)
10415 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10417 esac
10419 sys_lib_dlsearch_path_spec='/usr/lib'
10422 tpf*)
10423 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10424 version_type=linux
10425 need_lib_prefix=no
10426 need_version=no
10427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10428 shlibpath_var=LD_LIBRARY_PATH
10429 shlibpath_overrides_runpath=no
10430 hardcode_into_libs=yes
10433 uts4*)
10434 version_type=linux
10435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10436 soname_spec='${libname}${release}${shared_ext}$major'
10437 shlibpath_var=LD_LIBRARY_PATH
10441 dynamic_linker=no
10443 esac
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10445 $as_echo "$dynamic_linker" >&6; }
10446 test "$dynamic_linker" = no && can_build_shared=no
10448 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10449 if test "$GCC" = yes; then
10450 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10453 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10454 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10456 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10457 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10552 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10553 hardcode_action=
10554 if test -n "$hardcode_libdir_flag_spec" ||
10555 test -n "$runpath_var" ||
10556 test "X$hardcode_automatic" = "Xyes" ; then
10558 # We can hardcode non-existent directories.
10559 if test "$hardcode_direct" != no &&
10560 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10561 # have to relink, otherwise we might link with an installed library
10562 # when we should be linking with a yet-to-be-installed one
10563 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10564 test "$hardcode_minus_L" != no; then
10565 # Linking always hardcodes the temporary library directory.
10566 hardcode_action=relink
10567 else
10568 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10569 hardcode_action=immediate
10571 else
10572 # We cannot hardcode anything, or else we can only hardcode existing
10573 # directories.
10574 hardcode_action=unsupported
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10577 $as_echo "$hardcode_action" >&6; }
10579 if test "$hardcode_action" = relink ||
10580 test "$inherit_rpath" = yes; then
10581 # Fast installation is not supported
10582 enable_fast_install=no
10583 elif test "$shlibpath_overrides_runpath" = yes ||
10584 test "$enable_shared" = no; then
10585 # Fast installation is not necessary
10586 enable_fast_install=needless
10594 if test "x$enable_dlopen" != xyes; then
10595 enable_dlopen=unknown
10596 enable_dlopen_self=unknown
10597 enable_dlopen_self_static=unknown
10598 else
10599 lt_cv_dlopen=no
10600 lt_cv_dlopen_libs=
10602 case $host_os in
10603 beos*)
10604 lt_cv_dlopen="load_add_on"
10605 lt_cv_dlopen_libs=
10606 lt_cv_dlopen_self=yes
10609 mingw* | pw32* | cegcc*)
10610 lt_cv_dlopen="LoadLibrary"
10611 lt_cv_dlopen_libs=
10614 cygwin*)
10615 lt_cv_dlopen="dlopen"
10616 lt_cv_dlopen_libs=
10619 darwin*)
10620 # if libdl is installed we need to link against it
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10622 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10623 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10624 $as_echo_n "(cached) " >&6
10625 else
10626 ac_check_lib_save_LIBS=$LIBS
10627 LIBS="-ldl $LIBS"
10628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10629 /* end confdefs.h. */
10631 /* Override any GCC internal prototype to avoid an error.
10632 Use char because int might match the return type of a GCC
10633 builtin and then its argument prototype would still apply. */
10634 #ifdef __cplusplus
10635 extern "C"
10636 #endif
10637 char dlopen ();
10639 main ()
10641 return dlopen ();
10643 return 0;
10645 _ACEOF
10646 if ac_fn_c_try_link "$LINENO"; then :
10647 ac_cv_lib_dl_dlopen=yes
10648 else
10649 ac_cv_lib_dl_dlopen=no
10651 rm -f core conftest.err conftest.$ac_objext \
10652 conftest$ac_exeext conftest.$ac_ext
10653 LIBS=$ac_check_lib_save_LIBS
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10656 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10657 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10658 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10659 else
10661 lt_cv_dlopen="dyld"
10662 lt_cv_dlopen_libs=
10663 lt_cv_dlopen_self=yes
10670 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10671 if test "x$ac_cv_func_shl_load" = x""yes; then :
10672 lt_cv_dlopen="shl_load"
10673 else
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10675 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10676 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10677 $as_echo_n "(cached) " >&6
10678 else
10679 ac_check_lib_save_LIBS=$LIBS
10680 LIBS="-ldld $LIBS"
10681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10682 /* end confdefs.h. */
10684 /* Override any GCC internal prototype to avoid an error.
10685 Use char because int might match the return type of a GCC
10686 builtin and then its argument prototype would still apply. */
10687 #ifdef __cplusplus
10688 extern "C"
10689 #endif
10690 char shl_load ();
10692 main ()
10694 return shl_load ();
10696 return 0;
10698 _ACEOF
10699 if ac_fn_c_try_link "$LINENO"; then :
10700 ac_cv_lib_dld_shl_load=yes
10701 else
10702 ac_cv_lib_dld_shl_load=no
10704 rm -f core conftest.err conftest.$ac_objext \
10705 conftest$ac_exeext conftest.$ac_ext
10706 LIBS=$ac_check_lib_save_LIBS
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10709 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10710 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10711 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10712 else
10713 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10714 if test "x$ac_cv_func_dlopen" = x""yes; then :
10715 lt_cv_dlopen="dlopen"
10716 else
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10718 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10719 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10720 $as_echo_n "(cached) " >&6
10721 else
10722 ac_check_lib_save_LIBS=$LIBS
10723 LIBS="-ldl $LIBS"
10724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10725 /* end confdefs.h. */
10727 /* Override any GCC internal prototype to avoid an error.
10728 Use char because int might match the return type of a GCC
10729 builtin and then its argument prototype would still apply. */
10730 #ifdef __cplusplus
10731 extern "C"
10732 #endif
10733 char dlopen ();
10735 main ()
10737 return dlopen ();
10739 return 0;
10741 _ACEOF
10742 if ac_fn_c_try_link "$LINENO"; then :
10743 ac_cv_lib_dl_dlopen=yes
10744 else
10745 ac_cv_lib_dl_dlopen=no
10747 rm -f core conftest.err conftest.$ac_objext \
10748 conftest$ac_exeext conftest.$ac_ext
10749 LIBS=$ac_check_lib_save_LIBS
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10752 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10753 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10754 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10755 else
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10757 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10758 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10759 $as_echo_n "(cached) " >&6
10760 else
10761 ac_check_lib_save_LIBS=$LIBS
10762 LIBS="-lsvld $LIBS"
10763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10764 /* end confdefs.h. */
10766 /* Override any GCC internal prototype to avoid an error.
10767 Use char because int might match the return type of a GCC
10768 builtin and then its argument prototype would still apply. */
10769 #ifdef __cplusplus
10770 extern "C"
10771 #endif
10772 char dlopen ();
10774 main ()
10776 return dlopen ();
10778 return 0;
10780 _ACEOF
10781 if ac_fn_c_try_link "$LINENO"; then :
10782 ac_cv_lib_svld_dlopen=yes
10783 else
10784 ac_cv_lib_svld_dlopen=no
10786 rm -f core conftest.err conftest.$ac_objext \
10787 conftest$ac_exeext conftest.$ac_ext
10788 LIBS=$ac_check_lib_save_LIBS
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10791 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10792 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10793 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10794 else
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10796 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10797 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10798 $as_echo_n "(cached) " >&6
10799 else
10800 ac_check_lib_save_LIBS=$LIBS
10801 LIBS="-ldld $LIBS"
10802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10803 /* end confdefs.h. */
10805 /* Override any GCC internal prototype to avoid an error.
10806 Use char because int might match the return type of a GCC
10807 builtin and then its argument prototype would still apply. */
10808 #ifdef __cplusplus
10809 extern "C"
10810 #endif
10811 char dld_link ();
10813 main ()
10815 return dld_link ();
10817 return 0;
10819 _ACEOF
10820 if ac_fn_c_try_link "$LINENO"; then :
10821 ac_cv_lib_dld_dld_link=yes
10822 else
10823 ac_cv_lib_dld_dld_link=no
10825 rm -f core conftest.err conftest.$ac_objext \
10826 conftest$ac_exeext conftest.$ac_ext
10827 LIBS=$ac_check_lib_save_LIBS
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10830 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10831 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10832 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10851 esac
10853 if test "x$lt_cv_dlopen" != xno; then
10854 enable_dlopen=yes
10855 else
10856 enable_dlopen=no
10859 case $lt_cv_dlopen in
10860 dlopen)
10861 save_CPPFLAGS="$CPPFLAGS"
10862 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10864 save_LDFLAGS="$LDFLAGS"
10865 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10867 save_LIBS="$LIBS"
10868 LIBS="$lt_cv_dlopen_libs $LIBS"
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10871 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10872 if test "${lt_cv_dlopen_self+set}" = set; then :
10873 $as_echo_n "(cached) " >&6
10874 else
10875 if test "$cross_compiling" = yes; then :
10876 lt_cv_dlopen_self=cross
10877 else
10878 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10879 lt_status=$lt_dlunknown
10880 cat > conftest.$ac_ext <<_LT_EOF
10881 #line 10881 "configure"
10882 #include "confdefs.h"
10884 #if HAVE_DLFCN_H
10885 #include <dlfcn.h>
10886 #endif
10888 #include <stdio.h>
10890 #ifdef RTLD_GLOBAL
10891 # define LT_DLGLOBAL RTLD_GLOBAL
10892 #else
10893 # ifdef DL_GLOBAL
10894 # define LT_DLGLOBAL DL_GLOBAL
10895 # else
10896 # define LT_DLGLOBAL 0
10897 # endif
10898 #endif
10900 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10901 find out it does not work in some platform. */
10902 #ifndef LT_DLLAZY_OR_NOW
10903 # ifdef RTLD_LAZY
10904 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10905 # else
10906 # ifdef DL_LAZY
10907 # define LT_DLLAZY_OR_NOW DL_LAZY
10908 # else
10909 # ifdef RTLD_NOW
10910 # define LT_DLLAZY_OR_NOW RTLD_NOW
10911 # else
10912 # ifdef DL_NOW
10913 # define LT_DLLAZY_OR_NOW DL_NOW
10914 # else
10915 # define LT_DLLAZY_OR_NOW 0
10916 # endif
10917 # endif
10918 # endif
10919 # endif
10920 #endif
10922 /* When -fvisbility=hidden is used, assume the code has been annotated
10923 correspondingly for the symbols needed. */
10924 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10925 void fnord () __attribute__((visibility("default")));
10926 #endif
10928 void fnord () { int i=42; }
10929 int main ()
10931 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10932 int status = $lt_dlunknown;
10934 if (self)
10936 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10937 else
10939 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10940 else puts (dlerror ());
10942 /* dlclose (self); */
10944 else
10945 puts (dlerror ());
10947 return status;
10949 _LT_EOF
10950 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10951 (eval $ac_link) 2>&5
10952 ac_status=$?
10953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10954 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10955 (./conftest; exit; ) >&5 2>/dev/null
10956 lt_status=$?
10957 case x$lt_status in
10958 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10959 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10960 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10961 esac
10962 else :
10963 # compilation failed
10964 lt_cv_dlopen_self=no
10967 rm -fr conftest*
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10972 $as_echo "$lt_cv_dlopen_self" >&6; }
10974 if test "x$lt_cv_dlopen_self" = xyes; then
10975 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10977 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10978 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10979 $as_echo_n "(cached) " >&6
10980 else
10981 if test "$cross_compiling" = yes; then :
10982 lt_cv_dlopen_self_static=cross
10983 else
10984 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10985 lt_status=$lt_dlunknown
10986 cat > conftest.$ac_ext <<_LT_EOF
10987 #line 10987 "configure"
10988 #include "confdefs.h"
10990 #if HAVE_DLFCN_H
10991 #include <dlfcn.h>
10992 #endif
10994 #include <stdio.h>
10996 #ifdef RTLD_GLOBAL
10997 # define LT_DLGLOBAL RTLD_GLOBAL
10998 #else
10999 # ifdef DL_GLOBAL
11000 # define LT_DLGLOBAL DL_GLOBAL
11001 # else
11002 # define LT_DLGLOBAL 0
11003 # endif
11004 #endif
11006 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11007 find out it does not work in some platform. */
11008 #ifndef LT_DLLAZY_OR_NOW
11009 # ifdef RTLD_LAZY
11010 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11011 # else
11012 # ifdef DL_LAZY
11013 # define LT_DLLAZY_OR_NOW DL_LAZY
11014 # else
11015 # ifdef RTLD_NOW
11016 # define LT_DLLAZY_OR_NOW RTLD_NOW
11017 # else
11018 # ifdef DL_NOW
11019 # define LT_DLLAZY_OR_NOW DL_NOW
11020 # else
11021 # define LT_DLLAZY_OR_NOW 0
11022 # endif
11023 # endif
11024 # endif
11025 # endif
11026 #endif
11028 /* When -fvisbility=hidden is used, assume the code has been annotated
11029 correspondingly for the symbols needed. */
11030 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11031 void fnord () __attribute__((visibility("default")));
11032 #endif
11034 void fnord () { int i=42; }
11035 int main ()
11037 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11038 int status = $lt_dlunknown;
11040 if (self)
11042 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11043 else
11045 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11046 else puts (dlerror ());
11048 /* dlclose (self); */
11050 else
11051 puts (dlerror ());
11053 return status;
11055 _LT_EOF
11056 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11057 (eval $ac_link) 2>&5
11058 ac_status=$?
11059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11060 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11061 (./conftest; exit; ) >&5 2>/dev/null
11062 lt_status=$?
11063 case x$lt_status in
11064 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11065 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11066 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11067 esac
11068 else :
11069 # compilation failed
11070 lt_cv_dlopen_self_static=no
11073 rm -fr conftest*
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11078 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11081 CPPFLAGS="$save_CPPFLAGS"
11082 LDFLAGS="$save_LDFLAGS"
11083 LIBS="$save_LIBS"
11085 esac
11087 case $lt_cv_dlopen_self in
11088 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11089 *) enable_dlopen_self=unknown ;;
11090 esac
11092 case $lt_cv_dlopen_self_static in
11093 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11094 *) enable_dlopen_self_static=unknown ;;
11095 esac
11114 striplib=
11115 old_striplib=
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11117 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11118 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11119 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11120 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11122 $as_echo "yes" >&6; }
11123 else
11124 # FIXME - insert some real tests, host_os isn't really good enough
11125 case $host_os in
11126 darwin*)
11127 if test -n "$STRIP" ; then
11128 striplib="$STRIP -x"
11129 old_striplib="$STRIP -S"
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11131 $as_echo "yes" >&6; }
11132 else
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11134 $as_echo "no" >&6; }
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11139 $as_echo "no" >&6; }
11141 esac
11155 # Report which library types will actually be built
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11157 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11159 $as_echo "$can_build_shared" >&6; }
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11162 $as_echo_n "checking whether to build shared libraries... " >&6; }
11163 test "$can_build_shared" = "no" && enable_shared=no
11165 # On AIX, shared libraries and static libraries use the same namespace, and
11166 # are all built from PIC.
11167 case $host_os in
11168 aix3*)
11169 test "$enable_shared" = yes && enable_static=no
11170 if test -n "$RANLIB"; then
11171 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11172 postinstall_cmds='$RANLIB $lib'
11176 aix[4-9]*)
11177 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11178 test "$enable_shared" = yes && enable_static=no
11181 esac
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11183 $as_echo "$enable_shared" >&6; }
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11186 $as_echo_n "checking whether to build static libraries... " >&6; }
11187 # Make sure either enable_shared or enable_static is yes.
11188 test "$enable_shared" = yes || enable_static=yes
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11190 $as_echo "$enable_static" >&6; }
11196 ac_ext=c
11197 ac_cpp='$CPP $CPPFLAGS'
11198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11202 CC="$lt_save_CC"
11216 # Source file extension for Go test sources.
11217 ac_ext=go
11219 # Object file extension for compiled Go test sources.
11220 objext=o
11221 objext_GO=$objext
11223 # Code to be used in simple compile tests
11224 lt_simple_compile_test_code="package main; func main() { }"
11226 # Code to be used in simple link tests
11227 lt_simple_link_test_code='package main; func main() { }'
11229 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11236 # If no C compiler was specified, use CC.
11237 LTCC=${LTCC-"$CC"}
11239 # If no C compiler flags were specified, use CFLAGS.
11240 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11242 # Allow CC to be a program name with arguments.
11243 compiler=$CC
11246 # save warnings/boilerplate of simple test code
11247 ac_outfile=conftest.$ac_objext
11248 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11249 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11250 _lt_compiler_boilerplate=`cat conftest.err`
11251 $RM conftest*
11253 ac_outfile=conftest.$ac_objext
11254 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11255 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11256 _lt_linker_boilerplate=`cat conftest.err`
11257 $RM -r conftest*
11260 # Allow CC to be a program name with arguments.
11261 lt_save_CC="$CC"
11262 lt_save_GCC="$GCC"
11263 GCC=yes
11264 CC=${GOC-"gccgo"}
11265 compiler=$CC
11266 compiler_GO=$CC
11267 LD_GO="$LD"
11268 for cc_temp in $compiler""; do
11269 case $cc_temp in
11270 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11271 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11272 \-*) ;;
11273 *) break;;
11274 esac
11275 done
11276 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11279 # Go did not exist at the time GCC didn't implicitly link libc in.
11280 archive_cmds_need_lc_GO=no
11282 old_archive_cmds_GO=$old_archive_cmds
11284 ## CAVEAT EMPTOR:
11285 ## There is no encapsulation within the following macros, do not change
11286 ## the running order or otherwise move them around unless you know exactly
11287 ## what you are doing...
11288 if test -n "$compiler"; then
11290 lt_prog_compiler_no_builtin_flag_GO=
11292 if test "$GCC" = yes; then
11293 case $cc_basename in
11294 nvcc*)
11295 lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11297 lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11298 esac
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11301 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11302 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11303 $as_echo_n "(cached) " >&6
11304 else
11305 lt_cv_prog_compiler_rtti_exceptions=no
11306 ac_outfile=conftest.$ac_objext
11307 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11308 lt_compiler_flag="-fno-rtti -fno-exceptions"
11309 # Insert the option either (1) after the last *FLAGS variable, or
11310 # (2) before a word containing "conftest.", or (3) at the end.
11311 # Note that $ac_compile itself does not contain backslashes and begins
11312 # with a dollar sign (not a hyphen), so the echo should work correctly.
11313 # The option is referenced via a variable to avoid confusing sed.
11314 lt_compile=`echo "$ac_compile" | $SED \
11315 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11316 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11317 -e 's:$: $lt_compiler_flag:'`
11318 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11319 (eval "$lt_compile" 2>conftest.err)
11320 ac_status=$?
11321 cat conftest.err >&5
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 if (exit $ac_status) && test -s "$ac_outfile"; then
11324 # The compiler can only warn and ignore the option if not recognized
11325 # So say no if there are warnings other than the usual output.
11326 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11327 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11328 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11329 lt_cv_prog_compiler_rtti_exceptions=yes
11332 $RM conftest*
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11336 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11338 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11339 lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11340 else
11348 lt_prog_compiler_wl_GO=
11349 lt_prog_compiler_pic_GO=
11350 lt_prog_compiler_static_GO=
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11353 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11355 if test "$GCC" = yes; then
11356 lt_prog_compiler_wl_GO='-Wl,'
11357 lt_prog_compiler_static_GO='-static'
11359 case $host_os in
11360 aix*)
11361 # All AIX code is PIC.
11362 if test "$host_cpu" = ia64; then
11363 # AIX 5 now supports IA64 processor
11364 lt_prog_compiler_static_GO='-Bstatic'
11368 amigaos*)
11369 case $host_cpu in
11370 powerpc)
11371 # see comment about AmigaOS4 .so support
11372 lt_prog_compiler_pic_GO='-fPIC'
11374 m68k)
11375 # FIXME: we need at least 68020 code to build shared libraries, but
11376 # adding the `-m68020' flag to GCC prevents building anything better,
11377 # like `-m68040'.
11378 lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11380 esac
11383 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11384 # PIC is the default for these OSes.
11387 mingw* | cygwin* | pw32* | os2* | cegcc*)
11388 # This hack is so that the source file can tell whether it is being
11389 # built for inclusion in a dll (and should export symbols for example).
11390 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11391 # (--disable-auto-import) libraries
11392 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11395 darwin* | rhapsody*)
11396 # PIC is the default on this platform
11397 # Common symbols not allowed in MH_DYLIB files
11398 lt_prog_compiler_pic_GO='-fno-common'
11401 haiku*)
11402 # PIC is the default for Haiku.
11403 # The "-static" flag exists, but is broken.
11404 lt_prog_compiler_static_GO=
11407 hpux*)
11408 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11409 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11410 # sets the default TLS model and affects inlining.
11411 case $host_cpu in
11412 hppa*64*)
11413 # +Z the default
11416 lt_prog_compiler_pic_GO='-fPIC'
11418 esac
11421 interix[3-9]*)
11422 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11423 # Instead, we relocate shared libraries at runtime.
11426 msdosdjgpp*)
11427 # Just because we use GCC doesn't mean we suddenly get shared libraries
11428 # on systems that don't support them.
11429 lt_prog_compiler_can_build_shared_GO=no
11430 enable_shared=no
11433 *nto* | *qnx*)
11434 # QNX uses GNU C++, but need to define -shared option too, otherwise
11435 # it will coredump.
11436 lt_prog_compiler_pic_GO='-fPIC -shared'
11439 sysv4*MP*)
11440 if test -d /usr/nec; then
11441 lt_prog_compiler_pic_GO=-Kconform_pic
11446 lt_prog_compiler_pic_GO='-fPIC'
11448 esac
11450 case $cc_basename in
11451 nvcc*) # Cuda Compiler Driver 2.2
11452 lt_prog_compiler_wl_GO='-Xlinker '
11453 lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11455 esac
11456 else
11457 # PORTME Check for flag to pass linker flags through the system compiler.
11458 case $host_os in
11459 aix*)
11460 lt_prog_compiler_wl_GO='-Wl,'
11461 if test "$host_cpu" = ia64; then
11462 # AIX 5 now supports IA64 processor
11463 lt_prog_compiler_static_GO='-Bstatic'
11464 else
11465 lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11469 mingw* | cygwin* | pw32* | os2* | cegcc*)
11470 # This hack is so that the source file can tell whether it is being
11471 # built for inclusion in a dll (and should export symbols for example).
11472 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11475 hpux9* | hpux10* | hpux11*)
11476 lt_prog_compiler_wl_GO='-Wl,'
11477 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11478 # not for PA HP-UX.
11479 case $host_cpu in
11480 hppa*64*|ia64*)
11481 # +Z the default
11484 lt_prog_compiler_pic_GO='+Z'
11486 esac
11487 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11488 lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11491 irix5* | irix6* | nonstopux*)
11492 lt_prog_compiler_wl_GO='-Wl,'
11493 # PIC (with -KPIC) is the default.
11494 lt_prog_compiler_static_GO='-non_shared'
11497 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11498 case $cc_basename in
11499 # old Intel for x86_64 which still supported -KPIC.
11500 ecc*)
11501 lt_prog_compiler_wl_GO='-Wl,'
11502 lt_prog_compiler_pic_GO='-KPIC'
11503 lt_prog_compiler_static_GO='-static'
11505 # icc used to be incompatible with GCC.
11506 # ICC 10 doesn't accept -KPIC any more.
11507 icc* | ifort*)
11508 lt_prog_compiler_wl_GO='-Wl,'
11509 lt_prog_compiler_pic_GO='-fPIC'
11510 lt_prog_compiler_static_GO='-static'
11512 # Lahey Fortran 8.1.
11513 lf95*)
11514 lt_prog_compiler_wl_GO='-Wl,'
11515 lt_prog_compiler_pic_GO='--shared'
11516 lt_prog_compiler_static_GO='--static'
11518 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11519 # Portland Group compilers (*not* the Pentium gcc compiler,
11520 # which looks to be a dead project)
11521 lt_prog_compiler_wl_GO='-Wl,'
11522 lt_prog_compiler_pic_GO='-fpic'
11523 lt_prog_compiler_static_GO='-Bstatic'
11525 ccc*)
11526 lt_prog_compiler_wl_GO='-Wl,'
11527 # All Alpha code is PIC.
11528 lt_prog_compiler_static_GO='-non_shared'
11530 xl* | bgxl* | bgf* | mpixl*)
11531 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11532 lt_prog_compiler_wl_GO='-Wl,'
11533 lt_prog_compiler_pic_GO='-qpic'
11534 lt_prog_compiler_static_GO='-qstaticlink'
11537 case `$CC -V 2>&1 | sed 5q` in
11538 *Sun\ F* | *Sun*Fortran*)
11539 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11540 lt_prog_compiler_pic_GO='-KPIC'
11541 lt_prog_compiler_static_GO='-Bstatic'
11542 lt_prog_compiler_wl_GO=''
11544 *Sun\ C*)
11545 # Sun C 5.9
11546 lt_prog_compiler_pic_GO='-KPIC'
11547 lt_prog_compiler_static_GO='-Bstatic'
11548 lt_prog_compiler_wl_GO='-Wl,'
11550 esac
11552 esac
11555 newsos6)
11556 lt_prog_compiler_pic_GO='-KPIC'
11557 lt_prog_compiler_static_GO='-Bstatic'
11560 *nto* | *qnx*)
11561 # QNX uses GNU C++, but need to define -shared option too, otherwise
11562 # it will coredump.
11563 lt_prog_compiler_pic_GO='-fPIC -shared'
11566 osf3* | osf4* | osf5*)
11567 lt_prog_compiler_wl_GO='-Wl,'
11568 # All OSF/1 code is PIC.
11569 lt_prog_compiler_static_GO='-non_shared'
11572 rdos*)
11573 lt_prog_compiler_static_GO='-non_shared'
11576 solaris*)
11577 lt_prog_compiler_pic_GO='-KPIC'
11578 lt_prog_compiler_static_GO='-Bstatic'
11579 case $cc_basename in
11580 f77* | f90* | f95*)
11581 lt_prog_compiler_wl_GO='-Qoption ld ';;
11583 lt_prog_compiler_wl_GO='-Wl,';;
11584 esac
11587 sunos4*)
11588 lt_prog_compiler_wl_GO='-Qoption ld '
11589 lt_prog_compiler_pic_GO='-PIC'
11590 lt_prog_compiler_static_GO='-Bstatic'
11593 sysv4 | sysv4.2uw2* | sysv4.3*)
11594 lt_prog_compiler_wl_GO='-Wl,'
11595 lt_prog_compiler_pic_GO='-KPIC'
11596 lt_prog_compiler_static_GO='-Bstatic'
11599 sysv4*MP*)
11600 if test -d /usr/nec ;then
11601 lt_prog_compiler_pic_GO='-Kconform_pic'
11602 lt_prog_compiler_static_GO='-Bstatic'
11606 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11607 lt_prog_compiler_wl_GO='-Wl,'
11608 lt_prog_compiler_pic_GO='-KPIC'
11609 lt_prog_compiler_static_GO='-Bstatic'
11612 unicos*)
11613 lt_prog_compiler_wl_GO='-Wl,'
11614 lt_prog_compiler_can_build_shared_GO=no
11617 uts4*)
11618 lt_prog_compiler_pic_GO='-pic'
11619 lt_prog_compiler_static_GO='-Bstatic'
11623 lt_prog_compiler_can_build_shared_GO=no
11625 esac
11628 case $host_os in
11629 # For platforms which do not support PIC, -DPIC is meaningless:
11630 *djgpp*)
11631 lt_prog_compiler_pic_GO=
11634 lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
11636 esac
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
11638 $as_echo "$lt_prog_compiler_pic_GO" >&6; }
11643 # Check to make sure the PIC flag actually works.
11645 if test -n "$lt_prog_compiler_pic_GO"; then
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
11647 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
11648 if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
11649 $as_echo_n "(cached) " >&6
11650 else
11651 lt_cv_prog_compiler_pic_works_GO=no
11652 ac_outfile=conftest.$ac_objext
11653 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11654 lt_compiler_flag="$lt_prog_compiler_pic_GO"
11655 # Insert the option either (1) after the last *FLAGS variable, or
11656 # (2) before a word containing "conftest.", or (3) at the end.
11657 # Note that $ac_compile itself does not contain backslashes and begins
11658 # with a dollar sign (not a hyphen), so the echo should work correctly.
11659 # The option is referenced via a variable to avoid confusing sed.
11660 lt_compile=`echo "$ac_compile" | $SED \
11661 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11662 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11663 -e 's:$: $lt_compiler_flag:'`
11664 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11665 (eval "$lt_compile" 2>conftest.err)
11666 ac_status=$?
11667 cat conftest.err >&5
11668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669 if (exit $ac_status) && test -s "$ac_outfile"; then
11670 # The compiler can only warn and ignore the option if not recognized
11671 # So say no if there are warnings other than the usual output.
11672 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11673 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11674 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11675 lt_cv_prog_compiler_pic_works_GO=yes
11678 $RM conftest*
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
11682 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
11684 if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
11685 case $lt_prog_compiler_pic_GO in
11686 "" | " "*) ;;
11687 *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
11688 esac
11689 else
11690 lt_prog_compiler_pic_GO=
11691 lt_prog_compiler_can_build_shared_GO=no
11699 # Check to make sure the static flag actually works.
11701 wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11703 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11704 if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
11705 $as_echo_n "(cached) " >&6
11706 else
11707 lt_cv_prog_compiler_static_works_GO=no
11708 save_LDFLAGS="$LDFLAGS"
11709 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11710 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11711 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11712 # The linker can only warn and ignore the option if not recognized
11713 # So say no if there are warnings
11714 if test -s conftest.err; then
11715 # Append any errors to the config.log.
11716 cat conftest.err 1>&5
11717 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11718 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11719 if diff conftest.exp conftest.er2 >/dev/null; then
11720 lt_cv_prog_compiler_static_works_GO=yes
11722 else
11723 lt_cv_prog_compiler_static_works_GO=yes
11726 $RM -r conftest*
11727 LDFLAGS="$save_LDFLAGS"
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
11731 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
11733 if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
11735 else
11736 lt_prog_compiler_static_GO=
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11743 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11744 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11745 $as_echo_n "(cached) " >&6
11746 else
11747 lt_cv_prog_compiler_c_o_GO=no
11748 $RM -r conftest 2>/dev/null
11749 mkdir conftest
11750 cd conftest
11751 mkdir out
11752 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11754 lt_compiler_flag="-o out/conftest2.$ac_objext"
11755 # Insert the option either (1) after the last *FLAGS variable, or
11756 # (2) before a word containing "conftest.", or (3) at the end.
11757 # Note that $ac_compile itself does not contain backslashes and begins
11758 # with a dollar sign (not a hyphen), so the echo should work correctly.
11759 lt_compile=`echo "$ac_compile" | $SED \
11760 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11761 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11762 -e 's:$: $lt_compiler_flag:'`
11763 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11764 (eval "$lt_compile" 2>out/conftest.err)
11765 ac_status=$?
11766 cat out/conftest.err >&5
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11769 then
11770 # The compiler can only warn and ignore the option if not recognized
11771 # So say no if there are warnings
11772 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11773 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11774 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11775 lt_cv_prog_compiler_c_o_GO=yes
11778 chmod u+w . 2>&5
11779 $RM conftest*
11780 # SGI C++ compiler will create directory out/ii_files/ for
11781 # template instantiation
11782 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11783 $RM out/* && rmdir out
11784 cd ..
11785 $RM -r conftest
11786 $RM conftest*
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
11790 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11795 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11796 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11797 $as_echo_n "(cached) " >&6
11798 else
11799 lt_cv_prog_compiler_c_o_GO=no
11800 $RM -r conftest 2>/dev/null
11801 mkdir conftest
11802 cd conftest
11803 mkdir out
11804 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11806 lt_compiler_flag="-o out/conftest2.$ac_objext"
11807 # Insert the option either (1) after the last *FLAGS variable, or
11808 # (2) before a word containing "conftest.", or (3) at the end.
11809 # Note that $ac_compile itself does not contain backslashes and begins
11810 # with a dollar sign (not a hyphen), so the echo should work correctly.
11811 lt_compile=`echo "$ac_compile" | $SED \
11812 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11813 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11814 -e 's:$: $lt_compiler_flag:'`
11815 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11816 (eval "$lt_compile" 2>out/conftest.err)
11817 ac_status=$?
11818 cat out/conftest.err >&5
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11821 then
11822 # The compiler can only warn and ignore the option if not recognized
11823 # So say no if there are warnings
11824 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11825 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11826 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11827 lt_cv_prog_compiler_c_o_GO=yes
11830 chmod u+w . 2>&5
11831 $RM conftest*
11832 # SGI C++ compiler will create directory out/ii_files/ for
11833 # template instantiation
11834 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11835 $RM out/* && rmdir out
11836 cd ..
11837 $RM -r conftest
11838 $RM conftest*
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
11842 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
11847 hard_links="nottested"
11848 if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
11849 # do not overwrite the value of need_locks provided by the user
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11851 $as_echo_n "checking if we can lock with hard links... " >&6; }
11852 hard_links=yes
11853 $RM conftest*
11854 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11855 touch conftest.a
11856 ln conftest.a conftest.b 2>&5 || hard_links=no
11857 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11859 $as_echo "$hard_links" >&6; }
11860 if test "$hard_links" = no; then
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11862 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11863 need_locks=warn
11865 else
11866 need_locks=no
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11872 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11874 runpath_var=
11875 allow_undefined_flag_GO=
11876 always_export_symbols_GO=no
11877 archive_cmds_GO=
11878 archive_expsym_cmds_GO=
11879 compiler_needs_object_GO=no
11880 enable_shared_with_static_runtimes_GO=no
11881 export_dynamic_flag_spec_GO=
11882 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11883 hardcode_automatic_GO=no
11884 hardcode_direct_GO=no
11885 hardcode_direct_absolute_GO=no
11886 hardcode_libdir_flag_spec_GO=
11887 hardcode_libdir_flag_spec_ld_GO=
11888 hardcode_libdir_separator_GO=
11889 hardcode_minus_L_GO=no
11890 hardcode_shlibpath_var_GO=unsupported
11891 inherit_rpath_GO=no
11892 link_all_deplibs_GO=unknown
11893 module_cmds_GO=
11894 module_expsym_cmds_GO=
11895 old_archive_from_new_cmds_GO=
11896 old_archive_from_expsyms_cmds_GO=
11897 thread_safe_flag_spec_GO=
11898 whole_archive_flag_spec_GO=
11899 # include_expsyms should be a list of space-separated symbols to be *always*
11900 # included in the symbol list
11901 include_expsyms_GO=
11902 # exclude_expsyms can be an extended regexp of symbols to exclude
11903 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11904 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11905 # as well as any symbol that contains `d'.
11906 exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11907 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11908 # platforms (ab)use it in PIC code, but their linkers get confused if
11909 # the symbol is explicitly referenced. Since portable code cannot
11910 # rely on this symbol name, it's probably fine to never include it in
11911 # preloaded symbol tables.
11912 # Exclude shared library initialization/finalization symbols.
11913 extract_expsyms_cmds=
11915 case $host_os in
11916 cygwin* | mingw* | pw32* | cegcc*)
11917 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11918 # When not using gcc, we currently assume that we are using
11919 # Microsoft Visual C++.
11920 if test "$GCC" != yes; then
11921 with_gnu_ld=no
11924 interix*)
11925 # we just hope/assume this is gcc and not c89 (= MSVC++)
11926 with_gnu_ld=yes
11928 openbsd*)
11929 with_gnu_ld=no
11931 esac
11933 ld_shlibs_GO=yes
11935 # On some targets, GNU ld is compatible enough with the native linker
11936 # that we're better off using the native interface for both.
11937 lt_use_gnu_ld_interface=no
11938 if test "$with_gnu_ld" = yes; then
11939 case $host_os in
11940 aix*)
11941 # The AIX port of GNU ld has always aspired to compatibility
11942 # with the native linker. However, as the warning in the GNU ld
11943 # block says, versions before 2.19.5* couldn't really create working
11944 # shared libraries, regardless of the interface used.
11945 case `$LD -v 2>&1` in
11946 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11947 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11948 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11950 lt_use_gnu_ld_interface=yes
11952 esac
11955 lt_use_gnu_ld_interface=yes
11957 esac
11960 if test "$lt_use_gnu_ld_interface" = yes; then
11961 # If archive_cmds runs LD, not CC, wlarc should be empty
11962 wlarc='${wl}'
11964 # Set some defaults for GNU ld with shared library support. These
11965 # are reset later if shared libraries are not supported. Putting them
11966 # here allows them to be overridden if necessary.
11967 runpath_var=LD_RUN_PATH
11968 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
11969 export_dynamic_flag_spec_GO='${wl}--export-dynamic'
11970 # ancient GNU ld didn't support --whole-archive et. al.
11971 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11972 whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11973 else
11974 whole_archive_flag_spec_GO=
11976 supports_anon_versioning=no
11977 case `$LD -v 2>&1` in
11978 *GNU\ gold*) supports_anon_versioning=yes ;;
11979 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11980 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11981 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11982 *\ 2.11.*) ;; # other 2.11 versions
11983 *) supports_anon_versioning=yes ;;
11984 esac
11986 # See if GNU ld supports shared libraries.
11987 case $host_os in
11988 aix[3-9]*)
11989 # On AIX/PPC, the GNU linker is very broken
11990 if test "$host_cpu" != ia64; then
11991 ld_shlibs_GO=no
11992 cat <<_LT_EOF 1>&2
11994 *** Warning: the GNU linker, at least up to release 2.19, is reported
11995 *** to be unable to reliably create shared libraries on AIX.
11996 *** Therefore, libtool is disabling shared libraries support. If you
11997 *** really care for shared libraries, you may want to install binutils
11998 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11999 *** You will then need to restart the configuration process.
12001 _LT_EOF
12005 amigaos*)
12006 case $host_cpu in
12007 powerpc)
12008 # see comment about AmigaOS4 .so support
12009 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12010 archive_expsym_cmds_GO=''
12012 m68k)
12013 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)'
12014 hardcode_libdir_flag_spec_GO='-L$libdir'
12015 hardcode_minus_L_GO=yes
12017 esac
12020 beos*)
12021 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12022 allow_undefined_flag_GO=unsupported
12023 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12024 # support --undefined. This deserves some investigation. FIXME
12025 archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12026 else
12027 ld_shlibs_GO=no
12031 cygwin* | mingw* | pw32* | cegcc*)
12032 # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12033 # as there is no search path for DLLs.
12034 hardcode_libdir_flag_spec_GO='-L$libdir'
12035 export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12036 allow_undefined_flag_GO=unsupported
12037 always_export_symbols_GO=no
12038 enable_shared_with_static_runtimes_GO=yes
12039 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12041 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12042 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12043 # If the export-symbols file already is a .def file (1st line
12044 # is EXPORTS), use it as is; otherwise, prepend...
12045 archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12046 cp $export_symbols $output_objdir/$soname.def;
12047 else
12048 echo EXPORTS > $output_objdir/$soname.def;
12049 cat $export_symbols >> $output_objdir/$soname.def;
12051 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12052 else
12053 ld_shlibs_GO=no
12057 haiku*)
12058 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12059 link_all_deplibs_GO=yes
12062 interix[3-9]*)
12063 hardcode_direct_GO=no
12064 hardcode_shlibpath_var_GO=no
12065 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12066 export_dynamic_flag_spec_GO='${wl}-E'
12067 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12068 # Instead, shared libraries are loaded at an image base (0x10000000 by
12069 # default) and relocated if they conflict, which is a slow very memory
12070 # consuming and fragmenting process. To avoid this, we pick a random,
12071 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12072 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12073 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'
12074 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'
12077 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12078 tmp_diet=no
12079 if test "$host_os" = linux-dietlibc; then
12080 case $cc_basename in
12081 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12082 esac
12084 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12085 && test "$tmp_diet" = no
12086 then
12087 tmp_addflag=
12088 tmp_sharedflag='-shared'
12089 case $cc_basename,$host_cpu in
12090 pgcc*) # Portland Group C compiler
12091 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'
12092 tmp_addflag=' $pic_flag'
12094 pgf77* | pgf90* | pgf95* | pgfortran*)
12095 # Portland Group f77 and f90 compilers
12096 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'
12097 tmp_addflag=' $pic_flag -Mnomain' ;;
12098 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12099 tmp_addflag=' -i_dynamic' ;;
12100 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12101 tmp_addflag=' -i_dynamic -nofor_main' ;;
12102 ifc* | ifort*) # Intel Fortran compiler
12103 tmp_addflag=' -nofor_main' ;;
12104 lf95*) # Lahey Fortran 8.1
12105 whole_archive_flag_spec_GO=
12106 tmp_sharedflag='--shared' ;;
12107 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12108 tmp_sharedflag='-qmkshrobj'
12109 tmp_addflag= ;;
12110 nvcc*) # Cuda Compiler Driver 2.2
12111 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'
12112 compiler_needs_object_GO=yes
12114 esac
12115 case `$CC -V 2>&1 | sed 5q` in
12116 *Sun\ C*) # Sun C 5.9
12117 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'
12118 compiler_needs_object_GO=yes
12119 tmp_sharedflag='-G' ;;
12120 *Sun\ F*) # Sun Fortran 8.3
12121 tmp_sharedflag='-G' ;;
12122 esac
12123 archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12125 if test "x$supports_anon_versioning" = xyes; then
12126 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12127 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12128 echo "local: *; };" >> $output_objdir/$libname.ver~
12129 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12132 case $cc_basename in
12133 xlf* | bgf* | bgxlf* | mpixlf*)
12134 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12135 whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12136 hardcode_libdir_flag_spec_GO=
12137 hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12138 archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12139 if test "x$supports_anon_versioning" = xyes; then
12140 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12141 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12142 echo "local: *; };" >> $output_objdir/$libname.ver~
12143 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12146 esac
12147 else
12148 ld_shlibs_GO=no
12152 netbsd*)
12153 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12154 archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12155 wlarc=
12156 else
12157 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12158 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12162 solaris*)
12163 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12164 ld_shlibs_GO=no
12165 cat <<_LT_EOF 1>&2
12167 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12168 *** create shared libraries on Solaris systems. Therefore, libtool
12169 *** is disabling shared libraries support. We urge you to upgrade GNU
12170 *** binutils to release 2.9.1 or newer. Another option is to modify
12171 *** your PATH or compiler configuration so that the native linker is
12172 *** used, and then restart.
12174 _LT_EOF
12175 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12176 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12177 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12178 else
12179 ld_shlibs_GO=no
12183 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12184 case `$LD -v 2>&1` in
12185 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12186 ld_shlibs_GO=no
12187 cat <<_LT_EOF 1>&2
12189 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12190 *** reliably create shared libraries on SCO systems. Therefore, libtool
12191 *** is disabling shared libraries support. We urge you to upgrade GNU
12192 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12193 *** your PATH or compiler configuration so that the native linker is
12194 *** used, and then restart.
12196 _LT_EOF
12199 # For security reasons, it is highly recommended that you always
12200 # use absolute paths for naming shared libraries, and exclude the
12201 # DT_RUNPATH tag from executables and libraries. But doing so
12202 # requires that you compile everything twice, which is a pain.
12203 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12204 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12205 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12206 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12207 else
12208 ld_shlibs_GO=no
12211 esac
12214 sunos4*)
12215 archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12216 wlarc=
12217 hardcode_direct_GO=yes
12218 hardcode_shlibpath_var_GO=no
12222 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12223 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12224 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12225 else
12226 ld_shlibs_GO=no
12229 esac
12231 if test "$ld_shlibs_GO" = no; then
12232 runpath_var=
12233 hardcode_libdir_flag_spec_GO=
12234 export_dynamic_flag_spec_GO=
12235 whole_archive_flag_spec_GO=
12237 else
12238 # PORTME fill in a description of your system's linker (not GNU ld)
12239 case $host_os in
12240 aix3*)
12241 allow_undefined_flag_GO=unsupported
12242 always_export_symbols_GO=yes
12243 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'
12244 # Note: this linker hardcodes the directories in LIBPATH if there
12245 # are no directories specified by -L.
12246 hardcode_minus_L_GO=yes
12247 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12248 # Neither direct hardcoding nor static linking is supported with a
12249 # broken collect2.
12250 hardcode_direct_GO=unsupported
12254 aix[4-9]*)
12255 if test "$host_cpu" = ia64; then
12256 # On IA64, the linker does run time linking by default, so we don't
12257 # have to do anything special.
12258 aix_use_runtimelinking=no
12259 exp_sym_flag='-Bexport'
12260 no_entry_flag=""
12261 else
12262 # If we're using GNU nm, then we don't want the "-C" option.
12263 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12264 # Also, AIX nm treats weak defined symbols like other global
12265 # defined symbols, whereas GNU nm marks them as "W".
12266 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12267 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'
12268 else
12269 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'
12271 aix_use_runtimelinking=no
12273 # Test if we are trying to use run time linking or normal
12274 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12275 # need to do runtime linking.
12276 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12277 for ld_flag in $LDFLAGS; do
12278 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12279 aix_use_runtimelinking=yes
12280 break
12282 done
12284 esac
12286 exp_sym_flag='-bexport'
12287 no_entry_flag='-bnoentry'
12290 # When large executables or shared objects are built, AIX ld can
12291 # have problems creating the table of contents. If linking a library
12292 # or program results in "error TOC overflow" add -mminimal-toc to
12293 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12294 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12296 archive_cmds_GO=''
12297 hardcode_direct_GO=yes
12298 hardcode_direct_absolute_GO=yes
12299 hardcode_libdir_separator_GO=':'
12300 link_all_deplibs_GO=yes
12301 file_list_spec_GO='${wl}-f,'
12303 if test "$GCC" = yes; then
12304 case $host_os in aix4.[012]|aix4.[012].*)
12305 # We only want to do this on AIX 4.2 and lower, the check
12306 # below for broken collect2 doesn't work under 4.3+
12307 collect2name=`${CC} -print-prog-name=collect2`
12308 if test -f "$collect2name" &&
12309 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12310 then
12311 # We have reworked collect2
12313 else
12314 # We have old collect2
12315 hardcode_direct_GO=unsupported
12316 # It fails to find uninstalled libraries when the uninstalled
12317 # path is not listed in the libpath. Setting hardcode_minus_L
12318 # to unsupported forces relinking
12319 hardcode_minus_L_GO=yes
12320 hardcode_libdir_flag_spec_GO='-L$libdir'
12321 hardcode_libdir_separator_GO=
12324 esac
12325 shared_flag='-shared'
12326 if test "$aix_use_runtimelinking" = yes; then
12327 shared_flag="$shared_flag "'${wl}-G'
12329 else
12330 # not using gcc
12331 if test "$host_cpu" = ia64; then
12332 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12333 # chokes on -Wl,-G. The following line is correct:
12334 shared_flag='-G'
12335 else
12336 if test "$aix_use_runtimelinking" = yes; then
12337 shared_flag='${wl}-G'
12338 else
12339 shared_flag='${wl}-bM:SRE'
12344 export_dynamic_flag_spec_GO='${wl}-bexpall'
12345 # It seems that -bexpall does not export symbols beginning with
12346 # underscore (_), so it is better to generate a list of symbols to export.
12347 always_export_symbols_GO=yes
12348 if test "$aix_use_runtimelinking" = yes; then
12349 # Warning - without using the other runtime loading flags (-brtl),
12350 # -berok will link without error, but may produce a broken library.
12351 allow_undefined_flag_GO='-berok'
12352 # Determine the default libpath from the value encoded in an
12353 # empty executable.
12354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12355 /* end confdefs.h. */
12358 main ()
12362 return 0;
12364 _ACEOF
12365 if ac_fn_c_try_link "$LINENO"; then :
12367 lt_aix_libpath_sed='
12368 /Import File Strings/,/^$/ {
12369 /^0/ {
12370 s/^0 *\(.*\)$/\1/
12374 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12375 # Check for a 64-bit object if we didn't find anything.
12376 if test -z "$aix_libpath"; then
12377 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12380 rm -f core conftest.err conftest.$ac_objext \
12381 conftest$ac_exeext conftest.$ac_ext
12382 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12384 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12385 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"
12386 else
12387 if test "$host_cpu" = ia64; then
12388 hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12389 allow_undefined_flag_GO="-z nodefs"
12390 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"
12391 else
12392 # Determine the default libpath from the value encoded in an
12393 # empty executable.
12394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12395 /* end confdefs.h. */
12398 main ()
12402 return 0;
12404 _ACEOF
12405 if ac_fn_c_try_link "$LINENO"; then :
12407 lt_aix_libpath_sed='
12408 /Import File Strings/,/^$/ {
12409 /^0/ {
12410 s/^0 *\(.*\)$/\1/
12414 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12415 # Check for a 64-bit object if we didn't find anything.
12416 if test -z "$aix_libpath"; then
12417 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12420 rm -f core conftest.err conftest.$ac_objext \
12421 conftest$ac_exeext conftest.$ac_ext
12422 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12424 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12425 # Warning - without using the other run time loading flags,
12426 # -berok will link without error, but may produce a broken library.
12427 no_undefined_flag_GO=' ${wl}-bernotok'
12428 allow_undefined_flag_GO=' ${wl}-berok'
12429 if test "$with_gnu_ld" = yes; then
12430 # We only use this code for GNU lds that support --whole-archive.
12431 whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12432 else
12433 # Exported symbols can be pulled into shared objects from archives
12434 whole_archive_flag_spec_GO='$convenience'
12436 archive_cmds_need_lc_GO=yes
12437 # This is similar to how AIX traditionally builds its shared libraries.
12438 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'
12443 amigaos*)
12444 case $host_cpu in
12445 powerpc)
12446 # see comment about AmigaOS4 .so support
12447 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12448 archive_expsym_cmds_GO=''
12450 m68k)
12451 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)'
12452 hardcode_libdir_flag_spec_GO='-L$libdir'
12453 hardcode_minus_L_GO=yes
12455 esac
12458 bsdi[45]*)
12459 export_dynamic_flag_spec_GO=-rdynamic
12462 cygwin* | mingw* | pw32* | cegcc*)
12463 # When not using gcc, we currently assume that we are using
12464 # Microsoft Visual C++.
12465 # hardcode_libdir_flag_spec is actually meaningless, as there is
12466 # no search path for DLLs.
12467 hardcode_libdir_flag_spec_GO=' '
12468 allow_undefined_flag_GO=unsupported
12469 # Tell ltmain to make .lib files, not .a files.
12470 libext=lib
12471 # Tell ltmain to make .dll files, not .so files.
12472 shrext_cmds=".dll"
12473 # FIXME: Setting linknames here is a bad hack.
12474 archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12475 # The linker will automatically build a .lib file if we build a DLL.
12476 old_archive_from_new_cmds_GO='true'
12477 # FIXME: Should let the user specify the lib program.
12478 old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12479 fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12480 enable_shared_with_static_runtimes_GO=yes
12483 darwin* | rhapsody*)
12486 archive_cmds_need_lc_GO=no
12487 hardcode_direct_GO=no
12488 hardcode_automatic_GO=yes
12489 hardcode_shlibpath_var_GO=unsupported
12490 if test "$lt_cv_ld_force_load" = "yes"; then
12491 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\"`'
12492 else
12493 whole_archive_flag_spec_GO=''
12495 link_all_deplibs_GO=yes
12496 allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12497 case $cc_basename in
12498 ifort*) _lt_dar_can_shared=yes ;;
12499 *) _lt_dar_can_shared=$GCC ;;
12500 esac
12501 if test "$_lt_dar_can_shared" = "yes"; then
12502 output_verbose_link_cmd=func_echo_all
12503 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}"
12504 module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12505 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}"
12506 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}"
12508 else
12509 ld_shlibs_GO=no
12514 dgux*)
12515 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12516 hardcode_libdir_flag_spec_GO='-L$libdir'
12517 hardcode_shlibpath_var_GO=no
12520 freebsd1*)
12521 ld_shlibs_GO=no
12524 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12525 # support. Future versions do this automatically, but an explicit c++rt0.o
12526 # does not break anything, and helps significantly (at the cost of a little
12527 # extra space).
12528 freebsd2.2*)
12529 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12530 hardcode_libdir_flag_spec_GO='-R$libdir'
12531 hardcode_direct_GO=yes
12532 hardcode_shlibpath_var_GO=no
12535 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12536 freebsd2*)
12537 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12538 hardcode_direct_GO=yes
12539 hardcode_minus_L_GO=yes
12540 hardcode_shlibpath_var_GO=no
12543 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12544 freebsd* | dragonfly*)
12545 archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12546 hardcode_libdir_flag_spec_GO='-R$libdir'
12547 hardcode_direct_GO=yes
12548 hardcode_shlibpath_var_GO=no
12551 hpux9*)
12552 if test "$GCC" = yes; then
12553 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'
12554 else
12555 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'
12557 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12558 hardcode_libdir_separator_GO=:
12559 hardcode_direct_GO=yes
12561 # hardcode_minus_L: Not really in the search PATH,
12562 # but as the default location of the library.
12563 hardcode_minus_L_GO=yes
12564 export_dynamic_flag_spec_GO='${wl}-E'
12567 hpux10*)
12568 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12569 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12570 else
12571 archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12573 if test "$with_gnu_ld" = no; then
12574 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12575 hardcode_libdir_flag_spec_ld_GO='+b $libdir'
12576 hardcode_libdir_separator_GO=:
12577 hardcode_direct_GO=yes
12578 hardcode_direct_absolute_GO=yes
12579 export_dynamic_flag_spec_GO='${wl}-E'
12580 # hardcode_minus_L: Not really in the search PATH,
12581 # but as the default location of the library.
12582 hardcode_minus_L_GO=yes
12586 hpux11*)
12587 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12588 case $host_cpu in
12589 hppa*64*)
12590 archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12592 ia64*)
12593 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12596 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12598 esac
12599 else
12600 case $host_cpu in
12601 hppa*64*)
12602 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12604 ia64*)
12605 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12608 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12610 esac
12612 if test "$with_gnu_ld" = no; then
12613 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12614 hardcode_libdir_separator_GO=:
12616 case $host_cpu in
12617 hppa*64*|ia64*)
12618 hardcode_direct_GO=no
12619 hardcode_shlibpath_var_GO=no
12622 hardcode_direct_GO=yes
12623 hardcode_direct_absolute_GO=yes
12624 export_dynamic_flag_spec_GO='${wl}-E'
12626 # hardcode_minus_L: Not really in the search PATH,
12627 # but as the default location of the library.
12628 hardcode_minus_L_GO=yes
12630 esac
12634 irix5* | irix6* | nonstopux*)
12635 if test "$GCC" = yes; then
12636 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'
12637 # Try to use the -exported_symbol ld option, if it does not
12638 # work, assume that -exports_file does not work either and
12639 # implicitly export all symbols.
12640 save_LDFLAGS="$LDFLAGS"
12641 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12643 /* end confdefs.h. */
12644 int foo(void) {}
12645 _ACEOF
12646 if ac_fn_c_try_link "$LINENO"; then :
12647 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'
12650 rm -f core conftest.err conftest.$ac_objext \
12651 conftest$ac_exeext conftest.$ac_ext
12652 LDFLAGS="$save_LDFLAGS"
12653 else
12654 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'
12655 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'
12657 archive_cmds_need_lc_GO='no'
12658 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12659 hardcode_libdir_separator_GO=:
12660 inherit_rpath_GO=yes
12661 link_all_deplibs_GO=yes
12664 netbsd*)
12665 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12666 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12667 else
12668 archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12670 hardcode_libdir_flag_spec_GO='-R$libdir'
12671 hardcode_direct_GO=yes
12672 hardcode_shlibpath_var_GO=no
12675 newsos6)
12676 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12677 hardcode_direct_GO=yes
12678 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12679 hardcode_libdir_separator_GO=:
12680 hardcode_shlibpath_var_GO=no
12683 *nto* | *qnx*)
12686 openbsd*)
12687 if test -f /usr/libexec/ld.so; then
12688 hardcode_direct_GO=yes
12689 hardcode_shlibpath_var_GO=no
12690 hardcode_direct_absolute_GO=yes
12691 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12692 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12693 archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12694 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12695 export_dynamic_flag_spec_GO='${wl}-E'
12696 else
12697 case $host_os in
12698 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12699 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12700 hardcode_libdir_flag_spec_GO='-R$libdir'
12703 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12704 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12706 esac
12708 else
12709 ld_shlibs_GO=no
12713 os2*)
12714 hardcode_libdir_flag_spec_GO='-L$libdir'
12715 hardcode_minus_L_GO=yes
12716 allow_undefined_flag_GO=unsupported
12717 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'
12718 old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12721 osf3*)
12722 if test "$GCC" = yes; then
12723 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12724 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'
12725 else
12726 allow_undefined_flag_GO=' -expect_unresolved \*'
12727 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'
12729 archive_cmds_need_lc_GO='no'
12730 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12731 hardcode_libdir_separator_GO=:
12734 osf4* | osf5*) # as osf3* with the addition of -msym flag
12735 if test "$GCC" = yes; then
12736 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12737 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'
12738 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12739 else
12740 allow_undefined_flag_GO=' -expect_unresolved \*'
12741 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'
12742 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~
12743 $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'
12745 # Both c and cxx compiler support -rpath directly
12746 hardcode_libdir_flag_spec_GO='-rpath $libdir'
12748 archive_cmds_need_lc_GO='no'
12749 hardcode_libdir_separator_GO=:
12752 solaris*)
12753 no_undefined_flag_GO=' -z defs'
12754 if test "$GCC" = yes; then
12755 wlarc='${wl}'
12756 archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12757 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12758 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12759 else
12760 case `$CC -V 2>&1` in
12761 *"Compilers 5.0"*)
12762 wlarc=''
12763 archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12764 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12765 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12768 wlarc='${wl}'
12769 archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12770 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12771 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12773 esac
12775 hardcode_libdir_flag_spec_GO='-R$libdir'
12776 hardcode_shlibpath_var_GO=no
12777 case $host_os in
12778 solaris2.[0-5] | solaris2.[0-5].*) ;;
12780 # The compiler driver will combine and reorder linker options,
12781 # but understands `-z linker_flag'. GCC discards it without `$wl',
12782 # but is careful enough not to reorder.
12783 # Supported since Solaris 2.6 (maybe 2.5.1?)
12784 if test "$GCC" = yes; then
12785 whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12786 else
12787 whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
12790 esac
12791 link_all_deplibs_GO=yes
12794 sunos4*)
12795 if test "x$host_vendor" = xsequent; then
12796 # Use $CC to link under sequent, because it throws in some extra .o
12797 # files that make .init and .fini sections work.
12798 archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12799 else
12800 archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12802 hardcode_libdir_flag_spec_GO='-L$libdir'
12803 hardcode_direct_GO=yes
12804 hardcode_minus_L_GO=yes
12805 hardcode_shlibpath_var_GO=no
12808 sysv4)
12809 case $host_vendor in
12810 sni)
12811 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12812 hardcode_direct_GO=yes # is this really true???
12814 siemens)
12815 ## LD is ld it makes a PLAMLIB
12816 ## CC just makes a GrossModule.
12817 archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12818 reload_cmds_GO='$CC -r -o $output$reload_objs'
12819 hardcode_direct_GO=no
12821 motorola)
12822 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12823 hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
12825 esac
12826 runpath_var='LD_RUN_PATH'
12827 hardcode_shlibpath_var_GO=no
12830 sysv4.3*)
12831 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12832 hardcode_shlibpath_var_GO=no
12833 export_dynamic_flag_spec_GO='-Bexport'
12836 sysv4*MP*)
12837 if test -d /usr/nec; then
12838 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12839 hardcode_shlibpath_var_GO=no
12840 runpath_var=LD_RUN_PATH
12841 hardcode_runpath_var=yes
12842 ld_shlibs_GO=yes
12846 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12847 no_undefined_flag_GO='${wl}-z,text'
12848 archive_cmds_need_lc_GO=no
12849 hardcode_shlibpath_var_GO=no
12850 runpath_var='LD_RUN_PATH'
12852 if test "$GCC" = yes; then
12853 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12854 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12855 else
12856 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12857 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12861 sysv5* | sco3.2v5* | sco5v6*)
12862 # Note: We can NOT use -z defs as we might desire, because we do not
12863 # link with -lc, and that would cause any symbols used from libc to
12864 # always be unresolved, which means just about no library would
12865 # ever link correctly. If we're not using GNU ld we use -z text
12866 # though, which does catch some bad symbols but isn't as heavy-handed
12867 # as -z defs.
12868 no_undefined_flag_GO='${wl}-z,text'
12869 allow_undefined_flag_GO='${wl}-z,nodefs'
12870 archive_cmds_need_lc_GO=no
12871 hardcode_shlibpath_var_GO=no
12872 hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
12873 hardcode_libdir_separator_GO=':'
12874 link_all_deplibs_GO=yes
12875 export_dynamic_flag_spec_GO='${wl}-Bexport'
12876 runpath_var='LD_RUN_PATH'
12878 if test "$GCC" = yes; then
12879 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12880 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12881 else
12882 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12883 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12887 uts4*)
12888 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12889 hardcode_libdir_flag_spec_GO='-L$libdir'
12890 hardcode_shlibpath_var_GO=no
12894 ld_shlibs_GO=no
12896 esac
12898 if test x$host_vendor = xsni; then
12899 case $host in
12900 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12901 export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
12903 esac
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
12908 $as_echo "$ld_shlibs_GO" >&6; }
12909 test "$ld_shlibs_GO" = no && can_build_shared=no
12911 with_gnu_ld_GO=$with_gnu_ld
12919 # Do we need to explicitly link libc?
12921 case "x$archive_cmds_need_lc_GO" in
12922 x|xyes)
12923 # Assume -lc should be added
12924 archive_cmds_need_lc_GO=yes
12926 if test "$enable_shared" = yes && test "$GCC" = yes; then
12927 case $archive_cmds_GO in
12928 *'~'*)
12929 # FIXME: we may have to deal with multi-command sequences.
12931 '$CC '*)
12932 # Test whether the compiler implicitly links with -lc since on some
12933 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12934 # to ld, don't add -lc before -lgcc.
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12936 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12937 if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
12938 $as_echo_n "(cached) " >&6
12939 else
12940 $RM conftest*
12941 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12943 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12944 (eval $ac_compile) 2>&5
12945 ac_status=$?
12946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12947 test $ac_status = 0; } 2>conftest.err; then
12948 soname=conftest
12949 lib=conftest
12950 libobjs=conftest.$ac_objext
12951 deplibs=
12952 wl=$lt_prog_compiler_wl_GO
12953 pic_flag=$lt_prog_compiler_pic_GO
12954 compiler_flags=-v
12955 linker_flags=-v
12956 verstring=
12957 output_objdir=.
12958 libname=conftest
12959 lt_save_allow_undefined_flag=$allow_undefined_flag_GO
12960 allow_undefined_flag_GO=
12961 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12962 (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12963 ac_status=$?
12964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12965 test $ac_status = 0; }
12966 then
12967 lt_cv_archive_cmds_need_lc_GO=no
12968 else
12969 lt_cv_archive_cmds_need_lc_GO=yes
12971 allow_undefined_flag_GO=$lt_save_allow_undefined_flag
12972 else
12973 cat conftest.err 1>&5
12975 $RM conftest*
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
12979 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
12980 archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
12982 esac
12985 esac
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13051 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13052 hardcode_action_GO=
13053 if test -n "$hardcode_libdir_flag_spec_GO" ||
13054 test -n "$runpath_var_GO" ||
13055 test "X$hardcode_automatic_GO" = "Xyes" ; then
13057 # We can hardcode non-existent directories.
13058 if test "$hardcode_direct_GO" != no &&
13059 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13060 # have to relink, otherwise we might link with an installed library
13061 # when we should be linking with a yet-to-be-installed one
13062 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13063 test "$hardcode_minus_L_GO" != no; then
13064 # Linking always hardcodes the temporary library directory.
13065 hardcode_action_GO=relink
13066 else
13067 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13068 hardcode_action_GO=immediate
13070 else
13071 # We cannot hardcode anything, or else we can only hardcode existing
13072 # directories.
13073 hardcode_action_GO=unsupported
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13076 $as_echo "$hardcode_action_GO" >&6; }
13078 if test "$hardcode_action_GO" = relink ||
13079 test "$inherit_rpath_GO" = yes; then
13080 # Fast installation is not supported
13081 enable_fast_install=no
13082 elif test "$shlibpath_overrides_runpath" = yes ||
13083 test "$enable_shared" = no; then
13084 # Fast installation is not necessary
13085 enable_fast_install=needless
13096 ac_ext=c
13097 ac_cpp='$CPP $CPPFLAGS'
13098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13103 GCC=$lt_save_GCC
13104 CC="$lt_save_CC"
13109 ac_config_commands="$ac_config_commands libtool"
13114 # Only expand once:
13120 WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13123 WERROR="-Werror"
13126 glibgo_toolexecdir=no
13127 glibgo_toolexeclibdir=no
13128 glibgo_prefixdir=$prefix
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13131 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13132 # Check whether --enable-version-specific-runtime-libs was given.
13133 if test "${enable_version_specific_runtime_libs+set}" = set; then :
13134 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13135 yes) version_specific_libs=yes ;;
13136 no) version_specific_libs=no ;;
13137 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13138 esac
13139 else
13140 version_specific_libs=no
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13144 $as_echo "$version_specific_libs" >&6; }
13146 # Version-specific runtime libs processing.
13147 if test $version_specific_libs = yes; then
13148 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13149 glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13152 # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13153 # Install a library built with a cross compiler in tooldir, not libdir.
13154 if test x"$glibgo_toolexecdir" = x"no"; then
13155 if test -n "$with_cross_host" &&
13156 test x"$with_cross_host" != x"no"; then
13157 glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13158 glibgo_toolexeclibdir='${toolexecdir}/lib'
13159 else
13160 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13161 glibgo_toolexeclibdir='${libdir}'
13163 multi_os_directory=`$CC -print-multi-os-directory`
13164 case $multi_os_directory in
13165 .) ;; # Avoid trailing /.
13166 *) glibgo_toolexeclibdir=$glibgo_toolexeclibdir/$multi_os_directory ;;
13167 esac
13174 # See if the user wants to configure without libffi. Some
13175 # architectures don't support it. FIXME: We should set a default
13176 # based on the host.
13178 # Check whether --with-libffi was given.
13179 if test "${with_libffi+set}" = set; then :
13180 withval=$with_libffi; :
13181 else
13182 with_libffi=${with_libffi_default-yes}
13186 LIBFFI=
13187 LIBFFIINCS=
13188 if test "$with_libffi" != no; then
13190 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
13192 LIBFFI=../libffi/libffi_convenience.la
13193 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13198 is_darwin=no
13199 is_freebsd=no
13200 is_linux=no
13201 is_rtems=no
13202 is_solaris=no
13203 GOOS=unknown
13204 case ${host} in
13205 *-*-darwin*) is_darwin=yes; GOOS=darwin ;;
13206 *-*-freebsd*) is_freebsd=yes; GOOS=freebsd ;;
13207 *-*-linux*) is_linux=yes; GOOS=linux ;;
13208 *-*-rtems*) is_rtems=yes; GOOS=rtems ;;
13209 *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
13210 esac
13211 if test $is_darwin = yes; then
13212 LIBGO_IS_DARWIN_TRUE=
13213 LIBGO_IS_DARWIN_FALSE='#'
13214 else
13215 LIBGO_IS_DARWIN_TRUE='#'
13216 LIBGO_IS_DARWIN_FALSE=
13219 if test $is_freebsd = yes; then
13220 LIBGO_IS_FREEBSD_TRUE=
13221 LIBGO_IS_FREEBSD_FALSE='#'
13222 else
13223 LIBGO_IS_FREEBSD_TRUE='#'
13224 LIBGO_IS_FREEBSD_FALSE=
13227 if test $is_linux = yes; then
13228 LIBGO_IS_LINUX_TRUE=
13229 LIBGO_IS_LINUX_FALSE='#'
13230 else
13231 LIBGO_IS_LINUX_TRUE='#'
13232 LIBGO_IS_LINUX_FALSE=
13235 if test $is_rtems = yes; then
13236 LIBGO_IS_RTEMS_TRUE=
13237 LIBGO_IS_RTEMS_FALSE='#'
13238 else
13239 LIBGO_IS_RTEMS_TRUE='#'
13240 LIBGO_IS_RTEMS_FALSE=
13243 if test $is_solaris = yes; then
13244 LIBGO_IS_SOLARIS_TRUE=
13245 LIBGO_IS_SOLARIS_FALSE='#'
13246 else
13247 LIBGO_IS_SOLARIS_TRUE='#'
13248 LIBGO_IS_SOLARIS_FALSE=
13253 is_386=no
13254 is_arm=no
13255 is_sparc=no
13256 is_sparc64=no
13257 is_x86_64=no
13258 GOARCH=unknown
13259 case ${host} in
13260 i[34567]86-*-* | x86_64-*-*)
13261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13262 /* end confdefs.h. */
13264 #ifdef __x86_64__
13265 #error 64-bit
13266 #endif
13267 _ACEOF
13268 if ac_fn_c_try_cpp "$LINENO"; then :
13269 is_386=yes
13270 else
13271 is_x86_64=yes
13273 rm -f conftest.err conftest.$ac_ext
13274 if test "$is_386" = "yes"; then
13275 is_386=yes
13276 GOARCH=386
13277 else
13278 is_x86_64=yes
13279 GOARCH=amd64
13282 arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
13283 is_arm=yes
13284 GOARCH=arm
13286 sparc*-*-*)
13287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13288 /* end confdefs.h. */
13290 #if defined(__sparcv9) || defined(__arch64__)
13291 #error 64-bit
13292 #endif
13293 _ACEOF
13294 if ac_fn_c_try_cpp "$LINENO"; then :
13295 is_sparc=yes
13296 else
13297 is_sparc64=yes
13299 rm -f conftest.err conftest.$ac_ext
13300 if test "$is_sparc" = "yes"; then
13301 is_sparc=yes
13302 GOARCH=sparc
13303 else
13304 is_sparc64=yes
13305 GOARCH=sparc64
13308 esac
13309 if test $is_386 = yes; then
13310 LIBGO_IS_386_TRUE=
13311 LIBGO_IS_386_FALSE='#'
13312 else
13313 LIBGO_IS_386_TRUE='#'
13314 LIBGO_IS_386_FALSE=
13317 if test $is_arm = yes; then
13318 LIBGO_IS_ARM_TRUE=
13319 LIBGO_IS_ARM_FALSE='#'
13320 else
13321 LIBGO_IS_ARM_TRUE='#'
13322 LIBGO_IS_ARM_FALSE=
13325 if test $is_sparc = yes; then
13326 LIBGO_IS_SPARC_TRUE=
13327 LIBGO_IS_SPARC_FALSE='#'
13328 else
13329 LIBGO_IS_SPARC_TRUE='#'
13330 LIBGO_IS_SPARC_FALSE=
13333 if test $is_sparc64 = yes; then
13334 LIBGO_IS_SPARC64_TRUE=
13335 LIBGO_IS_SPARC64_FALSE='#'
13336 else
13337 LIBGO_IS_SPARC64_TRUE='#'
13338 LIBGO_IS_SPARC64_FALSE=
13341 if test $is_x86_64 = yes; then
13342 LIBGO_IS_X86_64_TRUE=
13343 LIBGO_IS_X86_64_FALSE='#'
13344 else
13345 LIBGO_IS_X86_64_TRUE='#'
13346 LIBGO_IS_X86_64_FALSE=
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
13352 $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
13353 if test "${libgo_cv_c_split_stack_supported+set}" = set; then :
13354 $as_echo_n "(cached) " >&6
13355 else
13356 CFLAGS_hold=$CFLAGS
13357 CFLAGS="$CFLAGS -fsplit-stack"
13358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13359 /* end confdefs.h. */
13360 int i;
13361 _ACEOF
13362 if ac_fn_c_try_compile "$LINENO"; then :
13363 libgo_cv_c_split_stack_supported=yes
13364 else
13365 libgo_cv_c_split_stack_supported=no
13367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13368 CFLAGS=$CFLAGS_hold
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
13371 $as_echo "$libgo_cv_c_split_stack_supported" >&6; }
13372 if test "$libgo_cv_c_split_stack_supported" = yes; then
13373 SPLIT_STACK=-fsplit-stack
13375 $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
13377 else
13378 SPLIT_STACK=
13381 if test "$libgo_cv_c_split_stack_supported" = yes; then
13382 USING_SPLIT_STACK_TRUE=
13383 USING_SPLIT_STACK_FALSE='#'
13384 else
13385 USING_SPLIT_STACK_TRUE='#'
13386 USING_SPLIT_STACK_FALSE=
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
13391 $as_echo_n "checking whether linker supports split stack... " >&6; }
13392 if test "${libgo_cv_c_linker_supports_split_stack+set}" = set; then :
13393 $as_echo_n "(cached) " >&6
13394 else
13395 libgo_cv_c_linker_supports_split_stack=no
13396 if $LD --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
13397 libgo_cv_c_linker_supports_split_stack=yes
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
13401 $as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
13402 if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
13404 $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
13408 MATH_LIBS=
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13410 $as_echo_n "checking for sqrt in -lm... " >&6; }
13411 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13412 $as_echo_n "(cached) " >&6
13413 else
13414 ac_check_lib_save_LIBS=$LIBS
13415 LIBS="-lm $LIBS"
13416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13417 /* end confdefs.h. */
13419 /* Override any GCC internal prototype to avoid an error.
13420 Use char because int might match the return type of a GCC
13421 builtin and then its argument prototype would still apply. */
13422 #ifdef __cplusplus
13423 extern "C"
13424 #endif
13425 char sqrt ();
13427 main ()
13429 return sqrt ();
13431 return 0;
13433 _ACEOF
13434 if ac_fn_c_try_link "$LINENO"; then :
13435 ac_cv_lib_m_sqrt=yes
13436 else
13437 ac_cv_lib_m_sqrt=no
13439 rm -f core conftest.err conftest.$ac_objext \
13440 conftest$ac_exeext conftest.$ac_ext
13441 LIBS=$ac_check_lib_save_LIBS
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13444 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13445 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13446 MATH_LIBS=-lm
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
13452 $as_echo_n "checking for socket libraries... " >&6; }
13453 if test "${libgo_cv_lib_sockets+set}" = set; then :
13454 $as_echo_n "(cached) " >&6
13455 else
13456 libgo_cv_lib_sockets=
13457 libgo_check_both=no
13458 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
13459 if test "x$ac_cv_func_connect" = x""yes; then :
13460 libgo_check_socket=no
13461 else
13462 libgo_check_socket=yes
13465 if test "$libgo_check_socket" = "yes"; then
13466 unset ac_cv_func_connect
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
13468 $as_echo_n "checking for main in -lsocket... " >&6; }
13469 if test "${ac_cv_lib_socket_main+set}" = set; then :
13470 $as_echo_n "(cached) " >&6
13471 else
13472 ac_check_lib_save_LIBS=$LIBS
13473 LIBS="-lsocket $LIBS"
13474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13475 /* end confdefs.h. */
13479 main ()
13481 return main ();
13483 return 0;
13485 _ACEOF
13486 if ac_fn_c_try_link "$LINENO"; then :
13487 ac_cv_lib_socket_main=yes
13488 else
13489 ac_cv_lib_socket_main=no
13491 rm -f core conftest.err conftest.$ac_objext \
13492 conftest$ac_exeext conftest.$ac_ext
13493 LIBS=$ac_check_lib_save_LIBS
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
13496 $as_echo "$ac_cv_lib_socket_main" >&6; }
13497 if test "x$ac_cv_lib_socket_main" = x""yes; then :
13498 libgo_cv_lib_sockets="-lsocket"
13499 else
13500 libgo_check_both=yes
13504 if test "$libgo_check_both" = "yes"; then
13505 libgo_old_libs=$LIBS
13506 LIBS="$LIBS -lsocket -lnsl"
13507 unset ac_cv_func_accept
13508 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
13509 if test "x$ac_cv_func_accept" = x""yes; then :
13510 libgo_check_nsl=no
13511 libgo_cv_lib_sockets="-lsocket -lnsl"
13514 unset ac_cv_func_accept
13515 LIBS=$libgo_old_libs
13517 unset ac_cv_func_gethostbyname
13518 libgo_old_libs="$LIBS"
13519 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
13520 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
13522 else
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
13524 $as_echo_n "checking for main in -lnsl... " >&6; }
13525 if test "${ac_cv_lib_nsl_main+set}" = set; then :
13526 $as_echo_n "(cached) " >&6
13527 else
13528 ac_check_lib_save_LIBS=$LIBS
13529 LIBS="-lnsl $LIBS"
13530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13531 /* end confdefs.h. */
13535 main ()
13537 return main ();
13539 return 0;
13541 _ACEOF
13542 if ac_fn_c_try_link "$LINENO"; then :
13543 ac_cv_lib_nsl_main=yes
13544 else
13545 ac_cv_lib_nsl_main=no
13547 rm -f core conftest.err conftest.$ac_objext \
13548 conftest$ac_exeext conftest.$ac_ext
13549 LIBS=$ac_check_lib_save_LIBS
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
13552 $as_echo "$ac_cv_lib_nsl_main" >&6; }
13553 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
13554 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
13559 unset ac_cv_func_gethostbyname
13560 LIBS=$libgo_old_libs
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
13564 $as_echo "$libgo_cv_lib_sockets" >&6; }
13565 NET_LIBS="$libgo_cv_lib_sockets"
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
13569 $as_echo_n "checking whether -pthread is supported... " >&6; }
13570 if test "${libgo_cv_lib_pthread+set}" = set; then :
13571 $as_echo_n "(cached) " >&6
13572 else
13573 CFLAGS_hold=$CFLAGS
13574 CFLAGS="$CFLAGS -pthread"
13575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13576 /* end confdefs.h. */
13577 int i;
13578 _ACEOF
13579 if ac_fn_c_try_compile "$LINENO"; then :
13580 libgo_cv_lib_pthread=yes
13581 else
13582 libgo_cv_lib_pthread=no
13584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13585 CFLAGS=$CFLAGS_hold
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
13588 $as_echo "$libgo_cv_lib_pthread" >&6; }
13589 PTHREAD_CFLAGS=
13590 if test "$libgo_cv_lib_pthread" = yes; then
13591 PTHREAD_CFLAGS=-pthread
13595 PTHREAD_LIBS=
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
13597 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
13598 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
13599 $as_echo_n "(cached) " >&6
13600 else
13601 ac_check_lib_save_LIBS=$LIBS
13602 LIBS="-lpthread $LIBS"
13603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13604 /* end confdefs.h. */
13606 /* Override any GCC internal prototype to avoid an error.
13607 Use char because int might match the return type of a GCC
13608 builtin and then its argument prototype would still apply. */
13609 #ifdef __cplusplus
13610 extern "C"
13611 #endif
13612 char pthread_create ();
13614 main ()
13616 return pthread_create ();
13618 return 0;
13620 _ACEOF
13621 if ac_fn_c_try_link "$LINENO"; then :
13622 ac_cv_lib_pthread_pthread_create=yes
13623 else
13624 ac_cv_lib_pthread_pthread_create=no
13626 rm -f core conftest.err conftest.$ac_objext \
13627 conftest$ac_exeext conftest.$ac_ext
13628 LIBS=$ac_check_lib_save_LIBS
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
13631 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
13632 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
13633 PTHREAD_LIBS=-lpthread
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
13639 $as_echo_n "checking for library containing sched_yield... " >&6; }
13640 if test "${ac_cv_search_sched_yield+set}" = set; then :
13641 $as_echo_n "(cached) " >&6
13642 else
13643 ac_func_search_save_LIBS=$LIBS
13644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13645 /* end confdefs.h. */
13647 /* Override any GCC internal prototype to avoid an error.
13648 Use char because int might match the return type of a GCC
13649 builtin and then its argument prototype would still apply. */
13650 #ifdef __cplusplus
13651 extern "C"
13652 #endif
13653 char sched_yield ();
13655 main ()
13657 return sched_yield ();
13659 return 0;
13661 _ACEOF
13662 for ac_lib in '' rt; do
13663 if test -z "$ac_lib"; then
13664 ac_res="none required"
13665 else
13666 ac_res=-l$ac_lib
13667 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13669 if ac_fn_c_try_link "$LINENO"; then :
13670 ac_cv_search_sched_yield=$ac_res
13672 rm -f core conftest.err conftest.$ac_objext \
13673 conftest$ac_exeext
13674 if test "${ac_cv_search_sched_yield+set}" = set; then :
13675 break
13677 done
13678 if test "${ac_cv_search_sched_yield+set}" = set; then :
13680 else
13681 ac_cv_search_sched_yield=no
13683 rm conftest.$ac_ext
13684 LIBS=$ac_func_search_save_LIBS
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
13687 $as_echo "$ac_cv_search_sched_yield" >&6; }
13688 ac_res=$ac_cv_search_sched_yield
13689 if test "$ac_res" != no; then :
13690 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13696 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13697 if test "${ac_cv_c_bigendian+set}" = set; then :
13698 $as_echo_n "(cached) " >&6
13699 else
13700 ac_cv_c_bigendian=unknown
13701 # See if we're dealing with a universal compiler.
13702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13703 /* end confdefs.h. */
13704 #ifndef __APPLE_CC__
13705 not a universal capable compiler
13706 #endif
13707 typedef int dummy;
13709 _ACEOF
13710 if ac_fn_c_try_compile "$LINENO"; then :
13712 # Check for potential -arch flags. It is not universal unless
13713 # there are at least two -arch flags with different values.
13714 ac_arch=
13715 ac_prev=
13716 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13717 if test -n "$ac_prev"; then
13718 case $ac_word in
13719 i?86 | x86_64 | ppc | ppc64)
13720 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13721 ac_arch=$ac_word
13722 else
13723 ac_cv_c_bigendian=universal
13724 break
13727 esac
13728 ac_prev=
13729 elif test "x$ac_word" = "x-arch"; then
13730 ac_prev=arch
13732 done
13734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13735 if test $ac_cv_c_bigendian = unknown; then
13736 # See if sys/param.h defines the BYTE_ORDER macro.
13737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13738 /* end confdefs.h. */
13739 #include <sys/types.h>
13740 #include <sys/param.h>
13743 main ()
13745 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13746 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13747 && LITTLE_ENDIAN)
13748 bogus endian macros
13749 #endif
13752 return 0;
13754 _ACEOF
13755 if ac_fn_c_try_compile "$LINENO"; then :
13756 # It does; now see whether it defined to BIG_ENDIAN or not.
13757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13758 /* end confdefs.h. */
13759 #include <sys/types.h>
13760 #include <sys/param.h>
13763 main ()
13765 #if BYTE_ORDER != BIG_ENDIAN
13766 not big endian
13767 #endif
13770 return 0;
13772 _ACEOF
13773 if ac_fn_c_try_compile "$LINENO"; then :
13774 ac_cv_c_bigendian=yes
13775 else
13776 ac_cv_c_bigendian=no
13778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13782 if test $ac_cv_c_bigendian = unknown; then
13783 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13785 /* end confdefs.h. */
13786 #include <limits.h>
13789 main ()
13791 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13792 bogus endian macros
13793 #endif
13796 return 0;
13798 _ACEOF
13799 if ac_fn_c_try_compile "$LINENO"; then :
13800 # It does; now see whether it defined to _BIG_ENDIAN or not.
13801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13802 /* end confdefs.h. */
13803 #include <limits.h>
13806 main ()
13808 #ifndef _BIG_ENDIAN
13809 not big endian
13810 #endif
13813 return 0;
13815 _ACEOF
13816 if ac_fn_c_try_compile "$LINENO"; then :
13817 ac_cv_c_bigendian=yes
13818 else
13819 ac_cv_c_bigendian=no
13821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13825 if test $ac_cv_c_bigendian = unknown; then
13826 # Compile a test program.
13827 if test "$cross_compiling" = yes; then :
13828 # Try to guess by grepping values from an object file.
13829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13830 /* end confdefs.h. */
13831 short int ascii_mm[] =
13832 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13833 short int ascii_ii[] =
13834 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13835 int use_ascii (int i) {
13836 return ascii_mm[i] + ascii_ii[i];
13838 short int ebcdic_ii[] =
13839 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13840 short int ebcdic_mm[] =
13841 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13842 int use_ebcdic (int i) {
13843 return ebcdic_mm[i] + ebcdic_ii[i];
13845 extern int foo;
13848 main ()
13850 return use_ascii (foo) == use_ebcdic (foo);
13852 return 0;
13854 _ACEOF
13855 if ac_fn_c_try_compile "$LINENO"; then :
13856 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13857 ac_cv_c_bigendian=yes
13859 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13860 if test "$ac_cv_c_bigendian" = unknown; then
13861 ac_cv_c_bigendian=no
13862 else
13863 # finding both strings is unlikely to happen, but who knows?
13864 ac_cv_c_bigendian=unknown
13868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13869 else
13870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13871 /* end confdefs.h. */
13872 $ac_includes_default
13874 main ()
13877 /* Are we little or big endian? From Harbison&Steele. */
13878 union
13880 long int l;
13881 char c[sizeof (long int)];
13882 } u;
13883 u.l = 1;
13884 return u.c[sizeof (long int) - 1] == 1;
13887 return 0;
13889 _ACEOF
13890 if ac_fn_c_try_run "$LINENO"; then :
13891 ac_cv_c_bigendian=no
13892 else
13893 ac_cv_c_bigendian=yes
13895 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13896 conftest.$ac_objext conftest.beam conftest.$ac_ext
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13902 $as_echo "$ac_cv_c_bigendian" >&6; }
13903 case $ac_cv_c_bigendian in #(
13904 yes)
13905 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13906 ;; #(
13908 ;; #(
13909 universal)
13911 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13913 ;; #(
13915 as_fn_error "unknown endianness
13916 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13917 esac
13922 # Check whether --with-system-libunwind was given.
13923 if test "${with_system_libunwind+set}" = set; then :
13924 withval=$with_system_libunwind;
13927 # If system-libunwind was not specifically set, pick a default setting.
13928 if test x$with_system_libunwind = x; then
13929 case ${target} in
13930 ia64-*-hpux*) with_system_libunwind=yes ;;
13931 *) with_system_libunwind=no ;;
13932 esac
13934 # Based on system-libunwind and target, do we have ipinfo?
13935 if test x$with_system_libunwind = xyes; then
13936 case ${target} in
13937 ia64-*-*) have_unwind_getipinfo=no ;;
13938 *) have_unwind_getipinfo=yes ;;
13939 esac
13940 else
13941 # Darwin before version 9 does not have _Unwind_GetIPInfo.
13943 case ${target} in
13944 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
13945 *) have_unwind_getipinfo=yes ;;
13946 esac
13950 if test x$have_unwind_getipinfo = xyes; then
13952 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
13957 for ac_header in sys/mman.h syscall.h sys/epoll.h sys/ptrace.h sys/user.h sys/utsname.h
13958 do :
13959 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13960 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13961 eval as_val=\$$as_ac_Header
13962 if test "x$as_val" = x""yes; then :
13963 cat >>confdefs.h <<_ACEOF
13964 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13965 _ACEOF
13969 done
13971 if test "$ac_cv_header_sys_mman_h" = yes; then
13972 HAVE_SYS_MMAN_H_TRUE=
13973 HAVE_SYS_MMAN_H_FALSE='#'
13974 else
13975 HAVE_SYS_MMAN_H_TRUE='#'
13976 HAVE_SYS_MMAN_H_FALSE=
13979 for ac_func in srandom random strsignal
13980 do :
13981 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13982 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13983 eval as_val=\$$as_ac_var
13984 if test "x$as_val" = x""yes; then :
13985 cat >>confdefs.h <<_ACEOF
13986 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13987 _ACEOF
13990 done
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
13994 $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
13995 if test "${libgo_cv_c_stringops+set}" = set; then :
13996 $as_echo_n "(cached) " >&6
13997 else
13998 CFLAGS_hold=$CFLAGS
13999 CFLAGS="$CFLAGS -minline-all-stringops"
14000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14001 /* end confdefs.h. */
14002 int i;
14003 _ACEOF
14004 if ac_fn_c_try_compile "$LINENO"; then :
14005 libgo_cv_c_stringops=yes
14006 else
14007 libgo_cv_c_stringops=no
14009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14010 CFLAGS=$CFLAGS_hold
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
14013 $as_echo "$libgo_cv_c_stringops" >&6; }
14014 STRINGOPS_FLAG=
14015 if test "$libgo_cv_c_stringops" = yes; then
14016 STRINGOPS_FLAG=-minline-all-stringops
14020 CFLAGS_hold=$CFLAGS
14021 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
14022 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
14023 if test "x$ac_cv_type_off64_t" = x""yes; then :
14025 cat >>confdefs.h <<_ACEOF
14026 #define HAVE_OFF64_T 1
14027 _ACEOF
14032 CFLAGS=$CFLAGS_hold
14034 cat >confcache <<\_ACEOF
14035 # This file is a shell script that caches the results of configure
14036 # tests run on this system so they can be shared between configure
14037 # scripts and configure runs, see configure's option --config-cache.
14038 # It is not useful on other systems. If it contains results you don't
14039 # want to keep, you may remove or edit it.
14041 # config.status only pays attention to the cache file if you give it
14042 # the --recheck option to rerun configure.
14044 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14045 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14046 # following values.
14048 _ACEOF
14050 # The following way of writing the cache mishandles newlines in values,
14051 # but we know of no workaround that is simple, portable, and efficient.
14052 # So, we kill variables containing newlines.
14053 # Ultrix sh set writes to stderr and can't be redirected directly,
14054 # and sets the high bit in the cache file unless we assign to the vars.
14056 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14057 eval ac_val=\$$ac_var
14058 case $ac_val in #(
14059 *${as_nl}*)
14060 case $ac_var in #(
14061 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14062 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14063 esac
14064 case $ac_var in #(
14065 _ | IFS | as_nl) ;; #(
14066 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14067 *) { eval $ac_var=; unset $ac_var;} ;;
14068 esac ;;
14069 esac
14070 done
14072 (set) 2>&1 |
14073 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14074 *${as_nl}ac_space=\ *)
14075 # `set' does not quote correctly, so add quotes: double-quote
14076 # substitution turns \\\\ into \\, and sed turns \\ into \.
14077 sed -n \
14078 "s/'/'\\\\''/g;
14079 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14080 ;; #(
14082 # `set' quotes correctly as required by POSIX, so do not add quotes.
14083 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14085 esac |
14086 sort
14088 sed '
14089 /^ac_cv_env_/b end
14090 t clear
14091 :clear
14092 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14093 t end
14094 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14095 :end' >>confcache
14096 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14097 if test -w "$cache_file"; then
14098 test "x$cache_file" != "x/dev/null" &&
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14100 $as_echo "$as_me: updating cache $cache_file" >&6;}
14101 cat confcache >$cache_file
14102 else
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14104 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14107 rm -f confcache
14109 if test ${multilib} = yes; then
14110 multilib_arg="--enable-multilib"
14111 else
14112 multilib_arg=
14115 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
14118 ac_config_commands="$ac_config_commands default"
14121 cat >confcache <<\_ACEOF
14122 # This file is a shell script that caches the results of configure
14123 # tests run on this system so they can be shared between configure
14124 # scripts and configure runs, see configure's option --config-cache.
14125 # It is not useful on other systems. If it contains results you don't
14126 # want to keep, you may remove or edit it.
14128 # config.status only pays attention to the cache file if you give it
14129 # the --recheck option to rerun configure.
14131 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14132 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14133 # following values.
14135 _ACEOF
14137 # The following way of writing the cache mishandles newlines in values,
14138 # but we know of no workaround that is simple, portable, and efficient.
14139 # So, we kill variables containing newlines.
14140 # Ultrix sh set writes to stderr and can't be redirected directly,
14141 # and sets the high bit in the cache file unless we assign to the vars.
14143 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14144 eval ac_val=\$$ac_var
14145 case $ac_val in #(
14146 *${as_nl}*)
14147 case $ac_var in #(
14148 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14149 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14150 esac
14151 case $ac_var in #(
14152 _ | IFS | as_nl) ;; #(
14153 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14154 *) { eval $ac_var=; unset $ac_var;} ;;
14155 esac ;;
14156 esac
14157 done
14159 (set) 2>&1 |
14160 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14161 *${as_nl}ac_space=\ *)
14162 # `set' does not quote correctly, so add quotes: double-quote
14163 # substitution turns \\\\ into \\, and sed turns \\ into \.
14164 sed -n \
14165 "s/'/'\\\\''/g;
14166 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14167 ;; #(
14169 # `set' quotes correctly as required by POSIX, so do not add quotes.
14170 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14172 esac |
14173 sort
14175 sed '
14176 /^ac_cv_env_/b end
14177 t clear
14178 :clear
14179 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14180 t end
14181 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14182 :end' >>confcache
14183 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14184 if test -w "$cache_file"; then
14185 test "x$cache_file" != "x/dev/null" &&
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14187 $as_echo "$as_me: updating cache $cache_file" >&6;}
14188 cat confcache >$cache_file
14189 else
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14191 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14194 rm -f confcache
14196 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14197 # Let make expand exec_prefix.
14198 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14200 DEFS=-DHAVE_CONFIG_H
14202 ac_libobjs=
14203 ac_ltlibobjs=
14204 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14205 # 1. Remove the extension, and $U if already installed.
14206 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14207 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14208 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14209 # will be set to the directory where LIBOBJS objects are built.
14210 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14211 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14212 done
14213 LIBOBJS=$ac_libobjs
14215 LTLIBOBJS=$ac_ltlibobjs
14218 if test -n "$EXEEXT"; then
14219 am__EXEEXT_TRUE=
14220 am__EXEEXT_FALSE='#'
14221 else
14222 am__EXEEXT_TRUE='#'
14223 am__EXEEXT_FALSE=
14226 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14227 as_fn_error "conditional \"AMDEP\" was never defined.
14228 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14230 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14231 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14232 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14234 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14235 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14236 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14238 if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
14239 as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined.
14240 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14242 if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
14243 as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined.
14244 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14246 if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
14247 as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined.
14248 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14250 if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
14251 as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined.
14252 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14254 if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
14255 as_fn_error "conditional \"LIBGO_IS_SOLARIS\" was never defined.
14256 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14258 if test -z "${LIBGO_IS_386_TRUE}" && test -z "${LIBGO_IS_386_FALSE}"; then
14259 as_fn_error "conditional \"LIBGO_IS_386\" was never defined.
14260 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14262 if test -z "${LIBGO_IS_ARM_TRUE}" && test -z "${LIBGO_IS_ARM_FALSE}"; then
14263 as_fn_error "conditional \"LIBGO_IS_ARM\" was never defined.
14264 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14266 if test -z "${LIBGO_IS_SPARC_TRUE}" && test -z "${LIBGO_IS_SPARC_FALSE}"; then
14267 as_fn_error "conditional \"LIBGO_IS_SPARC\" was never defined.
14268 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14270 if test -z "${LIBGO_IS_SPARC64_TRUE}" && test -z "${LIBGO_IS_SPARC64_FALSE}"; then
14271 as_fn_error "conditional \"LIBGO_IS_SPARC64\" was never defined.
14272 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14274 if test -z "${LIBGO_IS_X86_64_TRUE}" && test -z "${LIBGO_IS_X86_64_FALSE}"; then
14275 as_fn_error "conditional \"LIBGO_IS_X86_64\" was never defined.
14276 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14278 if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
14279 as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined.
14280 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14283 if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
14284 as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined.
14285 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14288 : ${CONFIG_STATUS=./config.status}
14289 ac_write_fail=0
14290 ac_clean_files_save=$ac_clean_files
14291 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14293 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14294 as_write_fail=0
14295 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14296 #! $SHELL
14297 # Generated by $as_me.
14298 # Run this file to recreate the current configuration.
14299 # Compiler output produced by configure, useful for debugging
14300 # configure, is in config.log if it exists.
14302 debug=false
14303 ac_cs_recheck=false
14304 ac_cs_silent=false
14306 SHELL=\${CONFIG_SHELL-$SHELL}
14307 export SHELL
14308 _ASEOF
14309 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14310 ## -------------------- ##
14311 ## M4sh Initialization. ##
14312 ## -------------------- ##
14314 # Be more Bourne compatible
14315 DUALCASE=1; export DUALCASE # for MKS sh
14316 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14317 emulate sh
14318 NULLCMD=:
14319 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14320 # is contrary to our usage. Disable this feature.
14321 alias -g '${1+"$@"}'='"$@"'
14322 setopt NO_GLOB_SUBST
14323 else
14324 case `(set -o) 2>/dev/null` in #(
14325 *posix*) :
14326 set -o posix ;; #(
14327 *) :
14329 esac
14333 as_nl='
14335 export as_nl
14336 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14337 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14338 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14339 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14340 # Prefer a ksh shell builtin over an external printf program on Solaris,
14341 # but without wasting forks for bash or zsh.
14342 if test -z "$BASH_VERSION$ZSH_VERSION" \
14343 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14344 as_echo='print -r --'
14345 as_echo_n='print -rn --'
14346 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14347 as_echo='printf %s\n'
14348 as_echo_n='printf %s'
14349 else
14350 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14351 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14352 as_echo_n='/usr/ucb/echo -n'
14353 else
14354 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14355 as_echo_n_body='eval
14356 arg=$1;
14357 case $arg in #(
14358 *"$as_nl"*)
14359 expr "X$arg" : "X\\(.*\\)$as_nl";
14360 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14361 esac;
14362 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14364 export as_echo_n_body
14365 as_echo_n='sh -c $as_echo_n_body as_echo'
14367 export as_echo_body
14368 as_echo='sh -c $as_echo_body as_echo'
14371 # The user is always right.
14372 if test "${PATH_SEPARATOR+set}" != set; then
14373 PATH_SEPARATOR=:
14374 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14375 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14376 PATH_SEPARATOR=';'
14381 # IFS
14382 # We need space, tab and new line, in precisely that order. Quoting is
14383 # there to prevent editors from complaining about space-tab.
14384 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14385 # splitting by setting IFS to empty value.)
14386 IFS=" "" $as_nl"
14388 # Find who we are. Look in the path if we contain no directory separator.
14389 case $0 in #((
14390 *[\\/]* ) as_myself=$0 ;;
14391 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14392 for as_dir in $PATH
14394 IFS=$as_save_IFS
14395 test -z "$as_dir" && as_dir=.
14396 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14397 done
14398 IFS=$as_save_IFS
14401 esac
14402 # We did not find ourselves, most probably we were run as `sh COMMAND'
14403 # in which case we are not to be found in the path.
14404 if test "x$as_myself" = x; then
14405 as_myself=$0
14407 if test ! -f "$as_myself"; then
14408 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14409 exit 1
14412 # Unset variables that we do not need and which cause bugs (e.g. in
14413 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14414 # suppresses any "Segmentation fault" message there. '((' could
14415 # trigger a bug in pdksh 5.2.14.
14416 for as_var in BASH_ENV ENV MAIL MAILPATH
14417 do eval test x\${$as_var+set} = xset \
14418 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14419 done
14420 PS1='$ '
14421 PS2='> '
14422 PS4='+ '
14424 # NLS nuisances.
14425 LC_ALL=C
14426 export LC_ALL
14427 LANGUAGE=C
14428 export LANGUAGE
14430 # CDPATH.
14431 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14434 # as_fn_error ERROR [LINENO LOG_FD]
14435 # ---------------------------------
14436 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14437 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14438 # script with status $?, using 1 if that was 0.
14439 as_fn_error ()
14441 as_status=$?; test $as_status -eq 0 && as_status=1
14442 if test "$3"; then
14443 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14444 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14446 $as_echo "$as_me: error: $1" >&2
14447 as_fn_exit $as_status
14448 } # as_fn_error
14451 # as_fn_set_status STATUS
14452 # -----------------------
14453 # Set $? to STATUS, without forking.
14454 as_fn_set_status ()
14456 return $1
14457 } # as_fn_set_status
14459 # as_fn_exit STATUS
14460 # -----------------
14461 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14462 as_fn_exit ()
14464 set +e
14465 as_fn_set_status $1
14466 exit $1
14467 } # as_fn_exit
14469 # as_fn_unset VAR
14470 # ---------------
14471 # Portably unset VAR.
14472 as_fn_unset ()
14474 { eval $1=; unset $1;}
14476 as_unset=as_fn_unset
14477 # as_fn_append VAR VALUE
14478 # ----------------------
14479 # Append the text in VALUE to the end of the definition contained in VAR. Take
14480 # advantage of any shell optimizations that allow amortized linear growth over
14481 # repeated appends, instead of the typical quadratic growth present in naive
14482 # implementations.
14483 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14484 eval 'as_fn_append ()
14486 eval $1+=\$2
14488 else
14489 as_fn_append ()
14491 eval $1=\$$1\$2
14493 fi # as_fn_append
14495 # as_fn_arith ARG...
14496 # ------------------
14497 # Perform arithmetic evaluation on the ARGs, and store the result in the
14498 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14499 # must be portable across $(()) and expr.
14500 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14501 eval 'as_fn_arith ()
14503 as_val=$(( $* ))
14505 else
14506 as_fn_arith ()
14508 as_val=`expr "$@" || test $? -eq 1`
14510 fi # as_fn_arith
14513 if expr a : '\(a\)' >/dev/null 2>&1 &&
14514 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14515 as_expr=expr
14516 else
14517 as_expr=false
14520 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14521 as_basename=basename
14522 else
14523 as_basename=false
14526 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14527 as_dirname=dirname
14528 else
14529 as_dirname=false
14532 as_me=`$as_basename -- "$0" ||
14533 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14534 X"$0" : 'X\(//\)$' \| \
14535 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14536 $as_echo X/"$0" |
14537 sed '/^.*\/\([^/][^/]*\)\/*$/{
14538 s//\1/
14541 /^X\/\(\/\/\)$/{
14542 s//\1/
14545 /^X\/\(\/\).*/{
14546 s//\1/
14549 s/.*/./; q'`
14551 # Avoid depending upon Character Ranges.
14552 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14553 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14554 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14555 as_cr_digits='0123456789'
14556 as_cr_alnum=$as_cr_Letters$as_cr_digits
14558 ECHO_C= ECHO_N= ECHO_T=
14559 case `echo -n x` in #(((((
14560 -n*)
14561 case `echo 'xy\c'` in
14562 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14563 xy) ECHO_C='\c';;
14564 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14565 ECHO_T=' ';;
14566 esac;;
14568 ECHO_N='-n';;
14569 esac
14571 rm -f conf$$ conf$$.exe conf$$.file
14572 if test -d conf$$.dir; then
14573 rm -f conf$$.dir/conf$$.file
14574 else
14575 rm -f conf$$.dir
14576 mkdir conf$$.dir 2>/dev/null
14578 if (echo >conf$$.file) 2>/dev/null; then
14579 if ln -s conf$$.file conf$$ 2>/dev/null; then
14580 as_ln_s='ln -s'
14581 # ... but there are two gotchas:
14582 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14583 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14584 # In both cases, we have to default to `cp -p'.
14585 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14586 as_ln_s='cp -p'
14587 elif ln conf$$.file conf$$ 2>/dev/null; then
14588 as_ln_s=ln
14589 else
14590 as_ln_s='cp -p'
14592 else
14593 as_ln_s='cp -p'
14595 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14596 rmdir conf$$.dir 2>/dev/null
14599 # as_fn_mkdir_p
14600 # -------------
14601 # Create "$as_dir" as a directory, including parents if necessary.
14602 as_fn_mkdir_p ()
14605 case $as_dir in #(
14606 -*) as_dir=./$as_dir;;
14607 esac
14608 test -d "$as_dir" || eval $as_mkdir_p || {
14609 as_dirs=
14610 while :; do
14611 case $as_dir in #(
14612 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14613 *) as_qdir=$as_dir;;
14614 esac
14615 as_dirs="'$as_qdir' $as_dirs"
14616 as_dir=`$as_dirname -- "$as_dir" ||
14617 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14618 X"$as_dir" : 'X\(//\)[^/]' \| \
14619 X"$as_dir" : 'X\(//\)$' \| \
14620 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14621 $as_echo X"$as_dir" |
14622 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14623 s//\1/
14626 /^X\(\/\/\)[^/].*/{
14627 s//\1/
14630 /^X\(\/\/\)$/{
14631 s//\1/
14634 /^X\(\/\).*/{
14635 s//\1/
14638 s/.*/./; q'`
14639 test -d "$as_dir" && break
14640 done
14641 test -z "$as_dirs" || eval "mkdir $as_dirs"
14642 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14645 } # as_fn_mkdir_p
14646 if mkdir -p . 2>/dev/null; then
14647 as_mkdir_p='mkdir -p "$as_dir"'
14648 else
14649 test -d ./-p && rmdir ./-p
14650 as_mkdir_p=false
14653 if test -x / >/dev/null 2>&1; then
14654 as_test_x='test -x'
14655 else
14656 if ls -dL / >/dev/null 2>&1; then
14657 as_ls_L_option=L
14658 else
14659 as_ls_L_option=
14661 as_test_x='
14662 eval sh -c '\''
14663 if test -d "$1"; then
14664 test -d "$1/.";
14665 else
14666 case $1 in #(
14667 -*)set "./$1";;
14668 esac;
14669 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14670 ???[sx]*):;;*)false;;esac;fi
14671 '\'' sh
14674 as_executable_p=$as_test_x
14676 # Sed expression to map a string onto a valid CPP name.
14677 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14679 # Sed expression to map a string onto a valid variable name.
14680 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14683 exec 6>&1
14684 ## ----------------------------------- ##
14685 ## Main body of $CONFIG_STATUS script. ##
14686 ## ----------------------------------- ##
14687 _ASEOF
14688 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14690 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14691 # Save the log message, to keep $0 and so on meaningful, and to
14692 # report actual input values of CONFIG_FILES etc. instead of their
14693 # values after options handling.
14694 ac_log="
14695 This file was extended by package-unused $as_me version-unused, which was
14696 generated by GNU Autoconf 2.64. Invocation command line was
14698 CONFIG_FILES = $CONFIG_FILES
14699 CONFIG_HEADERS = $CONFIG_HEADERS
14700 CONFIG_LINKS = $CONFIG_LINKS
14701 CONFIG_COMMANDS = $CONFIG_COMMANDS
14702 $ $0 $@
14704 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14707 _ACEOF
14709 case $ac_config_files in *"
14710 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14711 esac
14713 case $ac_config_headers in *"
14714 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14715 esac
14718 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14719 # Files that config.status was made for.
14720 config_files="$ac_config_files"
14721 config_headers="$ac_config_headers"
14722 config_commands="$ac_config_commands"
14724 _ACEOF
14726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14727 ac_cs_usage="\
14728 \`$as_me' instantiates files and other configuration actions
14729 from templates according to the current configuration. Unless the files
14730 and actions are specified as TAGs, all are instantiated by default.
14732 Usage: $0 [OPTION]... [TAG]...
14734 -h, --help print this help, then exit
14735 -V, --version print version number and configuration settings, then exit
14736 -q, --quiet, --silent
14737 do not print progress messages
14738 -d, --debug don't remove temporary files
14739 --recheck update $as_me by reconfiguring in the same conditions
14740 --file=FILE[:TEMPLATE]
14741 instantiate the configuration file FILE
14742 --header=FILE[:TEMPLATE]
14743 instantiate the configuration header FILE
14745 Configuration files:
14746 $config_files
14748 Configuration headers:
14749 $config_headers
14751 Configuration commands:
14752 $config_commands
14754 Report bugs to the package provider."
14756 _ACEOF
14757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14758 ac_cs_version="\\
14759 package-unused config.status version-unused
14760 configured by $0, generated by GNU Autoconf 2.64,
14761 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14763 Copyright (C) 2009 Free Software Foundation, Inc.
14764 This config.status script is free software; the Free Software Foundation
14765 gives unlimited permission to copy, distribute and modify it."
14767 ac_pwd='$ac_pwd'
14768 srcdir='$srcdir'
14769 INSTALL='$INSTALL'
14770 MKDIR_P='$MKDIR_P'
14771 AWK='$AWK'
14772 test -n "\$AWK" || AWK=awk
14773 _ACEOF
14775 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14776 # The default lists apply if the user does not specify any file.
14777 ac_need_defaults=:
14778 while test $# != 0
14780 case $1 in
14781 --*=*)
14782 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14783 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14784 ac_shift=:
14787 ac_option=$1
14788 ac_optarg=$2
14789 ac_shift=shift
14791 esac
14793 case $ac_option in
14794 # Handling of the options.
14795 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14796 ac_cs_recheck=: ;;
14797 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14798 $as_echo "$ac_cs_version"; exit ;;
14799 --debug | --debu | --deb | --de | --d | -d )
14800 debug=: ;;
14801 --file | --fil | --fi | --f )
14802 $ac_shift
14803 case $ac_optarg in
14804 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14805 esac
14806 as_fn_append CONFIG_FILES " '$ac_optarg'"
14807 ac_need_defaults=false;;
14808 --header | --heade | --head | --hea )
14809 $ac_shift
14810 case $ac_optarg in
14811 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14812 esac
14813 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14814 ac_need_defaults=false;;
14815 --he | --h)
14816 # Conflict between --help and --header
14817 as_fn_error "ambiguous option: \`$1'
14818 Try \`$0 --help' for more information.";;
14819 --help | --hel | -h )
14820 $as_echo "$ac_cs_usage"; exit ;;
14821 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14822 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14823 ac_cs_silent=: ;;
14825 # This is an error.
14826 -*) as_fn_error "unrecognized option: \`$1'
14827 Try \`$0 --help' for more information." ;;
14829 *) as_fn_append ac_config_targets " $1"
14830 ac_need_defaults=false ;;
14832 esac
14833 shift
14834 done
14836 ac_configure_extra_args=
14838 if $ac_cs_silent; then
14839 exec 6>/dev/null
14840 ac_configure_extra_args="$ac_configure_extra_args --silent"
14843 _ACEOF
14844 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14845 if \$ac_cs_recheck; then
14846 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14847 shift
14848 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14849 CONFIG_SHELL='$SHELL'
14850 export CONFIG_SHELL
14851 exec "\$@"
14854 _ACEOF
14855 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14856 exec 5>>config.log
14858 echo
14859 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14860 ## Running $as_me. ##
14861 _ASBOX
14862 $as_echo "$ac_log"
14863 } >&5
14865 _ACEOF
14866 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14868 # INIT-COMMANDS
14871 srcdir="$srcdir"
14872 host="$host"
14873 target="$target"
14874 with_multisubdir="$with_multisubdir"
14875 with_multisrctop="$with_multisrctop"
14876 with_target_subdir="$with_target_subdir"
14877 ac_configure_args="${multilib_arg} ${ac_configure_args}"
14878 multi_basedir="$multi_basedir"
14879 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
14880 CC="$CC"
14881 CXX="$CXX"
14882 GFORTRAN="$GFORTRAN"
14883 GCJ="$GCJ"
14884 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14887 # The HP-UX ksh and POSIX shell print the target directory to stdout
14888 # if CDPATH is set.
14889 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14891 sed_quote_subst='$sed_quote_subst'
14892 double_quote_subst='$double_quote_subst'
14893 delay_variable_subst='$delay_variable_subst'
14894 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14895 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14896 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14897 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14898 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14899 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14900 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14901 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14902 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14903 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14904 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14905 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14906 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14907 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14908 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14909 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14910 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14911 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14912 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14913 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14914 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14915 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14916 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14917 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14918 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14919 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14920 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14921 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14922 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14923 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14924 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14925 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14926 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14927 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14928 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14929 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14930 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14931 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14932 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14933 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14934 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14935 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14936 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14937 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14938 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14939 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14940 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14941 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14942 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"`'
14943 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14944 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14945 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14946 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14947 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14948 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14949 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14950 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14951 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14952 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14953 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14954 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14955 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14956 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14957 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14958 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14959 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14960 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14961 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14962 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14963 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14964 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14965 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14966 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14967 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14968 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14969 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14970 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14971 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14972 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14973 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14974 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14975 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14976 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14977 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14978 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14979 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14980 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14981 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14982 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14983 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
14984 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14985 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14986 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14987 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14988 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14989 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14990 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14991 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14992 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14993 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14994 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14995 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14996 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14997 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14998 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14999 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15000 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15001 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15002 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15003 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15004 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15005 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15006 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15007 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15008 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15009 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15010 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15011 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15012 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15013 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15014 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
15015 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
15016 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
15017 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
15018 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
15019 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
15020 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
15021 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
15022 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
15023 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
15024 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
15025 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
15026 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
15027 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15028 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15029 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
15030 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
15031 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
15032 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
15033 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
15034 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
15035 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
15036 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
15037 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
15038 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
15039 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15040 hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
15041 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
15042 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
15043 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
15044 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
15045 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
15046 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
15047 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
15048 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
15049 fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
15050 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
15051 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
15052 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
15053 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
15054 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
15055 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
15056 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
15058 LTCC='$LTCC'
15059 LTCFLAGS='$LTCFLAGS'
15060 compiler='$compiler_DEFAULT'
15062 # A function that is used when there is no print builtin or printf.
15063 func_fallback_echo ()
15065 eval 'cat <<_LTECHO_EOF
15067 _LTECHO_EOF'
15070 # Quote evaled strings.
15071 for var in SED \
15072 GREP \
15073 EGREP \
15074 FGREP \
15075 SHELL \
15076 ECHO \
15077 LD \
15078 NM \
15079 LN_S \
15080 lt_SP2NL \
15081 lt_NL2SP \
15082 reload_flag \
15083 OBJDUMP \
15084 deplibs_check_method \
15085 file_magic_cmd \
15086 AR \
15087 AR_FLAGS \
15088 STRIP \
15089 RANLIB \
15090 CC \
15091 CFLAGS \
15092 compiler \
15093 lt_cv_sys_global_symbol_pipe \
15094 lt_cv_sys_global_symbol_to_cdecl \
15095 lt_cv_sys_global_symbol_to_c_name_address \
15096 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15097 lt_prog_compiler_no_builtin_flag \
15098 lt_prog_compiler_wl \
15099 lt_prog_compiler_pic \
15100 lt_prog_compiler_static \
15101 lt_cv_prog_compiler_c_o \
15102 need_locks \
15103 DSYMUTIL \
15104 NMEDIT \
15105 LIPO \
15106 OTOOL \
15107 OTOOL64 \
15108 shrext_cmds \
15109 export_dynamic_flag_spec \
15110 whole_archive_flag_spec \
15111 compiler_needs_object \
15112 with_gnu_ld \
15113 allow_undefined_flag \
15114 no_undefined_flag \
15115 hardcode_libdir_flag_spec \
15116 hardcode_libdir_flag_spec_ld \
15117 hardcode_libdir_separator \
15118 fix_srcfile_path \
15119 exclude_expsyms \
15120 include_expsyms \
15121 file_list_spec \
15122 variables_saved_for_relink \
15123 libname_spec \
15124 library_names_spec \
15125 soname_spec \
15126 install_override_mode \
15127 finish_eval \
15128 old_striplib \
15129 striplib \
15130 LD_GO \
15131 reload_flag_GO \
15132 compiler_GO \
15133 lt_prog_compiler_no_builtin_flag_GO \
15134 lt_prog_compiler_wl_GO \
15135 lt_prog_compiler_pic_GO \
15136 lt_prog_compiler_static_GO \
15137 lt_cv_prog_compiler_c_o_GO \
15138 export_dynamic_flag_spec_GO \
15139 whole_archive_flag_spec_GO \
15140 compiler_needs_object_GO \
15141 with_gnu_ld_GO \
15142 allow_undefined_flag_GO \
15143 no_undefined_flag_GO \
15144 hardcode_libdir_flag_spec_GO \
15145 hardcode_libdir_flag_spec_ld_GO \
15146 hardcode_libdir_separator_GO \
15147 fix_srcfile_path_GO \
15148 exclude_expsyms_GO \
15149 include_expsyms_GO \
15150 file_list_spec_GO; do
15151 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15152 *[\\\\\\\`\\"\\\$]*)
15153 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15156 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15158 esac
15159 done
15161 # Double-quote double-evaled strings.
15162 for var in reload_cmds \
15163 old_postinstall_cmds \
15164 old_postuninstall_cmds \
15165 old_archive_cmds \
15166 extract_expsyms_cmds \
15167 old_archive_from_new_cmds \
15168 old_archive_from_expsyms_cmds \
15169 archive_cmds \
15170 archive_expsym_cmds \
15171 module_cmds \
15172 module_expsym_cmds \
15173 export_symbols_cmds \
15174 prelink_cmds \
15175 postinstall_cmds \
15176 postuninstall_cmds \
15177 finish_cmds \
15178 sys_lib_search_path_spec \
15179 sys_lib_dlsearch_path_spec \
15180 reload_cmds_GO \
15181 old_archive_cmds_GO \
15182 old_archive_from_new_cmds_GO \
15183 old_archive_from_expsyms_cmds_GO \
15184 archive_cmds_GO \
15185 archive_expsym_cmds_GO \
15186 module_cmds_GO \
15187 module_expsym_cmds_GO \
15188 export_symbols_cmds_GO \
15189 prelink_cmds_GO; do
15190 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15191 *[\\\\\\\`\\"\\\$]*)
15192 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15195 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15197 esac
15198 done
15200 ac_aux_dir='$ac_aux_dir'
15201 xsi_shell='$xsi_shell'
15202 lt_shell_append='$lt_shell_append'
15204 # See if we are running on zsh, and set the options which allow our
15205 # commands through without removal of \ escapes INIT.
15206 if test -n "\${ZSH_VERSION+set}" ; then
15207 setopt NO_GLOB_SUBST
15211 PACKAGE='$PACKAGE'
15212 VERSION='$VERSION'
15213 TIMESTAMP='$TIMESTAMP'
15214 RM='$RM'
15215 ofile='$ofile'
15222 # Variables needed in config.status (file generation) which aren't already
15223 # passed by autoconf.
15224 SUBDIRS="$SUBDIRS"
15227 _ACEOF
15229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15231 # Handling of arguments.
15232 for ac_config_target in $ac_config_targets
15234 case $ac_config_target in
15235 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15236 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15237 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15238 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15239 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15240 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
15241 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15243 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15244 esac
15245 done
15248 # If the user did not use the arguments to specify the items to instantiate,
15249 # then the envvar interface is used. Set only those that are not.
15250 # We use the long form for the default assignment because of an extremely
15251 # bizarre bug on SunOS 4.1.3.
15252 if $ac_need_defaults; then
15253 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15254 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15255 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15258 # Have a temporary directory for convenience. Make it in the build tree
15259 # simply because there is no reason against having it here, and in addition,
15260 # creating and moving files from /tmp can sometimes cause problems.
15261 # Hook for its removal unless debugging.
15262 # Note that there is a small window in which the directory will not be cleaned:
15263 # after its creation but before its name has been assigned to `$tmp'.
15264 $debug ||
15266 tmp=
15267 trap 'exit_status=$?
15268 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15270 trap 'as_fn_exit 1' 1 2 13 15
15272 # Create a (secure) tmp directory for tmp files.
15275 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15276 test -n "$tmp" && test -d "$tmp"
15277 } ||
15279 tmp=./conf$$-$RANDOM
15280 (umask 077 && mkdir "$tmp")
15281 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15283 # Set up the scripts for CONFIG_FILES section.
15284 # No need to generate them if there are no CONFIG_FILES.
15285 # This happens for instance with `./config.status config.h'.
15286 if test -n "$CONFIG_FILES"; then
15289 ac_cr=`echo X | tr X '\015'`
15290 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15291 # But we know of no other shell where ac_cr would be empty at this
15292 # point, so we can use a bashism as a fallback.
15293 if test "x$ac_cr" = x; then
15294 eval ac_cr=\$\'\\r\'
15296 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15297 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15298 ac_cs_awk_cr='\r'
15299 else
15300 ac_cs_awk_cr=$ac_cr
15303 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15304 _ACEOF
15308 echo "cat >conf$$subs.awk <<_ACEOF" &&
15309 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15310 echo "_ACEOF"
15311 } >conf$$subs.sh ||
15312 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15313 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15314 ac_delim='%!_!# '
15315 for ac_last_try in false false false false false :; do
15316 . ./conf$$subs.sh ||
15317 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15319 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15320 if test $ac_delim_n = $ac_delim_num; then
15321 break
15322 elif $ac_last_try; then
15323 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15324 else
15325 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15327 done
15328 rm -f conf$$subs.sh
15330 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15331 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15332 _ACEOF
15333 sed -n '
15335 s/^/S["/; s/!.*/"]=/
15338 s/^[^!]*!//
15339 :repl
15340 t repl
15341 s/'"$ac_delim"'$//
15342 t delim
15345 s/\(.\{148\}\).*/\1/
15346 t more1
15347 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15350 b repl
15351 :more1
15352 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15355 s/.\{148\}//
15356 t nl
15357 :delim
15359 s/\(.\{148\}\).*/\1/
15360 t more2
15361 s/["\\]/\\&/g; s/^/"/; s/$/"/
15364 :more2
15365 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15368 s/.\{148\}//
15369 t delim
15370 ' <conf$$subs.awk | sed '
15371 /^[^""]/{
15373 s/\n//
15375 ' >>$CONFIG_STATUS || ac_write_fail=1
15376 rm -f conf$$subs.awk
15377 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15378 _ACAWK
15379 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15380 for (key in S) S_is_set[key] = 1
15381 FS = "\a"
15385 line = $ 0
15386 nfields = split(line, field, "@")
15387 substed = 0
15388 len = length(field[1])
15389 for (i = 2; i < nfields; i++) {
15390 key = field[i]
15391 keylen = length(key)
15392 if (S_is_set[key]) {
15393 value = S[key]
15394 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15395 len += length(value) + length(field[++i])
15396 substed = 1
15397 } else
15398 len += 1 + keylen
15401 print line
15404 _ACAWK
15405 _ACEOF
15406 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15407 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15408 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15409 else
15411 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15412 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15413 _ACEOF
15415 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15416 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15417 # trailing colons and then remove the whole line if VPATH becomes empty
15418 # (actually we leave an empty line to preserve line numbers).
15419 if test "x$srcdir" = x.; then
15420 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15421 s/:*\$(srcdir):*/:/
15422 s/:*\${srcdir}:*/:/
15423 s/:*@srcdir@:*/:/
15424 s/^\([^=]*=[ ]*\):*/\1/
15425 s/:*$//
15426 s/^[^=]*=[ ]*$//
15430 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15431 fi # test -n "$CONFIG_FILES"
15433 # Set up the scripts for CONFIG_HEADERS section.
15434 # No need to generate them if there are no CONFIG_HEADERS.
15435 # This happens for instance with `./config.status Makefile'.
15436 if test -n "$CONFIG_HEADERS"; then
15437 cat >"$tmp/defines.awk" <<\_ACAWK ||
15438 BEGIN {
15439 _ACEOF
15441 # Transform confdefs.h into an awk script `defines.awk', embedded as
15442 # here-document in config.status, that substitutes the proper values into
15443 # config.h.in to produce config.h.
15445 # Create a delimiter string that does not exist in confdefs.h, to ease
15446 # handling of long lines.
15447 ac_delim='%!_!# '
15448 for ac_last_try in false false :; do
15449 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15450 if test -z "$ac_t"; then
15451 break
15452 elif $ac_last_try; then
15453 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15454 else
15455 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15457 done
15459 # For the awk script, D is an array of macro values keyed by name,
15460 # likewise P contains macro parameters if any. Preserve backslash
15461 # newline sequences.
15463 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15464 sed -n '
15465 s/.\{148\}/&'"$ac_delim"'/g
15466 t rset
15467 :rset
15468 s/^[ ]*#[ ]*define[ ][ ]*/ /
15469 t def
15471 :def
15472 s/\\$//
15473 t bsnl
15474 s/["\\]/\\&/g
15475 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15476 D["\1"]=" \3"/p
15477 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15479 :bsnl
15480 s/["\\]/\\&/g
15481 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15482 D["\1"]=" \3\\\\\\n"\\/p
15483 t cont
15484 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15485 t cont
15487 :cont
15489 s/.\{148\}/&'"$ac_delim"'/g
15490 t clear
15491 :clear
15492 s/\\$//
15493 t bsnlc
15494 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15496 :bsnlc
15497 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15498 b cont
15499 ' <confdefs.h | sed '
15500 s/'"$ac_delim"'/"\\\
15501 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15503 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15504 for (key in D) D_is_set[key] = 1
15505 FS = "\a"
15507 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15508 line = \$ 0
15509 split(line, arg, " ")
15510 if (arg[1] == "#") {
15511 defundef = arg[2]
15512 mac1 = arg[3]
15513 } else {
15514 defundef = substr(arg[1], 2)
15515 mac1 = arg[2]
15517 split(mac1, mac2, "(") #)
15518 macro = mac2[1]
15519 prefix = substr(line, 1, index(line, defundef) - 1)
15520 if (D_is_set[macro]) {
15521 # Preserve the white space surrounding the "#".
15522 print prefix "define", macro P[macro] D[macro]
15523 next
15524 } else {
15525 # Replace #undef with comments. This is necessary, for example,
15526 # in the case of _POSIX_SOURCE, which is predefined and required
15527 # on some systems where configure will not decide to define it.
15528 if (defundef == "undef") {
15529 print "/*", prefix defundef, macro, "*/"
15530 next
15534 { print }
15535 _ACAWK
15536 _ACEOF
15537 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15538 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15539 fi # test -n "$CONFIG_HEADERS"
15542 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15543 shift
15544 for ac_tag
15546 case $ac_tag in
15547 :[FHLC]) ac_mode=$ac_tag; continue;;
15548 esac
15549 case $ac_mode$ac_tag in
15550 :[FHL]*:*);;
15551 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15552 :[FH]-) ac_tag=-:-;;
15553 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15554 esac
15555 ac_save_IFS=$IFS
15556 IFS=:
15557 set x $ac_tag
15558 IFS=$ac_save_IFS
15559 shift
15560 ac_file=$1
15561 shift
15563 case $ac_mode in
15564 :L) ac_source=$1;;
15565 :[FH])
15566 ac_file_inputs=
15567 for ac_f
15569 case $ac_f in
15570 -) ac_f="$tmp/stdin";;
15571 *) # Look for the file first in the build tree, then in the source tree
15572 # (if the path is not absolute). The absolute path cannot be DOS-style,
15573 # because $ac_f cannot contain `:'.
15574 test -f "$ac_f" ||
15575 case $ac_f in
15576 [\\/$]*) false;;
15577 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15578 esac ||
15579 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15580 esac
15581 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15582 as_fn_append ac_file_inputs " '$ac_f'"
15583 done
15585 # Let's still pretend it is `configure' which instantiates (i.e., don't
15586 # use $as_me), people would be surprised to read:
15587 # /* config.h. Generated by config.status. */
15588 configure_input='Generated from '`
15589 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15590 `' by configure.'
15591 if test x"$ac_file" != x-; then
15592 configure_input="$ac_file. $configure_input"
15593 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15594 $as_echo "$as_me: creating $ac_file" >&6;}
15596 # Neutralize special characters interpreted by sed in replacement strings.
15597 case $configure_input in #(
15598 *\&* | *\|* | *\\* )
15599 ac_sed_conf_input=`$as_echo "$configure_input" |
15600 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15601 *) ac_sed_conf_input=$configure_input;;
15602 esac
15604 case $ac_tag in
15605 *:-:* | *:-) cat >"$tmp/stdin" \
15606 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15607 esac
15609 esac
15611 ac_dir=`$as_dirname -- "$ac_file" ||
15612 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15613 X"$ac_file" : 'X\(//\)[^/]' \| \
15614 X"$ac_file" : 'X\(//\)$' \| \
15615 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15616 $as_echo X"$ac_file" |
15617 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15618 s//\1/
15621 /^X\(\/\/\)[^/].*/{
15622 s//\1/
15625 /^X\(\/\/\)$/{
15626 s//\1/
15629 /^X\(\/\).*/{
15630 s//\1/
15633 s/.*/./; q'`
15634 as_dir="$ac_dir"; as_fn_mkdir_p
15635 ac_builddir=.
15637 case "$ac_dir" in
15638 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15640 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15641 # A ".." for each directory in $ac_dir_suffix.
15642 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15643 case $ac_top_builddir_sub in
15644 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15645 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15646 esac ;;
15647 esac
15648 ac_abs_top_builddir=$ac_pwd
15649 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15650 # for backward compatibility:
15651 ac_top_builddir=$ac_top_build_prefix
15653 case $srcdir in
15654 .) # We are building in place.
15655 ac_srcdir=.
15656 ac_top_srcdir=$ac_top_builddir_sub
15657 ac_abs_top_srcdir=$ac_pwd ;;
15658 [\\/]* | ?:[\\/]* ) # Absolute name.
15659 ac_srcdir=$srcdir$ac_dir_suffix;
15660 ac_top_srcdir=$srcdir
15661 ac_abs_top_srcdir=$srcdir ;;
15662 *) # Relative name.
15663 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15664 ac_top_srcdir=$ac_top_build_prefix$srcdir
15665 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15666 esac
15667 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15670 case $ac_mode in
15673 # CONFIG_FILE
15676 case $INSTALL in
15677 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15678 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15679 esac
15680 ac_MKDIR_P=$MKDIR_P
15681 case $MKDIR_P in
15682 [\\/$]* | ?:[\\/]* ) ;;
15683 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15684 esac
15685 _ACEOF
15687 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15688 # If the template does not know about datarootdir, expand it.
15689 # FIXME: This hack should be removed a few years after 2.60.
15690 ac_datarootdir_hack=; ac_datarootdir_seen=
15691 ac_sed_dataroot='
15692 /datarootdir/ {
15696 /@datadir@/p
15697 /@docdir@/p
15698 /@infodir@/p
15699 /@localedir@/p
15700 /@mandir@/p'
15701 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15702 *datarootdir*) ac_datarootdir_seen=yes;;
15703 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15705 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15706 _ACEOF
15707 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15708 ac_datarootdir_hack='
15709 s&@datadir@&$datadir&g
15710 s&@docdir@&$docdir&g
15711 s&@infodir@&$infodir&g
15712 s&@localedir@&$localedir&g
15713 s&@mandir@&$mandir&g
15714 s&\\\${datarootdir}&$datarootdir&g' ;;
15715 esac
15716 _ACEOF
15718 # Neutralize VPATH when `$srcdir' = `.'.
15719 # Shell code in configure.ac might set extrasub.
15720 # FIXME: do we really want to maintain this feature?
15721 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15722 ac_sed_extra="$ac_vpsub
15723 $extrasub
15724 _ACEOF
15725 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15727 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15728 s|@configure_input@|$ac_sed_conf_input|;t t
15729 s&@top_builddir@&$ac_top_builddir_sub&;t t
15730 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15731 s&@srcdir@&$ac_srcdir&;t t
15732 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15733 s&@top_srcdir@&$ac_top_srcdir&;t t
15734 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15735 s&@builddir@&$ac_builddir&;t t
15736 s&@abs_builddir@&$ac_abs_builddir&;t t
15737 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15738 s&@INSTALL@&$ac_INSTALL&;t t
15739 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15740 $ac_datarootdir_hack
15742 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15743 || as_fn_error "could not create $ac_file" "$LINENO" 5
15745 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15746 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15747 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15749 which seems to be undefined. Please make sure it is defined." >&5
15750 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15751 which seems to be undefined. Please make sure it is defined." >&2;}
15753 rm -f "$tmp/stdin"
15754 case $ac_file in
15755 -) cat "$tmp/out" && rm -f "$tmp/out";;
15756 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15757 esac \
15758 || as_fn_error "could not create $ac_file" "$LINENO" 5
15762 # CONFIG_HEADER
15764 if test x"$ac_file" != x-; then
15766 $as_echo "/* $configure_input */" \
15767 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15768 } >"$tmp/config.h" \
15769 || as_fn_error "could not create $ac_file" "$LINENO" 5
15770 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15772 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15773 else
15774 rm -f "$ac_file"
15775 mv "$tmp/config.h" "$ac_file" \
15776 || as_fn_error "could not create $ac_file" "$LINENO" 5
15778 else
15779 $as_echo "/* $configure_input */" \
15780 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15781 || as_fn_error "could not create -" "$LINENO" 5
15783 # Compute "$ac_file"'s index in $config_headers.
15784 _am_arg="$ac_file"
15785 _am_stamp_count=1
15786 for _am_header in $config_headers :; do
15787 case $_am_header in
15788 $_am_arg | $_am_arg:* )
15789 break ;;
15791 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15792 esac
15793 done
15794 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15795 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15796 X"$_am_arg" : 'X\(//\)[^/]' \| \
15797 X"$_am_arg" : 'X\(//\)$' \| \
15798 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15799 $as_echo X"$_am_arg" |
15800 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15801 s//\1/
15804 /^X\(\/\/\)[^/].*/{
15805 s//\1/
15808 /^X\(\/\/\)$/{
15809 s//\1/
15812 /^X\(\/\).*/{
15813 s//\1/
15816 s/.*/./; q'`/stamp-h$_am_stamp_count
15819 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15820 $as_echo "$as_me: executing $ac_file commands" >&6;}
15822 esac
15825 case $ac_file$ac_mode in
15826 "default-1":C)
15827 # Only add multilib support code if we just rebuilt the top-level
15828 # Makefile.
15829 case " $CONFIG_FILES " in
15830 *" Makefile "*)
15831 ac_file=Makefile . ${multi_basedir}/config-ml.in
15833 esac ;;
15834 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15835 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15836 # are listed without --file. Let's play safe and only enable the eval
15837 # if we detect the quoting.
15838 case $CONFIG_FILES in
15839 *\'*) eval set x "$CONFIG_FILES" ;;
15840 *) set x $CONFIG_FILES ;;
15841 esac
15842 shift
15843 for mf
15845 # Strip MF so we end up with the name of the file.
15846 mf=`echo "$mf" | sed -e 's/:.*$//'`
15847 # Check whether this is an Automake generated Makefile or not.
15848 # We used to match only the files named `Makefile.in', but
15849 # some people rename them; so instead we look at the file content.
15850 # Grep'ing the first line is not enough: some people post-process
15851 # each Makefile.in and add a new line on top of each file to say so.
15852 # Grep'ing the whole file is not good either: AIX grep has a line
15853 # limit of 2048, but all sed's we know have understand at least 4000.
15854 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15855 dirpart=`$as_dirname -- "$mf" ||
15856 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15857 X"$mf" : 'X\(//\)[^/]' \| \
15858 X"$mf" : 'X\(//\)$' \| \
15859 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15860 $as_echo X"$mf" |
15861 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15862 s//\1/
15865 /^X\(\/\/\)[^/].*/{
15866 s//\1/
15869 /^X\(\/\/\)$/{
15870 s//\1/
15873 /^X\(\/\).*/{
15874 s//\1/
15877 s/.*/./; q'`
15878 else
15879 continue
15881 # Extract the definition of DEPDIR, am__include, and am__quote
15882 # from the Makefile without running `make'.
15883 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15884 test -z "$DEPDIR" && continue
15885 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15886 test -z "am__include" && continue
15887 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15888 # When using ansi2knr, U may be empty or an underscore; expand it
15889 U=`sed -n 's/^U = //p' < "$mf"`
15890 # Find all dependency output files, they are included files with
15891 # $(DEPDIR) in their names. We invoke sed twice because it is the
15892 # simplest approach to changing $(DEPDIR) to its actual value in the
15893 # expansion.
15894 for file in `sed -n "
15895 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15896 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15897 # Make sure the directory exists.
15898 test -f "$dirpart/$file" && continue
15899 fdir=`$as_dirname -- "$file" ||
15900 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15901 X"$file" : 'X\(//\)[^/]' \| \
15902 X"$file" : 'X\(//\)$' \| \
15903 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15904 $as_echo X"$file" |
15905 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15906 s//\1/
15909 /^X\(\/\/\)[^/].*/{
15910 s//\1/
15913 /^X\(\/\/\)$/{
15914 s//\1/
15917 /^X\(\/\).*/{
15918 s//\1/
15921 s/.*/./; q'`
15922 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15923 # echo "creating $dirpart/$file"
15924 echo '# dummy' > "$dirpart/$file"
15925 done
15926 done
15929 "libtool":C)
15931 # See if we are running on zsh, and set the options which allow our
15932 # commands through without removal of \ escapes.
15933 if test -n "${ZSH_VERSION+set}" ; then
15934 setopt NO_GLOB_SUBST
15937 cfgfile="${ofile}T"
15938 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15939 $RM "$cfgfile"
15941 cat <<_LT_EOF >> "$cfgfile"
15942 #! $SHELL
15944 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15945 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15946 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15947 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15949 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15950 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15951 # Written by Gordon Matzigkeit, 1996
15953 # This file is part of GNU Libtool.
15955 # GNU Libtool is free software; you can redistribute it and/or
15956 # modify it under the terms of the GNU General Public License as
15957 # published by the Free Software Foundation; either version 2 of
15958 # the License, or (at your option) any later version.
15960 # As a special exception to the GNU General Public License,
15961 # if you distribute this file as part of a program or library that
15962 # is built using GNU Libtool, you may include this file under the
15963 # same distribution terms that you use for the rest of that program.
15965 # GNU Libtool is distributed in the hope that it will be useful,
15966 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15967 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15968 # GNU General Public License for more details.
15970 # You should have received a copy of the GNU General Public License
15971 # along with GNU Libtool; see the file COPYING. If not, a copy
15972 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15973 # obtained by writing to the Free Software Foundation, Inc.,
15974 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15977 # The names of the tagged configurations supported by this script.
15978 available_tags="GO "
15980 # ### BEGIN LIBTOOL CONFIG
15982 # A sed program that does not truncate output.
15983 SED=$lt_SED
15985 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15986 Xsed="\$SED -e 1s/^X//"
15988 # A grep program that handles long lines.
15989 GREP=$lt_GREP
15991 # An ERE matcher.
15992 EGREP=$lt_EGREP
15994 # A literal string matcher.
15995 FGREP=$lt_FGREP
15997 # Shell to use when invoking shell scripts.
15998 SHELL=$lt_SHELL
16000 # An echo program that protects backslashes.
16001 ECHO=$lt_ECHO
16003 # Which release of libtool.m4 was used?
16004 macro_version=$macro_version
16005 macro_revision=$macro_revision
16007 # Whether or not to build shared libraries.
16008 build_libtool_libs=$enable_shared
16010 # Whether or not to build static libraries.
16011 build_old_libs=$enable_static
16013 # What type of objects to build.
16014 pic_mode=$pic_mode
16016 # Whether or not to optimize for fast installation.
16017 fast_install=$enable_fast_install
16019 # The host system.
16020 host_alias=$host_alias
16021 host=$host
16022 host_os=$host_os
16024 # The build system.
16025 build_alias=$build_alias
16026 build=$build
16027 build_os=$build_os
16029 # A BSD- or MS-compatible name lister.
16030 NM=$lt_NM
16032 # Whether we need soft or hard links.
16033 LN_S=$lt_LN_S
16035 # What is the maximum length of a command?
16036 max_cmd_len=$max_cmd_len
16038 # Object file suffix (normally "o").
16039 objext=$ac_objext
16041 # Executable file suffix (normally "").
16042 exeext=$exeext
16044 # whether the shell understands "unset".
16045 lt_unset=$lt_unset
16047 # turn spaces into newlines.
16048 SP2NL=$lt_lt_SP2NL
16050 # turn newlines into spaces.
16051 NL2SP=$lt_lt_NL2SP
16053 # An object symbol dumper.
16054 OBJDUMP=$lt_OBJDUMP
16056 # Method to check whether dependent libraries are shared objects.
16057 deplibs_check_method=$lt_deplibs_check_method
16059 # Command to use when deplibs_check_method == "file_magic".
16060 file_magic_cmd=$lt_file_magic_cmd
16062 # The archiver.
16063 AR=$lt_AR
16064 AR_FLAGS=$lt_AR_FLAGS
16066 # A symbol stripping program.
16067 STRIP=$lt_STRIP
16069 # Commands used to install an old-style archive.
16070 RANLIB=$lt_RANLIB
16071 old_postinstall_cmds=$lt_old_postinstall_cmds
16072 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16074 # Whether to use a lock for old archive extraction.
16075 lock_old_archive_extraction=$lock_old_archive_extraction
16077 # A C compiler.
16078 LTCC=$lt_CC
16080 # LTCC compiler flags.
16081 LTCFLAGS=$lt_CFLAGS
16083 # Take the output of nm and produce a listing of raw symbols and C names.
16084 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16086 # Transform the output of nm in a proper C declaration.
16087 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16089 # Transform the output of nm in a C name address pair.
16090 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16092 # Transform the output of nm in a C name address pair when lib prefix is needed.
16093 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16095 # The name of the directory that contains temporary libtool files.
16096 objdir=$objdir
16098 # Used to examine libraries when file_magic_cmd begins with "file".
16099 MAGIC_CMD=$MAGIC_CMD
16101 # Must we lock files when doing compilation?
16102 need_locks=$lt_need_locks
16104 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16105 DSYMUTIL=$lt_DSYMUTIL
16107 # Tool to change global to local symbols on Mac OS X.
16108 NMEDIT=$lt_NMEDIT
16110 # Tool to manipulate fat objects and archives on Mac OS X.
16111 LIPO=$lt_LIPO
16113 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16114 OTOOL=$lt_OTOOL
16116 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16117 OTOOL64=$lt_OTOOL64
16119 # Old archive suffix (normally "a").
16120 libext=$libext
16122 # Shared library suffix (normally ".so").
16123 shrext_cmds=$lt_shrext_cmds
16125 # The commands to extract the exported symbol list from a shared archive.
16126 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16128 # Variables whose values should be saved in libtool wrapper scripts and
16129 # restored at link time.
16130 variables_saved_for_relink=$lt_variables_saved_for_relink
16132 # Do we need the "lib" prefix for modules?
16133 need_lib_prefix=$need_lib_prefix
16135 # Do we need a version for libraries?
16136 need_version=$need_version
16138 # Library versioning type.
16139 version_type=$version_type
16141 # Shared library runtime path variable.
16142 runpath_var=$runpath_var
16144 # Shared library path variable.
16145 shlibpath_var=$shlibpath_var
16147 # Is shlibpath searched before the hard-coded library search path?
16148 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16150 # Format of library name prefix.
16151 libname_spec=$lt_libname_spec
16153 # List of archive names. First name is the real one, the rest are links.
16154 # The last name is the one that the linker finds with -lNAME
16155 library_names_spec=$lt_library_names_spec
16157 # The coded name of the library, if different from the real name.
16158 soname_spec=$lt_soname_spec
16160 # Permission mode override for installation of shared libraries.
16161 install_override_mode=$lt_install_override_mode
16163 # Command to use after installation of a shared archive.
16164 postinstall_cmds=$lt_postinstall_cmds
16166 # Command to use after uninstallation of a shared archive.
16167 postuninstall_cmds=$lt_postuninstall_cmds
16169 # Commands used to finish a libtool library installation in a directory.
16170 finish_cmds=$lt_finish_cmds
16172 # As "finish_cmds", except a single script fragment to be evaled but
16173 # not shown.
16174 finish_eval=$lt_finish_eval
16176 # Whether we should hardcode library paths into libraries.
16177 hardcode_into_libs=$hardcode_into_libs
16179 # Compile-time system search path for libraries.
16180 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16182 # Run-time system search path for libraries.
16183 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16185 # Whether dlopen is supported.
16186 dlopen_support=$enable_dlopen
16188 # Whether dlopen of programs is supported.
16189 dlopen_self=$enable_dlopen_self
16191 # Whether dlopen of statically linked programs is supported.
16192 dlopen_self_static=$enable_dlopen_self_static
16194 # Commands to strip libraries.
16195 old_striplib=$lt_old_striplib
16196 striplib=$lt_striplib
16199 # The linker used to build libraries.
16200 LD=$lt_LD
16202 # How to create reloadable object files.
16203 reload_flag=$lt_reload_flag
16204 reload_cmds=$lt_reload_cmds
16206 # Commands used to build an old-style archive.
16207 old_archive_cmds=$lt_old_archive_cmds
16209 # A language specific compiler.
16210 CC=$lt_compiler
16212 # Is the compiler the GNU compiler?
16213 with_gcc=$GCC
16215 # Compiler flag to turn off builtin functions.
16216 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16218 # How to pass a linker flag through the compiler.
16219 wl=$lt_lt_prog_compiler_wl
16221 # Additional compiler flags for building library objects.
16222 pic_flag=$lt_lt_prog_compiler_pic
16224 # Compiler flag to prevent dynamic linking.
16225 link_static_flag=$lt_lt_prog_compiler_static
16227 # Does compiler simultaneously support -c and -o options?
16228 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16230 # Whether or not to add -lc for building shared libraries.
16231 build_libtool_need_lc=$archive_cmds_need_lc
16233 # Whether or not to disallow shared libs when runtime libs are static.
16234 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16236 # Compiler flag to allow reflexive dlopens.
16237 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16239 # Compiler flag to generate shared objects directly from archives.
16240 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16242 # Whether the compiler copes with passing no objects directly.
16243 compiler_needs_object=$lt_compiler_needs_object
16245 # Create an old-style archive from a shared archive.
16246 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16248 # Create a temporary old-style archive to link instead of a shared archive.
16249 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16251 # Commands used to build a shared archive.
16252 archive_cmds=$lt_archive_cmds
16253 archive_expsym_cmds=$lt_archive_expsym_cmds
16255 # Commands used to build a loadable module if different from building
16256 # a shared archive.
16257 module_cmds=$lt_module_cmds
16258 module_expsym_cmds=$lt_module_expsym_cmds
16260 # Whether we are building with GNU ld or not.
16261 with_gnu_ld=$lt_with_gnu_ld
16263 # Flag that allows shared libraries with undefined symbols to be built.
16264 allow_undefined_flag=$lt_allow_undefined_flag
16266 # Flag that enforces no undefined symbols.
16267 no_undefined_flag=$lt_no_undefined_flag
16269 # Flag to hardcode \$libdir into a binary during linking.
16270 # This must work even if \$libdir does not exist
16271 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16273 # If ld is used when linking, flag to hardcode \$libdir into a binary
16274 # during linking. This must work even if \$libdir does not exist.
16275 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16277 # Whether we need a single "-rpath" flag with a separated argument.
16278 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16280 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16281 # DIR into the resulting binary.
16282 hardcode_direct=$hardcode_direct
16284 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16285 # DIR into the resulting binary and the resulting library dependency is
16286 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16287 # library is relocated.
16288 hardcode_direct_absolute=$hardcode_direct_absolute
16290 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16291 # into the resulting binary.
16292 hardcode_minus_L=$hardcode_minus_L
16294 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16295 # into the resulting binary.
16296 hardcode_shlibpath_var=$hardcode_shlibpath_var
16298 # Set to "yes" if building a shared library automatically hardcodes DIR
16299 # into the library and all subsequent libraries and executables linked
16300 # against it.
16301 hardcode_automatic=$hardcode_automatic
16303 # Set to yes if linker adds runtime paths of dependent libraries
16304 # to runtime path list.
16305 inherit_rpath=$inherit_rpath
16307 # Whether libtool must link a program against all its dependency libraries.
16308 link_all_deplibs=$link_all_deplibs
16310 # Fix the shell variable \$srcfile for the compiler.
16311 fix_srcfile_path=$lt_fix_srcfile_path
16313 # Set to "yes" if exported symbols are required.
16314 always_export_symbols=$always_export_symbols
16316 # The commands to list exported symbols.
16317 export_symbols_cmds=$lt_export_symbols_cmds
16319 # Symbols that should not be listed in the preloaded symbols.
16320 exclude_expsyms=$lt_exclude_expsyms
16322 # Symbols that must always be exported.
16323 include_expsyms=$lt_include_expsyms
16325 # Commands necessary for linking programs (against libraries) with templates.
16326 prelink_cmds=$lt_prelink_cmds
16328 # Specify filename containing input files.
16329 file_list_spec=$lt_file_list_spec
16331 # How to hardcode a shared library path into an executable.
16332 hardcode_action=$hardcode_action
16334 # ### END LIBTOOL CONFIG
16336 _LT_EOF
16338 case $host_os in
16339 aix3*)
16340 cat <<\_LT_EOF >> "$cfgfile"
16341 # AIX sometimes has problems with the GCC collect2 program. For some
16342 # reason, if we set the COLLECT_NAMES environment variable, the problems
16343 # vanish in a puff of smoke.
16344 if test "X${COLLECT_NAMES+set}" != Xset; then
16345 COLLECT_NAMES=
16346 export COLLECT_NAMES
16348 _LT_EOF
16350 esac
16353 ltmain="$ac_aux_dir/ltmain.sh"
16356 # We use sed instead of cat because bash on DJGPP gets confused if
16357 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16358 # text mode, it properly converts lines to CR/LF. This bash problem
16359 # is reportedly fixed, but why not run on old versions too?
16360 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16361 || (rm -f "$cfgfile"; exit 1)
16363 case $xsi_shell in
16364 yes)
16365 cat << \_LT_EOF >> "$cfgfile"
16367 # func_dirname file append nondir_replacement
16368 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16369 # otherwise set result to NONDIR_REPLACEMENT.
16370 func_dirname ()
16372 case ${1} in
16373 */*) func_dirname_result="${1%/*}${2}" ;;
16374 * ) func_dirname_result="${3}" ;;
16375 esac
16378 # func_basename file
16379 func_basename ()
16381 func_basename_result="${1##*/}"
16384 # func_dirname_and_basename file append nondir_replacement
16385 # perform func_basename and func_dirname in a single function
16386 # call:
16387 # dirname: Compute the dirname of FILE. If nonempty,
16388 # add APPEND to the result, otherwise set result
16389 # to NONDIR_REPLACEMENT.
16390 # value returned in "$func_dirname_result"
16391 # basename: Compute filename of FILE.
16392 # value retuned in "$func_basename_result"
16393 # Implementation must be kept synchronized with func_dirname
16394 # and func_basename. For efficiency, we do not delegate to
16395 # those functions but instead duplicate the functionality here.
16396 func_dirname_and_basename ()
16398 case ${1} in
16399 */*) func_dirname_result="${1%/*}${2}" ;;
16400 * ) func_dirname_result="${3}" ;;
16401 esac
16402 func_basename_result="${1##*/}"
16405 # func_stripname prefix suffix name
16406 # strip PREFIX and SUFFIX off of NAME.
16407 # PREFIX and SUFFIX must not contain globbing or regex special
16408 # characters, hashes, percent signs, but SUFFIX may contain a leading
16409 # dot (in which case that matches only a dot).
16410 func_stripname ()
16412 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16413 # positional parameters, so assign one to ordinary parameter first.
16414 func_stripname_result=${3}
16415 func_stripname_result=${func_stripname_result#"${1}"}
16416 func_stripname_result=${func_stripname_result%"${2}"}
16419 # func_opt_split
16420 func_opt_split ()
16422 func_opt_split_opt=${1%%=*}
16423 func_opt_split_arg=${1#*=}
16426 # func_lo2o object
16427 func_lo2o ()
16429 case ${1} in
16430 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16431 *) func_lo2o_result=${1} ;;
16432 esac
16435 # func_xform libobj-or-source
16436 func_xform ()
16438 func_xform_result=${1%.*}.lo
16441 # func_arith arithmetic-term...
16442 func_arith ()
16444 func_arith_result=$(( $* ))
16447 # func_len string
16448 # STRING may not start with a hyphen.
16449 func_len ()
16451 func_len_result=${#1}
16454 _LT_EOF
16456 *) # Bourne compatible functions.
16457 cat << \_LT_EOF >> "$cfgfile"
16459 # func_dirname file append nondir_replacement
16460 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16461 # otherwise set result to NONDIR_REPLACEMENT.
16462 func_dirname ()
16464 # Extract subdirectory from the argument.
16465 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16466 if test "X$func_dirname_result" = "X${1}"; then
16467 func_dirname_result="${3}"
16468 else
16469 func_dirname_result="$func_dirname_result${2}"
16473 # func_basename file
16474 func_basename ()
16476 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16480 # func_stripname prefix suffix name
16481 # strip PREFIX and SUFFIX off of NAME.
16482 # PREFIX and SUFFIX must not contain globbing or regex special
16483 # characters, hashes, percent signs, but SUFFIX may contain a leading
16484 # dot (in which case that matches only a dot).
16485 # func_strip_suffix prefix name
16486 func_stripname ()
16488 case ${2} in
16489 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16490 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16491 esac
16494 # sed scripts:
16495 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16496 my_sed_long_arg='1s/^-[^=]*=//'
16498 # func_opt_split
16499 func_opt_split ()
16501 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16502 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16505 # func_lo2o object
16506 func_lo2o ()
16508 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16511 # func_xform libobj-or-source
16512 func_xform ()
16514 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16517 # func_arith arithmetic-term...
16518 func_arith ()
16520 func_arith_result=`expr "$@"`
16523 # func_len string
16524 # STRING may not start with a hyphen.
16525 func_len ()
16527 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16530 _LT_EOF
16531 esac
16533 case $lt_shell_append in
16534 yes)
16535 cat << \_LT_EOF >> "$cfgfile"
16537 # func_append var value
16538 # Append VALUE to the end of shell variable VAR.
16539 func_append ()
16541 eval "$1+=\$2"
16543 _LT_EOF
16546 cat << \_LT_EOF >> "$cfgfile"
16548 # func_append var value
16549 # Append VALUE to the end of shell variable VAR.
16550 func_append ()
16552 eval "$1=\$$1\$2"
16555 _LT_EOF
16557 esac
16560 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16561 || (rm -f "$cfgfile"; exit 1)
16563 mv -f "$cfgfile" "$ofile" ||
16564 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16565 chmod +x "$ofile"
16568 cat <<_LT_EOF >> "$ofile"
16570 # ### BEGIN LIBTOOL TAG CONFIG: GO
16572 # The linker used to build libraries.
16573 LD=$lt_LD_GO
16575 # How to create reloadable object files.
16576 reload_flag=$lt_reload_flag_GO
16577 reload_cmds=$lt_reload_cmds_GO
16579 # Commands used to build an old-style archive.
16580 old_archive_cmds=$lt_old_archive_cmds_GO
16582 # A language specific compiler.
16583 CC=$lt_compiler_GO
16585 # Is the compiler the GNU compiler?
16586 with_gcc=$GCC_GO
16588 # Compiler flag to turn off builtin functions.
16589 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
16591 # How to pass a linker flag through the compiler.
16592 wl=$lt_lt_prog_compiler_wl_GO
16594 # Additional compiler flags for building library objects.
16595 pic_flag=$lt_lt_prog_compiler_pic_GO
16597 # Compiler flag to prevent dynamic linking.
16598 link_static_flag=$lt_lt_prog_compiler_static_GO
16600 # Does compiler simultaneously support -c and -o options?
16601 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
16603 # Whether or not to add -lc for building shared libraries.
16604 build_libtool_need_lc=$archive_cmds_need_lc_GO
16606 # Whether or not to disallow shared libs when runtime libs are static.
16607 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
16609 # Compiler flag to allow reflexive dlopens.
16610 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
16612 # Compiler flag to generate shared objects directly from archives.
16613 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
16615 # Whether the compiler copes with passing no objects directly.
16616 compiler_needs_object=$lt_compiler_needs_object_GO
16618 # Create an old-style archive from a shared archive.
16619 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
16621 # Create a temporary old-style archive to link instead of a shared archive.
16622 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
16624 # Commands used to build a shared archive.
16625 archive_cmds=$lt_archive_cmds_GO
16626 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
16628 # Commands used to build a loadable module if different from building
16629 # a shared archive.
16630 module_cmds=$lt_module_cmds_GO
16631 module_expsym_cmds=$lt_module_expsym_cmds_GO
16633 # Whether we are building with GNU ld or not.
16634 with_gnu_ld=$lt_with_gnu_ld_GO
16636 # Flag that allows shared libraries with undefined symbols to be built.
16637 allow_undefined_flag=$lt_allow_undefined_flag_GO
16639 # Flag that enforces no undefined symbols.
16640 no_undefined_flag=$lt_no_undefined_flag_GO
16642 # Flag to hardcode \$libdir into a binary during linking.
16643 # This must work even if \$libdir does not exist
16644 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
16646 # If ld is used when linking, flag to hardcode \$libdir into a binary
16647 # during linking. This must work even if \$libdir does not exist.
16648 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
16650 # Whether we need a single "-rpath" flag with a separated argument.
16651 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
16653 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16654 # DIR into the resulting binary.
16655 hardcode_direct=$hardcode_direct_GO
16657 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16658 # DIR into the resulting binary and the resulting library dependency is
16659 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16660 # library is relocated.
16661 hardcode_direct_absolute=$hardcode_direct_absolute_GO
16663 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16664 # into the resulting binary.
16665 hardcode_minus_L=$hardcode_minus_L_GO
16667 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16668 # into the resulting binary.
16669 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
16671 # Set to "yes" if building a shared library automatically hardcodes DIR
16672 # into the library and all subsequent libraries and executables linked
16673 # against it.
16674 hardcode_automatic=$hardcode_automatic_GO
16676 # Set to yes if linker adds runtime paths of dependent libraries
16677 # to runtime path list.
16678 inherit_rpath=$inherit_rpath_GO
16680 # Whether libtool must link a program against all its dependency libraries.
16681 link_all_deplibs=$link_all_deplibs_GO
16683 # Fix the shell variable \$srcfile for the compiler.
16684 fix_srcfile_path=$lt_fix_srcfile_path_GO
16686 # Set to "yes" if exported symbols are required.
16687 always_export_symbols=$always_export_symbols_GO
16689 # The commands to list exported symbols.
16690 export_symbols_cmds=$lt_export_symbols_cmds_GO
16692 # Symbols that should not be listed in the preloaded symbols.
16693 exclude_expsyms=$lt_exclude_expsyms_GO
16695 # Symbols that must always be exported.
16696 include_expsyms=$lt_include_expsyms_GO
16698 # Commands necessary for linking programs (against libraries) with templates.
16699 prelink_cmds=$lt_prelink_cmds_GO
16701 # Specify filename containing input files.
16702 file_list_spec=$lt_file_list_spec_GO
16704 # How to hardcode a shared library path into an executable.
16705 hardcode_action=$hardcode_action_GO
16707 # ### END LIBTOOL TAG CONFIG: GO
16708 _LT_EOF
16711 "default":C) if test -n "$CONFIG_FILES"; then
16712 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
16713 # that multilib installs will end up installed in the correct place.
16714 # The testsuite needs it for multilib-aware ABI baseline files.
16715 # To work around this not being passed down from config-ml.in ->
16716 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
16717 # append it here. Only modify Makefiles that have just been created.
16719 # Also, get rid of this simulated-VPATH thing that automake does.
16720 cat > vpsed << \_EOF
16721 s!`test -f '$<' || echo '$(srcdir)/'`!!
16722 _EOF
16723 for i in $SUBDIRS; do
16724 case $CONFIG_FILES in
16725 *${i}/Makefile*)
16726 #echo "Adding MULTISUBDIR to $i/Makefile"
16727 sed -f vpsed $i/Makefile > tmp
16728 grep '^MULTISUBDIR =' Makefile >> tmp
16729 mv tmp $i/Makefile
16731 esac
16732 done
16733 rm vpsed
16737 esac
16738 done # for ac_tag
16741 as_fn_exit 0
16742 _ACEOF
16743 ac_clean_files=$ac_clean_files_save
16745 test $ac_write_fail = 0 ||
16746 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16749 # configure is writing to config.log, and then calls config.status.
16750 # config.status does its own redirection, appending to config.log.
16751 # Unfortunately, on DOS this fails, as config.log is still kept open
16752 # by configure, so config.status won't be able to write to it; its
16753 # output is simply discarded. So we exec the FD to /dev/null,
16754 # effectively closing config.log, so it can be properly (re)opened and
16755 # appended to by config.status. When coming back to configure, we
16756 # need to make the FD available again.
16757 if test "$no_create" != yes; then
16758 ac_cs_success=:
16759 ac_config_status_args=
16760 test "$silent" = yes &&
16761 ac_config_status_args="$ac_config_status_args --quiet"
16762 exec 5>/dev/null
16763 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16764 exec 5>>config.log
16765 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16766 # would make configure fail if this is the last instruction.
16767 $ac_cs_success || as_fn_exit $?
16769 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16771 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}