2012-01-13 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / libgo / configure
blob7e8a38d37b4cc523b32d134d3b7ae5f550798c67
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 STRINGOPS_FLAG
608 HAVE_WAIT4_FALSE
609 HAVE_WAIT4_TRUE
610 HAVE_STRERROR_R_FALSE
611 HAVE_STRERROR_R_TRUE
612 HAVE_SYS_MMAN_H_FALSE
613 HAVE_SYS_MMAN_H_TRUE
614 PTHREAD_LIBS
615 PTHREAD_CFLAGS
616 NET_LIBS
617 MATH_LIBS
618 USING_SPLIT_STACK_FALSE
619 USING_SPLIT_STACK_TRUE
620 SPLIT_STACK
621 OSCFLAGS
622 GO_SYSCALL_OS_ARCH_FILE
623 GO_SYSCALL_OS_FILE
624 GO_LIBCALL_OS_ARCH_FILE
625 GO_LIBCALL_OS_FILE
626 GOARCH
627 LIBGO_IS_X86_64_FALSE
628 LIBGO_IS_X86_64_TRUE
629 LIBGO_IS_SPARC64_FALSE
630 LIBGO_IS_SPARC64_TRUE
631 LIBGO_IS_SPARC_FALSE
632 LIBGO_IS_SPARC_TRUE
633 LIBGO_IS_PPC64_FALSE
634 LIBGO_IS_PPC64_TRUE
635 LIBGO_IS_PPC_FALSE
636 LIBGO_IS_PPC_TRUE
637 LIBGO_IS_MIPSO64_FALSE
638 LIBGO_IS_MIPSO64_TRUE
639 LIBGO_IS_MIPSN64_FALSE
640 LIBGO_IS_MIPSN64_TRUE
641 LIBGO_IS_MIPSN32_FALSE
642 LIBGO_IS_MIPSN32_TRUE
643 LIBGO_IS_MIPSO32_FALSE
644 LIBGO_IS_MIPSO32_TRUE
645 LIBGO_IS_MIPS_FALSE
646 LIBGO_IS_MIPS_TRUE
647 LIBGO_IS_M68K_FALSE
648 LIBGO_IS_M68K_TRUE
649 LIBGO_IS_ARM_FALSE
650 LIBGO_IS_ARM_TRUE
651 LIBGO_IS_ALPHA_FALSE
652 LIBGO_IS_ALPHA_TRUE
653 LIBGO_IS_386_FALSE
654 LIBGO_IS_386_TRUE
655 GOOS
656 LIBGO_IS_SOLARIS_FALSE
657 LIBGO_IS_SOLARIS_TRUE
658 LIBGO_IS_RTEMS_FALSE
659 LIBGO_IS_RTEMS_TRUE
660 LIBGO_IS_NETBSD_FALSE
661 LIBGO_IS_NETBSD_TRUE
662 LIBGO_IS_LINUX_FALSE
663 LIBGO_IS_LINUX_TRUE
664 LIBGO_IS_IRIX_FALSE
665 LIBGO_IS_IRIX_TRUE
666 LIBGO_IS_FREEBSD_FALSE
667 LIBGO_IS_FREEBSD_TRUE
668 LIBGO_IS_DARWIN_FALSE
669 LIBGO_IS_DARWIN_TRUE
670 go_include
671 LIBFFIINCS
672 LIBFFI
673 glibgo_toolexeclibdir
674 glibgo_toolexecdir
675 glibgo_prefixdir
676 WERROR
677 WARN_FLAGS
678 CC_FOR_BUILD
679 enable_static
680 enable_shared
682 OTOOL64
683 OTOOL
684 LIPO
685 NMEDIT
686 DSYMUTIL
688 OBJDUMP
689 LN_S
691 ac_ct_DUMPBIN
692 DUMPBIN
693 LIBTOOL
694 OBJCOPY
695 RANLIB
697 FGREP
698 EGREP
699 GREP
701 MAINT
702 MAINTAINER_MODE_FALSE
703 MAINTAINER_MODE_TRUE
704 GOCFLAGS
706 am__fastdepCC_FALSE
707 am__fastdepCC_TRUE
708 CCDEPMODE
709 AMDEPBACKSLASH
710 AMDEP_FALSE
711 AMDEP_TRUE
712 am__quote
713 am__include
714 DEPDIR
715 OBJEXT
716 EXEEXT
717 ac_ct_CC
718 CPPFLAGS
719 LDFLAGS
720 CFLAGS
722 am__untar
723 am__tar
724 AMTAR
725 am__leading_dot
726 SET_MAKE
728 mkdir_p
729 MKDIR_P
730 INSTALL_STRIP_PROGRAM
731 STRIP
732 install_sh
733 MAKEINFO
734 AUTOHEADER
735 AUTOMAKE
736 AUTOCONF
737 ACLOCAL
738 VERSION
739 PACKAGE
740 CYGPATH_W
741 am__isrc
742 INSTALL_DATA
743 INSTALL_SCRIPT
744 INSTALL_PROGRAM
745 target_os
746 target_vendor
747 target_cpu
748 target
749 host_os
750 host_vendor
751 host_cpu
752 host
753 build_os
754 build_vendor
755 build_cpu
756 build
757 multi_basedir
758 libtool_VERSION
759 target_alias
760 host_alias
761 build_alias
762 LIBS
763 ECHO_T
764 ECHO_N
765 ECHO_C
766 DEFS
767 mandir
768 localedir
769 libdir
770 psdir
771 pdfdir
772 dvidir
773 htmldir
774 infodir
775 docdir
776 oldincludedir
777 includedir
778 localstatedir
779 sharedstatedir
780 sysconfdir
781 datadir
782 datarootdir
783 libexecdir
784 sbindir
785 bindir
786 program_transform_name
787 prefix
788 exec_prefix
789 PACKAGE_URL
790 PACKAGE_BUGREPORT
791 PACKAGE_STRING
792 PACKAGE_VERSION
793 PACKAGE_TARNAME
794 PACKAGE_NAME
795 PATH_SEPARATOR
796 SHELL'
797 ac_subst_files=''
798 ac_user_opts='
799 enable_option_checking
800 enable_multilib
801 enable_dependency_tracking
802 enable_maintainer_mode
803 with_gnu_ld
804 enable_shared
805 enable_static
806 with_pic
807 enable_fast_install
808 enable_libtool_lock
809 enable_version_specific_runtime_libs
810 with_libffi
811 with_system_libunwind
812 enable_sjlj_exceptions
814 ac_precious_vars='build_alias
815 host_alias
816 target_alias
818 CPPFLAGS'
821 # Initialize some variables set by options.
822 ac_init_help=
823 ac_init_version=false
824 ac_unrecognized_opts=
825 ac_unrecognized_sep=
826 # The variables have the same names as the options, with
827 # dashes changed to underlines.
828 cache_file=/dev/null
829 exec_prefix=NONE
830 no_create=
831 no_recursion=
832 prefix=NONE
833 program_prefix=NONE
834 program_suffix=NONE
835 program_transform_name=s,x,x,
836 silent=
837 site=
838 srcdir=
839 verbose=
840 x_includes=NONE
841 x_libraries=NONE
843 # Installation directory options.
844 # These are left unexpanded so users can "make install exec_prefix=/foo"
845 # and all the variables that are supposed to be based on exec_prefix
846 # by default will actually change.
847 # Use braces instead of parens because sh, perl, etc. also accept them.
848 # (The list follows the same order as the GNU Coding Standards.)
849 bindir='${exec_prefix}/bin'
850 sbindir='${exec_prefix}/sbin'
851 libexecdir='${exec_prefix}/libexec'
852 datarootdir='${prefix}/share'
853 datadir='${datarootdir}'
854 sysconfdir='${prefix}/etc'
855 sharedstatedir='${prefix}/com'
856 localstatedir='${prefix}/var'
857 includedir='${prefix}/include'
858 oldincludedir='/usr/include'
859 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
860 infodir='${datarootdir}/info'
861 htmldir='${docdir}'
862 dvidir='${docdir}'
863 pdfdir='${docdir}'
864 psdir='${docdir}'
865 libdir='${exec_prefix}/lib'
866 localedir='${datarootdir}/locale'
867 mandir='${datarootdir}/man'
869 ac_prev=
870 ac_dashdash=
871 for ac_option
873 # If the previous option needs an argument, assign it.
874 if test -n "$ac_prev"; then
875 eval $ac_prev=\$ac_option
876 ac_prev=
877 continue
880 case $ac_option in
881 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882 *) ac_optarg=yes ;;
883 esac
885 # Accept the important Cygnus configure options, so we can diagnose typos.
887 case $ac_dashdash$ac_option in
889 ac_dashdash=yes ;;
891 -bindir | --bindir | --bindi | --bind | --bin | --bi)
892 ac_prev=bindir ;;
893 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
894 bindir=$ac_optarg ;;
896 -build | --build | --buil | --bui | --bu)
897 ac_prev=build_alias ;;
898 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
899 build_alias=$ac_optarg ;;
901 -cache-file | --cache-file | --cache-fil | --cache-fi \
902 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
903 ac_prev=cache_file ;;
904 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
905 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
906 cache_file=$ac_optarg ;;
908 --config-cache | -C)
909 cache_file=config.cache ;;
911 -datadir | --datadir | --datadi | --datad)
912 ac_prev=datadir ;;
913 -datadir=* | --datadir=* | --datadi=* | --datad=*)
914 datadir=$ac_optarg ;;
916 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
917 | --dataroo | --dataro | --datar)
918 ac_prev=datarootdir ;;
919 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
920 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
921 datarootdir=$ac_optarg ;;
923 -disable-* | --disable-*)
924 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
925 # Reject names that are not valid shell variable names.
926 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
927 as_fn_error "invalid feature name: $ac_useropt"
928 ac_useropt_orig=$ac_useropt
929 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
930 case $ac_user_opts in
932 "enable_$ac_useropt"
933 "*) ;;
934 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
935 ac_unrecognized_sep=', ';;
936 esac
937 eval enable_$ac_useropt=no ;;
939 -docdir | --docdir | --docdi | --doc | --do)
940 ac_prev=docdir ;;
941 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
942 docdir=$ac_optarg ;;
944 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
945 ac_prev=dvidir ;;
946 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
947 dvidir=$ac_optarg ;;
949 -enable-* | --enable-*)
950 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
951 # Reject names that are not valid shell variable names.
952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953 as_fn_error "invalid feature name: $ac_useropt"
954 ac_useropt_orig=$ac_useropt
955 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956 case $ac_user_opts in
958 "enable_$ac_useropt"
959 "*) ;;
960 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
961 ac_unrecognized_sep=', ';;
962 esac
963 eval enable_$ac_useropt=\$ac_optarg ;;
965 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
966 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
967 | --exec | --exe | --ex)
968 ac_prev=exec_prefix ;;
969 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
970 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
971 | --exec=* | --exe=* | --ex=*)
972 exec_prefix=$ac_optarg ;;
974 -gas | --gas | --ga | --g)
975 # Obsolete; use --with-gas.
976 with_gas=yes ;;
978 -help | --help | --hel | --he | -h)
979 ac_init_help=long ;;
980 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
981 ac_init_help=recursive ;;
982 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
983 ac_init_help=short ;;
985 -host | --host | --hos | --ho)
986 ac_prev=host_alias ;;
987 -host=* | --host=* | --hos=* | --ho=*)
988 host_alias=$ac_optarg ;;
990 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
991 ac_prev=htmldir ;;
992 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
993 | --ht=*)
994 htmldir=$ac_optarg ;;
996 -includedir | --includedir | --includedi | --included | --include \
997 | --includ | --inclu | --incl | --inc)
998 ac_prev=includedir ;;
999 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1000 | --includ=* | --inclu=* | --incl=* | --inc=*)
1001 includedir=$ac_optarg ;;
1003 -infodir | --infodir | --infodi | --infod | --info | --inf)
1004 ac_prev=infodir ;;
1005 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1006 infodir=$ac_optarg ;;
1008 -libdir | --libdir | --libdi | --libd)
1009 ac_prev=libdir ;;
1010 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1011 libdir=$ac_optarg ;;
1013 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1014 | --libexe | --libex | --libe)
1015 ac_prev=libexecdir ;;
1016 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1017 | --libexe=* | --libex=* | --libe=*)
1018 libexecdir=$ac_optarg ;;
1020 -localedir | --localedir | --localedi | --localed | --locale)
1021 ac_prev=localedir ;;
1022 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1023 localedir=$ac_optarg ;;
1025 -localstatedir | --localstatedir | --localstatedi | --localstated \
1026 | --localstate | --localstat | --localsta | --localst | --locals)
1027 ac_prev=localstatedir ;;
1028 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1029 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1030 localstatedir=$ac_optarg ;;
1032 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1033 ac_prev=mandir ;;
1034 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1035 mandir=$ac_optarg ;;
1037 -nfp | --nfp | --nf)
1038 # Obsolete; use --without-fp.
1039 with_fp=no ;;
1041 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1042 | --no-cr | --no-c | -n)
1043 no_create=yes ;;
1045 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1046 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1047 no_recursion=yes ;;
1049 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1050 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1051 | --oldin | --oldi | --old | --ol | --o)
1052 ac_prev=oldincludedir ;;
1053 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1054 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1055 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1056 oldincludedir=$ac_optarg ;;
1058 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1059 ac_prev=prefix ;;
1060 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1061 prefix=$ac_optarg ;;
1063 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1064 | --program-pre | --program-pr | --program-p)
1065 ac_prev=program_prefix ;;
1066 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1067 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1068 program_prefix=$ac_optarg ;;
1070 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1071 | --program-suf | --program-su | --program-s)
1072 ac_prev=program_suffix ;;
1073 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1074 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1075 program_suffix=$ac_optarg ;;
1077 -program-transform-name | --program-transform-name \
1078 | --program-transform-nam | --program-transform-na \
1079 | --program-transform-n | --program-transform- \
1080 | --program-transform | --program-transfor \
1081 | --program-transfo | --program-transf \
1082 | --program-trans | --program-tran \
1083 | --progr-tra | --program-tr | --program-t)
1084 ac_prev=program_transform_name ;;
1085 -program-transform-name=* | --program-transform-name=* \
1086 | --program-transform-nam=* | --program-transform-na=* \
1087 | --program-transform-n=* | --program-transform-=* \
1088 | --program-transform=* | --program-transfor=* \
1089 | --program-transfo=* | --program-transf=* \
1090 | --program-trans=* | --program-tran=* \
1091 | --progr-tra=* | --program-tr=* | --program-t=*)
1092 program_transform_name=$ac_optarg ;;
1094 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1095 ac_prev=pdfdir ;;
1096 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1097 pdfdir=$ac_optarg ;;
1099 -psdir | --psdir | --psdi | --psd | --ps)
1100 ac_prev=psdir ;;
1101 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1102 psdir=$ac_optarg ;;
1104 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1105 | -silent | --silent | --silen | --sile | --sil)
1106 silent=yes ;;
1108 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1109 ac_prev=sbindir ;;
1110 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1111 | --sbi=* | --sb=*)
1112 sbindir=$ac_optarg ;;
1114 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1115 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1116 | --sharedst | --shareds | --shared | --share | --shar \
1117 | --sha | --sh)
1118 ac_prev=sharedstatedir ;;
1119 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1120 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1121 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1122 | --sha=* | --sh=*)
1123 sharedstatedir=$ac_optarg ;;
1125 -site | --site | --sit)
1126 ac_prev=site ;;
1127 -site=* | --site=* | --sit=*)
1128 site=$ac_optarg ;;
1130 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1131 ac_prev=srcdir ;;
1132 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1133 srcdir=$ac_optarg ;;
1135 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1136 | --syscon | --sysco | --sysc | --sys | --sy)
1137 ac_prev=sysconfdir ;;
1138 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1139 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1140 sysconfdir=$ac_optarg ;;
1142 -target | --target | --targe | --targ | --tar | --ta | --t)
1143 ac_prev=target_alias ;;
1144 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1145 target_alias=$ac_optarg ;;
1147 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1148 verbose=yes ;;
1150 -version | --version | --versio | --versi | --vers | -V)
1151 ac_init_version=: ;;
1153 -with-* | --with-*)
1154 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1155 # Reject names that are not valid shell variable names.
1156 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1157 as_fn_error "invalid package name: $ac_useropt"
1158 ac_useropt_orig=$ac_useropt
1159 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160 case $ac_user_opts in
1162 "with_$ac_useropt"
1163 "*) ;;
1164 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1165 ac_unrecognized_sep=', ';;
1166 esac
1167 eval with_$ac_useropt=\$ac_optarg ;;
1169 -without-* | --without-*)
1170 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1171 # Reject names that are not valid shell variable names.
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173 as_fn_error "invalid package name: $ac_useropt"
1174 ac_useropt_orig=$ac_useropt
1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 case $ac_user_opts in
1178 "with_$ac_useropt"
1179 "*) ;;
1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1181 ac_unrecognized_sep=', ';;
1182 esac
1183 eval with_$ac_useropt=no ;;
1185 --x)
1186 # Obsolete; use --with-x.
1187 with_x=yes ;;
1189 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1190 | --x-incl | --x-inc | --x-in | --x-i)
1191 ac_prev=x_includes ;;
1192 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1193 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1194 x_includes=$ac_optarg ;;
1196 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1197 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1198 ac_prev=x_libraries ;;
1199 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1200 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1201 x_libraries=$ac_optarg ;;
1203 -*) as_fn_error "unrecognized option: \`$ac_option'
1204 Try \`$0 --help' for more information."
1207 *=*)
1208 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1209 # Reject names that are not valid shell variable names.
1210 case $ac_envvar in #(
1211 '' | [0-9]* | *[!_$as_cr_alnum]* )
1212 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1213 esac
1214 eval $ac_envvar=\$ac_optarg
1215 export $ac_envvar ;;
1218 # FIXME: should be removed in autoconf 3.0.
1219 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1220 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1221 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1222 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1225 esac
1226 done
1228 if test -n "$ac_prev"; then
1229 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1230 as_fn_error "missing argument to $ac_option"
1233 if test -n "$ac_unrecognized_opts"; then
1234 case $enable_option_checking in
1235 no) ;;
1236 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1237 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1238 esac
1241 # Check all directory arguments for consistency.
1242 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1243 datadir sysconfdir sharedstatedir localstatedir includedir \
1244 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1245 libdir localedir mandir
1247 eval ac_val=\$$ac_var
1248 # Remove trailing slashes.
1249 case $ac_val in
1250 */ )
1251 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1252 eval $ac_var=\$ac_val;;
1253 esac
1254 # Be sure to have absolute directory names.
1255 case $ac_val in
1256 [\\/$]* | ?:[\\/]* ) continue;;
1257 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1258 esac
1259 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1260 done
1262 # There might be people who depend on the old broken behavior: `$host'
1263 # used to hold the argument of --host etc.
1264 # FIXME: To remove some day.
1265 build=$build_alias
1266 host=$host_alias
1267 target=$target_alias
1269 # FIXME: To remove some day.
1270 if test "x$host_alias" != x; then
1271 if test "x$build_alias" = x; then
1272 cross_compiling=maybe
1273 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1274 If a cross compiler is detected then cross compile mode will be used." >&2
1275 elif test "x$build_alias" != "x$host_alias"; then
1276 cross_compiling=yes
1280 ac_tool_prefix=
1281 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1283 test "$silent" = yes && exec 6>/dev/null
1286 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1287 ac_ls_di=`ls -di .` &&
1288 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1289 as_fn_error "working directory cannot be determined"
1290 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1291 as_fn_error "pwd does not report name of working directory"
1294 # Find the source files, if location was not specified.
1295 if test -z "$srcdir"; then
1296 ac_srcdir_defaulted=yes
1297 # Try the directory containing this script, then the parent directory.
1298 ac_confdir=`$as_dirname -- "$as_myself" ||
1299 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1300 X"$as_myself" : 'X\(//\)[^/]' \| \
1301 X"$as_myself" : 'X\(//\)$' \| \
1302 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1303 $as_echo X"$as_myself" |
1304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1305 s//\1/
1308 /^X\(\/\/\)[^/].*/{
1309 s//\1/
1312 /^X\(\/\/\)$/{
1313 s//\1/
1316 /^X\(\/\).*/{
1317 s//\1/
1320 s/.*/./; q'`
1321 srcdir=$ac_confdir
1322 if test ! -r "$srcdir/$ac_unique_file"; then
1323 srcdir=..
1325 else
1326 ac_srcdir_defaulted=no
1328 if test ! -r "$srcdir/$ac_unique_file"; then
1329 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1330 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1332 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1333 ac_abs_confdir=`(
1334 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1335 pwd)`
1336 # When building in place, set srcdir=.
1337 if test "$ac_abs_confdir" = "$ac_pwd"; then
1338 srcdir=.
1340 # Remove unnecessary trailing slashes from srcdir.
1341 # Double slashes in file names in object file debugging info
1342 # mess up M-x gdb in Emacs.
1343 case $srcdir in
1344 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1345 esac
1346 for ac_var in $ac_precious_vars; do
1347 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1348 eval ac_env_${ac_var}_value=\$${ac_var}
1349 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1350 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1351 done
1354 # Report the --help message.
1356 if test "$ac_init_help" = "long"; then
1357 # Omit some internal or obsolete options to make the list less imposing.
1358 # This message is too long to be a string in the A/UX 3.1 sh.
1359 cat <<_ACEOF
1360 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1362 Usage: $0 [OPTION]... [VAR=VALUE]...
1364 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1365 VAR=VALUE. See below for descriptions of some of the useful variables.
1367 Defaults for the options are specified in brackets.
1369 Configuration:
1370 -h, --help display this help and exit
1371 --help=short display options specific to this package
1372 --help=recursive display the short help of all the included packages
1373 -V, --version display version information and exit
1374 -q, --quiet, --silent do not print \`checking...' messages
1375 --cache-file=FILE cache test results in FILE [disabled]
1376 -C, --config-cache alias for \`--cache-file=config.cache'
1377 -n, --no-create do not create output files
1378 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1380 Installation directories:
1381 --prefix=PREFIX install architecture-independent files in PREFIX
1382 [$ac_default_prefix]
1383 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1384 [PREFIX]
1386 By default, \`make install' will install all the files in
1387 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1388 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1389 for instance \`--prefix=\$HOME'.
1391 For better control, use the options below.
1393 Fine tuning of the installation directories:
1394 --bindir=DIR user executables [EPREFIX/bin]
1395 --sbindir=DIR system admin executables [EPREFIX/sbin]
1396 --libexecdir=DIR program executables [EPREFIX/libexec]
1397 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1398 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1399 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1400 --libdir=DIR object code libraries [EPREFIX/lib]
1401 --includedir=DIR C header files [PREFIX/include]
1402 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1403 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1404 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1405 --infodir=DIR info documentation [DATAROOTDIR/info]
1406 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1407 --mandir=DIR man documentation [DATAROOTDIR/man]
1408 --docdir=DIR documentation root [DATAROOTDIR/doc/libgo]
1409 --htmldir=DIR html documentation [DOCDIR]
1410 --dvidir=DIR dvi documentation [DOCDIR]
1411 --pdfdir=DIR pdf documentation [DOCDIR]
1412 --psdir=DIR ps documentation [DOCDIR]
1413 _ACEOF
1415 cat <<\_ACEOF
1417 Program names:
1418 --program-prefix=PREFIX prepend PREFIX to installed program names
1419 --program-suffix=SUFFIX append SUFFIX to installed program names
1420 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1422 System types:
1423 --build=BUILD configure for building on BUILD [guessed]
1424 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1425 --target=TARGET configure for building compilers for TARGET [HOST]
1426 _ACEOF
1429 if test -n "$ac_init_help"; then
1430 case $ac_init_help in
1431 short | recursive ) echo "Configuration of package-unused version-unused:";;
1432 esac
1433 cat <<\_ACEOF
1435 Optional Features:
1436 --disable-option-checking ignore unrecognized --enable/--with options
1437 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1438 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1439 --enable-multilib build many library versions (default)
1440 --disable-dependency-tracking speeds up one-time build
1441 --enable-dependency-tracking do not reject slow dependency extractors
1442 --enable-maintainer-mode enable make rules and dependencies not useful
1443 (and sometimes confusing) to the casual installer
1444 --enable-shared[=PKGS] build shared libraries [default=yes]
1445 --enable-static[=PKGS] build static libraries [default=yes]
1446 --enable-fast-install[=PKGS]
1447 optimize for fast installation [default=yes]
1448 --disable-libtool-lock avoid locking (might break parallel builds)
1449 --enable-version-specific-runtime-libs
1450 Specify that runtime libraries should be installed
1451 in a compiler-specific directory
1452 --enable-sjlj-exceptions
1453 force use of builtin_setjmp for exceptions
1455 Optional Packages:
1456 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1457 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1458 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1459 --with-pic try to use only PIC/non-PIC objects [default=use
1460 both]
1461 --without-libffi don't use libffi
1462 --with-system-libunwind use installed libunwind
1464 Some influential environment variables:
1465 CC C compiler command
1466 CFLAGS C compiler flags
1467 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1468 nonstandard directory <lib dir>
1469 LIBS libraries to pass to the linker, e.g. -l<library>
1470 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1471 you have headers in a nonstandard directory <include dir>
1472 GOC Go compiler command
1473 GOCFLAGS Go compiler flags
1474 CPP C preprocessor
1476 Use these variables to override the choices made by `configure' or to help
1477 it to find libraries and programs with nonstandard names/locations.
1479 Report bugs to the package provider.
1480 _ACEOF
1481 ac_status=$?
1484 if test "$ac_init_help" = "recursive"; then
1485 # If there are subdirs, report their specific --help.
1486 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1487 test -d "$ac_dir" ||
1488 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1489 continue
1490 ac_builddir=.
1492 case "$ac_dir" in
1493 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1496 # A ".." for each directory in $ac_dir_suffix.
1497 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1498 case $ac_top_builddir_sub in
1499 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1501 esac ;;
1502 esac
1503 ac_abs_top_builddir=$ac_pwd
1504 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1505 # for backward compatibility:
1506 ac_top_builddir=$ac_top_build_prefix
1508 case $srcdir in
1509 .) # We are building in place.
1510 ac_srcdir=.
1511 ac_top_srcdir=$ac_top_builddir_sub
1512 ac_abs_top_srcdir=$ac_pwd ;;
1513 [\\/]* | ?:[\\/]* ) # Absolute name.
1514 ac_srcdir=$srcdir$ac_dir_suffix;
1515 ac_top_srcdir=$srcdir
1516 ac_abs_top_srcdir=$srcdir ;;
1517 *) # Relative name.
1518 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1519 ac_top_srcdir=$ac_top_build_prefix$srcdir
1520 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1521 esac
1522 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1524 cd "$ac_dir" || { ac_status=$?; continue; }
1525 # Check for guested configure.
1526 if test -f "$ac_srcdir/configure.gnu"; then
1527 echo &&
1528 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1529 elif test -f "$ac_srcdir/configure"; then
1530 echo &&
1531 $SHELL "$ac_srcdir/configure" --help=recursive
1532 else
1533 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1534 fi || ac_status=$?
1535 cd "$ac_pwd" || { ac_status=$?; break; }
1536 done
1539 test -n "$ac_init_help" && exit $ac_status
1540 if $ac_init_version; then
1541 cat <<\_ACEOF
1542 package-unused configure version-unused
1543 generated by GNU Autoconf 2.64
1545 Copyright (C) 2009 Free Software Foundation, Inc.
1546 This configure script is free software; the Free Software Foundation
1547 gives unlimited permission to copy, distribute and modify it.
1548 _ACEOF
1549 exit
1552 ## ------------------------ ##
1553 ## Autoconf initialization. ##
1554 ## ------------------------ ##
1556 # ac_fn_c_try_compile LINENO
1557 # --------------------------
1558 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1559 ac_fn_c_try_compile ()
1561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1562 rm -f conftest.$ac_objext
1563 if { { ac_try="$ac_compile"
1564 case "(($ac_try" in
1565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1566 *) ac_try_echo=$ac_try;;
1567 esac
1568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1569 $as_echo "$ac_try_echo"; } >&5
1570 (eval "$ac_compile") 2>conftest.err
1571 ac_status=$?
1572 if test -s conftest.err; then
1573 grep -v '^ *+' conftest.err >conftest.er1
1574 cat conftest.er1 >&5
1575 mv -f conftest.er1 conftest.err
1577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1578 test $ac_status = 0; } && {
1579 test -z "$ac_c_werror_flag" ||
1580 test ! -s conftest.err
1581 } && test -s conftest.$ac_objext; then :
1582 ac_retval=0
1583 else
1584 $as_echo "$as_me: failed program was:" >&5
1585 sed 's/^/| /' conftest.$ac_ext >&5
1587 ac_retval=1
1589 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1590 return $ac_retval
1592 } # ac_fn_c_try_compile
1594 # ac_fn_c_try_link LINENO
1595 # -----------------------
1596 # Try to link conftest.$ac_ext, and return whether this succeeded.
1597 ac_fn_c_try_link ()
1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600 rm -f conftest.$ac_objext conftest$ac_exeext
1601 if { { ac_try="$ac_link"
1602 case "(($ac_try" in
1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604 *) ac_try_echo=$ac_try;;
1605 esac
1606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607 $as_echo "$ac_try_echo"; } >&5
1608 (eval "$ac_link") 2>conftest.err
1609 ac_status=$?
1610 if test -s conftest.err; then
1611 grep -v '^ *+' conftest.err >conftest.er1
1612 cat conftest.er1 >&5
1613 mv -f conftest.er1 conftest.err
1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616 test $ac_status = 0; } && {
1617 test -z "$ac_c_werror_flag" ||
1618 test ! -s conftest.err
1619 } && test -s conftest$ac_exeext && {
1620 test "$cross_compiling" = yes ||
1621 $as_test_x conftest$ac_exeext
1622 }; then :
1623 ac_retval=0
1624 else
1625 $as_echo "$as_me: failed program was:" >&5
1626 sed 's/^/| /' conftest.$ac_ext >&5
1628 ac_retval=1
1630 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1631 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1632 # interfere with the next link command; also delete a directory that is
1633 # left behind by Apple's compiler. We do this before executing the actions.
1634 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1635 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1636 return $ac_retval
1638 } # ac_fn_c_try_link
1640 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1641 # -------------------------------------------------------
1642 # Tests whether HEADER exists and can be compiled using the include files in
1643 # INCLUDES, setting the cache variable VAR accordingly.
1644 ac_fn_c_check_header_compile ()
1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1648 $as_echo_n "checking for $2... " >&6; }
1649 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1650 $as_echo_n "(cached) " >&6
1651 else
1652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1653 /* end confdefs.h. */
1655 #include <$2>
1656 _ACEOF
1657 if ac_fn_c_try_compile "$LINENO"; then :
1658 eval "$3=yes"
1659 else
1660 eval "$3=no"
1662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1664 eval ac_res=\$$3
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1666 $as_echo "$ac_res" >&6; }
1667 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1669 } # ac_fn_c_check_header_compile
1671 # ac_fn_c_try_cpp LINENO
1672 # ----------------------
1673 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1674 ac_fn_c_try_cpp ()
1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677 if { { ac_try="$ac_cpp conftest.$ac_ext"
1678 case "(($ac_try" in
1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680 *) ac_try_echo=$ac_try;;
1681 esac
1682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683 $as_echo "$ac_try_echo"; } >&5
1684 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1685 ac_status=$?
1686 if test -s conftest.err; then
1687 grep -v '^ *+' conftest.err >conftest.er1
1688 cat conftest.er1 >&5
1689 mv -f conftest.er1 conftest.err
1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; } >/dev/null && {
1693 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1694 test ! -s conftest.err
1695 }; then :
1696 ac_retval=0
1697 else
1698 $as_echo "$as_me: failed program was:" >&5
1699 sed 's/^/| /' conftest.$ac_ext >&5
1701 ac_retval=1
1703 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1704 return $ac_retval
1706 } # ac_fn_c_try_cpp
1708 # ac_fn_c_try_run LINENO
1709 # ----------------------
1710 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1711 # that executables *can* be run.
1712 ac_fn_c_try_run ()
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 if { { ac_try="$ac_link"
1716 case "(($ac_try" in
1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718 *) ac_try_echo=$ac_try;;
1719 esac
1720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721 $as_echo "$ac_try_echo"; } >&5
1722 (eval "$ac_link") 2>&5
1723 ac_status=$?
1724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1726 { { case "(($ac_try" in
1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728 *) ac_try_echo=$ac_try;;
1729 esac
1730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731 $as_echo "$ac_try_echo"; } >&5
1732 (eval "$ac_try") 2>&5
1733 ac_status=$?
1734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735 test $ac_status = 0; }; }; then :
1736 ac_retval=0
1737 else
1738 $as_echo "$as_me: program exited with status $ac_status" >&5
1739 $as_echo "$as_me: failed program was:" >&5
1740 sed 's/^/| /' conftest.$ac_ext >&5
1742 ac_retval=$ac_status
1744 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1745 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1746 return $ac_retval
1748 } # ac_fn_c_try_run
1750 # ac_fn_c_check_func LINENO FUNC VAR
1751 # ----------------------------------
1752 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1753 ac_fn_c_check_func ()
1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757 $as_echo_n "checking for $2... " >&6; }
1758 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1759 $as_echo_n "(cached) " >&6
1760 else
1761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762 /* end confdefs.h. */
1763 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1765 #define $2 innocuous_$2
1767 /* System header to define __stub macros and hopefully few prototypes,
1768 which can conflict with char $2 (); below.
1769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1770 <limits.h> exists even on freestanding compilers. */
1772 #ifdef __STDC__
1773 # include <limits.h>
1774 #else
1775 # include <assert.h>
1776 #endif
1778 #undef $2
1780 /* Override any GCC internal prototype to avoid an error.
1781 Use char because int might match the return type of a GCC
1782 builtin and then its argument prototype would still apply. */
1783 #ifdef __cplusplus
1784 extern "C"
1785 #endif
1786 char $2 ();
1787 /* The GNU C library defines this for functions which it implements
1788 to always fail with ENOSYS. Some functions are actually named
1789 something starting with __ and the normal name is an alias. */
1790 #if defined __stub_$2 || defined __stub___$2
1791 choke me
1792 #endif
1795 main ()
1797 return $2 ();
1799 return 0;
1801 _ACEOF
1802 if ac_fn_c_try_link "$LINENO"; then :
1803 eval "$3=yes"
1804 else
1805 eval "$3=no"
1807 rm -f core conftest.err conftest.$ac_objext \
1808 conftest$ac_exeext conftest.$ac_ext
1810 eval ac_res=\$$3
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1812 $as_echo "$ac_res" >&6; }
1813 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1815 } # ac_fn_c_check_func
1817 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1818 # -------------------------------------------------------
1819 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1820 # the include files in INCLUDES and setting the cache variable VAR
1821 # accordingly.
1822 ac_fn_c_check_header_mongrel ()
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1827 $as_echo_n "checking for $2... " >&6; }
1828 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1829 $as_echo_n "(cached) " >&6
1831 eval ac_res=\$$3
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1833 $as_echo "$ac_res" >&6; }
1834 else
1835 # Is the header compilable?
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1837 $as_echo_n "checking $2 usability... " >&6; }
1838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839 /* end confdefs.h. */
1841 #include <$2>
1842 _ACEOF
1843 if ac_fn_c_try_compile "$LINENO"; then :
1844 ac_header_compiler=yes
1845 else
1846 ac_header_compiler=no
1848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1850 $as_echo "$ac_header_compiler" >&6; }
1852 # Is the header present?
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1854 $as_echo_n "checking $2 presence... " >&6; }
1855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856 /* end confdefs.h. */
1857 #include <$2>
1858 _ACEOF
1859 if ac_fn_c_try_cpp "$LINENO"; then :
1860 ac_header_preproc=yes
1861 else
1862 ac_header_preproc=no
1864 rm -f conftest.err conftest.$ac_ext
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1866 $as_echo "$ac_header_preproc" >&6; }
1868 # So? What about this header?
1869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1870 yes:no: )
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1872 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1874 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1876 no:yes:* )
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1878 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1880 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1882 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1884 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1886 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1888 esac
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1890 $as_echo_n "checking for $2... " >&6; }
1891 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1892 $as_echo_n "(cached) " >&6
1893 else
1894 eval "$3=\$ac_header_compiler"
1896 eval ac_res=\$$3
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1898 $as_echo "$ac_res" >&6; }
1900 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1902 } # ac_fn_c_check_header_mongrel
1904 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1905 # -------------------------------------------
1906 # Tests whether TYPE exists after having included INCLUDES, setting cache
1907 # variable VAR accordingly.
1908 ac_fn_c_check_type ()
1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1912 $as_echo_n "checking for $2... " >&6; }
1913 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1914 $as_echo_n "(cached) " >&6
1915 else
1916 eval "$3=no"
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h. */
1921 main ()
1923 if (sizeof ($2))
1924 return 0;
1926 return 0;
1928 _ACEOF
1929 if ac_fn_c_try_compile "$LINENO"; then :
1930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931 /* end confdefs.h. */
1934 main ()
1936 if (sizeof (($2)))
1937 return 0;
1939 return 0;
1941 _ACEOF
1942 if ac_fn_c_try_compile "$LINENO"; then :
1944 else
1945 eval "$3=yes"
1947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1951 eval ac_res=\$$3
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1953 $as_echo "$ac_res" >&6; }
1954 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1956 } # ac_fn_c_check_type
1958 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1959 # --------------------------------------------
1960 # Tries to find the compile-time value of EXPR in a program that includes
1961 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1962 # computed
1963 ac_fn_c_compute_int ()
1965 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966 if test "$cross_compiling" = yes; then
1967 # Depending upon the size, compute the lo and hi bounds.
1968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969 /* end confdefs.h. */
1972 main ()
1974 static int test_array [1 - 2 * !(($2) >= 0)];
1975 test_array [0] = 0
1978 return 0;
1980 _ACEOF
1981 if ac_fn_c_try_compile "$LINENO"; then :
1982 ac_lo=0 ac_mid=0
1983 while :; do
1984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985 /* end confdefs.h. */
1988 main ()
1990 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1991 test_array [0] = 0
1994 return 0;
1996 _ACEOF
1997 if ac_fn_c_try_compile "$LINENO"; then :
1998 ac_hi=$ac_mid; break
1999 else
2000 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2001 if test $ac_lo -le $ac_mid; then
2002 ac_lo= ac_hi=
2003 break
2005 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008 done
2009 else
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h. */
2014 main ()
2016 static int test_array [1 - 2 * !(($2) < 0)];
2017 test_array [0] = 0
2020 return 0;
2022 _ACEOF
2023 if ac_fn_c_try_compile "$LINENO"; then :
2024 ac_hi=-1 ac_mid=-1
2025 while :; do
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h. */
2030 main ()
2032 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2033 test_array [0] = 0
2036 return 0;
2038 _ACEOF
2039 if ac_fn_c_try_compile "$LINENO"; then :
2040 ac_lo=$ac_mid; break
2041 else
2042 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2043 if test $ac_mid -le $ac_hi; then
2044 ac_lo= ac_hi=
2045 break
2047 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2050 done
2051 else
2052 ac_lo= ac_hi=
2054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2057 # Binary search between lo and hi bounds.
2058 while test "x$ac_lo" != "x$ac_hi"; do
2059 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061 /* end confdefs.h. */
2064 main ()
2066 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2067 test_array [0] = 0
2070 return 0;
2072 _ACEOF
2073 if ac_fn_c_try_compile "$LINENO"; then :
2074 ac_hi=$ac_mid
2075 else
2076 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2079 done
2080 case $ac_lo in #((
2081 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2082 '') ac_retval=1 ;;
2083 esac
2084 else
2085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086 /* end confdefs.h. */
2088 static long int longval () { return $2; }
2089 static unsigned long int ulongval () { return $2; }
2090 #include <stdio.h>
2091 #include <stdlib.h>
2093 main ()
2096 FILE *f = fopen ("conftest.val", "w");
2097 if (! f)
2098 return 1;
2099 if (($2) < 0)
2101 long int i = longval ();
2102 if (i != ($2))
2103 return 1;
2104 fprintf (f, "%ld", i);
2106 else
2108 unsigned long int i = ulongval ();
2109 if (i != ($2))
2110 return 1;
2111 fprintf (f, "%lu", i);
2113 /* Do not output a trailing newline, as this causes \r\n confusion
2114 on some platforms. */
2115 return ferror (f) || fclose (f) != 0;
2118 return 0;
2120 _ACEOF
2121 if ac_fn_c_try_run "$LINENO"; then :
2122 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2123 else
2124 ac_retval=1
2126 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2127 conftest.$ac_objext conftest.beam conftest.$ac_ext
2128 rm -f conftest.val
2131 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2132 return $ac_retval
2134 } # ac_fn_c_compute_int
2135 cat >config.log <<_ACEOF
2136 This file contains any messages produced by compilers while
2137 running configure, to aid debugging if configure makes a mistake.
2139 It was created by package-unused $as_me version-unused, which was
2140 generated by GNU Autoconf 2.64. Invocation command line was
2142 $ $0 $@
2144 _ACEOF
2145 exec 5>>config.log
2147 cat <<_ASUNAME
2148 ## --------- ##
2149 ## Platform. ##
2150 ## --------- ##
2152 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2153 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2154 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2155 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2156 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2158 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2159 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2161 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2162 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2163 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2164 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2165 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2166 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2167 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2169 _ASUNAME
2171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2172 for as_dir in $PATH
2174 IFS=$as_save_IFS
2175 test -z "$as_dir" && as_dir=.
2176 $as_echo "PATH: $as_dir"
2177 done
2178 IFS=$as_save_IFS
2180 } >&5
2182 cat >&5 <<_ACEOF
2185 ## ----------- ##
2186 ## Core tests. ##
2187 ## ----------- ##
2189 _ACEOF
2192 # Keep a trace of the command line.
2193 # Strip out --no-create and --no-recursion so they do not pile up.
2194 # Strip out --silent because we don't want to record it for future runs.
2195 # Also quote any args containing shell meta-characters.
2196 # Make two passes to allow for proper duplicate-argument suppression.
2197 ac_configure_args=
2198 ac_configure_args0=
2199 ac_configure_args1=
2200 ac_must_keep_next=false
2201 for ac_pass in 1 2
2203 for ac_arg
2205 case $ac_arg in
2206 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2207 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2208 | -silent | --silent | --silen | --sile | --sil)
2209 continue ;;
2210 *\'*)
2211 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2212 esac
2213 case $ac_pass in
2214 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2216 as_fn_append ac_configure_args1 " '$ac_arg'"
2217 if test $ac_must_keep_next = true; then
2218 ac_must_keep_next=false # Got value, back to normal.
2219 else
2220 case $ac_arg in
2221 *=* | --config-cache | -C | -disable-* | --disable-* \
2222 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2223 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2224 | -with-* | --with-* | -without-* | --without-* | --x)
2225 case "$ac_configure_args0 " in
2226 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2227 esac
2229 -* ) ac_must_keep_next=true ;;
2230 esac
2232 as_fn_append ac_configure_args " '$ac_arg'"
2234 esac
2235 done
2236 done
2237 { ac_configure_args0=; unset ac_configure_args0;}
2238 { ac_configure_args1=; unset ac_configure_args1;}
2240 # When interrupted or exit'd, cleanup temporary files, and complete
2241 # config.log. We remove comments because anyway the quotes in there
2242 # would cause problems or look ugly.
2243 # WARNING: Use '\'' to represent an apostrophe within the trap.
2244 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2245 trap 'exit_status=$?
2246 # Save into config.log some information that might help in debugging.
2248 echo
2250 cat <<\_ASBOX
2251 ## ---------------- ##
2252 ## Cache variables. ##
2253 ## ---------------- ##
2254 _ASBOX
2255 echo
2256 # The following way of writing the cache mishandles newlines in values,
2258 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2259 eval ac_val=\$$ac_var
2260 case $ac_val in #(
2261 *${as_nl}*)
2262 case $ac_var in #(
2263 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2264 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2265 esac
2266 case $ac_var in #(
2267 _ | IFS | as_nl) ;; #(
2268 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2269 *) { eval $ac_var=; unset $ac_var;} ;;
2270 esac ;;
2271 esac
2272 done
2273 (set) 2>&1 |
2274 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2275 *${as_nl}ac_space=\ *)
2276 sed -n \
2277 "s/'\''/'\''\\\\'\'''\''/g;
2278 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2279 ;; #(
2281 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2283 esac |
2284 sort
2286 echo
2288 cat <<\_ASBOX
2289 ## ----------------- ##
2290 ## Output variables. ##
2291 ## ----------------- ##
2292 _ASBOX
2293 echo
2294 for ac_var in $ac_subst_vars
2296 eval ac_val=\$$ac_var
2297 case $ac_val in
2298 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2299 esac
2300 $as_echo "$ac_var='\''$ac_val'\''"
2301 done | sort
2302 echo
2304 if test -n "$ac_subst_files"; then
2305 cat <<\_ASBOX
2306 ## ------------------- ##
2307 ## File substitutions. ##
2308 ## ------------------- ##
2309 _ASBOX
2310 echo
2311 for ac_var in $ac_subst_files
2313 eval ac_val=\$$ac_var
2314 case $ac_val in
2315 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2316 esac
2317 $as_echo "$ac_var='\''$ac_val'\''"
2318 done | sort
2319 echo
2322 if test -s confdefs.h; then
2323 cat <<\_ASBOX
2324 ## ----------- ##
2325 ## confdefs.h. ##
2326 ## ----------- ##
2327 _ASBOX
2328 echo
2329 cat confdefs.h
2330 echo
2332 test "$ac_signal" != 0 &&
2333 $as_echo "$as_me: caught signal $ac_signal"
2334 $as_echo "$as_me: exit $exit_status"
2335 } >&5
2336 rm -f core *.core core.conftest.* &&
2337 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2338 exit $exit_status
2340 for ac_signal in 1 2 13 15; do
2341 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2342 done
2343 ac_signal=0
2345 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2346 rm -f -r conftest* confdefs.h
2348 $as_echo "/* confdefs.h */" > confdefs.h
2350 # Predefined preprocessor variables.
2352 cat >>confdefs.h <<_ACEOF
2353 #define PACKAGE_NAME "$PACKAGE_NAME"
2354 _ACEOF
2356 cat >>confdefs.h <<_ACEOF
2357 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2358 _ACEOF
2360 cat >>confdefs.h <<_ACEOF
2361 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2362 _ACEOF
2364 cat >>confdefs.h <<_ACEOF
2365 #define PACKAGE_STRING "$PACKAGE_STRING"
2366 _ACEOF
2368 cat >>confdefs.h <<_ACEOF
2369 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2370 _ACEOF
2372 cat >>confdefs.h <<_ACEOF
2373 #define PACKAGE_URL "$PACKAGE_URL"
2374 _ACEOF
2377 # Let the site file select an alternate cache file if it wants to.
2378 # Prefer an explicitly selected file to automatically selected ones.
2379 ac_site_file1=NONE
2380 ac_site_file2=NONE
2381 if test -n "$CONFIG_SITE"; then
2382 ac_site_file1=$CONFIG_SITE
2383 elif test "x$prefix" != xNONE; then
2384 ac_site_file1=$prefix/share/config.site
2385 ac_site_file2=$prefix/etc/config.site
2386 else
2387 ac_site_file1=$ac_default_prefix/share/config.site
2388 ac_site_file2=$ac_default_prefix/etc/config.site
2390 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2392 test "x$ac_site_file" = xNONE && continue
2393 if test -r "$ac_site_file"; then
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2395 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2396 sed 's/^/| /' "$ac_site_file" >&5
2397 . "$ac_site_file"
2399 done
2401 if test -r "$cache_file"; then
2402 # Some versions of bash will fail to source /dev/null (special
2403 # files actually), so we avoid doing that.
2404 if test -f "$cache_file"; then
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2406 $as_echo "$as_me: loading cache $cache_file" >&6;}
2407 case $cache_file in
2408 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2409 *) . "./$cache_file";;
2410 esac
2412 else
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2414 $as_echo "$as_me: creating cache $cache_file" >&6;}
2415 >$cache_file
2418 # Check that the precious variables saved in the cache have kept the same
2419 # value.
2420 ac_cache_corrupted=false
2421 for ac_var in $ac_precious_vars; do
2422 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2423 eval ac_new_set=\$ac_env_${ac_var}_set
2424 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2425 eval ac_new_val=\$ac_env_${ac_var}_value
2426 case $ac_old_set,$ac_new_set in
2427 set,)
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2429 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2430 ac_cache_corrupted=: ;;
2431 ,set)
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2433 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2434 ac_cache_corrupted=: ;;
2435 ,);;
2437 if test "x$ac_old_val" != "x$ac_new_val"; then
2438 # differences in whitespace do not lead to failure.
2439 ac_old_val_w=`echo x $ac_old_val`
2440 ac_new_val_w=`echo x $ac_new_val`
2441 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2443 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2444 ac_cache_corrupted=:
2445 else
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2447 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2448 eval $ac_var=\$ac_old_val
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2451 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2453 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2454 fi;;
2455 esac
2456 # Pass precious variables to config.status.
2457 if test "$ac_new_set" = set; then
2458 case $ac_new_val in
2459 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2460 *) ac_arg=$ac_var=$ac_new_val ;;
2461 esac
2462 case " $ac_configure_args " in
2463 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2464 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2465 esac
2467 done
2468 if $ac_cache_corrupted; then
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2470 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2472 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2473 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2475 ## -------------------- ##
2476 ## Main body of script. ##
2477 ## -------------------- ##
2479 ac_ext=c
2480 ac_cpp='$CPP $CPPFLAGS'
2481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2490 ac_config_headers="$ac_config_headers config.h"
2493 libtool_VERSION=1:0:0
2496 # Default to --enable-multilib
2497 # Check whether --enable-multilib was given.
2498 if test "${enable_multilib+set}" = set; then :
2499 enableval=$enable_multilib; case "$enableval" in
2500 yes) multilib=yes ;;
2501 no) multilib=no ;;
2502 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2503 esac
2504 else
2505 multilib=yes
2509 # We may get other options which we leave undocumented:
2510 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2511 # See config-ml.in if you want the gory details.
2513 if test "$srcdir" = "."; then
2514 if test "$with_target_subdir" != "."; then
2515 multi_basedir="$srcdir/$with_multisrctop../.."
2516 else
2517 multi_basedir="$srcdir/$with_multisrctop.."
2519 else
2520 multi_basedir="$srcdir/.."
2524 # Even if the default multilib is not a cross compilation,
2525 # it may be that some of the other multilibs are.
2526 if test $cross_compiling = no && test $multilib = yes \
2527 && test "x${with_multisubdir}" != x ; then
2528 cross_compiling=maybe
2531 ac_config_commands="$ac_config_commands default-1"
2534 ac_aux_dir=
2535 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2536 for ac_t in install-sh install.sh shtool; do
2537 if test -f "$ac_dir/$ac_t"; then
2538 ac_aux_dir=$ac_dir
2539 ac_install_sh="$ac_aux_dir/$ac_t -c"
2540 break 2
2542 done
2543 done
2544 if test -z "$ac_aux_dir"; then
2545 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2548 # These three variables are undocumented and unsupported,
2549 # and are intended to be withdrawn in a future Autoconf release.
2550 # They can cause serious problems if a builder's source tree is in a directory
2551 # whose full name contains unusual characters.
2552 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2553 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2554 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2557 # Make sure we can run config.sub.
2558 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2559 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2562 $as_echo_n "checking build system type... " >&6; }
2563 if test "${ac_cv_build+set}" = set; then :
2564 $as_echo_n "(cached) " >&6
2565 else
2566 ac_build_alias=$build_alias
2567 test "x$ac_build_alias" = x &&
2568 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2569 test "x$ac_build_alias" = x &&
2570 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2571 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2572 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2576 $as_echo "$ac_cv_build" >&6; }
2577 case $ac_cv_build in
2578 *-*-*) ;;
2579 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2580 esac
2581 build=$ac_cv_build
2582 ac_save_IFS=$IFS; IFS='-'
2583 set x $ac_cv_build
2584 shift
2585 build_cpu=$1
2586 build_vendor=$2
2587 shift; shift
2588 # Remember, the first character of IFS is used to create $*,
2589 # except with old shells:
2590 build_os=$*
2591 IFS=$ac_save_IFS
2592 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2596 $as_echo_n "checking host system type... " >&6; }
2597 if test "${ac_cv_host+set}" = set; then :
2598 $as_echo_n "(cached) " >&6
2599 else
2600 if test "x$host_alias" = x; then
2601 ac_cv_host=$ac_cv_build
2602 else
2603 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2604 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2609 $as_echo "$ac_cv_host" >&6; }
2610 case $ac_cv_host in
2611 *-*-*) ;;
2612 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2613 esac
2614 host=$ac_cv_host
2615 ac_save_IFS=$IFS; IFS='-'
2616 set x $ac_cv_host
2617 shift
2618 host_cpu=$1
2619 host_vendor=$2
2620 shift; shift
2621 # Remember, the first character of IFS is used to create $*,
2622 # except with old shells:
2623 host_os=$*
2624 IFS=$ac_save_IFS
2625 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2629 $as_echo_n "checking target system type... " >&6; }
2630 if test "${ac_cv_target+set}" = set; then :
2631 $as_echo_n "(cached) " >&6
2632 else
2633 if test "x$target_alias" = x; then
2634 ac_cv_target=$ac_cv_host
2635 else
2636 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2637 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2642 $as_echo "$ac_cv_target" >&6; }
2643 case $ac_cv_target in
2644 *-*-*) ;;
2645 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2646 esac
2647 target=$ac_cv_target
2648 ac_save_IFS=$IFS; IFS='-'
2649 set x $ac_cv_target
2650 shift
2651 target_cpu=$1
2652 target_vendor=$2
2653 shift; shift
2654 # Remember, the first character of IFS is used to create $*,
2655 # except with old shells:
2656 target_os=$*
2657 IFS=$ac_save_IFS
2658 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2661 # The aliases save the names the user supplied, while $host etc.
2662 # will get canonicalized.
2663 test -n "$target_alias" &&
2664 test "$program_prefix$program_suffix$program_transform_name" = \
2665 NONENONEs,x,x, &&
2666 program_prefix=${target_alias}-
2668 target_alias=${target_alias-$host_alias}
2670 am__api_version='1.11'
2672 # Find a good install program. We prefer a C program (faster),
2673 # so one script is as good as another. But avoid the broken or
2674 # incompatible versions:
2675 # SysV /etc/install, /usr/sbin/install
2676 # SunOS /usr/etc/install
2677 # IRIX /sbin/install
2678 # AIX /bin/install
2679 # AmigaOS /C/install, which installs bootblocks on floppy discs
2680 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2681 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2682 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2683 # OS/2's system install, which has a completely different semantic
2684 # ./install, which can be erroneously created by make from ./install.sh.
2685 # Reject install programs that cannot install multiple files.
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2687 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2688 if test -z "$INSTALL"; then
2689 if test "${ac_cv_path_install+set}" = set; then :
2690 $as_echo_n "(cached) " >&6
2691 else
2692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693 for as_dir in $PATH
2695 IFS=$as_save_IFS
2696 test -z "$as_dir" && as_dir=.
2697 # Account for people who put trailing slashes in PATH elements.
2698 case $as_dir/ in #((
2699 ./ | .// | /[cC]/* | \
2700 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2701 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2702 /usr/ucb/* ) ;;
2704 # OSF1 and SCO ODT 3.0 have their own names for install.
2705 # Don't use installbsd from OSF since it installs stuff as root
2706 # by default.
2707 for ac_prog in ginstall scoinst install; do
2708 for ac_exec_ext in '' $ac_executable_extensions; do
2709 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2710 if test $ac_prog = install &&
2711 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2712 # AIX install. It has an incompatible calling convention.
2714 elif test $ac_prog = install &&
2715 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2716 # program-specific install script used by HP pwplus--don't use.
2718 else
2719 rm -rf conftest.one conftest.two conftest.dir
2720 echo one > conftest.one
2721 echo two > conftest.two
2722 mkdir conftest.dir
2723 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2724 test -s conftest.one && test -s conftest.two &&
2725 test -s conftest.dir/conftest.one &&
2726 test -s conftest.dir/conftest.two
2727 then
2728 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2729 break 3
2733 done
2734 done
2736 esac
2738 done
2739 IFS=$as_save_IFS
2741 rm -rf conftest.one conftest.two conftest.dir
2744 if test "${ac_cv_path_install+set}" = set; then
2745 INSTALL=$ac_cv_path_install
2746 else
2747 # As a last resort, use the slow shell script. Don't cache a
2748 # value for INSTALL within a source directory, because that will
2749 # break other packages using the cache if that directory is
2750 # removed, or if the value is a relative name.
2751 INSTALL=$ac_install_sh
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2755 $as_echo "$INSTALL" >&6; }
2757 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2758 # It thinks the first close brace ends the variable substitution.
2759 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2761 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2763 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2766 $as_echo_n "checking whether build environment is sane... " >&6; }
2767 # Just in case
2768 sleep 1
2769 echo timestamp > conftest.file
2770 # Reject unsafe characters in $srcdir or the absolute working directory
2771 # name. Accept space and tab only in the latter.
2772 am_lf='
2774 case `pwd` in
2775 *[\\\"\#\$\&\'\`$am_lf]*)
2776 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2777 esac
2778 case $srcdir in
2779 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2780 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2781 esac
2783 # Do `set' in a subshell so we don't clobber the current shell's
2784 # arguments. Must try -L first in case configure is actually a
2785 # symlink; some systems play weird games with the mod time of symlinks
2786 # (eg FreeBSD returns the mod time of the symlink's containing
2787 # directory).
2788 if (
2789 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2790 if test "$*" = "X"; then
2791 # -L didn't work.
2792 set X `ls -t "$srcdir/configure" conftest.file`
2794 rm -f conftest.file
2795 if test "$*" != "X $srcdir/configure conftest.file" \
2796 && test "$*" != "X conftest.file $srcdir/configure"; then
2798 # If neither matched, then we have a broken ls. This can happen
2799 # if, for instance, CONFIG_SHELL is bash and it inherits a
2800 # broken ls alias from the environment. This has actually
2801 # happened. Such a system could not be considered "sane".
2802 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2803 alias in your environment" "$LINENO" 5
2806 test "$2" = conftest.file
2808 then
2809 # Ok.
2811 else
2812 as_fn_error "newly created file is older than distributed files!
2813 Check your system clock" "$LINENO" 5
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2816 $as_echo "yes" >&6; }
2817 test "$program_prefix" != NONE &&
2818 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2819 # Use a double $ so make ignores it.
2820 test "$program_suffix" != NONE &&
2821 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2822 # Double any \ or $.
2823 # By default was `s,x,x', remove it if useless.
2824 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2825 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2827 # expand $ac_aux_dir to an absolute path
2828 am_aux_dir=`cd $ac_aux_dir && pwd`
2830 if test x"${MISSING+set}" != xset; then
2831 case $am_aux_dir in
2832 *\ * | *\ *)
2833 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2835 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2836 esac
2838 # Use eval to expand $SHELL
2839 if eval "$MISSING --run true"; then
2840 am_missing_run="$MISSING --run "
2841 else
2842 am_missing_run=
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2844 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2847 if test x"${install_sh}" != xset; then
2848 case $am_aux_dir in
2849 *\ * | *\ *)
2850 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2852 install_sh="\${SHELL} $am_aux_dir/install-sh"
2853 esac
2856 # Installed binaries are usually stripped using `strip' when the user
2857 # run `make install-strip'. However `strip' might not be the right
2858 # tool to use in cross-compilation environments, therefore Automake
2859 # will honor the `STRIP' environment variable to overrule this program.
2860 if test "$cross_compiling" != no; then
2861 if test -n "$ac_tool_prefix"; then
2862 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2863 set dummy ${ac_tool_prefix}strip; ac_word=$2
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2865 $as_echo_n "checking for $ac_word... " >&6; }
2866 if test "${ac_cv_prog_STRIP+set}" = set; then :
2867 $as_echo_n "(cached) " >&6
2868 else
2869 if test -n "$STRIP"; then
2870 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2871 else
2872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873 for as_dir in $PATH
2875 IFS=$as_save_IFS
2876 test -z "$as_dir" && as_dir=.
2877 for ac_exec_ext in '' $ac_executable_extensions; do
2878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2879 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2881 break 2
2883 done
2884 done
2885 IFS=$as_save_IFS
2889 STRIP=$ac_cv_prog_STRIP
2890 if test -n "$STRIP"; then
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2892 $as_echo "$STRIP" >&6; }
2893 else
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2895 $as_echo "no" >&6; }
2900 if test -z "$ac_cv_prog_STRIP"; then
2901 ac_ct_STRIP=$STRIP
2902 # Extract the first word of "strip", so it can be a program name with args.
2903 set dummy strip; ac_word=$2
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2905 $as_echo_n "checking for $ac_word... " >&6; }
2906 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2907 $as_echo_n "(cached) " >&6
2908 else
2909 if test -n "$ac_ct_STRIP"; then
2910 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2911 else
2912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2913 for as_dir in $PATH
2915 IFS=$as_save_IFS
2916 test -z "$as_dir" && as_dir=.
2917 for ac_exec_ext in '' $ac_executable_extensions; do
2918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2919 ac_cv_prog_ac_ct_STRIP="strip"
2920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2921 break 2
2923 done
2924 done
2925 IFS=$as_save_IFS
2929 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2930 if test -n "$ac_ct_STRIP"; then
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2932 $as_echo "$ac_ct_STRIP" >&6; }
2933 else
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2935 $as_echo "no" >&6; }
2938 if test "x$ac_ct_STRIP" = x; then
2939 STRIP=":"
2940 else
2941 case $cross_compiling:$ac_tool_warned in
2942 yes:)
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2944 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2945 ac_tool_warned=yes ;;
2946 esac
2947 STRIP=$ac_ct_STRIP
2949 else
2950 STRIP="$ac_cv_prog_STRIP"
2954 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2957 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2958 if test -z "$MKDIR_P"; then
2959 if test "${ac_cv_path_mkdir+set}" = set; then :
2960 $as_echo_n "(cached) " >&6
2961 else
2962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2965 IFS=$as_save_IFS
2966 test -z "$as_dir" && as_dir=.
2967 for ac_prog in mkdir gmkdir; do
2968 for ac_exec_ext in '' $ac_executable_extensions; do
2969 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2970 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2971 'mkdir (GNU coreutils) '* | \
2972 'mkdir (coreutils) '* | \
2973 'mkdir (fileutils) '4.1*)
2974 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2975 break 3;;
2976 esac
2977 done
2978 done
2979 done
2980 IFS=$as_save_IFS
2984 if test "${ac_cv_path_mkdir+set}" = set; then
2985 MKDIR_P="$ac_cv_path_mkdir -p"
2986 else
2987 # As a last resort, use the slow shell script. Don't cache a
2988 # value for MKDIR_P within a source directory, because that will
2989 # break other packages using the cache if that directory is
2990 # removed, or if the value is a relative name.
2991 test -d ./--version && rmdir ./--version
2992 MKDIR_P="$ac_install_sh -d"
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2996 $as_echo "$MKDIR_P" >&6; }
2998 mkdir_p="$MKDIR_P"
2999 case $mkdir_p in
3000 [\\/$]* | ?:[\\/]*) ;;
3001 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3002 esac
3004 for ac_prog in gawk mawk nawk awk
3006 # Extract the first word of "$ac_prog", so it can be a program name with args.
3007 set dummy $ac_prog; ac_word=$2
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3009 $as_echo_n "checking for $ac_word... " >&6; }
3010 if test "${ac_cv_prog_AWK+set}" = set; then :
3011 $as_echo_n "(cached) " >&6
3012 else
3013 if test -n "$AWK"; then
3014 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3015 else
3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017 for as_dir in $PATH
3019 IFS=$as_save_IFS
3020 test -z "$as_dir" && as_dir=.
3021 for ac_exec_ext in '' $ac_executable_extensions; do
3022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3023 ac_cv_prog_AWK="$ac_prog"
3024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3025 break 2
3027 done
3028 done
3029 IFS=$as_save_IFS
3033 AWK=$ac_cv_prog_AWK
3034 if test -n "$AWK"; then
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3036 $as_echo "$AWK" >&6; }
3037 else
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3039 $as_echo "no" >&6; }
3043 test -n "$AWK" && break
3044 done
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3047 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3048 set x ${MAKE-make}
3049 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3050 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3051 $as_echo_n "(cached) " >&6
3052 else
3053 cat >conftest.make <<\_ACEOF
3054 SHELL = /bin/sh
3055 all:
3056 @echo '@@@%%%=$(MAKE)=@@@%%%'
3057 _ACEOF
3058 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3059 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3060 *@@@%%%=?*=@@@%%%*)
3061 eval ac_cv_prog_make_${ac_make}_set=yes;;
3063 eval ac_cv_prog_make_${ac_make}_set=no;;
3064 esac
3065 rm -f conftest.make
3067 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3069 $as_echo "yes" >&6; }
3070 SET_MAKE=
3071 else
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073 $as_echo "no" >&6; }
3074 SET_MAKE="MAKE=${MAKE-make}"
3077 rm -rf .tst 2>/dev/null
3078 mkdir .tst 2>/dev/null
3079 if test -d .tst; then
3080 am__leading_dot=.
3081 else
3082 am__leading_dot=_
3084 rmdir .tst 2>/dev/null
3086 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3087 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3088 # is not polluted with repeated "-I."
3089 am__isrc=' -I$(srcdir)'
3090 # test to see if srcdir already configured
3091 if test -f $srcdir/config.status; then
3092 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3096 # test whether we have cygpath
3097 if test -z "$CYGPATH_W"; then
3098 if (cygpath --version) >/dev/null 2>/dev/null; then
3099 CYGPATH_W='cygpath -w'
3100 else
3101 CYGPATH_W=echo
3106 # Define the identity of the package.
3107 PACKAGE='libgo'
3108 VERSION='version-unused'
3111 # Some tools Automake needs.
3113 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3116 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3119 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3122 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3125 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3127 # We need awk for the "check" target. The system "awk" is bad on
3128 # some platforms.
3129 # Always define AMTAR for backward compatibility.
3131 AMTAR=${AMTAR-"${am_missing_run}tar"}
3133 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3144 ac_ext=c
3145 ac_cpp='$CPP $CPPFLAGS'
3146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3149 if test -n "$ac_tool_prefix"; then
3150 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3151 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3153 $as_echo_n "checking for $ac_word... " >&6; }
3154 if test "${ac_cv_prog_CC+set}" = set; then :
3155 $as_echo_n "(cached) " >&6
3156 else
3157 if test -n "$CC"; then
3158 ac_cv_prog_CC="$CC" # Let the user override the test.
3159 else
3160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161 for as_dir in $PATH
3163 IFS=$as_save_IFS
3164 test -z "$as_dir" && as_dir=.
3165 for ac_exec_ext in '' $ac_executable_extensions; do
3166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3167 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3169 break 2
3171 done
3172 done
3173 IFS=$as_save_IFS
3177 CC=$ac_cv_prog_CC
3178 if test -n "$CC"; then
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3180 $as_echo "$CC" >&6; }
3181 else
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3183 $as_echo "no" >&6; }
3188 if test -z "$ac_cv_prog_CC"; then
3189 ac_ct_CC=$CC
3190 # Extract the first word of "gcc", so it can be a program name with args.
3191 set dummy gcc; ac_word=$2
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3193 $as_echo_n "checking for $ac_word... " >&6; }
3194 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3195 $as_echo_n "(cached) " >&6
3196 else
3197 if test -n "$ac_ct_CC"; then
3198 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3199 else
3200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201 for as_dir in $PATH
3203 IFS=$as_save_IFS
3204 test -z "$as_dir" && as_dir=.
3205 for ac_exec_ext in '' $ac_executable_extensions; do
3206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3207 ac_cv_prog_ac_ct_CC="gcc"
3208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3209 break 2
3211 done
3212 done
3213 IFS=$as_save_IFS
3217 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3218 if test -n "$ac_ct_CC"; then
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3220 $as_echo "$ac_ct_CC" >&6; }
3221 else
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3223 $as_echo "no" >&6; }
3226 if test "x$ac_ct_CC" = x; then
3227 CC=""
3228 else
3229 case $cross_compiling:$ac_tool_warned in
3230 yes:)
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3232 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3233 ac_tool_warned=yes ;;
3234 esac
3235 CC=$ac_ct_CC
3237 else
3238 CC="$ac_cv_prog_CC"
3241 if test -z "$CC"; then
3242 if test -n "$ac_tool_prefix"; then
3243 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3244 set dummy ${ac_tool_prefix}cc; ac_word=$2
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3246 $as_echo_n "checking for $ac_word... " >&6; }
3247 if test "${ac_cv_prog_CC+set}" = set; then :
3248 $as_echo_n "(cached) " >&6
3249 else
3250 if test -n "$CC"; then
3251 ac_cv_prog_CC="$CC" # Let the user override the test.
3252 else
3253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254 for as_dir in $PATH
3256 IFS=$as_save_IFS
3257 test -z "$as_dir" && as_dir=.
3258 for ac_exec_ext in '' $ac_executable_extensions; do
3259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3260 ac_cv_prog_CC="${ac_tool_prefix}cc"
3261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3262 break 2
3264 done
3265 done
3266 IFS=$as_save_IFS
3270 CC=$ac_cv_prog_CC
3271 if test -n "$CC"; then
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3273 $as_echo "$CC" >&6; }
3274 else
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3276 $as_echo "no" >&6; }
3282 if test -z "$CC"; then
3283 # Extract the first word of "cc", so it can be a program name with args.
3284 set dummy cc; ac_word=$2
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3286 $as_echo_n "checking for $ac_word... " >&6; }
3287 if test "${ac_cv_prog_CC+set}" = set; then :
3288 $as_echo_n "(cached) " >&6
3289 else
3290 if test -n "$CC"; then
3291 ac_cv_prog_CC="$CC" # Let the user override the test.
3292 else
3293 ac_prog_rejected=no
3294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295 for as_dir in $PATH
3297 IFS=$as_save_IFS
3298 test -z "$as_dir" && as_dir=.
3299 for ac_exec_ext in '' $ac_executable_extensions; do
3300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3301 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3302 ac_prog_rejected=yes
3303 continue
3305 ac_cv_prog_CC="cc"
3306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3307 break 2
3309 done
3310 done
3311 IFS=$as_save_IFS
3313 if test $ac_prog_rejected = yes; then
3314 # We found a bogon in the path, so make sure we never use it.
3315 set dummy $ac_cv_prog_CC
3316 shift
3317 if test $# != 0; then
3318 # We chose a different compiler from the bogus one.
3319 # However, it has the same basename, so the bogon will be chosen
3320 # first if we set CC to just the basename; use the full file name.
3321 shift
3322 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3327 CC=$ac_cv_prog_CC
3328 if test -n "$CC"; then
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3330 $as_echo "$CC" >&6; }
3331 else
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3333 $as_echo "no" >&6; }
3338 if test -z "$CC"; then
3339 if test -n "$ac_tool_prefix"; then
3340 for ac_prog in cl.exe
3342 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3343 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3345 $as_echo_n "checking for $ac_word... " >&6; }
3346 if test "${ac_cv_prog_CC+set}" = set; then :
3347 $as_echo_n "(cached) " >&6
3348 else
3349 if test -n "$CC"; then
3350 ac_cv_prog_CC="$CC" # Let the user override the test.
3351 else
3352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3353 for as_dir in $PATH
3355 IFS=$as_save_IFS
3356 test -z "$as_dir" && as_dir=.
3357 for ac_exec_ext in '' $ac_executable_extensions; do
3358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3359 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3361 break 2
3363 done
3364 done
3365 IFS=$as_save_IFS
3369 CC=$ac_cv_prog_CC
3370 if test -n "$CC"; then
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3372 $as_echo "$CC" >&6; }
3373 else
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3375 $as_echo "no" >&6; }
3379 test -n "$CC" && break
3380 done
3382 if test -z "$CC"; then
3383 ac_ct_CC=$CC
3384 for ac_prog in cl.exe
3386 # Extract the first word of "$ac_prog", so it can be a program name with args.
3387 set dummy $ac_prog; ac_word=$2
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3389 $as_echo_n "checking for $ac_word... " >&6; }
3390 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3391 $as_echo_n "(cached) " >&6
3392 else
3393 if test -n "$ac_ct_CC"; then
3394 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3395 else
3396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3397 for as_dir in $PATH
3399 IFS=$as_save_IFS
3400 test -z "$as_dir" && as_dir=.
3401 for ac_exec_ext in '' $ac_executable_extensions; do
3402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3403 ac_cv_prog_ac_ct_CC="$ac_prog"
3404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3405 break 2
3407 done
3408 done
3409 IFS=$as_save_IFS
3413 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3414 if test -n "$ac_ct_CC"; then
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3416 $as_echo "$ac_ct_CC" >&6; }
3417 else
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3419 $as_echo "no" >&6; }
3423 test -n "$ac_ct_CC" && break
3424 done
3426 if test "x$ac_ct_CC" = x; then
3427 CC=""
3428 else
3429 case $cross_compiling:$ac_tool_warned in
3430 yes:)
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3433 ac_tool_warned=yes ;;
3434 esac
3435 CC=$ac_ct_CC
3442 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3444 as_fn_error "no acceptable C compiler found in \$PATH
3445 See \`config.log' for more details." "$LINENO" 5; }
3447 # Provide some information about the compiler.
3448 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3449 set X $ac_compile
3450 ac_compiler=$2
3451 for ac_option in --version -v -V -qversion; do
3452 { { ac_try="$ac_compiler $ac_option >&5"
3453 case "(($ac_try" in
3454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455 *) ac_try_echo=$ac_try;;
3456 esac
3457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3458 $as_echo "$ac_try_echo"; } >&5
3459 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3460 ac_status=$?
3461 if test -s conftest.err; then
3462 sed '10a\
3463 ... rest of stderr output deleted ...
3464 10q' conftest.err >conftest.er1
3465 cat conftest.er1 >&5
3466 rm -f conftest.er1 conftest.err
3468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3469 test $ac_status = 0; }
3470 done
3472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3473 /* end confdefs.h. */
3476 main ()
3480 return 0;
3482 _ACEOF
3483 ac_clean_files_save=$ac_clean_files
3484 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3485 # Try to create an executable without -o first, disregard a.out.
3486 # It will help us diagnose broken compilers, and finding out an intuition
3487 # of exeext.
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3489 $as_echo_n "checking for C compiler default output file name... " >&6; }
3490 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3492 # The possible output files:
3493 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3495 ac_rmfiles=
3496 for ac_file in $ac_files
3498 case $ac_file in
3499 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3500 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3501 esac
3502 done
3503 rm -f $ac_rmfiles
3505 if { { ac_try="$ac_link_default"
3506 case "(($ac_try" in
3507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3508 *) ac_try_echo=$ac_try;;
3509 esac
3510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3511 $as_echo "$ac_try_echo"; } >&5
3512 (eval "$ac_link_default") 2>&5
3513 ac_status=$?
3514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3515 test $ac_status = 0; }; then :
3516 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3517 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3518 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3519 # so that the user can short-circuit this test for compilers unknown to
3520 # Autoconf.
3521 for ac_file in $ac_files ''
3523 test -f "$ac_file" || continue
3524 case $ac_file in
3525 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3527 [ab].out )
3528 # We found the default executable, but exeext='' is most
3529 # certainly right.
3530 break;;
3531 *.* )
3532 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3533 then :; else
3534 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3536 # We set ac_cv_exeext here because the later test for it is not
3537 # safe: cross compilers may not add the suffix if given an `-o'
3538 # argument, so we may need to know it at that point already.
3539 # Even if this section looks crufty: it has the advantage of
3540 # actually working.
3541 break;;
3543 break;;
3544 esac
3545 done
3546 test "$ac_cv_exeext" = no && ac_cv_exeext=
3548 else
3549 ac_file=''
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3552 $as_echo "$ac_file" >&6; }
3553 if test -z "$ac_file"; then :
3554 $as_echo "$as_me: failed program was:" >&5
3555 sed 's/^/| /' conftest.$ac_ext >&5
3557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3559 { as_fn_set_status 77
3560 as_fn_error "C compiler cannot create executables
3561 See \`config.log' for more details." "$LINENO" 5; }; }
3563 ac_exeext=$ac_cv_exeext
3565 # Check that the compiler produces executables we can run. If not, either
3566 # the compiler is broken, or we cross compile.
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3568 $as_echo_n "checking whether the C compiler works... " >&6; }
3569 # If not cross compiling, check that we can run a simple program.
3570 if test "$cross_compiling" != yes; then
3571 if { ac_try='./$ac_file'
3572 { { case "(($ac_try" in
3573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574 *) ac_try_echo=$ac_try;;
3575 esac
3576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3577 $as_echo "$ac_try_echo"; } >&5
3578 (eval "$ac_try") 2>&5
3579 ac_status=$?
3580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3581 test $ac_status = 0; }; }; then
3582 cross_compiling=no
3583 else
3584 if test "$cross_compiling" = maybe; then
3585 cross_compiling=yes
3586 else
3587 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3589 as_fn_error "cannot run C compiled programs.
3590 If you meant to cross compile, use \`--host'.
3591 See \`config.log' for more details." "$LINENO" 5; }
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3596 $as_echo "yes" >&6; }
3598 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3599 ac_clean_files=$ac_clean_files_save
3600 # Check that the compiler produces executables we can run. If not, either
3601 # the compiler is broken, or we cross compile.
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3603 $as_echo_n "checking whether we are cross compiling... " >&6; }
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3605 $as_echo "$cross_compiling" >&6; }
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3608 $as_echo_n "checking for suffix of executables... " >&6; }
3609 if { { ac_try="$ac_link"
3610 case "(($ac_try" in
3611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612 *) ac_try_echo=$ac_try;;
3613 esac
3614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3615 $as_echo "$ac_try_echo"; } >&5
3616 (eval "$ac_link") 2>&5
3617 ac_status=$?
3618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3619 test $ac_status = 0; }; then :
3620 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3621 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3622 # work properly (i.e., refer to `conftest.exe'), while it won't with
3623 # `rm'.
3624 for ac_file in conftest.exe conftest conftest.*; do
3625 test -f "$ac_file" || continue
3626 case $ac_file in
3627 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3628 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3629 break;;
3630 * ) break;;
3631 esac
3632 done
3633 else
3634 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3636 as_fn_error "cannot compute suffix of executables: cannot compile and link
3637 See \`config.log' for more details." "$LINENO" 5; }
3639 rm -f conftest$ac_cv_exeext
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3641 $as_echo "$ac_cv_exeext" >&6; }
3643 rm -f conftest.$ac_ext
3644 EXEEXT=$ac_cv_exeext
3645 ac_exeext=$EXEEXT
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3647 $as_echo_n "checking for suffix of object files... " >&6; }
3648 if test "${ac_cv_objext+set}" = set; then :
3649 $as_echo_n "(cached) " >&6
3650 else
3651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3652 /* end confdefs.h. */
3655 main ()
3659 return 0;
3661 _ACEOF
3662 rm -f conftest.o conftest.obj
3663 if { { ac_try="$ac_compile"
3664 case "(($ac_try" in
3665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3666 *) ac_try_echo=$ac_try;;
3667 esac
3668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3669 $as_echo "$ac_try_echo"; } >&5
3670 (eval "$ac_compile") 2>&5
3671 ac_status=$?
3672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3673 test $ac_status = 0; }; then :
3674 for ac_file in conftest.o conftest.obj conftest.*; do
3675 test -f "$ac_file" || continue;
3676 case $ac_file in
3677 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3678 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3679 break;;
3680 esac
3681 done
3682 else
3683 $as_echo "$as_me: failed program was:" >&5
3684 sed 's/^/| /' conftest.$ac_ext >&5
3686 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3687 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3688 as_fn_error "cannot compute suffix of object files: cannot compile
3689 See \`config.log' for more details." "$LINENO" 5; }
3691 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3694 $as_echo "$ac_cv_objext" >&6; }
3695 OBJEXT=$ac_cv_objext
3696 ac_objext=$OBJEXT
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3698 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3699 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3700 $as_echo_n "(cached) " >&6
3701 else
3702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703 /* end confdefs.h. */
3706 main ()
3708 #ifndef __GNUC__
3709 choke me
3710 #endif
3713 return 0;
3715 _ACEOF
3716 if ac_fn_c_try_compile "$LINENO"; then :
3717 ac_compiler_gnu=yes
3718 else
3719 ac_compiler_gnu=no
3721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3722 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3726 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3727 if test $ac_compiler_gnu = yes; then
3728 GCC=yes
3729 else
3730 GCC=
3732 ac_test_CFLAGS=${CFLAGS+set}
3733 ac_save_CFLAGS=$CFLAGS
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3735 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3736 if test "${ac_cv_prog_cc_g+set}" = set; then :
3737 $as_echo_n "(cached) " >&6
3738 else
3739 ac_save_c_werror_flag=$ac_c_werror_flag
3740 ac_c_werror_flag=yes
3741 ac_cv_prog_cc_g=no
3742 CFLAGS="-g"
3743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3744 /* end confdefs.h. */
3747 main ()
3751 return 0;
3753 _ACEOF
3754 if ac_fn_c_try_compile "$LINENO"; then :
3755 ac_cv_prog_cc_g=yes
3756 else
3757 CFLAGS=""
3758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759 /* end confdefs.h. */
3762 main ()
3766 return 0;
3768 _ACEOF
3769 if ac_fn_c_try_compile "$LINENO"; then :
3771 else
3772 ac_c_werror_flag=$ac_save_c_werror_flag
3773 CFLAGS="-g"
3774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3775 /* end confdefs.h. */
3778 main ()
3782 return 0;
3784 _ACEOF
3785 if ac_fn_c_try_compile "$LINENO"; then :
3786 ac_cv_prog_cc_g=yes
3788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3793 ac_c_werror_flag=$ac_save_c_werror_flag
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3796 $as_echo "$ac_cv_prog_cc_g" >&6; }
3797 if test "$ac_test_CFLAGS" = set; then
3798 CFLAGS=$ac_save_CFLAGS
3799 elif test $ac_cv_prog_cc_g = yes; then
3800 if test "$GCC" = yes; then
3801 CFLAGS="-g -O2"
3802 else
3803 CFLAGS="-g"
3805 else
3806 if test "$GCC" = yes; then
3807 CFLAGS="-O2"
3808 else
3809 CFLAGS=
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3813 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3814 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3815 $as_echo_n "(cached) " >&6
3816 else
3817 ac_cv_prog_cc_c89=no
3818 ac_save_CC=$CC
3819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820 /* end confdefs.h. */
3821 #include <stdarg.h>
3822 #include <stdio.h>
3823 #include <sys/types.h>
3824 #include <sys/stat.h>
3825 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3826 struct buf { int x; };
3827 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3828 static char *e (p, i)
3829 char **p;
3830 int i;
3832 return p[i];
3834 static char *f (char * (*g) (char **, int), char **p, ...)
3836 char *s;
3837 va_list v;
3838 va_start (v,p);
3839 s = g (p, va_arg (v,int));
3840 va_end (v);
3841 return s;
3844 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3845 function prototypes and stuff, but not '\xHH' hex character constants.
3846 These don't provoke an error unfortunately, instead are silently treated
3847 as 'x'. The following induces an error, until -std is added to get
3848 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3849 array size at least. It's necessary to write '\x00'==0 to get something
3850 that's true only with -std. */
3851 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3853 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3854 inside strings and character constants. */
3855 #define FOO(x) 'x'
3856 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3858 int test (int i, double x);
3859 struct s1 {int (*f) (int a);};
3860 struct s2 {int (*f) (double a);};
3861 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3862 int argc;
3863 char **argv;
3865 main ()
3867 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3869 return 0;
3871 _ACEOF
3872 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3873 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3875 CC="$ac_save_CC $ac_arg"
3876 if ac_fn_c_try_compile "$LINENO"; then :
3877 ac_cv_prog_cc_c89=$ac_arg
3879 rm -f core conftest.err conftest.$ac_objext
3880 test "x$ac_cv_prog_cc_c89" != "xno" && break
3881 done
3882 rm -f conftest.$ac_ext
3883 CC=$ac_save_CC
3886 # AC_CACHE_VAL
3887 case "x$ac_cv_prog_cc_c89" in
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3890 $as_echo "none needed" >&6; } ;;
3891 xno)
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3893 $as_echo "unsupported" >&6; } ;;
3895 CC="$CC $ac_cv_prog_cc_c89"
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3897 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3898 esac
3899 if test "x$ac_cv_prog_cc_c89" != xno; then :
3903 ac_ext=c
3904 ac_cpp='$CPP $CPPFLAGS'
3905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3908 DEPDIR="${am__leading_dot}deps"
3910 ac_config_commands="$ac_config_commands depfiles"
3913 am_make=${MAKE-make}
3914 cat > confinc << 'END'
3915 am__doit:
3916 @echo this is the am__doit target
3917 .PHONY: am__doit
3919 # If we don't find an include directive, just comment out the code.
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3921 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3922 am__include="#"
3923 am__quote=
3924 _am_result=none
3925 # First try GNU make style include.
3926 echo "include confinc" > confmf
3927 # Ignore all kinds of additional output from `make'.
3928 case `$am_make -s -f confmf 2> /dev/null` in #(
3929 *the\ am__doit\ target*)
3930 am__include=include
3931 am__quote=
3932 _am_result=GNU
3934 esac
3935 # Now try BSD make style include.
3936 if test "$am__include" = "#"; then
3937 echo '.include "confinc"' > confmf
3938 case `$am_make -s -f confmf 2> /dev/null` in #(
3939 *the\ am__doit\ target*)
3940 am__include=.include
3941 am__quote="\""
3942 _am_result=BSD
3944 esac
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3949 $as_echo "$_am_result" >&6; }
3950 rm -f confinc confmf
3952 # Check whether --enable-dependency-tracking was given.
3953 if test "${enable_dependency_tracking+set}" = set; then :
3954 enableval=$enable_dependency_tracking;
3957 if test "x$enable_dependency_tracking" != xno; then
3958 am_depcomp="$ac_aux_dir/depcomp"
3959 AMDEPBACKSLASH='\'
3961 if test "x$enable_dependency_tracking" != xno; then
3962 AMDEP_TRUE=
3963 AMDEP_FALSE='#'
3964 else
3965 AMDEP_TRUE='#'
3966 AMDEP_FALSE=
3971 depcc="$CC" am_compiler_list=
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3974 $as_echo_n "checking dependency style of $depcc... " >&6; }
3975 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3976 $as_echo_n "(cached) " >&6
3977 else
3978 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3979 # We make a subdir and do the tests there. Otherwise we can end up
3980 # making bogus files that we don't know about and never remove. For
3981 # instance it was reported that on HP-UX the gcc test will end up
3982 # making a dummy file named `D' -- because `-MD' means `put the output
3983 # in D'.
3984 mkdir conftest.dir
3985 # Copy depcomp to subdir because otherwise we won't find it if we're
3986 # using a relative directory.
3987 cp "$am_depcomp" conftest.dir
3988 cd conftest.dir
3989 # We will build objects and dependencies in a subdirectory because
3990 # it helps to detect inapplicable dependency modes. For instance
3991 # both Tru64's cc and ICC support -MD to output dependencies as a
3992 # side effect of compilation, but ICC will put the dependencies in
3993 # the current directory while Tru64 will put them in the object
3994 # directory.
3995 mkdir sub
3997 am_cv_CC_dependencies_compiler_type=none
3998 if test "$am_compiler_list" = ""; then
3999 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4001 am__universal=false
4002 case " $depcc " in #(
4003 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4004 esac
4006 for depmode in $am_compiler_list; do
4007 # Setup a source with many dependencies, because some compilers
4008 # like to wrap large dependency lists on column 80 (with \), and
4009 # we should not choose a depcomp mode which is confused by this.
4011 # We need to recreate these files for each test, as the compiler may
4012 # overwrite some of them when testing with obscure command lines.
4013 # This happens at least with the AIX C compiler.
4014 : > sub/conftest.c
4015 for i in 1 2 3 4 5 6; do
4016 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4017 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4018 # Solaris 8's {/usr,}/bin/sh.
4019 touch sub/conftst$i.h
4020 done
4021 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4023 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4024 # mode. It turns out that the SunPro C++ compiler does not properly
4025 # handle `-M -o', and we need to detect this. Also, some Intel
4026 # versions had trouble with output in subdirs
4027 am__obj=sub/conftest.${OBJEXT-o}
4028 am__minus_obj="-o $am__obj"
4029 case $depmode in
4030 gcc)
4031 # This depmode causes a compiler race in universal mode.
4032 test "$am__universal" = false || continue
4034 nosideeffect)
4035 # after this tag, mechanisms are not by side-effect, so they'll
4036 # only be used when explicitly requested
4037 if test "x$enable_dependency_tracking" = xyes; then
4038 continue
4039 else
4040 break
4043 msvisualcpp | msvcmsys)
4044 # This compiler won't grok `-c -o', but also, the minuso test has
4045 # not run yet. These depmodes are late enough in the game, and
4046 # so weak that their functioning should not be impacted.
4047 am__obj=conftest.${OBJEXT-o}
4048 am__minus_obj=
4050 none) break ;;
4051 esac
4052 if depmode=$depmode \
4053 source=sub/conftest.c object=$am__obj \
4054 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4055 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4056 >/dev/null 2>conftest.err &&
4057 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4058 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4059 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4060 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4061 # icc doesn't choke on unknown options, it will just issue warnings
4062 # or remarks (even with -Werror). So we grep stderr for any message
4063 # that says an option was ignored or not supported.
4064 # When given -MP, icc 7.0 and 7.1 complain thusly:
4065 # icc: Command line warning: ignoring option '-M'; no argument required
4066 # The diagnosis changed in icc 8.0:
4067 # icc: Command line remark: option '-MP' not supported
4068 if (grep 'ignoring option' conftest.err ||
4069 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4070 am_cv_CC_dependencies_compiler_type=$depmode
4071 break
4074 done
4076 cd ..
4077 rm -rf conftest.dir
4078 else
4079 am_cv_CC_dependencies_compiler_type=none
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4084 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4085 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4088 test "x$enable_dependency_tracking" != xno \
4089 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4090 am__fastdepCC_TRUE=
4091 am__fastdepCC_FALSE='#'
4092 else
4093 am__fastdepCC_TRUE='#'
4094 am__fastdepCC_FALSE=
4098 ac_ext=go
4099 ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
4100 ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4101 ac_compile_gnu=yes
4102 if test -n "$ac_tool_prefix"; then
4103 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4104 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4106 $as_echo_n "checking for $ac_word... " >&6; }
4107 if test "${ac_cv_prog_GOC+set}" = set; then :
4108 $as_echo_n "(cached) " >&6
4109 else
4110 if test -n "$GOC"; then
4111 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4112 else
4113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4114 for as_dir in $PATH
4116 IFS=$as_save_IFS
4117 test -z "$as_dir" && as_dir=.
4118 for ac_exec_ext in '' $ac_executable_extensions; do
4119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4120 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
4121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4122 break 2
4124 done
4125 done
4126 IFS=$as_save_IFS
4130 GOC=$ac_cv_prog_GOC
4131 if test -n "$GOC"; then
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4133 $as_echo "$GOC" >&6; }
4134 else
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4136 $as_echo "no" >&6; }
4141 if test -z "$ac_cv_prog_GOC"; then
4142 ac_ct_GOC=$GOC
4143 # Extract the first word of "gccgo", so it can be a program name with args.
4144 set dummy gccgo; ac_word=$2
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4146 $as_echo_n "checking for $ac_word... " >&6; }
4147 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
4148 $as_echo_n "(cached) " >&6
4149 else
4150 if test -n "$ac_ct_GOC"; then
4151 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
4152 else
4153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4154 for as_dir in $PATH
4156 IFS=$as_save_IFS
4157 test -z "$as_dir" && as_dir=.
4158 for ac_exec_ext in '' $ac_executable_extensions; do
4159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4160 ac_cv_prog_ac_ct_GOC="gccgo"
4161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4162 break 2
4164 done
4165 done
4166 IFS=$as_save_IFS
4170 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
4171 if test -n "$ac_ct_GOC"; then
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
4173 $as_echo "$ac_ct_GOC" >&6; }
4174 else
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4176 $as_echo "no" >&6; }
4179 if test "x$ac_ct_GOC" = x; then
4180 GOC=""
4181 else
4182 case $cross_compiling:$ac_tool_warned in
4183 yes:)
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4185 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4186 ac_tool_warned=yes ;;
4187 esac
4188 GOC=$ac_ct_GOC
4190 else
4191 GOC="$ac_cv_prog_GOC"
4194 if test -z "$GOC"; then
4195 if test -n "$ac_tool_prefix"; then
4196 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4197 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4199 $as_echo_n "checking for $ac_word... " >&6; }
4200 if test "${ac_cv_prog_GOC+set}" = set; then :
4201 $as_echo_n "(cached) " >&6
4202 else
4203 if test -n "$GOC"; then
4204 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4205 else
4206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207 for as_dir in $PATH
4209 IFS=$as_save_IFS
4210 test -z "$as_dir" && as_dir=.
4211 for ac_exec_ext in '' $ac_executable_extensions; do
4212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4213 ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4215 break 2
4217 done
4218 done
4219 IFS=$as_save_IFS
4223 GOC=$ac_cv_prog_GOC
4224 if test -n "$GOC"; then
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4226 $as_echo "$GOC" >&6; }
4227 else
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4229 $as_echo "no" >&6; }
4235 if test -z "$GOC"; then
4236 # Extract the first word of "gccgo", so it can be a program name with args.
4237 set dummy gccgo; ac_word=$2
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4239 $as_echo_n "checking for $ac_word... " >&6; }
4240 if test "${ac_cv_prog_GOC+set}" = set; then :
4241 $as_echo_n "(cached) " >&6
4242 else
4243 if test -n "$GOC"; then
4244 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4245 else
4246 ac_prog_rejected=no
4247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4248 for as_dir in $PATH
4250 IFS=$as_save_IFS
4251 test -z "$as_dir" && as_dir=.
4252 for ac_exec_ext in '' $ac_executable_extensions; do
4253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4254 if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
4255 ac_prog_rejected=yes
4256 continue
4258 ac_cv_prog_GOC="gccgo"
4259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4260 break 2
4262 done
4263 done
4264 IFS=$as_save_IFS
4266 if test $ac_prog_rejected = yes; then
4267 # We found a bogon in the path, so make sure we never use it.
4268 set dummy $ac_cv_prog_GOC
4269 shift
4270 if test $# != 0; then
4271 # We chose a different compiler from the bogus one.
4272 # However, it has the same basename, so the bogon will be chosen
4273 # first if we set GOC to just the basename; use the full file name.
4274 shift
4275 ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4280 GOC=$ac_cv_prog_GOC
4281 if test -n "$GOC"; then
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4283 $as_echo "$GOC" >&6; }
4284 else
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4286 $as_echo "no" >&6; }
4293 # Provide some information about the compiler.
4294 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4295 set X $ac_compile
4296 ac_compiler=$2
4297 { { ac_try="$ac_compiler --version >&5"
4298 case "(($ac_try" in
4299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4300 *) ac_try_echo=$ac_try;;
4301 esac
4302 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4303 $as_echo "$ac_try_echo"; } >&5
4304 (eval "$ac_compiler --version >&5") 2>conftest.err
4305 ac_status=$?
4306 if test -s conftest.err; then
4307 sed '10a\
4308 ... rest of stderr output deleted ...
4309 10q' conftest.err >conftest.er1
4310 cat conftest.er1 >&5
4311 rm -f conftest.er1 conftest.err
4313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4314 test $ac_status = 0; }
4315 GOCFLAGS="-g -O2"
4316 ac_ext=c
4317 ac_cpp='$CPP $CPPFLAGS'
4318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4328 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4329 # Check whether --enable-maintainer-mode was given.
4330 if test "${enable_maintainer_mode+set}" = set; then :
4331 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4332 else
4333 USE_MAINTAINER_MODE=no
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4337 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4338 if test $USE_MAINTAINER_MODE = yes; then
4339 MAINTAINER_MODE_TRUE=
4340 MAINTAINER_MODE_FALSE='#'
4341 else
4342 MAINTAINER_MODE_TRUE='#'
4343 MAINTAINER_MODE_FALSE=
4346 MAINT=$MAINTAINER_MODE_TRUE
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4351 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4352 if test "${ac_cv_path_SED+set}" = set; then :
4353 $as_echo_n "(cached) " >&6
4354 else
4355 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4356 for ac_i in 1 2 3 4 5 6 7; do
4357 ac_script="$ac_script$as_nl$ac_script"
4358 done
4359 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4360 { ac_script=; unset ac_script;}
4361 if test -z "$SED"; then
4362 ac_path_SED_found=false
4363 # Loop through the user's path and test for each of PROGNAME-LIST
4364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365 for as_dir in $PATH
4367 IFS=$as_save_IFS
4368 test -z "$as_dir" && as_dir=.
4369 for ac_prog in sed gsed; do
4370 for ac_exec_ext in '' $ac_executable_extensions; do
4371 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4372 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4373 # Check for GNU ac_path_SED and select it if it is found.
4374 # Check for GNU $ac_path_SED
4375 case `"$ac_path_SED" --version 2>&1` in
4376 *GNU*)
4377 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4379 ac_count=0
4380 $as_echo_n 0123456789 >"conftest.in"
4381 while :
4383 cat "conftest.in" "conftest.in" >"conftest.tmp"
4384 mv "conftest.tmp" "conftest.in"
4385 cp "conftest.in" "conftest.nl"
4386 $as_echo '' >> "conftest.nl"
4387 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4388 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4389 as_fn_arith $ac_count + 1 && ac_count=$as_val
4390 if test $ac_count -gt ${ac_path_SED_max-0}; then
4391 # Best one so far, save it but keep looking for a better one
4392 ac_cv_path_SED="$ac_path_SED"
4393 ac_path_SED_max=$ac_count
4395 # 10*(2^10) chars as input seems more than enough
4396 test $ac_count -gt 10 && break
4397 done
4398 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4399 esac
4401 $ac_path_SED_found && break 3
4402 done
4403 done
4404 done
4405 IFS=$as_save_IFS
4406 if test -z "$ac_cv_path_SED"; then
4407 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4409 else
4410 ac_cv_path_SED=$SED
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4415 $as_echo "$ac_cv_path_SED" >&6; }
4416 SED="$ac_cv_path_SED"
4417 rm -f conftest.sed
4419 test -z "$SED" && SED=sed
4420 Xsed="$SED -e 1s/^X//"
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4433 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4434 if test "${ac_cv_path_GREP+set}" = set; then :
4435 $as_echo_n "(cached) " >&6
4436 else
4437 if test -z "$GREP"; then
4438 ac_path_GREP_found=false
4439 # Loop through the user's path and test for each of PROGNAME-LIST
4440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4443 IFS=$as_save_IFS
4444 test -z "$as_dir" && as_dir=.
4445 for ac_prog in grep ggrep; do
4446 for ac_exec_ext in '' $ac_executable_extensions; do
4447 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4448 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4449 # Check for GNU ac_path_GREP and select it if it is found.
4450 # Check for GNU $ac_path_GREP
4451 case `"$ac_path_GREP" --version 2>&1` in
4452 *GNU*)
4453 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4455 ac_count=0
4456 $as_echo_n 0123456789 >"conftest.in"
4457 while :
4459 cat "conftest.in" "conftest.in" >"conftest.tmp"
4460 mv "conftest.tmp" "conftest.in"
4461 cp "conftest.in" "conftest.nl"
4462 $as_echo 'GREP' >> "conftest.nl"
4463 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4464 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4465 as_fn_arith $ac_count + 1 && ac_count=$as_val
4466 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4467 # Best one so far, save it but keep looking for a better one
4468 ac_cv_path_GREP="$ac_path_GREP"
4469 ac_path_GREP_max=$ac_count
4471 # 10*(2^10) chars as input seems more than enough
4472 test $ac_count -gt 10 && break
4473 done
4474 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4475 esac
4477 $ac_path_GREP_found && break 3
4478 done
4479 done
4480 done
4481 IFS=$as_save_IFS
4482 if test -z "$ac_cv_path_GREP"; then
4483 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4485 else
4486 ac_cv_path_GREP=$GREP
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4491 $as_echo "$ac_cv_path_GREP" >&6; }
4492 GREP="$ac_cv_path_GREP"
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4496 $as_echo_n "checking for egrep... " >&6; }
4497 if test "${ac_cv_path_EGREP+set}" = set; then :
4498 $as_echo_n "(cached) " >&6
4499 else
4500 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4501 then ac_cv_path_EGREP="$GREP -E"
4502 else
4503 if test -z "$EGREP"; then
4504 ac_path_EGREP_found=false
4505 # Loop through the user's path and test for each of PROGNAME-LIST
4506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4509 IFS=$as_save_IFS
4510 test -z "$as_dir" && as_dir=.
4511 for ac_prog in egrep; do
4512 for ac_exec_ext in '' $ac_executable_extensions; do
4513 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4514 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4515 # Check for GNU ac_path_EGREP and select it if it is found.
4516 # Check for GNU $ac_path_EGREP
4517 case `"$ac_path_EGREP" --version 2>&1` in
4518 *GNU*)
4519 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4521 ac_count=0
4522 $as_echo_n 0123456789 >"conftest.in"
4523 while :
4525 cat "conftest.in" "conftest.in" >"conftest.tmp"
4526 mv "conftest.tmp" "conftest.in"
4527 cp "conftest.in" "conftest.nl"
4528 $as_echo 'EGREP' >> "conftest.nl"
4529 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4530 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4531 as_fn_arith $ac_count + 1 && ac_count=$as_val
4532 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4533 # Best one so far, save it but keep looking for a better one
4534 ac_cv_path_EGREP="$ac_path_EGREP"
4535 ac_path_EGREP_max=$ac_count
4537 # 10*(2^10) chars as input seems more than enough
4538 test $ac_count -gt 10 && break
4539 done
4540 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4541 esac
4543 $ac_path_EGREP_found && break 3
4544 done
4545 done
4546 done
4547 IFS=$as_save_IFS
4548 if test -z "$ac_cv_path_EGREP"; then
4549 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4551 else
4552 ac_cv_path_EGREP=$EGREP
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4558 $as_echo "$ac_cv_path_EGREP" >&6; }
4559 EGREP="$ac_cv_path_EGREP"
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4563 $as_echo_n "checking for fgrep... " >&6; }
4564 if test "${ac_cv_path_FGREP+set}" = set; then :
4565 $as_echo_n "(cached) " >&6
4566 else
4567 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4568 then ac_cv_path_FGREP="$GREP -F"
4569 else
4570 if test -z "$FGREP"; then
4571 ac_path_FGREP_found=false
4572 # Loop through the user's path and test for each of PROGNAME-LIST
4573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4574 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4576 IFS=$as_save_IFS
4577 test -z "$as_dir" && as_dir=.
4578 for ac_prog in fgrep; do
4579 for ac_exec_ext in '' $ac_executable_extensions; do
4580 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4581 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4582 # Check for GNU ac_path_FGREP and select it if it is found.
4583 # Check for GNU $ac_path_FGREP
4584 case `"$ac_path_FGREP" --version 2>&1` in
4585 *GNU*)
4586 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4588 ac_count=0
4589 $as_echo_n 0123456789 >"conftest.in"
4590 while :
4592 cat "conftest.in" "conftest.in" >"conftest.tmp"
4593 mv "conftest.tmp" "conftest.in"
4594 cp "conftest.in" "conftest.nl"
4595 $as_echo 'FGREP' >> "conftest.nl"
4596 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4597 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4598 as_fn_arith $ac_count + 1 && ac_count=$as_val
4599 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4600 # Best one so far, save it but keep looking for a better one
4601 ac_cv_path_FGREP="$ac_path_FGREP"
4602 ac_path_FGREP_max=$ac_count
4604 # 10*(2^10) chars as input seems more than enough
4605 test $ac_count -gt 10 && break
4606 done
4607 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4608 esac
4610 $ac_path_FGREP_found && break 3
4611 done
4612 done
4613 done
4614 IFS=$as_save_IFS
4615 if test -z "$ac_cv_path_FGREP"; then
4616 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4618 else
4619 ac_cv_path_FGREP=$FGREP
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4625 $as_echo "$ac_cv_path_FGREP" >&6; }
4626 FGREP="$ac_cv_path_FGREP"
4629 test -z "$GREP" && GREP=grep
4647 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4648 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4649 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4652 $as_echo_n "checking how to print strings... " >&6; }
4653 # Test print first, because it will be a builtin if present.
4654 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4655 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4656 ECHO='print -r --'
4657 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4658 ECHO='printf %s\n'
4659 else
4660 # Use this function as a fallback that always works.
4661 func_fallback_echo ()
4663 eval 'cat <<_LTECHO_EOF
4665 _LTECHO_EOF'
4667 ECHO='func_fallback_echo'
4670 # func_echo_all arg...
4671 # Invoke $ECHO with all args, space-separated.
4672 func_echo_all ()
4674 $ECHO ""
4677 case "$ECHO" in
4678 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4679 $as_echo "printf" >&6; } ;;
4680 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4681 $as_echo "print -r" >&6; } ;;
4682 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4683 $as_echo "cat" >&6; } ;;
4684 esac
4701 # Check whether --with-gnu-ld was given.
4702 if test "${with_gnu_ld+set}" = set; then :
4703 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4704 else
4705 with_gnu_ld=no
4708 ac_prog=ld
4709 if test "$GCC" = yes; then
4710 # Check if gcc -print-prog-name=ld gives a path.
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4712 $as_echo_n "checking for ld used by $CC... " >&6; }
4713 case $host in
4714 *-*-mingw*)
4715 # gcc leaves a trailing carriage return which upsets mingw
4716 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4718 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4719 esac
4720 case $ac_prog in
4721 # Accept absolute paths.
4722 [\\/]* | ?:[\\/]*)
4723 re_direlt='/[^/][^/]*/\.\./'
4724 # Canonicalize the pathname of ld
4725 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4726 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4727 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4728 done
4729 test -z "$LD" && LD="$ac_prog"
4732 # If it fails, then pretend we aren't using GCC.
4733 ac_prog=ld
4736 # If it is relative, then search for the first ld in PATH.
4737 with_gnu_ld=unknown
4739 esac
4740 elif test "$with_gnu_ld" = yes; then
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4742 $as_echo_n "checking for GNU ld... " >&6; }
4743 else
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4745 $as_echo_n "checking for non-GNU ld... " >&6; }
4747 if test "${lt_cv_path_LD+set}" = set; then :
4748 $as_echo_n "(cached) " >&6
4749 else
4750 if test -z "$LD"; then
4751 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4752 for ac_dir in $PATH; do
4753 IFS="$lt_save_ifs"
4754 test -z "$ac_dir" && ac_dir=.
4755 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4756 lt_cv_path_LD="$ac_dir/$ac_prog"
4757 # Check to see if the program is GNU ld. I'd rather use --version,
4758 # but apparently some variants of GNU ld only accept -v.
4759 # Break only if it was the GNU/non-GNU ld that we prefer.
4760 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4761 *GNU* | *'with BFD'*)
4762 test "$with_gnu_ld" != no && break
4765 test "$with_gnu_ld" != yes && break
4767 esac
4769 done
4770 IFS="$lt_save_ifs"
4771 else
4772 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4776 LD="$lt_cv_path_LD"
4777 if test -n "$LD"; then
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4779 $as_echo "$LD" >&6; }
4780 else
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4782 $as_echo "no" >&6; }
4784 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4786 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4787 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4788 $as_echo_n "(cached) " >&6
4789 else
4790 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4791 case `$LD -v 2>&1 </dev/null` in
4792 *GNU* | *'with BFD'*)
4793 lt_cv_prog_gnu_ld=yes
4796 lt_cv_prog_gnu_ld=no
4798 esac
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4801 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4802 with_gnu_ld=$lt_cv_prog_gnu_ld
4812 if test -n "$ac_tool_prefix"; then
4813 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4814 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4816 $as_echo_n "checking for $ac_word... " >&6; }
4817 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4818 $as_echo_n "(cached) " >&6
4819 else
4820 if test -n "$RANLIB"; then
4821 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4822 else
4823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824 for as_dir in $PATH
4826 IFS=$as_save_IFS
4827 test -z "$as_dir" && as_dir=.
4828 for ac_exec_ext in '' $ac_executable_extensions; do
4829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4830 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4832 break 2
4834 done
4835 done
4836 IFS=$as_save_IFS
4840 RANLIB=$ac_cv_prog_RANLIB
4841 if test -n "$RANLIB"; then
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4843 $as_echo "$RANLIB" >&6; }
4844 else
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4846 $as_echo "no" >&6; }
4851 if test -z "$ac_cv_prog_RANLIB"; then
4852 ac_ct_RANLIB=$RANLIB
4853 # Extract the first word of "ranlib", so it can be a program name with args.
4854 set dummy ranlib; ac_word=$2
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4856 $as_echo_n "checking for $ac_word... " >&6; }
4857 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4858 $as_echo_n "(cached) " >&6
4859 else
4860 if test -n "$ac_ct_RANLIB"; then
4861 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4862 else
4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864 for as_dir in $PATH
4866 IFS=$as_save_IFS
4867 test -z "$as_dir" && as_dir=.
4868 for ac_exec_ext in '' $ac_executable_extensions; do
4869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4870 ac_cv_prog_ac_ct_RANLIB="ranlib"
4871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4872 break 2
4874 done
4875 done
4876 IFS=$as_save_IFS
4880 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4881 if test -n "$ac_ct_RANLIB"; then
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4883 $as_echo "$ac_ct_RANLIB" >&6; }
4884 else
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4886 $as_echo "no" >&6; }
4889 if test "x$ac_ct_RANLIB" = x; then
4890 RANLIB=":"
4891 else
4892 case $cross_compiling:$ac_tool_warned in
4893 yes:)
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4895 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4896 ac_tool_warned=yes ;;
4897 esac
4898 RANLIB=$ac_ct_RANLIB
4900 else
4901 RANLIB="$ac_cv_prog_RANLIB"
4904 if test -n "$ac_tool_prefix"; then
4905 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
4906 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4908 $as_echo_n "checking for $ac_word... " >&6; }
4909 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
4910 $as_echo_n "(cached) " >&6
4911 else
4912 if test -n "$OBJCOPY"; then
4913 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4914 else
4915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4916 for as_dir in $PATH
4918 IFS=$as_save_IFS
4919 test -z "$as_dir" && as_dir=.
4920 for ac_exec_ext in '' $ac_executable_extensions; do
4921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4922 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
4923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4924 break 2
4926 done
4927 done
4928 IFS=$as_save_IFS
4932 OBJCOPY=$ac_cv_prog_OBJCOPY
4933 if test -n "$OBJCOPY"; then
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
4935 $as_echo "$OBJCOPY" >&6; }
4936 else
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4938 $as_echo "no" >&6; }
4943 if test -z "$ac_cv_prog_OBJCOPY"; then
4944 ac_ct_OBJCOPY=$OBJCOPY
4945 # Extract the first word of "objcopy", so it can be a program name with args.
4946 set dummy objcopy; ac_word=$2
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4948 $as_echo_n "checking for $ac_word... " >&6; }
4949 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
4950 $as_echo_n "(cached) " >&6
4951 else
4952 if test -n "$ac_ct_OBJCOPY"; then
4953 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
4954 else
4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956 for as_dir in $PATH
4958 IFS=$as_save_IFS
4959 test -z "$as_dir" && as_dir=.
4960 for ac_exec_ext in '' $ac_executable_extensions; do
4961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4962 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
4963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4964 break 2
4966 done
4967 done
4968 IFS=$as_save_IFS
4972 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
4973 if test -n "$ac_ct_OBJCOPY"; then
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
4975 $as_echo "$ac_ct_OBJCOPY" >&6; }
4976 else
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4978 $as_echo "no" >&6; }
4981 if test "x$ac_ct_OBJCOPY" = x; then
4982 OBJCOPY="missing-objcopy"
4983 else
4984 case $cross_compiling:$ac_tool_warned in
4985 yes:)
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4987 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4988 ac_tool_warned=yes ;;
4989 esac
4990 OBJCOPY=$ac_ct_OBJCOPY
4992 else
4993 OBJCOPY="$ac_cv_prog_OBJCOPY"
4997 enable_dlopen=yes
5001 case `pwd` in
5002 *\ * | *\ *)
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5004 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5005 esac
5009 macro_version='2.2.7a'
5010 macro_revision='1.3134'
5024 ltmain="$ac_aux_dir/ltmain.sh"
5026 # Backslashify metacharacters that are still active within
5027 # double-quoted strings.
5028 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5030 # Same as above, but do not quote variable references.
5031 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5033 # Sed substitution to delay expansion of an escaped shell variable in a
5034 # double_quote_subst'ed string.
5035 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5037 # Sed substitution to delay expansion of an escaped single quote.
5038 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5040 # Sed substitution to avoid accidental globbing in evaled expressions
5041 no_glob_subst='s/\*/\\\*/g'
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5044 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5045 if test "${lt_cv_path_NM+set}" = set; then :
5046 $as_echo_n "(cached) " >&6
5047 else
5048 if test -n "$NM"; then
5049 # Let the user override the test.
5050 lt_cv_path_NM="$NM"
5051 else
5052 lt_nm_to_check="${ac_tool_prefix}nm"
5053 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5054 lt_nm_to_check="$lt_nm_to_check nm"
5056 for lt_tmp_nm in $lt_nm_to_check; do
5057 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5058 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5059 IFS="$lt_save_ifs"
5060 test -z "$ac_dir" && ac_dir=.
5061 tmp_nm="$ac_dir/$lt_tmp_nm"
5062 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5063 # Check to see if the nm accepts a BSD-compat flag.
5064 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5065 # nm: unknown option "B" ignored
5066 # Tru64's nm complains that /dev/null is an invalid object file
5067 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5068 */dev/null* | *'Invalid file or object type'*)
5069 lt_cv_path_NM="$tmp_nm -B"
5070 break
5073 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5074 */dev/null*)
5075 lt_cv_path_NM="$tmp_nm -p"
5076 break
5079 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5080 continue # so that we can try to find one that supports BSD flags
5082 esac
5084 esac
5086 done
5087 IFS="$lt_save_ifs"
5088 done
5089 : ${lt_cv_path_NM=no}
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5093 $as_echo "$lt_cv_path_NM" >&6; }
5094 if test "$lt_cv_path_NM" != "no"; then
5095 NM="$lt_cv_path_NM"
5096 else
5097 # Didn't find any BSD compatible name lister, look for dumpbin.
5098 if test -n "$DUMPBIN"; then :
5099 # Let the user override the test.
5100 else
5101 if test -n "$ac_tool_prefix"; then
5102 for ac_prog in dumpbin "link -dump"
5104 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5105 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5107 $as_echo_n "checking for $ac_word... " >&6; }
5108 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5109 $as_echo_n "(cached) " >&6
5110 else
5111 if test -n "$DUMPBIN"; then
5112 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5113 else
5114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5115 for as_dir in $PATH
5117 IFS=$as_save_IFS
5118 test -z "$as_dir" && as_dir=.
5119 for ac_exec_ext in '' $ac_executable_extensions; do
5120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5121 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5123 break 2
5125 done
5126 done
5127 IFS=$as_save_IFS
5131 DUMPBIN=$ac_cv_prog_DUMPBIN
5132 if test -n "$DUMPBIN"; then
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5134 $as_echo "$DUMPBIN" >&6; }
5135 else
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5137 $as_echo "no" >&6; }
5141 test -n "$DUMPBIN" && break
5142 done
5144 if test -z "$DUMPBIN"; then
5145 ac_ct_DUMPBIN=$DUMPBIN
5146 for ac_prog in dumpbin "link -dump"
5148 # Extract the first word of "$ac_prog", so it can be a program name with args.
5149 set dummy $ac_prog; ac_word=$2
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5151 $as_echo_n "checking for $ac_word... " >&6; }
5152 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5153 $as_echo_n "(cached) " >&6
5154 else
5155 if test -n "$ac_ct_DUMPBIN"; then
5156 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5157 else
5158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159 for as_dir in $PATH
5161 IFS=$as_save_IFS
5162 test -z "$as_dir" && as_dir=.
5163 for ac_exec_ext in '' $ac_executable_extensions; do
5164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5165 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5167 break 2
5169 done
5170 done
5171 IFS=$as_save_IFS
5175 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5176 if test -n "$ac_ct_DUMPBIN"; then
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5178 $as_echo "$ac_ct_DUMPBIN" >&6; }
5179 else
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5181 $as_echo "no" >&6; }
5185 test -n "$ac_ct_DUMPBIN" && break
5186 done
5188 if test "x$ac_ct_DUMPBIN" = x; then
5189 DUMPBIN=":"
5190 else
5191 case $cross_compiling:$ac_tool_warned in
5192 yes:)
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5195 ac_tool_warned=yes ;;
5196 esac
5197 DUMPBIN=$ac_ct_DUMPBIN
5201 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5202 *COFF*)
5203 DUMPBIN="$DUMPBIN -symbols"
5206 DUMPBIN=:
5208 esac
5211 if test "$DUMPBIN" != ":"; then
5212 NM="$DUMPBIN"
5215 test -z "$NM" && NM=nm
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5223 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5224 if test "${lt_cv_nm_interface+set}" = set; then :
5225 $as_echo_n "(cached) " >&6
5226 else
5227 lt_cv_nm_interface="BSD nm"
5228 echo "int some_variable = 0;" > conftest.$ac_ext
5229 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5230 (eval "$ac_compile" 2>conftest.err)
5231 cat conftest.err >&5
5232 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5233 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5234 cat conftest.err >&5
5235 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5236 cat conftest.out >&5
5237 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5238 lt_cv_nm_interface="MS dumpbin"
5240 rm -f conftest*
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5243 $as_echo "$lt_cv_nm_interface" >&6; }
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5246 $as_echo_n "checking whether ln -s works... " >&6; }
5247 LN_S=$as_ln_s
5248 if test "$LN_S" = "ln -s"; then
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5250 $as_echo "yes" >&6; }
5251 else
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5253 $as_echo "no, using $LN_S" >&6; }
5256 # find the maximum length of command line arguments
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5258 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5259 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5260 $as_echo_n "(cached) " >&6
5261 else
5263 teststring="ABCD"
5265 case $build_os in
5266 msdosdjgpp*)
5267 # On DJGPP, this test can blow up pretty badly due to problems in libc
5268 # (any single argument exceeding 2000 bytes causes a buffer overrun
5269 # during glob expansion). Even if it were fixed, the result of this
5270 # check would be larger than it should be.
5271 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5274 gnu*)
5275 # Under GNU Hurd, this test is not required because there is
5276 # no limit to the length of command line arguments.
5277 # Libtool will interpret -1 as no limit whatsoever
5278 lt_cv_sys_max_cmd_len=-1;
5281 cygwin* | mingw* | cegcc*)
5282 # On Win9x/ME, this test blows up -- it succeeds, but takes
5283 # about 5 minutes as the teststring grows exponentially.
5284 # Worse, since 9x/ME are not pre-emptively multitasking,
5285 # you end up with a "frozen" computer, even though with patience
5286 # the test eventually succeeds (with a max line length of 256k).
5287 # Instead, let's just punt: use the minimum linelength reported by
5288 # all of the supported platforms: 8192 (on NT/2K/XP).
5289 lt_cv_sys_max_cmd_len=8192;
5292 mint*)
5293 # On MiNT this can take a long time and run out of memory.
5294 lt_cv_sys_max_cmd_len=8192;
5297 amigaos*)
5298 # On AmigaOS with pdksh, this test takes hours, literally.
5299 # So we just punt and use a minimum line length of 8192.
5300 lt_cv_sys_max_cmd_len=8192;
5303 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5304 # This has been around since 386BSD, at least. Likely further.
5305 if test -x /sbin/sysctl; then
5306 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5307 elif test -x /usr/sbin/sysctl; then
5308 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5309 else
5310 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5312 # And add a safety zone
5313 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5314 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5317 interix*)
5318 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5319 lt_cv_sys_max_cmd_len=196608
5322 osf*)
5323 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5324 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5325 # nice to cause kernel panics so lets avoid the loop below.
5326 # First set a reasonable default.
5327 lt_cv_sys_max_cmd_len=16384
5329 if test -x /sbin/sysconfig; then
5330 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5331 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5332 esac
5335 sco3.2v5*)
5336 lt_cv_sys_max_cmd_len=102400
5338 sysv5* | sco5v6* | sysv4.2uw2*)
5339 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5340 if test -n "$kargmax"; then
5341 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5342 else
5343 lt_cv_sys_max_cmd_len=32768
5347 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5348 if test -n "$lt_cv_sys_max_cmd_len"; then
5349 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5350 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5351 else
5352 # Make teststring a little bigger before we do anything with it.
5353 # a 1K string should be a reasonable start.
5354 for i in 1 2 3 4 5 6 7 8 ; do
5355 teststring=$teststring$teststring
5356 done
5357 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5358 # If test is not a shell built-in, we'll probably end up computing a
5359 # maximum length that is only half of the actual maximum length, but
5360 # we can't tell.
5361 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5362 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5363 test $i != 17 # 1/2 MB should be enough
5365 i=`expr $i + 1`
5366 teststring=$teststring$teststring
5367 done
5368 # Only check the string length outside the loop.
5369 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5370 teststring=
5371 # Add a significant safety factor because C++ compilers can tack on
5372 # massive amounts of additional arguments before passing them to the
5373 # linker. It appears as though 1/2 is a usable value.
5374 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5377 esac
5381 if test -n $lt_cv_sys_max_cmd_len ; then
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5383 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5384 else
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5386 $as_echo "none" >&6; }
5388 max_cmd_len=$lt_cv_sys_max_cmd_len
5395 : ${CP="cp -f"}
5396 : ${MV="mv -f"}
5397 : ${RM="rm -f"}
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5400 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5401 # Try some XSI features
5402 xsi_shell=no
5403 ( _lt_dummy="a/b/c"
5404 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5405 = c,a/b,, \
5406 && eval 'test $(( 1 + 1 )) -eq 2 \
5407 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5408 && xsi_shell=yes
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5410 $as_echo "$xsi_shell" >&6; }
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5414 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5415 lt_shell_append=no
5416 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5417 >/dev/null 2>&1 \
5418 && lt_shell_append=yes
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5420 $as_echo "$lt_shell_append" >&6; }
5423 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5424 lt_unset=unset
5425 else
5426 lt_unset=false
5433 # test EBCDIC or ASCII
5434 case `echo X|tr X '\101'` in
5435 A) # ASCII based system
5436 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5437 lt_SP2NL='tr \040 \012'
5438 lt_NL2SP='tr \015\012 \040\040'
5440 *) # EBCDIC based system
5441 lt_SP2NL='tr \100 \n'
5442 lt_NL2SP='tr \r\n \100\100'
5444 esac
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5455 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5456 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5457 $as_echo_n "(cached) " >&6
5458 else
5459 lt_cv_ld_reload_flag='-r'
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5462 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5463 reload_flag=$lt_cv_ld_reload_flag
5464 case $reload_flag in
5465 "" | " "*) ;;
5466 *) reload_flag=" $reload_flag" ;;
5467 esac
5468 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5469 case $host_os in
5470 darwin*)
5471 if test "$GCC" = yes; then
5472 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5473 else
5474 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5477 esac
5487 if test -n "$ac_tool_prefix"; then
5488 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5489 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5491 $as_echo_n "checking for $ac_word... " >&6; }
5492 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5493 $as_echo_n "(cached) " >&6
5494 else
5495 if test -n "$OBJDUMP"; then
5496 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5497 else
5498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5499 for as_dir in $PATH
5501 IFS=$as_save_IFS
5502 test -z "$as_dir" && as_dir=.
5503 for ac_exec_ext in '' $ac_executable_extensions; do
5504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5505 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5507 break 2
5509 done
5510 done
5511 IFS=$as_save_IFS
5515 OBJDUMP=$ac_cv_prog_OBJDUMP
5516 if test -n "$OBJDUMP"; then
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5518 $as_echo "$OBJDUMP" >&6; }
5519 else
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5521 $as_echo "no" >&6; }
5526 if test -z "$ac_cv_prog_OBJDUMP"; then
5527 ac_ct_OBJDUMP=$OBJDUMP
5528 # Extract the first word of "objdump", so it can be a program name with args.
5529 set dummy objdump; ac_word=$2
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5531 $as_echo_n "checking for $ac_word... " >&6; }
5532 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5533 $as_echo_n "(cached) " >&6
5534 else
5535 if test -n "$ac_ct_OBJDUMP"; then
5536 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5537 else
5538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5539 for as_dir in $PATH
5541 IFS=$as_save_IFS
5542 test -z "$as_dir" && as_dir=.
5543 for ac_exec_ext in '' $ac_executable_extensions; do
5544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5545 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5547 break 2
5549 done
5550 done
5551 IFS=$as_save_IFS
5555 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5556 if test -n "$ac_ct_OBJDUMP"; then
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5558 $as_echo "$ac_ct_OBJDUMP" >&6; }
5559 else
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5561 $as_echo "no" >&6; }
5564 if test "x$ac_ct_OBJDUMP" = x; then
5565 OBJDUMP="false"
5566 else
5567 case $cross_compiling:$ac_tool_warned in
5568 yes:)
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5570 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5571 ac_tool_warned=yes ;;
5572 esac
5573 OBJDUMP=$ac_ct_OBJDUMP
5575 else
5576 OBJDUMP="$ac_cv_prog_OBJDUMP"
5579 test -z "$OBJDUMP" && OBJDUMP=objdump
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5590 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5591 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5592 $as_echo_n "(cached) " >&6
5593 else
5594 lt_cv_file_magic_cmd='$MAGIC_CMD'
5595 lt_cv_file_magic_test_file=
5596 lt_cv_deplibs_check_method='unknown'
5597 # Need to set the preceding variable on all platforms that support
5598 # interlibrary dependencies.
5599 # 'none' -- dependencies not supported.
5600 # `unknown' -- same as none, but documents that we really don't know.
5601 # 'pass_all' -- all dependencies passed with no checks.
5602 # 'test_compile' -- check by making test program.
5603 # 'file_magic [[regex]]' -- check by looking for files in library path
5604 # which responds to the $file_magic_cmd with a given extended regex.
5605 # If you have `file' or equivalent on your system and you're not sure
5606 # whether `pass_all' will *always* work, you probably want this one.
5608 case $host_os in
5609 aix[4-9]*)
5610 lt_cv_deplibs_check_method=pass_all
5613 beos*)
5614 lt_cv_deplibs_check_method=pass_all
5617 bsdi[45]*)
5618 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5619 lt_cv_file_magic_cmd='/usr/bin/file -L'
5620 lt_cv_file_magic_test_file=/shlib/libc.so
5623 cygwin*)
5624 # func_win32_libid is a shell function defined in ltmain.sh
5625 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5626 lt_cv_file_magic_cmd='func_win32_libid'
5629 mingw* | pw32*)
5630 # Base MSYS/MinGW do not provide the 'file' command needed by
5631 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5632 # unless we find 'file', for example because we are cross-compiling.
5633 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5634 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5635 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5636 lt_cv_file_magic_cmd='func_win32_libid'
5637 else
5638 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5639 lt_cv_file_magic_cmd='$OBJDUMP -f'
5643 cegcc*)
5644 # use the weaker test based on 'objdump'. See mingw*.
5645 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5646 lt_cv_file_magic_cmd='$OBJDUMP -f'
5649 darwin* | rhapsody*)
5650 lt_cv_deplibs_check_method=pass_all
5653 freebsd* | dragonfly*)
5654 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5655 case $host_cpu in
5656 i*86 )
5657 # Not sure whether the presence of OpenBSD here was a mistake.
5658 # Let's accept both of them until this is cleared up.
5659 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5660 lt_cv_file_magic_cmd=/usr/bin/file
5661 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5663 esac
5664 else
5665 lt_cv_deplibs_check_method=pass_all
5669 gnu*)
5670 lt_cv_deplibs_check_method=pass_all
5673 haiku*)
5674 lt_cv_deplibs_check_method=pass_all
5677 hpux10.20* | hpux11*)
5678 lt_cv_file_magic_cmd=/usr/bin/file
5679 case $host_cpu in
5680 ia64*)
5681 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5682 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5684 hppa*64*)
5685 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]'
5686 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5689 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5690 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5692 esac
5695 interix[3-9]*)
5696 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5697 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5700 irix5* | irix6* | nonstopux*)
5701 case $LD in
5702 *-32|*"-32 ") libmagic=32-bit;;
5703 *-n32|*"-n32 ") libmagic=N32;;
5704 *-64|*"-64 ") libmagic=64-bit;;
5705 *) libmagic=never-match;;
5706 esac
5707 lt_cv_deplibs_check_method=pass_all
5710 # This must be Linux ELF.
5711 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5712 lt_cv_deplibs_check_method=pass_all
5715 netbsd*)
5716 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5717 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5718 else
5719 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5723 newos6*)
5724 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5725 lt_cv_file_magic_cmd=/usr/bin/file
5726 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5729 *nto* | *qnx*)
5730 lt_cv_deplibs_check_method=pass_all
5733 openbsd*)
5734 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5735 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5736 else
5737 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5741 osf3* | osf4* | osf5*)
5742 lt_cv_deplibs_check_method=pass_all
5745 rdos*)
5746 lt_cv_deplibs_check_method=pass_all
5749 solaris*)
5750 lt_cv_deplibs_check_method=pass_all
5753 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5754 lt_cv_deplibs_check_method=pass_all
5757 sysv4 | sysv4.3*)
5758 case $host_vendor in
5759 motorola)
5760 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]'
5761 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5763 ncr)
5764 lt_cv_deplibs_check_method=pass_all
5766 sequent)
5767 lt_cv_file_magic_cmd='/bin/file'
5768 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5770 sni)
5771 lt_cv_file_magic_cmd='/bin/file'
5772 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5773 lt_cv_file_magic_test_file=/lib/libc.so
5775 siemens)
5776 lt_cv_deplibs_check_method=pass_all
5779 lt_cv_deplibs_check_method=pass_all
5781 esac
5784 tpf*)
5785 lt_cv_deplibs_check_method=pass_all
5787 esac
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5791 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5792 file_magic_cmd=$lt_cv_file_magic_cmd
5793 deplibs_check_method=$lt_cv_deplibs_check_method
5794 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5807 if test -n "$ac_tool_prefix"; then
5808 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5809 set dummy ${ac_tool_prefix}ar; ac_word=$2
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5811 $as_echo_n "checking for $ac_word... " >&6; }
5812 if test "${ac_cv_prog_AR+set}" = set; then :
5813 $as_echo_n "(cached) " >&6
5814 else
5815 if test -n "$AR"; then
5816 ac_cv_prog_AR="$AR" # Let the user override the test.
5817 else
5818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819 for as_dir in $PATH
5821 IFS=$as_save_IFS
5822 test -z "$as_dir" && as_dir=.
5823 for ac_exec_ext in '' $ac_executable_extensions; do
5824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5825 ac_cv_prog_AR="${ac_tool_prefix}ar"
5826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5827 break 2
5829 done
5830 done
5831 IFS=$as_save_IFS
5835 AR=$ac_cv_prog_AR
5836 if test -n "$AR"; then
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5838 $as_echo "$AR" >&6; }
5839 else
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5841 $as_echo "no" >&6; }
5846 if test -z "$ac_cv_prog_AR"; then
5847 ac_ct_AR=$AR
5848 # Extract the first word of "ar", so it can be a program name with args.
5849 set dummy ar; ac_word=$2
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5851 $as_echo_n "checking for $ac_word... " >&6; }
5852 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5853 $as_echo_n "(cached) " >&6
5854 else
5855 if test -n "$ac_ct_AR"; then
5856 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5857 else
5858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859 for as_dir in $PATH
5861 IFS=$as_save_IFS
5862 test -z "$as_dir" && as_dir=.
5863 for ac_exec_ext in '' $ac_executable_extensions; do
5864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5865 ac_cv_prog_ac_ct_AR="ar"
5866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5867 break 2
5869 done
5870 done
5871 IFS=$as_save_IFS
5875 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5876 if test -n "$ac_ct_AR"; then
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5878 $as_echo "$ac_ct_AR" >&6; }
5879 else
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5881 $as_echo "no" >&6; }
5884 if test "x$ac_ct_AR" = x; then
5885 AR="false"
5886 else
5887 case $cross_compiling:$ac_tool_warned in
5888 yes:)
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5891 ac_tool_warned=yes ;;
5892 esac
5893 AR=$ac_ct_AR
5895 else
5896 AR="$ac_cv_prog_AR"
5899 test -z "$AR" && AR=ar
5900 test -z "$AR_FLAGS" && AR_FLAGS=cru
5912 if test -n "$ac_tool_prefix"; then
5913 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5914 set dummy ${ac_tool_prefix}strip; ac_word=$2
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5916 $as_echo_n "checking for $ac_word... " >&6; }
5917 if test "${ac_cv_prog_STRIP+set}" = set; then :
5918 $as_echo_n "(cached) " >&6
5919 else
5920 if test -n "$STRIP"; then
5921 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5922 else
5923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924 for as_dir in $PATH
5926 IFS=$as_save_IFS
5927 test -z "$as_dir" && as_dir=.
5928 for ac_exec_ext in '' $ac_executable_extensions; do
5929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5930 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5932 break 2
5934 done
5935 done
5936 IFS=$as_save_IFS
5940 STRIP=$ac_cv_prog_STRIP
5941 if test -n "$STRIP"; then
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5943 $as_echo "$STRIP" >&6; }
5944 else
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5946 $as_echo "no" >&6; }
5951 if test -z "$ac_cv_prog_STRIP"; then
5952 ac_ct_STRIP=$STRIP
5953 # Extract the first word of "strip", so it can be a program name with args.
5954 set dummy strip; ac_word=$2
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5956 $as_echo_n "checking for $ac_word... " >&6; }
5957 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5958 $as_echo_n "(cached) " >&6
5959 else
5960 if test -n "$ac_ct_STRIP"; then
5961 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5962 else
5963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5964 for as_dir in $PATH
5966 IFS=$as_save_IFS
5967 test -z "$as_dir" && as_dir=.
5968 for ac_exec_ext in '' $ac_executable_extensions; do
5969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5970 ac_cv_prog_ac_ct_STRIP="strip"
5971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5972 break 2
5974 done
5975 done
5976 IFS=$as_save_IFS
5980 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5981 if test -n "$ac_ct_STRIP"; then
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5983 $as_echo "$ac_ct_STRIP" >&6; }
5984 else
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5986 $as_echo "no" >&6; }
5989 if test "x$ac_ct_STRIP" = x; then
5990 STRIP=":"
5991 else
5992 case $cross_compiling:$ac_tool_warned in
5993 yes:)
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5996 ac_tool_warned=yes ;;
5997 esac
5998 STRIP=$ac_ct_STRIP
6000 else
6001 STRIP="$ac_cv_prog_STRIP"
6004 test -z "$STRIP" && STRIP=:
6011 if test -n "$ac_tool_prefix"; then
6012 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6013 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6015 $as_echo_n "checking for $ac_word... " >&6; }
6016 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6017 $as_echo_n "(cached) " >&6
6018 else
6019 if test -n "$RANLIB"; then
6020 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6021 else
6022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6023 for as_dir in $PATH
6025 IFS=$as_save_IFS
6026 test -z "$as_dir" && as_dir=.
6027 for ac_exec_ext in '' $ac_executable_extensions; do
6028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6029 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6031 break 2
6033 done
6034 done
6035 IFS=$as_save_IFS
6039 RANLIB=$ac_cv_prog_RANLIB
6040 if test -n "$RANLIB"; then
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6042 $as_echo "$RANLIB" >&6; }
6043 else
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6045 $as_echo "no" >&6; }
6050 if test -z "$ac_cv_prog_RANLIB"; then
6051 ac_ct_RANLIB=$RANLIB
6052 # Extract the first word of "ranlib", so it can be a program name with args.
6053 set dummy ranlib; ac_word=$2
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6055 $as_echo_n "checking for $ac_word... " >&6; }
6056 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6057 $as_echo_n "(cached) " >&6
6058 else
6059 if test -n "$ac_ct_RANLIB"; then
6060 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6061 else
6062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063 for as_dir in $PATH
6065 IFS=$as_save_IFS
6066 test -z "$as_dir" && as_dir=.
6067 for ac_exec_ext in '' $ac_executable_extensions; do
6068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6069 ac_cv_prog_ac_ct_RANLIB="ranlib"
6070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6071 break 2
6073 done
6074 done
6075 IFS=$as_save_IFS
6079 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6080 if test -n "$ac_ct_RANLIB"; then
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6082 $as_echo "$ac_ct_RANLIB" >&6; }
6083 else
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6085 $as_echo "no" >&6; }
6088 if test "x$ac_ct_RANLIB" = x; then
6089 RANLIB=":"
6090 else
6091 case $cross_compiling:$ac_tool_warned in
6092 yes:)
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6094 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6095 ac_tool_warned=yes ;;
6096 esac
6097 RANLIB=$ac_ct_RANLIB
6099 else
6100 RANLIB="$ac_cv_prog_RANLIB"
6103 test -z "$RANLIB" && RANLIB=:
6110 # Determine commands to create old-style static archives.
6111 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6112 old_postinstall_cmds='chmod 644 $oldlib'
6113 old_postuninstall_cmds=
6115 if test -n "$RANLIB"; then
6116 case $host_os in
6117 openbsd*)
6118 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6121 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6123 esac
6124 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6127 case $host_os in
6128 darwin*)
6129 lock_old_archive_extraction=yes ;;
6131 lock_old_archive_extraction=no ;;
6132 esac
6172 # If no C compiler was specified, use CC.
6173 LTCC=${LTCC-"$CC"}
6175 # If no C compiler flags were specified, use CFLAGS.
6176 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6178 # Allow CC to be a program name with arguments.
6179 compiler=$CC
6182 # Check for command to grab the raw symbol name followed by C symbol from nm.
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6184 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6185 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6186 $as_echo_n "(cached) " >&6
6187 else
6189 # These are sane defaults that work on at least a few old systems.
6190 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6192 # Character class describing NM global symbol codes.
6193 symcode='[BCDEGRST]'
6195 # Regexp to match symbols that can be accessed directly from C.
6196 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6198 # Define system-specific variables.
6199 case $host_os in
6200 aix*)
6201 symcode='[BCDT]'
6203 cygwin* | mingw* | pw32* | cegcc*)
6204 symcode='[ABCDGISTW]'
6206 hpux*)
6207 if test "$host_cpu" = ia64; then
6208 symcode='[ABCDEGRST]'
6211 irix* | nonstopux*)
6212 symcode='[BCDEGRST]'
6214 osf*)
6215 symcode='[BCDEGQRST]'
6217 solaris*)
6218 symcode='[BDRT]'
6220 sco3.2v5*)
6221 symcode='[DT]'
6223 sysv4.2uw2*)
6224 symcode='[DT]'
6226 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6227 symcode='[ABDT]'
6229 sysv4)
6230 symcode='[DFNSTU]'
6232 esac
6234 # If we're using GNU nm, then use its standard symbol codes.
6235 case `$NM -V 2>&1` in
6236 *GNU* | *'with BFD'*)
6237 symcode='[ABCDGIRSTW]' ;;
6238 esac
6240 # Transform an extracted symbol line into a proper C declaration.
6241 # Some systems (esp. on ia64) link data and code symbols differently,
6242 # so use this general approach.
6243 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6245 # Transform an extracted symbol line into symbol name and symbol address
6246 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6247 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'"
6249 # Handle CRLF in mingw tool chain
6250 opt_cr=
6251 case $build_os in
6252 mingw*)
6253 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6255 esac
6257 # Try without a prefix underscore, then with it.
6258 for ac_symprfx in "" "_"; do
6260 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6261 symxfrm="\\1 $ac_symprfx\\2 \\2"
6263 # Write the raw and C identifiers.
6264 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6265 # Fake it for dumpbin and say T for any non-static function
6266 # and D for any global variable.
6267 # Also find C++ and __fastcall symbols from MSVC++,
6268 # which start with @ or ?.
6269 lt_cv_sys_global_symbol_pipe="$AWK '"\
6270 " {last_section=section; section=\$ 3};"\
6271 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6272 " \$ 0!~/External *\|/{next};"\
6273 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6274 " {if(hide[section]) next};"\
6275 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6276 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6277 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6278 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6279 " ' prfx=^$ac_symprfx"
6280 else
6281 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6284 # Check to see that the pipe works correctly.
6285 pipe_works=no
6287 rm -f conftest*
6288 cat > conftest.$ac_ext <<_LT_EOF
6289 #ifdef __cplusplus
6290 extern "C" {
6291 #endif
6292 char nm_test_var;
6293 void nm_test_func(void);
6294 void nm_test_func(void){}
6295 #ifdef __cplusplus
6297 #endif
6298 int main(){nm_test_var='a';nm_test_func();return(0);}
6299 _LT_EOF
6301 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6302 (eval $ac_compile) 2>&5
6303 ac_status=$?
6304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6305 test $ac_status = 0; }; then
6306 # Now try to grab the symbols.
6307 nlist=conftest.nm
6308 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6309 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6310 ac_status=$?
6311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6312 test $ac_status = 0; } && test -s "$nlist"; then
6313 # Try sorting and uniquifying the output.
6314 if sort "$nlist" | uniq > "$nlist"T; then
6315 mv -f "$nlist"T "$nlist"
6316 else
6317 rm -f "$nlist"T
6320 # Make sure that we snagged all the symbols we need.
6321 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6322 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6323 cat <<_LT_EOF > conftest.$ac_ext
6324 #ifdef __cplusplus
6325 extern "C" {
6326 #endif
6328 _LT_EOF
6329 # Now generate the symbol file.
6330 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6332 cat <<_LT_EOF >> conftest.$ac_ext
6334 /* The mapping between symbol names and symbols. */
6335 const struct {
6336 const char *name;
6337 void *address;
6339 lt__PROGRAM__LTX_preloaded_symbols[] =
6341 { "@PROGRAM@", (void *) 0 },
6342 _LT_EOF
6343 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6344 cat <<\_LT_EOF >> conftest.$ac_ext
6345 {0, (void *) 0}
6348 /* This works around a problem in FreeBSD linker */
6349 #ifdef FREEBSD_WORKAROUND
6350 static const void *lt_preloaded_setup() {
6351 return lt__PROGRAM__LTX_preloaded_symbols;
6353 #endif
6355 #ifdef __cplusplus
6357 #endif
6358 _LT_EOF
6359 # Now try linking the two files.
6360 mv conftest.$ac_objext conftstm.$ac_objext
6361 lt_save_LIBS="$LIBS"
6362 lt_save_CFLAGS="$CFLAGS"
6363 LIBS="conftstm.$ac_objext"
6364 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6365 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6366 (eval $ac_link) 2>&5
6367 ac_status=$?
6368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6369 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6370 pipe_works=yes
6372 LIBS="$lt_save_LIBS"
6373 CFLAGS="$lt_save_CFLAGS"
6374 else
6375 echo "cannot find nm_test_func in $nlist" >&5
6377 else
6378 echo "cannot find nm_test_var in $nlist" >&5
6380 else
6381 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6383 else
6384 echo "$progname: failed program was:" >&5
6385 cat conftest.$ac_ext >&5
6387 rm -rf conftest* conftst*
6389 # Do not use the global_symbol_pipe unless it works.
6390 if test "$pipe_works" = yes; then
6391 break
6392 else
6393 lt_cv_sys_global_symbol_pipe=
6395 done
6399 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6400 lt_cv_sys_global_symbol_to_cdecl=
6402 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6404 $as_echo "failed" >&6; }
6405 else
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6407 $as_echo "ok" >&6; }
6432 # Check whether --enable-libtool-lock was given.
6433 if test "${enable_libtool_lock+set}" = set; then :
6434 enableval=$enable_libtool_lock;
6437 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6439 # Some flags need to be propagated to the compiler or linker for good
6440 # libtool support.
6441 case $host in
6442 ia64-*-hpux*)
6443 # Find out which ABI we are using.
6444 echo 'int i;' > conftest.$ac_ext
6445 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6446 (eval $ac_compile) 2>&5
6447 ac_status=$?
6448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6449 test $ac_status = 0; }; then
6450 case `/usr/bin/file conftest.$ac_objext` in
6451 *ELF-32*)
6452 HPUX_IA64_MODE="32"
6454 *ELF-64*)
6455 HPUX_IA64_MODE="64"
6457 esac
6459 rm -rf conftest*
6461 *-*-irix6*)
6462 # Find out which ABI we are using.
6463 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6464 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6465 (eval $ac_compile) 2>&5
6466 ac_status=$?
6467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6468 test $ac_status = 0; }; then
6469 if test "$lt_cv_prog_gnu_ld" = yes; then
6470 case `/usr/bin/file conftest.$ac_objext` in
6471 *32-bit*)
6472 LD="${LD-ld} -melf32bsmip"
6474 *N32*)
6475 LD="${LD-ld} -melf32bmipn32"
6477 *64-bit*)
6478 LD="${LD-ld} -melf64bmip"
6480 esac
6481 else
6482 case `/usr/bin/file conftest.$ac_objext` in
6483 *32-bit*)
6484 LD="${LD-ld} -32"
6486 *N32*)
6487 LD="${LD-ld} -n32"
6489 *64-bit*)
6490 LD="${LD-ld} -64"
6492 esac
6495 rm -rf conftest*
6498 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6499 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6500 # Find out which ABI we are using.
6501 echo 'int i;' > conftest.$ac_ext
6502 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6503 (eval $ac_compile) 2>&5
6504 ac_status=$?
6505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6506 test $ac_status = 0; }; then
6507 case `/usr/bin/file conftest.o` in
6508 *32-bit*)
6509 case $host in
6510 x86_64-*kfreebsd*-gnu)
6511 LD="${LD-ld} -m elf_i386_fbsd"
6513 x86_64-*linux*)
6514 LD="${LD-ld} -m elf_i386"
6516 ppc64-*linux*|powerpc64-*linux*)
6517 LD="${LD-ld} -m elf32ppclinux"
6519 s390x-*linux*)
6520 LD="${LD-ld} -m elf_s390"
6522 sparc64-*linux*)
6523 LD="${LD-ld} -m elf32_sparc"
6525 esac
6527 *64-bit*)
6528 case $host in
6529 x86_64-*kfreebsd*-gnu)
6530 LD="${LD-ld} -m elf_x86_64_fbsd"
6532 x86_64-*linux*)
6533 LD="${LD-ld} -m elf_x86_64"
6535 ppc*-*linux*|powerpc*-*linux*)
6536 LD="${LD-ld} -m elf64ppc"
6538 s390*-*linux*|s390*-*tpf*)
6539 LD="${LD-ld} -m elf64_s390"
6541 sparc*-*linux*)
6542 LD="${LD-ld} -m elf64_sparc"
6544 esac
6546 esac
6548 rm -rf conftest*
6551 *-*-sco3.2v5*)
6552 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6553 SAVE_CFLAGS="$CFLAGS"
6554 CFLAGS="$CFLAGS -belf"
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6556 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6557 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6558 $as_echo_n "(cached) " >&6
6559 else
6560 ac_ext=c
6561 ac_cpp='$CPP $CPPFLAGS'
6562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6567 /* end confdefs.h. */
6570 main ()
6574 return 0;
6576 _ACEOF
6577 if ac_fn_c_try_link "$LINENO"; then :
6578 lt_cv_cc_needs_belf=yes
6579 else
6580 lt_cv_cc_needs_belf=no
6582 rm -f core conftest.err conftest.$ac_objext \
6583 conftest$ac_exeext conftest.$ac_ext
6584 ac_ext=c
6585 ac_cpp='$CPP $CPPFLAGS'
6586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6592 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6593 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6594 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6595 CFLAGS="$SAVE_CFLAGS"
6598 *-*solaris*)
6599 # Find out which ABI we are using.
6600 echo 'int i;' > conftest.$ac_ext
6601 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6602 (eval $ac_compile) 2>&5
6603 ac_status=$?
6604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6605 test $ac_status = 0; }; then
6606 case `/usr/bin/file conftest.o` in
6607 *64-bit*)
6608 case $lt_cv_prog_gnu_ld in
6609 yes*)
6610 case $host in
6611 i?86-*-solaris* | x86_64-*-solaris2.1[0-9]*)
6612 LD="${LD-ld} -m elf_x86_64"
6614 sparc*-*-solaris*)
6615 LD="${LD-ld} -m elf64_sparc"
6617 esac
6618 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6619 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6620 LD="${LD-ld}_sol2"
6624 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6625 LD="${LD-ld} -64"
6628 esac
6630 esac
6632 rm -rf conftest*
6634 esac
6636 need_locks="$enable_libtool_lock"
6639 case $host_os in
6640 rhapsody* | darwin*)
6641 if test -n "$ac_tool_prefix"; then
6642 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6643 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6645 $as_echo_n "checking for $ac_word... " >&6; }
6646 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6647 $as_echo_n "(cached) " >&6
6648 else
6649 if test -n "$DSYMUTIL"; then
6650 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6651 else
6652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6653 for as_dir in $PATH
6655 IFS=$as_save_IFS
6656 test -z "$as_dir" && as_dir=.
6657 for ac_exec_ext in '' $ac_executable_extensions; do
6658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6659 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6661 break 2
6663 done
6664 done
6665 IFS=$as_save_IFS
6669 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6670 if test -n "$DSYMUTIL"; then
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6672 $as_echo "$DSYMUTIL" >&6; }
6673 else
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6675 $as_echo "no" >&6; }
6680 if test -z "$ac_cv_prog_DSYMUTIL"; then
6681 ac_ct_DSYMUTIL=$DSYMUTIL
6682 # Extract the first word of "dsymutil", so it can be a program name with args.
6683 set dummy dsymutil; ac_word=$2
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6685 $as_echo_n "checking for $ac_word... " >&6; }
6686 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6687 $as_echo_n "(cached) " >&6
6688 else
6689 if test -n "$ac_ct_DSYMUTIL"; then
6690 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6691 else
6692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6693 for as_dir in $PATH
6695 IFS=$as_save_IFS
6696 test -z "$as_dir" && as_dir=.
6697 for ac_exec_ext in '' $ac_executable_extensions; do
6698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6699 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6701 break 2
6703 done
6704 done
6705 IFS=$as_save_IFS
6709 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6710 if test -n "$ac_ct_DSYMUTIL"; then
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6712 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6713 else
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6715 $as_echo "no" >&6; }
6718 if test "x$ac_ct_DSYMUTIL" = x; then
6719 DSYMUTIL=":"
6720 else
6721 case $cross_compiling:$ac_tool_warned in
6722 yes:)
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6724 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6725 ac_tool_warned=yes ;;
6726 esac
6727 DSYMUTIL=$ac_ct_DSYMUTIL
6729 else
6730 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6733 if test -n "$ac_tool_prefix"; then
6734 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6735 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6737 $as_echo_n "checking for $ac_word... " >&6; }
6738 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6739 $as_echo_n "(cached) " >&6
6740 else
6741 if test -n "$NMEDIT"; then
6742 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6743 else
6744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6745 for as_dir in $PATH
6747 IFS=$as_save_IFS
6748 test -z "$as_dir" && as_dir=.
6749 for ac_exec_ext in '' $ac_executable_extensions; do
6750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6751 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6753 break 2
6755 done
6756 done
6757 IFS=$as_save_IFS
6761 NMEDIT=$ac_cv_prog_NMEDIT
6762 if test -n "$NMEDIT"; then
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6764 $as_echo "$NMEDIT" >&6; }
6765 else
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6767 $as_echo "no" >&6; }
6772 if test -z "$ac_cv_prog_NMEDIT"; then
6773 ac_ct_NMEDIT=$NMEDIT
6774 # Extract the first word of "nmedit", so it can be a program name with args.
6775 set dummy nmedit; ac_word=$2
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6777 $as_echo_n "checking for $ac_word... " >&6; }
6778 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6779 $as_echo_n "(cached) " >&6
6780 else
6781 if test -n "$ac_ct_NMEDIT"; then
6782 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6783 else
6784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785 for as_dir in $PATH
6787 IFS=$as_save_IFS
6788 test -z "$as_dir" && as_dir=.
6789 for ac_exec_ext in '' $ac_executable_extensions; do
6790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6791 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6793 break 2
6795 done
6796 done
6797 IFS=$as_save_IFS
6801 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6802 if test -n "$ac_ct_NMEDIT"; then
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6804 $as_echo "$ac_ct_NMEDIT" >&6; }
6805 else
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6807 $as_echo "no" >&6; }
6810 if test "x$ac_ct_NMEDIT" = x; then
6811 NMEDIT=":"
6812 else
6813 case $cross_compiling:$ac_tool_warned in
6814 yes:)
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6816 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6817 ac_tool_warned=yes ;;
6818 esac
6819 NMEDIT=$ac_ct_NMEDIT
6821 else
6822 NMEDIT="$ac_cv_prog_NMEDIT"
6825 if test -n "$ac_tool_prefix"; then
6826 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6827 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6829 $as_echo_n "checking for $ac_word... " >&6; }
6830 if test "${ac_cv_prog_LIPO+set}" = set; then :
6831 $as_echo_n "(cached) " >&6
6832 else
6833 if test -n "$LIPO"; then
6834 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6835 else
6836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6837 for as_dir in $PATH
6839 IFS=$as_save_IFS
6840 test -z "$as_dir" && as_dir=.
6841 for ac_exec_ext in '' $ac_executable_extensions; do
6842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6843 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6845 break 2
6847 done
6848 done
6849 IFS=$as_save_IFS
6853 LIPO=$ac_cv_prog_LIPO
6854 if test -n "$LIPO"; then
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6856 $as_echo "$LIPO" >&6; }
6857 else
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6859 $as_echo "no" >&6; }
6864 if test -z "$ac_cv_prog_LIPO"; then
6865 ac_ct_LIPO=$LIPO
6866 # Extract the first word of "lipo", so it can be a program name with args.
6867 set dummy lipo; ac_word=$2
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6869 $as_echo_n "checking for $ac_word... " >&6; }
6870 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6871 $as_echo_n "(cached) " >&6
6872 else
6873 if test -n "$ac_ct_LIPO"; then
6874 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6875 else
6876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6877 for as_dir in $PATH
6879 IFS=$as_save_IFS
6880 test -z "$as_dir" && as_dir=.
6881 for ac_exec_ext in '' $ac_executable_extensions; do
6882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6883 ac_cv_prog_ac_ct_LIPO="lipo"
6884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6885 break 2
6887 done
6888 done
6889 IFS=$as_save_IFS
6893 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6894 if test -n "$ac_ct_LIPO"; then
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6896 $as_echo "$ac_ct_LIPO" >&6; }
6897 else
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6899 $as_echo "no" >&6; }
6902 if test "x$ac_ct_LIPO" = x; then
6903 LIPO=":"
6904 else
6905 case $cross_compiling:$ac_tool_warned in
6906 yes:)
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6908 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6909 ac_tool_warned=yes ;;
6910 esac
6911 LIPO=$ac_ct_LIPO
6913 else
6914 LIPO="$ac_cv_prog_LIPO"
6917 if test -n "$ac_tool_prefix"; then
6918 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6919 set dummy ${ac_tool_prefix}otool; ac_word=$2
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6921 $as_echo_n "checking for $ac_word... " >&6; }
6922 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6923 $as_echo_n "(cached) " >&6
6924 else
6925 if test -n "$OTOOL"; then
6926 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6927 else
6928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6929 for as_dir in $PATH
6931 IFS=$as_save_IFS
6932 test -z "$as_dir" && as_dir=.
6933 for ac_exec_ext in '' $ac_executable_extensions; do
6934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6935 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6937 break 2
6939 done
6940 done
6941 IFS=$as_save_IFS
6945 OTOOL=$ac_cv_prog_OTOOL
6946 if test -n "$OTOOL"; then
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6948 $as_echo "$OTOOL" >&6; }
6949 else
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6951 $as_echo "no" >&6; }
6956 if test -z "$ac_cv_prog_OTOOL"; then
6957 ac_ct_OTOOL=$OTOOL
6958 # Extract the first word of "otool", so it can be a program name with args.
6959 set dummy otool; ac_word=$2
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6961 $as_echo_n "checking for $ac_word... " >&6; }
6962 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6963 $as_echo_n "(cached) " >&6
6964 else
6965 if test -n "$ac_ct_OTOOL"; then
6966 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6967 else
6968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6969 for as_dir in $PATH
6971 IFS=$as_save_IFS
6972 test -z "$as_dir" && as_dir=.
6973 for ac_exec_ext in '' $ac_executable_extensions; do
6974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6975 ac_cv_prog_ac_ct_OTOOL="otool"
6976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6977 break 2
6979 done
6980 done
6981 IFS=$as_save_IFS
6985 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6986 if test -n "$ac_ct_OTOOL"; then
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6988 $as_echo "$ac_ct_OTOOL" >&6; }
6989 else
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6991 $as_echo "no" >&6; }
6994 if test "x$ac_ct_OTOOL" = x; then
6995 OTOOL=":"
6996 else
6997 case $cross_compiling:$ac_tool_warned in
6998 yes:)
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7001 ac_tool_warned=yes ;;
7002 esac
7003 OTOOL=$ac_ct_OTOOL
7005 else
7006 OTOOL="$ac_cv_prog_OTOOL"
7009 if test -n "$ac_tool_prefix"; then
7010 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7011 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7013 $as_echo_n "checking for $ac_word... " >&6; }
7014 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7015 $as_echo_n "(cached) " >&6
7016 else
7017 if test -n "$OTOOL64"; then
7018 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7019 else
7020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7021 for as_dir in $PATH
7023 IFS=$as_save_IFS
7024 test -z "$as_dir" && as_dir=.
7025 for ac_exec_ext in '' $ac_executable_extensions; do
7026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7027 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7029 break 2
7031 done
7032 done
7033 IFS=$as_save_IFS
7037 OTOOL64=$ac_cv_prog_OTOOL64
7038 if test -n "$OTOOL64"; then
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7040 $as_echo "$OTOOL64" >&6; }
7041 else
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7043 $as_echo "no" >&6; }
7048 if test -z "$ac_cv_prog_OTOOL64"; then
7049 ac_ct_OTOOL64=$OTOOL64
7050 # Extract the first word of "otool64", so it can be a program name with args.
7051 set dummy otool64; ac_word=$2
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7053 $as_echo_n "checking for $ac_word... " >&6; }
7054 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7055 $as_echo_n "(cached) " >&6
7056 else
7057 if test -n "$ac_ct_OTOOL64"; then
7058 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7059 else
7060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7061 for as_dir in $PATH
7063 IFS=$as_save_IFS
7064 test -z "$as_dir" && as_dir=.
7065 for ac_exec_ext in '' $ac_executable_extensions; do
7066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7067 ac_cv_prog_ac_ct_OTOOL64="otool64"
7068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7069 break 2
7071 done
7072 done
7073 IFS=$as_save_IFS
7077 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7078 if test -n "$ac_ct_OTOOL64"; then
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7080 $as_echo "$ac_ct_OTOOL64" >&6; }
7081 else
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7083 $as_echo "no" >&6; }
7086 if test "x$ac_ct_OTOOL64" = x; then
7087 OTOOL64=":"
7088 else
7089 case $cross_compiling:$ac_tool_warned in
7090 yes:)
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7093 ac_tool_warned=yes ;;
7094 esac
7095 OTOOL64=$ac_ct_OTOOL64
7097 else
7098 OTOOL64="$ac_cv_prog_OTOOL64"
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7128 $as_echo_n "checking for -single_module linker flag... " >&6; }
7129 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7130 $as_echo_n "(cached) " >&6
7131 else
7132 lt_cv_apple_cc_single_mod=no
7133 if test -z "${LT_MULTI_MODULE}"; then
7134 # By default we will add the -single_module flag. You can override
7135 # by either setting the environment variable LT_MULTI_MODULE
7136 # non-empty at configure time, or by adding -multi_module to the
7137 # link flags.
7138 rm -rf libconftest.dylib*
7139 echo "int foo(void){return 1;}" > conftest.c
7140 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7141 -dynamiclib -Wl,-single_module conftest.c" >&5
7142 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7143 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7144 _lt_result=$?
7145 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7146 lt_cv_apple_cc_single_mod=yes
7147 else
7148 cat conftest.err >&5
7150 rm -rf libconftest.dylib*
7151 rm -f conftest.*
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7155 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7157 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7158 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7159 $as_echo_n "(cached) " >&6
7160 else
7161 lt_cv_ld_exported_symbols_list=no
7162 save_LDFLAGS=$LDFLAGS
7163 echo "_main" > conftest.sym
7164 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7166 /* end confdefs.h. */
7169 main ()
7173 return 0;
7175 _ACEOF
7176 if ac_fn_c_try_link "$LINENO"; then :
7177 lt_cv_ld_exported_symbols_list=yes
7178 else
7179 lt_cv_ld_exported_symbols_list=no
7181 rm -f core conftest.err conftest.$ac_objext \
7182 conftest$ac_exeext conftest.$ac_ext
7183 LDFLAGS="$save_LDFLAGS"
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7187 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7189 $as_echo_n "checking for -force_load linker flag... " >&6; }
7190 if test "${lt_cv_ld_force_load+set}" = set; then :
7191 $as_echo_n "(cached) " >&6
7192 else
7193 lt_cv_ld_force_load=no
7194 cat > conftest.c << _LT_EOF
7195 int forced_loaded() { return 2;}
7196 _LT_EOF
7197 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7198 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7199 echo "$AR cru libconftest.a conftest.o" >&5
7200 $AR cru libconftest.a conftest.o 2>&5
7201 cat > conftest.c << _LT_EOF
7202 int main() { return 0;}
7203 _LT_EOF
7204 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7205 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7206 _lt_result=$?
7207 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7208 lt_cv_ld_force_load=yes
7209 else
7210 cat conftest.err >&5
7212 rm -f conftest.err libconftest.a conftest conftest.c
7213 rm -rf conftest.dSYM
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7217 $as_echo "$lt_cv_ld_force_load" >&6; }
7218 case $host_os in
7219 rhapsody* | darwin1.[012])
7220 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7221 darwin1.*)
7222 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7223 darwin*) # darwin 5.x on
7224 # if running on 10.5 or later, the deployment target defaults
7225 # to the OS version, if on x86, and 10.4, the deployment
7226 # target defaults to 10.4. Don't you love it?
7227 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7228 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7229 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7230 10.[012]*)
7231 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7232 10.*)
7233 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7234 esac
7236 esac
7237 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7238 _lt_dar_single_mod='$single_module'
7240 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7241 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7242 else
7243 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7245 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7246 _lt_dsymutil='~$DSYMUTIL $lib || :'
7247 else
7248 _lt_dsymutil=
7251 esac
7253 ac_ext=c
7254 ac_cpp='$CPP $CPPFLAGS'
7255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7259 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7260 # On Suns, sometimes $CPP names a directory.
7261 if test -n "$CPP" && test -d "$CPP"; then
7262 CPP=
7264 if test -z "$CPP"; then
7265 if test "${ac_cv_prog_CPP+set}" = set; then :
7266 $as_echo_n "(cached) " >&6
7267 else
7268 # Double quotes because CPP needs to be expanded
7269 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7271 ac_preproc_ok=false
7272 for ac_c_preproc_warn_flag in '' yes
7274 # Use a header file that comes with gcc, so configuring glibc
7275 # with a fresh cross-compiler works.
7276 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7277 # <limits.h> exists even on freestanding compilers.
7278 # On the NeXT, cc -E runs the code through the compiler's parser,
7279 # not just through cpp. "Syntax error" is here to catch this case.
7280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7281 /* end confdefs.h. */
7282 #ifdef __STDC__
7283 # include <limits.h>
7284 #else
7285 # include <assert.h>
7286 #endif
7287 Syntax error
7288 _ACEOF
7289 if ac_fn_c_try_cpp "$LINENO"; then :
7291 else
7292 # Broken: fails on valid input.
7293 continue
7295 rm -f conftest.err conftest.$ac_ext
7297 # OK, works on sane cases. Now check whether nonexistent headers
7298 # can be detected and how.
7299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7300 /* end confdefs.h. */
7301 #include <ac_nonexistent.h>
7302 _ACEOF
7303 if ac_fn_c_try_cpp "$LINENO"; then :
7304 # Broken: success on invalid input.
7305 continue
7306 else
7307 # Passes both tests.
7308 ac_preproc_ok=:
7309 break
7311 rm -f conftest.err conftest.$ac_ext
7313 done
7314 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7315 rm -f conftest.err conftest.$ac_ext
7316 if $ac_preproc_ok; then :
7317 break
7320 done
7321 ac_cv_prog_CPP=$CPP
7324 CPP=$ac_cv_prog_CPP
7325 else
7326 ac_cv_prog_CPP=$CPP
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7329 $as_echo "$CPP" >&6; }
7330 ac_preproc_ok=false
7331 for ac_c_preproc_warn_flag in '' yes
7333 # Use a header file that comes with gcc, so configuring glibc
7334 # with a fresh cross-compiler works.
7335 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7336 # <limits.h> exists even on freestanding compilers.
7337 # On the NeXT, cc -E runs the code through the compiler's parser,
7338 # not just through cpp. "Syntax error" is here to catch this case.
7339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7340 /* end confdefs.h. */
7341 #ifdef __STDC__
7342 # include <limits.h>
7343 #else
7344 # include <assert.h>
7345 #endif
7346 Syntax error
7347 _ACEOF
7348 if ac_fn_c_try_cpp "$LINENO"; then :
7350 else
7351 # Broken: fails on valid input.
7352 continue
7354 rm -f conftest.err conftest.$ac_ext
7356 # OK, works on sane cases. Now check whether nonexistent headers
7357 # can be detected and how.
7358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7359 /* end confdefs.h. */
7360 #include <ac_nonexistent.h>
7361 _ACEOF
7362 if ac_fn_c_try_cpp "$LINENO"; then :
7363 # Broken: success on invalid input.
7364 continue
7365 else
7366 # Passes both tests.
7367 ac_preproc_ok=:
7368 break
7370 rm -f conftest.err conftest.$ac_ext
7372 done
7373 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7374 rm -f conftest.err conftest.$ac_ext
7375 if $ac_preproc_ok; then :
7377 else
7378 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7379 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7380 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7381 See \`config.log' for more details." "$LINENO" 5; }
7384 ac_ext=c
7385 ac_cpp='$CPP $CPPFLAGS'
7386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7392 $as_echo_n "checking for ANSI C header files... " >&6; }
7393 if test "${ac_cv_header_stdc+set}" = set; then :
7394 $as_echo_n "(cached) " >&6
7395 else
7396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7397 /* end confdefs.h. */
7398 #include <stdlib.h>
7399 #include <stdarg.h>
7400 #include <string.h>
7401 #include <float.h>
7404 main ()
7408 return 0;
7410 _ACEOF
7411 if ac_fn_c_try_compile "$LINENO"; then :
7412 ac_cv_header_stdc=yes
7413 else
7414 ac_cv_header_stdc=no
7416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7418 if test $ac_cv_header_stdc = yes; then
7419 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7421 /* end confdefs.h. */
7422 #include <string.h>
7424 _ACEOF
7425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7426 $EGREP "memchr" >/dev/null 2>&1; then :
7428 else
7429 ac_cv_header_stdc=no
7431 rm -f conftest*
7435 if test $ac_cv_header_stdc = yes; then
7436 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7438 /* end confdefs.h. */
7439 #include <stdlib.h>
7441 _ACEOF
7442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7443 $EGREP "free" >/dev/null 2>&1; then :
7445 else
7446 ac_cv_header_stdc=no
7448 rm -f conftest*
7452 if test $ac_cv_header_stdc = yes; then
7453 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7454 if test "$cross_compiling" = yes; then :
7456 else
7457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7458 /* end confdefs.h. */
7459 #include <ctype.h>
7460 #include <stdlib.h>
7461 #if ((' ' & 0x0FF) == 0x020)
7462 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7463 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7464 #else
7465 # define ISLOWER(c) \
7466 (('a' <= (c) && (c) <= 'i') \
7467 || ('j' <= (c) && (c) <= 'r') \
7468 || ('s' <= (c) && (c) <= 'z'))
7469 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7470 #endif
7472 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7474 main ()
7476 int i;
7477 for (i = 0; i < 256; i++)
7478 if (XOR (islower (i), ISLOWER (i))
7479 || toupper (i) != TOUPPER (i))
7480 return 2;
7481 return 0;
7483 _ACEOF
7484 if ac_fn_c_try_run "$LINENO"; then :
7486 else
7487 ac_cv_header_stdc=no
7489 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7490 conftest.$ac_objext conftest.beam conftest.$ac_ext
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7496 $as_echo "$ac_cv_header_stdc" >&6; }
7497 if test $ac_cv_header_stdc = yes; then
7499 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7503 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7504 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7505 inttypes.h stdint.h unistd.h
7506 do :
7507 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7508 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7510 eval as_val=\$$as_ac_Header
7511 if test "x$as_val" = x""yes; then :
7512 cat >>confdefs.h <<_ACEOF
7513 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7514 _ACEOF
7518 done
7521 for ac_header in dlfcn.h
7522 do :
7523 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7525 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7526 cat >>confdefs.h <<_ACEOF
7527 #define HAVE_DLFCN_H 1
7528 _ACEOF
7532 done
7534 if test -n "$ac_tool_prefix"; then
7535 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7536 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7538 $as_echo_n "checking for $ac_word... " >&6; }
7539 if test "${ac_cv_prog_GOC+set}" = set; then :
7540 $as_echo_n "(cached) " >&6
7541 else
7542 if test -n "$GOC"; then
7543 ac_cv_prog_GOC="$GOC" # Let the user override the test.
7544 else
7545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7546 for as_dir in $PATH
7548 IFS=$as_save_IFS
7549 test -z "$as_dir" && as_dir=.
7550 for ac_exec_ext in '' $ac_executable_extensions; do
7551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7552 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7554 break 2
7556 done
7557 done
7558 IFS=$as_save_IFS
7562 GOC=$ac_cv_prog_GOC
7563 if test -n "$GOC"; then
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7565 $as_echo "$GOC" >&6; }
7566 else
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7568 $as_echo "no" >&6; }
7573 if test -z "$ac_cv_prog_GOC"; then
7574 ac_ct_GOC=$GOC
7575 # Extract the first word of "gccgo", so it can be a program name with args.
7576 set dummy gccgo; ac_word=$2
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7578 $as_echo_n "checking for $ac_word... " >&6; }
7579 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
7580 $as_echo_n "(cached) " >&6
7581 else
7582 if test -n "$ac_ct_GOC"; then
7583 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7584 else
7585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7586 for as_dir in $PATH
7588 IFS=$as_save_IFS
7589 test -z "$as_dir" && as_dir=.
7590 for ac_exec_ext in '' $ac_executable_extensions; do
7591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7592 ac_cv_prog_ac_ct_GOC="gccgo"
7593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7594 break 2
7596 done
7597 done
7598 IFS=$as_save_IFS
7602 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7603 if test -n "$ac_ct_GOC"; then
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7605 $as_echo "$ac_ct_GOC" >&6; }
7606 else
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7608 $as_echo "no" >&6; }
7611 if test "x$ac_ct_GOC" = x; then
7612 GOC=""
7613 else
7614 case $cross_compiling:$ac_tool_warned in
7615 yes:)
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7618 ac_tool_warned=yes ;;
7619 esac
7620 GOC=$ac_ct_GOC
7622 else
7623 GOC="$ac_cv_prog_GOC"
7631 # Set options
7636 enable_win32_dll=no
7639 # Check whether --enable-shared was given.
7640 if test "${enable_shared+set}" = set; then :
7641 enableval=$enable_shared; p=${PACKAGE-default}
7642 case $enableval in
7643 yes) enable_shared=yes ;;
7644 no) enable_shared=no ;;
7646 enable_shared=no
7647 # Look at the argument we got. We use all the common list separators.
7648 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7649 for pkg in $enableval; do
7650 IFS="$lt_save_ifs"
7651 if test "X$pkg" = "X$p"; then
7652 enable_shared=yes
7654 done
7655 IFS="$lt_save_ifs"
7657 esac
7658 else
7659 enable_shared=yes
7670 # Check whether --enable-static was given.
7671 if test "${enable_static+set}" = set; then :
7672 enableval=$enable_static; p=${PACKAGE-default}
7673 case $enableval in
7674 yes) enable_static=yes ;;
7675 no) enable_static=no ;;
7677 enable_static=no
7678 # Look at the argument we got. We use all the common list separators.
7679 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7680 for pkg in $enableval; do
7681 IFS="$lt_save_ifs"
7682 if test "X$pkg" = "X$p"; then
7683 enable_static=yes
7685 done
7686 IFS="$lt_save_ifs"
7688 esac
7689 else
7690 enable_static=yes
7702 # Check whether --with-pic was given.
7703 if test "${with_pic+set}" = set; then :
7704 withval=$with_pic; pic_mode="$withval"
7705 else
7706 pic_mode=default
7710 test -z "$pic_mode" && pic_mode=default
7718 # Check whether --enable-fast-install was given.
7719 if test "${enable_fast_install+set}" = set; then :
7720 enableval=$enable_fast_install; p=${PACKAGE-default}
7721 case $enableval in
7722 yes) enable_fast_install=yes ;;
7723 no) enable_fast_install=no ;;
7725 enable_fast_install=no
7726 # Look at the argument we got. We use all the common list separators.
7727 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7728 for pkg in $enableval; do
7729 IFS="$lt_save_ifs"
7730 if test "X$pkg" = "X$p"; then
7731 enable_fast_install=yes
7733 done
7734 IFS="$lt_save_ifs"
7736 esac
7737 else
7738 enable_fast_install=yes
7751 # This can be used to rebuild libtool when needed
7752 LIBTOOL_DEPS="$ltmain"
7754 # Always use our own libtool.
7755 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7782 test -z "$LN_S" && LN_S="ln -s"
7797 if test -n "${ZSH_VERSION+set}" ; then
7798 setopt NO_GLOB_SUBST
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7802 $as_echo_n "checking for objdir... " >&6; }
7803 if test "${lt_cv_objdir+set}" = set; then :
7804 $as_echo_n "(cached) " >&6
7805 else
7806 rm -f .libs 2>/dev/null
7807 mkdir .libs 2>/dev/null
7808 if test -d .libs; then
7809 lt_cv_objdir=.libs
7810 else
7811 # MS-DOS does not allow filenames that begin with a dot.
7812 lt_cv_objdir=_libs
7814 rmdir .libs 2>/dev/null
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7817 $as_echo "$lt_cv_objdir" >&6; }
7818 objdir=$lt_cv_objdir
7824 cat >>confdefs.h <<_ACEOF
7825 #define LT_OBJDIR "$lt_cv_objdir/"
7826 _ACEOF
7831 case $host_os in
7832 aix3*)
7833 # AIX sometimes has problems with the GCC collect2 program. For some
7834 # reason, if we set the COLLECT_NAMES environment variable, the problems
7835 # vanish in a puff of smoke.
7836 if test "X${COLLECT_NAMES+set}" != Xset; then
7837 COLLECT_NAMES=
7838 export COLLECT_NAMES
7841 esac
7843 # Global variables:
7844 ofile=libtool
7845 can_build_shared=yes
7847 # All known linkers require a `.a' archive for static linking (except MSVC,
7848 # which needs '.lib').
7849 libext=a
7851 with_gnu_ld="$lt_cv_prog_gnu_ld"
7853 old_CC="$CC"
7854 old_CFLAGS="$CFLAGS"
7856 # Set sane defaults for various variables
7857 test -z "$CC" && CC=cc
7858 test -z "$LTCC" && LTCC=$CC
7859 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7860 test -z "$LD" && LD=ld
7861 test -z "$ac_objext" && ac_objext=o
7863 for cc_temp in $compiler""; do
7864 case $cc_temp in
7865 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7866 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7867 \-*) ;;
7868 *) break;;
7869 esac
7870 done
7871 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7874 # Only perform the check for file, if the check method requires it
7875 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7876 case $deplibs_check_method in
7877 file_magic*)
7878 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7880 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7881 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7882 $as_echo_n "(cached) " >&6
7883 else
7884 case $MAGIC_CMD in
7885 [\\/*] | ?:[\\/]*)
7886 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7889 lt_save_MAGIC_CMD="$MAGIC_CMD"
7890 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7891 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7892 for ac_dir in $ac_dummy; do
7893 IFS="$lt_save_ifs"
7894 test -z "$ac_dir" && ac_dir=.
7895 if test -f $ac_dir/${ac_tool_prefix}file; then
7896 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7897 if test -n "$file_magic_test_file"; then
7898 case $deplibs_check_method in
7899 "file_magic "*)
7900 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7901 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7902 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7903 $EGREP "$file_magic_regex" > /dev/null; then
7905 else
7906 cat <<_LT_EOF 1>&2
7908 *** Warning: the command libtool uses to detect shared libraries,
7909 *** $file_magic_cmd, produces output that libtool cannot recognize.
7910 *** The result is that libtool may fail to recognize shared libraries
7911 *** as such. This will affect the creation of libtool libraries that
7912 *** depend on shared libraries, but programs linked with such libtool
7913 *** libraries will work regardless of this problem. Nevertheless, you
7914 *** may want to report the problem to your system manager and/or to
7915 *** bug-libtool@gnu.org
7917 _LT_EOF
7918 fi ;;
7919 esac
7921 break
7923 done
7924 IFS="$lt_save_ifs"
7925 MAGIC_CMD="$lt_save_MAGIC_CMD"
7927 esac
7930 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7931 if test -n "$MAGIC_CMD"; then
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7933 $as_echo "$MAGIC_CMD" >&6; }
7934 else
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7936 $as_echo "no" >&6; }
7943 if test -z "$lt_cv_path_MAGIC_CMD"; then
7944 if test -n "$ac_tool_prefix"; then
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7946 $as_echo_n "checking for file... " >&6; }
7947 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7948 $as_echo_n "(cached) " >&6
7949 else
7950 case $MAGIC_CMD in
7951 [\\/*] | ?:[\\/]*)
7952 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7955 lt_save_MAGIC_CMD="$MAGIC_CMD"
7956 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7957 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7958 for ac_dir in $ac_dummy; do
7959 IFS="$lt_save_ifs"
7960 test -z "$ac_dir" && ac_dir=.
7961 if test -f $ac_dir/file; then
7962 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7963 if test -n "$file_magic_test_file"; then
7964 case $deplibs_check_method in
7965 "file_magic "*)
7966 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7967 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7968 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7969 $EGREP "$file_magic_regex" > /dev/null; then
7971 else
7972 cat <<_LT_EOF 1>&2
7974 *** Warning: the command libtool uses to detect shared libraries,
7975 *** $file_magic_cmd, produces output that libtool cannot recognize.
7976 *** The result is that libtool may fail to recognize shared libraries
7977 *** as such. This will affect the creation of libtool libraries that
7978 *** depend on shared libraries, but programs linked with such libtool
7979 *** libraries will work regardless of this problem. Nevertheless, you
7980 *** may want to report the problem to your system manager and/or to
7981 *** bug-libtool@gnu.org
7983 _LT_EOF
7984 fi ;;
7985 esac
7987 break
7989 done
7990 IFS="$lt_save_ifs"
7991 MAGIC_CMD="$lt_save_MAGIC_CMD"
7993 esac
7996 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7997 if test -n "$MAGIC_CMD"; then
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7999 $as_echo "$MAGIC_CMD" >&6; }
8000 else
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8002 $as_echo "no" >&6; }
8006 else
8007 MAGIC_CMD=:
8013 esac
8015 # Use C for the default configuration in the libtool script
8017 lt_save_CC="$CC"
8018 ac_ext=c
8019 ac_cpp='$CPP $CPPFLAGS'
8020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8025 # Source file extension for C test sources.
8026 ac_ext=c
8028 # Object file extension for compiled C test sources.
8029 objext=o
8030 objext=$objext
8032 # Code to be used in simple compile tests
8033 lt_simple_compile_test_code="int some_variable = 0;"
8035 # Code to be used in simple link tests
8036 lt_simple_link_test_code='int main(){return(0);}'
8044 # If no C compiler was specified, use CC.
8045 LTCC=${LTCC-"$CC"}
8047 # If no C compiler flags were specified, use CFLAGS.
8048 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8050 # Allow CC to be a program name with arguments.
8051 compiler=$CC
8053 # Save the default compiler, since it gets overwritten when the other
8054 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8055 compiler_DEFAULT=$CC
8057 # save warnings/boilerplate of simple test code
8058 ac_outfile=conftest.$ac_objext
8059 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8060 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8061 _lt_compiler_boilerplate=`cat conftest.err`
8062 $RM conftest*
8064 ac_outfile=conftest.$ac_objext
8065 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8066 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8067 _lt_linker_boilerplate=`cat conftest.err`
8068 $RM -r conftest*
8071 ## CAVEAT EMPTOR:
8072 ## There is no encapsulation within the following macros, do not change
8073 ## the running order or otherwise move them around unless you know exactly
8074 ## what you are doing...
8075 if test -n "$compiler"; then
8077 lt_prog_compiler_no_builtin_flag=
8079 if test "$GCC" = yes; then
8080 case $cc_basename in
8081 nvcc*)
8082 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8084 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8085 esac
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8088 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8089 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8090 $as_echo_n "(cached) " >&6
8091 else
8092 lt_cv_prog_compiler_rtti_exceptions=no
8093 ac_outfile=conftest.$ac_objext
8094 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8095 lt_compiler_flag="-fno-rtti -fno-exceptions"
8096 # Insert the option either (1) after the last *FLAGS variable, or
8097 # (2) before a word containing "conftest.", or (3) at the end.
8098 # Note that $ac_compile itself does not contain backslashes and begins
8099 # with a dollar sign (not a hyphen), so the echo should work correctly.
8100 # The option is referenced via a variable to avoid confusing sed.
8101 lt_compile=`echo "$ac_compile" | $SED \
8102 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8103 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8104 -e 's:$: $lt_compiler_flag:'`
8105 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8106 (eval "$lt_compile" 2>conftest.err)
8107 ac_status=$?
8108 cat conftest.err >&5
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 if (exit $ac_status) && test -s "$ac_outfile"; then
8111 # The compiler can only warn and ignore the option if not recognized
8112 # So say no if there are warnings other than the usual output.
8113 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8114 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8115 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8116 lt_cv_prog_compiler_rtti_exceptions=yes
8119 $RM conftest*
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8123 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8125 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8126 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8127 else
8138 lt_prog_compiler_wl=
8139 lt_prog_compiler_pic=
8140 lt_prog_compiler_static=
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8143 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8145 if test "$GCC" = yes; then
8146 lt_prog_compiler_wl='-Wl,'
8147 lt_prog_compiler_static='-static'
8149 case $host_os in
8150 aix*)
8151 # All AIX code is PIC.
8152 if test "$host_cpu" = ia64; then
8153 # AIX 5 now supports IA64 processor
8154 lt_prog_compiler_static='-Bstatic'
8158 amigaos*)
8159 case $host_cpu in
8160 powerpc)
8161 # see comment about AmigaOS4 .so support
8162 lt_prog_compiler_pic='-fPIC'
8164 m68k)
8165 # FIXME: we need at least 68020 code to build shared libraries, but
8166 # adding the `-m68020' flag to GCC prevents building anything better,
8167 # like `-m68040'.
8168 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8170 esac
8173 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8174 # PIC is the default for these OSes.
8177 mingw* | cygwin* | pw32* | os2* | cegcc*)
8178 # This hack is so that the source file can tell whether it is being
8179 # built for inclusion in a dll (and should export symbols for example).
8180 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8181 # (--disable-auto-import) libraries
8182 lt_prog_compiler_pic='-DDLL_EXPORT'
8185 darwin* | rhapsody*)
8186 # PIC is the default on this platform
8187 # Common symbols not allowed in MH_DYLIB files
8188 lt_prog_compiler_pic='-fno-common'
8191 haiku*)
8192 # PIC is the default for Haiku.
8193 # The "-static" flag exists, but is broken.
8194 lt_prog_compiler_static=
8197 hpux*)
8198 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8199 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8200 # sets the default TLS model and affects inlining.
8201 case $host_cpu in
8202 hppa*64*)
8203 # +Z the default
8206 lt_prog_compiler_pic='-fPIC'
8208 esac
8211 interix[3-9]*)
8212 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8213 # Instead, we relocate shared libraries at runtime.
8216 msdosdjgpp*)
8217 # Just because we use GCC doesn't mean we suddenly get shared libraries
8218 # on systems that don't support them.
8219 lt_prog_compiler_can_build_shared=no
8220 enable_shared=no
8223 *nto* | *qnx*)
8224 # QNX uses GNU C++, but need to define -shared option too, otherwise
8225 # it will coredump.
8226 lt_prog_compiler_pic='-fPIC -shared'
8229 sysv4*MP*)
8230 if test -d /usr/nec; then
8231 lt_prog_compiler_pic=-Kconform_pic
8236 lt_prog_compiler_pic='-fPIC'
8238 esac
8240 case $cc_basename in
8241 nvcc*) # Cuda Compiler Driver 2.2
8242 lt_prog_compiler_wl='-Xlinker '
8243 lt_prog_compiler_pic='-Xcompiler -fPIC'
8245 esac
8246 else
8247 # PORTME Check for flag to pass linker flags through the system compiler.
8248 case $host_os in
8249 aix*)
8250 lt_prog_compiler_wl='-Wl,'
8251 if test "$host_cpu" = ia64; then
8252 # AIX 5 now supports IA64 processor
8253 lt_prog_compiler_static='-Bstatic'
8254 else
8255 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8259 mingw* | cygwin* | pw32* | os2* | cegcc*)
8260 # This hack is so that the source file can tell whether it is being
8261 # built for inclusion in a dll (and should export symbols for example).
8262 lt_prog_compiler_pic='-DDLL_EXPORT'
8265 hpux9* | hpux10* | hpux11*)
8266 lt_prog_compiler_wl='-Wl,'
8267 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8268 # not for PA HP-UX.
8269 case $host_cpu in
8270 hppa*64*|ia64*)
8271 # +Z the default
8274 lt_prog_compiler_pic='+Z'
8276 esac
8277 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8278 lt_prog_compiler_static='${wl}-a ${wl}archive'
8281 irix5* | irix6* | nonstopux*)
8282 lt_prog_compiler_wl='-Wl,'
8283 # PIC (with -KPIC) is the default.
8284 lt_prog_compiler_static='-non_shared'
8287 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8288 case $cc_basename in
8289 # old Intel for x86_64 which still supported -KPIC.
8290 ecc*)
8291 lt_prog_compiler_wl='-Wl,'
8292 lt_prog_compiler_pic='-KPIC'
8293 lt_prog_compiler_static='-static'
8295 # icc used to be incompatible with GCC.
8296 # ICC 10 doesn't accept -KPIC any more.
8297 icc* | ifort*)
8298 lt_prog_compiler_wl='-Wl,'
8299 lt_prog_compiler_pic='-fPIC'
8300 lt_prog_compiler_static='-static'
8302 # Lahey Fortran 8.1.
8303 lf95*)
8304 lt_prog_compiler_wl='-Wl,'
8305 lt_prog_compiler_pic='--shared'
8306 lt_prog_compiler_static='--static'
8308 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8309 # Portland Group compilers (*not* the Pentium gcc compiler,
8310 # which looks to be a dead project)
8311 lt_prog_compiler_wl='-Wl,'
8312 lt_prog_compiler_pic='-fpic'
8313 lt_prog_compiler_static='-Bstatic'
8315 ccc*)
8316 lt_prog_compiler_wl='-Wl,'
8317 # All Alpha code is PIC.
8318 lt_prog_compiler_static='-non_shared'
8320 xl* | bgxl* | bgf* | mpixl*)
8321 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8322 lt_prog_compiler_wl='-Wl,'
8323 lt_prog_compiler_pic='-qpic'
8324 lt_prog_compiler_static='-qstaticlink'
8327 case `$CC -V 2>&1 | sed 5q` in
8328 *Sun\ F* | *Sun*Fortran*)
8329 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8330 lt_prog_compiler_pic='-KPIC'
8331 lt_prog_compiler_static='-Bstatic'
8332 lt_prog_compiler_wl=''
8334 *Sun\ C*)
8335 # Sun C 5.9
8336 lt_prog_compiler_pic='-KPIC'
8337 lt_prog_compiler_static='-Bstatic'
8338 lt_prog_compiler_wl='-Wl,'
8340 esac
8342 esac
8345 newsos6)
8346 lt_prog_compiler_pic='-KPIC'
8347 lt_prog_compiler_static='-Bstatic'
8350 *nto* | *qnx*)
8351 # QNX uses GNU C++, but need to define -shared option too, otherwise
8352 # it will coredump.
8353 lt_prog_compiler_pic='-fPIC -shared'
8356 osf3* | osf4* | osf5*)
8357 lt_prog_compiler_wl='-Wl,'
8358 # All OSF/1 code is PIC.
8359 lt_prog_compiler_static='-non_shared'
8362 rdos*)
8363 lt_prog_compiler_static='-non_shared'
8366 solaris*)
8367 lt_prog_compiler_pic='-KPIC'
8368 lt_prog_compiler_static='-Bstatic'
8369 case $cc_basename in
8370 f77* | f90* | f95*)
8371 lt_prog_compiler_wl='-Qoption ld ';;
8373 lt_prog_compiler_wl='-Wl,';;
8374 esac
8377 sunos4*)
8378 lt_prog_compiler_wl='-Qoption ld '
8379 lt_prog_compiler_pic='-PIC'
8380 lt_prog_compiler_static='-Bstatic'
8383 sysv4 | sysv4.2uw2* | sysv4.3*)
8384 lt_prog_compiler_wl='-Wl,'
8385 lt_prog_compiler_pic='-KPIC'
8386 lt_prog_compiler_static='-Bstatic'
8389 sysv4*MP*)
8390 if test -d /usr/nec ;then
8391 lt_prog_compiler_pic='-Kconform_pic'
8392 lt_prog_compiler_static='-Bstatic'
8396 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8397 lt_prog_compiler_wl='-Wl,'
8398 lt_prog_compiler_pic='-KPIC'
8399 lt_prog_compiler_static='-Bstatic'
8402 unicos*)
8403 lt_prog_compiler_wl='-Wl,'
8404 lt_prog_compiler_can_build_shared=no
8407 uts4*)
8408 lt_prog_compiler_pic='-pic'
8409 lt_prog_compiler_static='-Bstatic'
8413 lt_prog_compiler_can_build_shared=no
8415 esac
8418 case $host_os in
8419 # For platforms which do not support PIC, -DPIC is meaningless:
8420 *djgpp*)
8421 lt_prog_compiler_pic=
8424 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8426 esac
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8428 $as_echo "$lt_prog_compiler_pic" >&6; }
8436 # Check to make sure the PIC flag actually works.
8438 if test -n "$lt_prog_compiler_pic"; then
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8440 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8441 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8442 $as_echo_n "(cached) " >&6
8443 else
8444 lt_cv_prog_compiler_pic_works=no
8445 ac_outfile=conftest.$ac_objext
8446 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8447 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8448 # Insert the option either (1) after the last *FLAGS variable, or
8449 # (2) before a word containing "conftest.", or (3) at the end.
8450 # Note that $ac_compile itself does not contain backslashes and begins
8451 # with a dollar sign (not a hyphen), so the echo should work correctly.
8452 # The option is referenced via a variable to avoid confusing sed.
8453 lt_compile=`echo "$ac_compile" | $SED \
8454 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8455 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8456 -e 's:$: $lt_compiler_flag:'`
8457 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8458 (eval "$lt_compile" 2>conftest.err)
8459 ac_status=$?
8460 cat conftest.err >&5
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 if (exit $ac_status) && test -s "$ac_outfile"; then
8463 # The compiler can only warn and ignore the option if not recognized
8464 # So say no if there are warnings other than the usual output.
8465 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8466 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8467 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8468 lt_cv_prog_compiler_pic_works=yes
8471 $RM conftest*
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8475 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8477 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8478 case $lt_prog_compiler_pic in
8479 "" | " "*) ;;
8480 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8481 esac
8482 else
8483 lt_prog_compiler_pic=
8484 lt_prog_compiler_can_build_shared=no
8495 # Check to make sure the static flag actually works.
8497 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8499 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8500 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8501 $as_echo_n "(cached) " >&6
8502 else
8503 lt_cv_prog_compiler_static_works=no
8504 save_LDFLAGS="$LDFLAGS"
8505 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8506 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8507 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8508 # The linker can only warn and ignore the option if not recognized
8509 # So say no if there are warnings
8510 if test -s conftest.err; then
8511 # Append any errors to the config.log.
8512 cat conftest.err 1>&5
8513 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8514 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8515 if diff conftest.exp conftest.er2 >/dev/null; then
8516 lt_cv_prog_compiler_static_works=yes
8518 else
8519 lt_cv_prog_compiler_static_works=yes
8522 $RM -r conftest*
8523 LDFLAGS="$save_LDFLAGS"
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8527 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8529 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8531 else
8532 lt_prog_compiler_static=
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8542 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8543 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8544 $as_echo_n "(cached) " >&6
8545 else
8546 lt_cv_prog_compiler_c_o=no
8547 $RM -r conftest 2>/dev/null
8548 mkdir conftest
8549 cd conftest
8550 mkdir out
8551 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8553 lt_compiler_flag="-o out/conftest2.$ac_objext"
8554 # Insert the option either (1) after the last *FLAGS variable, or
8555 # (2) before a word containing "conftest.", or (3) at the end.
8556 # Note that $ac_compile itself does not contain backslashes and begins
8557 # with a dollar sign (not a hyphen), so the echo should work correctly.
8558 lt_compile=`echo "$ac_compile" | $SED \
8559 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8560 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8561 -e 's:$: $lt_compiler_flag:'`
8562 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8563 (eval "$lt_compile" 2>out/conftest.err)
8564 ac_status=$?
8565 cat out/conftest.err >&5
8566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8568 then
8569 # The compiler can only warn and ignore the option if not recognized
8570 # So say no if there are warnings
8571 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8572 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8573 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8574 lt_cv_prog_compiler_c_o=yes
8577 chmod u+w . 2>&5
8578 $RM conftest*
8579 # SGI C++ compiler will create directory out/ii_files/ for
8580 # template instantiation
8581 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8582 $RM out/* && rmdir out
8583 cd ..
8584 $RM -r conftest
8585 $RM conftest*
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8589 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8597 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8598 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8599 $as_echo_n "(cached) " >&6
8600 else
8601 lt_cv_prog_compiler_c_o=no
8602 $RM -r conftest 2>/dev/null
8603 mkdir conftest
8604 cd conftest
8605 mkdir out
8606 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8608 lt_compiler_flag="-o out/conftest2.$ac_objext"
8609 # Insert the option either (1) after the last *FLAGS variable, or
8610 # (2) before a word containing "conftest.", or (3) at the end.
8611 # Note that $ac_compile itself does not contain backslashes and begins
8612 # with a dollar sign (not a hyphen), so the echo should work correctly.
8613 lt_compile=`echo "$ac_compile" | $SED \
8614 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8615 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8616 -e 's:$: $lt_compiler_flag:'`
8617 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8618 (eval "$lt_compile" 2>out/conftest.err)
8619 ac_status=$?
8620 cat out/conftest.err >&5
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8623 then
8624 # The compiler can only warn and ignore the option if not recognized
8625 # So say no if there are warnings
8626 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8627 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8628 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8629 lt_cv_prog_compiler_c_o=yes
8632 chmod u+w . 2>&5
8633 $RM conftest*
8634 # SGI C++ compiler will create directory out/ii_files/ for
8635 # template instantiation
8636 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8637 $RM out/* && rmdir out
8638 cd ..
8639 $RM -r conftest
8640 $RM conftest*
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8644 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8649 hard_links="nottested"
8650 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8651 # do not overwrite the value of need_locks provided by the user
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8653 $as_echo_n "checking if we can lock with hard links... " >&6; }
8654 hard_links=yes
8655 $RM conftest*
8656 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8657 touch conftest.a
8658 ln conftest.a conftest.b 2>&5 || hard_links=no
8659 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8661 $as_echo "$hard_links" >&6; }
8662 if test "$hard_links" = no; then
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8664 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8665 need_locks=warn
8667 else
8668 need_locks=no
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8677 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8679 runpath_var=
8680 allow_undefined_flag=
8681 always_export_symbols=no
8682 archive_cmds=
8683 archive_expsym_cmds=
8684 compiler_needs_object=no
8685 enable_shared_with_static_runtimes=no
8686 export_dynamic_flag_spec=
8687 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8688 hardcode_automatic=no
8689 hardcode_direct=no
8690 hardcode_direct_absolute=no
8691 hardcode_libdir_flag_spec=
8692 hardcode_libdir_flag_spec_ld=
8693 hardcode_libdir_separator=
8694 hardcode_minus_L=no
8695 hardcode_shlibpath_var=unsupported
8696 inherit_rpath=no
8697 link_all_deplibs=unknown
8698 module_cmds=
8699 module_expsym_cmds=
8700 old_archive_from_new_cmds=
8701 old_archive_from_expsyms_cmds=
8702 thread_safe_flag_spec=
8703 whole_archive_flag_spec=
8704 # include_expsyms should be a list of space-separated symbols to be *always*
8705 # included in the symbol list
8706 include_expsyms=
8707 # exclude_expsyms can be an extended regexp of symbols to exclude
8708 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8709 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8710 # as well as any symbol that contains `d'.
8711 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8712 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8713 # platforms (ab)use it in PIC code, but their linkers get confused if
8714 # the symbol is explicitly referenced. Since portable code cannot
8715 # rely on this symbol name, it's probably fine to never include it in
8716 # preloaded symbol tables.
8717 # Exclude shared library initialization/finalization symbols.
8718 extract_expsyms_cmds=
8720 case $host_os in
8721 cygwin* | mingw* | pw32* | cegcc*)
8722 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8723 # When not using gcc, we currently assume that we are using
8724 # Microsoft Visual C++.
8725 if test "$GCC" != yes; then
8726 with_gnu_ld=no
8729 interix*)
8730 # we just hope/assume this is gcc and not c89 (= MSVC++)
8731 with_gnu_ld=yes
8733 openbsd*)
8734 with_gnu_ld=no
8736 esac
8738 ld_shlibs=yes
8740 # On some targets, GNU ld is compatible enough with the native linker
8741 # that we're better off using the native interface for both.
8742 lt_use_gnu_ld_interface=no
8743 if test "$with_gnu_ld" = yes; then
8744 case $host_os in
8745 aix*)
8746 # The AIX port of GNU ld has always aspired to compatibility
8747 # with the native linker. However, as the warning in the GNU ld
8748 # block says, versions before 2.19.5* couldn't really create working
8749 # shared libraries, regardless of the interface used.
8750 case `$LD -v 2>&1` in
8751 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8752 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8753 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8755 lt_use_gnu_ld_interface=yes
8757 esac
8760 lt_use_gnu_ld_interface=yes
8762 esac
8765 if test "$lt_use_gnu_ld_interface" = yes; then
8766 # If archive_cmds runs LD, not CC, wlarc should be empty
8767 wlarc='${wl}'
8769 # Set some defaults for GNU ld with shared library support. These
8770 # are reset later if shared libraries are not supported. Putting them
8771 # here allows them to be overridden if necessary.
8772 runpath_var=LD_RUN_PATH
8773 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8774 export_dynamic_flag_spec='${wl}--export-dynamic'
8775 # ancient GNU ld didn't support --whole-archive et. al.
8776 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8777 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8778 else
8779 whole_archive_flag_spec=
8781 supports_anon_versioning=no
8782 case `$LD -v 2>&1` in
8783 *GNU\ gold*) supports_anon_versioning=yes ;;
8784 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8785 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8786 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8787 *\ 2.11.*) ;; # other 2.11 versions
8788 *) supports_anon_versioning=yes ;;
8789 esac
8791 # See if GNU ld supports shared libraries.
8792 case $host_os in
8793 aix[3-9]*)
8794 # On AIX/PPC, the GNU linker is very broken
8795 if test "$host_cpu" != ia64; then
8796 ld_shlibs=no
8797 cat <<_LT_EOF 1>&2
8799 *** Warning: the GNU linker, at least up to release 2.19, is reported
8800 *** to be unable to reliably create shared libraries on AIX.
8801 *** Therefore, libtool is disabling shared libraries support. If you
8802 *** really care for shared libraries, you may want to install binutils
8803 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8804 *** You will then need to restart the configuration process.
8806 _LT_EOF
8810 amigaos*)
8811 case $host_cpu in
8812 powerpc)
8813 # see comment about AmigaOS4 .so support
8814 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8815 archive_expsym_cmds=''
8817 m68k)
8818 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)'
8819 hardcode_libdir_flag_spec='-L$libdir'
8820 hardcode_minus_L=yes
8822 esac
8825 beos*)
8826 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8827 allow_undefined_flag=unsupported
8828 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8829 # support --undefined. This deserves some investigation. FIXME
8830 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8831 else
8832 ld_shlibs=no
8836 cygwin* | mingw* | pw32* | cegcc*)
8837 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8838 # as there is no search path for DLLs.
8839 hardcode_libdir_flag_spec='-L$libdir'
8840 export_dynamic_flag_spec='${wl}--export-all-symbols'
8841 allow_undefined_flag=unsupported
8842 always_export_symbols=no
8843 enable_shared_with_static_runtimes=yes
8844 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8846 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8847 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8848 # If the export-symbols file already is a .def file (1st line
8849 # is EXPORTS), use it as is; otherwise, prepend...
8850 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8851 cp $export_symbols $output_objdir/$soname.def;
8852 else
8853 echo EXPORTS > $output_objdir/$soname.def;
8854 cat $export_symbols >> $output_objdir/$soname.def;
8856 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8857 else
8858 ld_shlibs=no
8862 haiku*)
8863 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8864 link_all_deplibs=yes
8867 interix[3-9]*)
8868 hardcode_direct=no
8869 hardcode_shlibpath_var=no
8870 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8871 export_dynamic_flag_spec='${wl}-E'
8872 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8873 # Instead, shared libraries are loaded at an image base (0x10000000 by
8874 # default) and relocated if they conflict, which is a slow very memory
8875 # consuming and fragmenting process. To avoid this, we pick a random,
8876 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8877 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8878 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8879 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'
8882 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8883 tmp_diet=no
8884 if test "$host_os" = linux-dietlibc; then
8885 case $cc_basename in
8886 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8887 esac
8889 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8890 && test "$tmp_diet" = no
8891 then
8892 tmp_addflag=
8893 tmp_sharedflag='-shared'
8894 case $cc_basename,$host_cpu in
8895 pgcc*) # Portland Group C compiler
8896 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'
8897 tmp_addflag=' $pic_flag'
8899 pgf77* | pgf90* | pgf95* | pgfortran*)
8900 # Portland Group f77 and f90 compilers
8901 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'
8902 tmp_addflag=' $pic_flag -Mnomain' ;;
8903 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8904 tmp_addflag=' -i_dynamic' ;;
8905 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8906 tmp_addflag=' -i_dynamic -nofor_main' ;;
8907 ifc* | ifort*) # Intel Fortran compiler
8908 tmp_addflag=' -nofor_main' ;;
8909 lf95*) # Lahey Fortran 8.1
8910 whole_archive_flag_spec=
8911 tmp_sharedflag='--shared' ;;
8912 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8913 tmp_sharedflag='-qmkshrobj'
8914 tmp_addflag= ;;
8915 nvcc*) # Cuda Compiler Driver 2.2
8916 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'
8917 compiler_needs_object=yes
8919 esac
8920 case `$CC -V 2>&1 | sed 5q` in
8921 *Sun\ C*) # Sun C 5.9
8922 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'
8923 compiler_needs_object=yes
8924 tmp_sharedflag='-G' ;;
8925 *Sun\ F*) # Sun Fortran 8.3
8926 tmp_sharedflag='-G' ;;
8927 esac
8928 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8930 if test "x$supports_anon_versioning" = xyes; then
8931 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8932 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8933 echo "local: *; };" >> $output_objdir/$libname.ver~
8934 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8937 case $cc_basename in
8938 xlf* | bgf* | bgxlf* | mpixlf*)
8939 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8940 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8941 hardcode_libdir_flag_spec=
8942 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8943 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $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 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8951 esac
8952 else
8953 ld_shlibs=no
8957 netbsd*)
8958 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8959 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8960 wlarc=
8961 else
8962 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8963 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8967 solaris*)
8968 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8969 ld_shlibs=no
8970 cat <<_LT_EOF 1>&2
8972 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8973 *** create shared libraries on Solaris systems. Therefore, libtool
8974 *** is disabling shared libraries support. We urge you to upgrade GNU
8975 *** binutils to release 2.9.1 or newer. Another option is to modify
8976 *** your PATH or compiler configuration so that the native linker is
8977 *** used, and then restart.
8979 _LT_EOF
8980 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8981 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8982 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8983 else
8984 ld_shlibs=no
8988 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8989 case `$LD -v 2>&1` in
8990 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8991 ld_shlibs=no
8992 cat <<_LT_EOF 1>&2
8994 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8995 *** reliably create shared libraries on SCO systems. Therefore, libtool
8996 *** is disabling shared libraries support. We urge you to upgrade GNU
8997 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8998 *** your PATH or compiler configuration so that the native linker is
8999 *** used, and then restart.
9001 _LT_EOF
9004 # For security reasons, it is highly recommended that you always
9005 # use absolute paths for naming shared libraries, and exclude the
9006 # DT_RUNPATH tag from executables and libraries. But doing so
9007 # requires that you compile everything twice, which is a pain.
9008 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9009 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9010 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9011 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9012 else
9013 ld_shlibs=no
9016 esac
9019 sunos4*)
9020 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9021 wlarc=
9022 hardcode_direct=yes
9023 hardcode_shlibpath_var=no
9027 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9028 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9029 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9030 else
9031 ld_shlibs=no
9034 esac
9036 if test "$ld_shlibs" = no; then
9037 runpath_var=
9038 hardcode_libdir_flag_spec=
9039 export_dynamic_flag_spec=
9040 whole_archive_flag_spec=
9042 else
9043 # PORTME fill in a description of your system's linker (not GNU ld)
9044 case $host_os in
9045 aix3*)
9046 allow_undefined_flag=unsupported
9047 always_export_symbols=yes
9048 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'
9049 # Note: this linker hardcodes the directories in LIBPATH if there
9050 # are no directories specified by -L.
9051 hardcode_minus_L=yes
9052 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9053 # Neither direct hardcoding nor static linking is supported with a
9054 # broken collect2.
9055 hardcode_direct=unsupported
9059 aix[4-9]*)
9060 if test "$host_cpu" = ia64; then
9061 # On IA64, the linker does run time linking by default, so we don't
9062 # have to do anything special.
9063 aix_use_runtimelinking=no
9064 exp_sym_flag='-Bexport'
9065 no_entry_flag=""
9066 else
9067 # If we're using GNU nm, then we don't want the "-C" option.
9068 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9069 # Also, AIX nm treats weak defined symbols like other global
9070 # defined symbols, whereas GNU nm marks them as "W".
9071 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9072 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'
9073 else
9074 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'
9076 aix_use_runtimelinking=no
9078 # Test if we are trying to use run time linking or normal
9079 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9080 # need to do runtime linking.
9081 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9082 for ld_flag in $LDFLAGS; do
9083 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9084 aix_use_runtimelinking=yes
9085 break
9087 done
9089 esac
9091 exp_sym_flag='-bexport'
9092 no_entry_flag='-bnoentry'
9095 # When large executables or shared objects are built, AIX ld can
9096 # have problems creating the table of contents. If linking a library
9097 # or program results in "error TOC overflow" add -mminimal-toc to
9098 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9099 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9101 archive_cmds=''
9102 hardcode_direct=yes
9103 hardcode_direct_absolute=yes
9104 hardcode_libdir_separator=':'
9105 link_all_deplibs=yes
9106 file_list_spec='${wl}-f,'
9108 if test "$GCC" = yes; then
9109 case $host_os in aix4.[012]|aix4.[012].*)
9110 # We only want to do this on AIX 4.2 and lower, the check
9111 # below for broken collect2 doesn't work under 4.3+
9112 collect2name=`${CC} -print-prog-name=collect2`
9113 if test -f "$collect2name" &&
9114 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9115 then
9116 # We have reworked collect2
9118 else
9119 # We have old collect2
9120 hardcode_direct=unsupported
9121 # It fails to find uninstalled libraries when the uninstalled
9122 # path is not listed in the libpath. Setting hardcode_minus_L
9123 # to unsupported forces relinking
9124 hardcode_minus_L=yes
9125 hardcode_libdir_flag_spec='-L$libdir'
9126 hardcode_libdir_separator=
9129 esac
9130 shared_flag='-shared'
9131 if test "$aix_use_runtimelinking" = yes; then
9132 shared_flag="$shared_flag "'${wl}-G'
9134 else
9135 # not using gcc
9136 if test "$host_cpu" = ia64; then
9137 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9138 # chokes on -Wl,-G. The following line is correct:
9139 shared_flag='-G'
9140 else
9141 if test "$aix_use_runtimelinking" = yes; then
9142 shared_flag='${wl}-G'
9143 else
9144 shared_flag='${wl}-bM:SRE'
9149 export_dynamic_flag_spec='${wl}-bexpall'
9150 # It seems that -bexpall does not export symbols beginning with
9151 # underscore (_), so it is better to generate a list of symbols to export.
9152 always_export_symbols=yes
9153 if test "$aix_use_runtimelinking" = yes; then
9154 # Warning - without using the other runtime loading flags (-brtl),
9155 # -berok will link without error, but may produce a broken library.
9156 allow_undefined_flag='-berok'
9157 # Determine the default libpath from the value encoded in an
9158 # empty executable.
9159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9160 /* end confdefs.h. */
9163 main ()
9167 return 0;
9169 _ACEOF
9170 if ac_fn_c_try_link "$LINENO"; then :
9172 lt_aix_libpath_sed='
9173 /Import File Strings/,/^$/ {
9174 /^0/ {
9175 s/^0 *\(.*\)$/\1/
9179 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9180 # Check for a 64-bit object if we didn't find anything.
9181 if test -z "$aix_libpath"; then
9182 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9185 rm -f core conftest.err conftest.$ac_objext \
9186 conftest$ac_exeext conftest.$ac_ext
9187 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9189 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9190 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"
9191 else
9192 if test "$host_cpu" = ia64; then
9193 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9194 allow_undefined_flag="-z nodefs"
9195 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"
9196 else
9197 # Determine the default libpath from the value encoded in an
9198 # empty executable.
9199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9200 /* end confdefs.h. */
9203 main ()
9207 return 0;
9209 _ACEOF
9210 if ac_fn_c_try_link "$LINENO"; then :
9212 lt_aix_libpath_sed='
9213 /Import File Strings/,/^$/ {
9214 /^0/ {
9215 s/^0 *\(.*\)$/\1/
9219 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9220 # Check for a 64-bit object if we didn't find anything.
9221 if test -z "$aix_libpath"; then
9222 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9225 rm -f core conftest.err conftest.$ac_objext \
9226 conftest$ac_exeext conftest.$ac_ext
9227 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9229 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9230 # Warning - without using the other run time loading flags,
9231 # -berok will link without error, but may produce a broken library.
9232 no_undefined_flag=' ${wl}-bernotok'
9233 allow_undefined_flag=' ${wl}-berok'
9234 if test "$with_gnu_ld" = yes; then
9235 # We only use this code for GNU lds that support --whole-archive.
9236 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9237 else
9238 # Exported symbols can be pulled into shared objects from archives
9239 whole_archive_flag_spec='$convenience'
9241 archive_cmds_need_lc=yes
9242 # This is similar to how AIX traditionally builds its shared libraries.
9243 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'
9248 amigaos*)
9249 case $host_cpu in
9250 powerpc)
9251 # see comment about AmigaOS4 .so support
9252 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9253 archive_expsym_cmds=''
9255 m68k)
9256 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)'
9257 hardcode_libdir_flag_spec='-L$libdir'
9258 hardcode_minus_L=yes
9260 esac
9263 bsdi[45]*)
9264 export_dynamic_flag_spec=-rdynamic
9267 cygwin* | mingw* | pw32* | cegcc*)
9268 # When not using gcc, we currently assume that we are using
9269 # Microsoft Visual C++.
9270 # hardcode_libdir_flag_spec is actually meaningless, as there is
9271 # no search path for DLLs.
9272 hardcode_libdir_flag_spec=' '
9273 allow_undefined_flag=unsupported
9274 # Tell ltmain to make .lib files, not .a files.
9275 libext=lib
9276 # Tell ltmain to make .dll files, not .so files.
9277 shrext_cmds=".dll"
9278 # FIXME: Setting linknames here is a bad hack.
9279 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9280 # The linker will automatically build a .lib file if we build a DLL.
9281 old_archive_from_new_cmds='true'
9282 # FIXME: Should let the user specify the lib program.
9283 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9284 fix_srcfile_path='`cygpath -w "$srcfile"`'
9285 enable_shared_with_static_runtimes=yes
9288 darwin* | rhapsody*)
9291 archive_cmds_need_lc=no
9292 hardcode_direct=no
9293 hardcode_automatic=yes
9294 hardcode_shlibpath_var=unsupported
9295 if test "$lt_cv_ld_force_load" = "yes"; then
9296 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\"`'
9297 else
9298 whole_archive_flag_spec=''
9300 link_all_deplibs=yes
9301 allow_undefined_flag="$_lt_dar_allow_undefined"
9302 case $cc_basename in
9303 ifort*) _lt_dar_can_shared=yes ;;
9304 *) _lt_dar_can_shared=$GCC ;;
9305 esac
9306 if test "$_lt_dar_can_shared" = "yes"; then
9307 output_verbose_link_cmd=func_echo_all
9308 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9309 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9310 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}"
9311 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}"
9313 else
9314 ld_shlibs=no
9319 dgux*)
9320 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9321 hardcode_libdir_flag_spec='-L$libdir'
9322 hardcode_shlibpath_var=no
9325 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9326 # support. Future versions do this automatically, but an explicit c++rt0.o
9327 # does not break anything, and helps significantly (at the cost of a little
9328 # extra space).
9329 freebsd2.2*)
9330 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9331 hardcode_libdir_flag_spec='-R$libdir'
9332 hardcode_direct=yes
9333 hardcode_shlibpath_var=no
9336 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9337 freebsd2*)
9338 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9339 hardcode_direct=yes
9340 hardcode_minus_L=yes
9341 hardcode_shlibpath_var=no
9344 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9345 freebsd* | dragonfly*)
9346 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9347 hardcode_libdir_flag_spec='-R$libdir'
9348 hardcode_direct=yes
9349 hardcode_shlibpath_var=no
9352 hpux9*)
9353 if test "$GCC" = yes; then
9354 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'
9355 else
9356 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'
9358 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9359 hardcode_libdir_separator=:
9360 hardcode_direct=yes
9362 # hardcode_minus_L: Not really in the search PATH,
9363 # but as the default location of the library.
9364 hardcode_minus_L=yes
9365 export_dynamic_flag_spec='${wl}-E'
9368 hpux10*)
9369 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9370 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9371 else
9372 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9374 if test "$with_gnu_ld" = no; then
9375 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9376 hardcode_libdir_flag_spec_ld='+b $libdir'
9377 hardcode_libdir_separator=:
9378 hardcode_direct=yes
9379 hardcode_direct_absolute=yes
9380 export_dynamic_flag_spec='${wl}-E'
9381 # hardcode_minus_L: Not really in the search PATH,
9382 # but as the default location of the library.
9383 hardcode_minus_L=yes
9387 hpux11*)
9388 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9389 case $host_cpu in
9390 hppa*64*)
9391 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9393 ia64*)
9394 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9397 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9399 esac
9400 else
9401 case $host_cpu in
9402 hppa*64*)
9403 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9405 ia64*)
9406 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9410 # Older versions of the 11.00 compiler do not understand -b yet
9411 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9413 $as_echo_n "checking if $CC understands -b... " >&6; }
9414 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9415 $as_echo_n "(cached) " >&6
9416 else
9417 lt_cv_prog_compiler__b=no
9418 save_LDFLAGS="$LDFLAGS"
9419 LDFLAGS="$LDFLAGS -b"
9420 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9421 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9422 # The linker can only warn and ignore the option if not recognized
9423 # So say no if there are warnings
9424 if test -s conftest.err; then
9425 # Append any errors to the config.log.
9426 cat conftest.err 1>&5
9427 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9428 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9429 if diff conftest.exp conftest.er2 >/dev/null; then
9430 lt_cv_prog_compiler__b=yes
9432 else
9433 lt_cv_prog_compiler__b=yes
9436 $RM -r conftest*
9437 LDFLAGS="$save_LDFLAGS"
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9441 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9443 if test x"$lt_cv_prog_compiler__b" = xyes; then
9444 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9445 else
9446 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9450 esac
9452 if test "$with_gnu_ld" = no; then
9453 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9454 hardcode_libdir_separator=:
9456 case $host_cpu in
9457 hppa*64*|ia64*)
9458 hardcode_direct=no
9459 hardcode_shlibpath_var=no
9462 hardcode_direct=yes
9463 hardcode_direct_absolute=yes
9464 export_dynamic_flag_spec='${wl}-E'
9466 # hardcode_minus_L: Not really in the search PATH,
9467 # but as the default location of the library.
9468 hardcode_minus_L=yes
9470 esac
9474 irix5* | irix6* | nonstopux*)
9475 if test "$GCC" = yes; then
9476 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'
9477 # Try to use the -exported_symbol ld option, if it does not
9478 # work, assume that -exports_file does not work either and
9479 # implicitly export all symbols.
9480 save_LDFLAGS="$LDFLAGS"
9481 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9483 /* end confdefs.h. */
9484 int foo(void) {}
9485 _ACEOF
9486 if ac_fn_c_try_link "$LINENO"; then :
9487 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'
9490 rm -f core conftest.err conftest.$ac_objext \
9491 conftest$ac_exeext conftest.$ac_ext
9492 LDFLAGS="$save_LDFLAGS"
9493 else
9494 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'
9495 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'
9497 archive_cmds_need_lc='no'
9498 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9499 hardcode_libdir_separator=:
9500 inherit_rpath=yes
9501 link_all_deplibs=yes
9504 netbsd*)
9505 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9506 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9507 else
9508 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9510 hardcode_libdir_flag_spec='-R$libdir'
9511 hardcode_direct=yes
9512 hardcode_shlibpath_var=no
9515 newsos6)
9516 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9517 hardcode_direct=yes
9518 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9519 hardcode_libdir_separator=:
9520 hardcode_shlibpath_var=no
9523 *nto* | *qnx*)
9526 openbsd*)
9527 if test -f /usr/libexec/ld.so; then
9528 hardcode_direct=yes
9529 hardcode_shlibpath_var=no
9530 hardcode_direct_absolute=yes
9531 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9532 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9533 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9534 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9535 export_dynamic_flag_spec='${wl}-E'
9536 else
9537 case $host_os in
9538 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9539 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9540 hardcode_libdir_flag_spec='-R$libdir'
9543 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9544 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9546 esac
9548 else
9549 ld_shlibs=no
9553 os2*)
9554 hardcode_libdir_flag_spec='-L$libdir'
9555 hardcode_minus_L=yes
9556 allow_undefined_flag=unsupported
9557 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'
9558 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9561 osf3*)
9562 if test "$GCC" = yes; then
9563 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9564 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'
9565 else
9566 allow_undefined_flag=' -expect_unresolved \*'
9567 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'
9569 archive_cmds_need_lc='no'
9570 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9571 hardcode_libdir_separator=:
9574 osf4* | osf5*) # as osf3* with the addition of -msym flag
9575 if test "$GCC" = yes; then
9576 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9577 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'
9578 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9579 else
9580 allow_undefined_flag=' -expect_unresolved \*'
9581 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'
9582 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~
9583 $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'
9585 # Both c and cxx compiler support -rpath directly
9586 hardcode_libdir_flag_spec='-rpath $libdir'
9588 archive_cmds_need_lc='no'
9589 hardcode_libdir_separator=:
9592 solaris*)
9593 no_undefined_flag=' -z defs'
9594 if test "$GCC" = yes; then
9595 wlarc='${wl}'
9596 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9597 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9598 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9599 else
9600 case `$CC -V 2>&1` in
9601 *"Compilers 5.0"*)
9602 wlarc=''
9603 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9604 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9605 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9608 wlarc='${wl}'
9609 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9610 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9611 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9613 esac
9615 hardcode_libdir_flag_spec='-R$libdir'
9616 hardcode_shlibpath_var=no
9617 case $host_os in
9618 solaris2.[0-5] | solaris2.[0-5].*) ;;
9620 # The compiler driver will combine and reorder linker options,
9621 # but understands `-z linker_flag'. GCC discards it without `$wl',
9622 # but is careful enough not to reorder.
9623 # Supported since Solaris 2.6 (maybe 2.5.1?)
9624 if test "$GCC" = yes; then
9625 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9626 else
9627 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9630 esac
9631 link_all_deplibs=yes
9634 sunos4*)
9635 if test "x$host_vendor" = xsequent; then
9636 # Use $CC to link under sequent, because it throws in some extra .o
9637 # files that make .init and .fini sections work.
9638 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9639 else
9640 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9642 hardcode_libdir_flag_spec='-L$libdir'
9643 hardcode_direct=yes
9644 hardcode_minus_L=yes
9645 hardcode_shlibpath_var=no
9648 sysv4)
9649 case $host_vendor in
9650 sni)
9651 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9652 hardcode_direct=yes # is this really true???
9654 siemens)
9655 ## LD is ld it makes a PLAMLIB
9656 ## CC just makes a GrossModule.
9657 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9658 reload_cmds='$CC -r -o $output$reload_objs'
9659 hardcode_direct=no
9661 motorola)
9662 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9663 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9665 esac
9666 runpath_var='LD_RUN_PATH'
9667 hardcode_shlibpath_var=no
9670 sysv4.3*)
9671 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9672 hardcode_shlibpath_var=no
9673 export_dynamic_flag_spec='-Bexport'
9676 sysv4*MP*)
9677 if test -d /usr/nec; then
9678 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9679 hardcode_shlibpath_var=no
9680 runpath_var=LD_RUN_PATH
9681 hardcode_runpath_var=yes
9682 ld_shlibs=yes
9686 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9687 no_undefined_flag='${wl}-z,text'
9688 archive_cmds_need_lc=no
9689 hardcode_shlibpath_var=no
9690 runpath_var='LD_RUN_PATH'
9692 if test "$GCC" = yes; then
9693 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9694 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9695 else
9696 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9697 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9701 sysv5* | sco3.2v5* | sco5v6*)
9702 # Note: We can NOT use -z defs as we might desire, because we do not
9703 # link with -lc, and that would cause any symbols used from libc to
9704 # always be unresolved, which means just about no library would
9705 # ever link correctly. If we're not using GNU ld we use -z text
9706 # though, which does catch some bad symbols but isn't as heavy-handed
9707 # as -z defs.
9708 no_undefined_flag='${wl}-z,text'
9709 allow_undefined_flag='${wl}-z,nodefs'
9710 archive_cmds_need_lc=no
9711 hardcode_shlibpath_var=no
9712 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9713 hardcode_libdir_separator=':'
9714 link_all_deplibs=yes
9715 export_dynamic_flag_spec='${wl}-Bexport'
9716 runpath_var='LD_RUN_PATH'
9718 if test "$GCC" = yes; then
9719 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9720 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9721 else
9722 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9723 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9727 uts4*)
9728 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9729 hardcode_libdir_flag_spec='-L$libdir'
9730 hardcode_shlibpath_var=no
9734 ld_shlibs=no
9736 esac
9738 if test x$host_vendor = xsni; then
9739 case $host in
9740 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9741 export_dynamic_flag_spec='${wl}-Blargedynsym'
9743 esac
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9748 $as_echo "$ld_shlibs" >&6; }
9749 test "$ld_shlibs" = no && can_build_shared=no
9751 with_gnu_ld=$with_gnu_ld
9768 # Do we need to explicitly link libc?
9770 case "x$archive_cmds_need_lc" in
9771 x|xyes)
9772 # Assume -lc should be added
9773 archive_cmds_need_lc=yes
9775 if test "$enable_shared" = yes && test "$GCC" = yes; then
9776 case $archive_cmds in
9777 *'~'*)
9778 # FIXME: we may have to deal with multi-command sequences.
9780 '$CC '*)
9781 # Test whether the compiler implicitly links with -lc since on some
9782 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9783 # to ld, don't add -lc before -lgcc.
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9785 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9786 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9787 $as_echo_n "(cached) " >&6
9788 else
9789 $RM conftest*
9790 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9792 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9793 (eval $ac_compile) 2>&5
9794 ac_status=$?
9795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9796 test $ac_status = 0; } 2>conftest.err; then
9797 soname=conftest
9798 lib=conftest
9799 libobjs=conftest.$ac_objext
9800 deplibs=
9801 wl=$lt_prog_compiler_wl
9802 pic_flag=$lt_prog_compiler_pic
9803 compiler_flags=-v
9804 linker_flags=-v
9805 verstring=
9806 output_objdir=.
9807 libname=conftest
9808 lt_save_allow_undefined_flag=$allow_undefined_flag
9809 allow_undefined_flag=
9810 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9811 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9812 ac_status=$?
9813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9814 test $ac_status = 0; }
9815 then
9816 lt_cv_archive_cmds_need_lc=no
9817 else
9818 lt_cv_archive_cmds_need_lc=yes
9820 allow_undefined_flag=$lt_save_allow_undefined_flag
9821 else
9822 cat conftest.err 1>&5
9824 $RM conftest*
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9828 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9829 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9831 esac
9834 esac
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9993 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9995 if test "$GCC" = yes; then
9996 case $host_os in
9997 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9998 *) lt_awk_arg="/^libraries:/" ;;
9999 esac
10000 case $host_os in
10001 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10002 *) lt_sed_strip_eq="s,=/,/,g" ;;
10003 esac
10004 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10005 case $lt_search_path_spec in
10006 *\;*)
10007 # if the path contains ";" then we assume it to be the separator
10008 # otherwise default to the standard path separator (i.e. ":") - it is
10009 # assumed that no part of a normal pathname contains ";" but that should
10010 # okay in the real world where ";" in dirpaths is itself problematic.
10011 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10014 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10016 esac
10017 # Ok, now we have the path, separated by spaces, we can step through it
10018 # and add multilib dir if necessary.
10019 lt_tmp_lt_search_path_spec=
10020 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10021 for lt_sys_path in $lt_search_path_spec; do
10022 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10023 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10024 else
10025 test -d "$lt_sys_path" && \
10026 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10028 done
10029 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10030 BEGIN {RS=" "; FS="/|\n";} {
10031 lt_foo="";
10032 lt_count=0;
10033 for (lt_i = NF; lt_i > 0; lt_i--) {
10034 if ($lt_i != "" && $lt_i != ".") {
10035 if ($lt_i == "..") {
10036 lt_count++;
10037 } else {
10038 if (lt_count == 0) {
10039 lt_foo="/" $lt_i lt_foo;
10040 } else {
10041 lt_count--;
10046 if (lt_foo != "") { lt_freq[lt_foo]++; }
10047 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10049 # AWK program above erroneously prepends '/' to C:/dos/paths
10050 # for these hosts.
10051 case $host_os in
10052 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10053 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10054 esac
10055 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10056 else
10057 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10059 library_names_spec=
10060 libname_spec='lib$name'
10061 soname_spec=
10062 shrext_cmds=".so"
10063 postinstall_cmds=
10064 postuninstall_cmds=
10065 finish_cmds=
10066 finish_eval=
10067 shlibpath_var=
10068 shlibpath_overrides_runpath=unknown
10069 version_type=none
10070 dynamic_linker="$host_os ld.so"
10071 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10072 need_lib_prefix=unknown
10073 hardcode_into_libs=no
10075 # when you set need_version to no, make sure it does not cause -set_version
10076 # flags to be left without arguments
10077 need_version=unknown
10079 case $host_os in
10080 aix3*)
10081 version_type=linux
10082 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10083 shlibpath_var=LIBPATH
10085 # AIX 3 has no versioning support, so we append a major version to the name.
10086 soname_spec='${libname}${release}${shared_ext}$major'
10089 aix[4-9]*)
10090 version_type=linux
10091 need_lib_prefix=no
10092 need_version=no
10093 hardcode_into_libs=yes
10094 if test "$host_cpu" = ia64; then
10095 # AIX 5 supports IA64
10096 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10097 shlibpath_var=LD_LIBRARY_PATH
10098 else
10099 # With GCC up to 2.95.x, collect2 would create an import file
10100 # for dependence libraries. The import file would start with
10101 # the line `#! .'. This would cause the generated library to
10102 # depend on `.', always an invalid library. This was fixed in
10103 # development snapshots of GCC prior to 3.0.
10104 case $host_os in
10105 aix4 | aix4.[01] | aix4.[01].*)
10106 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10107 echo ' yes '
10108 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10110 else
10111 can_build_shared=no
10114 esac
10115 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10116 # soname into executable. Probably we can add versioning support to
10117 # collect2, so additional links can be useful in future.
10118 if test "$aix_use_runtimelinking" = yes; then
10119 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10120 # instead of lib<name>.a to let people know that these are not
10121 # typical AIX shared libraries.
10122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10123 else
10124 # We preserve .a as extension for shared libraries through AIX4.2
10125 # and later when we are not doing run time linking.
10126 library_names_spec='${libname}${release}.a $libname.a'
10127 soname_spec='${libname}${release}${shared_ext}$major'
10129 shlibpath_var=LIBPATH
10133 amigaos*)
10134 case $host_cpu in
10135 powerpc)
10136 # Since July 2007 AmigaOS4 officially supports .so libraries.
10137 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10140 m68k)
10141 library_names_spec='$libname.ixlibrary $libname.a'
10142 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10143 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'
10145 esac
10148 beos*)
10149 library_names_spec='${libname}${shared_ext}'
10150 dynamic_linker="$host_os ld.so"
10151 shlibpath_var=LIBRARY_PATH
10154 bsdi[45]*)
10155 version_type=linux
10156 need_version=no
10157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10158 soname_spec='${libname}${release}${shared_ext}$major'
10159 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10160 shlibpath_var=LD_LIBRARY_PATH
10161 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10162 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10163 # the default ld.so.conf also contains /usr/contrib/lib and
10164 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10165 # libtool to hard-code these into programs
10168 cygwin* | mingw* | pw32* | cegcc*)
10169 version_type=windows
10170 shrext_cmds=".dll"
10171 need_version=no
10172 need_lib_prefix=no
10174 case $GCC,$host_os in
10175 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10176 library_names_spec='$libname.dll.a'
10177 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10178 postinstall_cmds='base_file=`basename \${file}`~
10179 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10180 dldir=$destdir/`dirname \$dlpath`~
10181 test -d \$dldir || mkdir -p \$dldir~
10182 $install_prog $dir/$dlname \$dldir/$dlname~
10183 chmod a+x \$dldir/$dlname~
10184 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10185 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10187 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10188 dlpath=$dir/\$dldll~
10189 $RM \$dlpath'
10190 shlibpath_overrides_runpath=yes
10192 case $host_os in
10193 cygwin*)
10194 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10195 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10197 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10199 mingw* | cegcc*)
10200 # MinGW DLLs use traditional 'lib' prefix
10201 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10203 pw32*)
10204 # pw32 DLLs use 'pw' prefix rather than 'lib'
10205 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10207 esac
10211 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10213 esac
10214 dynamic_linker='Win32 ld.exe'
10215 # FIXME: first we should search . and the directory the executable is in
10216 shlibpath_var=PATH
10219 darwin* | rhapsody*)
10220 dynamic_linker="$host_os dyld"
10221 version_type=darwin
10222 need_lib_prefix=no
10223 need_version=no
10224 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10225 soname_spec='${libname}${release}${major}$shared_ext'
10226 shlibpath_overrides_runpath=yes
10227 shlibpath_var=DYLD_LIBRARY_PATH
10228 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10230 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10231 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10234 dgux*)
10235 version_type=linux
10236 need_lib_prefix=no
10237 need_version=no
10238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10239 soname_spec='${libname}${release}${shared_ext}$major'
10240 shlibpath_var=LD_LIBRARY_PATH
10243 freebsd* | dragonfly*)
10244 # DragonFly does not have aout. When/if they implement a new
10245 # versioning mechanism, adjust this.
10246 if test -x /usr/bin/objformat; then
10247 objformat=`/usr/bin/objformat`
10248 else
10249 case $host_os in
10250 freebsd[123]*) objformat=aout ;;
10251 *) objformat=elf ;;
10252 esac
10254 version_type=freebsd-$objformat
10255 case $version_type in
10256 freebsd-elf*)
10257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10258 need_version=no
10259 need_lib_prefix=no
10261 freebsd-*)
10262 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10263 need_version=yes
10265 esac
10266 shlibpath_var=LD_LIBRARY_PATH
10267 case $host_os in
10268 freebsd2*)
10269 shlibpath_overrides_runpath=yes
10271 freebsd3.[01]* | freebsdelf3.[01]*)
10272 shlibpath_overrides_runpath=yes
10273 hardcode_into_libs=yes
10275 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10276 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10277 shlibpath_overrides_runpath=no
10278 hardcode_into_libs=yes
10280 *) # from 4.6 on, and DragonFly
10281 shlibpath_overrides_runpath=yes
10282 hardcode_into_libs=yes
10284 esac
10287 gnu*)
10288 version_type=linux
10289 need_lib_prefix=no
10290 need_version=no
10291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10292 soname_spec='${libname}${release}${shared_ext}$major'
10293 shlibpath_var=LD_LIBRARY_PATH
10294 hardcode_into_libs=yes
10297 haiku*)
10298 version_type=linux
10299 need_lib_prefix=no
10300 need_version=no
10301 dynamic_linker="$host_os runtime_loader"
10302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10303 soname_spec='${libname}${release}${shared_ext}$major'
10304 shlibpath_var=LIBRARY_PATH
10305 shlibpath_overrides_runpath=yes
10306 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10307 hardcode_into_libs=yes
10310 hpux9* | hpux10* | hpux11*)
10311 # Give a soname corresponding to the major version so that dld.sl refuses to
10312 # link against other versions.
10313 version_type=sunos
10314 need_lib_prefix=no
10315 need_version=no
10316 case $host_cpu in
10317 ia64*)
10318 shrext_cmds='.so'
10319 hardcode_into_libs=yes
10320 dynamic_linker="$host_os dld.so"
10321 shlibpath_var=LD_LIBRARY_PATH
10322 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10324 soname_spec='${libname}${release}${shared_ext}$major'
10325 if test "X$HPUX_IA64_MODE" = X32; then
10326 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10327 else
10328 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10330 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10332 hppa*64*)
10333 shrext_cmds='.sl'
10334 hardcode_into_libs=yes
10335 dynamic_linker="$host_os dld.sl"
10336 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10337 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10339 soname_spec='${libname}${release}${shared_ext}$major'
10340 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10341 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10344 shrext_cmds='.sl'
10345 dynamic_linker="$host_os dld.sl"
10346 shlibpath_var=SHLIB_PATH
10347 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10349 soname_spec='${libname}${release}${shared_ext}$major'
10351 esac
10352 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10353 postinstall_cmds='chmod 555 $lib'
10354 # or fails outright, so override atomically:
10355 install_override_mode=555
10358 interix[3-9]*)
10359 version_type=linux
10360 need_lib_prefix=no
10361 need_version=no
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'
10364 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10365 shlibpath_var=LD_LIBRARY_PATH
10366 shlibpath_overrides_runpath=no
10367 hardcode_into_libs=yes
10370 irix5* | irix6* | nonstopux*)
10371 case $host_os in
10372 nonstopux*) version_type=nonstopux ;;
10374 if test "$lt_cv_prog_gnu_ld" = yes; then
10375 version_type=linux
10376 else
10377 version_type=irix
10378 fi ;;
10379 esac
10380 need_lib_prefix=no
10381 need_version=no
10382 soname_spec='${libname}${release}${shared_ext}$major'
10383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10384 case $host_os in
10385 irix5* | nonstopux*)
10386 libsuff= shlibsuff=
10389 case $LD in # libtool.m4 will add one of these switches to LD
10390 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10391 libsuff= shlibsuff= libmagic=32-bit;;
10392 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10393 libsuff=32 shlibsuff=N32 libmagic=N32;;
10394 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10395 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10396 *) libsuff= shlibsuff= libmagic=never-match;;
10397 esac
10399 esac
10400 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10401 shlibpath_overrides_runpath=no
10402 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10403 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10404 hardcode_into_libs=yes
10407 # No shared lib support for Linux oldld, aout, or coff.
10408 linux*oldld* | linux*aout* | linux*coff*)
10409 dynamic_linker=no
10412 # This must be Linux ELF.
10413 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10414 version_type=linux
10415 need_lib_prefix=no
10416 need_version=no
10417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10418 soname_spec='${libname}${release}${shared_ext}$major'
10419 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10420 shlibpath_var=LD_LIBRARY_PATH
10421 shlibpath_overrides_runpath=no
10423 # Some binutils ld are patched to set DT_RUNPATH
10424 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10425 $as_echo_n "(cached) " >&6
10426 else
10427 lt_cv_shlibpath_overrides_runpath=no
10428 save_LDFLAGS=$LDFLAGS
10429 save_libdir=$libdir
10430 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10431 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10433 /* end confdefs.h. */
10436 main ()
10440 return 0;
10442 _ACEOF
10443 if ac_fn_c_try_link "$LINENO"; then :
10444 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10445 lt_cv_shlibpath_overrides_runpath=yes
10448 rm -f core conftest.err conftest.$ac_objext \
10449 conftest$ac_exeext conftest.$ac_ext
10450 LDFLAGS=$save_LDFLAGS
10451 libdir=$save_libdir
10455 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10457 # This implies no fast_install, which is unacceptable.
10458 # Some rework will be needed to allow for fast_install
10459 # before this can be enabled.
10460 hardcode_into_libs=yes
10462 # Append ld.so.conf contents to the search path
10463 if test -f /etc/ld.so.conf; then
10464 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' ' '`
10465 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10468 # We used to test for /lib/ld.so.1 and disable shared libraries on
10469 # powerpc, because MkLinux only supported shared libraries with the
10470 # GNU dynamic linker. Since this was broken with cross compilers,
10471 # most powerpc-linux boxes support dynamic linking these days and
10472 # people can always --disable-shared, the test was removed, and we
10473 # assume the GNU/Linux dynamic linker is in use.
10474 dynamic_linker='GNU/Linux ld.so'
10477 netbsd*)
10478 version_type=sunos
10479 need_lib_prefix=no
10480 need_version=no
10481 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10483 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10484 dynamic_linker='NetBSD (a.out) ld.so'
10485 else
10486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10487 soname_spec='${libname}${release}${shared_ext}$major'
10488 dynamic_linker='NetBSD ld.elf_so'
10490 shlibpath_var=LD_LIBRARY_PATH
10491 shlibpath_overrides_runpath=yes
10492 hardcode_into_libs=yes
10495 newsos6)
10496 version_type=linux
10497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10498 shlibpath_var=LD_LIBRARY_PATH
10499 shlibpath_overrides_runpath=yes
10502 *nto* | *qnx*)
10503 version_type=qnx
10504 need_lib_prefix=no
10505 need_version=no
10506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10507 soname_spec='${libname}${release}${shared_ext}$major'
10508 shlibpath_var=LD_LIBRARY_PATH
10509 shlibpath_overrides_runpath=no
10510 hardcode_into_libs=yes
10511 dynamic_linker='ldqnx.so'
10514 openbsd*)
10515 version_type=sunos
10516 sys_lib_dlsearch_path_spec="/usr/lib"
10517 need_lib_prefix=no
10518 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10519 case $host_os in
10520 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10521 *) need_version=no ;;
10522 esac
10523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10524 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10525 shlibpath_var=LD_LIBRARY_PATH
10526 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10527 case $host_os in
10528 openbsd2.[89] | openbsd2.[89].*)
10529 shlibpath_overrides_runpath=no
10532 shlibpath_overrides_runpath=yes
10534 esac
10535 else
10536 shlibpath_overrides_runpath=yes
10540 os2*)
10541 libname_spec='$name'
10542 shrext_cmds=".dll"
10543 need_lib_prefix=no
10544 library_names_spec='$libname${shared_ext} $libname.a'
10545 dynamic_linker='OS/2 ld.exe'
10546 shlibpath_var=LIBPATH
10549 osf3* | osf4* | osf5*)
10550 version_type=osf
10551 need_lib_prefix=no
10552 need_version=no
10553 soname_spec='${libname}${release}${shared_ext}$major'
10554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10555 shlibpath_var=LD_LIBRARY_PATH
10556 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10557 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10560 rdos*)
10561 dynamic_linker=no
10564 solaris*)
10565 version_type=linux
10566 need_lib_prefix=no
10567 need_version=no
10568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10569 soname_spec='${libname}${release}${shared_ext}$major'
10570 shlibpath_var=LD_LIBRARY_PATH
10571 shlibpath_overrides_runpath=yes
10572 hardcode_into_libs=yes
10573 # ldd complains unless libraries are executable
10574 postinstall_cmds='chmod +x $lib'
10577 sunos4*)
10578 version_type=sunos
10579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10580 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10581 shlibpath_var=LD_LIBRARY_PATH
10582 shlibpath_overrides_runpath=yes
10583 if test "$with_gnu_ld" = yes; then
10584 need_lib_prefix=no
10586 need_version=yes
10589 sysv4 | sysv4.3*)
10590 version_type=linux
10591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10592 soname_spec='${libname}${release}${shared_ext}$major'
10593 shlibpath_var=LD_LIBRARY_PATH
10594 case $host_vendor in
10595 sni)
10596 shlibpath_overrides_runpath=no
10597 need_lib_prefix=no
10598 runpath_var=LD_RUN_PATH
10600 siemens)
10601 need_lib_prefix=no
10603 motorola)
10604 need_lib_prefix=no
10605 need_version=no
10606 shlibpath_overrides_runpath=no
10607 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10609 esac
10612 sysv4*MP*)
10613 if test -d /usr/nec ;then
10614 version_type=linux
10615 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10616 soname_spec='$libname${shared_ext}.$major'
10617 shlibpath_var=LD_LIBRARY_PATH
10621 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10622 version_type=freebsd-elf
10623 need_lib_prefix=no
10624 need_version=no
10625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10626 soname_spec='${libname}${release}${shared_ext}$major'
10627 shlibpath_var=LD_LIBRARY_PATH
10628 shlibpath_overrides_runpath=yes
10629 hardcode_into_libs=yes
10630 if test "$with_gnu_ld" = yes; then
10631 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10632 else
10633 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10634 case $host_os in
10635 sco3.2v5*)
10636 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10638 esac
10640 sys_lib_dlsearch_path_spec='/usr/lib'
10643 tpf*)
10644 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10645 version_type=linux
10646 need_lib_prefix=no
10647 need_version=no
10648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10649 shlibpath_var=LD_LIBRARY_PATH
10650 shlibpath_overrides_runpath=no
10651 hardcode_into_libs=yes
10654 uts4*)
10655 version_type=linux
10656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10657 soname_spec='${libname}${release}${shared_ext}$major'
10658 shlibpath_var=LD_LIBRARY_PATH
10662 dynamic_linker=no
10664 esac
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10666 $as_echo "$dynamic_linker" >&6; }
10667 test "$dynamic_linker" = no && can_build_shared=no
10669 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10670 if test "$GCC" = yes; then
10671 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10674 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10675 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10677 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10678 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10773 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10774 hardcode_action=
10775 if test -n "$hardcode_libdir_flag_spec" ||
10776 test -n "$runpath_var" ||
10777 test "X$hardcode_automatic" = "Xyes" ; then
10779 # We can hardcode non-existent directories.
10780 if test "$hardcode_direct" != no &&
10781 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10782 # have to relink, otherwise we might link with an installed library
10783 # when we should be linking with a yet-to-be-installed one
10784 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10785 test "$hardcode_minus_L" != no; then
10786 # Linking always hardcodes the temporary library directory.
10787 hardcode_action=relink
10788 else
10789 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10790 hardcode_action=immediate
10792 else
10793 # We cannot hardcode anything, or else we can only hardcode existing
10794 # directories.
10795 hardcode_action=unsupported
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10798 $as_echo "$hardcode_action" >&6; }
10800 if test "$hardcode_action" = relink ||
10801 test "$inherit_rpath" = yes; then
10802 # Fast installation is not supported
10803 enable_fast_install=no
10804 elif test "$shlibpath_overrides_runpath" = yes ||
10805 test "$enable_shared" = no; then
10806 # Fast installation is not necessary
10807 enable_fast_install=needless
10815 if test "x$enable_dlopen" != xyes; then
10816 enable_dlopen=unknown
10817 enable_dlopen_self=unknown
10818 enable_dlopen_self_static=unknown
10819 else
10820 lt_cv_dlopen=no
10821 lt_cv_dlopen_libs=
10823 case $host_os in
10824 beos*)
10825 lt_cv_dlopen="load_add_on"
10826 lt_cv_dlopen_libs=
10827 lt_cv_dlopen_self=yes
10830 mingw* | pw32* | cegcc*)
10831 lt_cv_dlopen="LoadLibrary"
10832 lt_cv_dlopen_libs=
10835 cygwin*)
10836 lt_cv_dlopen="dlopen"
10837 lt_cv_dlopen_libs=
10840 darwin*)
10841 # if libdl is installed we need to link against it
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10843 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10844 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10845 $as_echo_n "(cached) " >&6
10846 else
10847 ac_check_lib_save_LIBS=$LIBS
10848 LIBS="-ldl $LIBS"
10849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10850 /* end confdefs.h. */
10852 /* Override any GCC internal prototype to avoid an error.
10853 Use char because int might match the return type of a GCC
10854 builtin and then its argument prototype would still apply. */
10855 #ifdef __cplusplus
10856 extern "C"
10857 #endif
10858 char dlopen ();
10860 main ()
10862 return dlopen ();
10864 return 0;
10866 _ACEOF
10867 if ac_fn_c_try_link "$LINENO"; then :
10868 ac_cv_lib_dl_dlopen=yes
10869 else
10870 ac_cv_lib_dl_dlopen=no
10872 rm -f core conftest.err conftest.$ac_objext \
10873 conftest$ac_exeext conftest.$ac_ext
10874 LIBS=$ac_check_lib_save_LIBS
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10877 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10878 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10879 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10880 else
10882 lt_cv_dlopen="dyld"
10883 lt_cv_dlopen_libs=
10884 lt_cv_dlopen_self=yes
10891 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10892 if test "x$ac_cv_func_shl_load" = x""yes; then :
10893 lt_cv_dlopen="shl_load"
10894 else
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10896 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10897 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10898 $as_echo_n "(cached) " >&6
10899 else
10900 ac_check_lib_save_LIBS=$LIBS
10901 LIBS="-ldld $LIBS"
10902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10903 /* end confdefs.h. */
10905 /* Override any GCC internal prototype to avoid an error.
10906 Use char because int might match the return type of a GCC
10907 builtin and then its argument prototype would still apply. */
10908 #ifdef __cplusplus
10909 extern "C"
10910 #endif
10911 char shl_load ();
10913 main ()
10915 return shl_load ();
10917 return 0;
10919 _ACEOF
10920 if ac_fn_c_try_link "$LINENO"; then :
10921 ac_cv_lib_dld_shl_load=yes
10922 else
10923 ac_cv_lib_dld_shl_load=no
10925 rm -f core conftest.err conftest.$ac_objext \
10926 conftest$ac_exeext conftest.$ac_ext
10927 LIBS=$ac_check_lib_save_LIBS
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10930 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10931 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10932 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10933 else
10934 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10935 if test "x$ac_cv_func_dlopen" = x""yes; then :
10936 lt_cv_dlopen="dlopen"
10937 else
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10939 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10940 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10941 $as_echo_n "(cached) " >&6
10942 else
10943 ac_check_lib_save_LIBS=$LIBS
10944 LIBS="-ldl $LIBS"
10945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10946 /* end confdefs.h. */
10948 /* Override any GCC internal prototype to avoid an error.
10949 Use char because int might match the return type of a GCC
10950 builtin and then its argument prototype would still apply. */
10951 #ifdef __cplusplus
10952 extern "C"
10953 #endif
10954 char dlopen ();
10956 main ()
10958 return dlopen ();
10960 return 0;
10962 _ACEOF
10963 if ac_fn_c_try_link "$LINENO"; then :
10964 ac_cv_lib_dl_dlopen=yes
10965 else
10966 ac_cv_lib_dl_dlopen=no
10968 rm -f core conftest.err conftest.$ac_objext \
10969 conftest$ac_exeext conftest.$ac_ext
10970 LIBS=$ac_check_lib_save_LIBS
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10973 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10974 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10975 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10976 else
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10978 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10979 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10980 $as_echo_n "(cached) " >&6
10981 else
10982 ac_check_lib_save_LIBS=$LIBS
10983 LIBS="-lsvld $LIBS"
10984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10985 /* end confdefs.h. */
10987 /* Override any GCC internal prototype to avoid an error.
10988 Use char because int might match the return type of a GCC
10989 builtin and then its argument prototype would still apply. */
10990 #ifdef __cplusplus
10991 extern "C"
10992 #endif
10993 char dlopen ();
10995 main ()
10997 return dlopen ();
10999 return 0;
11001 _ACEOF
11002 if ac_fn_c_try_link "$LINENO"; then :
11003 ac_cv_lib_svld_dlopen=yes
11004 else
11005 ac_cv_lib_svld_dlopen=no
11007 rm -f core conftest.err conftest.$ac_objext \
11008 conftest$ac_exeext conftest.$ac_ext
11009 LIBS=$ac_check_lib_save_LIBS
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11012 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11013 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11014 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11015 else
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11017 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11018 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11019 $as_echo_n "(cached) " >&6
11020 else
11021 ac_check_lib_save_LIBS=$LIBS
11022 LIBS="-ldld $LIBS"
11023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11024 /* end confdefs.h. */
11026 /* Override any GCC internal prototype to avoid an error.
11027 Use char because int might match the return type of a GCC
11028 builtin and then its argument prototype would still apply. */
11029 #ifdef __cplusplus
11030 extern "C"
11031 #endif
11032 char dld_link ();
11034 main ()
11036 return dld_link ();
11038 return 0;
11040 _ACEOF
11041 if ac_fn_c_try_link "$LINENO"; then :
11042 ac_cv_lib_dld_dld_link=yes
11043 else
11044 ac_cv_lib_dld_dld_link=no
11046 rm -f core conftest.err conftest.$ac_objext \
11047 conftest$ac_exeext conftest.$ac_ext
11048 LIBS=$ac_check_lib_save_LIBS
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11051 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11052 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11053 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11072 esac
11074 if test "x$lt_cv_dlopen" != xno; then
11075 enable_dlopen=yes
11076 else
11077 enable_dlopen=no
11080 case $lt_cv_dlopen in
11081 dlopen)
11082 save_CPPFLAGS="$CPPFLAGS"
11083 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11085 save_LDFLAGS="$LDFLAGS"
11086 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11088 save_LIBS="$LIBS"
11089 LIBS="$lt_cv_dlopen_libs $LIBS"
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11092 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11093 if test "${lt_cv_dlopen_self+set}" = set; then :
11094 $as_echo_n "(cached) " >&6
11095 else
11096 if test "$cross_compiling" = yes; then :
11097 lt_cv_dlopen_self=cross
11098 else
11099 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11100 lt_status=$lt_dlunknown
11101 cat > conftest.$ac_ext <<_LT_EOF
11102 #line 11102 "configure"
11103 #include "confdefs.h"
11105 #if HAVE_DLFCN_H
11106 #include <dlfcn.h>
11107 #endif
11109 #include <stdio.h>
11111 #ifdef RTLD_GLOBAL
11112 # define LT_DLGLOBAL RTLD_GLOBAL
11113 #else
11114 # ifdef DL_GLOBAL
11115 # define LT_DLGLOBAL DL_GLOBAL
11116 # else
11117 # define LT_DLGLOBAL 0
11118 # endif
11119 #endif
11121 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11122 find out it does not work in some platform. */
11123 #ifndef LT_DLLAZY_OR_NOW
11124 # ifdef RTLD_LAZY
11125 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11126 # else
11127 # ifdef DL_LAZY
11128 # define LT_DLLAZY_OR_NOW DL_LAZY
11129 # else
11130 # ifdef RTLD_NOW
11131 # define LT_DLLAZY_OR_NOW RTLD_NOW
11132 # else
11133 # ifdef DL_NOW
11134 # define LT_DLLAZY_OR_NOW DL_NOW
11135 # else
11136 # define LT_DLLAZY_OR_NOW 0
11137 # endif
11138 # endif
11139 # endif
11140 # endif
11141 #endif
11143 /* When -fvisbility=hidden is used, assume the code has been annotated
11144 correspondingly for the symbols needed. */
11145 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11146 void fnord () __attribute__((visibility("default")));
11147 #endif
11149 void fnord () { int i=42; }
11150 int main ()
11152 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11153 int status = $lt_dlunknown;
11155 if (self)
11157 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11158 else
11160 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11161 else puts (dlerror ());
11163 /* dlclose (self); */
11165 else
11166 puts (dlerror ());
11168 return status;
11170 _LT_EOF
11171 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11172 (eval $ac_link) 2>&5
11173 ac_status=$?
11174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11175 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11176 (./conftest; exit; ) >&5 2>/dev/null
11177 lt_status=$?
11178 case x$lt_status in
11179 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11180 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11181 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11182 esac
11183 else :
11184 # compilation failed
11185 lt_cv_dlopen_self=no
11188 rm -fr conftest*
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11193 $as_echo "$lt_cv_dlopen_self" >&6; }
11195 if test "x$lt_cv_dlopen_self" = xyes; then
11196 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11198 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11199 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11200 $as_echo_n "(cached) " >&6
11201 else
11202 if test "$cross_compiling" = yes; then :
11203 lt_cv_dlopen_self_static=cross
11204 else
11205 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11206 lt_status=$lt_dlunknown
11207 cat > conftest.$ac_ext <<_LT_EOF
11208 #line 11208 "configure"
11209 #include "confdefs.h"
11211 #if HAVE_DLFCN_H
11212 #include <dlfcn.h>
11213 #endif
11215 #include <stdio.h>
11217 #ifdef RTLD_GLOBAL
11218 # define LT_DLGLOBAL RTLD_GLOBAL
11219 #else
11220 # ifdef DL_GLOBAL
11221 # define LT_DLGLOBAL DL_GLOBAL
11222 # else
11223 # define LT_DLGLOBAL 0
11224 # endif
11225 #endif
11227 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11228 find out it does not work in some platform. */
11229 #ifndef LT_DLLAZY_OR_NOW
11230 # ifdef RTLD_LAZY
11231 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11232 # else
11233 # ifdef DL_LAZY
11234 # define LT_DLLAZY_OR_NOW DL_LAZY
11235 # else
11236 # ifdef RTLD_NOW
11237 # define LT_DLLAZY_OR_NOW RTLD_NOW
11238 # else
11239 # ifdef DL_NOW
11240 # define LT_DLLAZY_OR_NOW DL_NOW
11241 # else
11242 # define LT_DLLAZY_OR_NOW 0
11243 # endif
11244 # endif
11245 # endif
11246 # endif
11247 #endif
11249 /* When -fvisbility=hidden is used, assume the code has been annotated
11250 correspondingly for the symbols needed. */
11251 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11252 void fnord () __attribute__((visibility("default")));
11253 #endif
11255 void fnord () { int i=42; }
11256 int main ()
11258 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11259 int status = $lt_dlunknown;
11261 if (self)
11263 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11264 else
11266 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11267 else puts (dlerror ());
11269 /* dlclose (self); */
11271 else
11272 puts (dlerror ());
11274 return status;
11276 _LT_EOF
11277 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11278 (eval $ac_link) 2>&5
11279 ac_status=$?
11280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11281 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11282 (./conftest; exit; ) >&5 2>/dev/null
11283 lt_status=$?
11284 case x$lt_status in
11285 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11286 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11287 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11288 esac
11289 else :
11290 # compilation failed
11291 lt_cv_dlopen_self_static=no
11294 rm -fr conftest*
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11299 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11302 CPPFLAGS="$save_CPPFLAGS"
11303 LDFLAGS="$save_LDFLAGS"
11304 LIBS="$save_LIBS"
11306 esac
11308 case $lt_cv_dlopen_self in
11309 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11310 *) enable_dlopen_self=unknown ;;
11311 esac
11313 case $lt_cv_dlopen_self_static in
11314 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11315 *) enable_dlopen_self_static=unknown ;;
11316 esac
11335 striplib=
11336 old_striplib=
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11338 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11339 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11340 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11341 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11343 $as_echo "yes" >&6; }
11344 else
11345 # FIXME - insert some real tests, host_os isn't really good enough
11346 case $host_os in
11347 darwin*)
11348 if test -n "$STRIP" ; then
11349 striplib="$STRIP -x"
11350 old_striplib="$STRIP -S"
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11352 $as_echo "yes" >&6; }
11353 else
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11355 $as_echo "no" >&6; }
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11360 $as_echo "no" >&6; }
11362 esac
11376 # Report which library types will actually be built
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11378 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11380 $as_echo "$can_build_shared" >&6; }
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11383 $as_echo_n "checking whether to build shared libraries... " >&6; }
11384 test "$can_build_shared" = "no" && enable_shared=no
11386 # On AIX, shared libraries and static libraries use the same namespace, and
11387 # are all built from PIC.
11388 case $host_os in
11389 aix3*)
11390 test "$enable_shared" = yes && enable_static=no
11391 if test -n "$RANLIB"; then
11392 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11393 postinstall_cmds='$RANLIB $lib'
11397 aix[4-9]*)
11398 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11399 test "$enable_shared" = yes && enable_static=no
11402 esac
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11404 $as_echo "$enable_shared" >&6; }
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11407 $as_echo_n "checking whether to build static libraries... " >&6; }
11408 # Make sure either enable_shared or enable_static is yes.
11409 test "$enable_shared" = yes || enable_static=yes
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11411 $as_echo "$enable_static" >&6; }
11417 ac_ext=c
11418 ac_cpp='$CPP $CPPFLAGS'
11419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11423 CC="$lt_save_CC"
11437 # Source file extension for Go test sources.
11438 ac_ext=go
11440 # Object file extension for compiled Go test sources.
11441 objext=o
11442 objext_GO=$objext
11444 # Code to be used in simple compile tests
11445 lt_simple_compile_test_code="package main; func main() { }"
11447 # Code to be used in simple link tests
11448 lt_simple_link_test_code='package main; func main() { }'
11450 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11457 # If no C compiler was specified, use CC.
11458 LTCC=${LTCC-"$CC"}
11460 # If no C compiler flags were specified, use CFLAGS.
11461 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11463 # Allow CC to be a program name with arguments.
11464 compiler=$CC
11467 # save warnings/boilerplate of simple test code
11468 ac_outfile=conftest.$ac_objext
11469 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11470 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11471 _lt_compiler_boilerplate=`cat conftest.err`
11472 $RM conftest*
11474 ac_outfile=conftest.$ac_objext
11475 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11476 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11477 _lt_linker_boilerplate=`cat conftest.err`
11478 $RM -r conftest*
11481 # Allow CC to be a program name with arguments.
11482 lt_save_CC="$CC"
11483 lt_save_GCC="$GCC"
11484 GCC=yes
11485 CC=${GOC-"gccgo"}
11486 compiler=$CC
11487 compiler_GO=$CC
11488 LD_GO="$LD"
11489 for cc_temp in $compiler""; do
11490 case $cc_temp in
11491 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11492 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11493 \-*) ;;
11494 *) break;;
11495 esac
11496 done
11497 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11500 # Go did not exist at the time GCC didn't implicitly link libc in.
11501 archive_cmds_need_lc_GO=no
11503 old_archive_cmds_GO=$old_archive_cmds
11505 ## CAVEAT EMPTOR:
11506 ## There is no encapsulation within the following macros, do not change
11507 ## the running order or otherwise move them around unless you know exactly
11508 ## what you are doing...
11509 if test -n "$compiler"; then
11511 lt_prog_compiler_no_builtin_flag_GO=
11513 if test "$GCC" = yes; then
11514 case $cc_basename in
11515 nvcc*)
11516 lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11518 lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11519 esac
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11522 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11523 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11524 $as_echo_n "(cached) " >&6
11525 else
11526 lt_cv_prog_compiler_rtti_exceptions=no
11527 ac_outfile=conftest.$ac_objext
11528 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11529 lt_compiler_flag="-fno-rtti -fno-exceptions"
11530 # Insert the option either (1) after the last *FLAGS variable, or
11531 # (2) before a word containing "conftest.", or (3) at the end.
11532 # Note that $ac_compile itself does not contain backslashes and begins
11533 # with a dollar sign (not a hyphen), so the echo should work correctly.
11534 # The option is referenced via a variable to avoid confusing sed.
11535 lt_compile=`echo "$ac_compile" | $SED \
11536 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11537 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11538 -e 's:$: $lt_compiler_flag:'`
11539 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11540 (eval "$lt_compile" 2>conftest.err)
11541 ac_status=$?
11542 cat conftest.err >&5
11543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 if (exit $ac_status) && test -s "$ac_outfile"; then
11545 # The compiler can only warn and ignore the option if not recognized
11546 # So say no if there are warnings other than the usual output.
11547 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11548 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11549 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11550 lt_cv_prog_compiler_rtti_exceptions=yes
11553 $RM conftest*
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11557 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11559 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11560 lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11561 else
11569 lt_prog_compiler_wl_GO=
11570 lt_prog_compiler_pic_GO=
11571 lt_prog_compiler_static_GO=
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11574 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11576 if test "$GCC" = yes; then
11577 lt_prog_compiler_wl_GO='-Wl,'
11578 lt_prog_compiler_static_GO='-static'
11580 case $host_os in
11581 aix*)
11582 # All AIX code is PIC.
11583 if test "$host_cpu" = ia64; then
11584 # AIX 5 now supports IA64 processor
11585 lt_prog_compiler_static_GO='-Bstatic'
11589 amigaos*)
11590 case $host_cpu in
11591 powerpc)
11592 # see comment about AmigaOS4 .so support
11593 lt_prog_compiler_pic_GO='-fPIC'
11595 m68k)
11596 # FIXME: we need at least 68020 code to build shared libraries, but
11597 # adding the `-m68020' flag to GCC prevents building anything better,
11598 # like `-m68040'.
11599 lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11601 esac
11604 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11605 # PIC is the default for these OSes.
11608 mingw* | cygwin* | pw32* | os2* | cegcc*)
11609 # This hack is so that the source file can tell whether it is being
11610 # built for inclusion in a dll (and should export symbols for example).
11611 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11612 # (--disable-auto-import) libraries
11613 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11616 darwin* | rhapsody*)
11617 # PIC is the default on this platform
11618 # Common symbols not allowed in MH_DYLIB files
11619 lt_prog_compiler_pic_GO='-fno-common'
11622 haiku*)
11623 # PIC is the default for Haiku.
11624 # The "-static" flag exists, but is broken.
11625 lt_prog_compiler_static_GO=
11628 hpux*)
11629 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11630 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11631 # sets the default TLS model and affects inlining.
11632 case $host_cpu in
11633 hppa*64*)
11634 # +Z the default
11637 lt_prog_compiler_pic_GO='-fPIC'
11639 esac
11642 interix[3-9]*)
11643 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11644 # Instead, we relocate shared libraries at runtime.
11647 msdosdjgpp*)
11648 # Just because we use GCC doesn't mean we suddenly get shared libraries
11649 # on systems that don't support them.
11650 lt_prog_compiler_can_build_shared_GO=no
11651 enable_shared=no
11654 *nto* | *qnx*)
11655 # QNX uses GNU C++, but need to define -shared option too, otherwise
11656 # it will coredump.
11657 lt_prog_compiler_pic_GO='-fPIC -shared'
11660 sysv4*MP*)
11661 if test -d /usr/nec; then
11662 lt_prog_compiler_pic_GO=-Kconform_pic
11667 lt_prog_compiler_pic_GO='-fPIC'
11669 esac
11671 case $cc_basename in
11672 nvcc*) # Cuda Compiler Driver 2.2
11673 lt_prog_compiler_wl_GO='-Xlinker '
11674 lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11676 esac
11677 else
11678 # PORTME Check for flag to pass linker flags through the system compiler.
11679 case $host_os in
11680 aix*)
11681 lt_prog_compiler_wl_GO='-Wl,'
11682 if test "$host_cpu" = ia64; then
11683 # AIX 5 now supports IA64 processor
11684 lt_prog_compiler_static_GO='-Bstatic'
11685 else
11686 lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11690 mingw* | cygwin* | pw32* | os2* | cegcc*)
11691 # This hack is so that the source file can tell whether it is being
11692 # built for inclusion in a dll (and should export symbols for example).
11693 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11696 hpux9* | hpux10* | hpux11*)
11697 lt_prog_compiler_wl_GO='-Wl,'
11698 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11699 # not for PA HP-UX.
11700 case $host_cpu in
11701 hppa*64*|ia64*)
11702 # +Z the default
11705 lt_prog_compiler_pic_GO='+Z'
11707 esac
11708 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11709 lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11712 irix5* | irix6* | nonstopux*)
11713 lt_prog_compiler_wl_GO='-Wl,'
11714 # PIC (with -KPIC) is the default.
11715 lt_prog_compiler_static_GO='-non_shared'
11718 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11719 case $cc_basename in
11720 # old Intel for x86_64 which still supported -KPIC.
11721 ecc*)
11722 lt_prog_compiler_wl_GO='-Wl,'
11723 lt_prog_compiler_pic_GO='-KPIC'
11724 lt_prog_compiler_static_GO='-static'
11726 # icc used to be incompatible with GCC.
11727 # ICC 10 doesn't accept -KPIC any more.
11728 icc* | ifort*)
11729 lt_prog_compiler_wl_GO='-Wl,'
11730 lt_prog_compiler_pic_GO='-fPIC'
11731 lt_prog_compiler_static_GO='-static'
11733 # Lahey Fortran 8.1.
11734 lf95*)
11735 lt_prog_compiler_wl_GO='-Wl,'
11736 lt_prog_compiler_pic_GO='--shared'
11737 lt_prog_compiler_static_GO='--static'
11739 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11740 # Portland Group compilers (*not* the Pentium gcc compiler,
11741 # which looks to be a dead project)
11742 lt_prog_compiler_wl_GO='-Wl,'
11743 lt_prog_compiler_pic_GO='-fpic'
11744 lt_prog_compiler_static_GO='-Bstatic'
11746 ccc*)
11747 lt_prog_compiler_wl_GO='-Wl,'
11748 # All Alpha code is PIC.
11749 lt_prog_compiler_static_GO='-non_shared'
11751 xl* | bgxl* | bgf* | mpixl*)
11752 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11753 lt_prog_compiler_wl_GO='-Wl,'
11754 lt_prog_compiler_pic_GO='-qpic'
11755 lt_prog_compiler_static_GO='-qstaticlink'
11758 case `$CC -V 2>&1 | sed 5q` in
11759 *Sun\ F* | *Sun*Fortran*)
11760 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11761 lt_prog_compiler_pic_GO='-KPIC'
11762 lt_prog_compiler_static_GO='-Bstatic'
11763 lt_prog_compiler_wl_GO=''
11765 *Sun\ C*)
11766 # Sun C 5.9
11767 lt_prog_compiler_pic_GO='-KPIC'
11768 lt_prog_compiler_static_GO='-Bstatic'
11769 lt_prog_compiler_wl_GO='-Wl,'
11771 esac
11773 esac
11776 newsos6)
11777 lt_prog_compiler_pic_GO='-KPIC'
11778 lt_prog_compiler_static_GO='-Bstatic'
11781 *nto* | *qnx*)
11782 # QNX uses GNU C++, but need to define -shared option too, otherwise
11783 # it will coredump.
11784 lt_prog_compiler_pic_GO='-fPIC -shared'
11787 osf3* | osf4* | osf5*)
11788 lt_prog_compiler_wl_GO='-Wl,'
11789 # All OSF/1 code is PIC.
11790 lt_prog_compiler_static_GO='-non_shared'
11793 rdos*)
11794 lt_prog_compiler_static_GO='-non_shared'
11797 solaris*)
11798 lt_prog_compiler_pic_GO='-KPIC'
11799 lt_prog_compiler_static_GO='-Bstatic'
11800 case $cc_basename in
11801 f77* | f90* | f95*)
11802 lt_prog_compiler_wl_GO='-Qoption ld ';;
11804 lt_prog_compiler_wl_GO='-Wl,';;
11805 esac
11808 sunos4*)
11809 lt_prog_compiler_wl_GO='-Qoption ld '
11810 lt_prog_compiler_pic_GO='-PIC'
11811 lt_prog_compiler_static_GO='-Bstatic'
11814 sysv4 | sysv4.2uw2* | sysv4.3*)
11815 lt_prog_compiler_wl_GO='-Wl,'
11816 lt_prog_compiler_pic_GO='-KPIC'
11817 lt_prog_compiler_static_GO='-Bstatic'
11820 sysv4*MP*)
11821 if test -d /usr/nec ;then
11822 lt_prog_compiler_pic_GO='-Kconform_pic'
11823 lt_prog_compiler_static_GO='-Bstatic'
11827 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11828 lt_prog_compiler_wl_GO='-Wl,'
11829 lt_prog_compiler_pic_GO='-KPIC'
11830 lt_prog_compiler_static_GO='-Bstatic'
11833 unicos*)
11834 lt_prog_compiler_wl_GO='-Wl,'
11835 lt_prog_compiler_can_build_shared_GO=no
11838 uts4*)
11839 lt_prog_compiler_pic_GO='-pic'
11840 lt_prog_compiler_static_GO='-Bstatic'
11844 lt_prog_compiler_can_build_shared_GO=no
11846 esac
11849 case $host_os in
11850 # For platforms which do not support PIC, -DPIC is meaningless:
11851 *djgpp*)
11852 lt_prog_compiler_pic_GO=
11855 lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
11857 esac
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
11859 $as_echo "$lt_prog_compiler_pic_GO" >&6; }
11864 # Check to make sure the PIC flag actually works.
11866 if test -n "$lt_prog_compiler_pic_GO"; then
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
11868 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
11869 if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
11870 $as_echo_n "(cached) " >&6
11871 else
11872 lt_cv_prog_compiler_pic_works_GO=no
11873 ac_outfile=conftest.$ac_objext
11874 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11875 lt_compiler_flag="$lt_prog_compiler_pic_GO"
11876 # Insert the option either (1) after the last *FLAGS variable, or
11877 # (2) before a word containing "conftest.", or (3) at the end.
11878 # Note that $ac_compile itself does not contain backslashes and begins
11879 # with a dollar sign (not a hyphen), so the echo should work correctly.
11880 # The option is referenced via a variable to avoid confusing sed.
11881 lt_compile=`echo "$ac_compile" | $SED \
11882 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11883 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11884 -e 's:$: $lt_compiler_flag:'`
11885 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11886 (eval "$lt_compile" 2>conftest.err)
11887 ac_status=$?
11888 cat conftest.err >&5
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 if (exit $ac_status) && test -s "$ac_outfile"; then
11891 # The compiler can only warn and ignore the option if not recognized
11892 # So say no if there are warnings other than the usual output.
11893 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11894 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11895 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11896 lt_cv_prog_compiler_pic_works_GO=yes
11899 $RM conftest*
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
11903 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
11905 if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
11906 case $lt_prog_compiler_pic_GO in
11907 "" | " "*) ;;
11908 *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
11909 esac
11910 else
11911 lt_prog_compiler_pic_GO=
11912 lt_prog_compiler_can_build_shared_GO=no
11920 # Check to make sure the static flag actually works.
11922 wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11924 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11925 if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
11926 $as_echo_n "(cached) " >&6
11927 else
11928 lt_cv_prog_compiler_static_works_GO=no
11929 save_LDFLAGS="$LDFLAGS"
11930 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11931 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11932 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11933 # The linker can only warn and ignore the option if not recognized
11934 # So say no if there are warnings
11935 if test -s conftest.err; then
11936 # Append any errors to the config.log.
11937 cat conftest.err 1>&5
11938 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11939 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11940 if diff conftest.exp conftest.er2 >/dev/null; then
11941 lt_cv_prog_compiler_static_works_GO=yes
11943 else
11944 lt_cv_prog_compiler_static_works_GO=yes
11947 $RM -r conftest*
11948 LDFLAGS="$save_LDFLAGS"
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
11952 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
11954 if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
11956 else
11957 lt_prog_compiler_static_GO=
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11964 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11965 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11966 $as_echo_n "(cached) " >&6
11967 else
11968 lt_cv_prog_compiler_c_o_GO=no
11969 $RM -r conftest 2>/dev/null
11970 mkdir conftest
11971 cd conftest
11972 mkdir out
11973 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11975 lt_compiler_flag="-o out/conftest2.$ac_objext"
11976 # Insert the option either (1) after the last *FLAGS variable, or
11977 # (2) before a word containing "conftest.", or (3) at the end.
11978 # Note that $ac_compile itself does not contain backslashes and begins
11979 # with a dollar sign (not a hyphen), so the echo should work correctly.
11980 lt_compile=`echo "$ac_compile" | $SED \
11981 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11982 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11983 -e 's:$: $lt_compiler_flag:'`
11984 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11985 (eval "$lt_compile" 2>out/conftest.err)
11986 ac_status=$?
11987 cat out/conftest.err >&5
11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11990 then
11991 # The compiler can only warn and ignore the option if not recognized
11992 # So say no if there are warnings
11993 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11994 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11995 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11996 lt_cv_prog_compiler_c_o_GO=yes
11999 chmod u+w . 2>&5
12000 $RM conftest*
12001 # SGI C++ compiler will create directory out/ii_files/ for
12002 # template instantiation
12003 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12004 $RM out/* && rmdir out
12005 cd ..
12006 $RM -r conftest
12007 $RM conftest*
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12011 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12016 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12017 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
12018 $as_echo_n "(cached) " >&6
12019 else
12020 lt_cv_prog_compiler_c_o_GO=no
12021 $RM -r conftest 2>/dev/null
12022 mkdir conftest
12023 cd conftest
12024 mkdir out
12025 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12027 lt_compiler_flag="-o out/conftest2.$ac_objext"
12028 # Insert the option either (1) after the last *FLAGS variable, or
12029 # (2) before a word containing "conftest.", or (3) at the end.
12030 # Note that $ac_compile itself does not contain backslashes and begins
12031 # with a dollar sign (not a hyphen), so the echo should work correctly.
12032 lt_compile=`echo "$ac_compile" | $SED \
12033 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12034 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12035 -e 's:$: $lt_compiler_flag:'`
12036 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12037 (eval "$lt_compile" 2>out/conftest.err)
12038 ac_status=$?
12039 cat out/conftest.err >&5
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12042 then
12043 # The compiler can only warn and ignore the option if not recognized
12044 # So say no if there are warnings
12045 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12046 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12047 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12048 lt_cv_prog_compiler_c_o_GO=yes
12051 chmod u+w . 2>&5
12052 $RM conftest*
12053 # SGI C++ compiler will create directory out/ii_files/ for
12054 # template instantiation
12055 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12056 $RM out/* && rmdir out
12057 cd ..
12058 $RM -r conftest
12059 $RM conftest*
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12063 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12068 hard_links="nottested"
12069 if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
12070 # do not overwrite the value of need_locks provided by the user
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12072 $as_echo_n "checking if we can lock with hard links... " >&6; }
12073 hard_links=yes
12074 $RM conftest*
12075 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12076 touch conftest.a
12077 ln conftest.a conftest.b 2>&5 || hard_links=no
12078 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12080 $as_echo "$hard_links" >&6; }
12081 if test "$hard_links" = no; then
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12083 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12084 need_locks=warn
12086 else
12087 need_locks=no
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12093 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12095 runpath_var=
12096 allow_undefined_flag_GO=
12097 always_export_symbols_GO=no
12098 archive_cmds_GO=
12099 archive_expsym_cmds_GO=
12100 compiler_needs_object_GO=no
12101 enable_shared_with_static_runtimes_GO=no
12102 export_dynamic_flag_spec_GO=
12103 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12104 hardcode_automatic_GO=no
12105 hardcode_direct_GO=no
12106 hardcode_direct_absolute_GO=no
12107 hardcode_libdir_flag_spec_GO=
12108 hardcode_libdir_flag_spec_ld_GO=
12109 hardcode_libdir_separator_GO=
12110 hardcode_minus_L_GO=no
12111 hardcode_shlibpath_var_GO=unsupported
12112 inherit_rpath_GO=no
12113 link_all_deplibs_GO=unknown
12114 module_cmds_GO=
12115 module_expsym_cmds_GO=
12116 old_archive_from_new_cmds_GO=
12117 old_archive_from_expsyms_cmds_GO=
12118 thread_safe_flag_spec_GO=
12119 whole_archive_flag_spec_GO=
12120 # include_expsyms should be a list of space-separated symbols to be *always*
12121 # included in the symbol list
12122 include_expsyms_GO=
12123 # exclude_expsyms can be an extended regexp of symbols to exclude
12124 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12125 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12126 # as well as any symbol that contains `d'.
12127 exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12128 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12129 # platforms (ab)use it in PIC code, but their linkers get confused if
12130 # the symbol is explicitly referenced. Since portable code cannot
12131 # rely on this symbol name, it's probably fine to never include it in
12132 # preloaded symbol tables.
12133 # Exclude shared library initialization/finalization symbols.
12134 extract_expsyms_cmds=
12136 case $host_os in
12137 cygwin* | mingw* | pw32* | cegcc*)
12138 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12139 # When not using gcc, we currently assume that we are using
12140 # Microsoft Visual C++.
12141 if test "$GCC" != yes; then
12142 with_gnu_ld=no
12145 interix*)
12146 # we just hope/assume this is gcc and not c89 (= MSVC++)
12147 with_gnu_ld=yes
12149 openbsd*)
12150 with_gnu_ld=no
12152 esac
12154 ld_shlibs_GO=yes
12156 # On some targets, GNU ld is compatible enough with the native linker
12157 # that we're better off using the native interface for both.
12158 lt_use_gnu_ld_interface=no
12159 if test "$with_gnu_ld" = yes; then
12160 case $host_os in
12161 aix*)
12162 # The AIX port of GNU ld has always aspired to compatibility
12163 # with the native linker. However, as the warning in the GNU ld
12164 # block says, versions before 2.19.5* couldn't really create working
12165 # shared libraries, regardless of the interface used.
12166 case `$LD -v 2>&1` in
12167 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12168 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12169 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12171 lt_use_gnu_ld_interface=yes
12173 esac
12176 lt_use_gnu_ld_interface=yes
12178 esac
12181 if test "$lt_use_gnu_ld_interface" = yes; then
12182 # If archive_cmds runs LD, not CC, wlarc should be empty
12183 wlarc='${wl}'
12185 # Set some defaults for GNU ld with shared library support. These
12186 # are reset later if shared libraries are not supported. Putting them
12187 # here allows them to be overridden if necessary.
12188 runpath_var=LD_RUN_PATH
12189 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12190 export_dynamic_flag_spec_GO='${wl}--export-dynamic'
12191 # ancient GNU ld didn't support --whole-archive et. al.
12192 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12193 whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12194 else
12195 whole_archive_flag_spec_GO=
12197 supports_anon_versioning=no
12198 case `$LD -v 2>&1` in
12199 *GNU\ gold*) supports_anon_versioning=yes ;;
12200 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12201 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12202 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12203 *\ 2.11.*) ;; # other 2.11 versions
12204 *) supports_anon_versioning=yes ;;
12205 esac
12207 # See if GNU ld supports shared libraries.
12208 case $host_os in
12209 aix[3-9]*)
12210 # On AIX/PPC, the GNU linker is very broken
12211 if test "$host_cpu" != ia64; then
12212 ld_shlibs_GO=no
12213 cat <<_LT_EOF 1>&2
12215 *** Warning: the GNU linker, at least up to release 2.19, is reported
12216 *** to be unable to reliably create shared libraries on AIX.
12217 *** Therefore, libtool is disabling shared libraries support. If you
12218 *** really care for shared libraries, you may want to install binutils
12219 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12220 *** You will then need to restart the configuration process.
12222 _LT_EOF
12226 amigaos*)
12227 case $host_cpu in
12228 powerpc)
12229 # see comment about AmigaOS4 .so support
12230 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12231 archive_expsym_cmds_GO=''
12233 m68k)
12234 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)'
12235 hardcode_libdir_flag_spec_GO='-L$libdir'
12236 hardcode_minus_L_GO=yes
12238 esac
12241 beos*)
12242 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12243 allow_undefined_flag_GO=unsupported
12244 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12245 # support --undefined. This deserves some investigation. FIXME
12246 archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12247 else
12248 ld_shlibs_GO=no
12252 cygwin* | mingw* | pw32* | cegcc*)
12253 # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12254 # as there is no search path for DLLs.
12255 hardcode_libdir_flag_spec_GO='-L$libdir'
12256 export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12257 allow_undefined_flag_GO=unsupported
12258 always_export_symbols_GO=no
12259 enable_shared_with_static_runtimes_GO=yes
12260 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12262 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12263 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12264 # If the export-symbols file already is a .def file (1st line
12265 # is EXPORTS), use it as is; otherwise, prepend...
12266 archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12267 cp $export_symbols $output_objdir/$soname.def;
12268 else
12269 echo EXPORTS > $output_objdir/$soname.def;
12270 cat $export_symbols >> $output_objdir/$soname.def;
12272 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12273 else
12274 ld_shlibs_GO=no
12278 haiku*)
12279 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12280 link_all_deplibs_GO=yes
12283 interix[3-9]*)
12284 hardcode_direct_GO=no
12285 hardcode_shlibpath_var_GO=no
12286 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12287 export_dynamic_flag_spec_GO='${wl}-E'
12288 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12289 # Instead, shared libraries are loaded at an image base (0x10000000 by
12290 # default) and relocated if they conflict, which is a slow very memory
12291 # consuming and fragmenting process. To avoid this, we pick a random,
12292 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12293 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12294 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'
12295 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'
12298 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12299 tmp_diet=no
12300 if test "$host_os" = linux-dietlibc; then
12301 case $cc_basename in
12302 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12303 esac
12305 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12306 && test "$tmp_diet" = no
12307 then
12308 tmp_addflag=
12309 tmp_sharedflag='-shared'
12310 case $cc_basename,$host_cpu in
12311 pgcc*) # Portland Group C compiler
12312 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'
12313 tmp_addflag=' $pic_flag'
12315 pgf77* | pgf90* | pgf95* | pgfortran*)
12316 # Portland Group f77 and f90 compilers
12317 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'
12318 tmp_addflag=' $pic_flag -Mnomain' ;;
12319 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12320 tmp_addflag=' -i_dynamic' ;;
12321 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12322 tmp_addflag=' -i_dynamic -nofor_main' ;;
12323 ifc* | ifort*) # Intel Fortran compiler
12324 tmp_addflag=' -nofor_main' ;;
12325 lf95*) # Lahey Fortran 8.1
12326 whole_archive_flag_spec_GO=
12327 tmp_sharedflag='--shared' ;;
12328 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12329 tmp_sharedflag='-qmkshrobj'
12330 tmp_addflag= ;;
12331 nvcc*) # Cuda Compiler Driver 2.2
12332 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'
12333 compiler_needs_object_GO=yes
12335 esac
12336 case `$CC -V 2>&1 | sed 5q` in
12337 *Sun\ C*) # Sun C 5.9
12338 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'
12339 compiler_needs_object_GO=yes
12340 tmp_sharedflag='-G' ;;
12341 *Sun\ F*) # Sun Fortran 8.3
12342 tmp_sharedflag='-G' ;;
12343 esac
12344 archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12346 if test "x$supports_anon_versioning" = xyes; then
12347 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12348 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12349 echo "local: *; };" >> $output_objdir/$libname.ver~
12350 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12353 case $cc_basename in
12354 xlf* | bgf* | bgxlf* | mpixlf*)
12355 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12356 whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12357 hardcode_libdir_flag_spec_GO=
12358 hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12359 archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $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 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12367 esac
12368 else
12369 ld_shlibs_GO=no
12373 netbsd*)
12374 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12375 archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12376 wlarc=
12377 else
12378 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12379 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12383 solaris*)
12384 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12385 ld_shlibs_GO=no
12386 cat <<_LT_EOF 1>&2
12388 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12389 *** create shared libraries on Solaris systems. Therefore, libtool
12390 *** is disabling shared libraries support. We urge you to upgrade GNU
12391 *** binutils to release 2.9.1 or newer. Another option is to modify
12392 *** your PATH or compiler configuration so that the native linker is
12393 *** used, and then restart.
12395 _LT_EOF
12396 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12397 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12398 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12399 else
12400 ld_shlibs_GO=no
12404 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12405 case `$LD -v 2>&1` in
12406 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12407 ld_shlibs_GO=no
12408 cat <<_LT_EOF 1>&2
12410 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12411 *** reliably create shared libraries on SCO systems. Therefore, libtool
12412 *** is disabling shared libraries support. We urge you to upgrade GNU
12413 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12414 *** your PATH or compiler configuration so that the native linker is
12415 *** used, and then restart.
12417 _LT_EOF
12420 # For security reasons, it is highly recommended that you always
12421 # use absolute paths for naming shared libraries, and exclude the
12422 # DT_RUNPATH tag from executables and libraries. But doing so
12423 # requires that you compile everything twice, which is a pain.
12424 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12425 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12426 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12427 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12428 else
12429 ld_shlibs_GO=no
12432 esac
12435 sunos4*)
12436 archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12437 wlarc=
12438 hardcode_direct_GO=yes
12439 hardcode_shlibpath_var_GO=no
12443 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12444 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12445 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12446 else
12447 ld_shlibs_GO=no
12450 esac
12452 if test "$ld_shlibs_GO" = no; then
12453 runpath_var=
12454 hardcode_libdir_flag_spec_GO=
12455 export_dynamic_flag_spec_GO=
12456 whole_archive_flag_spec_GO=
12458 else
12459 # PORTME fill in a description of your system's linker (not GNU ld)
12460 case $host_os in
12461 aix3*)
12462 allow_undefined_flag_GO=unsupported
12463 always_export_symbols_GO=yes
12464 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'
12465 # Note: this linker hardcodes the directories in LIBPATH if there
12466 # are no directories specified by -L.
12467 hardcode_minus_L_GO=yes
12468 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12469 # Neither direct hardcoding nor static linking is supported with a
12470 # broken collect2.
12471 hardcode_direct_GO=unsupported
12475 aix[4-9]*)
12476 if test "$host_cpu" = ia64; then
12477 # On IA64, the linker does run time linking by default, so we don't
12478 # have to do anything special.
12479 aix_use_runtimelinking=no
12480 exp_sym_flag='-Bexport'
12481 no_entry_flag=""
12482 else
12483 # If we're using GNU nm, then we don't want the "-C" option.
12484 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12485 # Also, AIX nm treats weak defined symbols like other global
12486 # defined symbols, whereas GNU nm marks them as "W".
12487 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12488 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'
12489 else
12490 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'
12492 aix_use_runtimelinking=no
12494 # Test if we are trying to use run time linking or normal
12495 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12496 # need to do runtime linking.
12497 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12498 for ld_flag in $LDFLAGS; do
12499 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12500 aix_use_runtimelinking=yes
12501 break
12503 done
12505 esac
12507 exp_sym_flag='-bexport'
12508 no_entry_flag='-bnoentry'
12511 # When large executables or shared objects are built, AIX ld can
12512 # have problems creating the table of contents. If linking a library
12513 # or program results in "error TOC overflow" add -mminimal-toc to
12514 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12515 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12517 archive_cmds_GO=''
12518 hardcode_direct_GO=yes
12519 hardcode_direct_absolute_GO=yes
12520 hardcode_libdir_separator_GO=':'
12521 link_all_deplibs_GO=yes
12522 file_list_spec_GO='${wl}-f,'
12524 if test "$GCC" = yes; then
12525 case $host_os in aix4.[012]|aix4.[012].*)
12526 # We only want to do this on AIX 4.2 and lower, the check
12527 # below for broken collect2 doesn't work under 4.3+
12528 collect2name=`${CC} -print-prog-name=collect2`
12529 if test -f "$collect2name" &&
12530 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12531 then
12532 # We have reworked collect2
12534 else
12535 # We have old collect2
12536 hardcode_direct_GO=unsupported
12537 # It fails to find uninstalled libraries when the uninstalled
12538 # path is not listed in the libpath. Setting hardcode_minus_L
12539 # to unsupported forces relinking
12540 hardcode_minus_L_GO=yes
12541 hardcode_libdir_flag_spec_GO='-L$libdir'
12542 hardcode_libdir_separator_GO=
12545 esac
12546 shared_flag='-shared'
12547 if test "$aix_use_runtimelinking" = yes; then
12548 shared_flag="$shared_flag "'${wl}-G'
12550 else
12551 # not using gcc
12552 if test "$host_cpu" = ia64; then
12553 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12554 # chokes on -Wl,-G. The following line is correct:
12555 shared_flag='-G'
12556 else
12557 if test "$aix_use_runtimelinking" = yes; then
12558 shared_flag='${wl}-G'
12559 else
12560 shared_flag='${wl}-bM:SRE'
12565 export_dynamic_flag_spec_GO='${wl}-bexpall'
12566 # It seems that -bexpall does not export symbols beginning with
12567 # underscore (_), so it is better to generate a list of symbols to export.
12568 always_export_symbols_GO=yes
12569 if test "$aix_use_runtimelinking" = yes; then
12570 # Warning - without using the other runtime loading flags (-brtl),
12571 # -berok will link without error, but may produce a broken library.
12572 allow_undefined_flag_GO='-berok'
12573 # Determine the default libpath from the value encoded in an
12574 # empty executable.
12575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12576 /* end confdefs.h. */
12579 main ()
12583 return 0;
12585 _ACEOF
12586 if ac_fn_c_try_link "$LINENO"; then :
12588 lt_aix_libpath_sed='
12589 /Import File Strings/,/^$/ {
12590 /^0/ {
12591 s/^0 *\(.*\)$/\1/
12595 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12596 # Check for a 64-bit object if we didn't find anything.
12597 if test -z "$aix_libpath"; then
12598 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12601 rm -f core conftest.err conftest.$ac_objext \
12602 conftest$ac_exeext conftest.$ac_ext
12603 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12605 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12606 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"
12607 else
12608 if test "$host_cpu" = ia64; then
12609 hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12610 allow_undefined_flag_GO="-z nodefs"
12611 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"
12612 else
12613 # Determine the default libpath from the value encoded in an
12614 # empty executable.
12615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12616 /* end confdefs.h. */
12619 main ()
12623 return 0;
12625 _ACEOF
12626 if ac_fn_c_try_link "$LINENO"; then :
12628 lt_aix_libpath_sed='
12629 /Import File Strings/,/^$/ {
12630 /^0/ {
12631 s/^0 *\(.*\)$/\1/
12635 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12636 # Check for a 64-bit object if we didn't find anything.
12637 if test -z "$aix_libpath"; then
12638 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12641 rm -f core conftest.err conftest.$ac_objext \
12642 conftest$ac_exeext conftest.$ac_ext
12643 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12645 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12646 # Warning - without using the other run time loading flags,
12647 # -berok will link without error, but may produce a broken library.
12648 no_undefined_flag_GO=' ${wl}-bernotok'
12649 allow_undefined_flag_GO=' ${wl}-berok'
12650 if test "$with_gnu_ld" = yes; then
12651 # We only use this code for GNU lds that support --whole-archive.
12652 whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12653 else
12654 # Exported symbols can be pulled into shared objects from archives
12655 whole_archive_flag_spec_GO='$convenience'
12657 archive_cmds_need_lc_GO=yes
12658 # This is similar to how AIX traditionally builds its shared libraries.
12659 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'
12664 amigaos*)
12665 case $host_cpu in
12666 powerpc)
12667 # see comment about AmigaOS4 .so support
12668 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12669 archive_expsym_cmds_GO=''
12671 m68k)
12672 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)'
12673 hardcode_libdir_flag_spec_GO='-L$libdir'
12674 hardcode_minus_L_GO=yes
12676 esac
12679 bsdi[45]*)
12680 export_dynamic_flag_spec_GO=-rdynamic
12683 cygwin* | mingw* | pw32* | cegcc*)
12684 # When not using gcc, we currently assume that we are using
12685 # Microsoft Visual C++.
12686 # hardcode_libdir_flag_spec is actually meaningless, as there is
12687 # no search path for DLLs.
12688 hardcode_libdir_flag_spec_GO=' '
12689 allow_undefined_flag_GO=unsupported
12690 # Tell ltmain to make .lib files, not .a files.
12691 libext=lib
12692 # Tell ltmain to make .dll files, not .so files.
12693 shrext_cmds=".dll"
12694 # FIXME: Setting linknames here is a bad hack.
12695 archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12696 # The linker will automatically build a .lib file if we build a DLL.
12697 old_archive_from_new_cmds_GO='true'
12698 # FIXME: Should let the user specify the lib program.
12699 old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12700 fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12701 enable_shared_with_static_runtimes_GO=yes
12704 darwin* | rhapsody*)
12707 archive_cmds_need_lc_GO=no
12708 hardcode_direct_GO=no
12709 hardcode_automatic_GO=yes
12710 hardcode_shlibpath_var_GO=unsupported
12711 if test "$lt_cv_ld_force_load" = "yes"; then
12712 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\"`'
12713 else
12714 whole_archive_flag_spec_GO=''
12716 link_all_deplibs_GO=yes
12717 allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12718 case $cc_basename in
12719 ifort*) _lt_dar_can_shared=yes ;;
12720 *) _lt_dar_can_shared=$GCC ;;
12721 esac
12722 if test "$_lt_dar_can_shared" = "yes"; then
12723 output_verbose_link_cmd=func_echo_all
12724 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}"
12725 module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12726 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}"
12727 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}"
12729 else
12730 ld_shlibs_GO=no
12735 dgux*)
12736 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12737 hardcode_libdir_flag_spec_GO='-L$libdir'
12738 hardcode_shlibpath_var_GO=no
12741 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12742 # support. Future versions do this automatically, but an explicit c++rt0.o
12743 # does not break anything, and helps significantly (at the cost of a little
12744 # extra space).
12745 freebsd2.2*)
12746 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12747 hardcode_libdir_flag_spec_GO='-R$libdir'
12748 hardcode_direct_GO=yes
12749 hardcode_shlibpath_var_GO=no
12752 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12753 freebsd2*)
12754 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12755 hardcode_direct_GO=yes
12756 hardcode_minus_L_GO=yes
12757 hardcode_shlibpath_var_GO=no
12760 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12761 freebsd* | dragonfly*)
12762 archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12763 hardcode_libdir_flag_spec_GO='-R$libdir'
12764 hardcode_direct_GO=yes
12765 hardcode_shlibpath_var_GO=no
12768 hpux9*)
12769 if test "$GCC" = yes; then
12770 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'
12771 else
12772 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'
12774 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12775 hardcode_libdir_separator_GO=:
12776 hardcode_direct_GO=yes
12778 # hardcode_minus_L: Not really in the search PATH,
12779 # but as the default location of the library.
12780 hardcode_minus_L_GO=yes
12781 export_dynamic_flag_spec_GO='${wl}-E'
12784 hpux10*)
12785 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12786 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12787 else
12788 archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12790 if test "$with_gnu_ld" = no; then
12791 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12792 hardcode_libdir_flag_spec_ld_GO='+b $libdir'
12793 hardcode_libdir_separator_GO=:
12794 hardcode_direct_GO=yes
12795 hardcode_direct_absolute_GO=yes
12796 export_dynamic_flag_spec_GO='${wl}-E'
12797 # hardcode_minus_L: Not really in the search PATH,
12798 # but as the default location of the library.
12799 hardcode_minus_L_GO=yes
12803 hpux11*)
12804 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12805 case $host_cpu in
12806 hppa*64*)
12807 archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12809 ia64*)
12810 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12813 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12815 esac
12816 else
12817 case $host_cpu in
12818 hppa*64*)
12819 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12821 ia64*)
12822 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12825 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12827 esac
12829 if test "$with_gnu_ld" = no; then
12830 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12831 hardcode_libdir_separator_GO=:
12833 case $host_cpu in
12834 hppa*64*|ia64*)
12835 hardcode_direct_GO=no
12836 hardcode_shlibpath_var_GO=no
12839 hardcode_direct_GO=yes
12840 hardcode_direct_absolute_GO=yes
12841 export_dynamic_flag_spec_GO='${wl}-E'
12843 # hardcode_minus_L: Not really in the search PATH,
12844 # but as the default location of the library.
12845 hardcode_minus_L_GO=yes
12847 esac
12851 irix5* | irix6* | nonstopux*)
12852 if test "$GCC" = yes; then
12853 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'
12854 # Try to use the -exported_symbol ld option, if it does not
12855 # work, assume that -exports_file does not work either and
12856 # implicitly export all symbols.
12857 save_LDFLAGS="$LDFLAGS"
12858 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12860 /* end confdefs.h. */
12861 int foo(void) {}
12862 _ACEOF
12863 if ac_fn_c_try_link "$LINENO"; then :
12864 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'
12867 rm -f core conftest.err conftest.$ac_objext \
12868 conftest$ac_exeext conftest.$ac_ext
12869 LDFLAGS="$save_LDFLAGS"
12870 else
12871 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'
12872 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'
12874 archive_cmds_need_lc_GO='no'
12875 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12876 hardcode_libdir_separator_GO=:
12877 inherit_rpath_GO=yes
12878 link_all_deplibs_GO=yes
12881 netbsd*)
12882 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12883 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12884 else
12885 archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12887 hardcode_libdir_flag_spec_GO='-R$libdir'
12888 hardcode_direct_GO=yes
12889 hardcode_shlibpath_var_GO=no
12892 newsos6)
12893 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12894 hardcode_direct_GO=yes
12895 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12896 hardcode_libdir_separator_GO=:
12897 hardcode_shlibpath_var_GO=no
12900 *nto* | *qnx*)
12903 openbsd*)
12904 if test -f /usr/libexec/ld.so; then
12905 hardcode_direct_GO=yes
12906 hardcode_shlibpath_var_GO=no
12907 hardcode_direct_absolute_GO=yes
12908 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12909 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12910 archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12911 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12912 export_dynamic_flag_spec_GO='${wl}-E'
12913 else
12914 case $host_os in
12915 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12916 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12917 hardcode_libdir_flag_spec_GO='-R$libdir'
12920 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12921 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12923 esac
12925 else
12926 ld_shlibs_GO=no
12930 os2*)
12931 hardcode_libdir_flag_spec_GO='-L$libdir'
12932 hardcode_minus_L_GO=yes
12933 allow_undefined_flag_GO=unsupported
12934 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'
12935 old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12938 osf3*)
12939 if test "$GCC" = yes; then
12940 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12941 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'
12942 else
12943 allow_undefined_flag_GO=' -expect_unresolved \*'
12944 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'
12946 archive_cmds_need_lc_GO='no'
12947 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12948 hardcode_libdir_separator_GO=:
12951 osf4* | osf5*) # as osf3* with the addition of -msym flag
12952 if test "$GCC" = yes; then
12953 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12954 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'
12955 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12956 else
12957 allow_undefined_flag_GO=' -expect_unresolved \*'
12958 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'
12959 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~
12960 $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'
12962 # Both c and cxx compiler support -rpath directly
12963 hardcode_libdir_flag_spec_GO='-rpath $libdir'
12965 archive_cmds_need_lc_GO='no'
12966 hardcode_libdir_separator_GO=:
12969 solaris*)
12970 no_undefined_flag_GO=' -z defs'
12971 if test "$GCC" = yes; then
12972 wlarc='${wl}'
12973 archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12974 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12975 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12976 else
12977 case `$CC -V 2>&1` in
12978 *"Compilers 5.0"*)
12979 wlarc=''
12980 archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12981 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12982 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12985 wlarc='${wl}'
12986 archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12987 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12988 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12990 esac
12992 hardcode_libdir_flag_spec_GO='-R$libdir'
12993 hardcode_shlibpath_var_GO=no
12994 case $host_os in
12995 solaris2.[0-5] | solaris2.[0-5].*) ;;
12997 # The compiler driver will combine and reorder linker options,
12998 # but understands `-z linker_flag'. GCC discards it without `$wl',
12999 # but is careful enough not to reorder.
13000 # Supported since Solaris 2.6 (maybe 2.5.1?)
13001 if test "$GCC" = yes; then
13002 whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13003 else
13004 whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
13007 esac
13008 link_all_deplibs_GO=yes
13011 sunos4*)
13012 if test "x$host_vendor" = xsequent; then
13013 # Use $CC to link under sequent, because it throws in some extra .o
13014 # files that make .init and .fini sections work.
13015 archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13016 else
13017 archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13019 hardcode_libdir_flag_spec_GO='-L$libdir'
13020 hardcode_direct_GO=yes
13021 hardcode_minus_L_GO=yes
13022 hardcode_shlibpath_var_GO=no
13025 sysv4)
13026 case $host_vendor in
13027 sni)
13028 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13029 hardcode_direct_GO=yes # is this really true???
13031 siemens)
13032 ## LD is ld it makes a PLAMLIB
13033 ## CC just makes a GrossModule.
13034 archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13035 reload_cmds_GO='$CC -r -o $output$reload_objs'
13036 hardcode_direct_GO=no
13038 motorola)
13039 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13040 hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
13042 esac
13043 runpath_var='LD_RUN_PATH'
13044 hardcode_shlibpath_var_GO=no
13047 sysv4.3*)
13048 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13049 hardcode_shlibpath_var_GO=no
13050 export_dynamic_flag_spec_GO='-Bexport'
13053 sysv4*MP*)
13054 if test -d /usr/nec; then
13055 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13056 hardcode_shlibpath_var_GO=no
13057 runpath_var=LD_RUN_PATH
13058 hardcode_runpath_var=yes
13059 ld_shlibs_GO=yes
13063 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13064 no_undefined_flag_GO='${wl}-z,text'
13065 archive_cmds_need_lc_GO=no
13066 hardcode_shlibpath_var_GO=no
13067 runpath_var='LD_RUN_PATH'
13069 if test "$GCC" = yes; then
13070 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13071 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13072 else
13073 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13074 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13078 sysv5* | sco3.2v5* | sco5v6*)
13079 # Note: We can NOT use -z defs as we might desire, because we do not
13080 # link with -lc, and that would cause any symbols used from libc to
13081 # always be unresolved, which means just about no library would
13082 # ever link correctly. If we're not using GNU ld we use -z text
13083 # though, which does catch some bad symbols but isn't as heavy-handed
13084 # as -z defs.
13085 no_undefined_flag_GO='${wl}-z,text'
13086 allow_undefined_flag_GO='${wl}-z,nodefs'
13087 archive_cmds_need_lc_GO=no
13088 hardcode_shlibpath_var_GO=no
13089 hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
13090 hardcode_libdir_separator_GO=':'
13091 link_all_deplibs_GO=yes
13092 export_dynamic_flag_spec_GO='${wl}-Bexport'
13093 runpath_var='LD_RUN_PATH'
13095 if test "$GCC" = yes; then
13096 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13097 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13098 else
13099 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13100 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13104 uts4*)
13105 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13106 hardcode_libdir_flag_spec_GO='-L$libdir'
13107 hardcode_shlibpath_var_GO=no
13111 ld_shlibs_GO=no
13113 esac
13115 if test x$host_vendor = xsni; then
13116 case $host in
13117 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13118 export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
13120 esac
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
13125 $as_echo "$ld_shlibs_GO" >&6; }
13126 test "$ld_shlibs_GO" = no && can_build_shared=no
13128 with_gnu_ld_GO=$with_gnu_ld
13136 # Do we need to explicitly link libc?
13138 case "x$archive_cmds_need_lc_GO" in
13139 x|xyes)
13140 # Assume -lc should be added
13141 archive_cmds_need_lc_GO=yes
13143 if test "$enable_shared" = yes && test "$GCC" = yes; then
13144 case $archive_cmds_GO in
13145 *'~'*)
13146 # FIXME: we may have to deal with multi-command sequences.
13148 '$CC '*)
13149 # Test whether the compiler implicitly links with -lc since on some
13150 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13151 # to ld, don't add -lc before -lgcc.
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13153 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13154 if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
13155 $as_echo_n "(cached) " >&6
13156 else
13157 $RM conftest*
13158 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13160 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13161 (eval $ac_compile) 2>&5
13162 ac_status=$?
13163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13164 test $ac_status = 0; } 2>conftest.err; then
13165 soname=conftest
13166 lib=conftest
13167 libobjs=conftest.$ac_objext
13168 deplibs=
13169 wl=$lt_prog_compiler_wl_GO
13170 pic_flag=$lt_prog_compiler_pic_GO
13171 compiler_flags=-v
13172 linker_flags=-v
13173 verstring=
13174 output_objdir=.
13175 libname=conftest
13176 lt_save_allow_undefined_flag=$allow_undefined_flag_GO
13177 allow_undefined_flag_GO=
13178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13179 (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13180 ac_status=$?
13181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13182 test $ac_status = 0; }
13183 then
13184 lt_cv_archive_cmds_need_lc_GO=no
13185 else
13186 lt_cv_archive_cmds_need_lc_GO=yes
13188 allow_undefined_flag_GO=$lt_save_allow_undefined_flag
13189 else
13190 cat conftest.err 1>&5
13192 $RM conftest*
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13196 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13197 archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
13199 esac
13202 esac
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13268 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13269 hardcode_action_GO=
13270 if test -n "$hardcode_libdir_flag_spec_GO" ||
13271 test -n "$runpath_var_GO" ||
13272 test "X$hardcode_automatic_GO" = "Xyes" ; then
13274 # We can hardcode non-existent directories.
13275 if test "$hardcode_direct_GO" != no &&
13276 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13277 # have to relink, otherwise we might link with an installed library
13278 # when we should be linking with a yet-to-be-installed one
13279 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13280 test "$hardcode_minus_L_GO" != no; then
13281 # Linking always hardcodes the temporary library directory.
13282 hardcode_action_GO=relink
13283 else
13284 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13285 hardcode_action_GO=immediate
13287 else
13288 # We cannot hardcode anything, or else we can only hardcode existing
13289 # directories.
13290 hardcode_action_GO=unsupported
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13293 $as_echo "$hardcode_action_GO" >&6; }
13295 if test "$hardcode_action_GO" = relink ||
13296 test "$inherit_rpath_GO" = yes; then
13297 # Fast installation is not supported
13298 enable_fast_install=no
13299 elif test "$shlibpath_overrides_runpath" = yes ||
13300 test "$enable_shared" = no; then
13301 # Fast installation is not necessary
13302 enable_fast_install=needless
13313 ac_ext=c
13314 ac_cpp='$CPP $CPPFLAGS'
13315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13320 GCC=$lt_save_GCC
13321 CC="$lt_save_CC"
13326 ac_config_commands="$ac_config_commands libtool"
13331 # Only expand once:
13337 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
13340 for ac_prog in gawk mawk nawk awk
13342 # Extract the first word of "$ac_prog", so it can be a program name with args.
13343 set dummy $ac_prog; ac_word=$2
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13345 $as_echo_n "checking for $ac_word... " >&6; }
13346 if test "${ac_cv_prog_AWK+set}" = set; then :
13347 $as_echo_n "(cached) " >&6
13348 else
13349 if test -n "$AWK"; then
13350 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13351 else
13352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13353 for as_dir in $PATH
13355 IFS=$as_save_IFS
13356 test -z "$as_dir" && as_dir=.
13357 for ac_exec_ext in '' $ac_executable_extensions; do
13358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13359 ac_cv_prog_AWK="$ac_prog"
13360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13361 break 2
13363 done
13364 done
13365 IFS=$as_save_IFS
13369 AWK=$ac_cv_prog_AWK
13370 if test -n "$AWK"; then
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13372 $as_echo "$AWK" >&6; }
13373 else
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13375 $as_echo "no" >&6; }
13379 test -n "$AWK" && break
13380 done
13383 WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13386 WERROR="-Werror"
13389 glibgo_toolexecdir=no
13390 glibgo_toolexeclibdir=no
13391 glibgo_prefixdir=$prefix
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13394 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13395 # Check whether --enable-version-specific-runtime-libs was given.
13396 if test "${enable_version_specific_runtime_libs+set}" = set; then :
13397 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13398 yes) version_specific_libs=yes ;;
13399 no) version_specific_libs=no ;;
13400 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13401 esac
13402 else
13403 version_specific_libs=no
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13407 $as_echo "$version_specific_libs" >&6; }
13409 # Version-specific runtime libs processing.
13410 if test $version_specific_libs = yes; then
13411 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13412 glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13415 # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13416 # Install a library built with a cross compiler in tooldir, not libdir.
13417 if test x"$glibgo_toolexecdir" = x"no"; then
13418 if test -n "$with_cross_host" &&
13419 test x"$with_cross_host" != x"no"; then
13420 glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13421 glibgo_toolexeclibdir='${toolexecdir}/lib'
13422 else
13423 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13424 glibgo_toolexeclibdir='${libdir}'
13426 multi_os_directory=`$CC -print-multi-os-directory`
13427 case $multi_os_directory in
13428 .) ;; # Avoid trailing /.
13429 *) glibgo_toolexeclibdir=$glibgo_toolexeclibdir/$multi_os_directory ;;
13430 esac
13437 # See if the user wants to configure without libffi. Some
13438 # architectures don't support it. FIXME: We should set a default
13439 # based on the host.
13441 # Check whether --with-libffi was given.
13442 if test "${with_libffi+set}" = set; then :
13443 withval=$with_libffi; :
13444 else
13445 with_libffi=${with_libffi_default-yes}
13449 LIBFFI=
13450 LIBFFIINCS=
13451 if test "$with_libffi" != no; then
13453 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
13455 LIBFFI=../libffi/libffi_convenience.la
13456 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13461 # Used to tell GNU make to include a file without telling automake to
13462 # include it.
13463 go_include="-include"
13466 is_darwin=no
13467 is_freebsd=no
13468 is_irix=no
13469 is_linux=no
13470 is_rtems=no
13471 is_solaris=no
13472 GOOS=unknown
13473 case ${host} in
13474 *-*-darwin*) is_darwin=yes; GOOS=darwin ;;
13475 *-*-freebsd*) is_freebsd=yes; GOOS=freebsd ;;
13476 *-*-irix6*) is_irix=yes; GOOS=irix ;;
13477 *-*-linux*) is_linux=yes; GOOS=linux ;;
13478 *-*-netbsd*) is_netbsd=yes; GOOS=netbsd ;;
13479 *-*-rtems*) is_rtems=yes; GOOS=rtems ;;
13480 *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
13481 esac
13482 if test $is_darwin = yes; then
13483 LIBGO_IS_DARWIN_TRUE=
13484 LIBGO_IS_DARWIN_FALSE='#'
13485 else
13486 LIBGO_IS_DARWIN_TRUE='#'
13487 LIBGO_IS_DARWIN_FALSE=
13490 if test $is_freebsd = yes; then
13491 LIBGO_IS_FREEBSD_TRUE=
13492 LIBGO_IS_FREEBSD_FALSE='#'
13493 else
13494 LIBGO_IS_FREEBSD_TRUE='#'
13495 LIBGO_IS_FREEBSD_FALSE=
13498 if test $is_irix = yes; then
13499 LIBGO_IS_IRIX_TRUE=
13500 LIBGO_IS_IRIX_FALSE='#'
13501 else
13502 LIBGO_IS_IRIX_TRUE='#'
13503 LIBGO_IS_IRIX_FALSE=
13506 if test $is_linux = yes; then
13507 LIBGO_IS_LINUX_TRUE=
13508 LIBGO_IS_LINUX_FALSE='#'
13509 else
13510 LIBGO_IS_LINUX_TRUE='#'
13511 LIBGO_IS_LINUX_FALSE=
13514 if test $is_netbsd = yes; then
13515 LIBGO_IS_NETBSD_TRUE=
13516 LIBGO_IS_NETBSD_FALSE='#'
13517 else
13518 LIBGO_IS_NETBSD_TRUE='#'
13519 LIBGO_IS_NETBSD_FALSE=
13522 if test $is_rtems = yes; then
13523 LIBGO_IS_RTEMS_TRUE=
13524 LIBGO_IS_RTEMS_FALSE='#'
13525 else
13526 LIBGO_IS_RTEMS_TRUE='#'
13527 LIBGO_IS_RTEMS_FALSE=
13530 if test $is_solaris = yes; then
13531 LIBGO_IS_SOLARIS_TRUE=
13532 LIBGO_IS_SOLARIS_FALSE='#'
13533 else
13534 LIBGO_IS_SOLARIS_TRUE='#'
13535 LIBGO_IS_SOLARIS_FALSE=
13540 is_386=no
13541 is_alpha=no
13542 is_arm=no
13543 is_m68k=no
13544 mips_abi=unknown
13545 is_ppc=no
13546 is_ppc64=no
13547 is_sparc=no
13548 is_sparc64=no
13549 is_x86_64=no
13550 GOARCH=unknown
13551 case ${host} in
13552 alpha*-*-*)
13553 is_alpha=yes
13554 GOARCH=alpha
13556 arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
13557 is_arm=yes
13558 GOARCH=arm
13560 i[34567]86-*-* | x86_64-*-*)
13561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13562 /* end confdefs.h. */
13564 #ifdef __x86_64__
13565 #error 64-bit
13566 #endif
13567 _ACEOF
13568 if ac_fn_c_try_compile "$LINENO"; then :
13569 is_386=yes
13570 else
13571 is_x86_64=yes
13573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13574 if test "$is_386" = "yes"; then
13575 GOARCH=386
13576 else
13577 GOARCH=amd64
13580 m68k*-*-*)
13581 is_m68k=yes
13582 GOARCH=m68k
13584 mips*-*-*)
13585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13586 /* end confdefs.h. */
13588 #if _MIPS_SIM != _ABIO32
13589 #error not o32
13590 #endif
13591 _ACEOF
13592 if ac_fn_c_try_compile "$LINENO"; then :
13593 mips_abi="o32"
13594 else
13595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13596 /* end confdefs.h. */
13598 #if _MIPS_SIM != _ABIN32
13599 #error not n32
13600 #endif
13601 _ACEOF
13602 if ac_fn_c_try_compile "$LINENO"; then :
13603 mips_abi="n32"
13604 else
13605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13606 /* end confdefs.h. */
13608 #if _MIPS_SIM != _ABI64
13609 #error not n64
13610 #endif
13611 _ACEOF
13612 if ac_fn_c_try_compile "$LINENO"; then :
13613 mips_abi="n64"
13614 else
13615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13616 /* end confdefs.h. */
13618 #if _MIPS_SIM != _ABIO64
13619 #error not o64
13620 #endif
13621 _ACEOF
13622 if ac_fn_c_try_compile "$LINENO"; then :
13623 mips_abi="o64"
13624 else
13625 as_fn_error "unknown MIPS ABI" "$LINENO" 5
13626 mips_abi="n32"
13628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13635 case "$mips_abi" in
13636 "o32") GOARCH=mipso32 ;;
13637 "n32") GOARCH=mipsn32 ;;
13638 "n64") GOARCH=mipsn64 ;;
13639 "o64") GOARCH=mipso64 ;;
13640 esac
13642 rs6000*-*-* | powerpc*-*-*)
13643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13644 /* end confdefs.h. */
13646 #ifdef _ARCH_PPC64
13647 #error 64-bit
13648 #endif
13649 _ACEOF
13650 if ac_fn_c_try_compile "$LINENO"; then :
13651 is_ppc=yes
13652 else
13653 is_ppc64=yes
13655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13656 if test "$is_ppc" = "yes"; then
13657 GOARCH=ppc
13658 else
13659 GOARCH=ppc64
13662 sparc*-*-*)
13663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13664 /* end confdefs.h. */
13666 #if defined(__sparcv9) || defined(__arch64__)
13667 #error 64-bit
13668 #endif
13669 _ACEOF
13670 if ac_fn_c_try_compile "$LINENO"; then :
13671 is_sparc=yes
13672 else
13673 is_sparc64=yes
13675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13676 if test "$is_sparc" = "yes"; then
13677 GOARCH=sparc
13678 else
13679 GOARCH=sparc64
13682 esac
13683 if test $is_386 = yes; then
13684 LIBGO_IS_386_TRUE=
13685 LIBGO_IS_386_FALSE='#'
13686 else
13687 LIBGO_IS_386_TRUE='#'
13688 LIBGO_IS_386_FALSE=
13691 if test $is_alpha = yes; then
13692 LIBGO_IS_ALPHA_TRUE=
13693 LIBGO_IS_ALPHA_FALSE='#'
13694 else
13695 LIBGO_IS_ALPHA_TRUE='#'
13696 LIBGO_IS_ALPHA_FALSE=
13699 if test $is_arm = yes; then
13700 LIBGO_IS_ARM_TRUE=
13701 LIBGO_IS_ARM_FALSE='#'
13702 else
13703 LIBGO_IS_ARM_TRUE='#'
13704 LIBGO_IS_ARM_FALSE=
13707 if test $is_m68k = yes; then
13708 LIBGO_IS_M68K_TRUE=
13709 LIBGO_IS_M68K_FALSE='#'
13710 else
13711 LIBGO_IS_M68K_TRUE='#'
13712 LIBGO_IS_M68K_FALSE=
13715 if test $mips_abi != unknown; then
13716 LIBGO_IS_MIPS_TRUE=
13717 LIBGO_IS_MIPS_FALSE='#'
13718 else
13719 LIBGO_IS_MIPS_TRUE='#'
13720 LIBGO_IS_MIPS_FALSE=
13723 if test $mips_abi = o32; then
13724 LIBGO_IS_MIPSO32_TRUE=
13725 LIBGO_IS_MIPSO32_FALSE='#'
13726 else
13727 LIBGO_IS_MIPSO32_TRUE='#'
13728 LIBGO_IS_MIPSO32_FALSE=
13731 if test $mips_abi = n32; then
13732 LIBGO_IS_MIPSN32_TRUE=
13733 LIBGO_IS_MIPSN32_FALSE='#'
13734 else
13735 LIBGO_IS_MIPSN32_TRUE='#'
13736 LIBGO_IS_MIPSN32_FALSE=
13739 if test $mips_abi = n64; then
13740 LIBGO_IS_MIPSN64_TRUE=
13741 LIBGO_IS_MIPSN64_FALSE='#'
13742 else
13743 LIBGO_IS_MIPSN64_TRUE='#'
13744 LIBGO_IS_MIPSN64_FALSE=
13747 if test $mips_abi = o64; then
13748 LIBGO_IS_MIPSO64_TRUE=
13749 LIBGO_IS_MIPSO64_FALSE='#'
13750 else
13751 LIBGO_IS_MIPSO64_TRUE='#'
13752 LIBGO_IS_MIPSO64_FALSE=
13755 if test $is_ppc = yes; then
13756 LIBGO_IS_PPC_TRUE=
13757 LIBGO_IS_PPC_FALSE='#'
13758 else
13759 LIBGO_IS_PPC_TRUE='#'
13760 LIBGO_IS_PPC_FALSE=
13763 if test $is_ppc64 = yes; then
13764 LIBGO_IS_PPC64_TRUE=
13765 LIBGO_IS_PPC64_FALSE='#'
13766 else
13767 LIBGO_IS_PPC64_TRUE='#'
13768 LIBGO_IS_PPC64_FALSE=
13771 if test $is_sparc = yes; then
13772 LIBGO_IS_SPARC_TRUE=
13773 LIBGO_IS_SPARC_FALSE='#'
13774 else
13775 LIBGO_IS_SPARC_TRUE='#'
13776 LIBGO_IS_SPARC_FALSE=
13779 if test $is_sparc64 = yes; then
13780 LIBGO_IS_SPARC64_TRUE=
13781 LIBGO_IS_SPARC64_FALSE='#'
13782 else
13783 LIBGO_IS_SPARC64_TRUE='#'
13784 LIBGO_IS_SPARC64_FALSE=
13787 if test $is_x86_64 = yes; then
13788 LIBGO_IS_X86_64_TRUE=
13789 LIBGO_IS_X86_64_FALSE='#'
13790 else
13791 LIBGO_IS_X86_64_TRUE='#'
13792 LIBGO_IS_X86_64_FALSE=
13797 GO_LIBCALL_OS_FILE=
13798 GO_LIBCALL_OS_ARCH_FILE=
13799 GO_SYSCALL_OS_FILE=
13800 GO_SYSCALL_OS_ARCH_FILE=
13801 if test -f ${srcdir}/go/syscall/libcall_${GOOS}.go; then
13802 GO_LIBCALL_OS_FILE=go/syscall/libcall_${GOOS}.go
13804 if test -f ${srcdir}/go/syscall/libcall_${GOOS}_${GOARCH}.go; then
13805 GO_LIBCALL_OS_ARCH_FILE=go/syscall/libcall_${GOOS}_${GOARCH}.go
13807 if test -f ${srcdir}/go/syscall/syscall_${GOOS}.go; then
13808 GO_SYSCALL_OS_FILE=go/syscall/syscall_${GOOS}.go
13810 if test -f ${srcdir}/go/syscall/syscall_${GOOS}_${GOARCH}.go; then
13811 GO_SYSCALL_OS_ARCH_FILE=go/syscall/syscall_${GOOS}_${GOARCH}.go
13818 OSCFLAGS="-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
13819 case "$target" in
13820 mips-sgi-irix6.5*)
13821 # IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
13822 # msghdr in <sys/socket.h>.
13823 OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500"
13825 *-*-solaris2.[89])
13826 # Solaris 8/9 need this so struct msghdr gets the msg_control
13827 # etc. fields in <sys/socket.h> (_XPG4_2).
13828 OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED -D__EXTENSIONS__"
13830 *-*-solaris2.1[01])
13831 # Solaris 10+ needs this so struct msghdr gets the msg_control
13832 # etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=600 as
13833 # above doesn't work with C99.
13834 OSCFLAGS="$OSCFLAGS -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
13836 esac
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
13840 $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
13841 if test "${libgo_cv_c_split_stack_supported+set}" = set; then :
13842 $as_echo_n "(cached) " >&6
13843 else
13844 CFLAGS_hold=$CFLAGS
13845 CFLAGS="$CFLAGS -fsplit-stack"
13846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13847 /* end confdefs.h. */
13848 int i;
13849 _ACEOF
13850 if ac_fn_c_try_compile "$LINENO"; then :
13851 libgo_cv_c_split_stack_supported=yes
13852 else
13853 libgo_cv_c_split_stack_supported=no
13855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13856 CFLAGS=$CFLAGS_hold
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
13859 $as_echo "$libgo_cv_c_split_stack_supported" >&6; }
13860 if test "$libgo_cv_c_split_stack_supported" = yes; then
13861 SPLIT_STACK=-fsplit-stack
13863 $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
13865 else
13866 SPLIT_STACK=
13869 if test "$libgo_cv_c_split_stack_supported" = yes; then
13870 USING_SPLIT_STACK_TRUE=
13871 USING_SPLIT_STACK_FALSE='#'
13872 else
13873 USING_SPLIT_STACK_TRUE='#'
13874 USING_SPLIT_STACK_FALSE=
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
13879 $as_echo_n "checking whether linker supports split stack... " >&6; }
13880 if test "${libgo_cv_c_linker_supports_split_stack+set}" = set; then :
13881 $as_echo_n "(cached) " >&6
13882 else
13883 libgo_cv_c_linker_supports_split_stack=no
13884 if $LD --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
13885 libgo_cv_c_linker_supports_split_stack=yes
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
13889 $as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
13890 if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
13892 $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
13896 MATH_LIBS=
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13898 $as_echo_n "checking for sqrt in -lm... " >&6; }
13899 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13900 $as_echo_n "(cached) " >&6
13901 else
13902 ac_check_lib_save_LIBS=$LIBS
13903 LIBS="-lm $LIBS"
13904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13905 /* end confdefs.h. */
13907 /* Override any GCC internal prototype to avoid an error.
13908 Use char because int might match the return type of a GCC
13909 builtin and then its argument prototype would still apply. */
13910 #ifdef __cplusplus
13911 extern "C"
13912 #endif
13913 char sqrt ();
13915 main ()
13917 return sqrt ();
13919 return 0;
13921 _ACEOF
13922 if ac_fn_c_try_link "$LINENO"; then :
13923 ac_cv_lib_m_sqrt=yes
13924 else
13925 ac_cv_lib_m_sqrt=no
13927 rm -f core conftest.err conftest.$ac_objext \
13928 conftest$ac_exeext conftest.$ac_ext
13929 LIBS=$ac_check_lib_save_LIBS
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13932 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13933 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13934 MATH_LIBS=-lm
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
13940 $as_echo_n "checking for socket libraries... " >&6; }
13941 if test "${libgo_cv_lib_sockets+set}" = set; then :
13942 $as_echo_n "(cached) " >&6
13943 else
13944 libgo_cv_lib_sockets=
13945 libgo_check_both=no
13946 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
13947 if test "x$ac_cv_func_connect" = x""yes; then :
13948 libgo_check_socket=no
13949 else
13950 libgo_check_socket=yes
13953 if test "$libgo_check_socket" = "yes"; then
13954 unset ac_cv_func_connect
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
13956 $as_echo_n "checking for main in -lsocket... " >&6; }
13957 if test "${ac_cv_lib_socket_main+set}" = set; then :
13958 $as_echo_n "(cached) " >&6
13959 else
13960 ac_check_lib_save_LIBS=$LIBS
13961 LIBS="-lsocket $LIBS"
13962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13963 /* end confdefs.h. */
13967 main ()
13969 return main ();
13971 return 0;
13973 _ACEOF
13974 if ac_fn_c_try_link "$LINENO"; then :
13975 ac_cv_lib_socket_main=yes
13976 else
13977 ac_cv_lib_socket_main=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_socket_main" >&5
13984 $as_echo "$ac_cv_lib_socket_main" >&6; }
13985 if test "x$ac_cv_lib_socket_main" = x""yes; then :
13986 libgo_cv_lib_sockets="-lsocket"
13987 else
13988 libgo_check_both=yes
13992 if test "$libgo_check_both" = "yes"; then
13993 libgo_old_libs=$LIBS
13994 LIBS="$LIBS -lsocket -lnsl"
13995 unset ac_cv_func_accept
13996 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
13997 if test "x$ac_cv_func_accept" = x""yes; then :
13998 libgo_check_nsl=no
13999 libgo_cv_lib_sockets="-lsocket -lnsl"
14002 unset ac_cv_func_accept
14003 LIBS=$libgo_old_libs
14005 unset ac_cv_func_gethostbyname
14006 libgo_old_libs="$LIBS"
14007 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14008 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
14010 else
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14012 $as_echo_n "checking for main in -lnsl... " >&6; }
14013 if test "${ac_cv_lib_nsl_main+set}" = set; then :
14014 $as_echo_n "(cached) " >&6
14015 else
14016 ac_check_lib_save_LIBS=$LIBS
14017 LIBS="-lnsl $LIBS"
14018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14019 /* end confdefs.h. */
14023 main ()
14025 return main ();
14027 return 0;
14029 _ACEOF
14030 if ac_fn_c_try_link "$LINENO"; then :
14031 ac_cv_lib_nsl_main=yes
14032 else
14033 ac_cv_lib_nsl_main=no
14035 rm -f core conftest.err conftest.$ac_objext \
14036 conftest$ac_exeext conftest.$ac_ext
14037 LIBS=$ac_check_lib_save_LIBS
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14040 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14041 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
14042 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
14047 unset ac_cv_func_gethostbyname
14048 LIBS=$libgo_old_libs
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
14052 $as_echo "$libgo_cv_lib_sockets" >&6; }
14053 NET_LIBS="$libgo_cv_lib_sockets"
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
14057 $as_echo_n "checking whether -pthread is supported... " >&6; }
14058 if test "${libgo_cv_lib_pthread+set}" = set; then :
14059 $as_echo_n "(cached) " >&6
14060 else
14061 CFLAGS_hold=$CFLAGS
14062 CFLAGS="$CFLAGS -pthread"
14063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14064 /* end confdefs.h. */
14065 int i;
14066 _ACEOF
14067 if ac_fn_c_try_compile "$LINENO"; then :
14068 libgo_cv_lib_pthread=yes
14069 else
14070 libgo_cv_lib_pthread=no
14072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14073 CFLAGS=$CFLAGS_hold
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
14076 $as_echo "$libgo_cv_lib_pthread" >&6; }
14077 PTHREAD_CFLAGS=
14078 if test "$libgo_cv_lib_pthread" = yes; then
14079 PTHREAD_CFLAGS=-pthread
14083 PTHREAD_LIBS=
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
14085 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
14086 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
14087 $as_echo_n "(cached) " >&6
14088 else
14089 ac_check_lib_save_LIBS=$LIBS
14090 LIBS="-lpthread $LIBS"
14091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14092 /* end confdefs.h. */
14094 /* Override any GCC internal prototype to avoid an error.
14095 Use char because int might match the return type of a GCC
14096 builtin and then its argument prototype would still apply. */
14097 #ifdef __cplusplus
14098 extern "C"
14099 #endif
14100 char pthread_create ();
14102 main ()
14104 return pthread_create ();
14106 return 0;
14108 _ACEOF
14109 if ac_fn_c_try_link "$LINENO"; then :
14110 ac_cv_lib_pthread_pthread_create=yes
14111 else
14112 ac_cv_lib_pthread_pthread_create=no
14114 rm -f core conftest.err conftest.$ac_objext \
14115 conftest$ac_exeext conftest.$ac_ext
14116 LIBS=$ac_check_lib_save_LIBS
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
14119 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
14120 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
14121 PTHREAD_LIBS=-lpthread
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
14127 $as_echo_n "checking for library containing sched_yield... " >&6; }
14128 if test "${ac_cv_search_sched_yield+set}" = set; then :
14129 $as_echo_n "(cached) " >&6
14130 else
14131 ac_func_search_save_LIBS=$LIBS
14132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14133 /* end confdefs.h. */
14135 /* Override any GCC internal prototype to avoid an error.
14136 Use char because int might match the return type of a GCC
14137 builtin and then its argument prototype would still apply. */
14138 #ifdef __cplusplus
14139 extern "C"
14140 #endif
14141 char sched_yield ();
14143 main ()
14145 return sched_yield ();
14147 return 0;
14149 _ACEOF
14150 for ac_lib in '' rt; do
14151 if test -z "$ac_lib"; then
14152 ac_res="none required"
14153 else
14154 ac_res=-l$ac_lib
14155 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14157 if ac_fn_c_try_link "$LINENO"; then :
14158 ac_cv_search_sched_yield=$ac_res
14160 rm -f core conftest.err conftest.$ac_objext \
14161 conftest$ac_exeext
14162 if test "${ac_cv_search_sched_yield+set}" = set; then :
14163 break
14165 done
14166 if test "${ac_cv_search_sched_yield+set}" = set; then :
14168 else
14169 ac_cv_search_sched_yield=no
14171 rm conftest.$ac_ext
14172 LIBS=$ac_func_search_save_LIBS
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
14175 $as_echo "$ac_cv_search_sched_yield" >&6; }
14176 ac_res=$ac_cv_search_sched_yield
14177 if test "$ac_res" != no; then :
14178 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14184 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14185 if test "${ac_cv_c_bigendian+set}" = set; then :
14186 $as_echo_n "(cached) " >&6
14187 else
14188 ac_cv_c_bigendian=unknown
14189 # See if we're dealing with a universal compiler.
14190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14191 /* end confdefs.h. */
14192 #ifndef __APPLE_CC__
14193 not a universal capable compiler
14194 #endif
14195 typedef int dummy;
14197 _ACEOF
14198 if ac_fn_c_try_compile "$LINENO"; then :
14200 # Check for potential -arch flags. It is not universal unless
14201 # there are at least two -arch flags with different values.
14202 ac_arch=
14203 ac_prev=
14204 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14205 if test -n "$ac_prev"; then
14206 case $ac_word in
14207 i?86 | x86_64 | ppc | ppc64)
14208 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14209 ac_arch=$ac_word
14210 else
14211 ac_cv_c_bigendian=universal
14212 break
14215 esac
14216 ac_prev=
14217 elif test "x$ac_word" = "x-arch"; then
14218 ac_prev=arch
14220 done
14222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14223 if test $ac_cv_c_bigendian = unknown; then
14224 # See if sys/param.h defines the BYTE_ORDER macro.
14225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14226 /* end confdefs.h. */
14227 #include <sys/types.h>
14228 #include <sys/param.h>
14231 main ()
14233 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14234 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14235 && LITTLE_ENDIAN)
14236 bogus endian macros
14237 #endif
14240 return 0;
14242 _ACEOF
14243 if ac_fn_c_try_compile "$LINENO"; then :
14244 # It does; now see whether it defined to BIG_ENDIAN or not.
14245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14246 /* end confdefs.h. */
14247 #include <sys/types.h>
14248 #include <sys/param.h>
14251 main ()
14253 #if BYTE_ORDER != BIG_ENDIAN
14254 not big endian
14255 #endif
14258 return 0;
14260 _ACEOF
14261 if ac_fn_c_try_compile "$LINENO"; then :
14262 ac_cv_c_bigendian=yes
14263 else
14264 ac_cv_c_bigendian=no
14266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14270 if test $ac_cv_c_bigendian = unknown; then
14271 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14273 /* end confdefs.h. */
14274 #include <limits.h>
14277 main ()
14279 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14280 bogus endian macros
14281 #endif
14284 return 0;
14286 _ACEOF
14287 if ac_fn_c_try_compile "$LINENO"; then :
14288 # It does; now see whether it defined to _BIG_ENDIAN or not.
14289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14290 /* end confdefs.h. */
14291 #include <limits.h>
14294 main ()
14296 #ifndef _BIG_ENDIAN
14297 not big endian
14298 #endif
14301 return 0;
14303 _ACEOF
14304 if ac_fn_c_try_compile "$LINENO"; then :
14305 ac_cv_c_bigendian=yes
14306 else
14307 ac_cv_c_bigendian=no
14309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14313 if test $ac_cv_c_bigendian = unknown; then
14314 # Compile a test program.
14315 if test "$cross_compiling" = yes; then :
14316 # Try to guess by grepping values from an object file.
14317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14318 /* end confdefs.h. */
14319 short int ascii_mm[] =
14320 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14321 short int ascii_ii[] =
14322 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14323 int use_ascii (int i) {
14324 return ascii_mm[i] + ascii_ii[i];
14326 short int ebcdic_ii[] =
14327 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14328 short int ebcdic_mm[] =
14329 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14330 int use_ebcdic (int i) {
14331 return ebcdic_mm[i] + ebcdic_ii[i];
14333 extern int foo;
14336 main ()
14338 return use_ascii (foo) == use_ebcdic (foo);
14340 return 0;
14342 _ACEOF
14343 if ac_fn_c_try_compile "$LINENO"; then :
14344 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14345 ac_cv_c_bigendian=yes
14347 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14348 if test "$ac_cv_c_bigendian" = unknown; then
14349 ac_cv_c_bigendian=no
14350 else
14351 # finding both strings is unlikely to happen, but who knows?
14352 ac_cv_c_bigendian=unknown
14356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14357 else
14358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14359 /* end confdefs.h. */
14360 $ac_includes_default
14362 main ()
14365 /* Are we little or big endian? From Harbison&Steele. */
14366 union
14368 long int l;
14369 char c[sizeof (long int)];
14370 } u;
14371 u.l = 1;
14372 return u.c[sizeof (long int) - 1] == 1;
14375 return 0;
14377 _ACEOF
14378 if ac_fn_c_try_run "$LINENO"; then :
14379 ac_cv_c_bigendian=no
14380 else
14381 ac_cv_c_bigendian=yes
14383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14384 conftest.$ac_objext conftest.beam conftest.$ac_ext
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14390 $as_echo "$ac_cv_c_bigendian" >&6; }
14391 case $ac_cv_c_bigendian in #(
14392 yes)
14393 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14394 ;; #(
14396 ;; #(
14397 universal)
14399 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14401 ;; #(
14403 as_fn_error "unknown endianness
14404 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14405 esac
14410 # Check whether --with-system-libunwind was given.
14411 if test "${with_system_libunwind+set}" = set; then :
14412 withval=$with_system_libunwind;
14415 # If system-libunwind was not specifically set, pick a default setting.
14416 if test x$with_system_libunwind = x; then
14417 case ${target} in
14418 ia64-*-hpux*) with_system_libunwind=yes ;;
14419 *) with_system_libunwind=no ;;
14420 esac
14422 # Based on system-libunwind and target, do we have ipinfo?
14423 if test x$with_system_libunwind = xyes; then
14424 case ${target} in
14425 ia64-*-*) have_unwind_getipinfo=no ;;
14426 *) have_unwind_getipinfo=yes ;;
14427 esac
14428 else
14429 # Darwin before version 9 does not have _Unwind_GetIPInfo.
14431 case ${target} in
14432 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
14433 *) have_unwind_getipinfo=yes ;;
14434 esac
14438 if test x$have_unwind_getipinfo = xyes; then
14440 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
14445 # Check whether --enable-sjlj-exceptions was given.
14446 if test "${enable_sjlj_exceptions+set}" = set; then :
14447 enableval=$enable_sjlj_exceptions; case "$enableval" in
14448 yes|no|auto) ;;
14449 *) as_fn_error "unknown argument to --enable-sjlj-exceptions" "$LINENO" 5 ;;
14450 esac
14451 else
14452 enable_sjlj_exceptions=auto
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use setjmp/longjmp exceptions" >&5
14457 $as_echo_n "checking whether to use setjmp/longjmp exceptions... " >&6; }
14458 if test "${libgo_cv_lib_sjlj_exceptions+set}" = set; then :
14459 $as_echo_n "(cached) " >&6
14460 else
14461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14462 /* end confdefs.h. */
14464 void bar ();
14465 void clean (int *);
14466 void foo ()
14468 int i __attribute__ ((cleanup (clean)));
14469 bar();
14472 _ACEOF
14473 CFLAGS_hold=$CFLAGS
14474 CFLAGS="--save-temps -fexceptions"
14475 libgo_cv_lib_sjlj_exceptions=unknown
14476 if ac_fn_c_try_compile; then :
14477 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1; then
14478 libgo_cv_lib_sjlj_exceptions=yes
14479 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1; then
14480 libgo_cv_lib_sjlj_exceptions=no
14483 CFLAGS=$CFLAGS_hold
14484 rm -f conftest*
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sjlj_exceptions" >&5
14488 $as_echo "$libgo_cv_lib_sjlj_exceptions" >&6; }
14490 if test "$enable_sjlj_exceptions" = "auto"; then
14491 enable_sjlj_exceptions=$libgo_cv_lib_sjlj_exceptions
14494 case $enable_sjlj_exceptions in
14495 yes)
14497 $as_echo "#define LIBGO_SJLJ_EXCEPTIONS 1" >>confdefs.h
14503 as_fn_error "unable to detect exception model" "$LINENO" 5
14505 esac
14507 for ac_header in sys/mman.h syscall.h sys/epoll.h sys/ptrace.h sys/syscall.h sys/user.h sys/utsname.h sys/select.h sys/socket.h net/if.h
14508 do :
14509 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14510 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14511 eval as_val=\$$as_ac_Header
14512 if test "x$as_val" = x""yes; then :
14513 cat >>confdefs.h <<_ACEOF
14514 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14515 _ACEOF
14519 done
14522 for ac_header in linux/filter.h linux/netlink.h linux/rtnetlink.h
14523 do :
14524 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14525 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_SOCKET_H
14526 #include <sys/socket.h>
14527 #endif
14530 eval as_val=\$$as_ac_Header
14531 if test "x$as_val" = x""yes; then :
14532 cat >>confdefs.h <<_ACEOF
14533 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14534 _ACEOF
14538 done
14541 if test "$ac_cv_header_sys_mman_h" = yes; then
14542 HAVE_SYS_MMAN_H_TRUE=
14543 HAVE_SYS_MMAN_H_FALSE='#'
14544 else
14545 HAVE_SYS_MMAN_H_TRUE='#'
14546 HAVE_SYS_MMAN_H_FALSE=
14550 for ac_func in strerror_r strsignal wait4 mincore setenv
14551 do :
14552 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14553 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14554 eval as_val=\$$as_ac_var
14555 if test "x$as_val" = x""yes; then :
14556 cat >>confdefs.h <<_ACEOF
14557 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14558 _ACEOF
14561 done
14563 if test "$ac_cv_func_strerror_r" = yes; then
14564 HAVE_STRERROR_R_TRUE=
14565 HAVE_STRERROR_R_FALSE='#'
14566 else
14567 HAVE_STRERROR_R_TRUE='#'
14568 HAVE_STRERROR_R_FALSE=
14571 if test "$ac_cv_func_wait4" = yes; then
14572 HAVE_WAIT4_TRUE=
14573 HAVE_WAIT4_FALSE='#'
14574 else
14575 HAVE_WAIT4_TRUE='#'
14576 HAVE_WAIT4_FALSE=
14580 CFLAGS_hold="$CFLAGS"
14581 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14582 LIBS_hold="$LIBS"
14583 LIBS="$LIBS $PTHREAD_LIBS"
14584 for ac_func in sem_timedwait
14585 do :
14586 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
14587 if test "x$ac_cv_func_sem_timedwait" = x""yes; then :
14588 cat >>confdefs.h <<_ACEOF
14589 #define HAVE_SEM_TIMEDWAIT 1
14590 _ACEOF
14593 done
14595 CFLAGS="$CFLAGS_hold"
14596 LIBS="$LIBS_hold"
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_4" >&5
14599 $as_echo_n "checking for __sync_bool_compare_and_swap_4... " >&6; }
14600 if test "${libgo_cv_func___sync_bool_compare_and_swap_4+set}" = set; then :
14601 $as_echo_n "(cached) " >&6
14602 else
14603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14604 /* end confdefs.h. */
14606 typedef unsigned int uint32 __attribute__ ((mode (SI)));
14607 uint32 i;
14608 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14610 _ACEOF
14611 if ac_fn_c_try_link "$LINENO"; then :
14612 libgo_cv_func___sync_bool_compare_and_swap_4=yes
14613 else
14614 libgo_cv_func___sync_bool_compare_and_swap_4=no
14616 rm -f core conftest.err conftest.$ac_objext \
14617 conftest$ac_exeext conftest.$ac_ext
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_4" >&5
14620 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_4" >&6; }
14621 if test "$libgo_cv_func___sync_bool_compare_and_swap_4" = "yes"; then
14623 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4 1" >>confdefs.h
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add_4" >&5
14628 $as_echo_n "checking for __sync_fetch_and_add_4... " >&6; }
14629 if test "${libgo_cv_func___sync_fetch_and_add_4+set}" = set; then :
14630 $as_echo_n "(cached) " >&6
14631 else
14632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14633 /* end confdefs.h. */
14635 typedef unsigned int uint32 __attribute__ ((mode (SI)));
14636 uint32 i;
14637 int main() { return __sync_fetch_and_add (&i, 1); }
14639 _ACEOF
14640 if ac_fn_c_try_link "$LINENO"; then :
14641 libgo_cv_func___sync_fetch_and_add_4=yes
14642 else
14643 libgo_cv_func___sync_fetch_and_add_4=no
14645 rm -f core conftest.err conftest.$ac_objext \
14646 conftest$ac_exeext conftest.$ac_ext
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_fetch_and_add_4" >&5
14649 $as_echo "$libgo_cv_func___sync_fetch_and_add_4" >&6; }
14650 if test "$libgo_cv_func___sync_fetch_and_add_4" = "yes"; then
14652 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD_4 1" >>confdefs.h
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
14657 $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
14658 if test "${libgo_cv_c_stringops+set}" = set; then :
14659 $as_echo_n "(cached) " >&6
14660 else
14661 CFLAGS_hold=$CFLAGS
14662 CFLAGS="$CFLAGS -minline-all-stringops"
14663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14664 /* end confdefs.h. */
14665 int i;
14666 _ACEOF
14667 if ac_fn_c_try_compile "$LINENO"; then :
14668 libgo_cv_c_stringops=yes
14669 else
14670 libgo_cv_c_stringops=no
14672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14673 CFLAGS=$CFLAGS_hold
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
14676 $as_echo "$libgo_cv_c_stringops" >&6; }
14677 STRINGOPS_FLAG=
14678 if test "$libgo_cv_c_stringops" = yes; then
14679 STRINGOPS_FLAG=-minline-all-stringops
14683 CFLAGS_hold=$CFLAGS
14684 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
14685 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
14686 if test "x$ac_cv_type_off64_t" = x""yes; then :
14688 cat >>confdefs.h <<_ACEOF
14689 #define HAVE_OFF64_T 1
14690 _ACEOF
14695 CFLAGS=$CFLAGS_hold
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event size" >&5
14698 $as_echo_n "checking epoll_event size... " >&6; }
14699 if test "${libgo_cv_c_epoll_event_size+set}" = set; then :
14700 $as_echo_n "(cached) " >&6
14701 else
14702 if ac_fn_c_compute_int "$LINENO" "sizeof (struct epoll_event)" "libgo_cv_c_epoll_event_size" "#include <sys/epoll.h>"; then :
14704 else
14705 libgo_cv_c_epoll_event_size=0
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_size" >&5
14710 $as_echo "$libgo_cv_c_epoll_event_size" >&6; }
14711 SIZEOF_STRUCT_EPOLL_EVENT=${libgo_cv_c_epoll_event_size}
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event data.fd offset" >&5
14715 $as_echo_n "checking epoll_event data.fd offset... " >&6; }
14716 if test "${libgo_cv_c_epoll_event_fd_offset+set}" = set; then :
14717 $as_echo_n "(cached) " >&6
14718 else
14719 if ac_fn_c_compute_int "$LINENO" "offsetof (struct epoll_event, data.fd)" "libgo_cv_c_epoll_event_fd_offset" "#include <stddef.h>
14720 #include <sys/epoll.h>"; then :
14722 else
14723 libgo_cv_c_epoll_event_fd_offset=0
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_fd_offset" >&5
14728 $as_echo "$libgo_cv_c_epoll_event_fd_offset" >&6; }
14729 STRUCT_EPOLL_EVENT_FD_OFFSET=${libgo_cv_c_epoll_event_fd_offset}
14732 cat >confcache <<\_ACEOF
14733 # This file is a shell script that caches the results of configure
14734 # tests run on this system so they can be shared between configure
14735 # scripts and configure runs, see configure's option --config-cache.
14736 # It is not useful on other systems. If it contains results you don't
14737 # want to keep, you may remove or edit it.
14739 # config.status only pays attention to the cache file if you give it
14740 # the --recheck option to rerun configure.
14742 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14743 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14744 # following values.
14746 _ACEOF
14748 # The following way of writing the cache mishandles newlines in values,
14749 # but we know of no workaround that is simple, portable, and efficient.
14750 # So, we kill variables containing newlines.
14751 # Ultrix sh set writes to stderr and can't be redirected directly,
14752 # and sets the high bit in the cache file unless we assign to the vars.
14754 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14755 eval ac_val=\$$ac_var
14756 case $ac_val in #(
14757 *${as_nl}*)
14758 case $ac_var in #(
14759 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14760 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14761 esac
14762 case $ac_var in #(
14763 _ | IFS | as_nl) ;; #(
14764 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14765 *) { eval $ac_var=; unset $ac_var;} ;;
14766 esac ;;
14767 esac
14768 done
14770 (set) 2>&1 |
14771 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14772 *${as_nl}ac_space=\ *)
14773 # `set' does not quote correctly, so add quotes: double-quote
14774 # substitution turns \\\\ into \\, and sed turns \\ into \.
14775 sed -n \
14776 "s/'/'\\\\''/g;
14777 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14778 ;; #(
14780 # `set' quotes correctly as required by POSIX, so do not add quotes.
14781 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14783 esac |
14784 sort
14786 sed '
14787 /^ac_cv_env_/b end
14788 t clear
14789 :clear
14790 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14791 t end
14792 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14793 :end' >>confcache
14794 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14795 if test -w "$cache_file"; then
14796 test "x$cache_file" != "x/dev/null" &&
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14798 $as_echo "$as_me: updating cache $cache_file" >&6;}
14799 cat confcache >$cache_file
14800 else
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14802 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14805 rm -f confcache
14807 if test ${multilib} = yes; then
14808 multilib_arg="--enable-multilib"
14809 else
14810 multilib_arg=
14813 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
14816 ac_config_commands="$ac_config_commands default"
14819 cat >confcache <<\_ACEOF
14820 # This file is a shell script that caches the results of configure
14821 # tests run on this system so they can be shared between configure
14822 # scripts and configure runs, see configure's option --config-cache.
14823 # It is not useful on other systems. If it contains results you don't
14824 # want to keep, you may remove or edit it.
14826 # config.status only pays attention to the cache file if you give it
14827 # the --recheck option to rerun configure.
14829 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14830 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14831 # following values.
14833 _ACEOF
14835 # The following way of writing the cache mishandles newlines in values,
14836 # but we know of no workaround that is simple, portable, and efficient.
14837 # So, we kill variables containing newlines.
14838 # Ultrix sh set writes to stderr and can't be redirected directly,
14839 # and sets the high bit in the cache file unless we assign to the vars.
14841 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14842 eval ac_val=\$$ac_var
14843 case $ac_val in #(
14844 *${as_nl}*)
14845 case $ac_var in #(
14846 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14847 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14848 esac
14849 case $ac_var in #(
14850 _ | IFS | as_nl) ;; #(
14851 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14852 *) { eval $ac_var=; unset $ac_var;} ;;
14853 esac ;;
14854 esac
14855 done
14857 (set) 2>&1 |
14858 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14859 *${as_nl}ac_space=\ *)
14860 # `set' does not quote correctly, so add quotes: double-quote
14861 # substitution turns \\\\ into \\, and sed turns \\ into \.
14862 sed -n \
14863 "s/'/'\\\\''/g;
14864 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14865 ;; #(
14867 # `set' quotes correctly as required by POSIX, so do not add quotes.
14868 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14870 esac |
14871 sort
14873 sed '
14874 /^ac_cv_env_/b end
14875 t clear
14876 :clear
14877 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14878 t end
14879 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14880 :end' >>confcache
14881 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14882 if test -w "$cache_file"; then
14883 test "x$cache_file" != "x/dev/null" &&
14884 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14885 $as_echo "$as_me: updating cache $cache_file" >&6;}
14886 cat confcache >$cache_file
14887 else
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14889 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14892 rm -f confcache
14894 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14895 # Let make expand exec_prefix.
14896 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14898 DEFS=-DHAVE_CONFIG_H
14900 ac_libobjs=
14901 ac_ltlibobjs=
14902 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14903 # 1. Remove the extension, and $U if already installed.
14904 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14905 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14906 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14907 # will be set to the directory where LIBOBJS objects are built.
14908 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14909 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14910 done
14911 LIBOBJS=$ac_libobjs
14913 LTLIBOBJS=$ac_ltlibobjs
14916 if test -n "$EXEEXT"; then
14917 am__EXEEXT_TRUE=
14918 am__EXEEXT_FALSE='#'
14919 else
14920 am__EXEEXT_TRUE='#'
14921 am__EXEEXT_FALSE=
14924 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14925 as_fn_error "conditional \"AMDEP\" was never defined.
14926 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14928 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14929 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14930 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14932 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14933 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14934 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14936 if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
14937 as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined.
14938 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14940 if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
14941 as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined.
14942 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14944 if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
14945 as_fn_error "conditional \"LIBGO_IS_IRIX\" was never defined.
14946 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14948 if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
14949 as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined.
14950 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14952 if test -z "${LIBGO_IS_NETBSD_TRUE}" && test -z "${LIBGO_IS_NETBSD_FALSE}"; then
14953 as_fn_error "conditional \"LIBGO_IS_NETBSD\" was never defined.
14954 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14956 if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
14957 as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined.
14958 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14960 if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
14961 as_fn_error "conditional \"LIBGO_IS_SOLARIS\" was never defined.
14962 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14964 if test -z "${LIBGO_IS_386_TRUE}" && test -z "${LIBGO_IS_386_FALSE}"; then
14965 as_fn_error "conditional \"LIBGO_IS_386\" was never defined.
14966 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14968 if test -z "${LIBGO_IS_ALPHA_TRUE}" && test -z "${LIBGO_IS_ALPHA_FALSE}"; then
14969 as_fn_error "conditional \"LIBGO_IS_ALPHA\" was never defined.
14970 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14972 if test -z "${LIBGO_IS_ARM_TRUE}" && test -z "${LIBGO_IS_ARM_FALSE}"; then
14973 as_fn_error "conditional \"LIBGO_IS_ARM\" was never defined.
14974 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14976 if test -z "${LIBGO_IS_M68K_TRUE}" && test -z "${LIBGO_IS_M68K_FALSE}"; then
14977 as_fn_error "conditional \"LIBGO_IS_M68K\" was never defined.
14978 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14980 if test -z "${LIBGO_IS_MIPS_TRUE}" && test -z "${LIBGO_IS_MIPS_FALSE}"; then
14981 as_fn_error "conditional \"LIBGO_IS_MIPS\" was never defined.
14982 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14984 if test -z "${LIBGO_IS_MIPSO32_TRUE}" && test -z "${LIBGO_IS_MIPSO32_FALSE}"; then
14985 as_fn_error "conditional \"LIBGO_IS_MIPSO32\" was never defined.
14986 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14988 if test -z "${LIBGO_IS_MIPSN32_TRUE}" && test -z "${LIBGO_IS_MIPSN32_FALSE}"; then
14989 as_fn_error "conditional \"LIBGO_IS_MIPSN32\" was never defined.
14990 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14992 if test -z "${LIBGO_IS_MIPSN64_TRUE}" && test -z "${LIBGO_IS_MIPSN64_FALSE}"; then
14993 as_fn_error "conditional \"LIBGO_IS_MIPSN64\" was never defined.
14994 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14996 if test -z "${LIBGO_IS_MIPSO64_TRUE}" && test -z "${LIBGO_IS_MIPSO64_FALSE}"; then
14997 as_fn_error "conditional \"LIBGO_IS_MIPSO64\" was never defined.
14998 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15000 if test -z "${LIBGO_IS_PPC_TRUE}" && test -z "${LIBGO_IS_PPC_FALSE}"; then
15001 as_fn_error "conditional \"LIBGO_IS_PPC\" was never defined.
15002 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15004 if test -z "${LIBGO_IS_PPC64_TRUE}" && test -z "${LIBGO_IS_PPC64_FALSE}"; then
15005 as_fn_error "conditional \"LIBGO_IS_PPC64\" was never defined.
15006 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15008 if test -z "${LIBGO_IS_SPARC_TRUE}" && test -z "${LIBGO_IS_SPARC_FALSE}"; then
15009 as_fn_error "conditional \"LIBGO_IS_SPARC\" was never defined.
15010 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15012 if test -z "${LIBGO_IS_SPARC64_TRUE}" && test -z "${LIBGO_IS_SPARC64_FALSE}"; then
15013 as_fn_error "conditional \"LIBGO_IS_SPARC64\" was never defined.
15014 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15016 if test -z "${LIBGO_IS_X86_64_TRUE}" && test -z "${LIBGO_IS_X86_64_FALSE}"; then
15017 as_fn_error "conditional \"LIBGO_IS_X86_64\" was never defined.
15018 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15020 if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
15021 as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined.
15022 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15025 if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
15026 as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined.
15027 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15029 if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
15030 as_fn_error "conditional \"HAVE_STRERROR_R\" was never defined.
15031 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15033 if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
15034 as_fn_error "conditional \"HAVE_WAIT4\" was never defined.
15035 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15038 : ${CONFIG_STATUS=./config.status}
15039 ac_write_fail=0
15040 ac_clean_files_save=$ac_clean_files
15041 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15042 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15043 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15044 as_write_fail=0
15045 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15046 #! $SHELL
15047 # Generated by $as_me.
15048 # Run this file to recreate the current configuration.
15049 # Compiler output produced by configure, useful for debugging
15050 # configure, is in config.log if it exists.
15052 debug=false
15053 ac_cs_recheck=false
15054 ac_cs_silent=false
15056 SHELL=\${CONFIG_SHELL-$SHELL}
15057 export SHELL
15058 _ASEOF
15059 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15060 ## -------------------- ##
15061 ## M4sh Initialization. ##
15062 ## -------------------- ##
15064 # Be more Bourne compatible
15065 DUALCASE=1; export DUALCASE # for MKS sh
15066 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15067 emulate sh
15068 NULLCMD=:
15069 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15070 # is contrary to our usage. Disable this feature.
15071 alias -g '${1+"$@"}'='"$@"'
15072 setopt NO_GLOB_SUBST
15073 else
15074 case `(set -o) 2>/dev/null` in #(
15075 *posix*) :
15076 set -o posix ;; #(
15077 *) :
15079 esac
15083 as_nl='
15085 export as_nl
15086 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15087 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15088 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15089 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15090 # Prefer a ksh shell builtin over an external printf program on Solaris,
15091 # but without wasting forks for bash or zsh.
15092 if test -z "$BASH_VERSION$ZSH_VERSION" \
15093 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15094 as_echo='print -r --'
15095 as_echo_n='print -rn --'
15096 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15097 as_echo='printf %s\n'
15098 as_echo_n='printf %s'
15099 else
15100 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15101 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15102 as_echo_n='/usr/ucb/echo -n'
15103 else
15104 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15105 as_echo_n_body='eval
15106 arg=$1;
15107 case $arg in #(
15108 *"$as_nl"*)
15109 expr "X$arg" : "X\\(.*\\)$as_nl";
15110 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15111 esac;
15112 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15114 export as_echo_n_body
15115 as_echo_n='sh -c $as_echo_n_body as_echo'
15117 export as_echo_body
15118 as_echo='sh -c $as_echo_body as_echo'
15121 # The user is always right.
15122 if test "${PATH_SEPARATOR+set}" != set; then
15123 PATH_SEPARATOR=:
15124 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15125 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15126 PATH_SEPARATOR=';'
15131 # IFS
15132 # We need space, tab and new line, in precisely that order. Quoting is
15133 # there to prevent editors from complaining about space-tab.
15134 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15135 # splitting by setting IFS to empty value.)
15136 IFS=" "" $as_nl"
15138 # Find who we are. Look in the path if we contain no directory separator.
15139 case $0 in #((
15140 *[\\/]* ) as_myself=$0 ;;
15141 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15142 for as_dir in $PATH
15144 IFS=$as_save_IFS
15145 test -z "$as_dir" && as_dir=.
15146 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15147 done
15148 IFS=$as_save_IFS
15151 esac
15152 # We did not find ourselves, most probably we were run as `sh COMMAND'
15153 # in which case we are not to be found in the path.
15154 if test "x$as_myself" = x; then
15155 as_myself=$0
15157 if test ! -f "$as_myself"; then
15158 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15159 exit 1
15162 # Unset variables that we do not need and which cause bugs (e.g. in
15163 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15164 # suppresses any "Segmentation fault" message there. '((' could
15165 # trigger a bug in pdksh 5.2.14.
15166 for as_var in BASH_ENV ENV MAIL MAILPATH
15167 do eval test x\${$as_var+set} = xset \
15168 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15169 done
15170 PS1='$ '
15171 PS2='> '
15172 PS4='+ '
15174 # NLS nuisances.
15175 LC_ALL=C
15176 export LC_ALL
15177 LANGUAGE=C
15178 export LANGUAGE
15180 # CDPATH.
15181 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15184 # as_fn_error ERROR [LINENO LOG_FD]
15185 # ---------------------------------
15186 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15187 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15188 # script with status $?, using 1 if that was 0.
15189 as_fn_error ()
15191 as_status=$?; test $as_status -eq 0 && as_status=1
15192 if test "$3"; then
15193 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15194 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15196 $as_echo "$as_me: error: $1" >&2
15197 as_fn_exit $as_status
15198 } # as_fn_error
15201 # as_fn_set_status STATUS
15202 # -----------------------
15203 # Set $? to STATUS, without forking.
15204 as_fn_set_status ()
15206 return $1
15207 } # as_fn_set_status
15209 # as_fn_exit STATUS
15210 # -----------------
15211 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15212 as_fn_exit ()
15214 set +e
15215 as_fn_set_status $1
15216 exit $1
15217 } # as_fn_exit
15219 # as_fn_unset VAR
15220 # ---------------
15221 # Portably unset VAR.
15222 as_fn_unset ()
15224 { eval $1=; unset $1;}
15226 as_unset=as_fn_unset
15227 # as_fn_append VAR VALUE
15228 # ----------------------
15229 # Append the text in VALUE to the end of the definition contained in VAR. Take
15230 # advantage of any shell optimizations that allow amortized linear growth over
15231 # repeated appends, instead of the typical quadratic growth present in naive
15232 # implementations.
15233 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15234 eval 'as_fn_append ()
15236 eval $1+=\$2
15238 else
15239 as_fn_append ()
15241 eval $1=\$$1\$2
15243 fi # as_fn_append
15245 # as_fn_arith ARG...
15246 # ------------------
15247 # Perform arithmetic evaluation on the ARGs, and store the result in the
15248 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15249 # must be portable across $(()) and expr.
15250 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15251 eval 'as_fn_arith ()
15253 as_val=$(( $* ))
15255 else
15256 as_fn_arith ()
15258 as_val=`expr "$@" || test $? -eq 1`
15260 fi # as_fn_arith
15263 if expr a : '\(a\)' >/dev/null 2>&1 &&
15264 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15265 as_expr=expr
15266 else
15267 as_expr=false
15270 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15271 as_basename=basename
15272 else
15273 as_basename=false
15276 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15277 as_dirname=dirname
15278 else
15279 as_dirname=false
15282 as_me=`$as_basename -- "$0" ||
15283 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15284 X"$0" : 'X\(//\)$' \| \
15285 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15286 $as_echo X/"$0" |
15287 sed '/^.*\/\([^/][^/]*\)\/*$/{
15288 s//\1/
15291 /^X\/\(\/\/\)$/{
15292 s//\1/
15295 /^X\/\(\/\).*/{
15296 s//\1/
15299 s/.*/./; q'`
15301 # Avoid depending upon Character Ranges.
15302 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15303 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15304 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15305 as_cr_digits='0123456789'
15306 as_cr_alnum=$as_cr_Letters$as_cr_digits
15308 ECHO_C= ECHO_N= ECHO_T=
15309 case `echo -n x` in #(((((
15310 -n*)
15311 case `echo 'xy\c'` in
15312 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15313 xy) ECHO_C='\c';;
15314 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15315 ECHO_T=' ';;
15316 esac;;
15318 ECHO_N='-n';;
15319 esac
15321 rm -f conf$$ conf$$.exe conf$$.file
15322 if test -d conf$$.dir; then
15323 rm -f conf$$.dir/conf$$.file
15324 else
15325 rm -f conf$$.dir
15326 mkdir conf$$.dir 2>/dev/null
15328 if (echo >conf$$.file) 2>/dev/null; then
15329 if ln -s conf$$.file conf$$ 2>/dev/null; then
15330 as_ln_s='ln -s'
15331 # ... but there are two gotchas:
15332 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15333 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15334 # In both cases, we have to default to `cp -p'.
15335 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15336 as_ln_s='cp -p'
15337 elif ln conf$$.file conf$$ 2>/dev/null; then
15338 as_ln_s=ln
15339 else
15340 as_ln_s='cp -p'
15342 else
15343 as_ln_s='cp -p'
15345 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15346 rmdir conf$$.dir 2>/dev/null
15349 # as_fn_mkdir_p
15350 # -------------
15351 # Create "$as_dir" as a directory, including parents if necessary.
15352 as_fn_mkdir_p ()
15355 case $as_dir in #(
15356 -*) as_dir=./$as_dir;;
15357 esac
15358 test -d "$as_dir" || eval $as_mkdir_p || {
15359 as_dirs=
15360 while :; do
15361 case $as_dir in #(
15362 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15363 *) as_qdir=$as_dir;;
15364 esac
15365 as_dirs="'$as_qdir' $as_dirs"
15366 as_dir=`$as_dirname -- "$as_dir" ||
15367 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15368 X"$as_dir" : 'X\(//\)[^/]' \| \
15369 X"$as_dir" : 'X\(//\)$' \| \
15370 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15371 $as_echo X"$as_dir" |
15372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15373 s//\1/
15376 /^X\(\/\/\)[^/].*/{
15377 s//\1/
15380 /^X\(\/\/\)$/{
15381 s//\1/
15384 /^X\(\/\).*/{
15385 s//\1/
15388 s/.*/./; q'`
15389 test -d "$as_dir" && break
15390 done
15391 test -z "$as_dirs" || eval "mkdir $as_dirs"
15392 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15395 } # as_fn_mkdir_p
15396 if mkdir -p . 2>/dev/null; then
15397 as_mkdir_p='mkdir -p "$as_dir"'
15398 else
15399 test -d ./-p && rmdir ./-p
15400 as_mkdir_p=false
15403 if test -x / >/dev/null 2>&1; then
15404 as_test_x='test -x'
15405 else
15406 if ls -dL / >/dev/null 2>&1; then
15407 as_ls_L_option=L
15408 else
15409 as_ls_L_option=
15411 as_test_x='
15412 eval sh -c '\''
15413 if test -d "$1"; then
15414 test -d "$1/.";
15415 else
15416 case $1 in #(
15417 -*)set "./$1";;
15418 esac;
15419 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15420 ???[sx]*):;;*)false;;esac;fi
15421 '\'' sh
15424 as_executable_p=$as_test_x
15426 # Sed expression to map a string onto a valid CPP name.
15427 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15429 # Sed expression to map a string onto a valid variable name.
15430 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15433 exec 6>&1
15434 ## ----------------------------------- ##
15435 ## Main body of $CONFIG_STATUS script. ##
15436 ## ----------------------------------- ##
15437 _ASEOF
15438 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15440 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15441 # Save the log message, to keep $0 and so on meaningful, and to
15442 # report actual input values of CONFIG_FILES etc. instead of their
15443 # values after options handling.
15444 ac_log="
15445 This file was extended by package-unused $as_me version-unused, which was
15446 generated by GNU Autoconf 2.64. Invocation command line was
15448 CONFIG_FILES = $CONFIG_FILES
15449 CONFIG_HEADERS = $CONFIG_HEADERS
15450 CONFIG_LINKS = $CONFIG_LINKS
15451 CONFIG_COMMANDS = $CONFIG_COMMANDS
15452 $ $0 $@
15454 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15457 _ACEOF
15459 case $ac_config_files in *"
15460 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15461 esac
15463 case $ac_config_headers in *"
15464 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15465 esac
15468 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15469 # Files that config.status was made for.
15470 config_files="$ac_config_files"
15471 config_headers="$ac_config_headers"
15472 config_commands="$ac_config_commands"
15474 _ACEOF
15476 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15477 ac_cs_usage="\
15478 \`$as_me' instantiates files and other configuration actions
15479 from templates according to the current configuration. Unless the files
15480 and actions are specified as TAGs, all are instantiated by default.
15482 Usage: $0 [OPTION]... [TAG]...
15484 -h, --help print this help, then exit
15485 -V, --version print version number and configuration settings, then exit
15486 -q, --quiet, --silent
15487 do not print progress messages
15488 -d, --debug don't remove temporary files
15489 --recheck update $as_me by reconfiguring in the same conditions
15490 --file=FILE[:TEMPLATE]
15491 instantiate the configuration file FILE
15492 --header=FILE[:TEMPLATE]
15493 instantiate the configuration header FILE
15495 Configuration files:
15496 $config_files
15498 Configuration headers:
15499 $config_headers
15501 Configuration commands:
15502 $config_commands
15504 Report bugs to the package provider."
15506 _ACEOF
15507 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15508 ac_cs_version="\\
15509 package-unused config.status version-unused
15510 configured by $0, generated by GNU Autoconf 2.64,
15511 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15513 Copyright (C) 2009 Free Software Foundation, Inc.
15514 This config.status script is free software; the Free Software Foundation
15515 gives unlimited permission to copy, distribute and modify it."
15517 ac_pwd='$ac_pwd'
15518 srcdir='$srcdir'
15519 INSTALL='$INSTALL'
15520 MKDIR_P='$MKDIR_P'
15521 AWK='$AWK'
15522 test -n "\$AWK" || AWK=awk
15523 _ACEOF
15525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15526 # The default lists apply if the user does not specify any file.
15527 ac_need_defaults=:
15528 while test $# != 0
15530 case $1 in
15531 --*=*)
15532 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15533 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15534 ac_shift=:
15537 ac_option=$1
15538 ac_optarg=$2
15539 ac_shift=shift
15541 esac
15543 case $ac_option in
15544 # Handling of the options.
15545 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15546 ac_cs_recheck=: ;;
15547 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15548 $as_echo "$ac_cs_version"; exit ;;
15549 --debug | --debu | --deb | --de | --d | -d )
15550 debug=: ;;
15551 --file | --fil | --fi | --f )
15552 $ac_shift
15553 case $ac_optarg in
15554 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15555 esac
15556 as_fn_append CONFIG_FILES " '$ac_optarg'"
15557 ac_need_defaults=false;;
15558 --header | --heade | --head | --hea )
15559 $ac_shift
15560 case $ac_optarg in
15561 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15562 esac
15563 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15564 ac_need_defaults=false;;
15565 --he | --h)
15566 # Conflict between --help and --header
15567 as_fn_error "ambiguous option: \`$1'
15568 Try \`$0 --help' for more information.";;
15569 --help | --hel | -h )
15570 $as_echo "$ac_cs_usage"; exit ;;
15571 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15572 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15573 ac_cs_silent=: ;;
15575 # This is an error.
15576 -*) as_fn_error "unrecognized option: \`$1'
15577 Try \`$0 --help' for more information." ;;
15579 *) as_fn_append ac_config_targets " $1"
15580 ac_need_defaults=false ;;
15582 esac
15583 shift
15584 done
15586 ac_configure_extra_args=
15588 if $ac_cs_silent; then
15589 exec 6>/dev/null
15590 ac_configure_extra_args="$ac_configure_extra_args --silent"
15593 _ACEOF
15594 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15595 if \$ac_cs_recheck; then
15596 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15597 shift
15598 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15599 CONFIG_SHELL='$SHELL'
15600 export CONFIG_SHELL
15601 exec "\$@"
15604 _ACEOF
15605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15606 exec 5>>config.log
15608 echo
15609 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15610 ## Running $as_me. ##
15611 _ASBOX
15612 $as_echo "$ac_log"
15613 } >&5
15615 _ACEOF
15616 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15618 # INIT-COMMANDS
15621 srcdir="$srcdir"
15622 host="$host"
15623 target="$target"
15624 with_multisubdir="$with_multisubdir"
15625 with_multisrctop="$with_multisrctop"
15626 with_target_subdir="$with_target_subdir"
15627 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15628 multi_basedir="$multi_basedir"
15629 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15630 CC="$CC"
15631 CXX="$CXX"
15632 GFORTRAN="$GFORTRAN"
15633 GCJ="$GCJ"
15634 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15637 # The HP-UX ksh and POSIX shell print the target directory to stdout
15638 # if CDPATH is set.
15639 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15641 sed_quote_subst='$sed_quote_subst'
15642 double_quote_subst='$double_quote_subst'
15643 delay_variable_subst='$delay_variable_subst'
15644 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15645 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15646 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15647 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15648 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15649 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15650 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15651 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15652 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15653 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15654 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15655 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15656 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15657 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15658 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15659 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15660 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15661 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15662 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15663 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15664 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15665 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15666 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15667 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15668 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15669 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15670 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15671 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15672 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15673 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15674 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15675 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15676 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15677 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15678 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15679 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15680 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15681 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15682 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15683 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15684 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15685 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15686 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15687 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15688 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15689 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15690 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15691 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15692 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"`'
15693 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15694 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15695 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15696 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15697 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15698 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15699 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15700 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15701 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15702 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15703 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15704 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15705 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15706 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15707 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15708 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15709 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15710 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15711 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15712 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15713 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15714 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15715 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15716 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15717 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15718 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15719 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15720 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15721 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15722 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15723 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15724 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15725 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15726 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15727 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15728 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15729 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15730 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15731 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15732 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15733 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15734 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15735 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15736 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15737 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15738 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15739 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15740 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15741 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15742 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15743 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15744 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15745 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15746 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15747 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15748 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15749 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15750 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15751 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15752 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15753 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15754 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15755 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15756 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15757 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15758 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15759 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15760 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15761 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15762 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15763 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15764 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
15765 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
15766 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
15767 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
15768 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
15769 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
15770 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
15771 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
15772 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
15773 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
15774 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
15775 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
15776 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
15777 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15778 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15779 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
15780 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
15781 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
15782 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
15783 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
15784 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
15785 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
15786 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
15787 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
15788 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
15789 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15790 hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
15791 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
15792 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
15793 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
15794 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
15795 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
15796 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
15797 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
15798 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
15799 fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
15800 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
15801 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
15802 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
15803 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
15804 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
15805 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
15806 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
15808 LTCC='$LTCC'
15809 LTCFLAGS='$LTCFLAGS'
15810 compiler='$compiler_DEFAULT'
15812 # A function that is used when there is no print builtin or printf.
15813 func_fallback_echo ()
15815 eval 'cat <<_LTECHO_EOF
15817 _LTECHO_EOF'
15820 # Quote evaled strings.
15821 for var in SED \
15822 GREP \
15823 EGREP \
15824 FGREP \
15825 SHELL \
15826 ECHO \
15827 LD \
15828 NM \
15829 LN_S \
15830 lt_SP2NL \
15831 lt_NL2SP \
15832 reload_flag \
15833 OBJDUMP \
15834 deplibs_check_method \
15835 file_magic_cmd \
15836 AR \
15837 AR_FLAGS \
15838 STRIP \
15839 RANLIB \
15840 CC \
15841 CFLAGS \
15842 compiler \
15843 lt_cv_sys_global_symbol_pipe \
15844 lt_cv_sys_global_symbol_to_cdecl \
15845 lt_cv_sys_global_symbol_to_c_name_address \
15846 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15847 lt_prog_compiler_no_builtin_flag \
15848 lt_prog_compiler_wl \
15849 lt_prog_compiler_pic \
15850 lt_prog_compiler_static \
15851 lt_cv_prog_compiler_c_o \
15852 need_locks \
15853 DSYMUTIL \
15854 NMEDIT \
15855 LIPO \
15856 OTOOL \
15857 OTOOL64 \
15858 shrext_cmds \
15859 export_dynamic_flag_spec \
15860 whole_archive_flag_spec \
15861 compiler_needs_object \
15862 with_gnu_ld \
15863 allow_undefined_flag \
15864 no_undefined_flag \
15865 hardcode_libdir_flag_spec \
15866 hardcode_libdir_flag_spec_ld \
15867 hardcode_libdir_separator \
15868 fix_srcfile_path \
15869 exclude_expsyms \
15870 include_expsyms \
15871 file_list_spec \
15872 variables_saved_for_relink \
15873 libname_spec \
15874 library_names_spec \
15875 soname_spec \
15876 install_override_mode \
15877 finish_eval \
15878 old_striplib \
15879 striplib \
15880 LD_GO \
15881 reload_flag_GO \
15882 compiler_GO \
15883 lt_prog_compiler_no_builtin_flag_GO \
15884 lt_prog_compiler_wl_GO \
15885 lt_prog_compiler_pic_GO \
15886 lt_prog_compiler_static_GO \
15887 lt_cv_prog_compiler_c_o_GO \
15888 export_dynamic_flag_spec_GO \
15889 whole_archive_flag_spec_GO \
15890 compiler_needs_object_GO \
15891 with_gnu_ld_GO \
15892 allow_undefined_flag_GO \
15893 no_undefined_flag_GO \
15894 hardcode_libdir_flag_spec_GO \
15895 hardcode_libdir_flag_spec_ld_GO \
15896 hardcode_libdir_separator_GO \
15897 fix_srcfile_path_GO \
15898 exclude_expsyms_GO \
15899 include_expsyms_GO \
15900 file_list_spec_GO; do
15901 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15902 *[\\\\\\\`\\"\\\$]*)
15903 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15906 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15908 esac
15909 done
15911 # Double-quote double-evaled strings.
15912 for var in reload_cmds \
15913 old_postinstall_cmds \
15914 old_postuninstall_cmds \
15915 old_archive_cmds \
15916 extract_expsyms_cmds \
15917 old_archive_from_new_cmds \
15918 old_archive_from_expsyms_cmds \
15919 archive_cmds \
15920 archive_expsym_cmds \
15921 module_cmds \
15922 module_expsym_cmds \
15923 export_symbols_cmds \
15924 prelink_cmds \
15925 postinstall_cmds \
15926 postuninstall_cmds \
15927 finish_cmds \
15928 sys_lib_search_path_spec \
15929 sys_lib_dlsearch_path_spec \
15930 reload_cmds_GO \
15931 old_archive_cmds_GO \
15932 old_archive_from_new_cmds_GO \
15933 old_archive_from_expsyms_cmds_GO \
15934 archive_cmds_GO \
15935 archive_expsym_cmds_GO \
15936 module_cmds_GO \
15937 module_expsym_cmds_GO \
15938 export_symbols_cmds_GO \
15939 prelink_cmds_GO; do
15940 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15941 *[\\\\\\\`\\"\\\$]*)
15942 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15945 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15947 esac
15948 done
15950 ac_aux_dir='$ac_aux_dir'
15951 xsi_shell='$xsi_shell'
15952 lt_shell_append='$lt_shell_append'
15954 # See if we are running on zsh, and set the options which allow our
15955 # commands through without removal of \ escapes INIT.
15956 if test -n "\${ZSH_VERSION+set}" ; then
15957 setopt NO_GLOB_SUBST
15961 PACKAGE='$PACKAGE'
15962 VERSION='$VERSION'
15963 TIMESTAMP='$TIMESTAMP'
15964 RM='$RM'
15965 ofile='$ofile'
15972 # Variables needed in config.status (file generation) which aren't already
15973 # passed by autoconf.
15974 SUBDIRS="$SUBDIRS"
15977 _ACEOF
15979 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15981 # Handling of arguments.
15982 for ac_config_target in $ac_config_targets
15984 case $ac_config_target in
15985 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15986 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15987 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15988 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15989 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15990 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
15991 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15993 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15994 esac
15995 done
15998 # If the user did not use the arguments to specify the items to instantiate,
15999 # then the envvar interface is used. Set only those that are not.
16000 # We use the long form for the default assignment because of an extremely
16001 # bizarre bug on SunOS 4.1.3.
16002 if $ac_need_defaults; then
16003 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16004 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16005 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16008 # Have a temporary directory for convenience. Make it in the build tree
16009 # simply because there is no reason against having it here, and in addition,
16010 # creating and moving files from /tmp can sometimes cause problems.
16011 # Hook for its removal unless debugging.
16012 # Note that there is a small window in which the directory will not be cleaned:
16013 # after its creation but before its name has been assigned to `$tmp'.
16014 $debug ||
16016 tmp=
16017 trap 'exit_status=$?
16018 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16020 trap 'as_fn_exit 1' 1 2 13 15
16022 # Create a (secure) tmp directory for tmp files.
16025 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16026 test -n "$tmp" && test -d "$tmp"
16027 } ||
16029 tmp=./conf$$-$RANDOM
16030 (umask 077 && mkdir "$tmp")
16031 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16033 # Set up the scripts for CONFIG_FILES section.
16034 # No need to generate them if there are no CONFIG_FILES.
16035 # This happens for instance with `./config.status config.h'.
16036 if test -n "$CONFIG_FILES"; then
16039 ac_cr=`echo X | tr X '\015'`
16040 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16041 # But we know of no other shell where ac_cr would be empty at this
16042 # point, so we can use a bashism as a fallback.
16043 if test "x$ac_cr" = x; then
16044 eval ac_cr=\$\'\\r\'
16046 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16047 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16048 ac_cs_awk_cr='\r'
16049 else
16050 ac_cs_awk_cr=$ac_cr
16053 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16054 _ACEOF
16058 echo "cat >conf$$subs.awk <<_ACEOF" &&
16059 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16060 echo "_ACEOF"
16061 } >conf$$subs.sh ||
16062 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16063 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16064 ac_delim='%!_!# '
16065 for ac_last_try in false false false false false :; do
16066 . ./conf$$subs.sh ||
16067 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16069 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16070 if test $ac_delim_n = $ac_delim_num; then
16071 break
16072 elif $ac_last_try; then
16073 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16074 else
16075 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16077 done
16078 rm -f conf$$subs.sh
16080 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16081 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16082 _ACEOF
16083 sed -n '
16085 s/^/S["/; s/!.*/"]=/
16088 s/^[^!]*!//
16089 :repl
16090 t repl
16091 s/'"$ac_delim"'$//
16092 t delim
16095 s/\(.\{148\}\).*/\1/
16096 t more1
16097 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16100 b repl
16101 :more1
16102 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16105 s/.\{148\}//
16106 t nl
16107 :delim
16109 s/\(.\{148\}\).*/\1/
16110 t more2
16111 s/["\\]/\\&/g; s/^/"/; s/$/"/
16114 :more2
16115 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16118 s/.\{148\}//
16119 t delim
16120 ' <conf$$subs.awk | sed '
16121 /^[^""]/{
16123 s/\n//
16125 ' >>$CONFIG_STATUS || ac_write_fail=1
16126 rm -f conf$$subs.awk
16127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16128 _ACAWK
16129 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16130 for (key in S) S_is_set[key] = 1
16131 FS = "\a"
16135 line = $ 0
16136 nfields = split(line, field, "@")
16137 substed = 0
16138 len = length(field[1])
16139 for (i = 2; i < nfields; i++) {
16140 key = field[i]
16141 keylen = length(key)
16142 if (S_is_set[key]) {
16143 value = S[key]
16144 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16145 len += length(value) + length(field[++i])
16146 substed = 1
16147 } else
16148 len += 1 + keylen
16151 print line
16154 _ACAWK
16155 _ACEOF
16156 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16157 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16158 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16159 else
16161 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16162 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16163 _ACEOF
16165 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16166 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16167 # trailing colons and then remove the whole line if VPATH becomes empty
16168 # (actually we leave an empty line to preserve line numbers).
16169 if test "x$srcdir" = x.; then
16170 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16171 s/:*\$(srcdir):*/:/
16172 s/:*\${srcdir}:*/:/
16173 s/:*@srcdir@:*/:/
16174 s/^\([^=]*=[ ]*\):*/\1/
16175 s/:*$//
16176 s/^[^=]*=[ ]*$//
16180 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16181 fi # test -n "$CONFIG_FILES"
16183 # Set up the scripts for CONFIG_HEADERS section.
16184 # No need to generate them if there are no CONFIG_HEADERS.
16185 # This happens for instance with `./config.status Makefile'.
16186 if test -n "$CONFIG_HEADERS"; then
16187 cat >"$tmp/defines.awk" <<\_ACAWK ||
16188 BEGIN {
16189 _ACEOF
16191 # Transform confdefs.h into an awk script `defines.awk', embedded as
16192 # here-document in config.status, that substitutes the proper values into
16193 # config.h.in to produce config.h.
16195 # Create a delimiter string that does not exist in confdefs.h, to ease
16196 # handling of long lines.
16197 ac_delim='%!_!# '
16198 for ac_last_try in false false :; do
16199 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16200 if test -z "$ac_t"; then
16201 break
16202 elif $ac_last_try; then
16203 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16204 else
16205 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16207 done
16209 # For the awk script, D is an array of macro values keyed by name,
16210 # likewise P contains macro parameters if any. Preserve backslash
16211 # newline sequences.
16213 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16214 sed -n '
16215 s/.\{148\}/&'"$ac_delim"'/g
16216 t rset
16217 :rset
16218 s/^[ ]*#[ ]*define[ ][ ]*/ /
16219 t def
16221 :def
16222 s/\\$//
16223 t bsnl
16224 s/["\\]/\\&/g
16225 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16226 D["\1"]=" \3"/p
16227 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16229 :bsnl
16230 s/["\\]/\\&/g
16231 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16232 D["\1"]=" \3\\\\\\n"\\/p
16233 t cont
16234 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16235 t cont
16237 :cont
16239 s/.\{148\}/&'"$ac_delim"'/g
16240 t clear
16241 :clear
16242 s/\\$//
16243 t bsnlc
16244 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16246 :bsnlc
16247 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16248 b cont
16249 ' <confdefs.h | sed '
16250 s/'"$ac_delim"'/"\\\
16251 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16253 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16254 for (key in D) D_is_set[key] = 1
16255 FS = "\a"
16257 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16258 line = \$ 0
16259 split(line, arg, " ")
16260 if (arg[1] == "#") {
16261 defundef = arg[2]
16262 mac1 = arg[3]
16263 } else {
16264 defundef = substr(arg[1], 2)
16265 mac1 = arg[2]
16267 split(mac1, mac2, "(") #)
16268 macro = mac2[1]
16269 prefix = substr(line, 1, index(line, defundef) - 1)
16270 if (D_is_set[macro]) {
16271 # Preserve the white space surrounding the "#".
16272 print prefix "define", macro P[macro] D[macro]
16273 next
16274 } else {
16275 # Replace #undef with comments. This is necessary, for example,
16276 # in the case of _POSIX_SOURCE, which is predefined and required
16277 # on some systems where configure will not decide to define it.
16278 if (defundef == "undef") {
16279 print "/*", prefix defundef, macro, "*/"
16280 next
16284 { print }
16285 _ACAWK
16286 _ACEOF
16287 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16288 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16289 fi # test -n "$CONFIG_HEADERS"
16292 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16293 shift
16294 for ac_tag
16296 case $ac_tag in
16297 :[FHLC]) ac_mode=$ac_tag; continue;;
16298 esac
16299 case $ac_mode$ac_tag in
16300 :[FHL]*:*);;
16301 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16302 :[FH]-) ac_tag=-:-;;
16303 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16304 esac
16305 ac_save_IFS=$IFS
16306 IFS=:
16307 set x $ac_tag
16308 IFS=$ac_save_IFS
16309 shift
16310 ac_file=$1
16311 shift
16313 case $ac_mode in
16314 :L) ac_source=$1;;
16315 :[FH])
16316 ac_file_inputs=
16317 for ac_f
16319 case $ac_f in
16320 -) ac_f="$tmp/stdin";;
16321 *) # Look for the file first in the build tree, then in the source tree
16322 # (if the path is not absolute). The absolute path cannot be DOS-style,
16323 # because $ac_f cannot contain `:'.
16324 test -f "$ac_f" ||
16325 case $ac_f in
16326 [\\/$]*) false;;
16327 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16328 esac ||
16329 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16330 esac
16331 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16332 as_fn_append ac_file_inputs " '$ac_f'"
16333 done
16335 # Let's still pretend it is `configure' which instantiates (i.e., don't
16336 # use $as_me), people would be surprised to read:
16337 # /* config.h. Generated by config.status. */
16338 configure_input='Generated from '`
16339 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16340 `' by configure.'
16341 if test x"$ac_file" != x-; then
16342 configure_input="$ac_file. $configure_input"
16343 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16344 $as_echo "$as_me: creating $ac_file" >&6;}
16346 # Neutralize special characters interpreted by sed in replacement strings.
16347 case $configure_input in #(
16348 *\&* | *\|* | *\\* )
16349 ac_sed_conf_input=`$as_echo "$configure_input" |
16350 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16351 *) ac_sed_conf_input=$configure_input;;
16352 esac
16354 case $ac_tag in
16355 *:-:* | *:-) cat >"$tmp/stdin" \
16356 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16357 esac
16359 esac
16361 ac_dir=`$as_dirname -- "$ac_file" ||
16362 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16363 X"$ac_file" : 'X\(//\)[^/]' \| \
16364 X"$ac_file" : 'X\(//\)$' \| \
16365 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16366 $as_echo X"$ac_file" |
16367 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16368 s//\1/
16371 /^X\(\/\/\)[^/].*/{
16372 s//\1/
16375 /^X\(\/\/\)$/{
16376 s//\1/
16379 /^X\(\/\).*/{
16380 s//\1/
16383 s/.*/./; q'`
16384 as_dir="$ac_dir"; as_fn_mkdir_p
16385 ac_builddir=.
16387 case "$ac_dir" in
16388 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16390 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16391 # A ".." for each directory in $ac_dir_suffix.
16392 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16393 case $ac_top_builddir_sub in
16394 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16395 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16396 esac ;;
16397 esac
16398 ac_abs_top_builddir=$ac_pwd
16399 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16400 # for backward compatibility:
16401 ac_top_builddir=$ac_top_build_prefix
16403 case $srcdir in
16404 .) # We are building in place.
16405 ac_srcdir=.
16406 ac_top_srcdir=$ac_top_builddir_sub
16407 ac_abs_top_srcdir=$ac_pwd ;;
16408 [\\/]* | ?:[\\/]* ) # Absolute name.
16409 ac_srcdir=$srcdir$ac_dir_suffix;
16410 ac_top_srcdir=$srcdir
16411 ac_abs_top_srcdir=$srcdir ;;
16412 *) # Relative name.
16413 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16414 ac_top_srcdir=$ac_top_build_prefix$srcdir
16415 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16416 esac
16417 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16420 case $ac_mode in
16423 # CONFIG_FILE
16426 case $INSTALL in
16427 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16428 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16429 esac
16430 ac_MKDIR_P=$MKDIR_P
16431 case $MKDIR_P in
16432 [\\/$]* | ?:[\\/]* ) ;;
16433 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16434 esac
16435 _ACEOF
16437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16438 # If the template does not know about datarootdir, expand it.
16439 # FIXME: This hack should be removed a few years after 2.60.
16440 ac_datarootdir_hack=; ac_datarootdir_seen=
16441 ac_sed_dataroot='
16442 /datarootdir/ {
16446 /@datadir@/p
16447 /@docdir@/p
16448 /@infodir@/p
16449 /@localedir@/p
16450 /@mandir@/p'
16451 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16452 *datarootdir*) ac_datarootdir_seen=yes;;
16453 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16455 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16456 _ACEOF
16457 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16458 ac_datarootdir_hack='
16459 s&@datadir@&$datadir&g
16460 s&@docdir@&$docdir&g
16461 s&@infodir@&$infodir&g
16462 s&@localedir@&$localedir&g
16463 s&@mandir@&$mandir&g
16464 s&\\\${datarootdir}&$datarootdir&g' ;;
16465 esac
16466 _ACEOF
16468 # Neutralize VPATH when `$srcdir' = `.'.
16469 # Shell code in configure.ac might set extrasub.
16470 # FIXME: do we really want to maintain this feature?
16471 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16472 ac_sed_extra="$ac_vpsub
16473 $extrasub
16474 _ACEOF
16475 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16477 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16478 s|@configure_input@|$ac_sed_conf_input|;t t
16479 s&@top_builddir@&$ac_top_builddir_sub&;t t
16480 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16481 s&@srcdir@&$ac_srcdir&;t t
16482 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16483 s&@top_srcdir@&$ac_top_srcdir&;t t
16484 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16485 s&@builddir@&$ac_builddir&;t t
16486 s&@abs_builddir@&$ac_abs_builddir&;t t
16487 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16488 s&@INSTALL@&$ac_INSTALL&;t t
16489 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16490 $ac_datarootdir_hack
16492 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16493 || as_fn_error "could not create $ac_file" "$LINENO" 5
16495 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16496 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16497 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16499 which seems to be undefined. Please make sure it is defined." >&5
16500 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16501 which seems to be undefined. Please make sure it is defined." >&2;}
16503 rm -f "$tmp/stdin"
16504 case $ac_file in
16505 -) cat "$tmp/out" && rm -f "$tmp/out";;
16506 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16507 esac \
16508 || as_fn_error "could not create $ac_file" "$LINENO" 5
16512 # CONFIG_HEADER
16514 if test x"$ac_file" != x-; then
16516 $as_echo "/* $configure_input */" \
16517 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16518 } >"$tmp/config.h" \
16519 || as_fn_error "could not create $ac_file" "$LINENO" 5
16520 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16521 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16522 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16523 else
16524 rm -f "$ac_file"
16525 mv "$tmp/config.h" "$ac_file" \
16526 || as_fn_error "could not create $ac_file" "$LINENO" 5
16528 else
16529 $as_echo "/* $configure_input */" \
16530 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16531 || as_fn_error "could not create -" "$LINENO" 5
16533 # Compute "$ac_file"'s index in $config_headers.
16534 _am_arg="$ac_file"
16535 _am_stamp_count=1
16536 for _am_header in $config_headers :; do
16537 case $_am_header in
16538 $_am_arg | $_am_arg:* )
16539 break ;;
16541 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16542 esac
16543 done
16544 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16545 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16546 X"$_am_arg" : 'X\(//\)[^/]' \| \
16547 X"$_am_arg" : 'X\(//\)$' \| \
16548 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16549 $as_echo X"$_am_arg" |
16550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16551 s//\1/
16554 /^X\(\/\/\)[^/].*/{
16555 s//\1/
16558 /^X\(\/\/\)$/{
16559 s//\1/
16562 /^X\(\/\).*/{
16563 s//\1/
16566 s/.*/./; q'`/stamp-h$_am_stamp_count
16569 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16570 $as_echo "$as_me: executing $ac_file commands" >&6;}
16572 esac
16575 case $ac_file$ac_mode in
16576 "default-1":C)
16577 # Only add multilib support code if we just rebuilt the top-level
16578 # Makefile.
16579 case " $CONFIG_FILES " in
16580 *" Makefile "*)
16581 ac_file=Makefile . ${multi_basedir}/config-ml.in
16583 esac ;;
16584 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16585 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16586 # are listed without --file. Let's play safe and only enable the eval
16587 # if we detect the quoting.
16588 case $CONFIG_FILES in
16589 *\'*) eval set x "$CONFIG_FILES" ;;
16590 *) set x $CONFIG_FILES ;;
16591 esac
16592 shift
16593 for mf
16595 # Strip MF so we end up with the name of the file.
16596 mf=`echo "$mf" | sed -e 's/:.*$//'`
16597 # Check whether this is an Automake generated Makefile or not.
16598 # We used to match only the files named `Makefile.in', but
16599 # some people rename them; so instead we look at the file content.
16600 # Grep'ing the first line is not enough: some people post-process
16601 # each Makefile.in and add a new line on top of each file to say so.
16602 # Grep'ing the whole file is not good either: AIX grep has a line
16603 # limit of 2048, but all sed's we know have understand at least 4000.
16604 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16605 dirpart=`$as_dirname -- "$mf" ||
16606 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16607 X"$mf" : 'X\(//\)[^/]' \| \
16608 X"$mf" : 'X\(//\)$' \| \
16609 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16610 $as_echo X"$mf" |
16611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16612 s//\1/
16615 /^X\(\/\/\)[^/].*/{
16616 s//\1/
16619 /^X\(\/\/\)$/{
16620 s//\1/
16623 /^X\(\/\).*/{
16624 s//\1/
16627 s/.*/./; q'`
16628 else
16629 continue
16631 # Extract the definition of DEPDIR, am__include, and am__quote
16632 # from the Makefile without running `make'.
16633 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16634 test -z "$DEPDIR" && continue
16635 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16636 test -z "am__include" && continue
16637 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16638 # When using ansi2knr, U may be empty or an underscore; expand it
16639 U=`sed -n 's/^U = //p' < "$mf"`
16640 # Find all dependency output files, they are included files with
16641 # $(DEPDIR) in their names. We invoke sed twice because it is the
16642 # simplest approach to changing $(DEPDIR) to its actual value in the
16643 # expansion.
16644 for file in `sed -n "
16645 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16646 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16647 # Make sure the directory exists.
16648 test -f "$dirpart/$file" && continue
16649 fdir=`$as_dirname -- "$file" ||
16650 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16651 X"$file" : 'X\(//\)[^/]' \| \
16652 X"$file" : 'X\(//\)$' \| \
16653 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16654 $as_echo X"$file" |
16655 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16656 s//\1/
16659 /^X\(\/\/\)[^/].*/{
16660 s//\1/
16663 /^X\(\/\/\)$/{
16664 s//\1/
16667 /^X\(\/\).*/{
16668 s//\1/
16671 s/.*/./; q'`
16672 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16673 # echo "creating $dirpart/$file"
16674 echo '# dummy' > "$dirpart/$file"
16675 done
16676 done
16679 "libtool":C)
16681 # See if we are running on zsh, and set the options which allow our
16682 # commands through without removal of \ escapes.
16683 if test -n "${ZSH_VERSION+set}" ; then
16684 setopt NO_GLOB_SUBST
16687 cfgfile="${ofile}T"
16688 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16689 $RM "$cfgfile"
16691 cat <<_LT_EOF >> "$cfgfile"
16692 #! $SHELL
16694 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16695 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16696 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16697 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16699 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16700 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16701 # Written by Gordon Matzigkeit, 1996
16703 # This file is part of GNU Libtool.
16705 # GNU Libtool is free software; you can redistribute it and/or
16706 # modify it under the terms of the GNU General Public License as
16707 # published by the Free Software Foundation; either version 2 of
16708 # the License, or (at your option) any later version.
16710 # As a special exception to the GNU General Public License,
16711 # if you distribute this file as part of a program or library that
16712 # is built using GNU Libtool, you may include this file under the
16713 # same distribution terms that you use for the rest of that program.
16715 # GNU Libtool is distributed in the hope that it will be useful,
16716 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16717 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16718 # GNU General Public License for more details.
16720 # You should have received a copy of the GNU General Public License
16721 # along with GNU Libtool; see the file COPYING. If not, a copy
16722 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16723 # obtained by writing to the Free Software Foundation, Inc.,
16724 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16727 # The names of the tagged configurations supported by this script.
16728 available_tags="GO "
16730 # ### BEGIN LIBTOOL CONFIG
16732 # A sed program that does not truncate output.
16733 SED=$lt_SED
16735 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16736 Xsed="\$SED -e 1s/^X//"
16738 # A grep program that handles long lines.
16739 GREP=$lt_GREP
16741 # An ERE matcher.
16742 EGREP=$lt_EGREP
16744 # A literal string matcher.
16745 FGREP=$lt_FGREP
16747 # Shell to use when invoking shell scripts.
16748 SHELL=$lt_SHELL
16750 # An echo program that protects backslashes.
16751 ECHO=$lt_ECHO
16753 # Which release of libtool.m4 was used?
16754 macro_version=$macro_version
16755 macro_revision=$macro_revision
16757 # Whether or not to build shared libraries.
16758 build_libtool_libs=$enable_shared
16760 # Whether or not to build static libraries.
16761 build_old_libs=$enable_static
16763 # What type of objects to build.
16764 pic_mode=$pic_mode
16766 # Whether or not to optimize for fast installation.
16767 fast_install=$enable_fast_install
16769 # The host system.
16770 host_alias=$host_alias
16771 host=$host
16772 host_os=$host_os
16774 # The build system.
16775 build_alias=$build_alias
16776 build=$build
16777 build_os=$build_os
16779 # A BSD- or MS-compatible name lister.
16780 NM=$lt_NM
16782 # Whether we need soft or hard links.
16783 LN_S=$lt_LN_S
16785 # What is the maximum length of a command?
16786 max_cmd_len=$max_cmd_len
16788 # Object file suffix (normally "o").
16789 objext=$ac_objext
16791 # Executable file suffix (normally "").
16792 exeext=$exeext
16794 # whether the shell understands "unset".
16795 lt_unset=$lt_unset
16797 # turn spaces into newlines.
16798 SP2NL=$lt_lt_SP2NL
16800 # turn newlines into spaces.
16801 NL2SP=$lt_lt_NL2SP
16803 # An object symbol dumper.
16804 OBJDUMP=$lt_OBJDUMP
16806 # Method to check whether dependent libraries are shared objects.
16807 deplibs_check_method=$lt_deplibs_check_method
16809 # Command to use when deplibs_check_method == "file_magic".
16810 file_magic_cmd=$lt_file_magic_cmd
16812 # The archiver.
16813 AR=$lt_AR
16814 AR_FLAGS=$lt_AR_FLAGS
16816 # A symbol stripping program.
16817 STRIP=$lt_STRIP
16819 # Commands used to install an old-style archive.
16820 RANLIB=$lt_RANLIB
16821 old_postinstall_cmds=$lt_old_postinstall_cmds
16822 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16824 # Whether to use a lock for old archive extraction.
16825 lock_old_archive_extraction=$lock_old_archive_extraction
16827 # A C compiler.
16828 LTCC=$lt_CC
16830 # LTCC compiler flags.
16831 LTCFLAGS=$lt_CFLAGS
16833 # Take the output of nm and produce a listing of raw symbols and C names.
16834 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16836 # Transform the output of nm in a proper C declaration.
16837 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16839 # Transform the output of nm in a C name address pair.
16840 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16842 # Transform the output of nm in a C name address pair when lib prefix is needed.
16843 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16845 # The name of the directory that contains temporary libtool files.
16846 objdir=$objdir
16848 # Used to examine libraries when file_magic_cmd begins with "file".
16849 MAGIC_CMD=$MAGIC_CMD
16851 # Must we lock files when doing compilation?
16852 need_locks=$lt_need_locks
16854 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16855 DSYMUTIL=$lt_DSYMUTIL
16857 # Tool to change global to local symbols on Mac OS X.
16858 NMEDIT=$lt_NMEDIT
16860 # Tool to manipulate fat objects and archives on Mac OS X.
16861 LIPO=$lt_LIPO
16863 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16864 OTOOL=$lt_OTOOL
16866 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16867 OTOOL64=$lt_OTOOL64
16869 # Old archive suffix (normally "a").
16870 libext=$libext
16872 # Shared library suffix (normally ".so").
16873 shrext_cmds=$lt_shrext_cmds
16875 # The commands to extract the exported symbol list from a shared archive.
16876 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16878 # Variables whose values should be saved in libtool wrapper scripts and
16879 # restored at link time.
16880 variables_saved_for_relink=$lt_variables_saved_for_relink
16882 # Do we need the "lib" prefix for modules?
16883 need_lib_prefix=$need_lib_prefix
16885 # Do we need a version for libraries?
16886 need_version=$need_version
16888 # Library versioning type.
16889 version_type=$version_type
16891 # Shared library runtime path variable.
16892 runpath_var=$runpath_var
16894 # Shared library path variable.
16895 shlibpath_var=$shlibpath_var
16897 # Is shlibpath searched before the hard-coded library search path?
16898 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16900 # Format of library name prefix.
16901 libname_spec=$lt_libname_spec
16903 # List of archive names. First name is the real one, the rest are links.
16904 # The last name is the one that the linker finds with -lNAME
16905 library_names_spec=$lt_library_names_spec
16907 # The coded name of the library, if different from the real name.
16908 soname_spec=$lt_soname_spec
16910 # Permission mode override for installation of shared libraries.
16911 install_override_mode=$lt_install_override_mode
16913 # Command to use after installation of a shared archive.
16914 postinstall_cmds=$lt_postinstall_cmds
16916 # Command to use after uninstallation of a shared archive.
16917 postuninstall_cmds=$lt_postuninstall_cmds
16919 # Commands used to finish a libtool library installation in a directory.
16920 finish_cmds=$lt_finish_cmds
16922 # As "finish_cmds", except a single script fragment to be evaled but
16923 # not shown.
16924 finish_eval=$lt_finish_eval
16926 # Whether we should hardcode library paths into libraries.
16927 hardcode_into_libs=$hardcode_into_libs
16929 # Compile-time system search path for libraries.
16930 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16932 # Run-time system search path for libraries.
16933 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16935 # Whether dlopen is supported.
16936 dlopen_support=$enable_dlopen
16938 # Whether dlopen of programs is supported.
16939 dlopen_self=$enable_dlopen_self
16941 # Whether dlopen of statically linked programs is supported.
16942 dlopen_self_static=$enable_dlopen_self_static
16944 # Commands to strip libraries.
16945 old_striplib=$lt_old_striplib
16946 striplib=$lt_striplib
16949 # The linker used to build libraries.
16950 LD=$lt_LD
16952 # How to create reloadable object files.
16953 reload_flag=$lt_reload_flag
16954 reload_cmds=$lt_reload_cmds
16956 # Commands used to build an old-style archive.
16957 old_archive_cmds=$lt_old_archive_cmds
16959 # A language specific compiler.
16960 CC=$lt_compiler
16962 # Is the compiler the GNU compiler?
16963 with_gcc=$GCC
16965 # Compiler flag to turn off builtin functions.
16966 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16968 # How to pass a linker flag through the compiler.
16969 wl=$lt_lt_prog_compiler_wl
16971 # Additional compiler flags for building library objects.
16972 pic_flag=$lt_lt_prog_compiler_pic
16974 # Compiler flag to prevent dynamic linking.
16975 link_static_flag=$lt_lt_prog_compiler_static
16977 # Does compiler simultaneously support -c and -o options?
16978 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16980 # Whether or not to add -lc for building shared libraries.
16981 build_libtool_need_lc=$archive_cmds_need_lc
16983 # Whether or not to disallow shared libs when runtime libs are static.
16984 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16986 # Compiler flag to allow reflexive dlopens.
16987 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16989 # Compiler flag to generate shared objects directly from archives.
16990 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16992 # Whether the compiler copes with passing no objects directly.
16993 compiler_needs_object=$lt_compiler_needs_object
16995 # Create an old-style archive from a shared archive.
16996 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16998 # Create a temporary old-style archive to link instead of a shared archive.
16999 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17001 # Commands used to build a shared archive.
17002 archive_cmds=$lt_archive_cmds
17003 archive_expsym_cmds=$lt_archive_expsym_cmds
17005 # Commands used to build a loadable module if different from building
17006 # a shared archive.
17007 module_cmds=$lt_module_cmds
17008 module_expsym_cmds=$lt_module_expsym_cmds
17010 # Whether we are building with GNU ld or not.
17011 with_gnu_ld=$lt_with_gnu_ld
17013 # Flag that allows shared libraries with undefined symbols to be built.
17014 allow_undefined_flag=$lt_allow_undefined_flag
17016 # Flag that enforces no undefined symbols.
17017 no_undefined_flag=$lt_no_undefined_flag
17019 # Flag to hardcode \$libdir into a binary during linking.
17020 # This must work even if \$libdir does not exist
17021 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17023 # If ld is used when linking, flag to hardcode \$libdir into a binary
17024 # during linking. This must work even if \$libdir does not exist.
17025 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17027 # Whether we need a single "-rpath" flag with a separated argument.
17028 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17030 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17031 # DIR into the resulting binary.
17032 hardcode_direct=$hardcode_direct
17034 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17035 # DIR into the resulting binary and the resulting library dependency is
17036 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17037 # library is relocated.
17038 hardcode_direct_absolute=$hardcode_direct_absolute
17040 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17041 # into the resulting binary.
17042 hardcode_minus_L=$hardcode_minus_L
17044 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17045 # into the resulting binary.
17046 hardcode_shlibpath_var=$hardcode_shlibpath_var
17048 # Set to "yes" if building a shared library automatically hardcodes DIR
17049 # into the library and all subsequent libraries and executables linked
17050 # against it.
17051 hardcode_automatic=$hardcode_automatic
17053 # Set to yes if linker adds runtime paths of dependent libraries
17054 # to runtime path list.
17055 inherit_rpath=$inherit_rpath
17057 # Whether libtool must link a program against all its dependency libraries.
17058 link_all_deplibs=$link_all_deplibs
17060 # Fix the shell variable \$srcfile for the compiler.
17061 fix_srcfile_path=$lt_fix_srcfile_path
17063 # Set to "yes" if exported symbols are required.
17064 always_export_symbols=$always_export_symbols
17066 # The commands to list exported symbols.
17067 export_symbols_cmds=$lt_export_symbols_cmds
17069 # Symbols that should not be listed in the preloaded symbols.
17070 exclude_expsyms=$lt_exclude_expsyms
17072 # Symbols that must always be exported.
17073 include_expsyms=$lt_include_expsyms
17075 # Commands necessary for linking programs (against libraries) with templates.
17076 prelink_cmds=$lt_prelink_cmds
17078 # Specify filename containing input files.
17079 file_list_spec=$lt_file_list_spec
17081 # How to hardcode a shared library path into an executable.
17082 hardcode_action=$hardcode_action
17084 # ### END LIBTOOL CONFIG
17086 _LT_EOF
17088 case $host_os in
17089 aix3*)
17090 cat <<\_LT_EOF >> "$cfgfile"
17091 # AIX sometimes has problems with the GCC collect2 program. For some
17092 # reason, if we set the COLLECT_NAMES environment variable, the problems
17093 # vanish in a puff of smoke.
17094 if test "X${COLLECT_NAMES+set}" != Xset; then
17095 COLLECT_NAMES=
17096 export COLLECT_NAMES
17098 _LT_EOF
17100 esac
17103 ltmain="$ac_aux_dir/ltmain.sh"
17106 # We use sed instead of cat because bash on DJGPP gets confused if
17107 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17108 # text mode, it properly converts lines to CR/LF. This bash problem
17109 # is reportedly fixed, but why not run on old versions too?
17110 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17111 || (rm -f "$cfgfile"; exit 1)
17113 case $xsi_shell in
17114 yes)
17115 cat << \_LT_EOF >> "$cfgfile"
17117 # func_dirname file append nondir_replacement
17118 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17119 # otherwise set result to NONDIR_REPLACEMENT.
17120 func_dirname ()
17122 case ${1} in
17123 */*) func_dirname_result="${1%/*}${2}" ;;
17124 * ) func_dirname_result="${3}" ;;
17125 esac
17128 # func_basename file
17129 func_basename ()
17131 func_basename_result="${1##*/}"
17134 # func_dirname_and_basename file append nondir_replacement
17135 # perform func_basename and func_dirname in a single function
17136 # call:
17137 # dirname: Compute the dirname of FILE. If nonempty,
17138 # add APPEND to the result, otherwise set result
17139 # to NONDIR_REPLACEMENT.
17140 # value returned in "$func_dirname_result"
17141 # basename: Compute filename of FILE.
17142 # value retuned in "$func_basename_result"
17143 # Implementation must be kept synchronized with func_dirname
17144 # and func_basename. For efficiency, we do not delegate to
17145 # those functions but instead duplicate the functionality here.
17146 func_dirname_and_basename ()
17148 case ${1} in
17149 */*) func_dirname_result="${1%/*}${2}" ;;
17150 * ) func_dirname_result="${3}" ;;
17151 esac
17152 func_basename_result="${1##*/}"
17155 # func_stripname prefix suffix name
17156 # strip PREFIX and SUFFIX off of NAME.
17157 # PREFIX and SUFFIX must not contain globbing or regex special
17158 # characters, hashes, percent signs, but SUFFIX may contain a leading
17159 # dot (in which case that matches only a dot).
17160 func_stripname ()
17162 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17163 # positional parameters, so assign one to ordinary parameter first.
17164 func_stripname_result=${3}
17165 func_stripname_result=${func_stripname_result#"${1}"}
17166 func_stripname_result=${func_stripname_result%"${2}"}
17169 # func_opt_split
17170 func_opt_split ()
17172 func_opt_split_opt=${1%%=*}
17173 func_opt_split_arg=${1#*=}
17176 # func_lo2o object
17177 func_lo2o ()
17179 case ${1} in
17180 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17181 *) func_lo2o_result=${1} ;;
17182 esac
17185 # func_xform libobj-or-source
17186 func_xform ()
17188 func_xform_result=${1%.*}.lo
17191 # func_arith arithmetic-term...
17192 func_arith ()
17194 func_arith_result=$(( $* ))
17197 # func_len string
17198 # STRING may not start with a hyphen.
17199 func_len ()
17201 func_len_result=${#1}
17204 _LT_EOF
17206 *) # Bourne compatible functions.
17207 cat << \_LT_EOF >> "$cfgfile"
17209 # func_dirname file append nondir_replacement
17210 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17211 # otherwise set result to NONDIR_REPLACEMENT.
17212 func_dirname ()
17214 # Extract subdirectory from the argument.
17215 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17216 if test "X$func_dirname_result" = "X${1}"; then
17217 func_dirname_result="${3}"
17218 else
17219 func_dirname_result="$func_dirname_result${2}"
17223 # func_basename file
17224 func_basename ()
17226 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17230 # func_stripname prefix suffix name
17231 # strip PREFIX and SUFFIX off of NAME.
17232 # PREFIX and SUFFIX must not contain globbing or regex special
17233 # characters, hashes, percent signs, but SUFFIX may contain a leading
17234 # dot (in which case that matches only a dot).
17235 # func_strip_suffix prefix name
17236 func_stripname ()
17238 case ${2} in
17239 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17240 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17241 esac
17244 # sed scripts:
17245 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17246 my_sed_long_arg='1s/^-[^=]*=//'
17248 # func_opt_split
17249 func_opt_split ()
17251 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17252 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17255 # func_lo2o object
17256 func_lo2o ()
17258 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17261 # func_xform libobj-or-source
17262 func_xform ()
17264 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17267 # func_arith arithmetic-term...
17268 func_arith ()
17270 func_arith_result=`expr "$@"`
17273 # func_len string
17274 # STRING may not start with a hyphen.
17275 func_len ()
17277 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17280 _LT_EOF
17281 esac
17283 case $lt_shell_append in
17284 yes)
17285 cat << \_LT_EOF >> "$cfgfile"
17287 # func_append var value
17288 # Append VALUE to the end of shell variable VAR.
17289 func_append ()
17291 eval "$1+=\$2"
17293 _LT_EOF
17296 cat << \_LT_EOF >> "$cfgfile"
17298 # func_append var value
17299 # Append VALUE to the end of shell variable VAR.
17300 func_append ()
17302 eval "$1=\$$1\$2"
17305 _LT_EOF
17307 esac
17310 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17311 || (rm -f "$cfgfile"; exit 1)
17313 mv -f "$cfgfile" "$ofile" ||
17314 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17315 chmod +x "$ofile"
17318 cat <<_LT_EOF >> "$ofile"
17320 # ### BEGIN LIBTOOL TAG CONFIG: GO
17322 # The linker used to build libraries.
17323 LD=$lt_LD_GO
17325 # How to create reloadable object files.
17326 reload_flag=$lt_reload_flag_GO
17327 reload_cmds=$lt_reload_cmds_GO
17329 # Commands used to build an old-style archive.
17330 old_archive_cmds=$lt_old_archive_cmds_GO
17332 # A language specific compiler.
17333 CC=$lt_compiler_GO
17335 # Is the compiler the GNU compiler?
17336 with_gcc=$GCC_GO
17338 # Compiler flag to turn off builtin functions.
17339 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
17341 # How to pass a linker flag through the compiler.
17342 wl=$lt_lt_prog_compiler_wl_GO
17344 # Additional compiler flags for building library objects.
17345 pic_flag=$lt_lt_prog_compiler_pic_GO
17347 # Compiler flag to prevent dynamic linking.
17348 link_static_flag=$lt_lt_prog_compiler_static_GO
17350 # Does compiler simultaneously support -c and -o options?
17351 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
17353 # Whether or not to add -lc for building shared libraries.
17354 build_libtool_need_lc=$archive_cmds_need_lc_GO
17356 # Whether or not to disallow shared libs when runtime libs are static.
17357 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
17359 # Compiler flag to allow reflexive dlopens.
17360 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
17362 # Compiler flag to generate shared objects directly from archives.
17363 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
17365 # Whether the compiler copes with passing no objects directly.
17366 compiler_needs_object=$lt_compiler_needs_object_GO
17368 # Create an old-style archive from a shared archive.
17369 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
17371 # Create a temporary old-style archive to link instead of a shared archive.
17372 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
17374 # Commands used to build a shared archive.
17375 archive_cmds=$lt_archive_cmds_GO
17376 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
17378 # Commands used to build a loadable module if different from building
17379 # a shared archive.
17380 module_cmds=$lt_module_cmds_GO
17381 module_expsym_cmds=$lt_module_expsym_cmds_GO
17383 # Whether we are building with GNU ld or not.
17384 with_gnu_ld=$lt_with_gnu_ld_GO
17386 # Flag that allows shared libraries with undefined symbols to be built.
17387 allow_undefined_flag=$lt_allow_undefined_flag_GO
17389 # Flag that enforces no undefined symbols.
17390 no_undefined_flag=$lt_no_undefined_flag_GO
17392 # Flag to hardcode \$libdir into a binary during linking.
17393 # This must work even if \$libdir does not exist
17394 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
17396 # If ld is used when linking, flag to hardcode \$libdir into a binary
17397 # during linking. This must work even if \$libdir does not exist.
17398 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
17400 # Whether we need a single "-rpath" flag with a separated argument.
17401 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
17403 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17404 # DIR into the resulting binary.
17405 hardcode_direct=$hardcode_direct_GO
17407 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17408 # DIR into the resulting binary and the resulting library dependency is
17409 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17410 # library is relocated.
17411 hardcode_direct_absolute=$hardcode_direct_absolute_GO
17413 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17414 # into the resulting binary.
17415 hardcode_minus_L=$hardcode_minus_L_GO
17417 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17418 # into the resulting binary.
17419 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
17421 # Set to "yes" if building a shared library automatically hardcodes DIR
17422 # into the library and all subsequent libraries and executables linked
17423 # against it.
17424 hardcode_automatic=$hardcode_automatic_GO
17426 # Set to yes if linker adds runtime paths of dependent libraries
17427 # to runtime path list.
17428 inherit_rpath=$inherit_rpath_GO
17430 # Whether libtool must link a program against all its dependency libraries.
17431 link_all_deplibs=$link_all_deplibs_GO
17433 # Fix the shell variable \$srcfile for the compiler.
17434 fix_srcfile_path=$lt_fix_srcfile_path_GO
17436 # Set to "yes" if exported symbols are required.
17437 always_export_symbols=$always_export_symbols_GO
17439 # The commands to list exported symbols.
17440 export_symbols_cmds=$lt_export_symbols_cmds_GO
17442 # Symbols that should not be listed in the preloaded symbols.
17443 exclude_expsyms=$lt_exclude_expsyms_GO
17445 # Symbols that must always be exported.
17446 include_expsyms=$lt_include_expsyms_GO
17448 # Commands necessary for linking programs (against libraries) with templates.
17449 prelink_cmds=$lt_prelink_cmds_GO
17451 # Specify filename containing input files.
17452 file_list_spec=$lt_file_list_spec_GO
17454 # How to hardcode a shared library path into an executable.
17455 hardcode_action=$hardcode_action_GO
17457 # ### END LIBTOOL TAG CONFIG: GO
17458 _LT_EOF
17461 "default":C) if test -n "$CONFIG_FILES"; then
17462 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
17463 # that multilib installs will end up installed in the correct place.
17464 # The testsuite needs it for multilib-aware ABI baseline files.
17465 # To work around this not being passed down from config-ml.in ->
17466 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
17467 # append it here. Only modify Makefiles that have just been created.
17469 # Also, get rid of this simulated-VPATH thing that automake does.
17470 cat > vpsed << \_EOF
17471 s!`test -f '$<' || echo '$(srcdir)/'`!!
17472 _EOF
17473 for i in $SUBDIRS; do
17474 case $CONFIG_FILES in
17475 *${i}/Makefile*)
17476 #echo "Adding MULTISUBDIR to $i/Makefile"
17477 sed -f vpsed $i/Makefile > tmp
17478 grep '^MULTISUBDIR =' Makefile >> tmp
17479 mv tmp $i/Makefile
17481 esac
17482 done
17483 rm vpsed
17487 esac
17488 done # for ac_tag
17491 as_fn_exit 0
17492 _ACEOF
17493 ac_clean_files=$ac_clean_files_save
17495 test $ac_write_fail = 0 ||
17496 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17499 # configure is writing to config.log, and then calls config.status.
17500 # config.status does its own redirection, appending to config.log.
17501 # Unfortunately, on DOS this fails, as config.log is still kept open
17502 # by configure, so config.status won't be able to write to it; its
17503 # output is simply discarded. So we exec the FD to /dev/null,
17504 # effectively closing config.log, so it can be properly (re)opened and
17505 # appended to by config.status. When coming back to configure, we
17506 # need to make the FD available again.
17507 if test "$no_create" != yes; then
17508 ac_cs_success=:
17509 ac_config_status_args=
17510 test "$silent" = yes &&
17511 ac_config_status_args="$ac_config_status_args --quiet"
17512 exec 5>/dev/null
17513 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17514 exec 5>>config.log
17515 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17516 # would make configure fail if this is the last instruction.
17517 $ac_cs_success || as_fn_exit $?
17519 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17521 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}