[multiple changes]
[official-gcc.git] / libgo / configure
blob68161f6590214a7ba28f27938e49b062b4458fd3
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 STRUCT_EPOLL_EVENT_FD_OFFSET
606 SIZEOF_STRUCT_EPOLL_EVENT
607 MATH_FLAG
608 STRINGOPS_FLAG
609 HAVE_WAIT4_FALSE
610 HAVE_WAIT4_TRUE
611 HAVE_STRERROR_R_FALSE
612 HAVE_STRERROR_R_TRUE
613 HAVE_SYS_MMAN_H_FALSE
614 HAVE_SYS_MMAN_H_TRUE
615 PTHREAD_LIBS
616 PTHREAD_CFLAGS
617 NET_LIBS
618 MATH_LIBS
619 USING_SPLIT_STACK_FALSE
620 USING_SPLIT_STACK_TRUE
621 SPLIT_STACK
622 OSCFLAGS
623 GO_SYSCALL_OS_ARCH_FILE
624 GO_SYSCALL_OS_FILE
625 GO_LIBCALL_OS_ARCH_FILE
626 GO_LIBCALL_OS_FILE
627 GOARCH
628 LIBGO_IS_X86_64_FALSE
629 LIBGO_IS_X86_64_TRUE
630 LIBGO_IS_SPARC64_FALSE
631 LIBGO_IS_SPARC64_TRUE
632 LIBGO_IS_SPARC_FALSE
633 LIBGO_IS_SPARC_TRUE
634 LIBGO_IS_S390X_FALSE
635 LIBGO_IS_S390X_TRUE
636 LIBGO_IS_S390_FALSE
637 LIBGO_IS_S390_TRUE
638 LIBGO_IS_PPC64_FALSE
639 LIBGO_IS_PPC64_TRUE
640 LIBGO_IS_PPC_FALSE
641 LIBGO_IS_PPC_TRUE
642 LIBGO_IS_MIPSO64_FALSE
643 LIBGO_IS_MIPSO64_TRUE
644 LIBGO_IS_MIPSN64_FALSE
645 LIBGO_IS_MIPSN64_TRUE
646 LIBGO_IS_MIPSN32_FALSE
647 LIBGO_IS_MIPSN32_TRUE
648 LIBGO_IS_MIPSO32_FALSE
649 LIBGO_IS_MIPSO32_TRUE
650 LIBGO_IS_MIPS_FALSE
651 LIBGO_IS_MIPS_TRUE
652 LIBGO_IS_M68K_FALSE
653 LIBGO_IS_M68K_TRUE
654 LIBGO_IS_ARM64_FALSE
655 LIBGO_IS_ARM64_TRUE
656 LIBGO_IS_ARM_FALSE
657 LIBGO_IS_ARM_TRUE
658 LIBGO_IS_ALPHA_FALSE
659 LIBGO_IS_ALPHA_TRUE
660 LIBGO_IS_386_FALSE
661 LIBGO_IS_386_TRUE
662 USE_DEJAGNU
663 GOOS
664 LIBGO_IS_SOLARIS_FALSE
665 LIBGO_IS_SOLARIS_TRUE
666 LIBGO_IS_RTEMS_FALSE
667 LIBGO_IS_RTEMS_TRUE
668 LIBGO_IS_DRAGONFLY_FALSE
669 LIBGO_IS_DRAGONFLY_TRUE
670 LIBGO_IS_OPENBSD_FALSE
671 LIBGO_IS_OPENBSD_TRUE
672 LIBGO_IS_NETBSD_FALSE
673 LIBGO_IS_NETBSD_TRUE
674 LIBGO_IS_LINUX_FALSE
675 LIBGO_IS_LINUX_TRUE
676 LIBGO_IS_IRIX_FALSE
677 LIBGO_IS_IRIX_TRUE
678 LIBGO_IS_FREEBSD_FALSE
679 LIBGO_IS_FREEBSD_TRUE
680 LIBGO_IS_DARWIN_FALSE
681 LIBGO_IS_DARWIN_TRUE
682 go_include
683 LIBATOMIC
684 LIBFFIINCS
685 LIBFFI
686 nover_glibgo_toolexeclibdir
687 glibgo_toolexeclibdir
688 glibgo_toolexecdir
689 WERROR
690 WARN_FLAGS
691 CC_FOR_BUILD
692 enable_static
693 enable_shared
695 OTOOL64
696 OTOOL
697 LIPO
698 NMEDIT
699 DSYMUTIL
701 OBJDUMP
702 LN_S
704 ac_ct_DUMPBIN
705 DUMPBIN
706 LIBTOOL
707 OBJCOPY
708 RANLIB
710 FGREP
711 EGREP
712 GREP
714 MAINT
715 MAINTAINER_MODE_FALSE
716 MAINTAINER_MODE_TRUE
717 GOCFLAGS
719 am__fastdepCC_FALSE
720 am__fastdepCC_TRUE
721 CCDEPMODE
722 AMDEPBACKSLASH
723 AMDEP_FALSE
724 AMDEP_TRUE
725 am__quote
726 am__include
727 DEPDIR
728 OBJEXT
729 EXEEXT
730 ac_ct_CC
731 CPPFLAGS
732 LDFLAGS
733 CFLAGS
735 am__untar
736 am__tar
737 AMTAR
738 am__leading_dot
739 SET_MAKE
741 mkdir_p
742 MKDIR_P
743 INSTALL_STRIP_PROGRAM
744 STRIP
745 install_sh
746 MAKEINFO
747 AUTOHEADER
748 AUTOMAKE
749 AUTOCONF
750 ACLOCAL
751 VERSION
752 PACKAGE
753 CYGPATH_W
754 am__isrc
755 INSTALL_DATA
756 INSTALL_SCRIPT
757 INSTALL_PROGRAM
758 target_os
759 target_vendor
760 target_cpu
761 target
762 host_os
763 host_vendor
764 host_cpu
765 host
766 build_os
767 build_vendor
768 build_cpu
769 build
770 multi_basedir
771 libtool_VERSION
772 target_alias
773 host_alias
774 build_alias
775 LIBS
776 ECHO_T
777 ECHO_N
778 ECHO_C
779 DEFS
780 mandir
781 localedir
782 libdir
783 psdir
784 pdfdir
785 dvidir
786 htmldir
787 infodir
788 docdir
789 oldincludedir
790 includedir
791 localstatedir
792 sharedstatedir
793 sysconfdir
794 datadir
795 datarootdir
796 libexecdir
797 sbindir
798 bindir
799 program_transform_name
800 prefix
801 exec_prefix
802 PACKAGE_URL
803 PACKAGE_BUGREPORT
804 PACKAGE_STRING
805 PACKAGE_VERSION
806 PACKAGE_TARNAME
807 PACKAGE_NAME
808 PATH_SEPARATOR
809 SHELL'
810 ac_subst_files=''
811 ac_user_opts='
812 enable_option_checking
813 enable_multilib
814 enable_dependency_tracking
815 enable_maintainer_mode
816 with_gnu_ld
817 enable_shared
818 enable_static
819 with_pic
820 enable_fast_install
821 enable_libtool_lock
822 enable_werror
823 enable_version_specific_runtime_libs
824 with_libffi
825 with_libatomic
826 with_system_libunwind
827 enable_sjlj_exceptions
829 ac_precious_vars='build_alias
830 host_alias
831 target_alias
833 CPPFLAGS'
836 # Initialize some variables set by options.
837 ac_init_help=
838 ac_init_version=false
839 ac_unrecognized_opts=
840 ac_unrecognized_sep=
841 # The variables have the same names as the options, with
842 # dashes changed to underlines.
843 cache_file=/dev/null
844 exec_prefix=NONE
845 no_create=
846 no_recursion=
847 prefix=NONE
848 program_prefix=NONE
849 program_suffix=NONE
850 program_transform_name=s,x,x,
851 silent=
852 site=
853 srcdir=
854 verbose=
855 x_includes=NONE
856 x_libraries=NONE
858 # Installation directory options.
859 # These are left unexpanded so users can "make install exec_prefix=/foo"
860 # and all the variables that are supposed to be based on exec_prefix
861 # by default will actually change.
862 # Use braces instead of parens because sh, perl, etc. also accept them.
863 # (The list follows the same order as the GNU Coding Standards.)
864 bindir='${exec_prefix}/bin'
865 sbindir='${exec_prefix}/sbin'
866 libexecdir='${exec_prefix}/libexec'
867 datarootdir='${prefix}/share'
868 datadir='${datarootdir}'
869 sysconfdir='${prefix}/etc'
870 sharedstatedir='${prefix}/com'
871 localstatedir='${prefix}/var'
872 includedir='${prefix}/include'
873 oldincludedir='/usr/include'
874 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
875 infodir='${datarootdir}/info'
876 htmldir='${docdir}'
877 dvidir='${docdir}'
878 pdfdir='${docdir}'
879 psdir='${docdir}'
880 libdir='${exec_prefix}/lib'
881 localedir='${datarootdir}/locale'
882 mandir='${datarootdir}/man'
884 ac_prev=
885 ac_dashdash=
886 for ac_option
888 # If the previous option needs an argument, assign it.
889 if test -n "$ac_prev"; then
890 eval $ac_prev=\$ac_option
891 ac_prev=
892 continue
895 case $ac_option in
896 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
897 *) ac_optarg=yes ;;
898 esac
900 # Accept the important Cygnus configure options, so we can diagnose typos.
902 case $ac_dashdash$ac_option in
904 ac_dashdash=yes ;;
906 -bindir | --bindir | --bindi | --bind | --bin | --bi)
907 ac_prev=bindir ;;
908 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
909 bindir=$ac_optarg ;;
911 -build | --build | --buil | --bui | --bu)
912 ac_prev=build_alias ;;
913 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
914 build_alias=$ac_optarg ;;
916 -cache-file | --cache-file | --cache-fil | --cache-fi \
917 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
918 ac_prev=cache_file ;;
919 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
920 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
921 cache_file=$ac_optarg ;;
923 --config-cache | -C)
924 cache_file=config.cache ;;
926 -datadir | --datadir | --datadi | --datad)
927 ac_prev=datadir ;;
928 -datadir=* | --datadir=* | --datadi=* | --datad=*)
929 datadir=$ac_optarg ;;
931 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
932 | --dataroo | --dataro | --datar)
933 ac_prev=datarootdir ;;
934 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
935 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
936 datarootdir=$ac_optarg ;;
938 -disable-* | --disable-*)
939 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
942 as_fn_error "invalid feature name: $ac_useropt"
943 ac_useropt_orig=$ac_useropt
944 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
945 case $ac_user_opts in
947 "enable_$ac_useropt"
948 "*) ;;
949 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
950 ac_unrecognized_sep=', ';;
951 esac
952 eval enable_$ac_useropt=no ;;
954 -docdir | --docdir | --docdi | --doc | --do)
955 ac_prev=docdir ;;
956 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
957 docdir=$ac_optarg ;;
959 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
960 ac_prev=dvidir ;;
961 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
962 dvidir=$ac_optarg ;;
964 -enable-* | --enable-*)
965 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
966 # Reject names that are not valid shell variable names.
967 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
968 as_fn_error "invalid feature name: $ac_useropt"
969 ac_useropt_orig=$ac_useropt
970 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
971 case $ac_user_opts in
973 "enable_$ac_useropt"
974 "*) ;;
975 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
976 ac_unrecognized_sep=', ';;
977 esac
978 eval enable_$ac_useropt=\$ac_optarg ;;
980 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
981 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
982 | --exec | --exe | --ex)
983 ac_prev=exec_prefix ;;
984 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
985 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
986 | --exec=* | --exe=* | --ex=*)
987 exec_prefix=$ac_optarg ;;
989 -gas | --gas | --ga | --g)
990 # Obsolete; use --with-gas.
991 with_gas=yes ;;
993 -help | --help | --hel | --he | -h)
994 ac_init_help=long ;;
995 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
996 ac_init_help=recursive ;;
997 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
998 ac_init_help=short ;;
1000 -host | --host | --hos | --ho)
1001 ac_prev=host_alias ;;
1002 -host=* | --host=* | --hos=* | --ho=*)
1003 host_alias=$ac_optarg ;;
1005 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1006 ac_prev=htmldir ;;
1007 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1008 | --ht=*)
1009 htmldir=$ac_optarg ;;
1011 -includedir | --includedir | --includedi | --included | --include \
1012 | --includ | --inclu | --incl | --inc)
1013 ac_prev=includedir ;;
1014 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1015 | --includ=* | --inclu=* | --incl=* | --inc=*)
1016 includedir=$ac_optarg ;;
1018 -infodir | --infodir | --infodi | --infod | --info | --inf)
1019 ac_prev=infodir ;;
1020 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1021 infodir=$ac_optarg ;;
1023 -libdir | --libdir | --libdi | --libd)
1024 ac_prev=libdir ;;
1025 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1026 libdir=$ac_optarg ;;
1028 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1029 | --libexe | --libex | --libe)
1030 ac_prev=libexecdir ;;
1031 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1032 | --libexe=* | --libex=* | --libe=*)
1033 libexecdir=$ac_optarg ;;
1035 -localedir | --localedir | --localedi | --localed | --locale)
1036 ac_prev=localedir ;;
1037 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1038 localedir=$ac_optarg ;;
1040 -localstatedir | --localstatedir | --localstatedi | --localstated \
1041 | --localstate | --localstat | --localsta | --localst | --locals)
1042 ac_prev=localstatedir ;;
1043 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1044 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1045 localstatedir=$ac_optarg ;;
1047 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1048 ac_prev=mandir ;;
1049 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1050 mandir=$ac_optarg ;;
1052 -nfp | --nfp | --nf)
1053 # Obsolete; use --without-fp.
1054 with_fp=no ;;
1056 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1057 | --no-cr | --no-c | -n)
1058 no_create=yes ;;
1060 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1061 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1062 no_recursion=yes ;;
1064 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1065 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1066 | --oldin | --oldi | --old | --ol | --o)
1067 ac_prev=oldincludedir ;;
1068 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1069 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1070 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1071 oldincludedir=$ac_optarg ;;
1073 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1074 ac_prev=prefix ;;
1075 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1076 prefix=$ac_optarg ;;
1078 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1079 | --program-pre | --program-pr | --program-p)
1080 ac_prev=program_prefix ;;
1081 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1082 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1083 program_prefix=$ac_optarg ;;
1085 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1086 | --program-suf | --program-su | --program-s)
1087 ac_prev=program_suffix ;;
1088 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1089 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1090 program_suffix=$ac_optarg ;;
1092 -program-transform-name | --program-transform-name \
1093 | --program-transform-nam | --program-transform-na \
1094 | --program-transform-n | --program-transform- \
1095 | --program-transform | --program-transfor \
1096 | --program-transfo | --program-transf \
1097 | --program-trans | --program-tran \
1098 | --progr-tra | --program-tr | --program-t)
1099 ac_prev=program_transform_name ;;
1100 -program-transform-name=* | --program-transform-name=* \
1101 | --program-transform-nam=* | --program-transform-na=* \
1102 | --program-transform-n=* | --program-transform-=* \
1103 | --program-transform=* | --program-transfor=* \
1104 | --program-transfo=* | --program-transf=* \
1105 | --program-trans=* | --program-tran=* \
1106 | --progr-tra=* | --program-tr=* | --program-t=*)
1107 program_transform_name=$ac_optarg ;;
1109 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1110 ac_prev=pdfdir ;;
1111 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1112 pdfdir=$ac_optarg ;;
1114 -psdir | --psdir | --psdi | --psd | --ps)
1115 ac_prev=psdir ;;
1116 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1117 psdir=$ac_optarg ;;
1119 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1120 | -silent | --silent | --silen | --sile | --sil)
1121 silent=yes ;;
1123 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1124 ac_prev=sbindir ;;
1125 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1126 | --sbi=* | --sb=*)
1127 sbindir=$ac_optarg ;;
1129 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1130 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1131 | --sharedst | --shareds | --shared | --share | --shar \
1132 | --sha | --sh)
1133 ac_prev=sharedstatedir ;;
1134 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1135 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1136 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1137 | --sha=* | --sh=*)
1138 sharedstatedir=$ac_optarg ;;
1140 -site | --site | --sit)
1141 ac_prev=site ;;
1142 -site=* | --site=* | --sit=*)
1143 site=$ac_optarg ;;
1145 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1146 ac_prev=srcdir ;;
1147 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1148 srcdir=$ac_optarg ;;
1150 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1151 | --syscon | --sysco | --sysc | --sys | --sy)
1152 ac_prev=sysconfdir ;;
1153 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1154 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1155 sysconfdir=$ac_optarg ;;
1157 -target | --target | --targe | --targ | --tar | --ta | --t)
1158 ac_prev=target_alias ;;
1159 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1160 target_alias=$ac_optarg ;;
1162 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1163 verbose=yes ;;
1165 -version | --version | --versio | --versi | --vers | -V)
1166 ac_init_version=: ;;
1168 -with-* | --with-*)
1169 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1170 # Reject names that are not valid shell variable names.
1171 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172 as_fn_error "invalid package name: $ac_useropt"
1173 ac_useropt_orig=$ac_useropt
1174 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1175 case $ac_user_opts in
1177 "with_$ac_useropt"
1178 "*) ;;
1179 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1180 ac_unrecognized_sep=', ';;
1181 esac
1182 eval with_$ac_useropt=\$ac_optarg ;;
1184 -without-* | --without-*)
1185 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1186 # Reject names that are not valid shell variable names.
1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1188 as_fn_error "invalid package name: $ac_useropt"
1189 ac_useropt_orig=$ac_useropt
1190 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1191 case $ac_user_opts in
1193 "with_$ac_useropt"
1194 "*) ;;
1195 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1196 ac_unrecognized_sep=', ';;
1197 esac
1198 eval with_$ac_useropt=no ;;
1200 --x)
1201 # Obsolete; use --with-x.
1202 with_x=yes ;;
1204 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1205 | --x-incl | --x-inc | --x-in | --x-i)
1206 ac_prev=x_includes ;;
1207 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1208 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1209 x_includes=$ac_optarg ;;
1211 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1212 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1213 ac_prev=x_libraries ;;
1214 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1215 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1216 x_libraries=$ac_optarg ;;
1218 -*) as_fn_error "unrecognized option: \`$ac_option'
1219 Try \`$0 --help' for more information."
1222 *=*)
1223 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1224 # Reject names that are not valid shell variable names.
1225 case $ac_envvar in #(
1226 '' | [0-9]* | *[!_$as_cr_alnum]* )
1227 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1228 esac
1229 eval $ac_envvar=\$ac_optarg
1230 export $ac_envvar ;;
1233 # FIXME: should be removed in autoconf 3.0.
1234 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1235 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1236 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1237 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1240 esac
1241 done
1243 if test -n "$ac_prev"; then
1244 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1245 as_fn_error "missing argument to $ac_option"
1248 if test -n "$ac_unrecognized_opts"; then
1249 case $enable_option_checking in
1250 no) ;;
1251 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1252 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1253 esac
1256 # Check all directory arguments for consistency.
1257 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1258 datadir sysconfdir sharedstatedir localstatedir includedir \
1259 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1260 libdir localedir mandir
1262 eval ac_val=\$$ac_var
1263 # Remove trailing slashes.
1264 case $ac_val in
1265 */ )
1266 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1267 eval $ac_var=\$ac_val;;
1268 esac
1269 # Be sure to have absolute directory names.
1270 case $ac_val in
1271 [\\/$]* | ?:[\\/]* ) continue;;
1272 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1273 esac
1274 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1275 done
1277 # There might be people who depend on the old broken behavior: `$host'
1278 # used to hold the argument of --host etc.
1279 # FIXME: To remove some day.
1280 build=$build_alias
1281 host=$host_alias
1282 target=$target_alias
1284 # FIXME: To remove some day.
1285 if test "x$host_alias" != x; then
1286 if test "x$build_alias" = x; then
1287 cross_compiling=maybe
1288 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1289 If a cross compiler is detected then cross compile mode will be used." >&2
1290 elif test "x$build_alias" != "x$host_alias"; then
1291 cross_compiling=yes
1295 ac_tool_prefix=
1296 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1298 test "$silent" = yes && exec 6>/dev/null
1301 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1302 ac_ls_di=`ls -di .` &&
1303 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1304 as_fn_error "working directory cannot be determined"
1305 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1306 as_fn_error "pwd does not report name of working directory"
1309 # Find the source files, if location was not specified.
1310 if test -z "$srcdir"; then
1311 ac_srcdir_defaulted=yes
1312 # Try the directory containing this script, then the parent directory.
1313 ac_confdir=`$as_dirname -- "$as_myself" ||
1314 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1315 X"$as_myself" : 'X\(//\)[^/]' \| \
1316 X"$as_myself" : 'X\(//\)$' \| \
1317 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1318 $as_echo X"$as_myself" |
1319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1320 s//\1/
1323 /^X\(\/\/\)[^/].*/{
1324 s//\1/
1327 /^X\(\/\/\)$/{
1328 s//\1/
1331 /^X\(\/\).*/{
1332 s//\1/
1335 s/.*/./; q'`
1336 srcdir=$ac_confdir
1337 if test ! -r "$srcdir/$ac_unique_file"; then
1338 srcdir=..
1340 else
1341 ac_srcdir_defaulted=no
1343 if test ! -r "$srcdir/$ac_unique_file"; then
1344 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1345 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1347 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1348 ac_abs_confdir=`(
1349 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1350 pwd)`
1351 # When building in place, set srcdir=.
1352 if test "$ac_abs_confdir" = "$ac_pwd"; then
1353 srcdir=.
1355 # Remove unnecessary trailing slashes from srcdir.
1356 # Double slashes in file names in object file debugging info
1357 # mess up M-x gdb in Emacs.
1358 case $srcdir in
1359 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1360 esac
1361 for ac_var in $ac_precious_vars; do
1362 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1363 eval ac_env_${ac_var}_value=\$${ac_var}
1364 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1365 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1366 done
1369 # Report the --help message.
1371 if test "$ac_init_help" = "long"; then
1372 # Omit some internal or obsolete options to make the list less imposing.
1373 # This message is too long to be a string in the A/UX 3.1 sh.
1374 cat <<_ACEOF
1375 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1377 Usage: $0 [OPTION]... [VAR=VALUE]...
1379 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1380 VAR=VALUE. See below for descriptions of some of the useful variables.
1382 Defaults for the options are specified in brackets.
1384 Configuration:
1385 -h, --help display this help and exit
1386 --help=short display options specific to this package
1387 --help=recursive display the short help of all the included packages
1388 -V, --version display version information and exit
1389 -q, --quiet, --silent do not print \`checking...' messages
1390 --cache-file=FILE cache test results in FILE [disabled]
1391 -C, --config-cache alias for \`--cache-file=config.cache'
1392 -n, --no-create do not create output files
1393 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1395 Installation directories:
1396 --prefix=PREFIX install architecture-independent files in PREFIX
1397 [$ac_default_prefix]
1398 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1399 [PREFIX]
1401 By default, \`make install' will install all the files in
1402 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1403 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1404 for instance \`--prefix=\$HOME'.
1406 For better control, use the options below.
1408 Fine tuning of the installation directories:
1409 --bindir=DIR user executables [EPREFIX/bin]
1410 --sbindir=DIR system admin executables [EPREFIX/sbin]
1411 --libexecdir=DIR program executables [EPREFIX/libexec]
1412 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1413 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1414 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1415 --libdir=DIR object code libraries [EPREFIX/lib]
1416 --includedir=DIR C header files [PREFIX/include]
1417 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1418 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1419 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1420 --infodir=DIR info documentation [DATAROOTDIR/info]
1421 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1422 --mandir=DIR man documentation [DATAROOTDIR/man]
1423 --docdir=DIR documentation root [DATAROOTDIR/doc/libgo]
1424 --htmldir=DIR html documentation [DOCDIR]
1425 --dvidir=DIR dvi documentation [DOCDIR]
1426 --pdfdir=DIR pdf documentation [DOCDIR]
1427 --psdir=DIR ps documentation [DOCDIR]
1428 _ACEOF
1430 cat <<\_ACEOF
1432 Program names:
1433 --program-prefix=PREFIX prepend PREFIX to installed program names
1434 --program-suffix=SUFFIX append SUFFIX to installed program names
1435 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1437 System types:
1438 --build=BUILD configure for building on BUILD [guessed]
1439 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1440 --target=TARGET configure for building compilers for TARGET [HOST]
1441 _ACEOF
1444 if test -n "$ac_init_help"; then
1445 case $ac_init_help in
1446 short | recursive ) echo "Configuration of package-unused version-unused:";;
1447 esac
1448 cat <<\_ACEOF
1450 Optional Features:
1451 --disable-option-checking ignore unrecognized --enable/--with options
1452 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1453 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1454 --enable-multilib build many library versions (default)
1455 --disable-dependency-tracking speeds up one-time build
1456 --enable-dependency-tracking do not reject slow dependency extractors
1457 --enable-maintainer-mode enable make rules and dependencies not useful
1458 (and sometimes confusing) to the casual installer
1459 --enable-shared[=PKGS] build shared libraries [default=yes]
1460 --enable-static[=PKGS] build static libraries [default=yes]
1461 --enable-fast-install[=PKGS]
1462 optimize for fast installation [default=yes]
1463 --disable-libtool-lock avoid locking (might break parallel builds)
1464 --enable-werror turns on -Werror [default=yes]
1465 --enable-version-specific-runtime-libs
1466 Specify that runtime libraries should be installed
1467 in a compiler-specific directory
1468 --enable-sjlj-exceptions
1469 force use of builtin_setjmp for exceptions
1471 Optional Packages:
1472 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1473 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1474 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1475 --with-pic try to use only PIC/non-PIC objects [default=use
1476 both]
1477 --without-libffi don't use libffi
1478 --without-libatomic don't use libatomic
1479 --with-system-libunwind use installed libunwind
1481 Some influential environment variables:
1482 CC C compiler command
1483 CFLAGS C compiler flags
1484 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1485 nonstandard directory <lib dir>
1486 LIBS libraries to pass to the linker, e.g. -l<library>
1487 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1488 you have headers in a nonstandard directory <include dir>
1489 GOC Go compiler command
1490 GOCFLAGS Go compiler flags
1491 CPP C preprocessor
1493 Use these variables to override the choices made by `configure' or to help
1494 it to find libraries and programs with nonstandard names/locations.
1496 Report bugs to the package provider.
1497 _ACEOF
1498 ac_status=$?
1501 if test "$ac_init_help" = "recursive"; then
1502 # If there are subdirs, report their specific --help.
1503 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1504 test -d "$ac_dir" ||
1505 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1506 continue
1507 ac_builddir=.
1509 case "$ac_dir" in
1510 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1513 # A ".." for each directory in $ac_dir_suffix.
1514 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1515 case $ac_top_builddir_sub in
1516 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1518 esac ;;
1519 esac
1520 ac_abs_top_builddir=$ac_pwd
1521 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1522 # for backward compatibility:
1523 ac_top_builddir=$ac_top_build_prefix
1525 case $srcdir in
1526 .) # We are building in place.
1527 ac_srcdir=.
1528 ac_top_srcdir=$ac_top_builddir_sub
1529 ac_abs_top_srcdir=$ac_pwd ;;
1530 [\\/]* | ?:[\\/]* ) # Absolute name.
1531 ac_srcdir=$srcdir$ac_dir_suffix;
1532 ac_top_srcdir=$srcdir
1533 ac_abs_top_srcdir=$srcdir ;;
1534 *) # Relative name.
1535 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1536 ac_top_srcdir=$ac_top_build_prefix$srcdir
1537 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1538 esac
1539 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1541 cd "$ac_dir" || { ac_status=$?; continue; }
1542 # Check for guested configure.
1543 if test -f "$ac_srcdir/configure.gnu"; then
1544 echo &&
1545 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1546 elif test -f "$ac_srcdir/configure"; then
1547 echo &&
1548 $SHELL "$ac_srcdir/configure" --help=recursive
1549 else
1550 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1551 fi || ac_status=$?
1552 cd "$ac_pwd" || { ac_status=$?; break; }
1553 done
1556 test -n "$ac_init_help" && exit $ac_status
1557 if $ac_init_version; then
1558 cat <<\_ACEOF
1559 package-unused configure version-unused
1560 generated by GNU Autoconf 2.64
1562 Copyright (C) 2009 Free Software Foundation, Inc.
1563 This configure script is free software; the Free Software Foundation
1564 gives unlimited permission to copy, distribute and modify it.
1565 _ACEOF
1566 exit
1569 ## ------------------------ ##
1570 ## Autoconf initialization. ##
1571 ## ------------------------ ##
1573 # ac_fn_c_try_compile LINENO
1574 # --------------------------
1575 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1576 ac_fn_c_try_compile ()
1578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579 rm -f conftest.$ac_objext
1580 if { { ac_try="$ac_compile"
1581 case "(($ac_try" in
1582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1583 *) ac_try_echo=$ac_try;;
1584 esac
1585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586 $as_echo "$ac_try_echo"; } >&5
1587 (eval "$ac_compile") 2>conftest.err
1588 ac_status=$?
1589 if test -s conftest.err; then
1590 grep -v '^ *+' conftest.err >conftest.er1
1591 cat conftest.er1 >&5
1592 mv -f conftest.er1 conftest.err
1594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1595 test $ac_status = 0; } && {
1596 test -z "$ac_c_werror_flag" ||
1597 test ! -s conftest.err
1598 } && test -s conftest.$ac_objext; then :
1599 ac_retval=0
1600 else
1601 $as_echo "$as_me: failed program was:" >&5
1602 sed 's/^/| /' conftest.$ac_ext >&5
1604 ac_retval=1
1606 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1607 return $ac_retval
1609 } # ac_fn_c_try_compile
1611 # ac_fn_c_try_link LINENO
1612 # -----------------------
1613 # Try to link conftest.$ac_ext, and return whether this succeeded.
1614 ac_fn_c_try_link ()
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 rm -f conftest.$ac_objext conftest$ac_exeext
1618 if { { ac_try="$ac_link"
1619 case "(($ac_try" in
1620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621 *) ac_try_echo=$ac_try;;
1622 esac
1623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624 $as_echo "$ac_try_echo"; } >&5
1625 (eval "$ac_link") 2>conftest.err
1626 ac_status=$?
1627 if test -s conftest.err; then
1628 grep -v '^ *+' conftest.err >conftest.er1
1629 cat conftest.er1 >&5
1630 mv -f conftest.er1 conftest.err
1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633 test $ac_status = 0; } && {
1634 test -z "$ac_c_werror_flag" ||
1635 test ! -s conftest.err
1636 } && test -s conftest$ac_exeext && {
1637 test "$cross_compiling" = yes ||
1638 $as_test_x conftest$ac_exeext
1639 }; then :
1640 ac_retval=0
1641 else
1642 $as_echo "$as_me: failed program was:" >&5
1643 sed 's/^/| /' conftest.$ac_ext >&5
1645 ac_retval=1
1647 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1648 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1649 # interfere with the next link command; also delete a directory that is
1650 # left behind by Apple's compiler. We do this before executing the actions.
1651 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1652 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1653 return $ac_retval
1655 } # ac_fn_c_try_link
1657 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1658 # -------------------------------------------------------
1659 # Tests whether HEADER exists and can be compiled using the include files in
1660 # INCLUDES, setting the cache variable VAR accordingly.
1661 ac_fn_c_check_header_compile ()
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1665 $as_echo_n "checking for $2... " >&6; }
1666 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1667 $as_echo_n "(cached) " >&6
1668 else
1669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1670 /* end confdefs.h. */
1672 #include <$2>
1673 _ACEOF
1674 if ac_fn_c_try_compile "$LINENO"; then :
1675 eval "$3=yes"
1676 else
1677 eval "$3=no"
1679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1681 eval ac_res=\$$3
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1683 $as_echo "$ac_res" >&6; }
1684 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1686 } # ac_fn_c_check_header_compile
1688 # ac_fn_c_try_cpp LINENO
1689 # ----------------------
1690 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1691 ac_fn_c_try_cpp ()
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 if { { ac_try="$ac_cpp conftest.$ac_ext"
1695 case "(($ac_try" in
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1698 esac
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1702 ac_status=$?
1703 if test -s conftest.err; then
1704 grep -v '^ *+' conftest.err >conftest.er1
1705 cat conftest.er1 >&5
1706 mv -f conftest.er1 conftest.err
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; } >/dev/null && {
1710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1711 test ! -s conftest.err
1712 }; then :
1713 ac_retval=0
1714 else
1715 $as_echo "$as_me: failed program was:" >&5
1716 sed 's/^/| /' conftest.$ac_ext >&5
1718 ac_retval=1
1720 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1721 return $ac_retval
1723 } # ac_fn_c_try_cpp
1725 # ac_fn_c_try_run LINENO
1726 # ----------------------
1727 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1728 # that executables *can* be run.
1729 ac_fn_c_try_run ()
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 if { { ac_try="$ac_link"
1733 case "(($ac_try" in
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1736 esac
1737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738 $as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_link") 2>&5
1740 ac_status=$?
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1743 { { case "(($ac_try" in
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1746 esac
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_try") 2>&5
1750 ac_status=$?
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; }; }; then :
1753 ac_retval=0
1754 else
1755 $as_echo "$as_me: program exited with status $ac_status" >&5
1756 $as_echo "$as_me: failed program was:" >&5
1757 sed 's/^/| /' conftest.$ac_ext >&5
1759 ac_retval=$ac_status
1761 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1762 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1763 return $ac_retval
1765 } # ac_fn_c_try_run
1767 # ac_fn_c_check_func LINENO FUNC VAR
1768 # ----------------------------------
1769 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1770 ac_fn_c_check_func ()
1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1774 $as_echo_n "checking for $2... " >&6; }
1775 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1776 $as_echo_n "(cached) " >&6
1777 else
1778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1779 /* end confdefs.h. */
1780 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1782 #define $2 innocuous_$2
1784 /* System header to define __stub macros and hopefully few prototypes,
1785 which can conflict with char $2 (); below.
1786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1787 <limits.h> exists even on freestanding compilers. */
1789 #ifdef __STDC__
1790 # include <limits.h>
1791 #else
1792 # include <assert.h>
1793 #endif
1795 #undef $2
1797 /* Override any GCC internal prototype to avoid an error.
1798 Use char because int might match the return type of a GCC
1799 builtin and then its argument prototype would still apply. */
1800 #ifdef __cplusplus
1801 extern "C"
1802 #endif
1803 char $2 ();
1804 /* The GNU C library defines this for functions which it implements
1805 to always fail with ENOSYS. Some functions are actually named
1806 something starting with __ and the normal name is an alias. */
1807 #if defined __stub_$2 || defined __stub___$2
1808 choke me
1809 #endif
1812 main ()
1814 return $2 ();
1816 return 0;
1818 _ACEOF
1819 if ac_fn_c_try_link "$LINENO"; then :
1820 eval "$3=yes"
1821 else
1822 eval "$3=no"
1824 rm -f core conftest.err conftest.$ac_objext \
1825 conftest$ac_exeext conftest.$ac_ext
1827 eval ac_res=\$$3
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1829 $as_echo "$ac_res" >&6; }
1830 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1832 } # ac_fn_c_check_func
1834 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1835 # -------------------------------------------------------
1836 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1837 # the include files in INCLUDES and setting the cache variable VAR
1838 # accordingly.
1839 ac_fn_c_check_header_mongrel ()
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1844 $as_echo_n "checking for $2... " >&6; }
1845 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1846 $as_echo_n "(cached) " >&6
1848 eval ac_res=\$$3
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1850 $as_echo "$ac_res" >&6; }
1851 else
1852 # Is the header compilable?
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1854 $as_echo_n "checking $2 usability... " >&6; }
1855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856 /* end confdefs.h. */
1858 #include <$2>
1859 _ACEOF
1860 if ac_fn_c_try_compile "$LINENO"; then :
1861 ac_header_compiler=yes
1862 else
1863 ac_header_compiler=no
1865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1867 $as_echo "$ac_header_compiler" >&6; }
1869 # Is the header present?
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1871 $as_echo_n "checking $2 presence... " >&6; }
1872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1873 /* end confdefs.h. */
1874 #include <$2>
1875 _ACEOF
1876 if ac_fn_c_try_cpp "$LINENO"; then :
1877 ac_header_preproc=yes
1878 else
1879 ac_header_preproc=no
1881 rm -f conftest.err conftest.$ac_ext
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1883 $as_echo "$ac_header_preproc" >&6; }
1885 # So? What about this header?
1886 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1887 yes:no: )
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1889 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1891 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1893 no:yes:* )
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1895 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1897 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1899 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1901 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1903 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1905 esac
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1907 $as_echo_n "checking for $2... " >&6; }
1908 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1909 $as_echo_n "(cached) " >&6
1910 else
1911 eval "$3=\$ac_header_compiler"
1913 eval ac_res=\$$3
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1915 $as_echo "$ac_res" >&6; }
1917 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1919 } # ac_fn_c_check_header_mongrel
1921 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1922 # -------------------------------------------
1923 # Tests whether TYPE exists after having included INCLUDES, setting cache
1924 # variable VAR accordingly.
1925 ac_fn_c_check_type ()
1927 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1929 $as_echo_n "checking for $2... " >&6; }
1930 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1931 $as_echo_n "(cached) " >&6
1932 else
1933 eval "$3=no"
1934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935 /* end confdefs.h. */
1938 main ()
1940 if (sizeof ($2))
1941 return 0;
1943 return 0;
1945 _ACEOF
1946 if ac_fn_c_try_compile "$LINENO"; then :
1947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1948 /* end confdefs.h. */
1951 main ()
1953 if (sizeof (($2)))
1954 return 0;
1956 return 0;
1958 _ACEOF
1959 if ac_fn_c_try_compile "$LINENO"; then :
1961 else
1962 eval "$3=yes"
1964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968 eval ac_res=\$$3
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1970 $as_echo "$ac_res" >&6; }
1971 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1973 } # ac_fn_c_check_type
1975 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1976 # --------------------------------------------
1977 # Tries to find the compile-time value of EXPR in a program that includes
1978 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1979 # computed
1980 ac_fn_c_compute_int ()
1982 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983 if test "$cross_compiling" = yes; then
1984 # Depending upon the size, compute the lo and hi bounds.
1985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986 /* end confdefs.h. */
1989 main ()
1991 static int test_array [1 - 2 * !(($2) >= 0)];
1992 test_array [0] = 0
1995 return 0;
1997 _ACEOF
1998 if ac_fn_c_try_compile "$LINENO"; then :
1999 ac_lo=0 ac_mid=0
2000 while :; do
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2005 main ()
2007 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2008 test_array [0] = 0
2011 return 0;
2013 _ACEOF
2014 if ac_fn_c_try_compile "$LINENO"; then :
2015 ac_hi=$ac_mid; break
2016 else
2017 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2018 if test $ac_lo -le $ac_mid; then
2019 ac_lo= ac_hi=
2020 break
2022 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2025 done
2026 else
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2031 main ()
2033 static int test_array [1 - 2 * !(($2) < 0)];
2034 test_array [0] = 0
2037 return 0;
2039 _ACEOF
2040 if ac_fn_c_try_compile "$LINENO"; then :
2041 ac_hi=-1 ac_mid=-1
2042 while :; do
2043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044 /* end confdefs.h. */
2047 main ()
2049 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2050 test_array [0] = 0
2053 return 0;
2055 _ACEOF
2056 if ac_fn_c_try_compile "$LINENO"; then :
2057 ac_lo=$ac_mid; break
2058 else
2059 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2060 if test $ac_mid -le $ac_hi; then
2061 ac_lo= ac_hi=
2062 break
2064 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2067 done
2068 else
2069 ac_lo= ac_hi=
2071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2074 # Binary search between lo and hi bounds.
2075 while test "x$ac_lo" != "x$ac_hi"; do
2076 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078 /* end confdefs.h. */
2081 main ()
2083 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2084 test_array [0] = 0
2087 return 0;
2089 _ACEOF
2090 if ac_fn_c_try_compile "$LINENO"; then :
2091 ac_hi=$ac_mid
2092 else
2093 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2096 done
2097 case $ac_lo in #((
2098 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2099 '') ac_retval=1 ;;
2100 esac
2101 else
2102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103 /* end confdefs.h. */
2105 static long int longval () { return $2; }
2106 static unsigned long int ulongval () { return $2; }
2107 #include <stdio.h>
2108 #include <stdlib.h>
2110 main ()
2113 FILE *f = fopen ("conftest.val", "w");
2114 if (! f)
2115 return 1;
2116 if (($2) < 0)
2118 long int i = longval ();
2119 if (i != ($2))
2120 return 1;
2121 fprintf (f, "%ld", i);
2123 else
2125 unsigned long int i = ulongval ();
2126 if (i != ($2))
2127 return 1;
2128 fprintf (f, "%lu", i);
2130 /* Do not output a trailing newline, as this causes \r\n confusion
2131 on some platforms. */
2132 return ferror (f) || fclose (f) != 0;
2135 return 0;
2137 _ACEOF
2138 if ac_fn_c_try_run "$LINENO"; then :
2139 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2140 else
2141 ac_retval=1
2143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2144 conftest.$ac_objext conftest.beam conftest.$ac_ext
2145 rm -f conftest.val
2148 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2149 return $ac_retval
2151 } # ac_fn_c_compute_int
2152 cat >config.log <<_ACEOF
2153 This file contains any messages produced by compilers while
2154 running configure, to aid debugging if configure makes a mistake.
2156 It was created by package-unused $as_me version-unused, which was
2157 generated by GNU Autoconf 2.64. Invocation command line was
2159 $ $0 $@
2161 _ACEOF
2162 exec 5>>config.log
2164 cat <<_ASUNAME
2165 ## --------- ##
2166 ## Platform. ##
2167 ## --------- ##
2169 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2170 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2171 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2172 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2173 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2175 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2176 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2178 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2179 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2180 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2181 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2182 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2183 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2184 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2186 _ASUNAME
2188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2189 for as_dir in $PATH
2191 IFS=$as_save_IFS
2192 test -z "$as_dir" && as_dir=.
2193 $as_echo "PATH: $as_dir"
2194 done
2195 IFS=$as_save_IFS
2197 } >&5
2199 cat >&5 <<_ACEOF
2202 ## ----------- ##
2203 ## Core tests. ##
2204 ## ----------- ##
2206 _ACEOF
2209 # Keep a trace of the command line.
2210 # Strip out --no-create and --no-recursion so they do not pile up.
2211 # Strip out --silent because we don't want to record it for future runs.
2212 # Also quote any args containing shell meta-characters.
2213 # Make two passes to allow for proper duplicate-argument suppression.
2214 ac_configure_args=
2215 ac_configure_args0=
2216 ac_configure_args1=
2217 ac_must_keep_next=false
2218 for ac_pass in 1 2
2220 for ac_arg
2222 case $ac_arg in
2223 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2224 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2225 | -silent | --silent | --silen | --sile | --sil)
2226 continue ;;
2227 *\'*)
2228 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2229 esac
2230 case $ac_pass in
2231 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2233 as_fn_append ac_configure_args1 " '$ac_arg'"
2234 if test $ac_must_keep_next = true; then
2235 ac_must_keep_next=false # Got value, back to normal.
2236 else
2237 case $ac_arg in
2238 *=* | --config-cache | -C | -disable-* | --disable-* \
2239 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2240 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2241 | -with-* | --with-* | -without-* | --without-* | --x)
2242 case "$ac_configure_args0 " in
2243 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2244 esac
2246 -* ) ac_must_keep_next=true ;;
2247 esac
2249 as_fn_append ac_configure_args " '$ac_arg'"
2251 esac
2252 done
2253 done
2254 { ac_configure_args0=; unset ac_configure_args0;}
2255 { ac_configure_args1=; unset ac_configure_args1;}
2257 # When interrupted or exit'd, cleanup temporary files, and complete
2258 # config.log. We remove comments because anyway the quotes in there
2259 # would cause problems or look ugly.
2260 # WARNING: Use '\'' to represent an apostrophe within the trap.
2261 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2262 trap 'exit_status=$?
2263 # Save into config.log some information that might help in debugging.
2265 echo
2267 cat <<\_ASBOX
2268 ## ---------------- ##
2269 ## Cache variables. ##
2270 ## ---------------- ##
2271 _ASBOX
2272 echo
2273 # The following way of writing the cache mishandles newlines in values,
2275 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2276 eval ac_val=\$$ac_var
2277 case $ac_val in #(
2278 *${as_nl}*)
2279 case $ac_var in #(
2280 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2281 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2282 esac
2283 case $ac_var in #(
2284 _ | IFS | as_nl) ;; #(
2285 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2286 *) { eval $ac_var=; unset $ac_var;} ;;
2287 esac ;;
2288 esac
2289 done
2290 (set) 2>&1 |
2291 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2292 *${as_nl}ac_space=\ *)
2293 sed -n \
2294 "s/'\''/'\''\\\\'\'''\''/g;
2295 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2296 ;; #(
2298 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2300 esac |
2301 sort
2303 echo
2305 cat <<\_ASBOX
2306 ## ----------------- ##
2307 ## Output variables. ##
2308 ## ----------------- ##
2309 _ASBOX
2310 echo
2311 for ac_var in $ac_subst_vars
2313 eval ac_val=\$$ac_var
2314 case $ac_val in
2315 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2316 esac
2317 $as_echo "$ac_var='\''$ac_val'\''"
2318 done | sort
2319 echo
2321 if test -n "$ac_subst_files"; then
2322 cat <<\_ASBOX
2323 ## ------------------- ##
2324 ## File substitutions. ##
2325 ## ------------------- ##
2326 _ASBOX
2327 echo
2328 for ac_var in $ac_subst_files
2330 eval ac_val=\$$ac_var
2331 case $ac_val in
2332 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2333 esac
2334 $as_echo "$ac_var='\''$ac_val'\''"
2335 done | sort
2336 echo
2339 if test -s confdefs.h; then
2340 cat <<\_ASBOX
2341 ## ----------- ##
2342 ## confdefs.h. ##
2343 ## ----------- ##
2344 _ASBOX
2345 echo
2346 cat confdefs.h
2347 echo
2349 test "$ac_signal" != 0 &&
2350 $as_echo "$as_me: caught signal $ac_signal"
2351 $as_echo "$as_me: exit $exit_status"
2352 } >&5
2353 rm -f core *.core core.conftest.* &&
2354 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2355 exit $exit_status
2357 for ac_signal in 1 2 13 15; do
2358 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2359 done
2360 ac_signal=0
2362 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2363 rm -f -r conftest* confdefs.h
2365 $as_echo "/* confdefs.h */" > confdefs.h
2367 # Predefined preprocessor variables.
2369 cat >>confdefs.h <<_ACEOF
2370 #define PACKAGE_NAME "$PACKAGE_NAME"
2371 _ACEOF
2373 cat >>confdefs.h <<_ACEOF
2374 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2375 _ACEOF
2377 cat >>confdefs.h <<_ACEOF
2378 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2379 _ACEOF
2381 cat >>confdefs.h <<_ACEOF
2382 #define PACKAGE_STRING "$PACKAGE_STRING"
2383 _ACEOF
2385 cat >>confdefs.h <<_ACEOF
2386 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2387 _ACEOF
2389 cat >>confdefs.h <<_ACEOF
2390 #define PACKAGE_URL "$PACKAGE_URL"
2391 _ACEOF
2394 # Let the site file select an alternate cache file if it wants to.
2395 # Prefer an explicitly selected file to automatically selected ones.
2396 ac_site_file1=NONE
2397 ac_site_file2=NONE
2398 if test -n "$CONFIG_SITE"; then
2399 ac_site_file1=$CONFIG_SITE
2400 elif test "x$prefix" != xNONE; then
2401 ac_site_file1=$prefix/share/config.site
2402 ac_site_file2=$prefix/etc/config.site
2403 else
2404 ac_site_file1=$ac_default_prefix/share/config.site
2405 ac_site_file2=$ac_default_prefix/etc/config.site
2407 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2409 test "x$ac_site_file" = xNONE && continue
2410 if test -r "$ac_site_file"; then
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2412 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2413 sed 's/^/| /' "$ac_site_file" >&5
2414 . "$ac_site_file"
2416 done
2418 if test -r "$cache_file"; then
2419 # Some versions of bash will fail to source /dev/null (special
2420 # files actually), so we avoid doing that.
2421 if test -f "$cache_file"; then
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2423 $as_echo "$as_me: loading cache $cache_file" >&6;}
2424 case $cache_file in
2425 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2426 *) . "./$cache_file";;
2427 esac
2429 else
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2431 $as_echo "$as_me: creating cache $cache_file" >&6;}
2432 >$cache_file
2435 # Check that the precious variables saved in the cache have kept the same
2436 # value.
2437 ac_cache_corrupted=false
2438 for ac_var in $ac_precious_vars; do
2439 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2440 eval ac_new_set=\$ac_env_${ac_var}_set
2441 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2442 eval ac_new_val=\$ac_env_${ac_var}_value
2443 case $ac_old_set,$ac_new_set in
2444 set,)
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2446 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2447 ac_cache_corrupted=: ;;
2448 ,set)
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2450 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2451 ac_cache_corrupted=: ;;
2452 ,);;
2454 if test "x$ac_old_val" != "x$ac_new_val"; then
2455 # differences in whitespace do not lead to failure.
2456 ac_old_val_w=`echo x $ac_old_val`
2457 ac_new_val_w=`echo x $ac_new_val`
2458 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2460 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2461 ac_cache_corrupted=:
2462 else
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2464 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2465 eval $ac_var=\$ac_old_val
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2468 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2470 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2471 fi;;
2472 esac
2473 # Pass precious variables to config.status.
2474 if test "$ac_new_set" = set; then
2475 case $ac_new_val in
2476 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2477 *) ac_arg=$ac_var=$ac_new_val ;;
2478 esac
2479 case " $ac_configure_args " in
2480 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2481 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2482 esac
2484 done
2485 if $ac_cache_corrupted; then
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2487 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2489 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2490 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2492 ## -------------------- ##
2493 ## Main body of script. ##
2494 ## -------------------- ##
2496 ac_ext=c
2497 ac_cpp='$CPP $CPPFLAGS'
2498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2507 ac_config_headers="$ac_config_headers config.h"
2510 libtool_VERSION=6:0:0
2513 # Default to --enable-multilib
2514 # Check whether --enable-multilib was given.
2515 if test "${enable_multilib+set}" = set; then :
2516 enableval=$enable_multilib; case "$enableval" in
2517 yes) multilib=yes ;;
2518 no) multilib=no ;;
2519 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2520 esac
2521 else
2522 multilib=yes
2526 # We may get other options which we leave undocumented:
2527 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2528 # See config-ml.in if you want the gory details.
2530 if test "$srcdir" = "."; then
2531 if test "$with_target_subdir" != "."; then
2532 multi_basedir="$srcdir/$with_multisrctop../.."
2533 else
2534 multi_basedir="$srcdir/$with_multisrctop.."
2536 else
2537 multi_basedir="$srcdir/.."
2541 # Even if the default multilib is not a cross compilation,
2542 # it may be that some of the other multilibs are.
2543 if test $cross_compiling = no && test $multilib = yes \
2544 && test "x${with_multisubdir}" != x ; then
2545 cross_compiling=maybe
2548 ac_config_commands="$ac_config_commands default-1"
2551 ac_aux_dir=
2552 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2553 for ac_t in install-sh install.sh shtool; do
2554 if test -f "$ac_dir/$ac_t"; then
2555 ac_aux_dir=$ac_dir
2556 ac_install_sh="$ac_aux_dir/$ac_t -c"
2557 break 2
2559 done
2560 done
2561 if test -z "$ac_aux_dir"; then
2562 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2565 # These three variables are undocumented and unsupported,
2566 # and are intended to be withdrawn in a future Autoconf release.
2567 # They can cause serious problems if a builder's source tree is in a directory
2568 # whose full name contains unusual characters.
2569 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2570 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2571 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2574 # Make sure we can run config.sub.
2575 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2576 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2579 $as_echo_n "checking build system type... " >&6; }
2580 if test "${ac_cv_build+set}" = set; then :
2581 $as_echo_n "(cached) " >&6
2582 else
2583 ac_build_alias=$build_alias
2584 test "x$ac_build_alias" = x &&
2585 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2586 test "x$ac_build_alias" = x &&
2587 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2588 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2589 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2593 $as_echo "$ac_cv_build" >&6; }
2594 case $ac_cv_build in
2595 *-*-*) ;;
2596 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2597 esac
2598 build=$ac_cv_build
2599 ac_save_IFS=$IFS; IFS='-'
2600 set x $ac_cv_build
2601 shift
2602 build_cpu=$1
2603 build_vendor=$2
2604 shift; shift
2605 # Remember, the first character of IFS is used to create $*,
2606 # except with old shells:
2607 build_os=$*
2608 IFS=$ac_save_IFS
2609 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2613 $as_echo_n "checking host system type... " >&6; }
2614 if test "${ac_cv_host+set}" = set; then :
2615 $as_echo_n "(cached) " >&6
2616 else
2617 if test "x$host_alias" = x; then
2618 ac_cv_host=$ac_cv_build
2619 else
2620 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2621 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2626 $as_echo "$ac_cv_host" >&6; }
2627 case $ac_cv_host in
2628 *-*-*) ;;
2629 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2630 esac
2631 host=$ac_cv_host
2632 ac_save_IFS=$IFS; IFS='-'
2633 set x $ac_cv_host
2634 shift
2635 host_cpu=$1
2636 host_vendor=$2
2637 shift; shift
2638 # Remember, the first character of IFS is used to create $*,
2639 # except with old shells:
2640 host_os=$*
2641 IFS=$ac_save_IFS
2642 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2646 $as_echo_n "checking target system type... " >&6; }
2647 if test "${ac_cv_target+set}" = set; then :
2648 $as_echo_n "(cached) " >&6
2649 else
2650 if test "x$target_alias" = x; then
2651 ac_cv_target=$ac_cv_host
2652 else
2653 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2654 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2659 $as_echo "$ac_cv_target" >&6; }
2660 case $ac_cv_target in
2661 *-*-*) ;;
2662 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2663 esac
2664 target=$ac_cv_target
2665 ac_save_IFS=$IFS; IFS='-'
2666 set x $ac_cv_target
2667 shift
2668 target_cpu=$1
2669 target_vendor=$2
2670 shift; shift
2671 # Remember, the first character of IFS is used to create $*,
2672 # except with old shells:
2673 target_os=$*
2674 IFS=$ac_save_IFS
2675 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2678 # The aliases save the names the user supplied, while $host etc.
2679 # will get canonicalized.
2680 test -n "$target_alias" &&
2681 test "$program_prefix$program_suffix$program_transform_name" = \
2682 NONENONEs,x,x, &&
2683 program_prefix=${target_alias}-
2685 target_alias=${target_alias-$host_alias}
2687 am__api_version='1.11'
2689 # Find a good install program. We prefer a C program (faster),
2690 # so one script is as good as another. But avoid the broken or
2691 # incompatible versions:
2692 # SysV /etc/install, /usr/sbin/install
2693 # SunOS /usr/etc/install
2694 # IRIX /sbin/install
2695 # AIX /bin/install
2696 # AmigaOS /C/install, which installs bootblocks on floppy discs
2697 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2698 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2699 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2700 # OS/2's system install, which has a completely different semantic
2701 # ./install, which can be erroneously created by make from ./install.sh.
2702 # Reject install programs that cannot install multiple files.
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2704 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2705 if test -z "$INSTALL"; then
2706 if test "${ac_cv_path_install+set}" = set; then :
2707 $as_echo_n "(cached) " >&6
2708 else
2709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710 for as_dir in $PATH
2712 IFS=$as_save_IFS
2713 test -z "$as_dir" && as_dir=.
2714 # Account for people who put trailing slashes in PATH elements.
2715 case $as_dir/ in #((
2716 ./ | .// | /[cC]/* | \
2717 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2718 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2719 /usr/ucb/* ) ;;
2721 # OSF1 and SCO ODT 3.0 have their own names for install.
2722 # Don't use installbsd from OSF since it installs stuff as root
2723 # by default.
2724 for ac_prog in ginstall scoinst install; do
2725 for ac_exec_ext in '' $ac_executable_extensions; do
2726 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2727 if test $ac_prog = install &&
2728 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2729 # AIX install. It has an incompatible calling convention.
2731 elif test $ac_prog = install &&
2732 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2733 # program-specific install script used by HP pwplus--don't use.
2735 else
2736 rm -rf conftest.one conftest.two conftest.dir
2737 echo one > conftest.one
2738 echo two > conftest.two
2739 mkdir conftest.dir
2740 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2741 test -s conftest.one && test -s conftest.two &&
2742 test -s conftest.dir/conftest.one &&
2743 test -s conftest.dir/conftest.two
2744 then
2745 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2746 break 3
2750 done
2751 done
2753 esac
2755 done
2756 IFS=$as_save_IFS
2758 rm -rf conftest.one conftest.two conftest.dir
2761 if test "${ac_cv_path_install+set}" = set; then
2762 INSTALL=$ac_cv_path_install
2763 else
2764 # As a last resort, use the slow shell script. Don't cache a
2765 # value for INSTALL within a source directory, because that will
2766 # break other packages using the cache if that directory is
2767 # removed, or if the value is a relative name.
2768 INSTALL=$ac_install_sh
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2772 $as_echo "$INSTALL" >&6; }
2774 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2775 # It thinks the first close brace ends the variable substitution.
2776 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2778 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2780 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2783 $as_echo_n "checking whether build environment is sane... " >&6; }
2784 # Just in case
2785 sleep 1
2786 echo timestamp > conftest.file
2787 # Reject unsafe characters in $srcdir or the absolute working directory
2788 # name. Accept space and tab only in the latter.
2789 am_lf='
2791 case `pwd` in
2792 *[\\\"\#\$\&\'\`$am_lf]*)
2793 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2794 esac
2795 case $srcdir in
2796 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2797 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2798 esac
2800 # Do `set' in a subshell so we don't clobber the current shell's
2801 # arguments. Must try -L first in case configure is actually a
2802 # symlink; some systems play weird games with the mod time of symlinks
2803 # (eg FreeBSD returns the mod time of the symlink's containing
2804 # directory).
2805 if (
2806 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2807 if test "$*" = "X"; then
2808 # -L didn't work.
2809 set X `ls -t "$srcdir/configure" conftest.file`
2811 rm -f conftest.file
2812 if test "$*" != "X $srcdir/configure conftest.file" \
2813 && test "$*" != "X conftest.file $srcdir/configure"; then
2815 # If neither matched, then we have a broken ls. This can happen
2816 # if, for instance, CONFIG_SHELL is bash and it inherits a
2817 # broken ls alias from the environment. This has actually
2818 # happened. Such a system could not be considered "sane".
2819 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2820 alias in your environment" "$LINENO" 5
2823 test "$2" = conftest.file
2825 then
2826 # Ok.
2828 else
2829 as_fn_error "newly created file is older than distributed files!
2830 Check your system clock" "$LINENO" 5
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2833 $as_echo "yes" >&6; }
2834 test "$program_prefix" != NONE &&
2835 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2836 # Use a double $ so make ignores it.
2837 test "$program_suffix" != NONE &&
2838 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2839 # Double any \ or $.
2840 # By default was `s,x,x', remove it if useless.
2841 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2842 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2844 # expand $ac_aux_dir to an absolute path
2845 am_aux_dir=`cd $ac_aux_dir && pwd`
2847 if test x"${MISSING+set}" != xset; then
2848 case $am_aux_dir in
2849 *\ * | *\ *)
2850 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2852 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2853 esac
2855 # Use eval to expand $SHELL
2856 if eval "$MISSING --run true"; then
2857 am_missing_run="$MISSING --run "
2858 else
2859 am_missing_run=
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2861 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2864 if test x"${install_sh}" != xset; then
2865 case $am_aux_dir in
2866 *\ * | *\ *)
2867 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2869 install_sh="\${SHELL} $am_aux_dir/install-sh"
2870 esac
2873 # Installed binaries are usually stripped using `strip' when the user
2874 # run `make install-strip'. However `strip' might not be the right
2875 # tool to use in cross-compilation environments, therefore Automake
2876 # will honor the `STRIP' environment variable to overrule this program.
2877 if test "$cross_compiling" != no; then
2878 if test -n "$ac_tool_prefix"; then
2879 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2880 set dummy ${ac_tool_prefix}strip; ac_word=$2
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2882 $as_echo_n "checking for $ac_word... " >&6; }
2883 if test "${ac_cv_prog_STRIP+set}" = set; then :
2884 $as_echo_n "(cached) " >&6
2885 else
2886 if test -n "$STRIP"; then
2887 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2888 else
2889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890 for as_dir in $PATH
2892 IFS=$as_save_IFS
2893 test -z "$as_dir" && as_dir=.
2894 for ac_exec_ext in '' $ac_executable_extensions; do
2895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2896 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2898 break 2
2900 done
2901 done
2902 IFS=$as_save_IFS
2906 STRIP=$ac_cv_prog_STRIP
2907 if test -n "$STRIP"; then
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2909 $as_echo "$STRIP" >&6; }
2910 else
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2912 $as_echo "no" >&6; }
2917 if test -z "$ac_cv_prog_STRIP"; then
2918 ac_ct_STRIP=$STRIP
2919 # Extract the first word of "strip", so it can be a program name with args.
2920 set dummy strip; ac_word=$2
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2922 $as_echo_n "checking for $ac_word... " >&6; }
2923 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2924 $as_echo_n "(cached) " >&6
2925 else
2926 if test -n "$ac_ct_STRIP"; then
2927 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2928 else
2929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930 for as_dir in $PATH
2932 IFS=$as_save_IFS
2933 test -z "$as_dir" && as_dir=.
2934 for ac_exec_ext in '' $ac_executable_extensions; do
2935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2936 ac_cv_prog_ac_ct_STRIP="strip"
2937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2938 break 2
2940 done
2941 done
2942 IFS=$as_save_IFS
2946 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2947 if test -n "$ac_ct_STRIP"; then
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2949 $as_echo "$ac_ct_STRIP" >&6; }
2950 else
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2952 $as_echo "no" >&6; }
2955 if test "x$ac_ct_STRIP" = x; then
2956 STRIP=":"
2957 else
2958 case $cross_compiling:$ac_tool_warned in
2959 yes:)
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2962 ac_tool_warned=yes ;;
2963 esac
2964 STRIP=$ac_ct_STRIP
2966 else
2967 STRIP="$ac_cv_prog_STRIP"
2971 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2974 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2975 if test -z "$MKDIR_P"; then
2976 if test "${ac_cv_path_mkdir+set}" = set; then :
2977 $as_echo_n "(cached) " >&6
2978 else
2979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2982 IFS=$as_save_IFS
2983 test -z "$as_dir" && as_dir=.
2984 for ac_prog in mkdir gmkdir; do
2985 for ac_exec_ext in '' $ac_executable_extensions; do
2986 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2987 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2988 'mkdir (GNU coreutils) '* | \
2989 'mkdir (coreutils) '* | \
2990 'mkdir (fileutils) '4.1*)
2991 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2992 break 3;;
2993 esac
2994 done
2995 done
2996 done
2997 IFS=$as_save_IFS
3001 if test "${ac_cv_path_mkdir+set}" = set; then
3002 MKDIR_P="$ac_cv_path_mkdir -p"
3003 else
3004 # As a last resort, use the slow shell script. Don't cache a
3005 # value for MKDIR_P within a source directory, because that will
3006 # break other packages using the cache if that directory is
3007 # removed, or if the value is a relative name.
3008 test -d ./--version && rmdir ./--version
3009 MKDIR_P="$ac_install_sh -d"
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3013 $as_echo "$MKDIR_P" >&6; }
3015 mkdir_p="$MKDIR_P"
3016 case $mkdir_p in
3017 [\\/$]* | ?:[\\/]*) ;;
3018 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3019 esac
3021 for ac_prog in gawk mawk nawk awk
3023 # Extract the first word of "$ac_prog", so it can be a program name with args.
3024 set dummy $ac_prog; ac_word=$2
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3026 $as_echo_n "checking for $ac_word... " >&6; }
3027 if test "${ac_cv_prog_AWK+set}" = set; then :
3028 $as_echo_n "(cached) " >&6
3029 else
3030 if test -n "$AWK"; then
3031 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3032 else
3033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034 for as_dir in $PATH
3036 IFS=$as_save_IFS
3037 test -z "$as_dir" && as_dir=.
3038 for ac_exec_ext in '' $ac_executable_extensions; do
3039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3040 ac_cv_prog_AWK="$ac_prog"
3041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3042 break 2
3044 done
3045 done
3046 IFS=$as_save_IFS
3050 AWK=$ac_cv_prog_AWK
3051 if test -n "$AWK"; then
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3053 $as_echo "$AWK" >&6; }
3054 else
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3056 $as_echo "no" >&6; }
3060 test -n "$AWK" && break
3061 done
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3064 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3065 set x ${MAKE-make}
3066 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3067 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3068 $as_echo_n "(cached) " >&6
3069 else
3070 cat >conftest.make <<\_ACEOF
3071 SHELL = /bin/sh
3072 all:
3073 @echo '@@@%%%=$(MAKE)=@@@%%%'
3074 _ACEOF
3075 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3076 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3077 *@@@%%%=?*=@@@%%%*)
3078 eval ac_cv_prog_make_${ac_make}_set=yes;;
3080 eval ac_cv_prog_make_${ac_make}_set=no;;
3081 esac
3082 rm -f conftest.make
3084 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3086 $as_echo "yes" >&6; }
3087 SET_MAKE=
3088 else
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3090 $as_echo "no" >&6; }
3091 SET_MAKE="MAKE=${MAKE-make}"
3094 rm -rf .tst 2>/dev/null
3095 mkdir .tst 2>/dev/null
3096 if test -d .tst; then
3097 am__leading_dot=.
3098 else
3099 am__leading_dot=_
3101 rmdir .tst 2>/dev/null
3103 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3104 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3105 # is not polluted with repeated "-I."
3106 am__isrc=' -I$(srcdir)'
3107 # test to see if srcdir already configured
3108 if test -f $srcdir/config.status; then
3109 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3113 # test whether we have cygpath
3114 if test -z "$CYGPATH_W"; then
3115 if (cygpath --version) >/dev/null 2>/dev/null; then
3116 CYGPATH_W='cygpath -w'
3117 else
3118 CYGPATH_W=echo
3123 # Define the identity of the package.
3124 PACKAGE='libgo'
3125 VERSION='version-unused'
3128 # Some tools Automake needs.
3130 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3133 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3136 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3139 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3142 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3144 # We need awk for the "check" target. The system "awk" is bad on
3145 # some platforms.
3146 # Always define AMTAR for backward compatibility.
3148 AMTAR=${AMTAR-"${am_missing_run}tar"}
3150 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3161 ac_ext=c
3162 ac_cpp='$CPP $CPPFLAGS'
3163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3166 if test -n "$ac_tool_prefix"; then
3167 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3168 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3170 $as_echo_n "checking for $ac_word... " >&6; }
3171 if test "${ac_cv_prog_CC+set}" = set; then :
3172 $as_echo_n "(cached) " >&6
3173 else
3174 if test -n "$CC"; then
3175 ac_cv_prog_CC="$CC" # Let the user override the test.
3176 else
3177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178 for as_dir in $PATH
3180 IFS=$as_save_IFS
3181 test -z "$as_dir" && as_dir=.
3182 for ac_exec_ext in '' $ac_executable_extensions; do
3183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3184 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3186 break 2
3188 done
3189 done
3190 IFS=$as_save_IFS
3194 CC=$ac_cv_prog_CC
3195 if test -n "$CC"; then
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3197 $as_echo "$CC" >&6; }
3198 else
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3200 $as_echo "no" >&6; }
3205 if test -z "$ac_cv_prog_CC"; then
3206 ac_ct_CC=$CC
3207 # Extract the first word of "gcc", so it can be a program name with args.
3208 set dummy gcc; ac_word=$2
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3210 $as_echo_n "checking for $ac_word... " >&6; }
3211 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3212 $as_echo_n "(cached) " >&6
3213 else
3214 if test -n "$ac_ct_CC"; then
3215 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3216 else
3217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3218 for as_dir in $PATH
3220 IFS=$as_save_IFS
3221 test -z "$as_dir" && as_dir=.
3222 for ac_exec_ext in '' $ac_executable_extensions; do
3223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3224 ac_cv_prog_ac_ct_CC="gcc"
3225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3226 break 2
3228 done
3229 done
3230 IFS=$as_save_IFS
3234 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3235 if test -n "$ac_ct_CC"; then
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3237 $as_echo "$ac_ct_CC" >&6; }
3238 else
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3240 $as_echo "no" >&6; }
3243 if test "x$ac_ct_CC" = x; then
3244 CC=""
3245 else
3246 case $cross_compiling:$ac_tool_warned in
3247 yes:)
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3249 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3250 ac_tool_warned=yes ;;
3251 esac
3252 CC=$ac_ct_CC
3254 else
3255 CC="$ac_cv_prog_CC"
3258 if test -z "$CC"; then
3259 if test -n "$ac_tool_prefix"; then
3260 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3261 set dummy ${ac_tool_prefix}cc; ac_word=$2
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3263 $as_echo_n "checking for $ac_word... " >&6; }
3264 if test "${ac_cv_prog_CC+set}" = set; then :
3265 $as_echo_n "(cached) " >&6
3266 else
3267 if test -n "$CC"; then
3268 ac_cv_prog_CC="$CC" # Let the user override the test.
3269 else
3270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3271 for as_dir in $PATH
3273 IFS=$as_save_IFS
3274 test -z "$as_dir" && as_dir=.
3275 for ac_exec_ext in '' $ac_executable_extensions; do
3276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3277 ac_cv_prog_CC="${ac_tool_prefix}cc"
3278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3279 break 2
3281 done
3282 done
3283 IFS=$as_save_IFS
3287 CC=$ac_cv_prog_CC
3288 if test -n "$CC"; then
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3290 $as_echo "$CC" >&6; }
3291 else
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293 $as_echo "no" >&6; }
3299 if test -z "$CC"; then
3300 # Extract the first word of "cc", so it can be a program name with args.
3301 set dummy cc; ac_word=$2
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3303 $as_echo_n "checking for $ac_word... " >&6; }
3304 if test "${ac_cv_prog_CC+set}" = set; then :
3305 $as_echo_n "(cached) " >&6
3306 else
3307 if test -n "$CC"; then
3308 ac_cv_prog_CC="$CC" # Let the user override the test.
3309 else
3310 ac_prog_rejected=no
3311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3312 for as_dir in $PATH
3314 IFS=$as_save_IFS
3315 test -z "$as_dir" && as_dir=.
3316 for ac_exec_ext in '' $ac_executable_extensions; do
3317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3318 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3319 ac_prog_rejected=yes
3320 continue
3322 ac_cv_prog_CC="cc"
3323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3324 break 2
3326 done
3327 done
3328 IFS=$as_save_IFS
3330 if test $ac_prog_rejected = yes; then
3331 # We found a bogon in the path, so make sure we never use it.
3332 set dummy $ac_cv_prog_CC
3333 shift
3334 if test $# != 0; then
3335 # We chose a different compiler from the bogus one.
3336 # However, it has the same basename, so the bogon will be chosen
3337 # first if we set CC to just the basename; use the full file name.
3338 shift
3339 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3344 CC=$ac_cv_prog_CC
3345 if test -n "$CC"; then
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3347 $as_echo "$CC" >&6; }
3348 else
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3350 $as_echo "no" >&6; }
3355 if test -z "$CC"; then
3356 if test -n "$ac_tool_prefix"; then
3357 for ac_prog in cl.exe
3359 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3360 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3362 $as_echo_n "checking for $ac_word... " >&6; }
3363 if test "${ac_cv_prog_CC+set}" = set; then :
3364 $as_echo_n "(cached) " >&6
3365 else
3366 if test -n "$CC"; then
3367 ac_cv_prog_CC="$CC" # Let the user override the test.
3368 else
3369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3370 for as_dir in $PATH
3372 IFS=$as_save_IFS
3373 test -z "$as_dir" && as_dir=.
3374 for ac_exec_ext in '' $ac_executable_extensions; do
3375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3376 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3378 break 2
3380 done
3381 done
3382 IFS=$as_save_IFS
3386 CC=$ac_cv_prog_CC
3387 if test -n "$CC"; then
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3389 $as_echo "$CC" >&6; }
3390 else
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3392 $as_echo "no" >&6; }
3396 test -n "$CC" && break
3397 done
3399 if test -z "$CC"; then
3400 ac_ct_CC=$CC
3401 for ac_prog in cl.exe
3403 # Extract the first word of "$ac_prog", so it can be a program name with args.
3404 set dummy $ac_prog; ac_word=$2
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3406 $as_echo_n "checking for $ac_word... " >&6; }
3407 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3408 $as_echo_n "(cached) " >&6
3409 else
3410 if test -n "$ac_ct_CC"; then
3411 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3412 else
3413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3414 for as_dir in $PATH
3416 IFS=$as_save_IFS
3417 test -z "$as_dir" && as_dir=.
3418 for ac_exec_ext in '' $ac_executable_extensions; do
3419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3420 ac_cv_prog_ac_ct_CC="$ac_prog"
3421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3422 break 2
3424 done
3425 done
3426 IFS=$as_save_IFS
3430 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3431 if test -n "$ac_ct_CC"; then
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3433 $as_echo "$ac_ct_CC" >&6; }
3434 else
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3436 $as_echo "no" >&6; }
3440 test -n "$ac_ct_CC" && break
3441 done
3443 if test "x$ac_ct_CC" = x; then
3444 CC=""
3445 else
3446 case $cross_compiling:$ac_tool_warned in
3447 yes:)
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3449 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3450 ac_tool_warned=yes ;;
3451 esac
3452 CC=$ac_ct_CC
3459 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3460 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3461 as_fn_error "no acceptable C compiler found in \$PATH
3462 See \`config.log' for more details." "$LINENO" 5; }
3464 # Provide some information about the compiler.
3465 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3466 set X $ac_compile
3467 ac_compiler=$2
3468 for ac_option in --version -v -V -qversion; do
3469 { { ac_try="$ac_compiler $ac_option >&5"
3470 case "(($ac_try" in
3471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3472 *) ac_try_echo=$ac_try;;
3473 esac
3474 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3475 $as_echo "$ac_try_echo"; } >&5
3476 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3477 ac_status=$?
3478 if test -s conftest.err; then
3479 sed '10a\
3480 ... rest of stderr output deleted ...
3481 10q' conftest.err >conftest.er1
3482 cat conftest.er1 >&5
3483 rm -f conftest.er1 conftest.err
3485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3486 test $ac_status = 0; }
3487 done
3489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3490 /* end confdefs.h. */
3493 main ()
3497 return 0;
3499 _ACEOF
3500 ac_clean_files_save=$ac_clean_files
3501 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3502 # Try to create an executable without -o first, disregard a.out.
3503 # It will help us diagnose broken compilers, and finding out an intuition
3504 # of exeext.
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3506 $as_echo_n "checking for C compiler default output file name... " >&6; }
3507 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3509 # The possible output files:
3510 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3512 ac_rmfiles=
3513 for ac_file in $ac_files
3515 case $ac_file in
3516 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3517 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3518 esac
3519 done
3520 rm -f $ac_rmfiles
3522 if { { ac_try="$ac_link_default"
3523 case "(($ac_try" in
3524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3525 *) ac_try_echo=$ac_try;;
3526 esac
3527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3528 $as_echo "$ac_try_echo"; } >&5
3529 (eval "$ac_link_default") 2>&5
3530 ac_status=$?
3531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3532 test $ac_status = 0; }; then :
3533 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3534 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3535 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3536 # so that the user can short-circuit this test for compilers unknown to
3537 # Autoconf.
3538 for ac_file in $ac_files ''
3540 test -f "$ac_file" || continue
3541 case $ac_file in
3542 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3544 [ab].out )
3545 # We found the default executable, but exeext='' is most
3546 # certainly right.
3547 break;;
3548 *.* )
3549 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3550 then :; else
3551 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3553 # We set ac_cv_exeext here because the later test for it is not
3554 # safe: cross compilers may not add the suffix if given an `-o'
3555 # argument, so we may need to know it at that point already.
3556 # Even if this section looks crufty: it has the advantage of
3557 # actually working.
3558 break;;
3560 break;;
3561 esac
3562 done
3563 test "$ac_cv_exeext" = no && ac_cv_exeext=
3565 else
3566 ac_file=''
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3569 $as_echo "$ac_file" >&6; }
3570 if test -z "$ac_file"; then :
3571 $as_echo "$as_me: failed program was:" >&5
3572 sed 's/^/| /' conftest.$ac_ext >&5
3574 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3576 { as_fn_set_status 77
3577 as_fn_error "C compiler cannot create executables
3578 See \`config.log' for more details." "$LINENO" 5; }; }
3580 ac_exeext=$ac_cv_exeext
3582 # Check that the compiler produces executables we can run. If not, either
3583 # the compiler is broken, or we cross compile.
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3585 $as_echo_n "checking whether the C compiler works... " >&6; }
3586 # If not cross compiling, check that we can run a simple program.
3587 if test "$cross_compiling" != yes; then
3588 if { ac_try='./$ac_file'
3589 { { case "(($ac_try" in
3590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3591 *) ac_try_echo=$ac_try;;
3592 esac
3593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3594 $as_echo "$ac_try_echo"; } >&5
3595 (eval "$ac_try") 2>&5
3596 ac_status=$?
3597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3598 test $ac_status = 0; }; }; then
3599 cross_compiling=no
3600 else
3601 if test "$cross_compiling" = maybe; then
3602 cross_compiling=yes
3603 else
3604 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3606 as_fn_error "cannot run C compiled programs.
3607 If you meant to cross compile, use \`--host'.
3608 See \`config.log' for more details." "$LINENO" 5; }
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3613 $as_echo "yes" >&6; }
3615 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3616 ac_clean_files=$ac_clean_files_save
3617 # Check that the compiler produces executables we can run. If not, either
3618 # the compiler is broken, or we cross compile.
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3620 $as_echo_n "checking whether we are cross compiling... " >&6; }
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3622 $as_echo "$cross_compiling" >&6; }
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3625 $as_echo_n "checking for suffix of executables... " >&6; }
3626 if { { ac_try="$ac_link"
3627 case "(($ac_try" in
3628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629 *) ac_try_echo=$ac_try;;
3630 esac
3631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3632 $as_echo "$ac_try_echo"; } >&5
3633 (eval "$ac_link") 2>&5
3634 ac_status=$?
3635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3636 test $ac_status = 0; }; then :
3637 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3638 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3639 # work properly (i.e., refer to `conftest.exe'), while it won't with
3640 # `rm'.
3641 for ac_file in conftest.exe conftest conftest.*; do
3642 test -f "$ac_file" || continue
3643 case $ac_file in
3644 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3645 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3646 break;;
3647 * ) break;;
3648 esac
3649 done
3650 else
3651 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3652 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3653 as_fn_error "cannot compute suffix of executables: cannot compile and link
3654 See \`config.log' for more details." "$LINENO" 5; }
3656 rm -f conftest$ac_cv_exeext
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3658 $as_echo "$ac_cv_exeext" >&6; }
3660 rm -f conftest.$ac_ext
3661 EXEEXT=$ac_cv_exeext
3662 ac_exeext=$EXEEXT
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3664 $as_echo_n "checking for suffix of object files... " >&6; }
3665 if test "${ac_cv_objext+set}" = set; then :
3666 $as_echo_n "(cached) " >&6
3667 else
3668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3669 /* end confdefs.h. */
3672 main ()
3676 return 0;
3678 _ACEOF
3679 rm -f conftest.o conftest.obj
3680 if { { ac_try="$ac_compile"
3681 case "(($ac_try" in
3682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3683 *) ac_try_echo=$ac_try;;
3684 esac
3685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3686 $as_echo "$ac_try_echo"; } >&5
3687 (eval "$ac_compile") 2>&5
3688 ac_status=$?
3689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3690 test $ac_status = 0; }; then :
3691 for ac_file in conftest.o conftest.obj conftest.*; do
3692 test -f "$ac_file" || continue;
3693 case $ac_file in
3694 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3695 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3696 break;;
3697 esac
3698 done
3699 else
3700 $as_echo "$as_me: failed program was:" >&5
3701 sed 's/^/| /' conftest.$ac_ext >&5
3703 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3704 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3705 as_fn_error "cannot compute suffix of object files: cannot compile
3706 See \`config.log' for more details." "$LINENO" 5; }
3708 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3711 $as_echo "$ac_cv_objext" >&6; }
3712 OBJEXT=$ac_cv_objext
3713 ac_objext=$OBJEXT
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3715 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3716 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3717 $as_echo_n "(cached) " >&6
3718 else
3719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720 /* end confdefs.h. */
3723 main ()
3725 #ifndef __GNUC__
3726 choke me
3727 #endif
3730 return 0;
3732 _ACEOF
3733 if ac_fn_c_try_compile "$LINENO"; then :
3734 ac_compiler_gnu=yes
3735 else
3736 ac_compiler_gnu=no
3738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3739 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3743 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3744 if test $ac_compiler_gnu = yes; then
3745 GCC=yes
3746 else
3747 GCC=
3749 ac_test_CFLAGS=${CFLAGS+set}
3750 ac_save_CFLAGS=$CFLAGS
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3752 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3753 if test "${ac_cv_prog_cc_g+set}" = set; then :
3754 $as_echo_n "(cached) " >&6
3755 else
3756 ac_save_c_werror_flag=$ac_c_werror_flag
3757 ac_c_werror_flag=yes
3758 ac_cv_prog_cc_g=no
3759 CFLAGS="-g"
3760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3761 /* end confdefs.h. */
3764 main ()
3768 return 0;
3770 _ACEOF
3771 if ac_fn_c_try_compile "$LINENO"; then :
3772 ac_cv_prog_cc_g=yes
3773 else
3774 CFLAGS=""
3775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3776 /* end confdefs.h. */
3779 main ()
3783 return 0;
3785 _ACEOF
3786 if ac_fn_c_try_compile "$LINENO"; then :
3788 else
3789 ac_c_werror_flag=$ac_save_c_werror_flag
3790 CFLAGS="-g"
3791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3792 /* end confdefs.h. */
3795 main ()
3799 return 0;
3801 _ACEOF
3802 if ac_fn_c_try_compile "$LINENO"; then :
3803 ac_cv_prog_cc_g=yes
3805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3810 ac_c_werror_flag=$ac_save_c_werror_flag
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3813 $as_echo "$ac_cv_prog_cc_g" >&6; }
3814 if test "$ac_test_CFLAGS" = set; then
3815 CFLAGS=$ac_save_CFLAGS
3816 elif test $ac_cv_prog_cc_g = yes; then
3817 if test "$GCC" = yes; then
3818 CFLAGS="-g -O2"
3819 else
3820 CFLAGS="-g"
3822 else
3823 if test "$GCC" = yes; then
3824 CFLAGS="-O2"
3825 else
3826 CFLAGS=
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3830 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3831 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3832 $as_echo_n "(cached) " >&6
3833 else
3834 ac_cv_prog_cc_c89=no
3835 ac_save_CC=$CC
3836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837 /* end confdefs.h. */
3838 #include <stdarg.h>
3839 #include <stdio.h>
3840 #include <sys/types.h>
3841 #include <sys/stat.h>
3842 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3843 struct buf { int x; };
3844 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3845 static char *e (p, i)
3846 char **p;
3847 int i;
3849 return p[i];
3851 static char *f (char * (*g) (char **, int), char **p, ...)
3853 char *s;
3854 va_list v;
3855 va_start (v,p);
3856 s = g (p, va_arg (v,int));
3857 va_end (v);
3858 return s;
3861 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3862 function prototypes and stuff, but not '\xHH' hex character constants.
3863 These don't provoke an error unfortunately, instead are silently treated
3864 as 'x'. The following induces an error, until -std is added to get
3865 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3866 array size at least. It's necessary to write '\x00'==0 to get something
3867 that's true only with -std. */
3868 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3870 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3871 inside strings and character constants. */
3872 #define FOO(x) 'x'
3873 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3875 int test (int i, double x);
3876 struct s1 {int (*f) (int a);};
3877 struct s2 {int (*f) (double a);};
3878 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3879 int argc;
3880 char **argv;
3882 main ()
3884 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3886 return 0;
3888 _ACEOF
3889 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3890 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3892 CC="$ac_save_CC $ac_arg"
3893 if ac_fn_c_try_compile "$LINENO"; then :
3894 ac_cv_prog_cc_c89=$ac_arg
3896 rm -f core conftest.err conftest.$ac_objext
3897 test "x$ac_cv_prog_cc_c89" != "xno" && break
3898 done
3899 rm -f conftest.$ac_ext
3900 CC=$ac_save_CC
3903 # AC_CACHE_VAL
3904 case "x$ac_cv_prog_cc_c89" in
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3907 $as_echo "none needed" >&6; } ;;
3908 xno)
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3910 $as_echo "unsupported" >&6; } ;;
3912 CC="$CC $ac_cv_prog_cc_c89"
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3914 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3915 esac
3916 if test "x$ac_cv_prog_cc_c89" != xno; then :
3920 ac_ext=c
3921 ac_cpp='$CPP $CPPFLAGS'
3922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3925 DEPDIR="${am__leading_dot}deps"
3927 ac_config_commands="$ac_config_commands depfiles"
3930 am_make=${MAKE-make}
3931 cat > confinc << 'END'
3932 am__doit:
3933 @echo this is the am__doit target
3934 .PHONY: am__doit
3936 # If we don't find an include directive, just comment out the code.
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3938 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3939 am__include="#"
3940 am__quote=
3941 _am_result=none
3942 # First try GNU make style include.
3943 echo "include confinc" > confmf
3944 # Ignore all kinds of additional output from `make'.
3945 case `$am_make -s -f confmf 2> /dev/null` in #(
3946 *the\ am__doit\ target*)
3947 am__include=include
3948 am__quote=
3949 _am_result=GNU
3951 esac
3952 # Now try BSD make style include.
3953 if test "$am__include" = "#"; then
3954 echo '.include "confinc"' > confmf
3955 case `$am_make -s -f confmf 2> /dev/null` in #(
3956 *the\ am__doit\ target*)
3957 am__include=.include
3958 am__quote="\""
3959 _am_result=BSD
3961 esac
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3966 $as_echo "$_am_result" >&6; }
3967 rm -f confinc confmf
3969 # Check whether --enable-dependency-tracking was given.
3970 if test "${enable_dependency_tracking+set}" = set; then :
3971 enableval=$enable_dependency_tracking;
3974 if test "x$enable_dependency_tracking" != xno; then
3975 am_depcomp="$ac_aux_dir/depcomp"
3976 AMDEPBACKSLASH='\'
3978 if test "x$enable_dependency_tracking" != xno; then
3979 AMDEP_TRUE=
3980 AMDEP_FALSE='#'
3981 else
3982 AMDEP_TRUE='#'
3983 AMDEP_FALSE=
3988 depcc="$CC" am_compiler_list=
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3991 $as_echo_n "checking dependency style of $depcc... " >&6; }
3992 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3993 $as_echo_n "(cached) " >&6
3994 else
3995 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3996 # We make a subdir and do the tests there. Otherwise we can end up
3997 # making bogus files that we don't know about and never remove. For
3998 # instance it was reported that on HP-UX the gcc test will end up
3999 # making a dummy file named `D' -- because `-MD' means `put the output
4000 # in D'.
4001 mkdir conftest.dir
4002 # Copy depcomp to subdir because otherwise we won't find it if we're
4003 # using a relative directory.
4004 cp "$am_depcomp" conftest.dir
4005 cd conftest.dir
4006 # We will build objects and dependencies in a subdirectory because
4007 # it helps to detect inapplicable dependency modes. For instance
4008 # both Tru64's cc and ICC support -MD to output dependencies as a
4009 # side effect of compilation, but ICC will put the dependencies in
4010 # the current directory while Tru64 will put them in the object
4011 # directory.
4012 mkdir sub
4014 am_cv_CC_dependencies_compiler_type=none
4015 if test "$am_compiler_list" = ""; then
4016 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4018 am__universal=false
4019 case " $depcc " in #(
4020 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4021 esac
4023 for depmode in $am_compiler_list; do
4024 # Setup a source with many dependencies, because some compilers
4025 # like to wrap large dependency lists on column 80 (with \), and
4026 # we should not choose a depcomp mode which is confused by this.
4028 # We need to recreate these files for each test, as the compiler may
4029 # overwrite some of them when testing with obscure command lines.
4030 # This happens at least with the AIX C compiler.
4031 : > sub/conftest.c
4032 for i in 1 2 3 4 5 6; do
4033 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4034 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4035 # Solaris 8's {/usr,}/bin/sh.
4036 touch sub/conftst$i.h
4037 done
4038 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4040 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4041 # mode. It turns out that the SunPro C++ compiler does not properly
4042 # handle `-M -o', and we need to detect this. Also, some Intel
4043 # versions had trouble with output in subdirs
4044 am__obj=sub/conftest.${OBJEXT-o}
4045 am__minus_obj="-o $am__obj"
4046 case $depmode in
4047 gcc)
4048 # This depmode causes a compiler race in universal mode.
4049 test "$am__universal" = false || continue
4051 nosideeffect)
4052 # after this tag, mechanisms are not by side-effect, so they'll
4053 # only be used when explicitly requested
4054 if test "x$enable_dependency_tracking" = xyes; then
4055 continue
4056 else
4057 break
4060 msvisualcpp | msvcmsys)
4061 # This compiler won't grok `-c -o', but also, the minuso test has
4062 # not run yet. These depmodes are late enough in the game, and
4063 # so weak that their functioning should not be impacted.
4064 am__obj=conftest.${OBJEXT-o}
4065 am__minus_obj=
4067 none) break ;;
4068 esac
4069 if depmode=$depmode \
4070 source=sub/conftest.c object=$am__obj \
4071 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4072 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4073 >/dev/null 2>conftest.err &&
4074 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4075 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4076 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4077 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4078 # icc doesn't choke on unknown options, it will just issue warnings
4079 # or remarks (even with -Werror). So we grep stderr for any message
4080 # that says an option was ignored or not supported.
4081 # When given -MP, icc 7.0 and 7.1 complain thusly:
4082 # icc: Command line warning: ignoring option '-M'; no argument required
4083 # The diagnosis changed in icc 8.0:
4084 # icc: Command line remark: option '-MP' not supported
4085 if (grep 'ignoring option' conftest.err ||
4086 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4087 am_cv_CC_dependencies_compiler_type=$depmode
4088 break
4091 done
4093 cd ..
4094 rm -rf conftest.dir
4095 else
4096 am_cv_CC_dependencies_compiler_type=none
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4101 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4102 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4105 test "x$enable_dependency_tracking" != xno \
4106 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4107 am__fastdepCC_TRUE=
4108 am__fastdepCC_FALSE='#'
4109 else
4110 am__fastdepCC_TRUE='#'
4111 am__fastdepCC_FALSE=
4115 ac_ext=go
4116 ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
4117 ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4118 ac_compile_gnu=yes
4119 if test -n "$ac_tool_prefix"; then
4120 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4121 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4123 $as_echo_n "checking for $ac_word... " >&6; }
4124 if test "${ac_cv_prog_GOC+set}" = set; then :
4125 $as_echo_n "(cached) " >&6
4126 else
4127 if test -n "$GOC"; then
4128 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4129 else
4130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131 for as_dir in $PATH
4133 IFS=$as_save_IFS
4134 test -z "$as_dir" && as_dir=.
4135 for ac_exec_ext in '' $ac_executable_extensions; do
4136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4137 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
4138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4139 break 2
4141 done
4142 done
4143 IFS=$as_save_IFS
4147 GOC=$ac_cv_prog_GOC
4148 if test -n "$GOC"; then
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4150 $as_echo "$GOC" >&6; }
4151 else
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4153 $as_echo "no" >&6; }
4158 if test -z "$ac_cv_prog_GOC"; then
4159 ac_ct_GOC=$GOC
4160 # Extract the first word of "gccgo", so it can be a program name with args.
4161 set dummy gccgo; ac_word=$2
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4163 $as_echo_n "checking for $ac_word... " >&6; }
4164 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
4165 $as_echo_n "(cached) " >&6
4166 else
4167 if test -n "$ac_ct_GOC"; then
4168 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
4169 else
4170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171 for as_dir in $PATH
4173 IFS=$as_save_IFS
4174 test -z "$as_dir" && as_dir=.
4175 for ac_exec_ext in '' $ac_executable_extensions; do
4176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4177 ac_cv_prog_ac_ct_GOC="gccgo"
4178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4179 break 2
4181 done
4182 done
4183 IFS=$as_save_IFS
4187 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
4188 if test -n "$ac_ct_GOC"; then
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
4190 $as_echo "$ac_ct_GOC" >&6; }
4191 else
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4193 $as_echo "no" >&6; }
4196 if test "x$ac_ct_GOC" = x; then
4197 GOC=""
4198 else
4199 case $cross_compiling:$ac_tool_warned in
4200 yes:)
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4203 ac_tool_warned=yes ;;
4204 esac
4205 GOC=$ac_ct_GOC
4207 else
4208 GOC="$ac_cv_prog_GOC"
4211 if test -z "$GOC"; then
4212 if test -n "$ac_tool_prefix"; then
4213 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4214 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4216 $as_echo_n "checking for $ac_word... " >&6; }
4217 if test "${ac_cv_prog_GOC+set}" = set; then :
4218 $as_echo_n "(cached) " >&6
4219 else
4220 if test -n "$GOC"; then
4221 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4222 else
4223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4224 for as_dir in $PATH
4226 IFS=$as_save_IFS
4227 test -z "$as_dir" && as_dir=.
4228 for ac_exec_ext in '' $ac_executable_extensions; do
4229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4230 ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4232 break 2
4234 done
4235 done
4236 IFS=$as_save_IFS
4240 GOC=$ac_cv_prog_GOC
4241 if test -n "$GOC"; then
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4243 $as_echo "$GOC" >&6; }
4244 else
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4246 $as_echo "no" >&6; }
4252 if test -z "$GOC"; then
4253 # Extract the first word of "gccgo", so it can be a program name with args.
4254 set dummy gccgo; ac_word=$2
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4256 $as_echo_n "checking for $ac_word... " >&6; }
4257 if test "${ac_cv_prog_GOC+set}" = set; then :
4258 $as_echo_n "(cached) " >&6
4259 else
4260 if test -n "$GOC"; then
4261 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4262 else
4263 ac_prog_rejected=no
4264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4265 for as_dir in $PATH
4267 IFS=$as_save_IFS
4268 test -z "$as_dir" && as_dir=.
4269 for ac_exec_ext in '' $ac_executable_extensions; do
4270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4271 if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
4272 ac_prog_rejected=yes
4273 continue
4275 ac_cv_prog_GOC="gccgo"
4276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4277 break 2
4279 done
4280 done
4281 IFS=$as_save_IFS
4283 if test $ac_prog_rejected = yes; then
4284 # We found a bogon in the path, so make sure we never use it.
4285 set dummy $ac_cv_prog_GOC
4286 shift
4287 if test $# != 0; then
4288 # We chose a different compiler from the bogus one.
4289 # However, it has the same basename, so the bogon will be chosen
4290 # first if we set GOC to just the basename; use the full file name.
4291 shift
4292 ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4297 GOC=$ac_cv_prog_GOC
4298 if test -n "$GOC"; then
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4300 $as_echo "$GOC" >&6; }
4301 else
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4303 $as_echo "no" >&6; }
4310 # Provide some information about the compiler.
4311 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4312 set X $ac_compile
4313 ac_compiler=$2
4314 { { ac_try="$ac_compiler --version >&5"
4315 case "(($ac_try" in
4316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4317 *) ac_try_echo=$ac_try;;
4318 esac
4319 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4320 $as_echo "$ac_try_echo"; } >&5
4321 (eval "$ac_compiler --version >&5") 2>conftest.err
4322 ac_status=$?
4323 if test -s conftest.err; then
4324 sed '10a\
4325 ... rest of stderr output deleted ...
4326 10q' conftest.err >conftest.er1
4327 cat conftest.er1 >&5
4328 rm -f conftest.er1 conftest.err
4330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4331 test $ac_status = 0; }
4332 GOCFLAGS="-g -O2"
4333 ac_ext=c
4334 ac_cpp='$CPP $CPPFLAGS'
4335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4345 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4346 # Check whether --enable-maintainer-mode was given.
4347 if test "${enable_maintainer_mode+set}" = set; then :
4348 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4349 else
4350 USE_MAINTAINER_MODE=no
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4354 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4355 if test $USE_MAINTAINER_MODE = yes; then
4356 MAINTAINER_MODE_TRUE=
4357 MAINTAINER_MODE_FALSE='#'
4358 else
4359 MAINTAINER_MODE_TRUE='#'
4360 MAINTAINER_MODE_FALSE=
4363 MAINT=$MAINTAINER_MODE_TRUE
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4368 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4369 if test "${ac_cv_path_SED+set}" = set; then :
4370 $as_echo_n "(cached) " >&6
4371 else
4372 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4373 for ac_i in 1 2 3 4 5 6 7; do
4374 ac_script="$ac_script$as_nl$ac_script"
4375 done
4376 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4377 { ac_script=; unset ac_script;}
4378 if test -z "$SED"; then
4379 ac_path_SED_found=false
4380 # Loop through the user's path and test for each of PROGNAME-LIST
4381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4382 for as_dir in $PATH
4384 IFS=$as_save_IFS
4385 test -z "$as_dir" && as_dir=.
4386 for ac_prog in sed gsed; do
4387 for ac_exec_ext in '' $ac_executable_extensions; do
4388 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4389 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4390 # Check for GNU ac_path_SED and select it if it is found.
4391 # Check for GNU $ac_path_SED
4392 case `"$ac_path_SED" --version 2>&1` in
4393 *GNU*)
4394 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4396 ac_count=0
4397 $as_echo_n 0123456789 >"conftest.in"
4398 while :
4400 cat "conftest.in" "conftest.in" >"conftest.tmp"
4401 mv "conftest.tmp" "conftest.in"
4402 cp "conftest.in" "conftest.nl"
4403 $as_echo '' >> "conftest.nl"
4404 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4405 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4406 as_fn_arith $ac_count + 1 && ac_count=$as_val
4407 if test $ac_count -gt ${ac_path_SED_max-0}; then
4408 # Best one so far, save it but keep looking for a better one
4409 ac_cv_path_SED="$ac_path_SED"
4410 ac_path_SED_max=$ac_count
4412 # 10*(2^10) chars as input seems more than enough
4413 test $ac_count -gt 10 && break
4414 done
4415 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4416 esac
4418 $ac_path_SED_found && break 3
4419 done
4420 done
4421 done
4422 IFS=$as_save_IFS
4423 if test -z "$ac_cv_path_SED"; then
4424 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4426 else
4427 ac_cv_path_SED=$SED
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4432 $as_echo "$ac_cv_path_SED" >&6; }
4433 SED="$ac_cv_path_SED"
4434 rm -f conftest.sed
4436 test -z "$SED" && SED=sed
4437 Xsed="$SED -e 1s/^X//"
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4450 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4451 if test "${ac_cv_path_GREP+set}" = set; then :
4452 $as_echo_n "(cached) " >&6
4453 else
4454 if test -z "$GREP"; then
4455 ac_path_GREP_found=false
4456 # Loop through the user's path and test for each of PROGNAME-LIST
4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4460 IFS=$as_save_IFS
4461 test -z "$as_dir" && as_dir=.
4462 for ac_prog in grep ggrep; do
4463 for ac_exec_ext in '' $ac_executable_extensions; do
4464 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4465 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4466 # Check for GNU ac_path_GREP and select it if it is found.
4467 # Check for GNU $ac_path_GREP
4468 case `"$ac_path_GREP" --version 2>&1` in
4469 *GNU*)
4470 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4472 ac_count=0
4473 $as_echo_n 0123456789 >"conftest.in"
4474 while :
4476 cat "conftest.in" "conftest.in" >"conftest.tmp"
4477 mv "conftest.tmp" "conftest.in"
4478 cp "conftest.in" "conftest.nl"
4479 $as_echo 'GREP' >> "conftest.nl"
4480 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4481 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4482 as_fn_arith $ac_count + 1 && ac_count=$as_val
4483 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4484 # Best one so far, save it but keep looking for a better one
4485 ac_cv_path_GREP="$ac_path_GREP"
4486 ac_path_GREP_max=$ac_count
4488 # 10*(2^10) chars as input seems more than enough
4489 test $ac_count -gt 10 && break
4490 done
4491 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4492 esac
4494 $ac_path_GREP_found && break 3
4495 done
4496 done
4497 done
4498 IFS=$as_save_IFS
4499 if test -z "$ac_cv_path_GREP"; then
4500 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4502 else
4503 ac_cv_path_GREP=$GREP
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4508 $as_echo "$ac_cv_path_GREP" >&6; }
4509 GREP="$ac_cv_path_GREP"
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4513 $as_echo_n "checking for egrep... " >&6; }
4514 if test "${ac_cv_path_EGREP+set}" = set; then :
4515 $as_echo_n "(cached) " >&6
4516 else
4517 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4518 then ac_cv_path_EGREP="$GREP -E"
4519 else
4520 if test -z "$EGREP"; then
4521 ac_path_EGREP_found=false
4522 # Loop through the user's path and test for each of PROGNAME-LIST
4523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4526 IFS=$as_save_IFS
4527 test -z "$as_dir" && as_dir=.
4528 for ac_prog in egrep; do
4529 for ac_exec_ext in '' $ac_executable_extensions; do
4530 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4531 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4532 # Check for GNU ac_path_EGREP and select it if it is found.
4533 # Check for GNU $ac_path_EGREP
4534 case `"$ac_path_EGREP" --version 2>&1` in
4535 *GNU*)
4536 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4538 ac_count=0
4539 $as_echo_n 0123456789 >"conftest.in"
4540 while :
4542 cat "conftest.in" "conftest.in" >"conftest.tmp"
4543 mv "conftest.tmp" "conftest.in"
4544 cp "conftest.in" "conftest.nl"
4545 $as_echo 'EGREP' >> "conftest.nl"
4546 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4547 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4548 as_fn_arith $ac_count + 1 && ac_count=$as_val
4549 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4550 # Best one so far, save it but keep looking for a better one
4551 ac_cv_path_EGREP="$ac_path_EGREP"
4552 ac_path_EGREP_max=$ac_count
4554 # 10*(2^10) chars as input seems more than enough
4555 test $ac_count -gt 10 && break
4556 done
4557 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4558 esac
4560 $ac_path_EGREP_found && break 3
4561 done
4562 done
4563 done
4564 IFS=$as_save_IFS
4565 if test -z "$ac_cv_path_EGREP"; then
4566 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4568 else
4569 ac_cv_path_EGREP=$EGREP
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4575 $as_echo "$ac_cv_path_EGREP" >&6; }
4576 EGREP="$ac_cv_path_EGREP"
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4580 $as_echo_n "checking for fgrep... " >&6; }
4581 if test "${ac_cv_path_FGREP+set}" = set; then :
4582 $as_echo_n "(cached) " >&6
4583 else
4584 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4585 then ac_cv_path_FGREP="$GREP -F"
4586 else
4587 if test -z "$FGREP"; then
4588 ac_path_FGREP_found=false
4589 # Loop through the user's path and test for each of PROGNAME-LIST
4590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4593 IFS=$as_save_IFS
4594 test -z "$as_dir" && as_dir=.
4595 for ac_prog in fgrep; do
4596 for ac_exec_ext in '' $ac_executable_extensions; do
4597 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4598 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4599 # Check for GNU ac_path_FGREP and select it if it is found.
4600 # Check for GNU $ac_path_FGREP
4601 case `"$ac_path_FGREP" --version 2>&1` in
4602 *GNU*)
4603 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4605 ac_count=0
4606 $as_echo_n 0123456789 >"conftest.in"
4607 while :
4609 cat "conftest.in" "conftest.in" >"conftest.tmp"
4610 mv "conftest.tmp" "conftest.in"
4611 cp "conftest.in" "conftest.nl"
4612 $as_echo 'FGREP' >> "conftest.nl"
4613 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4614 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4615 as_fn_arith $ac_count + 1 && ac_count=$as_val
4616 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4617 # Best one so far, save it but keep looking for a better one
4618 ac_cv_path_FGREP="$ac_path_FGREP"
4619 ac_path_FGREP_max=$ac_count
4621 # 10*(2^10) chars as input seems more than enough
4622 test $ac_count -gt 10 && break
4623 done
4624 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4625 esac
4627 $ac_path_FGREP_found && break 3
4628 done
4629 done
4630 done
4631 IFS=$as_save_IFS
4632 if test -z "$ac_cv_path_FGREP"; then
4633 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4635 else
4636 ac_cv_path_FGREP=$FGREP
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4642 $as_echo "$ac_cv_path_FGREP" >&6; }
4643 FGREP="$ac_cv_path_FGREP"
4646 test -z "$GREP" && GREP=grep
4664 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4665 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4666 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4669 $as_echo_n "checking how to print strings... " >&6; }
4670 # Test print first, because it will be a builtin if present.
4671 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4672 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4673 ECHO='print -r --'
4674 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4675 ECHO='printf %s\n'
4676 else
4677 # Use this function as a fallback that always works.
4678 func_fallback_echo ()
4680 eval 'cat <<_LTECHO_EOF
4682 _LTECHO_EOF'
4684 ECHO='func_fallback_echo'
4687 # func_echo_all arg...
4688 # Invoke $ECHO with all args, space-separated.
4689 func_echo_all ()
4691 $ECHO ""
4694 case "$ECHO" in
4695 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4696 $as_echo "printf" >&6; } ;;
4697 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4698 $as_echo "print -r" >&6; } ;;
4699 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4700 $as_echo "cat" >&6; } ;;
4701 esac
4718 # Check whether --with-gnu-ld was given.
4719 if test "${with_gnu_ld+set}" = set; then :
4720 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4721 else
4722 with_gnu_ld=no
4725 ac_prog=ld
4726 if test "$GCC" = yes; then
4727 # Check if gcc -print-prog-name=ld gives a path.
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4729 $as_echo_n "checking for ld used by $CC... " >&6; }
4730 case $host in
4731 *-*-mingw*)
4732 # gcc leaves a trailing carriage return which upsets mingw
4733 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4735 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4736 esac
4737 case $ac_prog in
4738 # Accept absolute paths.
4739 [\\/]* | ?:[\\/]*)
4740 re_direlt='/[^/][^/]*/\.\./'
4741 # Canonicalize the pathname of ld
4742 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4743 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4744 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4745 done
4746 test -z "$LD" && LD="$ac_prog"
4749 # If it fails, then pretend we aren't using GCC.
4750 ac_prog=ld
4753 # If it is relative, then search for the first ld in PATH.
4754 with_gnu_ld=unknown
4756 esac
4757 elif test "$with_gnu_ld" = yes; then
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4759 $as_echo_n "checking for GNU ld... " >&6; }
4760 else
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4762 $as_echo_n "checking for non-GNU ld... " >&6; }
4764 if test "${lt_cv_path_LD+set}" = set; then :
4765 $as_echo_n "(cached) " >&6
4766 else
4767 if test -z "$LD"; then
4768 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4769 for ac_dir in $PATH; do
4770 IFS="$lt_save_ifs"
4771 test -z "$ac_dir" && ac_dir=.
4772 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4773 lt_cv_path_LD="$ac_dir/$ac_prog"
4774 # Check to see if the program is GNU ld. I'd rather use --version,
4775 # but apparently some variants of GNU ld only accept -v.
4776 # Break only if it was the GNU/non-GNU ld that we prefer.
4777 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4778 *GNU* | *'with BFD'*)
4779 test "$with_gnu_ld" != no && break
4782 test "$with_gnu_ld" != yes && break
4784 esac
4786 done
4787 IFS="$lt_save_ifs"
4788 else
4789 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4793 LD="$lt_cv_path_LD"
4794 if test -n "$LD"; then
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4796 $as_echo "$LD" >&6; }
4797 else
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4799 $as_echo "no" >&6; }
4801 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4803 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4804 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4805 $as_echo_n "(cached) " >&6
4806 else
4807 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4808 case `$LD -v 2>&1 </dev/null` in
4809 *GNU* | *'with BFD'*)
4810 lt_cv_prog_gnu_ld=yes
4813 lt_cv_prog_gnu_ld=no
4815 esac
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4818 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4819 with_gnu_ld=$lt_cv_prog_gnu_ld
4829 if test -n "$ac_tool_prefix"; then
4830 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4831 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4833 $as_echo_n "checking for $ac_word... " >&6; }
4834 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4835 $as_echo_n "(cached) " >&6
4836 else
4837 if test -n "$RANLIB"; then
4838 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4839 else
4840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4841 for as_dir in $PATH
4843 IFS=$as_save_IFS
4844 test -z "$as_dir" && as_dir=.
4845 for ac_exec_ext in '' $ac_executable_extensions; do
4846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4847 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4849 break 2
4851 done
4852 done
4853 IFS=$as_save_IFS
4857 RANLIB=$ac_cv_prog_RANLIB
4858 if test -n "$RANLIB"; then
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4860 $as_echo "$RANLIB" >&6; }
4861 else
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4863 $as_echo "no" >&6; }
4868 if test -z "$ac_cv_prog_RANLIB"; then
4869 ac_ct_RANLIB=$RANLIB
4870 # Extract the first word of "ranlib", so it can be a program name with args.
4871 set dummy ranlib; ac_word=$2
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4873 $as_echo_n "checking for $ac_word... " >&6; }
4874 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4875 $as_echo_n "(cached) " >&6
4876 else
4877 if test -n "$ac_ct_RANLIB"; then
4878 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4879 else
4880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881 for as_dir in $PATH
4883 IFS=$as_save_IFS
4884 test -z "$as_dir" && as_dir=.
4885 for ac_exec_ext in '' $ac_executable_extensions; do
4886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4887 ac_cv_prog_ac_ct_RANLIB="ranlib"
4888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4889 break 2
4891 done
4892 done
4893 IFS=$as_save_IFS
4897 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4898 if test -n "$ac_ct_RANLIB"; then
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4900 $as_echo "$ac_ct_RANLIB" >&6; }
4901 else
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4903 $as_echo "no" >&6; }
4906 if test "x$ac_ct_RANLIB" = x; then
4907 RANLIB=":"
4908 else
4909 case $cross_compiling:$ac_tool_warned in
4910 yes:)
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4912 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4913 ac_tool_warned=yes ;;
4914 esac
4915 RANLIB=$ac_ct_RANLIB
4917 else
4918 RANLIB="$ac_cv_prog_RANLIB"
4921 if test -n "$ac_tool_prefix"; then
4922 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
4923 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4925 $as_echo_n "checking for $ac_word... " >&6; }
4926 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
4927 $as_echo_n "(cached) " >&6
4928 else
4929 if test -n "$OBJCOPY"; then
4930 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4931 else
4932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4933 for as_dir in $PATH
4935 IFS=$as_save_IFS
4936 test -z "$as_dir" && as_dir=.
4937 for ac_exec_ext in '' $ac_executable_extensions; do
4938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4939 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
4940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4941 break 2
4943 done
4944 done
4945 IFS=$as_save_IFS
4949 OBJCOPY=$ac_cv_prog_OBJCOPY
4950 if test -n "$OBJCOPY"; then
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
4952 $as_echo "$OBJCOPY" >&6; }
4953 else
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4955 $as_echo "no" >&6; }
4960 if test -z "$ac_cv_prog_OBJCOPY"; then
4961 ac_ct_OBJCOPY=$OBJCOPY
4962 # Extract the first word of "objcopy", so it can be a program name with args.
4963 set dummy objcopy; ac_word=$2
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4965 $as_echo_n "checking for $ac_word... " >&6; }
4966 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
4967 $as_echo_n "(cached) " >&6
4968 else
4969 if test -n "$ac_ct_OBJCOPY"; then
4970 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
4971 else
4972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4973 for as_dir in $PATH
4975 IFS=$as_save_IFS
4976 test -z "$as_dir" && as_dir=.
4977 for ac_exec_ext in '' $ac_executable_extensions; do
4978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4979 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
4980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4981 break 2
4983 done
4984 done
4985 IFS=$as_save_IFS
4989 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
4990 if test -n "$ac_ct_OBJCOPY"; then
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
4992 $as_echo "$ac_ct_OBJCOPY" >&6; }
4993 else
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4995 $as_echo "no" >&6; }
4998 if test "x$ac_ct_OBJCOPY" = x; then
4999 OBJCOPY="missing-objcopy"
5000 else
5001 case $cross_compiling:$ac_tool_warned in
5002 yes:)
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5005 ac_tool_warned=yes ;;
5006 esac
5007 OBJCOPY=$ac_ct_OBJCOPY
5009 else
5010 OBJCOPY="$ac_cv_prog_OBJCOPY"
5014 enable_dlopen=yes
5018 case `pwd` in
5019 *\ * | *\ *)
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5021 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5022 esac
5026 macro_version='2.2.7a'
5027 macro_revision='1.3134'
5041 ltmain="$ac_aux_dir/ltmain.sh"
5043 # Backslashify metacharacters that are still active within
5044 # double-quoted strings.
5045 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5047 # Same as above, but do not quote variable references.
5048 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5050 # Sed substitution to delay expansion of an escaped shell variable in a
5051 # double_quote_subst'ed string.
5052 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5054 # Sed substitution to delay expansion of an escaped single quote.
5055 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5057 # Sed substitution to avoid accidental globbing in evaled expressions
5058 no_glob_subst='s/\*/\\\*/g'
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5061 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5062 if test "${lt_cv_path_NM+set}" = set; then :
5063 $as_echo_n "(cached) " >&6
5064 else
5065 if test -n "$NM"; then
5066 # Let the user override the test.
5067 lt_cv_path_NM="$NM"
5068 else
5069 lt_nm_to_check="${ac_tool_prefix}nm"
5070 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5071 lt_nm_to_check="$lt_nm_to_check nm"
5073 for lt_tmp_nm in $lt_nm_to_check; do
5074 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5075 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5076 IFS="$lt_save_ifs"
5077 test -z "$ac_dir" && ac_dir=.
5078 tmp_nm="$ac_dir/$lt_tmp_nm"
5079 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5080 # Check to see if the nm accepts a BSD-compat flag.
5081 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5082 # nm: unknown option "B" ignored
5083 # Tru64's nm complains that /dev/null is an invalid object file
5084 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5085 */dev/null* | *'Invalid file or object type'*)
5086 lt_cv_path_NM="$tmp_nm -B"
5087 break
5090 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5091 */dev/null*)
5092 lt_cv_path_NM="$tmp_nm -p"
5093 break
5096 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5097 continue # so that we can try to find one that supports BSD flags
5099 esac
5101 esac
5103 done
5104 IFS="$lt_save_ifs"
5105 done
5106 : ${lt_cv_path_NM=no}
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5110 $as_echo "$lt_cv_path_NM" >&6; }
5111 if test "$lt_cv_path_NM" != "no"; then
5112 NM="$lt_cv_path_NM"
5113 else
5114 # Didn't find any BSD compatible name lister, look for dumpbin.
5115 if test -n "$DUMPBIN"; then :
5116 # Let the user override the test.
5117 else
5118 if test -n "$ac_tool_prefix"; then
5119 for ac_prog in dumpbin "link -dump"
5121 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5122 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5124 $as_echo_n "checking for $ac_word... " >&6; }
5125 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5126 $as_echo_n "(cached) " >&6
5127 else
5128 if test -n "$DUMPBIN"; then
5129 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5130 else
5131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5132 for as_dir in $PATH
5134 IFS=$as_save_IFS
5135 test -z "$as_dir" && as_dir=.
5136 for ac_exec_ext in '' $ac_executable_extensions; do
5137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5138 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5140 break 2
5142 done
5143 done
5144 IFS=$as_save_IFS
5148 DUMPBIN=$ac_cv_prog_DUMPBIN
5149 if test -n "$DUMPBIN"; then
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5151 $as_echo "$DUMPBIN" >&6; }
5152 else
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5154 $as_echo "no" >&6; }
5158 test -n "$DUMPBIN" && break
5159 done
5161 if test -z "$DUMPBIN"; then
5162 ac_ct_DUMPBIN=$DUMPBIN
5163 for ac_prog in dumpbin "link -dump"
5165 # Extract the first word of "$ac_prog", so it can be a program name with args.
5166 set dummy $ac_prog; ac_word=$2
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5168 $as_echo_n "checking for $ac_word... " >&6; }
5169 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5170 $as_echo_n "(cached) " >&6
5171 else
5172 if test -n "$ac_ct_DUMPBIN"; then
5173 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5174 else
5175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176 for as_dir in $PATH
5178 IFS=$as_save_IFS
5179 test -z "$as_dir" && as_dir=.
5180 for ac_exec_ext in '' $ac_executable_extensions; do
5181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5182 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5184 break 2
5186 done
5187 done
5188 IFS=$as_save_IFS
5192 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5193 if test -n "$ac_ct_DUMPBIN"; then
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5195 $as_echo "$ac_ct_DUMPBIN" >&6; }
5196 else
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5198 $as_echo "no" >&6; }
5202 test -n "$ac_ct_DUMPBIN" && break
5203 done
5205 if test "x$ac_ct_DUMPBIN" = x; then
5206 DUMPBIN=":"
5207 else
5208 case $cross_compiling:$ac_tool_warned in
5209 yes:)
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5212 ac_tool_warned=yes ;;
5213 esac
5214 DUMPBIN=$ac_ct_DUMPBIN
5218 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5219 *COFF*)
5220 DUMPBIN="$DUMPBIN -symbols"
5223 DUMPBIN=:
5225 esac
5228 if test "$DUMPBIN" != ":"; then
5229 NM="$DUMPBIN"
5232 test -z "$NM" && NM=nm
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5240 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5241 if test "${lt_cv_nm_interface+set}" = set; then :
5242 $as_echo_n "(cached) " >&6
5243 else
5244 lt_cv_nm_interface="BSD nm"
5245 echo "int some_variable = 0;" > conftest.$ac_ext
5246 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5247 (eval "$ac_compile" 2>conftest.err)
5248 cat conftest.err >&5
5249 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5250 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5251 cat conftest.err >&5
5252 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5253 cat conftest.out >&5
5254 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5255 lt_cv_nm_interface="MS dumpbin"
5257 rm -f conftest*
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5260 $as_echo "$lt_cv_nm_interface" >&6; }
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5263 $as_echo_n "checking whether ln -s works... " >&6; }
5264 LN_S=$as_ln_s
5265 if test "$LN_S" = "ln -s"; then
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5267 $as_echo "yes" >&6; }
5268 else
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5270 $as_echo "no, using $LN_S" >&6; }
5273 # find the maximum length of command line arguments
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5275 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5276 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5277 $as_echo_n "(cached) " >&6
5278 else
5280 teststring="ABCD"
5282 case $build_os in
5283 msdosdjgpp*)
5284 # On DJGPP, this test can blow up pretty badly due to problems in libc
5285 # (any single argument exceeding 2000 bytes causes a buffer overrun
5286 # during glob expansion). Even if it were fixed, the result of this
5287 # check would be larger than it should be.
5288 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5291 gnu*)
5292 # Under GNU Hurd, this test is not required because there is
5293 # no limit to the length of command line arguments.
5294 # Libtool will interpret -1 as no limit whatsoever
5295 lt_cv_sys_max_cmd_len=-1;
5298 cygwin* | mingw* | cegcc*)
5299 # On Win9x/ME, this test blows up -- it succeeds, but takes
5300 # about 5 minutes as the teststring grows exponentially.
5301 # Worse, since 9x/ME are not pre-emptively multitasking,
5302 # you end up with a "frozen" computer, even though with patience
5303 # the test eventually succeeds (with a max line length of 256k).
5304 # Instead, let's just punt: use the minimum linelength reported by
5305 # all of the supported platforms: 8192 (on NT/2K/XP).
5306 lt_cv_sys_max_cmd_len=8192;
5309 mint*)
5310 # On MiNT this can take a long time and run out of memory.
5311 lt_cv_sys_max_cmd_len=8192;
5314 amigaos*)
5315 # On AmigaOS with pdksh, this test takes hours, literally.
5316 # So we just punt and use a minimum line length of 8192.
5317 lt_cv_sys_max_cmd_len=8192;
5320 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5321 # This has been around since 386BSD, at least. Likely further.
5322 if test -x /sbin/sysctl; then
5323 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5324 elif test -x /usr/sbin/sysctl; then
5325 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5326 else
5327 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5329 # And add a safety zone
5330 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5331 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5334 interix*)
5335 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5336 lt_cv_sys_max_cmd_len=196608
5339 osf*)
5340 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5341 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5342 # nice to cause kernel panics so lets avoid the loop below.
5343 # First set a reasonable default.
5344 lt_cv_sys_max_cmd_len=16384
5346 if test -x /sbin/sysconfig; then
5347 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5348 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5349 esac
5352 sco3.2v5*)
5353 lt_cv_sys_max_cmd_len=102400
5355 sysv5* | sco5v6* | sysv4.2uw2*)
5356 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5357 if test -n "$kargmax"; then
5358 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5359 else
5360 lt_cv_sys_max_cmd_len=32768
5364 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5365 if test -n "$lt_cv_sys_max_cmd_len"; then
5366 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5367 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5368 else
5369 # Make teststring a little bigger before we do anything with it.
5370 # a 1K string should be a reasonable start.
5371 for i in 1 2 3 4 5 6 7 8 ; do
5372 teststring=$teststring$teststring
5373 done
5374 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5375 # If test is not a shell built-in, we'll probably end up computing a
5376 # maximum length that is only half of the actual maximum length, but
5377 # we can't tell.
5378 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5379 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5380 test $i != 17 # 1/2 MB should be enough
5382 i=`expr $i + 1`
5383 teststring=$teststring$teststring
5384 done
5385 # Only check the string length outside the loop.
5386 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5387 teststring=
5388 # Add a significant safety factor because C++ compilers can tack on
5389 # massive amounts of additional arguments before passing them to the
5390 # linker. It appears as though 1/2 is a usable value.
5391 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5394 esac
5398 if test -n $lt_cv_sys_max_cmd_len ; then
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5400 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5401 else
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5403 $as_echo "none" >&6; }
5405 max_cmd_len=$lt_cv_sys_max_cmd_len
5412 : ${CP="cp -f"}
5413 : ${MV="mv -f"}
5414 : ${RM="rm -f"}
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5417 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5418 # Try some XSI features
5419 xsi_shell=no
5420 ( _lt_dummy="a/b/c"
5421 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5422 = c,a/b,, \
5423 && eval 'test $(( 1 + 1 )) -eq 2 \
5424 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5425 && xsi_shell=yes
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5427 $as_echo "$xsi_shell" >&6; }
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5431 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5432 lt_shell_append=no
5433 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5434 >/dev/null 2>&1 \
5435 && lt_shell_append=yes
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5437 $as_echo "$lt_shell_append" >&6; }
5440 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5441 lt_unset=unset
5442 else
5443 lt_unset=false
5450 # test EBCDIC or ASCII
5451 case `echo X|tr X '\101'` in
5452 A) # ASCII based system
5453 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5454 lt_SP2NL='tr \040 \012'
5455 lt_NL2SP='tr \015\012 \040\040'
5457 *) # EBCDIC based system
5458 lt_SP2NL='tr \100 \n'
5459 lt_NL2SP='tr \r\n \100\100'
5461 esac
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5472 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5473 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5474 $as_echo_n "(cached) " >&6
5475 else
5476 lt_cv_ld_reload_flag='-r'
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5479 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5480 reload_flag=$lt_cv_ld_reload_flag
5481 case $reload_flag in
5482 "" | " "*) ;;
5483 *) reload_flag=" $reload_flag" ;;
5484 esac
5485 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5486 case $host_os in
5487 darwin*)
5488 if test "$GCC" = yes; then
5489 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5490 else
5491 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5494 esac
5504 if test -n "$ac_tool_prefix"; then
5505 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5506 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5508 $as_echo_n "checking for $ac_word... " >&6; }
5509 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5510 $as_echo_n "(cached) " >&6
5511 else
5512 if test -n "$OBJDUMP"; then
5513 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5514 else
5515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5516 for as_dir in $PATH
5518 IFS=$as_save_IFS
5519 test -z "$as_dir" && as_dir=.
5520 for ac_exec_ext in '' $ac_executable_extensions; do
5521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5522 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5524 break 2
5526 done
5527 done
5528 IFS=$as_save_IFS
5532 OBJDUMP=$ac_cv_prog_OBJDUMP
5533 if test -n "$OBJDUMP"; then
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5535 $as_echo "$OBJDUMP" >&6; }
5536 else
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5538 $as_echo "no" >&6; }
5543 if test -z "$ac_cv_prog_OBJDUMP"; then
5544 ac_ct_OBJDUMP=$OBJDUMP
5545 # Extract the first word of "objdump", so it can be a program name with args.
5546 set dummy objdump; ac_word=$2
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5548 $as_echo_n "checking for $ac_word... " >&6; }
5549 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5550 $as_echo_n "(cached) " >&6
5551 else
5552 if test -n "$ac_ct_OBJDUMP"; then
5553 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5554 else
5555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5556 for as_dir in $PATH
5558 IFS=$as_save_IFS
5559 test -z "$as_dir" && as_dir=.
5560 for ac_exec_ext in '' $ac_executable_extensions; do
5561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5562 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5564 break 2
5566 done
5567 done
5568 IFS=$as_save_IFS
5572 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5573 if test -n "$ac_ct_OBJDUMP"; then
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5575 $as_echo "$ac_ct_OBJDUMP" >&6; }
5576 else
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5578 $as_echo "no" >&6; }
5581 if test "x$ac_ct_OBJDUMP" = x; then
5582 OBJDUMP="false"
5583 else
5584 case $cross_compiling:$ac_tool_warned in
5585 yes:)
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5588 ac_tool_warned=yes ;;
5589 esac
5590 OBJDUMP=$ac_ct_OBJDUMP
5592 else
5593 OBJDUMP="$ac_cv_prog_OBJDUMP"
5596 test -z "$OBJDUMP" && OBJDUMP=objdump
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5607 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5608 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5609 $as_echo_n "(cached) " >&6
5610 else
5611 lt_cv_file_magic_cmd='$MAGIC_CMD'
5612 lt_cv_file_magic_test_file=
5613 lt_cv_deplibs_check_method='unknown'
5614 # Need to set the preceding variable on all platforms that support
5615 # interlibrary dependencies.
5616 # 'none' -- dependencies not supported.
5617 # `unknown' -- same as none, but documents that we really don't know.
5618 # 'pass_all' -- all dependencies passed with no checks.
5619 # 'test_compile' -- check by making test program.
5620 # 'file_magic [[regex]]' -- check by looking for files in library path
5621 # which responds to the $file_magic_cmd with a given extended regex.
5622 # If you have `file' or equivalent on your system and you're not sure
5623 # whether `pass_all' will *always* work, you probably want this one.
5625 case $host_os in
5626 aix[4-9]*)
5627 lt_cv_deplibs_check_method=pass_all
5630 beos*)
5631 lt_cv_deplibs_check_method=pass_all
5634 bsdi[45]*)
5635 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5636 lt_cv_file_magic_cmd='/usr/bin/file -L'
5637 lt_cv_file_magic_test_file=/shlib/libc.so
5640 cygwin*)
5641 # func_win32_libid is a shell function defined in ltmain.sh
5642 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5643 lt_cv_file_magic_cmd='func_win32_libid'
5646 mingw* | pw32*)
5647 # Base MSYS/MinGW do not provide the 'file' command needed by
5648 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5649 # unless we find 'file', for example because we are cross-compiling.
5650 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5651 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5652 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5653 lt_cv_file_magic_cmd='func_win32_libid'
5654 else
5655 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5656 lt_cv_file_magic_cmd='$OBJDUMP -f'
5660 cegcc*)
5661 # use the weaker test based on 'objdump'. See mingw*.
5662 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5663 lt_cv_file_magic_cmd='$OBJDUMP -f'
5666 darwin* | rhapsody*)
5667 lt_cv_deplibs_check_method=pass_all
5670 freebsd* | dragonfly*)
5671 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5672 case $host_cpu in
5673 i*86 )
5674 # Not sure whether the presence of OpenBSD here was a mistake.
5675 # Let's accept both of them until this is cleared up.
5676 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5677 lt_cv_file_magic_cmd=/usr/bin/file
5678 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5680 esac
5681 else
5682 lt_cv_deplibs_check_method=pass_all
5686 gnu*)
5687 lt_cv_deplibs_check_method=pass_all
5690 haiku*)
5691 lt_cv_deplibs_check_method=pass_all
5694 hpux10.20* | hpux11*)
5695 lt_cv_file_magic_cmd=/usr/bin/file
5696 case $host_cpu in
5697 ia64*)
5698 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5699 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5701 hppa*64*)
5702 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5703 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5706 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5707 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5709 esac
5712 interix[3-9]*)
5713 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5714 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5717 irix5* | irix6* | nonstopux*)
5718 case $LD in
5719 *-32|*"-32 ") libmagic=32-bit;;
5720 *-n32|*"-n32 ") libmagic=N32;;
5721 *-64|*"-64 ") libmagic=64-bit;;
5722 *) libmagic=never-match;;
5723 esac
5724 lt_cv_deplibs_check_method=pass_all
5727 # This must be Linux ELF.
5728 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5729 lt_cv_deplibs_check_method=pass_all
5732 netbsd*)
5733 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5734 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5735 else
5736 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5740 newos6*)
5741 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5742 lt_cv_file_magic_cmd=/usr/bin/file
5743 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5746 *nto* | *qnx*)
5747 lt_cv_deplibs_check_method=pass_all
5750 openbsd*)
5751 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5752 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5753 else
5754 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5758 osf3* | osf4* | osf5*)
5759 lt_cv_deplibs_check_method=pass_all
5762 rdos*)
5763 lt_cv_deplibs_check_method=pass_all
5766 solaris*)
5767 lt_cv_deplibs_check_method=pass_all
5770 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5771 lt_cv_deplibs_check_method=pass_all
5774 sysv4 | sysv4.3*)
5775 case $host_vendor in
5776 motorola)
5777 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5778 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5780 ncr)
5781 lt_cv_deplibs_check_method=pass_all
5783 sequent)
5784 lt_cv_file_magic_cmd='/bin/file'
5785 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5787 sni)
5788 lt_cv_file_magic_cmd='/bin/file'
5789 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5790 lt_cv_file_magic_test_file=/lib/libc.so
5792 siemens)
5793 lt_cv_deplibs_check_method=pass_all
5796 lt_cv_deplibs_check_method=pass_all
5798 esac
5801 tpf*)
5802 lt_cv_deplibs_check_method=pass_all
5804 esac
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5808 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5809 file_magic_cmd=$lt_cv_file_magic_cmd
5810 deplibs_check_method=$lt_cv_deplibs_check_method
5811 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5824 if test -n "$ac_tool_prefix"; then
5825 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5826 set dummy ${ac_tool_prefix}ar; ac_word=$2
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5828 $as_echo_n "checking for $ac_word... " >&6; }
5829 if test "${ac_cv_prog_AR+set}" = set; then :
5830 $as_echo_n "(cached) " >&6
5831 else
5832 if test -n "$AR"; then
5833 ac_cv_prog_AR="$AR" # Let the user override the test.
5834 else
5835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5836 for as_dir in $PATH
5838 IFS=$as_save_IFS
5839 test -z "$as_dir" && as_dir=.
5840 for ac_exec_ext in '' $ac_executable_extensions; do
5841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5842 ac_cv_prog_AR="${ac_tool_prefix}ar"
5843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5844 break 2
5846 done
5847 done
5848 IFS=$as_save_IFS
5852 AR=$ac_cv_prog_AR
5853 if test -n "$AR"; then
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5855 $as_echo "$AR" >&6; }
5856 else
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5858 $as_echo "no" >&6; }
5863 if test -z "$ac_cv_prog_AR"; then
5864 ac_ct_AR=$AR
5865 # Extract the first word of "ar", so it can be a program name with args.
5866 set dummy ar; ac_word=$2
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5868 $as_echo_n "checking for $ac_word... " >&6; }
5869 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5870 $as_echo_n "(cached) " >&6
5871 else
5872 if test -n "$ac_ct_AR"; then
5873 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5874 else
5875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5876 for as_dir in $PATH
5878 IFS=$as_save_IFS
5879 test -z "$as_dir" && as_dir=.
5880 for ac_exec_ext in '' $ac_executable_extensions; do
5881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5882 ac_cv_prog_ac_ct_AR="ar"
5883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5884 break 2
5886 done
5887 done
5888 IFS=$as_save_IFS
5892 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5893 if test -n "$ac_ct_AR"; then
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5895 $as_echo "$ac_ct_AR" >&6; }
5896 else
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5898 $as_echo "no" >&6; }
5901 if test "x$ac_ct_AR" = x; then
5902 AR="false"
5903 else
5904 case $cross_compiling:$ac_tool_warned in
5905 yes:)
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5907 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5908 ac_tool_warned=yes ;;
5909 esac
5910 AR=$ac_ct_AR
5912 else
5913 AR="$ac_cv_prog_AR"
5916 test -z "$AR" && AR=ar
5917 test -z "$AR_FLAGS" && AR_FLAGS=cru
5929 if test -n "$ac_tool_prefix"; then
5930 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5931 set dummy ${ac_tool_prefix}strip; ac_word=$2
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5933 $as_echo_n "checking for $ac_word... " >&6; }
5934 if test "${ac_cv_prog_STRIP+set}" = set; then :
5935 $as_echo_n "(cached) " >&6
5936 else
5937 if test -n "$STRIP"; then
5938 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5939 else
5940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5941 for as_dir in $PATH
5943 IFS=$as_save_IFS
5944 test -z "$as_dir" && as_dir=.
5945 for ac_exec_ext in '' $ac_executable_extensions; do
5946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5947 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5949 break 2
5951 done
5952 done
5953 IFS=$as_save_IFS
5957 STRIP=$ac_cv_prog_STRIP
5958 if test -n "$STRIP"; then
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5960 $as_echo "$STRIP" >&6; }
5961 else
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5963 $as_echo "no" >&6; }
5968 if test -z "$ac_cv_prog_STRIP"; then
5969 ac_ct_STRIP=$STRIP
5970 # Extract the first word of "strip", so it can be a program name with args.
5971 set dummy strip; ac_word=$2
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5973 $as_echo_n "checking for $ac_word... " >&6; }
5974 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5975 $as_echo_n "(cached) " >&6
5976 else
5977 if test -n "$ac_ct_STRIP"; then
5978 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5979 else
5980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5981 for as_dir in $PATH
5983 IFS=$as_save_IFS
5984 test -z "$as_dir" && as_dir=.
5985 for ac_exec_ext in '' $ac_executable_extensions; do
5986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5987 ac_cv_prog_ac_ct_STRIP="strip"
5988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5989 break 2
5991 done
5992 done
5993 IFS=$as_save_IFS
5997 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5998 if test -n "$ac_ct_STRIP"; then
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6000 $as_echo "$ac_ct_STRIP" >&6; }
6001 else
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6003 $as_echo "no" >&6; }
6006 if test "x$ac_ct_STRIP" = x; then
6007 STRIP=":"
6008 else
6009 case $cross_compiling:$ac_tool_warned in
6010 yes:)
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6012 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6013 ac_tool_warned=yes ;;
6014 esac
6015 STRIP=$ac_ct_STRIP
6017 else
6018 STRIP="$ac_cv_prog_STRIP"
6021 test -z "$STRIP" && STRIP=:
6028 if test -n "$ac_tool_prefix"; then
6029 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6030 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6032 $as_echo_n "checking for $ac_word... " >&6; }
6033 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6034 $as_echo_n "(cached) " >&6
6035 else
6036 if test -n "$RANLIB"; then
6037 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6038 else
6039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6040 for as_dir in $PATH
6042 IFS=$as_save_IFS
6043 test -z "$as_dir" && as_dir=.
6044 for ac_exec_ext in '' $ac_executable_extensions; do
6045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6046 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6048 break 2
6050 done
6051 done
6052 IFS=$as_save_IFS
6056 RANLIB=$ac_cv_prog_RANLIB
6057 if test -n "$RANLIB"; then
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6059 $as_echo "$RANLIB" >&6; }
6060 else
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6062 $as_echo "no" >&6; }
6067 if test -z "$ac_cv_prog_RANLIB"; then
6068 ac_ct_RANLIB=$RANLIB
6069 # Extract the first word of "ranlib", so it can be a program name with args.
6070 set dummy ranlib; ac_word=$2
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6072 $as_echo_n "checking for $ac_word... " >&6; }
6073 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6074 $as_echo_n "(cached) " >&6
6075 else
6076 if test -n "$ac_ct_RANLIB"; then
6077 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6078 else
6079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6080 for as_dir in $PATH
6082 IFS=$as_save_IFS
6083 test -z "$as_dir" && as_dir=.
6084 for ac_exec_ext in '' $ac_executable_extensions; do
6085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6086 ac_cv_prog_ac_ct_RANLIB="ranlib"
6087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6088 break 2
6090 done
6091 done
6092 IFS=$as_save_IFS
6096 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6097 if test -n "$ac_ct_RANLIB"; then
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6099 $as_echo "$ac_ct_RANLIB" >&6; }
6100 else
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6102 $as_echo "no" >&6; }
6105 if test "x$ac_ct_RANLIB" = x; then
6106 RANLIB=":"
6107 else
6108 case $cross_compiling:$ac_tool_warned in
6109 yes:)
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6111 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6112 ac_tool_warned=yes ;;
6113 esac
6114 RANLIB=$ac_ct_RANLIB
6116 else
6117 RANLIB="$ac_cv_prog_RANLIB"
6120 test -z "$RANLIB" && RANLIB=:
6127 # Determine commands to create old-style static archives.
6128 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6129 old_postinstall_cmds='chmod 644 $oldlib'
6130 old_postuninstall_cmds=
6132 if test -n "$RANLIB"; then
6133 case $host_os in
6134 openbsd*)
6135 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6138 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6140 esac
6141 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6144 case $host_os in
6145 darwin*)
6146 lock_old_archive_extraction=yes ;;
6148 lock_old_archive_extraction=no ;;
6149 esac
6189 # If no C compiler was specified, use CC.
6190 LTCC=${LTCC-"$CC"}
6192 # If no C compiler flags were specified, use CFLAGS.
6193 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6195 # Allow CC to be a program name with arguments.
6196 compiler=$CC
6199 # Check for command to grab the raw symbol name followed by C symbol from nm.
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6201 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6202 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6203 $as_echo_n "(cached) " >&6
6204 else
6206 # These are sane defaults that work on at least a few old systems.
6207 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6209 # Character class describing NM global symbol codes.
6210 symcode='[BCDEGRST]'
6212 # Regexp to match symbols that can be accessed directly from C.
6213 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6215 # Define system-specific variables.
6216 case $host_os in
6217 aix*)
6218 symcode='[BCDT]'
6220 cygwin* | mingw* | pw32* | cegcc*)
6221 symcode='[ABCDGISTW]'
6223 hpux*)
6224 if test "$host_cpu" = ia64; then
6225 symcode='[ABCDEGRST]'
6228 irix* | nonstopux*)
6229 symcode='[BCDEGRST]'
6231 osf*)
6232 symcode='[BCDEGQRST]'
6234 solaris*)
6235 symcode='[BDRT]'
6237 sco3.2v5*)
6238 symcode='[DT]'
6240 sysv4.2uw2*)
6241 symcode='[DT]'
6243 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6244 symcode='[ABDT]'
6246 sysv4)
6247 symcode='[DFNSTU]'
6249 esac
6251 # If we're using GNU nm, then use its standard symbol codes.
6252 case `$NM -V 2>&1` in
6253 *GNU* | *'with BFD'*)
6254 symcode='[ABCDGIRSTW]' ;;
6255 esac
6257 # Transform an extracted symbol line into a proper C declaration.
6258 # Some systems (esp. on ia64) link data and code symbols differently,
6259 # so use this general approach.
6260 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6262 # Transform an extracted symbol line into symbol name and symbol address
6263 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6264 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6266 # Handle CRLF in mingw tool chain
6267 opt_cr=
6268 case $build_os in
6269 mingw*)
6270 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6272 esac
6274 # Try without a prefix underscore, then with it.
6275 for ac_symprfx in "" "_"; do
6277 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6278 symxfrm="\\1 $ac_symprfx\\2 \\2"
6280 # Write the raw and C identifiers.
6281 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6282 # Fake it for dumpbin and say T for any non-static function
6283 # and D for any global variable.
6284 # Also find C++ and __fastcall symbols from MSVC++,
6285 # which start with @ or ?.
6286 lt_cv_sys_global_symbol_pipe="$AWK '"\
6287 " {last_section=section; section=\$ 3};"\
6288 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6289 " \$ 0!~/External *\|/{next};"\
6290 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6291 " {if(hide[section]) next};"\
6292 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6293 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6294 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6295 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6296 " ' prfx=^$ac_symprfx"
6297 else
6298 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6301 # Check to see that the pipe works correctly.
6302 pipe_works=no
6304 rm -f conftest*
6305 cat > conftest.$ac_ext <<_LT_EOF
6306 #ifdef __cplusplus
6307 extern "C" {
6308 #endif
6309 char nm_test_var;
6310 void nm_test_func(void);
6311 void nm_test_func(void){}
6312 #ifdef __cplusplus
6314 #endif
6315 int main(){nm_test_var='a';nm_test_func();return(0);}
6316 _LT_EOF
6318 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6319 (eval $ac_compile) 2>&5
6320 ac_status=$?
6321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6322 test $ac_status = 0; }; then
6323 # Now try to grab the symbols.
6324 nlist=conftest.nm
6325 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6326 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6327 ac_status=$?
6328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6329 test $ac_status = 0; } && test -s "$nlist"; then
6330 # Try sorting and uniquifying the output.
6331 if sort "$nlist" | uniq > "$nlist"T; then
6332 mv -f "$nlist"T "$nlist"
6333 else
6334 rm -f "$nlist"T
6337 # Make sure that we snagged all the symbols we need.
6338 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6339 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6340 cat <<_LT_EOF > conftest.$ac_ext
6341 #ifdef __cplusplus
6342 extern "C" {
6343 #endif
6345 _LT_EOF
6346 # Now generate the symbol file.
6347 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6349 cat <<_LT_EOF >> conftest.$ac_ext
6351 /* The mapping between symbol names and symbols. */
6352 const struct {
6353 const char *name;
6354 void *address;
6356 lt__PROGRAM__LTX_preloaded_symbols[] =
6358 { "@PROGRAM@", (void *) 0 },
6359 _LT_EOF
6360 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6361 cat <<\_LT_EOF >> conftest.$ac_ext
6362 {0, (void *) 0}
6365 /* This works around a problem in FreeBSD linker */
6366 #ifdef FREEBSD_WORKAROUND
6367 static const void *lt_preloaded_setup() {
6368 return lt__PROGRAM__LTX_preloaded_symbols;
6370 #endif
6372 #ifdef __cplusplus
6374 #endif
6375 _LT_EOF
6376 # Now try linking the two files.
6377 mv conftest.$ac_objext conftstm.$ac_objext
6378 lt_save_LIBS="$LIBS"
6379 lt_save_CFLAGS="$CFLAGS"
6380 LIBS="conftstm.$ac_objext"
6381 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6382 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6383 (eval $ac_link) 2>&5
6384 ac_status=$?
6385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6386 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6387 pipe_works=yes
6389 LIBS="$lt_save_LIBS"
6390 CFLAGS="$lt_save_CFLAGS"
6391 else
6392 echo "cannot find nm_test_func in $nlist" >&5
6394 else
6395 echo "cannot find nm_test_var in $nlist" >&5
6397 else
6398 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6400 else
6401 echo "$progname: failed program was:" >&5
6402 cat conftest.$ac_ext >&5
6404 rm -rf conftest* conftst*
6406 # Do not use the global_symbol_pipe unless it works.
6407 if test "$pipe_works" = yes; then
6408 break
6409 else
6410 lt_cv_sys_global_symbol_pipe=
6412 done
6416 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6417 lt_cv_sys_global_symbol_to_cdecl=
6419 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6421 $as_echo "failed" >&6; }
6422 else
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6424 $as_echo "ok" >&6; }
6449 # Check whether --enable-libtool-lock was given.
6450 if test "${enable_libtool_lock+set}" = set; then :
6451 enableval=$enable_libtool_lock;
6454 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6456 # Some flags need to be propagated to the compiler or linker for good
6457 # libtool support.
6458 case $host in
6459 ia64-*-hpux*)
6460 # Find out which ABI we are using.
6461 echo 'int i;' > conftest.$ac_ext
6462 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6463 (eval $ac_compile) 2>&5
6464 ac_status=$?
6465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6466 test $ac_status = 0; }; then
6467 case `/usr/bin/file conftest.$ac_objext` in
6468 *ELF-32*)
6469 HPUX_IA64_MODE="32"
6471 *ELF-64*)
6472 HPUX_IA64_MODE="64"
6474 esac
6476 rm -rf conftest*
6478 *-*-irix6*)
6479 # Find out which ABI we are using.
6480 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6481 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6482 (eval $ac_compile) 2>&5
6483 ac_status=$?
6484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6485 test $ac_status = 0; }; then
6486 if test "$lt_cv_prog_gnu_ld" = yes; then
6487 case `/usr/bin/file conftest.$ac_objext` in
6488 *32-bit*)
6489 LD="${LD-ld} -melf32bsmip"
6491 *N32*)
6492 LD="${LD-ld} -melf32bmipn32"
6494 *64-bit*)
6495 LD="${LD-ld} -melf64bmip"
6497 esac
6498 else
6499 case `/usr/bin/file conftest.$ac_objext` in
6500 *32-bit*)
6501 LD="${LD-ld} -32"
6503 *N32*)
6504 LD="${LD-ld} -n32"
6506 *64-bit*)
6507 LD="${LD-ld} -64"
6509 esac
6512 rm -rf conftest*
6515 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6516 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6517 # Find out which ABI we are using.
6518 echo 'int i;' > conftest.$ac_ext
6519 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6520 (eval $ac_compile) 2>&5
6521 ac_status=$?
6522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6523 test $ac_status = 0; }; then
6524 case `/usr/bin/file conftest.o` in
6525 *32-bit*)
6526 case $host in
6527 x86_64-*kfreebsd*-gnu)
6528 LD="${LD-ld} -m elf_i386_fbsd"
6530 x86_64-*linux*)
6531 LD="${LD-ld} -m elf_i386"
6533 powerpc64le-*linux*)
6534 LD="${LD-ld} -m elf32lppclinux"
6536 powerpc64-*linux*)
6537 LD="${LD-ld} -m elf32ppclinux"
6539 s390x-*linux*)
6540 LD="${LD-ld} -m elf_s390"
6542 sparc64-*linux*)
6543 LD="${LD-ld} -m elf32_sparc"
6545 esac
6547 *64-bit*)
6548 case $host in
6549 x86_64-*kfreebsd*-gnu)
6550 LD="${LD-ld} -m elf_x86_64_fbsd"
6552 x86_64-*linux*)
6553 LD="${LD-ld} -m elf_x86_64"
6555 powerpcle-*linux*)
6556 LD="${LD-ld} -m elf64lppc"
6558 powerpc-*linux*)
6559 LD="${LD-ld} -m elf64ppc"
6561 s390*-*linux*|s390*-*tpf*)
6562 LD="${LD-ld} -m elf64_s390"
6564 sparc*-*linux*)
6565 LD="${LD-ld} -m elf64_sparc"
6567 esac
6569 esac
6571 rm -rf conftest*
6574 *-*-sco3.2v5*)
6575 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6576 SAVE_CFLAGS="$CFLAGS"
6577 CFLAGS="$CFLAGS -belf"
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6579 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6580 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6581 $as_echo_n "(cached) " >&6
6582 else
6583 ac_ext=c
6584 ac_cpp='$CPP $CPPFLAGS'
6585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6590 /* end confdefs.h. */
6593 main ()
6597 return 0;
6599 _ACEOF
6600 if ac_fn_c_try_link "$LINENO"; then :
6601 lt_cv_cc_needs_belf=yes
6602 else
6603 lt_cv_cc_needs_belf=no
6605 rm -f core conftest.err conftest.$ac_objext \
6606 conftest$ac_exeext conftest.$ac_ext
6607 ac_ext=c
6608 ac_cpp='$CPP $CPPFLAGS'
6609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6615 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6616 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6617 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6618 CFLAGS="$SAVE_CFLAGS"
6621 *-*solaris*)
6622 # Find out which ABI we are using.
6623 echo 'int i;' > conftest.$ac_ext
6624 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6625 (eval $ac_compile) 2>&5
6626 ac_status=$?
6627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6628 test $ac_status = 0; }; then
6629 case `/usr/bin/file conftest.o` in
6630 *64-bit*)
6631 case $lt_cv_prog_gnu_ld in
6632 yes*)
6633 case $host in
6634 i?86-*-solaris* | x86_64-*-solaris2.1[0-9]*)
6635 LD="${LD-ld} -m elf_x86_64"
6637 sparc*-*-solaris*)
6638 LD="${LD-ld} -m elf64_sparc"
6640 esac
6641 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6642 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6643 LD="${LD-ld}_sol2"
6647 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6648 LD="${LD-ld} -64"
6651 esac
6653 esac
6655 rm -rf conftest*
6657 esac
6659 need_locks="$enable_libtool_lock"
6662 case $host_os in
6663 rhapsody* | darwin*)
6664 if test -n "$ac_tool_prefix"; then
6665 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6666 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6668 $as_echo_n "checking for $ac_word... " >&6; }
6669 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6670 $as_echo_n "(cached) " >&6
6671 else
6672 if test -n "$DSYMUTIL"; then
6673 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6674 else
6675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676 for as_dir in $PATH
6678 IFS=$as_save_IFS
6679 test -z "$as_dir" && as_dir=.
6680 for ac_exec_ext in '' $ac_executable_extensions; do
6681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6682 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6684 break 2
6686 done
6687 done
6688 IFS=$as_save_IFS
6692 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6693 if test -n "$DSYMUTIL"; then
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6695 $as_echo "$DSYMUTIL" >&6; }
6696 else
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6698 $as_echo "no" >&6; }
6703 if test -z "$ac_cv_prog_DSYMUTIL"; then
6704 ac_ct_DSYMUTIL=$DSYMUTIL
6705 # Extract the first word of "dsymutil", so it can be a program name with args.
6706 set dummy dsymutil; ac_word=$2
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6708 $as_echo_n "checking for $ac_word... " >&6; }
6709 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6710 $as_echo_n "(cached) " >&6
6711 else
6712 if test -n "$ac_ct_DSYMUTIL"; then
6713 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6714 else
6715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6716 for as_dir in $PATH
6718 IFS=$as_save_IFS
6719 test -z "$as_dir" && as_dir=.
6720 for ac_exec_ext in '' $ac_executable_extensions; do
6721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6722 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6724 break 2
6726 done
6727 done
6728 IFS=$as_save_IFS
6732 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6733 if test -n "$ac_ct_DSYMUTIL"; then
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6735 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6736 else
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6738 $as_echo "no" >&6; }
6741 if test "x$ac_ct_DSYMUTIL" = x; then
6742 DSYMUTIL=":"
6743 else
6744 case $cross_compiling:$ac_tool_warned in
6745 yes:)
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6747 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6748 ac_tool_warned=yes ;;
6749 esac
6750 DSYMUTIL=$ac_ct_DSYMUTIL
6752 else
6753 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6756 if test -n "$ac_tool_prefix"; then
6757 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6758 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6760 $as_echo_n "checking for $ac_word... " >&6; }
6761 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6762 $as_echo_n "(cached) " >&6
6763 else
6764 if test -n "$NMEDIT"; then
6765 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6766 else
6767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6768 for as_dir in $PATH
6770 IFS=$as_save_IFS
6771 test -z "$as_dir" && as_dir=.
6772 for ac_exec_ext in '' $ac_executable_extensions; do
6773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6774 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6776 break 2
6778 done
6779 done
6780 IFS=$as_save_IFS
6784 NMEDIT=$ac_cv_prog_NMEDIT
6785 if test -n "$NMEDIT"; then
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6787 $as_echo "$NMEDIT" >&6; }
6788 else
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6790 $as_echo "no" >&6; }
6795 if test -z "$ac_cv_prog_NMEDIT"; then
6796 ac_ct_NMEDIT=$NMEDIT
6797 # Extract the first word of "nmedit", so it can be a program name with args.
6798 set dummy nmedit; ac_word=$2
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6800 $as_echo_n "checking for $ac_word... " >&6; }
6801 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6802 $as_echo_n "(cached) " >&6
6803 else
6804 if test -n "$ac_ct_NMEDIT"; then
6805 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6806 else
6807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6808 for as_dir in $PATH
6810 IFS=$as_save_IFS
6811 test -z "$as_dir" && as_dir=.
6812 for ac_exec_ext in '' $ac_executable_extensions; do
6813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6814 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6816 break 2
6818 done
6819 done
6820 IFS=$as_save_IFS
6824 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6825 if test -n "$ac_ct_NMEDIT"; then
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6827 $as_echo "$ac_ct_NMEDIT" >&6; }
6828 else
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6830 $as_echo "no" >&6; }
6833 if test "x$ac_ct_NMEDIT" = x; then
6834 NMEDIT=":"
6835 else
6836 case $cross_compiling:$ac_tool_warned in
6837 yes:)
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6839 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6840 ac_tool_warned=yes ;;
6841 esac
6842 NMEDIT=$ac_ct_NMEDIT
6844 else
6845 NMEDIT="$ac_cv_prog_NMEDIT"
6848 if test -n "$ac_tool_prefix"; then
6849 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6850 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6852 $as_echo_n "checking for $ac_word... " >&6; }
6853 if test "${ac_cv_prog_LIPO+set}" = set; then :
6854 $as_echo_n "(cached) " >&6
6855 else
6856 if test -n "$LIPO"; then
6857 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6858 else
6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860 for as_dir in $PATH
6862 IFS=$as_save_IFS
6863 test -z "$as_dir" && as_dir=.
6864 for ac_exec_ext in '' $ac_executable_extensions; do
6865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6866 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6868 break 2
6870 done
6871 done
6872 IFS=$as_save_IFS
6876 LIPO=$ac_cv_prog_LIPO
6877 if test -n "$LIPO"; then
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6879 $as_echo "$LIPO" >&6; }
6880 else
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6882 $as_echo "no" >&6; }
6887 if test -z "$ac_cv_prog_LIPO"; then
6888 ac_ct_LIPO=$LIPO
6889 # Extract the first word of "lipo", so it can be a program name with args.
6890 set dummy lipo; ac_word=$2
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6892 $as_echo_n "checking for $ac_word... " >&6; }
6893 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6894 $as_echo_n "(cached) " >&6
6895 else
6896 if test -n "$ac_ct_LIPO"; then
6897 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6898 else
6899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900 for as_dir in $PATH
6902 IFS=$as_save_IFS
6903 test -z "$as_dir" && as_dir=.
6904 for ac_exec_ext in '' $ac_executable_extensions; do
6905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6906 ac_cv_prog_ac_ct_LIPO="lipo"
6907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6908 break 2
6910 done
6911 done
6912 IFS=$as_save_IFS
6916 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6917 if test -n "$ac_ct_LIPO"; then
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6919 $as_echo "$ac_ct_LIPO" >&6; }
6920 else
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6922 $as_echo "no" >&6; }
6925 if test "x$ac_ct_LIPO" = x; then
6926 LIPO=":"
6927 else
6928 case $cross_compiling:$ac_tool_warned in
6929 yes:)
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6932 ac_tool_warned=yes ;;
6933 esac
6934 LIPO=$ac_ct_LIPO
6936 else
6937 LIPO="$ac_cv_prog_LIPO"
6940 if test -n "$ac_tool_prefix"; then
6941 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6942 set dummy ${ac_tool_prefix}otool; ac_word=$2
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6944 $as_echo_n "checking for $ac_word... " >&6; }
6945 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6946 $as_echo_n "(cached) " >&6
6947 else
6948 if test -n "$OTOOL"; then
6949 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6950 else
6951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6952 for as_dir in $PATH
6954 IFS=$as_save_IFS
6955 test -z "$as_dir" && as_dir=.
6956 for ac_exec_ext in '' $ac_executable_extensions; do
6957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6958 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6960 break 2
6962 done
6963 done
6964 IFS=$as_save_IFS
6968 OTOOL=$ac_cv_prog_OTOOL
6969 if test -n "$OTOOL"; then
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6971 $as_echo "$OTOOL" >&6; }
6972 else
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6974 $as_echo "no" >&6; }
6979 if test -z "$ac_cv_prog_OTOOL"; then
6980 ac_ct_OTOOL=$OTOOL
6981 # Extract the first word of "otool", so it can be a program name with args.
6982 set dummy otool; ac_word=$2
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6984 $as_echo_n "checking for $ac_word... " >&6; }
6985 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6986 $as_echo_n "(cached) " >&6
6987 else
6988 if test -n "$ac_ct_OTOOL"; then
6989 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6990 else
6991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6992 for as_dir in $PATH
6994 IFS=$as_save_IFS
6995 test -z "$as_dir" && as_dir=.
6996 for ac_exec_ext in '' $ac_executable_extensions; do
6997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6998 ac_cv_prog_ac_ct_OTOOL="otool"
6999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7000 break 2
7002 done
7003 done
7004 IFS=$as_save_IFS
7008 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7009 if test -n "$ac_ct_OTOOL"; then
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7011 $as_echo "$ac_ct_OTOOL" >&6; }
7012 else
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7014 $as_echo "no" >&6; }
7017 if test "x$ac_ct_OTOOL" = x; then
7018 OTOOL=":"
7019 else
7020 case $cross_compiling:$ac_tool_warned in
7021 yes:)
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7024 ac_tool_warned=yes ;;
7025 esac
7026 OTOOL=$ac_ct_OTOOL
7028 else
7029 OTOOL="$ac_cv_prog_OTOOL"
7032 if test -n "$ac_tool_prefix"; then
7033 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7034 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7036 $as_echo_n "checking for $ac_word... " >&6; }
7037 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7038 $as_echo_n "(cached) " >&6
7039 else
7040 if test -n "$OTOOL64"; then
7041 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7042 else
7043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044 for as_dir in $PATH
7046 IFS=$as_save_IFS
7047 test -z "$as_dir" && as_dir=.
7048 for ac_exec_ext in '' $ac_executable_extensions; do
7049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7050 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7052 break 2
7054 done
7055 done
7056 IFS=$as_save_IFS
7060 OTOOL64=$ac_cv_prog_OTOOL64
7061 if test -n "$OTOOL64"; then
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7063 $as_echo "$OTOOL64" >&6; }
7064 else
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7066 $as_echo "no" >&6; }
7071 if test -z "$ac_cv_prog_OTOOL64"; then
7072 ac_ct_OTOOL64=$OTOOL64
7073 # Extract the first word of "otool64", so it can be a program name with args.
7074 set dummy otool64; ac_word=$2
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7076 $as_echo_n "checking for $ac_word... " >&6; }
7077 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7078 $as_echo_n "(cached) " >&6
7079 else
7080 if test -n "$ac_ct_OTOOL64"; then
7081 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7082 else
7083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7084 for as_dir in $PATH
7086 IFS=$as_save_IFS
7087 test -z "$as_dir" && as_dir=.
7088 for ac_exec_ext in '' $ac_executable_extensions; do
7089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7090 ac_cv_prog_ac_ct_OTOOL64="otool64"
7091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7092 break 2
7094 done
7095 done
7096 IFS=$as_save_IFS
7100 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7101 if test -n "$ac_ct_OTOOL64"; then
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7103 $as_echo "$ac_ct_OTOOL64" >&6; }
7104 else
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7106 $as_echo "no" >&6; }
7109 if test "x$ac_ct_OTOOL64" = x; then
7110 OTOOL64=":"
7111 else
7112 case $cross_compiling:$ac_tool_warned in
7113 yes:)
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7115 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7116 ac_tool_warned=yes ;;
7117 esac
7118 OTOOL64=$ac_ct_OTOOL64
7120 else
7121 OTOOL64="$ac_cv_prog_OTOOL64"
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7151 $as_echo_n "checking for -single_module linker flag... " >&6; }
7152 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7153 $as_echo_n "(cached) " >&6
7154 else
7155 lt_cv_apple_cc_single_mod=no
7156 if test -z "${LT_MULTI_MODULE}"; then
7157 # By default we will add the -single_module flag. You can override
7158 # by either setting the environment variable LT_MULTI_MODULE
7159 # non-empty at configure time, or by adding -multi_module to the
7160 # link flags.
7161 rm -rf libconftest.dylib*
7162 echo "int foo(void){return 1;}" > conftest.c
7163 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7164 -dynamiclib -Wl,-single_module conftest.c" >&5
7165 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7166 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7167 _lt_result=$?
7168 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7169 lt_cv_apple_cc_single_mod=yes
7170 else
7171 cat conftest.err >&5
7173 rm -rf libconftest.dylib*
7174 rm -f conftest.*
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7178 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7180 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7181 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7182 $as_echo_n "(cached) " >&6
7183 else
7184 lt_cv_ld_exported_symbols_list=no
7185 save_LDFLAGS=$LDFLAGS
7186 echo "_main" > conftest.sym
7187 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7189 /* end confdefs.h. */
7192 main ()
7196 return 0;
7198 _ACEOF
7199 if ac_fn_c_try_link "$LINENO"; then :
7200 lt_cv_ld_exported_symbols_list=yes
7201 else
7202 lt_cv_ld_exported_symbols_list=no
7204 rm -f core conftest.err conftest.$ac_objext \
7205 conftest$ac_exeext conftest.$ac_ext
7206 LDFLAGS="$save_LDFLAGS"
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7210 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7212 $as_echo_n "checking for -force_load linker flag... " >&6; }
7213 if test "${lt_cv_ld_force_load+set}" = set; then :
7214 $as_echo_n "(cached) " >&6
7215 else
7216 lt_cv_ld_force_load=no
7217 cat > conftest.c << _LT_EOF
7218 int forced_loaded() { return 2;}
7219 _LT_EOF
7220 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7221 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7222 echo "$AR cru libconftest.a conftest.o" >&5
7223 $AR cru libconftest.a conftest.o 2>&5
7224 cat > conftest.c << _LT_EOF
7225 int main() { return 0;}
7226 _LT_EOF
7227 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7228 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7229 _lt_result=$?
7230 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7231 lt_cv_ld_force_load=yes
7232 else
7233 cat conftest.err >&5
7235 rm -f conftest.err libconftest.a conftest conftest.c
7236 rm -rf conftest.dSYM
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7240 $as_echo "$lt_cv_ld_force_load" >&6; }
7241 case $host_os in
7242 rhapsody* | darwin1.[012])
7243 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7244 darwin1.*)
7245 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7246 darwin*) # darwin 5.x on
7247 # if running on 10.5 or later, the deployment target defaults
7248 # to the OS version, if on x86, and 10.4, the deployment
7249 # target defaults to 10.4. Don't you love it?
7250 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7251 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7252 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7253 10.[012]*)
7254 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7255 10.*)
7256 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7257 esac
7259 esac
7260 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7261 _lt_dar_single_mod='$single_module'
7263 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7264 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7265 else
7266 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7268 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7269 _lt_dsymutil='~$DSYMUTIL $lib || :'
7270 else
7271 _lt_dsymutil=
7274 esac
7276 ac_ext=c
7277 ac_cpp='$CPP $CPPFLAGS'
7278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7282 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7283 # On Suns, sometimes $CPP names a directory.
7284 if test -n "$CPP" && test -d "$CPP"; then
7285 CPP=
7287 if test -z "$CPP"; then
7288 if test "${ac_cv_prog_CPP+set}" = set; then :
7289 $as_echo_n "(cached) " >&6
7290 else
7291 # Double quotes because CPP needs to be expanded
7292 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7294 ac_preproc_ok=false
7295 for ac_c_preproc_warn_flag in '' yes
7297 # Use a header file that comes with gcc, so configuring glibc
7298 # with a fresh cross-compiler works.
7299 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7300 # <limits.h> exists even on freestanding compilers.
7301 # On the NeXT, cc -E runs the code through the compiler's parser,
7302 # not just through cpp. "Syntax error" is here to catch this case.
7303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7304 /* end confdefs.h. */
7305 #ifdef __STDC__
7306 # include <limits.h>
7307 #else
7308 # include <assert.h>
7309 #endif
7310 Syntax error
7311 _ACEOF
7312 if ac_fn_c_try_cpp "$LINENO"; then :
7314 else
7315 # Broken: fails on valid input.
7316 continue
7318 rm -f conftest.err conftest.$ac_ext
7320 # OK, works on sane cases. Now check whether nonexistent headers
7321 # can be detected and how.
7322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7323 /* end confdefs.h. */
7324 #include <ac_nonexistent.h>
7325 _ACEOF
7326 if ac_fn_c_try_cpp "$LINENO"; then :
7327 # Broken: success on invalid input.
7328 continue
7329 else
7330 # Passes both tests.
7331 ac_preproc_ok=:
7332 break
7334 rm -f conftest.err conftest.$ac_ext
7336 done
7337 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7338 rm -f conftest.err conftest.$ac_ext
7339 if $ac_preproc_ok; then :
7340 break
7343 done
7344 ac_cv_prog_CPP=$CPP
7347 CPP=$ac_cv_prog_CPP
7348 else
7349 ac_cv_prog_CPP=$CPP
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7352 $as_echo "$CPP" >&6; }
7353 ac_preproc_ok=false
7354 for ac_c_preproc_warn_flag in '' yes
7356 # Use a header file that comes with gcc, so configuring glibc
7357 # with a fresh cross-compiler works.
7358 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7359 # <limits.h> exists even on freestanding compilers.
7360 # On the NeXT, cc -E runs the code through the compiler's parser,
7361 # not just through cpp. "Syntax error" is here to catch this case.
7362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7363 /* end confdefs.h. */
7364 #ifdef __STDC__
7365 # include <limits.h>
7366 #else
7367 # include <assert.h>
7368 #endif
7369 Syntax error
7370 _ACEOF
7371 if ac_fn_c_try_cpp "$LINENO"; then :
7373 else
7374 # Broken: fails on valid input.
7375 continue
7377 rm -f conftest.err conftest.$ac_ext
7379 # OK, works on sane cases. Now check whether nonexistent headers
7380 # can be detected and how.
7381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7382 /* end confdefs.h. */
7383 #include <ac_nonexistent.h>
7384 _ACEOF
7385 if ac_fn_c_try_cpp "$LINENO"; then :
7386 # Broken: success on invalid input.
7387 continue
7388 else
7389 # Passes both tests.
7390 ac_preproc_ok=:
7391 break
7393 rm -f conftest.err conftest.$ac_ext
7395 done
7396 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7397 rm -f conftest.err conftest.$ac_ext
7398 if $ac_preproc_ok; then :
7400 else
7401 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7402 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7403 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7404 See \`config.log' for more details." "$LINENO" 5; }
7407 ac_ext=c
7408 ac_cpp='$CPP $CPPFLAGS'
7409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7415 $as_echo_n "checking for ANSI C header files... " >&6; }
7416 if test "${ac_cv_header_stdc+set}" = set; then :
7417 $as_echo_n "(cached) " >&6
7418 else
7419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7420 /* end confdefs.h. */
7421 #include <stdlib.h>
7422 #include <stdarg.h>
7423 #include <string.h>
7424 #include <float.h>
7427 main ()
7431 return 0;
7433 _ACEOF
7434 if ac_fn_c_try_compile "$LINENO"; then :
7435 ac_cv_header_stdc=yes
7436 else
7437 ac_cv_header_stdc=no
7439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7441 if test $ac_cv_header_stdc = yes; then
7442 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7444 /* end confdefs.h. */
7445 #include <string.h>
7447 _ACEOF
7448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7449 $EGREP "memchr" >/dev/null 2>&1; then :
7451 else
7452 ac_cv_header_stdc=no
7454 rm -f conftest*
7458 if test $ac_cv_header_stdc = yes; then
7459 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7461 /* end confdefs.h. */
7462 #include <stdlib.h>
7464 _ACEOF
7465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7466 $EGREP "free" >/dev/null 2>&1; then :
7468 else
7469 ac_cv_header_stdc=no
7471 rm -f conftest*
7475 if test $ac_cv_header_stdc = yes; then
7476 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7477 if test "$cross_compiling" = yes; then :
7479 else
7480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7481 /* end confdefs.h. */
7482 #include <ctype.h>
7483 #include <stdlib.h>
7484 #if ((' ' & 0x0FF) == 0x020)
7485 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7486 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7487 #else
7488 # define ISLOWER(c) \
7489 (('a' <= (c) && (c) <= 'i') \
7490 || ('j' <= (c) && (c) <= 'r') \
7491 || ('s' <= (c) && (c) <= 'z'))
7492 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7493 #endif
7495 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7497 main ()
7499 int i;
7500 for (i = 0; i < 256; i++)
7501 if (XOR (islower (i), ISLOWER (i))
7502 || toupper (i) != TOUPPER (i))
7503 return 2;
7504 return 0;
7506 _ACEOF
7507 if ac_fn_c_try_run "$LINENO"; then :
7509 else
7510 ac_cv_header_stdc=no
7512 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7513 conftest.$ac_objext conftest.beam conftest.$ac_ext
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7519 $as_echo "$ac_cv_header_stdc" >&6; }
7520 if test $ac_cv_header_stdc = yes; then
7522 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7526 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7527 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7528 inttypes.h stdint.h unistd.h
7529 do :
7530 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7531 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7533 eval as_val=\$$as_ac_Header
7534 if test "x$as_val" = x""yes; then :
7535 cat >>confdefs.h <<_ACEOF
7536 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7537 _ACEOF
7541 done
7544 for ac_header in dlfcn.h
7545 do :
7546 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7548 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7549 cat >>confdefs.h <<_ACEOF
7550 #define HAVE_DLFCN_H 1
7551 _ACEOF
7555 done
7557 if test -n "$ac_tool_prefix"; then
7558 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7559 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7561 $as_echo_n "checking for $ac_word... " >&6; }
7562 if test "${ac_cv_prog_GOC+set}" = set; then :
7563 $as_echo_n "(cached) " >&6
7564 else
7565 if test -n "$GOC"; then
7566 ac_cv_prog_GOC="$GOC" # Let the user override the test.
7567 else
7568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7569 for as_dir in $PATH
7571 IFS=$as_save_IFS
7572 test -z "$as_dir" && as_dir=.
7573 for ac_exec_ext in '' $ac_executable_extensions; do
7574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7575 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7577 break 2
7579 done
7580 done
7581 IFS=$as_save_IFS
7585 GOC=$ac_cv_prog_GOC
7586 if test -n "$GOC"; then
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7588 $as_echo "$GOC" >&6; }
7589 else
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7591 $as_echo "no" >&6; }
7596 if test -z "$ac_cv_prog_GOC"; then
7597 ac_ct_GOC=$GOC
7598 # Extract the first word of "gccgo", so it can be a program name with args.
7599 set dummy gccgo; ac_word=$2
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7601 $as_echo_n "checking for $ac_word... " >&6; }
7602 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
7603 $as_echo_n "(cached) " >&6
7604 else
7605 if test -n "$ac_ct_GOC"; then
7606 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7607 else
7608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7609 for as_dir in $PATH
7611 IFS=$as_save_IFS
7612 test -z "$as_dir" && as_dir=.
7613 for ac_exec_ext in '' $ac_executable_extensions; do
7614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7615 ac_cv_prog_ac_ct_GOC="gccgo"
7616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7617 break 2
7619 done
7620 done
7621 IFS=$as_save_IFS
7625 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7626 if test -n "$ac_ct_GOC"; then
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7628 $as_echo "$ac_ct_GOC" >&6; }
7629 else
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7631 $as_echo "no" >&6; }
7634 if test "x$ac_ct_GOC" = x; then
7635 GOC=""
7636 else
7637 case $cross_compiling:$ac_tool_warned in
7638 yes:)
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7641 ac_tool_warned=yes ;;
7642 esac
7643 GOC=$ac_ct_GOC
7645 else
7646 GOC="$ac_cv_prog_GOC"
7654 # Set options
7659 enable_win32_dll=no
7662 # Check whether --enable-shared was given.
7663 if test "${enable_shared+set}" = set; then :
7664 enableval=$enable_shared; p=${PACKAGE-default}
7665 case $enableval in
7666 yes) enable_shared=yes ;;
7667 no) enable_shared=no ;;
7669 enable_shared=no
7670 # Look at the argument we got. We use all the common list separators.
7671 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7672 for pkg in $enableval; do
7673 IFS="$lt_save_ifs"
7674 if test "X$pkg" = "X$p"; then
7675 enable_shared=yes
7677 done
7678 IFS="$lt_save_ifs"
7680 esac
7681 else
7682 enable_shared=yes
7693 # Check whether --enable-static was given.
7694 if test "${enable_static+set}" = set; then :
7695 enableval=$enable_static; p=${PACKAGE-default}
7696 case $enableval in
7697 yes) enable_static=yes ;;
7698 no) enable_static=no ;;
7700 enable_static=no
7701 # Look at the argument we got. We use all the common list separators.
7702 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7703 for pkg in $enableval; do
7704 IFS="$lt_save_ifs"
7705 if test "X$pkg" = "X$p"; then
7706 enable_static=yes
7708 done
7709 IFS="$lt_save_ifs"
7711 esac
7712 else
7713 enable_static=yes
7725 # Check whether --with-pic was given.
7726 if test "${with_pic+set}" = set; then :
7727 withval=$with_pic; pic_mode="$withval"
7728 else
7729 pic_mode=default
7733 test -z "$pic_mode" && pic_mode=default
7741 # Check whether --enable-fast-install was given.
7742 if test "${enable_fast_install+set}" = set; then :
7743 enableval=$enable_fast_install; p=${PACKAGE-default}
7744 case $enableval in
7745 yes) enable_fast_install=yes ;;
7746 no) enable_fast_install=no ;;
7748 enable_fast_install=no
7749 # Look at the argument we got. We use all the common list separators.
7750 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7751 for pkg in $enableval; do
7752 IFS="$lt_save_ifs"
7753 if test "X$pkg" = "X$p"; then
7754 enable_fast_install=yes
7756 done
7757 IFS="$lt_save_ifs"
7759 esac
7760 else
7761 enable_fast_install=yes
7774 # This can be used to rebuild libtool when needed
7775 LIBTOOL_DEPS="$ltmain"
7777 # Always use our own libtool.
7778 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7805 test -z "$LN_S" && LN_S="ln -s"
7820 if test -n "${ZSH_VERSION+set}" ; then
7821 setopt NO_GLOB_SUBST
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7825 $as_echo_n "checking for objdir... " >&6; }
7826 if test "${lt_cv_objdir+set}" = set; then :
7827 $as_echo_n "(cached) " >&6
7828 else
7829 rm -f .libs 2>/dev/null
7830 mkdir .libs 2>/dev/null
7831 if test -d .libs; then
7832 lt_cv_objdir=.libs
7833 else
7834 # MS-DOS does not allow filenames that begin with a dot.
7835 lt_cv_objdir=_libs
7837 rmdir .libs 2>/dev/null
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7840 $as_echo "$lt_cv_objdir" >&6; }
7841 objdir=$lt_cv_objdir
7847 cat >>confdefs.h <<_ACEOF
7848 #define LT_OBJDIR "$lt_cv_objdir/"
7849 _ACEOF
7854 case $host_os in
7855 aix3*)
7856 # AIX sometimes has problems with the GCC collect2 program. For some
7857 # reason, if we set the COLLECT_NAMES environment variable, the problems
7858 # vanish in a puff of smoke.
7859 if test "X${COLLECT_NAMES+set}" != Xset; then
7860 COLLECT_NAMES=
7861 export COLLECT_NAMES
7864 esac
7866 # Global variables:
7867 ofile=libtool
7868 can_build_shared=yes
7870 # All known linkers require a `.a' archive for static linking (except MSVC,
7871 # which needs '.lib').
7872 libext=a
7874 with_gnu_ld="$lt_cv_prog_gnu_ld"
7876 old_CC="$CC"
7877 old_CFLAGS="$CFLAGS"
7879 # Set sane defaults for various variables
7880 test -z "$CC" && CC=cc
7881 test -z "$LTCC" && LTCC=$CC
7882 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7883 test -z "$LD" && LD=ld
7884 test -z "$ac_objext" && ac_objext=o
7886 for cc_temp in $compiler""; do
7887 case $cc_temp in
7888 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7889 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7890 \-*) ;;
7891 *) break;;
7892 esac
7893 done
7894 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7897 # Only perform the check for file, if the check method requires it
7898 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7899 case $deplibs_check_method in
7900 file_magic*)
7901 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7903 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7904 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7905 $as_echo_n "(cached) " >&6
7906 else
7907 case $MAGIC_CMD in
7908 [\\/*] | ?:[\\/]*)
7909 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7912 lt_save_MAGIC_CMD="$MAGIC_CMD"
7913 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7914 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7915 for ac_dir in $ac_dummy; do
7916 IFS="$lt_save_ifs"
7917 test -z "$ac_dir" && ac_dir=.
7918 if test -f $ac_dir/${ac_tool_prefix}file; then
7919 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7920 if test -n "$file_magic_test_file"; then
7921 case $deplibs_check_method in
7922 "file_magic "*)
7923 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7924 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7925 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7926 $EGREP "$file_magic_regex" > /dev/null; then
7928 else
7929 cat <<_LT_EOF 1>&2
7931 *** Warning: the command libtool uses to detect shared libraries,
7932 *** $file_magic_cmd, produces output that libtool cannot recognize.
7933 *** The result is that libtool may fail to recognize shared libraries
7934 *** as such. This will affect the creation of libtool libraries that
7935 *** depend on shared libraries, but programs linked with such libtool
7936 *** libraries will work regardless of this problem. Nevertheless, you
7937 *** may want to report the problem to your system manager and/or to
7938 *** bug-libtool@gnu.org
7940 _LT_EOF
7941 fi ;;
7942 esac
7944 break
7946 done
7947 IFS="$lt_save_ifs"
7948 MAGIC_CMD="$lt_save_MAGIC_CMD"
7950 esac
7953 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7954 if test -n "$MAGIC_CMD"; then
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7956 $as_echo "$MAGIC_CMD" >&6; }
7957 else
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7959 $as_echo "no" >&6; }
7966 if test -z "$lt_cv_path_MAGIC_CMD"; then
7967 if test -n "$ac_tool_prefix"; then
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7969 $as_echo_n "checking for file... " >&6; }
7970 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7971 $as_echo_n "(cached) " >&6
7972 else
7973 case $MAGIC_CMD in
7974 [\\/*] | ?:[\\/]*)
7975 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7978 lt_save_MAGIC_CMD="$MAGIC_CMD"
7979 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7980 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7981 for ac_dir in $ac_dummy; do
7982 IFS="$lt_save_ifs"
7983 test -z "$ac_dir" && ac_dir=.
7984 if test -f $ac_dir/file; then
7985 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7986 if test -n "$file_magic_test_file"; then
7987 case $deplibs_check_method in
7988 "file_magic "*)
7989 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7990 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7991 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7992 $EGREP "$file_magic_regex" > /dev/null; then
7994 else
7995 cat <<_LT_EOF 1>&2
7997 *** Warning: the command libtool uses to detect shared libraries,
7998 *** $file_magic_cmd, produces output that libtool cannot recognize.
7999 *** The result is that libtool may fail to recognize shared libraries
8000 *** as such. This will affect the creation of libtool libraries that
8001 *** depend on shared libraries, but programs linked with such libtool
8002 *** libraries will work regardless of this problem. Nevertheless, you
8003 *** may want to report the problem to your system manager and/or to
8004 *** bug-libtool@gnu.org
8006 _LT_EOF
8007 fi ;;
8008 esac
8010 break
8012 done
8013 IFS="$lt_save_ifs"
8014 MAGIC_CMD="$lt_save_MAGIC_CMD"
8016 esac
8019 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8020 if test -n "$MAGIC_CMD"; then
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8022 $as_echo "$MAGIC_CMD" >&6; }
8023 else
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8025 $as_echo "no" >&6; }
8029 else
8030 MAGIC_CMD=:
8036 esac
8038 # Use C for the default configuration in the libtool script
8040 lt_save_CC="$CC"
8041 ac_ext=c
8042 ac_cpp='$CPP $CPPFLAGS'
8043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8048 # Source file extension for C test sources.
8049 ac_ext=c
8051 # Object file extension for compiled C test sources.
8052 objext=o
8053 objext=$objext
8055 # Code to be used in simple compile tests
8056 lt_simple_compile_test_code="int some_variable = 0;"
8058 # Code to be used in simple link tests
8059 lt_simple_link_test_code='int main(){return(0);}'
8067 # If no C compiler was specified, use CC.
8068 LTCC=${LTCC-"$CC"}
8070 # If no C compiler flags were specified, use CFLAGS.
8071 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8073 # Allow CC to be a program name with arguments.
8074 compiler=$CC
8076 # Save the default compiler, since it gets overwritten when the other
8077 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8078 compiler_DEFAULT=$CC
8080 # save warnings/boilerplate of simple test code
8081 ac_outfile=conftest.$ac_objext
8082 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8083 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8084 _lt_compiler_boilerplate=`cat conftest.err`
8085 $RM conftest*
8087 ac_outfile=conftest.$ac_objext
8088 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8089 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8090 _lt_linker_boilerplate=`cat conftest.err`
8091 $RM -r conftest*
8094 ## CAVEAT EMPTOR:
8095 ## There is no encapsulation within the following macros, do not change
8096 ## the running order or otherwise move them around unless you know exactly
8097 ## what you are doing...
8098 if test -n "$compiler"; then
8100 lt_prog_compiler_no_builtin_flag=
8102 if test "$GCC" = yes; then
8103 case $cc_basename in
8104 nvcc*)
8105 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8107 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8108 esac
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8111 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8112 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8113 $as_echo_n "(cached) " >&6
8114 else
8115 lt_cv_prog_compiler_rtti_exceptions=no
8116 ac_outfile=conftest.$ac_objext
8117 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8118 lt_compiler_flag="-fno-rtti -fno-exceptions"
8119 # Insert the option either (1) after the last *FLAGS variable, or
8120 # (2) before a word containing "conftest.", or (3) at the end.
8121 # Note that $ac_compile itself does not contain backslashes and begins
8122 # with a dollar sign (not a hyphen), so the echo should work correctly.
8123 # The option is referenced via a variable to avoid confusing sed.
8124 lt_compile=`echo "$ac_compile" | $SED \
8125 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8126 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8127 -e 's:$: $lt_compiler_flag:'`
8128 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8129 (eval "$lt_compile" 2>conftest.err)
8130 ac_status=$?
8131 cat conftest.err >&5
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 if (exit $ac_status) && test -s "$ac_outfile"; then
8134 # The compiler can only warn and ignore the option if not recognized
8135 # So say no if there are warnings other than the usual output.
8136 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8137 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8138 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8139 lt_cv_prog_compiler_rtti_exceptions=yes
8142 $RM conftest*
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8146 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8148 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8149 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8150 else
8161 lt_prog_compiler_wl=
8162 lt_prog_compiler_pic=
8163 lt_prog_compiler_static=
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8166 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8168 if test "$GCC" = yes; then
8169 lt_prog_compiler_wl='-Wl,'
8170 lt_prog_compiler_static='-static'
8172 case $host_os in
8173 aix*)
8174 # All AIX code is PIC.
8175 if test "$host_cpu" = ia64; then
8176 # AIX 5 now supports IA64 processor
8177 lt_prog_compiler_static='-Bstatic'
8181 amigaos*)
8182 case $host_cpu in
8183 powerpc)
8184 # see comment about AmigaOS4 .so support
8185 lt_prog_compiler_pic='-fPIC'
8187 m68k)
8188 # FIXME: we need at least 68020 code to build shared libraries, but
8189 # adding the `-m68020' flag to GCC prevents building anything better,
8190 # like `-m68040'.
8191 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8193 esac
8196 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8197 # PIC is the default for these OSes.
8200 mingw* | cygwin* | pw32* | os2* | cegcc*)
8201 # This hack is so that the source file can tell whether it is being
8202 # built for inclusion in a dll (and should export symbols for example).
8203 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8204 # (--disable-auto-import) libraries
8205 lt_prog_compiler_pic='-DDLL_EXPORT'
8208 darwin* | rhapsody*)
8209 # PIC is the default on this platform
8210 # Common symbols not allowed in MH_DYLIB files
8211 lt_prog_compiler_pic='-fno-common'
8214 haiku*)
8215 # PIC is the default for Haiku.
8216 # The "-static" flag exists, but is broken.
8217 lt_prog_compiler_static=
8220 hpux*)
8221 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8222 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8223 # sets the default TLS model and affects inlining.
8224 case $host_cpu in
8225 hppa*64*)
8226 # +Z the default
8229 lt_prog_compiler_pic='-fPIC'
8231 esac
8234 interix[3-9]*)
8235 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8236 # Instead, we relocate shared libraries at runtime.
8239 msdosdjgpp*)
8240 # Just because we use GCC doesn't mean we suddenly get shared libraries
8241 # on systems that don't support them.
8242 lt_prog_compiler_can_build_shared=no
8243 enable_shared=no
8246 *nto* | *qnx*)
8247 # QNX uses GNU C++, but need to define -shared option too, otherwise
8248 # it will coredump.
8249 lt_prog_compiler_pic='-fPIC -shared'
8252 sysv4*MP*)
8253 if test -d /usr/nec; then
8254 lt_prog_compiler_pic=-Kconform_pic
8259 lt_prog_compiler_pic='-fPIC'
8261 esac
8263 case $cc_basename in
8264 nvcc*) # Cuda Compiler Driver 2.2
8265 lt_prog_compiler_wl='-Xlinker '
8266 lt_prog_compiler_pic='-Xcompiler -fPIC'
8268 esac
8269 else
8270 # PORTME Check for flag to pass linker flags through the system compiler.
8271 case $host_os in
8272 aix*)
8273 lt_prog_compiler_wl='-Wl,'
8274 if test "$host_cpu" = ia64; then
8275 # AIX 5 now supports IA64 processor
8276 lt_prog_compiler_static='-Bstatic'
8277 else
8278 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8282 mingw* | cygwin* | pw32* | os2* | cegcc*)
8283 # This hack is so that the source file can tell whether it is being
8284 # built for inclusion in a dll (and should export symbols for example).
8285 lt_prog_compiler_pic='-DDLL_EXPORT'
8288 hpux9* | hpux10* | hpux11*)
8289 lt_prog_compiler_wl='-Wl,'
8290 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8291 # not for PA HP-UX.
8292 case $host_cpu in
8293 hppa*64*|ia64*)
8294 # +Z the default
8297 lt_prog_compiler_pic='+Z'
8299 esac
8300 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8301 lt_prog_compiler_static='${wl}-a ${wl}archive'
8304 irix5* | irix6* | nonstopux*)
8305 lt_prog_compiler_wl='-Wl,'
8306 # PIC (with -KPIC) is the default.
8307 lt_prog_compiler_static='-non_shared'
8310 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8311 case $cc_basename in
8312 # old Intel for x86_64 which still supported -KPIC.
8313 ecc*)
8314 lt_prog_compiler_wl='-Wl,'
8315 lt_prog_compiler_pic='-KPIC'
8316 lt_prog_compiler_static='-static'
8318 # icc used to be incompatible with GCC.
8319 # ICC 10 doesn't accept -KPIC any more.
8320 icc* | ifort*)
8321 lt_prog_compiler_wl='-Wl,'
8322 lt_prog_compiler_pic='-fPIC'
8323 lt_prog_compiler_static='-static'
8325 # Lahey Fortran 8.1.
8326 lf95*)
8327 lt_prog_compiler_wl='-Wl,'
8328 lt_prog_compiler_pic='--shared'
8329 lt_prog_compiler_static='--static'
8331 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8332 # Portland Group compilers (*not* the Pentium gcc compiler,
8333 # which looks to be a dead project)
8334 lt_prog_compiler_wl='-Wl,'
8335 lt_prog_compiler_pic='-fpic'
8336 lt_prog_compiler_static='-Bstatic'
8338 ccc*)
8339 lt_prog_compiler_wl='-Wl,'
8340 # All Alpha code is PIC.
8341 lt_prog_compiler_static='-non_shared'
8343 xl* | bgxl* | bgf* | mpixl*)
8344 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8345 lt_prog_compiler_wl='-Wl,'
8346 lt_prog_compiler_pic='-qpic'
8347 lt_prog_compiler_static='-qstaticlink'
8350 case `$CC -V 2>&1 | sed 5q` in
8351 *Sun\ F* | *Sun*Fortran*)
8352 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8353 lt_prog_compiler_pic='-KPIC'
8354 lt_prog_compiler_static='-Bstatic'
8355 lt_prog_compiler_wl=''
8357 *Sun\ C*)
8358 # Sun C 5.9
8359 lt_prog_compiler_pic='-KPIC'
8360 lt_prog_compiler_static='-Bstatic'
8361 lt_prog_compiler_wl='-Wl,'
8363 esac
8365 esac
8368 newsos6)
8369 lt_prog_compiler_pic='-KPIC'
8370 lt_prog_compiler_static='-Bstatic'
8373 *nto* | *qnx*)
8374 # QNX uses GNU C++, but need to define -shared option too, otherwise
8375 # it will coredump.
8376 lt_prog_compiler_pic='-fPIC -shared'
8379 osf3* | osf4* | osf5*)
8380 lt_prog_compiler_wl='-Wl,'
8381 # All OSF/1 code is PIC.
8382 lt_prog_compiler_static='-non_shared'
8385 rdos*)
8386 lt_prog_compiler_static='-non_shared'
8389 solaris*)
8390 lt_prog_compiler_pic='-KPIC'
8391 lt_prog_compiler_static='-Bstatic'
8392 case $cc_basename in
8393 f77* | f90* | f95*)
8394 lt_prog_compiler_wl='-Qoption ld ';;
8396 lt_prog_compiler_wl='-Wl,';;
8397 esac
8400 sunos4*)
8401 lt_prog_compiler_wl='-Qoption ld '
8402 lt_prog_compiler_pic='-PIC'
8403 lt_prog_compiler_static='-Bstatic'
8406 sysv4 | sysv4.2uw2* | sysv4.3*)
8407 lt_prog_compiler_wl='-Wl,'
8408 lt_prog_compiler_pic='-KPIC'
8409 lt_prog_compiler_static='-Bstatic'
8412 sysv4*MP*)
8413 if test -d /usr/nec ;then
8414 lt_prog_compiler_pic='-Kconform_pic'
8415 lt_prog_compiler_static='-Bstatic'
8419 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8420 lt_prog_compiler_wl='-Wl,'
8421 lt_prog_compiler_pic='-KPIC'
8422 lt_prog_compiler_static='-Bstatic'
8425 unicos*)
8426 lt_prog_compiler_wl='-Wl,'
8427 lt_prog_compiler_can_build_shared=no
8430 uts4*)
8431 lt_prog_compiler_pic='-pic'
8432 lt_prog_compiler_static='-Bstatic'
8436 lt_prog_compiler_can_build_shared=no
8438 esac
8441 case $host_os in
8442 # For platforms which do not support PIC, -DPIC is meaningless:
8443 *djgpp*)
8444 lt_prog_compiler_pic=
8447 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8449 esac
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8451 $as_echo "$lt_prog_compiler_pic" >&6; }
8459 # Check to make sure the PIC flag actually works.
8461 if test -n "$lt_prog_compiler_pic"; then
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8463 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8464 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8465 $as_echo_n "(cached) " >&6
8466 else
8467 lt_cv_prog_compiler_pic_works=no
8468 ac_outfile=conftest.$ac_objext
8469 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8470 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8471 # Insert the option either (1) after the last *FLAGS variable, or
8472 # (2) before a word containing "conftest.", or (3) at the end.
8473 # Note that $ac_compile itself does not contain backslashes and begins
8474 # with a dollar sign (not a hyphen), so the echo should work correctly.
8475 # The option is referenced via a variable to avoid confusing sed.
8476 lt_compile=`echo "$ac_compile" | $SED \
8477 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8478 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8479 -e 's:$: $lt_compiler_flag:'`
8480 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8481 (eval "$lt_compile" 2>conftest.err)
8482 ac_status=$?
8483 cat conftest.err >&5
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 if (exit $ac_status) && test -s "$ac_outfile"; then
8486 # The compiler can only warn and ignore the option if not recognized
8487 # So say no if there are warnings other than the usual output.
8488 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8489 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8490 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8491 lt_cv_prog_compiler_pic_works=yes
8494 $RM conftest*
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8498 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8500 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8501 case $lt_prog_compiler_pic in
8502 "" | " "*) ;;
8503 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8504 esac
8505 else
8506 lt_prog_compiler_pic=
8507 lt_prog_compiler_can_build_shared=no
8518 # Check to make sure the static flag actually works.
8520 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8522 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8523 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8524 $as_echo_n "(cached) " >&6
8525 else
8526 lt_cv_prog_compiler_static_works=no
8527 save_LDFLAGS="$LDFLAGS"
8528 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8529 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8530 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8531 # The linker can only warn and ignore the option if not recognized
8532 # So say no if there are warnings
8533 if test -s conftest.err; then
8534 # Append any errors to the config.log.
8535 cat conftest.err 1>&5
8536 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8537 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8538 if diff conftest.exp conftest.er2 >/dev/null; then
8539 lt_cv_prog_compiler_static_works=yes
8541 else
8542 lt_cv_prog_compiler_static_works=yes
8545 $RM -r conftest*
8546 LDFLAGS="$save_LDFLAGS"
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8550 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8552 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8554 else
8555 lt_prog_compiler_static=
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8565 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8566 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8567 $as_echo_n "(cached) " >&6
8568 else
8569 lt_cv_prog_compiler_c_o=no
8570 $RM -r conftest 2>/dev/null
8571 mkdir conftest
8572 cd conftest
8573 mkdir out
8574 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8576 lt_compiler_flag="-o out/conftest2.$ac_objext"
8577 # Insert the option either (1) after the last *FLAGS variable, or
8578 # (2) before a word containing "conftest.", or (3) at the end.
8579 # Note that $ac_compile itself does not contain backslashes and begins
8580 # with a dollar sign (not a hyphen), so the echo should work correctly.
8581 lt_compile=`echo "$ac_compile" | $SED \
8582 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8583 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8584 -e 's:$: $lt_compiler_flag:'`
8585 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8586 (eval "$lt_compile" 2>out/conftest.err)
8587 ac_status=$?
8588 cat out/conftest.err >&5
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8591 then
8592 # The compiler can only warn and ignore the option if not recognized
8593 # So say no if there are warnings
8594 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8595 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8596 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8597 lt_cv_prog_compiler_c_o=yes
8600 chmod u+w . 2>&5
8601 $RM conftest*
8602 # SGI C++ compiler will create directory out/ii_files/ for
8603 # template instantiation
8604 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8605 $RM out/* && rmdir out
8606 cd ..
8607 $RM -r conftest
8608 $RM conftest*
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8612 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8620 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8621 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8622 $as_echo_n "(cached) " >&6
8623 else
8624 lt_cv_prog_compiler_c_o=no
8625 $RM -r conftest 2>/dev/null
8626 mkdir conftest
8627 cd conftest
8628 mkdir out
8629 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8631 lt_compiler_flag="-o out/conftest2.$ac_objext"
8632 # Insert the option either (1) after the last *FLAGS variable, or
8633 # (2) before a word containing "conftest.", or (3) at the end.
8634 # Note that $ac_compile itself does not contain backslashes and begins
8635 # with a dollar sign (not a hyphen), so the echo should work correctly.
8636 lt_compile=`echo "$ac_compile" | $SED \
8637 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8638 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8639 -e 's:$: $lt_compiler_flag:'`
8640 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8641 (eval "$lt_compile" 2>out/conftest.err)
8642 ac_status=$?
8643 cat out/conftest.err >&5
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8646 then
8647 # The compiler can only warn and ignore the option if not recognized
8648 # So say no if there are warnings
8649 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8650 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8651 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8652 lt_cv_prog_compiler_c_o=yes
8655 chmod u+w . 2>&5
8656 $RM conftest*
8657 # SGI C++ compiler will create directory out/ii_files/ for
8658 # template instantiation
8659 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8660 $RM out/* && rmdir out
8661 cd ..
8662 $RM -r conftest
8663 $RM conftest*
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8667 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8672 hard_links="nottested"
8673 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8674 # do not overwrite the value of need_locks provided by the user
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8676 $as_echo_n "checking if we can lock with hard links... " >&6; }
8677 hard_links=yes
8678 $RM conftest*
8679 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8680 touch conftest.a
8681 ln conftest.a conftest.b 2>&5 || hard_links=no
8682 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8684 $as_echo "$hard_links" >&6; }
8685 if test "$hard_links" = no; then
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8687 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8688 need_locks=warn
8690 else
8691 need_locks=no
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8700 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8702 runpath_var=
8703 allow_undefined_flag=
8704 always_export_symbols=no
8705 archive_cmds=
8706 archive_expsym_cmds=
8707 compiler_needs_object=no
8708 enable_shared_with_static_runtimes=no
8709 export_dynamic_flag_spec=
8710 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8711 hardcode_automatic=no
8712 hardcode_direct=no
8713 hardcode_direct_absolute=no
8714 hardcode_libdir_flag_spec=
8715 hardcode_libdir_flag_spec_ld=
8716 hardcode_libdir_separator=
8717 hardcode_minus_L=no
8718 hardcode_shlibpath_var=unsupported
8719 inherit_rpath=no
8720 link_all_deplibs=unknown
8721 module_cmds=
8722 module_expsym_cmds=
8723 old_archive_from_new_cmds=
8724 old_archive_from_expsyms_cmds=
8725 thread_safe_flag_spec=
8726 whole_archive_flag_spec=
8727 # include_expsyms should be a list of space-separated symbols to be *always*
8728 # included in the symbol list
8729 include_expsyms=
8730 # exclude_expsyms can be an extended regexp of symbols to exclude
8731 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8732 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8733 # as well as any symbol that contains `d'.
8734 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8735 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8736 # platforms (ab)use it in PIC code, but their linkers get confused if
8737 # the symbol is explicitly referenced. Since portable code cannot
8738 # rely on this symbol name, it's probably fine to never include it in
8739 # preloaded symbol tables.
8740 # Exclude shared library initialization/finalization symbols.
8741 extract_expsyms_cmds=
8743 case $host_os in
8744 cygwin* | mingw* | pw32* | cegcc*)
8745 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8746 # When not using gcc, we currently assume that we are using
8747 # Microsoft Visual C++.
8748 if test "$GCC" != yes; then
8749 with_gnu_ld=no
8752 interix*)
8753 # we just hope/assume this is gcc and not c89 (= MSVC++)
8754 with_gnu_ld=yes
8756 openbsd*)
8757 with_gnu_ld=no
8759 esac
8761 ld_shlibs=yes
8763 # On some targets, GNU ld is compatible enough with the native linker
8764 # that we're better off using the native interface for both.
8765 lt_use_gnu_ld_interface=no
8766 if test "$with_gnu_ld" = yes; then
8767 case $host_os in
8768 aix*)
8769 # The AIX port of GNU ld has always aspired to compatibility
8770 # with the native linker. However, as the warning in the GNU ld
8771 # block says, versions before 2.19.5* couldn't really create working
8772 # shared libraries, regardless of the interface used.
8773 case `$LD -v 2>&1` in
8774 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8775 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8776 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8778 lt_use_gnu_ld_interface=yes
8780 esac
8783 lt_use_gnu_ld_interface=yes
8785 esac
8788 if test "$lt_use_gnu_ld_interface" = yes; then
8789 # If archive_cmds runs LD, not CC, wlarc should be empty
8790 wlarc='${wl}'
8792 # Set some defaults for GNU ld with shared library support. These
8793 # are reset later if shared libraries are not supported. Putting them
8794 # here allows them to be overridden if necessary.
8795 runpath_var=LD_RUN_PATH
8796 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8797 export_dynamic_flag_spec='${wl}--export-dynamic'
8798 # ancient GNU ld didn't support --whole-archive et. al.
8799 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8800 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8801 else
8802 whole_archive_flag_spec=
8804 supports_anon_versioning=no
8805 case `$LD -v 2>&1` in
8806 *GNU\ gold*) supports_anon_versioning=yes ;;
8807 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8808 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8809 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8810 *\ 2.11.*) ;; # other 2.11 versions
8811 *) supports_anon_versioning=yes ;;
8812 esac
8814 # See if GNU ld supports shared libraries.
8815 case $host_os in
8816 aix[3-9]*)
8817 # On AIX/PPC, the GNU linker is very broken
8818 if test "$host_cpu" != ia64; then
8819 ld_shlibs=no
8820 cat <<_LT_EOF 1>&2
8822 *** Warning: the GNU linker, at least up to release 2.19, is reported
8823 *** to be unable to reliably create shared libraries on AIX.
8824 *** Therefore, libtool is disabling shared libraries support. If you
8825 *** really care for shared libraries, you may want to install binutils
8826 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8827 *** You will then need to restart the configuration process.
8829 _LT_EOF
8833 amigaos*)
8834 case $host_cpu in
8835 powerpc)
8836 # see comment about AmigaOS4 .so support
8837 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8838 archive_expsym_cmds=''
8840 m68k)
8841 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8842 hardcode_libdir_flag_spec='-L$libdir'
8843 hardcode_minus_L=yes
8845 esac
8848 beos*)
8849 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8850 allow_undefined_flag=unsupported
8851 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8852 # support --undefined. This deserves some investigation. FIXME
8853 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8854 else
8855 ld_shlibs=no
8859 cygwin* | mingw* | pw32* | cegcc*)
8860 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8861 # as there is no search path for DLLs.
8862 hardcode_libdir_flag_spec='-L$libdir'
8863 export_dynamic_flag_spec='${wl}--export-all-symbols'
8864 allow_undefined_flag=unsupported
8865 always_export_symbols=no
8866 enable_shared_with_static_runtimes=yes
8867 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8869 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8870 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8871 # If the export-symbols file already is a .def file (1st line
8872 # is EXPORTS), use it as is; otherwise, prepend...
8873 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8874 cp $export_symbols $output_objdir/$soname.def;
8875 else
8876 echo EXPORTS > $output_objdir/$soname.def;
8877 cat $export_symbols >> $output_objdir/$soname.def;
8879 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8880 else
8881 ld_shlibs=no
8885 haiku*)
8886 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8887 link_all_deplibs=yes
8890 interix[3-9]*)
8891 hardcode_direct=no
8892 hardcode_shlibpath_var=no
8893 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8894 export_dynamic_flag_spec='${wl}-E'
8895 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8896 # Instead, shared libraries are loaded at an image base (0x10000000 by
8897 # default) and relocated if they conflict, which is a slow very memory
8898 # consuming and fragmenting process. To avoid this, we pick a random,
8899 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8900 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8901 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8902 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8905 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8906 tmp_diet=no
8907 if test "$host_os" = linux-dietlibc; then
8908 case $cc_basename in
8909 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8910 esac
8912 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8913 && test "$tmp_diet" = no
8914 then
8915 tmp_addflag=
8916 tmp_sharedflag='-shared'
8917 case $cc_basename,$host_cpu in
8918 pgcc*) # Portland Group C compiler
8919 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8920 tmp_addflag=' $pic_flag'
8922 pgf77* | pgf90* | pgf95* | pgfortran*)
8923 # Portland Group f77 and f90 compilers
8924 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8925 tmp_addflag=' $pic_flag -Mnomain' ;;
8926 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8927 tmp_addflag=' -i_dynamic' ;;
8928 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8929 tmp_addflag=' -i_dynamic -nofor_main' ;;
8930 ifc* | ifort*) # Intel Fortran compiler
8931 tmp_addflag=' -nofor_main' ;;
8932 lf95*) # Lahey Fortran 8.1
8933 whole_archive_flag_spec=
8934 tmp_sharedflag='--shared' ;;
8935 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8936 tmp_sharedflag='-qmkshrobj'
8937 tmp_addflag= ;;
8938 nvcc*) # Cuda Compiler Driver 2.2
8939 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8940 compiler_needs_object=yes
8942 esac
8943 case `$CC -V 2>&1 | sed 5q` in
8944 *Sun\ C*) # Sun C 5.9
8945 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8946 compiler_needs_object=yes
8947 tmp_sharedflag='-G' ;;
8948 *Sun\ F*) # Sun Fortran 8.3
8949 tmp_sharedflag='-G' ;;
8950 esac
8951 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8953 if test "x$supports_anon_versioning" = xyes; then
8954 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8955 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8956 echo "local: *; };" >> $output_objdir/$libname.ver~
8957 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8960 case $cc_basename in
8961 xlf* | bgf* | bgxlf* | mpixlf*)
8962 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8963 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8964 hardcode_libdir_flag_spec=
8965 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8966 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8967 if test "x$supports_anon_versioning" = xyes; then
8968 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8969 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8970 echo "local: *; };" >> $output_objdir/$libname.ver~
8971 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8974 esac
8975 else
8976 ld_shlibs=no
8980 netbsd*)
8981 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8982 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8983 wlarc=
8984 else
8985 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8986 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8990 solaris*)
8991 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8992 ld_shlibs=no
8993 cat <<_LT_EOF 1>&2
8995 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8996 *** create shared libraries on Solaris systems. Therefore, libtool
8997 *** is disabling shared libraries support. We urge you to upgrade GNU
8998 *** binutils to release 2.9.1 or newer. Another option is to modify
8999 *** your PATH or compiler configuration so that the native linker is
9000 *** used, and then restart.
9002 _LT_EOF
9003 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9004 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9005 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9006 else
9007 ld_shlibs=no
9011 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9012 case `$LD -v 2>&1` in
9013 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9014 ld_shlibs=no
9015 cat <<_LT_EOF 1>&2
9017 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9018 *** reliably create shared libraries on SCO systems. Therefore, libtool
9019 *** is disabling shared libraries support. We urge you to upgrade GNU
9020 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9021 *** your PATH or compiler configuration so that the native linker is
9022 *** used, and then restart.
9024 _LT_EOF
9027 # For security reasons, it is highly recommended that you always
9028 # use absolute paths for naming shared libraries, and exclude the
9029 # DT_RUNPATH tag from executables and libraries. But doing so
9030 # requires that you compile everything twice, which is a pain.
9031 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9032 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9033 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9034 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9035 else
9036 ld_shlibs=no
9039 esac
9042 sunos4*)
9043 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9044 wlarc=
9045 hardcode_direct=yes
9046 hardcode_shlibpath_var=no
9050 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9051 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9052 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9053 else
9054 ld_shlibs=no
9057 esac
9059 if test "$ld_shlibs" = no; then
9060 runpath_var=
9061 hardcode_libdir_flag_spec=
9062 export_dynamic_flag_spec=
9063 whole_archive_flag_spec=
9065 else
9066 # PORTME fill in a description of your system's linker (not GNU ld)
9067 case $host_os in
9068 aix3*)
9069 allow_undefined_flag=unsupported
9070 always_export_symbols=yes
9071 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9072 # Note: this linker hardcodes the directories in LIBPATH if there
9073 # are no directories specified by -L.
9074 hardcode_minus_L=yes
9075 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9076 # Neither direct hardcoding nor static linking is supported with a
9077 # broken collect2.
9078 hardcode_direct=unsupported
9082 aix[4-9]*)
9083 if test "$host_cpu" = ia64; then
9084 # On IA64, the linker does run time linking by default, so we don't
9085 # have to do anything special.
9086 aix_use_runtimelinking=no
9087 exp_sym_flag='-Bexport'
9088 no_entry_flag=""
9089 else
9090 # If we're using GNU nm, then we don't want the "-C" option.
9091 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9092 # Also, AIX nm treats weak defined symbols like other global
9093 # defined symbols, whereas GNU nm marks them as "W".
9094 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9095 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9096 else
9097 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9099 aix_use_runtimelinking=no
9101 # Test if we are trying to use run time linking or normal
9102 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9103 # need to do runtime linking.
9104 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9105 for ld_flag in $LDFLAGS; do
9106 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9107 aix_use_runtimelinking=yes
9108 break
9110 done
9112 esac
9114 exp_sym_flag='-bexport'
9115 no_entry_flag='-bnoentry'
9118 # When large executables or shared objects are built, AIX ld can
9119 # have problems creating the table of contents. If linking a library
9120 # or program results in "error TOC overflow" add -mminimal-toc to
9121 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9122 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9124 archive_cmds=''
9125 hardcode_direct=yes
9126 hardcode_direct_absolute=yes
9127 hardcode_libdir_separator=':'
9128 link_all_deplibs=yes
9129 file_list_spec='${wl}-f,'
9131 if test "$GCC" = yes; then
9132 case $host_os in aix4.[012]|aix4.[012].*)
9133 # We only want to do this on AIX 4.2 and lower, the check
9134 # below for broken collect2 doesn't work under 4.3+
9135 collect2name=`${CC} -print-prog-name=collect2`
9136 if test -f "$collect2name" &&
9137 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9138 then
9139 # We have reworked collect2
9141 else
9142 # We have old collect2
9143 hardcode_direct=unsupported
9144 # It fails to find uninstalled libraries when the uninstalled
9145 # path is not listed in the libpath. Setting hardcode_minus_L
9146 # to unsupported forces relinking
9147 hardcode_minus_L=yes
9148 hardcode_libdir_flag_spec='-L$libdir'
9149 hardcode_libdir_separator=
9152 esac
9153 shared_flag='-shared'
9154 if test "$aix_use_runtimelinking" = yes; then
9155 shared_flag="$shared_flag "'${wl}-G'
9157 else
9158 # not using gcc
9159 if test "$host_cpu" = ia64; then
9160 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9161 # chokes on -Wl,-G. The following line is correct:
9162 shared_flag='-G'
9163 else
9164 if test "$aix_use_runtimelinking" = yes; then
9165 shared_flag='${wl}-G'
9166 else
9167 shared_flag='${wl}-bM:SRE'
9172 export_dynamic_flag_spec='${wl}-bexpall'
9173 # It seems that -bexpall does not export symbols beginning with
9174 # underscore (_), so it is better to generate a list of symbols to export.
9175 always_export_symbols=yes
9176 if test "$aix_use_runtimelinking" = yes; then
9177 # Warning - without using the other runtime loading flags (-brtl),
9178 # -berok will link without error, but may produce a broken library.
9179 allow_undefined_flag='-berok'
9180 # Determine the default libpath from the value encoded in an
9181 # empty executable.
9182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9183 /* end confdefs.h. */
9186 main ()
9190 return 0;
9192 _ACEOF
9193 if ac_fn_c_try_link "$LINENO"; then :
9195 lt_aix_libpath_sed='
9196 /Import File Strings/,/^$/ {
9197 /^0/ {
9198 s/^0 *\(.*\)$/\1/
9202 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9203 # Check for a 64-bit object if we didn't find anything.
9204 if test -z "$aix_libpath"; then
9205 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9208 rm -f core conftest.err conftest.$ac_objext \
9209 conftest$ac_exeext conftest.$ac_ext
9210 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9212 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9213 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9214 else
9215 if test "$host_cpu" = ia64; then
9216 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9217 allow_undefined_flag="-z nodefs"
9218 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9219 else
9220 # Determine the default libpath from the value encoded in an
9221 # empty executable.
9222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9223 /* end confdefs.h. */
9226 main ()
9230 return 0;
9232 _ACEOF
9233 if ac_fn_c_try_link "$LINENO"; then :
9235 lt_aix_libpath_sed='
9236 /Import File Strings/,/^$/ {
9237 /^0/ {
9238 s/^0 *\(.*\)$/\1/
9242 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9243 # Check for a 64-bit object if we didn't find anything.
9244 if test -z "$aix_libpath"; then
9245 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9248 rm -f core conftest.err conftest.$ac_objext \
9249 conftest$ac_exeext conftest.$ac_ext
9250 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9252 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9253 # Warning - without using the other run time loading flags,
9254 # -berok will link without error, but may produce a broken library.
9255 no_undefined_flag=' ${wl}-bernotok'
9256 allow_undefined_flag=' ${wl}-berok'
9257 if test "$with_gnu_ld" = yes; then
9258 # We only use this code for GNU lds that support --whole-archive.
9259 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9260 else
9261 # Exported symbols can be pulled into shared objects from archives
9262 whole_archive_flag_spec='$convenience'
9264 archive_cmds_need_lc=yes
9265 # This is similar to how AIX traditionally builds its shared libraries.
9266 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9271 amigaos*)
9272 case $host_cpu in
9273 powerpc)
9274 # see comment about AmigaOS4 .so support
9275 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9276 archive_expsym_cmds=''
9278 m68k)
9279 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9280 hardcode_libdir_flag_spec='-L$libdir'
9281 hardcode_minus_L=yes
9283 esac
9286 bsdi[45]*)
9287 export_dynamic_flag_spec=-rdynamic
9290 cygwin* | mingw* | pw32* | cegcc*)
9291 # When not using gcc, we currently assume that we are using
9292 # Microsoft Visual C++.
9293 # hardcode_libdir_flag_spec is actually meaningless, as there is
9294 # no search path for DLLs.
9295 hardcode_libdir_flag_spec=' '
9296 allow_undefined_flag=unsupported
9297 # Tell ltmain to make .lib files, not .a files.
9298 libext=lib
9299 # Tell ltmain to make .dll files, not .so files.
9300 shrext_cmds=".dll"
9301 # FIXME: Setting linknames here is a bad hack.
9302 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9303 # The linker will automatically build a .lib file if we build a DLL.
9304 old_archive_from_new_cmds='true'
9305 # FIXME: Should let the user specify the lib program.
9306 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9307 fix_srcfile_path='`cygpath -w "$srcfile"`'
9308 enable_shared_with_static_runtimes=yes
9311 darwin* | rhapsody*)
9314 archive_cmds_need_lc=no
9315 hardcode_direct=no
9316 hardcode_automatic=yes
9317 hardcode_shlibpath_var=unsupported
9318 if test "$lt_cv_ld_force_load" = "yes"; then
9319 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9320 else
9321 whole_archive_flag_spec=''
9323 link_all_deplibs=yes
9324 allow_undefined_flag="$_lt_dar_allow_undefined"
9325 case $cc_basename in
9326 ifort*) _lt_dar_can_shared=yes ;;
9327 *) _lt_dar_can_shared=$GCC ;;
9328 esac
9329 if test "$_lt_dar_can_shared" = "yes"; then
9330 output_verbose_link_cmd=func_echo_all
9331 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9332 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9333 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9334 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9336 else
9337 ld_shlibs=no
9342 dgux*)
9343 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9344 hardcode_libdir_flag_spec='-L$libdir'
9345 hardcode_shlibpath_var=no
9348 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9349 # support. Future versions do this automatically, but an explicit c++rt0.o
9350 # does not break anything, and helps significantly (at the cost of a little
9351 # extra space).
9352 freebsd2.2*)
9353 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9354 hardcode_libdir_flag_spec='-R$libdir'
9355 hardcode_direct=yes
9356 hardcode_shlibpath_var=no
9359 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9360 freebsd2*)
9361 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9362 hardcode_direct=yes
9363 hardcode_minus_L=yes
9364 hardcode_shlibpath_var=no
9367 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9368 freebsd* | dragonfly*)
9369 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9370 hardcode_libdir_flag_spec='-R$libdir'
9371 hardcode_direct=yes
9372 hardcode_shlibpath_var=no
9375 hpux9*)
9376 if test "$GCC" = yes; then
9377 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9378 else
9379 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9381 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9382 hardcode_libdir_separator=:
9383 hardcode_direct=yes
9385 # hardcode_minus_L: Not really in the search PATH,
9386 # but as the default location of the library.
9387 hardcode_minus_L=yes
9388 export_dynamic_flag_spec='${wl}-E'
9391 hpux10*)
9392 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9393 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9394 else
9395 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9397 if test "$with_gnu_ld" = no; then
9398 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9399 hardcode_libdir_flag_spec_ld='+b $libdir'
9400 hardcode_libdir_separator=:
9401 hardcode_direct=yes
9402 hardcode_direct_absolute=yes
9403 export_dynamic_flag_spec='${wl}-E'
9404 # hardcode_minus_L: Not really in the search PATH,
9405 # but as the default location of the library.
9406 hardcode_minus_L=yes
9410 hpux11*)
9411 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9412 case $host_cpu in
9413 hppa*64*)
9414 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9416 ia64*)
9417 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9420 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9422 esac
9423 else
9424 case $host_cpu in
9425 hppa*64*)
9426 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9428 ia64*)
9429 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9433 # Older versions of the 11.00 compiler do not understand -b yet
9434 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9436 $as_echo_n "checking if $CC understands -b... " >&6; }
9437 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9438 $as_echo_n "(cached) " >&6
9439 else
9440 lt_cv_prog_compiler__b=no
9441 save_LDFLAGS="$LDFLAGS"
9442 LDFLAGS="$LDFLAGS -b"
9443 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9444 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9445 # The linker can only warn and ignore the option if not recognized
9446 # So say no if there are warnings
9447 if test -s conftest.err; then
9448 # Append any errors to the config.log.
9449 cat conftest.err 1>&5
9450 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9451 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9452 if diff conftest.exp conftest.er2 >/dev/null; then
9453 lt_cv_prog_compiler__b=yes
9455 else
9456 lt_cv_prog_compiler__b=yes
9459 $RM -r conftest*
9460 LDFLAGS="$save_LDFLAGS"
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9464 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9466 if test x"$lt_cv_prog_compiler__b" = xyes; then
9467 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9468 else
9469 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9473 esac
9475 if test "$with_gnu_ld" = no; then
9476 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9477 hardcode_libdir_separator=:
9479 case $host_cpu in
9480 hppa*64*|ia64*)
9481 hardcode_direct=no
9482 hardcode_shlibpath_var=no
9485 hardcode_direct=yes
9486 hardcode_direct_absolute=yes
9487 export_dynamic_flag_spec='${wl}-E'
9489 # hardcode_minus_L: Not really in the search PATH,
9490 # but as the default location of the library.
9491 hardcode_minus_L=yes
9493 esac
9497 irix5* | irix6* | nonstopux*)
9498 if test "$GCC" = yes; then
9499 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9500 # Try to use the -exported_symbol ld option, if it does not
9501 # work, assume that -exports_file does not work either and
9502 # implicitly export all symbols.
9503 save_LDFLAGS="$LDFLAGS"
9504 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9506 /* end confdefs.h. */
9507 int foo(void) {}
9508 _ACEOF
9509 if ac_fn_c_try_link "$LINENO"; then :
9510 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9513 rm -f core conftest.err conftest.$ac_objext \
9514 conftest$ac_exeext conftest.$ac_ext
9515 LDFLAGS="$save_LDFLAGS"
9516 else
9517 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9518 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9520 archive_cmds_need_lc='no'
9521 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9522 hardcode_libdir_separator=:
9523 inherit_rpath=yes
9524 link_all_deplibs=yes
9527 netbsd*)
9528 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9529 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9530 else
9531 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9533 hardcode_libdir_flag_spec='-R$libdir'
9534 hardcode_direct=yes
9535 hardcode_shlibpath_var=no
9538 newsos6)
9539 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9540 hardcode_direct=yes
9541 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9542 hardcode_libdir_separator=:
9543 hardcode_shlibpath_var=no
9546 *nto* | *qnx*)
9549 openbsd*)
9550 if test -f /usr/libexec/ld.so; then
9551 hardcode_direct=yes
9552 hardcode_shlibpath_var=no
9553 hardcode_direct_absolute=yes
9554 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9555 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9556 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9557 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9558 export_dynamic_flag_spec='${wl}-E'
9559 else
9560 case $host_os in
9561 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9562 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9563 hardcode_libdir_flag_spec='-R$libdir'
9566 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9567 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9569 esac
9571 else
9572 ld_shlibs=no
9576 os2*)
9577 hardcode_libdir_flag_spec='-L$libdir'
9578 hardcode_minus_L=yes
9579 allow_undefined_flag=unsupported
9580 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9581 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9584 osf3*)
9585 if test "$GCC" = yes; then
9586 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9587 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9588 else
9589 allow_undefined_flag=' -expect_unresolved \*'
9590 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9592 archive_cmds_need_lc='no'
9593 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9594 hardcode_libdir_separator=:
9597 osf4* | osf5*) # as osf3* with the addition of -msym flag
9598 if test "$GCC" = yes; then
9599 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9600 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9601 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9602 else
9603 allow_undefined_flag=' -expect_unresolved \*'
9604 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9605 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9606 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9608 # Both c and cxx compiler support -rpath directly
9609 hardcode_libdir_flag_spec='-rpath $libdir'
9611 archive_cmds_need_lc='no'
9612 hardcode_libdir_separator=:
9615 solaris*)
9616 no_undefined_flag=' -z defs'
9617 if test "$GCC" = yes; then
9618 wlarc='${wl}'
9619 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9620 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9621 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9622 else
9623 case `$CC -V 2>&1` in
9624 *"Compilers 5.0"*)
9625 wlarc=''
9626 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9627 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9628 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9631 wlarc='${wl}'
9632 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9633 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9634 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9636 esac
9638 hardcode_libdir_flag_spec='-R$libdir'
9639 hardcode_shlibpath_var=no
9640 case $host_os in
9641 solaris2.[0-5] | solaris2.[0-5].*) ;;
9643 # The compiler driver will combine and reorder linker options,
9644 # but understands `-z linker_flag'. GCC discards it without `$wl',
9645 # but is careful enough not to reorder.
9646 # Supported since Solaris 2.6 (maybe 2.5.1?)
9647 if test "$GCC" = yes; then
9648 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9649 else
9650 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9653 esac
9654 link_all_deplibs=yes
9657 sunos4*)
9658 if test "x$host_vendor" = xsequent; then
9659 # Use $CC to link under sequent, because it throws in some extra .o
9660 # files that make .init and .fini sections work.
9661 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9662 else
9663 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9665 hardcode_libdir_flag_spec='-L$libdir'
9666 hardcode_direct=yes
9667 hardcode_minus_L=yes
9668 hardcode_shlibpath_var=no
9671 sysv4)
9672 case $host_vendor in
9673 sni)
9674 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9675 hardcode_direct=yes # is this really true???
9677 siemens)
9678 ## LD is ld it makes a PLAMLIB
9679 ## CC just makes a GrossModule.
9680 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9681 reload_cmds='$CC -r -o $output$reload_objs'
9682 hardcode_direct=no
9684 motorola)
9685 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9686 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9688 esac
9689 runpath_var='LD_RUN_PATH'
9690 hardcode_shlibpath_var=no
9693 sysv4.3*)
9694 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9695 hardcode_shlibpath_var=no
9696 export_dynamic_flag_spec='-Bexport'
9699 sysv4*MP*)
9700 if test -d /usr/nec; then
9701 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9702 hardcode_shlibpath_var=no
9703 runpath_var=LD_RUN_PATH
9704 hardcode_runpath_var=yes
9705 ld_shlibs=yes
9709 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9710 no_undefined_flag='${wl}-z,text'
9711 archive_cmds_need_lc=no
9712 hardcode_shlibpath_var=no
9713 runpath_var='LD_RUN_PATH'
9715 if test "$GCC" = yes; then
9716 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9717 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9718 else
9719 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9720 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9724 sysv5* | sco3.2v5* | sco5v6*)
9725 # Note: We can NOT use -z defs as we might desire, because we do not
9726 # link with -lc, and that would cause any symbols used from libc to
9727 # always be unresolved, which means just about no library would
9728 # ever link correctly. If we're not using GNU ld we use -z text
9729 # though, which does catch some bad symbols but isn't as heavy-handed
9730 # as -z defs.
9731 no_undefined_flag='${wl}-z,text'
9732 allow_undefined_flag='${wl}-z,nodefs'
9733 archive_cmds_need_lc=no
9734 hardcode_shlibpath_var=no
9735 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9736 hardcode_libdir_separator=':'
9737 link_all_deplibs=yes
9738 export_dynamic_flag_spec='${wl}-Bexport'
9739 runpath_var='LD_RUN_PATH'
9741 if test "$GCC" = yes; then
9742 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9743 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9744 else
9745 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9746 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9750 uts4*)
9751 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9752 hardcode_libdir_flag_spec='-L$libdir'
9753 hardcode_shlibpath_var=no
9757 ld_shlibs=no
9759 esac
9761 if test x$host_vendor = xsni; then
9762 case $host in
9763 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9764 export_dynamic_flag_spec='${wl}-Blargedynsym'
9766 esac
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9771 $as_echo "$ld_shlibs" >&6; }
9772 test "$ld_shlibs" = no && can_build_shared=no
9774 with_gnu_ld=$with_gnu_ld
9791 # Do we need to explicitly link libc?
9793 case "x$archive_cmds_need_lc" in
9794 x|xyes)
9795 # Assume -lc should be added
9796 archive_cmds_need_lc=yes
9798 if test "$enable_shared" = yes && test "$GCC" = yes; then
9799 case $archive_cmds in
9800 *'~'*)
9801 # FIXME: we may have to deal with multi-command sequences.
9803 '$CC '*)
9804 # Test whether the compiler implicitly links with -lc since on some
9805 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9806 # to ld, don't add -lc before -lgcc.
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9808 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9809 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9810 $as_echo_n "(cached) " >&6
9811 else
9812 $RM conftest*
9813 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9815 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9816 (eval $ac_compile) 2>&5
9817 ac_status=$?
9818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9819 test $ac_status = 0; } 2>conftest.err; then
9820 soname=conftest
9821 lib=conftest
9822 libobjs=conftest.$ac_objext
9823 deplibs=
9824 wl=$lt_prog_compiler_wl
9825 pic_flag=$lt_prog_compiler_pic
9826 compiler_flags=-v
9827 linker_flags=-v
9828 verstring=
9829 output_objdir=.
9830 libname=conftest
9831 lt_save_allow_undefined_flag=$allow_undefined_flag
9832 allow_undefined_flag=
9833 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9834 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9835 ac_status=$?
9836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9837 test $ac_status = 0; }
9838 then
9839 lt_cv_archive_cmds_need_lc=no
9840 else
9841 lt_cv_archive_cmds_need_lc=yes
9843 allow_undefined_flag=$lt_save_allow_undefined_flag
9844 else
9845 cat conftest.err 1>&5
9847 $RM conftest*
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9851 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9852 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9854 esac
9857 esac
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10016 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10018 if test "$GCC" = yes; then
10019 case $host_os in
10020 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10021 *) lt_awk_arg="/^libraries:/" ;;
10022 esac
10023 case $host_os in
10024 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10025 *) lt_sed_strip_eq="s,=/,/,g" ;;
10026 esac
10027 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10028 case $lt_search_path_spec in
10029 *\;*)
10030 # if the path contains ";" then we assume it to be the separator
10031 # otherwise default to the standard path separator (i.e. ":") - it is
10032 # assumed that no part of a normal pathname contains ";" but that should
10033 # okay in the real world where ";" in dirpaths is itself problematic.
10034 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10037 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10039 esac
10040 # Ok, now we have the path, separated by spaces, we can step through it
10041 # and add multilib dir if necessary.
10042 lt_tmp_lt_search_path_spec=
10043 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10044 for lt_sys_path in $lt_search_path_spec; do
10045 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10046 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10047 else
10048 test -d "$lt_sys_path" && \
10049 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10051 done
10052 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10053 BEGIN {RS=" "; FS="/|\n";} {
10054 lt_foo="";
10055 lt_count=0;
10056 for (lt_i = NF; lt_i > 0; lt_i--) {
10057 if ($lt_i != "" && $lt_i != ".") {
10058 if ($lt_i == "..") {
10059 lt_count++;
10060 } else {
10061 if (lt_count == 0) {
10062 lt_foo="/" $lt_i lt_foo;
10063 } else {
10064 lt_count--;
10069 if (lt_foo != "") { lt_freq[lt_foo]++; }
10070 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10072 # AWK program above erroneously prepends '/' to C:/dos/paths
10073 # for these hosts.
10074 case $host_os in
10075 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10076 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10077 esac
10078 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10079 else
10080 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10082 library_names_spec=
10083 libname_spec='lib$name'
10084 soname_spec=
10085 shrext_cmds=".so"
10086 postinstall_cmds=
10087 postuninstall_cmds=
10088 finish_cmds=
10089 finish_eval=
10090 shlibpath_var=
10091 shlibpath_overrides_runpath=unknown
10092 version_type=none
10093 dynamic_linker="$host_os ld.so"
10094 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10095 need_lib_prefix=unknown
10096 hardcode_into_libs=no
10098 # when you set need_version to no, make sure it does not cause -set_version
10099 # flags to be left without arguments
10100 need_version=unknown
10102 case $host_os in
10103 aix3*)
10104 version_type=linux
10105 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10106 shlibpath_var=LIBPATH
10108 # AIX 3 has no versioning support, so we append a major version to the name.
10109 soname_spec='${libname}${release}${shared_ext}$major'
10112 aix[4-9]*)
10113 version_type=linux
10114 need_lib_prefix=no
10115 need_version=no
10116 hardcode_into_libs=yes
10117 if test "$host_cpu" = ia64; then
10118 # AIX 5 supports IA64
10119 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10120 shlibpath_var=LD_LIBRARY_PATH
10121 else
10122 # With GCC up to 2.95.x, collect2 would create an import file
10123 # for dependence libraries. The import file would start with
10124 # the line `#! .'. This would cause the generated library to
10125 # depend on `.', always an invalid library. This was fixed in
10126 # development snapshots of GCC prior to 3.0.
10127 case $host_os in
10128 aix4 | aix4.[01] | aix4.[01].*)
10129 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10130 echo ' yes '
10131 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10133 else
10134 can_build_shared=no
10137 esac
10138 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10139 # soname into executable. Probably we can add versioning support to
10140 # collect2, so additional links can be useful in future.
10141 if test "$aix_use_runtimelinking" = yes; then
10142 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10143 # instead of lib<name>.a to let people know that these are not
10144 # typical AIX shared libraries.
10145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10146 else
10147 # We preserve .a as extension for shared libraries through AIX4.2
10148 # and later when we are not doing run time linking.
10149 library_names_spec='${libname}${release}.a $libname.a'
10150 soname_spec='${libname}${release}${shared_ext}$major'
10152 shlibpath_var=LIBPATH
10156 amigaos*)
10157 case $host_cpu in
10158 powerpc)
10159 # Since July 2007 AmigaOS4 officially supports .so libraries.
10160 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10163 m68k)
10164 library_names_spec='$libname.ixlibrary $libname.a'
10165 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10166 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10168 esac
10171 beos*)
10172 library_names_spec='${libname}${shared_ext}'
10173 dynamic_linker="$host_os ld.so"
10174 shlibpath_var=LIBRARY_PATH
10177 bsdi[45]*)
10178 version_type=linux
10179 need_version=no
10180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10181 soname_spec='${libname}${release}${shared_ext}$major'
10182 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10183 shlibpath_var=LD_LIBRARY_PATH
10184 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10185 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10186 # the default ld.so.conf also contains /usr/contrib/lib and
10187 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10188 # libtool to hard-code these into programs
10191 cygwin* | mingw* | pw32* | cegcc*)
10192 version_type=windows
10193 shrext_cmds=".dll"
10194 need_version=no
10195 need_lib_prefix=no
10197 case $GCC,$host_os in
10198 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10199 library_names_spec='$libname.dll.a'
10200 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10201 postinstall_cmds='base_file=`basename \${file}`~
10202 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10203 dldir=$destdir/`dirname \$dlpath`~
10204 test -d \$dldir || mkdir -p \$dldir~
10205 $install_prog $dir/$dlname \$dldir/$dlname~
10206 chmod a+x \$dldir/$dlname~
10207 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10208 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10210 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10211 dlpath=$dir/\$dldll~
10212 $RM \$dlpath'
10213 shlibpath_overrides_runpath=yes
10215 case $host_os in
10216 cygwin*)
10217 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10218 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10220 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10222 mingw* | cegcc*)
10223 # MinGW DLLs use traditional 'lib' prefix
10224 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10226 pw32*)
10227 # pw32 DLLs use 'pw' prefix rather than 'lib'
10228 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10230 esac
10234 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10236 esac
10237 dynamic_linker='Win32 ld.exe'
10238 # FIXME: first we should search . and the directory the executable is in
10239 shlibpath_var=PATH
10242 darwin* | rhapsody*)
10243 dynamic_linker="$host_os dyld"
10244 version_type=darwin
10245 need_lib_prefix=no
10246 need_version=no
10247 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10248 soname_spec='${libname}${release}${major}$shared_ext'
10249 shlibpath_overrides_runpath=yes
10250 shlibpath_var=DYLD_LIBRARY_PATH
10251 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10253 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10254 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10257 dgux*)
10258 version_type=linux
10259 need_lib_prefix=no
10260 need_version=no
10261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10262 soname_spec='${libname}${release}${shared_ext}$major'
10263 shlibpath_var=LD_LIBRARY_PATH
10266 freebsd* | dragonfly*)
10267 # DragonFly does not have aout. When/if they implement a new
10268 # versioning mechanism, adjust this.
10269 if test -x /usr/bin/objformat; then
10270 objformat=`/usr/bin/objformat`
10271 else
10272 case $host_os in
10273 freebsd[123]*) objformat=aout ;;
10274 *) objformat=elf ;;
10275 esac
10277 version_type=freebsd-$objformat
10278 case $version_type in
10279 freebsd-elf*)
10280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10281 need_version=no
10282 need_lib_prefix=no
10284 freebsd-*)
10285 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10286 need_version=yes
10288 esac
10289 shlibpath_var=LD_LIBRARY_PATH
10290 case $host_os in
10291 freebsd2*)
10292 shlibpath_overrides_runpath=yes
10294 freebsd3.[01]* | freebsdelf3.[01]*)
10295 shlibpath_overrides_runpath=yes
10296 hardcode_into_libs=yes
10298 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10299 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10300 shlibpath_overrides_runpath=no
10301 hardcode_into_libs=yes
10303 *) # from 4.6 on, and DragonFly
10304 shlibpath_overrides_runpath=yes
10305 hardcode_into_libs=yes
10307 esac
10310 gnu*)
10311 version_type=linux
10312 need_lib_prefix=no
10313 need_version=no
10314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10315 soname_spec='${libname}${release}${shared_ext}$major'
10316 shlibpath_var=LD_LIBRARY_PATH
10317 hardcode_into_libs=yes
10320 haiku*)
10321 version_type=linux
10322 need_lib_prefix=no
10323 need_version=no
10324 dynamic_linker="$host_os runtime_loader"
10325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10326 soname_spec='${libname}${release}${shared_ext}$major'
10327 shlibpath_var=LIBRARY_PATH
10328 shlibpath_overrides_runpath=yes
10329 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10330 hardcode_into_libs=yes
10333 hpux9* | hpux10* | hpux11*)
10334 # Give a soname corresponding to the major version so that dld.sl refuses to
10335 # link against other versions.
10336 version_type=sunos
10337 need_lib_prefix=no
10338 need_version=no
10339 case $host_cpu in
10340 ia64*)
10341 shrext_cmds='.so'
10342 hardcode_into_libs=yes
10343 dynamic_linker="$host_os dld.so"
10344 shlibpath_var=LD_LIBRARY_PATH
10345 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10347 soname_spec='${libname}${release}${shared_ext}$major'
10348 if test "X$HPUX_IA64_MODE" = X32; then
10349 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10350 else
10351 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10353 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10355 hppa*64*)
10356 shrext_cmds='.sl'
10357 hardcode_into_libs=yes
10358 dynamic_linker="$host_os dld.sl"
10359 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10360 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10362 soname_spec='${libname}${release}${shared_ext}$major'
10363 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10364 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10367 shrext_cmds='.sl'
10368 dynamic_linker="$host_os dld.sl"
10369 shlibpath_var=SHLIB_PATH
10370 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10372 soname_spec='${libname}${release}${shared_ext}$major'
10374 esac
10375 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10376 postinstall_cmds='chmod 555 $lib'
10377 # or fails outright, so override atomically:
10378 install_override_mode=555
10381 interix[3-9]*)
10382 version_type=linux
10383 need_lib_prefix=no
10384 need_version=no
10385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10386 soname_spec='${libname}${release}${shared_ext}$major'
10387 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10388 shlibpath_var=LD_LIBRARY_PATH
10389 shlibpath_overrides_runpath=no
10390 hardcode_into_libs=yes
10393 irix5* | irix6* | nonstopux*)
10394 case $host_os in
10395 nonstopux*) version_type=nonstopux ;;
10397 if test "$lt_cv_prog_gnu_ld" = yes; then
10398 version_type=linux
10399 else
10400 version_type=irix
10401 fi ;;
10402 esac
10403 need_lib_prefix=no
10404 need_version=no
10405 soname_spec='${libname}${release}${shared_ext}$major'
10406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10407 case $host_os in
10408 irix5* | nonstopux*)
10409 libsuff= shlibsuff=
10412 case $LD in # libtool.m4 will add one of these switches to LD
10413 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10414 libsuff= shlibsuff= libmagic=32-bit;;
10415 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10416 libsuff=32 shlibsuff=N32 libmagic=N32;;
10417 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10418 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10419 *) libsuff= shlibsuff= libmagic=never-match;;
10420 esac
10422 esac
10423 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10424 shlibpath_overrides_runpath=no
10425 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10426 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10427 hardcode_into_libs=yes
10430 # No shared lib support for Linux oldld, aout, or coff.
10431 linux*oldld* | linux*aout* | linux*coff*)
10432 dynamic_linker=no
10435 # This must be Linux ELF.
10436 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10437 version_type=linux
10438 need_lib_prefix=no
10439 need_version=no
10440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10441 soname_spec='${libname}${release}${shared_ext}$major'
10442 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10443 shlibpath_var=LD_LIBRARY_PATH
10444 shlibpath_overrides_runpath=no
10446 # Some binutils ld are patched to set DT_RUNPATH
10447 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10448 $as_echo_n "(cached) " >&6
10449 else
10450 lt_cv_shlibpath_overrides_runpath=no
10451 save_LDFLAGS=$LDFLAGS
10452 save_libdir=$libdir
10453 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10454 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10456 /* end confdefs.h. */
10459 main ()
10463 return 0;
10465 _ACEOF
10466 if ac_fn_c_try_link "$LINENO"; then :
10467 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10468 lt_cv_shlibpath_overrides_runpath=yes
10471 rm -f core conftest.err conftest.$ac_objext \
10472 conftest$ac_exeext conftest.$ac_ext
10473 LDFLAGS=$save_LDFLAGS
10474 libdir=$save_libdir
10478 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10480 # This implies no fast_install, which is unacceptable.
10481 # Some rework will be needed to allow for fast_install
10482 # before this can be enabled.
10483 hardcode_into_libs=yes
10485 # Append ld.so.conf contents to the search path
10486 if test -f /etc/ld.so.conf; then
10487 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10488 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10491 # We used to test for /lib/ld.so.1 and disable shared libraries on
10492 # powerpc, because MkLinux only supported shared libraries with the
10493 # GNU dynamic linker. Since this was broken with cross compilers,
10494 # most powerpc-linux boxes support dynamic linking these days and
10495 # people can always --disable-shared, the test was removed, and we
10496 # assume the GNU/Linux dynamic linker is in use.
10497 dynamic_linker='GNU/Linux ld.so'
10500 netbsd*)
10501 version_type=sunos
10502 need_lib_prefix=no
10503 need_version=no
10504 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10506 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10507 dynamic_linker='NetBSD (a.out) ld.so'
10508 else
10509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10510 soname_spec='${libname}${release}${shared_ext}$major'
10511 dynamic_linker='NetBSD ld.elf_so'
10513 shlibpath_var=LD_LIBRARY_PATH
10514 shlibpath_overrides_runpath=yes
10515 hardcode_into_libs=yes
10518 newsos6)
10519 version_type=linux
10520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10521 shlibpath_var=LD_LIBRARY_PATH
10522 shlibpath_overrides_runpath=yes
10525 *nto* | *qnx*)
10526 version_type=qnx
10527 need_lib_prefix=no
10528 need_version=no
10529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10530 soname_spec='${libname}${release}${shared_ext}$major'
10531 shlibpath_var=LD_LIBRARY_PATH
10532 shlibpath_overrides_runpath=no
10533 hardcode_into_libs=yes
10534 dynamic_linker='ldqnx.so'
10537 openbsd*)
10538 version_type=sunos
10539 sys_lib_dlsearch_path_spec="/usr/lib"
10540 need_lib_prefix=no
10541 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10542 case $host_os in
10543 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10544 *) need_version=no ;;
10545 esac
10546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10547 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10548 shlibpath_var=LD_LIBRARY_PATH
10549 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10550 case $host_os in
10551 openbsd2.[89] | openbsd2.[89].*)
10552 shlibpath_overrides_runpath=no
10555 shlibpath_overrides_runpath=yes
10557 esac
10558 else
10559 shlibpath_overrides_runpath=yes
10563 os2*)
10564 libname_spec='$name'
10565 shrext_cmds=".dll"
10566 need_lib_prefix=no
10567 library_names_spec='$libname${shared_ext} $libname.a'
10568 dynamic_linker='OS/2 ld.exe'
10569 shlibpath_var=LIBPATH
10572 osf3* | osf4* | osf5*)
10573 version_type=osf
10574 need_lib_prefix=no
10575 need_version=no
10576 soname_spec='${libname}${release}${shared_ext}$major'
10577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10578 shlibpath_var=LD_LIBRARY_PATH
10579 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10580 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10583 rdos*)
10584 dynamic_linker=no
10587 solaris*)
10588 version_type=linux
10589 need_lib_prefix=no
10590 need_version=no
10591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10592 soname_spec='${libname}${release}${shared_ext}$major'
10593 shlibpath_var=LD_LIBRARY_PATH
10594 shlibpath_overrides_runpath=yes
10595 hardcode_into_libs=yes
10596 # ldd complains unless libraries are executable
10597 postinstall_cmds='chmod +x $lib'
10600 sunos4*)
10601 version_type=sunos
10602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10603 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10604 shlibpath_var=LD_LIBRARY_PATH
10605 shlibpath_overrides_runpath=yes
10606 if test "$with_gnu_ld" = yes; then
10607 need_lib_prefix=no
10609 need_version=yes
10612 sysv4 | sysv4.3*)
10613 version_type=linux
10614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10615 soname_spec='${libname}${release}${shared_ext}$major'
10616 shlibpath_var=LD_LIBRARY_PATH
10617 case $host_vendor in
10618 sni)
10619 shlibpath_overrides_runpath=no
10620 need_lib_prefix=no
10621 runpath_var=LD_RUN_PATH
10623 siemens)
10624 need_lib_prefix=no
10626 motorola)
10627 need_lib_prefix=no
10628 need_version=no
10629 shlibpath_overrides_runpath=no
10630 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10632 esac
10635 sysv4*MP*)
10636 if test -d /usr/nec ;then
10637 version_type=linux
10638 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10639 soname_spec='$libname${shared_ext}.$major'
10640 shlibpath_var=LD_LIBRARY_PATH
10644 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10645 version_type=freebsd-elf
10646 need_lib_prefix=no
10647 need_version=no
10648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10649 soname_spec='${libname}${release}${shared_ext}$major'
10650 shlibpath_var=LD_LIBRARY_PATH
10651 shlibpath_overrides_runpath=yes
10652 hardcode_into_libs=yes
10653 if test "$with_gnu_ld" = yes; then
10654 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10655 else
10656 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10657 case $host_os in
10658 sco3.2v5*)
10659 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10661 esac
10663 sys_lib_dlsearch_path_spec='/usr/lib'
10666 tpf*)
10667 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10668 version_type=linux
10669 need_lib_prefix=no
10670 need_version=no
10671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10672 shlibpath_var=LD_LIBRARY_PATH
10673 shlibpath_overrides_runpath=no
10674 hardcode_into_libs=yes
10677 uts4*)
10678 version_type=linux
10679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10680 soname_spec='${libname}${release}${shared_ext}$major'
10681 shlibpath_var=LD_LIBRARY_PATH
10685 dynamic_linker=no
10687 esac
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10689 $as_echo "$dynamic_linker" >&6; }
10690 test "$dynamic_linker" = no && can_build_shared=no
10692 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10693 if test "$GCC" = yes; then
10694 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10697 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10698 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10700 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10701 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10796 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10797 hardcode_action=
10798 if test -n "$hardcode_libdir_flag_spec" ||
10799 test -n "$runpath_var" ||
10800 test "X$hardcode_automatic" = "Xyes" ; then
10802 # We can hardcode non-existent directories.
10803 if test "$hardcode_direct" != no &&
10804 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10805 # have to relink, otherwise we might link with an installed library
10806 # when we should be linking with a yet-to-be-installed one
10807 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10808 test "$hardcode_minus_L" != no; then
10809 # Linking always hardcodes the temporary library directory.
10810 hardcode_action=relink
10811 else
10812 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10813 hardcode_action=immediate
10815 else
10816 # We cannot hardcode anything, or else we can only hardcode existing
10817 # directories.
10818 hardcode_action=unsupported
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10821 $as_echo "$hardcode_action" >&6; }
10823 if test "$hardcode_action" = relink ||
10824 test "$inherit_rpath" = yes; then
10825 # Fast installation is not supported
10826 enable_fast_install=no
10827 elif test "$shlibpath_overrides_runpath" = yes ||
10828 test "$enable_shared" = no; then
10829 # Fast installation is not necessary
10830 enable_fast_install=needless
10838 if test "x$enable_dlopen" != xyes; then
10839 enable_dlopen=unknown
10840 enable_dlopen_self=unknown
10841 enable_dlopen_self_static=unknown
10842 else
10843 lt_cv_dlopen=no
10844 lt_cv_dlopen_libs=
10846 case $host_os in
10847 beos*)
10848 lt_cv_dlopen="load_add_on"
10849 lt_cv_dlopen_libs=
10850 lt_cv_dlopen_self=yes
10853 mingw* | pw32* | cegcc*)
10854 lt_cv_dlopen="LoadLibrary"
10855 lt_cv_dlopen_libs=
10858 cygwin*)
10859 lt_cv_dlopen="dlopen"
10860 lt_cv_dlopen_libs=
10863 darwin*)
10864 # if libdl is installed we need to link against it
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10866 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10867 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10868 $as_echo_n "(cached) " >&6
10869 else
10870 ac_check_lib_save_LIBS=$LIBS
10871 LIBS="-ldl $LIBS"
10872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10873 /* end confdefs.h. */
10875 /* Override any GCC internal prototype to avoid an error.
10876 Use char because int might match the return type of a GCC
10877 builtin and then its argument prototype would still apply. */
10878 #ifdef __cplusplus
10879 extern "C"
10880 #endif
10881 char dlopen ();
10883 main ()
10885 return dlopen ();
10887 return 0;
10889 _ACEOF
10890 if ac_fn_c_try_link "$LINENO"; then :
10891 ac_cv_lib_dl_dlopen=yes
10892 else
10893 ac_cv_lib_dl_dlopen=no
10895 rm -f core conftest.err conftest.$ac_objext \
10896 conftest$ac_exeext conftest.$ac_ext
10897 LIBS=$ac_check_lib_save_LIBS
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10900 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10901 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10902 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10903 else
10905 lt_cv_dlopen="dyld"
10906 lt_cv_dlopen_libs=
10907 lt_cv_dlopen_self=yes
10914 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10915 if test "x$ac_cv_func_shl_load" = x""yes; then :
10916 lt_cv_dlopen="shl_load"
10917 else
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10919 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10920 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10921 $as_echo_n "(cached) " >&6
10922 else
10923 ac_check_lib_save_LIBS=$LIBS
10924 LIBS="-ldld $LIBS"
10925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10926 /* end confdefs.h. */
10928 /* Override any GCC internal prototype to avoid an error.
10929 Use char because int might match the return type of a GCC
10930 builtin and then its argument prototype would still apply. */
10931 #ifdef __cplusplus
10932 extern "C"
10933 #endif
10934 char shl_load ();
10936 main ()
10938 return shl_load ();
10940 return 0;
10942 _ACEOF
10943 if ac_fn_c_try_link "$LINENO"; then :
10944 ac_cv_lib_dld_shl_load=yes
10945 else
10946 ac_cv_lib_dld_shl_load=no
10948 rm -f core conftest.err conftest.$ac_objext \
10949 conftest$ac_exeext conftest.$ac_ext
10950 LIBS=$ac_check_lib_save_LIBS
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10953 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10954 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10955 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10956 else
10957 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10958 if test "x$ac_cv_func_dlopen" = x""yes; then :
10959 lt_cv_dlopen="dlopen"
10960 else
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10962 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10963 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10964 $as_echo_n "(cached) " >&6
10965 else
10966 ac_check_lib_save_LIBS=$LIBS
10967 LIBS="-ldl $LIBS"
10968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10969 /* end confdefs.h. */
10971 /* Override any GCC internal prototype to avoid an error.
10972 Use char because int might match the return type of a GCC
10973 builtin and then its argument prototype would still apply. */
10974 #ifdef __cplusplus
10975 extern "C"
10976 #endif
10977 char dlopen ();
10979 main ()
10981 return dlopen ();
10983 return 0;
10985 _ACEOF
10986 if ac_fn_c_try_link "$LINENO"; then :
10987 ac_cv_lib_dl_dlopen=yes
10988 else
10989 ac_cv_lib_dl_dlopen=no
10991 rm -f core conftest.err conftest.$ac_objext \
10992 conftest$ac_exeext conftest.$ac_ext
10993 LIBS=$ac_check_lib_save_LIBS
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10996 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10997 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10998 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10999 else
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11001 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11002 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11003 $as_echo_n "(cached) " >&6
11004 else
11005 ac_check_lib_save_LIBS=$LIBS
11006 LIBS="-lsvld $LIBS"
11007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11008 /* end confdefs.h. */
11010 /* Override any GCC internal prototype to avoid an error.
11011 Use char because int might match the return type of a GCC
11012 builtin and then its argument prototype would still apply. */
11013 #ifdef __cplusplus
11014 extern "C"
11015 #endif
11016 char dlopen ();
11018 main ()
11020 return dlopen ();
11022 return 0;
11024 _ACEOF
11025 if ac_fn_c_try_link "$LINENO"; then :
11026 ac_cv_lib_svld_dlopen=yes
11027 else
11028 ac_cv_lib_svld_dlopen=no
11030 rm -f core conftest.err conftest.$ac_objext \
11031 conftest$ac_exeext conftest.$ac_ext
11032 LIBS=$ac_check_lib_save_LIBS
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11035 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11036 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11037 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11038 else
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11040 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11041 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11042 $as_echo_n "(cached) " >&6
11043 else
11044 ac_check_lib_save_LIBS=$LIBS
11045 LIBS="-ldld $LIBS"
11046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11047 /* end confdefs.h. */
11049 /* Override any GCC internal prototype to avoid an error.
11050 Use char because int might match the return type of a GCC
11051 builtin and then its argument prototype would still apply. */
11052 #ifdef __cplusplus
11053 extern "C"
11054 #endif
11055 char dld_link ();
11057 main ()
11059 return dld_link ();
11061 return 0;
11063 _ACEOF
11064 if ac_fn_c_try_link "$LINENO"; then :
11065 ac_cv_lib_dld_dld_link=yes
11066 else
11067 ac_cv_lib_dld_dld_link=no
11069 rm -f core conftest.err conftest.$ac_objext \
11070 conftest$ac_exeext conftest.$ac_ext
11071 LIBS=$ac_check_lib_save_LIBS
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11074 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11075 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11076 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11095 esac
11097 if test "x$lt_cv_dlopen" != xno; then
11098 enable_dlopen=yes
11099 else
11100 enable_dlopen=no
11103 case $lt_cv_dlopen in
11104 dlopen)
11105 save_CPPFLAGS="$CPPFLAGS"
11106 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11108 save_LDFLAGS="$LDFLAGS"
11109 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11111 save_LIBS="$LIBS"
11112 LIBS="$lt_cv_dlopen_libs $LIBS"
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11115 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11116 if test "${lt_cv_dlopen_self+set}" = set; then :
11117 $as_echo_n "(cached) " >&6
11118 else
11119 if test "$cross_compiling" = yes; then :
11120 lt_cv_dlopen_self=cross
11121 else
11122 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11123 lt_status=$lt_dlunknown
11124 cat > conftest.$ac_ext <<_LT_EOF
11125 #line 11125 "configure"
11126 #include "confdefs.h"
11128 #if HAVE_DLFCN_H
11129 #include <dlfcn.h>
11130 #endif
11132 #include <stdio.h>
11134 #ifdef RTLD_GLOBAL
11135 # define LT_DLGLOBAL RTLD_GLOBAL
11136 #else
11137 # ifdef DL_GLOBAL
11138 # define LT_DLGLOBAL DL_GLOBAL
11139 # else
11140 # define LT_DLGLOBAL 0
11141 # endif
11142 #endif
11144 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11145 find out it does not work in some platform. */
11146 #ifndef LT_DLLAZY_OR_NOW
11147 # ifdef RTLD_LAZY
11148 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11149 # else
11150 # ifdef DL_LAZY
11151 # define LT_DLLAZY_OR_NOW DL_LAZY
11152 # else
11153 # ifdef RTLD_NOW
11154 # define LT_DLLAZY_OR_NOW RTLD_NOW
11155 # else
11156 # ifdef DL_NOW
11157 # define LT_DLLAZY_OR_NOW DL_NOW
11158 # else
11159 # define LT_DLLAZY_OR_NOW 0
11160 # endif
11161 # endif
11162 # endif
11163 # endif
11164 #endif
11166 /* When -fvisbility=hidden is used, assume the code has been annotated
11167 correspondingly for the symbols needed. */
11168 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11169 void fnord () __attribute__((visibility("default")));
11170 #endif
11172 void fnord () { int i=42; }
11173 int main ()
11175 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11176 int status = $lt_dlunknown;
11178 if (self)
11180 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11181 else
11183 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11184 else puts (dlerror ());
11186 /* dlclose (self); */
11188 else
11189 puts (dlerror ());
11191 return status;
11193 _LT_EOF
11194 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11195 (eval $ac_link) 2>&5
11196 ac_status=$?
11197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11198 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11199 (./conftest; exit; ) >&5 2>/dev/null
11200 lt_status=$?
11201 case x$lt_status in
11202 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11203 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11204 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11205 esac
11206 else :
11207 # compilation failed
11208 lt_cv_dlopen_self=no
11211 rm -fr conftest*
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11216 $as_echo "$lt_cv_dlopen_self" >&6; }
11218 if test "x$lt_cv_dlopen_self" = xyes; then
11219 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11221 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11222 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11223 $as_echo_n "(cached) " >&6
11224 else
11225 if test "$cross_compiling" = yes; then :
11226 lt_cv_dlopen_self_static=cross
11227 else
11228 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11229 lt_status=$lt_dlunknown
11230 cat > conftest.$ac_ext <<_LT_EOF
11231 #line 11231 "configure"
11232 #include "confdefs.h"
11234 #if HAVE_DLFCN_H
11235 #include <dlfcn.h>
11236 #endif
11238 #include <stdio.h>
11240 #ifdef RTLD_GLOBAL
11241 # define LT_DLGLOBAL RTLD_GLOBAL
11242 #else
11243 # ifdef DL_GLOBAL
11244 # define LT_DLGLOBAL DL_GLOBAL
11245 # else
11246 # define LT_DLGLOBAL 0
11247 # endif
11248 #endif
11250 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11251 find out it does not work in some platform. */
11252 #ifndef LT_DLLAZY_OR_NOW
11253 # ifdef RTLD_LAZY
11254 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11255 # else
11256 # ifdef DL_LAZY
11257 # define LT_DLLAZY_OR_NOW DL_LAZY
11258 # else
11259 # ifdef RTLD_NOW
11260 # define LT_DLLAZY_OR_NOW RTLD_NOW
11261 # else
11262 # ifdef DL_NOW
11263 # define LT_DLLAZY_OR_NOW DL_NOW
11264 # else
11265 # define LT_DLLAZY_OR_NOW 0
11266 # endif
11267 # endif
11268 # endif
11269 # endif
11270 #endif
11272 /* When -fvisbility=hidden is used, assume the code has been annotated
11273 correspondingly for the symbols needed. */
11274 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11275 void fnord () __attribute__((visibility("default")));
11276 #endif
11278 void fnord () { int i=42; }
11279 int main ()
11281 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11282 int status = $lt_dlunknown;
11284 if (self)
11286 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11287 else
11289 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11290 else puts (dlerror ());
11292 /* dlclose (self); */
11294 else
11295 puts (dlerror ());
11297 return status;
11299 _LT_EOF
11300 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11301 (eval $ac_link) 2>&5
11302 ac_status=$?
11303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11304 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11305 (./conftest; exit; ) >&5 2>/dev/null
11306 lt_status=$?
11307 case x$lt_status in
11308 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11309 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11310 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11311 esac
11312 else :
11313 # compilation failed
11314 lt_cv_dlopen_self_static=no
11317 rm -fr conftest*
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11322 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11325 CPPFLAGS="$save_CPPFLAGS"
11326 LDFLAGS="$save_LDFLAGS"
11327 LIBS="$save_LIBS"
11329 esac
11331 case $lt_cv_dlopen_self in
11332 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11333 *) enable_dlopen_self=unknown ;;
11334 esac
11336 case $lt_cv_dlopen_self_static in
11337 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11338 *) enable_dlopen_self_static=unknown ;;
11339 esac
11358 striplib=
11359 old_striplib=
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11361 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11362 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11363 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11364 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11366 $as_echo "yes" >&6; }
11367 else
11368 # FIXME - insert some real tests, host_os isn't really good enough
11369 case $host_os in
11370 darwin*)
11371 if test -n "$STRIP" ; then
11372 striplib="$STRIP -x"
11373 old_striplib="$STRIP -S"
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11375 $as_echo "yes" >&6; }
11376 else
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11378 $as_echo "no" >&6; }
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11383 $as_echo "no" >&6; }
11385 esac
11399 # Report which library types will actually be built
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11401 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11403 $as_echo "$can_build_shared" >&6; }
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11406 $as_echo_n "checking whether to build shared libraries... " >&6; }
11407 test "$can_build_shared" = "no" && enable_shared=no
11409 # On AIX, shared libraries and static libraries use the same namespace, and
11410 # are all built from PIC.
11411 case $host_os in
11412 aix3*)
11413 test "$enable_shared" = yes && enable_static=no
11414 if test -n "$RANLIB"; then
11415 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11416 postinstall_cmds='$RANLIB $lib'
11420 aix[4-9]*)
11421 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11422 test "$enable_shared" = yes && enable_static=no
11425 esac
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11427 $as_echo "$enable_shared" >&6; }
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11430 $as_echo_n "checking whether to build static libraries... " >&6; }
11431 # Make sure either enable_shared or enable_static is yes.
11432 test "$enable_shared" = yes || enable_static=yes
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11434 $as_echo "$enable_static" >&6; }
11440 ac_ext=c
11441 ac_cpp='$CPP $CPPFLAGS'
11442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11446 CC="$lt_save_CC"
11460 # Source file extension for Go test sources.
11461 ac_ext=go
11463 # Object file extension for compiled Go test sources.
11464 objext=o
11465 objext_GO=$objext
11467 # Code to be used in simple compile tests
11468 lt_simple_compile_test_code="package main; func main() { }"
11470 # Code to be used in simple link tests
11471 lt_simple_link_test_code='package main; func main() { }'
11473 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11480 # If no C compiler was specified, use CC.
11481 LTCC=${LTCC-"$CC"}
11483 # If no C compiler flags were specified, use CFLAGS.
11484 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11486 # Allow CC to be a program name with arguments.
11487 compiler=$CC
11490 # save warnings/boilerplate of simple test code
11491 ac_outfile=conftest.$ac_objext
11492 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11493 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11494 _lt_compiler_boilerplate=`cat conftest.err`
11495 $RM conftest*
11497 ac_outfile=conftest.$ac_objext
11498 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11499 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11500 _lt_linker_boilerplate=`cat conftest.err`
11501 $RM -r conftest*
11504 # Allow CC to be a program name with arguments.
11505 lt_save_CC="$CC"
11506 lt_save_GCC="$GCC"
11507 GCC=yes
11508 CC=${GOC-"gccgo"}
11509 compiler=$CC
11510 compiler_GO=$CC
11511 LD_GO="$LD"
11512 for cc_temp in $compiler""; do
11513 case $cc_temp in
11514 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11515 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11516 \-*) ;;
11517 *) break;;
11518 esac
11519 done
11520 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11523 # Go did not exist at the time GCC didn't implicitly link libc in.
11524 archive_cmds_need_lc_GO=no
11526 old_archive_cmds_GO=$old_archive_cmds
11528 ## CAVEAT EMPTOR:
11529 ## There is no encapsulation within the following macros, do not change
11530 ## the running order or otherwise move them around unless you know exactly
11531 ## what you are doing...
11532 if test -n "$compiler"; then
11534 lt_prog_compiler_no_builtin_flag_GO=
11536 if test "$GCC" = yes; then
11537 case $cc_basename in
11538 nvcc*)
11539 lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11541 lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11542 esac
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11545 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11546 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11547 $as_echo_n "(cached) " >&6
11548 else
11549 lt_cv_prog_compiler_rtti_exceptions=no
11550 ac_outfile=conftest.$ac_objext
11551 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11552 lt_compiler_flag="-fno-rtti -fno-exceptions"
11553 # Insert the option either (1) after the last *FLAGS variable, or
11554 # (2) before a word containing "conftest.", or (3) at the end.
11555 # Note that $ac_compile itself does not contain backslashes and begins
11556 # with a dollar sign (not a hyphen), so the echo should work correctly.
11557 # The option is referenced via a variable to avoid confusing sed.
11558 lt_compile=`echo "$ac_compile" | $SED \
11559 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11560 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11561 -e 's:$: $lt_compiler_flag:'`
11562 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11563 (eval "$lt_compile" 2>conftest.err)
11564 ac_status=$?
11565 cat conftest.err >&5
11566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567 if (exit $ac_status) && test -s "$ac_outfile"; then
11568 # The compiler can only warn and ignore the option if not recognized
11569 # So say no if there are warnings other than the usual output.
11570 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11571 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11572 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11573 lt_cv_prog_compiler_rtti_exceptions=yes
11576 $RM conftest*
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11580 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11582 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11583 lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11584 else
11592 lt_prog_compiler_wl_GO=
11593 lt_prog_compiler_pic_GO=
11594 lt_prog_compiler_static_GO=
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11597 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11599 if test "$GCC" = yes; then
11600 lt_prog_compiler_wl_GO='-Wl,'
11601 lt_prog_compiler_static_GO='-static'
11603 case $host_os in
11604 aix*)
11605 # All AIX code is PIC.
11606 if test "$host_cpu" = ia64; then
11607 # AIX 5 now supports IA64 processor
11608 lt_prog_compiler_static_GO='-Bstatic'
11612 amigaos*)
11613 case $host_cpu in
11614 powerpc)
11615 # see comment about AmigaOS4 .so support
11616 lt_prog_compiler_pic_GO='-fPIC'
11618 m68k)
11619 # FIXME: we need at least 68020 code to build shared libraries, but
11620 # adding the `-m68020' flag to GCC prevents building anything better,
11621 # like `-m68040'.
11622 lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11624 esac
11627 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11628 # PIC is the default for these OSes.
11631 mingw* | cygwin* | pw32* | os2* | cegcc*)
11632 # This hack is so that the source file can tell whether it is being
11633 # built for inclusion in a dll (and should export symbols for example).
11634 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11635 # (--disable-auto-import) libraries
11636 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11639 darwin* | rhapsody*)
11640 # PIC is the default on this platform
11641 # Common symbols not allowed in MH_DYLIB files
11642 lt_prog_compiler_pic_GO='-fno-common'
11645 haiku*)
11646 # PIC is the default for Haiku.
11647 # The "-static" flag exists, but is broken.
11648 lt_prog_compiler_static_GO=
11651 hpux*)
11652 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11653 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11654 # sets the default TLS model and affects inlining.
11655 case $host_cpu in
11656 hppa*64*)
11657 # +Z the default
11660 lt_prog_compiler_pic_GO='-fPIC'
11662 esac
11665 interix[3-9]*)
11666 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11667 # Instead, we relocate shared libraries at runtime.
11670 msdosdjgpp*)
11671 # Just because we use GCC doesn't mean we suddenly get shared libraries
11672 # on systems that don't support them.
11673 lt_prog_compiler_can_build_shared_GO=no
11674 enable_shared=no
11677 *nto* | *qnx*)
11678 # QNX uses GNU C++, but need to define -shared option too, otherwise
11679 # it will coredump.
11680 lt_prog_compiler_pic_GO='-fPIC -shared'
11683 sysv4*MP*)
11684 if test -d /usr/nec; then
11685 lt_prog_compiler_pic_GO=-Kconform_pic
11690 lt_prog_compiler_pic_GO='-fPIC'
11692 esac
11694 case $cc_basename in
11695 nvcc*) # Cuda Compiler Driver 2.2
11696 lt_prog_compiler_wl_GO='-Xlinker '
11697 lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11699 esac
11700 else
11701 # PORTME Check for flag to pass linker flags through the system compiler.
11702 case $host_os in
11703 aix*)
11704 lt_prog_compiler_wl_GO='-Wl,'
11705 if test "$host_cpu" = ia64; then
11706 # AIX 5 now supports IA64 processor
11707 lt_prog_compiler_static_GO='-Bstatic'
11708 else
11709 lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11713 mingw* | cygwin* | pw32* | os2* | cegcc*)
11714 # This hack is so that the source file can tell whether it is being
11715 # built for inclusion in a dll (and should export symbols for example).
11716 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11719 hpux9* | hpux10* | hpux11*)
11720 lt_prog_compiler_wl_GO='-Wl,'
11721 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11722 # not for PA HP-UX.
11723 case $host_cpu in
11724 hppa*64*|ia64*)
11725 # +Z the default
11728 lt_prog_compiler_pic_GO='+Z'
11730 esac
11731 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11732 lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11735 irix5* | irix6* | nonstopux*)
11736 lt_prog_compiler_wl_GO='-Wl,'
11737 # PIC (with -KPIC) is the default.
11738 lt_prog_compiler_static_GO='-non_shared'
11741 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11742 case $cc_basename in
11743 # old Intel for x86_64 which still supported -KPIC.
11744 ecc*)
11745 lt_prog_compiler_wl_GO='-Wl,'
11746 lt_prog_compiler_pic_GO='-KPIC'
11747 lt_prog_compiler_static_GO='-static'
11749 # icc used to be incompatible with GCC.
11750 # ICC 10 doesn't accept -KPIC any more.
11751 icc* | ifort*)
11752 lt_prog_compiler_wl_GO='-Wl,'
11753 lt_prog_compiler_pic_GO='-fPIC'
11754 lt_prog_compiler_static_GO='-static'
11756 # Lahey Fortran 8.1.
11757 lf95*)
11758 lt_prog_compiler_wl_GO='-Wl,'
11759 lt_prog_compiler_pic_GO='--shared'
11760 lt_prog_compiler_static_GO='--static'
11762 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11763 # Portland Group compilers (*not* the Pentium gcc compiler,
11764 # which looks to be a dead project)
11765 lt_prog_compiler_wl_GO='-Wl,'
11766 lt_prog_compiler_pic_GO='-fpic'
11767 lt_prog_compiler_static_GO='-Bstatic'
11769 ccc*)
11770 lt_prog_compiler_wl_GO='-Wl,'
11771 # All Alpha code is PIC.
11772 lt_prog_compiler_static_GO='-non_shared'
11774 xl* | bgxl* | bgf* | mpixl*)
11775 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11776 lt_prog_compiler_wl_GO='-Wl,'
11777 lt_prog_compiler_pic_GO='-qpic'
11778 lt_prog_compiler_static_GO='-qstaticlink'
11781 case `$CC -V 2>&1 | sed 5q` in
11782 *Sun\ F* | *Sun*Fortran*)
11783 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11784 lt_prog_compiler_pic_GO='-KPIC'
11785 lt_prog_compiler_static_GO='-Bstatic'
11786 lt_prog_compiler_wl_GO=''
11788 *Sun\ C*)
11789 # Sun C 5.9
11790 lt_prog_compiler_pic_GO='-KPIC'
11791 lt_prog_compiler_static_GO='-Bstatic'
11792 lt_prog_compiler_wl_GO='-Wl,'
11794 esac
11796 esac
11799 newsos6)
11800 lt_prog_compiler_pic_GO='-KPIC'
11801 lt_prog_compiler_static_GO='-Bstatic'
11804 *nto* | *qnx*)
11805 # QNX uses GNU C++, but need to define -shared option too, otherwise
11806 # it will coredump.
11807 lt_prog_compiler_pic_GO='-fPIC -shared'
11810 osf3* | osf4* | osf5*)
11811 lt_prog_compiler_wl_GO='-Wl,'
11812 # All OSF/1 code is PIC.
11813 lt_prog_compiler_static_GO='-non_shared'
11816 rdos*)
11817 lt_prog_compiler_static_GO='-non_shared'
11820 solaris*)
11821 lt_prog_compiler_pic_GO='-KPIC'
11822 lt_prog_compiler_static_GO='-Bstatic'
11823 case $cc_basename in
11824 f77* | f90* | f95*)
11825 lt_prog_compiler_wl_GO='-Qoption ld ';;
11827 lt_prog_compiler_wl_GO='-Wl,';;
11828 esac
11831 sunos4*)
11832 lt_prog_compiler_wl_GO='-Qoption ld '
11833 lt_prog_compiler_pic_GO='-PIC'
11834 lt_prog_compiler_static_GO='-Bstatic'
11837 sysv4 | sysv4.2uw2* | sysv4.3*)
11838 lt_prog_compiler_wl_GO='-Wl,'
11839 lt_prog_compiler_pic_GO='-KPIC'
11840 lt_prog_compiler_static_GO='-Bstatic'
11843 sysv4*MP*)
11844 if test -d /usr/nec ;then
11845 lt_prog_compiler_pic_GO='-Kconform_pic'
11846 lt_prog_compiler_static_GO='-Bstatic'
11850 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11851 lt_prog_compiler_wl_GO='-Wl,'
11852 lt_prog_compiler_pic_GO='-KPIC'
11853 lt_prog_compiler_static_GO='-Bstatic'
11856 unicos*)
11857 lt_prog_compiler_wl_GO='-Wl,'
11858 lt_prog_compiler_can_build_shared_GO=no
11861 uts4*)
11862 lt_prog_compiler_pic_GO='-pic'
11863 lt_prog_compiler_static_GO='-Bstatic'
11867 lt_prog_compiler_can_build_shared_GO=no
11869 esac
11872 case $host_os in
11873 # For platforms which do not support PIC, -DPIC is meaningless:
11874 *djgpp*)
11875 lt_prog_compiler_pic_GO=
11878 lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
11880 esac
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
11882 $as_echo "$lt_prog_compiler_pic_GO" >&6; }
11887 # Check to make sure the PIC flag actually works.
11889 if test -n "$lt_prog_compiler_pic_GO"; then
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
11891 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
11892 if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
11893 $as_echo_n "(cached) " >&6
11894 else
11895 lt_cv_prog_compiler_pic_works_GO=no
11896 ac_outfile=conftest.$ac_objext
11897 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11898 lt_compiler_flag="$lt_prog_compiler_pic_GO"
11899 # Insert the option either (1) after the last *FLAGS variable, or
11900 # (2) before a word containing "conftest.", or (3) at the end.
11901 # Note that $ac_compile itself does not contain backslashes and begins
11902 # with a dollar sign (not a hyphen), so the echo should work correctly.
11903 # The option is referenced via a variable to avoid confusing sed.
11904 lt_compile=`echo "$ac_compile" | $SED \
11905 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11906 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11907 -e 's:$: $lt_compiler_flag:'`
11908 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11909 (eval "$lt_compile" 2>conftest.err)
11910 ac_status=$?
11911 cat conftest.err >&5
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 if (exit $ac_status) && test -s "$ac_outfile"; then
11914 # The compiler can only warn and ignore the option if not recognized
11915 # So say no if there are warnings other than the usual output.
11916 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11917 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11918 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11919 lt_cv_prog_compiler_pic_works_GO=yes
11922 $RM conftest*
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
11926 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
11928 if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
11929 case $lt_prog_compiler_pic_GO in
11930 "" | " "*) ;;
11931 *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
11932 esac
11933 else
11934 lt_prog_compiler_pic_GO=
11935 lt_prog_compiler_can_build_shared_GO=no
11943 # Check to make sure the static flag actually works.
11945 wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11947 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11948 if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
11949 $as_echo_n "(cached) " >&6
11950 else
11951 lt_cv_prog_compiler_static_works_GO=no
11952 save_LDFLAGS="$LDFLAGS"
11953 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11954 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11955 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11956 # The linker can only warn and ignore the option if not recognized
11957 # So say no if there are warnings
11958 if test -s conftest.err; then
11959 # Append any errors to the config.log.
11960 cat conftest.err 1>&5
11961 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11962 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11963 if diff conftest.exp conftest.er2 >/dev/null; then
11964 lt_cv_prog_compiler_static_works_GO=yes
11966 else
11967 lt_cv_prog_compiler_static_works_GO=yes
11970 $RM -r conftest*
11971 LDFLAGS="$save_LDFLAGS"
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
11975 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
11977 if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
11979 else
11980 lt_prog_compiler_static_GO=
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11987 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11988 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11989 $as_echo_n "(cached) " >&6
11990 else
11991 lt_cv_prog_compiler_c_o_GO=no
11992 $RM -r conftest 2>/dev/null
11993 mkdir conftest
11994 cd conftest
11995 mkdir out
11996 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11998 lt_compiler_flag="-o out/conftest2.$ac_objext"
11999 # Insert the option either (1) after the last *FLAGS variable, or
12000 # (2) before a word containing "conftest.", or (3) at the end.
12001 # Note that $ac_compile itself does not contain backslashes and begins
12002 # with a dollar sign (not a hyphen), so the echo should work correctly.
12003 lt_compile=`echo "$ac_compile" | $SED \
12004 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12005 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12006 -e 's:$: $lt_compiler_flag:'`
12007 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12008 (eval "$lt_compile" 2>out/conftest.err)
12009 ac_status=$?
12010 cat out/conftest.err >&5
12011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12013 then
12014 # The compiler can only warn and ignore the option if not recognized
12015 # So say no if there are warnings
12016 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12017 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12018 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12019 lt_cv_prog_compiler_c_o_GO=yes
12022 chmod u+w . 2>&5
12023 $RM conftest*
12024 # SGI C++ compiler will create directory out/ii_files/ for
12025 # template instantiation
12026 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12027 $RM out/* && rmdir out
12028 cd ..
12029 $RM -r conftest
12030 $RM conftest*
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12034 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12039 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12040 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
12041 $as_echo_n "(cached) " >&6
12042 else
12043 lt_cv_prog_compiler_c_o_GO=no
12044 $RM -r conftest 2>/dev/null
12045 mkdir conftest
12046 cd conftest
12047 mkdir out
12048 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12050 lt_compiler_flag="-o out/conftest2.$ac_objext"
12051 # Insert the option either (1) after the last *FLAGS variable, or
12052 # (2) before a word containing "conftest.", or (3) at the end.
12053 # Note that $ac_compile itself does not contain backslashes and begins
12054 # with a dollar sign (not a hyphen), so the echo should work correctly.
12055 lt_compile=`echo "$ac_compile" | $SED \
12056 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12057 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12058 -e 's:$: $lt_compiler_flag:'`
12059 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12060 (eval "$lt_compile" 2>out/conftest.err)
12061 ac_status=$?
12062 cat out/conftest.err >&5
12063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12065 then
12066 # The compiler can only warn and ignore the option if not recognized
12067 # So say no if there are warnings
12068 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12069 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12070 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12071 lt_cv_prog_compiler_c_o_GO=yes
12074 chmod u+w . 2>&5
12075 $RM conftest*
12076 # SGI C++ compiler will create directory out/ii_files/ for
12077 # template instantiation
12078 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12079 $RM out/* && rmdir out
12080 cd ..
12081 $RM -r conftest
12082 $RM conftest*
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12086 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12091 hard_links="nottested"
12092 if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
12093 # do not overwrite the value of need_locks provided by the user
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12095 $as_echo_n "checking if we can lock with hard links... " >&6; }
12096 hard_links=yes
12097 $RM conftest*
12098 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12099 touch conftest.a
12100 ln conftest.a conftest.b 2>&5 || hard_links=no
12101 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12103 $as_echo "$hard_links" >&6; }
12104 if test "$hard_links" = no; then
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12106 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12107 need_locks=warn
12109 else
12110 need_locks=no
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12116 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12118 runpath_var=
12119 allow_undefined_flag_GO=
12120 always_export_symbols_GO=no
12121 archive_cmds_GO=
12122 archive_expsym_cmds_GO=
12123 compiler_needs_object_GO=no
12124 enable_shared_with_static_runtimes_GO=no
12125 export_dynamic_flag_spec_GO=
12126 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12127 hardcode_automatic_GO=no
12128 hardcode_direct_GO=no
12129 hardcode_direct_absolute_GO=no
12130 hardcode_libdir_flag_spec_GO=
12131 hardcode_libdir_flag_spec_ld_GO=
12132 hardcode_libdir_separator_GO=
12133 hardcode_minus_L_GO=no
12134 hardcode_shlibpath_var_GO=unsupported
12135 inherit_rpath_GO=no
12136 link_all_deplibs_GO=unknown
12137 module_cmds_GO=
12138 module_expsym_cmds_GO=
12139 old_archive_from_new_cmds_GO=
12140 old_archive_from_expsyms_cmds_GO=
12141 thread_safe_flag_spec_GO=
12142 whole_archive_flag_spec_GO=
12143 # include_expsyms should be a list of space-separated symbols to be *always*
12144 # included in the symbol list
12145 include_expsyms_GO=
12146 # exclude_expsyms can be an extended regexp of symbols to exclude
12147 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12148 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12149 # as well as any symbol that contains `d'.
12150 exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12151 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12152 # platforms (ab)use it in PIC code, but their linkers get confused if
12153 # the symbol is explicitly referenced. Since portable code cannot
12154 # rely on this symbol name, it's probably fine to never include it in
12155 # preloaded symbol tables.
12156 # Exclude shared library initialization/finalization symbols.
12157 extract_expsyms_cmds=
12159 case $host_os in
12160 cygwin* | mingw* | pw32* | cegcc*)
12161 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12162 # When not using gcc, we currently assume that we are using
12163 # Microsoft Visual C++.
12164 if test "$GCC" != yes; then
12165 with_gnu_ld=no
12168 interix*)
12169 # we just hope/assume this is gcc and not c89 (= MSVC++)
12170 with_gnu_ld=yes
12172 openbsd*)
12173 with_gnu_ld=no
12175 esac
12177 ld_shlibs_GO=yes
12179 # On some targets, GNU ld is compatible enough with the native linker
12180 # that we're better off using the native interface for both.
12181 lt_use_gnu_ld_interface=no
12182 if test "$with_gnu_ld" = yes; then
12183 case $host_os in
12184 aix*)
12185 # The AIX port of GNU ld has always aspired to compatibility
12186 # with the native linker. However, as the warning in the GNU ld
12187 # block says, versions before 2.19.5* couldn't really create working
12188 # shared libraries, regardless of the interface used.
12189 case `$LD -v 2>&1` in
12190 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12191 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12192 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12194 lt_use_gnu_ld_interface=yes
12196 esac
12199 lt_use_gnu_ld_interface=yes
12201 esac
12204 if test "$lt_use_gnu_ld_interface" = yes; then
12205 # If archive_cmds runs LD, not CC, wlarc should be empty
12206 wlarc='${wl}'
12208 # Set some defaults for GNU ld with shared library support. These
12209 # are reset later if shared libraries are not supported. Putting them
12210 # here allows them to be overridden if necessary.
12211 runpath_var=LD_RUN_PATH
12212 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12213 export_dynamic_flag_spec_GO='${wl}--export-dynamic'
12214 # ancient GNU ld didn't support --whole-archive et. al.
12215 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12216 whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12217 else
12218 whole_archive_flag_spec_GO=
12220 supports_anon_versioning=no
12221 case `$LD -v 2>&1` in
12222 *GNU\ gold*) supports_anon_versioning=yes ;;
12223 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12224 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12225 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12226 *\ 2.11.*) ;; # other 2.11 versions
12227 *) supports_anon_versioning=yes ;;
12228 esac
12230 # See if GNU ld supports shared libraries.
12231 case $host_os in
12232 aix[3-9]*)
12233 # On AIX/PPC, the GNU linker is very broken
12234 if test "$host_cpu" != ia64; then
12235 ld_shlibs_GO=no
12236 cat <<_LT_EOF 1>&2
12238 *** Warning: the GNU linker, at least up to release 2.19, is reported
12239 *** to be unable to reliably create shared libraries on AIX.
12240 *** Therefore, libtool is disabling shared libraries support. If you
12241 *** really care for shared libraries, you may want to install binutils
12242 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12243 *** You will then need to restart the configuration process.
12245 _LT_EOF
12249 amigaos*)
12250 case $host_cpu in
12251 powerpc)
12252 # see comment about AmigaOS4 .so support
12253 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12254 archive_expsym_cmds_GO=''
12256 m68k)
12257 archive_cmds_GO='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
12258 hardcode_libdir_flag_spec_GO='-L$libdir'
12259 hardcode_minus_L_GO=yes
12261 esac
12264 beos*)
12265 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12266 allow_undefined_flag_GO=unsupported
12267 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12268 # support --undefined. This deserves some investigation. FIXME
12269 archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12270 else
12271 ld_shlibs_GO=no
12275 cygwin* | mingw* | pw32* | cegcc*)
12276 # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12277 # as there is no search path for DLLs.
12278 hardcode_libdir_flag_spec_GO='-L$libdir'
12279 export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12280 allow_undefined_flag_GO=unsupported
12281 always_export_symbols_GO=no
12282 enable_shared_with_static_runtimes_GO=yes
12283 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12285 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12286 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12287 # If the export-symbols file already is a .def file (1st line
12288 # is EXPORTS), use it as is; otherwise, prepend...
12289 archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12290 cp $export_symbols $output_objdir/$soname.def;
12291 else
12292 echo EXPORTS > $output_objdir/$soname.def;
12293 cat $export_symbols >> $output_objdir/$soname.def;
12295 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12296 else
12297 ld_shlibs_GO=no
12301 haiku*)
12302 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12303 link_all_deplibs_GO=yes
12306 interix[3-9]*)
12307 hardcode_direct_GO=no
12308 hardcode_shlibpath_var_GO=no
12309 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12310 export_dynamic_flag_spec_GO='${wl}-E'
12311 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12312 # Instead, shared libraries are loaded at an image base (0x10000000 by
12313 # default) and relocated if they conflict, which is a slow very memory
12314 # consuming and fragmenting process. To avoid this, we pick a random,
12315 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12316 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12317 archive_cmds_GO='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12318 archive_expsym_cmds_GO='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12321 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12322 tmp_diet=no
12323 if test "$host_os" = linux-dietlibc; then
12324 case $cc_basename in
12325 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12326 esac
12328 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12329 && test "$tmp_diet" = no
12330 then
12331 tmp_addflag=
12332 tmp_sharedflag='-shared'
12333 case $cc_basename,$host_cpu in
12334 pgcc*) # Portland Group C compiler
12335 whole_archive_flag_spec_GO='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12336 tmp_addflag=' $pic_flag'
12338 pgf77* | pgf90* | pgf95* | pgfortran*)
12339 # Portland Group f77 and f90 compilers
12340 whole_archive_flag_spec_GO='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12341 tmp_addflag=' $pic_flag -Mnomain' ;;
12342 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12343 tmp_addflag=' -i_dynamic' ;;
12344 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12345 tmp_addflag=' -i_dynamic -nofor_main' ;;
12346 ifc* | ifort*) # Intel Fortran compiler
12347 tmp_addflag=' -nofor_main' ;;
12348 lf95*) # Lahey Fortran 8.1
12349 whole_archive_flag_spec_GO=
12350 tmp_sharedflag='--shared' ;;
12351 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12352 tmp_sharedflag='-qmkshrobj'
12353 tmp_addflag= ;;
12354 nvcc*) # Cuda Compiler Driver 2.2
12355 whole_archive_flag_spec_GO='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12356 compiler_needs_object_GO=yes
12358 esac
12359 case `$CC -V 2>&1 | sed 5q` in
12360 *Sun\ C*) # Sun C 5.9
12361 whole_archive_flag_spec_GO='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12362 compiler_needs_object_GO=yes
12363 tmp_sharedflag='-G' ;;
12364 *Sun\ F*) # Sun Fortran 8.3
12365 tmp_sharedflag='-G' ;;
12366 esac
12367 archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12369 if test "x$supports_anon_versioning" = xyes; then
12370 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12371 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12372 echo "local: *; };" >> $output_objdir/$libname.ver~
12373 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12376 case $cc_basename in
12377 xlf* | bgf* | bgxlf* | mpixlf*)
12378 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12379 whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12380 hardcode_libdir_flag_spec_GO=
12381 hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12382 archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12383 if test "x$supports_anon_versioning" = xyes; then
12384 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12385 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12386 echo "local: *; };" >> $output_objdir/$libname.ver~
12387 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12390 esac
12391 else
12392 ld_shlibs_GO=no
12396 netbsd*)
12397 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12398 archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12399 wlarc=
12400 else
12401 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12402 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12406 solaris*)
12407 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12408 ld_shlibs_GO=no
12409 cat <<_LT_EOF 1>&2
12411 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12412 *** create shared libraries on Solaris systems. Therefore, libtool
12413 *** is disabling shared libraries support. We urge you to upgrade GNU
12414 *** binutils to release 2.9.1 or newer. Another option is to modify
12415 *** your PATH or compiler configuration so that the native linker is
12416 *** used, and then restart.
12418 _LT_EOF
12419 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12420 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12421 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12422 else
12423 ld_shlibs_GO=no
12427 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12428 case `$LD -v 2>&1` in
12429 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12430 ld_shlibs_GO=no
12431 cat <<_LT_EOF 1>&2
12433 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12434 *** reliably create shared libraries on SCO systems. Therefore, libtool
12435 *** is disabling shared libraries support. We urge you to upgrade GNU
12436 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12437 *** your PATH or compiler configuration so that the native linker is
12438 *** used, and then restart.
12440 _LT_EOF
12443 # For security reasons, it is highly recommended that you always
12444 # use absolute paths for naming shared libraries, and exclude the
12445 # DT_RUNPATH tag from executables and libraries. But doing so
12446 # requires that you compile everything twice, which is a pain.
12447 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12448 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12449 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12450 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12451 else
12452 ld_shlibs_GO=no
12455 esac
12458 sunos4*)
12459 archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12460 wlarc=
12461 hardcode_direct_GO=yes
12462 hardcode_shlibpath_var_GO=no
12466 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12467 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12468 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12469 else
12470 ld_shlibs_GO=no
12473 esac
12475 if test "$ld_shlibs_GO" = no; then
12476 runpath_var=
12477 hardcode_libdir_flag_spec_GO=
12478 export_dynamic_flag_spec_GO=
12479 whole_archive_flag_spec_GO=
12481 else
12482 # PORTME fill in a description of your system's linker (not GNU ld)
12483 case $host_os in
12484 aix3*)
12485 allow_undefined_flag_GO=unsupported
12486 always_export_symbols_GO=yes
12487 archive_expsym_cmds_GO='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
12488 # Note: this linker hardcodes the directories in LIBPATH if there
12489 # are no directories specified by -L.
12490 hardcode_minus_L_GO=yes
12491 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12492 # Neither direct hardcoding nor static linking is supported with a
12493 # broken collect2.
12494 hardcode_direct_GO=unsupported
12498 aix[4-9]*)
12499 if test "$host_cpu" = ia64; then
12500 # On IA64, the linker does run time linking by default, so we don't
12501 # have to do anything special.
12502 aix_use_runtimelinking=no
12503 exp_sym_flag='-Bexport'
12504 no_entry_flag=""
12505 else
12506 # If we're using GNU nm, then we don't want the "-C" option.
12507 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12508 # Also, AIX nm treats weak defined symbols like other global
12509 # defined symbols, whereas GNU nm marks them as "W".
12510 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12511 export_symbols_cmds_GO='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12512 else
12513 export_symbols_cmds_GO='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12515 aix_use_runtimelinking=no
12517 # Test if we are trying to use run time linking or normal
12518 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12519 # need to do runtime linking.
12520 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12521 for ld_flag in $LDFLAGS; do
12522 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12523 aix_use_runtimelinking=yes
12524 break
12526 done
12528 esac
12530 exp_sym_flag='-bexport'
12531 no_entry_flag='-bnoentry'
12534 # When large executables or shared objects are built, AIX ld can
12535 # have problems creating the table of contents. If linking a library
12536 # or program results in "error TOC overflow" add -mminimal-toc to
12537 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12538 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12540 archive_cmds_GO=''
12541 hardcode_direct_GO=yes
12542 hardcode_direct_absolute_GO=yes
12543 hardcode_libdir_separator_GO=':'
12544 link_all_deplibs_GO=yes
12545 file_list_spec_GO='${wl}-f,'
12547 if test "$GCC" = yes; then
12548 case $host_os in aix4.[012]|aix4.[012].*)
12549 # We only want to do this on AIX 4.2 and lower, the check
12550 # below for broken collect2 doesn't work under 4.3+
12551 collect2name=`${CC} -print-prog-name=collect2`
12552 if test -f "$collect2name" &&
12553 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12554 then
12555 # We have reworked collect2
12557 else
12558 # We have old collect2
12559 hardcode_direct_GO=unsupported
12560 # It fails to find uninstalled libraries when the uninstalled
12561 # path is not listed in the libpath. Setting hardcode_minus_L
12562 # to unsupported forces relinking
12563 hardcode_minus_L_GO=yes
12564 hardcode_libdir_flag_spec_GO='-L$libdir'
12565 hardcode_libdir_separator_GO=
12568 esac
12569 shared_flag='-shared'
12570 if test "$aix_use_runtimelinking" = yes; then
12571 shared_flag="$shared_flag "'${wl}-G'
12573 else
12574 # not using gcc
12575 if test "$host_cpu" = ia64; then
12576 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12577 # chokes on -Wl,-G. The following line is correct:
12578 shared_flag='-G'
12579 else
12580 if test "$aix_use_runtimelinking" = yes; then
12581 shared_flag='${wl}-G'
12582 else
12583 shared_flag='${wl}-bM:SRE'
12588 export_dynamic_flag_spec_GO='${wl}-bexpall'
12589 # It seems that -bexpall does not export symbols beginning with
12590 # underscore (_), so it is better to generate a list of symbols to export.
12591 always_export_symbols_GO=yes
12592 if test "$aix_use_runtimelinking" = yes; then
12593 # Warning - without using the other runtime loading flags (-brtl),
12594 # -berok will link without error, but may produce a broken library.
12595 allow_undefined_flag_GO='-berok'
12596 # Determine the default libpath from the value encoded in an
12597 # empty executable.
12598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12599 /* end confdefs.h. */
12602 main ()
12606 return 0;
12608 _ACEOF
12609 if ac_fn_c_try_link "$LINENO"; then :
12611 lt_aix_libpath_sed='
12612 /Import File Strings/,/^$/ {
12613 /^0/ {
12614 s/^0 *\(.*\)$/\1/
12618 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12619 # Check for a 64-bit object if we didn't find anything.
12620 if test -z "$aix_libpath"; then
12621 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12624 rm -f core conftest.err conftest.$ac_objext \
12625 conftest$ac_exeext conftest.$ac_ext
12626 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12628 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12629 archive_expsym_cmds_GO='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12630 else
12631 if test "$host_cpu" = ia64; then
12632 hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12633 allow_undefined_flag_GO="-z nodefs"
12634 archive_expsym_cmds_GO="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12635 else
12636 # Determine the default libpath from the value encoded in an
12637 # empty executable.
12638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12639 /* end confdefs.h. */
12642 main ()
12646 return 0;
12648 _ACEOF
12649 if ac_fn_c_try_link "$LINENO"; then :
12651 lt_aix_libpath_sed='
12652 /Import File Strings/,/^$/ {
12653 /^0/ {
12654 s/^0 *\(.*\)$/\1/
12658 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12659 # Check for a 64-bit object if we didn't find anything.
12660 if test -z "$aix_libpath"; then
12661 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12664 rm -f core conftest.err conftest.$ac_objext \
12665 conftest$ac_exeext conftest.$ac_ext
12666 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12668 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12669 # Warning - without using the other run time loading flags,
12670 # -berok will link without error, but may produce a broken library.
12671 no_undefined_flag_GO=' ${wl}-bernotok'
12672 allow_undefined_flag_GO=' ${wl}-berok'
12673 if test "$with_gnu_ld" = yes; then
12674 # We only use this code for GNU lds that support --whole-archive.
12675 whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12676 else
12677 # Exported symbols can be pulled into shared objects from archives
12678 whole_archive_flag_spec_GO='$convenience'
12680 archive_cmds_need_lc_GO=yes
12681 # This is similar to how AIX traditionally builds its shared libraries.
12682 archive_expsym_cmds_GO="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12687 amigaos*)
12688 case $host_cpu in
12689 powerpc)
12690 # see comment about AmigaOS4 .so support
12691 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12692 archive_expsym_cmds_GO=''
12694 m68k)
12695 archive_cmds_GO='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
12696 hardcode_libdir_flag_spec_GO='-L$libdir'
12697 hardcode_minus_L_GO=yes
12699 esac
12702 bsdi[45]*)
12703 export_dynamic_flag_spec_GO=-rdynamic
12706 cygwin* | mingw* | pw32* | cegcc*)
12707 # When not using gcc, we currently assume that we are using
12708 # Microsoft Visual C++.
12709 # hardcode_libdir_flag_spec is actually meaningless, as there is
12710 # no search path for DLLs.
12711 hardcode_libdir_flag_spec_GO=' '
12712 allow_undefined_flag_GO=unsupported
12713 # Tell ltmain to make .lib files, not .a files.
12714 libext=lib
12715 # Tell ltmain to make .dll files, not .so files.
12716 shrext_cmds=".dll"
12717 # FIXME: Setting linknames here is a bad hack.
12718 archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12719 # The linker will automatically build a .lib file if we build a DLL.
12720 old_archive_from_new_cmds_GO='true'
12721 # FIXME: Should let the user specify the lib program.
12722 old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12723 fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12724 enable_shared_with_static_runtimes_GO=yes
12727 darwin* | rhapsody*)
12730 archive_cmds_need_lc_GO=no
12731 hardcode_direct_GO=no
12732 hardcode_automatic_GO=yes
12733 hardcode_shlibpath_var_GO=unsupported
12734 if test "$lt_cv_ld_force_load" = "yes"; then
12735 whole_archive_flag_spec_GO='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12736 else
12737 whole_archive_flag_spec_GO=''
12739 link_all_deplibs_GO=yes
12740 allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12741 case $cc_basename in
12742 ifort*) _lt_dar_can_shared=yes ;;
12743 *) _lt_dar_can_shared=$GCC ;;
12744 esac
12745 if test "$_lt_dar_can_shared" = "yes"; then
12746 output_verbose_link_cmd=func_echo_all
12747 archive_cmds_GO="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12748 module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12749 archive_expsym_cmds_GO="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12750 module_expsym_cmds_GO="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12752 else
12753 ld_shlibs_GO=no
12758 dgux*)
12759 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12760 hardcode_libdir_flag_spec_GO='-L$libdir'
12761 hardcode_shlibpath_var_GO=no
12764 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12765 # support. Future versions do this automatically, but an explicit c++rt0.o
12766 # does not break anything, and helps significantly (at the cost of a little
12767 # extra space).
12768 freebsd2.2*)
12769 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12770 hardcode_libdir_flag_spec_GO='-R$libdir'
12771 hardcode_direct_GO=yes
12772 hardcode_shlibpath_var_GO=no
12775 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12776 freebsd2*)
12777 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12778 hardcode_direct_GO=yes
12779 hardcode_minus_L_GO=yes
12780 hardcode_shlibpath_var_GO=no
12783 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12784 freebsd* | dragonfly*)
12785 archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12786 hardcode_libdir_flag_spec_GO='-R$libdir'
12787 hardcode_direct_GO=yes
12788 hardcode_shlibpath_var_GO=no
12791 hpux9*)
12792 if test "$GCC" = yes; then
12793 archive_cmds_GO='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12794 else
12795 archive_cmds_GO='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12797 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12798 hardcode_libdir_separator_GO=:
12799 hardcode_direct_GO=yes
12801 # hardcode_minus_L: Not really in the search PATH,
12802 # but as the default location of the library.
12803 hardcode_minus_L_GO=yes
12804 export_dynamic_flag_spec_GO='${wl}-E'
12807 hpux10*)
12808 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12809 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12810 else
12811 archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12813 if test "$with_gnu_ld" = no; then
12814 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12815 hardcode_libdir_flag_spec_ld_GO='+b $libdir'
12816 hardcode_libdir_separator_GO=:
12817 hardcode_direct_GO=yes
12818 hardcode_direct_absolute_GO=yes
12819 export_dynamic_flag_spec_GO='${wl}-E'
12820 # hardcode_minus_L: Not really in the search PATH,
12821 # but as the default location of the library.
12822 hardcode_minus_L_GO=yes
12826 hpux11*)
12827 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12828 case $host_cpu in
12829 hppa*64*)
12830 archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12832 ia64*)
12833 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12836 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12838 esac
12839 else
12840 case $host_cpu in
12841 hppa*64*)
12842 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12844 ia64*)
12845 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12848 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12850 esac
12852 if test "$with_gnu_ld" = no; then
12853 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12854 hardcode_libdir_separator_GO=:
12856 case $host_cpu in
12857 hppa*64*|ia64*)
12858 hardcode_direct_GO=no
12859 hardcode_shlibpath_var_GO=no
12862 hardcode_direct_GO=yes
12863 hardcode_direct_absolute_GO=yes
12864 export_dynamic_flag_spec_GO='${wl}-E'
12866 # hardcode_minus_L: Not really in the search PATH,
12867 # but as the default location of the library.
12868 hardcode_minus_L_GO=yes
12870 esac
12874 irix5* | irix6* | nonstopux*)
12875 if test "$GCC" = yes; then
12876 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12877 # Try to use the -exported_symbol ld option, if it does not
12878 # work, assume that -exports_file does not work either and
12879 # implicitly export all symbols.
12880 save_LDFLAGS="$LDFLAGS"
12881 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12883 /* end confdefs.h. */
12884 int foo(void) {}
12885 _ACEOF
12886 if ac_fn_c_try_link "$LINENO"; then :
12887 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
12890 rm -f core conftest.err conftest.$ac_objext \
12891 conftest$ac_exeext conftest.$ac_ext
12892 LDFLAGS="$save_LDFLAGS"
12893 else
12894 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12895 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
12897 archive_cmds_need_lc_GO='no'
12898 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12899 hardcode_libdir_separator_GO=:
12900 inherit_rpath_GO=yes
12901 link_all_deplibs_GO=yes
12904 netbsd*)
12905 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12906 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12907 else
12908 archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12910 hardcode_libdir_flag_spec_GO='-R$libdir'
12911 hardcode_direct_GO=yes
12912 hardcode_shlibpath_var_GO=no
12915 newsos6)
12916 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12917 hardcode_direct_GO=yes
12918 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12919 hardcode_libdir_separator_GO=:
12920 hardcode_shlibpath_var_GO=no
12923 *nto* | *qnx*)
12926 openbsd*)
12927 if test -f /usr/libexec/ld.so; then
12928 hardcode_direct_GO=yes
12929 hardcode_shlibpath_var_GO=no
12930 hardcode_direct_absolute_GO=yes
12931 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12932 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12933 archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12934 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12935 export_dynamic_flag_spec_GO='${wl}-E'
12936 else
12937 case $host_os in
12938 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12939 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12940 hardcode_libdir_flag_spec_GO='-R$libdir'
12943 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12944 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12946 esac
12948 else
12949 ld_shlibs_GO=no
12953 os2*)
12954 hardcode_libdir_flag_spec_GO='-L$libdir'
12955 hardcode_minus_L_GO=yes
12956 allow_undefined_flag_GO=unsupported
12957 archive_cmds_GO='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
12958 old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12961 osf3*)
12962 if test "$GCC" = yes; then
12963 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12964 archive_cmds_GO='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12965 else
12966 allow_undefined_flag_GO=' -expect_unresolved \*'
12967 archive_cmds_GO='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12969 archive_cmds_need_lc_GO='no'
12970 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12971 hardcode_libdir_separator_GO=:
12974 osf4* | osf5*) # as osf3* with the addition of -msym flag
12975 if test "$GCC" = yes; then
12976 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12977 archive_cmds_GO='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12978 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12979 else
12980 allow_undefined_flag_GO=' -expect_unresolved \*'
12981 archive_cmds_GO='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12982 archive_expsym_cmds_GO='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
12983 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
12985 # Both c and cxx compiler support -rpath directly
12986 hardcode_libdir_flag_spec_GO='-rpath $libdir'
12988 archive_cmds_need_lc_GO='no'
12989 hardcode_libdir_separator_GO=:
12992 solaris*)
12993 no_undefined_flag_GO=' -z defs'
12994 if test "$GCC" = yes; then
12995 wlarc='${wl}'
12996 archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12997 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12998 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12999 else
13000 case `$CC -V 2>&1` in
13001 *"Compilers 5.0"*)
13002 wlarc=''
13003 archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13004 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13005 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13008 wlarc='${wl}'
13009 archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13010 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13011 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13013 esac
13015 hardcode_libdir_flag_spec_GO='-R$libdir'
13016 hardcode_shlibpath_var_GO=no
13017 case $host_os in
13018 solaris2.[0-5] | solaris2.[0-5].*) ;;
13020 # The compiler driver will combine and reorder linker options,
13021 # but understands `-z linker_flag'. GCC discards it without `$wl',
13022 # but is careful enough not to reorder.
13023 # Supported since Solaris 2.6 (maybe 2.5.1?)
13024 if test "$GCC" = yes; then
13025 whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13026 else
13027 whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
13030 esac
13031 link_all_deplibs_GO=yes
13034 sunos4*)
13035 if test "x$host_vendor" = xsequent; then
13036 # Use $CC to link under sequent, because it throws in some extra .o
13037 # files that make .init and .fini sections work.
13038 archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13039 else
13040 archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13042 hardcode_libdir_flag_spec_GO='-L$libdir'
13043 hardcode_direct_GO=yes
13044 hardcode_minus_L_GO=yes
13045 hardcode_shlibpath_var_GO=no
13048 sysv4)
13049 case $host_vendor in
13050 sni)
13051 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13052 hardcode_direct_GO=yes # is this really true???
13054 siemens)
13055 ## LD is ld it makes a PLAMLIB
13056 ## CC just makes a GrossModule.
13057 archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13058 reload_cmds_GO='$CC -r -o $output$reload_objs'
13059 hardcode_direct_GO=no
13061 motorola)
13062 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13063 hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
13065 esac
13066 runpath_var='LD_RUN_PATH'
13067 hardcode_shlibpath_var_GO=no
13070 sysv4.3*)
13071 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13072 hardcode_shlibpath_var_GO=no
13073 export_dynamic_flag_spec_GO='-Bexport'
13076 sysv4*MP*)
13077 if test -d /usr/nec; then
13078 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13079 hardcode_shlibpath_var_GO=no
13080 runpath_var=LD_RUN_PATH
13081 hardcode_runpath_var=yes
13082 ld_shlibs_GO=yes
13086 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13087 no_undefined_flag_GO='${wl}-z,text'
13088 archive_cmds_need_lc_GO=no
13089 hardcode_shlibpath_var_GO=no
13090 runpath_var='LD_RUN_PATH'
13092 if test "$GCC" = yes; then
13093 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13094 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13095 else
13096 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13097 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13101 sysv5* | sco3.2v5* | sco5v6*)
13102 # Note: We can NOT use -z defs as we might desire, because we do not
13103 # link with -lc, and that would cause any symbols used from libc to
13104 # always be unresolved, which means just about no library would
13105 # ever link correctly. If we're not using GNU ld we use -z text
13106 # though, which does catch some bad symbols but isn't as heavy-handed
13107 # as -z defs.
13108 no_undefined_flag_GO='${wl}-z,text'
13109 allow_undefined_flag_GO='${wl}-z,nodefs'
13110 archive_cmds_need_lc_GO=no
13111 hardcode_shlibpath_var_GO=no
13112 hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
13113 hardcode_libdir_separator_GO=':'
13114 link_all_deplibs_GO=yes
13115 export_dynamic_flag_spec_GO='${wl}-Bexport'
13116 runpath_var='LD_RUN_PATH'
13118 if test "$GCC" = yes; then
13119 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13120 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13121 else
13122 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13123 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13127 uts4*)
13128 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13129 hardcode_libdir_flag_spec_GO='-L$libdir'
13130 hardcode_shlibpath_var_GO=no
13134 ld_shlibs_GO=no
13136 esac
13138 if test x$host_vendor = xsni; then
13139 case $host in
13140 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13141 export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
13143 esac
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
13148 $as_echo "$ld_shlibs_GO" >&6; }
13149 test "$ld_shlibs_GO" = no && can_build_shared=no
13151 with_gnu_ld_GO=$with_gnu_ld
13159 # Do we need to explicitly link libc?
13161 case "x$archive_cmds_need_lc_GO" in
13162 x|xyes)
13163 # Assume -lc should be added
13164 archive_cmds_need_lc_GO=yes
13166 if test "$enable_shared" = yes && test "$GCC" = yes; then
13167 case $archive_cmds_GO in
13168 *'~'*)
13169 # FIXME: we may have to deal with multi-command sequences.
13171 '$CC '*)
13172 # Test whether the compiler implicitly links with -lc since on some
13173 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13174 # to ld, don't add -lc before -lgcc.
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13176 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13177 if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
13178 $as_echo_n "(cached) " >&6
13179 else
13180 $RM conftest*
13181 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13184 (eval $ac_compile) 2>&5
13185 ac_status=$?
13186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13187 test $ac_status = 0; } 2>conftest.err; then
13188 soname=conftest
13189 lib=conftest
13190 libobjs=conftest.$ac_objext
13191 deplibs=
13192 wl=$lt_prog_compiler_wl_GO
13193 pic_flag=$lt_prog_compiler_pic_GO
13194 compiler_flags=-v
13195 linker_flags=-v
13196 verstring=
13197 output_objdir=.
13198 libname=conftest
13199 lt_save_allow_undefined_flag=$allow_undefined_flag_GO
13200 allow_undefined_flag_GO=
13201 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13202 (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13203 ac_status=$?
13204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13205 test $ac_status = 0; }
13206 then
13207 lt_cv_archive_cmds_need_lc_GO=no
13208 else
13209 lt_cv_archive_cmds_need_lc_GO=yes
13211 allow_undefined_flag_GO=$lt_save_allow_undefined_flag
13212 else
13213 cat conftest.err 1>&5
13215 $RM conftest*
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13219 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13220 archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
13222 esac
13225 esac
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13291 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13292 hardcode_action_GO=
13293 if test -n "$hardcode_libdir_flag_spec_GO" ||
13294 test -n "$runpath_var_GO" ||
13295 test "X$hardcode_automatic_GO" = "Xyes" ; then
13297 # We can hardcode non-existent directories.
13298 if test "$hardcode_direct_GO" != no &&
13299 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13300 # have to relink, otherwise we might link with an installed library
13301 # when we should be linking with a yet-to-be-installed one
13302 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13303 test "$hardcode_minus_L_GO" != no; then
13304 # Linking always hardcodes the temporary library directory.
13305 hardcode_action_GO=relink
13306 else
13307 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13308 hardcode_action_GO=immediate
13310 else
13311 # We cannot hardcode anything, or else we can only hardcode existing
13312 # directories.
13313 hardcode_action_GO=unsupported
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13316 $as_echo "$hardcode_action_GO" >&6; }
13318 if test "$hardcode_action_GO" = relink ||
13319 test "$inherit_rpath_GO" = yes; then
13320 # Fast installation is not supported
13321 enable_fast_install=no
13322 elif test "$shlibpath_overrides_runpath" = yes ||
13323 test "$enable_shared" = no; then
13324 # Fast installation is not necessary
13325 enable_fast_install=needless
13336 ac_ext=c
13337 ac_cpp='$CPP $CPPFLAGS'
13338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13343 GCC=$lt_save_GCC
13344 CC="$lt_save_CC"
13349 ac_config_commands="$ac_config_commands libtool"
13354 # Only expand once:
13360 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
13363 for ac_prog in gawk mawk nawk awk
13365 # Extract the first word of "$ac_prog", so it can be a program name with args.
13366 set dummy $ac_prog; ac_word=$2
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13368 $as_echo_n "checking for $ac_word... " >&6; }
13369 if test "${ac_cv_prog_AWK+set}" = set; then :
13370 $as_echo_n "(cached) " >&6
13371 else
13372 if test -n "$AWK"; then
13373 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13374 else
13375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13376 for as_dir in $PATH
13378 IFS=$as_save_IFS
13379 test -z "$as_dir" && as_dir=.
13380 for ac_exec_ext in '' $ac_executable_extensions; do
13381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13382 ac_cv_prog_AWK="$ac_prog"
13383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13384 break 2
13386 done
13387 done
13388 IFS=$as_save_IFS
13392 AWK=$ac_cv_prog_AWK
13393 if test -n "$AWK"; then
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13395 $as_echo "$AWK" >&6; }
13396 else
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13398 $as_echo "no" >&6; }
13402 test -n "$AWK" && break
13403 done
13406 WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13409 # Check whether --enable-werror was given.
13410 if test "${enable_werror+set}" = set; then :
13411 enableval=$enable_werror;
13414 if test "x$enable_werror" != "xno"; then
13415 WERROR="-Werror"
13419 glibgo_toolexecdir=no
13420 glibgo_toolexeclibdir=no
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13423 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13424 # Check whether --enable-version-specific-runtime-libs was given.
13425 if test "${enable_version_specific_runtime_libs+set}" = set; then :
13426 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13427 yes) version_specific_libs=yes ;;
13428 no) version_specific_libs=no ;;
13429 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13430 esac
13431 else
13432 version_specific_libs=no
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13436 $as_echo "$version_specific_libs" >&6; }
13438 # Version-specific runtime libs processing.
13439 if test $version_specific_libs = yes; then
13440 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13441 glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13444 # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13445 # Install a library built with a cross compiler in tooldir, not libdir.
13446 if test -n "$with_cross_host" &&
13447 test x"$with_cross_host" != x"no"; then
13448 nover_glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13449 nover_glibgo_toolexeclibdir='${toolexecdir}/lib'
13450 else
13451 nover_glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13452 nover_glibgo_toolexeclibdir='${libdir}'
13454 multi_os_directory=`$GOC -print-multi-os-directory`
13455 case $multi_os_directory in
13456 .) ;; # Avoid trailing /.
13457 *) nover_glibgo_toolexeclibdir=${nover_glibgo_toolexeclibdir}/${multi_os_directory} ;;
13458 esac
13460 if test x"$glibgo_toolexecdir" = x"no"; then
13461 glibgo_toolexecdir="${nover_glibgo_toolexecdir}"
13462 glibgo_toolexeclibdir="${nover_glibgo_toolexeclibdir}"
13469 # See if the user wants to configure without libffi. Some
13470 # architectures don't support it. FIXME: We should set a default
13471 # based on the host.
13473 # Check whether --with-libffi was given.
13474 if test "${with_libffi+set}" = set; then :
13475 withval=$with_libffi; :
13476 else
13477 with_libffi=${with_libffi_default-yes}
13481 LIBFFI=
13482 LIBFFIINCS=
13483 if test "$with_libffi" != no; then
13485 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
13487 LIBFFI=../libffi/libffi_convenience.la
13488 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13493 # See if the user wants to configure without libatomic. This is useful if we are
13494 # on an architecture for which libgo does not need an atomic support library and
13495 # libatomic does not support our C compiler.
13497 # Check whether --with-libatomic was given.
13498 if test "${with_libatomic+set}" = set; then :
13499 withval=$with_libatomic; :
13500 else
13501 with_libatomic=${with_libatomic_default-yes}
13505 LIBATOMIC=
13506 if test "$with_libatomic" != no; then
13507 LIBATOMIC=../libatomic/libatomic_convenience.la
13511 # Used to tell GNU make to include a file without telling automake to
13512 # include it.
13513 go_include="-include"
13516 is_darwin=no
13517 is_freebsd=no
13518 is_irix=no
13519 is_linux=no
13520 is_netbsd=no
13521 is_openbsd=no
13522 is_dragonfly=no
13523 is_rtems=no
13524 is_solaris=no
13525 GOOS=unknown
13526 case ${host} in
13527 *-*-darwin*) is_darwin=yes; GOOS=darwin ;;
13528 *-*-freebsd*) is_freebsd=yes; GOOS=freebsd ;;
13529 *-*-irix6*) is_irix=yes; GOOS=irix ;;
13530 *-*-linux*) is_linux=yes; GOOS=linux ;;
13531 *-*-netbsd*) is_netbsd=yes; GOOS=netbsd ;;
13532 *-*-openbsd*) is_openbsd=yes; GOOS=openbsd ;;
13533 *-*-dragonfly*) is_dragonfly=yes; GOOS=dragonfly ;;
13534 *-*-rtems*) is_rtems=yes; GOOS=rtems ;;
13535 *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
13536 esac
13537 if test $is_darwin = yes; then
13538 LIBGO_IS_DARWIN_TRUE=
13539 LIBGO_IS_DARWIN_FALSE='#'
13540 else
13541 LIBGO_IS_DARWIN_TRUE='#'
13542 LIBGO_IS_DARWIN_FALSE=
13545 if test $is_freebsd = yes; then
13546 LIBGO_IS_FREEBSD_TRUE=
13547 LIBGO_IS_FREEBSD_FALSE='#'
13548 else
13549 LIBGO_IS_FREEBSD_TRUE='#'
13550 LIBGO_IS_FREEBSD_FALSE=
13553 if test $is_irix = yes; then
13554 LIBGO_IS_IRIX_TRUE=
13555 LIBGO_IS_IRIX_FALSE='#'
13556 else
13557 LIBGO_IS_IRIX_TRUE='#'
13558 LIBGO_IS_IRIX_FALSE=
13561 if test $is_linux = yes; then
13562 LIBGO_IS_LINUX_TRUE=
13563 LIBGO_IS_LINUX_FALSE='#'
13564 else
13565 LIBGO_IS_LINUX_TRUE='#'
13566 LIBGO_IS_LINUX_FALSE=
13569 if test $is_netbsd = yes; then
13570 LIBGO_IS_NETBSD_TRUE=
13571 LIBGO_IS_NETBSD_FALSE='#'
13572 else
13573 LIBGO_IS_NETBSD_TRUE='#'
13574 LIBGO_IS_NETBSD_FALSE=
13577 if test $is_openbsd = yes; then
13578 LIBGO_IS_OPENBSD_TRUE=
13579 LIBGO_IS_OPENBSD_FALSE='#'
13580 else
13581 LIBGO_IS_OPENBSD_TRUE='#'
13582 LIBGO_IS_OPENBSD_FALSE=
13585 if test $is_dragonfly = yes; then
13586 LIBGO_IS_DRAGONFLY_TRUE=
13587 LIBGO_IS_DRAGONFLY_FALSE='#'
13588 else
13589 LIBGO_IS_DRAGONFLY_TRUE='#'
13590 LIBGO_IS_DRAGONFLY_FALSE=
13593 if test $is_rtems = yes; then
13594 LIBGO_IS_RTEMS_TRUE=
13595 LIBGO_IS_RTEMS_FALSE='#'
13596 else
13597 LIBGO_IS_RTEMS_TRUE='#'
13598 LIBGO_IS_RTEMS_FALSE=
13601 if test $is_solaris = yes; then
13602 LIBGO_IS_SOLARIS_TRUE=
13603 LIBGO_IS_SOLARIS_FALSE='#'
13604 else
13605 LIBGO_IS_SOLARIS_TRUE='#'
13606 LIBGO_IS_SOLARIS_FALSE=
13611 USE_DEJAGNU=no
13612 case ${host} in
13613 *-*-rtems*) USE_DEJAGNU=yes ;;
13614 ${build}) ;;
13615 *) USE_DEJAGNU=yes ;;
13616 esac
13619 is_386=no
13620 is_alpha=no
13621 is_arm=no
13622 is_arm64=no
13623 is_m68k=no
13624 mips_abi=unknown
13625 is_ppc=no
13626 is_ppc64=no
13627 is_s390=no
13628 is_s390x=no
13629 is_sparc=no
13630 is_sparc64=no
13631 is_x86_64=no
13632 GOARCH=unknown
13633 case ${host} in
13634 alpha*-*-*)
13635 is_alpha=yes
13636 GOARCH=alpha
13638 aarch64-*-*)
13639 is_arm64=yes
13640 GOARCH=arm64
13642 arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
13643 is_arm=yes
13644 GOARCH=arm
13646 i[34567]86-*-* | x86_64-*-*)
13647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13648 /* end confdefs.h. */
13650 #ifdef __x86_64__
13651 #error 64-bit
13652 #endif
13653 _ACEOF
13654 if ac_fn_c_try_compile "$LINENO"; then :
13655 is_386=yes
13656 else
13657 is_x86_64=yes
13659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13660 if test "$is_386" = "yes"; then
13661 GOARCH=386
13662 else
13663 GOARCH=amd64
13666 m68k*-*-*)
13667 is_m68k=yes
13668 GOARCH=m68k
13670 mips*-*-*)
13671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13672 /* end confdefs.h. */
13674 #if _MIPS_SIM != _ABIO32
13675 #error not o32
13676 #endif
13677 _ACEOF
13678 if ac_fn_c_try_compile "$LINENO"; then :
13679 mips_abi="o32"
13680 else
13681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13682 /* end confdefs.h. */
13684 #if _MIPS_SIM != _ABIN32
13685 #error not n32
13686 #endif
13687 _ACEOF
13688 if ac_fn_c_try_compile "$LINENO"; then :
13689 mips_abi="n32"
13690 else
13691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13692 /* end confdefs.h. */
13694 #if _MIPS_SIM != _ABI64
13695 #error not n64
13696 #endif
13697 _ACEOF
13698 if ac_fn_c_try_compile "$LINENO"; then :
13699 mips_abi="n64"
13700 else
13701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13702 /* end confdefs.h. */
13704 #if _MIPS_SIM != _ABIO64
13705 #error not o64
13706 #endif
13707 _ACEOF
13708 if ac_fn_c_try_compile "$LINENO"; then :
13709 mips_abi="o64"
13710 else
13711 as_fn_error "unknown MIPS ABI" "$LINENO" 5
13712 mips_abi="n32"
13714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13721 case "$mips_abi" in
13722 "o32") GOARCH=mipso32 ;;
13723 "n32") GOARCH=mipsn32 ;;
13724 "n64") GOARCH=mipsn64 ;;
13725 "o64") GOARCH=mipso64 ;;
13726 esac
13728 rs6000*-*-* | powerpc*-*-*)
13729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13730 /* end confdefs.h. */
13732 #ifdef _ARCH_PPC64
13733 #error 64-bit
13734 #endif
13735 _ACEOF
13736 if ac_fn_c_try_compile "$LINENO"; then :
13737 is_ppc=yes
13738 else
13739 is_ppc64=yes
13741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13742 if test "$is_ppc" = "yes"; then
13743 GOARCH=ppc
13744 else
13745 GOARCH=ppc64
13748 s390*-*-*)
13749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13750 /* end confdefs.h. */
13752 #if defined(__s390x__)
13753 #error 64-bit
13754 #endif
13755 _ACEOF
13756 if ac_fn_c_try_compile "$LINENO"; then :
13757 is_s390=yes
13758 else
13759 is_s390x=yes
13761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13762 if test "$is_s390" = "yes"; then
13763 GOARCH=s390
13764 else
13765 GOARCH=s390x
13768 sparc*-*-*)
13769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13770 /* end confdefs.h. */
13772 #if defined(__sparcv9) || defined(__arch64__)
13773 #error 64-bit
13774 #endif
13775 _ACEOF
13776 if ac_fn_c_try_compile "$LINENO"; then :
13777 is_sparc=yes
13778 else
13779 is_sparc64=yes
13781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13782 if test "$is_sparc" = "yes"; then
13783 GOARCH=sparc
13784 else
13785 GOARCH=sparc64
13788 esac
13789 if test $is_386 = yes; then
13790 LIBGO_IS_386_TRUE=
13791 LIBGO_IS_386_FALSE='#'
13792 else
13793 LIBGO_IS_386_TRUE='#'
13794 LIBGO_IS_386_FALSE=
13797 if test $is_alpha = yes; then
13798 LIBGO_IS_ALPHA_TRUE=
13799 LIBGO_IS_ALPHA_FALSE='#'
13800 else
13801 LIBGO_IS_ALPHA_TRUE='#'
13802 LIBGO_IS_ALPHA_FALSE=
13805 if test $is_arm = yes; then
13806 LIBGO_IS_ARM_TRUE=
13807 LIBGO_IS_ARM_FALSE='#'
13808 else
13809 LIBGO_IS_ARM_TRUE='#'
13810 LIBGO_IS_ARM_FALSE=
13813 if test $is_arm64 = yes; then
13814 LIBGO_IS_ARM64_TRUE=
13815 LIBGO_IS_ARM64_FALSE='#'
13816 else
13817 LIBGO_IS_ARM64_TRUE='#'
13818 LIBGO_IS_ARM64_FALSE=
13821 if test $is_m68k = yes; then
13822 LIBGO_IS_M68K_TRUE=
13823 LIBGO_IS_M68K_FALSE='#'
13824 else
13825 LIBGO_IS_M68K_TRUE='#'
13826 LIBGO_IS_M68K_FALSE=
13829 if test $mips_abi != unknown; then
13830 LIBGO_IS_MIPS_TRUE=
13831 LIBGO_IS_MIPS_FALSE='#'
13832 else
13833 LIBGO_IS_MIPS_TRUE='#'
13834 LIBGO_IS_MIPS_FALSE=
13837 if test $mips_abi = o32; then
13838 LIBGO_IS_MIPSO32_TRUE=
13839 LIBGO_IS_MIPSO32_FALSE='#'
13840 else
13841 LIBGO_IS_MIPSO32_TRUE='#'
13842 LIBGO_IS_MIPSO32_FALSE=
13845 if test $mips_abi = n32; then
13846 LIBGO_IS_MIPSN32_TRUE=
13847 LIBGO_IS_MIPSN32_FALSE='#'
13848 else
13849 LIBGO_IS_MIPSN32_TRUE='#'
13850 LIBGO_IS_MIPSN32_FALSE=
13853 if test $mips_abi = n64; then
13854 LIBGO_IS_MIPSN64_TRUE=
13855 LIBGO_IS_MIPSN64_FALSE='#'
13856 else
13857 LIBGO_IS_MIPSN64_TRUE='#'
13858 LIBGO_IS_MIPSN64_FALSE=
13861 if test $mips_abi = o64; then
13862 LIBGO_IS_MIPSO64_TRUE=
13863 LIBGO_IS_MIPSO64_FALSE='#'
13864 else
13865 LIBGO_IS_MIPSO64_TRUE='#'
13866 LIBGO_IS_MIPSO64_FALSE=
13869 if test $is_ppc = yes; then
13870 LIBGO_IS_PPC_TRUE=
13871 LIBGO_IS_PPC_FALSE='#'
13872 else
13873 LIBGO_IS_PPC_TRUE='#'
13874 LIBGO_IS_PPC_FALSE=
13877 if test $is_ppc64 = yes; then
13878 LIBGO_IS_PPC64_TRUE=
13879 LIBGO_IS_PPC64_FALSE='#'
13880 else
13881 LIBGO_IS_PPC64_TRUE='#'
13882 LIBGO_IS_PPC64_FALSE=
13885 if test $is_s390 = yes; then
13886 LIBGO_IS_S390_TRUE=
13887 LIBGO_IS_S390_FALSE='#'
13888 else
13889 LIBGO_IS_S390_TRUE='#'
13890 LIBGO_IS_S390_FALSE=
13893 if test $is_s390x = yes; then
13894 LIBGO_IS_S390X_TRUE=
13895 LIBGO_IS_S390X_FALSE='#'
13896 else
13897 LIBGO_IS_S390X_TRUE='#'
13898 LIBGO_IS_S390X_FALSE=
13901 if test $is_sparc = yes; then
13902 LIBGO_IS_SPARC_TRUE=
13903 LIBGO_IS_SPARC_FALSE='#'
13904 else
13905 LIBGO_IS_SPARC_TRUE='#'
13906 LIBGO_IS_SPARC_FALSE=
13909 if test $is_sparc64 = yes; then
13910 LIBGO_IS_SPARC64_TRUE=
13911 LIBGO_IS_SPARC64_FALSE='#'
13912 else
13913 LIBGO_IS_SPARC64_TRUE='#'
13914 LIBGO_IS_SPARC64_FALSE=
13917 if test $is_x86_64 = yes; then
13918 LIBGO_IS_X86_64_TRUE=
13919 LIBGO_IS_X86_64_FALSE='#'
13920 else
13921 LIBGO_IS_X86_64_TRUE='#'
13922 LIBGO_IS_X86_64_FALSE=
13927 GO_LIBCALL_OS_FILE=
13928 GO_LIBCALL_OS_ARCH_FILE=
13929 GO_SYSCALL_OS_FILE=
13930 GO_SYSCALL_OS_ARCH_FILE=
13931 if test -f "${srcdir}/go/syscall/libcall_${GOOS}.go"; then
13932 GO_LIBCALL_OS_FILE="go/syscall/libcall_${GOOS}.go"
13934 if test -f "${srcdir}/go/syscall/libcall_${GOOS}_${GOARCH}.go"; then
13935 GO_LIBCALL_OS_ARCH_FILE="go/syscall/libcall_${GOOS}_${GOARCH}.go"
13937 if test -f "${srcdir}/go/syscall/syscall_${GOOS}.go"; then
13938 GO_SYSCALL_OS_FILE="go/syscall/syscall_${GOOS}.go"
13940 if test -f "${srcdir}/go/syscall/syscall_${GOOS}_${GOARCH}.go"; then
13941 GO_SYSCALL_OS_ARCH_FILE="go/syscall/syscall_${GOOS}_${GOARCH}.go"
13948 OSCFLAGS="-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
13949 case "$target" in
13950 mips-sgi-irix6.5*)
13951 # IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
13952 # msghdr in <sys/socket.h>.
13953 OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500"
13955 *-*-solaris2.1[01])
13956 # Solaris 10+ needs this so struct msghdr gets the msg_control
13957 # etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=600 as
13958 # above doesn't work with C99.
13959 OSCFLAGS="$OSCFLAGS -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
13961 esac
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
13965 $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
13966 if test "${libgo_cv_c_split_stack_supported+set}" = set; then :
13967 $as_echo_n "(cached) " >&6
13968 else
13969 CFLAGS_hold=$CFLAGS
13970 CFLAGS="$CFLAGS -fsplit-stack"
13971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13972 /* end confdefs.h. */
13973 int i;
13974 _ACEOF
13975 if ac_fn_c_try_compile "$LINENO"; then :
13976 libgo_cv_c_split_stack_supported=yes
13977 else
13978 libgo_cv_c_split_stack_supported=no
13980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13981 CFLAGS=$CFLAGS_hold
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
13984 $as_echo "$libgo_cv_c_split_stack_supported" >&6; }
13985 if test "$libgo_cv_c_split_stack_supported" = yes; then
13986 SPLIT_STACK=-fsplit-stack
13988 $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
13990 else
13991 SPLIT_STACK=
13994 if test "$libgo_cv_c_split_stack_supported" = yes; then
13995 USING_SPLIT_STACK_TRUE=
13996 USING_SPLIT_STACK_FALSE='#'
13997 else
13998 USING_SPLIT_STACK_TRUE='#'
13999 USING_SPLIT_STACK_FALSE=
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
14004 $as_echo_n "checking whether linker supports split stack... " >&6; }
14005 if test "${libgo_cv_c_linker_supports_split_stack+set}" = set; then :
14006 $as_echo_n "(cached) " >&6
14007 else
14008 libgo_cv_c_linker_supports_split_stack=no
14009 if $GOC -Wl,--help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
14010 libgo_cv_c_linker_supports_split_stack=yes
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
14014 $as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
14015 if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
14017 $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
14021 MATH_LIBS=
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
14023 $as_echo_n "checking for sqrt in -lm... " >&6; }
14024 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
14025 $as_echo_n "(cached) " >&6
14026 else
14027 ac_check_lib_save_LIBS=$LIBS
14028 LIBS="-lm $LIBS"
14029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14030 /* end confdefs.h. */
14032 /* Override any GCC internal prototype to avoid an error.
14033 Use char because int might match the return type of a GCC
14034 builtin and then its argument prototype would still apply. */
14035 #ifdef __cplusplus
14036 extern "C"
14037 #endif
14038 char sqrt ();
14040 main ()
14042 return sqrt ();
14044 return 0;
14046 _ACEOF
14047 if ac_fn_c_try_link "$LINENO"; then :
14048 ac_cv_lib_m_sqrt=yes
14049 else
14050 ac_cv_lib_m_sqrt=no
14052 rm -f core conftest.err conftest.$ac_objext \
14053 conftest$ac_exeext conftest.$ac_ext
14054 LIBS=$ac_check_lib_save_LIBS
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14057 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
14058 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
14059 MATH_LIBS=-lm
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14065 $as_echo_n "checking for socket libraries... " >&6; }
14066 if test "${libgo_cv_lib_sockets+set}" = set; then :
14067 $as_echo_n "(cached) " >&6
14068 else
14069 libgo_cv_lib_sockets=
14070 libgo_check_both=no
14071 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14072 if test "x$ac_cv_func_connect" = x""yes; then :
14073 libgo_check_socket=no
14074 else
14075 libgo_check_socket=yes
14078 if test "$libgo_check_socket" = "yes"; then
14079 unset ac_cv_func_connect
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14081 $as_echo_n "checking for main in -lsocket... " >&6; }
14082 if test "${ac_cv_lib_socket_main+set}" = set; then :
14083 $as_echo_n "(cached) " >&6
14084 else
14085 ac_check_lib_save_LIBS=$LIBS
14086 LIBS="-lsocket $LIBS"
14087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14088 /* end confdefs.h. */
14092 main ()
14094 return main ();
14096 return 0;
14098 _ACEOF
14099 if ac_fn_c_try_link "$LINENO"; then :
14100 ac_cv_lib_socket_main=yes
14101 else
14102 ac_cv_lib_socket_main=no
14104 rm -f core conftest.err conftest.$ac_objext \
14105 conftest$ac_exeext conftest.$ac_ext
14106 LIBS=$ac_check_lib_save_LIBS
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14109 $as_echo "$ac_cv_lib_socket_main" >&6; }
14110 if test "x$ac_cv_lib_socket_main" = x""yes; then :
14111 libgo_cv_lib_sockets="-lsocket"
14112 else
14113 libgo_check_both=yes
14117 if test "$libgo_check_both" = "yes"; then
14118 libgo_old_libs=$LIBS
14119 LIBS="$LIBS -lsocket -lnsl"
14120 unset ac_cv_func_accept
14121 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14122 if test "x$ac_cv_func_accept" = x""yes; then :
14123 libgo_check_nsl=no
14124 libgo_cv_lib_sockets="-lsocket -lnsl"
14127 unset ac_cv_func_accept
14128 LIBS=$libgo_old_libs
14130 unset ac_cv_func_gethostbyname
14131 libgo_old_libs="$LIBS"
14132 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14133 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
14135 else
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14137 $as_echo_n "checking for main in -lnsl... " >&6; }
14138 if test "${ac_cv_lib_nsl_main+set}" = set; then :
14139 $as_echo_n "(cached) " >&6
14140 else
14141 ac_check_lib_save_LIBS=$LIBS
14142 LIBS="-lnsl $LIBS"
14143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14144 /* end confdefs.h. */
14148 main ()
14150 return main ();
14152 return 0;
14154 _ACEOF
14155 if ac_fn_c_try_link "$LINENO"; then :
14156 ac_cv_lib_nsl_main=yes
14157 else
14158 ac_cv_lib_nsl_main=no
14160 rm -f core conftest.err conftest.$ac_objext \
14161 conftest$ac_exeext conftest.$ac_ext
14162 LIBS=$ac_check_lib_save_LIBS
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14165 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14166 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
14167 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
14172 unset ac_cv_func_gethostbyname
14173 LIBS=$libgo_old_libs
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
14177 $as_echo "$libgo_cv_lib_sockets" >&6; }
14178 NET_LIBS="$libgo_cv_lib_sockets"
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
14182 $as_echo_n "checking whether -pthread is supported... " >&6; }
14183 if test "${libgo_cv_lib_pthread+set}" = set; then :
14184 $as_echo_n "(cached) " >&6
14185 else
14186 CFLAGS_hold=$CFLAGS
14187 CFLAGS="$CFLAGS -pthread"
14188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14189 /* end confdefs.h. */
14190 int i;
14191 _ACEOF
14192 if ac_fn_c_try_compile "$LINENO"; then :
14193 libgo_cv_lib_pthread=yes
14194 else
14195 libgo_cv_lib_pthread=no
14197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14198 CFLAGS=$CFLAGS_hold
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
14201 $as_echo "$libgo_cv_lib_pthread" >&6; }
14202 PTHREAD_CFLAGS=
14203 if test "$libgo_cv_lib_pthread" = yes; then
14204 PTHREAD_CFLAGS=-pthread
14208 PTHREAD_LIBS=
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
14210 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
14211 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
14212 $as_echo_n "(cached) " >&6
14213 else
14214 ac_check_lib_save_LIBS=$LIBS
14215 LIBS="-lpthread $LIBS"
14216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14217 /* end confdefs.h. */
14219 /* Override any GCC internal prototype to avoid an error.
14220 Use char because int might match the return type of a GCC
14221 builtin and then its argument prototype would still apply. */
14222 #ifdef __cplusplus
14223 extern "C"
14224 #endif
14225 char pthread_create ();
14227 main ()
14229 return pthread_create ();
14231 return 0;
14233 _ACEOF
14234 if ac_fn_c_try_link "$LINENO"; then :
14235 ac_cv_lib_pthread_pthread_create=yes
14236 else
14237 ac_cv_lib_pthread_pthread_create=no
14239 rm -f core conftest.err conftest.$ac_objext \
14240 conftest$ac_exeext conftest.$ac_ext
14241 LIBS=$ac_check_lib_save_LIBS
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
14244 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
14245 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
14246 PTHREAD_LIBS=-lpthread
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
14252 $as_echo_n "checking for library containing sched_yield... " >&6; }
14253 if test "${ac_cv_search_sched_yield+set}" = set; then :
14254 $as_echo_n "(cached) " >&6
14255 else
14256 ac_func_search_save_LIBS=$LIBS
14257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14258 /* end confdefs.h. */
14260 /* Override any GCC internal prototype to avoid an error.
14261 Use char because int might match the return type of a GCC
14262 builtin and then its argument prototype would still apply. */
14263 #ifdef __cplusplus
14264 extern "C"
14265 #endif
14266 char sched_yield ();
14268 main ()
14270 return sched_yield ();
14272 return 0;
14274 _ACEOF
14275 for ac_lib in '' rt; do
14276 if test -z "$ac_lib"; then
14277 ac_res="none required"
14278 else
14279 ac_res=-l$ac_lib
14280 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14282 if ac_fn_c_try_link "$LINENO"; then :
14283 ac_cv_search_sched_yield=$ac_res
14285 rm -f core conftest.err conftest.$ac_objext \
14286 conftest$ac_exeext
14287 if test "${ac_cv_search_sched_yield+set}" = set; then :
14288 break
14290 done
14291 if test "${ac_cv_search_sched_yield+set}" = set; then :
14293 else
14294 ac_cv_search_sched_yield=no
14296 rm conftest.$ac_ext
14297 LIBS=$ac_func_search_save_LIBS
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
14300 $as_echo "$ac_cv_search_sched_yield" >&6; }
14301 ac_res=$ac_cv_search_sched_yield
14302 if test "$ac_res" != no; then :
14303 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
14308 $as_echo_n "checking for library containing nanosleep... " >&6; }
14309 if test "${ac_cv_search_nanosleep+set}" = set; then :
14310 $as_echo_n "(cached) " >&6
14311 else
14312 ac_func_search_save_LIBS=$LIBS
14313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14314 /* end confdefs.h. */
14316 /* Override any GCC internal prototype to avoid an error.
14317 Use char because int might match the return type of a GCC
14318 builtin and then its argument prototype would still apply. */
14319 #ifdef __cplusplus
14320 extern "C"
14321 #endif
14322 char nanosleep ();
14324 main ()
14326 return nanosleep ();
14328 return 0;
14330 _ACEOF
14331 for ac_lib in '' rt; do
14332 if test -z "$ac_lib"; then
14333 ac_res="none required"
14334 else
14335 ac_res=-l$ac_lib
14336 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14338 if ac_fn_c_try_link "$LINENO"; then :
14339 ac_cv_search_nanosleep=$ac_res
14341 rm -f core conftest.err conftest.$ac_objext \
14342 conftest$ac_exeext
14343 if test "${ac_cv_search_nanosleep+set}" = set; then :
14344 break
14346 done
14347 if test "${ac_cv_search_nanosleep+set}" = set; then :
14349 else
14350 ac_cv_search_nanosleep=no
14352 rm conftest.$ac_ext
14353 LIBS=$ac_func_search_save_LIBS
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
14356 $as_echo "$ac_cv_search_nanosleep" >&6; }
14357 ac_res=$ac_cv_search_nanosleep
14358 if test "$ac_res" != no; then :
14359 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14365 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14366 if test "${ac_cv_c_bigendian+set}" = set; then :
14367 $as_echo_n "(cached) " >&6
14368 else
14369 ac_cv_c_bigendian=unknown
14370 # See if we're dealing with a universal compiler.
14371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14372 /* end confdefs.h. */
14373 #ifndef __APPLE_CC__
14374 not a universal capable compiler
14375 #endif
14376 typedef int dummy;
14378 _ACEOF
14379 if ac_fn_c_try_compile "$LINENO"; then :
14381 # Check for potential -arch flags. It is not universal unless
14382 # there are at least two -arch flags with different values.
14383 ac_arch=
14384 ac_prev=
14385 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14386 if test -n "$ac_prev"; then
14387 case $ac_word in
14388 i?86 | x86_64 | ppc | ppc64)
14389 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14390 ac_arch=$ac_word
14391 else
14392 ac_cv_c_bigendian=universal
14393 break
14396 esac
14397 ac_prev=
14398 elif test "x$ac_word" = "x-arch"; then
14399 ac_prev=arch
14401 done
14403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14404 if test $ac_cv_c_bigendian = unknown; then
14405 # See if sys/param.h defines the BYTE_ORDER macro.
14406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14407 /* end confdefs.h. */
14408 #include <sys/types.h>
14409 #include <sys/param.h>
14412 main ()
14414 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14415 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14416 && LITTLE_ENDIAN)
14417 bogus endian macros
14418 #endif
14421 return 0;
14423 _ACEOF
14424 if ac_fn_c_try_compile "$LINENO"; then :
14425 # It does; now see whether it defined to BIG_ENDIAN or not.
14426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14427 /* end confdefs.h. */
14428 #include <sys/types.h>
14429 #include <sys/param.h>
14432 main ()
14434 #if BYTE_ORDER != BIG_ENDIAN
14435 not big endian
14436 #endif
14439 return 0;
14441 _ACEOF
14442 if ac_fn_c_try_compile "$LINENO"; then :
14443 ac_cv_c_bigendian=yes
14444 else
14445 ac_cv_c_bigendian=no
14447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14451 if test $ac_cv_c_bigendian = unknown; then
14452 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14454 /* end confdefs.h. */
14455 #include <limits.h>
14458 main ()
14460 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14461 bogus endian macros
14462 #endif
14465 return 0;
14467 _ACEOF
14468 if ac_fn_c_try_compile "$LINENO"; then :
14469 # It does; now see whether it defined to _BIG_ENDIAN or not.
14470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14471 /* end confdefs.h. */
14472 #include <limits.h>
14475 main ()
14477 #ifndef _BIG_ENDIAN
14478 not big endian
14479 #endif
14482 return 0;
14484 _ACEOF
14485 if ac_fn_c_try_compile "$LINENO"; then :
14486 ac_cv_c_bigendian=yes
14487 else
14488 ac_cv_c_bigendian=no
14490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14494 if test $ac_cv_c_bigendian = unknown; then
14495 # Compile a test program.
14496 if test "$cross_compiling" = yes; then :
14497 # Try to guess by grepping values from an object file.
14498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14499 /* end confdefs.h. */
14500 short int ascii_mm[] =
14501 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14502 short int ascii_ii[] =
14503 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14504 int use_ascii (int i) {
14505 return ascii_mm[i] + ascii_ii[i];
14507 short int ebcdic_ii[] =
14508 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14509 short int ebcdic_mm[] =
14510 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14511 int use_ebcdic (int i) {
14512 return ebcdic_mm[i] + ebcdic_ii[i];
14514 extern int foo;
14517 main ()
14519 return use_ascii (foo) == use_ebcdic (foo);
14521 return 0;
14523 _ACEOF
14524 if ac_fn_c_try_compile "$LINENO"; then :
14525 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14526 ac_cv_c_bigendian=yes
14528 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14529 if test "$ac_cv_c_bigendian" = unknown; then
14530 ac_cv_c_bigendian=no
14531 else
14532 # finding both strings is unlikely to happen, but who knows?
14533 ac_cv_c_bigendian=unknown
14537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14538 else
14539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14540 /* end confdefs.h. */
14541 $ac_includes_default
14543 main ()
14546 /* Are we little or big endian? From Harbison&Steele. */
14547 union
14549 long int l;
14550 char c[sizeof (long int)];
14551 } u;
14552 u.l = 1;
14553 return u.c[sizeof (long int) - 1] == 1;
14556 return 0;
14558 _ACEOF
14559 if ac_fn_c_try_run "$LINENO"; then :
14560 ac_cv_c_bigendian=no
14561 else
14562 ac_cv_c_bigendian=yes
14564 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14565 conftest.$ac_objext conftest.beam conftest.$ac_ext
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14571 $as_echo "$ac_cv_c_bigendian" >&6; }
14572 case $ac_cv_c_bigendian in #(
14573 yes)
14574 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14575 ;; #(
14577 ;; #(
14578 universal)
14580 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14582 ;; #(
14584 as_fn_error "unknown endianness
14585 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14586 esac
14591 # Check whether --with-system-libunwind was given.
14592 if test "${with_system_libunwind+set}" = set; then :
14593 withval=$with_system_libunwind;
14596 # If system-libunwind was not specifically set, pick a default setting.
14597 if test x$with_system_libunwind = x; then
14598 case ${target} in
14599 ia64-*-hpux*) with_system_libunwind=yes ;;
14600 *) with_system_libunwind=no ;;
14601 esac
14603 # Based on system-libunwind and target, do we have ipinfo?
14604 if test x$with_system_libunwind = xyes; then
14605 case ${target} in
14606 ia64-*-*) have_unwind_getipinfo=no ;;
14607 *) have_unwind_getipinfo=yes ;;
14608 esac
14609 else
14610 # Darwin before version 9 does not have _Unwind_GetIPInfo.
14612 case ${target} in
14613 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
14614 *) have_unwind_getipinfo=yes ;;
14615 esac
14619 if test x$have_unwind_getipinfo = xyes; then
14621 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
14626 # Check whether --enable-sjlj-exceptions was given.
14627 if test "${enable_sjlj_exceptions+set}" = set; then :
14628 enableval=$enable_sjlj_exceptions; case "$enableval" in
14629 yes|no|auto) ;;
14630 *) as_fn_error "unknown argument to --enable-sjlj-exceptions" "$LINENO" 5 ;;
14631 esac
14632 else
14633 enable_sjlj_exceptions=auto
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use setjmp/longjmp exceptions" >&5
14638 $as_echo_n "checking whether to use setjmp/longjmp exceptions... " >&6; }
14639 if test "${libgo_cv_lib_sjlj_exceptions+set}" = set; then :
14640 $as_echo_n "(cached) " >&6
14641 else
14642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14643 /* end confdefs.h. */
14645 void bar ();
14646 void clean (int *);
14647 void foo ()
14649 int i __attribute__ ((cleanup (clean)));
14650 bar();
14653 _ACEOF
14654 CFLAGS_hold=$CFLAGS
14655 CFLAGS="--save-temps -fexceptions"
14656 libgo_cv_lib_sjlj_exceptions=unknown
14657 if ac_fn_c_try_compile; then :
14658 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1; then
14659 libgo_cv_lib_sjlj_exceptions=yes
14660 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1; then
14661 libgo_cv_lib_sjlj_exceptions=no
14664 CFLAGS=$CFLAGS_hold
14665 rm -f conftest*
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sjlj_exceptions" >&5
14669 $as_echo "$libgo_cv_lib_sjlj_exceptions" >&6; }
14671 if test "$enable_sjlj_exceptions" = "auto"; then
14672 enable_sjlj_exceptions=$libgo_cv_lib_sjlj_exceptions
14675 case $enable_sjlj_exceptions in
14676 yes)
14678 $as_echo "#define LIBGO_SJLJ_EXCEPTIONS 1" >>confdefs.h
14684 as_fn_error "unable to detect exception model" "$LINENO" 5
14686 esac
14688 for ac_header in sched.h sys/file.h sys/mman.h syscall.h sys/epoll.h sys/inotify.h sys/ptrace.h sys/syscall.h sys/user.h sys/utsname.h sys/select.h sys/socket.h net/if.h net/if_arp.h net/route.h netpacket/packet.h sys/prctl.h sys/mount.h sys/vfs.h sys/statfs.h sys/timex.h sys/sysinfo.h utime.h linux/ether.h linux/fs.h linux/reboot.h netinet/icmp6.h netinet/in_syst.h netinet/ip.h netinet/ip_mroute.h netinet/if_ether.h
14689 do :
14690 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14691 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14692 eval as_val=\$$as_ac_Header
14693 if test "x$as_val" = x""yes; then :
14694 cat >>confdefs.h <<_ACEOF
14695 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14696 _ACEOF
14700 done
14703 for ac_header in linux/filter.h linux/if_addr.h linux/if_ether.h linux/if_tun.h linux/netlink.h linux/rtnetlink.h
14704 do :
14705 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14706 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_SOCKET_H
14707 #include <sys/socket.h>
14708 #endif
14711 eval as_val=\$$as_ac_Header
14712 if test "x$as_val" = x""yes; then :
14713 cat >>confdefs.h <<_ACEOF
14714 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14715 _ACEOF
14719 done
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <ustat.h> can be used" >&5
14723 $as_echo_n "checking whether <ustat.h> can be used... " >&6; }
14724 if test "${libgo_cv_c_ustat_h+set}" = set; then :
14725 $as_echo_n "(cached) " >&6
14726 else
14727 CFLAGS_hold=$CFLAGS
14728 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE $OSCFLAGS"
14729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14730 /* end confdefs.h. */
14732 #include <sys/types.h>
14733 #ifdef HAVE_LINUX_FILTER_H
14734 #include <linux/filter.h>
14735 #endif
14736 #include <ustat.h>
14738 _ACEOF
14739 if ac_fn_c_try_compile "$LINENO"; then :
14740 libgo_cv_c_ustat_h=yes
14741 else
14742 libgo_cv_c_ustat_h=no
14744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14745 CFLAGS=$CFLAGS_hold
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_ustat_h" >&5
14748 $as_echo "$libgo_cv_c_ustat_h" >&6; }
14749 if test $libgo_cv_c_ustat_h = yes; then
14751 $as_echo "#define HAVE_USTAT_H 1" >>confdefs.h
14755 if test "$ac_cv_header_sys_mman_h" = yes; then
14756 HAVE_SYS_MMAN_H_TRUE=
14757 HAVE_SYS_MMAN_H_FALSE='#'
14758 else
14759 HAVE_SYS_MMAN_H_TRUE='#'
14760 HAVE_SYS_MMAN_H_FALSE=
14764 for ac_func in strerror_r strsignal wait4 mincore setenv dl_iterate_phdr
14765 do :
14766 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14767 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14768 eval as_val=\$$as_ac_var
14769 if test "x$as_val" = x""yes; then :
14770 cat >>confdefs.h <<_ACEOF
14771 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14772 _ACEOF
14775 done
14777 if test "$ac_cv_func_strerror_r" = yes; then
14778 HAVE_STRERROR_R_TRUE=
14779 HAVE_STRERROR_R_FALSE='#'
14780 else
14781 HAVE_STRERROR_R_TRUE='#'
14782 HAVE_STRERROR_R_FALSE=
14785 if test "$ac_cv_func_wait4" = yes; then
14786 HAVE_WAIT4_TRUE=
14787 HAVE_WAIT4_FALSE='#'
14788 else
14789 HAVE_WAIT4_TRUE='#'
14790 HAVE_WAIT4_FALSE=
14794 for ac_func in accept4 dup3 epoll_create1 faccessat fallocate fchmodat fchownat futimesat getxattr inotify_add_watch inotify_init inotify_init1 inotify_rm_watch listxattr mkdirat mknodat open64 openat pipe2 removexattr renameat setxattr sync_file_range splice tee unlinkat unshare utimensat
14795 do :
14796 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14797 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14798 eval as_val=\$$as_ac_var
14799 if test "x$as_val" = x""yes; then :
14800 cat >>confdefs.h <<_ACEOF
14801 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14802 _ACEOF
14805 done
14807 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14808 if test "x$ac_cv_type_off_t" = x""yes; then :
14810 else
14812 cat >>confdefs.h <<_ACEOF
14813 #define off_t long int
14814 _ACEOF
14818 ac_fn_c_check_type "$LINENO" "loff_t" "ac_cv_type_loff_t" "$ac_includes_default"
14819 if test "x$ac_cv_type_loff_t" = x""yes; then :
14821 cat >>confdefs.h <<_ACEOF
14822 #define HAVE_LOFF_T 1
14823 _ACEOF
14829 LIBS_hold="$LIBS"
14830 LIBS="$LIBS -lm"
14831 for ac_func in cosl expl logl sinl tanl acosl asinl atanl atan2l expm1l ldexpl log10l log1pl
14832 do :
14833 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14834 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14835 eval as_val=\$$as_ac_var
14836 if test "x$as_val" = x""yes; then :
14837 cat >>confdefs.h <<_ACEOF
14838 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14839 _ACEOF
14842 done
14844 LIBS="$LIBS_hold"
14846 CFLAGS_hold="$CFLAGS"
14847 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14848 LIBS_hold="$LIBS"
14849 LIBS="$LIBS $PTHREAD_LIBS"
14850 for ac_func in sem_timedwait
14851 do :
14852 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
14853 if test "x$ac_cv_func_sem_timedwait" = x""yes; then :
14854 cat >>confdefs.h <<_ACEOF
14855 #define HAVE_SEM_TIMEDWAIT 1
14856 _ACEOF
14859 done
14861 CFLAGS="$CFLAGS_hold"
14862 LIBS="$LIBS_hold"
14864 LIBS_hold="$LIBS"
14865 LIBS="$LIBS $MATH_LIBS"
14866 for ac_func in matherr
14867 do :
14868 ac_fn_c_check_func "$LINENO" "matherr" "ac_cv_func_matherr"
14869 if test "x$ac_cv_func_matherr" = x""yes; then :
14870 cat >>confdefs.h <<_ACEOF
14871 #define HAVE_MATHERR 1
14872 _ACEOF
14875 done
14877 LIBS="$LIBS_hold"
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_4" >&5
14880 $as_echo_n "checking for __sync_bool_compare_and_swap_4... " >&6; }
14881 if test "${libgo_cv_func___sync_bool_compare_and_swap_4+set}" = set; then :
14882 $as_echo_n "(cached) " >&6
14883 else
14884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14885 /* end confdefs.h. */
14887 typedef unsigned int uint32 __attribute__ ((mode (SI)));
14888 uint32 i;
14889 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14891 _ACEOF
14892 if ac_fn_c_try_link "$LINENO"; then :
14893 libgo_cv_func___sync_bool_compare_and_swap_4=yes
14894 else
14895 libgo_cv_func___sync_bool_compare_and_swap_4=no
14897 rm -f core conftest.err conftest.$ac_objext \
14898 conftest$ac_exeext conftest.$ac_ext
14900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_4" >&5
14901 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_4" >&6; }
14902 if test "$libgo_cv_func___sync_bool_compare_and_swap_4" = "yes"; then
14904 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4 1" >>confdefs.h
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_8" >&5
14909 $as_echo_n "checking for __sync_bool_compare_and_swap_8... " >&6; }
14910 if test "${libgo_cv_func___sync_bool_compare_and_swap_8+set}" = set; then :
14911 $as_echo_n "(cached) " >&6
14912 else
14913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14914 /* end confdefs.h. */
14916 typedef unsigned int uint64 __attribute__ ((mode (DI)));
14917 uint64 i;
14918 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14920 _ACEOF
14921 if ac_fn_c_try_link "$LINENO"; then :
14922 libgo_cv_func___sync_bool_compare_and_swap_8=yes
14923 else
14924 libgo_cv_func___sync_bool_compare_and_swap_8=no
14926 rm -f core conftest.err conftest.$ac_objext \
14927 conftest$ac_exeext conftest.$ac_ext
14929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_8" >&5
14930 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_8" >&6; }
14931 if test "$libgo_cv_func___sync_bool_compare_and_swap_8" = "yes"; then
14933 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_8 1" >>confdefs.h
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add_4" >&5
14938 $as_echo_n "checking for __sync_fetch_and_add_4... " >&6; }
14939 if test "${libgo_cv_func___sync_fetch_and_add_4+set}" = set; then :
14940 $as_echo_n "(cached) " >&6
14941 else
14942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14943 /* end confdefs.h. */
14945 typedef unsigned int uint32 __attribute__ ((mode (SI)));
14946 uint32 i;
14947 int main() { return __sync_fetch_and_add (&i, 1); }
14949 _ACEOF
14950 if ac_fn_c_try_link "$LINENO"; then :
14951 libgo_cv_func___sync_fetch_and_add_4=yes
14952 else
14953 libgo_cv_func___sync_fetch_and_add_4=no
14955 rm -f core conftest.err conftest.$ac_objext \
14956 conftest$ac_exeext conftest.$ac_ext
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_fetch_and_add_4" >&5
14959 $as_echo "$libgo_cv_func___sync_fetch_and_add_4" >&6; }
14960 if test "$libgo_cv_func___sync_fetch_and_add_4" = "yes"; then
14962 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD_4 1" >>confdefs.h
14966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_add_and_fetch_8" >&5
14967 $as_echo_n "checking for __sync_add_and_fetch_8... " >&6; }
14968 if test "${libgo_cv_func___sync_add_and_fetch_8+set}" = set; then :
14969 $as_echo_n "(cached) " >&6
14970 else
14971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14972 /* end confdefs.h. */
14974 typedef unsigned int uint64 __attribute__ ((mode (DI)));
14975 uint64 i;
14976 int main() { return __sync_add_and_fetch (&i, 1); }
14978 _ACEOF
14979 if ac_fn_c_try_link "$LINENO"; then :
14980 libgo_cv_func___sync_add_and_fetch_8=yes
14981 else
14982 libgo_cv_func___sync_add_and_fetch_8=no
14984 rm -f core conftest.err conftest.$ac_objext \
14985 conftest$ac_exeext conftest.$ac_ext
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_add_and_fetch_8" >&5
14988 $as_echo "$libgo_cv_func___sync_add_and_fetch_8" >&6; }
14989 if test "$libgo_cv_func___sync_add_and_fetch_8" = "yes"; then
14991 $as_echo "#define HAVE_SYNC_ADD_AND_FETCH_8 1" >>confdefs.h
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
14996 $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
14997 if test "${libgo_cv_c_stringops+set}" = set; then :
14998 $as_echo_n "(cached) " >&6
14999 else
15000 CFLAGS_hold=$CFLAGS
15001 CFLAGS="$CFLAGS -minline-all-stringops"
15002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15003 /* end confdefs.h. */
15004 int i;
15005 _ACEOF
15006 if ac_fn_c_try_compile "$LINENO"; then :
15007 libgo_cv_c_stringops=yes
15008 else
15009 libgo_cv_c_stringops=no
15011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15012 CFLAGS=$CFLAGS_hold
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
15015 $as_echo "$libgo_cv_c_stringops" >&6; }
15016 STRINGOPS_FLAG=
15017 if test "$libgo_cv_c_stringops" = yes; then
15018 STRINGOPS_FLAG=-minline-all-stringops
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -mfancy-math-387" >&5
15023 $as_echo_n "checking whether compiler supports -mfancy-math-387... " >&6; }
15024 if test "${libgo_cv_c_fancymath+set}" = set; then :
15025 $as_echo_n "(cached) " >&6
15026 else
15027 CFLAGS_hold=$CFLAGS
15028 CFLAGS="$CFLAGS -mfancy-math-387"
15029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15030 /* end confdefs.h. */
15031 int i;
15032 _ACEOF
15033 if ac_fn_c_try_compile "$LINENO"; then :
15034 libgo_cv_c_fancymath=yes
15035 else
15036 libgo_cv_c_fancymath=no
15038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15039 CFLAGS=$CFLAGS_hold
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_fancymath" >&5
15042 $as_echo "$libgo_cv_c_fancymath" >&6; }
15043 MATH_FLAG=
15044 if test "$libgo_cv_c_fancymath" = yes; then
15045 MATH_FLAG="-mfancy-math-387 -funsafe-math-optimizations"
15046 else
15047 MATH_FLAG="-ffp-contract=off"
15051 CFLAGS_hold=$CFLAGS
15052 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
15053 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
15054 if test "x$ac_cv_type_off64_t" = x""yes; then :
15056 cat >>confdefs.h <<_ACEOF
15057 #define HAVE_OFF64_T 1
15058 _ACEOF
15063 CFLAGS=$CFLAGS_hold
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event size" >&5
15066 $as_echo_n "checking epoll_event size... " >&6; }
15067 if test "${libgo_cv_c_epoll_event_size+set}" = set; then :
15068 $as_echo_n "(cached) " >&6
15069 else
15070 if ac_fn_c_compute_int "$LINENO" "sizeof (struct epoll_event)" "libgo_cv_c_epoll_event_size" "#include <sys/epoll.h>"; then :
15072 else
15073 libgo_cv_c_epoll_event_size=0
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_size" >&5
15078 $as_echo "$libgo_cv_c_epoll_event_size" >&6; }
15079 SIZEOF_STRUCT_EPOLL_EVENT=${libgo_cv_c_epoll_event_size}
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event data.fd offset" >&5
15083 $as_echo_n "checking epoll_event data.fd offset... " >&6; }
15084 if test "${libgo_cv_c_epoll_event_fd_offset+set}" = set; then :
15085 $as_echo_n "(cached) " >&6
15086 else
15087 if ac_fn_c_compute_int "$LINENO" "offsetof (struct epoll_event, data.fd)" "libgo_cv_c_epoll_event_fd_offset" "#include <stddef.h>
15088 #include <sys/epoll.h>"; then :
15090 else
15091 libgo_cv_c_epoll_event_fd_offset=0
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_fd_offset" >&5
15096 $as_echo "$libgo_cv_c_epoll_event_fd_offset" >&6; }
15097 STRUCT_EPOLL_EVENT_FD_OFFSET=${libgo_cv_c_epoll_event_fd_offset}
15100 ac_fn_c_check_type "$LINENO" "struct exception" "ac_cv_type_struct_exception" "#include <math.h>
15102 if test "x$ac_cv_type_struct_exception" = x""yes; then :
15103 libgo_has_struct_exception=yes
15104 else
15105 libgo_has_struct_exception=no
15108 if test "$libgo_has_struct_exception" = "yes"; then
15110 $as_echo "#define HAVE_STRUCT_EXCEPTION 1" >>confdefs.h
15114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setcontext clobbers TLS variables" >&5
15115 $as_echo_n "checking whether setcontext clobbers TLS variables... " >&6; }
15116 if test "${libgo_cv_lib_setcontext_clobbers_tls+set}" = set; then :
15117 $as_echo_n "(cached) " >&6
15118 else
15119 CFLAGS_hold="$CFLAGS"
15120 CFLAGS="$PTHREAD_CFLAGS"
15121 LIBS_hold="$LIBS"
15122 LIBS="$LIBS $PTHREAD_LIBS"
15123 # The cast to long int works around a bug in the HP C Compiler
15124 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15125 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15126 # This bug is HP SR number 8606223364.
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15128 $as_echo_n "checking size of void *... " >&6; }
15129 if test "${ac_cv_sizeof_void_p+set}" = set; then :
15130 $as_echo_n "(cached) " >&6
15131 else
15132 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15134 else
15135 if test "$ac_cv_type_void_p" = yes; then
15136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15138 { as_fn_set_status 77
15139 as_fn_error "cannot compute sizeof (void *)
15140 See \`config.log' for more details." "$LINENO" 5; }; }
15141 else
15142 ac_cv_sizeof_void_p=0
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15148 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15152 cat >>confdefs.h <<_ACEOF
15153 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15154 _ACEOF
15157 as_fn_arith $ac_cv_sizeof_void_p \* 8 && ptr_type_size=$as_val
15158 if test "$cross_compiling" = yes; then :
15159 case "$target:$ptr_type_size" in
15160 i?86-*-solaris2.1[01]:64 | x86_64*-*-solaris2.1[01]:64)
15161 libgo_cv_lib_setcontext_clobbers_tls=yes ;;
15163 libgo_cv_lib_setcontext_clobbers_tls=no ;;
15164 esac
15166 else
15167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15168 /* end confdefs.h. */
15170 #include <pthread.h>
15171 #include <stdlib.h>
15172 #include <ucontext.h>
15173 #include <unistd.h>
15175 __thread int tls;
15177 static char stack[10 * 1024 * 1024];
15178 static ucontext_t c;
15180 /* Called via makecontext/setcontext. */
15182 static void
15183 cfn (void)
15185 exit (tls);
15188 /* Called via pthread_create. */
15190 static void *
15191 tfn (void *dummy)
15193 /* The thread should still see this value after calling
15194 setcontext. */
15195 tls = 0;
15197 setcontext (&c);
15199 /* The call to setcontext should not return. */
15200 abort ();
15204 main ()
15206 pthread_t tid;
15208 /* The thread should not see this value. */
15209 tls = 1;
15211 if (getcontext (&c) < 0)
15212 abort ();
15214 c.uc_stack.ss_sp = stack;
15215 #ifdef MAKECONTEXT_STACK_TOP
15216 c.uc_stack.ss_sp += sizeof stack;
15217 #endif
15218 c.uc_stack.ss_flags = 0;
15219 c.uc_stack.ss_size = sizeof stack;
15220 c.uc_link = NULL;
15221 makecontext (&c, cfn, 0);
15223 if (pthread_create (&tid, NULL, tfn, NULL) != 0)
15224 abort ();
15226 if (pthread_join (tid, NULL) != 0)
15227 abort ();
15229 /* The thread should have called exit. */
15230 abort ();
15233 _ACEOF
15234 if ac_fn_c_try_run "$LINENO"; then :
15235 libgo_cv_lib_setcontext_clobbers_tls=no
15236 else
15237 libgo_cv_lib_setcontext_clobbers_tls=yes
15239 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15240 conftest.$ac_objext conftest.beam conftest.$ac_ext
15243 CFLAGS="$CFLAGS_hold"
15244 LIBS="$LIBS_hold"
15247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_setcontext_clobbers_tls" >&5
15248 $as_echo "$libgo_cv_lib_setcontext_clobbers_tls" >&6; }
15249 if test "$libgo_cv_lib_setcontext_clobbers_tls" = "yes"; then
15251 $as_echo "#define SETCONTEXT_CLOBBERS_TLS 1" >>confdefs.h
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
15256 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
15257 if test "${libgo_cv_ro_eh_frame+set}" = set; then :
15258 $as_echo_n "(cached) " >&6
15259 else
15261 libgo_cv_ro_eh_frame=no
15262 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
15263 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
15264 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
15265 libgo_cv_ro_eh_frame=yes
15266 elif grep '.section.*eh_frame.*#alloc' conftest.c \
15267 | grep -v '#write' > /dev/null; then
15268 libgo_cv_ro_eh_frame=yes
15271 rm -f conftest.*
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ro_eh_frame" >&5
15275 $as_echo "$libgo_cv_ro_eh_frame" >&6; }
15276 if test "x$libgo_cv_ro_eh_frame" = xyes; then
15278 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
15280 else
15282 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Qunused-arguments" >&5
15287 $as_echo_n "checking if compiler supports -Qunused-arguments... " >&6; }
15288 if test "${libgo_cv_c_unused_arguments+set}" = set; then :
15289 $as_echo_n "(cached) " >&6
15290 else
15291 CFLAGS_hold=$CFLAGS
15292 CFLAGS="$CFLAGS -Qunused-arguments"
15293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15294 /* end confdefs.h. */
15295 int i;
15296 _ACEOF
15297 if ac_fn_c_try_compile "$LINENO"; then :
15298 libgo_cv_c_unused_arguments=yes
15299 else
15300 libgo_cv_c_unused_arguments=no
15302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15303 CFLAGS=$CFLAGS_hold
15305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_unused_arguments" >&5
15306 $as_echo "$libgo_cv_c_unused_arguments" >&6; }
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports GNU comdat group syntax" >&5
15309 $as_echo_n "checking if assembler supports GNU comdat group syntax... " >&6; }
15310 if test "${libgo_cv_as_comdat_gnu+set}" = set; then :
15311 $as_echo_n "(cached) " >&6
15312 else
15314 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
15315 CFLAGS_hold=$CFLAGS
15316 if test "$libgo_cv_c_unused_arguments" = yes; then
15317 CFLAGS="$CFLAGS -Qunused-arguments"
15319 if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
15320 libgo_cv_as_comdat_gnu=yes
15321 else
15322 libgo_cv_as_comdat_gnu=no
15324 CFLAGS=$CFLAGS_hold
15327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_comdat_gnu" >&5
15328 $as_echo "$libgo_cv_as_comdat_gnu" >&6; }
15329 if test "x$libgo_cv_as_comdat_gnu" = xyes; then
15331 $as_echo "#define HAVE_AS_COMDAT_GAS 1" >>confdefs.h
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
15336 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
15337 if test "${libgo_cv_as_x86_pcrel+set}" = set; then :
15338 $as_echo_n "(cached) " >&6
15339 else
15341 libgo_cv_as_x86_pcrel=yes
15342 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
15343 CFLAGS_hold=$CFLAGS
15344 if test "$libgo_cv_c_unused_arguments" = yes; then
15345 CFLAGS="$CFLAGS -Qunused-arguments"
15347 if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
15348 libgo_cv_as_x86_pcrel=no
15350 CFLAGS=$CFLAGS_hold
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_pcrel" >&5
15354 $as_echo "$libgo_cv_as_x86_pcrel" >&6; }
15355 if test "x$libgo_cv_as_x86_pcrel" = xyes; then
15357 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
15362 $as_echo_n "checking assembler supports unwind section type... " >&6; }
15363 if test "${libgo_cv_as_x86_64_unwind_section_type+set}" = set; then :
15364 $as_echo_n "(cached) " >&6
15365 else
15367 libgo_cv_as_x86_64_unwind_section_type=yes
15368 echo '.section .eh_frame,"a",@unwind' > conftest.s
15369 CFLAGS_hold=$CFLAGS
15370 if test "$libgo_cv_c_unused_arguments" = yes; then
15371 CFLAGS="$CFLAGS -Qunused-arguments"
15373 if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
15374 libgo_cv_as_x86_64_unwind_section_type=no
15376 CFLAGS=$CFLAGS_hold
15379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_64_unwind_section_type" >&5
15380 $as_echo "$libgo_cv_as_x86_64_unwind_section_type" >&6; }
15381 if test "x$libgo_cv_as_x86_64_unwind_section_type" = xyes; then
15383 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
15387 cat >confcache <<\_ACEOF
15388 # This file is a shell script that caches the results of configure
15389 # tests run on this system so they can be shared between configure
15390 # scripts and configure runs, see configure's option --config-cache.
15391 # It is not useful on other systems. If it contains results you don't
15392 # want to keep, you may remove or edit it.
15394 # config.status only pays attention to the cache file if you give it
15395 # the --recheck option to rerun configure.
15397 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15398 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15399 # following values.
15401 _ACEOF
15403 # The following way of writing the cache mishandles newlines in values,
15404 # but we know of no workaround that is simple, portable, and efficient.
15405 # So, we kill variables containing newlines.
15406 # Ultrix sh set writes to stderr and can't be redirected directly,
15407 # and sets the high bit in the cache file unless we assign to the vars.
15409 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15410 eval ac_val=\$$ac_var
15411 case $ac_val in #(
15412 *${as_nl}*)
15413 case $ac_var in #(
15414 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15415 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15416 esac
15417 case $ac_var in #(
15418 _ | IFS | as_nl) ;; #(
15419 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15420 *) { eval $ac_var=; unset $ac_var;} ;;
15421 esac ;;
15422 esac
15423 done
15425 (set) 2>&1 |
15426 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15427 *${as_nl}ac_space=\ *)
15428 # `set' does not quote correctly, so add quotes: double-quote
15429 # substitution turns \\\\ into \\, and sed turns \\ into \.
15430 sed -n \
15431 "s/'/'\\\\''/g;
15432 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15433 ;; #(
15435 # `set' quotes correctly as required by POSIX, so do not add quotes.
15436 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15438 esac |
15439 sort
15441 sed '
15442 /^ac_cv_env_/b end
15443 t clear
15444 :clear
15445 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15446 t end
15447 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15448 :end' >>confcache
15449 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15450 if test -w "$cache_file"; then
15451 test "x$cache_file" != "x/dev/null" &&
15452 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15453 $as_echo "$as_me: updating cache $cache_file" >&6;}
15454 cat confcache >$cache_file
15455 else
15456 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15457 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15460 rm -f confcache
15462 if test ${multilib} = yes; then
15463 multilib_arg="--enable-multilib"
15464 else
15465 multilib_arg=
15468 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
15471 ac_config_commands="$ac_config_commands default"
15474 cat >confcache <<\_ACEOF
15475 # This file is a shell script that caches the results of configure
15476 # tests run on this system so they can be shared between configure
15477 # scripts and configure runs, see configure's option --config-cache.
15478 # It is not useful on other systems. If it contains results you don't
15479 # want to keep, you may remove or edit it.
15481 # config.status only pays attention to the cache file if you give it
15482 # the --recheck option to rerun configure.
15484 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15485 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15486 # following values.
15488 _ACEOF
15490 # The following way of writing the cache mishandles newlines in values,
15491 # but we know of no workaround that is simple, portable, and efficient.
15492 # So, we kill variables containing newlines.
15493 # Ultrix sh set writes to stderr and can't be redirected directly,
15494 # and sets the high bit in the cache file unless we assign to the vars.
15496 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15497 eval ac_val=\$$ac_var
15498 case $ac_val in #(
15499 *${as_nl}*)
15500 case $ac_var in #(
15501 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15502 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15503 esac
15504 case $ac_var in #(
15505 _ | IFS | as_nl) ;; #(
15506 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15507 *) { eval $ac_var=; unset $ac_var;} ;;
15508 esac ;;
15509 esac
15510 done
15512 (set) 2>&1 |
15513 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15514 *${as_nl}ac_space=\ *)
15515 # `set' does not quote correctly, so add quotes: double-quote
15516 # substitution turns \\\\ into \\, and sed turns \\ into \.
15517 sed -n \
15518 "s/'/'\\\\''/g;
15519 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15520 ;; #(
15522 # `set' quotes correctly as required by POSIX, so do not add quotes.
15523 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15525 esac |
15526 sort
15528 sed '
15529 /^ac_cv_env_/b end
15530 t clear
15531 :clear
15532 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15533 t end
15534 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15535 :end' >>confcache
15536 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15537 if test -w "$cache_file"; then
15538 test "x$cache_file" != "x/dev/null" &&
15539 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15540 $as_echo "$as_me: updating cache $cache_file" >&6;}
15541 cat confcache >$cache_file
15542 else
15543 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15544 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15547 rm -f confcache
15549 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15550 # Let make expand exec_prefix.
15551 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15553 DEFS=-DHAVE_CONFIG_H
15555 ac_libobjs=
15556 ac_ltlibobjs=
15557 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15558 # 1. Remove the extension, and $U if already installed.
15559 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15560 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15561 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15562 # will be set to the directory where LIBOBJS objects are built.
15563 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15564 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15565 done
15566 LIBOBJS=$ac_libobjs
15568 LTLIBOBJS=$ac_ltlibobjs
15571 if test -n "$EXEEXT"; then
15572 am__EXEEXT_TRUE=
15573 am__EXEEXT_FALSE='#'
15574 else
15575 am__EXEEXT_TRUE='#'
15576 am__EXEEXT_FALSE=
15579 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15580 as_fn_error "conditional \"AMDEP\" was never defined.
15581 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15583 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15584 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15585 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15587 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15588 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15589 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15591 if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
15592 as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined.
15593 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15595 if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
15596 as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined.
15597 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15599 if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
15600 as_fn_error "conditional \"LIBGO_IS_IRIX\" was never defined.
15601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15603 if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
15604 as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined.
15605 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15607 if test -z "${LIBGO_IS_NETBSD_TRUE}" && test -z "${LIBGO_IS_NETBSD_FALSE}"; then
15608 as_fn_error "conditional \"LIBGO_IS_NETBSD\" was never defined.
15609 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15611 if test -z "${LIBGO_IS_OPENBSD_TRUE}" && test -z "${LIBGO_IS_OPENBSD_FALSE}"; then
15612 as_fn_error "conditional \"LIBGO_IS_OPENBSD\" was never defined.
15613 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15615 if test -z "${LIBGO_IS_DRAGONFLY_TRUE}" && test -z "${LIBGO_IS_DRAGONFLY_FALSE}"; then
15616 as_fn_error "conditional \"LIBGO_IS_DRAGONFLY\" was never defined.
15617 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15619 if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
15620 as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined.
15621 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15623 if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
15624 as_fn_error "conditional \"LIBGO_IS_SOLARIS\" was never defined.
15625 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15627 if test -z "${LIBGO_IS_386_TRUE}" && test -z "${LIBGO_IS_386_FALSE}"; then
15628 as_fn_error "conditional \"LIBGO_IS_386\" was never defined.
15629 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15631 if test -z "${LIBGO_IS_ALPHA_TRUE}" && test -z "${LIBGO_IS_ALPHA_FALSE}"; then
15632 as_fn_error "conditional \"LIBGO_IS_ALPHA\" was never defined.
15633 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15635 if test -z "${LIBGO_IS_ARM_TRUE}" && test -z "${LIBGO_IS_ARM_FALSE}"; then
15636 as_fn_error "conditional \"LIBGO_IS_ARM\" was never defined.
15637 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15639 if test -z "${LIBGO_IS_ARM64_TRUE}" && test -z "${LIBGO_IS_ARM64_FALSE}"; then
15640 as_fn_error "conditional \"LIBGO_IS_ARM64\" was never defined.
15641 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15643 if test -z "${LIBGO_IS_M68K_TRUE}" && test -z "${LIBGO_IS_M68K_FALSE}"; then
15644 as_fn_error "conditional \"LIBGO_IS_M68K\" was never defined.
15645 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15647 if test -z "${LIBGO_IS_MIPS_TRUE}" && test -z "${LIBGO_IS_MIPS_FALSE}"; then
15648 as_fn_error "conditional \"LIBGO_IS_MIPS\" was never defined.
15649 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15651 if test -z "${LIBGO_IS_MIPSO32_TRUE}" && test -z "${LIBGO_IS_MIPSO32_FALSE}"; then
15652 as_fn_error "conditional \"LIBGO_IS_MIPSO32\" was never defined.
15653 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15655 if test -z "${LIBGO_IS_MIPSN32_TRUE}" && test -z "${LIBGO_IS_MIPSN32_FALSE}"; then
15656 as_fn_error "conditional \"LIBGO_IS_MIPSN32\" was never defined.
15657 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15659 if test -z "${LIBGO_IS_MIPSN64_TRUE}" && test -z "${LIBGO_IS_MIPSN64_FALSE}"; then
15660 as_fn_error "conditional \"LIBGO_IS_MIPSN64\" was never defined.
15661 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15663 if test -z "${LIBGO_IS_MIPSO64_TRUE}" && test -z "${LIBGO_IS_MIPSO64_FALSE}"; then
15664 as_fn_error "conditional \"LIBGO_IS_MIPSO64\" was never defined.
15665 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15667 if test -z "${LIBGO_IS_PPC_TRUE}" && test -z "${LIBGO_IS_PPC_FALSE}"; then
15668 as_fn_error "conditional \"LIBGO_IS_PPC\" was never defined.
15669 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15671 if test -z "${LIBGO_IS_PPC64_TRUE}" && test -z "${LIBGO_IS_PPC64_FALSE}"; then
15672 as_fn_error "conditional \"LIBGO_IS_PPC64\" was never defined.
15673 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15675 if test -z "${LIBGO_IS_S390_TRUE}" && test -z "${LIBGO_IS_S390_FALSE}"; then
15676 as_fn_error "conditional \"LIBGO_IS_S390\" was never defined.
15677 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15679 if test -z "${LIBGO_IS_S390X_TRUE}" && test -z "${LIBGO_IS_S390X_FALSE}"; then
15680 as_fn_error "conditional \"LIBGO_IS_S390X\" was never defined.
15681 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15683 if test -z "${LIBGO_IS_SPARC_TRUE}" && test -z "${LIBGO_IS_SPARC_FALSE}"; then
15684 as_fn_error "conditional \"LIBGO_IS_SPARC\" was never defined.
15685 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15687 if test -z "${LIBGO_IS_SPARC64_TRUE}" && test -z "${LIBGO_IS_SPARC64_FALSE}"; then
15688 as_fn_error "conditional \"LIBGO_IS_SPARC64\" was never defined.
15689 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15691 if test -z "${LIBGO_IS_X86_64_TRUE}" && test -z "${LIBGO_IS_X86_64_FALSE}"; then
15692 as_fn_error "conditional \"LIBGO_IS_X86_64\" was never defined.
15693 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15695 if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
15696 as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined.
15697 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15700 if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
15701 as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined.
15702 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15704 if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
15705 as_fn_error "conditional \"HAVE_STRERROR_R\" was never defined.
15706 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15708 if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
15709 as_fn_error "conditional \"HAVE_WAIT4\" was never defined.
15710 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15713 : ${CONFIG_STATUS=./config.status}
15714 ac_write_fail=0
15715 ac_clean_files_save=$ac_clean_files
15716 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15718 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15719 as_write_fail=0
15720 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15721 #! $SHELL
15722 # Generated by $as_me.
15723 # Run this file to recreate the current configuration.
15724 # Compiler output produced by configure, useful for debugging
15725 # configure, is in config.log if it exists.
15727 debug=false
15728 ac_cs_recheck=false
15729 ac_cs_silent=false
15731 SHELL=\${CONFIG_SHELL-$SHELL}
15732 export SHELL
15733 _ASEOF
15734 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15735 ## -------------------- ##
15736 ## M4sh Initialization. ##
15737 ## -------------------- ##
15739 # Be more Bourne compatible
15740 DUALCASE=1; export DUALCASE # for MKS sh
15741 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15742 emulate sh
15743 NULLCMD=:
15744 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15745 # is contrary to our usage. Disable this feature.
15746 alias -g '${1+"$@"}'='"$@"'
15747 setopt NO_GLOB_SUBST
15748 else
15749 case `(set -o) 2>/dev/null` in #(
15750 *posix*) :
15751 set -o posix ;; #(
15752 *) :
15754 esac
15758 as_nl='
15760 export as_nl
15761 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15762 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15763 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15764 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15765 # Prefer a ksh shell builtin over an external printf program on Solaris,
15766 # but without wasting forks for bash or zsh.
15767 if test -z "$BASH_VERSION$ZSH_VERSION" \
15768 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15769 as_echo='print -r --'
15770 as_echo_n='print -rn --'
15771 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15772 as_echo='printf %s\n'
15773 as_echo_n='printf %s'
15774 else
15775 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15776 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15777 as_echo_n='/usr/ucb/echo -n'
15778 else
15779 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15780 as_echo_n_body='eval
15781 arg=$1;
15782 case $arg in #(
15783 *"$as_nl"*)
15784 expr "X$arg" : "X\\(.*\\)$as_nl";
15785 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15786 esac;
15787 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15789 export as_echo_n_body
15790 as_echo_n='sh -c $as_echo_n_body as_echo'
15792 export as_echo_body
15793 as_echo='sh -c $as_echo_body as_echo'
15796 # The user is always right.
15797 if test "${PATH_SEPARATOR+set}" != set; then
15798 PATH_SEPARATOR=:
15799 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15800 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15801 PATH_SEPARATOR=';'
15806 # IFS
15807 # We need space, tab and new line, in precisely that order. Quoting is
15808 # there to prevent editors from complaining about space-tab.
15809 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15810 # splitting by setting IFS to empty value.)
15811 IFS=" "" $as_nl"
15813 # Find who we are. Look in the path if we contain no directory separator.
15814 case $0 in #((
15815 *[\\/]* ) as_myself=$0 ;;
15816 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15817 for as_dir in $PATH
15819 IFS=$as_save_IFS
15820 test -z "$as_dir" && as_dir=.
15821 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15822 done
15823 IFS=$as_save_IFS
15826 esac
15827 # We did not find ourselves, most probably we were run as `sh COMMAND'
15828 # in which case we are not to be found in the path.
15829 if test "x$as_myself" = x; then
15830 as_myself=$0
15832 if test ! -f "$as_myself"; then
15833 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15834 exit 1
15837 # Unset variables that we do not need and which cause bugs (e.g. in
15838 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15839 # suppresses any "Segmentation fault" message there. '((' could
15840 # trigger a bug in pdksh 5.2.14.
15841 for as_var in BASH_ENV ENV MAIL MAILPATH
15842 do eval test x\${$as_var+set} = xset \
15843 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15844 done
15845 PS1='$ '
15846 PS2='> '
15847 PS4='+ '
15849 # NLS nuisances.
15850 LC_ALL=C
15851 export LC_ALL
15852 LANGUAGE=C
15853 export LANGUAGE
15855 # CDPATH.
15856 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15859 # as_fn_error ERROR [LINENO LOG_FD]
15860 # ---------------------------------
15861 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15862 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15863 # script with status $?, using 1 if that was 0.
15864 as_fn_error ()
15866 as_status=$?; test $as_status -eq 0 && as_status=1
15867 if test "$3"; then
15868 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15869 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15871 $as_echo "$as_me: error: $1" >&2
15872 as_fn_exit $as_status
15873 } # as_fn_error
15876 # as_fn_set_status STATUS
15877 # -----------------------
15878 # Set $? to STATUS, without forking.
15879 as_fn_set_status ()
15881 return $1
15882 } # as_fn_set_status
15884 # as_fn_exit STATUS
15885 # -----------------
15886 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15887 as_fn_exit ()
15889 set +e
15890 as_fn_set_status $1
15891 exit $1
15892 } # as_fn_exit
15894 # as_fn_unset VAR
15895 # ---------------
15896 # Portably unset VAR.
15897 as_fn_unset ()
15899 { eval $1=; unset $1;}
15901 as_unset=as_fn_unset
15902 # as_fn_append VAR VALUE
15903 # ----------------------
15904 # Append the text in VALUE to the end of the definition contained in VAR. Take
15905 # advantage of any shell optimizations that allow amortized linear growth over
15906 # repeated appends, instead of the typical quadratic growth present in naive
15907 # implementations.
15908 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15909 eval 'as_fn_append ()
15911 eval $1+=\$2
15913 else
15914 as_fn_append ()
15916 eval $1=\$$1\$2
15918 fi # as_fn_append
15920 # as_fn_arith ARG...
15921 # ------------------
15922 # Perform arithmetic evaluation on the ARGs, and store the result in the
15923 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15924 # must be portable across $(()) and expr.
15925 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15926 eval 'as_fn_arith ()
15928 as_val=$(( $* ))
15930 else
15931 as_fn_arith ()
15933 as_val=`expr "$@" || test $? -eq 1`
15935 fi # as_fn_arith
15938 if expr a : '\(a\)' >/dev/null 2>&1 &&
15939 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15940 as_expr=expr
15941 else
15942 as_expr=false
15945 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15946 as_basename=basename
15947 else
15948 as_basename=false
15951 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15952 as_dirname=dirname
15953 else
15954 as_dirname=false
15957 as_me=`$as_basename -- "$0" ||
15958 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15959 X"$0" : 'X\(//\)$' \| \
15960 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15961 $as_echo X/"$0" |
15962 sed '/^.*\/\([^/][^/]*\)\/*$/{
15963 s//\1/
15966 /^X\/\(\/\/\)$/{
15967 s//\1/
15970 /^X\/\(\/\).*/{
15971 s//\1/
15974 s/.*/./; q'`
15976 # Avoid depending upon Character Ranges.
15977 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15978 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15979 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15980 as_cr_digits='0123456789'
15981 as_cr_alnum=$as_cr_Letters$as_cr_digits
15983 ECHO_C= ECHO_N= ECHO_T=
15984 case `echo -n x` in #(((((
15985 -n*)
15986 case `echo 'xy\c'` in
15987 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15988 xy) ECHO_C='\c';;
15989 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15990 ECHO_T=' ';;
15991 esac;;
15993 ECHO_N='-n';;
15994 esac
15996 rm -f conf$$ conf$$.exe conf$$.file
15997 if test -d conf$$.dir; then
15998 rm -f conf$$.dir/conf$$.file
15999 else
16000 rm -f conf$$.dir
16001 mkdir conf$$.dir 2>/dev/null
16003 if (echo >conf$$.file) 2>/dev/null; then
16004 if ln -s conf$$.file conf$$ 2>/dev/null; then
16005 as_ln_s='ln -s'
16006 # ... but there are two gotchas:
16007 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16008 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16009 # In both cases, we have to default to `cp -p'.
16010 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16011 as_ln_s='cp -p'
16012 elif ln conf$$.file conf$$ 2>/dev/null; then
16013 as_ln_s=ln
16014 else
16015 as_ln_s='cp -p'
16017 else
16018 as_ln_s='cp -p'
16020 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16021 rmdir conf$$.dir 2>/dev/null
16024 # as_fn_mkdir_p
16025 # -------------
16026 # Create "$as_dir" as a directory, including parents if necessary.
16027 as_fn_mkdir_p ()
16030 case $as_dir in #(
16031 -*) as_dir=./$as_dir;;
16032 esac
16033 test -d "$as_dir" || eval $as_mkdir_p || {
16034 as_dirs=
16035 while :; do
16036 case $as_dir in #(
16037 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16038 *) as_qdir=$as_dir;;
16039 esac
16040 as_dirs="'$as_qdir' $as_dirs"
16041 as_dir=`$as_dirname -- "$as_dir" ||
16042 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16043 X"$as_dir" : 'X\(//\)[^/]' \| \
16044 X"$as_dir" : 'X\(//\)$' \| \
16045 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16046 $as_echo X"$as_dir" |
16047 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16048 s//\1/
16051 /^X\(\/\/\)[^/].*/{
16052 s//\1/
16055 /^X\(\/\/\)$/{
16056 s//\1/
16059 /^X\(\/\).*/{
16060 s//\1/
16063 s/.*/./; q'`
16064 test -d "$as_dir" && break
16065 done
16066 test -z "$as_dirs" || eval "mkdir $as_dirs"
16067 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16070 } # as_fn_mkdir_p
16071 if mkdir -p . 2>/dev/null; then
16072 as_mkdir_p='mkdir -p "$as_dir"'
16073 else
16074 test -d ./-p && rmdir ./-p
16075 as_mkdir_p=false
16078 if test -x / >/dev/null 2>&1; then
16079 as_test_x='test -x'
16080 else
16081 if ls -dL / >/dev/null 2>&1; then
16082 as_ls_L_option=L
16083 else
16084 as_ls_L_option=
16086 as_test_x='
16087 eval sh -c '\''
16088 if test -d "$1"; then
16089 test -d "$1/.";
16090 else
16091 case $1 in #(
16092 -*)set "./$1";;
16093 esac;
16094 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16095 ???[sx]*):;;*)false;;esac;fi
16096 '\'' sh
16099 as_executable_p=$as_test_x
16101 # Sed expression to map a string onto a valid CPP name.
16102 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16104 # Sed expression to map a string onto a valid variable name.
16105 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16108 exec 6>&1
16109 ## ----------------------------------- ##
16110 ## Main body of $CONFIG_STATUS script. ##
16111 ## ----------------------------------- ##
16112 _ASEOF
16113 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16115 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16116 # Save the log message, to keep $0 and so on meaningful, and to
16117 # report actual input values of CONFIG_FILES etc. instead of their
16118 # values after options handling.
16119 ac_log="
16120 This file was extended by package-unused $as_me version-unused, which was
16121 generated by GNU Autoconf 2.64. Invocation command line was
16123 CONFIG_FILES = $CONFIG_FILES
16124 CONFIG_HEADERS = $CONFIG_HEADERS
16125 CONFIG_LINKS = $CONFIG_LINKS
16126 CONFIG_COMMANDS = $CONFIG_COMMANDS
16127 $ $0 $@
16129 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16132 _ACEOF
16134 case $ac_config_files in *"
16135 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16136 esac
16138 case $ac_config_headers in *"
16139 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16140 esac
16143 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16144 # Files that config.status was made for.
16145 config_files="$ac_config_files"
16146 config_headers="$ac_config_headers"
16147 config_commands="$ac_config_commands"
16149 _ACEOF
16151 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16152 ac_cs_usage="\
16153 \`$as_me' instantiates files and other configuration actions
16154 from templates according to the current configuration. Unless the files
16155 and actions are specified as TAGs, all are instantiated by default.
16157 Usage: $0 [OPTION]... [TAG]...
16159 -h, --help print this help, then exit
16160 -V, --version print version number and configuration settings, then exit
16161 -q, --quiet, --silent
16162 do not print progress messages
16163 -d, --debug don't remove temporary files
16164 --recheck update $as_me by reconfiguring in the same conditions
16165 --file=FILE[:TEMPLATE]
16166 instantiate the configuration file FILE
16167 --header=FILE[:TEMPLATE]
16168 instantiate the configuration header FILE
16170 Configuration files:
16171 $config_files
16173 Configuration headers:
16174 $config_headers
16176 Configuration commands:
16177 $config_commands
16179 Report bugs to the package provider."
16181 _ACEOF
16182 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16183 ac_cs_version="\\
16184 package-unused config.status version-unused
16185 configured by $0, generated by GNU Autoconf 2.64,
16186 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16188 Copyright (C) 2009 Free Software Foundation, Inc.
16189 This config.status script is free software; the Free Software Foundation
16190 gives unlimited permission to copy, distribute and modify it."
16192 ac_pwd='$ac_pwd'
16193 srcdir='$srcdir'
16194 INSTALL='$INSTALL'
16195 MKDIR_P='$MKDIR_P'
16196 AWK='$AWK'
16197 test -n "\$AWK" || AWK=awk
16198 _ACEOF
16200 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16201 # The default lists apply if the user does not specify any file.
16202 ac_need_defaults=:
16203 while test $# != 0
16205 case $1 in
16206 --*=*)
16207 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16208 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16209 ac_shift=:
16212 ac_option=$1
16213 ac_optarg=$2
16214 ac_shift=shift
16216 esac
16218 case $ac_option in
16219 # Handling of the options.
16220 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16221 ac_cs_recheck=: ;;
16222 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16223 $as_echo "$ac_cs_version"; exit ;;
16224 --debug | --debu | --deb | --de | --d | -d )
16225 debug=: ;;
16226 --file | --fil | --fi | --f )
16227 $ac_shift
16228 case $ac_optarg in
16229 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16230 esac
16231 as_fn_append CONFIG_FILES " '$ac_optarg'"
16232 ac_need_defaults=false;;
16233 --header | --heade | --head | --hea )
16234 $ac_shift
16235 case $ac_optarg in
16236 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16237 esac
16238 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16239 ac_need_defaults=false;;
16240 --he | --h)
16241 # Conflict between --help and --header
16242 as_fn_error "ambiguous option: \`$1'
16243 Try \`$0 --help' for more information.";;
16244 --help | --hel | -h )
16245 $as_echo "$ac_cs_usage"; exit ;;
16246 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16247 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16248 ac_cs_silent=: ;;
16250 # This is an error.
16251 -*) as_fn_error "unrecognized option: \`$1'
16252 Try \`$0 --help' for more information." ;;
16254 *) as_fn_append ac_config_targets " $1"
16255 ac_need_defaults=false ;;
16257 esac
16258 shift
16259 done
16261 ac_configure_extra_args=
16263 if $ac_cs_silent; then
16264 exec 6>/dev/null
16265 ac_configure_extra_args="$ac_configure_extra_args --silent"
16268 _ACEOF
16269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16270 if \$ac_cs_recheck; then
16271 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16272 shift
16273 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16274 CONFIG_SHELL='$SHELL'
16275 export CONFIG_SHELL
16276 exec "\$@"
16279 _ACEOF
16280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16281 exec 5>>config.log
16283 echo
16284 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16285 ## Running $as_me. ##
16286 _ASBOX
16287 $as_echo "$ac_log"
16288 } >&5
16290 _ACEOF
16291 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16293 # INIT-COMMANDS
16296 srcdir="$srcdir"
16297 host="$host"
16298 target="$target"
16299 with_multisubdir="$with_multisubdir"
16300 with_multisrctop="$with_multisrctop"
16301 with_target_subdir="$with_target_subdir"
16302 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16303 multi_basedir="$multi_basedir"
16304 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16305 CC="$CC"
16306 CXX="$CXX"
16307 GFORTRAN="$GFORTRAN"
16308 GCJ="$GCJ"
16309 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16312 # The HP-UX ksh and POSIX shell print the target directory to stdout
16313 # if CDPATH is set.
16314 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16316 sed_quote_subst='$sed_quote_subst'
16317 double_quote_subst='$double_quote_subst'
16318 delay_variable_subst='$delay_variable_subst'
16319 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16320 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16321 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16322 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16323 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16324 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16325 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16326 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16327 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16328 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16329 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16330 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16331 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16332 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16333 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16334 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16335 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16336 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16337 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16338 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16339 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16340 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16341 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16342 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16343 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16344 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16345 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16346 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16347 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16348 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16349 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16350 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16351 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16352 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16353 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16354 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16355 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16356 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16357 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16358 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16359 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16360 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16361 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16362 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16363 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16364 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16365 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16366 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16367 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
16368 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16369 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16370 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16371 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16372 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16373 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16374 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16375 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16376 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16377 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16378 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16379 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16380 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16381 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16382 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16383 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16384 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16385 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16386 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16387 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16388 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16389 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16390 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16391 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16392 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16393 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16394 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16395 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16396 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16397 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16398 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16399 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16400 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16401 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16402 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16403 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16404 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16405 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16406 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16407 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16408 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16409 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16410 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16411 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16412 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16413 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16414 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16415 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16416 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16417 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16418 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16419 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16420 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16421 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16422 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16423 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16424 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16425 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16426 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16427 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16428 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16429 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16430 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16431 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16432 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16433 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16434 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16435 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16436 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16437 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16438 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16439 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
16440 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
16441 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
16442 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16443 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
16444 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
16445 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
16446 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
16447 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
16448 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
16449 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
16450 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
16451 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
16452 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16453 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16454 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
16455 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
16456 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
16457 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16458 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16459 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
16460 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16461 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
16462 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16463 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16464 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16465 hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
16466 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
16467 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
16468 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
16469 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
16470 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
16471 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
16472 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
16473 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
16474 fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
16475 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
16476 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
16477 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16478 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16479 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
16480 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
16481 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
16483 LTCC='$LTCC'
16484 LTCFLAGS='$LTCFLAGS'
16485 compiler='$compiler_DEFAULT'
16487 # A function that is used when there is no print builtin or printf.
16488 func_fallback_echo ()
16490 eval 'cat <<_LTECHO_EOF
16492 _LTECHO_EOF'
16495 # Quote evaled strings.
16496 for var in SED \
16497 GREP \
16498 EGREP \
16499 FGREP \
16500 SHELL \
16501 ECHO \
16502 LD \
16503 NM \
16504 LN_S \
16505 lt_SP2NL \
16506 lt_NL2SP \
16507 reload_flag \
16508 OBJDUMP \
16509 deplibs_check_method \
16510 file_magic_cmd \
16511 AR \
16512 AR_FLAGS \
16513 STRIP \
16514 RANLIB \
16515 CC \
16516 CFLAGS \
16517 compiler \
16518 lt_cv_sys_global_symbol_pipe \
16519 lt_cv_sys_global_symbol_to_cdecl \
16520 lt_cv_sys_global_symbol_to_c_name_address \
16521 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16522 lt_prog_compiler_no_builtin_flag \
16523 lt_prog_compiler_wl \
16524 lt_prog_compiler_pic \
16525 lt_prog_compiler_static \
16526 lt_cv_prog_compiler_c_o \
16527 need_locks \
16528 DSYMUTIL \
16529 NMEDIT \
16530 LIPO \
16531 OTOOL \
16532 OTOOL64 \
16533 shrext_cmds \
16534 export_dynamic_flag_spec \
16535 whole_archive_flag_spec \
16536 compiler_needs_object \
16537 with_gnu_ld \
16538 allow_undefined_flag \
16539 no_undefined_flag \
16540 hardcode_libdir_flag_spec \
16541 hardcode_libdir_flag_spec_ld \
16542 hardcode_libdir_separator \
16543 fix_srcfile_path \
16544 exclude_expsyms \
16545 include_expsyms \
16546 file_list_spec \
16547 variables_saved_for_relink \
16548 libname_spec \
16549 library_names_spec \
16550 soname_spec \
16551 install_override_mode \
16552 finish_eval \
16553 old_striplib \
16554 striplib \
16555 LD_GO \
16556 reload_flag_GO \
16557 compiler_GO \
16558 lt_prog_compiler_no_builtin_flag_GO \
16559 lt_prog_compiler_wl_GO \
16560 lt_prog_compiler_pic_GO \
16561 lt_prog_compiler_static_GO \
16562 lt_cv_prog_compiler_c_o_GO \
16563 export_dynamic_flag_spec_GO \
16564 whole_archive_flag_spec_GO \
16565 compiler_needs_object_GO \
16566 with_gnu_ld_GO \
16567 allow_undefined_flag_GO \
16568 no_undefined_flag_GO \
16569 hardcode_libdir_flag_spec_GO \
16570 hardcode_libdir_flag_spec_ld_GO \
16571 hardcode_libdir_separator_GO \
16572 fix_srcfile_path_GO \
16573 exclude_expsyms_GO \
16574 include_expsyms_GO \
16575 file_list_spec_GO; do
16576 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16577 *[\\\\\\\`\\"\\\$]*)
16578 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16581 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16583 esac
16584 done
16586 # Double-quote double-evaled strings.
16587 for var in reload_cmds \
16588 old_postinstall_cmds \
16589 old_postuninstall_cmds \
16590 old_archive_cmds \
16591 extract_expsyms_cmds \
16592 old_archive_from_new_cmds \
16593 old_archive_from_expsyms_cmds \
16594 archive_cmds \
16595 archive_expsym_cmds \
16596 module_cmds \
16597 module_expsym_cmds \
16598 export_symbols_cmds \
16599 prelink_cmds \
16600 postinstall_cmds \
16601 postuninstall_cmds \
16602 finish_cmds \
16603 sys_lib_search_path_spec \
16604 sys_lib_dlsearch_path_spec \
16605 reload_cmds_GO \
16606 old_archive_cmds_GO \
16607 old_archive_from_new_cmds_GO \
16608 old_archive_from_expsyms_cmds_GO \
16609 archive_cmds_GO \
16610 archive_expsym_cmds_GO \
16611 module_cmds_GO \
16612 module_expsym_cmds_GO \
16613 export_symbols_cmds_GO \
16614 prelink_cmds_GO; do
16615 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16616 *[\\\\\\\`\\"\\\$]*)
16617 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16620 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16622 esac
16623 done
16625 ac_aux_dir='$ac_aux_dir'
16626 xsi_shell='$xsi_shell'
16627 lt_shell_append='$lt_shell_append'
16629 # See if we are running on zsh, and set the options which allow our
16630 # commands through without removal of \ escapes INIT.
16631 if test -n "\${ZSH_VERSION+set}" ; then
16632 setopt NO_GLOB_SUBST
16636 PACKAGE='$PACKAGE'
16637 VERSION='$VERSION'
16638 TIMESTAMP='$TIMESTAMP'
16639 RM='$RM'
16640 ofile='$ofile'
16647 # Variables needed in config.status (file generation) which aren't already
16648 # passed by autoconf.
16649 SUBDIRS="$SUBDIRS"
16652 _ACEOF
16654 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16656 # Handling of arguments.
16657 for ac_config_target in $ac_config_targets
16659 case $ac_config_target in
16660 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16661 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16662 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16663 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16664 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16665 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16666 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16668 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16669 esac
16670 done
16673 # If the user did not use the arguments to specify the items to instantiate,
16674 # then the envvar interface is used. Set only those that are not.
16675 # We use the long form for the default assignment because of an extremely
16676 # bizarre bug on SunOS 4.1.3.
16677 if $ac_need_defaults; then
16678 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16679 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16680 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16683 # Have a temporary directory for convenience. Make it in the build tree
16684 # simply because there is no reason against having it here, and in addition,
16685 # creating and moving files from /tmp can sometimes cause problems.
16686 # Hook for its removal unless debugging.
16687 # Note that there is a small window in which the directory will not be cleaned:
16688 # after its creation but before its name has been assigned to `$tmp'.
16689 $debug ||
16691 tmp=
16692 trap 'exit_status=$?
16693 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16695 trap 'as_fn_exit 1' 1 2 13 15
16697 # Create a (secure) tmp directory for tmp files.
16700 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16701 test -n "$tmp" && test -d "$tmp"
16702 } ||
16704 tmp=./conf$$-$RANDOM
16705 (umask 077 && mkdir "$tmp")
16706 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16708 # Set up the scripts for CONFIG_FILES section.
16709 # No need to generate them if there are no CONFIG_FILES.
16710 # This happens for instance with `./config.status config.h'.
16711 if test -n "$CONFIG_FILES"; then
16714 ac_cr=`echo X | tr X '\015'`
16715 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16716 # But we know of no other shell where ac_cr would be empty at this
16717 # point, so we can use a bashism as a fallback.
16718 if test "x$ac_cr" = x; then
16719 eval ac_cr=\$\'\\r\'
16721 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16722 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16723 ac_cs_awk_cr='\r'
16724 else
16725 ac_cs_awk_cr=$ac_cr
16728 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16729 _ACEOF
16733 echo "cat >conf$$subs.awk <<_ACEOF" &&
16734 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16735 echo "_ACEOF"
16736 } >conf$$subs.sh ||
16737 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16738 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16739 ac_delim='%!_!# '
16740 for ac_last_try in false false false false false :; do
16741 . ./conf$$subs.sh ||
16742 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16744 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16745 if test $ac_delim_n = $ac_delim_num; then
16746 break
16747 elif $ac_last_try; then
16748 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16749 else
16750 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16752 done
16753 rm -f conf$$subs.sh
16755 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16756 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16757 _ACEOF
16758 sed -n '
16760 s/^/S["/; s/!.*/"]=/
16763 s/^[^!]*!//
16764 :repl
16765 t repl
16766 s/'"$ac_delim"'$//
16767 t delim
16770 s/\(.\{148\}\).*/\1/
16771 t more1
16772 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16775 b repl
16776 :more1
16777 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16780 s/.\{148\}//
16781 t nl
16782 :delim
16784 s/\(.\{148\}\).*/\1/
16785 t more2
16786 s/["\\]/\\&/g; s/^/"/; s/$/"/
16789 :more2
16790 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16793 s/.\{148\}//
16794 t delim
16795 ' <conf$$subs.awk | sed '
16796 /^[^""]/{
16798 s/\n//
16800 ' >>$CONFIG_STATUS || ac_write_fail=1
16801 rm -f conf$$subs.awk
16802 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16803 _ACAWK
16804 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16805 for (key in S) S_is_set[key] = 1
16806 FS = "\a"
16810 line = $ 0
16811 nfields = split(line, field, "@")
16812 substed = 0
16813 len = length(field[1])
16814 for (i = 2; i < nfields; i++) {
16815 key = field[i]
16816 keylen = length(key)
16817 if (S_is_set[key]) {
16818 value = S[key]
16819 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16820 len += length(value) + length(field[++i])
16821 substed = 1
16822 } else
16823 len += 1 + keylen
16826 print line
16829 _ACAWK
16830 _ACEOF
16831 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16832 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16833 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16834 else
16836 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16837 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16838 _ACEOF
16840 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16841 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16842 # trailing colons and then remove the whole line if VPATH becomes empty
16843 # (actually we leave an empty line to preserve line numbers).
16844 if test "x$srcdir" = x.; then
16845 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16846 s/:*\$(srcdir):*/:/
16847 s/:*\${srcdir}:*/:/
16848 s/:*@srcdir@:*/:/
16849 s/^\([^=]*=[ ]*\):*/\1/
16850 s/:*$//
16851 s/^[^=]*=[ ]*$//
16855 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16856 fi # test -n "$CONFIG_FILES"
16858 # Set up the scripts for CONFIG_HEADERS section.
16859 # No need to generate them if there are no CONFIG_HEADERS.
16860 # This happens for instance with `./config.status Makefile'.
16861 if test -n "$CONFIG_HEADERS"; then
16862 cat >"$tmp/defines.awk" <<\_ACAWK ||
16863 BEGIN {
16864 _ACEOF
16866 # Transform confdefs.h into an awk script `defines.awk', embedded as
16867 # here-document in config.status, that substitutes the proper values into
16868 # config.h.in to produce config.h.
16870 # Create a delimiter string that does not exist in confdefs.h, to ease
16871 # handling of long lines.
16872 ac_delim='%!_!# '
16873 for ac_last_try in false false :; do
16874 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16875 if test -z "$ac_t"; then
16876 break
16877 elif $ac_last_try; then
16878 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16879 else
16880 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16882 done
16884 # For the awk script, D is an array of macro values keyed by name,
16885 # likewise P contains macro parameters if any. Preserve backslash
16886 # newline sequences.
16888 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16889 sed -n '
16890 s/.\{148\}/&'"$ac_delim"'/g
16891 t rset
16892 :rset
16893 s/^[ ]*#[ ]*define[ ][ ]*/ /
16894 t def
16896 :def
16897 s/\\$//
16898 t bsnl
16899 s/["\\]/\\&/g
16900 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16901 D["\1"]=" \3"/p
16902 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16904 :bsnl
16905 s/["\\]/\\&/g
16906 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16907 D["\1"]=" \3\\\\\\n"\\/p
16908 t cont
16909 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16910 t cont
16912 :cont
16914 s/.\{148\}/&'"$ac_delim"'/g
16915 t clear
16916 :clear
16917 s/\\$//
16918 t bsnlc
16919 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16921 :bsnlc
16922 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16923 b cont
16924 ' <confdefs.h | sed '
16925 s/'"$ac_delim"'/"\\\
16926 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16928 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16929 for (key in D) D_is_set[key] = 1
16930 FS = "\a"
16932 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16933 line = \$ 0
16934 split(line, arg, " ")
16935 if (arg[1] == "#") {
16936 defundef = arg[2]
16937 mac1 = arg[3]
16938 } else {
16939 defundef = substr(arg[1], 2)
16940 mac1 = arg[2]
16942 split(mac1, mac2, "(") #)
16943 macro = mac2[1]
16944 prefix = substr(line, 1, index(line, defundef) - 1)
16945 if (D_is_set[macro]) {
16946 # Preserve the white space surrounding the "#".
16947 print prefix "define", macro P[macro] D[macro]
16948 next
16949 } else {
16950 # Replace #undef with comments. This is necessary, for example,
16951 # in the case of _POSIX_SOURCE, which is predefined and required
16952 # on some systems where configure will not decide to define it.
16953 if (defundef == "undef") {
16954 print "/*", prefix defundef, macro, "*/"
16955 next
16959 { print }
16960 _ACAWK
16961 _ACEOF
16962 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16963 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16964 fi # test -n "$CONFIG_HEADERS"
16967 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16968 shift
16969 for ac_tag
16971 case $ac_tag in
16972 :[FHLC]) ac_mode=$ac_tag; continue;;
16973 esac
16974 case $ac_mode$ac_tag in
16975 :[FHL]*:*);;
16976 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16977 :[FH]-) ac_tag=-:-;;
16978 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16979 esac
16980 ac_save_IFS=$IFS
16981 IFS=:
16982 set x $ac_tag
16983 IFS=$ac_save_IFS
16984 shift
16985 ac_file=$1
16986 shift
16988 case $ac_mode in
16989 :L) ac_source=$1;;
16990 :[FH])
16991 ac_file_inputs=
16992 for ac_f
16994 case $ac_f in
16995 -) ac_f="$tmp/stdin";;
16996 *) # Look for the file first in the build tree, then in the source tree
16997 # (if the path is not absolute). The absolute path cannot be DOS-style,
16998 # because $ac_f cannot contain `:'.
16999 test -f "$ac_f" ||
17000 case $ac_f in
17001 [\\/$]*) false;;
17002 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17003 esac ||
17004 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17005 esac
17006 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17007 as_fn_append ac_file_inputs " '$ac_f'"
17008 done
17010 # Let's still pretend it is `configure' which instantiates (i.e., don't
17011 # use $as_me), people would be surprised to read:
17012 # /* config.h. Generated by config.status. */
17013 configure_input='Generated from '`
17014 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17015 `' by configure.'
17016 if test x"$ac_file" != x-; then
17017 configure_input="$ac_file. $configure_input"
17018 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17019 $as_echo "$as_me: creating $ac_file" >&6;}
17021 # Neutralize special characters interpreted by sed in replacement strings.
17022 case $configure_input in #(
17023 *\&* | *\|* | *\\* )
17024 ac_sed_conf_input=`$as_echo "$configure_input" |
17025 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17026 *) ac_sed_conf_input=$configure_input;;
17027 esac
17029 case $ac_tag in
17030 *:-:* | *:-) cat >"$tmp/stdin" \
17031 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17032 esac
17034 esac
17036 ac_dir=`$as_dirname -- "$ac_file" ||
17037 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17038 X"$ac_file" : 'X\(//\)[^/]' \| \
17039 X"$ac_file" : 'X\(//\)$' \| \
17040 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17041 $as_echo X"$ac_file" |
17042 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17043 s//\1/
17046 /^X\(\/\/\)[^/].*/{
17047 s//\1/
17050 /^X\(\/\/\)$/{
17051 s//\1/
17054 /^X\(\/\).*/{
17055 s//\1/
17058 s/.*/./; q'`
17059 as_dir="$ac_dir"; as_fn_mkdir_p
17060 ac_builddir=.
17062 case "$ac_dir" in
17063 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17065 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17066 # A ".." for each directory in $ac_dir_suffix.
17067 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17068 case $ac_top_builddir_sub in
17069 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17070 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17071 esac ;;
17072 esac
17073 ac_abs_top_builddir=$ac_pwd
17074 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17075 # for backward compatibility:
17076 ac_top_builddir=$ac_top_build_prefix
17078 case $srcdir in
17079 .) # We are building in place.
17080 ac_srcdir=.
17081 ac_top_srcdir=$ac_top_builddir_sub
17082 ac_abs_top_srcdir=$ac_pwd ;;
17083 [\\/]* | ?:[\\/]* ) # Absolute name.
17084 ac_srcdir=$srcdir$ac_dir_suffix;
17085 ac_top_srcdir=$srcdir
17086 ac_abs_top_srcdir=$srcdir ;;
17087 *) # Relative name.
17088 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17089 ac_top_srcdir=$ac_top_build_prefix$srcdir
17090 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17091 esac
17092 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17095 case $ac_mode in
17098 # CONFIG_FILE
17101 case $INSTALL in
17102 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17103 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17104 esac
17105 ac_MKDIR_P=$MKDIR_P
17106 case $MKDIR_P in
17107 [\\/$]* | ?:[\\/]* ) ;;
17108 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17109 esac
17110 _ACEOF
17112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17113 # If the template does not know about datarootdir, expand it.
17114 # FIXME: This hack should be removed a few years after 2.60.
17115 ac_datarootdir_hack=; ac_datarootdir_seen=
17116 ac_sed_dataroot='
17117 /datarootdir/ {
17121 /@datadir@/p
17122 /@docdir@/p
17123 /@infodir@/p
17124 /@localedir@/p
17125 /@mandir@/p'
17126 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17127 *datarootdir*) ac_datarootdir_seen=yes;;
17128 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17130 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17131 _ACEOF
17132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17133 ac_datarootdir_hack='
17134 s&@datadir@&$datadir&g
17135 s&@docdir@&$docdir&g
17136 s&@infodir@&$infodir&g
17137 s&@localedir@&$localedir&g
17138 s&@mandir@&$mandir&g
17139 s&\\\${datarootdir}&$datarootdir&g' ;;
17140 esac
17141 _ACEOF
17143 # Neutralize VPATH when `$srcdir' = `.'.
17144 # Shell code in configure.ac might set extrasub.
17145 # FIXME: do we really want to maintain this feature?
17146 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17147 ac_sed_extra="$ac_vpsub
17148 $extrasub
17149 _ACEOF
17150 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17152 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17153 s|@configure_input@|$ac_sed_conf_input|;t t
17154 s&@top_builddir@&$ac_top_builddir_sub&;t t
17155 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17156 s&@srcdir@&$ac_srcdir&;t t
17157 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17158 s&@top_srcdir@&$ac_top_srcdir&;t t
17159 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17160 s&@builddir@&$ac_builddir&;t t
17161 s&@abs_builddir@&$ac_abs_builddir&;t t
17162 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17163 s&@INSTALL@&$ac_INSTALL&;t t
17164 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17165 $ac_datarootdir_hack
17167 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17168 || as_fn_error "could not create $ac_file" "$LINENO" 5
17170 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17171 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17172 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17174 which seems to be undefined. Please make sure it is defined." >&5
17175 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17176 which seems to be undefined. Please make sure it is defined." >&2;}
17178 rm -f "$tmp/stdin"
17179 case $ac_file in
17180 -) cat "$tmp/out" && rm -f "$tmp/out";;
17181 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17182 esac \
17183 || as_fn_error "could not create $ac_file" "$LINENO" 5
17187 # CONFIG_HEADER
17189 if test x"$ac_file" != x-; then
17191 $as_echo "/* $configure_input */" \
17192 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17193 } >"$tmp/config.h" \
17194 || as_fn_error "could not create $ac_file" "$LINENO" 5
17195 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17196 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17197 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17198 else
17199 rm -f "$ac_file"
17200 mv "$tmp/config.h" "$ac_file" \
17201 || as_fn_error "could not create $ac_file" "$LINENO" 5
17203 else
17204 $as_echo "/* $configure_input */" \
17205 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17206 || as_fn_error "could not create -" "$LINENO" 5
17208 # Compute "$ac_file"'s index in $config_headers.
17209 _am_arg="$ac_file"
17210 _am_stamp_count=1
17211 for _am_header in $config_headers :; do
17212 case $_am_header in
17213 $_am_arg | $_am_arg:* )
17214 break ;;
17216 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17217 esac
17218 done
17219 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17220 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17221 X"$_am_arg" : 'X\(//\)[^/]' \| \
17222 X"$_am_arg" : 'X\(//\)$' \| \
17223 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17224 $as_echo X"$_am_arg" |
17225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17226 s//\1/
17229 /^X\(\/\/\)[^/].*/{
17230 s//\1/
17233 /^X\(\/\/\)$/{
17234 s//\1/
17237 /^X\(\/\).*/{
17238 s//\1/
17241 s/.*/./; q'`/stamp-h$_am_stamp_count
17244 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17245 $as_echo "$as_me: executing $ac_file commands" >&6;}
17247 esac
17250 case $ac_file$ac_mode in
17251 "default-1":C)
17252 # Only add multilib support code if we just rebuilt the top-level
17253 # Makefile.
17254 case " $CONFIG_FILES " in
17255 *" Makefile "*)
17256 ac_file=Makefile . ${multi_basedir}/config-ml.in
17258 esac ;;
17259 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17260 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17261 # are listed without --file. Let's play safe and only enable the eval
17262 # if we detect the quoting.
17263 case $CONFIG_FILES in
17264 *\'*) eval set x "$CONFIG_FILES" ;;
17265 *) set x $CONFIG_FILES ;;
17266 esac
17267 shift
17268 for mf
17270 # Strip MF so we end up with the name of the file.
17271 mf=`echo "$mf" | sed -e 's/:.*$//'`
17272 # Check whether this is an Automake generated Makefile or not.
17273 # We used to match only the files named `Makefile.in', but
17274 # some people rename them; so instead we look at the file content.
17275 # Grep'ing the first line is not enough: some people post-process
17276 # each Makefile.in and add a new line on top of each file to say so.
17277 # Grep'ing the whole file is not good either: AIX grep has a line
17278 # limit of 2048, but all sed's we know have understand at least 4000.
17279 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17280 dirpart=`$as_dirname -- "$mf" ||
17281 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17282 X"$mf" : 'X\(//\)[^/]' \| \
17283 X"$mf" : 'X\(//\)$' \| \
17284 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17285 $as_echo X"$mf" |
17286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17287 s//\1/
17290 /^X\(\/\/\)[^/].*/{
17291 s//\1/
17294 /^X\(\/\/\)$/{
17295 s//\1/
17298 /^X\(\/\).*/{
17299 s//\1/
17302 s/.*/./; q'`
17303 else
17304 continue
17306 # Extract the definition of DEPDIR, am__include, and am__quote
17307 # from the Makefile without running `make'.
17308 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17309 test -z "$DEPDIR" && continue
17310 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17311 test -z "am__include" && continue
17312 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17313 # When using ansi2knr, U may be empty or an underscore; expand it
17314 U=`sed -n 's/^U = //p' < "$mf"`
17315 # Find all dependency output files, they are included files with
17316 # $(DEPDIR) in their names. We invoke sed twice because it is the
17317 # simplest approach to changing $(DEPDIR) to its actual value in the
17318 # expansion.
17319 for file in `sed -n "
17320 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17321 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17322 # Make sure the directory exists.
17323 test -f "$dirpart/$file" && continue
17324 fdir=`$as_dirname -- "$file" ||
17325 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17326 X"$file" : 'X\(//\)[^/]' \| \
17327 X"$file" : 'X\(//\)$' \| \
17328 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17329 $as_echo X"$file" |
17330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17331 s//\1/
17334 /^X\(\/\/\)[^/].*/{
17335 s//\1/
17338 /^X\(\/\/\)$/{
17339 s//\1/
17342 /^X\(\/\).*/{
17343 s//\1/
17346 s/.*/./; q'`
17347 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17348 # echo "creating $dirpart/$file"
17349 echo '# dummy' > "$dirpart/$file"
17350 done
17351 done
17354 "libtool":C)
17356 # See if we are running on zsh, and set the options which allow our
17357 # commands through without removal of \ escapes.
17358 if test -n "${ZSH_VERSION+set}" ; then
17359 setopt NO_GLOB_SUBST
17362 cfgfile="${ofile}T"
17363 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17364 $RM "$cfgfile"
17366 cat <<_LT_EOF >> "$cfgfile"
17367 #! $SHELL
17369 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17370 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17371 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17372 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17374 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17375 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17376 # Written by Gordon Matzigkeit, 1996
17378 # This file is part of GNU Libtool.
17380 # GNU Libtool is free software; you can redistribute it and/or
17381 # modify it under the terms of the GNU General Public License as
17382 # published by the Free Software Foundation; either version 2 of
17383 # the License, or (at your option) any later version.
17385 # As a special exception to the GNU General Public License,
17386 # if you distribute this file as part of a program or library that
17387 # is built using GNU Libtool, you may include this file under the
17388 # same distribution terms that you use for the rest of that program.
17390 # GNU Libtool is distributed in the hope that it will be useful,
17391 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17392 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17393 # GNU General Public License for more details.
17395 # You should have received a copy of the GNU General Public License
17396 # along with GNU Libtool; see the file COPYING. If not, a copy
17397 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17398 # obtained by writing to the Free Software Foundation, Inc.,
17399 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17402 # The names of the tagged configurations supported by this script.
17403 available_tags="GO "
17405 # ### BEGIN LIBTOOL CONFIG
17407 # A sed program that does not truncate output.
17408 SED=$lt_SED
17410 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17411 Xsed="\$SED -e 1s/^X//"
17413 # A grep program that handles long lines.
17414 GREP=$lt_GREP
17416 # An ERE matcher.
17417 EGREP=$lt_EGREP
17419 # A literal string matcher.
17420 FGREP=$lt_FGREP
17422 # Shell to use when invoking shell scripts.
17423 SHELL=$lt_SHELL
17425 # An echo program that protects backslashes.
17426 ECHO=$lt_ECHO
17428 # Which release of libtool.m4 was used?
17429 macro_version=$macro_version
17430 macro_revision=$macro_revision
17432 # Whether or not to build shared libraries.
17433 build_libtool_libs=$enable_shared
17435 # Whether or not to build static libraries.
17436 build_old_libs=$enable_static
17438 # What type of objects to build.
17439 pic_mode=$pic_mode
17441 # Whether or not to optimize for fast installation.
17442 fast_install=$enable_fast_install
17444 # The host system.
17445 host_alias=$host_alias
17446 host=$host
17447 host_os=$host_os
17449 # The build system.
17450 build_alias=$build_alias
17451 build=$build
17452 build_os=$build_os
17454 # A BSD- or MS-compatible name lister.
17455 NM=$lt_NM
17457 # Whether we need soft or hard links.
17458 LN_S=$lt_LN_S
17460 # What is the maximum length of a command?
17461 max_cmd_len=$max_cmd_len
17463 # Object file suffix (normally "o").
17464 objext=$ac_objext
17466 # Executable file suffix (normally "").
17467 exeext=$exeext
17469 # whether the shell understands "unset".
17470 lt_unset=$lt_unset
17472 # turn spaces into newlines.
17473 SP2NL=$lt_lt_SP2NL
17475 # turn newlines into spaces.
17476 NL2SP=$lt_lt_NL2SP
17478 # An object symbol dumper.
17479 OBJDUMP=$lt_OBJDUMP
17481 # Method to check whether dependent libraries are shared objects.
17482 deplibs_check_method=$lt_deplibs_check_method
17484 # Command to use when deplibs_check_method == "file_magic".
17485 file_magic_cmd=$lt_file_magic_cmd
17487 # The archiver.
17488 AR=$lt_AR
17489 AR_FLAGS=$lt_AR_FLAGS
17491 # A symbol stripping program.
17492 STRIP=$lt_STRIP
17494 # Commands used to install an old-style archive.
17495 RANLIB=$lt_RANLIB
17496 old_postinstall_cmds=$lt_old_postinstall_cmds
17497 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17499 # Whether to use a lock for old archive extraction.
17500 lock_old_archive_extraction=$lock_old_archive_extraction
17502 # A C compiler.
17503 LTCC=$lt_CC
17505 # LTCC compiler flags.
17506 LTCFLAGS=$lt_CFLAGS
17508 # Take the output of nm and produce a listing of raw symbols and C names.
17509 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17511 # Transform the output of nm in a proper C declaration.
17512 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17514 # Transform the output of nm in a C name address pair.
17515 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17517 # Transform the output of nm in a C name address pair when lib prefix is needed.
17518 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17520 # The name of the directory that contains temporary libtool files.
17521 objdir=$objdir
17523 # Used to examine libraries when file_magic_cmd begins with "file".
17524 MAGIC_CMD=$MAGIC_CMD
17526 # Must we lock files when doing compilation?
17527 need_locks=$lt_need_locks
17529 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17530 DSYMUTIL=$lt_DSYMUTIL
17532 # Tool to change global to local symbols on Mac OS X.
17533 NMEDIT=$lt_NMEDIT
17535 # Tool to manipulate fat objects and archives on Mac OS X.
17536 LIPO=$lt_LIPO
17538 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17539 OTOOL=$lt_OTOOL
17541 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17542 OTOOL64=$lt_OTOOL64
17544 # Old archive suffix (normally "a").
17545 libext=$libext
17547 # Shared library suffix (normally ".so").
17548 shrext_cmds=$lt_shrext_cmds
17550 # The commands to extract the exported symbol list from a shared archive.
17551 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17553 # Variables whose values should be saved in libtool wrapper scripts and
17554 # restored at link time.
17555 variables_saved_for_relink=$lt_variables_saved_for_relink
17557 # Do we need the "lib" prefix for modules?
17558 need_lib_prefix=$need_lib_prefix
17560 # Do we need a version for libraries?
17561 need_version=$need_version
17563 # Library versioning type.
17564 version_type=$version_type
17566 # Shared library runtime path variable.
17567 runpath_var=$runpath_var
17569 # Shared library path variable.
17570 shlibpath_var=$shlibpath_var
17572 # Is shlibpath searched before the hard-coded library search path?
17573 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17575 # Format of library name prefix.
17576 libname_spec=$lt_libname_spec
17578 # List of archive names. First name is the real one, the rest are links.
17579 # The last name is the one that the linker finds with -lNAME
17580 library_names_spec=$lt_library_names_spec
17582 # The coded name of the library, if different from the real name.
17583 soname_spec=$lt_soname_spec
17585 # Permission mode override for installation of shared libraries.
17586 install_override_mode=$lt_install_override_mode
17588 # Command to use after installation of a shared archive.
17589 postinstall_cmds=$lt_postinstall_cmds
17591 # Command to use after uninstallation of a shared archive.
17592 postuninstall_cmds=$lt_postuninstall_cmds
17594 # Commands used to finish a libtool library installation in a directory.
17595 finish_cmds=$lt_finish_cmds
17597 # As "finish_cmds", except a single script fragment to be evaled but
17598 # not shown.
17599 finish_eval=$lt_finish_eval
17601 # Whether we should hardcode library paths into libraries.
17602 hardcode_into_libs=$hardcode_into_libs
17604 # Compile-time system search path for libraries.
17605 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17607 # Run-time system search path for libraries.
17608 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17610 # Whether dlopen is supported.
17611 dlopen_support=$enable_dlopen
17613 # Whether dlopen of programs is supported.
17614 dlopen_self=$enable_dlopen_self
17616 # Whether dlopen of statically linked programs is supported.
17617 dlopen_self_static=$enable_dlopen_self_static
17619 # Commands to strip libraries.
17620 old_striplib=$lt_old_striplib
17621 striplib=$lt_striplib
17624 # The linker used to build libraries.
17625 LD=$lt_LD
17627 # How to create reloadable object files.
17628 reload_flag=$lt_reload_flag
17629 reload_cmds=$lt_reload_cmds
17631 # Commands used to build an old-style archive.
17632 old_archive_cmds=$lt_old_archive_cmds
17634 # A language specific compiler.
17635 CC=$lt_compiler
17637 # Is the compiler the GNU compiler?
17638 with_gcc=$GCC
17640 # Compiler flag to turn off builtin functions.
17641 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17643 # How to pass a linker flag through the compiler.
17644 wl=$lt_lt_prog_compiler_wl
17646 # Additional compiler flags for building library objects.
17647 pic_flag=$lt_lt_prog_compiler_pic
17649 # Compiler flag to prevent dynamic linking.
17650 link_static_flag=$lt_lt_prog_compiler_static
17652 # Does compiler simultaneously support -c and -o options?
17653 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17655 # Whether or not to add -lc for building shared libraries.
17656 build_libtool_need_lc=$archive_cmds_need_lc
17658 # Whether or not to disallow shared libs when runtime libs are static.
17659 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17661 # Compiler flag to allow reflexive dlopens.
17662 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17664 # Compiler flag to generate shared objects directly from archives.
17665 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17667 # Whether the compiler copes with passing no objects directly.
17668 compiler_needs_object=$lt_compiler_needs_object
17670 # Create an old-style archive from a shared archive.
17671 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17673 # Create a temporary old-style archive to link instead of a shared archive.
17674 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17676 # Commands used to build a shared archive.
17677 archive_cmds=$lt_archive_cmds
17678 archive_expsym_cmds=$lt_archive_expsym_cmds
17680 # Commands used to build a loadable module if different from building
17681 # a shared archive.
17682 module_cmds=$lt_module_cmds
17683 module_expsym_cmds=$lt_module_expsym_cmds
17685 # Whether we are building with GNU ld or not.
17686 with_gnu_ld=$lt_with_gnu_ld
17688 # Flag that allows shared libraries with undefined symbols to be built.
17689 allow_undefined_flag=$lt_allow_undefined_flag
17691 # Flag that enforces no undefined symbols.
17692 no_undefined_flag=$lt_no_undefined_flag
17694 # Flag to hardcode \$libdir into a binary during linking.
17695 # This must work even if \$libdir does not exist
17696 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17698 # If ld is used when linking, flag to hardcode \$libdir into a binary
17699 # during linking. This must work even if \$libdir does not exist.
17700 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17702 # Whether we need a single "-rpath" flag with a separated argument.
17703 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17705 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17706 # DIR into the resulting binary.
17707 hardcode_direct=$hardcode_direct
17709 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17710 # DIR into the resulting binary and the resulting library dependency is
17711 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17712 # library is relocated.
17713 hardcode_direct_absolute=$hardcode_direct_absolute
17715 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17716 # into the resulting binary.
17717 hardcode_minus_L=$hardcode_minus_L
17719 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17720 # into the resulting binary.
17721 hardcode_shlibpath_var=$hardcode_shlibpath_var
17723 # Set to "yes" if building a shared library automatically hardcodes DIR
17724 # into the library and all subsequent libraries and executables linked
17725 # against it.
17726 hardcode_automatic=$hardcode_automatic
17728 # Set to yes if linker adds runtime paths of dependent libraries
17729 # to runtime path list.
17730 inherit_rpath=$inherit_rpath
17732 # Whether libtool must link a program against all its dependency libraries.
17733 link_all_deplibs=$link_all_deplibs
17735 # Fix the shell variable \$srcfile for the compiler.
17736 fix_srcfile_path=$lt_fix_srcfile_path
17738 # Set to "yes" if exported symbols are required.
17739 always_export_symbols=$always_export_symbols
17741 # The commands to list exported symbols.
17742 export_symbols_cmds=$lt_export_symbols_cmds
17744 # Symbols that should not be listed in the preloaded symbols.
17745 exclude_expsyms=$lt_exclude_expsyms
17747 # Symbols that must always be exported.
17748 include_expsyms=$lt_include_expsyms
17750 # Commands necessary for linking programs (against libraries) with templates.
17751 prelink_cmds=$lt_prelink_cmds
17753 # Specify filename containing input files.
17754 file_list_spec=$lt_file_list_spec
17756 # How to hardcode a shared library path into an executable.
17757 hardcode_action=$hardcode_action
17759 # ### END LIBTOOL CONFIG
17761 _LT_EOF
17763 case $host_os in
17764 aix3*)
17765 cat <<\_LT_EOF >> "$cfgfile"
17766 # AIX sometimes has problems with the GCC collect2 program. For some
17767 # reason, if we set the COLLECT_NAMES environment variable, the problems
17768 # vanish in a puff of smoke.
17769 if test "X${COLLECT_NAMES+set}" != Xset; then
17770 COLLECT_NAMES=
17771 export COLLECT_NAMES
17773 _LT_EOF
17775 esac
17778 ltmain="$ac_aux_dir/ltmain.sh"
17781 # We use sed instead of cat because bash on DJGPP gets confused if
17782 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17783 # text mode, it properly converts lines to CR/LF. This bash problem
17784 # is reportedly fixed, but why not run on old versions too?
17785 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17786 || (rm -f "$cfgfile"; exit 1)
17788 case $xsi_shell in
17789 yes)
17790 cat << \_LT_EOF >> "$cfgfile"
17792 # func_dirname file append nondir_replacement
17793 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17794 # otherwise set result to NONDIR_REPLACEMENT.
17795 func_dirname ()
17797 case ${1} in
17798 */*) func_dirname_result="${1%/*}${2}" ;;
17799 * ) func_dirname_result="${3}" ;;
17800 esac
17803 # func_basename file
17804 func_basename ()
17806 func_basename_result="${1##*/}"
17809 # func_dirname_and_basename file append nondir_replacement
17810 # perform func_basename and func_dirname in a single function
17811 # call:
17812 # dirname: Compute the dirname of FILE. If nonempty,
17813 # add APPEND to the result, otherwise set result
17814 # to NONDIR_REPLACEMENT.
17815 # value returned in "$func_dirname_result"
17816 # basename: Compute filename of FILE.
17817 # value retuned in "$func_basename_result"
17818 # Implementation must be kept synchronized with func_dirname
17819 # and func_basename. For efficiency, we do not delegate to
17820 # those functions but instead duplicate the functionality here.
17821 func_dirname_and_basename ()
17823 case ${1} in
17824 */*) func_dirname_result="${1%/*}${2}" ;;
17825 * ) func_dirname_result="${3}" ;;
17826 esac
17827 func_basename_result="${1##*/}"
17830 # func_stripname prefix suffix name
17831 # strip PREFIX and SUFFIX off of NAME.
17832 # PREFIX and SUFFIX must not contain globbing or regex special
17833 # characters, hashes, percent signs, but SUFFIX may contain a leading
17834 # dot (in which case that matches only a dot).
17835 func_stripname ()
17837 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17838 # positional parameters, so assign one to ordinary parameter first.
17839 func_stripname_result=${3}
17840 func_stripname_result=${func_stripname_result#"${1}"}
17841 func_stripname_result=${func_stripname_result%"${2}"}
17844 # func_opt_split
17845 func_opt_split ()
17847 func_opt_split_opt=${1%%=*}
17848 func_opt_split_arg=${1#*=}
17851 # func_lo2o object
17852 func_lo2o ()
17854 case ${1} in
17855 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17856 *) func_lo2o_result=${1} ;;
17857 esac
17860 # func_xform libobj-or-source
17861 func_xform ()
17863 func_xform_result=${1%.*}.lo
17866 # func_arith arithmetic-term...
17867 func_arith ()
17869 func_arith_result=$(( $* ))
17872 # func_len string
17873 # STRING may not start with a hyphen.
17874 func_len ()
17876 func_len_result=${#1}
17879 _LT_EOF
17881 *) # Bourne compatible functions.
17882 cat << \_LT_EOF >> "$cfgfile"
17884 # func_dirname file append nondir_replacement
17885 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17886 # otherwise set result to NONDIR_REPLACEMENT.
17887 func_dirname ()
17889 # Extract subdirectory from the argument.
17890 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17891 if test "X$func_dirname_result" = "X${1}"; then
17892 func_dirname_result="${3}"
17893 else
17894 func_dirname_result="$func_dirname_result${2}"
17898 # func_basename file
17899 func_basename ()
17901 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17905 # func_stripname prefix suffix name
17906 # strip PREFIX and SUFFIX off of NAME.
17907 # PREFIX and SUFFIX must not contain globbing or regex special
17908 # characters, hashes, percent signs, but SUFFIX may contain a leading
17909 # dot (in which case that matches only a dot).
17910 # func_strip_suffix prefix name
17911 func_stripname ()
17913 case ${2} in
17914 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17915 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17916 esac
17919 # sed scripts:
17920 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17921 my_sed_long_arg='1s/^-[^=]*=//'
17923 # func_opt_split
17924 func_opt_split ()
17926 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17927 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17930 # func_lo2o object
17931 func_lo2o ()
17933 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17936 # func_xform libobj-or-source
17937 func_xform ()
17939 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17942 # func_arith arithmetic-term...
17943 func_arith ()
17945 func_arith_result=`expr "$@"`
17948 # func_len string
17949 # STRING may not start with a hyphen.
17950 func_len ()
17952 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17955 _LT_EOF
17956 esac
17958 case $lt_shell_append in
17959 yes)
17960 cat << \_LT_EOF >> "$cfgfile"
17962 # func_append var value
17963 # Append VALUE to the end of shell variable VAR.
17964 func_append ()
17966 eval "$1+=\$2"
17968 _LT_EOF
17971 cat << \_LT_EOF >> "$cfgfile"
17973 # func_append var value
17974 # Append VALUE to the end of shell variable VAR.
17975 func_append ()
17977 eval "$1=\$$1\$2"
17980 _LT_EOF
17982 esac
17985 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17986 || (rm -f "$cfgfile"; exit 1)
17988 mv -f "$cfgfile" "$ofile" ||
17989 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17990 chmod +x "$ofile"
17993 cat <<_LT_EOF >> "$ofile"
17995 # ### BEGIN LIBTOOL TAG CONFIG: GO
17997 # The linker used to build libraries.
17998 LD=$lt_LD_GO
18000 # How to create reloadable object files.
18001 reload_flag=$lt_reload_flag_GO
18002 reload_cmds=$lt_reload_cmds_GO
18004 # Commands used to build an old-style archive.
18005 old_archive_cmds=$lt_old_archive_cmds_GO
18007 # A language specific compiler.
18008 CC=$lt_compiler_GO
18010 # Is the compiler the GNU compiler?
18011 with_gcc=$GCC_GO
18013 # Compiler flag to turn off builtin functions.
18014 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
18016 # How to pass a linker flag through the compiler.
18017 wl=$lt_lt_prog_compiler_wl_GO
18019 # Additional compiler flags for building library objects.
18020 pic_flag=$lt_lt_prog_compiler_pic_GO
18022 # Compiler flag to prevent dynamic linking.
18023 link_static_flag=$lt_lt_prog_compiler_static_GO
18025 # Does compiler simultaneously support -c and -o options?
18026 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
18028 # Whether or not to add -lc for building shared libraries.
18029 build_libtool_need_lc=$archive_cmds_need_lc_GO
18031 # Whether or not to disallow shared libs when runtime libs are static.
18032 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
18034 # Compiler flag to allow reflexive dlopens.
18035 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
18037 # Compiler flag to generate shared objects directly from archives.
18038 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
18040 # Whether the compiler copes with passing no objects directly.
18041 compiler_needs_object=$lt_compiler_needs_object_GO
18043 # Create an old-style archive from a shared archive.
18044 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
18046 # Create a temporary old-style archive to link instead of a shared archive.
18047 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
18049 # Commands used to build a shared archive.
18050 archive_cmds=$lt_archive_cmds_GO
18051 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
18053 # Commands used to build a loadable module if different from building
18054 # a shared archive.
18055 module_cmds=$lt_module_cmds_GO
18056 module_expsym_cmds=$lt_module_expsym_cmds_GO
18058 # Whether we are building with GNU ld or not.
18059 with_gnu_ld=$lt_with_gnu_ld_GO
18061 # Flag that allows shared libraries with undefined symbols to be built.
18062 allow_undefined_flag=$lt_allow_undefined_flag_GO
18064 # Flag that enforces no undefined symbols.
18065 no_undefined_flag=$lt_no_undefined_flag_GO
18067 # Flag to hardcode \$libdir into a binary during linking.
18068 # This must work even if \$libdir does not exist
18069 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
18071 # If ld is used when linking, flag to hardcode \$libdir into a binary
18072 # during linking. This must work even if \$libdir does not exist.
18073 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
18075 # Whether we need a single "-rpath" flag with a separated argument.
18076 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
18078 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18079 # DIR into the resulting binary.
18080 hardcode_direct=$hardcode_direct_GO
18082 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18083 # DIR into the resulting binary and the resulting library dependency is
18084 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18085 # library is relocated.
18086 hardcode_direct_absolute=$hardcode_direct_absolute_GO
18088 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18089 # into the resulting binary.
18090 hardcode_minus_L=$hardcode_minus_L_GO
18092 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18093 # into the resulting binary.
18094 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
18096 # Set to "yes" if building a shared library automatically hardcodes DIR
18097 # into the library and all subsequent libraries and executables linked
18098 # against it.
18099 hardcode_automatic=$hardcode_automatic_GO
18101 # Set to yes if linker adds runtime paths of dependent libraries
18102 # to runtime path list.
18103 inherit_rpath=$inherit_rpath_GO
18105 # Whether libtool must link a program against all its dependency libraries.
18106 link_all_deplibs=$link_all_deplibs_GO
18108 # Fix the shell variable \$srcfile for the compiler.
18109 fix_srcfile_path=$lt_fix_srcfile_path_GO
18111 # Set to "yes" if exported symbols are required.
18112 always_export_symbols=$always_export_symbols_GO
18114 # The commands to list exported symbols.
18115 export_symbols_cmds=$lt_export_symbols_cmds_GO
18117 # Symbols that should not be listed in the preloaded symbols.
18118 exclude_expsyms=$lt_exclude_expsyms_GO
18120 # Symbols that must always be exported.
18121 include_expsyms=$lt_include_expsyms_GO
18123 # Commands necessary for linking programs (against libraries) with templates.
18124 prelink_cmds=$lt_prelink_cmds_GO
18126 # Specify filename containing input files.
18127 file_list_spec=$lt_file_list_spec_GO
18129 # How to hardcode a shared library path into an executable.
18130 hardcode_action=$hardcode_action_GO
18132 # ### END LIBTOOL TAG CONFIG: GO
18133 _LT_EOF
18136 "default":C) if test -n "$CONFIG_FILES"; then
18137 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
18138 # that multilib installs will end up installed in the correct place.
18139 # The testsuite needs it for multilib-aware ABI baseline files.
18140 # To work around this not being passed down from config-ml.in ->
18141 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
18142 # append it here. Only modify Makefiles that have just been created.
18144 # Also, get rid of this simulated-VPATH thing that automake does.
18145 cat > vpsed << \_EOF
18146 s!`test -f '$<' || echo '$(srcdir)/'`!!
18147 _EOF
18148 for i in $SUBDIRS; do
18149 case $CONFIG_FILES in
18150 *${i}/Makefile*)
18151 #echo "Adding MULTISUBDIR to $i/Makefile"
18152 sed -f vpsed $i/Makefile > tmp
18153 grep '^MULTISUBDIR =' Makefile >> tmp
18154 mv tmp $i/Makefile
18156 esac
18157 done
18158 rm vpsed
18162 esac
18163 done # for ac_tag
18166 as_fn_exit 0
18167 _ACEOF
18168 ac_clean_files=$ac_clean_files_save
18170 test $ac_write_fail = 0 ||
18171 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18174 # configure is writing to config.log, and then calls config.status.
18175 # config.status does its own redirection, appending to config.log.
18176 # Unfortunately, on DOS this fails, as config.log is still kept open
18177 # by configure, so config.status won't be able to write to it; its
18178 # output is simply discarded. So we exec the FD to /dev/null,
18179 # effectively closing config.log, so it can be properly (re)opened and
18180 # appended to by config.status. When coming back to configure, we
18181 # need to make the FD available again.
18182 if test "$no_create" != yes; then
18183 ac_cs_success=:
18184 ac_config_status_args=
18185 test "$silent" = yes &&
18186 ac_config_status_args="$ac_config_status_args --quiet"
18187 exec 5>/dev/null
18188 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18189 exec 5>>config.log
18190 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18191 # would make configure fail if this is the last instruction.
18192 $ac_cs_success || as_fn_exit $?
18194 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18196 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}