* cgraphunit.c: Remove struct tags when referring to class
[official-gcc.git] / libgo / configure
blob46bb6066fb34f67ef9114fb7cec1eef712071160
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_PPC64_FALSE
635 LIBGO_IS_PPC64_TRUE
636 LIBGO_IS_PPC_FALSE
637 LIBGO_IS_PPC_TRUE
638 LIBGO_IS_MIPSO64_FALSE
639 LIBGO_IS_MIPSO64_TRUE
640 LIBGO_IS_MIPSN64_FALSE
641 LIBGO_IS_MIPSN64_TRUE
642 LIBGO_IS_MIPSN32_FALSE
643 LIBGO_IS_MIPSN32_TRUE
644 LIBGO_IS_MIPSO32_FALSE
645 LIBGO_IS_MIPSO32_TRUE
646 LIBGO_IS_MIPS_FALSE
647 LIBGO_IS_MIPS_TRUE
648 LIBGO_IS_M68K_FALSE
649 LIBGO_IS_M68K_TRUE
650 LIBGO_IS_ARM_FALSE
651 LIBGO_IS_ARM_TRUE
652 LIBGO_IS_ALPHA_FALSE
653 LIBGO_IS_ALPHA_TRUE
654 LIBGO_IS_386_FALSE
655 LIBGO_IS_386_TRUE
656 USE_DEJAGNU
657 GOOS
658 LIBGO_IS_SOLARIS_FALSE
659 LIBGO_IS_SOLARIS_TRUE
660 LIBGO_IS_RTEMS_FALSE
661 LIBGO_IS_RTEMS_TRUE
662 LIBGO_IS_DRAGONFLY_FALSE
663 LIBGO_IS_DRAGONFLY_TRUE
664 LIBGO_IS_OPENBSD_FALSE
665 LIBGO_IS_OPENBSD_TRUE
666 LIBGO_IS_NETBSD_FALSE
667 LIBGO_IS_NETBSD_TRUE
668 LIBGO_IS_LINUX_FALSE
669 LIBGO_IS_LINUX_TRUE
670 LIBGO_IS_IRIX_FALSE
671 LIBGO_IS_IRIX_TRUE
672 LIBGO_IS_FREEBSD_FALSE
673 LIBGO_IS_FREEBSD_TRUE
674 LIBGO_IS_DARWIN_FALSE
675 LIBGO_IS_DARWIN_TRUE
676 go_include
677 LIBFFIINCS
678 LIBFFI
679 nover_glibgo_toolexeclibdir
680 glibgo_toolexeclibdir
681 glibgo_toolexecdir
682 WERROR
683 WARN_FLAGS
684 CC_FOR_BUILD
685 enable_static
686 enable_shared
688 OTOOL64
689 OTOOL
690 LIPO
691 NMEDIT
692 DSYMUTIL
694 OBJDUMP
695 LN_S
697 ac_ct_DUMPBIN
698 DUMPBIN
699 LIBTOOL
700 OBJCOPY
701 RANLIB
703 FGREP
704 EGREP
705 GREP
707 MAINT
708 MAINTAINER_MODE_FALSE
709 MAINTAINER_MODE_TRUE
710 GOCFLAGS
712 am__fastdepCC_FALSE
713 am__fastdepCC_TRUE
714 CCDEPMODE
715 AMDEPBACKSLASH
716 AMDEP_FALSE
717 AMDEP_TRUE
718 am__quote
719 am__include
720 DEPDIR
721 OBJEXT
722 EXEEXT
723 ac_ct_CC
724 CPPFLAGS
725 LDFLAGS
726 CFLAGS
728 am__untar
729 am__tar
730 AMTAR
731 am__leading_dot
732 SET_MAKE
734 mkdir_p
735 MKDIR_P
736 INSTALL_STRIP_PROGRAM
737 STRIP
738 install_sh
739 MAKEINFO
740 AUTOHEADER
741 AUTOMAKE
742 AUTOCONF
743 ACLOCAL
744 VERSION
745 PACKAGE
746 CYGPATH_W
747 am__isrc
748 INSTALL_DATA
749 INSTALL_SCRIPT
750 INSTALL_PROGRAM
751 target_os
752 target_vendor
753 target_cpu
754 target
755 host_os
756 host_vendor
757 host_cpu
758 host
759 build_os
760 build_vendor
761 build_cpu
762 build
763 multi_basedir
764 libtool_VERSION
765 target_alias
766 host_alias
767 build_alias
768 LIBS
769 ECHO_T
770 ECHO_N
771 ECHO_C
772 DEFS
773 mandir
774 localedir
775 libdir
776 psdir
777 pdfdir
778 dvidir
779 htmldir
780 infodir
781 docdir
782 oldincludedir
783 includedir
784 localstatedir
785 sharedstatedir
786 sysconfdir
787 datadir
788 datarootdir
789 libexecdir
790 sbindir
791 bindir
792 program_transform_name
793 prefix
794 exec_prefix
795 PACKAGE_URL
796 PACKAGE_BUGREPORT
797 PACKAGE_STRING
798 PACKAGE_VERSION
799 PACKAGE_TARNAME
800 PACKAGE_NAME
801 PATH_SEPARATOR
802 SHELL'
803 ac_subst_files=''
804 ac_user_opts='
805 enable_option_checking
806 enable_multilib
807 enable_dependency_tracking
808 enable_maintainer_mode
809 with_gnu_ld
810 enable_shared
811 enable_static
812 with_pic
813 enable_fast_install
814 enable_libtool_lock
815 enable_werror
816 enable_version_specific_runtime_libs
817 with_libffi
818 with_system_libunwind
819 enable_sjlj_exceptions
821 ac_precious_vars='build_alias
822 host_alias
823 target_alias
825 CPPFLAGS'
828 # Initialize some variables set by options.
829 ac_init_help=
830 ac_init_version=false
831 ac_unrecognized_opts=
832 ac_unrecognized_sep=
833 # The variables have the same names as the options, with
834 # dashes changed to underlines.
835 cache_file=/dev/null
836 exec_prefix=NONE
837 no_create=
838 no_recursion=
839 prefix=NONE
840 program_prefix=NONE
841 program_suffix=NONE
842 program_transform_name=s,x,x,
843 silent=
844 site=
845 srcdir=
846 verbose=
847 x_includes=NONE
848 x_libraries=NONE
850 # Installation directory options.
851 # These are left unexpanded so users can "make install exec_prefix=/foo"
852 # and all the variables that are supposed to be based on exec_prefix
853 # by default will actually change.
854 # Use braces instead of parens because sh, perl, etc. also accept them.
855 # (The list follows the same order as the GNU Coding Standards.)
856 bindir='${exec_prefix}/bin'
857 sbindir='${exec_prefix}/sbin'
858 libexecdir='${exec_prefix}/libexec'
859 datarootdir='${prefix}/share'
860 datadir='${datarootdir}'
861 sysconfdir='${prefix}/etc'
862 sharedstatedir='${prefix}/com'
863 localstatedir='${prefix}/var'
864 includedir='${prefix}/include'
865 oldincludedir='/usr/include'
866 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
867 infodir='${datarootdir}/info'
868 htmldir='${docdir}'
869 dvidir='${docdir}'
870 pdfdir='${docdir}'
871 psdir='${docdir}'
872 libdir='${exec_prefix}/lib'
873 localedir='${datarootdir}/locale'
874 mandir='${datarootdir}/man'
876 ac_prev=
877 ac_dashdash=
878 for ac_option
880 # If the previous option needs an argument, assign it.
881 if test -n "$ac_prev"; then
882 eval $ac_prev=\$ac_option
883 ac_prev=
884 continue
887 case $ac_option in
888 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
889 *) ac_optarg=yes ;;
890 esac
892 # Accept the important Cygnus configure options, so we can diagnose typos.
894 case $ac_dashdash$ac_option in
896 ac_dashdash=yes ;;
898 -bindir | --bindir | --bindi | --bind | --bin | --bi)
899 ac_prev=bindir ;;
900 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
901 bindir=$ac_optarg ;;
903 -build | --build | --buil | --bui | --bu)
904 ac_prev=build_alias ;;
905 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
906 build_alias=$ac_optarg ;;
908 -cache-file | --cache-file | --cache-fil | --cache-fi \
909 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
910 ac_prev=cache_file ;;
911 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
912 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
913 cache_file=$ac_optarg ;;
915 --config-cache | -C)
916 cache_file=config.cache ;;
918 -datadir | --datadir | --datadi | --datad)
919 ac_prev=datadir ;;
920 -datadir=* | --datadir=* | --datadi=* | --datad=*)
921 datadir=$ac_optarg ;;
923 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
924 | --dataroo | --dataro | --datar)
925 ac_prev=datarootdir ;;
926 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
927 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
928 datarootdir=$ac_optarg ;;
930 -disable-* | --disable-*)
931 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
932 # Reject names that are not valid shell variable names.
933 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
934 as_fn_error "invalid feature name: $ac_useropt"
935 ac_useropt_orig=$ac_useropt
936 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
937 case $ac_user_opts in
939 "enable_$ac_useropt"
940 "*) ;;
941 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
942 ac_unrecognized_sep=', ';;
943 esac
944 eval enable_$ac_useropt=no ;;
946 -docdir | --docdir | --docdi | --doc | --do)
947 ac_prev=docdir ;;
948 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
949 docdir=$ac_optarg ;;
951 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
952 ac_prev=dvidir ;;
953 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
954 dvidir=$ac_optarg ;;
956 -enable-* | --enable-*)
957 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
958 # Reject names that are not valid shell variable names.
959 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
960 as_fn_error "invalid feature name: $ac_useropt"
961 ac_useropt_orig=$ac_useropt
962 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
963 case $ac_user_opts in
965 "enable_$ac_useropt"
966 "*) ;;
967 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
968 ac_unrecognized_sep=', ';;
969 esac
970 eval enable_$ac_useropt=\$ac_optarg ;;
972 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
973 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
974 | --exec | --exe | --ex)
975 ac_prev=exec_prefix ;;
976 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
977 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
978 | --exec=* | --exe=* | --ex=*)
979 exec_prefix=$ac_optarg ;;
981 -gas | --gas | --ga | --g)
982 # Obsolete; use --with-gas.
983 with_gas=yes ;;
985 -help | --help | --hel | --he | -h)
986 ac_init_help=long ;;
987 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
988 ac_init_help=recursive ;;
989 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
990 ac_init_help=short ;;
992 -host | --host | --hos | --ho)
993 ac_prev=host_alias ;;
994 -host=* | --host=* | --hos=* | --ho=*)
995 host_alias=$ac_optarg ;;
997 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
998 ac_prev=htmldir ;;
999 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1000 | --ht=*)
1001 htmldir=$ac_optarg ;;
1003 -includedir | --includedir | --includedi | --included | --include \
1004 | --includ | --inclu | --incl | --inc)
1005 ac_prev=includedir ;;
1006 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1007 | --includ=* | --inclu=* | --incl=* | --inc=*)
1008 includedir=$ac_optarg ;;
1010 -infodir | --infodir | --infodi | --infod | --info | --inf)
1011 ac_prev=infodir ;;
1012 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1013 infodir=$ac_optarg ;;
1015 -libdir | --libdir | --libdi | --libd)
1016 ac_prev=libdir ;;
1017 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1018 libdir=$ac_optarg ;;
1020 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1021 | --libexe | --libex | --libe)
1022 ac_prev=libexecdir ;;
1023 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1024 | --libexe=* | --libex=* | --libe=*)
1025 libexecdir=$ac_optarg ;;
1027 -localedir | --localedir | --localedi | --localed | --locale)
1028 ac_prev=localedir ;;
1029 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1030 localedir=$ac_optarg ;;
1032 -localstatedir | --localstatedir | --localstatedi | --localstated \
1033 | --localstate | --localstat | --localsta | --localst | --locals)
1034 ac_prev=localstatedir ;;
1035 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1036 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1037 localstatedir=$ac_optarg ;;
1039 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1040 ac_prev=mandir ;;
1041 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1042 mandir=$ac_optarg ;;
1044 -nfp | --nfp | --nf)
1045 # Obsolete; use --without-fp.
1046 with_fp=no ;;
1048 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1049 | --no-cr | --no-c | -n)
1050 no_create=yes ;;
1052 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1053 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1054 no_recursion=yes ;;
1056 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1057 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1058 | --oldin | --oldi | --old | --ol | --o)
1059 ac_prev=oldincludedir ;;
1060 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1061 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1062 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1063 oldincludedir=$ac_optarg ;;
1065 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1066 ac_prev=prefix ;;
1067 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1068 prefix=$ac_optarg ;;
1070 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1071 | --program-pre | --program-pr | --program-p)
1072 ac_prev=program_prefix ;;
1073 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1074 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1075 program_prefix=$ac_optarg ;;
1077 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1078 | --program-suf | --program-su | --program-s)
1079 ac_prev=program_suffix ;;
1080 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1081 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1082 program_suffix=$ac_optarg ;;
1084 -program-transform-name | --program-transform-name \
1085 | --program-transform-nam | --program-transform-na \
1086 | --program-transform-n | --program-transform- \
1087 | --program-transform | --program-transfor \
1088 | --program-transfo | --program-transf \
1089 | --program-trans | --program-tran \
1090 | --progr-tra | --program-tr | --program-t)
1091 ac_prev=program_transform_name ;;
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 program_transform_name=$ac_optarg ;;
1101 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1102 ac_prev=pdfdir ;;
1103 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1104 pdfdir=$ac_optarg ;;
1106 -psdir | --psdir | --psdi | --psd | --ps)
1107 ac_prev=psdir ;;
1108 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1109 psdir=$ac_optarg ;;
1111 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1112 | -silent | --silent | --silen | --sile | --sil)
1113 silent=yes ;;
1115 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1116 ac_prev=sbindir ;;
1117 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1118 | --sbi=* | --sb=*)
1119 sbindir=$ac_optarg ;;
1121 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1122 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1123 | --sharedst | --shareds | --shared | --share | --shar \
1124 | --sha | --sh)
1125 ac_prev=sharedstatedir ;;
1126 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1127 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1128 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1129 | --sha=* | --sh=*)
1130 sharedstatedir=$ac_optarg ;;
1132 -site | --site | --sit)
1133 ac_prev=site ;;
1134 -site=* | --site=* | --sit=*)
1135 site=$ac_optarg ;;
1137 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1138 ac_prev=srcdir ;;
1139 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1140 srcdir=$ac_optarg ;;
1142 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1143 | --syscon | --sysco | --sysc | --sys | --sy)
1144 ac_prev=sysconfdir ;;
1145 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1146 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1147 sysconfdir=$ac_optarg ;;
1149 -target | --target | --targe | --targ | --tar | --ta | --t)
1150 ac_prev=target_alias ;;
1151 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1152 target_alias=$ac_optarg ;;
1154 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1155 verbose=yes ;;
1157 -version | --version | --versio | --versi | --vers | -V)
1158 ac_init_version=: ;;
1160 -with-* | --with-*)
1161 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1162 # Reject names that are not valid shell variable names.
1163 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1164 as_fn_error "invalid package name: $ac_useropt"
1165 ac_useropt_orig=$ac_useropt
1166 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1167 case $ac_user_opts in
1169 "with_$ac_useropt"
1170 "*) ;;
1171 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1172 ac_unrecognized_sep=', ';;
1173 esac
1174 eval with_$ac_useropt=\$ac_optarg ;;
1176 -without-* | --without-*)
1177 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1178 # Reject names that are not valid shell variable names.
1179 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1180 as_fn_error "invalid package name: $ac_useropt"
1181 ac_useropt_orig=$ac_useropt
1182 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183 case $ac_user_opts in
1185 "with_$ac_useropt"
1186 "*) ;;
1187 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1188 ac_unrecognized_sep=', ';;
1189 esac
1190 eval with_$ac_useropt=no ;;
1192 --x)
1193 # Obsolete; use --with-x.
1194 with_x=yes ;;
1196 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1197 | --x-incl | --x-inc | --x-in | --x-i)
1198 ac_prev=x_includes ;;
1199 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1200 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1201 x_includes=$ac_optarg ;;
1203 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1204 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1205 ac_prev=x_libraries ;;
1206 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1207 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1208 x_libraries=$ac_optarg ;;
1210 -*) as_fn_error "unrecognized option: \`$ac_option'
1211 Try \`$0 --help' for more information."
1214 *=*)
1215 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1216 # Reject names that are not valid shell variable names.
1217 case $ac_envvar in #(
1218 '' | [0-9]* | *[!_$as_cr_alnum]* )
1219 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1220 esac
1221 eval $ac_envvar=\$ac_optarg
1222 export $ac_envvar ;;
1225 # FIXME: should be removed in autoconf 3.0.
1226 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1227 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1228 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1229 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1232 esac
1233 done
1235 if test -n "$ac_prev"; then
1236 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1237 as_fn_error "missing argument to $ac_option"
1240 if test -n "$ac_unrecognized_opts"; then
1241 case $enable_option_checking in
1242 no) ;;
1243 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1244 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1245 esac
1248 # Check all directory arguments for consistency.
1249 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1250 datadir sysconfdir sharedstatedir localstatedir includedir \
1251 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1252 libdir localedir mandir
1254 eval ac_val=\$$ac_var
1255 # Remove trailing slashes.
1256 case $ac_val in
1257 */ )
1258 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1259 eval $ac_var=\$ac_val;;
1260 esac
1261 # Be sure to have absolute directory names.
1262 case $ac_val in
1263 [\\/$]* | ?:[\\/]* ) continue;;
1264 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1265 esac
1266 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1267 done
1269 # There might be people who depend on the old broken behavior: `$host'
1270 # used to hold the argument of --host etc.
1271 # FIXME: To remove some day.
1272 build=$build_alias
1273 host=$host_alias
1274 target=$target_alias
1276 # FIXME: To remove some day.
1277 if test "x$host_alias" != x; then
1278 if test "x$build_alias" = x; then
1279 cross_compiling=maybe
1280 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1281 If a cross compiler is detected then cross compile mode will be used." >&2
1282 elif test "x$build_alias" != "x$host_alias"; then
1283 cross_compiling=yes
1287 ac_tool_prefix=
1288 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1290 test "$silent" = yes && exec 6>/dev/null
1293 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1294 ac_ls_di=`ls -di .` &&
1295 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1296 as_fn_error "working directory cannot be determined"
1297 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1298 as_fn_error "pwd does not report name of working directory"
1301 # Find the source files, if location was not specified.
1302 if test -z "$srcdir"; then
1303 ac_srcdir_defaulted=yes
1304 # Try the directory containing this script, then the parent directory.
1305 ac_confdir=`$as_dirname -- "$as_myself" ||
1306 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1307 X"$as_myself" : 'X\(//\)[^/]' \| \
1308 X"$as_myself" : 'X\(//\)$' \| \
1309 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1310 $as_echo X"$as_myself" |
1311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1312 s//\1/
1315 /^X\(\/\/\)[^/].*/{
1316 s//\1/
1319 /^X\(\/\/\)$/{
1320 s//\1/
1323 /^X\(\/\).*/{
1324 s//\1/
1327 s/.*/./; q'`
1328 srcdir=$ac_confdir
1329 if test ! -r "$srcdir/$ac_unique_file"; then
1330 srcdir=..
1332 else
1333 ac_srcdir_defaulted=no
1335 if test ! -r "$srcdir/$ac_unique_file"; then
1336 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1337 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1339 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1340 ac_abs_confdir=`(
1341 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1342 pwd)`
1343 # When building in place, set srcdir=.
1344 if test "$ac_abs_confdir" = "$ac_pwd"; then
1345 srcdir=.
1347 # Remove unnecessary trailing slashes from srcdir.
1348 # Double slashes in file names in object file debugging info
1349 # mess up M-x gdb in Emacs.
1350 case $srcdir in
1351 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1352 esac
1353 for ac_var in $ac_precious_vars; do
1354 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1355 eval ac_env_${ac_var}_value=\$${ac_var}
1356 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1357 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1358 done
1361 # Report the --help message.
1363 if test "$ac_init_help" = "long"; then
1364 # Omit some internal or obsolete options to make the list less imposing.
1365 # This message is too long to be a string in the A/UX 3.1 sh.
1366 cat <<_ACEOF
1367 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1369 Usage: $0 [OPTION]... [VAR=VALUE]...
1371 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1372 VAR=VALUE. See below for descriptions of some of the useful variables.
1374 Defaults for the options are specified in brackets.
1376 Configuration:
1377 -h, --help display this help and exit
1378 --help=short display options specific to this package
1379 --help=recursive display the short help of all the included packages
1380 -V, --version display version information and exit
1381 -q, --quiet, --silent do not print \`checking...' messages
1382 --cache-file=FILE cache test results in FILE [disabled]
1383 -C, --config-cache alias for \`--cache-file=config.cache'
1384 -n, --no-create do not create output files
1385 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1387 Installation directories:
1388 --prefix=PREFIX install architecture-independent files in PREFIX
1389 [$ac_default_prefix]
1390 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1391 [PREFIX]
1393 By default, \`make install' will install all the files in
1394 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1395 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1396 for instance \`--prefix=\$HOME'.
1398 For better control, use the options below.
1400 Fine tuning of the installation directories:
1401 --bindir=DIR user executables [EPREFIX/bin]
1402 --sbindir=DIR system admin executables [EPREFIX/sbin]
1403 --libexecdir=DIR program executables [EPREFIX/libexec]
1404 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1405 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1406 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1407 --libdir=DIR object code libraries [EPREFIX/lib]
1408 --includedir=DIR C header files [PREFIX/include]
1409 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1410 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1411 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1412 --infodir=DIR info documentation [DATAROOTDIR/info]
1413 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1414 --mandir=DIR man documentation [DATAROOTDIR/man]
1415 --docdir=DIR documentation root [DATAROOTDIR/doc/libgo]
1416 --htmldir=DIR html documentation [DOCDIR]
1417 --dvidir=DIR dvi documentation [DOCDIR]
1418 --pdfdir=DIR pdf documentation [DOCDIR]
1419 --psdir=DIR ps documentation [DOCDIR]
1420 _ACEOF
1422 cat <<\_ACEOF
1424 Program names:
1425 --program-prefix=PREFIX prepend PREFIX to installed program names
1426 --program-suffix=SUFFIX append SUFFIX to installed program names
1427 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1429 System types:
1430 --build=BUILD configure for building on BUILD [guessed]
1431 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1432 --target=TARGET configure for building compilers for TARGET [HOST]
1433 _ACEOF
1436 if test -n "$ac_init_help"; then
1437 case $ac_init_help in
1438 short | recursive ) echo "Configuration of package-unused version-unused:";;
1439 esac
1440 cat <<\_ACEOF
1442 Optional Features:
1443 --disable-option-checking ignore unrecognized --enable/--with options
1444 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1445 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1446 --enable-multilib build many library versions (default)
1447 --disable-dependency-tracking speeds up one-time build
1448 --enable-dependency-tracking do not reject slow dependency extractors
1449 --enable-maintainer-mode enable make rules and dependencies not useful
1450 (and sometimes confusing) to the casual installer
1451 --enable-shared[=PKGS] build shared libraries [default=yes]
1452 --enable-static[=PKGS] build static libraries [default=yes]
1453 --enable-fast-install[=PKGS]
1454 optimize for fast installation [default=yes]
1455 --disable-libtool-lock avoid locking (might break parallel builds)
1456 --enable-werror turns on -Werror [default=yes]
1457 --enable-version-specific-runtime-libs
1458 Specify that runtime libraries should be installed
1459 in a compiler-specific directory
1460 --enable-sjlj-exceptions
1461 force use of builtin_setjmp for exceptions
1463 Optional Packages:
1464 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1465 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1466 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1467 --with-pic try to use only PIC/non-PIC objects [default=use
1468 both]
1469 --without-libffi don't use libffi
1470 --with-system-libunwind use installed libunwind
1472 Some influential environment variables:
1473 CC C compiler command
1474 CFLAGS C compiler flags
1475 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1476 nonstandard directory <lib dir>
1477 LIBS libraries to pass to the linker, e.g. -l<library>
1478 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1479 you have headers in a nonstandard directory <include dir>
1480 GOC Go compiler command
1481 GOCFLAGS Go compiler flags
1482 CPP C preprocessor
1484 Use these variables to override the choices made by `configure' or to help
1485 it to find libraries and programs with nonstandard names/locations.
1487 Report bugs to the package provider.
1488 _ACEOF
1489 ac_status=$?
1492 if test "$ac_init_help" = "recursive"; then
1493 # If there are subdirs, report their specific --help.
1494 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1495 test -d "$ac_dir" ||
1496 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1497 continue
1498 ac_builddir=.
1500 case "$ac_dir" in
1501 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1503 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1504 # A ".." for each directory in $ac_dir_suffix.
1505 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1506 case $ac_top_builddir_sub in
1507 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1509 esac ;;
1510 esac
1511 ac_abs_top_builddir=$ac_pwd
1512 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1513 # for backward compatibility:
1514 ac_top_builddir=$ac_top_build_prefix
1516 case $srcdir in
1517 .) # We are building in place.
1518 ac_srcdir=.
1519 ac_top_srcdir=$ac_top_builddir_sub
1520 ac_abs_top_srcdir=$ac_pwd ;;
1521 [\\/]* | ?:[\\/]* ) # Absolute name.
1522 ac_srcdir=$srcdir$ac_dir_suffix;
1523 ac_top_srcdir=$srcdir
1524 ac_abs_top_srcdir=$srcdir ;;
1525 *) # Relative name.
1526 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1527 ac_top_srcdir=$ac_top_build_prefix$srcdir
1528 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1529 esac
1530 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1532 cd "$ac_dir" || { ac_status=$?; continue; }
1533 # Check for guested configure.
1534 if test -f "$ac_srcdir/configure.gnu"; then
1535 echo &&
1536 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1537 elif test -f "$ac_srcdir/configure"; then
1538 echo &&
1539 $SHELL "$ac_srcdir/configure" --help=recursive
1540 else
1541 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1542 fi || ac_status=$?
1543 cd "$ac_pwd" || { ac_status=$?; break; }
1544 done
1547 test -n "$ac_init_help" && exit $ac_status
1548 if $ac_init_version; then
1549 cat <<\_ACEOF
1550 package-unused configure version-unused
1551 generated by GNU Autoconf 2.64
1553 Copyright (C) 2009 Free Software Foundation, Inc.
1554 This configure script is free software; the Free Software Foundation
1555 gives unlimited permission to copy, distribute and modify it.
1556 _ACEOF
1557 exit
1560 ## ------------------------ ##
1561 ## Autoconf initialization. ##
1562 ## ------------------------ ##
1564 # ac_fn_c_try_compile LINENO
1565 # --------------------------
1566 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1567 ac_fn_c_try_compile ()
1569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570 rm -f conftest.$ac_objext
1571 if { { ac_try="$ac_compile"
1572 case "(($ac_try" in
1573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574 *) ac_try_echo=$ac_try;;
1575 esac
1576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577 $as_echo "$ac_try_echo"; } >&5
1578 (eval "$ac_compile") 2>conftest.err
1579 ac_status=$?
1580 if test -s conftest.err; then
1581 grep -v '^ *+' conftest.err >conftest.er1
1582 cat conftest.er1 >&5
1583 mv -f conftest.er1 conftest.err
1585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586 test $ac_status = 0; } && {
1587 test -z "$ac_c_werror_flag" ||
1588 test ! -s conftest.err
1589 } && test -s conftest.$ac_objext; then :
1590 ac_retval=0
1591 else
1592 $as_echo "$as_me: failed program was:" >&5
1593 sed 's/^/| /' conftest.$ac_ext >&5
1595 ac_retval=1
1597 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1598 return $ac_retval
1600 } # ac_fn_c_try_compile
1602 # ac_fn_c_try_link LINENO
1603 # -----------------------
1604 # Try to link conftest.$ac_ext, and return whether this succeeded.
1605 ac_fn_c_try_link ()
1607 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608 rm -f conftest.$ac_objext conftest$ac_exeext
1609 if { { ac_try="$ac_link"
1610 case "(($ac_try" in
1611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1612 *) ac_try_echo=$ac_try;;
1613 esac
1614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1615 $as_echo "$ac_try_echo"; } >&5
1616 (eval "$ac_link") 2>conftest.err
1617 ac_status=$?
1618 if test -s conftest.err; then
1619 grep -v '^ *+' conftest.err >conftest.er1
1620 cat conftest.er1 >&5
1621 mv -f conftest.er1 conftest.err
1623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1624 test $ac_status = 0; } && {
1625 test -z "$ac_c_werror_flag" ||
1626 test ! -s conftest.err
1627 } && test -s conftest$ac_exeext && {
1628 test "$cross_compiling" = yes ||
1629 $as_test_x conftest$ac_exeext
1630 }; then :
1631 ac_retval=0
1632 else
1633 $as_echo "$as_me: failed program was:" >&5
1634 sed 's/^/| /' conftest.$ac_ext >&5
1636 ac_retval=1
1638 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1639 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1640 # interfere with the next link command; also delete a directory that is
1641 # left behind by Apple's compiler. We do this before executing the actions.
1642 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1643 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1644 return $ac_retval
1646 } # ac_fn_c_try_link
1648 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1649 # -------------------------------------------------------
1650 # Tests whether HEADER exists and can be compiled using the include files in
1651 # INCLUDES, setting the cache variable VAR accordingly.
1652 ac_fn_c_check_header_compile ()
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1656 $as_echo_n "checking for $2... " >&6; }
1657 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1658 $as_echo_n "(cached) " >&6
1659 else
1660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1661 /* end confdefs.h. */
1663 #include <$2>
1664 _ACEOF
1665 if ac_fn_c_try_compile "$LINENO"; then :
1666 eval "$3=yes"
1667 else
1668 eval "$3=no"
1670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1672 eval ac_res=\$$3
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1674 $as_echo "$ac_res" >&6; }
1675 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1677 } # ac_fn_c_check_header_compile
1679 # ac_fn_c_try_cpp LINENO
1680 # ----------------------
1681 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1682 ac_fn_c_try_cpp ()
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 if { { ac_try="$ac_cpp conftest.$ac_ext"
1686 case "(($ac_try" in
1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688 *) ac_try_echo=$ac_try;;
1689 esac
1690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691 $as_echo "$ac_try_echo"; } >&5
1692 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1693 ac_status=$?
1694 if test -s conftest.err; then
1695 grep -v '^ *+' conftest.err >conftest.er1
1696 cat conftest.er1 >&5
1697 mv -f conftest.er1 conftest.err
1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; } >/dev/null && {
1701 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1702 test ! -s conftest.err
1703 }; then :
1704 ac_retval=0
1705 else
1706 $as_echo "$as_me: failed program was:" >&5
1707 sed 's/^/| /' conftest.$ac_ext >&5
1709 ac_retval=1
1711 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1712 return $ac_retval
1714 } # ac_fn_c_try_cpp
1716 # ac_fn_c_try_run LINENO
1717 # ----------------------
1718 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1719 # that executables *can* be run.
1720 ac_fn_c_try_run ()
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 if { { ac_try="$ac_link"
1724 case "(($ac_try" in
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1727 esac
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_link") 2>&5
1731 ac_status=$?
1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1734 { { case "(($ac_try" in
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1737 esac
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_try") 2>&5
1741 ac_status=$?
1742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743 test $ac_status = 0; }; }; then :
1744 ac_retval=0
1745 else
1746 $as_echo "$as_me: program exited with status $ac_status" >&5
1747 $as_echo "$as_me: failed program was:" >&5
1748 sed 's/^/| /' conftest.$ac_ext >&5
1750 ac_retval=$ac_status
1752 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1753 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1754 return $ac_retval
1756 } # ac_fn_c_try_run
1758 # ac_fn_c_check_func LINENO FUNC VAR
1759 # ----------------------------------
1760 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1761 ac_fn_c_check_func ()
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1765 $as_echo_n "checking for $2... " >&6; }
1766 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1767 $as_echo_n "(cached) " >&6
1768 else
1769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1770 /* end confdefs.h. */
1771 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1773 #define $2 innocuous_$2
1775 /* System header to define __stub macros and hopefully few prototypes,
1776 which can conflict with char $2 (); below.
1777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1778 <limits.h> exists even on freestanding compilers. */
1780 #ifdef __STDC__
1781 # include <limits.h>
1782 #else
1783 # include <assert.h>
1784 #endif
1786 #undef $2
1788 /* Override any GCC internal prototype to avoid an error.
1789 Use char because int might match the return type of a GCC
1790 builtin and then its argument prototype would still apply. */
1791 #ifdef __cplusplus
1792 extern "C"
1793 #endif
1794 char $2 ();
1795 /* The GNU C library defines this for functions which it implements
1796 to always fail with ENOSYS. Some functions are actually named
1797 something starting with __ and the normal name is an alias. */
1798 #if defined __stub_$2 || defined __stub___$2
1799 choke me
1800 #endif
1803 main ()
1805 return $2 ();
1807 return 0;
1809 _ACEOF
1810 if ac_fn_c_try_link "$LINENO"; then :
1811 eval "$3=yes"
1812 else
1813 eval "$3=no"
1815 rm -f core conftest.err conftest.$ac_objext \
1816 conftest$ac_exeext conftest.$ac_ext
1818 eval ac_res=\$$3
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1820 $as_echo "$ac_res" >&6; }
1821 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1823 } # ac_fn_c_check_func
1825 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1826 # -------------------------------------------------------
1827 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1828 # the include files in INCLUDES and setting the cache variable VAR
1829 # accordingly.
1830 ac_fn_c_check_header_mongrel ()
1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1835 $as_echo_n "checking for $2... " >&6; }
1836 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1837 $as_echo_n "(cached) " >&6
1839 eval ac_res=\$$3
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1841 $as_echo "$ac_res" >&6; }
1842 else
1843 # Is the header compilable?
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1845 $as_echo_n "checking $2 usability... " >&6; }
1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847 /* end confdefs.h. */
1849 #include <$2>
1850 _ACEOF
1851 if ac_fn_c_try_compile "$LINENO"; then :
1852 ac_header_compiler=yes
1853 else
1854 ac_header_compiler=no
1856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1858 $as_echo "$ac_header_compiler" >&6; }
1860 # Is the header present?
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1862 $as_echo_n "checking $2 presence... " >&6; }
1863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864 /* end confdefs.h. */
1865 #include <$2>
1866 _ACEOF
1867 if ac_fn_c_try_cpp "$LINENO"; then :
1868 ac_header_preproc=yes
1869 else
1870 ac_header_preproc=no
1872 rm -f conftest.err conftest.$ac_ext
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1874 $as_echo "$ac_header_preproc" >&6; }
1876 # So? What about this header?
1877 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1878 yes:no: )
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1880 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1882 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1884 no:yes:* )
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1886 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1888 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1890 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1892 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1894 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1896 esac
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1898 $as_echo_n "checking for $2... " >&6; }
1899 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1900 $as_echo_n "(cached) " >&6
1901 else
1902 eval "$3=\$ac_header_compiler"
1904 eval ac_res=\$$3
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1906 $as_echo "$ac_res" >&6; }
1908 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1910 } # ac_fn_c_check_header_mongrel
1912 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1913 # -------------------------------------------
1914 # Tests whether TYPE exists after having included INCLUDES, setting cache
1915 # variable VAR accordingly.
1916 ac_fn_c_check_type ()
1918 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1920 $as_echo_n "checking for $2... " >&6; }
1921 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1922 $as_echo_n "(cached) " >&6
1923 else
1924 eval "$3=no"
1925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926 /* end confdefs.h. */
1929 main ()
1931 if (sizeof ($2))
1932 return 0;
1934 return 0;
1936 _ACEOF
1937 if ac_fn_c_try_compile "$LINENO"; then :
1938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939 /* end confdefs.h. */
1942 main ()
1944 if (sizeof (($2)))
1945 return 0;
1947 return 0;
1949 _ACEOF
1950 if ac_fn_c_try_compile "$LINENO"; then :
1952 else
1953 eval "$3=yes"
1955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1959 eval ac_res=\$$3
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1961 $as_echo "$ac_res" >&6; }
1962 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1964 } # ac_fn_c_check_type
1966 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1967 # --------------------------------------------
1968 # Tries to find the compile-time value of EXPR in a program that includes
1969 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1970 # computed
1971 ac_fn_c_compute_int ()
1973 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974 if test "$cross_compiling" = yes; then
1975 # Depending upon the size, compute the lo and hi bounds.
1976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1977 /* end confdefs.h. */
1980 main ()
1982 static int test_array [1 - 2 * !(($2) >= 0)];
1983 test_array [0] = 0
1986 return 0;
1988 _ACEOF
1989 if ac_fn_c_try_compile "$LINENO"; then :
1990 ac_lo=0 ac_mid=0
1991 while :; do
1992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1993 /* end confdefs.h. */
1996 main ()
1998 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1999 test_array [0] = 0
2002 return 0;
2004 _ACEOF
2005 if ac_fn_c_try_compile "$LINENO"; then :
2006 ac_hi=$ac_mid; break
2007 else
2008 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2009 if test $ac_lo -le $ac_mid; then
2010 ac_lo= ac_hi=
2011 break
2013 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2016 done
2017 else
2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h. */
2022 main ()
2024 static int test_array [1 - 2 * !(($2) < 0)];
2025 test_array [0] = 0
2028 return 0;
2030 _ACEOF
2031 if ac_fn_c_try_compile "$LINENO"; then :
2032 ac_hi=-1 ac_mid=-1
2033 while :; do
2034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h. */
2038 main ()
2040 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2041 test_array [0] = 0
2044 return 0;
2046 _ACEOF
2047 if ac_fn_c_try_compile "$LINENO"; then :
2048 ac_lo=$ac_mid; break
2049 else
2050 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2051 if test $ac_mid -le $ac_hi; then
2052 ac_lo= ac_hi=
2053 break
2055 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058 done
2059 else
2060 ac_lo= ac_hi=
2062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2065 # Binary search between lo and hi bounds.
2066 while test "x$ac_lo" != "x$ac_hi"; do
2067 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2069 /* end confdefs.h. */
2072 main ()
2074 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2075 test_array [0] = 0
2078 return 0;
2080 _ACEOF
2081 if ac_fn_c_try_compile "$LINENO"; then :
2082 ac_hi=$ac_mid
2083 else
2084 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2087 done
2088 case $ac_lo in #((
2089 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2090 '') ac_retval=1 ;;
2091 esac
2092 else
2093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2094 /* end confdefs.h. */
2096 static long int longval () { return $2; }
2097 static unsigned long int ulongval () { return $2; }
2098 #include <stdio.h>
2099 #include <stdlib.h>
2101 main ()
2104 FILE *f = fopen ("conftest.val", "w");
2105 if (! f)
2106 return 1;
2107 if (($2) < 0)
2109 long int i = longval ();
2110 if (i != ($2))
2111 return 1;
2112 fprintf (f, "%ld", i);
2114 else
2116 unsigned long int i = ulongval ();
2117 if (i != ($2))
2118 return 1;
2119 fprintf (f, "%lu", i);
2121 /* Do not output a trailing newline, as this causes \r\n confusion
2122 on some platforms. */
2123 return ferror (f) || fclose (f) != 0;
2126 return 0;
2128 _ACEOF
2129 if ac_fn_c_try_run "$LINENO"; then :
2130 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2131 else
2132 ac_retval=1
2134 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2135 conftest.$ac_objext conftest.beam conftest.$ac_ext
2136 rm -f conftest.val
2139 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2140 return $ac_retval
2142 } # ac_fn_c_compute_int
2143 cat >config.log <<_ACEOF
2144 This file contains any messages produced by compilers while
2145 running configure, to aid debugging if configure makes a mistake.
2147 It was created by package-unused $as_me version-unused, which was
2148 generated by GNU Autoconf 2.64. Invocation command line was
2150 $ $0 $@
2152 _ACEOF
2153 exec 5>>config.log
2155 cat <<_ASUNAME
2156 ## --------- ##
2157 ## Platform. ##
2158 ## --------- ##
2160 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2161 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2162 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2163 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2164 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2166 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2167 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2169 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2170 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2171 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2172 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2173 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2174 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2175 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2177 _ASUNAME
2179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2180 for as_dir in $PATH
2182 IFS=$as_save_IFS
2183 test -z "$as_dir" && as_dir=.
2184 $as_echo "PATH: $as_dir"
2185 done
2186 IFS=$as_save_IFS
2188 } >&5
2190 cat >&5 <<_ACEOF
2193 ## ----------- ##
2194 ## Core tests. ##
2195 ## ----------- ##
2197 _ACEOF
2200 # Keep a trace of the command line.
2201 # Strip out --no-create and --no-recursion so they do not pile up.
2202 # Strip out --silent because we don't want to record it for future runs.
2203 # Also quote any args containing shell meta-characters.
2204 # Make two passes to allow for proper duplicate-argument suppression.
2205 ac_configure_args=
2206 ac_configure_args0=
2207 ac_configure_args1=
2208 ac_must_keep_next=false
2209 for ac_pass in 1 2
2211 for ac_arg
2213 case $ac_arg in
2214 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2215 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2216 | -silent | --silent | --silen | --sile | --sil)
2217 continue ;;
2218 *\'*)
2219 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2220 esac
2221 case $ac_pass in
2222 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2224 as_fn_append ac_configure_args1 " '$ac_arg'"
2225 if test $ac_must_keep_next = true; then
2226 ac_must_keep_next=false # Got value, back to normal.
2227 else
2228 case $ac_arg in
2229 *=* | --config-cache | -C | -disable-* | --disable-* \
2230 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2231 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2232 | -with-* | --with-* | -without-* | --without-* | --x)
2233 case "$ac_configure_args0 " in
2234 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2235 esac
2237 -* ) ac_must_keep_next=true ;;
2238 esac
2240 as_fn_append ac_configure_args " '$ac_arg'"
2242 esac
2243 done
2244 done
2245 { ac_configure_args0=; unset ac_configure_args0;}
2246 { ac_configure_args1=; unset ac_configure_args1;}
2248 # When interrupted or exit'd, cleanup temporary files, and complete
2249 # config.log. We remove comments because anyway the quotes in there
2250 # would cause problems or look ugly.
2251 # WARNING: Use '\'' to represent an apostrophe within the trap.
2252 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2253 trap 'exit_status=$?
2254 # Save into config.log some information that might help in debugging.
2256 echo
2258 cat <<\_ASBOX
2259 ## ---------------- ##
2260 ## Cache variables. ##
2261 ## ---------------- ##
2262 _ASBOX
2263 echo
2264 # The following way of writing the cache mishandles newlines in values,
2266 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2267 eval ac_val=\$$ac_var
2268 case $ac_val in #(
2269 *${as_nl}*)
2270 case $ac_var in #(
2271 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2272 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2273 esac
2274 case $ac_var in #(
2275 _ | IFS | as_nl) ;; #(
2276 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2277 *) { eval $ac_var=; unset $ac_var;} ;;
2278 esac ;;
2279 esac
2280 done
2281 (set) 2>&1 |
2282 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2283 *${as_nl}ac_space=\ *)
2284 sed -n \
2285 "s/'\''/'\''\\\\'\'''\''/g;
2286 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2287 ;; #(
2289 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2291 esac |
2292 sort
2294 echo
2296 cat <<\_ASBOX
2297 ## ----------------- ##
2298 ## Output variables. ##
2299 ## ----------------- ##
2300 _ASBOX
2301 echo
2302 for ac_var in $ac_subst_vars
2304 eval ac_val=\$$ac_var
2305 case $ac_val in
2306 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2307 esac
2308 $as_echo "$ac_var='\''$ac_val'\''"
2309 done | sort
2310 echo
2312 if test -n "$ac_subst_files"; then
2313 cat <<\_ASBOX
2314 ## ------------------- ##
2315 ## File substitutions. ##
2316 ## ------------------- ##
2317 _ASBOX
2318 echo
2319 for ac_var in $ac_subst_files
2321 eval ac_val=\$$ac_var
2322 case $ac_val in
2323 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2324 esac
2325 $as_echo "$ac_var='\''$ac_val'\''"
2326 done | sort
2327 echo
2330 if test -s confdefs.h; then
2331 cat <<\_ASBOX
2332 ## ----------- ##
2333 ## confdefs.h. ##
2334 ## ----------- ##
2335 _ASBOX
2336 echo
2337 cat confdefs.h
2338 echo
2340 test "$ac_signal" != 0 &&
2341 $as_echo "$as_me: caught signal $ac_signal"
2342 $as_echo "$as_me: exit $exit_status"
2343 } >&5
2344 rm -f core *.core core.conftest.* &&
2345 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2346 exit $exit_status
2348 for ac_signal in 1 2 13 15; do
2349 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2350 done
2351 ac_signal=0
2353 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2354 rm -f -r conftest* confdefs.h
2356 $as_echo "/* confdefs.h */" > confdefs.h
2358 # Predefined preprocessor variables.
2360 cat >>confdefs.h <<_ACEOF
2361 #define PACKAGE_NAME "$PACKAGE_NAME"
2362 _ACEOF
2364 cat >>confdefs.h <<_ACEOF
2365 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2366 _ACEOF
2368 cat >>confdefs.h <<_ACEOF
2369 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2370 _ACEOF
2372 cat >>confdefs.h <<_ACEOF
2373 #define PACKAGE_STRING "$PACKAGE_STRING"
2374 _ACEOF
2376 cat >>confdefs.h <<_ACEOF
2377 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2378 _ACEOF
2380 cat >>confdefs.h <<_ACEOF
2381 #define PACKAGE_URL "$PACKAGE_URL"
2382 _ACEOF
2385 # Let the site file select an alternate cache file if it wants to.
2386 # Prefer an explicitly selected file to automatically selected ones.
2387 ac_site_file1=NONE
2388 ac_site_file2=NONE
2389 if test -n "$CONFIG_SITE"; then
2390 ac_site_file1=$CONFIG_SITE
2391 elif test "x$prefix" != xNONE; then
2392 ac_site_file1=$prefix/share/config.site
2393 ac_site_file2=$prefix/etc/config.site
2394 else
2395 ac_site_file1=$ac_default_prefix/share/config.site
2396 ac_site_file2=$ac_default_prefix/etc/config.site
2398 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2400 test "x$ac_site_file" = xNONE && continue
2401 if test -r "$ac_site_file"; then
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2403 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2404 sed 's/^/| /' "$ac_site_file" >&5
2405 . "$ac_site_file"
2407 done
2409 if test -r "$cache_file"; then
2410 # Some versions of bash will fail to source /dev/null (special
2411 # files actually), so we avoid doing that.
2412 if test -f "$cache_file"; then
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2414 $as_echo "$as_me: loading cache $cache_file" >&6;}
2415 case $cache_file in
2416 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2417 *) . "./$cache_file";;
2418 esac
2420 else
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2422 $as_echo "$as_me: creating cache $cache_file" >&6;}
2423 >$cache_file
2426 # Check that the precious variables saved in the cache have kept the same
2427 # value.
2428 ac_cache_corrupted=false
2429 for ac_var in $ac_precious_vars; do
2430 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2431 eval ac_new_set=\$ac_env_${ac_var}_set
2432 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2433 eval ac_new_val=\$ac_env_${ac_var}_value
2434 case $ac_old_set,$ac_new_set in
2435 set,)
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2437 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2438 ac_cache_corrupted=: ;;
2439 ,set)
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2441 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2442 ac_cache_corrupted=: ;;
2443 ,);;
2445 if test "x$ac_old_val" != "x$ac_new_val"; then
2446 # differences in whitespace do not lead to failure.
2447 ac_old_val_w=`echo x $ac_old_val`
2448 ac_new_val_w=`echo x $ac_new_val`
2449 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2451 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2452 ac_cache_corrupted=:
2453 else
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2455 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2456 eval $ac_var=\$ac_old_val
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2459 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2461 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2462 fi;;
2463 esac
2464 # Pass precious variables to config.status.
2465 if test "$ac_new_set" = set; then
2466 case $ac_new_val in
2467 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2468 *) ac_arg=$ac_var=$ac_new_val ;;
2469 esac
2470 case " $ac_configure_args " in
2471 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2472 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2473 esac
2475 done
2476 if $ac_cache_corrupted; then
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2478 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2480 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2481 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2483 ## -------------------- ##
2484 ## Main body of script. ##
2485 ## -------------------- ##
2487 ac_ext=c
2488 ac_cpp='$CPP $CPPFLAGS'
2489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2498 ac_config_headers="$ac_config_headers config.h"
2501 libtool_VERSION=5:0:0
2504 # Default to --enable-multilib
2505 # Check whether --enable-multilib was given.
2506 if test "${enable_multilib+set}" = set; then :
2507 enableval=$enable_multilib; case "$enableval" in
2508 yes) multilib=yes ;;
2509 no) multilib=no ;;
2510 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2511 esac
2512 else
2513 multilib=yes
2517 # We may get other options which we leave undocumented:
2518 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2519 # See config-ml.in if you want the gory details.
2521 if test "$srcdir" = "."; then
2522 if test "$with_target_subdir" != "."; then
2523 multi_basedir="$srcdir/$with_multisrctop../.."
2524 else
2525 multi_basedir="$srcdir/$with_multisrctop.."
2527 else
2528 multi_basedir="$srcdir/.."
2532 # Even if the default multilib is not a cross compilation,
2533 # it may be that some of the other multilibs are.
2534 if test $cross_compiling = no && test $multilib = yes \
2535 && test "x${with_multisubdir}" != x ; then
2536 cross_compiling=maybe
2539 ac_config_commands="$ac_config_commands default-1"
2542 ac_aux_dir=
2543 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2544 for ac_t in install-sh install.sh shtool; do
2545 if test -f "$ac_dir/$ac_t"; then
2546 ac_aux_dir=$ac_dir
2547 ac_install_sh="$ac_aux_dir/$ac_t -c"
2548 break 2
2550 done
2551 done
2552 if test -z "$ac_aux_dir"; then
2553 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2556 # These three variables are undocumented and unsupported,
2557 # and are intended to be withdrawn in a future Autoconf release.
2558 # They can cause serious problems if a builder's source tree is in a directory
2559 # whose full name contains unusual characters.
2560 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2561 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2562 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2565 # Make sure we can run config.sub.
2566 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2567 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2570 $as_echo_n "checking build system type... " >&6; }
2571 if test "${ac_cv_build+set}" = set; then :
2572 $as_echo_n "(cached) " >&6
2573 else
2574 ac_build_alias=$build_alias
2575 test "x$ac_build_alias" = x &&
2576 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2577 test "x$ac_build_alias" = x &&
2578 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2579 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2580 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2584 $as_echo "$ac_cv_build" >&6; }
2585 case $ac_cv_build in
2586 *-*-*) ;;
2587 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2588 esac
2589 build=$ac_cv_build
2590 ac_save_IFS=$IFS; IFS='-'
2591 set x $ac_cv_build
2592 shift
2593 build_cpu=$1
2594 build_vendor=$2
2595 shift; shift
2596 # Remember, the first character of IFS is used to create $*,
2597 # except with old shells:
2598 build_os=$*
2599 IFS=$ac_save_IFS
2600 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2604 $as_echo_n "checking host system type... " >&6; }
2605 if test "${ac_cv_host+set}" = set; then :
2606 $as_echo_n "(cached) " >&6
2607 else
2608 if test "x$host_alias" = x; then
2609 ac_cv_host=$ac_cv_build
2610 else
2611 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2612 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2617 $as_echo "$ac_cv_host" >&6; }
2618 case $ac_cv_host in
2619 *-*-*) ;;
2620 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2621 esac
2622 host=$ac_cv_host
2623 ac_save_IFS=$IFS; IFS='-'
2624 set x $ac_cv_host
2625 shift
2626 host_cpu=$1
2627 host_vendor=$2
2628 shift; shift
2629 # Remember, the first character of IFS is used to create $*,
2630 # except with old shells:
2631 host_os=$*
2632 IFS=$ac_save_IFS
2633 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2637 $as_echo_n "checking target system type... " >&6; }
2638 if test "${ac_cv_target+set}" = set; then :
2639 $as_echo_n "(cached) " >&6
2640 else
2641 if test "x$target_alias" = x; then
2642 ac_cv_target=$ac_cv_host
2643 else
2644 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2645 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2650 $as_echo "$ac_cv_target" >&6; }
2651 case $ac_cv_target in
2652 *-*-*) ;;
2653 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2654 esac
2655 target=$ac_cv_target
2656 ac_save_IFS=$IFS; IFS='-'
2657 set x $ac_cv_target
2658 shift
2659 target_cpu=$1
2660 target_vendor=$2
2661 shift; shift
2662 # Remember, the first character of IFS is used to create $*,
2663 # except with old shells:
2664 target_os=$*
2665 IFS=$ac_save_IFS
2666 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2669 # The aliases save the names the user supplied, while $host etc.
2670 # will get canonicalized.
2671 test -n "$target_alias" &&
2672 test "$program_prefix$program_suffix$program_transform_name" = \
2673 NONENONEs,x,x, &&
2674 program_prefix=${target_alias}-
2676 target_alias=${target_alias-$host_alias}
2678 am__api_version='1.11'
2680 # Find a good install program. We prefer a C program (faster),
2681 # so one script is as good as another. But avoid the broken or
2682 # incompatible versions:
2683 # SysV /etc/install, /usr/sbin/install
2684 # SunOS /usr/etc/install
2685 # IRIX /sbin/install
2686 # AIX /bin/install
2687 # AmigaOS /C/install, which installs bootblocks on floppy discs
2688 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2689 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2690 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2691 # OS/2's system install, which has a completely different semantic
2692 # ./install, which can be erroneously created by make from ./install.sh.
2693 # Reject install programs that cannot install multiple files.
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2695 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2696 if test -z "$INSTALL"; then
2697 if test "${ac_cv_path_install+set}" = set; then :
2698 $as_echo_n "(cached) " >&6
2699 else
2700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701 for as_dir in $PATH
2703 IFS=$as_save_IFS
2704 test -z "$as_dir" && as_dir=.
2705 # Account for people who put trailing slashes in PATH elements.
2706 case $as_dir/ in #((
2707 ./ | .// | /[cC]/* | \
2708 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2709 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2710 /usr/ucb/* ) ;;
2712 # OSF1 and SCO ODT 3.0 have their own names for install.
2713 # Don't use installbsd from OSF since it installs stuff as root
2714 # by default.
2715 for ac_prog in ginstall scoinst install; do
2716 for ac_exec_ext in '' $ac_executable_extensions; do
2717 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2718 if test $ac_prog = install &&
2719 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2720 # AIX install. It has an incompatible calling convention.
2722 elif test $ac_prog = install &&
2723 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2724 # program-specific install script used by HP pwplus--don't use.
2726 else
2727 rm -rf conftest.one conftest.two conftest.dir
2728 echo one > conftest.one
2729 echo two > conftest.two
2730 mkdir conftest.dir
2731 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2732 test -s conftest.one && test -s conftest.two &&
2733 test -s conftest.dir/conftest.one &&
2734 test -s conftest.dir/conftest.two
2735 then
2736 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2737 break 3
2741 done
2742 done
2744 esac
2746 done
2747 IFS=$as_save_IFS
2749 rm -rf conftest.one conftest.two conftest.dir
2752 if test "${ac_cv_path_install+set}" = set; then
2753 INSTALL=$ac_cv_path_install
2754 else
2755 # As a last resort, use the slow shell script. Don't cache a
2756 # value for INSTALL within a source directory, because that will
2757 # break other packages using the cache if that directory is
2758 # removed, or if the value is a relative name.
2759 INSTALL=$ac_install_sh
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2763 $as_echo "$INSTALL" >&6; }
2765 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2766 # It thinks the first close brace ends the variable substitution.
2767 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2769 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2771 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2774 $as_echo_n "checking whether build environment is sane... " >&6; }
2775 # Just in case
2776 sleep 1
2777 echo timestamp > conftest.file
2778 # Reject unsafe characters in $srcdir or the absolute working directory
2779 # name. Accept space and tab only in the latter.
2780 am_lf='
2782 case `pwd` in
2783 *[\\\"\#\$\&\'\`$am_lf]*)
2784 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2785 esac
2786 case $srcdir in
2787 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2788 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2789 esac
2791 # Do `set' in a subshell so we don't clobber the current shell's
2792 # arguments. Must try -L first in case configure is actually a
2793 # symlink; some systems play weird games with the mod time of symlinks
2794 # (eg FreeBSD returns the mod time of the symlink's containing
2795 # directory).
2796 if (
2797 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2798 if test "$*" = "X"; then
2799 # -L didn't work.
2800 set X `ls -t "$srcdir/configure" conftest.file`
2802 rm -f conftest.file
2803 if test "$*" != "X $srcdir/configure conftest.file" \
2804 && test "$*" != "X conftest.file $srcdir/configure"; then
2806 # If neither matched, then we have a broken ls. This can happen
2807 # if, for instance, CONFIG_SHELL is bash and it inherits a
2808 # broken ls alias from the environment. This has actually
2809 # happened. Such a system could not be considered "sane".
2810 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2811 alias in your environment" "$LINENO" 5
2814 test "$2" = conftest.file
2816 then
2817 # Ok.
2819 else
2820 as_fn_error "newly created file is older than distributed files!
2821 Check your system clock" "$LINENO" 5
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2824 $as_echo "yes" >&6; }
2825 test "$program_prefix" != NONE &&
2826 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2827 # Use a double $ so make ignores it.
2828 test "$program_suffix" != NONE &&
2829 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2830 # Double any \ or $.
2831 # By default was `s,x,x', remove it if useless.
2832 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2833 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2835 # expand $ac_aux_dir to an absolute path
2836 am_aux_dir=`cd $ac_aux_dir && pwd`
2838 if test x"${MISSING+set}" != xset; then
2839 case $am_aux_dir in
2840 *\ * | *\ *)
2841 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2843 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2844 esac
2846 # Use eval to expand $SHELL
2847 if eval "$MISSING --run true"; then
2848 am_missing_run="$MISSING --run "
2849 else
2850 am_missing_run=
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2852 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2855 if test x"${install_sh}" != xset; then
2856 case $am_aux_dir in
2857 *\ * | *\ *)
2858 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2860 install_sh="\${SHELL} $am_aux_dir/install-sh"
2861 esac
2864 # Installed binaries are usually stripped using `strip' when the user
2865 # run `make install-strip'. However `strip' might not be the right
2866 # tool to use in cross-compilation environments, therefore Automake
2867 # will honor the `STRIP' environment variable to overrule this program.
2868 if test "$cross_compiling" != no; then
2869 if test -n "$ac_tool_prefix"; then
2870 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2871 set dummy ${ac_tool_prefix}strip; ac_word=$2
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2873 $as_echo_n "checking for $ac_word... " >&6; }
2874 if test "${ac_cv_prog_STRIP+set}" = set; then :
2875 $as_echo_n "(cached) " >&6
2876 else
2877 if test -n "$STRIP"; then
2878 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2879 else
2880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881 for as_dir in $PATH
2883 IFS=$as_save_IFS
2884 test -z "$as_dir" && as_dir=.
2885 for ac_exec_ext in '' $ac_executable_extensions; do
2886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2887 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2889 break 2
2891 done
2892 done
2893 IFS=$as_save_IFS
2897 STRIP=$ac_cv_prog_STRIP
2898 if test -n "$STRIP"; then
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2900 $as_echo "$STRIP" >&6; }
2901 else
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2903 $as_echo "no" >&6; }
2908 if test -z "$ac_cv_prog_STRIP"; then
2909 ac_ct_STRIP=$STRIP
2910 # Extract the first word of "strip", so it can be a program name with args.
2911 set dummy strip; ac_word=$2
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2913 $as_echo_n "checking for $ac_word... " >&6; }
2914 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2915 $as_echo_n "(cached) " >&6
2916 else
2917 if test -n "$ac_ct_STRIP"; then
2918 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2919 else
2920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921 for as_dir in $PATH
2923 IFS=$as_save_IFS
2924 test -z "$as_dir" && as_dir=.
2925 for ac_exec_ext in '' $ac_executable_extensions; do
2926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2927 ac_cv_prog_ac_ct_STRIP="strip"
2928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2929 break 2
2931 done
2932 done
2933 IFS=$as_save_IFS
2937 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2938 if test -n "$ac_ct_STRIP"; then
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2940 $as_echo "$ac_ct_STRIP" >&6; }
2941 else
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2943 $as_echo "no" >&6; }
2946 if test "x$ac_ct_STRIP" = x; then
2947 STRIP=":"
2948 else
2949 case $cross_compiling:$ac_tool_warned in
2950 yes:)
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2952 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2953 ac_tool_warned=yes ;;
2954 esac
2955 STRIP=$ac_ct_STRIP
2957 else
2958 STRIP="$ac_cv_prog_STRIP"
2962 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2965 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2966 if test -z "$MKDIR_P"; then
2967 if test "${ac_cv_path_mkdir+set}" = set; then :
2968 $as_echo_n "(cached) " >&6
2969 else
2970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2971 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2973 IFS=$as_save_IFS
2974 test -z "$as_dir" && as_dir=.
2975 for ac_prog in mkdir gmkdir; do
2976 for ac_exec_ext in '' $ac_executable_extensions; do
2977 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2978 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2979 'mkdir (GNU coreutils) '* | \
2980 'mkdir (coreutils) '* | \
2981 'mkdir (fileutils) '4.1*)
2982 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2983 break 3;;
2984 esac
2985 done
2986 done
2987 done
2988 IFS=$as_save_IFS
2992 if test "${ac_cv_path_mkdir+set}" = set; then
2993 MKDIR_P="$ac_cv_path_mkdir -p"
2994 else
2995 # As a last resort, use the slow shell script. Don't cache a
2996 # value for MKDIR_P within a source directory, because that will
2997 # break other packages using the cache if that directory is
2998 # removed, or if the value is a relative name.
2999 test -d ./--version && rmdir ./--version
3000 MKDIR_P="$ac_install_sh -d"
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3004 $as_echo "$MKDIR_P" >&6; }
3006 mkdir_p="$MKDIR_P"
3007 case $mkdir_p in
3008 [\\/$]* | ?:[\\/]*) ;;
3009 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3010 esac
3012 for ac_prog in gawk mawk nawk awk
3014 # Extract the first word of "$ac_prog", so it can be a program name with args.
3015 set dummy $ac_prog; ac_word=$2
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3017 $as_echo_n "checking for $ac_word... " >&6; }
3018 if test "${ac_cv_prog_AWK+set}" = set; then :
3019 $as_echo_n "(cached) " >&6
3020 else
3021 if test -n "$AWK"; then
3022 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3023 else
3024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3025 for as_dir in $PATH
3027 IFS=$as_save_IFS
3028 test -z "$as_dir" && as_dir=.
3029 for ac_exec_ext in '' $ac_executable_extensions; do
3030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3031 ac_cv_prog_AWK="$ac_prog"
3032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3033 break 2
3035 done
3036 done
3037 IFS=$as_save_IFS
3041 AWK=$ac_cv_prog_AWK
3042 if test -n "$AWK"; then
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3044 $as_echo "$AWK" >&6; }
3045 else
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3047 $as_echo "no" >&6; }
3051 test -n "$AWK" && break
3052 done
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3055 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3056 set x ${MAKE-make}
3057 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3058 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3059 $as_echo_n "(cached) " >&6
3060 else
3061 cat >conftest.make <<\_ACEOF
3062 SHELL = /bin/sh
3063 all:
3064 @echo '@@@%%%=$(MAKE)=@@@%%%'
3065 _ACEOF
3066 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3067 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3068 *@@@%%%=?*=@@@%%%*)
3069 eval ac_cv_prog_make_${ac_make}_set=yes;;
3071 eval ac_cv_prog_make_${ac_make}_set=no;;
3072 esac
3073 rm -f conftest.make
3075 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3077 $as_echo "yes" >&6; }
3078 SET_MAKE=
3079 else
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3081 $as_echo "no" >&6; }
3082 SET_MAKE="MAKE=${MAKE-make}"
3085 rm -rf .tst 2>/dev/null
3086 mkdir .tst 2>/dev/null
3087 if test -d .tst; then
3088 am__leading_dot=.
3089 else
3090 am__leading_dot=_
3092 rmdir .tst 2>/dev/null
3094 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3095 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3096 # is not polluted with repeated "-I."
3097 am__isrc=' -I$(srcdir)'
3098 # test to see if srcdir already configured
3099 if test -f $srcdir/config.status; then
3100 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3104 # test whether we have cygpath
3105 if test -z "$CYGPATH_W"; then
3106 if (cygpath --version) >/dev/null 2>/dev/null; then
3107 CYGPATH_W='cygpath -w'
3108 else
3109 CYGPATH_W=echo
3114 # Define the identity of the package.
3115 PACKAGE='libgo'
3116 VERSION='version-unused'
3119 # Some tools Automake needs.
3121 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3124 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3127 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3130 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3133 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3135 # We need awk for the "check" target. The system "awk" is bad on
3136 # some platforms.
3137 # Always define AMTAR for backward compatibility.
3139 AMTAR=${AMTAR-"${am_missing_run}tar"}
3141 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3152 ac_ext=c
3153 ac_cpp='$CPP $CPPFLAGS'
3154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3157 if test -n "$ac_tool_prefix"; then
3158 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3159 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3161 $as_echo_n "checking for $ac_word... " >&6; }
3162 if test "${ac_cv_prog_CC+set}" = set; then :
3163 $as_echo_n "(cached) " >&6
3164 else
3165 if test -n "$CC"; then
3166 ac_cv_prog_CC="$CC" # Let the user override the test.
3167 else
3168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169 for as_dir in $PATH
3171 IFS=$as_save_IFS
3172 test -z "$as_dir" && as_dir=.
3173 for ac_exec_ext in '' $ac_executable_extensions; do
3174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3175 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3177 break 2
3179 done
3180 done
3181 IFS=$as_save_IFS
3185 CC=$ac_cv_prog_CC
3186 if test -n "$CC"; then
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3188 $as_echo "$CC" >&6; }
3189 else
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3191 $as_echo "no" >&6; }
3196 if test -z "$ac_cv_prog_CC"; then
3197 ac_ct_CC=$CC
3198 # Extract the first word of "gcc", so it can be a program name with args.
3199 set dummy gcc; ac_word=$2
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3201 $as_echo_n "checking for $ac_word... " >&6; }
3202 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3203 $as_echo_n "(cached) " >&6
3204 else
3205 if test -n "$ac_ct_CC"; then
3206 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3207 else
3208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209 for as_dir in $PATH
3211 IFS=$as_save_IFS
3212 test -z "$as_dir" && as_dir=.
3213 for ac_exec_ext in '' $ac_executable_extensions; do
3214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3215 ac_cv_prog_ac_ct_CC="gcc"
3216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3217 break 2
3219 done
3220 done
3221 IFS=$as_save_IFS
3225 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3226 if test -n "$ac_ct_CC"; then
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3228 $as_echo "$ac_ct_CC" >&6; }
3229 else
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3231 $as_echo "no" >&6; }
3234 if test "x$ac_ct_CC" = x; then
3235 CC=""
3236 else
3237 case $cross_compiling:$ac_tool_warned in
3238 yes:)
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3241 ac_tool_warned=yes ;;
3242 esac
3243 CC=$ac_ct_CC
3245 else
3246 CC="$ac_cv_prog_CC"
3249 if test -z "$CC"; then
3250 if test -n "$ac_tool_prefix"; then
3251 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3252 set dummy ${ac_tool_prefix}cc; ac_word=$2
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3254 $as_echo_n "checking for $ac_word... " >&6; }
3255 if test "${ac_cv_prog_CC+set}" = set; then :
3256 $as_echo_n "(cached) " >&6
3257 else
3258 if test -n "$CC"; then
3259 ac_cv_prog_CC="$CC" # Let the user override the test.
3260 else
3261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262 for as_dir in $PATH
3264 IFS=$as_save_IFS
3265 test -z "$as_dir" && as_dir=.
3266 for ac_exec_ext in '' $ac_executable_extensions; do
3267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3268 ac_cv_prog_CC="${ac_tool_prefix}cc"
3269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3270 break 2
3272 done
3273 done
3274 IFS=$as_save_IFS
3278 CC=$ac_cv_prog_CC
3279 if test -n "$CC"; then
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3281 $as_echo "$CC" >&6; }
3282 else
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3284 $as_echo "no" >&6; }
3290 if test -z "$CC"; then
3291 # Extract the first word of "cc", so it can be a program name with args.
3292 set dummy cc; ac_word=$2
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3294 $as_echo_n "checking for $ac_word... " >&6; }
3295 if test "${ac_cv_prog_CC+set}" = set; then :
3296 $as_echo_n "(cached) " >&6
3297 else
3298 if test -n "$CC"; then
3299 ac_cv_prog_CC="$CC" # Let the user override the test.
3300 else
3301 ac_prog_rejected=no
3302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3303 for as_dir in $PATH
3305 IFS=$as_save_IFS
3306 test -z "$as_dir" && as_dir=.
3307 for ac_exec_ext in '' $ac_executable_extensions; do
3308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3309 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3310 ac_prog_rejected=yes
3311 continue
3313 ac_cv_prog_CC="cc"
3314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3315 break 2
3317 done
3318 done
3319 IFS=$as_save_IFS
3321 if test $ac_prog_rejected = yes; then
3322 # We found a bogon in the path, so make sure we never use it.
3323 set dummy $ac_cv_prog_CC
3324 shift
3325 if test $# != 0; then
3326 # We chose a different compiler from the bogus one.
3327 # However, it has the same basename, so the bogon will be chosen
3328 # first if we set CC to just the basename; use the full file name.
3329 shift
3330 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3335 CC=$ac_cv_prog_CC
3336 if test -n "$CC"; then
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3338 $as_echo "$CC" >&6; }
3339 else
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3341 $as_echo "no" >&6; }
3346 if test -z "$CC"; then
3347 if test -n "$ac_tool_prefix"; then
3348 for ac_prog in cl.exe
3350 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3351 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3353 $as_echo_n "checking for $ac_word... " >&6; }
3354 if test "${ac_cv_prog_CC+set}" = set; then :
3355 $as_echo_n "(cached) " >&6
3356 else
3357 if test -n "$CC"; then
3358 ac_cv_prog_CC="$CC" # Let the user override the test.
3359 else
3360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3361 for as_dir in $PATH
3363 IFS=$as_save_IFS
3364 test -z "$as_dir" && as_dir=.
3365 for ac_exec_ext in '' $ac_executable_extensions; do
3366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3367 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3369 break 2
3371 done
3372 done
3373 IFS=$as_save_IFS
3377 CC=$ac_cv_prog_CC
3378 if test -n "$CC"; then
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3380 $as_echo "$CC" >&6; }
3381 else
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3383 $as_echo "no" >&6; }
3387 test -n "$CC" && break
3388 done
3390 if test -z "$CC"; then
3391 ac_ct_CC=$CC
3392 for ac_prog in cl.exe
3394 # Extract the first word of "$ac_prog", so it can be a program name with args.
3395 set dummy $ac_prog; ac_word=$2
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3397 $as_echo_n "checking for $ac_word... " >&6; }
3398 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3399 $as_echo_n "(cached) " >&6
3400 else
3401 if test -n "$ac_ct_CC"; then
3402 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3403 else
3404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405 for as_dir in $PATH
3407 IFS=$as_save_IFS
3408 test -z "$as_dir" && as_dir=.
3409 for ac_exec_ext in '' $ac_executable_extensions; do
3410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3411 ac_cv_prog_ac_ct_CC="$ac_prog"
3412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3413 break 2
3415 done
3416 done
3417 IFS=$as_save_IFS
3421 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3422 if test -n "$ac_ct_CC"; then
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3424 $as_echo "$ac_ct_CC" >&6; }
3425 else
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3427 $as_echo "no" >&6; }
3431 test -n "$ac_ct_CC" && break
3432 done
3434 if test "x$ac_ct_CC" = x; then
3435 CC=""
3436 else
3437 case $cross_compiling:$ac_tool_warned in
3438 yes:)
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3441 ac_tool_warned=yes ;;
3442 esac
3443 CC=$ac_ct_CC
3450 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3452 as_fn_error "no acceptable C compiler found in \$PATH
3453 See \`config.log' for more details." "$LINENO" 5; }
3455 # Provide some information about the compiler.
3456 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3457 set X $ac_compile
3458 ac_compiler=$2
3459 for ac_option in --version -v -V -qversion; do
3460 { { ac_try="$ac_compiler $ac_option >&5"
3461 case "(($ac_try" in
3462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3463 *) ac_try_echo=$ac_try;;
3464 esac
3465 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3466 $as_echo "$ac_try_echo"; } >&5
3467 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3468 ac_status=$?
3469 if test -s conftest.err; then
3470 sed '10a\
3471 ... rest of stderr output deleted ...
3472 10q' conftest.err >conftest.er1
3473 cat conftest.er1 >&5
3474 rm -f conftest.er1 conftest.err
3476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3477 test $ac_status = 0; }
3478 done
3480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3481 /* end confdefs.h. */
3484 main ()
3488 return 0;
3490 _ACEOF
3491 ac_clean_files_save=$ac_clean_files
3492 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3493 # Try to create an executable without -o first, disregard a.out.
3494 # It will help us diagnose broken compilers, and finding out an intuition
3495 # of exeext.
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3497 $as_echo_n "checking for C compiler default output file name... " >&6; }
3498 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3500 # The possible output files:
3501 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3503 ac_rmfiles=
3504 for ac_file in $ac_files
3506 case $ac_file in
3507 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3508 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3509 esac
3510 done
3511 rm -f $ac_rmfiles
3513 if { { ac_try="$ac_link_default"
3514 case "(($ac_try" in
3515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516 *) ac_try_echo=$ac_try;;
3517 esac
3518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3519 $as_echo "$ac_try_echo"; } >&5
3520 (eval "$ac_link_default") 2>&5
3521 ac_status=$?
3522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3523 test $ac_status = 0; }; then :
3524 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3525 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3526 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3527 # so that the user can short-circuit this test for compilers unknown to
3528 # Autoconf.
3529 for ac_file in $ac_files ''
3531 test -f "$ac_file" || continue
3532 case $ac_file in
3533 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3535 [ab].out )
3536 # We found the default executable, but exeext='' is most
3537 # certainly right.
3538 break;;
3539 *.* )
3540 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3541 then :; else
3542 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3544 # We set ac_cv_exeext here because the later test for it is not
3545 # safe: cross compilers may not add the suffix if given an `-o'
3546 # argument, so we may need to know it at that point already.
3547 # Even if this section looks crufty: it has the advantage of
3548 # actually working.
3549 break;;
3551 break;;
3552 esac
3553 done
3554 test "$ac_cv_exeext" = no && ac_cv_exeext=
3556 else
3557 ac_file=''
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3560 $as_echo "$ac_file" >&6; }
3561 if test -z "$ac_file"; then :
3562 $as_echo "$as_me: failed program was:" >&5
3563 sed 's/^/| /' conftest.$ac_ext >&5
3565 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3567 { as_fn_set_status 77
3568 as_fn_error "C compiler cannot create executables
3569 See \`config.log' for more details." "$LINENO" 5; }; }
3571 ac_exeext=$ac_cv_exeext
3573 # Check that the compiler produces executables we can run. If not, either
3574 # the compiler is broken, or we cross compile.
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3576 $as_echo_n "checking whether the C compiler works... " >&6; }
3577 # If not cross compiling, check that we can run a simple program.
3578 if test "$cross_compiling" != yes; then
3579 if { ac_try='./$ac_file'
3580 { { case "(($ac_try" in
3581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3582 *) ac_try_echo=$ac_try;;
3583 esac
3584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3585 $as_echo "$ac_try_echo"; } >&5
3586 (eval "$ac_try") 2>&5
3587 ac_status=$?
3588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3589 test $ac_status = 0; }; }; then
3590 cross_compiling=no
3591 else
3592 if test "$cross_compiling" = maybe; then
3593 cross_compiling=yes
3594 else
3595 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3597 as_fn_error "cannot run C compiled programs.
3598 If you meant to cross compile, use \`--host'.
3599 See \`config.log' for more details." "$LINENO" 5; }
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3604 $as_echo "yes" >&6; }
3606 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3607 ac_clean_files=$ac_clean_files_save
3608 # Check that the compiler produces executables we can run. If not, either
3609 # the compiler is broken, or we cross compile.
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3611 $as_echo_n "checking whether we are cross compiling... " >&6; }
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3613 $as_echo "$cross_compiling" >&6; }
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3616 $as_echo_n "checking for suffix of executables... " >&6; }
3617 if { { ac_try="$ac_link"
3618 case "(($ac_try" in
3619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3620 *) ac_try_echo=$ac_try;;
3621 esac
3622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3623 $as_echo "$ac_try_echo"; } >&5
3624 (eval "$ac_link") 2>&5
3625 ac_status=$?
3626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3627 test $ac_status = 0; }; then :
3628 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3629 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3630 # work properly (i.e., refer to `conftest.exe'), while it won't with
3631 # `rm'.
3632 for ac_file in conftest.exe conftest conftest.*; do
3633 test -f "$ac_file" || continue
3634 case $ac_file in
3635 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3636 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3637 break;;
3638 * ) break;;
3639 esac
3640 done
3641 else
3642 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3644 as_fn_error "cannot compute suffix of executables: cannot compile and link
3645 See \`config.log' for more details." "$LINENO" 5; }
3647 rm -f conftest$ac_cv_exeext
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3649 $as_echo "$ac_cv_exeext" >&6; }
3651 rm -f conftest.$ac_ext
3652 EXEEXT=$ac_cv_exeext
3653 ac_exeext=$EXEEXT
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3655 $as_echo_n "checking for suffix of object files... " >&6; }
3656 if test "${ac_cv_objext+set}" = set; then :
3657 $as_echo_n "(cached) " >&6
3658 else
3659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3660 /* end confdefs.h. */
3663 main ()
3667 return 0;
3669 _ACEOF
3670 rm -f conftest.o conftest.obj
3671 if { { ac_try="$ac_compile"
3672 case "(($ac_try" in
3673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3674 *) ac_try_echo=$ac_try;;
3675 esac
3676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3677 $as_echo "$ac_try_echo"; } >&5
3678 (eval "$ac_compile") 2>&5
3679 ac_status=$?
3680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3681 test $ac_status = 0; }; then :
3682 for ac_file in conftest.o conftest.obj conftest.*; do
3683 test -f "$ac_file" || continue;
3684 case $ac_file in
3685 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3686 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3687 break;;
3688 esac
3689 done
3690 else
3691 $as_echo "$as_me: failed program was:" >&5
3692 sed 's/^/| /' conftest.$ac_ext >&5
3694 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3695 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3696 as_fn_error "cannot compute suffix of object files: cannot compile
3697 See \`config.log' for more details." "$LINENO" 5; }
3699 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3702 $as_echo "$ac_cv_objext" >&6; }
3703 OBJEXT=$ac_cv_objext
3704 ac_objext=$OBJEXT
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3706 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3707 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3708 $as_echo_n "(cached) " >&6
3709 else
3710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3711 /* end confdefs.h. */
3714 main ()
3716 #ifndef __GNUC__
3717 choke me
3718 #endif
3721 return 0;
3723 _ACEOF
3724 if ac_fn_c_try_compile "$LINENO"; then :
3725 ac_compiler_gnu=yes
3726 else
3727 ac_compiler_gnu=no
3729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3730 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3734 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3735 if test $ac_compiler_gnu = yes; then
3736 GCC=yes
3737 else
3738 GCC=
3740 ac_test_CFLAGS=${CFLAGS+set}
3741 ac_save_CFLAGS=$CFLAGS
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3743 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3744 if test "${ac_cv_prog_cc_g+set}" = set; then :
3745 $as_echo_n "(cached) " >&6
3746 else
3747 ac_save_c_werror_flag=$ac_c_werror_flag
3748 ac_c_werror_flag=yes
3749 ac_cv_prog_cc_g=no
3750 CFLAGS="-g"
3751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3752 /* end confdefs.h. */
3755 main ()
3759 return 0;
3761 _ACEOF
3762 if ac_fn_c_try_compile "$LINENO"; then :
3763 ac_cv_prog_cc_g=yes
3764 else
3765 CFLAGS=""
3766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767 /* end confdefs.h. */
3770 main ()
3774 return 0;
3776 _ACEOF
3777 if ac_fn_c_try_compile "$LINENO"; then :
3779 else
3780 ac_c_werror_flag=$ac_save_c_werror_flag
3781 CFLAGS="-g"
3782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3783 /* end confdefs.h. */
3786 main ()
3790 return 0;
3792 _ACEOF
3793 if ac_fn_c_try_compile "$LINENO"; then :
3794 ac_cv_prog_cc_g=yes
3796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3801 ac_c_werror_flag=$ac_save_c_werror_flag
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3804 $as_echo "$ac_cv_prog_cc_g" >&6; }
3805 if test "$ac_test_CFLAGS" = set; then
3806 CFLAGS=$ac_save_CFLAGS
3807 elif test $ac_cv_prog_cc_g = yes; then
3808 if test "$GCC" = yes; then
3809 CFLAGS="-g -O2"
3810 else
3811 CFLAGS="-g"
3813 else
3814 if test "$GCC" = yes; then
3815 CFLAGS="-O2"
3816 else
3817 CFLAGS=
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3821 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3822 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3823 $as_echo_n "(cached) " >&6
3824 else
3825 ac_cv_prog_cc_c89=no
3826 ac_save_CC=$CC
3827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3828 /* end confdefs.h. */
3829 #include <stdarg.h>
3830 #include <stdio.h>
3831 #include <sys/types.h>
3832 #include <sys/stat.h>
3833 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3834 struct buf { int x; };
3835 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3836 static char *e (p, i)
3837 char **p;
3838 int i;
3840 return p[i];
3842 static char *f (char * (*g) (char **, int), char **p, ...)
3844 char *s;
3845 va_list v;
3846 va_start (v,p);
3847 s = g (p, va_arg (v,int));
3848 va_end (v);
3849 return s;
3852 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3853 function prototypes and stuff, but not '\xHH' hex character constants.
3854 These don't provoke an error unfortunately, instead are silently treated
3855 as 'x'. The following induces an error, until -std is added to get
3856 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3857 array size at least. It's necessary to write '\x00'==0 to get something
3858 that's true only with -std. */
3859 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3861 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3862 inside strings and character constants. */
3863 #define FOO(x) 'x'
3864 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3866 int test (int i, double x);
3867 struct s1 {int (*f) (int a);};
3868 struct s2 {int (*f) (double a);};
3869 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3870 int argc;
3871 char **argv;
3873 main ()
3875 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3877 return 0;
3879 _ACEOF
3880 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3881 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3883 CC="$ac_save_CC $ac_arg"
3884 if ac_fn_c_try_compile "$LINENO"; then :
3885 ac_cv_prog_cc_c89=$ac_arg
3887 rm -f core conftest.err conftest.$ac_objext
3888 test "x$ac_cv_prog_cc_c89" != "xno" && break
3889 done
3890 rm -f conftest.$ac_ext
3891 CC=$ac_save_CC
3894 # AC_CACHE_VAL
3895 case "x$ac_cv_prog_cc_c89" in
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3898 $as_echo "none needed" >&6; } ;;
3899 xno)
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3901 $as_echo "unsupported" >&6; } ;;
3903 CC="$CC $ac_cv_prog_cc_c89"
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3905 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3906 esac
3907 if test "x$ac_cv_prog_cc_c89" != xno; then :
3911 ac_ext=c
3912 ac_cpp='$CPP $CPPFLAGS'
3913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3916 DEPDIR="${am__leading_dot}deps"
3918 ac_config_commands="$ac_config_commands depfiles"
3921 am_make=${MAKE-make}
3922 cat > confinc << 'END'
3923 am__doit:
3924 @echo this is the am__doit target
3925 .PHONY: am__doit
3927 # If we don't find an include directive, just comment out the code.
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3929 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3930 am__include="#"
3931 am__quote=
3932 _am_result=none
3933 # First try GNU make style include.
3934 echo "include confinc" > confmf
3935 # Ignore all kinds of additional output from `make'.
3936 case `$am_make -s -f confmf 2> /dev/null` in #(
3937 *the\ am__doit\ target*)
3938 am__include=include
3939 am__quote=
3940 _am_result=GNU
3942 esac
3943 # Now try BSD make style include.
3944 if test "$am__include" = "#"; then
3945 echo '.include "confinc"' > confmf
3946 case `$am_make -s -f confmf 2> /dev/null` in #(
3947 *the\ am__doit\ target*)
3948 am__include=.include
3949 am__quote="\""
3950 _am_result=BSD
3952 esac
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3957 $as_echo "$_am_result" >&6; }
3958 rm -f confinc confmf
3960 # Check whether --enable-dependency-tracking was given.
3961 if test "${enable_dependency_tracking+set}" = set; then :
3962 enableval=$enable_dependency_tracking;
3965 if test "x$enable_dependency_tracking" != xno; then
3966 am_depcomp="$ac_aux_dir/depcomp"
3967 AMDEPBACKSLASH='\'
3969 if test "x$enable_dependency_tracking" != xno; then
3970 AMDEP_TRUE=
3971 AMDEP_FALSE='#'
3972 else
3973 AMDEP_TRUE='#'
3974 AMDEP_FALSE=
3979 depcc="$CC" am_compiler_list=
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3982 $as_echo_n "checking dependency style of $depcc... " >&6; }
3983 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3984 $as_echo_n "(cached) " >&6
3985 else
3986 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3987 # We make a subdir and do the tests there. Otherwise we can end up
3988 # making bogus files that we don't know about and never remove. For
3989 # instance it was reported that on HP-UX the gcc test will end up
3990 # making a dummy file named `D' -- because `-MD' means `put the output
3991 # in D'.
3992 mkdir conftest.dir
3993 # Copy depcomp to subdir because otherwise we won't find it if we're
3994 # using a relative directory.
3995 cp "$am_depcomp" conftest.dir
3996 cd conftest.dir
3997 # We will build objects and dependencies in a subdirectory because
3998 # it helps to detect inapplicable dependency modes. For instance
3999 # both Tru64's cc and ICC support -MD to output dependencies as a
4000 # side effect of compilation, but ICC will put the dependencies in
4001 # the current directory while Tru64 will put them in the object
4002 # directory.
4003 mkdir sub
4005 am_cv_CC_dependencies_compiler_type=none
4006 if test "$am_compiler_list" = ""; then
4007 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4009 am__universal=false
4010 case " $depcc " in #(
4011 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4012 esac
4014 for depmode in $am_compiler_list; do
4015 # Setup a source with many dependencies, because some compilers
4016 # like to wrap large dependency lists on column 80 (with \), and
4017 # we should not choose a depcomp mode which is confused by this.
4019 # We need to recreate these files for each test, as the compiler may
4020 # overwrite some of them when testing with obscure command lines.
4021 # This happens at least with the AIX C compiler.
4022 : > sub/conftest.c
4023 for i in 1 2 3 4 5 6; do
4024 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4025 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4026 # Solaris 8's {/usr,}/bin/sh.
4027 touch sub/conftst$i.h
4028 done
4029 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4031 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4032 # mode. It turns out that the SunPro C++ compiler does not properly
4033 # handle `-M -o', and we need to detect this. Also, some Intel
4034 # versions had trouble with output in subdirs
4035 am__obj=sub/conftest.${OBJEXT-o}
4036 am__minus_obj="-o $am__obj"
4037 case $depmode in
4038 gcc)
4039 # This depmode causes a compiler race in universal mode.
4040 test "$am__universal" = false || continue
4042 nosideeffect)
4043 # after this tag, mechanisms are not by side-effect, so they'll
4044 # only be used when explicitly requested
4045 if test "x$enable_dependency_tracking" = xyes; then
4046 continue
4047 else
4048 break
4051 msvisualcpp | msvcmsys)
4052 # This compiler won't grok `-c -o', but also, the minuso test has
4053 # not run yet. These depmodes are late enough in the game, and
4054 # so weak that their functioning should not be impacted.
4055 am__obj=conftest.${OBJEXT-o}
4056 am__minus_obj=
4058 none) break ;;
4059 esac
4060 if depmode=$depmode \
4061 source=sub/conftest.c object=$am__obj \
4062 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4063 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4064 >/dev/null 2>conftest.err &&
4065 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4066 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4067 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4068 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4069 # icc doesn't choke on unknown options, it will just issue warnings
4070 # or remarks (even with -Werror). So we grep stderr for any message
4071 # that says an option was ignored or not supported.
4072 # When given -MP, icc 7.0 and 7.1 complain thusly:
4073 # icc: Command line warning: ignoring option '-M'; no argument required
4074 # The diagnosis changed in icc 8.0:
4075 # icc: Command line remark: option '-MP' not supported
4076 if (grep 'ignoring option' conftest.err ||
4077 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4078 am_cv_CC_dependencies_compiler_type=$depmode
4079 break
4082 done
4084 cd ..
4085 rm -rf conftest.dir
4086 else
4087 am_cv_CC_dependencies_compiler_type=none
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4092 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4093 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4096 test "x$enable_dependency_tracking" != xno \
4097 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4098 am__fastdepCC_TRUE=
4099 am__fastdepCC_FALSE='#'
4100 else
4101 am__fastdepCC_TRUE='#'
4102 am__fastdepCC_FALSE=
4106 ac_ext=go
4107 ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
4108 ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4109 ac_compile_gnu=yes
4110 if test -n "$ac_tool_prefix"; then
4111 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4112 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4114 $as_echo_n "checking for $ac_word... " >&6; }
4115 if test "${ac_cv_prog_GOC+set}" = set; then :
4116 $as_echo_n "(cached) " >&6
4117 else
4118 if test -n "$GOC"; then
4119 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4120 else
4121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4122 for as_dir in $PATH
4124 IFS=$as_save_IFS
4125 test -z "$as_dir" && as_dir=.
4126 for ac_exec_ext in '' $ac_executable_extensions; do
4127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4128 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
4129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4130 break 2
4132 done
4133 done
4134 IFS=$as_save_IFS
4138 GOC=$ac_cv_prog_GOC
4139 if test -n "$GOC"; then
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4141 $as_echo "$GOC" >&6; }
4142 else
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4144 $as_echo "no" >&6; }
4149 if test -z "$ac_cv_prog_GOC"; then
4150 ac_ct_GOC=$GOC
4151 # Extract the first word of "gccgo", so it can be a program name with args.
4152 set dummy gccgo; ac_word=$2
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4154 $as_echo_n "checking for $ac_word... " >&6; }
4155 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
4156 $as_echo_n "(cached) " >&6
4157 else
4158 if test -n "$ac_ct_GOC"; then
4159 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
4160 else
4161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162 for as_dir in $PATH
4164 IFS=$as_save_IFS
4165 test -z "$as_dir" && as_dir=.
4166 for ac_exec_ext in '' $ac_executable_extensions; do
4167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4168 ac_cv_prog_ac_ct_GOC="gccgo"
4169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4170 break 2
4172 done
4173 done
4174 IFS=$as_save_IFS
4178 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
4179 if test -n "$ac_ct_GOC"; then
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
4181 $as_echo "$ac_ct_GOC" >&6; }
4182 else
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4184 $as_echo "no" >&6; }
4187 if test "x$ac_ct_GOC" = x; then
4188 GOC=""
4189 else
4190 case $cross_compiling:$ac_tool_warned in
4191 yes:)
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4193 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4194 ac_tool_warned=yes ;;
4195 esac
4196 GOC=$ac_ct_GOC
4198 else
4199 GOC="$ac_cv_prog_GOC"
4202 if test -z "$GOC"; then
4203 if test -n "$ac_tool_prefix"; then
4204 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4205 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4207 $as_echo_n "checking for $ac_word... " >&6; }
4208 if test "${ac_cv_prog_GOC+set}" = set; then :
4209 $as_echo_n "(cached) " >&6
4210 else
4211 if test -n "$GOC"; then
4212 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4213 else
4214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215 for as_dir in $PATH
4217 IFS=$as_save_IFS
4218 test -z "$as_dir" && as_dir=.
4219 for ac_exec_ext in '' $ac_executable_extensions; do
4220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4221 ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4223 break 2
4225 done
4226 done
4227 IFS=$as_save_IFS
4231 GOC=$ac_cv_prog_GOC
4232 if test -n "$GOC"; then
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4234 $as_echo "$GOC" >&6; }
4235 else
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4237 $as_echo "no" >&6; }
4243 if test -z "$GOC"; then
4244 # Extract the first word of "gccgo", so it can be a program name with args.
4245 set dummy gccgo; ac_word=$2
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4247 $as_echo_n "checking for $ac_word... " >&6; }
4248 if test "${ac_cv_prog_GOC+set}" = set; then :
4249 $as_echo_n "(cached) " >&6
4250 else
4251 if test -n "$GOC"; then
4252 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4253 else
4254 ac_prog_rejected=no
4255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256 for as_dir in $PATH
4258 IFS=$as_save_IFS
4259 test -z "$as_dir" && as_dir=.
4260 for ac_exec_ext in '' $ac_executable_extensions; do
4261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4262 if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
4263 ac_prog_rejected=yes
4264 continue
4266 ac_cv_prog_GOC="gccgo"
4267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4268 break 2
4270 done
4271 done
4272 IFS=$as_save_IFS
4274 if test $ac_prog_rejected = yes; then
4275 # We found a bogon in the path, so make sure we never use it.
4276 set dummy $ac_cv_prog_GOC
4277 shift
4278 if test $# != 0; then
4279 # We chose a different compiler from the bogus one.
4280 # However, it has the same basename, so the bogon will be chosen
4281 # first if we set GOC to just the basename; use the full file name.
4282 shift
4283 ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4288 GOC=$ac_cv_prog_GOC
4289 if test -n "$GOC"; then
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4291 $as_echo "$GOC" >&6; }
4292 else
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4294 $as_echo "no" >&6; }
4301 # Provide some information about the compiler.
4302 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4303 set X $ac_compile
4304 ac_compiler=$2
4305 { { ac_try="$ac_compiler --version >&5"
4306 case "(($ac_try" in
4307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308 *) ac_try_echo=$ac_try;;
4309 esac
4310 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4311 $as_echo "$ac_try_echo"; } >&5
4312 (eval "$ac_compiler --version >&5") 2>conftest.err
4313 ac_status=$?
4314 if test -s conftest.err; then
4315 sed '10a\
4316 ... rest of stderr output deleted ...
4317 10q' conftest.err >conftest.er1
4318 cat conftest.er1 >&5
4319 rm -f conftest.er1 conftest.err
4321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4322 test $ac_status = 0; }
4323 GOCFLAGS="-g -O2"
4324 ac_ext=c
4325 ac_cpp='$CPP $CPPFLAGS'
4326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4336 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4337 # Check whether --enable-maintainer-mode was given.
4338 if test "${enable_maintainer_mode+set}" = set; then :
4339 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4340 else
4341 USE_MAINTAINER_MODE=no
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4345 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4346 if test $USE_MAINTAINER_MODE = yes; then
4347 MAINTAINER_MODE_TRUE=
4348 MAINTAINER_MODE_FALSE='#'
4349 else
4350 MAINTAINER_MODE_TRUE='#'
4351 MAINTAINER_MODE_FALSE=
4354 MAINT=$MAINTAINER_MODE_TRUE
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4359 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4360 if test "${ac_cv_path_SED+set}" = set; then :
4361 $as_echo_n "(cached) " >&6
4362 else
4363 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4364 for ac_i in 1 2 3 4 5 6 7; do
4365 ac_script="$ac_script$as_nl$ac_script"
4366 done
4367 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4368 { ac_script=; unset ac_script;}
4369 if test -z "$SED"; then
4370 ac_path_SED_found=false
4371 # Loop through the user's path and test for each of PROGNAME-LIST
4372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373 for as_dir in $PATH
4375 IFS=$as_save_IFS
4376 test -z "$as_dir" && as_dir=.
4377 for ac_prog in sed gsed; do
4378 for ac_exec_ext in '' $ac_executable_extensions; do
4379 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4380 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4381 # Check for GNU ac_path_SED and select it if it is found.
4382 # Check for GNU $ac_path_SED
4383 case `"$ac_path_SED" --version 2>&1` in
4384 *GNU*)
4385 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4387 ac_count=0
4388 $as_echo_n 0123456789 >"conftest.in"
4389 while :
4391 cat "conftest.in" "conftest.in" >"conftest.tmp"
4392 mv "conftest.tmp" "conftest.in"
4393 cp "conftest.in" "conftest.nl"
4394 $as_echo '' >> "conftest.nl"
4395 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4396 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4397 as_fn_arith $ac_count + 1 && ac_count=$as_val
4398 if test $ac_count -gt ${ac_path_SED_max-0}; then
4399 # Best one so far, save it but keep looking for a better one
4400 ac_cv_path_SED="$ac_path_SED"
4401 ac_path_SED_max=$ac_count
4403 # 10*(2^10) chars as input seems more than enough
4404 test $ac_count -gt 10 && break
4405 done
4406 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4407 esac
4409 $ac_path_SED_found && break 3
4410 done
4411 done
4412 done
4413 IFS=$as_save_IFS
4414 if test -z "$ac_cv_path_SED"; then
4415 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4417 else
4418 ac_cv_path_SED=$SED
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4423 $as_echo "$ac_cv_path_SED" >&6; }
4424 SED="$ac_cv_path_SED"
4425 rm -f conftest.sed
4427 test -z "$SED" && SED=sed
4428 Xsed="$SED -e 1s/^X//"
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4441 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4442 if test "${ac_cv_path_GREP+set}" = set; then :
4443 $as_echo_n "(cached) " >&6
4444 else
4445 if test -z "$GREP"; then
4446 ac_path_GREP_found=false
4447 # Loop through the user's path and test for each of PROGNAME-LIST
4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4451 IFS=$as_save_IFS
4452 test -z "$as_dir" && as_dir=.
4453 for ac_prog in grep ggrep; do
4454 for ac_exec_ext in '' $ac_executable_extensions; do
4455 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4456 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4457 # Check for GNU ac_path_GREP and select it if it is found.
4458 # Check for GNU $ac_path_GREP
4459 case `"$ac_path_GREP" --version 2>&1` in
4460 *GNU*)
4461 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4463 ac_count=0
4464 $as_echo_n 0123456789 >"conftest.in"
4465 while :
4467 cat "conftest.in" "conftest.in" >"conftest.tmp"
4468 mv "conftest.tmp" "conftest.in"
4469 cp "conftest.in" "conftest.nl"
4470 $as_echo 'GREP' >> "conftest.nl"
4471 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4472 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4473 as_fn_arith $ac_count + 1 && ac_count=$as_val
4474 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4475 # Best one so far, save it but keep looking for a better one
4476 ac_cv_path_GREP="$ac_path_GREP"
4477 ac_path_GREP_max=$ac_count
4479 # 10*(2^10) chars as input seems more than enough
4480 test $ac_count -gt 10 && break
4481 done
4482 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4483 esac
4485 $ac_path_GREP_found && break 3
4486 done
4487 done
4488 done
4489 IFS=$as_save_IFS
4490 if test -z "$ac_cv_path_GREP"; then
4491 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4493 else
4494 ac_cv_path_GREP=$GREP
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4499 $as_echo "$ac_cv_path_GREP" >&6; }
4500 GREP="$ac_cv_path_GREP"
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4504 $as_echo_n "checking for egrep... " >&6; }
4505 if test "${ac_cv_path_EGREP+set}" = set; then :
4506 $as_echo_n "(cached) " >&6
4507 else
4508 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4509 then ac_cv_path_EGREP="$GREP -E"
4510 else
4511 if test -z "$EGREP"; then
4512 ac_path_EGREP_found=false
4513 # Loop through the user's path and test for each of PROGNAME-LIST
4514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4517 IFS=$as_save_IFS
4518 test -z "$as_dir" && as_dir=.
4519 for ac_prog in egrep; do
4520 for ac_exec_ext in '' $ac_executable_extensions; do
4521 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4522 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4523 # Check for GNU ac_path_EGREP and select it if it is found.
4524 # Check for GNU $ac_path_EGREP
4525 case `"$ac_path_EGREP" --version 2>&1` in
4526 *GNU*)
4527 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4529 ac_count=0
4530 $as_echo_n 0123456789 >"conftest.in"
4531 while :
4533 cat "conftest.in" "conftest.in" >"conftest.tmp"
4534 mv "conftest.tmp" "conftest.in"
4535 cp "conftest.in" "conftest.nl"
4536 $as_echo 'EGREP' >> "conftest.nl"
4537 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4538 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4539 as_fn_arith $ac_count + 1 && ac_count=$as_val
4540 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4541 # Best one so far, save it but keep looking for a better one
4542 ac_cv_path_EGREP="$ac_path_EGREP"
4543 ac_path_EGREP_max=$ac_count
4545 # 10*(2^10) chars as input seems more than enough
4546 test $ac_count -gt 10 && break
4547 done
4548 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4549 esac
4551 $ac_path_EGREP_found && break 3
4552 done
4553 done
4554 done
4555 IFS=$as_save_IFS
4556 if test -z "$ac_cv_path_EGREP"; then
4557 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4559 else
4560 ac_cv_path_EGREP=$EGREP
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4566 $as_echo "$ac_cv_path_EGREP" >&6; }
4567 EGREP="$ac_cv_path_EGREP"
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4571 $as_echo_n "checking for fgrep... " >&6; }
4572 if test "${ac_cv_path_FGREP+set}" = set; then :
4573 $as_echo_n "(cached) " >&6
4574 else
4575 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4576 then ac_cv_path_FGREP="$GREP -F"
4577 else
4578 if test -z "$FGREP"; then
4579 ac_path_FGREP_found=false
4580 # Loop through the user's path and test for each of PROGNAME-LIST
4581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4582 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4584 IFS=$as_save_IFS
4585 test -z "$as_dir" && as_dir=.
4586 for ac_prog in fgrep; do
4587 for ac_exec_ext in '' $ac_executable_extensions; do
4588 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4589 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4590 # Check for GNU ac_path_FGREP and select it if it is found.
4591 # Check for GNU $ac_path_FGREP
4592 case `"$ac_path_FGREP" --version 2>&1` in
4593 *GNU*)
4594 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4596 ac_count=0
4597 $as_echo_n 0123456789 >"conftest.in"
4598 while :
4600 cat "conftest.in" "conftest.in" >"conftest.tmp"
4601 mv "conftest.tmp" "conftest.in"
4602 cp "conftest.in" "conftest.nl"
4603 $as_echo 'FGREP' >> "conftest.nl"
4604 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4605 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4606 as_fn_arith $ac_count + 1 && ac_count=$as_val
4607 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4608 # Best one so far, save it but keep looking for a better one
4609 ac_cv_path_FGREP="$ac_path_FGREP"
4610 ac_path_FGREP_max=$ac_count
4612 # 10*(2^10) chars as input seems more than enough
4613 test $ac_count -gt 10 && break
4614 done
4615 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4616 esac
4618 $ac_path_FGREP_found && break 3
4619 done
4620 done
4621 done
4622 IFS=$as_save_IFS
4623 if test -z "$ac_cv_path_FGREP"; then
4624 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4626 else
4627 ac_cv_path_FGREP=$FGREP
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4633 $as_echo "$ac_cv_path_FGREP" >&6; }
4634 FGREP="$ac_cv_path_FGREP"
4637 test -z "$GREP" && GREP=grep
4655 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4656 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4657 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4660 $as_echo_n "checking how to print strings... " >&6; }
4661 # Test print first, because it will be a builtin if present.
4662 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4663 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4664 ECHO='print -r --'
4665 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4666 ECHO='printf %s\n'
4667 else
4668 # Use this function as a fallback that always works.
4669 func_fallback_echo ()
4671 eval 'cat <<_LTECHO_EOF
4673 _LTECHO_EOF'
4675 ECHO='func_fallback_echo'
4678 # func_echo_all arg...
4679 # Invoke $ECHO with all args, space-separated.
4680 func_echo_all ()
4682 $ECHO ""
4685 case "$ECHO" in
4686 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4687 $as_echo "printf" >&6; } ;;
4688 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4689 $as_echo "print -r" >&6; } ;;
4690 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4691 $as_echo "cat" >&6; } ;;
4692 esac
4709 # Check whether --with-gnu-ld was given.
4710 if test "${with_gnu_ld+set}" = set; then :
4711 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4712 else
4713 with_gnu_ld=no
4716 ac_prog=ld
4717 if test "$GCC" = yes; then
4718 # Check if gcc -print-prog-name=ld gives a path.
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4720 $as_echo_n "checking for ld used by $CC... " >&6; }
4721 case $host in
4722 *-*-mingw*)
4723 # gcc leaves a trailing carriage return which upsets mingw
4724 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4726 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4727 esac
4728 case $ac_prog in
4729 # Accept absolute paths.
4730 [\\/]* | ?:[\\/]*)
4731 re_direlt='/[^/][^/]*/\.\./'
4732 # Canonicalize the pathname of ld
4733 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4734 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4735 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4736 done
4737 test -z "$LD" && LD="$ac_prog"
4740 # If it fails, then pretend we aren't using GCC.
4741 ac_prog=ld
4744 # If it is relative, then search for the first ld in PATH.
4745 with_gnu_ld=unknown
4747 esac
4748 elif test "$with_gnu_ld" = yes; then
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4750 $as_echo_n "checking for GNU ld... " >&6; }
4751 else
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4753 $as_echo_n "checking for non-GNU ld... " >&6; }
4755 if test "${lt_cv_path_LD+set}" = set; then :
4756 $as_echo_n "(cached) " >&6
4757 else
4758 if test -z "$LD"; then
4759 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4760 for ac_dir in $PATH; do
4761 IFS="$lt_save_ifs"
4762 test -z "$ac_dir" && ac_dir=.
4763 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4764 lt_cv_path_LD="$ac_dir/$ac_prog"
4765 # Check to see if the program is GNU ld. I'd rather use --version,
4766 # but apparently some variants of GNU ld only accept -v.
4767 # Break only if it was the GNU/non-GNU ld that we prefer.
4768 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4769 *GNU* | *'with BFD'*)
4770 test "$with_gnu_ld" != no && break
4773 test "$with_gnu_ld" != yes && break
4775 esac
4777 done
4778 IFS="$lt_save_ifs"
4779 else
4780 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4784 LD="$lt_cv_path_LD"
4785 if test -n "$LD"; then
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4787 $as_echo "$LD" >&6; }
4788 else
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4790 $as_echo "no" >&6; }
4792 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4794 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4795 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4796 $as_echo_n "(cached) " >&6
4797 else
4798 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4799 case `$LD -v 2>&1 </dev/null` in
4800 *GNU* | *'with BFD'*)
4801 lt_cv_prog_gnu_ld=yes
4804 lt_cv_prog_gnu_ld=no
4806 esac
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4809 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4810 with_gnu_ld=$lt_cv_prog_gnu_ld
4820 if test -n "$ac_tool_prefix"; then
4821 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4822 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4824 $as_echo_n "checking for $ac_word... " >&6; }
4825 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4826 $as_echo_n "(cached) " >&6
4827 else
4828 if test -n "$RANLIB"; then
4829 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4830 else
4831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4832 for as_dir in $PATH
4834 IFS=$as_save_IFS
4835 test -z "$as_dir" && as_dir=.
4836 for ac_exec_ext in '' $ac_executable_extensions; do
4837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4838 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4840 break 2
4842 done
4843 done
4844 IFS=$as_save_IFS
4848 RANLIB=$ac_cv_prog_RANLIB
4849 if test -n "$RANLIB"; then
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4851 $as_echo "$RANLIB" >&6; }
4852 else
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4854 $as_echo "no" >&6; }
4859 if test -z "$ac_cv_prog_RANLIB"; then
4860 ac_ct_RANLIB=$RANLIB
4861 # Extract the first word of "ranlib", so it can be a program name with args.
4862 set dummy ranlib; ac_word=$2
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4864 $as_echo_n "checking for $ac_word... " >&6; }
4865 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4866 $as_echo_n "(cached) " >&6
4867 else
4868 if test -n "$ac_ct_RANLIB"; then
4869 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4870 else
4871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4872 for as_dir in $PATH
4874 IFS=$as_save_IFS
4875 test -z "$as_dir" && as_dir=.
4876 for ac_exec_ext in '' $ac_executable_extensions; do
4877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4878 ac_cv_prog_ac_ct_RANLIB="ranlib"
4879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4880 break 2
4882 done
4883 done
4884 IFS=$as_save_IFS
4888 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4889 if test -n "$ac_ct_RANLIB"; then
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4891 $as_echo "$ac_ct_RANLIB" >&6; }
4892 else
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4894 $as_echo "no" >&6; }
4897 if test "x$ac_ct_RANLIB" = x; then
4898 RANLIB=":"
4899 else
4900 case $cross_compiling:$ac_tool_warned in
4901 yes:)
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4904 ac_tool_warned=yes ;;
4905 esac
4906 RANLIB=$ac_ct_RANLIB
4908 else
4909 RANLIB="$ac_cv_prog_RANLIB"
4912 if test -n "$ac_tool_prefix"; then
4913 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
4914 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4916 $as_echo_n "checking for $ac_word... " >&6; }
4917 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
4918 $as_echo_n "(cached) " >&6
4919 else
4920 if test -n "$OBJCOPY"; then
4921 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4922 else
4923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924 for as_dir in $PATH
4926 IFS=$as_save_IFS
4927 test -z "$as_dir" && as_dir=.
4928 for ac_exec_ext in '' $ac_executable_extensions; do
4929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4930 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
4931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4932 break 2
4934 done
4935 done
4936 IFS=$as_save_IFS
4940 OBJCOPY=$ac_cv_prog_OBJCOPY
4941 if test -n "$OBJCOPY"; then
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
4943 $as_echo "$OBJCOPY" >&6; }
4944 else
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4946 $as_echo "no" >&6; }
4951 if test -z "$ac_cv_prog_OBJCOPY"; then
4952 ac_ct_OBJCOPY=$OBJCOPY
4953 # Extract the first word of "objcopy", so it can be a program name with args.
4954 set dummy objcopy; ac_word=$2
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4956 $as_echo_n "checking for $ac_word... " >&6; }
4957 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
4958 $as_echo_n "(cached) " >&6
4959 else
4960 if test -n "$ac_ct_OBJCOPY"; then
4961 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
4962 else
4963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4964 for as_dir in $PATH
4966 IFS=$as_save_IFS
4967 test -z "$as_dir" && as_dir=.
4968 for ac_exec_ext in '' $ac_executable_extensions; do
4969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4970 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
4971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4972 break 2
4974 done
4975 done
4976 IFS=$as_save_IFS
4980 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
4981 if test -n "$ac_ct_OBJCOPY"; then
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
4983 $as_echo "$ac_ct_OBJCOPY" >&6; }
4984 else
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4986 $as_echo "no" >&6; }
4989 if test "x$ac_ct_OBJCOPY" = x; then
4990 OBJCOPY="missing-objcopy"
4991 else
4992 case $cross_compiling:$ac_tool_warned in
4993 yes:)
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4996 ac_tool_warned=yes ;;
4997 esac
4998 OBJCOPY=$ac_ct_OBJCOPY
5000 else
5001 OBJCOPY="$ac_cv_prog_OBJCOPY"
5005 enable_dlopen=yes
5009 case `pwd` in
5010 *\ * | *\ *)
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5012 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5013 esac
5017 macro_version='2.2.7a'
5018 macro_revision='1.3134'
5032 ltmain="$ac_aux_dir/ltmain.sh"
5034 # Backslashify metacharacters that are still active within
5035 # double-quoted strings.
5036 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5038 # Same as above, but do not quote variable references.
5039 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5041 # Sed substitution to delay expansion of an escaped shell variable in a
5042 # double_quote_subst'ed string.
5043 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5045 # Sed substitution to delay expansion of an escaped single quote.
5046 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5048 # Sed substitution to avoid accidental globbing in evaled expressions
5049 no_glob_subst='s/\*/\\\*/g'
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5052 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5053 if test "${lt_cv_path_NM+set}" = set; then :
5054 $as_echo_n "(cached) " >&6
5055 else
5056 if test -n "$NM"; then
5057 # Let the user override the test.
5058 lt_cv_path_NM="$NM"
5059 else
5060 lt_nm_to_check="${ac_tool_prefix}nm"
5061 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5062 lt_nm_to_check="$lt_nm_to_check nm"
5064 for lt_tmp_nm in $lt_nm_to_check; do
5065 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5066 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5067 IFS="$lt_save_ifs"
5068 test -z "$ac_dir" && ac_dir=.
5069 tmp_nm="$ac_dir/$lt_tmp_nm"
5070 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5071 # Check to see if the nm accepts a BSD-compat flag.
5072 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5073 # nm: unknown option "B" ignored
5074 # Tru64's nm complains that /dev/null is an invalid object file
5075 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5076 */dev/null* | *'Invalid file or object type'*)
5077 lt_cv_path_NM="$tmp_nm -B"
5078 break
5081 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5082 */dev/null*)
5083 lt_cv_path_NM="$tmp_nm -p"
5084 break
5087 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5088 continue # so that we can try to find one that supports BSD flags
5090 esac
5092 esac
5094 done
5095 IFS="$lt_save_ifs"
5096 done
5097 : ${lt_cv_path_NM=no}
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5101 $as_echo "$lt_cv_path_NM" >&6; }
5102 if test "$lt_cv_path_NM" != "no"; then
5103 NM="$lt_cv_path_NM"
5104 else
5105 # Didn't find any BSD compatible name lister, look for dumpbin.
5106 if test -n "$DUMPBIN"; then :
5107 # Let the user override the test.
5108 else
5109 if test -n "$ac_tool_prefix"; then
5110 for ac_prog in dumpbin "link -dump"
5112 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5113 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5115 $as_echo_n "checking for $ac_word... " >&6; }
5116 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5117 $as_echo_n "(cached) " >&6
5118 else
5119 if test -n "$DUMPBIN"; then
5120 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5121 else
5122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5123 for as_dir in $PATH
5125 IFS=$as_save_IFS
5126 test -z "$as_dir" && as_dir=.
5127 for ac_exec_ext in '' $ac_executable_extensions; do
5128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5129 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5131 break 2
5133 done
5134 done
5135 IFS=$as_save_IFS
5139 DUMPBIN=$ac_cv_prog_DUMPBIN
5140 if test -n "$DUMPBIN"; then
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5142 $as_echo "$DUMPBIN" >&6; }
5143 else
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5145 $as_echo "no" >&6; }
5149 test -n "$DUMPBIN" && break
5150 done
5152 if test -z "$DUMPBIN"; then
5153 ac_ct_DUMPBIN=$DUMPBIN
5154 for ac_prog in dumpbin "link -dump"
5156 # Extract the first word of "$ac_prog", so it can be a program name with args.
5157 set dummy $ac_prog; ac_word=$2
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5159 $as_echo_n "checking for $ac_word... " >&6; }
5160 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5161 $as_echo_n "(cached) " >&6
5162 else
5163 if test -n "$ac_ct_DUMPBIN"; then
5164 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5165 else
5166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167 for as_dir in $PATH
5169 IFS=$as_save_IFS
5170 test -z "$as_dir" && as_dir=.
5171 for ac_exec_ext in '' $ac_executable_extensions; do
5172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5173 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5175 break 2
5177 done
5178 done
5179 IFS=$as_save_IFS
5183 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5184 if test -n "$ac_ct_DUMPBIN"; then
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5186 $as_echo "$ac_ct_DUMPBIN" >&6; }
5187 else
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5189 $as_echo "no" >&6; }
5193 test -n "$ac_ct_DUMPBIN" && break
5194 done
5196 if test "x$ac_ct_DUMPBIN" = x; then
5197 DUMPBIN=":"
5198 else
5199 case $cross_compiling:$ac_tool_warned in
5200 yes:)
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5203 ac_tool_warned=yes ;;
5204 esac
5205 DUMPBIN=$ac_ct_DUMPBIN
5209 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5210 *COFF*)
5211 DUMPBIN="$DUMPBIN -symbols"
5214 DUMPBIN=:
5216 esac
5219 if test "$DUMPBIN" != ":"; then
5220 NM="$DUMPBIN"
5223 test -z "$NM" && NM=nm
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5231 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5232 if test "${lt_cv_nm_interface+set}" = set; then :
5233 $as_echo_n "(cached) " >&6
5234 else
5235 lt_cv_nm_interface="BSD nm"
5236 echo "int some_variable = 0;" > conftest.$ac_ext
5237 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5238 (eval "$ac_compile" 2>conftest.err)
5239 cat conftest.err >&5
5240 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5241 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5242 cat conftest.err >&5
5243 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5244 cat conftest.out >&5
5245 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5246 lt_cv_nm_interface="MS dumpbin"
5248 rm -f conftest*
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5251 $as_echo "$lt_cv_nm_interface" >&6; }
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5254 $as_echo_n "checking whether ln -s works... " >&6; }
5255 LN_S=$as_ln_s
5256 if test "$LN_S" = "ln -s"; then
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5258 $as_echo "yes" >&6; }
5259 else
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5261 $as_echo "no, using $LN_S" >&6; }
5264 # find the maximum length of command line arguments
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5266 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5267 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5268 $as_echo_n "(cached) " >&6
5269 else
5271 teststring="ABCD"
5273 case $build_os in
5274 msdosdjgpp*)
5275 # On DJGPP, this test can blow up pretty badly due to problems in libc
5276 # (any single argument exceeding 2000 bytes causes a buffer overrun
5277 # during glob expansion). Even if it were fixed, the result of this
5278 # check would be larger than it should be.
5279 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5282 gnu*)
5283 # Under GNU Hurd, this test is not required because there is
5284 # no limit to the length of command line arguments.
5285 # Libtool will interpret -1 as no limit whatsoever
5286 lt_cv_sys_max_cmd_len=-1;
5289 cygwin* | mingw* | cegcc*)
5290 # On Win9x/ME, this test blows up -- it succeeds, but takes
5291 # about 5 minutes as the teststring grows exponentially.
5292 # Worse, since 9x/ME are not pre-emptively multitasking,
5293 # you end up with a "frozen" computer, even though with patience
5294 # the test eventually succeeds (with a max line length of 256k).
5295 # Instead, let's just punt: use the minimum linelength reported by
5296 # all of the supported platforms: 8192 (on NT/2K/XP).
5297 lt_cv_sys_max_cmd_len=8192;
5300 mint*)
5301 # On MiNT this can take a long time and run out of memory.
5302 lt_cv_sys_max_cmd_len=8192;
5305 amigaos*)
5306 # On AmigaOS with pdksh, this test takes hours, literally.
5307 # So we just punt and use a minimum line length of 8192.
5308 lt_cv_sys_max_cmd_len=8192;
5311 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5312 # This has been around since 386BSD, at least. Likely further.
5313 if test -x /sbin/sysctl; then
5314 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5315 elif test -x /usr/sbin/sysctl; then
5316 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5317 else
5318 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5320 # And add a safety zone
5321 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5322 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5325 interix*)
5326 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5327 lt_cv_sys_max_cmd_len=196608
5330 osf*)
5331 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5332 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5333 # nice to cause kernel panics so lets avoid the loop below.
5334 # First set a reasonable default.
5335 lt_cv_sys_max_cmd_len=16384
5337 if test -x /sbin/sysconfig; then
5338 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5339 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5340 esac
5343 sco3.2v5*)
5344 lt_cv_sys_max_cmd_len=102400
5346 sysv5* | sco5v6* | sysv4.2uw2*)
5347 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5348 if test -n "$kargmax"; then
5349 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5350 else
5351 lt_cv_sys_max_cmd_len=32768
5355 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5356 if test -n "$lt_cv_sys_max_cmd_len"; then
5357 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5358 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5359 else
5360 # Make teststring a little bigger before we do anything with it.
5361 # a 1K string should be a reasonable start.
5362 for i in 1 2 3 4 5 6 7 8 ; do
5363 teststring=$teststring$teststring
5364 done
5365 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5366 # If test is not a shell built-in, we'll probably end up computing a
5367 # maximum length that is only half of the actual maximum length, but
5368 # we can't tell.
5369 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5370 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5371 test $i != 17 # 1/2 MB should be enough
5373 i=`expr $i + 1`
5374 teststring=$teststring$teststring
5375 done
5376 # Only check the string length outside the loop.
5377 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5378 teststring=
5379 # Add a significant safety factor because C++ compilers can tack on
5380 # massive amounts of additional arguments before passing them to the
5381 # linker. It appears as though 1/2 is a usable value.
5382 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5385 esac
5389 if test -n $lt_cv_sys_max_cmd_len ; then
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5391 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5392 else
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5394 $as_echo "none" >&6; }
5396 max_cmd_len=$lt_cv_sys_max_cmd_len
5403 : ${CP="cp -f"}
5404 : ${MV="mv -f"}
5405 : ${RM="rm -f"}
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5408 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5409 # Try some XSI features
5410 xsi_shell=no
5411 ( _lt_dummy="a/b/c"
5412 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5413 = c,a/b,, \
5414 && eval 'test $(( 1 + 1 )) -eq 2 \
5415 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5416 && xsi_shell=yes
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5418 $as_echo "$xsi_shell" >&6; }
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5422 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5423 lt_shell_append=no
5424 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5425 >/dev/null 2>&1 \
5426 && lt_shell_append=yes
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5428 $as_echo "$lt_shell_append" >&6; }
5431 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5432 lt_unset=unset
5433 else
5434 lt_unset=false
5441 # test EBCDIC or ASCII
5442 case `echo X|tr X '\101'` in
5443 A) # ASCII based system
5444 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5445 lt_SP2NL='tr \040 \012'
5446 lt_NL2SP='tr \015\012 \040\040'
5448 *) # EBCDIC based system
5449 lt_SP2NL='tr \100 \n'
5450 lt_NL2SP='tr \r\n \100\100'
5452 esac
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5463 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5464 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5465 $as_echo_n "(cached) " >&6
5466 else
5467 lt_cv_ld_reload_flag='-r'
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5470 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5471 reload_flag=$lt_cv_ld_reload_flag
5472 case $reload_flag in
5473 "" | " "*) ;;
5474 *) reload_flag=" $reload_flag" ;;
5475 esac
5476 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5477 case $host_os in
5478 darwin*)
5479 if test "$GCC" = yes; then
5480 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5481 else
5482 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5485 esac
5495 if test -n "$ac_tool_prefix"; then
5496 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5497 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5499 $as_echo_n "checking for $ac_word... " >&6; }
5500 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5501 $as_echo_n "(cached) " >&6
5502 else
5503 if test -n "$OBJDUMP"; then
5504 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5505 else
5506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507 for as_dir in $PATH
5509 IFS=$as_save_IFS
5510 test -z "$as_dir" && as_dir=.
5511 for ac_exec_ext in '' $ac_executable_extensions; do
5512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5513 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5515 break 2
5517 done
5518 done
5519 IFS=$as_save_IFS
5523 OBJDUMP=$ac_cv_prog_OBJDUMP
5524 if test -n "$OBJDUMP"; then
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5526 $as_echo "$OBJDUMP" >&6; }
5527 else
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5529 $as_echo "no" >&6; }
5534 if test -z "$ac_cv_prog_OBJDUMP"; then
5535 ac_ct_OBJDUMP=$OBJDUMP
5536 # Extract the first word of "objdump", so it can be a program name with args.
5537 set dummy objdump; ac_word=$2
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5539 $as_echo_n "checking for $ac_word... " >&6; }
5540 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5541 $as_echo_n "(cached) " >&6
5542 else
5543 if test -n "$ac_ct_OBJDUMP"; then
5544 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5545 else
5546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5547 for as_dir in $PATH
5549 IFS=$as_save_IFS
5550 test -z "$as_dir" && as_dir=.
5551 for ac_exec_ext in '' $ac_executable_extensions; do
5552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5553 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5555 break 2
5557 done
5558 done
5559 IFS=$as_save_IFS
5563 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5564 if test -n "$ac_ct_OBJDUMP"; then
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5566 $as_echo "$ac_ct_OBJDUMP" >&6; }
5567 else
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5569 $as_echo "no" >&6; }
5572 if test "x$ac_ct_OBJDUMP" = x; then
5573 OBJDUMP="false"
5574 else
5575 case $cross_compiling:$ac_tool_warned in
5576 yes:)
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5578 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5579 ac_tool_warned=yes ;;
5580 esac
5581 OBJDUMP=$ac_ct_OBJDUMP
5583 else
5584 OBJDUMP="$ac_cv_prog_OBJDUMP"
5587 test -z "$OBJDUMP" && OBJDUMP=objdump
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5598 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5599 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5600 $as_echo_n "(cached) " >&6
5601 else
5602 lt_cv_file_magic_cmd='$MAGIC_CMD'
5603 lt_cv_file_magic_test_file=
5604 lt_cv_deplibs_check_method='unknown'
5605 # Need to set the preceding variable on all platforms that support
5606 # interlibrary dependencies.
5607 # 'none' -- dependencies not supported.
5608 # `unknown' -- same as none, but documents that we really don't know.
5609 # 'pass_all' -- all dependencies passed with no checks.
5610 # 'test_compile' -- check by making test program.
5611 # 'file_magic [[regex]]' -- check by looking for files in library path
5612 # which responds to the $file_magic_cmd with a given extended regex.
5613 # If you have `file' or equivalent on your system and you're not sure
5614 # whether `pass_all' will *always* work, you probably want this one.
5616 case $host_os in
5617 aix[4-9]*)
5618 lt_cv_deplibs_check_method=pass_all
5621 beos*)
5622 lt_cv_deplibs_check_method=pass_all
5625 bsdi[45]*)
5626 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5627 lt_cv_file_magic_cmd='/usr/bin/file -L'
5628 lt_cv_file_magic_test_file=/shlib/libc.so
5631 cygwin*)
5632 # func_win32_libid is a shell function defined in ltmain.sh
5633 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5634 lt_cv_file_magic_cmd='func_win32_libid'
5637 mingw* | pw32*)
5638 # Base MSYS/MinGW do not provide the 'file' command needed by
5639 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5640 # unless we find 'file', for example because we are cross-compiling.
5641 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5642 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5643 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5644 lt_cv_file_magic_cmd='func_win32_libid'
5645 else
5646 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5647 lt_cv_file_magic_cmd='$OBJDUMP -f'
5651 cegcc*)
5652 # use the weaker test based on 'objdump'. See mingw*.
5653 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5654 lt_cv_file_magic_cmd='$OBJDUMP -f'
5657 darwin* | rhapsody*)
5658 lt_cv_deplibs_check_method=pass_all
5661 freebsd* | dragonfly*)
5662 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5663 case $host_cpu in
5664 i*86 )
5665 # Not sure whether the presence of OpenBSD here was a mistake.
5666 # Let's accept both of them until this is cleared up.
5667 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5668 lt_cv_file_magic_cmd=/usr/bin/file
5669 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5671 esac
5672 else
5673 lt_cv_deplibs_check_method=pass_all
5677 gnu*)
5678 lt_cv_deplibs_check_method=pass_all
5681 haiku*)
5682 lt_cv_deplibs_check_method=pass_all
5685 hpux10.20* | hpux11*)
5686 lt_cv_file_magic_cmd=/usr/bin/file
5687 case $host_cpu in
5688 ia64*)
5689 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5690 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5692 hppa*64*)
5693 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]'
5694 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5697 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5698 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5700 esac
5703 interix[3-9]*)
5704 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5705 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5708 irix5* | irix6* | nonstopux*)
5709 case $LD in
5710 *-32|*"-32 ") libmagic=32-bit;;
5711 *-n32|*"-n32 ") libmagic=N32;;
5712 *-64|*"-64 ") libmagic=64-bit;;
5713 *) libmagic=never-match;;
5714 esac
5715 lt_cv_deplibs_check_method=pass_all
5718 # This must be Linux ELF.
5719 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5720 lt_cv_deplibs_check_method=pass_all
5723 netbsd*)
5724 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5725 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5726 else
5727 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5731 newos6*)
5732 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5733 lt_cv_file_magic_cmd=/usr/bin/file
5734 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5737 *nto* | *qnx*)
5738 lt_cv_deplibs_check_method=pass_all
5741 openbsd*)
5742 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5743 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5744 else
5745 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5749 osf3* | osf4* | osf5*)
5750 lt_cv_deplibs_check_method=pass_all
5753 rdos*)
5754 lt_cv_deplibs_check_method=pass_all
5757 solaris*)
5758 lt_cv_deplibs_check_method=pass_all
5761 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5762 lt_cv_deplibs_check_method=pass_all
5765 sysv4 | sysv4.3*)
5766 case $host_vendor in
5767 motorola)
5768 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]'
5769 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5771 ncr)
5772 lt_cv_deplibs_check_method=pass_all
5774 sequent)
5775 lt_cv_file_magic_cmd='/bin/file'
5776 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5778 sni)
5779 lt_cv_file_magic_cmd='/bin/file'
5780 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5781 lt_cv_file_magic_test_file=/lib/libc.so
5783 siemens)
5784 lt_cv_deplibs_check_method=pass_all
5787 lt_cv_deplibs_check_method=pass_all
5789 esac
5792 tpf*)
5793 lt_cv_deplibs_check_method=pass_all
5795 esac
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5799 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5800 file_magic_cmd=$lt_cv_file_magic_cmd
5801 deplibs_check_method=$lt_cv_deplibs_check_method
5802 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5815 if test -n "$ac_tool_prefix"; then
5816 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5817 set dummy ${ac_tool_prefix}ar; ac_word=$2
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5819 $as_echo_n "checking for $ac_word... " >&6; }
5820 if test "${ac_cv_prog_AR+set}" = set; then :
5821 $as_echo_n "(cached) " >&6
5822 else
5823 if test -n "$AR"; then
5824 ac_cv_prog_AR="$AR" # Let the user override the test.
5825 else
5826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5827 for as_dir in $PATH
5829 IFS=$as_save_IFS
5830 test -z "$as_dir" && as_dir=.
5831 for ac_exec_ext in '' $ac_executable_extensions; do
5832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5833 ac_cv_prog_AR="${ac_tool_prefix}ar"
5834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5835 break 2
5837 done
5838 done
5839 IFS=$as_save_IFS
5843 AR=$ac_cv_prog_AR
5844 if test -n "$AR"; then
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5846 $as_echo "$AR" >&6; }
5847 else
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5849 $as_echo "no" >&6; }
5854 if test -z "$ac_cv_prog_AR"; then
5855 ac_ct_AR=$AR
5856 # Extract the first word of "ar", so it can be a program name with args.
5857 set dummy ar; ac_word=$2
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5859 $as_echo_n "checking for $ac_word... " >&6; }
5860 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5861 $as_echo_n "(cached) " >&6
5862 else
5863 if test -n "$ac_ct_AR"; then
5864 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5865 else
5866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5867 for as_dir in $PATH
5869 IFS=$as_save_IFS
5870 test -z "$as_dir" && as_dir=.
5871 for ac_exec_ext in '' $ac_executable_extensions; do
5872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5873 ac_cv_prog_ac_ct_AR="ar"
5874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5875 break 2
5877 done
5878 done
5879 IFS=$as_save_IFS
5883 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5884 if test -n "$ac_ct_AR"; then
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5886 $as_echo "$ac_ct_AR" >&6; }
5887 else
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5889 $as_echo "no" >&6; }
5892 if test "x$ac_ct_AR" = x; then
5893 AR="false"
5894 else
5895 case $cross_compiling:$ac_tool_warned in
5896 yes:)
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5899 ac_tool_warned=yes ;;
5900 esac
5901 AR=$ac_ct_AR
5903 else
5904 AR="$ac_cv_prog_AR"
5907 test -z "$AR" && AR=ar
5908 test -z "$AR_FLAGS" && AR_FLAGS=cru
5920 if test -n "$ac_tool_prefix"; then
5921 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5922 set dummy ${ac_tool_prefix}strip; ac_word=$2
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5924 $as_echo_n "checking for $ac_word... " >&6; }
5925 if test "${ac_cv_prog_STRIP+set}" = set; then :
5926 $as_echo_n "(cached) " >&6
5927 else
5928 if test -n "$STRIP"; then
5929 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5930 else
5931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5932 for as_dir in $PATH
5934 IFS=$as_save_IFS
5935 test -z "$as_dir" && as_dir=.
5936 for ac_exec_ext in '' $ac_executable_extensions; do
5937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5938 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5940 break 2
5942 done
5943 done
5944 IFS=$as_save_IFS
5948 STRIP=$ac_cv_prog_STRIP
5949 if test -n "$STRIP"; then
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5951 $as_echo "$STRIP" >&6; }
5952 else
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5954 $as_echo "no" >&6; }
5959 if test -z "$ac_cv_prog_STRIP"; then
5960 ac_ct_STRIP=$STRIP
5961 # Extract the first word of "strip", so it can be a program name with args.
5962 set dummy strip; ac_word=$2
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5964 $as_echo_n "checking for $ac_word... " >&6; }
5965 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5966 $as_echo_n "(cached) " >&6
5967 else
5968 if test -n "$ac_ct_STRIP"; then
5969 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5970 else
5971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5972 for as_dir in $PATH
5974 IFS=$as_save_IFS
5975 test -z "$as_dir" && as_dir=.
5976 for ac_exec_ext in '' $ac_executable_extensions; do
5977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5978 ac_cv_prog_ac_ct_STRIP="strip"
5979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5980 break 2
5982 done
5983 done
5984 IFS=$as_save_IFS
5988 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5989 if test -n "$ac_ct_STRIP"; then
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5991 $as_echo "$ac_ct_STRIP" >&6; }
5992 else
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5994 $as_echo "no" >&6; }
5997 if test "x$ac_ct_STRIP" = x; then
5998 STRIP=":"
5999 else
6000 case $cross_compiling:$ac_tool_warned in
6001 yes:)
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6003 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6004 ac_tool_warned=yes ;;
6005 esac
6006 STRIP=$ac_ct_STRIP
6008 else
6009 STRIP="$ac_cv_prog_STRIP"
6012 test -z "$STRIP" && STRIP=:
6019 if test -n "$ac_tool_prefix"; then
6020 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6021 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6023 $as_echo_n "checking for $ac_word... " >&6; }
6024 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6025 $as_echo_n "(cached) " >&6
6026 else
6027 if test -n "$RANLIB"; then
6028 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6029 else
6030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6031 for as_dir in $PATH
6033 IFS=$as_save_IFS
6034 test -z "$as_dir" && as_dir=.
6035 for ac_exec_ext in '' $ac_executable_extensions; do
6036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6037 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6039 break 2
6041 done
6042 done
6043 IFS=$as_save_IFS
6047 RANLIB=$ac_cv_prog_RANLIB
6048 if test -n "$RANLIB"; then
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6050 $as_echo "$RANLIB" >&6; }
6051 else
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6053 $as_echo "no" >&6; }
6058 if test -z "$ac_cv_prog_RANLIB"; then
6059 ac_ct_RANLIB=$RANLIB
6060 # Extract the first word of "ranlib", so it can be a program name with args.
6061 set dummy ranlib; ac_word=$2
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6063 $as_echo_n "checking for $ac_word... " >&6; }
6064 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6065 $as_echo_n "(cached) " >&6
6066 else
6067 if test -n "$ac_ct_RANLIB"; then
6068 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6069 else
6070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6071 for as_dir in $PATH
6073 IFS=$as_save_IFS
6074 test -z "$as_dir" && as_dir=.
6075 for ac_exec_ext in '' $ac_executable_extensions; do
6076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6077 ac_cv_prog_ac_ct_RANLIB="ranlib"
6078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6079 break 2
6081 done
6082 done
6083 IFS=$as_save_IFS
6087 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6088 if test -n "$ac_ct_RANLIB"; then
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6090 $as_echo "$ac_ct_RANLIB" >&6; }
6091 else
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6093 $as_echo "no" >&6; }
6096 if test "x$ac_ct_RANLIB" = x; then
6097 RANLIB=":"
6098 else
6099 case $cross_compiling:$ac_tool_warned in
6100 yes:)
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6103 ac_tool_warned=yes ;;
6104 esac
6105 RANLIB=$ac_ct_RANLIB
6107 else
6108 RANLIB="$ac_cv_prog_RANLIB"
6111 test -z "$RANLIB" && RANLIB=:
6118 # Determine commands to create old-style static archives.
6119 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6120 old_postinstall_cmds='chmod 644 $oldlib'
6121 old_postuninstall_cmds=
6123 if test -n "$RANLIB"; then
6124 case $host_os in
6125 openbsd*)
6126 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6129 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6131 esac
6132 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6135 case $host_os in
6136 darwin*)
6137 lock_old_archive_extraction=yes ;;
6139 lock_old_archive_extraction=no ;;
6140 esac
6180 # If no C compiler was specified, use CC.
6181 LTCC=${LTCC-"$CC"}
6183 # If no C compiler flags were specified, use CFLAGS.
6184 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6186 # Allow CC to be a program name with arguments.
6187 compiler=$CC
6190 # Check for command to grab the raw symbol name followed by C symbol from nm.
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6192 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6193 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6194 $as_echo_n "(cached) " >&6
6195 else
6197 # These are sane defaults that work on at least a few old systems.
6198 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6200 # Character class describing NM global symbol codes.
6201 symcode='[BCDEGRST]'
6203 # Regexp to match symbols that can be accessed directly from C.
6204 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6206 # Define system-specific variables.
6207 case $host_os in
6208 aix*)
6209 symcode='[BCDT]'
6211 cygwin* | mingw* | pw32* | cegcc*)
6212 symcode='[ABCDGISTW]'
6214 hpux*)
6215 if test "$host_cpu" = ia64; then
6216 symcode='[ABCDEGRST]'
6219 irix* | nonstopux*)
6220 symcode='[BCDEGRST]'
6222 osf*)
6223 symcode='[BCDEGQRST]'
6225 solaris*)
6226 symcode='[BDRT]'
6228 sco3.2v5*)
6229 symcode='[DT]'
6231 sysv4.2uw2*)
6232 symcode='[DT]'
6234 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6235 symcode='[ABDT]'
6237 sysv4)
6238 symcode='[DFNSTU]'
6240 esac
6242 # If we're using GNU nm, then use its standard symbol codes.
6243 case `$NM -V 2>&1` in
6244 *GNU* | *'with BFD'*)
6245 symcode='[ABCDGIRSTW]' ;;
6246 esac
6248 # Transform an extracted symbol line into a proper C declaration.
6249 # Some systems (esp. on ia64) link data and code symbols differently,
6250 # so use this general approach.
6251 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6253 # Transform an extracted symbol line into symbol name and symbol address
6254 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6255 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'"
6257 # Handle CRLF in mingw tool chain
6258 opt_cr=
6259 case $build_os in
6260 mingw*)
6261 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6263 esac
6265 # Try without a prefix underscore, then with it.
6266 for ac_symprfx in "" "_"; do
6268 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6269 symxfrm="\\1 $ac_symprfx\\2 \\2"
6271 # Write the raw and C identifiers.
6272 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6273 # Fake it for dumpbin and say T for any non-static function
6274 # and D for any global variable.
6275 # Also find C++ and __fastcall symbols from MSVC++,
6276 # which start with @ or ?.
6277 lt_cv_sys_global_symbol_pipe="$AWK '"\
6278 " {last_section=section; section=\$ 3};"\
6279 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6280 " \$ 0!~/External *\|/{next};"\
6281 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6282 " {if(hide[section]) next};"\
6283 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6284 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6285 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6286 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6287 " ' prfx=^$ac_symprfx"
6288 else
6289 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6292 # Check to see that the pipe works correctly.
6293 pipe_works=no
6295 rm -f conftest*
6296 cat > conftest.$ac_ext <<_LT_EOF
6297 #ifdef __cplusplus
6298 extern "C" {
6299 #endif
6300 char nm_test_var;
6301 void nm_test_func(void);
6302 void nm_test_func(void){}
6303 #ifdef __cplusplus
6305 #endif
6306 int main(){nm_test_var='a';nm_test_func();return(0);}
6307 _LT_EOF
6309 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6310 (eval $ac_compile) 2>&5
6311 ac_status=$?
6312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6313 test $ac_status = 0; }; then
6314 # Now try to grab the symbols.
6315 nlist=conftest.nm
6316 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6317 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6318 ac_status=$?
6319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6320 test $ac_status = 0; } && test -s "$nlist"; then
6321 # Try sorting and uniquifying the output.
6322 if sort "$nlist" | uniq > "$nlist"T; then
6323 mv -f "$nlist"T "$nlist"
6324 else
6325 rm -f "$nlist"T
6328 # Make sure that we snagged all the symbols we need.
6329 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6330 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6331 cat <<_LT_EOF > conftest.$ac_ext
6332 #ifdef __cplusplus
6333 extern "C" {
6334 #endif
6336 _LT_EOF
6337 # Now generate the symbol file.
6338 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6340 cat <<_LT_EOF >> conftest.$ac_ext
6342 /* The mapping between symbol names and symbols. */
6343 const struct {
6344 const char *name;
6345 void *address;
6347 lt__PROGRAM__LTX_preloaded_symbols[] =
6349 { "@PROGRAM@", (void *) 0 },
6350 _LT_EOF
6351 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6352 cat <<\_LT_EOF >> conftest.$ac_ext
6353 {0, (void *) 0}
6356 /* This works around a problem in FreeBSD linker */
6357 #ifdef FREEBSD_WORKAROUND
6358 static const void *lt_preloaded_setup() {
6359 return lt__PROGRAM__LTX_preloaded_symbols;
6361 #endif
6363 #ifdef __cplusplus
6365 #endif
6366 _LT_EOF
6367 # Now try linking the two files.
6368 mv conftest.$ac_objext conftstm.$ac_objext
6369 lt_save_LIBS="$LIBS"
6370 lt_save_CFLAGS="$CFLAGS"
6371 LIBS="conftstm.$ac_objext"
6372 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6373 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6374 (eval $ac_link) 2>&5
6375 ac_status=$?
6376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6377 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6378 pipe_works=yes
6380 LIBS="$lt_save_LIBS"
6381 CFLAGS="$lt_save_CFLAGS"
6382 else
6383 echo "cannot find nm_test_func in $nlist" >&5
6385 else
6386 echo "cannot find nm_test_var in $nlist" >&5
6388 else
6389 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6391 else
6392 echo "$progname: failed program was:" >&5
6393 cat conftest.$ac_ext >&5
6395 rm -rf conftest* conftst*
6397 # Do not use the global_symbol_pipe unless it works.
6398 if test "$pipe_works" = yes; then
6399 break
6400 else
6401 lt_cv_sys_global_symbol_pipe=
6403 done
6407 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6408 lt_cv_sys_global_symbol_to_cdecl=
6410 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6412 $as_echo "failed" >&6; }
6413 else
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6415 $as_echo "ok" >&6; }
6440 # Check whether --enable-libtool-lock was given.
6441 if test "${enable_libtool_lock+set}" = set; then :
6442 enableval=$enable_libtool_lock;
6445 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6447 # Some flags need to be propagated to the compiler or linker for good
6448 # libtool support.
6449 case $host in
6450 ia64-*-hpux*)
6451 # Find out which ABI we are using.
6452 echo 'int i;' > conftest.$ac_ext
6453 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6454 (eval $ac_compile) 2>&5
6455 ac_status=$?
6456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6457 test $ac_status = 0; }; then
6458 case `/usr/bin/file conftest.$ac_objext` in
6459 *ELF-32*)
6460 HPUX_IA64_MODE="32"
6462 *ELF-64*)
6463 HPUX_IA64_MODE="64"
6465 esac
6467 rm -rf conftest*
6469 *-*-irix6*)
6470 # Find out which ABI we are using.
6471 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6472 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6473 (eval $ac_compile) 2>&5
6474 ac_status=$?
6475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6476 test $ac_status = 0; }; then
6477 if test "$lt_cv_prog_gnu_ld" = yes; then
6478 case `/usr/bin/file conftest.$ac_objext` in
6479 *32-bit*)
6480 LD="${LD-ld} -melf32bsmip"
6482 *N32*)
6483 LD="${LD-ld} -melf32bmipn32"
6485 *64-bit*)
6486 LD="${LD-ld} -melf64bmip"
6488 esac
6489 else
6490 case `/usr/bin/file conftest.$ac_objext` in
6491 *32-bit*)
6492 LD="${LD-ld} -32"
6494 *N32*)
6495 LD="${LD-ld} -n32"
6497 *64-bit*)
6498 LD="${LD-ld} -64"
6500 esac
6503 rm -rf conftest*
6506 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6507 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6508 # Find out which ABI we are using.
6509 echo 'int i;' > conftest.$ac_ext
6510 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6511 (eval $ac_compile) 2>&5
6512 ac_status=$?
6513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6514 test $ac_status = 0; }; then
6515 case `/usr/bin/file conftest.o` in
6516 *32-bit*)
6517 case $host in
6518 x86_64-*kfreebsd*-gnu)
6519 LD="${LD-ld} -m elf_i386_fbsd"
6521 x86_64-*linux*)
6522 LD="${LD-ld} -m elf_i386"
6524 powerpc64le-*linux*)
6525 LD="${LD-ld} -m elf32lppclinux"
6527 powerpc64-*linux*)
6528 LD="${LD-ld} -m elf32ppclinux"
6530 s390x-*linux*)
6531 LD="${LD-ld} -m elf_s390"
6533 sparc64-*linux*)
6534 LD="${LD-ld} -m elf32_sparc"
6536 esac
6538 *64-bit*)
6539 case $host in
6540 x86_64-*kfreebsd*-gnu)
6541 LD="${LD-ld} -m elf_x86_64_fbsd"
6543 x86_64-*linux*)
6544 LD="${LD-ld} -m elf_x86_64"
6546 powerpcle-*linux*)
6547 LD="${LD-ld} -m elf64lppc"
6549 powerpc-*linux*)
6550 LD="${LD-ld} -m elf64ppc"
6552 s390*-*linux*|s390*-*tpf*)
6553 LD="${LD-ld} -m elf64_s390"
6555 sparc*-*linux*)
6556 LD="${LD-ld} -m elf64_sparc"
6558 esac
6560 esac
6562 rm -rf conftest*
6565 *-*-sco3.2v5*)
6566 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6567 SAVE_CFLAGS="$CFLAGS"
6568 CFLAGS="$CFLAGS -belf"
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6570 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6571 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6572 $as_echo_n "(cached) " >&6
6573 else
6574 ac_ext=c
6575 ac_cpp='$CPP $CPPFLAGS'
6576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6581 /* end confdefs.h. */
6584 main ()
6588 return 0;
6590 _ACEOF
6591 if ac_fn_c_try_link "$LINENO"; then :
6592 lt_cv_cc_needs_belf=yes
6593 else
6594 lt_cv_cc_needs_belf=no
6596 rm -f core conftest.err conftest.$ac_objext \
6597 conftest$ac_exeext conftest.$ac_ext
6598 ac_ext=c
6599 ac_cpp='$CPP $CPPFLAGS'
6600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6606 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6607 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6608 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6609 CFLAGS="$SAVE_CFLAGS"
6612 *-*solaris*)
6613 # Find out which ABI we are using.
6614 echo 'int i;' > conftest.$ac_ext
6615 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6616 (eval $ac_compile) 2>&5
6617 ac_status=$?
6618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6619 test $ac_status = 0; }; then
6620 case `/usr/bin/file conftest.o` in
6621 *64-bit*)
6622 case $lt_cv_prog_gnu_ld in
6623 yes*)
6624 case $host in
6625 i?86-*-solaris* | x86_64-*-solaris2.1[0-9]*)
6626 LD="${LD-ld} -m elf_x86_64"
6628 sparc*-*-solaris*)
6629 LD="${LD-ld} -m elf64_sparc"
6631 esac
6632 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6633 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6634 LD="${LD-ld}_sol2"
6638 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6639 LD="${LD-ld} -64"
6642 esac
6644 esac
6646 rm -rf conftest*
6648 esac
6650 need_locks="$enable_libtool_lock"
6653 case $host_os in
6654 rhapsody* | darwin*)
6655 if test -n "$ac_tool_prefix"; then
6656 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6657 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6659 $as_echo_n "checking for $ac_word... " >&6; }
6660 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6661 $as_echo_n "(cached) " >&6
6662 else
6663 if test -n "$DSYMUTIL"; then
6664 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6665 else
6666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667 for as_dir in $PATH
6669 IFS=$as_save_IFS
6670 test -z "$as_dir" && as_dir=.
6671 for ac_exec_ext in '' $ac_executable_extensions; do
6672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6673 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6675 break 2
6677 done
6678 done
6679 IFS=$as_save_IFS
6683 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6684 if test -n "$DSYMUTIL"; then
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6686 $as_echo "$DSYMUTIL" >&6; }
6687 else
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6689 $as_echo "no" >&6; }
6694 if test -z "$ac_cv_prog_DSYMUTIL"; then
6695 ac_ct_DSYMUTIL=$DSYMUTIL
6696 # Extract the first word of "dsymutil", so it can be a program name with args.
6697 set dummy dsymutil; ac_word=$2
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6699 $as_echo_n "checking for $ac_word... " >&6; }
6700 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6701 $as_echo_n "(cached) " >&6
6702 else
6703 if test -n "$ac_ct_DSYMUTIL"; then
6704 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6705 else
6706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707 for as_dir in $PATH
6709 IFS=$as_save_IFS
6710 test -z "$as_dir" && as_dir=.
6711 for ac_exec_ext in '' $ac_executable_extensions; do
6712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6713 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6715 break 2
6717 done
6718 done
6719 IFS=$as_save_IFS
6723 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6724 if test -n "$ac_ct_DSYMUTIL"; then
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6726 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6727 else
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6729 $as_echo "no" >&6; }
6732 if test "x$ac_ct_DSYMUTIL" = x; then
6733 DSYMUTIL=":"
6734 else
6735 case $cross_compiling:$ac_tool_warned in
6736 yes:)
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6739 ac_tool_warned=yes ;;
6740 esac
6741 DSYMUTIL=$ac_ct_DSYMUTIL
6743 else
6744 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6747 if test -n "$ac_tool_prefix"; then
6748 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6749 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6751 $as_echo_n "checking for $ac_word... " >&6; }
6752 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6753 $as_echo_n "(cached) " >&6
6754 else
6755 if test -n "$NMEDIT"; then
6756 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6757 else
6758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759 for as_dir in $PATH
6761 IFS=$as_save_IFS
6762 test -z "$as_dir" && as_dir=.
6763 for ac_exec_ext in '' $ac_executable_extensions; do
6764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6765 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6767 break 2
6769 done
6770 done
6771 IFS=$as_save_IFS
6775 NMEDIT=$ac_cv_prog_NMEDIT
6776 if test -n "$NMEDIT"; then
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6778 $as_echo "$NMEDIT" >&6; }
6779 else
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6781 $as_echo "no" >&6; }
6786 if test -z "$ac_cv_prog_NMEDIT"; then
6787 ac_ct_NMEDIT=$NMEDIT
6788 # Extract the first word of "nmedit", so it can be a program name with args.
6789 set dummy nmedit; ac_word=$2
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6791 $as_echo_n "checking for $ac_word... " >&6; }
6792 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6793 $as_echo_n "(cached) " >&6
6794 else
6795 if test -n "$ac_ct_NMEDIT"; then
6796 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6797 else
6798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6799 for as_dir in $PATH
6801 IFS=$as_save_IFS
6802 test -z "$as_dir" && as_dir=.
6803 for ac_exec_ext in '' $ac_executable_extensions; do
6804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6805 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6807 break 2
6809 done
6810 done
6811 IFS=$as_save_IFS
6815 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6816 if test -n "$ac_ct_NMEDIT"; then
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6818 $as_echo "$ac_ct_NMEDIT" >&6; }
6819 else
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6821 $as_echo "no" >&6; }
6824 if test "x$ac_ct_NMEDIT" = x; then
6825 NMEDIT=":"
6826 else
6827 case $cross_compiling:$ac_tool_warned in
6828 yes:)
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6830 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6831 ac_tool_warned=yes ;;
6832 esac
6833 NMEDIT=$ac_ct_NMEDIT
6835 else
6836 NMEDIT="$ac_cv_prog_NMEDIT"
6839 if test -n "$ac_tool_prefix"; then
6840 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6841 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6843 $as_echo_n "checking for $ac_word... " >&6; }
6844 if test "${ac_cv_prog_LIPO+set}" = set; then :
6845 $as_echo_n "(cached) " >&6
6846 else
6847 if test -n "$LIPO"; then
6848 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6849 else
6850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851 for as_dir in $PATH
6853 IFS=$as_save_IFS
6854 test -z "$as_dir" && as_dir=.
6855 for ac_exec_ext in '' $ac_executable_extensions; do
6856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6857 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6859 break 2
6861 done
6862 done
6863 IFS=$as_save_IFS
6867 LIPO=$ac_cv_prog_LIPO
6868 if test -n "$LIPO"; then
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6870 $as_echo "$LIPO" >&6; }
6871 else
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6873 $as_echo "no" >&6; }
6878 if test -z "$ac_cv_prog_LIPO"; then
6879 ac_ct_LIPO=$LIPO
6880 # Extract the first word of "lipo", so it can be a program name with args.
6881 set dummy lipo; ac_word=$2
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6883 $as_echo_n "checking for $ac_word... " >&6; }
6884 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6885 $as_echo_n "(cached) " >&6
6886 else
6887 if test -n "$ac_ct_LIPO"; then
6888 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6889 else
6890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891 for as_dir in $PATH
6893 IFS=$as_save_IFS
6894 test -z "$as_dir" && as_dir=.
6895 for ac_exec_ext in '' $ac_executable_extensions; do
6896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6897 ac_cv_prog_ac_ct_LIPO="lipo"
6898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6899 break 2
6901 done
6902 done
6903 IFS=$as_save_IFS
6907 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6908 if test -n "$ac_ct_LIPO"; then
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6910 $as_echo "$ac_ct_LIPO" >&6; }
6911 else
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6913 $as_echo "no" >&6; }
6916 if test "x$ac_ct_LIPO" = x; then
6917 LIPO=":"
6918 else
6919 case $cross_compiling:$ac_tool_warned in
6920 yes:)
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6922 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6923 ac_tool_warned=yes ;;
6924 esac
6925 LIPO=$ac_ct_LIPO
6927 else
6928 LIPO="$ac_cv_prog_LIPO"
6931 if test -n "$ac_tool_prefix"; then
6932 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6933 set dummy ${ac_tool_prefix}otool; ac_word=$2
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6935 $as_echo_n "checking for $ac_word... " >&6; }
6936 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6937 $as_echo_n "(cached) " >&6
6938 else
6939 if test -n "$OTOOL"; then
6940 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6941 else
6942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943 for as_dir in $PATH
6945 IFS=$as_save_IFS
6946 test -z "$as_dir" && as_dir=.
6947 for ac_exec_ext in '' $ac_executable_extensions; do
6948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6949 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6951 break 2
6953 done
6954 done
6955 IFS=$as_save_IFS
6959 OTOOL=$ac_cv_prog_OTOOL
6960 if test -n "$OTOOL"; then
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6962 $as_echo "$OTOOL" >&6; }
6963 else
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6965 $as_echo "no" >&6; }
6970 if test -z "$ac_cv_prog_OTOOL"; then
6971 ac_ct_OTOOL=$OTOOL
6972 # Extract the first word of "otool", so it can be a program name with args.
6973 set dummy otool; ac_word=$2
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6975 $as_echo_n "checking for $ac_word... " >&6; }
6976 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6977 $as_echo_n "(cached) " >&6
6978 else
6979 if test -n "$ac_ct_OTOOL"; then
6980 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6981 else
6982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6983 for as_dir in $PATH
6985 IFS=$as_save_IFS
6986 test -z "$as_dir" && as_dir=.
6987 for ac_exec_ext in '' $ac_executable_extensions; do
6988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6989 ac_cv_prog_ac_ct_OTOOL="otool"
6990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6991 break 2
6993 done
6994 done
6995 IFS=$as_save_IFS
6999 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7000 if test -n "$ac_ct_OTOOL"; then
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7002 $as_echo "$ac_ct_OTOOL" >&6; }
7003 else
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7005 $as_echo "no" >&6; }
7008 if test "x$ac_ct_OTOOL" = x; then
7009 OTOOL=":"
7010 else
7011 case $cross_compiling:$ac_tool_warned in
7012 yes:)
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7014 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7015 ac_tool_warned=yes ;;
7016 esac
7017 OTOOL=$ac_ct_OTOOL
7019 else
7020 OTOOL="$ac_cv_prog_OTOOL"
7023 if test -n "$ac_tool_prefix"; then
7024 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7025 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7027 $as_echo_n "checking for $ac_word... " >&6; }
7028 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7029 $as_echo_n "(cached) " >&6
7030 else
7031 if test -n "$OTOOL64"; then
7032 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7033 else
7034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7035 for as_dir in $PATH
7037 IFS=$as_save_IFS
7038 test -z "$as_dir" && as_dir=.
7039 for ac_exec_ext in '' $ac_executable_extensions; do
7040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7041 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7043 break 2
7045 done
7046 done
7047 IFS=$as_save_IFS
7051 OTOOL64=$ac_cv_prog_OTOOL64
7052 if test -n "$OTOOL64"; then
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7054 $as_echo "$OTOOL64" >&6; }
7055 else
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7057 $as_echo "no" >&6; }
7062 if test -z "$ac_cv_prog_OTOOL64"; then
7063 ac_ct_OTOOL64=$OTOOL64
7064 # Extract the first word of "otool64", so it can be a program name with args.
7065 set dummy otool64; ac_word=$2
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7067 $as_echo_n "checking for $ac_word... " >&6; }
7068 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7069 $as_echo_n "(cached) " >&6
7070 else
7071 if test -n "$ac_ct_OTOOL64"; then
7072 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7073 else
7074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075 for as_dir in $PATH
7077 IFS=$as_save_IFS
7078 test -z "$as_dir" && as_dir=.
7079 for ac_exec_ext in '' $ac_executable_extensions; do
7080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7081 ac_cv_prog_ac_ct_OTOOL64="otool64"
7082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7083 break 2
7085 done
7086 done
7087 IFS=$as_save_IFS
7091 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7092 if test -n "$ac_ct_OTOOL64"; then
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7094 $as_echo "$ac_ct_OTOOL64" >&6; }
7095 else
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7097 $as_echo "no" >&6; }
7100 if test "x$ac_ct_OTOOL64" = x; then
7101 OTOOL64=":"
7102 else
7103 case $cross_compiling:$ac_tool_warned in
7104 yes:)
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7106 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7107 ac_tool_warned=yes ;;
7108 esac
7109 OTOOL64=$ac_ct_OTOOL64
7111 else
7112 OTOOL64="$ac_cv_prog_OTOOL64"
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7142 $as_echo_n "checking for -single_module linker flag... " >&6; }
7143 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7144 $as_echo_n "(cached) " >&6
7145 else
7146 lt_cv_apple_cc_single_mod=no
7147 if test -z "${LT_MULTI_MODULE}"; then
7148 # By default we will add the -single_module flag. You can override
7149 # by either setting the environment variable LT_MULTI_MODULE
7150 # non-empty at configure time, or by adding -multi_module to the
7151 # link flags.
7152 rm -rf libconftest.dylib*
7153 echo "int foo(void){return 1;}" > conftest.c
7154 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7155 -dynamiclib -Wl,-single_module conftest.c" >&5
7156 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7157 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7158 _lt_result=$?
7159 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7160 lt_cv_apple_cc_single_mod=yes
7161 else
7162 cat conftest.err >&5
7164 rm -rf libconftest.dylib*
7165 rm -f conftest.*
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7169 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7171 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7172 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7173 $as_echo_n "(cached) " >&6
7174 else
7175 lt_cv_ld_exported_symbols_list=no
7176 save_LDFLAGS=$LDFLAGS
7177 echo "_main" > conftest.sym
7178 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7180 /* end confdefs.h. */
7183 main ()
7187 return 0;
7189 _ACEOF
7190 if ac_fn_c_try_link "$LINENO"; then :
7191 lt_cv_ld_exported_symbols_list=yes
7192 else
7193 lt_cv_ld_exported_symbols_list=no
7195 rm -f core conftest.err conftest.$ac_objext \
7196 conftest$ac_exeext conftest.$ac_ext
7197 LDFLAGS="$save_LDFLAGS"
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7201 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7203 $as_echo_n "checking for -force_load linker flag... " >&6; }
7204 if test "${lt_cv_ld_force_load+set}" = set; then :
7205 $as_echo_n "(cached) " >&6
7206 else
7207 lt_cv_ld_force_load=no
7208 cat > conftest.c << _LT_EOF
7209 int forced_loaded() { return 2;}
7210 _LT_EOF
7211 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7212 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7213 echo "$AR cru libconftest.a conftest.o" >&5
7214 $AR cru libconftest.a conftest.o 2>&5
7215 cat > conftest.c << _LT_EOF
7216 int main() { return 0;}
7217 _LT_EOF
7218 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7219 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7220 _lt_result=$?
7221 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7222 lt_cv_ld_force_load=yes
7223 else
7224 cat conftest.err >&5
7226 rm -f conftest.err libconftest.a conftest conftest.c
7227 rm -rf conftest.dSYM
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7231 $as_echo "$lt_cv_ld_force_load" >&6; }
7232 case $host_os in
7233 rhapsody* | darwin1.[012])
7234 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7235 darwin1.*)
7236 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7237 darwin*) # darwin 5.x on
7238 # if running on 10.5 or later, the deployment target defaults
7239 # to the OS version, if on x86, and 10.4, the deployment
7240 # target defaults to 10.4. Don't you love it?
7241 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7242 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7243 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7244 10.[012]*)
7245 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7246 10.*)
7247 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7248 esac
7250 esac
7251 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7252 _lt_dar_single_mod='$single_module'
7254 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7255 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7256 else
7257 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7259 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7260 _lt_dsymutil='~$DSYMUTIL $lib || :'
7261 else
7262 _lt_dsymutil=
7265 esac
7267 ac_ext=c
7268 ac_cpp='$CPP $CPPFLAGS'
7269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7273 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7274 # On Suns, sometimes $CPP names a directory.
7275 if test -n "$CPP" && test -d "$CPP"; then
7276 CPP=
7278 if test -z "$CPP"; then
7279 if test "${ac_cv_prog_CPP+set}" = set; then :
7280 $as_echo_n "(cached) " >&6
7281 else
7282 # Double quotes because CPP needs to be expanded
7283 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7285 ac_preproc_ok=false
7286 for ac_c_preproc_warn_flag in '' yes
7288 # Use a header file that comes with gcc, so configuring glibc
7289 # with a fresh cross-compiler works.
7290 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7291 # <limits.h> exists even on freestanding compilers.
7292 # On the NeXT, cc -E runs the code through the compiler's parser,
7293 # not just through cpp. "Syntax error" is here to catch this case.
7294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7295 /* end confdefs.h. */
7296 #ifdef __STDC__
7297 # include <limits.h>
7298 #else
7299 # include <assert.h>
7300 #endif
7301 Syntax error
7302 _ACEOF
7303 if ac_fn_c_try_cpp "$LINENO"; then :
7305 else
7306 # Broken: fails on valid input.
7307 continue
7309 rm -f conftest.err conftest.$ac_ext
7311 # OK, works on sane cases. Now check whether nonexistent headers
7312 # can be detected and how.
7313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7314 /* end confdefs.h. */
7315 #include <ac_nonexistent.h>
7316 _ACEOF
7317 if ac_fn_c_try_cpp "$LINENO"; then :
7318 # Broken: success on invalid input.
7319 continue
7320 else
7321 # Passes both tests.
7322 ac_preproc_ok=:
7323 break
7325 rm -f conftest.err conftest.$ac_ext
7327 done
7328 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7329 rm -f conftest.err conftest.$ac_ext
7330 if $ac_preproc_ok; then :
7331 break
7334 done
7335 ac_cv_prog_CPP=$CPP
7338 CPP=$ac_cv_prog_CPP
7339 else
7340 ac_cv_prog_CPP=$CPP
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7343 $as_echo "$CPP" >&6; }
7344 ac_preproc_ok=false
7345 for ac_c_preproc_warn_flag in '' yes
7347 # Use a header file that comes with gcc, so configuring glibc
7348 # with a fresh cross-compiler works.
7349 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7350 # <limits.h> exists even on freestanding compilers.
7351 # On the NeXT, cc -E runs the code through the compiler's parser,
7352 # not just through cpp. "Syntax error" is here to catch this case.
7353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7354 /* end confdefs.h. */
7355 #ifdef __STDC__
7356 # include <limits.h>
7357 #else
7358 # include <assert.h>
7359 #endif
7360 Syntax error
7361 _ACEOF
7362 if ac_fn_c_try_cpp "$LINENO"; then :
7364 else
7365 # Broken: fails on valid input.
7366 continue
7368 rm -f conftest.err conftest.$ac_ext
7370 # OK, works on sane cases. Now check whether nonexistent headers
7371 # can be detected and how.
7372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7373 /* end confdefs.h. */
7374 #include <ac_nonexistent.h>
7375 _ACEOF
7376 if ac_fn_c_try_cpp "$LINENO"; then :
7377 # Broken: success on invalid input.
7378 continue
7379 else
7380 # Passes both tests.
7381 ac_preproc_ok=:
7382 break
7384 rm -f conftest.err conftest.$ac_ext
7386 done
7387 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7388 rm -f conftest.err conftest.$ac_ext
7389 if $ac_preproc_ok; then :
7391 else
7392 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7393 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7394 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7395 See \`config.log' for more details." "$LINENO" 5; }
7398 ac_ext=c
7399 ac_cpp='$CPP $CPPFLAGS'
7400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7406 $as_echo_n "checking for ANSI C header files... " >&6; }
7407 if test "${ac_cv_header_stdc+set}" = set; then :
7408 $as_echo_n "(cached) " >&6
7409 else
7410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7411 /* end confdefs.h. */
7412 #include <stdlib.h>
7413 #include <stdarg.h>
7414 #include <string.h>
7415 #include <float.h>
7418 main ()
7422 return 0;
7424 _ACEOF
7425 if ac_fn_c_try_compile "$LINENO"; then :
7426 ac_cv_header_stdc=yes
7427 else
7428 ac_cv_header_stdc=no
7430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7432 if test $ac_cv_header_stdc = yes; then
7433 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7435 /* end confdefs.h. */
7436 #include <string.h>
7438 _ACEOF
7439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7440 $EGREP "memchr" >/dev/null 2>&1; then :
7442 else
7443 ac_cv_header_stdc=no
7445 rm -f conftest*
7449 if test $ac_cv_header_stdc = yes; then
7450 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7452 /* end confdefs.h. */
7453 #include <stdlib.h>
7455 _ACEOF
7456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7457 $EGREP "free" >/dev/null 2>&1; then :
7459 else
7460 ac_cv_header_stdc=no
7462 rm -f conftest*
7466 if test $ac_cv_header_stdc = yes; then
7467 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7468 if test "$cross_compiling" = yes; then :
7470 else
7471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7472 /* end confdefs.h. */
7473 #include <ctype.h>
7474 #include <stdlib.h>
7475 #if ((' ' & 0x0FF) == 0x020)
7476 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7477 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7478 #else
7479 # define ISLOWER(c) \
7480 (('a' <= (c) && (c) <= 'i') \
7481 || ('j' <= (c) && (c) <= 'r') \
7482 || ('s' <= (c) && (c) <= 'z'))
7483 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7484 #endif
7486 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7488 main ()
7490 int i;
7491 for (i = 0; i < 256; i++)
7492 if (XOR (islower (i), ISLOWER (i))
7493 || toupper (i) != TOUPPER (i))
7494 return 2;
7495 return 0;
7497 _ACEOF
7498 if ac_fn_c_try_run "$LINENO"; then :
7500 else
7501 ac_cv_header_stdc=no
7503 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7504 conftest.$ac_objext conftest.beam conftest.$ac_ext
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7510 $as_echo "$ac_cv_header_stdc" >&6; }
7511 if test $ac_cv_header_stdc = yes; then
7513 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7517 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7518 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7519 inttypes.h stdint.h unistd.h
7520 do :
7521 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7522 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7524 eval as_val=\$$as_ac_Header
7525 if test "x$as_val" = x""yes; then :
7526 cat >>confdefs.h <<_ACEOF
7527 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7528 _ACEOF
7532 done
7535 for ac_header in dlfcn.h
7536 do :
7537 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7539 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7540 cat >>confdefs.h <<_ACEOF
7541 #define HAVE_DLFCN_H 1
7542 _ACEOF
7546 done
7548 if test -n "$ac_tool_prefix"; then
7549 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7550 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7552 $as_echo_n "checking for $ac_word... " >&6; }
7553 if test "${ac_cv_prog_GOC+set}" = set; then :
7554 $as_echo_n "(cached) " >&6
7555 else
7556 if test -n "$GOC"; then
7557 ac_cv_prog_GOC="$GOC" # Let the user override the test.
7558 else
7559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560 for as_dir in $PATH
7562 IFS=$as_save_IFS
7563 test -z "$as_dir" && as_dir=.
7564 for ac_exec_ext in '' $ac_executable_extensions; do
7565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7566 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7568 break 2
7570 done
7571 done
7572 IFS=$as_save_IFS
7576 GOC=$ac_cv_prog_GOC
7577 if test -n "$GOC"; then
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7579 $as_echo "$GOC" >&6; }
7580 else
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7582 $as_echo "no" >&6; }
7587 if test -z "$ac_cv_prog_GOC"; then
7588 ac_ct_GOC=$GOC
7589 # Extract the first word of "gccgo", so it can be a program name with args.
7590 set dummy gccgo; ac_word=$2
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7592 $as_echo_n "checking for $ac_word... " >&6; }
7593 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
7594 $as_echo_n "(cached) " >&6
7595 else
7596 if test -n "$ac_ct_GOC"; then
7597 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7598 else
7599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7600 for as_dir in $PATH
7602 IFS=$as_save_IFS
7603 test -z "$as_dir" && as_dir=.
7604 for ac_exec_ext in '' $ac_executable_extensions; do
7605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7606 ac_cv_prog_ac_ct_GOC="gccgo"
7607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7608 break 2
7610 done
7611 done
7612 IFS=$as_save_IFS
7616 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7617 if test -n "$ac_ct_GOC"; then
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7619 $as_echo "$ac_ct_GOC" >&6; }
7620 else
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7622 $as_echo "no" >&6; }
7625 if test "x$ac_ct_GOC" = x; then
7626 GOC=""
7627 else
7628 case $cross_compiling:$ac_tool_warned in
7629 yes:)
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7632 ac_tool_warned=yes ;;
7633 esac
7634 GOC=$ac_ct_GOC
7636 else
7637 GOC="$ac_cv_prog_GOC"
7645 # Set options
7650 enable_win32_dll=no
7653 # Check whether --enable-shared was given.
7654 if test "${enable_shared+set}" = set; then :
7655 enableval=$enable_shared; p=${PACKAGE-default}
7656 case $enableval in
7657 yes) enable_shared=yes ;;
7658 no) enable_shared=no ;;
7660 enable_shared=no
7661 # Look at the argument we got. We use all the common list separators.
7662 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7663 for pkg in $enableval; do
7664 IFS="$lt_save_ifs"
7665 if test "X$pkg" = "X$p"; then
7666 enable_shared=yes
7668 done
7669 IFS="$lt_save_ifs"
7671 esac
7672 else
7673 enable_shared=yes
7684 # Check whether --enable-static was given.
7685 if test "${enable_static+set}" = set; then :
7686 enableval=$enable_static; p=${PACKAGE-default}
7687 case $enableval in
7688 yes) enable_static=yes ;;
7689 no) enable_static=no ;;
7691 enable_static=no
7692 # Look at the argument we got. We use all the common list separators.
7693 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7694 for pkg in $enableval; do
7695 IFS="$lt_save_ifs"
7696 if test "X$pkg" = "X$p"; then
7697 enable_static=yes
7699 done
7700 IFS="$lt_save_ifs"
7702 esac
7703 else
7704 enable_static=yes
7716 # Check whether --with-pic was given.
7717 if test "${with_pic+set}" = set; then :
7718 withval=$with_pic; pic_mode="$withval"
7719 else
7720 pic_mode=default
7724 test -z "$pic_mode" && pic_mode=default
7732 # Check whether --enable-fast-install was given.
7733 if test "${enable_fast_install+set}" = set; then :
7734 enableval=$enable_fast_install; p=${PACKAGE-default}
7735 case $enableval in
7736 yes) enable_fast_install=yes ;;
7737 no) enable_fast_install=no ;;
7739 enable_fast_install=no
7740 # Look at the argument we got. We use all the common list separators.
7741 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7742 for pkg in $enableval; do
7743 IFS="$lt_save_ifs"
7744 if test "X$pkg" = "X$p"; then
7745 enable_fast_install=yes
7747 done
7748 IFS="$lt_save_ifs"
7750 esac
7751 else
7752 enable_fast_install=yes
7765 # This can be used to rebuild libtool when needed
7766 LIBTOOL_DEPS="$ltmain"
7768 # Always use our own libtool.
7769 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7796 test -z "$LN_S" && LN_S="ln -s"
7811 if test -n "${ZSH_VERSION+set}" ; then
7812 setopt NO_GLOB_SUBST
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7816 $as_echo_n "checking for objdir... " >&6; }
7817 if test "${lt_cv_objdir+set}" = set; then :
7818 $as_echo_n "(cached) " >&6
7819 else
7820 rm -f .libs 2>/dev/null
7821 mkdir .libs 2>/dev/null
7822 if test -d .libs; then
7823 lt_cv_objdir=.libs
7824 else
7825 # MS-DOS does not allow filenames that begin with a dot.
7826 lt_cv_objdir=_libs
7828 rmdir .libs 2>/dev/null
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7831 $as_echo "$lt_cv_objdir" >&6; }
7832 objdir=$lt_cv_objdir
7838 cat >>confdefs.h <<_ACEOF
7839 #define LT_OBJDIR "$lt_cv_objdir/"
7840 _ACEOF
7845 case $host_os in
7846 aix3*)
7847 # AIX sometimes has problems with the GCC collect2 program. For some
7848 # reason, if we set the COLLECT_NAMES environment variable, the problems
7849 # vanish in a puff of smoke.
7850 if test "X${COLLECT_NAMES+set}" != Xset; then
7851 COLLECT_NAMES=
7852 export COLLECT_NAMES
7855 esac
7857 # Global variables:
7858 ofile=libtool
7859 can_build_shared=yes
7861 # All known linkers require a `.a' archive for static linking (except MSVC,
7862 # which needs '.lib').
7863 libext=a
7865 with_gnu_ld="$lt_cv_prog_gnu_ld"
7867 old_CC="$CC"
7868 old_CFLAGS="$CFLAGS"
7870 # Set sane defaults for various variables
7871 test -z "$CC" && CC=cc
7872 test -z "$LTCC" && LTCC=$CC
7873 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7874 test -z "$LD" && LD=ld
7875 test -z "$ac_objext" && ac_objext=o
7877 for cc_temp in $compiler""; do
7878 case $cc_temp in
7879 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7880 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7881 \-*) ;;
7882 *) break;;
7883 esac
7884 done
7885 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7888 # Only perform the check for file, if the check method requires it
7889 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7890 case $deplibs_check_method in
7891 file_magic*)
7892 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7894 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7895 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7896 $as_echo_n "(cached) " >&6
7897 else
7898 case $MAGIC_CMD in
7899 [\\/*] | ?:[\\/]*)
7900 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7903 lt_save_MAGIC_CMD="$MAGIC_CMD"
7904 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7905 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7906 for ac_dir in $ac_dummy; do
7907 IFS="$lt_save_ifs"
7908 test -z "$ac_dir" && ac_dir=.
7909 if test -f $ac_dir/${ac_tool_prefix}file; then
7910 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7911 if test -n "$file_magic_test_file"; then
7912 case $deplibs_check_method in
7913 "file_magic "*)
7914 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7915 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7916 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7917 $EGREP "$file_magic_regex" > /dev/null; then
7919 else
7920 cat <<_LT_EOF 1>&2
7922 *** Warning: the command libtool uses to detect shared libraries,
7923 *** $file_magic_cmd, produces output that libtool cannot recognize.
7924 *** The result is that libtool may fail to recognize shared libraries
7925 *** as such. This will affect the creation of libtool libraries that
7926 *** depend on shared libraries, but programs linked with such libtool
7927 *** libraries will work regardless of this problem. Nevertheless, you
7928 *** may want to report the problem to your system manager and/or to
7929 *** bug-libtool@gnu.org
7931 _LT_EOF
7932 fi ;;
7933 esac
7935 break
7937 done
7938 IFS="$lt_save_ifs"
7939 MAGIC_CMD="$lt_save_MAGIC_CMD"
7941 esac
7944 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7945 if test -n "$MAGIC_CMD"; then
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7947 $as_echo "$MAGIC_CMD" >&6; }
7948 else
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7950 $as_echo "no" >&6; }
7957 if test -z "$lt_cv_path_MAGIC_CMD"; then
7958 if test -n "$ac_tool_prefix"; then
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7960 $as_echo_n "checking for file... " >&6; }
7961 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7962 $as_echo_n "(cached) " >&6
7963 else
7964 case $MAGIC_CMD in
7965 [\\/*] | ?:[\\/]*)
7966 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7969 lt_save_MAGIC_CMD="$MAGIC_CMD"
7970 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7971 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7972 for ac_dir in $ac_dummy; do
7973 IFS="$lt_save_ifs"
7974 test -z "$ac_dir" && ac_dir=.
7975 if test -f $ac_dir/file; then
7976 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7977 if test -n "$file_magic_test_file"; then
7978 case $deplibs_check_method in
7979 "file_magic "*)
7980 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7981 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7982 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7983 $EGREP "$file_magic_regex" > /dev/null; then
7985 else
7986 cat <<_LT_EOF 1>&2
7988 *** Warning: the command libtool uses to detect shared libraries,
7989 *** $file_magic_cmd, produces output that libtool cannot recognize.
7990 *** The result is that libtool may fail to recognize shared libraries
7991 *** as such. This will affect the creation of libtool libraries that
7992 *** depend on shared libraries, but programs linked with such libtool
7993 *** libraries will work regardless of this problem. Nevertheless, you
7994 *** may want to report the problem to your system manager and/or to
7995 *** bug-libtool@gnu.org
7997 _LT_EOF
7998 fi ;;
7999 esac
8001 break
8003 done
8004 IFS="$lt_save_ifs"
8005 MAGIC_CMD="$lt_save_MAGIC_CMD"
8007 esac
8010 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8011 if test -n "$MAGIC_CMD"; then
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8013 $as_echo "$MAGIC_CMD" >&6; }
8014 else
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8016 $as_echo "no" >&6; }
8020 else
8021 MAGIC_CMD=:
8027 esac
8029 # Use C for the default configuration in the libtool script
8031 lt_save_CC="$CC"
8032 ac_ext=c
8033 ac_cpp='$CPP $CPPFLAGS'
8034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8039 # Source file extension for C test sources.
8040 ac_ext=c
8042 # Object file extension for compiled C test sources.
8043 objext=o
8044 objext=$objext
8046 # Code to be used in simple compile tests
8047 lt_simple_compile_test_code="int some_variable = 0;"
8049 # Code to be used in simple link tests
8050 lt_simple_link_test_code='int main(){return(0);}'
8058 # If no C compiler was specified, use CC.
8059 LTCC=${LTCC-"$CC"}
8061 # If no C compiler flags were specified, use CFLAGS.
8062 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8064 # Allow CC to be a program name with arguments.
8065 compiler=$CC
8067 # Save the default compiler, since it gets overwritten when the other
8068 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8069 compiler_DEFAULT=$CC
8071 # save warnings/boilerplate of simple test code
8072 ac_outfile=conftest.$ac_objext
8073 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8074 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8075 _lt_compiler_boilerplate=`cat conftest.err`
8076 $RM conftest*
8078 ac_outfile=conftest.$ac_objext
8079 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8080 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8081 _lt_linker_boilerplate=`cat conftest.err`
8082 $RM -r conftest*
8085 ## CAVEAT EMPTOR:
8086 ## There is no encapsulation within the following macros, do not change
8087 ## the running order or otherwise move them around unless you know exactly
8088 ## what you are doing...
8089 if test -n "$compiler"; then
8091 lt_prog_compiler_no_builtin_flag=
8093 if test "$GCC" = yes; then
8094 case $cc_basename in
8095 nvcc*)
8096 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8098 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8099 esac
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8102 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8103 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8104 $as_echo_n "(cached) " >&6
8105 else
8106 lt_cv_prog_compiler_rtti_exceptions=no
8107 ac_outfile=conftest.$ac_objext
8108 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8109 lt_compiler_flag="-fno-rtti -fno-exceptions"
8110 # Insert the option either (1) after the last *FLAGS variable, or
8111 # (2) before a word containing "conftest.", or (3) at the end.
8112 # Note that $ac_compile itself does not contain backslashes and begins
8113 # with a dollar sign (not a hyphen), so the echo should work correctly.
8114 # The option is referenced via a variable to avoid confusing sed.
8115 lt_compile=`echo "$ac_compile" | $SED \
8116 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8117 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8118 -e 's:$: $lt_compiler_flag:'`
8119 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8120 (eval "$lt_compile" 2>conftest.err)
8121 ac_status=$?
8122 cat conftest.err >&5
8123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124 if (exit $ac_status) && test -s "$ac_outfile"; then
8125 # The compiler can only warn and ignore the option if not recognized
8126 # So say no if there are warnings other than the usual output.
8127 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8128 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8129 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8130 lt_cv_prog_compiler_rtti_exceptions=yes
8133 $RM conftest*
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8137 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8139 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8140 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8141 else
8152 lt_prog_compiler_wl=
8153 lt_prog_compiler_pic=
8154 lt_prog_compiler_static=
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8157 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8159 if test "$GCC" = yes; then
8160 lt_prog_compiler_wl='-Wl,'
8161 lt_prog_compiler_static='-static'
8163 case $host_os in
8164 aix*)
8165 # All AIX code is PIC.
8166 if test "$host_cpu" = ia64; then
8167 # AIX 5 now supports IA64 processor
8168 lt_prog_compiler_static='-Bstatic'
8172 amigaos*)
8173 case $host_cpu in
8174 powerpc)
8175 # see comment about AmigaOS4 .so support
8176 lt_prog_compiler_pic='-fPIC'
8178 m68k)
8179 # FIXME: we need at least 68020 code to build shared libraries, but
8180 # adding the `-m68020' flag to GCC prevents building anything better,
8181 # like `-m68040'.
8182 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8184 esac
8187 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8188 # PIC is the default for these OSes.
8191 mingw* | cygwin* | pw32* | os2* | cegcc*)
8192 # This hack is so that the source file can tell whether it is being
8193 # built for inclusion in a dll (and should export symbols for example).
8194 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8195 # (--disable-auto-import) libraries
8196 lt_prog_compiler_pic='-DDLL_EXPORT'
8199 darwin* | rhapsody*)
8200 # PIC is the default on this platform
8201 # Common symbols not allowed in MH_DYLIB files
8202 lt_prog_compiler_pic='-fno-common'
8205 haiku*)
8206 # PIC is the default for Haiku.
8207 # The "-static" flag exists, but is broken.
8208 lt_prog_compiler_static=
8211 hpux*)
8212 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8213 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8214 # sets the default TLS model and affects inlining.
8215 case $host_cpu in
8216 hppa*64*)
8217 # +Z the default
8220 lt_prog_compiler_pic='-fPIC'
8222 esac
8225 interix[3-9]*)
8226 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8227 # Instead, we relocate shared libraries at runtime.
8230 msdosdjgpp*)
8231 # Just because we use GCC doesn't mean we suddenly get shared libraries
8232 # on systems that don't support them.
8233 lt_prog_compiler_can_build_shared=no
8234 enable_shared=no
8237 *nto* | *qnx*)
8238 # QNX uses GNU C++, but need to define -shared option too, otherwise
8239 # it will coredump.
8240 lt_prog_compiler_pic='-fPIC -shared'
8243 sysv4*MP*)
8244 if test -d /usr/nec; then
8245 lt_prog_compiler_pic=-Kconform_pic
8250 lt_prog_compiler_pic='-fPIC'
8252 esac
8254 case $cc_basename in
8255 nvcc*) # Cuda Compiler Driver 2.2
8256 lt_prog_compiler_wl='-Xlinker '
8257 lt_prog_compiler_pic='-Xcompiler -fPIC'
8259 esac
8260 else
8261 # PORTME Check for flag to pass linker flags through the system compiler.
8262 case $host_os in
8263 aix*)
8264 lt_prog_compiler_wl='-Wl,'
8265 if test "$host_cpu" = ia64; then
8266 # AIX 5 now supports IA64 processor
8267 lt_prog_compiler_static='-Bstatic'
8268 else
8269 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8273 mingw* | cygwin* | pw32* | os2* | cegcc*)
8274 # This hack is so that the source file can tell whether it is being
8275 # built for inclusion in a dll (and should export symbols for example).
8276 lt_prog_compiler_pic='-DDLL_EXPORT'
8279 hpux9* | hpux10* | hpux11*)
8280 lt_prog_compiler_wl='-Wl,'
8281 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8282 # not for PA HP-UX.
8283 case $host_cpu in
8284 hppa*64*|ia64*)
8285 # +Z the default
8288 lt_prog_compiler_pic='+Z'
8290 esac
8291 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8292 lt_prog_compiler_static='${wl}-a ${wl}archive'
8295 irix5* | irix6* | nonstopux*)
8296 lt_prog_compiler_wl='-Wl,'
8297 # PIC (with -KPIC) is the default.
8298 lt_prog_compiler_static='-non_shared'
8301 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8302 case $cc_basename in
8303 # old Intel for x86_64 which still supported -KPIC.
8304 ecc*)
8305 lt_prog_compiler_wl='-Wl,'
8306 lt_prog_compiler_pic='-KPIC'
8307 lt_prog_compiler_static='-static'
8309 # icc used to be incompatible with GCC.
8310 # ICC 10 doesn't accept -KPIC any more.
8311 icc* | ifort*)
8312 lt_prog_compiler_wl='-Wl,'
8313 lt_prog_compiler_pic='-fPIC'
8314 lt_prog_compiler_static='-static'
8316 # Lahey Fortran 8.1.
8317 lf95*)
8318 lt_prog_compiler_wl='-Wl,'
8319 lt_prog_compiler_pic='--shared'
8320 lt_prog_compiler_static='--static'
8322 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8323 # Portland Group compilers (*not* the Pentium gcc compiler,
8324 # which looks to be a dead project)
8325 lt_prog_compiler_wl='-Wl,'
8326 lt_prog_compiler_pic='-fpic'
8327 lt_prog_compiler_static='-Bstatic'
8329 ccc*)
8330 lt_prog_compiler_wl='-Wl,'
8331 # All Alpha code is PIC.
8332 lt_prog_compiler_static='-non_shared'
8334 xl* | bgxl* | bgf* | mpixl*)
8335 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8336 lt_prog_compiler_wl='-Wl,'
8337 lt_prog_compiler_pic='-qpic'
8338 lt_prog_compiler_static='-qstaticlink'
8341 case `$CC -V 2>&1 | sed 5q` in
8342 *Sun\ F* | *Sun*Fortran*)
8343 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8344 lt_prog_compiler_pic='-KPIC'
8345 lt_prog_compiler_static='-Bstatic'
8346 lt_prog_compiler_wl=''
8348 *Sun\ C*)
8349 # Sun C 5.9
8350 lt_prog_compiler_pic='-KPIC'
8351 lt_prog_compiler_static='-Bstatic'
8352 lt_prog_compiler_wl='-Wl,'
8354 esac
8356 esac
8359 newsos6)
8360 lt_prog_compiler_pic='-KPIC'
8361 lt_prog_compiler_static='-Bstatic'
8364 *nto* | *qnx*)
8365 # QNX uses GNU C++, but need to define -shared option too, otherwise
8366 # it will coredump.
8367 lt_prog_compiler_pic='-fPIC -shared'
8370 osf3* | osf4* | osf5*)
8371 lt_prog_compiler_wl='-Wl,'
8372 # All OSF/1 code is PIC.
8373 lt_prog_compiler_static='-non_shared'
8376 rdos*)
8377 lt_prog_compiler_static='-non_shared'
8380 solaris*)
8381 lt_prog_compiler_pic='-KPIC'
8382 lt_prog_compiler_static='-Bstatic'
8383 case $cc_basename in
8384 f77* | f90* | f95*)
8385 lt_prog_compiler_wl='-Qoption ld ';;
8387 lt_prog_compiler_wl='-Wl,';;
8388 esac
8391 sunos4*)
8392 lt_prog_compiler_wl='-Qoption ld '
8393 lt_prog_compiler_pic='-PIC'
8394 lt_prog_compiler_static='-Bstatic'
8397 sysv4 | sysv4.2uw2* | sysv4.3*)
8398 lt_prog_compiler_wl='-Wl,'
8399 lt_prog_compiler_pic='-KPIC'
8400 lt_prog_compiler_static='-Bstatic'
8403 sysv4*MP*)
8404 if test -d /usr/nec ;then
8405 lt_prog_compiler_pic='-Kconform_pic'
8406 lt_prog_compiler_static='-Bstatic'
8410 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8411 lt_prog_compiler_wl='-Wl,'
8412 lt_prog_compiler_pic='-KPIC'
8413 lt_prog_compiler_static='-Bstatic'
8416 unicos*)
8417 lt_prog_compiler_wl='-Wl,'
8418 lt_prog_compiler_can_build_shared=no
8421 uts4*)
8422 lt_prog_compiler_pic='-pic'
8423 lt_prog_compiler_static='-Bstatic'
8427 lt_prog_compiler_can_build_shared=no
8429 esac
8432 case $host_os in
8433 # For platforms which do not support PIC, -DPIC is meaningless:
8434 *djgpp*)
8435 lt_prog_compiler_pic=
8438 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8440 esac
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8442 $as_echo "$lt_prog_compiler_pic" >&6; }
8450 # Check to make sure the PIC flag actually works.
8452 if test -n "$lt_prog_compiler_pic"; then
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8454 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8455 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8456 $as_echo_n "(cached) " >&6
8457 else
8458 lt_cv_prog_compiler_pic_works=no
8459 ac_outfile=conftest.$ac_objext
8460 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8461 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8462 # Insert the option either (1) after the last *FLAGS variable, or
8463 # (2) before a word containing "conftest.", or (3) at the end.
8464 # Note that $ac_compile itself does not contain backslashes and begins
8465 # with a dollar sign (not a hyphen), so the echo should work correctly.
8466 # The option is referenced via a variable to avoid confusing sed.
8467 lt_compile=`echo "$ac_compile" | $SED \
8468 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8469 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8470 -e 's:$: $lt_compiler_flag:'`
8471 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8472 (eval "$lt_compile" 2>conftest.err)
8473 ac_status=$?
8474 cat conftest.err >&5
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 if (exit $ac_status) && test -s "$ac_outfile"; then
8477 # The compiler can only warn and ignore the option if not recognized
8478 # So say no if there are warnings other than the usual output.
8479 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8480 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8481 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8482 lt_cv_prog_compiler_pic_works=yes
8485 $RM conftest*
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8489 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8491 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8492 case $lt_prog_compiler_pic in
8493 "" | " "*) ;;
8494 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8495 esac
8496 else
8497 lt_prog_compiler_pic=
8498 lt_prog_compiler_can_build_shared=no
8509 # Check to make sure the static flag actually works.
8511 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8513 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8514 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8515 $as_echo_n "(cached) " >&6
8516 else
8517 lt_cv_prog_compiler_static_works=no
8518 save_LDFLAGS="$LDFLAGS"
8519 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8520 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8521 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8522 # The linker can only warn and ignore the option if not recognized
8523 # So say no if there are warnings
8524 if test -s conftest.err; then
8525 # Append any errors to the config.log.
8526 cat conftest.err 1>&5
8527 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8528 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8529 if diff conftest.exp conftest.er2 >/dev/null; then
8530 lt_cv_prog_compiler_static_works=yes
8532 else
8533 lt_cv_prog_compiler_static_works=yes
8536 $RM -r conftest*
8537 LDFLAGS="$save_LDFLAGS"
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8541 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8543 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8545 else
8546 lt_prog_compiler_static=
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8556 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8557 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8558 $as_echo_n "(cached) " >&6
8559 else
8560 lt_cv_prog_compiler_c_o=no
8561 $RM -r conftest 2>/dev/null
8562 mkdir conftest
8563 cd conftest
8564 mkdir out
8565 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8567 lt_compiler_flag="-o out/conftest2.$ac_objext"
8568 # Insert the option either (1) after the last *FLAGS variable, or
8569 # (2) before a word containing "conftest.", or (3) at the end.
8570 # Note that $ac_compile itself does not contain backslashes and begins
8571 # with a dollar sign (not a hyphen), so the echo should work correctly.
8572 lt_compile=`echo "$ac_compile" | $SED \
8573 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8574 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8575 -e 's:$: $lt_compiler_flag:'`
8576 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8577 (eval "$lt_compile" 2>out/conftest.err)
8578 ac_status=$?
8579 cat out/conftest.err >&5
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8582 then
8583 # The compiler can only warn and ignore the option if not recognized
8584 # So say no if there are warnings
8585 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8586 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8587 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8588 lt_cv_prog_compiler_c_o=yes
8591 chmod u+w . 2>&5
8592 $RM conftest*
8593 # SGI C++ compiler will create directory out/ii_files/ for
8594 # template instantiation
8595 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8596 $RM out/* && rmdir out
8597 cd ..
8598 $RM -r conftest
8599 $RM conftest*
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8603 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8611 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8612 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8613 $as_echo_n "(cached) " >&6
8614 else
8615 lt_cv_prog_compiler_c_o=no
8616 $RM -r conftest 2>/dev/null
8617 mkdir conftest
8618 cd conftest
8619 mkdir out
8620 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8622 lt_compiler_flag="-o out/conftest2.$ac_objext"
8623 # Insert the option either (1) after the last *FLAGS variable, or
8624 # (2) before a word containing "conftest.", or (3) at the end.
8625 # Note that $ac_compile itself does not contain backslashes and begins
8626 # with a dollar sign (not a hyphen), so the echo should work correctly.
8627 lt_compile=`echo "$ac_compile" | $SED \
8628 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8629 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8630 -e 's:$: $lt_compiler_flag:'`
8631 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8632 (eval "$lt_compile" 2>out/conftest.err)
8633 ac_status=$?
8634 cat out/conftest.err >&5
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8637 then
8638 # The compiler can only warn and ignore the option if not recognized
8639 # So say no if there are warnings
8640 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8641 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8642 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8643 lt_cv_prog_compiler_c_o=yes
8646 chmod u+w . 2>&5
8647 $RM conftest*
8648 # SGI C++ compiler will create directory out/ii_files/ for
8649 # template instantiation
8650 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8651 $RM out/* && rmdir out
8652 cd ..
8653 $RM -r conftest
8654 $RM conftest*
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8658 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8663 hard_links="nottested"
8664 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8665 # do not overwrite the value of need_locks provided by the user
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8667 $as_echo_n "checking if we can lock with hard links... " >&6; }
8668 hard_links=yes
8669 $RM conftest*
8670 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8671 touch conftest.a
8672 ln conftest.a conftest.b 2>&5 || hard_links=no
8673 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8675 $as_echo "$hard_links" >&6; }
8676 if test "$hard_links" = no; then
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8678 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8679 need_locks=warn
8681 else
8682 need_locks=no
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8691 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8693 runpath_var=
8694 allow_undefined_flag=
8695 always_export_symbols=no
8696 archive_cmds=
8697 archive_expsym_cmds=
8698 compiler_needs_object=no
8699 enable_shared_with_static_runtimes=no
8700 export_dynamic_flag_spec=
8701 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8702 hardcode_automatic=no
8703 hardcode_direct=no
8704 hardcode_direct_absolute=no
8705 hardcode_libdir_flag_spec=
8706 hardcode_libdir_flag_spec_ld=
8707 hardcode_libdir_separator=
8708 hardcode_minus_L=no
8709 hardcode_shlibpath_var=unsupported
8710 inherit_rpath=no
8711 link_all_deplibs=unknown
8712 module_cmds=
8713 module_expsym_cmds=
8714 old_archive_from_new_cmds=
8715 old_archive_from_expsyms_cmds=
8716 thread_safe_flag_spec=
8717 whole_archive_flag_spec=
8718 # include_expsyms should be a list of space-separated symbols to be *always*
8719 # included in the symbol list
8720 include_expsyms=
8721 # exclude_expsyms can be an extended regexp of symbols to exclude
8722 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8723 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8724 # as well as any symbol that contains `d'.
8725 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8726 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8727 # platforms (ab)use it in PIC code, but their linkers get confused if
8728 # the symbol is explicitly referenced. Since portable code cannot
8729 # rely on this symbol name, it's probably fine to never include it in
8730 # preloaded symbol tables.
8731 # Exclude shared library initialization/finalization symbols.
8732 extract_expsyms_cmds=
8734 case $host_os in
8735 cygwin* | mingw* | pw32* | cegcc*)
8736 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8737 # When not using gcc, we currently assume that we are using
8738 # Microsoft Visual C++.
8739 if test "$GCC" != yes; then
8740 with_gnu_ld=no
8743 interix*)
8744 # we just hope/assume this is gcc and not c89 (= MSVC++)
8745 with_gnu_ld=yes
8747 openbsd*)
8748 with_gnu_ld=no
8750 esac
8752 ld_shlibs=yes
8754 # On some targets, GNU ld is compatible enough with the native linker
8755 # that we're better off using the native interface for both.
8756 lt_use_gnu_ld_interface=no
8757 if test "$with_gnu_ld" = yes; then
8758 case $host_os in
8759 aix*)
8760 # The AIX port of GNU ld has always aspired to compatibility
8761 # with the native linker. However, as the warning in the GNU ld
8762 # block says, versions before 2.19.5* couldn't really create working
8763 # shared libraries, regardless of the interface used.
8764 case `$LD -v 2>&1` in
8765 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8766 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8767 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8769 lt_use_gnu_ld_interface=yes
8771 esac
8774 lt_use_gnu_ld_interface=yes
8776 esac
8779 if test "$lt_use_gnu_ld_interface" = yes; then
8780 # If archive_cmds runs LD, not CC, wlarc should be empty
8781 wlarc='${wl}'
8783 # Set some defaults for GNU ld with shared library support. These
8784 # are reset later if shared libraries are not supported. Putting them
8785 # here allows them to be overridden if necessary.
8786 runpath_var=LD_RUN_PATH
8787 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8788 export_dynamic_flag_spec='${wl}--export-dynamic'
8789 # ancient GNU ld didn't support --whole-archive et. al.
8790 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8791 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8792 else
8793 whole_archive_flag_spec=
8795 supports_anon_versioning=no
8796 case `$LD -v 2>&1` in
8797 *GNU\ gold*) supports_anon_versioning=yes ;;
8798 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8799 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8800 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8801 *\ 2.11.*) ;; # other 2.11 versions
8802 *) supports_anon_versioning=yes ;;
8803 esac
8805 # See if GNU ld supports shared libraries.
8806 case $host_os in
8807 aix[3-9]*)
8808 # On AIX/PPC, the GNU linker is very broken
8809 if test "$host_cpu" != ia64; then
8810 ld_shlibs=no
8811 cat <<_LT_EOF 1>&2
8813 *** Warning: the GNU linker, at least up to release 2.19, is reported
8814 *** to be unable to reliably create shared libraries on AIX.
8815 *** Therefore, libtool is disabling shared libraries support. If you
8816 *** really care for shared libraries, you may want to install binutils
8817 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8818 *** You will then need to restart the configuration process.
8820 _LT_EOF
8824 amigaos*)
8825 case $host_cpu in
8826 powerpc)
8827 # see comment about AmigaOS4 .so support
8828 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8829 archive_expsym_cmds=''
8831 m68k)
8832 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)'
8833 hardcode_libdir_flag_spec='-L$libdir'
8834 hardcode_minus_L=yes
8836 esac
8839 beos*)
8840 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8841 allow_undefined_flag=unsupported
8842 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8843 # support --undefined. This deserves some investigation. FIXME
8844 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8845 else
8846 ld_shlibs=no
8850 cygwin* | mingw* | pw32* | cegcc*)
8851 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8852 # as there is no search path for DLLs.
8853 hardcode_libdir_flag_spec='-L$libdir'
8854 export_dynamic_flag_spec='${wl}--export-all-symbols'
8855 allow_undefined_flag=unsupported
8856 always_export_symbols=no
8857 enable_shared_with_static_runtimes=yes
8858 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8860 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8861 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8862 # If the export-symbols file already is a .def file (1st line
8863 # is EXPORTS), use it as is; otherwise, prepend...
8864 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8865 cp $export_symbols $output_objdir/$soname.def;
8866 else
8867 echo EXPORTS > $output_objdir/$soname.def;
8868 cat $export_symbols >> $output_objdir/$soname.def;
8870 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8871 else
8872 ld_shlibs=no
8876 haiku*)
8877 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8878 link_all_deplibs=yes
8881 interix[3-9]*)
8882 hardcode_direct=no
8883 hardcode_shlibpath_var=no
8884 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8885 export_dynamic_flag_spec='${wl}-E'
8886 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8887 # Instead, shared libraries are loaded at an image base (0x10000000 by
8888 # default) and relocated if they conflict, which is a slow very memory
8889 # consuming and fragmenting process. To avoid this, we pick a random,
8890 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8891 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8892 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8893 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'
8896 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8897 tmp_diet=no
8898 if test "$host_os" = linux-dietlibc; then
8899 case $cc_basename in
8900 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8901 esac
8903 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8904 && test "$tmp_diet" = no
8905 then
8906 tmp_addflag=
8907 tmp_sharedflag='-shared'
8908 case $cc_basename,$host_cpu in
8909 pgcc*) # Portland Group C compiler
8910 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'
8911 tmp_addflag=' $pic_flag'
8913 pgf77* | pgf90* | pgf95* | pgfortran*)
8914 # Portland Group f77 and f90 compilers
8915 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'
8916 tmp_addflag=' $pic_flag -Mnomain' ;;
8917 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8918 tmp_addflag=' -i_dynamic' ;;
8919 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8920 tmp_addflag=' -i_dynamic -nofor_main' ;;
8921 ifc* | ifort*) # Intel Fortran compiler
8922 tmp_addflag=' -nofor_main' ;;
8923 lf95*) # Lahey Fortran 8.1
8924 whole_archive_flag_spec=
8925 tmp_sharedflag='--shared' ;;
8926 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8927 tmp_sharedflag='-qmkshrobj'
8928 tmp_addflag= ;;
8929 nvcc*) # Cuda Compiler Driver 2.2
8930 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'
8931 compiler_needs_object=yes
8933 esac
8934 case `$CC -V 2>&1 | sed 5q` in
8935 *Sun\ C*) # Sun C 5.9
8936 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'
8937 compiler_needs_object=yes
8938 tmp_sharedflag='-G' ;;
8939 *Sun\ F*) # Sun Fortran 8.3
8940 tmp_sharedflag='-G' ;;
8941 esac
8942 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8944 if test "x$supports_anon_versioning" = xyes; then
8945 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8946 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8947 echo "local: *; };" >> $output_objdir/$libname.ver~
8948 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8951 case $cc_basename in
8952 xlf* | bgf* | bgxlf* | mpixlf*)
8953 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8954 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8955 hardcode_libdir_flag_spec=
8956 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8957 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8958 if test "x$supports_anon_versioning" = xyes; then
8959 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8960 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8961 echo "local: *; };" >> $output_objdir/$libname.ver~
8962 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8965 esac
8966 else
8967 ld_shlibs=no
8971 netbsd*)
8972 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8973 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8974 wlarc=
8975 else
8976 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8977 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8981 solaris*)
8982 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8983 ld_shlibs=no
8984 cat <<_LT_EOF 1>&2
8986 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8987 *** create shared libraries on Solaris systems. Therefore, libtool
8988 *** is disabling shared libraries support. We urge you to upgrade GNU
8989 *** binutils to release 2.9.1 or newer. Another option is to modify
8990 *** your PATH or compiler configuration so that the native linker is
8991 *** used, and then restart.
8993 _LT_EOF
8994 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8995 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8996 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8997 else
8998 ld_shlibs=no
9002 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9003 case `$LD -v 2>&1` in
9004 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9005 ld_shlibs=no
9006 cat <<_LT_EOF 1>&2
9008 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9009 *** reliably create shared libraries on SCO systems. Therefore, libtool
9010 *** is disabling shared libraries support. We urge you to upgrade GNU
9011 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9012 *** your PATH or compiler configuration so that the native linker is
9013 *** used, and then restart.
9015 _LT_EOF
9018 # For security reasons, it is highly recommended that you always
9019 # use absolute paths for naming shared libraries, and exclude the
9020 # DT_RUNPATH tag from executables and libraries. But doing so
9021 # requires that you compile everything twice, which is a pain.
9022 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9023 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9024 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9025 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9026 else
9027 ld_shlibs=no
9030 esac
9033 sunos4*)
9034 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9035 wlarc=
9036 hardcode_direct=yes
9037 hardcode_shlibpath_var=no
9041 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9042 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9043 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9044 else
9045 ld_shlibs=no
9048 esac
9050 if test "$ld_shlibs" = no; then
9051 runpath_var=
9052 hardcode_libdir_flag_spec=
9053 export_dynamic_flag_spec=
9054 whole_archive_flag_spec=
9056 else
9057 # PORTME fill in a description of your system's linker (not GNU ld)
9058 case $host_os in
9059 aix3*)
9060 allow_undefined_flag=unsupported
9061 always_export_symbols=yes
9062 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'
9063 # Note: this linker hardcodes the directories in LIBPATH if there
9064 # are no directories specified by -L.
9065 hardcode_minus_L=yes
9066 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9067 # Neither direct hardcoding nor static linking is supported with a
9068 # broken collect2.
9069 hardcode_direct=unsupported
9073 aix[4-9]*)
9074 if test "$host_cpu" = ia64; then
9075 # On IA64, the linker does run time linking by default, so we don't
9076 # have to do anything special.
9077 aix_use_runtimelinking=no
9078 exp_sym_flag='-Bexport'
9079 no_entry_flag=""
9080 else
9081 # If we're using GNU nm, then we don't want the "-C" option.
9082 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9083 # Also, AIX nm treats weak defined symbols like other global
9084 # defined symbols, whereas GNU nm marks them as "W".
9085 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9086 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'
9087 else
9088 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'
9090 aix_use_runtimelinking=no
9092 # Test if we are trying to use run time linking or normal
9093 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9094 # need to do runtime linking.
9095 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9096 for ld_flag in $LDFLAGS; do
9097 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9098 aix_use_runtimelinking=yes
9099 break
9101 done
9103 esac
9105 exp_sym_flag='-bexport'
9106 no_entry_flag='-bnoentry'
9109 # When large executables or shared objects are built, AIX ld can
9110 # have problems creating the table of contents. If linking a library
9111 # or program results in "error TOC overflow" add -mminimal-toc to
9112 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9113 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9115 archive_cmds=''
9116 hardcode_direct=yes
9117 hardcode_direct_absolute=yes
9118 hardcode_libdir_separator=':'
9119 link_all_deplibs=yes
9120 file_list_spec='${wl}-f,'
9122 if test "$GCC" = yes; then
9123 case $host_os in aix4.[012]|aix4.[012].*)
9124 # We only want to do this on AIX 4.2 and lower, the check
9125 # below for broken collect2 doesn't work under 4.3+
9126 collect2name=`${CC} -print-prog-name=collect2`
9127 if test -f "$collect2name" &&
9128 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9129 then
9130 # We have reworked collect2
9132 else
9133 # We have old collect2
9134 hardcode_direct=unsupported
9135 # It fails to find uninstalled libraries when the uninstalled
9136 # path is not listed in the libpath. Setting hardcode_minus_L
9137 # to unsupported forces relinking
9138 hardcode_minus_L=yes
9139 hardcode_libdir_flag_spec='-L$libdir'
9140 hardcode_libdir_separator=
9143 esac
9144 shared_flag='-shared'
9145 if test "$aix_use_runtimelinking" = yes; then
9146 shared_flag="$shared_flag "'${wl}-G'
9148 else
9149 # not using gcc
9150 if test "$host_cpu" = ia64; then
9151 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9152 # chokes on -Wl,-G. The following line is correct:
9153 shared_flag='-G'
9154 else
9155 if test "$aix_use_runtimelinking" = yes; then
9156 shared_flag='${wl}-G'
9157 else
9158 shared_flag='${wl}-bM:SRE'
9163 export_dynamic_flag_spec='${wl}-bexpall'
9164 # It seems that -bexpall does not export symbols beginning with
9165 # underscore (_), so it is better to generate a list of symbols to export.
9166 always_export_symbols=yes
9167 if test "$aix_use_runtimelinking" = yes; then
9168 # Warning - without using the other runtime loading flags (-brtl),
9169 # -berok will link without error, but may produce a broken library.
9170 allow_undefined_flag='-berok'
9171 # Determine the default libpath from the value encoded in an
9172 # empty executable.
9173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9174 /* end confdefs.h. */
9177 main ()
9181 return 0;
9183 _ACEOF
9184 if ac_fn_c_try_link "$LINENO"; then :
9186 lt_aix_libpath_sed='
9187 /Import File Strings/,/^$/ {
9188 /^0/ {
9189 s/^0 *\(.*\)$/\1/
9193 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9194 # Check for a 64-bit object if we didn't find anything.
9195 if test -z "$aix_libpath"; then
9196 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9199 rm -f core conftest.err conftest.$ac_objext \
9200 conftest$ac_exeext conftest.$ac_ext
9201 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9203 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9204 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"
9205 else
9206 if test "$host_cpu" = ia64; then
9207 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9208 allow_undefined_flag="-z nodefs"
9209 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"
9210 else
9211 # Determine the default libpath from the value encoded in an
9212 # empty executable.
9213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9214 /* end confdefs.h. */
9217 main ()
9221 return 0;
9223 _ACEOF
9224 if ac_fn_c_try_link "$LINENO"; then :
9226 lt_aix_libpath_sed='
9227 /Import File Strings/,/^$/ {
9228 /^0/ {
9229 s/^0 *\(.*\)$/\1/
9233 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9234 # Check for a 64-bit object if we didn't find anything.
9235 if test -z "$aix_libpath"; then
9236 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9239 rm -f core conftest.err conftest.$ac_objext \
9240 conftest$ac_exeext conftest.$ac_ext
9241 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9243 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9244 # Warning - without using the other run time loading flags,
9245 # -berok will link without error, but may produce a broken library.
9246 no_undefined_flag=' ${wl}-bernotok'
9247 allow_undefined_flag=' ${wl}-berok'
9248 if test "$with_gnu_ld" = yes; then
9249 # We only use this code for GNU lds that support --whole-archive.
9250 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9251 else
9252 # Exported symbols can be pulled into shared objects from archives
9253 whole_archive_flag_spec='$convenience'
9255 archive_cmds_need_lc=yes
9256 # This is similar to how AIX traditionally builds its shared libraries.
9257 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'
9262 amigaos*)
9263 case $host_cpu in
9264 powerpc)
9265 # see comment about AmigaOS4 .so support
9266 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9267 archive_expsym_cmds=''
9269 m68k)
9270 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)'
9271 hardcode_libdir_flag_spec='-L$libdir'
9272 hardcode_minus_L=yes
9274 esac
9277 bsdi[45]*)
9278 export_dynamic_flag_spec=-rdynamic
9281 cygwin* | mingw* | pw32* | cegcc*)
9282 # When not using gcc, we currently assume that we are using
9283 # Microsoft Visual C++.
9284 # hardcode_libdir_flag_spec is actually meaningless, as there is
9285 # no search path for DLLs.
9286 hardcode_libdir_flag_spec=' '
9287 allow_undefined_flag=unsupported
9288 # Tell ltmain to make .lib files, not .a files.
9289 libext=lib
9290 # Tell ltmain to make .dll files, not .so files.
9291 shrext_cmds=".dll"
9292 # FIXME: Setting linknames here is a bad hack.
9293 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9294 # The linker will automatically build a .lib file if we build a DLL.
9295 old_archive_from_new_cmds='true'
9296 # FIXME: Should let the user specify the lib program.
9297 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9298 fix_srcfile_path='`cygpath -w "$srcfile"`'
9299 enable_shared_with_static_runtimes=yes
9302 darwin* | rhapsody*)
9305 archive_cmds_need_lc=no
9306 hardcode_direct=no
9307 hardcode_automatic=yes
9308 hardcode_shlibpath_var=unsupported
9309 if test "$lt_cv_ld_force_load" = "yes"; then
9310 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\"`'
9311 else
9312 whole_archive_flag_spec=''
9314 link_all_deplibs=yes
9315 allow_undefined_flag="$_lt_dar_allow_undefined"
9316 case $cc_basename in
9317 ifort*) _lt_dar_can_shared=yes ;;
9318 *) _lt_dar_can_shared=$GCC ;;
9319 esac
9320 if test "$_lt_dar_can_shared" = "yes"; then
9321 output_verbose_link_cmd=func_echo_all
9322 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9323 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9324 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}"
9325 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}"
9327 else
9328 ld_shlibs=no
9333 dgux*)
9334 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9335 hardcode_libdir_flag_spec='-L$libdir'
9336 hardcode_shlibpath_var=no
9339 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9340 # support. Future versions do this automatically, but an explicit c++rt0.o
9341 # does not break anything, and helps significantly (at the cost of a little
9342 # extra space).
9343 freebsd2.2*)
9344 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9345 hardcode_libdir_flag_spec='-R$libdir'
9346 hardcode_direct=yes
9347 hardcode_shlibpath_var=no
9350 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9351 freebsd2*)
9352 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9353 hardcode_direct=yes
9354 hardcode_minus_L=yes
9355 hardcode_shlibpath_var=no
9358 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9359 freebsd* | dragonfly*)
9360 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9361 hardcode_libdir_flag_spec='-R$libdir'
9362 hardcode_direct=yes
9363 hardcode_shlibpath_var=no
9366 hpux9*)
9367 if test "$GCC" = yes; then
9368 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'
9369 else
9370 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'
9372 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9373 hardcode_libdir_separator=:
9374 hardcode_direct=yes
9376 # hardcode_minus_L: Not really in the search PATH,
9377 # but as the default location of the library.
9378 hardcode_minus_L=yes
9379 export_dynamic_flag_spec='${wl}-E'
9382 hpux10*)
9383 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9384 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9385 else
9386 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9388 if test "$with_gnu_ld" = no; then
9389 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9390 hardcode_libdir_flag_spec_ld='+b $libdir'
9391 hardcode_libdir_separator=:
9392 hardcode_direct=yes
9393 hardcode_direct_absolute=yes
9394 export_dynamic_flag_spec='${wl}-E'
9395 # hardcode_minus_L: Not really in the search PATH,
9396 # but as the default location of the library.
9397 hardcode_minus_L=yes
9401 hpux11*)
9402 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9403 case $host_cpu in
9404 hppa*64*)
9405 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9407 ia64*)
9408 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9411 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9413 esac
9414 else
9415 case $host_cpu in
9416 hppa*64*)
9417 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9419 ia64*)
9420 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9424 # Older versions of the 11.00 compiler do not understand -b yet
9425 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9427 $as_echo_n "checking if $CC understands -b... " >&6; }
9428 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9429 $as_echo_n "(cached) " >&6
9430 else
9431 lt_cv_prog_compiler__b=no
9432 save_LDFLAGS="$LDFLAGS"
9433 LDFLAGS="$LDFLAGS -b"
9434 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9435 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9436 # The linker can only warn and ignore the option if not recognized
9437 # So say no if there are warnings
9438 if test -s conftest.err; then
9439 # Append any errors to the config.log.
9440 cat conftest.err 1>&5
9441 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9442 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9443 if diff conftest.exp conftest.er2 >/dev/null; then
9444 lt_cv_prog_compiler__b=yes
9446 else
9447 lt_cv_prog_compiler__b=yes
9450 $RM -r conftest*
9451 LDFLAGS="$save_LDFLAGS"
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9455 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9457 if test x"$lt_cv_prog_compiler__b" = xyes; then
9458 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9459 else
9460 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9464 esac
9466 if test "$with_gnu_ld" = no; then
9467 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9468 hardcode_libdir_separator=:
9470 case $host_cpu in
9471 hppa*64*|ia64*)
9472 hardcode_direct=no
9473 hardcode_shlibpath_var=no
9476 hardcode_direct=yes
9477 hardcode_direct_absolute=yes
9478 export_dynamic_flag_spec='${wl}-E'
9480 # hardcode_minus_L: Not really in the search PATH,
9481 # but as the default location of the library.
9482 hardcode_minus_L=yes
9484 esac
9488 irix5* | irix6* | nonstopux*)
9489 if test "$GCC" = yes; then
9490 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'
9491 # Try to use the -exported_symbol ld option, if it does not
9492 # work, assume that -exports_file does not work either and
9493 # implicitly export all symbols.
9494 save_LDFLAGS="$LDFLAGS"
9495 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9497 /* end confdefs.h. */
9498 int foo(void) {}
9499 _ACEOF
9500 if ac_fn_c_try_link "$LINENO"; then :
9501 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'
9504 rm -f core conftest.err conftest.$ac_objext \
9505 conftest$ac_exeext conftest.$ac_ext
9506 LDFLAGS="$save_LDFLAGS"
9507 else
9508 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'
9509 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'
9511 archive_cmds_need_lc='no'
9512 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9513 hardcode_libdir_separator=:
9514 inherit_rpath=yes
9515 link_all_deplibs=yes
9518 netbsd*)
9519 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9520 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9521 else
9522 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9524 hardcode_libdir_flag_spec='-R$libdir'
9525 hardcode_direct=yes
9526 hardcode_shlibpath_var=no
9529 newsos6)
9530 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9531 hardcode_direct=yes
9532 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9533 hardcode_libdir_separator=:
9534 hardcode_shlibpath_var=no
9537 *nto* | *qnx*)
9540 openbsd*)
9541 if test -f /usr/libexec/ld.so; then
9542 hardcode_direct=yes
9543 hardcode_shlibpath_var=no
9544 hardcode_direct_absolute=yes
9545 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9546 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9547 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9548 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9549 export_dynamic_flag_spec='${wl}-E'
9550 else
9551 case $host_os in
9552 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9553 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9554 hardcode_libdir_flag_spec='-R$libdir'
9557 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9558 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9560 esac
9562 else
9563 ld_shlibs=no
9567 os2*)
9568 hardcode_libdir_flag_spec='-L$libdir'
9569 hardcode_minus_L=yes
9570 allow_undefined_flag=unsupported
9571 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'
9572 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9575 osf3*)
9576 if test "$GCC" = yes; then
9577 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9578 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'
9579 else
9580 allow_undefined_flag=' -expect_unresolved \*'
9581 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'
9583 archive_cmds_need_lc='no'
9584 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9585 hardcode_libdir_separator=:
9588 osf4* | osf5*) # as osf3* with the addition of -msym flag
9589 if test "$GCC" = yes; then
9590 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9591 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'
9592 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9593 else
9594 allow_undefined_flag=' -expect_unresolved \*'
9595 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'
9596 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~
9597 $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'
9599 # Both c and cxx compiler support -rpath directly
9600 hardcode_libdir_flag_spec='-rpath $libdir'
9602 archive_cmds_need_lc='no'
9603 hardcode_libdir_separator=:
9606 solaris*)
9607 no_undefined_flag=' -z defs'
9608 if test "$GCC" = yes; then
9609 wlarc='${wl}'
9610 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9611 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9612 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9613 else
9614 case `$CC -V 2>&1` in
9615 *"Compilers 5.0"*)
9616 wlarc=''
9617 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9618 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9619 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9622 wlarc='${wl}'
9623 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9624 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9625 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9627 esac
9629 hardcode_libdir_flag_spec='-R$libdir'
9630 hardcode_shlibpath_var=no
9631 case $host_os in
9632 solaris2.[0-5] | solaris2.[0-5].*) ;;
9634 # The compiler driver will combine and reorder linker options,
9635 # but understands `-z linker_flag'. GCC discards it without `$wl',
9636 # but is careful enough not to reorder.
9637 # Supported since Solaris 2.6 (maybe 2.5.1?)
9638 if test "$GCC" = yes; then
9639 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9640 else
9641 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9644 esac
9645 link_all_deplibs=yes
9648 sunos4*)
9649 if test "x$host_vendor" = xsequent; then
9650 # Use $CC to link under sequent, because it throws in some extra .o
9651 # files that make .init and .fini sections work.
9652 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9653 else
9654 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9656 hardcode_libdir_flag_spec='-L$libdir'
9657 hardcode_direct=yes
9658 hardcode_minus_L=yes
9659 hardcode_shlibpath_var=no
9662 sysv4)
9663 case $host_vendor in
9664 sni)
9665 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9666 hardcode_direct=yes # is this really true???
9668 siemens)
9669 ## LD is ld it makes a PLAMLIB
9670 ## CC just makes a GrossModule.
9671 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9672 reload_cmds='$CC -r -o $output$reload_objs'
9673 hardcode_direct=no
9675 motorola)
9676 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9677 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9679 esac
9680 runpath_var='LD_RUN_PATH'
9681 hardcode_shlibpath_var=no
9684 sysv4.3*)
9685 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9686 hardcode_shlibpath_var=no
9687 export_dynamic_flag_spec='-Bexport'
9690 sysv4*MP*)
9691 if test -d /usr/nec; then
9692 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9693 hardcode_shlibpath_var=no
9694 runpath_var=LD_RUN_PATH
9695 hardcode_runpath_var=yes
9696 ld_shlibs=yes
9700 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9701 no_undefined_flag='${wl}-z,text'
9702 archive_cmds_need_lc=no
9703 hardcode_shlibpath_var=no
9704 runpath_var='LD_RUN_PATH'
9706 if test "$GCC" = yes; then
9707 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9708 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9709 else
9710 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9711 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9715 sysv5* | sco3.2v5* | sco5v6*)
9716 # Note: We can NOT use -z defs as we might desire, because we do not
9717 # link with -lc, and that would cause any symbols used from libc to
9718 # always be unresolved, which means just about no library would
9719 # ever link correctly. If we're not using GNU ld we use -z text
9720 # though, which does catch some bad symbols but isn't as heavy-handed
9721 # as -z defs.
9722 no_undefined_flag='${wl}-z,text'
9723 allow_undefined_flag='${wl}-z,nodefs'
9724 archive_cmds_need_lc=no
9725 hardcode_shlibpath_var=no
9726 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9727 hardcode_libdir_separator=':'
9728 link_all_deplibs=yes
9729 export_dynamic_flag_spec='${wl}-Bexport'
9730 runpath_var='LD_RUN_PATH'
9732 if test "$GCC" = yes; then
9733 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9734 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9735 else
9736 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9737 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9741 uts4*)
9742 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9743 hardcode_libdir_flag_spec='-L$libdir'
9744 hardcode_shlibpath_var=no
9748 ld_shlibs=no
9750 esac
9752 if test x$host_vendor = xsni; then
9753 case $host in
9754 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9755 export_dynamic_flag_spec='${wl}-Blargedynsym'
9757 esac
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9762 $as_echo "$ld_shlibs" >&6; }
9763 test "$ld_shlibs" = no && can_build_shared=no
9765 with_gnu_ld=$with_gnu_ld
9782 # Do we need to explicitly link libc?
9784 case "x$archive_cmds_need_lc" in
9785 x|xyes)
9786 # Assume -lc should be added
9787 archive_cmds_need_lc=yes
9789 if test "$enable_shared" = yes && test "$GCC" = yes; then
9790 case $archive_cmds in
9791 *'~'*)
9792 # FIXME: we may have to deal with multi-command sequences.
9794 '$CC '*)
9795 # Test whether the compiler implicitly links with -lc since on some
9796 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9797 # to ld, don't add -lc before -lgcc.
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9799 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9800 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9801 $as_echo_n "(cached) " >&6
9802 else
9803 $RM conftest*
9804 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9806 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9807 (eval $ac_compile) 2>&5
9808 ac_status=$?
9809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9810 test $ac_status = 0; } 2>conftest.err; then
9811 soname=conftest
9812 lib=conftest
9813 libobjs=conftest.$ac_objext
9814 deplibs=
9815 wl=$lt_prog_compiler_wl
9816 pic_flag=$lt_prog_compiler_pic
9817 compiler_flags=-v
9818 linker_flags=-v
9819 verstring=
9820 output_objdir=.
9821 libname=conftest
9822 lt_save_allow_undefined_flag=$allow_undefined_flag
9823 allow_undefined_flag=
9824 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9825 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9826 ac_status=$?
9827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9828 test $ac_status = 0; }
9829 then
9830 lt_cv_archive_cmds_need_lc=no
9831 else
9832 lt_cv_archive_cmds_need_lc=yes
9834 allow_undefined_flag=$lt_save_allow_undefined_flag
9835 else
9836 cat conftest.err 1>&5
9838 $RM conftest*
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9842 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9843 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9845 esac
9848 esac
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10007 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10009 if test "$GCC" = yes; then
10010 case $host_os in
10011 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10012 *) lt_awk_arg="/^libraries:/" ;;
10013 esac
10014 case $host_os in
10015 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10016 *) lt_sed_strip_eq="s,=/,/,g" ;;
10017 esac
10018 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10019 case $lt_search_path_spec in
10020 *\;*)
10021 # if the path contains ";" then we assume it to be the separator
10022 # otherwise default to the standard path separator (i.e. ":") - it is
10023 # assumed that no part of a normal pathname contains ";" but that should
10024 # okay in the real world where ";" in dirpaths is itself problematic.
10025 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10028 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10030 esac
10031 # Ok, now we have the path, separated by spaces, we can step through it
10032 # and add multilib dir if necessary.
10033 lt_tmp_lt_search_path_spec=
10034 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10035 for lt_sys_path in $lt_search_path_spec; do
10036 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10037 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10038 else
10039 test -d "$lt_sys_path" && \
10040 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10042 done
10043 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10044 BEGIN {RS=" "; FS="/|\n";} {
10045 lt_foo="";
10046 lt_count=0;
10047 for (lt_i = NF; lt_i > 0; lt_i--) {
10048 if ($lt_i != "" && $lt_i != ".") {
10049 if ($lt_i == "..") {
10050 lt_count++;
10051 } else {
10052 if (lt_count == 0) {
10053 lt_foo="/" $lt_i lt_foo;
10054 } else {
10055 lt_count--;
10060 if (lt_foo != "") { lt_freq[lt_foo]++; }
10061 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10063 # AWK program above erroneously prepends '/' to C:/dos/paths
10064 # for these hosts.
10065 case $host_os in
10066 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10067 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10068 esac
10069 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10070 else
10071 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10073 library_names_spec=
10074 libname_spec='lib$name'
10075 soname_spec=
10076 shrext_cmds=".so"
10077 postinstall_cmds=
10078 postuninstall_cmds=
10079 finish_cmds=
10080 finish_eval=
10081 shlibpath_var=
10082 shlibpath_overrides_runpath=unknown
10083 version_type=none
10084 dynamic_linker="$host_os ld.so"
10085 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10086 need_lib_prefix=unknown
10087 hardcode_into_libs=no
10089 # when you set need_version to no, make sure it does not cause -set_version
10090 # flags to be left without arguments
10091 need_version=unknown
10093 case $host_os in
10094 aix3*)
10095 version_type=linux
10096 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10097 shlibpath_var=LIBPATH
10099 # AIX 3 has no versioning support, so we append a major version to the name.
10100 soname_spec='${libname}${release}${shared_ext}$major'
10103 aix[4-9]*)
10104 version_type=linux
10105 need_lib_prefix=no
10106 need_version=no
10107 hardcode_into_libs=yes
10108 if test "$host_cpu" = ia64; then
10109 # AIX 5 supports IA64
10110 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10111 shlibpath_var=LD_LIBRARY_PATH
10112 else
10113 # With GCC up to 2.95.x, collect2 would create an import file
10114 # for dependence libraries. The import file would start with
10115 # the line `#! .'. This would cause the generated library to
10116 # depend on `.', always an invalid library. This was fixed in
10117 # development snapshots of GCC prior to 3.0.
10118 case $host_os in
10119 aix4 | aix4.[01] | aix4.[01].*)
10120 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10121 echo ' yes '
10122 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10124 else
10125 can_build_shared=no
10128 esac
10129 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10130 # soname into executable. Probably we can add versioning support to
10131 # collect2, so additional links can be useful in future.
10132 if test "$aix_use_runtimelinking" = yes; then
10133 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10134 # instead of lib<name>.a to let people know that these are not
10135 # typical AIX shared libraries.
10136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10137 else
10138 # We preserve .a as extension for shared libraries through AIX4.2
10139 # and later when we are not doing run time linking.
10140 library_names_spec='${libname}${release}.a $libname.a'
10141 soname_spec='${libname}${release}${shared_ext}$major'
10143 shlibpath_var=LIBPATH
10147 amigaos*)
10148 case $host_cpu in
10149 powerpc)
10150 # Since July 2007 AmigaOS4 officially supports .so libraries.
10151 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10154 m68k)
10155 library_names_spec='$libname.ixlibrary $libname.a'
10156 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10157 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'
10159 esac
10162 beos*)
10163 library_names_spec='${libname}${shared_ext}'
10164 dynamic_linker="$host_os ld.so"
10165 shlibpath_var=LIBRARY_PATH
10168 bsdi[45]*)
10169 version_type=linux
10170 need_version=no
10171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10172 soname_spec='${libname}${release}${shared_ext}$major'
10173 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10174 shlibpath_var=LD_LIBRARY_PATH
10175 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10176 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10177 # the default ld.so.conf also contains /usr/contrib/lib and
10178 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10179 # libtool to hard-code these into programs
10182 cygwin* | mingw* | pw32* | cegcc*)
10183 version_type=windows
10184 shrext_cmds=".dll"
10185 need_version=no
10186 need_lib_prefix=no
10188 case $GCC,$host_os in
10189 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10190 library_names_spec='$libname.dll.a'
10191 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10192 postinstall_cmds='base_file=`basename \${file}`~
10193 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10194 dldir=$destdir/`dirname \$dlpath`~
10195 test -d \$dldir || mkdir -p \$dldir~
10196 $install_prog $dir/$dlname \$dldir/$dlname~
10197 chmod a+x \$dldir/$dlname~
10198 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10199 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10201 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10202 dlpath=$dir/\$dldll~
10203 $RM \$dlpath'
10204 shlibpath_overrides_runpath=yes
10206 case $host_os in
10207 cygwin*)
10208 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10209 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10211 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10213 mingw* | cegcc*)
10214 # MinGW DLLs use traditional 'lib' prefix
10215 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10217 pw32*)
10218 # pw32 DLLs use 'pw' prefix rather than 'lib'
10219 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10221 esac
10225 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10227 esac
10228 dynamic_linker='Win32 ld.exe'
10229 # FIXME: first we should search . and the directory the executable is in
10230 shlibpath_var=PATH
10233 darwin* | rhapsody*)
10234 dynamic_linker="$host_os dyld"
10235 version_type=darwin
10236 need_lib_prefix=no
10237 need_version=no
10238 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10239 soname_spec='${libname}${release}${major}$shared_ext'
10240 shlibpath_overrides_runpath=yes
10241 shlibpath_var=DYLD_LIBRARY_PATH
10242 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10244 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10245 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10248 dgux*)
10249 version_type=linux
10250 need_lib_prefix=no
10251 need_version=no
10252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10253 soname_spec='${libname}${release}${shared_ext}$major'
10254 shlibpath_var=LD_LIBRARY_PATH
10257 freebsd* | dragonfly*)
10258 # DragonFly does not have aout. When/if they implement a new
10259 # versioning mechanism, adjust this.
10260 if test -x /usr/bin/objformat; then
10261 objformat=`/usr/bin/objformat`
10262 else
10263 case $host_os in
10264 freebsd[123]*) objformat=aout ;;
10265 *) objformat=elf ;;
10266 esac
10268 version_type=freebsd-$objformat
10269 case $version_type in
10270 freebsd-elf*)
10271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10272 need_version=no
10273 need_lib_prefix=no
10275 freebsd-*)
10276 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10277 need_version=yes
10279 esac
10280 shlibpath_var=LD_LIBRARY_PATH
10281 case $host_os in
10282 freebsd2*)
10283 shlibpath_overrides_runpath=yes
10285 freebsd3.[01]* | freebsdelf3.[01]*)
10286 shlibpath_overrides_runpath=yes
10287 hardcode_into_libs=yes
10289 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10290 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10291 shlibpath_overrides_runpath=no
10292 hardcode_into_libs=yes
10294 *) # from 4.6 on, and DragonFly
10295 shlibpath_overrides_runpath=yes
10296 hardcode_into_libs=yes
10298 esac
10301 gnu*)
10302 version_type=linux
10303 need_lib_prefix=no
10304 need_version=no
10305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10306 soname_spec='${libname}${release}${shared_ext}$major'
10307 shlibpath_var=LD_LIBRARY_PATH
10308 hardcode_into_libs=yes
10311 haiku*)
10312 version_type=linux
10313 need_lib_prefix=no
10314 need_version=no
10315 dynamic_linker="$host_os runtime_loader"
10316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10317 soname_spec='${libname}${release}${shared_ext}$major'
10318 shlibpath_var=LIBRARY_PATH
10319 shlibpath_overrides_runpath=yes
10320 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10321 hardcode_into_libs=yes
10324 hpux9* | hpux10* | hpux11*)
10325 # Give a soname corresponding to the major version so that dld.sl refuses to
10326 # link against other versions.
10327 version_type=sunos
10328 need_lib_prefix=no
10329 need_version=no
10330 case $host_cpu in
10331 ia64*)
10332 shrext_cmds='.so'
10333 hardcode_into_libs=yes
10334 dynamic_linker="$host_os dld.so"
10335 shlibpath_var=LD_LIBRARY_PATH
10336 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10338 soname_spec='${libname}${release}${shared_ext}$major'
10339 if test "X$HPUX_IA64_MODE" = X32; then
10340 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10341 else
10342 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10344 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10346 hppa*64*)
10347 shrext_cmds='.sl'
10348 hardcode_into_libs=yes
10349 dynamic_linker="$host_os dld.sl"
10350 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10351 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10353 soname_spec='${libname}${release}${shared_ext}$major'
10354 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10355 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10358 shrext_cmds='.sl'
10359 dynamic_linker="$host_os dld.sl"
10360 shlibpath_var=SHLIB_PATH
10361 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10363 soname_spec='${libname}${release}${shared_ext}$major'
10365 esac
10366 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10367 postinstall_cmds='chmod 555 $lib'
10368 # or fails outright, so override atomically:
10369 install_override_mode=555
10372 interix[3-9]*)
10373 version_type=linux
10374 need_lib_prefix=no
10375 need_version=no
10376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10377 soname_spec='${libname}${release}${shared_ext}$major'
10378 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10379 shlibpath_var=LD_LIBRARY_PATH
10380 shlibpath_overrides_runpath=no
10381 hardcode_into_libs=yes
10384 irix5* | irix6* | nonstopux*)
10385 case $host_os in
10386 nonstopux*) version_type=nonstopux ;;
10388 if test "$lt_cv_prog_gnu_ld" = yes; then
10389 version_type=linux
10390 else
10391 version_type=irix
10392 fi ;;
10393 esac
10394 need_lib_prefix=no
10395 need_version=no
10396 soname_spec='${libname}${release}${shared_ext}$major'
10397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10398 case $host_os in
10399 irix5* | nonstopux*)
10400 libsuff= shlibsuff=
10403 case $LD in # libtool.m4 will add one of these switches to LD
10404 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10405 libsuff= shlibsuff= libmagic=32-bit;;
10406 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10407 libsuff=32 shlibsuff=N32 libmagic=N32;;
10408 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10409 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10410 *) libsuff= shlibsuff= libmagic=never-match;;
10411 esac
10413 esac
10414 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10415 shlibpath_overrides_runpath=no
10416 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10417 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10418 hardcode_into_libs=yes
10421 # No shared lib support for Linux oldld, aout, or coff.
10422 linux*oldld* | linux*aout* | linux*coff*)
10423 dynamic_linker=no
10426 # This must be Linux ELF.
10427 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10428 version_type=linux
10429 need_lib_prefix=no
10430 need_version=no
10431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10432 soname_spec='${libname}${release}${shared_ext}$major'
10433 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10434 shlibpath_var=LD_LIBRARY_PATH
10435 shlibpath_overrides_runpath=no
10437 # Some binutils ld are patched to set DT_RUNPATH
10438 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10439 $as_echo_n "(cached) " >&6
10440 else
10441 lt_cv_shlibpath_overrides_runpath=no
10442 save_LDFLAGS=$LDFLAGS
10443 save_libdir=$libdir
10444 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10445 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10447 /* end confdefs.h. */
10450 main ()
10454 return 0;
10456 _ACEOF
10457 if ac_fn_c_try_link "$LINENO"; then :
10458 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10459 lt_cv_shlibpath_overrides_runpath=yes
10462 rm -f core conftest.err conftest.$ac_objext \
10463 conftest$ac_exeext conftest.$ac_ext
10464 LDFLAGS=$save_LDFLAGS
10465 libdir=$save_libdir
10469 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10471 # This implies no fast_install, which is unacceptable.
10472 # Some rework will be needed to allow for fast_install
10473 # before this can be enabled.
10474 hardcode_into_libs=yes
10476 # Append ld.so.conf contents to the search path
10477 if test -f /etc/ld.so.conf; then
10478 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' ' '`
10479 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10482 # We used to test for /lib/ld.so.1 and disable shared libraries on
10483 # powerpc, because MkLinux only supported shared libraries with the
10484 # GNU dynamic linker. Since this was broken with cross compilers,
10485 # most powerpc-linux boxes support dynamic linking these days and
10486 # people can always --disable-shared, the test was removed, and we
10487 # assume the GNU/Linux dynamic linker is in use.
10488 dynamic_linker='GNU/Linux ld.so'
10491 netbsd*)
10492 version_type=sunos
10493 need_lib_prefix=no
10494 need_version=no
10495 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10497 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10498 dynamic_linker='NetBSD (a.out) ld.so'
10499 else
10500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10501 soname_spec='${libname}${release}${shared_ext}$major'
10502 dynamic_linker='NetBSD ld.elf_so'
10504 shlibpath_var=LD_LIBRARY_PATH
10505 shlibpath_overrides_runpath=yes
10506 hardcode_into_libs=yes
10509 newsos6)
10510 version_type=linux
10511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10512 shlibpath_var=LD_LIBRARY_PATH
10513 shlibpath_overrides_runpath=yes
10516 *nto* | *qnx*)
10517 version_type=qnx
10518 need_lib_prefix=no
10519 need_version=no
10520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10521 soname_spec='${libname}${release}${shared_ext}$major'
10522 shlibpath_var=LD_LIBRARY_PATH
10523 shlibpath_overrides_runpath=no
10524 hardcode_into_libs=yes
10525 dynamic_linker='ldqnx.so'
10528 openbsd*)
10529 version_type=sunos
10530 sys_lib_dlsearch_path_spec="/usr/lib"
10531 need_lib_prefix=no
10532 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10533 case $host_os in
10534 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10535 *) need_version=no ;;
10536 esac
10537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10538 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10539 shlibpath_var=LD_LIBRARY_PATH
10540 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10541 case $host_os in
10542 openbsd2.[89] | openbsd2.[89].*)
10543 shlibpath_overrides_runpath=no
10546 shlibpath_overrides_runpath=yes
10548 esac
10549 else
10550 shlibpath_overrides_runpath=yes
10554 os2*)
10555 libname_spec='$name'
10556 shrext_cmds=".dll"
10557 need_lib_prefix=no
10558 library_names_spec='$libname${shared_ext} $libname.a'
10559 dynamic_linker='OS/2 ld.exe'
10560 shlibpath_var=LIBPATH
10563 osf3* | osf4* | osf5*)
10564 version_type=osf
10565 need_lib_prefix=no
10566 need_version=no
10567 soname_spec='${libname}${release}${shared_ext}$major'
10568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10569 shlibpath_var=LD_LIBRARY_PATH
10570 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10571 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10574 rdos*)
10575 dynamic_linker=no
10578 solaris*)
10579 version_type=linux
10580 need_lib_prefix=no
10581 need_version=no
10582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10583 soname_spec='${libname}${release}${shared_ext}$major'
10584 shlibpath_var=LD_LIBRARY_PATH
10585 shlibpath_overrides_runpath=yes
10586 hardcode_into_libs=yes
10587 # ldd complains unless libraries are executable
10588 postinstall_cmds='chmod +x $lib'
10591 sunos4*)
10592 version_type=sunos
10593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10594 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10595 shlibpath_var=LD_LIBRARY_PATH
10596 shlibpath_overrides_runpath=yes
10597 if test "$with_gnu_ld" = yes; then
10598 need_lib_prefix=no
10600 need_version=yes
10603 sysv4 | sysv4.3*)
10604 version_type=linux
10605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10606 soname_spec='${libname}${release}${shared_ext}$major'
10607 shlibpath_var=LD_LIBRARY_PATH
10608 case $host_vendor in
10609 sni)
10610 shlibpath_overrides_runpath=no
10611 need_lib_prefix=no
10612 runpath_var=LD_RUN_PATH
10614 siemens)
10615 need_lib_prefix=no
10617 motorola)
10618 need_lib_prefix=no
10619 need_version=no
10620 shlibpath_overrides_runpath=no
10621 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10623 esac
10626 sysv4*MP*)
10627 if test -d /usr/nec ;then
10628 version_type=linux
10629 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10630 soname_spec='$libname${shared_ext}.$major'
10631 shlibpath_var=LD_LIBRARY_PATH
10635 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10636 version_type=freebsd-elf
10637 need_lib_prefix=no
10638 need_version=no
10639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10640 soname_spec='${libname}${release}${shared_ext}$major'
10641 shlibpath_var=LD_LIBRARY_PATH
10642 shlibpath_overrides_runpath=yes
10643 hardcode_into_libs=yes
10644 if test "$with_gnu_ld" = yes; then
10645 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10646 else
10647 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10648 case $host_os in
10649 sco3.2v5*)
10650 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10652 esac
10654 sys_lib_dlsearch_path_spec='/usr/lib'
10657 tpf*)
10658 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10659 version_type=linux
10660 need_lib_prefix=no
10661 need_version=no
10662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10663 shlibpath_var=LD_LIBRARY_PATH
10664 shlibpath_overrides_runpath=no
10665 hardcode_into_libs=yes
10668 uts4*)
10669 version_type=linux
10670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10671 soname_spec='${libname}${release}${shared_ext}$major'
10672 shlibpath_var=LD_LIBRARY_PATH
10676 dynamic_linker=no
10678 esac
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10680 $as_echo "$dynamic_linker" >&6; }
10681 test "$dynamic_linker" = no && can_build_shared=no
10683 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10684 if test "$GCC" = yes; then
10685 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10688 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10689 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10691 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10692 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10787 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10788 hardcode_action=
10789 if test -n "$hardcode_libdir_flag_spec" ||
10790 test -n "$runpath_var" ||
10791 test "X$hardcode_automatic" = "Xyes" ; then
10793 # We can hardcode non-existent directories.
10794 if test "$hardcode_direct" != no &&
10795 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10796 # have to relink, otherwise we might link with an installed library
10797 # when we should be linking with a yet-to-be-installed one
10798 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10799 test "$hardcode_minus_L" != no; then
10800 # Linking always hardcodes the temporary library directory.
10801 hardcode_action=relink
10802 else
10803 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10804 hardcode_action=immediate
10806 else
10807 # We cannot hardcode anything, or else we can only hardcode existing
10808 # directories.
10809 hardcode_action=unsupported
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10812 $as_echo "$hardcode_action" >&6; }
10814 if test "$hardcode_action" = relink ||
10815 test "$inherit_rpath" = yes; then
10816 # Fast installation is not supported
10817 enable_fast_install=no
10818 elif test "$shlibpath_overrides_runpath" = yes ||
10819 test "$enable_shared" = no; then
10820 # Fast installation is not necessary
10821 enable_fast_install=needless
10829 if test "x$enable_dlopen" != xyes; then
10830 enable_dlopen=unknown
10831 enable_dlopen_self=unknown
10832 enable_dlopen_self_static=unknown
10833 else
10834 lt_cv_dlopen=no
10835 lt_cv_dlopen_libs=
10837 case $host_os in
10838 beos*)
10839 lt_cv_dlopen="load_add_on"
10840 lt_cv_dlopen_libs=
10841 lt_cv_dlopen_self=yes
10844 mingw* | pw32* | cegcc*)
10845 lt_cv_dlopen="LoadLibrary"
10846 lt_cv_dlopen_libs=
10849 cygwin*)
10850 lt_cv_dlopen="dlopen"
10851 lt_cv_dlopen_libs=
10854 darwin*)
10855 # if libdl is installed we need to link against it
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10857 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10858 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10859 $as_echo_n "(cached) " >&6
10860 else
10861 ac_check_lib_save_LIBS=$LIBS
10862 LIBS="-ldl $LIBS"
10863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10864 /* end confdefs.h. */
10866 /* Override any GCC internal prototype to avoid an error.
10867 Use char because int might match the return type of a GCC
10868 builtin and then its argument prototype would still apply. */
10869 #ifdef __cplusplus
10870 extern "C"
10871 #endif
10872 char dlopen ();
10874 main ()
10876 return dlopen ();
10878 return 0;
10880 _ACEOF
10881 if ac_fn_c_try_link "$LINENO"; then :
10882 ac_cv_lib_dl_dlopen=yes
10883 else
10884 ac_cv_lib_dl_dlopen=no
10886 rm -f core conftest.err conftest.$ac_objext \
10887 conftest$ac_exeext conftest.$ac_ext
10888 LIBS=$ac_check_lib_save_LIBS
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10891 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10892 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10893 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10894 else
10896 lt_cv_dlopen="dyld"
10897 lt_cv_dlopen_libs=
10898 lt_cv_dlopen_self=yes
10905 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10906 if test "x$ac_cv_func_shl_load" = x""yes; then :
10907 lt_cv_dlopen="shl_load"
10908 else
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10910 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10911 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10912 $as_echo_n "(cached) " >&6
10913 else
10914 ac_check_lib_save_LIBS=$LIBS
10915 LIBS="-ldld $LIBS"
10916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10917 /* end confdefs.h. */
10919 /* Override any GCC internal prototype to avoid an error.
10920 Use char because int might match the return type of a GCC
10921 builtin and then its argument prototype would still apply. */
10922 #ifdef __cplusplus
10923 extern "C"
10924 #endif
10925 char shl_load ();
10927 main ()
10929 return shl_load ();
10931 return 0;
10933 _ACEOF
10934 if ac_fn_c_try_link "$LINENO"; then :
10935 ac_cv_lib_dld_shl_load=yes
10936 else
10937 ac_cv_lib_dld_shl_load=no
10939 rm -f core conftest.err conftest.$ac_objext \
10940 conftest$ac_exeext conftest.$ac_ext
10941 LIBS=$ac_check_lib_save_LIBS
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10944 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10945 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10946 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10947 else
10948 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10949 if test "x$ac_cv_func_dlopen" = x""yes; then :
10950 lt_cv_dlopen="dlopen"
10951 else
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10953 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10954 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10955 $as_echo_n "(cached) " >&6
10956 else
10957 ac_check_lib_save_LIBS=$LIBS
10958 LIBS="-ldl $LIBS"
10959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10960 /* end confdefs.h. */
10962 /* Override any GCC internal prototype to avoid an error.
10963 Use char because int might match the return type of a GCC
10964 builtin and then its argument prototype would still apply. */
10965 #ifdef __cplusplus
10966 extern "C"
10967 #endif
10968 char dlopen ();
10970 main ()
10972 return dlopen ();
10974 return 0;
10976 _ACEOF
10977 if ac_fn_c_try_link "$LINENO"; then :
10978 ac_cv_lib_dl_dlopen=yes
10979 else
10980 ac_cv_lib_dl_dlopen=no
10982 rm -f core conftest.err conftest.$ac_objext \
10983 conftest$ac_exeext conftest.$ac_ext
10984 LIBS=$ac_check_lib_save_LIBS
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10987 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10988 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10989 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10990 else
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10992 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10993 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10994 $as_echo_n "(cached) " >&6
10995 else
10996 ac_check_lib_save_LIBS=$LIBS
10997 LIBS="-lsvld $LIBS"
10998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10999 /* end confdefs.h. */
11001 /* Override any GCC internal prototype to avoid an error.
11002 Use char because int might match the return type of a GCC
11003 builtin and then its argument prototype would still apply. */
11004 #ifdef __cplusplus
11005 extern "C"
11006 #endif
11007 char dlopen ();
11009 main ()
11011 return dlopen ();
11013 return 0;
11015 _ACEOF
11016 if ac_fn_c_try_link "$LINENO"; then :
11017 ac_cv_lib_svld_dlopen=yes
11018 else
11019 ac_cv_lib_svld_dlopen=no
11021 rm -f core conftest.err conftest.$ac_objext \
11022 conftest$ac_exeext conftest.$ac_ext
11023 LIBS=$ac_check_lib_save_LIBS
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11026 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11027 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11028 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11029 else
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11031 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11032 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11033 $as_echo_n "(cached) " >&6
11034 else
11035 ac_check_lib_save_LIBS=$LIBS
11036 LIBS="-ldld $LIBS"
11037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11038 /* end confdefs.h. */
11040 /* Override any GCC internal prototype to avoid an error.
11041 Use char because int might match the return type of a GCC
11042 builtin and then its argument prototype would still apply. */
11043 #ifdef __cplusplus
11044 extern "C"
11045 #endif
11046 char dld_link ();
11048 main ()
11050 return dld_link ();
11052 return 0;
11054 _ACEOF
11055 if ac_fn_c_try_link "$LINENO"; then :
11056 ac_cv_lib_dld_dld_link=yes
11057 else
11058 ac_cv_lib_dld_dld_link=no
11060 rm -f core conftest.err conftest.$ac_objext \
11061 conftest$ac_exeext conftest.$ac_ext
11062 LIBS=$ac_check_lib_save_LIBS
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11065 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11066 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11067 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11086 esac
11088 if test "x$lt_cv_dlopen" != xno; then
11089 enable_dlopen=yes
11090 else
11091 enable_dlopen=no
11094 case $lt_cv_dlopen in
11095 dlopen)
11096 save_CPPFLAGS="$CPPFLAGS"
11097 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11099 save_LDFLAGS="$LDFLAGS"
11100 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11102 save_LIBS="$LIBS"
11103 LIBS="$lt_cv_dlopen_libs $LIBS"
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11106 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11107 if test "${lt_cv_dlopen_self+set}" = set; then :
11108 $as_echo_n "(cached) " >&6
11109 else
11110 if test "$cross_compiling" = yes; then :
11111 lt_cv_dlopen_self=cross
11112 else
11113 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11114 lt_status=$lt_dlunknown
11115 cat > conftest.$ac_ext <<_LT_EOF
11116 #line 11116 "configure"
11117 #include "confdefs.h"
11119 #if HAVE_DLFCN_H
11120 #include <dlfcn.h>
11121 #endif
11123 #include <stdio.h>
11125 #ifdef RTLD_GLOBAL
11126 # define LT_DLGLOBAL RTLD_GLOBAL
11127 #else
11128 # ifdef DL_GLOBAL
11129 # define LT_DLGLOBAL DL_GLOBAL
11130 # else
11131 # define LT_DLGLOBAL 0
11132 # endif
11133 #endif
11135 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11136 find out it does not work in some platform. */
11137 #ifndef LT_DLLAZY_OR_NOW
11138 # ifdef RTLD_LAZY
11139 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11140 # else
11141 # ifdef DL_LAZY
11142 # define LT_DLLAZY_OR_NOW DL_LAZY
11143 # else
11144 # ifdef RTLD_NOW
11145 # define LT_DLLAZY_OR_NOW RTLD_NOW
11146 # else
11147 # ifdef DL_NOW
11148 # define LT_DLLAZY_OR_NOW DL_NOW
11149 # else
11150 # define LT_DLLAZY_OR_NOW 0
11151 # endif
11152 # endif
11153 # endif
11154 # endif
11155 #endif
11157 /* When -fvisbility=hidden is used, assume the code has been annotated
11158 correspondingly for the symbols needed. */
11159 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11160 void fnord () __attribute__((visibility("default")));
11161 #endif
11163 void fnord () { int i=42; }
11164 int main ()
11166 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11167 int status = $lt_dlunknown;
11169 if (self)
11171 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11172 else
11174 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11175 else puts (dlerror ());
11177 /* dlclose (self); */
11179 else
11180 puts (dlerror ());
11182 return status;
11184 _LT_EOF
11185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11186 (eval $ac_link) 2>&5
11187 ac_status=$?
11188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11189 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11190 (./conftest; exit; ) >&5 2>/dev/null
11191 lt_status=$?
11192 case x$lt_status in
11193 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11194 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11195 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11196 esac
11197 else :
11198 # compilation failed
11199 lt_cv_dlopen_self=no
11202 rm -fr conftest*
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11207 $as_echo "$lt_cv_dlopen_self" >&6; }
11209 if test "x$lt_cv_dlopen_self" = xyes; then
11210 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11212 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11213 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11214 $as_echo_n "(cached) " >&6
11215 else
11216 if test "$cross_compiling" = yes; then :
11217 lt_cv_dlopen_self_static=cross
11218 else
11219 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11220 lt_status=$lt_dlunknown
11221 cat > conftest.$ac_ext <<_LT_EOF
11222 #line 11222 "configure"
11223 #include "confdefs.h"
11225 #if HAVE_DLFCN_H
11226 #include <dlfcn.h>
11227 #endif
11229 #include <stdio.h>
11231 #ifdef RTLD_GLOBAL
11232 # define LT_DLGLOBAL RTLD_GLOBAL
11233 #else
11234 # ifdef DL_GLOBAL
11235 # define LT_DLGLOBAL DL_GLOBAL
11236 # else
11237 # define LT_DLGLOBAL 0
11238 # endif
11239 #endif
11241 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11242 find out it does not work in some platform. */
11243 #ifndef LT_DLLAZY_OR_NOW
11244 # ifdef RTLD_LAZY
11245 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11246 # else
11247 # ifdef DL_LAZY
11248 # define LT_DLLAZY_OR_NOW DL_LAZY
11249 # else
11250 # ifdef RTLD_NOW
11251 # define LT_DLLAZY_OR_NOW RTLD_NOW
11252 # else
11253 # ifdef DL_NOW
11254 # define LT_DLLAZY_OR_NOW DL_NOW
11255 # else
11256 # define LT_DLLAZY_OR_NOW 0
11257 # endif
11258 # endif
11259 # endif
11260 # endif
11261 #endif
11263 /* When -fvisbility=hidden is used, assume the code has been annotated
11264 correspondingly for the symbols needed. */
11265 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11266 void fnord () __attribute__((visibility("default")));
11267 #endif
11269 void fnord () { int i=42; }
11270 int main ()
11272 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11273 int status = $lt_dlunknown;
11275 if (self)
11277 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11278 else
11280 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11281 else puts (dlerror ());
11283 /* dlclose (self); */
11285 else
11286 puts (dlerror ());
11288 return status;
11290 _LT_EOF
11291 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11292 (eval $ac_link) 2>&5
11293 ac_status=$?
11294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11295 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11296 (./conftest; exit; ) >&5 2>/dev/null
11297 lt_status=$?
11298 case x$lt_status in
11299 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11300 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11301 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11302 esac
11303 else :
11304 # compilation failed
11305 lt_cv_dlopen_self_static=no
11308 rm -fr conftest*
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11313 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11316 CPPFLAGS="$save_CPPFLAGS"
11317 LDFLAGS="$save_LDFLAGS"
11318 LIBS="$save_LIBS"
11320 esac
11322 case $lt_cv_dlopen_self in
11323 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11324 *) enable_dlopen_self=unknown ;;
11325 esac
11327 case $lt_cv_dlopen_self_static in
11328 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11329 *) enable_dlopen_self_static=unknown ;;
11330 esac
11349 striplib=
11350 old_striplib=
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11352 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11353 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11354 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11355 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11357 $as_echo "yes" >&6; }
11358 else
11359 # FIXME - insert some real tests, host_os isn't really good enough
11360 case $host_os in
11361 darwin*)
11362 if test -n "$STRIP" ; then
11363 striplib="$STRIP -x"
11364 old_striplib="$STRIP -S"
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11366 $as_echo "yes" >&6; }
11367 else
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11369 $as_echo "no" >&6; }
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11374 $as_echo "no" >&6; }
11376 esac
11390 # Report which library types will actually be built
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11392 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11394 $as_echo "$can_build_shared" >&6; }
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11397 $as_echo_n "checking whether to build shared libraries... " >&6; }
11398 test "$can_build_shared" = "no" && enable_shared=no
11400 # On AIX, shared libraries and static libraries use the same namespace, and
11401 # are all built from PIC.
11402 case $host_os in
11403 aix3*)
11404 test "$enable_shared" = yes && enable_static=no
11405 if test -n "$RANLIB"; then
11406 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11407 postinstall_cmds='$RANLIB $lib'
11411 aix[4-9]*)
11412 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11413 test "$enable_shared" = yes && enable_static=no
11416 esac
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11418 $as_echo "$enable_shared" >&6; }
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11421 $as_echo_n "checking whether to build static libraries... " >&6; }
11422 # Make sure either enable_shared or enable_static is yes.
11423 test "$enable_shared" = yes || enable_static=yes
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11425 $as_echo "$enable_static" >&6; }
11431 ac_ext=c
11432 ac_cpp='$CPP $CPPFLAGS'
11433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11437 CC="$lt_save_CC"
11451 # Source file extension for Go test sources.
11452 ac_ext=go
11454 # Object file extension for compiled Go test sources.
11455 objext=o
11456 objext_GO=$objext
11458 # Code to be used in simple compile tests
11459 lt_simple_compile_test_code="package main; func main() { }"
11461 # Code to be used in simple link tests
11462 lt_simple_link_test_code='package main; func main() { }'
11464 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11471 # If no C compiler was specified, use CC.
11472 LTCC=${LTCC-"$CC"}
11474 # If no C compiler flags were specified, use CFLAGS.
11475 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11477 # Allow CC to be a program name with arguments.
11478 compiler=$CC
11481 # save warnings/boilerplate of simple test code
11482 ac_outfile=conftest.$ac_objext
11483 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11484 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11485 _lt_compiler_boilerplate=`cat conftest.err`
11486 $RM conftest*
11488 ac_outfile=conftest.$ac_objext
11489 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11490 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11491 _lt_linker_boilerplate=`cat conftest.err`
11492 $RM -r conftest*
11495 # Allow CC to be a program name with arguments.
11496 lt_save_CC="$CC"
11497 lt_save_GCC="$GCC"
11498 GCC=yes
11499 CC=${GOC-"gccgo"}
11500 compiler=$CC
11501 compiler_GO=$CC
11502 LD_GO="$LD"
11503 for cc_temp in $compiler""; do
11504 case $cc_temp in
11505 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11506 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11507 \-*) ;;
11508 *) break;;
11509 esac
11510 done
11511 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11514 # Go did not exist at the time GCC didn't implicitly link libc in.
11515 archive_cmds_need_lc_GO=no
11517 old_archive_cmds_GO=$old_archive_cmds
11519 ## CAVEAT EMPTOR:
11520 ## There is no encapsulation within the following macros, do not change
11521 ## the running order or otherwise move them around unless you know exactly
11522 ## what you are doing...
11523 if test -n "$compiler"; then
11525 lt_prog_compiler_no_builtin_flag_GO=
11527 if test "$GCC" = yes; then
11528 case $cc_basename in
11529 nvcc*)
11530 lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11532 lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11533 esac
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11536 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11537 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11538 $as_echo_n "(cached) " >&6
11539 else
11540 lt_cv_prog_compiler_rtti_exceptions=no
11541 ac_outfile=conftest.$ac_objext
11542 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11543 lt_compiler_flag="-fno-rtti -fno-exceptions"
11544 # Insert the option either (1) after the last *FLAGS variable, or
11545 # (2) before a word containing "conftest.", or (3) at the end.
11546 # Note that $ac_compile itself does not contain backslashes and begins
11547 # with a dollar sign (not a hyphen), so the echo should work correctly.
11548 # The option is referenced via a variable to avoid confusing sed.
11549 lt_compile=`echo "$ac_compile" | $SED \
11550 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11551 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11552 -e 's:$: $lt_compiler_flag:'`
11553 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11554 (eval "$lt_compile" 2>conftest.err)
11555 ac_status=$?
11556 cat conftest.err >&5
11557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558 if (exit $ac_status) && test -s "$ac_outfile"; then
11559 # The compiler can only warn and ignore the option if not recognized
11560 # So say no if there are warnings other than the usual output.
11561 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11562 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11563 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11564 lt_cv_prog_compiler_rtti_exceptions=yes
11567 $RM conftest*
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11571 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11573 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11574 lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11575 else
11583 lt_prog_compiler_wl_GO=
11584 lt_prog_compiler_pic_GO=
11585 lt_prog_compiler_static_GO=
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11588 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11590 if test "$GCC" = yes; then
11591 lt_prog_compiler_wl_GO='-Wl,'
11592 lt_prog_compiler_static_GO='-static'
11594 case $host_os in
11595 aix*)
11596 # All AIX code is PIC.
11597 if test "$host_cpu" = ia64; then
11598 # AIX 5 now supports IA64 processor
11599 lt_prog_compiler_static_GO='-Bstatic'
11603 amigaos*)
11604 case $host_cpu in
11605 powerpc)
11606 # see comment about AmigaOS4 .so support
11607 lt_prog_compiler_pic_GO='-fPIC'
11609 m68k)
11610 # FIXME: we need at least 68020 code to build shared libraries, but
11611 # adding the `-m68020' flag to GCC prevents building anything better,
11612 # like `-m68040'.
11613 lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11615 esac
11618 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11619 # PIC is the default for these OSes.
11622 mingw* | cygwin* | pw32* | os2* | cegcc*)
11623 # This hack is so that the source file can tell whether it is being
11624 # built for inclusion in a dll (and should export symbols for example).
11625 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11626 # (--disable-auto-import) libraries
11627 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11630 darwin* | rhapsody*)
11631 # PIC is the default on this platform
11632 # Common symbols not allowed in MH_DYLIB files
11633 lt_prog_compiler_pic_GO='-fno-common'
11636 haiku*)
11637 # PIC is the default for Haiku.
11638 # The "-static" flag exists, but is broken.
11639 lt_prog_compiler_static_GO=
11642 hpux*)
11643 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11644 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11645 # sets the default TLS model and affects inlining.
11646 case $host_cpu in
11647 hppa*64*)
11648 # +Z the default
11651 lt_prog_compiler_pic_GO='-fPIC'
11653 esac
11656 interix[3-9]*)
11657 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11658 # Instead, we relocate shared libraries at runtime.
11661 msdosdjgpp*)
11662 # Just because we use GCC doesn't mean we suddenly get shared libraries
11663 # on systems that don't support them.
11664 lt_prog_compiler_can_build_shared_GO=no
11665 enable_shared=no
11668 *nto* | *qnx*)
11669 # QNX uses GNU C++, but need to define -shared option too, otherwise
11670 # it will coredump.
11671 lt_prog_compiler_pic_GO='-fPIC -shared'
11674 sysv4*MP*)
11675 if test -d /usr/nec; then
11676 lt_prog_compiler_pic_GO=-Kconform_pic
11681 lt_prog_compiler_pic_GO='-fPIC'
11683 esac
11685 case $cc_basename in
11686 nvcc*) # Cuda Compiler Driver 2.2
11687 lt_prog_compiler_wl_GO='-Xlinker '
11688 lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11690 esac
11691 else
11692 # PORTME Check for flag to pass linker flags through the system compiler.
11693 case $host_os in
11694 aix*)
11695 lt_prog_compiler_wl_GO='-Wl,'
11696 if test "$host_cpu" = ia64; then
11697 # AIX 5 now supports IA64 processor
11698 lt_prog_compiler_static_GO='-Bstatic'
11699 else
11700 lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11704 mingw* | cygwin* | pw32* | os2* | cegcc*)
11705 # This hack is so that the source file can tell whether it is being
11706 # built for inclusion in a dll (and should export symbols for example).
11707 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11710 hpux9* | hpux10* | hpux11*)
11711 lt_prog_compiler_wl_GO='-Wl,'
11712 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11713 # not for PA HP-UX.
11714 case $host_cpu in
11715 hppa*64*|ia64*)
11716 # +Z the default
11719 lt_prog_compiler_pic_GO='+Z'
11721 esac
11722 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11723 lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11726 irix5* | irix6* | nonstopux*)
11727 lt_prog_compiler_wl_GO='-Wl,'
11728 # PIC (with -KPIC) is the default.
11729 lt_prog_compiler_static_GO='-non_shared'
11732 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11733 case $cc_basename in
11734 # old Intel for x86_64 which still supported -KPIC.
11735 ecc*)
11736 lt_prog_compiler_wl_GO='-Wl,'
11737 lt_prog_compiler_pic_GO='-KPIC'
11738 lt_prog_compiler_static_GO='-static'
11740 # icc used to be incompatible with GCC.
11741 # ICC 10 doesn't accept -KPIC any more.
11742 icc* | ifort*)
11743 lt_prog_compiler_wl_GO='-Wl,'
11744 lt_prog_compiler_pic_GO='-fPIC'
11745 lt_prog_compiler_static_GO='-static'
11747 # Lahey Fortran 8.1.
11748 lf95*)
11749 lt_prog_compiler_wl_GO='-Wl,'
11750 lt_prog_compiler_pic_GO='--shared'
11751 lt_prog_compiler_static_GO='--static'
11753 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11754 # Portland Group compilers (*not* the Pentium gcc compiler,
11755 # which looks to be a dead project)
11756 lt_prog_compiler_wl_GO='-Wl,'
11757 lt_prog_compiler_pic_GO='-fpic'
11758 lt_prog_compiler_static_GO='-Bstatic'
11760 ccc*)
11761 lt_prog_compiler_wl_GO='-Wl,'
11762 # All Alpha code is PIC.
11763 lt_prog_compiler_static_GO='-non_shared'
11765 xl* | bgxl* | bgf* | mpixl*)
11766 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11767 lt_prog_compiler_wl_GO='-Wl,'
11768 lt_prog_compiler_pic_GO='-qpic'
11769 lt_prog_compiler_static_GO='-qstaticlink'
11772 case `$CC -V 2>&1 | sed 5q` in
11773 *Sun\ F* | *Sun*Fortran*)
11774 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11775 lt_prog_compiler_pic_GO='-KPIC'
11776 lt_prog_compiler_static_GO='-Bstatic'
11777 lt_prog_compiler_wl_GO=''
11779 *Sun\ C*)
11780 # Sun C 5.9
11781 lt_prog_compiler_pic_GO='-KPIC'
11782 lt_prog_compiler_static_GO='-Bstatic'
11783 lt_prog_compiler_wl_GO='-Wl,'
11785 esac
11787 esac
11790 newsos6)
11791 lt_prog_compiler_pic_GO='-KPIC'
11792 lt_prog_compiler_static_GO='-Bstatic'
11795 *nto* | *qnx*)
11796 # QNX uses GNU C++, but need to define -shared option too, otherwise
11797 # it will coredump.
11798 lt_prog_compiler_pic_GO='-fPIC -shared'
11801 osf3* | osf4* | osf5*)
11802 lt_prog_compiler_wl_GO='-Wl,'
11803 # All OSF/1 code is PIC.
11804 lt_prog_compiler_static_GO='-non_shared'
11807 rdos*)
11808 lt_prog_compiler_static_GO='-non_shared'
11811 solaris*)
11812 lt_prog_compiler_pic_GO='-KPIC'
11813 lt_prog_compiler_static_GO='-Bstatic'
11814 case $cc_basename in
11815 f77* | f90* | f95*)
11816 lt_prog_compiler_wl_GO='-Qoption ld ';;
11818 lt_prog_compiler_wl_GO='-Wl,';;
11819 esac
11822 sunos4*)
11823 lt_prog_compiler_wl_GO='-Qoption ld '
11824 lt_prog_compiler_pic_GO='-PIC'
11825 lt_prog_compiler_static_GO='-Bstatic'
11828 sysv4 | sysv4.2uw2* | sysv4.3*)
11829 lt_prog_compiler_wl_GO='-Wl,'
11830 lt_prog_compiler_pic_GO='-KPIC'
11831 lt_prog_compiler_static_GO='-Bstatic'
11834 sysv4*MP*)
11835 if test -d /usr/nec ;then
11836 lt_prog_compiler_pic_GO='-Kconform_pic'
11837 lt_prog_compiler_static_GO='-Bstatic'
11841 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11842 lt_prog_compiler_wl_GO='-Wl,'
11843 lt_prog_compiler_pic_GO='-KPIC'
11844 lt_prog_compiler_static_GO='-Bstatic'
11847 unicos*)
11848 lt_prog_compiler_wl_GO='-Wl,'
11849 lt_prog_compiler_can_build_shared_GO=no
11852 uts4*)
11853 lt_prog_compiler_pic_GO='-pic'
11854 lt_prog_compiler_static_GO='-Bstatic'
11858 lt_prog_compiler_can_build_shared_GO=no
11860 esac
11863 case $host_os in
11864 # For platforms which do not support PIC, -DPIC is meaningless:
11865 *djgpp*)
11866 lt_prog_compiler_pic_GO=
11869 lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
11871 esac
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
11873 $as_echo "$lt_prog_compiler_pic_GO" >&6; }
11878 # Check to make sure the PIC flag actually works.
11880 if test -n "$lt_prog_compiler_pic_GO"; then
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
11882 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
11883 if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
11884 $as_echo_n "(cached) " >&6
11885 else
11886 lt_cv_prog_compiler_pic_works_GO=no
11887 ac_outfile=conftest.$ac_objext
11888 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11889 lt_compiler_flag="$lt_prog_compiler_pic_GO"
11890 # Insert the option either (1) after the last *FLAGS variable, or
11891 # (2) before a word containing "conftest.", or (3) at the end.
11892 # Note that $ac_compile itself does not contain backslashes and begins
11893 # with a dollar sign (not a hyphen), so the echo should work correctly.
11894 # The option is referenced via a variable to avoid confusing sed.
11895 lt_compile=`echo "$ac_compile" | $SED \
11896 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11897 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11898 -e 's:$: $lt_compiler_flag:'`
11899 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11900 (eval "$lt_compile" 2>conftest.err)
11901 ac_status=$?
11902 cat conftest.err >&5
11903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 if (exit $ac_status) && test -s "$ac_outfile"; then
11905 # The compiler can only warn and ignore the option if not recognized
11906 # So say no if there are warnings other than the usual output.
11907 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11908 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11909 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11910 lt_cv_prog_compiler_pic_works_GO=yes
11913 $RM conftest*
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
11917 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
11919 if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
11920 case $lt_prog_compiler_pic_GO in
11921 "" | " "*) ;;
11922 *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
11923 esac
11924 else
11925 lt_prog_compiler_pic_GO=
11926 lt_prog_compiler_can_build_shared_GO=no
11934 # Check to make sure the static flag actually works.
11936 wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11938 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11939 if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
11940 $as_echo_n "(cached) " >&6
11941 else
11942 lt_cv_prog_compiler_static_works_GO=no
11943 save_LDFLAGS="$LDFLAGS"
11944 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11945 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11946 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11947 # The linker can only warn and ignore the option if not recognized
11948 # So say no if there are warnings
11949 if test -s conftest.err; then
11950 # Append any errors to the config.log.
11951 cat conftest.err 1>&5
11952 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11953 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11954 if diff conftest.exp conftest.er2 >/dev/null; then
11955 lt_cv_prog_compiler_static_works_GO=yes
11957 else
11958 lt_cv_prog_compiler_static_works_GO=yes
11961 $RM -r conftest*
11962 LDFLAGS="$save_LDFLAGS"
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
11966 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
11968 if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
11970 else
11971 lt_prog_compiler_static_GO=
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11978 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11979 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11980 $as_echo_n "(cached) " >&6
11981 else
11982 lt_cv_prog_compiler_c_o_GO=no
11983 $RM -r conftest 2>/dev/null
11984 mkdir conftest
11985 cd conftest
11986 mkdir out
11987 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11989 lt_compiler_flag="-o out/conftest2.$ac_objext"
11990 # Insert the option either (1) after the last *FLAGS variable, or
11991 # (2) before a word containing "conftest.", or (3) at the end.
11992 # Note that $ac_compile itself does not contain backslashes and begins
11993 # with a dollar sign (not a hyphen), so the echo should work correctly.
11994 lt_compile=`echo "$ac_compile" | $SED \
11995 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11996 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11997 -e 's:$: $lt_compiler_flag:'`
11998 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11999 (eval "$lt_compile" 2>out/conftest.err)
12000 ac_status=$?
12001 cat out/conftest.err >&5
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12004 then
12005 # The compiler can only warn and ignore the option if not recognized
12006 # So say no if there are warnings
12007 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12008 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12009 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12010 lt_cv_prog_compiler_c_o_GO=yes
12013 chmod u+w . 2>&5
12014 $RM conftest*
12015 # SGI C++ compiler will create directory out/ii_files/ for
12016 # template instantiation
12017 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12018 $RM out/* && rmdir out
12019 cd ..
12020 $RM -r conftest
12021 $RM conftest*
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12025 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12030 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12031 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
12032 $as_echo_n "(cached) " >&6
12033 else
12034 lt_cv_prog_compiler_c_o_GO=no
12035 $RM -r conftest 2>/dev/null
12036 mkdir conftest
12037 cd conftest
12038 mkdir out
12039 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12041 lt_compiler_flag="-o out/conftest2.$ac_objext"
12042 # Insert the option either (1) after the last *FLAGS variable, or
12043 # (2) before a word containing "conftest.", or (3) at the end.
12044 # Note that $ac_compile itself does not contain backslashes and begins
12045 # with a dollar sign (not a hyphen), so the echo should work correctly.
12046 lt_compile=`echo "$ac_compile" | $SED \
12047 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12048 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12049 -e 's:$: $lt_compiler_flag:'`
12050 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12051 (eval "$lt_compile" 2>out/conftest.err)
12052 ac_status=$?
12053 cat out/conftest.err >&5
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12056 then
12057 # The compiler can only warn and ignore the option if not recognized
12058 # So say no if there are warnings
12059 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12060 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12061 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12062 lt_cv_prog_compiler_c_o_GO=yes
12065 chmod u+w . 2>&5
12066 $RM conftest*
12067 # SGI C++ compiler will create directory out/ii_files/ for
12068 # template instantiation
12069 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12070 $RM out/* && rmdir out
12071 cd ..
12072 $RM -r conftest
12073 $RM conftest*
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12077 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12082 hard_links="nottested"
12083 if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
12084 # do not overwrite the value of need_locks provided by the user
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12086 $as_echo_n "checking if we can lock with hard links... " >&6; }
12087 hard_links=yes
12088 $RM conftest*
12089 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12090 touch conftest.a
12091 ln conftest.a conftest.b 2>&5 || hard_links=no
12092 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12094 $as_echo "$hard_links" >&6; }
12095 if test "$hard_links" = no; then
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12097 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12098 need_locks=warn
12100 else
12101 need_locks=no
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12107 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12109 runpath_var=
12110 allow_undefined_flag_GO=
12111 always_export_symbols_GO=no
12112 archive_cmds_GO=
12113 archive_expsym_cmds_GO=
12114 compiler_needs_object_GO=no
12115 enable_shared_with_static_runtimes_GO=no
12116 export_dynamic_flag_spec_GO=
12117 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12118 hardcode_automatic_GO=no
12119 hardcode_direct_GO=no
12120 hardcode_direct_absolute_GO=no
12121 hardcode_libdir_flag_spec_GO=
12122 hardcode_libdir_flag_spec_ld_GO=
12123 hardcode_libdir_separator_GO=
12124 hardcode_minus_L_GO=no
12125 hardcode_shlibpath_var_GO=unsupported
12126 inherit_rpath_GO=no
12127 link_all_deplibs_GO=unknown
12128 module_cmds_GO=
12129 module_expsym_cmds_GO=
12130 old_archive_from_new_cmds_GO=
12131 old_archive_from_expsyms_cmds_GO=
12132 thread_safe_flag_spec_GO=
12133 whole_archive_flag_spec_GO=
12134 # include_expsyms should be a list of space-separated symbols to be *always*
12135 # included in the symbol list
12136 include_expsyms_GO=
12137 # exclude_expsyms can be an extended regexp of symbols to exclude
12138 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12139 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12140 # as well as any symbol that contains `d'.
12141 exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12142 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12143 # platforms (ab)use it in PIC code, but their linkers get confused if
12144 # the symbol is explicitly referenced. Since portable code cannot
12145 # rely on this symbol name, it's probably fine to never include it in
12146 # preloaded symbol tables.
12147 # Exclude shared library initialization/finalization symbols.
12148 extract_expsyms_cmds=
12150 case $host_os in
12151 cygwin* | mingw* | pw32* | cegcc*)
12152 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12153 # When not using gcc, we currently assume that we are using
12154 # Microsoft Visual C++.
12155 if test "$GCC" != yes; then
12156 with_gnu_ld=no
12159 interix*)
12160 # we just hope/assume this is gcc and not c89 (= MSVC++)
12161 with_gnu_ld=yes
12163 openbsd*)
12164 with_gnu_ld=no
12166 esac
12168 ld_shlibs_GO=yes
12170 # On some targets, GNU ld is compatible enough with the native linker
12171 # that we're better off using the native interface for both.
12172 lt_use_gnu_ld_interface=no
12173 if test "$with_gnu_ld" = yes; then
12174 case $host_os in
12175 aix*)
12176 # The AIX port of GNU ld has always aspired to compatibility
12177 # with the native linker. However, as the warning in the GNU ld
12178 # block says, versions before 2.19.5* couldn't really create working
12179 # shared libraries, regardless of the interface used.
12180 case `$LD -v 2>&1` in
12181 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12182 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12183 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12185 lt_use_gnu_ld_interface=yes
12187 esac
12190 lt_use_gnu_ld_interface=yes
12192 esac
12195 if test "$lt_use_gnu_ld_interface" = yes; then
12196 # If archive_cmds runs LD, not CC, wlarc should be empty
12197 wlarc='${wl}'
12199 # Set some defaults for GNU ld with shared library support. These
12200 # are reset later if shared libraries are not supported. Putting them
12201 # here allows them to be overridden if necessary.
12202 runpath_var=LD_RUN_PATH
12203 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12204 export_dynamic_flag_spec_GO='${wl}--export-dynamic'
12205 # ancient GNU ld didn't support --whole-archive et. al.
12206 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12207 whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12208 else
12209 whole_archive_flag_spec_GO=
12211 supports_anon_versioning=no
12212 case `$LD -v 2>&1` in
12213 *GNU\ gold*) supports_anon_versioning=yes ;;
12214 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12215 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12216 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12217 *\ 2.11.*) ;; # other 2.11 versions
12218 *) supports_anon_versioning=yes ;;
12219 esac
12221 # See if GNU ld supports shared libraries.
12222 case $host_os in
12223 aix[3-9]*)
12224 # On AIX/PPC, the GNU linker is very broken
12225 if test "$host_cpu" != ia64; then
12226 ld_shlibs_GO=no
12227 cat <<_LT_EOF 1>&2
12229 *** Warning: the GNU linker, at least up to release 2.19, is reported
12230 *** to be unable to reliably create shared libraries on AIX.
12231 *** Therefore, libtool is disabling shared libraries support. If you
12232 *** really care for shared libraries, you may want to install binutils
12233 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12234 *** You will then need to restart the configuration process.
12236 _LT_EOF
12240 amigaos*)
12241 case $host_cpu in
12242 powerpc)
12243 # see comment about AmigaOS4 .so support
12244 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12245 archive_expsym_cmds_GO=''
12247 m68k)
12248 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)'
12249 hardcode_libdir_flag_spec_GO='-L$libdir'
12250 hardcode_minus_L_GO=yes
12252 esac
12255 beos*)
12256 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12257 allow_undefined_flag_GO=unsupported
12258 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12259 # support --undefined. This deserves some investigation. FIXME
12260 archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12261 else
12262 ld_shlibs_GO=no
12266 cygwin* | mingw* | pw32* | cegcc*)
12267 # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12268 # as there is no search path for DLLs.
12269 hardcode_libdir_flag_spec_GO='-L$libdir'
12270 export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12271 allow_undefined_flag_GO=unsupported
12272 always_export_symbols_GO=no
12273 enable_shared_with_static_runtimes_GO=yes
12274 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12276 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12277 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12278 # If the export-symbols file already is a .def file (1st line
12279 # is EXPORTS), use it as is; otherwise, prepend...
12280 archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12281 cp $export_symbols $output_objdir/$soname.def;
12282 else
12283 echo EXPORTS > $output_objdir/$soname.def;
12284 cat $export_symbols >> $output_objdir/$soname.def;
12286 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12287 else
12288 ld_shlibs_GO=no
12292 haiku*)
12293 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12294 link_all_deplibs_GO=yes
12297 interix[3-9]*)
12298 hardcode_direct_GO=no
12299 hardcode_shlibpath_var_GO=no
12300 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12301 export_dynamic_flag_spec_GO='${wl}-E'
12302 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12303 # Instead, shared libraries are loaded at an image base (0x10000000 by
12304 # default) and relocated if they conflict, which is a slow very memory
12305 # consuming and fragmenting process. To avoid this, we pick a random,
12306 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12307 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12308 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'
12309 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'
12312 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12313 tmp_diet=no
12314 if test "$host_os" = linux-dietlibc; then
12315 case $cc_basename in
12316 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12317 esac
12319 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12320 && test "$tmp_diet" = no
12321 then
12322 tmp_addflag=
12323 tmp_sharedflag='-shared'
12324 case $cc_basename,$host_cpu in
12325 pgcc*) # Portland Group C compiler
12326 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'
12327 tmp_addflag=' $pic_flag'
12329 pgf77* | pgf90* | pgf95* | pgfortran*)
12330 # Portland Group f77 and f90 compilers
12331 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'
12332 tmp_addflag=' $pic_flag -Mnomain' ;;
12333 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12334 tmp_addflag=' -i_dynamic' ;;
12335 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12336 tmp_addflag=' -i_dynamic -nofor_main' ;;
12337 ifc* | ifort*) # Intel Fortran compiler
12338 tmp_addflag=' -nofor_main' ;;
12339 lf95*) # Lahey Fortran 8.1
12340 whole_archive_flag_spec_GO=
12341 tmp_sharedflag='--shared' ;;
12342 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12343 tmp_sharedflag='-qmkshrobj'
12344 tmp_addflag= ;;
12345 nvcc*) # Cuda Compiler Driver 2.2
12346 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'
12347 compiler_needs_object_GO=yes
12349 esac
12350 case `$CC -V 2>&1 | sed 5q` in
12351 *Sun\ C*) # Sun C 5.9
12352 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'
12353 compiler_needs_object_GO=yes
12354 tmp_sharedflag='-G' ;;
12355 *Sun\ F*) # Sun Fortran 8.3
12356 tmp_sharedflag='-G' ;;
12357 esac
12358 archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12360 if test "x$supports_anon_versioning" = xyes; then
12361 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12362 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12363 echo "local: *; };" >> $output_objdir/$libname.ver~
12364 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12367 case $cc_basename in
12368 xlf* | bgf* | bgxlf* | mpixlf*)
12369 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12370 whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12371 hardcode_libdir_flag_spec_GO=
12372 hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12373 archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12374 if test "x$supports_anon_versioning" = xyes; then
12375 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12376 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12377 echo "local: *; };" >> $output_objdir/$libname.ver~
12378 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12381 esac
12382 else
12383 ld_shlibs_GO=no
12387 netbsd*)
12388 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12389 archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12390 wlarc=
12391 else
12392 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12393 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12397 solaris*)
12398 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12399 ld_shlibs_GO=no
12400 cat <<_LT_EOF 1>&2
12402 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12403 *** create shared libraries on Solaris systems. Therefore, libtool
12404 *** is disabling shared libraries support. We urge you to upgrade GNU
12405 *** binutils to release 2.9.1 or newer. Another option is to modify
12406 *** your PATH or compiler configuration so that the native linker is
12407 *** used, and then restart.
12409 _LT_EOF
12410 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12411 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12412 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12413 else
12414 ld_shlibs_GO=no
12418 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12419 case `$LD -v 2>&1` in
12420 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12421 ld_shlibs_GO=no
12422 cat <<_LT_EOF 1>&2
12424 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12425 *** reliably create shared libraries on SCO systems. Therefore, libtool
12426 *** is disabling shared libraries support. We urge you to upgrade GNU
12427 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12428 *** your PATH or compiler configuration so that the native linker is
12429 *** used, and then restart.
12431 _LT_EOF
12434 # For security reasons, it is highly recommended that you always
12435 # use absolute paths for naming shared libraries, and exclude the
12436 # DT_RUNPATH tag from executables and libraries. But doing so
12437 # requires that you compile everything twice, which is a pain.
12438 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12439 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12440 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12441 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12442 else
12443 ld_shlibs_GO=no
12446 esac
12449 sunos4*)
12450 archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12451 wlarc=
12452 hardcode_direct_GO=yes
12453 hardcode_shlibpath_var_GO=no
12457 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12458 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12459 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12460 else
12461 ld_shlibs_GO=no
12464 esac
12466 if test "$ld_shlibs_GO" = no; then
12467 runpath_var=
12468 hardcode_libdir_flag_spec_GO=
12469 export_dynamic_flag_spec_GO=
12470 whole_archive_flag_spec_GO=
12472 else
12473 # PORTME fill in a description of your system's linker (not GNU ld)
12474 case $host_os in
12475 aix3*)
12476 allow_undefined_flag_GO=unsupported
12477 always_export_symbols_GO=yes
12478 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'
12479 # Note: this linker hardcodes the directories in LIBPATH if there
12480 # are no directories specified by -L.
12481 hardcode_minus_L_GO=yes
12482 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12483 # Neither direct hardcoding nor static linking is supported with a
12484 # broken collect2.
12485 hardcode_direct_GO=unsupported
12489 aix[4-9]*)
12490 if test "$host_cpu" = ia64; then
12491 # On IA64, the linker does run time linking by default, so we don't
12492 # have to do anything special.
12493 aix_use_runtimelinking=no
12494 exp_sym_flag='-Bexport'
12495 no_entry_flag=""
12496 else
12497 # If we're using GNU nm, then we don't want the "-C" option.
12498 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12499 # Also, AIX nm treats weak defined symbols like other global
12500 # defined symbols, whereas GNU nm marks them as "W".
12501 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12502 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'
12503 else
12504 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'
12506 aix_use_runtimelinking=no
12508 # Test if we are trying to use run time linking or normal
12509 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12510 # need to do runtime linking.
12511 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12512 for ld_flag in $LDFLAGS; do
12513 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12514 aix_use_runtimelinking=yes
12515 break
12517 done
12519 esac
12521 exp_sym_flag='-bexport'
12522 no_entry_flag='-bnoentry'
12525 # When large executables or shared objects are built, AIX ld can
12526 # have problems creating the table of contents. If linking a library
12527 # or program results in "error TOC overflow" add -mminimal-toc to
12528 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12529 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12531 archive_cmds_GO=''
12532 hardcode_direct_GO=yes
12533 hardcode_direct_absolute_GO=yes
12534 hardcode_libdir_separator_GO=':'
12535 link_all_deplibs_GO=yes
12536 file_list_spec_GO='${wl}-f,'
12538 if test "$GCC" = yes; then
12539 case $host_os in aix4.[012]|aix4.[012].*)
12540 # We only want to do this on AIX 4.2 and lower, the check
12541 # below for broken collect2 doesn't work under 4.3+
12542 collect2name=`${CC} -print-prog-name=collect2`
12543 if test -f "$collect2name" &&
12544 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12545 then
12546 # We have reworked collect2
12548 else
12549 # We have old collect2
12550 hardcode_direct_GO=unsupported
12551 # It fails to find uninstalled libraries when the uninstalled
12552 # path is not listed in the libpath. Setting hardcode_minus_L
12553 # to unsupported forces relinking
12554 hardcode_minus_L_GO=yes
12555 hardcode_libdir_flag_spec_GO='-L$libdir'
12556 hardcode_libdir_separator_GO=
12559 esac
12560 shared_flag='-shared'
12561 if test "$aix_use_runtimelinking" = yes; then
12562 shared_flag="$shared_flag "'${wl}-G'
12564 else
12565 # not using gcc
12566 if test "$host_cpu" = ia64; then
12567 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12568 # chokes on -Wl,-G. The following line is correct:
12569 shared_flag='-G'
12570 else
12571 if test "$aix_use_runtimelinking" = yes; then
12572 shared_flag='${wl}-G'
12573 else
12574 shared_flag='${wl}-bM:SRE'
12579 export_dynamic_flag_spec_GO='${wl}-bexpall'
12580 # It seems that -bexpall does not export symbols beginning with
12581 # underscore (_), so it is better to generate a list of symbols to export.
12582 always_export_symbols_GO=yes
12583 if test "$aix_use_runtimelinking" = yes; then
12584 # Warning - without using the other runtime loading flags (-brtl),
12585 # -berok will link without error, but may produce a broken library.
12586 allow_undefined_flag_GO='-berok'
12587 # Determine the default libpath from the value encoded in an
12588 # empty executable.
12589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12590 /* end confdefs.h. */
12593 main ()
12597 return 0;
12599 _ACEOF
12600 if ac_fn_c_try_link "$LINENO"; then :
12602 lt_aix_libpath_sed='
12603 /Import File Strings/,/^$/ {
12604 /^0/ {
12605 s/^0 *\(.*\)$/\1/
12609 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12610 # Check for a 64-bit object if we didn't find anything.
12611 if test -z "$aix_libpath"; then
12612 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12615 rm -f core conftest.err conftest.$ac_objext \
12616 conftest$ac_exeext conftest.$ac_ext
12617 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12619 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12620 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"
12621 else
12622 if test "$host_cpu" = ia64; then
12623 hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12624 allow_undefined_flag_GO="-z nodefs"
12625 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"
12626 else
12627 # Determine the default libpath from the value encoded in an
12628 # empty executable.
12629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12630 /* end confdefs.h. */
12633 main ()
12637 return 0;
12639 _ACEOF
12640 if ac_fn_c_try_link "$LINENO"; then :
12642 lt_aix_libpath_sed='
12643 /Import File Strings/,/^$/ {
12644 /^0/ {
12645 s/^0 *\(.*\)$/\1/
12649 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12650 # Check for a 64-bit object if we didn't find anything.
12651 if test -z "$aix_libpath"; then
12652 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12655 rm -f core conftest.err conftest.$ac_objext \
12656 conftest$ac_exeext conftest.$ac_ext
12657 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12659 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12660 # Warning - without using the other run time loading flags,
12661 # -berok will link without error, but may produce a broken library.
12662 no_undefined_flag_GO=' ${wl}-bernotok'
12663 allow_undefined_flag_GO=' ${wl}-berok'
12664 if test "$with_gnu_ld" = yes; then
12665 # We only use this code for GNU lds that support --whole-archive.
12666 whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12667 else
12668 # Exported symbols can be pulled into shared objects from archives
12669 whole_archive_flag_spec_GO='$convenience'
12671 archive_cmds_need_lc_GO=yes
12672 # This is similar to how AIX traditionally builds its shared libraries.
12673 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'
12678 amigaos*)
12679 case $host_cpu in
12680 powerpc)
12681 # see comment about AmigaOS4 .so support
12682 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12683 archive_expsym_cmds_GO=''
12685 m68k)
12686 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)'
12687 hardcode_libdir_flag_spec_GO='-L$libdir'
12688 hardcode_minus_L_GO=yes
12690 esac
12693 bsdi[45]*)
12694 export_dynamic_flag_spec_GO=-rdynamic
12697 cygwin* | mingw* | pw32* | cegcc*)
12698 # When not using gcc, we currently assume that we are using
12699 # Microsoft Visual C++.
12700 # hardcode_libdir_flag_spec is actually meaningless, as there is
12701 # no search path for DLLs.
12702 hardcode_libdir_flag_spec_GO=' '
12703 allow_undefined_flag_GO=unsupported
12704 # Tell ltmain to make .lib files, not .a files.
12705 libext=lib
12706 # Tell ltmain to make .dll files, not .so files.
12707 shrext_cmds=".dll"
12708 # FIXME: Setting linknames here is a bad hack.
12709 archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12710 # The linker will automatically build a .lib file if we build a DLL.
12711 old_archive_from_new_cmds_GO='true'
12712 # FIXME: Should let the user specify the lib program.
12713 old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12714 fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12715 enable_shared_with_static_runtimes_GO=yes
12718 darwin* | rhapsody*)
12721 archive_cmds_need_lc_GO=no
12722 hardcode_direct_GO=no
12723 hardcode_automatic_GO=yes
12724 hardcode_shlibpath_var_GO=unsupported
12725 if test "$lt_cv_ld_force_load" = "yes"; then
12726 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\"`'
12727 else
12728 whole_archive_flag_spec_GO=''
12730 link_all_deplibs_GO=yes
12731 allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12732 case $cc_basename in
12733 ifort*) _lt_dar_can_shared=yes ;;
12734 *) _lt_dar_can_shared=$GCC ;;
12735 esac
12736 if test "$_lt_dar_can_shared" = "yes"; then
12737 output_verbose_link_cmd=func_echo_all
12738 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}"
12739 module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12740 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}"
12741 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}"
12743 else
12744 ld_shlibs_GO=no
12749 dgux*)
12750 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12751 hardcode_libdir_flag_spec_GO='-L$libdir'
12752 hardcode_shlibpath_var_GO=no
12755 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12756 # support. Future versions do this automatically, but an explicit c++rt0.o
12757 # does not break anything, and helps significantly (at the cost of a little
12758 # extra space).
12759 freebsd2.2*)
12760 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12761 hardcode_libdir_flag_spec_GO='-R$libdir'
12762 hardcode_direct_GO=yes
12763 hardcode_shlibpath_var_GO=no
12766 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12767 freebsd2*)
12768 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12769 hardcode_direct_GO=yes
12770 hardcode_minus_L_GO=yes
12771 hardcode_shlibpath_var_GO=no
12774 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12775 freebsd* | dragonfly*)
12776 archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12777 hardcode_libdir_flag_spec_GO='-R$libdir'
12778 hardcode_direct_GO=yes
12779 hardcode_shlibpath_var_GO=no
12782 hpux9*)
12783 if test "$GCC" = yes; then
12784 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'
12785 else
12786 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'
12788 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12789 hardcode_libdir_separator_GO=:
12790 hardcode_direct_GO=yes
12792 # hardcode_minus_L: Not really in the search PATH,
12793 # but as the default location of the library.
12794 hardcode_minus_L_GO=yes
12795 export_dynamic_flag_spec_GO='${wl}-E'
12798 hpux10*)
12799 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12800 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12801 else
12802 archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12804 if test "$with_gnu_ld" = no; then
12805 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12806 hardcode_libdir_flag_spec_ld_GO='+b $libdir'
12807 hardcode_libdir_separator_GO=:
12808 hardcode_direct_GO=yes
12809 hardcode_direct_absolute_GO=yes
12810 export_dynamic_flag_spec_GO='${wl}-E'
12811 # hardcode_minus_L: Not really in the search PATH,
12812 # but as the default location of the library.
12813 hardcode_minus_L_GO=yes
12817 hpux11*)
12818 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12819 case $host_cpu in
12820 hppa*64*)
12821 archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12823 ia64*)
12824 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12827 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12829 esac
12830 else
12831 case $host_cpu in
12832 hppa*64*)
12833 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12835 ia64*)
12836 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12839 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12841 esac
12843 if test "$with_gnu_ld" = no; then
12844 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12845 hardcode_libdir_separator_GO=:
12847 case $host_cpu in
12848 hppa*64*|ia64*)
12849 hardcode_direct_GO=no
12850 hardcode_shlibpath_var_GO=no
12853 hardcode_direct_GO=yes
12854 hardcode_direct_absolute_GO=yes
12855 export_dynamic_flag_spec_GO='${wl}-E'
12857 # hardcode_minus_L: Not really in the search PATH,
12858 # but as the default location of the library.
12859 hardcode_minus_L_GO=yes
12861 esac
12865 irix5* | irix6* | nonstopux*)
12866 if test "$GCC" = yes; then
12867 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'
12868 # Try to use the -exported_symbol ld option, if it does not
12869 # work, assume that -exports_file does not work either and
12870 # implicitly export all symbols.
12871 save_LDFLAGS="$LDFLAGS"
12872 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12874 /* end confdefs.h. */
12875 int foo(void) {}
12876 _ACEOF
12877 if ac_fn_c_try_link "$LINENO"; then :
12878 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'
12881 rm -f core conftest.err conftest.$ac_objext \
12882 conftest$ac_exeext conftest.$ac_ext
12883 LDFLAGS="$save_LDFLAGS"
12884 else
12885 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'
12886 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'
12888 archive_cmds_need_lc_GO='no'
12889 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12890 hardcode_libdir_separator_GO=:
12891 inherit_rpath_GO=yes
12892 link_all_deplibs_GO=yes
12895 netbsd*)
12896 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12897 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12898 else
12899 archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12901 hardcode_libdir_flag_spec_GO='-R$libdir'
12902 hardcode_direct_GO=yes
12903 hardcode_shlibpath_var_GO=no
12906 newsos6)
12907 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12908 hardcode_direct_GO=yes
12909 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12910 hardcode_libdir_separator_GO=:
12911 hardcode_shlibpath_var_GO=no
12914 *nto* | *qnx*)
12917 openbsd*)
12918 if test -f /usr/libexec/ld.so; then
12919 hardcode_direct_GO=yes
12920 hardcode_shlibpath_var_GO=no
12921 hardcode_direct_absolute_GO=yes
12922 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12923 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12924 archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12925 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12926 export_dynamic_flag_spec_GO='${wl}-E'
12927 else
12928 case $host_os in
12929 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12930 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12931 hardcode_libdir_flag_spec_GO='-R$libdir'
12934 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12935 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12937 esac
12939 else
12940 ld_shlibs_GO=no
12944 os2*)
12945 hardcode_libdir_flag_spec_GO='-L$libdir'
12946 hardcode_minus_L_GO=yes
12947 allow_undefined_flag_GO=unsupported
12948 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'
12949 old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12952 osf3*)
12953 if test "$GCC" = yes; then
12954 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12955 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'
12956 else
12957 allow_undefined_flag_GO=' -expect_unresolved \*'
12958 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'
12960 archive_cmds_need_lc_GO='no'
12961 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12962 hardcode_libdir_separator_GO=:
12965 osf4* | osf5*) # as osf3* with the addition of -msym flag
12966 if test "$GCC" = yes; then
12967 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12968 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'
12969 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12970 else
12971 allow_undefined_flag_GO=' -expect_unresolved \*'
12972 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'
12973 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~
12974 $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'
12976 # Both c and cxx compiler support -rpath directly
12977 hardcode_libdir_flag_spec_GO='-rpath $libdir'
12979 archive_cmds_need_lc_GO='no'
12980 hardcode_libdir_separator_GO=:
12983 solaris*)
12984 no_undefined_flag_GO=' -z defs'
12985 if test "$GCC" = yes; then
12986 wlarc='${wl}'
12987 archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12988 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12989 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12990 else
12991 case `$CC -V 2>&1` in
12992 *"Compilers 5.0"*)
12993 wlarc=''
12994 archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12995 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12996 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12999 wlarc='${wl}'
13000 archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13001 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13002 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13004 esac
13006 hardcode_libdir_flag_spec_GO='-R$libdir'
13007 hardcode_shlibpath_var_GO=no
13008 case $host_os in
13009 solaris2.[0-5] | solaris2.[0-5].*) ;;
13011 # The compiler driver will combine and reorder linker options,
13012 # but understands `-z linker_flag'. GCC discards it without `$wl',
13013 # but is careful enough not to reorder.
13014 # Supported since Solaris 2.6 (maybe 2.5.1?)
13015 if test "$GCC" = yes; then
13016 whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13017 else
13018 whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
13021 esac
13022 link_all_deplibs_GO=yes
13025 sunos4*)
13026 if test "x$host_vendor" = xsequent; then
13027 # Use $CC to link under sequent, because it throws in some extra .o
13028 # files that make .init and .fini sections work.
13029 archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13030 else
13031 archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13033 hardcode_libdir_flag_spec_GO='-L$libdir'
13034 hardcode_direct_GO=yes
13035 hardcode_minus_L_GO=yes
13036 hardcode_shlibpath_var_GO=no
13039 sysv4)
13040 case $host_vendor in
13041 sni)
13042 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13043 hardcode_direct_GO=yes # is this really true???
13045 siemens)
13046 ## LD is ld it makes a PLAMLIB
13047 ## CC just makes a GrossModule.
13048 archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13049 reload_cmds_GO='$CC -r -o $output$reload_objs'
13050 hardcode_direct_GO=no
13052 motorola)
13053 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13054 hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
13056 esac
13057 runpath_var='LD_RUN_PATH'
13058 hardcode_shlibpath_var_GO=no
13061 sysv4.3*)
13062 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13063 hardcode_shlibpath_var_GO=no
13064 export_dynamic_flag_spec_GO='-Bexport'
13067 sysv4*MP*)
13068 if test -d /usr/nec; then
13069 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13070 hardcode_shlibpath_var_GO=no
13071 runpath_var=LD_RUN_PATH
13072 hardcode_runpath_var=yes
13073 ld_shlibs_GO=yes
13077 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13078 no_undefined_flag_GO='${wl}-z,text'
13079 archive_cmds_need_lc_GO=no
13080 hardcode_shlibpath_var_GO=no
13081 runpath_var='LD_RUN_PATH'
13083 if test "$GCC" = yes; then
13084 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13085 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13086 else
13087 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13088 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13092 sysv5* | sco3.2v5* | sco5v6*)
13093 # Note: We can NOT use -z defs as we might desire, because we do not
13094 # link with -lc, and that would cause any symbols used from libc to
13095 # always be unresolved, which means just about no library would
13096 # ever link correctly. If we're not using GNU ld we use -z text
13097 # though, which does catch some bad symbols but isn't as heavy-handed
13098 # as -z defs.
13099 no_undefined_flag_GO='${wl}-z,text'
13100 allow_undefined_flag_GO='${wl}-z,nodefs'
13101 archive_cmds_need_lc_GO=no
13102 hardcode_shlibpath_var_GO=no
13103 hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
13104 hardcode_libdir_separator_GO=':'
13105 link_all_deplibs_GO=yes
13106 export_dynamic_flag_spec_GO='${wl}-Bexport'
13107 runpath_var='LD_RUN_PATH'
13109 if test "$GCC" = yes; then
13110 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13111 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13112 else
13113 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13114 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13118 uts4*)
13119 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13120 hardcode_libdir_flag_spec_GO='-L$libdir'
13121 hardcode_shlibpath_var_GO=no
13125 ld_shlibs_GO=no
13127 esac
13129 if test x$host_vendor = xsni; then
13130 case $host in
13131 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13132 export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
13134 esac
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
13139 $as_echo "$ld_shlibs_GO" >&6; }
13140 test "$ld_shlibs_GO" = no && can_build_shared=no
13142 with_gnu_ld_GO=$with_gnu_ld
13150 # Do we need to explicitly link libc?
13152 case "x$archive_cmds_need_lc_GO" in
13153 x|xyes)
13154 # Assume -lc should be added
13155 archive_cmds_need_lc_GO=yes
13157 if test "$enable_shared" = yes && test "$GCC" = yes; then
13158 case $archive_cmds_GO in
13159 *'~'*)
13160 # FIXME: we may have to deal with multi-command sequences.
13162 '$CC '*)
13163 # Test whether the compiler implicitly links with -lc since on some
13164 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13165 # to ld, don't add -lc before -lgcc.
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13167 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13168 if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
13169 $as_echo_n "(cached) " >&6
13170 else
13171 $RM conftest*
13172 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13174 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13175 (eval $ac_compile) 2>&5
13176 ac_status=$?
13177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13178 test $ac_status = 0; } 2>conftest.err; then
13179 soname=conftest
13180 lib=conftest
13181 libobjs=conftest.$ac_objext
13182 deplibs=
13183 wl=$lt_prog_compiler_wl_GO
13184 pic_flag=$lt_prog_compiler_pic_GO
13185 compiler_flags=-v
13186 linker_flags=-v
13187 verstring=
13188 output_objdir=.
13189 libname=conftest
13190 lt_save_allow_undefined_flag=$allow_undefined_flag_GO
13191 allow_undefined_flag_GO=
13192 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13193 (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13194 ac_status=$?
13195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13196 test $ac_status = 0; }
13197 then
13198 lt_cv_archive_cmds_need_lc_GO=no
13199 else
13200 lt_cv_archive_cmds_need_lc_GO=yes
13202 allow_undefined_flag_GO=$lt_save_allow_undefined_flag
13203 else
13204 cat conftest.err 1>&5
13206 $RM conftest*
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13210 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13211 archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
13213 esac
13216 esac
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13282 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13283 hardcode_action_GO=
13284 if test -n "$hardcode_libdir_flag_spec_GO" ||
13285 test -n "$runpath_var_GO" ||
13286 test "X$hardcode_automatic_GO" = "Xyes" ; then
13288 # We can hardcode non-existent directories.
13289 if test "$hardcode_direct_GO" != no &&
13290 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13291 # have to relink, otherwise we might link with an installed library
13292 # when we should be linking with a yet-to-be-installed one
13293 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13294 test "$hardcode_minus_L_GO" != no; then
13295 # Linking always hardcodes the temporary library directory.
13296 hardcode_action_GO=relink
13297 else
13298 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13299 hardcode_action_GO=immediate
13301 else
13302 # We cannot hardcode anything, or else we can only hardcode existing
13303 # directories.
13304 hardcode_action_GO=unsupported
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13307 $as_echo "$hardcode_action_GO" >&6; }
13309 if test "$hardcode_action_GO" = relink ||
13310 test "$inherit_rpath_GO" = yes; then
13311 # Fast installation is not supported
13312 enable_fast_install=no
13313 elif test "$shlibpath_overrides_runpath" = yes ||
13314 test "$enable_shared" = no; then
13315 # Fast installation is not necessary
13316 enable_fast_install=needless
13327 ac_ext=c
13328 ac_cpp='$CPP $CPPFLAGS'
13329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13334 GCC=$lt_save_GCC
13335 CC="$lt_save_CC"
13340 ac_config_commands="$ac_config_commands libtool"
13345 # Only expand once:
13351 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
13354 for ac_prog in gawk mawk nawk awk
13356 # Extract the first word of "$ac_prog", so it can be a program name with args.
13357 set dummy $ac_prog; ac_word=$2
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13359 $as_echo_n "checking for $ac_word... " >&6; }
13360 if test "${ac_cv_prog_AWK+set}" = set; then :
13361 $as_echo_n "(cached) " >&6
13362 else
13363 if test -n "$AWK"; then
13364 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13365 else
13366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13367 for as_dir in $PATH
13369 IFS=$as_save_IFS
13370 test -z "$as_dir" && as_dir=.
13371 for ac_exec_ext in '' $ac_executable_extensions; do
13372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13373 ac_cv_prog_AWK="$ac_prog"
13374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13375 break 2
13377 done
13378 done
13379 IFS=$as_save_IFS
13383 AWK=$ac_cv_prog_AWK
13384 if test -n "$AWK"; then
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13386 $as_echo "$AWK" >&6; }
13387 else
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13389 $as_echo "no" >&6; }
13393 test -n "$AWK" && break
13394 done
13397 WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13400 # Check whether --enable-werror was given.
13401 if test "${enable_werror+set}" = set; then :
13402 enableval=$enable_werror;
13405 if test "x$enable_werror" != "xno"; then
13406 WERROR="-Werror"
13410 glibgo_toolexecdir=no
13411 glibgo_toolexeclibdir=no
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13414 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13415 # Check whether --enable-version-specific-runtime-libs was given.
13416 if test "${enable_version_specific_runtime_libs+set}" = set; then :
13417 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13418 yes) version_specific_libs=yes ;;
13419 no) version_specific_libs=no ;;
13420 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13421 esac
13422 else
13423 version_specific_libs=no
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13427 $as_echo "$version_specific_libs" >&6; }
13429 # Version-specific runtime libs processing.
13430 if test $version_specific_libs = yes; then
13431 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13432 glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13435 # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13436 # Install a library built with a cross compiler in tooldir, not libdir.
13437 if test -n "$with_cross_host" &&
13438 test x"$with_cross_host" != x"no"; then
13439 nover_glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13440 nover_glibgo_toolexeclibdir='${toolexecdir}/lib'
13441 else
13442 nover_glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13443 nover_glibgo_toolexeclibdir='${libdir}'
13445 multi_os_directory=`$CC -print-multi-os-directory`
13446 case $multi_os_directory in
13447 .) ;; # Avoid trailing /.
13448 *) nover_glibgo_toolexeclibdir=${nover_glibgo_toolexeclibdir}/${multi_os_directory} ;;
13449 esac
13451 if test x"$glibgo_toolexecdir" = x"no"; then
13452 glibgo_toolexecdir="${nover_glibgo_toolexecdir}"
13453 glibgo_toolexeclibdir="${nover_glibgo_toolexeclibdir}"
13460 # See if the user wants to configure without libffi. Some
13461 # architectures don't support it. FIXME: We should set a default
13462 # based on the host.
13464 # Check whether --with-libffi was given.
13465 if test "${with_libffi+set}" = set; then :
13466 withval=$with_libffi; :
13467 else
13468 with_libffi=${with_libffi_default-yes}
13472 LIBFFI=
13473 LIBFFIINCS=
13474 if test "$with_libffi" != no; then
13476 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
13478 LIBFFI=../libffi/libffi_convenience.la
13479 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13484 # Used to tell GNU make to include a file without telling automake to
13485 # include it.
13486 go_include="-include"
13489 is_darwin=no
13490 is_freebsd=no
13491 is_irix=no
13492 is_linux=no
13493 is_netbsd=no
13494 is_openbsd=no
13495 is_dragonfly=no
13496 is_rtems=no
13497 is_solaris=no
13498 GOOS=unknown
13499 case ${host} in
13500 *-*-darwin*) is_darwin=yes; GOOS=darwin ;;
13501 *-*-freebsd*) is_freebsd=yes; GOOS=freebsd ;;
13502 *-*-irix6*) is_irix=yes; GOOS=irix ;;
13503 *-*-linux*) is_linux=yes; GOOS=linux ;;
13504 *-*-netbsd*) is_netbsd=yes; GOOS=netbsd ;;
13505 *-*-openbsd*) is_openbsd=yes; GOOS=openbsd ;;
13506 *-*-dragonfly*) is_dragonfly=yes; GOOS=dragonfly ;;
13507 *-*-rtems*) is_rtems=yes; GOOS=rtems ;;
13508 *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
13509 esac
13510 if test $is_darwin = yes; then
13511 LIBGO_IS_DARWIN_TRUE=
13512 LIBGO_IS_DARWIN_FALSE='#'
13513 else
13514 LIBGO_IS_DARWIN_TRUE='#'
13515 LIBGO_IS_DARWIN_FALSE=
13518 if test $is_freebsd = yes; then
13519 LIBGO_IS_FREEBSD_TRUE=
13520 LIBGO_IS_FREEBSD_FALSE='#'
13521 else
13522 LIBGO_IS_FREEBSD_TRUE='#'
13523 LIBGO_IS_FREEBSD_FALSE=
13526 if test $is_irix = yes; then
13527 LIBGO_IS_IRIX_TRUE=
13528 LIBGO_IS_IRIX_FALSE='#'
13529 else
13530 LIBGO_IS_IRIX_TRUE='#'
13531 LIBGO_IS_IRIX_FALSE=
13534 if test $is_linux = yes; then
13535 LIBGO_IS_LINUX_TRUE=
13536 LIBGO_IS_LINUX_FALSE='#'
13537 else
13538 LIBGO_IS_LINUX_TRUE='#'
13539 LIBGO_IS_LINUX_FALSE=
13542 if test $is_netbsd = yes; then
13543 LIBGO_IS_NETBSD_TRUE=
13544 LIBGO_IS_NETBSD_FALSE='#'
13545 else
13546 LIBGO_IS_NETBSD_TRUE='#'
13547 LIBGO_IS_NETBSD_FALSE=
13550 if test $is_openbsd = yes; then
13551 LIBGO_IS_OPENBSD_TRUE=
13552 LIBGO_IS_OPENBSD_FALSE='#'
13553 else
13554 LIBGO_IS_OPENBSD_TRUE='#'
13555 LIBGO_IS_OPENBSD_FALSE=
13558 if test $is_dragonfly = yes; then
13559 LIBGO_IS_DRAGONFLY_TRUE=
13560 LIBGO_IS_DRAGONFLY_FALSE='#'
13561 else
13562 LIBGO_IS_DRAGONFLY_TRUE='#'
13563 LIBGO_IS_DRAGONFLY_FALSE=
13566 if test $is_rtems = yes; then
13567 LIBGO_IS_RTEMS_TRUE=
13568 LIBGO_IS_RTEMS_FALSE='#'
13569 else
13570 LIBGO_IS_RTEMS_TRUE='#'
13571 LIBGO_IS_RTEMS_FALSE=
13574 if test $is_solaris = yes; then
13575 LIBGO_IS_SOLARIS_TRUE=
13576 LIBGO_IS_SOLARIS_FALSE='#'
13577 else
13578 LIBGO_IS_SOLARIS_TRUE='#'
13579 LIBGO_IS_SOLARIS_FALSE=
13584 USE_DEJAGNU=no
13585 case ${host} in
13586 *-*-rtems*) USE_DEJAGNU=yes ;;
13587 ${build}) ;;
13588 *) USE_DEJAGNU=yes ;;
13589 esac
13592 is_386=no
13593 is_alpha=no
13594 is_arm=no
13595 is_m68k=no
13596 mips_abi=unknown
13597 is_ppc=no
13598 is_ppc64=no
13599 is_sparc=no
13600 is_sparc64=no
13601 is_x86_64=no
13602 GOARCH=unknown
13603 case ${host} in
13604 alpha*-*-*)
13605 is_alpha=yes
13606 GOARCH=alpha
13608 arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
13609 is_arm=yes
13610 GOARCH=arm
13612 i[34567]86-*-* | x86_64-*-*)
13613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13614 /* end confdefs.h. */
13616 #ifdef __x86_64__
13617 #error 64-bit
13618 #endif
13619 _ACEOF
13620 if ac_fn_c_try_compile "$LINENO"; then :
13621 is_386=yes
13622 else
13623 is_x86_64=yes
13625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13626 if test "$is_386" = "yes"; then
13627 GOARCH=386
13628 else
13629 GOARCH=amd64
13632 m68k*-*-*)
13633 is_m68k=yes
13634 GOARCH=m68k
13636 mips*-*-*)
13637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13638 /* end confdefs.h. */
13640 #if _MIPS_SIM != _ABIO32
13641 #error not o32
13642 #endif
13643 _ACEOF
13644 if ac_fn_c_try_compile "$LINENO"; then :
13645 mips_abi="o32"
13646 else
13647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13648 /* end confdefs.h. */
13650 #if _MIPS_SIM != _ABIN32
13651 #error not n32
13652 #endif
13653 _ACEOF
13654 if ac_fn_c_try_compile "$LINENO"; then :
13655 mips_abi="n32"
13656 else
13657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13658 /* end confdefs.h. */
13660 #if _MIPS_SIM != _ABI64
13661 #error not n64
13662 #endif
13663 _ACEOF
13664 if ac_fn_c_try_compile "$LINENO"; then :
13665 mips_abi="n64"
13666 else
13667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13668 /* end confdefs.h. */
13670 #if _MIPS_SIM != _ABIO64
13671 #error not o64
13672 #endif
13673 _ACEOF
13674 if ac_fn_c_try_compile "$LINENO"; then :
13675 mips_abi="o64"
13676 else
13677 as_fn_error "unknown MIPS ABI" "$LINENO" 5
13678 mips_abi="n32"
13680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13687 case "$mips_abi" in
13688 "o32") GOARCH=mipso32 ;;
13689 "n32") GOARCH=mipsn32 ;;
13690 "n64") GOARCH=mipsn64 ;;
13691 "o64") GOARCH=mipso64 ;;
13692 esac
13694 rs6000*-*-* | powerpc*-*-*)
13695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13696 /* end confdefs.h. */
13698 #ifdef _ARCH_PPC64
13699 #error 64-bit
13700 #endif
13701 _ACEOF
13702 if ac_fn_c_try_compile "$LINENO"; then :
13703 is_ppc=yes
13704 else
13705 is_ppc64=yes
13707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13708 if test "$is_ppc" = "yes"; then
13709 GOARCH=ppc
13710 else
13711 GOARCH=ppc64
13714 sparc*-*-*)
13715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13716 /* end confdefs.h. */
13718 #if defined(__sparcv9) || defined(__arch64__)
13719 #error 64-bit
13720 #endif
13721 _ACEOF
13722 if ac_fn_c_try_compile "$LINENO"; then :
13723 is_sparc=yes
13724 else
13725 is_sparc64=yes
13727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13728 if test "$is_sparc" = "yes"; then
13729 GOARCH=sparc
13730 else
13731 GOARCH=sparc64
13734 esac
13735 if test $is_386 = yes; then
13736 LIBGO_IS_386_TRUE=
13737 LIBGO_IS_386_FALSE='#'
13738 else
13739 LIBGO_IS_386_TRUE='#'
13740 LIBGO_IS_386_FALSE=
13743 if test $is_alpha = yes; then
13744 LIBGO_IS_ALPHA_TRUE=
13745 LIBGO_IS_ALPHA_FALSE='#'
13746 else
13747 LIBGO_IS_ALPHA_TRUE='#'
13748 LIBGO_IS_ALPHA_FALSE=
13751 if test $is_arm = yes; then
13752 LIBGO_IS_ARM_TRUE=
13753 LIBGO_IS_ARM_FALSE='#'
13754 else
13755 LIBGO_IS_ARM_TRUE='#'
13756 LIBGO_IS_ARM_FALSE=
13759 if test $is_m68k = yes; then
13760 LIBGO_IS_M68K_TRUE=
13761 LIBGO_IS_M68K_FALSE='#'
13762 else
13763 LIBGO_IS_M68K_TRUE='#'
13764 LIBGO_IS_M68K_FALSE=
13767 if test $mips_abi != unknown; then
13768 LIBGO_IS_MIPS_TRUE=
13769 LIBGO_IS_MIPS_FALSE='#'
13770 else
13771 LIBGO_IS_MIPS_TRUE='#'
13772 LIBGO_IS_MIPS_FALSE=
13775 if test $mips_abi = o32; then
13776 LIBGO_IS_MIPSO32_TRUE=
13777 LIBGO_IS_MIPSO32_FALSE='#'
13778 else
13779 LIBGO_IS_MIPSO32_TRUE='#'
13780 LIBGO_IS_MIPSO32_FALSE=
13783 if test $mips_abi = n32; then
13784 LIBGO_IS_MIPSN32_TRUE=
13785 LIBGO_IS_MIPSN32_FALSE='#'
13786 else
13787 LIBGO_IS_MIPSN32_TRUE='#'
13788 LIBGO_IS_MIPSN32_FALSE=
13791 if test $mips_abi = n64; then
13792 LIBGO_IS_MIPSN64_TRUE=
13793 LIBGO_IS_MIPSN64_FALSE='#'
13794 else
13795 LIBGO_IS_MIPSN64_TRUE='#'
13796 LIBGO_IS_MIPSN64_FALSE=
13799 if test $mips_abi = o64; then
13800 LIBGO_IS_MIPSO64_TRUE=
13801 LIBGO_IS_MIPSO64_FALSE='#'
13802 else
13803 LIBGO_IS_MIPSO64_TRUE='#'
13804 LIBGO_IS_MIPSO64_FALSE=
13807 if test $is_ppc = yes; then
13808 LIBGO_IS_PPC_TRUE=
13809 LIBGO_IS_PPC_FALSE='#'
13810 else
13811 LIBGO_IS_PPC_TRUE='#'
13812 LIBGO_IS_PPC_FALSE=
13815 if test $is_ppc64 = yes; then
13816 LIBGO_IS_PPC64_TRUE=
13817 LIBGO_IS_PPC64_FALSE='#'
13818 else
13819 LIBGO_IS_PPC64_TRUE='#'
13820 LIBGO_IS_PPC64_FALSE=
13823 if test $is_sparc = yes; then
13824 LIBGO_IS_SPARC_TRUE=
13825 LIBGO_IS_SPARC_FALSE='#'
13826 else
13827 LIBGO_IS_SPARC_TRUE='#'
13828 LIBGO_IS_SPARC_FALSE=
13831 if test $is_sparc64 = yes; then
13832 LIBGO_IS_SPARC64_TRUE=
13833 LIBGO_IS_SPARC64_FALSE='#'
13834 else
13835 LIBGO_IS_SPARC64_TRUE='#'
13836 LIBGO_IS_SPARC64_FALSE=
13839 if test $is_x86_64 = yes; then
13840 LIBGO_IS_X86_64_TRUE=
13841 LIBGO_IS_X86_64_FALSE='#'
13842 else
13843 LIBGO_IS_X86_64_TRUE='#'
13844 LIBGO_IS_X86_64_FALSE=
13849 GO_LIBCALL_OS_FILE=
13850 GO_LIBCALL_OS_ARCH_FILE=
13851 GO_SYSCALL_OS_FILE=
13852 GO_SYSCALL_OS_ARCH_FILE=
13853 if test -f ${srcdir}/go/syscall/libcall_${GOOS}.go; then
13854 GO_LIBCALL_OS_FILE=go/syscall/libcall_${GOOS}.go
13856 if test -f ${srcdir}/go/syscall/libcall_${GOOS}_${GOARCH}.go; then
13857 GO_LIBCALL_OS_ARCH_FILE=go/syscall/libcall_${GOOS}_${GOARCH}.go
13859 if test -f ${srcdir}/go/syscall/syscall_${GOOS}.go; then
13860 GO_SYSCALL_OS_FILE=go/syscall/syscall_${GOOS}.go
13862 if test -f ${srcdir}/go/syscall/syscall_${GOOS}_${GOARCH}.go; then
13863 GO_SYSCALL_OS_ARCH_FILE=go/syscall/syscall_${GOOS}_${GOARCH}.go
13870 OSCFLAGS="-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
13871 case "$target" in
13872 mips-sgi-irix6.5*)
13873 # IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
13874 # msghdr in <sys/socket.h>.
13875 OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500"
13877 *-*-solaris2.[89])
13878 # Solaris 8/9 need this so struct msghdr gets the msg_control
13879 # etc. fields in <sys/socket.h> (_XPG4_2).
13880 OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED -D__EXTENSIONS__"
13882 *-*-solaris2.1[01])
13883 # Solaris 10+ needs this so struct msghdr gets the msg_control
13884 # etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=600 as
13885 # above doesn't work with C99.
13886 OSCFLAGS="$OSCFLAGS -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
13888 esac
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
13892 $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
13893 if test "${libgo_cv_c_split_stack_supported+set}" = set; then :
13894 $as_echo_n "(cached) " >&6
13895 else
13896 CFLAGS_hold=$CFLAGS
13897 CFLAGS="$CFLAGS -fsplit-stack"
13898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13899 /* end confdefs.h. */
13900 int i;
13901 _ACEOF
13902 if ac_fn_c_try_compile "$LINENO"; then :
13903 libgo_cv_c_split_stack_supported=yes
13904 else
13905 libgo_cv_c_split_stack_supported=no
13907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13908 CFLAGS=$CFLAGS_hold
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
13911 $as_echo "$libgo_cv_c_split_stack_supported" >&6; }
13912 if test "$libgo_cv_c_split_stack_supported" = yes; then
13913 SPLIT_STACK=-fsplit-stack
13915 $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
13917 else
13918 SPLIT_STACK=
13921 if test "$libgo_cv_c_split_stack_supported" = yes; then
13922 USING_SPLIT_STACK_TRUE=
13923 USING_SPLIT_STACK_FALSE='#'
13924 else
13925 USING_SPLIT_STACK_TRUE='#'
13926 USING_SPLIT_STACK_FALSE=
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
13931 $as_echo_n "checking whether linker supports split stack... " >&6; }
13932 if test "${libgo_cv_c_linker_supports_split_stack+set}" = set; then :
13933 $as_echo_n "(cached) " >&6
13934 else
13935 libgo_cv_c_linker_supports_split_stack=no
13936 if $LD --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
13937 libgo_cv_c_linker_supports_split_stack=yes
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
13941 $as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
13942 if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
13944 $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
13948 MATH_LIBS=
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13950 $as_echo_n "checking for sqrt in -lm... " >&6; }
13951 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13952 $as_echo_n "(cached) " >&6
13953 else
13954 ac_check_lib_save_LIBS=$LIBS
13955 LIBS="-lm $LIBS"
13956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13957 /* end confdefs.h. */
13959 /* Override any GCC internal prototype to avoid an error.
13960 Use char because int might match the return type of a GCC
13961 builtin and then its argument prototype would still apply. */
13962 #ifdef __cplusplus
13963 extern "C"
13964 #endif
13965 char sqrt ();
13967 main ()
13969 return sqrt ();
13971 return 0;
13973 _ACEOF
13974 if ac_fn_c_try_link "$LINENO"; then :
13975 ac_cv_lib_m_sqrt=yes
13976 else
13977 ac_cv_lib_m_sqrt=no
13979 rm -f core conftest.err conftest.$ac_objext \
13980 conftest$ac_exeext conftest.$ac_ext
13981 LIBS=$ac_check_lib_save_LIBS
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13984 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13985 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13986 MATH_LIBS=-lm
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
13992 $as_echo_n "checking for socket libraries... " >&6; }
13993 if test "${libgo_cv_lib_sockets+set}" = set; then :
13994 $as_echo_n "(cached) " >&6
13995 else
13996 libgo_cv_lib_sockets=
13997 libgo_check_both=no
13998 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
13999 if test "x$ac_cv_func_connect" = x""yes; then :
14000 libgo_check_socket=no
14001 else
14002 libgo_check_socket=yes
14005 if test "$libgo_check_socket" = "yes"; then
14006 unset ac_cv_func_connect
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14008 $as_echo_n "checking for main in -lsocket... " >&6; }
14009 if test "${ac_cv_lib_socket_main+set}" = set; then :
14010 $as_echo_n "(cached) " >&6
14011 else
14012 ac_check_lib_save_LIBS=$LIBS
14013 LIBS="-lsocket $LIBS"
14014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14015 /* end confdefs.h. */
14019 main ()
14021 return main ();
14023 return 0;
14025 _ACEOF
14026 if ac_fn_c_try_link "$LINENO"; then :
14027 ac_cv_lib_socket_main=yes
14028 else
14029 ac_cv_lib_socket_main=no
14031 rm -f core conftest.err conftest.$ac_objext \
14032 conftest$ac_exeext conftest.$ac_ext
14033 LIBS=$ac_check_lib_save_LIBS
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14036 $as_echo "$ac_cv_lib_socket_main" >&6; }
14037 if test "x$ac_cv_lib_socket_main" = x""yes; then :
14038 libgo_cv_lib_sockets="-lsocket"
14039 else
14040 libgo_check_both=yes
14044 if test "$libgo_check_both" = "yes"; then
14045 libgo_old_libs=$LIBS
14046 LIBS="$LIBS -lsocket -lnsl"
14047 unset ac_cv_func_accept
14048 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14049 if test "x$ac_cv_func_accept" = x""yes; then :
14050 libgo_check_nsl=no
14051 libgo_cv_lib_sockets="-lsocket -lnsl"
14054 unset ac_cv_func_accept
14055 LIBS=$libgo_old_libs
14057 unset ac_cv_func_gethostbyname
14058 libgo_old_libs="$LIBS"
14059 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14060 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
14062 else
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14064 $as_echo_n "checking for main in -lnsl... " >&6; }
14065 if test "${ac_cv_lib_nsl_main+set}" = set; then :
14066 $as_echo_n "(cached) " >&6
14067 else
14068 ac_check_lib_save_LIBS=$LIBS
14069 LIBS="-lnsl $LIBS"
14070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14071 /* end confdefs.h. */
14075 main ()
14077 return main ();
14079 return 0;
14081 _ACEOF
14082 if ac_fn_c_try_link "$LINENO"; then :
14083 ac_cv_lib_nsl_main=yes
14084 else
14085 ac_cv_lib_nsl_main=no
14087 rm -f core conftest.err conftest.$ac_objext \
14088 conftest$ac_exeext conftest.$ac_ext
14089 LIBS=$ac_check_lib_save_LIBS
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14092 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14093 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
14094 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
14099 unset ac_cv_func_gethostbyname
14100 LIBS=$libgo_old_libs
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
14104 $as_echo "$libgo_cv_lib_sockets" >&6; }
14105 NET_LIBS="$libgo_cv_lib_sockets"
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
14109 $as_echo_n "checking whether -pthread is supported... " >&6; }
14110 if test "${libgo_cv_lib_pthread+set}" = set; then :
14111 $as_echo_n "(cached) " >&6
14112 else
14113 CFLAGS_hold=$CFLAGS
14114 CFLAGS="$CFLAGS -pthread"
14115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14116 /* end confdefs.h. */
14117 int i;
14118 _ACEOF
14119 if ac_fn_c_try_compile "$LINENO"; then :
14120 libgo_cv_lib_pthread=yes
14121 else
14122 libgo_cv_lib_pthread=no
14124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14125 CFLAGS=$CFLAGS_hold
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
14128 $as_echo "$libgo_cv_lib_pthread" >&6; }
14129 PTHREAD_CFLAGS=
14130 if test "$libgo_cv_lib_pthread" = yes; then
14131 PTHREAD_CFLAGS=-pthread
14135 PTHREAD_LIBS=
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
14137 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
14138 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
14139 $as_echo_n "(cached) " >&6
14140 else
14141 ac_check_lib_save_LIBS=$LIBS
14142 LIBS="-lpthread $LIBS"
14143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14144 /* end confdefs.h. */
14146 /* Override any GCC internal prototype to avoid an error.
14147 Use char because int might match the return type of a GCC
14148 builtin and then its argument prototype would still apply. */
14149 #ifdef __cplusplus
14150 extern "C"
14151 #endif
14152 char pthread_create ();
14154 main ()
14156 return pthread_create ();
14158 return 0;
14160 _ACEOF
14161 if ac_fn_c_try_link "$LINENO"; then :
14162 ac_cv_lib_pthread_pthread_create=yes
14163 else
14164 ac_cv_lib_pthread_pthread_create=no
14166 rm -f core conftest.err conftest.$ac_objext \
14167 conftest$ac_exeext conftest.$ac_ext
14168 LIBS=$ac_check_lib_save_LIBS
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
14171 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
14172 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
14173 PTHREAD_LIBS=-lpthread
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
14179 $as_echo_n "checking for library containing sched_yield... " >&6; }
14180 if test "${ac_cv_search_sched_yield+set}" = set; then :
14181 $as_echo_n "(cached) " >&6
14182 else
14183 ac_func_search_save_LIBS=$LIBS
14184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14185 /* end confdefs.h. */
14187 /* Override any GCC internal prototype to avoid an error.
14188 Use char because int might match the return type of a GCC
14189 builtin and then its argument prototype would still apply. */
14190 #ifdef __cplusplus
14191 extern "C"
14192 #endif
14193 char sched_yield ();
14195 main ()
14197 return sched_yield ();
14199 return 0;
14201 _ACEOF
14202 for ac_lib in '' rt; do
14203 if test -z "$ac_lib"; then
14204 ac_res="none required"
14205 else
14206 ac_res=-l$ac_lib
14207 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14209 if ac_fn_c_try_link "$LINENO"; then :
14210 ac_cv_search_sched_yield=$ac_res
14212 rm -f core conftest.err conftest.$ac_objext \
14213 conftest$ac_exeext
14214 if test "${ac_cv_search_sched_yield+set}" = set; then :
14215 break
14217 done
14218 if test "${ac_cv_search_sched_yield+set}" = set; then :
14220 else
14221 ac_cv_search_sched_yield=no
14223 rm conftest.$ac_ext
14224 LIBS=$ac_func_search_save_LIBS
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
14227 $as_echo "$ac_cv_search_sched_yield" >&6; }
14228 ac_res=$ac_cv_search_sched_yield
14229 if test "$ac_res" != no; then :
14230 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
14235 $as_echo_n "checking for library containing nanosleep... " >&6; }
14236 if test "${ac_cv_search_nanosleep+set}" = set; then :
14237 $as_echo_n "(cached) " >&6
14238 else
14239 ac_func_search_save_LIBS=$LIBS
14240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14241 /* end confdefs.h. */
14243 /* Override any GCC internal prototype to avoid an error.
14244 Use char because int might match the return type of a GCC
14245 builtin and then its argument prototype would still apply. */
14246 #ifdef __cplusplus
14247 extern "C"
14248 #endif
14249 char nanosleep ();
14251 main ()
14253 return nanosleep ();
14255 return 0;
14257 _ACEOF
14258 for ac_lib in '' rt; do
14259 if test -z "$ac_lib"; then
14260 ac_res="none required"
14261 else
14262 ac_res=-l$ac_lib
14263 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14265 if ac_fn_c_try_link "$LINENO"; then :
14266 ac_cv_search_nanosleep=$ac_res
14268 rm -f core conftest.err conftest.$ac_objext \
14269 conftest$ac_exeext
14270 if test "${ac_cv_search_nanosleep+set}" = set; then :
14271 break
14273 done
14274 if test "${ac_cv_search_nanosleep+set}" = set; then :
14276 else
14277 ac_cv_search_nanosleep=no
14279 rm conftest.$ac_ext
14280 LIBS=$ac_func_search_save_LIBS
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
14283 $as_echo "$ac_cv_search_nanosleep" >&6; }
14284 ac_res=$ac_cv_search_nanosleep
14285 if test "$ac_res" != no; then :
14286 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14292 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14293 if test "${ac_cv_c_bigendian+set}" = set; then :
14294 $as_echo_n "(cached) " >&6
14295 else
14296 ac_cv_c_bigendian=unknown
14297 # See if we're dealing with a universal compiler.
14298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14299 /* end confdefs.h. */
14300 #ifndef __APPLE_CC__
14301 not a universal capable compiler
14302 #endif
14303 typedef int dummy;
14305 _ACEOF
14306 if ac_fn_c_try_compile "$LINENO"; then :
14308 # Check for potential -arch flags. It is not universal unless
14309 # there are at least two -arch flags with different values.
14310 ac_arch=
14311 ac_prev=
14312 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14313 if test -n "$ac_prev"; then
14314 case $ac_word in
14315 i?86 | x86_64 | ppc | ppc64)
14316 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14317 ac_arch=$ac_word
14318 else
14319 ac_cv_c_bigendian=universal
14320 break
14323 esac
14324 ac_prev=
14325 elif test "x$ac_word" = "x-arch"; then
14326 ac_prev=arch
14328 done
14330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14331 if test $ac_cv_c_bigendian = unknown; then
14332 # See if sys/param.h defines the BYTE_ORDER macro.
14333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14334 /* end confdefs.h. */
14335 #include <sys/types.h>
14336 #include <sys/param.h>
14339 main ()
14341 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14342 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14343 && LITTLE_ENDIAN)
14344 bogus endian macros
14345 #endif
14348 return 0;
14350 _ACEOF
14351 if ac_fn_c_try_compile "$LINENO"; then :
14352 # It does; now see whether it defined to BIG_ENDIAN or not.
14353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14354 /* end confdefs.h. */
14355 #include <sys/types.h>
14356 #include <sys/param.h>
14359 main ()
14361 #if BYTE_ORDER != BIG_ENDIAN
14362 not big endian
14363 #endif
14366 return 0;
14368 _ACEOF
14369 if ac_fn_c_try_compile "$LINENO"; then :
14370 ac_cv_c_bigendian=yes
14371 else
14372 ac_cv_c_bigendian=no
14374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14378 if test $ac_cv_c_bigendian = unknown; then
14379 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14381 /* end confdefs.h. */
14382 #include <limits.h>
14385 main ()
14387 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14388 bogus endian macros
14389 #endif
14392 return 0;
14394 _ACEOF
14395 if ac_fn_c_try_compile "$LINENO"; then :
14396 # It does; now see whether it defined to _BIG_ENDIAN or not.
14397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14398 /* end confdefs.h. */
14399 #include <limits.h>
14402 main ()
14404 #ifndef _BIG_ENDIAN
14405 not big endian
14406 #endif
14409 return 0;
14411 _ACEOF
14412 if ac_fn_c_try_compile "$LINENO"; then :
14413 ac_cv_c_bigendian=yes
14414 else
14415 ac_cv_c_bigendian=no
14417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14421 if test $ac_cv_c_bigendian = unknown; then
14422 # Compile a test program.
14423 if test "$cross_compiling" = yes; then :
14424 # Try to guess by grepping values from an object file.
14425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14426 /* end confdefs.h. */
14427 short int ascii_mm[] =
14428 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14429 short int ascii_ii[] =
14430 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14431 int use_ascii (int i) {
14432 return ascii_mm[i] + ascii_ii[i];
14434 short int ebcdic_ii[] =
14435 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14436 short int ebcdic_mm[] =
14437 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14438 int use_ebcdic (int i) {
14439 return ebcdic_mm[i] + ebcdic_ii[i];
14441 extern int foo;
14444 main ()
14446 return use_ascii (foo) == use_ebcdic (foo);
14448 return 0;
14450 _ACEOF
14451 if ac_fn_c_try_compile "$LINENO"; then :
14452 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14453 ac_cv_c_bigendian=yes
14455 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14456 if test "$ac_cv_c_bigendian" = unknown; then
14457 ac_cv_c_bigendian=no
14458 else
14459 # finding both strings is unlikely to happen, but who knows?
14460 ac_cv_c_bigendian=unknown
14464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14465 else
14466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14467 /* end confdefs.h. */
14468 $ac_includes_default
14470 main ()
14473 /* Are we little or big endian? From Harbison&Steele. */
14474 union
14476 long int l;
14477 char c[sizeof (long int)];
14478 } u;
14479 u.l = 1;
14480 return u.c[sizeof (long int) - 1] == 1;
14483 return 0;
14485 _ACEOF
14486 if ac_fn_c_try_run "$LINENO"; then :
14487 ac_cv_c_bigendian=no
14488 else
14489 ac_cv_c_bigendian=yes
14491 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14492 conftest.$ac_objext conftest.beam conftest.$ac_ext
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14498 $as_echo "$ac_cv_c_bigendian" >&6; }
14499 case $ac_cv_c_bigendian in #(
14500 yes)
14501 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14502 ;; #(
14504 ;; #(
14505 universal)
14507 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14509 ;; #(
14511 as_fn_error "unknown endianness
14512 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14513 esac
14518 # Check whether --with-system-libunwind was given.
14519 if test "${with_system_libunwind+set}" = set; then :
14520 withval=$with_system_libunwind;
14523 # If system-libunwind was not specifically set, pick a default setting.
14524 if test x$with_system_libunwind = x; then
14525 case ${target} in
14526 ia64-*-hpux*) with_system_libunwind=yes ;;
14527 *) with_system_libunwind=no ;;
14528 esac
14530 # Based on system-libunwind and target, do we have ipinfo?
14531 if test x$with_system_libunwind = xyes; then
14532 case ${target} in
14533 ia64-*-*) have_unwind_getipinfo=no ;;
14534 *) have_unwind_getipinfo=yes ;;
14535 esac
14536 else
14537 # Darwin before version 9 does not have _Unwind_GetIPInfo.
14539 case ${target} in
14540 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
14541 *) have_unwind_getipinfo=yes ;;
14542 esac
14546 if test x$have_unwind_getipinfo = xyes; then
14548 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
14553 # Check whether --enable-sjlj-exceptions was given.
14554 if test "${enable_sjlj_exceptions+set}" = set; then :
14555 enableval=$enable_sjlj_exceptions; case "$enableval" in
14556 yes|no|auto) ;;
14557 *) as_fn_error "unknown argument to --enable-sjlj-exceptions" "$LINENO" 5 ;;
14558 esac
14559 else
14560 enable_sjlj_exceptions=auto
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use setjmp/longjmp exceptions" >&5
14565 $as_echo_n "checking whether to use setjmp/longjmp exceptions... " >&6; }
14566 if test "${libgo_cv_lib_sjlj_exceptions+set}" = set; then :
14567 $as_echo_n "(cached) " >&6
14568 else
14569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14570 /* end confdefs.h. */
14572 void bar ();
14573 void clean (int *);
14574 void foo ()
14576 int i __attribute__ ((cleanup (clean)));
14577 bar();
14580 _ACEOF
14581 CFLAGS_hold=$CFLAGS
14582 CFLAGS="--save-temps -fexceptions"
14583 libgo_cv_lib_sjlj_exceptions=unknown
14584 if ac_fn_c_try_compile; then :
14585 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1; then
14586 libgo_cv_lib_sjlj_exceptions=yes
14587 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1; then
14588 libgo_cv_lib_sjlj_exceptions=no
14591 CFLAGS=$CFLAGS_hold
14592 rm -f conftest*
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sjlj_exceptions" >&5
14596 $as_echo "$libgo_cv_lib_sjlj_exceptions" >&6; }
14598 if test "$enable_sjlj_exceptions" = "auto"; then
14599 enable_sjlj_exceptions=$libgo_cv_lib_sjlj_exceptions
14602 case $enable_sjlj_exceptions in
14603 yes)
14605 $as_echo "#define LIBGO_SJLJ_EXCEPTIONS 1" >>confdefs.h
14611 as_fn_error "unable to detect exception model" "$LINENO" 5
14613 esac
14615 for ac_header in 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
14616 do :
14617 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14618 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14619 eval as_val=\$$as_ac_Header
14620 if test "x$as_val" = x""yes; then :
14621 cat >>confdefs.h <<_ACEOF
14622 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14623 _ACEOF
14627 done
14630 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
14631 do :
14632 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14633 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_SOCKET_H
14634 #include <sys/socket.h>
14635 #endif
14638 eval as_val=\$$as_ac_Header
14639 if test "x$as_val" = x""yes; then :
14640 cat >>confdefs.h <<_ACEOF
14641 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14642 _ACEOF
14646 done
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <ustat.h> can be used" >&5
14650 $as_echo_n "checking whether <ustat.h> can be used... " >&6; }
14651 if test "${libgo_cv_c_ustat_h+set}" = set; then :
14652 $as_echo_n "(cached) " >&6
14653 else
14654 CFLAGS_hold=$CFLAGS
14655 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE $OSCFLAGS"
14656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14657 /* end confdefs.h. */
14659 #include <sys/types.h>
14660 #ifdef HAVE_LINUX_FILTER_H
14661 #include <linux/filter.h>
14662 #endif
14663 #include <ustat.h>
14665 _ACEOF
14666 if ac_fn_c_try_compile "$LINENO"; then :
14667 libgo_cv_c_ustat_h=yes
14668 else
14669 libgo_cv_c_ustat_h=no
14671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14672 CFLAGS=$CFLAGS_hold
14674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_ustat_h" >&5
14675 $as_echo "$libgo_cv_c_ustat_h" >&6; }
14676 if test $libgo_cv_c_ustat_h = yes; then
14678 $as_echo "#define HAVE_USTAT_H 1" >>confdefs.h
14682 if test "$ac_cv_header_sys_mman_h" = yes; then
14683 HAVE_SYS_MMAN_H_TRUE=
14684 HAVE_SYS_MMAN_H_FALSE='#'
14685 else
14686 HAVE_SYS_MMAN_H_TRUE='#'
14687 HAVE_SYS_MMAN_H_FALSE=
14691 for ac_func in strerror_r strsignal wait4 mincore setenv dl_iterate_phdr
14692 do :
14693 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14694 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14695 eval as_val=\$$as_ac_var
14696 if test "x$as_val" = x""yes; then :
14697 cat >>confdefs.h <<_ACEOF
14698 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14699 _ACEOF
14702 done
14704 if test "$ac_cv_func_strerror_r" = yes; then
14705 HAVE_STRERROR_R_TRUE=
14706 HAVE_STRERROR_R_FALSE='#'
14707 else
14708 HAVE_STRERROR_R_TRUE='#'
14709 HAVE_STRERROR_R_FALSE=
14712 if test "$ac_cv_func_wait4" = yes; then
14713 HAVE_WAIT4_TRUE=
14714 HAVE_WAIT4_FALSE='#'
14715 else
14716 HAVE_WAIT4_TRUE='#'
14717 HAVE_WAIT4_FALSE=
14721 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
14722 do :
14723 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14724 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14725 eval as_val=\$$as_ac_var
14726 if test "x$as_val" = x""yes; then :
14727 cat >>confdefs.h <<_ACEOF
14728 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14729 _ACEOF
14732 done
14734 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14735 if test "x$ac_cv_type_off_t" = x""yes; then :
14737 else
14739 cat >>confdefs.h <<_ACEOF
14740 #define off_t long int
14741 _ACEOF
14745 ac_fn_c_check_type "$LINENO" "loff_t" "ac_cv_type_loff_t" "$ac_includes_default"
14746 if test "x$ac_cv_type_loff_t" = x""yes; then :
14748 cat >>confdefs.h <<_ACEOF
14749 #define HAVE_LOFF_T 1
14750 _ACEOF
14756 LIBS_hold="$LIBS"
14757 LIBS="$LIBS -lm"
14758 for ac_func in cosl expl logl sinl tanl acosl asinl atanl atan2l expm1l ldexpl log10l log1pl
14759 do :
14760 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14761 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14762 eval as_val=\$$as_ac_var
14763 if test "x$as_val" = x""yes; then :
14764 cat >>confdefs.h <<_ACEOF
14765 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14766 _ACEOF
14769 done
14771 LIBS="$LIBS_hold"
14773 CFLAGS_hold="$CFLAGS"
14774 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14775 LIBS_hold="$LIBS"
14776 LIBS="$LIBS $PTHREAD_LIBS"
14777 for ac_func in sem_timedwait
14778 do :
14779 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
14780 if test "x$ac_cv_func_sem_timedwait" = x""yes; then :
14781 cat >>confdefs.h <<_ACEOF
14782 #define HAVE_SEM_TIMEDWAIT 1
14783 _ACEOF
14786 done
14788 CFLAGS="$CFLAGS_hold"
14789 LIBS="$LIBS_hold"
14791 LIBS_hold="$LIBS"
14792 LIBS="$LIBS $MATH_LIBS"
14793 for ac_func in matherr
14794 do :
14795 ac_fn_c_check_func "$LINENO" "matherr" "ac_cv_func_matherr"
14796 if test "x$ac_cv_func_matherr" = x""yes; then :
14797 cat >>confdefs.h <<_ACEOF
14798 #define HAVE_MATHERR 1
14799 _ACEOF
14802 done
14804 LIBS="$LIBS_hold"
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_4" >&5
14807 $as_echo_n "checking for __sync_bool_compare_and_swap_4... " >&6; }
14808 if test "${libgo_cv_func___sync_bool_compare_and_swap_4+set}" = set; then :
14809 $as_echo_n "(cached) " >&6
14810 else
14811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14812 /* end confdefs.h. */
14814 typedef unsigned int uint32 __attribute__ ((mode (SI)));
14815 uint32 i;
14816 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14818 _ACEOF
14819 if ac_fn_c_try_link "$LINENO"; then :
14820 libgo_cv_func___sync_bool_compare_and_swap_4=yes
14821 else
14822 libgo_cv_func___sync_bool_compare_and_swap_4=no
14824 rm -f core conftest.err conftest.$ac_objext \
14825 conftest$ac_exeext conftest.$ac_ext
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_4" >&5
14828 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_4" >&6; }
14829 if test "$libgo_cv_func___sync_bool_compare_and_swap_4" = "yes"; then
14831 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4 1" >>confdefs.h
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_8" >&5
14836 $as_echo_n "checking for __sync_bool_compare_and_swap_8... " >&6; }
14837 if test "${libgo_cv_func___sync_bool_compare_and_swap_8+set}" = set; then :
14838 $as_echo_n "(cached) " >&6
14839 else
14840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14841 /* end confdefs.h. */
14843 typedef unsigned int uint64 __attribute__ ((mode (DI)));
14844 uint64 i;
14845 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14847 _ACEOF
14848 if ac_fn_c_try_link "$LINENO"; then :
14849 libgo_cv_func___sync_bool_compare_and_swap_8=yes
14850 else
14851 libgo_cv_func___sync_bool_compare_and_swap_8=no
14853 rm -f core conftest.err conftest.$ac_objext \
14854 conftest$ac_exeext conftest.$ac_ext
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_8" >&5
14857 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_8" >&6; }
14858 if test "$libgo_cv_func___sync_bool_compare_and_swap_8" = "yes"; then
14860 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_8 1" >>confdefs.h
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add_4" >&5
14865 $as_echo_n "checking for __sync_fetch_and_add_4... " >&6; }
14866 if test "${libgo_cv_func___sync_fetch_and_add_4+set}" = set; then :
14867 $as_echo_n "(cached) " >&6
14868 else
14869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14870 /* end confdefs.h. */
14872 typedef unsigned int uint32 __attribute__ ((mode (SI)));
14873 uint32 i;
14874 int main() { return __sync_fetch_and_add (&i, 1); }
14876 _ACEOF
14877 if ac_fn_c_try_link "$LINENO"; then :
14878 libgo_cv_func___sync_fetch_and_add_4=yes
14879 else
14880 libgo_cv_func___sync_fetch_and_add_4=no
14882 rm -f core conftest.err conftest.$ac_objext \
14883 conftest$ac_exeext conftest.$ac_ext
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_fetch_and_add_4" >&5
14886 $as_echo "$libgo_cv_func___sync_fetch_and_add_4" >&6; }
14887 if test "$libgo_cv_func___sync_fetch_and_add_4" = "yes"; then
14889 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD_4 1" >>confdefs.h
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_add_and_fetch_8" >&5
14894 $as_echo_n "checking for __sync_add_and_fetch_8... " >&6; }
14895 if test "${libgo_cv_func___sync_add_and_fetch_8+set}" = set; then :
14896 $as_echo_n "(cached) " >&6
14897 else
14898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14899 /* end confdefs.h. */
14901 typedef unsigned int uint64 __attribute__ ((mode (DI)));
14902 uint64 i;
14903 int main() { return __sync_add_and_fetch (&i, 1); }
14905 _ACEOF
14906 if ac_fn_c_try_link "$LINENO"; then :
14907 libgo_cv_func___sync_add_and_fetch_8=yes
14908 else
14909 libgo_cv_func___sync_add_and_fetch_8=no
14911 rm -f core conftest.err conftest.$ac_objext \
14912 conftest$ac_exeext conftest.$ac_ext
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_add_and_fetch_8" >&5
14915 $as_echo "$libgo_cv_func___sync_add_and_fetch_8" >&6; }
14916 if test "$libgo_cv_func___sync_add_and_fetch_8" = "yes"; then
14918 $as_echo "#define HAVE_SYNC_ADD_AND_FETCH_8 1" >>confdefs.h
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
14923 $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
14924 if test "${libgo_cv_c_stringops+set}" = set; then :
14925 $as_echo_n "(cached) " >&6
14926 else
14927 CFLAGS_hold=$CFLAGS
14928 CFLAGS="$CFLAGS -minline-all-stringops"
14929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14930 /* end confdefs.h. */
14931 int i;
14932 _ACEOF
14933 if ac_fn_c_try_compile "$LINENO"; then :
14934 libgo_cv_c_stringops=yes
14935 else
14936 libgo_cv_c_stringops=no
14938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14939 CFLAGS=$CFLAGS_hold
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
14942 $as_echo "$libgo_cv_c_stringops" >&6; }
14943 STRINGOPS_FLAG=
14944 if test "$libgo_cv_c_stringops" = yes; then
14945 STRINGOPS_FLAG=-minline-all-stringops
14949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -mfancy-math-387" >&5
14950 $as_echo_n "checking whether compiler supports -mfancy-math-387... " >&6; }
14951 if test "${libgo_cv_c_fancymath+set}" = set; then :
14952 $as_echo_n "(cached) " >&6
14953 else
14954 CFLAGS_hold=$CFLAGS
14955 CFLAGS="$CFLAGS -mfancy-math-387"
14956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14957 /* end confdefs.h. */
14958 int i;
14959 _ACEOF
14960 if ac_fn_c_try_compile "$LINENO"; then :
14961 libgo_cv_c_fancymath=yes
14962 else
14963 libgo_cv_c_fancymath=no
14965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14966 CFLAGS=$CFLAGS_hold
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_fancymath" >&5
14969 $as_echo "$libgo_cv_c_fancymath" >&6; }
14970 MATH_FLAG=
14971 if test "$libgo_cv_c_fancymath" = yes; then
14972 MATH_FLAG="-mfancy-math-387 -funsafe-math-optimizations"
14976 CFLAGS_hold=$CFLAGS
14977 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
14978 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
14979 if test "x$ac_cv_type_off64_t" = x""yes; then :
14981 cat >>confdefs.h <<_ACEOF
14982 #define HAVE_OFF64_T 1
14983 _ACEOF
14988 CFLAGS=$CFLAGS_hold
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event size" >&5
14991 $as_echo_n "checking epoll_event size... " >&6; }
14992 if test "${libgo_cv_c_epoll_event_size+set}" = set; then :
14993 $as_echo_n "(cached) " >&6
14994 else
14995 if ac_fn_c_compute_int "$LINENO" "sizeof (struct epoll_event)" "libgo_cv_c_epoll_event_size" "#include <sys/epoll.h>"; then :
14997 else
14998 libgo_cv_c_epoll_event_size=0
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_size" >&5
15003 $as_echo "$libgo_cv_c_epoll_event_size" >&6; }
15004 SIZEOF_STRUCT_EPOLL_EVENT=${libgo_cv_c_epoll_event_size}
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event data.fd offset" >&5
15008 $as_echo_n "checking epoll_event data.fd offset... " >&6; }
15009 if test "${libgo_cv_c_epoll_event_fd_offset+set}" = set; then :
15010 $as_echo_n "(cached) " >&6
15011 else
15012 if ac_fn_c_compute_int "$LINENO" "offsetof (struct epoll_event, data.fd)" "libgo_cv_c_epoll_event_fd_offset" "#include <stddef.h>
15013 #include <sys/epoll.h>"; then :
15015 else
15016 libgo_cv_c_epoll_event_fd_offset=0
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_fd_offset" >&5
15021 $as_echo "$libgo_cv_c_epoll_event_fd_offset" >&6; }
15022 STRUCT_EPOLL_EVENT_FD_OFFSET=${libgo_cv_c_epoll_event_fd_offset}
15025 ac_fn_c_check_type "$LINENO" "struct exception" "ac_cv_type_struct_exception" "#include <math.h>
15027 if test "x$ac_cv_type_struct_exception" = x""yes; then :
15028 libgo_has_struct_exception=yes
15029 else
15030 libgo_has_struct_exception=no
15033 if test "$libgo_has_struct_exception" = "yes"; then
15035 $as_echo "#define HAVE_STRUCT_EXCEPTION 1" >>confdefs.h
15039 case "$target" in
15040 sparc*-*-solaris2.[89]*)
15041 libgo_cv_lib_makecontext_stack_top=yes
15044 libgo_cv_lib_makecontext_stack_top=no
15046 esac
15047 if test "$libgo_cv_lib_makecontext_stack_top" = "yes"; then
15049 $as_echo "#define MAKECONTEXT_STACK_TOP 1" >>confdefs.h
15053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setcontext clobbers TLS variables" >&5
15054 $as_echo_n "checking whether setcontext clobbers TLS variables... " >&6; }
15055 if test "${libgo_cv_lib_setcontext_clobbers_tls+set}" = set; then :
15056 $as_echo_n "(cached) " >&6
15057 else
15058 CFLAGS_hold="$CFLAGS"
15059 CFLAGS="$PTHREAD_CFLAGS"
15060 LIBS_hold="$LIBS"
15061 LIBS="$LIBS $PTHREAD_LIBS"
15062 # The cast to long int works around a bug in the HP C Compiler
15063 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15064 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15065 # This bug is HP SR number 8606223364.
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15067 $as_echo_n "checking size of void *... " >&6; }
15068 if test "${ac_cv_sizeof_void_p+set}" = set; then :
15069 $as_echo_n "(cached) " >&6
15070 else
15071 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15073 else
15074 if test "$ac_cv_type_void_p" = yes; then
15075 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15077 { as_fn_set_status 77
15078 as_fn_error "cannot compute sizeof (void *)
15079 See \`config.log' for more details." "$LINENO" 5; }; }
15080 else
15081 ac_cv_sizeof_void_p=0
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15087 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15091 cat >>confdefs.h <<_ACEOF
15092 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15093 _ACEOF
15096 as_fn_arith $ac_cv_sizeof_void_p \* 8 && ptr_type_size=$as_val
15097 if test "$cross_compiling" = yes; then :
15098 case "$target:$ptr_type_size" in
15099 i?86-*-solaris2.1[01]:64 | x86_64*-*-solaris2.1[01]:64)
15100 libgo_cv_lib_setcontext_clobbers_tls=yes ;;
15102 libgo_cv_lib_setcontext_clobbers_tls=no ;;
15103 esac
15105 else
15106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15107 /* end confdefs.h. */
15109 #include <pthread.h>
15110 #include <stdlib.h>
15111 #include <ucontext.h>
15112 #include <unistd.h>
15114 __thread int tls;
15116 static char stack[10 * 1024 * 1024];
15117 static ucontext_t c;
15119 /* Called via makecontext/setcontext. */
15121 static void
15122 cfn (void)
15124 exit (tls);
15127 /* Called via pthread_create. */
15129 static void *
15130 tfn (void *dummy)
15132 /* The thread should still see this value after calling
15133 setcontext. */
15134 tls = 0;
15136 setcontext (&c);
15138 /* The call to setcontext should not return. */
15139 abort ();
15143 main ()
15145 pthread_t tid;
15147 /* The thread should not see this value. */
15148 tls = 1;
15150 if (getcontext (&c) < 0)
15151 abort ();
15153 c.uc_stack.ss_sp = stack;
15154 #ifdef MAKECONTEXT_STACK_TOP
15155 c.uc_stack.ss_sp += sizeof stack;
15156 #endif
15157 c.uc_stack.ss_flags = 0;
15158 c.uc_stack.ss_size = sizeof stack;
15159 c.uc_link = NULL;
15160 makecontext (&c, cfn, 0);
15162 if (pthread_create (&tid, NULL, tfn, NULL) != 0)
15163 abort ();
15165 if (pthread_join (tid, NULL) != 0)
15166 abort ();
15168 /* The thread should have called exit. */
15169 abort ();
15172 _ACEOF
15173 if ac_fn_c_try_run "$LINENO"; then :
15174 libgo_cv_lib_setcontext_clobbers_tls=no
15175 else
15176 libgo_cv_lib_setcontext_clobbers_tls=yes
15178 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15179 conftest.$ac_objext conftest.beam conftest.$ac_ext
15182 CFLAGS="$CFLAGS_hold"
15183 LIBS="$LIBS_hold"
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_setcontext_clobbers_tls" >&5
15187 $as_echo "$libgo_cv_lib_setcontext_clobbers_tls" >&6; }
15188 if test "$libgo_cv_lib_setcontext_clobbers_tls" = "yes"; then
15190 $as_echo "#define SETCONTEXT_CLOBBERS_TLS 1" >>confdefs.h
15194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
15195 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
15196 if test "${libgo_cv_ro_eh_frame+set}" = set; then :
15197 $as_echo_n "(cached) " >&6
15198 else
15200 libgo_cv_ro_eh_frame=no
15201 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
15202 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
15203 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
15204 libgo_cv_ro_eh_frame=yes
15205 elif grep '.section.*eh_frame.*#alloc' conftest.c \
15206 | grep -v '#write' > /dev/null; then
15207 libgo_cv_ro_eh_frame=yes
15210 rm -f conftest.*
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ro_eh_frame" >&5
15214 $as_echo "$libgo_cv_ro_eh_frame" >&6; }
15215 if test "x$libgo_cv_ro_eh_frame" = xyes; then
15217 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
15219 else
15221 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports GNU comdat group syntax" >&5
15226 $as_echo_n "checking if assembler supports GNU comdat group syntax... " >&6; }
15227 if test "${libgo_cv_as_comdat_gnu+set}" = set; then :
15228 $as_echo_n "(cached) " >&6
15229 else
15231 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
15232 if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
15233 libgo_cv_as_comdat_gnu=yes
15234 else
15235 libgo_cv_as_comdat_gnu=no
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_comdat_gnu" >&5
15240 $as_echo "$libgo_cv_as_comdat_gnu" >&6; }
15241 if test "x$libgo_cv_as_comdat_gnu" = xyes; then
15243 $as_echo "#define HAVE_AS_COMDAT_GAS 1" >>confdefs.h
15247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
15248 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
15249 if test "${libgo_cv_as_x86_pcrel+set}" = set; then :
15250 $as_echo_n "(cached) " >&6
15251 else
15253 libgo_cv_as_x86_pcrel=yes
15254 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
15255 if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
15256 libgo_cv_as_x86_pcrel=no
15260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_pcrel" >&5
15261 $as_echo "$libgo_cv_as_x86_pcrel" >&6; }
15262 if test "x$libgo_cv_as_x86_pcrel" = xyes; then
15264 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
15268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
15269 $as_echo_n "checking assembler supports unwind section type... " >&6; }
15270 if test "${libgo_cv_as_x86_64_unwind_section_type+set}" = set; then :
15271 $as_echo_n "(cached) " >&6
15272 else
15274 libgo_cv_as_x86_64_unwind_section_type=yes
15275 echo '.section .eh_frame,"a",@unwind' > conftest.s
15276 if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
15277 libgo_cv_as_x86_64_unwind_section_type=no
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_64_unwind_section_type" >&5
15282 $as_echo "$libgo_cv_as_x86_64_unwind_section_type" >&6; }
15283 if test "x$libgo_cv_as_x86_64_unwind_section_type" = xyes; then
15285 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
15289 cat >confcache <<\_ACEOF
15290 # This file is a shell script that caches the results of configure
15291 # tests run on this system so they can be shared between configure
15292 # scripts and configure runs, see configure's option --config-cache.
15293 # It is not useful on other systems. If it contains results you don't
15294 # want to keep, you may remove or edit it.
15296 # config.status only pays attention to the cache file if you give it
15297 # the --recheck option to rerun configure.
15299 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15300 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15301 # following values.
15303 _ACEOF
15305 # The following way of writing the cache mishandles newlines in values,
15306 # but we know of no workaround that is simple, portable, and efficient.
15307 # So, we kill variables containing newlines.
15308 # Ultrix sh set writes to stderr and can't be redirected directly,
15309 # and sets the high bit in the cache file unless we assign to the vars.
15311 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15312 eval ac_val=\$$ac_var
15313 case $ac_val in #(
15314 *${as_nl}*)
15315 case $ac_var in #(
15316 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15317 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15318 esac
15319 case $ac_var in #(
15320 _ | IFS | as_nl) ;; #(
15321 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15322 *) { eval $ac_var=; unset $ac_var;} ;;
15323 esac ;;
15324 esac
15325 done
15327 (set) 2>&1 |
15328 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15329 *${as_nl}ac_space=\ *)
15330 # `set' does not quote correctly, so add quotes: double-quote
15331 # substitution turns \\\\ into \\, and sed turns \\ into \.
15332 sed -n \
15333 "s/'/'\\\\''/g;
15334 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15335 ;; #(
15337 # `set' quotes correctly as required by POSIX, so do not add quotes.
15338 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15340 esac |
15341 sort
15343 sed '
15344 /^ac_cv_env_/b end
15345 t clear
15346 :clear
15347 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15348 t end
15349 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15350 :end' >>confcache
15351 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15352 if test -w "$cache_file"; then
15353 test "x$cache_file" != "x/dev/null" &&
15354 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15355 $as_echo "$as_me: updating cache $cache_file" >&6;}
15356 cat confcache >$cache_file
15357 else
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15359 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15362 rm -f confcache
15364 if test ${multilib} = yes; then
15365 multilib_arg="--enable-multilib"
15366 else
15367 multilib_arg=
15370 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
15373 ac_config_commands="$ac_config_commands default"
15376 cat >confcache <<\_ACEOF
15377 # This file is a shell script that caches the results of configure
15378 # tests run on this system so they can be shared between configure
15379 # scripts and configure runs, see configure's option --config-cache.
15380 # It is not useful on other systems. If it contains results you don't
15381 # want to keep, you may remove or edit it.
15383 # config.status only pays attention to the cache file if you give it
15384 # the --recheck option to rerun configure.
15386 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15387 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15388 # following values.
15390 _ACEOF
15392 # The following way of writing the cache mishandles newlines in values,
15393 # but we know of no workaround that is simple, portable, and efficient.
15394 # So, we kill variables containing newlines.
15395 # Ultrix sh set writes to stderr and can't be redirected directly,
15396 # and sets the high bit in the cache file unless we assign to the vars.
15398 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15399 eval ac_val=\$$ac_var
15400 case $ac_val in #(
15401 *${as_nl}*)
15402 case $ac_var in #(
15403 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15404 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15405 esac
15406 case $ac_var in #(
15407 _ | IFS | as_nl) ;; #(
15408 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15409 *) { eval $ac_var=; unset $ac_var;} ;;
15410 esac ;;
15411 esac
15412 done
15414 (set) 2>&1 |
15415 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15416 *${as_nl}ac_space=\ *)
15417 # `set' does not quote correctly, so add quotes: double-quote
15418 # substitution turns \\\\ into \\, and sed turns \\ into \.
15419 sed -n \
15420 "s/'/'\\\\''/g;
15421 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15422 ;; #(
15424 # `set' quotes correctly as required by POSIX, so do not add quotes.
15425 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15427 esac |
15428 sort
15430 sed '
15431 /^ac_cv_env_/b end
15432 t clear
15433 :clear
15434 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15435 t end
15436 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15437 :end' >>confcache
15438 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15439 if test -w "$cache_file"; then
15440 test "x$cache_file" != "x/dev/null" &&
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15442 $as_echo "$as_me: updating cache $cache_file" >&6;}
15443 cat confcache >$cache_file
15444 else
15445 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15446 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15449 rm -f confcache
15451 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15452 # Let make expand exec_prefix.
15453 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15455 DEFS=-DHAVE_CONFIG_H
15457 ac_libobjs=
15458 ac_ltlibobjs=
15459 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15460 # 1. Remove the extension, and $U if already installed.
15461 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15462 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15463 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15464 # will be set to the directory where LIBOBJS objects are built.
15465 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15466 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15467 done
15468 LIBOBJS=$ac_libobjs
15470 LTLIBOBJS=$ac_ltlibobjs
15473 if test -n "$EXEEXT"; then
15474 am__EXEEXT_TRUE=
15475 am__EXEEXT_FALSE='#'
15476 else
15477 am__EXEEXT_TRUE='#'
15478 am__EXEEXT_FALSE=
15481 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15482 as_fn_error "conditional \"AMDEP\" was never defined.
15483 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15485 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15486 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15487 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15489 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15490 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15491 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15493 if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
15494 as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined.
15495 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15497 if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
15498 as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined.
15499 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15501 if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
15502 as_fn_error "conditional \"LIBGO_IS_IRIX\" was never defined.
15503 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15505 if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
15506 as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined.
15507 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15509 if test -z "${LIBGO_IS_NETBSD_TRUE}" && test -z "${LIBGO_IS_NETBSD_FALSE}"; then
15510 as_fn_error "conditional \"LIBGO_IS_NETBSD\" was never defined.
15511 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15513 if test -z "${LIBGO_IS_OPENBSD_TRUE}" && test -z "${LIBGO_IS_OPENBSD_FALSE}"; then
15514 as_fn_error "conditional \"LIBGO_IS_OPENBSD\" was never defined.
15515 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15517 if test -z "${LIBGO_IS_DRAGONFLY_TRUE}" && test -z "${LIBGO_IS_DRAGONFLY_FALSE}"; then
15518 as_fn_error "conditional \"LIBGO_IS_DRAGONFLY\" was never defined.
15519 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15521 if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
15522 as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined.
15523 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15525 if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
15526 as_fn_error "conditional \"LIBGO_IS_SOLARIS\" was never defined.
15527 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15529 if test -z "${LIBGO_IS_386_TRUE}" && test -z "${LIBGO_IS_386_FALSE}"; then
15530 as_fn_error "conditional \"LIBGO_IS_386\" was never defined.
15531 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15533 if test -z "${LIBGO_IS_ALPHA_TRUE}" && test -z "${LIBGO_IS_ALPHA_FALSE}"; then
15534 as_fn_error "conditional \"LIBGO_IS_ALPHA\" was never defined.
15535 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15537 if test -z "${LIBGO_IS_ARM_TRUE}" && test -z "${LIBGO_IS_ARM_FALSE}"; then
15538 as_fn_error "conditional \"LIBGO_IS_ARM\" was never defined.
15539 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15541 if test -z "${LIBGO_IS_M68K_TRUE}" && test -z "${LIBGO_IS_M68K_FALSE}"; then
15542 as_fn_error "conditional \"LIBGO_IS_M68K\" was never defined.
15543 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15545 if test -z "${LIBGO_IS_MIPS_TRUE}" && test -z "${LIBGO_IS_MIPS_FALSE}"; then
15546 as_fn_error "conditional \"LIBGO_IS_MIPS\" was never defined.
15547 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15549 if test -z "${LIBGO_IS_MIPSO32_TRUE}" && test -z "${LIBGO_IS_MIPSO32_FALSE}"; then
15550 as_fn_error "conditional \"LIBGO_IS_MIPSO32\" was never defined.
15551 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15553 if test -z "${LIBGO_IS_MIPSN32_TRUE}" && test -z "${LIBGO_IS_MIPSN32_FALSE}"; then
15554 as_fn_error "conditional \"LIBGO_IS_MIPSN32\" was never defined.
15555 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15557 if test -z "${LIBGO_IS_MIPSN64_TRUE}" && test -z "${LIBGO_IS_MIPSN64_FALSE}"; then
15558 as_fn_error "conditional \"LIBGO_IS_MIPSN64\" was never defined.
15559 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15561 if test -z "${LIBGO_IS_MIPSO64_TRUE}" && test -z "${LIBGO_IS_MIPSO64_FALSE}"; then
15562 as_fn_error "conditional \"LIBGO_IS_MIPSO64\" was never defined.
15563 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15565 if test -z "${LIBGO_IS_PPC_TRUE}" && test -z "${LIBGO_IS_PPC_FALSE}"; then
15566 as_fn_error "conditional \"LIBGO_IS_PPC\" was never defined.
15567 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15569 if test -z "${LIBGO_IS_PPC64_TRUE}" && test -z "${LIBGO_IS_PPC64_FALSE}"; then
15570 as_fn_error "conditional \"LIBGO_IS_PPC64\" was never defined.
15571 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15573 if test -z "${LIBGO_IS_SPARC_TRUE}" && test -z "${LIBGO_IS_SPARC_FALSE}"; then
15574 as_fn_error "conditional \"LIBGO_IS_SPARC\" was never defined.
15575 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15577 if test -z "${LIBGO_IS_SPARC64_TRUE}" && test -z "${LIBGO_IS_SPARC64_FALSE}"; then
15578 as_fn_error "conditional \"LIBGO_IS_SPARC64\" was never defined.
15579 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15581 if test -z "${LIBGO_IS_X86_64_TRUE}" && test -z "${LIBGO_IS_X86_64_FALSE}"; then
15582 as_fn_error "conditional \"LIBGO_IS_X86_64\" was never defined.
15583 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15585 if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
15586 as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined.
15587 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15590 if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
15591 as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined.
15592 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15594 if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
15595 as_fn_error "conditional \"HAVE_STRERROR_R\" was never defined.
15596 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15598 if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
15599 as_fn_error "conditional \"HAVE_WAIT4\" was never defined.
15600 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15603 : ${CONFIG_STATUS=./config.status}
15604 ac_write_fail=0
15605 ac_clean_files_save=$ac_clean_files
15606 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15608 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15609 as_write_fail=0
15610 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15611 #! $SHELL
15612 # Generated by $as_me.
15613 # Run this file to recreate the current configuration.
15614 # Compiler output produced by configure, useful for debugging
15615 # configure, is in config.log if it exists.
15617 debug=false
15618 ac_cs_recheck=false
15619 ac_cs_silent=false
15621 SHELL=\${CONFIG_SHELL-$SHELL}
15622 export SHELL
15623 _ASEOF
15624 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15625 ## -------------------- ##
15626 ## M4sh Initialization. ##
15627 ## -------------------- ##
15629 # Be more Bourne compatible
15630 DUALCASE=1; export DUALCASE # for MKS sh
15631 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15632 emulate sh
15633 NULLCMD=:
15634 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15635 # is contrary to our usage. Disable this feature.
15636 alias -g '${1+"$@"}'='"$@"'
15637 setopt NO_GLOB_SUBST
15638 else
15639 case `(set -o) 2>/dev/null` in #(
15640 *posix*) :
15641 set -o posix ;; #(
15642 *) :
15644 esac
15648 as_nl='
15650 export as_nl
15651 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15652 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15653 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15654 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15655 # Prefer a ksh shell builtin over an external printf program on Solaris,
15656 # but without wasting forks for bash or zsh.
15657 if test -z "$BASH_VERSION$ZSH_VERSION" \
15658 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15659 as_echo='print -r --'
15660 as_echo_n='print -rn --'
15661 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15662 as_echo='printf %s\n'
15663 as_echo_n='printf %s'
15664 else
15665 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15666 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15667 as_echo_n='/usr/ucb/echo -n'
15668 else
15669 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15670 as_echo_n_body='eval
15671 arg=$1;
15672 case $arg in #(
15673 *"$as_nl"*)
15674 expr "X$arg" : "X\\(.*\\)$as_nl";
15675 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15676 esac;
15677 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15679 export as_echo_n_body
15680 as_echo_n='sh -c $as_echo_n_body as_echo'
15682 export as_echo_body
15683 as_echo='sh -c $as_echo_body as_echo'
15686 # The user is always right.
15687 if test "${PATH_SEPARATOR+set}" != set; then
15688 PATH_SEPARATOR=:
15689 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15690 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15691 PATH_SEPARATOR=';'
15696 # IFS
15697 # We need space, tab and new line, in precisely that order. Quoting is
15698 # there to prevent editors from complaining about space-tab.
15699 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15700 # splitting by setting IFS to empty value.)
15701 IFS=" "" $as_nl"
15703 # Find who we are. Look in the path if we contain no directory separator.
15704 case $0 in #((
15705 *[\\/]* ) as_myself=$0 ;;
15706 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15707 for as_dir in $PATH
15709 IFS=$as_save_IFS
15710 test -z "$as_dir" && as_dir=.
15711 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15712 done
15713 IFS=$as_save_IFS
15716 esac
15717 # We did not find ourselves, most probably we were run as `sh COMMAND'
15718 # in which case we are not to be found in the path.
15719 if test "x$as_myself" = x; then
15720 as_myself=$0
15722 if test ! -f "$as_myself"; then
15723 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15724 exit 1
15727 # Unset variables that we do not need and which cause bugs (e.g. in
15728 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15729 # suppresses any "Segmentation fault" message there. '((' could
15730 # trigger a bug in pdksh 5.2.14.
15731 for as_var in BASH_ENV ENV MAIL MAILPATH
15732 do eval test x\${$as_var+set} = xset \
15733 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15734 done
15735 PS1='$ '
15736 PS2='> '
15737 PS4='+ '
15739 # NLS nuisances.
15740 LC_ALL=C
15741 export LC_ALL
15742 LANGUAGE=C
15743 export LANGUAGE
15745 # CDPATH.
15746 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15749 # as_fn_error ERROR [LINENO LOG_FD]
15750 # ---------------------------------
15751 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15752 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15753 # script with status $?, using 1 if that was 0.
15754 as_fn_error ()
15756 as_status=$?; test $as_status -eq 0 && as_status=1
15757 if test "$3"; then
15758 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15759 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15761 $as_echo "$as_me: error: $1" >&2
15762 as_fn_exit $as_status
15763 } # as_fn_error
15766 # as_fn_set_status STATUS
15767 # -----------------------
15768 # Set $? to STATUS, without forking.
15769 as_fn_set_status ()
15771 return $1
15772 } # as_fn_set_status
15774 # as_fn_exit STATUS
15775 # -----------------
15776 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15777 as_fn_exit ()
15779 set +e
15780 as_fn_set_status $1
15781 exit $1
15782 } # as_fn_exit
15784 # as_fn_unset VAR
15785 # ---------------
15786 # Portably unset VAR.
15787 as_fn_unset ()
15789 { eval $1=; unset $1;}
15791 as_unset=as_fn_unset
15792 # as_fn_append VAR VALUE
15793 # ----------------------
15794 # Append the text in VALUE to the end of the definition contained in VAR. Take
15795 # advantage of any shell optimizations that allow amortized linear growth over
15796 # repeated appends, instead of the typical quadratic growth present in naive
15797 # implementations.
15798 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15799 eval 'as_fn_append ()
15801 eval $1+=\$2
15803 else
15804 as_fn_append ()
15806 eval $1=\$$1\$2
15808 fi # as_fn_append
15810 # as_fn_arith ARG...
15811 # ------------------
15812 # Perform arithmetic evaluation on the ARGs, and store the result in the
15813 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15814 # must be portable across $(()) and expr.
15815 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15816 eval 'as_fn_arith ()
15818 as_val=$(( $* ))
15820 else
15821 as_fn_arith ()
15823 as_val=`expr "$@" || test $? -eq 1`
15825 fi # as_fn_arith
15828 if expr a : '\(a\)' >/dev/null 2>&1 &&
15829 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15830 as_expr=expr
15831 else
15832 as_expr=false
15835 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15836 as_basename=basename
15837 else
15838 as_basename=false
15841 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15842 as_dirname=dirname
15843 else
15844 as_dirname=false
15847 as_me=`$as_basename -- "$0" ||
15848 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15849 X"$0" : 'X\(//\)$' \| \
15850 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15851 $as_echo X/"$0" |
15852 sed '/^.*\/\([^/][^/]*\)\/*$/{
15853 s//\1/
15856 /^X\/\(\/\/\)$/{
15857 s//\1/
15860 /^X\/\(\/\).*/{
15861 s//\1/
15864 s/.*/./; q'`
15866 # Avoid depending upon Character Ranges.
15867 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15868 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15869 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15870 as_cr_digits='0123456789'
15871 as_cr_alnum=$as_cr_Letters$as_cr_digits
15873 ECHO_C= ECHO_N= ECHO_T=
15874 case `echo -n x` in #(((((
15875 -n*)
15876 case `echo 'xy\c'` in
15877 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15878 xy) ECHO_C='\c';;
15879 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15880 ECHO_T=' ';;
15881 esac;;
15883 ECHO_N='-n';;
15884 esac
15886 rm -f conf$$ conf$$.exe conf$$.file
15887 if test -d conf$$.dir; then
15888 rm -f conf$$.dir/conf$$.file
15889 else
15890 rm -f conf$$.dir
15891 mkdir conf$$.dir 2>/dev/null
15893 if (echo >conf$$.file) 2>/dev/null; then
15894 if ln -s conf$$.file conf$$ 2>/dev/null; then
15895 as_ln_s='ln -s'
15896 # ... but there are two gotchas:
15897 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15898 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15899 # In both cases, we have to default to `cp -p'.
15900 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15901 as_ln_s='cp -p'
15902 elif ln conf$$.file conf$$ 2>/dev/null; then
15903 as_ln_s=ln
15904 else
15905 as_ln_s='cp -p'
15907 else
15908 as_ln_s='cp -p'
15910 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15911 rmdir conf$$.dir 2>/dev/null
15914 # as_fn_mkdir_p
15915 # -------------
15916 # Create "$as_dir" as a directory, including parents if necessary.
15917 as_fn_mkdir_p ()
15920 case $as_dir in #(
15921 -*) as_dir=./$as_dir;;
15922 esac
15923 test -d "$as_dir" || eval $as_mkdir_p || {
15924 as_dirs=
15925 while :; do
15926 case $as_dir in #(
15927 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15928 *) as_qdir=$as_dir;;
15929 esac
15930 as_dirs="'$as_qdir' $as_dirs"
15931 as_dir=`$as_dirname -- "$as_dir" ||
15932 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15933 X"$as_dir" : 'X\(//\)[^/]' \| \
15934 X"$as_dir" : 'X\(//\)$' \| \
15935 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15936 $as_echo X"$as_dir" |
15937 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15938 s//\1/
15941 /^X\(\/\/\)[^/].*/{
15942 s//\1/
15945 /^X\(\/\/\)$/{
15946 s//\1/
15949 /^X\(\/\).*/{
15950 s//\1/
15953 s/.*/./; q'`
15954 test -d "$as_dir" && break
15955 done
15956 test -z "$as_dirs" || eval "mkdir $as_dirs"
15957 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15960 } # as_fn_mkdir_p
15961 if mkdir -p . 2>/dev/null; then
15962 as_mkdir_p='mkdir -p "$as_dir"'
15963 else
15964 test -d ./-p && rmdir ./-p
15965 as_mkdir_p=false
15968 if test -x / >/dev/null 2>&1; then
15969 as_test_x='test -x'
15970 else
15971 if ls -dL / >/dev/null 2>&1; then
15972 as_ls_L_option=L
15973 else
15974 as_ls_L_option=
15976 as_test_x='
15977 eval sh -c '\''
15978 if test -d "$1"; then
15979 test -d "$1/.";
15980 else
15981 case $1 in #(
15982 -*)set "./$1";;
15983 esac;
15984 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15985 ???[sx]*):;;*)false;;esac;fi
15986 '\'' sh
15989 as_executable_p=$as_test_x
15991 # Sed expression to map a string onto a valid CPP name.
15992 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15994 # Sed expression to map a string onto a valid variable name.
15995 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15998 exec 6>&1
15999 ## ----------------------------------- ##
16000 ## Main body of $CONFIG_STATUS script. ##
16001 ## ----------------------------------- ##
16002 _ASEOF
16003 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16005 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16006 # Save the log message, to keep $0 and so on meaningful, and to
16007 # report actual input values of CONFIG_FILES etc. instead of their
16008 # values after options handling.
16009 ac_log="
16010 This file was extended by package-unused $as_me version-unused, which was
16011 generated by GNU Autoconf 2.64. Invocation command line was
16013 CONFIG_FILES = $CONFIG_FILES
16014 CONFIG_HEADERS = $CONFIG_HEADERS
16015 CONFIG_LINKS = $CONFIG_LINKS
16016 CONFIG_COMMANDS = $CONFIG_COMMANDS
16017 $ $0 $@
16019 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16022 _ACEOF
16024 case $ac_config_files in *"
16025 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16026 esac
16028 case $ac_config_headers in *"
16029 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16030 esac
16033 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16034 # Files that config.status was made for.
16035 config_files="$ac_config_files"
16036 config_headers="$ac_config_headers"
16037 config_commands="$ac_config_commands"
16039 _ACEOF
16041 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16042 ac_cs_usage="\
16043 \`$as_me' instantiates files and other configuration actions
16044 from templates according to the current configuration. Unless the files
16045 and actions are specified as TAGs, all are instantiated by default.
16047 Usage: $0 [OPTION]... [TAG]...
16049 -h, --help print this help, then exit
16050 -V, --version print version number and configuration settings, then exit
16051 -q, --quiet, --silent
16052 do not print progress messages
16053 -d, --debug don't remove temporary files
16054 --recheck update $as_me by reconfiguring in the same conditions
16055 --file=FILE[:TEMPLATE]
16056 instantiate the configuration file FILE
16057 --header=FILE[:TEMPLATE]
16058 instantiate the configuration header FILE
16060 Configuration files:
16061 $config_files
16063 Configuration headers:
16064 $config_headers
16066 Configuration commands:
16067 $config_commands
16069 Report bugs to the package provider."
16071 _ACEOF
16072 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16073 ac_cs_version="\\
16074 package-unused config.status version-unused
16075 configured by $0, generated by GNU Autoconf 2.64,
16076 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16078 Copyright (C) 2009 Free Software Foundation, Inc.
16079 This config.status script is free software; the Free Software Foundation
16080 gives unlimited permission to copy, distribute and modify it."
16082 ac_pwd='$ac_pwd'
16083 srcdir='$srcdir'
16084 INSTALL='$INSTALL'
16085 MKDIR_P='$MKDIR_P'
16086 AWK='$AWK'
16087 test -n "\$AWK" || AWK=awk
16088 _ACEOF
16090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16091 # The default lists apply if the user does not specify any file.
16092 ac_need_defaults=:
16093 while test $# != 0
16095 case $1 in
16096 --*=*)
16097 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16098 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16099 ac_shift=:
16102 ac_option=$1
16103 ac_optarg=$2
16104 ac_shift=shift
16106 esac
16108 case $ac_option in
16109 # Handling of the options.
16110 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16111 ac_cs_recheck=: ;;
16112 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16113 $as_echo "$ac_cs_version"; exit ;;
16114 --debug | --debu | --deb | --de | --d | -d )
16115 debug=: ;;
16116 --file | --fil | --fi | --f )
16117 $ac_shift
16118 case $ac_optarg in
16119 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16120 esac
16121 as_fn_append CONFIG_FILES " '$ac_optarg'"
16122 ac_need_defaults=false;;
16123 --header | --heade | --head | --hea )
16124 $ac_shift
16125 case $ac_optarg in
16126 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16127 esac
16128 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16129 ac_need_defaults=false;;
16130 --he | --h)
16131 # Conflict between --help and --header
16132 as_fn_error "ambiguous option: \`$1'
16133 Try \`$0 --help' for more information.";;
16134 --help | --hel | -h )
16135 $as_echo "$ac_cs_usage"; exit ;;
16136 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16137 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16138 ac_cs_silent=: ;;
16140 # This is an error.
16141 -*) as_fn_error "unrecognized option: \`$1'
16142 Try \`$0 --help' for more information." ;;
16144 *) as_fn_append ac_config_targets " $1"
16145 ac_need_defaults=false ;;
16147 esac
16148 shift
16149 done
16151 ac_configure_extra_args=
16153 if $ac_cs_silent; then
16154 exec 6>/dev/null
16155 ac_configure_extra_args="$ac_configure_extra_args --silent"
16158 _ACEOF
16159 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16160 if \$ac_cs_recheck; then
16161 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16162 shift
16163 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16164 CONFIG_SHELL='$SHELL'
16165 export CONFIG_SHELL
16166 exec "\$@"
16169 _ACEOF
16170 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16171 exec 5>>config.log
16173 echo
16174 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16175 ## Running $as_me. ##
16176 _ASBOX
16177 $as_echo "$ac_log"
16178 } >&5
16180 _ACEOF
16181 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16183 # INIT-COMMANDS
16186 srcdir="$srcdir"
16187 host="$host"
16188 target="$target"
16189 with_multisubdir="$with_multisubdir"
16190 with_multisrctop="$with_multisrctop"
16191 with_target_subdir="$with_target_subdir"
16192 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16193 multi_basedir="$multi_basedir"
16194 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16195 CC="$CC"
16196 CXX="$CXX"
16197 GFORTRAN="$GFORTRAN"
16198 GCJ="$GCJ"
16199 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16202 # The HP-UX ksh and POSIX shell print the target directory to stdout
16203 # if CDPATH is set.
16204 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16206 sed_quote_subst='$sed_quote_subst'
16207 double_quote_subst='$double_quote_subst'
16208 delay_variable_subst='$delay_variable_subst'
16209 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16210 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16211 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16212 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16213 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16214 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16215 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16216 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16217 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16218 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16219 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16220 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16221 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16222 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16223 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16224 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16225 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16226 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16227 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16228 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16229 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16230 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16231 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16232 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16233 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16234 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16235 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16236 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16237 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16238 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16239 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16240 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16241 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16242 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16243 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16244 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16245 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16246 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16247 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16248 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16249 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16250 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16251 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16252 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16253 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16254 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16255 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16256 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16257 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"`'
16258 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16259 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16260 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16261 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16262 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16263 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16264 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16265 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16266 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16267 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16268 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16269 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16270 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16271 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16272 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16273 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16274 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16275 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16276 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16277 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16278 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16279 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16280 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16281 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16282 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16283 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16284 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16285 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16286 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16287 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16288 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16289 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16290 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16291 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16292 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16293 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16294 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16295 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16296 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16297 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16298 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16299 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16300 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16301 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16302 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16303 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16304 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16305 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16306 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16307 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16308 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16309 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16310 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16311 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16312 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16313 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16314 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16315 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16316 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16317 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16318 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16319 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16320 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16321 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16322 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16323 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16324 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16325 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16326 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16327 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16328 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16329 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
16330 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
16331 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
16332 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16333 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
16334 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
16335 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
16336 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
16337 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
16338 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
16339 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
16340 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
16341 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
16342 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16343 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16344 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
16345 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
16346 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
16347 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16348 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16349 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
16350 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16351 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
16352 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16353 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16354 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16355 hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
16356 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
16357 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
16358 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
16359 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
16360 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
16361 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
16362 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
16363 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
16364 fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
16365 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
16366 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
16367 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16368 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16369 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
16370 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
16371 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
16373 LTCC='$LTCC'
16374 LTCFLAGS='$LTCFLAGS'
16375 compiler='$compiler_DEFAULT'
16377 # A function that is used when there is no print builtin or printf.
16378 func_fallback_echo ()
16380 eval 'cat <<_LTECHO_EOF
16382 _LTECHO_EOF'
16385 # Quote evaled strings.
16386 for var in SED \
16387 GREP \
16388 EGREP \
16389 FGREP \
16390 SHELL \
16391 ECHO \
16392 LD \
16393 NM \
16394 LN_S \
16395 lt_SP2NL \
16396 lt_NL2SP \
16397 reload_flag \
16398 OBJDUMP \
16399 deplibs_check_method \
16400 file_magic_cmd \
16401 AR \
16402 AR_FLAGS \
16403 STRIP \
16404 RANLIB \
16405 CC \
16406 CFLAGS \
16407 compiler \
16408 lt_cv_sys_global_symbol_pipe \
16409 lt_cv_sys_global_symbol_to_cdecl \
16410 lt_cv_sys_global_symbol_to_c_name_address \
16411 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16412 lt_prog_compiler_no_builtin_flag \
16413 lt_prog_compiler_wl \
16414 lt_prog_compiler_pic \
16415 lt_prog_compiler_static \
16416 lt_cv_prog_compiler_c_o \
16417 need_locks \
16418 DSYMUTIL \
16419 NMEDIT \
16420 LIPO \
16421 OTOOL \
16422 OTOOL64 \
16423 shrext_cmds \
16424 export_dynamic_flag_spec \
16425 whole_archive_flag_spec \
16426 compiler_needs_object \
16427 with_gnu_ld \
16428 allow_undefined_flag \
16429 no_undefined_flag \
16430 hardcode_libdir_flag_spec \
16431 hardcode_libdir_flag_spec_ld \
16432 hardcode_libdir_separator \
16433 fix_srcfile_path \
16434 exclude_expsyms \
16435 include_expsyms \
16436 file_list_spec \
16437 variables_saved_for_relink \
16438 libname_spec \
16439 library_names_spec \
16440 soname_spec \
16441 install_override_mode \
16442 finish_eval \
16443 old_striplib \
16444 striplib \
16445 LD_GO \
16446 reload_flag_GO \
16447 compiler_GO \
16448 lt_prog_compiler_no_builtin_flag_GO \
16449 lt_prog_compiler_wl_GO \
16450 lt_prog_compiler_pic_GO \
16451 lt_prog_compiler_static_GO \
16452 lt_cv_prog_compiler_c_o_GO \
16453 export_dynamic_flag_spec_GO \
16454 whole_archive_flag_spec_GO \
16455 compiler_needs_object_GO \
16456 with_gnu_ld_GO \
16457 allow_undefined_flag_GO \
16458 no_undefined_flag_GO \
16459 hardcode_libdir_flag_spec_GO \
16460 hardcode_libdir_flag_spec_ld_GO \
16461 hardcode_libdir_separator_GO \
16462 fix_srcfile_path_GO \
16463 exclude_expsyms_GO \
16464 include_expsyms_GO \
16465 file_list_spec_GO; do
16466 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16467 *[\\\\\\\`\\"\\\$]*)
16468 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16471 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16473 esac
16474 done
16476 # Double-quote double-evaled strings.
16477 for var in reload_cmds \
16478 old_postinstall_cmds \
16479 old_postuninstall_cmds \
16480 old_archive_cmds \
16481 extract_expsyms_cmds \
16482 old_archive_from_new_cmds \
16483 old_archive_from_expsyms_cmds \
16484 archive_cmds \
16485 archive_expsym_cmds \
16486 module_cmds \
16487 module_expsym_cmds \
16488 export_symbols_cmds \
16489 prelink_cmds \
16490 postinstall_cmds \
16491 postuninstall_cmds \
16492 finish_cmds \
16493 sys_lib_search_path_spec \
16494 sys_lib_dlsearch_path_spec \
16495 reload_cmds_GO \
16496 old_archive_cmds_GO \
16497 old_archive_from_new_cmds_GO \
16498 old_archive_from_expsyms_cmds_GO \
16499 archive_cmds_GO \
16500 archive_expsym_cmds_GO \
16501 module_cmds_GO \
16502 module_expsym_cmds_GO \
16503 export_symbols_cmds_GO \
16504 prelink_cmds_GO; do
16505 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16506 *[\\\\\\\`\\"\\\$]*)
16507 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16510 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16512 esac
16513 done
16515 ac_aux_dir='$ac_aux_dir'
16516 xsi_shell='$xsi_shell'
16517 lt_shell_append='$lt_shell_append'
16519 # See if we are running on zsh, and set the options which allow our
16520 # commands through without removal of \ escapes INIT.
16521 if test -n "\${ZSH_VERSION+set}" ; then
16522 setopt NO_GLOB_SUBST
16526 PACKAGE='$PACKAGE'
16527 VERSION='$VERSION'
16528 TIMESTAMP='$TIMESTAMP'
16529 RM='$RM'
16530 ofile='$ofile'
16537 # Variables needed in config.status (file generation) which aren't already
16538 # passed by autoconf.
16539 SUBDIRS="$SUBDIRS"
16542 _ACEOF
16544 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16546 # Handling of arguments.
16547 for ac_config_target in $ac_config_targets
16549 case $ac_config_target in
16550 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16551 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16552 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16553 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16554 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16555 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16556 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16558 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16559 esac
16560 done
16563 # If the user did not use the arguments to specify the items to instantiate,
16564 # then the envvar interface is used. Set only those that are not.
16565 # We use the long form for the default assignment because of an extremely
16566 # bizarre bug on SunOS 4.1.3.
16567 if $ac_need_defaults; then
16568 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16569 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16570 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16573 # Have a temporary directory for convenience. Make it in the build tree
16574 # simply because there is no reason against having it here, and in addition,
16575 # creating and moving files from /tmp can sometimes cause problems.
16576 # Hook for its removal unless debugging.
16577 # Note that there is a small window in which the directory will not be cleaned:
16578 # after its creation but before its name has been assigned to `$tmp'.
16579 $debug ||
16581 tmp=
16582 trap 'exit_status=$?
16583 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16585 trap 'as_fn_exit 1' 1 2 13 15
16587 # Create a (secure) tmp directory for tmp files.
16590 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16591 test -n "$tmp" && test -d "$tmp"
16592 } ||
16594 tmp=./conf$$-$RANDOM
16595 (umask 077 && mkdir "$tmp")
16596 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16598 # Set up the scripts for CONFIG_FILES section.
16599 # No need to generate them if there are no CONFIG_FILES.
16600 # This happens for instance with `./config.status config.h'.
16601 if test -n "$CONFIG_FILES"; then
16604 ac_cr=`echo X | tr X '\015'`
16605 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16606 # But we know of no other shell where ac_cr would be empty at this
16607 # point, so we can use a bashism as a fallback.
16608 if test "x$ac_cr" = x; then
16609 eval ac_cr=\$\'\\r\'
16611 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16612 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16613 ac_cs_awk_cr='\r'
16614 else
16615 ac_cs_awk_cr=$ac_cr
16618 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16619 _ACEOF
16623 echo "cat >conf$$subs.awk <<_ACEOF" &&
16624 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16625 echo "_ACEOF"
16626 } >conf$$subs.sh ||
16627 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16628 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16629 ac_delim='%!_!# '
16630 for ac_last_try in false false false false false :; do
16631 . ./conf$$subs.sh ||
16632 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16634 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16635 if test $ac_delim_n = $ac_delim_num; then
16636 break
16637 elif $ac_last_try; then
16638 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16639 else
16640 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16642 done
16643 rm -f conf$$subs.sh
16645 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16646 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16647 _ACEOF
16648 sed -n '
16650 s/^/S["/; s/!.*/"]=/
16653 s/^[^!]*!//
16654 :repl
16655 t repl
16656 s/'"$ac_delim"'$//
16657 t delim
16660 s/\(.\{148\}\).*/\1/
16661 t more1
16662 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16665 b repl
16666 :more1
16667 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16670 s/.\{148\}//
16671 t nl
16672 :delim
16674 s/\(.\{148\}\).*/\1/
16675 t more2
16676 s/["\\]/\\&/g; s/^/"/; s/$/"/
16679 :more2
16680 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16683 s/.\{148\}//
16684 t delim
16685 ' <conf$$subs.awk | sed '
16686 /^[^""]/{
16688 s/\n//
16690 ' >>$CONFIG_STATUS || ac_write_fail=1
16691 rm -f conf$$subs.awk
16692 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16693 _ACAWK
16694 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16695 for (key in S) S_is_set[key] = 1
16696 FS = "\a"
16700 line = $ 0
16701 nfields = split(line, field, "@")
16702 substed = 0
16703 len = length(field[1])
16704 for (i = 2; i < nfields; i++) {
16705 key = field[i]
16706 keylen = length(key)
16707 if (S_is_set[key]) {
16708 value = S[key]
16709 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16710 len += length(value) + length(field[++i])
16711 substed = 1
16712 } else
16713 len += 1 + keylen
16716 print line
16719 _ACAWK
16720 _ACEOF
16721 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16722 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16723 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16724 else
16726 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16727 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16728 _ACEOF
16730 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16731 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16732 # trailing colons and then remove the whole line if VPATH becomes empty
16733 # (actually we leave an empty line to preserve line numbers).
16734 if test "x$srcdir" = x.; then
16735 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16736 s/:*\$(srcdir):*/:/
16737 s/:*\${srcdir}:*/:/
16738 s/:*@srcdir@:*/:/
16739 s/^\([^=]*=[ ]*\):*/\1/
16740 s/:*$//
16741 s/^[^=]*=[ ]*$//
16745 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16746 fi # test -n "$CONFIG_FILES"
16748 # Set up the scripts for CONFIG_HEADERS section.
16749 # No need to generate them if there are no CONFIG_HEADERS.
16750 # This happens for instance with `./config.status Makefile'.
16751 if test -n "$CONFIG_HEADERS"; then
16752 cat >"$tmp/defines.awk" <<\_ACAWK ||
16753 BEGIN {
16754 _ACEOF
16756 # Transform confdefs.h into an awk script `defines.awk', embedded as
16757 # here-document in config.status, that substitutes the proper values into
16758 # config.h.in to produce config.h.
16760 # Create a delimiter string that does not exist in confdefs.h, to ease
16761 # handling of long lines.
16762 ac_delim='%!_!# '
16763 for ac_last_try in false false :; do
16764 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16765 if test -z "$ac_t"; then
16766 break
16767 elif $ac_last_try; then
16768 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16769 else
16770 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16772 done
16774 # For the awk script, D is an array of macro values keyed by name,
16775 # likewise P contains macro parameters if any. Preserve backslash
16776 # newline sequences.
16778 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16779 sed -n '
16780 s/.\{148\}/&'"$ac_delim"'/g
16781 t rset
16782 :rset
16783 s/^[ ]*#[ ]*define[ ][ ]*/ /
16784 t def
16786 :def
16787 s/\\$//
16788 t bsnl
16789 s/["\\]/\\&/g
16790 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16791 D["\1"]=" \3"/p
16792 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16794 :bsnl
16795 s/["\\]/\\&/g
16796 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16797 D["\1"]=" \3\\\\\\n"\\/p
16798 t cont
16799 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16800 t cont
16802 :cont
16804 s/.\{148\}/&'"$ac_delim"'/g
16805 t clear
16806 :clear
16807 s/\\$//
16808 t bsnlc
16809 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16811 :bsnlc
16812 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16813 b cont
16814 ' <confdefs.h | sed '
16815 s/'"$ac_delim"'/"\\\
16816 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16818 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16819 for (key in D) D_is_set[key] = 1
16820 FS = "\a"
16822 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16823 line = \$ 0
16824 split(line, arg, " ")
16825 if (arg[1] == "#") {
16826 defundef = arg[2]
16827 mac1 = arg[3]
16828 } else {
16829 defundef = substr(arg[1], 2)
16830 mac1 = arg[2]
16832 split(mac1, mac2, "(") #)
16833 macro = mac2[1]
16834 prefix = substr(line, 1, index(line, defundef) - 1)
16835 if (D_is_set[macro]) {
16836 # Preserve the white space surrounding the "#".
16837 print prefix "define", macro P[macro] D[macro]
16838 next
16839 } else {
16840 # Replace #undef with comments. This is necessary, for example,
16841 # in the case of _POSIX_SOURCE, which is predefined and required
16842 # on some systems where configure will not decide to define it.
16843 if (defundef == "undef") {
16844 print "/*", prefix defundef, macro, "*/"
16845 next
16849 { print }
16850 _ACAWK
16851 _ACEOF
16852 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16853 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16854 fi # test -n "$CONFIG_HEADERS"
16857 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16858 shift
16859 for ac_tag
16861 case $ac_tag in
16862 :[FHLC]) ac_mode=$ac_tag; continue;;
16863 esac
16864 case $ac_mode$ac_tag in
16865 :[FHL]*:*);;
16866 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16867 :[FH]-) ac_tag=-:-;;
16868 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16869 esac
16870 ac_save_IFS=$IFS
16871 IFS=:
16872 set x $ac_tag
16873 IFS=$ac_save_IFS
16874 shift
16875 ac_file=$1
16876 shift
16878 case $ac_mode in
16879 :L) ac_source=$1;;
16880 :[FH])
16881 ac_file_inputs=
16882 for ac_f
16884 case $ac_f in
16885 -) ac_f="$tmp/stdin";;
16886 *) # Look for the file first in the build tree, then in the source tree
16887 # (if the path is not absolute). The absolute path cannot be DOS-style,
16888 # because $ac_f cannot contain `:'.
16889 test -f "$ac_f" ||
16890 case $ac_f in
16891 [\\/$]*) false;;
16892 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16893 esac ||
16894 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16895 esac
16896 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16897 as_fn_append ac_file_inputs " '$ac_f'"
16898 done
16900 # Let's still pretend it is `configure' which instantiates (i.e., don't
16901 # use $as_me), people would be surprised to read:
16902 # /* config.h. Generated by config.status. */
16903 configure_input='Generated from '`
16904 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16905 `' by configure.'
16906 if test x"$ac_file" != x-; then
16907 configure_input="$ac_file. $configure_input"
16908 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16909 $as_echo "$as_me: creating $ac_file" >&6;}
16911 # Neutralize special characters interpreted by sed in replacement strings.
16912 case $configure_input in #(
16913 *\&* | *\|* | *\\* )
16914 ac_sed_conf_input=`$as_echo "$configure_input" |
16915 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16916 *) ac_sed_conf_input=$configure_input;;
16917 esac
16919 case $ac_tag in
16920 *:-:* | *:-) cat >"$tmp/stdin" \
16921 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16922 esac
16924 esac
16926 ac_dir=`$as_dirname -- "$ac_file" ||
16927 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16928 X"$ac_file" : 'X\(//\)[^/]' \| \
16929 X"$ac_file" : 'X\(//\)$' \| \
16930 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16931 $as_echo X"$ac_file" |
16932 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16933 s//\1/
16936 /^X\(\/\/\)[^/].*/{
16937 s//\1/
16940 /^X\(\/\/\)$/{
16941 s//\1/
16944 /^X\(\/\).*/{
16945 s//\1/
16948 s/.*/./; q'`
16949 as_dir="$ac_dir"; as_fn_mkdir_p
16950 ac_builddir=.
16952 case "$ac_dir" in
16953 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16955 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16956 # A ".." for each directory in $ac_dir_suffix.
16957 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16958 case $ac_top_builddir_sub in
16959 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16960 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16961 esac ;;
16962 esac
16963 ac_abs_top_builddir=$ac_pwd
16964 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16965 # for backward compatibility:
16966 ac_top_builddir=$ac_top_build_prefix
16968 case $srcdir in
16969 .) # We are building in place.
16970 ac_srcdir=.
16971 ac_top_srcdir=$ac_top_builddir_sub
16972 ac_abs_top_srcdir=$ac_pwd ;;
16973 [\\/]* | ?:[\\/]* ) # Absolute name.
16974 ac_srcdir=$srcdir$ac_dir_suffix;
16975 ac_top_srcdir=$srcdir
16976 ac_abs_top_srcdir=$srcdir ;;
16977 *) # Relative name.
16978 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16979 ac_top_srcdir=$ac_top_build_prefix$srcdir
16980 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16981 esac
16982 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16985 case $ac_mode in
16988 # CONFIG_FILE
16991 case $INSTALL in
16992 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16993 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16994 esac
16995 ac_MKDIR_P=$MKDIR_P
16996 case $MKDIR_P in
16997 [\\/$]* | ?:[\\/]* ) ;;
16998 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16999 esac
17000 _ACEOF
17002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17003 # If the template does not know about datarootdir, expand it.
17004 # FIXME: This hack should be removed a few years after 2.60.
17005 ac_datarootdir_hack=; ac_datarootdir_seen=
17006 ac_sed_dataroot='
17007 /datarootdir/ {
17011 /@datadir@/p
17012 /@docdir@/p
17013 /@infodir@/p
17014 /@localedir@/p
17015 /@mandir@/p'
17016 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17017 *datarootdir*) ac_datarootdir_seen=yes;;
17018 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17020 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17021 _ACEOF
17022 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17023 ac_datarootdir_hack='
17024 s&@datadir@&$datadir&g
17025 s&@docdir@&$docdir&g
17026 s&@infodir@&$infodir&g
17027 s&@localedir@&$localedir&g
17028 s&@mandir@&$mandir&g
17029 s&\\\${datarootdir}&$datarootdir&g' ;;
17030 esac
17031 _ACEOF
17033 # Neutralize VPATH when `$srcdir' = `.'.
17034 # Shell code in configure.ac might set extrasub.
17035 # FIXME: do we really want to maintain this feature?
17036 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17037 ac_sed_extra="$ac_vpsub
17038 $extrasub
17039 _ACEOF
17040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17042 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17043 s|@configure_input@|$ac_sed_conf_input|;t t
17044 s&@top_builddir@&$ac_top_builddir_sub&;t t
17045 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17046 s&@srcdir@&$ac_srcdir&;t t
17047 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17048 s&@top_srcdir@&$ac_top_srcdir&;t t
17049 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17050 s&@builddir@&$ac_builddir&;t t
17051 s&@abs_builddir@&$ac_abs_builddir&;t t
17052 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17053 s&@INSTALL@&$ac_INSTALL&;t t
17054 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17055 $ac_datarootdir_hack
17057 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17058 || as_fn_error "could not create $ac_file" "$LINENO" 5
17060 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17061 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17062 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17064 which seems to be undefined. Please make sure it is defined." >&5
17065 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17066 which seems to be undefined. Please make sure it is defined." >&2;}
17068 rm -f "$tmp/stdin"
17069 case $ac_file in
17070 -) cat "$tmp/out" && rm -f "$tmp/out";;
17071 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17072 esac \
17073 || as_fn_error "could not create $ac_file" "$LINENO" 5
17077 # CONFIG_HEADER
17079 if test x"$ac_file" != x-; then
17081 $as_echo "/* $configure_input */" \
17082 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17083 } >"$tmp/config.h" \
17084 || as_fn_error "could not create $ac_file" "$LINENO" 5
17085 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17086 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17087 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17088 else
17089 rm -f "$ac_file"
17090 mv "$tmp/config.h" "$ac_file" \
17091 || as_fn_error "could not create $ac_file" "$LINENO" 5
17093 else
17094 $as_echo "/* $configure_input */" \
17095 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17096 || as_fn_error "could not create -" "$LINENO" 5
17098 # Compute "$ac_file"'s index in $config_headers.
17099 _am_arg="$ac_file"
17100 _am_stamp_count=1
17101 for _am_header in $config_headers :; do
17102 case $_am_header in
17103 $_am_arg | $_am_arg:* )
17104 break ;;
17106 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17107 esac
17108 done
17109 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17110 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17111 X"$_am_arg" : 'X\(//\)[^/]' \| \
17112 X"$_am_arg" : 'X\(//\)$' \| \
17113 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17114 $as_echo X"$_am_arg" |
17115 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17116 s//\1/
17119 /^X\(\/\/\)[^/].*/{
17120 s//\1/
17123 /^X\(\/\/\)$/{
17124 s//\1/
17127 /^X\(\/\).*/{
17128 s//\1/
17131 s/.*/./; q'`/stamp-h$_am_stamp_count
17134 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17135 $as_echo "$as_me: executing $ac_file commands" >&6;}
17137 esac
17140 case $ac_file$ac_mode in
17141 "default-1":C)
17142 # Only add multilib support code if we just rebuilt the top-level
17143 # Makefile.
17144 case " $CONFIG_FILES " in
17145 *" Makefile "*)
17146 ac_file=Makefile . ${multi_basedir}/config-ml.in
17148 esac ;;
17149 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17150 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17151 # are listed without --file. Let's play safe and only enable the eval
17152 # if we detect the quoting.
17153 case $CONFIG_FILES in
17154 *\'*) eval set x "$CONFIG_FILES" ;;
17155 *) set x $CONFIG_FILES ;;
17156 esac
17157 shift
17158 for mf
17160 # Strip MF so we end up with the name of the file.
17161 mf=`echo "$mf" | sed -e 's/:.*$//'`
17162 # Check whether this is an Automake generated Makefile or not.
17163 # We used to match only the files named `Makefile.in', but
17164 # some people rename them; so instead we look at the file content.
17165 # Grep'ing the first line is not enough: some people post-process
17166 # each Makefile.in and add a new line on top of each file to say so.
17167 # Grep'ing the whole file is not good either: AIX grep has a line
17168 # limit of 2048, but all sed's we know have understand at least 4000.
17169 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17170 dirpart=`$as_dirname -- "$mf" ||
17171 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17172 X"$mf" : 'X\(//\)[^/]' \| \
17173 X"$mf" : 'X\(//\)$' \| \
17174 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17175 $as_echo X"$mf" |
17176 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17177 s//\1/
17180 /^X\(\/\/\)[^/].*/{
17181 s//\1/
17184 /^X\(\/\/\)$/{
17185 s//\1/
17188 /^X\(\/\).*/{
17189 s//\1/
17192 s/.*/./; q'`
17193 else
17194 continue
17196 # Extract the definition of DEPDIR, am__include, and am__quote
17197 # from the Makefile without running `make'.
17198 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17199 test -z "$DEPDIR" && continue
17200 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17201 test -z "am__include" && continue
17202 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17203 # When using ansi2knr, U may be empty or an underscore; expand it
17204 U=`sed -n 's/^U = //p' < "$mf"`
17205 # Find all dependency output files, they are included files with
17206 # $(DEPDIR) in their names. We invoke sed twice because it is the
17207 # simplest approach to changing $(DEPDIR) to its actual value in the
17208 # expansion.
17209 for file in `sed -n "
17210 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17211 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17212 # Make sure the directory exists.
17213 test -f "$dirpart/$file" && continue
17214 fdir=`$as_dirname -- "$file" ||
17215 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17216 X"$file" : 'X\(//\)[^/]' \| \
17217 X"$file" : 'X\(//\)$' \| \
17218 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17219 $as_echo X"$file" |
17220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17221 s//\1/
17224 /^X\(\/\/\)[^/].*/{
17225 s//\1/
17228 /^X\(\/\/\)$/{
17229 s//\1/
17232 /^X\(\/\).*/{
17233 s//\1/
17236 s/.*/./; q'`
17237 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17238 # echo "creating $dirpart/$file"
17239 echo '# dummy' > "$dirpart/$file"
17240 done
17241 done
17244 "libtool":C)
17246 # See if we are running on zsh, and set the options which allow our
17247 # commands through without removal of \ escapes.
17248 if test -n "${ZSH_VERSION+set}" ; then
17249 setopt NO_GLOB_SUBST
17252 cfgfile="${ofile}T"
17253 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17254 $RM "$cfgfile"
17256 cat <<_LT_EOF >> "$cfgfile"
17257 #! $SHELL
17259 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17260 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17261 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17262 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17264 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17265 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17266 # Written by Gordon Matzigkeit, 1996
17268 # This file is part of GNU Libtool.
17270 # GNU Libtool is free software; you can redistribute it and/or
17271 # modify it under the terms of the GNU General Public License as
17272 # published by the Free Software Foundation; either version 2 of
17273 # the License, or (at your option) any later version.
17275 # As a special exception to the GNU General Public License,
17276 # if you distribute this file as part of a program or library that
17277 # is built using GNU Libtool, you may include this file under the
17278 # same distribution terms that you use for the rest of that program.
17280 # GNU Libtool is distributed in the hope that it will be useful,
17281 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17282 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17283 # GNU General Public License for more details.
17285 # You should have received a copy of the GNU General Public License
17286 # along with GNU Libtool; see the file COPYING. If not, a copy
17287 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17288 # obtained by writing to the Free Software Foundation, Inc.,
17289 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17292 # The names of the tagged configurations supported by this script.
17293 available_tags="GO "
17295 # ### BEGIN LIBTOOL CONFIG
17297 # A sed program that does not truncate output.
17298 SED=$lt_SED
17300 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17301 Xsed="\$SED -e 1s/^X//"
17303 # A grep program that handles long lines.
17304 GREP=$lt_GREP
17306 # An ERE matcher.
17307 EGREP=$lt_EGREP
17309 # A literal string matcher.
17310 FGREP=$lt_FGREP
17312 # Shell to use when invoking shell scripts.
17313 SHELL=$lt_SHELL
17315 # An echo program that protects backslashes.
17316 ECHO=$lt_ECHO
17318 # Which release of libtool.m4 was used?
17319 macro_version=$macro_version
17320 macro_revision=$macro_revision
17322 # Whether or not to build shared libraries.
17323 build_libtool_libs=$enable_shared
17325 # Whether or not to build static libraries.
17326 build_old_libs=$enable_static
17328 # What type of objects to build.
17329 pic_mode=$pic_mode
17331 # Whether or not to optimize for fast installation.
17332 fast_install=$enable_fast_install
17334 # The host system.
17335 host_alias=$host_alias
17336 host=$host
17337 host_os=$host_os
17339 # The build system.
17340 build_alias=$build_alias
17341 build=$build
17342 build_os=$build_os
17344 # A BSD- or MS-compatible name lister.
17345 NM=$lt_NM
17347 # Whether we need soft or hard links.
17348 LN_S=$lt_LN_S
17350 # What is the maximum length of a command?
17351 max_cmd_len=$max_cmd_len
17353 # Object file suffix (normally "o").
17354 objext=$ac_objext
17356 # Executable file suffix (normally "").
17357 exeext=$exeext
17359 # whether the shell understands "unset".
17360 lt_unset=$lt_unset
17362 # turn spaces into newlines.
17363 SP2NL=$lt_lt_SP2NL
17365 # turn newlines into spaces.
17366 NL2SP=$lt_lt_NL2SP
17368 # An object symbol dumper.
17369 OBJDUMP=$lt_OBJDUMP
17371 # Method to check whether dependent libraries are shared objects.
17372 deplibs_check_method=$lt_deplibs_check_method
17374 # Command to use when deplibs_check_method == "file_magic".
17375 file_magic_cmd=$lt_file_magic_cmd
17377 # The archiver.
17378 AR=$lt_AR
17379 AR_FLAGS=$lt_AR_FLAGS
17381 # A symbol stripping program.
17382 STRIP=$lt_STRIP
17384 # Commands used to install an old-style archive.
17385 RANLIB=$lt_RANLIB
17386 old_postinstall_cmds=$lt_old_postinstall_cmds
17387 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17389 # Whether to use a lock for old archive extraction.
17390 lock_old_archive_extraction=$lock_old_archive_extraction
17392 # A C compiler.
17393 LTCC=$lt_CC
17395 # LTCC compiler flags.
17396 LTCFLAGS=$lt_CFLAGS
17398 # Take the output of nm and produce a listing of raw symbols and C names.
17399 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17401 # Transform the output of nm in a proper C declaration.
17402 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17404 # Transform the output of nm in a C name address pair.
17405 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17407 # Transform the output of nm in a C name address pair when lib prefix is needed.
17408 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17410 # The name of the directory that contains temporary libtool files.
17411 objdir=$objdir
17413 # Used to examine libraries when file_magic_cmd begins with "file".
17414 MAGIC_CMD=$MAGIC_CMD
17416 # Must we lock files when doing compilation?
17417 need_locks=$lt_need_locks
17419 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17420 DSYMUTIL=$lt_DSYMUTIL
17422 # Tool to change global to local symbols on Mac OS X.
17423 NMEDIT=$lt_NMEDIT
17425 # Tool to manipulate fat objects and archives on Mac OS X.
17426 LIPO=$lt_LIPO
17428 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17429 OTOOL=$lt_OTOOL
17431 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17432 OTOOL64=$lt_OTOOL64
17434 # Old archive suffix (normally "a").
17435 libext=$libext
17437 # Shared library suffix (normally ".so").
17438 shrext_cmds=$lt_shrext_cmds
17440 # The commands to extract the exported symbol list from a shared archive.
17441 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17443 # Variables whose values should be saved in libtool wrapper scripts and
17444 # restored at link time.
17445 variables_saved_for_relink=$lt_variables_saved_for_relink
17447 # Do we need the "lib" prefix for modules?
17448 need_lib_prefix=$need_lib_prefix
17450 # Do we need a version for libraries?
17451 need_version=$need_version
17453 # Library versioning type.
17454 version_type=$version_type
17456 # Shared library runtime path variable.
17457 runpath_var=$runpath_var
17459 # Shared library path variable.
17460 shlibpath_var=$shlibpath_var
17462 # Is shlibpath searched before the hard-coded library search path?
17463 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17465 # Format of library name prefix.
17466 libname_spec=$lt_libname_spec
17468 # List of archive names. First name is the real one, the rest are links.
17469 # The last name is the one that the linker finds with -lNAME
17470 library_names_spec=$lt_library_names_spec
17472 # The coded name of the library, if different from the real name.
17473 soname_spec=$lt_soname_spec
17475 # Permission mode override for installation of shared libraries.
17476 install_override_mode=$lt_install_override_mode
17478 # Command to use after installation of a shared archive.
17479 postinstall_cmds=$lt_postinstall_cmds
17481 # Command to use after uninstallation of a shared archive.
17482 postuninstall_cmds=$lt_postuninstall_cmds
17484 # Commands used to finish a libtool library installation in a directory.
17485 finish_cmds=$lt_finish_cmds
17487 # As "finish_cmds", except a single script fragment to be evaled but
17488 # not shown.
17489 finish_eval=$lt_finish_eval
17491 # Whether we should hardcode library paths into libraries.
17492 hardcode_into_libs=$hardcode_into_libs
17494 # Compile-time system search path for libraries.
17495 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17497 # Run-time system search path for libraries.
17498 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17500 # Whether dlopen is supported.
17501 dlopen_support=$enable_dlopen
17503 # Whether dlopen of programs is supported.
17504 dlopen_self=$enable_dlopen_self
17506 # Whether dlopen of statically linked programs is supported.
17507 dlopen_self_static=$enable_dlopen_self_static
17509 # Commands to strip libraries.
17510 old_striplib=$lt_old_striplib
17511 striplib=$lt_striplib
17514 # The linker used to build libraries.
17515 LD=$lt_LD
17517 # How to create reloadable object files.
17518 reload_flag=$lt_reload_flag
17519 reload_cmds=$lt_reload_cmds
17521 # Commands used to build an old-style archive.
17522 old_archive_cmds=$lt_old_archive_cmds
17524 # A language specific compiler.
17525 CC=$lt_compiler
17527 # Is the compiler the GNU compiler?
17528 with_gcc=$GCC
17530 # Compiler flag to turn off builtin functions.
17531 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17533 # How to pass a linker flag through the compiler.
17534 wl=$lt_lt_prog_compiler_wl
17536 # Additional compiler flags for building library objects.
17537 pic_flag=$lt_lt_prog_compiler_pic
17539 # Compiler flag to prevent dynamic linking.
17540 link_static_flag=$lt_lt_prog_compiler_static
17542 # Does compiler simultaneously support -c and -o options?
17543 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17545 # Whether or not to add -lc for building shared libraries.
17546 build_libtool_need_lc=$archive_cmds_need_lc
17548 # Whether or not to disallow shared libs when runtime libs are static.
17549 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17551 # Compiler flag to allow reflexive dlopens.
17552 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17554 # Compiler flag to generate shared objects directly from archives.
17555 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17557 # Whether the compiler copes with passing no objects directly.
17558 compiler_needs_object=$lt_compiler_needs_object
17560 # Create an old-style archive from a shared archive.
17561 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17563 # Create a temporary old-style archive to link instead of a shared archive.
17564 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17566 # Commands used to build a shared archive.
17567 archive_cmds=$lt_archive_cmds
17568 archive_expsym_cmds=$lt_archive_expsym_cmds
17570 # Commands used to build a loadable module if different from building
17571 # a shared archive.
17572 module_cmds=$lt_module_cmds
17573 module_expsym_cmds=$lt_module_expsym_cmds
17575 # Whether we are building with GNU ld or not.
17576 with_gnu_ld=$lt_with_gnu_ld
17578 # Flag that allows shared libraries with undefined symbols to be built.
17579 allow_undefined_flag=$lt_allow_undefined_flag
17581 # Flag that enforces no undefined symbols.
17582 no_undefined_flag=$lt_no_undefined_flag
17584 # Flag to hardcode \$libdir into a binary during linking.
17585 # This must work even if \$libdir does not exist
17586 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17588 # If ld is used when linking, flag to hardcode \$libdir into a binary
17589 # during linking. This must work even if \$libdir does not exist.
17590 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17592 # Whether we need a single "-rpath" flag with a separated argument.
17593 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17595 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17596 # DIR into the resulting binary.
17597 hardcode_direct=$hardcode_direct
17599 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17600 # DIR into the resulting binary and the resulting library dependency is
17601 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17602 # library is relocated.
17603 hardcode_direct_absolute=$hardcode_direct_absolute
17605 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17606 # into the resulting binary.
17607 hardcode_minus_L=$hardcode_minus_L
17609 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17610 # into the resulting binary.
17611 hardcode_shlibpath_var=$hardcode_shlibpath_var
17613 # Set to "yes" if building a shared library automatically hardcodes DIR
17614 # into the library and all subsequent libraries and executables linked
17615 # against it.
17616 hardcode_automatic=$hardcode_automatic
17618 # Set to yes if linker adds runtime paths of dependent libraries
17619 # to runtime path list.
17620 inherit_rpath=$inherit_rpath
17622 # Whether libtool must link a program against all its dependency libraries.
17623 link_all_deplibs=$link_all_deplibs
17625 # Fix the shell variable \$srcfile for the compiler.
17626 fix_srcfile_path=$lt_fix_srcfile_path
17628 # Set to "yes" if exported symbols are required.
17629 always_export_symbols=$always_export_symbols
17631 # The commands to list exported symbols.
17632 export_symbols_cmds=$lt_export_symbols_cmds
17634 # Symbols that should not be listed in the preloaded symbols.
17635 exclude_expsyms=$lt_exclude_expsyms
17637 # Symbols that must always be exported.
17638 include_expsyms=$lt_include_expsyms
17640 # Commands necessary for linking programs (against libraries) with templates.
17641 prelink_cmds=$lt_prelink_cmds
17643 # Specify filename containing input files.
17644 file_list_spec=$lt_file_list_spec
17646 # How to hardcode a shared library path into an executable.
17647 hardcode_action=$hardcode_action
17649 # ### END LIBTOOL CONFIG
17651 _LT_EOF
17653 case $host_os in
17654 aix3*)
17655 cat <<\_LT_EOF >> "$cfgfile"
17656 # AIX sometimes has problems with the GCC collect2 program. For some
17657 # reason, if we set the COLLECT_NAMES environment variable, the problems
17658 # vanish in a puff of smoke.
17659 if test "X${COLLECT_NAMES+set}" != Xset; then
17660 COLLECT_NAMES=
17661 export COLLECT_NAMES
17663 _LT_EOF
17665 esac
17668 ltmain="$ac_aux_dir/ltmain.sh"
17671 # We use sed instead of cat because bash on DJGPP gets confused if
17672 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17673 # text mode, it properly converts lines to CR/LF. This bash problem
17674 # is reportedly fixed, but why not run on old versions too?
17675 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17676 || (rm -f "$cfgfile"; exit 1)
17678 case $xsi_shell in
17679 yes)
17680 cat << \_LT_EOF >> "$cfgfile"
17682 # func_dirname file append nondir_replacement
17683 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17684 # otherwise set result to NONDIR_REPLACEMENT.
17685 func_dirname ()
17687 case ${1} in
17688 */*) func_dirname_result="${1%/*}${2}" ;;
17689 * ) func_dirname_result="${3}" ;;
17690 esac
17693 # func_basename file
17694 func_basename ()
17696 func_basename_result="${1##*/}"
17699 # func_dirname_and_basename file append nondir_replacement
17700 # perform func_basename and func_dirname in a single function
17701 # call:
17702 # dirname: Compute the dirname of FILE. If nonempty,
17703 # add APPEND to the result, otherwise set result
17704 # to NONDIR_REPLACEMENT.
17705 # value returned in "$func_dirname_result"
17706 # basename: Compute filename of FILE.
17707 # value retuned in "$func_basename_result"
17708 # Implementation must be kept synchronized with func_dirname
17709 # and func_basename. For efficiency, we do not delegate to
17710 # those functions but instead duplicate the functionality here.
17711 func_dirname_and_basename ()
17713 case ${1} in
17714 */*) func_dirname_result="${1%/*}${2}" ;;
17715 * ) func_dirname_result="${3}" ;;
17716 esac
17717 func_basename_result="${1##*/}"
17720 # func_stripname prefix suffix name
17721 # strip PREFIX and SUFFIX off of NAME.
17722 # PREFIX and SUFFIX must not contain globbing or regex special
17723 # characters, hashes, percent signs, but SUFFIX may contain a leading
17724 # dot (in which case that matches only a dot).
17725 func_stripname ()
17727 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17728 # positional parameters, so assign one to ordinary parameter first.
17729 func_stripname_result=${3}
17730 func_stripname_result=${func_stripname_result#"${1}"}
17731 func_stripname_result=${func_stripname_result%"${2}"}
17734 # func_opt_split
17735 func_opt_split ()
17737 func_opt_split_opt=${1%%=*}
17738 func_opt_split_arg=${1#*=}
17741 # func_lo2o object
17742 func_lo2o ()
17744 case ${1} in
17745 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17746 *) func_lo2o_result=${1} ;;
17747 esac
17750 # func_xform libobj-or-source
17751 func_xform ()
17753 func_xform_result=${1%.*}.lo
17756 # func_arith arithmetic-term...
17757 func_arith ()
17759 func_arith_result=$(( $* ))
17762 # func_len string
17763 # STRING may not start with a hyphen.
17764 func_len ()
17766 func_len_result=${#1}
17769 _LT_EOF
17771 *) # Bourne compatible functions.
17772 cat << \_LT_EOF >> "$cfgfile"
17774 # func_dirname file append nondir_replacement
17775 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17776 # otherwise set result to NONDIR_REPLACEMENT.
17777 func_dirname ()
17779 # Extract subdirectory from the argument.
17780 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17781 if test "X$func_dirname_result" = "X${1}"; then
17782 func_dirname_result="${3}"
17783 else
17784 func_dirname_result="$func_dirname_result${2}"
17788 # func_basename file
17789 func_basename ()
17791 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17795 # func_stripname prefix suffix name
17796 # strip PREFIX and SUFFIX off of NAME.
17797 # PREFIX and SUFFIX must not contain globbing or regex special
17798 # characters, hashes, percent signs, but SUFFIX may contain a leading
17799 # dot (in which case that matches only a dot).
17800 # func_strip_suffix prefix name
17801 func_stripname ()
17803 case ${2} in
17804 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17805 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17806 esac
17809 # sed scripts:
17810 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17811 my_sed_long_arg='1s/^-[^=]*=//'
17813 # func_opt_split
17814 func_opt_split ()
17816 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17817 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17820 # func_lo2o object
17821 func_lo2o ()
17823 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17826 # func_xform libobj-or-source
17827 func_xform ()
17829 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17832 # func_arith arithmetic-term...
17833 func_arith ()
17835 func_arith_result=`expr "$@"`
17838 # func_len string
17839 # STRING may not start with a hyphen.
17840 func_len ()
17842 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17845 _LT_EOF
17846 esac
17848 case $lt_shell_append in
17849 yes)
17850 cat << \_LT_EOF >> "$cfgfile"
17852 # func_append var value
17853 # Append VALUE to the end of shell variable VAR.
17854 func_append ()
17856 eval "$1+=\$2"
17858 _LT_EOF
17861 cat << \_LT_EOF >> "$cfgfile"
17863 # func_append var value
17864 # Append VALUE to the end of shell variable VAR.
17865 func_append ()
17867 eval "$1=\$$1\$2"
17870 _LT_EOF
17872 esac
17875 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17876 || (rm -f "$cfgfile"; exit 1)
17878 mv -f "$cfgfile" "$ofile" ||
17879 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17880 chmod +x "$ofile"
17883 cat <<_LT_EOF >> "$ofile"
17885 # ### BEGIN LIBTOOL TAG CONFIG: GO
17887 # The linker used to build libraries.
17888 LD=$lt_LD_GO
17890 # How to create reloadable object files.
17891 reload_flag=$lt_reload_flag_GO
17892 reload_cmds=$lt_reload_cmds_GO
17894 # Commands used to build an old-style archive.
17895 old_archive_cmds=$lt_old_archive_cmds_GO
17897 # A language specific compiler.
17898 CC=$lt_compiler_GO
17900 # Is the compiler the GNU compiler?
17901 with_gcc=$GCC_GO
17903 # Compiler flag to turn off builtin functions.
17904 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
17906 # How to pass a linker flag through the compiler.
17907 wl=$lt_lt_prog_compiler_wl_GO
17909 # Additional compiler flags for building library objects.
17910 pic_flag=$lt_lt_prog_compiler_pic_GO
17912 # Compiler flag to prevent dynamic linking.
17913 link_static_flag=$lt_lt_prog_compiler_static_GO
17915 # Does compiler simultaneously support -c and -o options?
17916 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
17918 # Whether or not to add -lc for building shared libraries.
17919 build_libtool_need_lc=$archive_cmds_need_lc_GO
17921 # Whether or not to disallow shared libs when runtime libs are static.
17922 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
17924 # Compiler flag to allow reflexive dlopens.
17925 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
17927 # Compiler flag to generate shared objects directly from archives.
17928 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
17930 # Whether the compiler copes with passing no objects directly.
17931 compiler_needs_object=$lt_compiler_needs_object_GO
17933 # Create an old-style archive from a shared archive.
17934 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
17936 # Create a temporary old-style archive to link instead of a shared archive.
17937 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
17939 # Commands used to build a shared archive.
17940 archive_cmds=$lt_archive_cmds_GO
17941 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
17943 # Commands used to build a loadable module if different from building
17944 # a shared archive.
17945 module_cmds=$lt_module_cmds_GO
17946 module_expsym_cmds=$lt_module_expsym_cmds_GO
17948 # Whether we are building with GNU ld or not.
17949 with_gnu_ld=$lt_with_gnu_ld_GO
17951 # Flag that allows shared libraries with undefined symbols to be built.
17952 allow_undefined_flag=$lt_allow_undefined_flag_GO
17954 # Flag that enforces no undefined symbols.
17955 no_undefined_flag=$lt_no_undefined_flag_GO
17957 # Flag to hardcode \$libdir into a binary during linking.
17958 # This must work even if \$libdir does not exist
17959 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
17961 # If ld is used when linking, flag to hardcode \$libdir into a binary
17962 # during linking. This must work even if \$libdir does not exist.
17963 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
17965 # Whether we need a single "-rpath" flag with a separated argument.
17966 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
17968 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17969 # DIR into the resulting binary.
17970 hardcode_direct=$hardcode_direct_GO
17972 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17973 # DIR into the resulting binary and the resulting library dependency is
17974 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17975 # library is relocated.
17976 hardcode_direct_absolute=$hardcode_direct_absolute_GO
17978 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17979 # into the resulting binary.
17980 hardcode_minus_L=$hardcode_minus_L_GO
17982 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17983 # into the resulting binary.
17984 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
17986 # Set to "yes" if building a shared library automatically hardcodes DIR
17987 # into the library and all subsequent libraries and executables linked
17988 # against it.
17989 hardcode_automatic=$hardcode_automatic_GO
17991 # Set to yes if linker adds runtime paths of dependent libraries
17992 # to runtime path list.
17993 inherit_rpath=$inherit_rpath_GO
17995 # Whether libtool must link a program against all its dependency libraries.
17996 link_all_deplibs=$link_all_deplibs_GO
17998 # Fix the shell variable \$srcfile for the compiler.
17999 fix_srcfile_path=$lt_fix_srcfile_path_GO
18001 # Set to "yes" if exported symbols are required.
18002 always_export_symbols=$always_export_symbols_GO
18004 # The commands to list exported symbols.
18005 export_symbols_cmds=$lt_export_symbols_cmds_GO
18007 # Symbols that should not be listed in the preloaded symbols.
18008 exclude_expsyms=$lt_exclude_expsyms_GO
18010 # Symbols that must always be exported.
18011 include_expsyms=$lt_include_expsyms_GO
18013 # Commands necessary for linking programs (against libraries) with templates.
18014 prelink_cmds=$lt_prelink_cmds_GO
18016 # Specify filename containing input files.
18017 file_list_spec=$lt_file_list_spec_GO
18019 # How to hardcode a shared library path into an executable.
18020 hardcode_action=$hardcode_action_GO
18022 # ### END LIBTOOL TAG CONFIG: GO
18023 _LT_EOF
18026 "default":C) if test -n "$CONFIG_FILES"; then
18027 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
18028 # that multilib installs will end up installed in the correct place.
18029 # The testsuite needs it for multilib-aware ABI baseline files.
18030 # To work around this not being passed down from config-ml.in ->
18031 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
18032 # append it here. Only modify Makefiles that have just been created.
18034 # Also, get rid of this simulated-VPATH thing that automake does.
18035 cat > vpsed << \_EOF
18036 s!`test -f '$<' || echo '$(srcdir)/'`!!
18037 _EOF
18038 for i in $SUBDIRS; do
18039 case $CONFIG_FILES in
18040 *${i}/Makefile*)
18041 #echo "Adding MULTISUBDIR to $i/Makefile"
18042 sed -f vpsed $i/Makefile > tmp
18043 grep '^MULTISUBDIR =' Makefile >> tmp
18044 mv tmp $i/Makefile
18046 esac
18047 done
18048 rm vpsed
18052 esac
18053 done # for ac_tag
18056 as_fn_exit 0
18057 _ACEOF
18058 ac_clean_files=$ac_clean_files_save
18060 test $ac_write_fail = 0 ||
18061 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18064 # configure is writing to config.log, and then calls config.status.
18065 # config.status does its own redirection, appending to config.log.
18066 # Unfortunately, on DOS this fails, as config.log is still kept open
18067 # by configure, so config.status won't be able to write to it; its
18068 # output is simply discarded. So we exec the FD to /dev/null,
18069 # effectively closing config.log, so it can be properly (re)opened and
18070 # appended to by config.status. When coming back to configure, we
18071 # need to make the FD available again.
18072 if test "$no_create" != yes; then
18073 ac_cs_success=:
18074 ac_config_status_args=
18075 test "$silent" = yes &&
18076 ac_config_status_args="$ac_config_status_args --quiet"
18077 exec 5>/dev/null
18078 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18079 exec 5>>config.log
18080 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18081 # would make configure fail if this is the last instruction.
18082 $ac_cs_success || as_fn_exit $?
18084 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18086 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}